]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* symtab.h: Fix typo in comment.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2004-10-20 Joel Brobecker <brobecker@gnat.com>
2
3 * symtab.h: Fix typo in comment.
4
5 2004-10-19 Mark Kettenis <kettenis@gnu.org>
6
7 * dwarf2read.c (struct comp_unit_head): Fix coding style.
8 (dwarf_decode_line_header): Likewise.
9
10 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
11
12 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
13
14 2004-10-19 Andrew Cagney <cagney@gnu.org>
15
16 GDB 6.3 branch created.
17 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
18
19 2004-10-15 Joel Brobecker <brobecker@gnat.com>
20
21 * dwarf2read.c (set_cu_language): Set language to Ada for
22 DW_LANG_Ada83 and DW_LANG_Ada95.
23
24 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
25
26 From Andreas Schwab <schwab@suse.de>:
27 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
28 for xmalloc and xrealloc.
29
30 2004-10-15 Andrew Cagney <cagney@gnu.org>
31
32 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
33 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
34 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
35 Update dependencies.
36
37 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
38
39 * ada-lang.c (ada_lookup_symbol): Correct comment.
40 (ada_evaluate_subexp): Change error message for
41 OP_FUNCALL case so as not to indicate an internal error.
42
43 2004-10-15 Joel Brobecker <brobecker@gnat.com>
44
45 Committed by Paul Hilfinger.
46 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
47 type sizes in XVE/XVU types, and emit a warning when that happens,
48 instead of rounding up the size of the resulting type.
49 Some minor reformatting.
50 (ada_is_aligner_type): Do not consider a type as an aligner type
51 if there is a corresponding XVS type as well.
52 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
53 have several levels of pointer indirection to the array.
54
55 2004-10-15 Jerome Guitton <guitton@gnat.com>
56
57 Committed by Paul Hilfinger.
58 * ada-lang.c (check_size): New function.
59 (coerce_unspec_val_to_type): call check_size to make sure
60 that the object size is reasonable.
61 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
62 Implements the case when we get a reference when we evaluate
63 the expression of one of the bounds of the slice.
64 (ada_value_struct_elt): when a packed array field is
65 a reference, use ada_coerce_ref to dereference it; use
66 ada_value_ind only if it is a pointer.
67
68 2004-10-15 Joel Brobecker <brobecker@gnat.com>
69
70 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
71 a bit to avoid the necessity of an advance declaration. Remove
72 declaration.
73 (set_reg_offset): Move implemenation up.
74 (mips16_get_imm): Likewise.
75 (mips16_scan_prologue): Likewise.
76 (reset_saved_regs): Likewise.
77 (mips32_scan_prologue): Likewise.
78
79 2004-10-14 Joel Brobecker <brobecker@gnat.com>
80
81 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
82 Remove sp as a parameter, compute it internally instead. Move
83 prologue scanning limit from heuristic_proc_desc to here.
84 (mips16_scan_prologue): Likewise.
85 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
86 by call to mips16_scan_prologue.
87 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
88 by call to mips32_scan_prologue.
89 (heuristic_proc_desc): Remove code that's no longer necessary.
90 Update calls to mips16_scan_prologue and mips32_scan_prologue.
91 (mips_skip_prologue): Update calls to mips16_scan_prologue
92 and mips32_scan_prologue.
93
94 2004-10-14 Joel Brobecker <brobecker@gnat.com>
95
96 * mips-tdep.c (mips16_scan_prologue): Merge code from
97 mips16_skip_prologue. Now return the address of the first
98 instruction past the function prologue.
99 (mips16_skip_prologue): Remove, no longer necessary.
100 (mips_skip_prologue): Replace call to mips16_skip_prologue
101 by call to mips16_scan_prologue.
102
103 2004-10-14 Joel Brobecker <brobecker@gnat.com>
104
105 * mips-tdep.c (mips32_scan_prologue): Merge code from
106 mips32_skip_prologue. Now return the address of the first
107 instruction past the function prologue.
108 (mips32_skip_prologue): Remove. No longer necessary.
109 (mips16_skip_prologue): Add parameter end_pc instead of
110 computing it.
111 (mips_skip_prologue): Compute the upper limit for the
112 prologue scanning. Update call to mips16_skip_prologue.
113 Replace call to mips32_skip_prologue by call to
114 mips32_scan_prologue.
115
116 2004-10-14 Mark Kettenis <kettenis@gnu.org>
117
118 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
119 NetBSD system call stubs that store %rp in the ERP slot of the
120 stack frame.
121
122 * source.c: Always define O_BINARY to 0 if not defined already.
123 (openp): Unconditionally use O_BINARY.
124
125 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
126 * event-top.c (gdb_readline2): Likewise.
127
128 2004-10-14 Orjan Friberg <orjanf@axis.com>
129
130 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
131 deprecated_add_core_fns which was removed by mistake.
132
133 2004-10-13 Kevin Buettner <kevinb@redhat.com>
134
135 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
136 references to deprecated_registers[] with equivalent code.
137
138 2004-10-13 Kevin Buettner <kevinb@redhat.com>
139
140 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
141 ``deprecated_registers'' with equivalent code. Use gdb_assert()
142 instead of explicit test and print statement.
143
144 2004-10-12 Mark Kettenis <kettenis@gnu.org>
145
146 * sparc-nat.c: Include "inf-ptrace.h".
147 (sparc_target): New function.
148 * sparc-nat.h: Update copyright year.
149 (sparc_target): New prototype.
150 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
151 (_initialize_sparcnbsd_nat): Construct and add target vector.
152 * sparc64nbsd-nat.c: Include "target.h".
153 (_initialize_sparc64nbsd_nat): Construct and add target vector.
154 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
155 Update dependencies.
156 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
157 inftarg.o, add inf-ptrace.o.
158 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
159 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
160 (NAT_FILE): Set to nm-bsd.h.
161 (LOADLIBES): New variable.
162 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
163 infarg.o, add inf-ptrace.o.
164 * config/sparc/nm-nbsdaout.h: Remove file.
165 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
166 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
167 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
168
169 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
170 "fopen-same.h". Update comment.
171
172 2004-10-11 Mark Kettenis <kettenis@gnu.org>
173
174 * i386gnu-nat.c: Include "gdb_string.h".
175 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
176 registers when the floating-point state isn't initialized.
177 * Makefile.in (i386gnu-nat.o): Update dependencies.
178
179 2004-10-11 David Anderson <davea@sgi.com>
180
181 * regcache.c (regcache_raw_read): Comment was missing "to".
182 Extraneous ' removed.
183 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
184 comment now describes use.
185
186 2004-10-11 Orjan Friberg <orjanf@axis.com>
187
188 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
189 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
190 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
191 (cris_sigtramp_frame_sniffer): New functions.
192 (cris_gdbarch_init): Hook in signal trampoline unwinder.
193 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
194 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
195 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
196 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
197 command.
198 (cris_version_update): Remove, replace with ...
199 (set_cris_version): New function.
200 (struct gdbarch_tdep, cris_mode, cris_mode_update)
201 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
202 (_initialize_cris_tdep): Remove CRIS mode command.
203 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
204 cris-fpless-backtrace command.
205 (cris_scan_prologue): Fix prologue scanning limit.
206 (cris_register_type): Update to reflect actual registers.
207 (cris_register_bytes_ok) Remove.
208 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
209 Remove set_gdbarch_deprecated_register_size,
210 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
211
212 2004-10-10 Andrew Cagney <cagney@gnu.org>
213
214 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
215 comment.
216
217 2004-10-10 Joel Brobecker <brobecker@gnat.com>
218
219 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
220
221 2004-10-10 Joel Brobecker <brobecker@gnat.com>
222
223 * mips-tdep.c (mips16_scan_prologue): Renames
224 mips16_heuristic_proc_desc. Update comment.
225 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
226 (heuristic_proc_desc): Update calls to the 2 functions above.
227
228 2004-10-10 Joel Brobecker <brobecker@gnat.com>
229
230 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
231 Update comments. Also immediately return empty cache when the start
232 address of our function could not be found.
233 (mips_insn32_frame_cache): Likewise.
234
235 2004-10-10 Joel Brobecker <brobecker@gnat.com>
236
237 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
238 (mips_insn16_frame_cache): Pass frame cache in call to
239 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
240 Remove code that became redundant as a consequence.
241 (mips32_heuristic_proc_desc): No longer compute a fake
242 procedure descriptor. Compute the full frame cache instead.
243 Some minor comment reformatting.
244
245 2004-10-10 Jim Blandy <jimb@redhat.com>
246
247 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
248 reader, tracing bytecode stuff): Remove self.
249
250 2004-10-10 Mark Kettenis <kettenis@gnu.org>
251
252 * sparc64-linux-tdep.c: Update copyright year. Don't include
253 "solib-svr4.h".
254 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
255 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
256 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
257
258 * sparc-linux-tdep.c: Update copyright year.
259 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
260 to struct frame_info *. Use safe_frame_unwind_memory instead of
261 deprecated_read_memory_nobpt.
262 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
263 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
264 changed signature of sparc_linux_sigtramp_start.
265 (sparc32_linux_pc_in_sigtramp): Remove function.
266 (sparc32_linux_sigtramp_p): New function.
267 (sparc32_linux_sigtramp_frame_sniffer): Use
268 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
269
270 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
271 Remove function.
272 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
273
274 * ada-lang.c (lim_warning): Re-implement as a varargs function.
275 (decode_packed_array_type, value_subscript_packed)
276 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
277 argument in call to lim_warning.
278
279 * configure.in: Really disable the TUI if an enhanced curses
280 library isn't found.
281 * configure: Regenerate.
282
283 2004-10-09 Mark Kettenis <kettenis@gnu.org>
284
285 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
286 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
287 * config/i386/nm-nbsdaout.h: Remove file.
288 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
289 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
290 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
291 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
292 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
293 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
294 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
295 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
296 (ldd, ld_un, ld_2): Remove defines.
297 * config/i386/nm-obsd.h: Likewise.
298
299 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
300
301 * ada-lex.l: Remove useless rule whose right-context clause
302 causes unreferenced static function warning for yyrealloc.
303 (ada_flex_use): Remove the artificial reference to yyrealloc.
304
305 2004-10-08 Andrew Cagney <cagney@gnu.org>
306
307 * target.h (struct target_ops): Rename to_xfer_memory to
308 deprecated_xfer_memory.
309 * target.c: Update.
310 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
311 * wince.c: Update.
312 * win32-nat.c: Update.
313 * v850ice.c: Update.
314 * uw-thread.c: Update.
315 * thread-db.c: Update.
316 * sol-thread.c: Update.
317 * remote.c: Update.
318 * remote-vx.c: Update.
319 * remote-st.c: Update.
320 * remote-sim.c: Update.
321 * remote-sds.c: Update.
322 * remote-rdp.c: Update.
323 * remote-rdi.c: Update.
324 * remote-mips.c: Update.
325 * remote-m32r-sdi.c: Update.
326 * remote-e7000.c: Update.
327 * procfs.c: Update.
328 * ppc-bdm.c: Update.
329 * nto-procfs.c: Update.
330 * monitor.c: Update.
331 * linux-nat.c: Update.
332 * inftarg.c: Update.
333 * hpux-thread.c: Update.
334 * go32-nat.c: Update.
335 * gnu-nat.c: Update.
336 * exec.c: Update.
337 * corelow.c: Update.
338 * bsd-kvm.c: Update.
339 * aix-thread.c: Update.
340
341 2004-10-08 Andrew Cagney <cagney@gnu.org>
342
343 * target.c (debug_target): Move to near start of file.
344 (target_stopped_data_address_p): Re-org logic, add casts.
345
346 2004-10-02 Mark Kettenis <kettenis@gnu.org>
347
348 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
349 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
350 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
351 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
352 New defines.
353
354 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
355
356 * target.h (to_stopped_data_address): Change prototype to
357 take a CORE_ADDR pointer and return an int.
358 * target.c (update_current_target): Change to_stopped_data_address
359 to match new prototype.
360 (debug_to_stopped_data_address): Change appropriately.
361 * breakpoint.c (bpstat_stop_status): Change call to
362 target_stopped_data_address to use new prototype.
363 * frv-tdep.c (frv_have_stopped_data_address): New function.
364 (frv_stopped_data_address): Change to new prototype and
365 functionality.
366 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
367 prototype and functionality.
368 (ia64_stopped_by_watchpoint): New function.
369 * i386-nat.c (i386_stopped_data_address): Change to new
370 prototype and functionality.
371 (i386_stopped_by_watchpoint): New function.
372 * remote.c (remote_stopped_data_address): Change to new prototype
373 and functionality.
374 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
375 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
376 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
377 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
378 new i386_stopped_by_watchpoint function.
379 (i386_stopped_by_watchpoint): New prototype.
380 (i386_stoppped_data_address): Change to new prototype.
381 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
382 new ia64_stopped_by_watchpoint function.
383 (ia64_stopped_by_watchpoint): New prototype.
384 (ia64_stopped_data_address): Ditto.
385
386 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
387
388 * ada-typeprint.c (ada_print_type): Use int_string for printing
389 modulus of modular type.
390 * ada-lang.h (ada_modulus): Change return type to unsigned.
391 * ada-lang.c (ada_language_arch_info): Correct type of
392 string_char_type.
393 (ada_modulus): Return unsigned result.
394 (ada_lookup_symbol): Remove user disambiguation and modify comment
395 accordingly.
396
397 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
398
399 Committed by Paul Hilfinger.
400 * ada-lang.c (decode_packed_array): On big-endian targets,
401 left-justify the value if it comes with a modular type.
402
403 2004-10-08 Joel Brobecker <brobecker@gnat.com>
404
405 Committed by Paul Hilfinger.
406 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
407 (is_name_suffix): Add support for "___JM" suffixes.
408 (ada_check_typedef): Renames ada_completed_type.
409 Update all users of CHECK_TYPEDEF, check_typedef, and
410 ada_complete_type to call ada_check_typedef.
411 * ada-typeprint.c: Likewise.
412 * ada-valprint.c: Likewise.
413
414 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
415
416 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
417
418 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
419
420 * MAINTAINERS: Update e-mail address.
421
422 2004-10-07 Daniel Jacobowitz <dan@debian.org>
423
424 From Maciej W. Rozycki <macro@mips.com>:
425 * mips-tdep.c (mips32_next_pc): Check the register's contents,
426 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
427
428 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
429
430 * m32r-tdep.c (decode_prologue): Support functions written
431 in assembler language. Recognize trap instructions as the
432 end of prologue.
433 (m32r_frame_unwind_cache): Ditto.
434 (m32r_skip_prologue): Extend search limit. Quit analyzing
435 prologue if pc's location is not readable.
436
437 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
438
439 * Makefile.in (.l.c): Do conversions of names of alloc and free
440 functions that are done for .y.c files, plus special one
441 for yy_flex_realloc. Also, correct missing-file tests here.
442 * ada-lex.l (malloc, free): Remove macros.
443 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
444 xrealloc.
445 (ada_flex_use): Dummy definition to remove warnings about unused
446 functions.
447 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
448 to suppress warning.
449
450 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
451
452 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
453 RETURN_VALUE.
454 (sh_return_value_fpu): Ditto for CPUs with FPU.
455 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
456 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
457 Install sh_return_value_nofpu resp. sh_return_value_fpu as
458 RETURN_VALUE functions.
459
460 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
461
462 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
463 (sh_pseudo_register_write): Ditto.
464
465 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
466
467 * sh-tdep.c (IS_MACL_STS): New define.
468 (IS_MOVI20): Ditto.
469 (IS_MACL_LDS): Ditto.
470 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
471 instructions in prologue.
472 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
473 instructions in epilogue.
474
475 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
476
477 * sh-tdep.c (SH_NUM_REGS): Define as 67.
478 (sh_sh_register_name): Add eight empty register names.
479 (sh_sh3_register_name): Ditto.
480 (sh_sh3e_register_name): Ditto.
481 (sh_sh2e_register_name): Ditto.
482 (sh_sh2a_register_name): New function, defining SH2A register set.
483 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
484 in nofpu case.
485 (sh_sh_dsp_register_name): Add eight empty register names.
486 (sh_sh3_dsp_register_name): Ditto.
487 (sh_sh4_register_name): Ditto.
488 (sh_sh4_nofpu_register_name): Ditto.
489 (sh_sh4al_dsp_register_name): Ditto.
490 (sh2a_show_regs): New function.
491 (sh2a_nofpu_show_regs): New function.
492 (sh_sh2a_register_type): New function.
493 (do_bank_register_info): New function.
494 (sh_print_pseudo_register): Call do_bank_register_info.
495 Call sh_print_pseudo_register for valid "bank" register.
496 (sh_sh2a_register_sim_regno): New function.
497 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
498 Increment pseudo register count by one for all sh variants with
499 pseudo registers to accomodate pseudo bank register.
500 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
501 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
502 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
503 Increment pseudo register numbers.
504
505 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
506
507 * dwarf2read.c (read_subroutine_type): Call make_function_type
508 instead of lookup_function_type.
509
510 2004-10-05 Jim Blandy <jimb@redhat.com>
511
512 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
513 (Previous change missed some uses.)
514
515 2004-10-05 Andrew Cagney <cagney@gnu.org>
516
517 * target.h (deprecated_child_ops): Rename child_ops.
518 * wince.c: Update copyright. Rename child_ops.
519 * win32-nat.c: Rename child_ops.
520 * target.c: Rename child_ops.
521 * rs6000-nat.c: Rename child_ops.
522 * linux-nat.c: Rename child_ops.
523 * infttrace.c: Rename child_ops.
524 * inftarg.c: Rename child_ops.
525 * infptrace.c: Rename child_ops.
526 * hppah-nat.c: Update copyright. Rename child_ops.
527 * hpux-thread.c: Update copyright. Rename child_ops.
528
529 2004-10-05 Daniel Jacobowitz <dan@debian.org>
530
531 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
532
533 2004-10-05 Andrew Cagney <cagney@gnu.org>
534
535 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
536
537 2004-10-05 Daniel Jacobowitz <dan@debian.org>
538
539 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
540 (die_ref_table): Remove.
541 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
542 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
543 the usage of this type.
544 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
545 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
546 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
547 (dwarf2_create_include_psymtab): Update comment.
548 (find_partial_die): Remove third argument. Remove unreachable call
549 to error ().
550 (dwarf2_find_containing_comp_unit): Update comments. Change one
551 assertion to an error. Remove an unreachable error.
552 (dwarf2_find_comp_unit): Update comments.
553 (type_at_offset): Remove dead code.
554 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
555 (store_in_ref_table): Add CU argument.
556 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
557 inter-compilation-unit references.
558 (load_full_comp_unit, process_full_comp_unit): New functions, based
559 on psymtab_to_symtab_1.
560 (psymtab_to_symtab_1): Use them.
561 (dwarf2_add_dependence): New function.
562 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
563 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
564 (partial_die_parent_scope, guess_structure_name): Update for changes
565 to find_partial_die.
566 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
567 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
568 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
569 (read_die_and_children): Update call to store_in_ref_table.
570 (do_free_die_list_cleanup): Remove.
571 (fixup_partial_die): Update for changes to find_partial_die.
572 (read_full_die): Handle queueing absolute references.
573 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
574 (dwarf2_attr, die_specification, die_type)
575 (die_containing_type, dwarf2_extension): Update calls to
576 follow_die_ref.
577 (dump_die): Update DW_FORM_ref* handling.
578 (dwarf2_get_ref_die_offset): Likewise.
579 (free_one_comp_unit): Release the dies list.
580 (dwarf2_mark_helper): New function.
581 (dwarf2_mark): Use it.
582
583 2004-10-05 Mark Kettenis <kettenis@jive.nl>
584
585 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
586 when writing to memory.
587
588 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
589
590 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
591 (m32r_extract_struct_value_address): Delete function.
592 (m32r_return_value): New function.
593 (m32r_gdbarch_init): Instead of store_return_value,
594 extract_return_value, deprecated_extract_struct_value_address
595 and deprecated_use_struct_convention, set return_value.
596
597 2004-10-03 Daniel Jacobowitz <dan@debian.org>
598
599 * dwarf2read.c (read_subrange_type): Add comment for variable
600 sized arrays.
601
602 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
603
604 * Makefile.in (.l.c): Modify rule for compatibility with recent
605 versions of flex, and remove most command-line options.
606 * ada-lex.l: Add %options line in place of -I -i and -s command-line
607 options.
608
609 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
610
611 Turn on initial Ada support (mainly expression evaluation).
612
613 * Makefile.in (SFILES): Remove ada-tasks.c.
614 (HFILES_NO_SRCDIR): Add ada-lang.h.
615 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
616 (YYOBJ): Add ada-exp.o.
617 (rule .l.c): Generalize to not mention ada.
618 * symtab.c: Include ada-lang.h.
619 (symbol_natural_name, symbol_demangled_name)
620 (symbol_search_name): Add Ada case.
621
622 2004-10-01 Andrew Cagney <cagney@gnu.org>
623
624 * Makefile.in (COMMON_OBS): Add inf-child.o.
625 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
626 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
627 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
628 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
629 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
630 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
631 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
632 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
633 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
634 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
635 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
636 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
637 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
638
639 * target.c (xfer_using_stratum): Change return type to LONGEST.
640 On each iteration offset, readbuf and writebuf.
641 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
642 partial_length, and read/modify/write predicate, update comments.
643 Pass buffer.word to ptrace write.
644
645 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
646
647 * symfile.c (init_filename_language_table): Add extensions for
648 Ada.
649 * defs.h (enum language): Add language_ada.
650 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
651 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
652 (add_symbols_from_enclosing_procs): Make a no-op for now.
653 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
654 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
655 (find_line_in_linetable, find_next_line_in_linetable)
656 (read_all_symtabs, is_plausible_func_for_line)
657 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
658 (is_runtime_sym_defined, check_size): Remove declaration.
659 (function_name_from_pc, ada_translate_error_message)
660 (ada_lookup_minimal_symbol): Remove definition.
661 (ada_add_block_symbols): Remove useless label.
662 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
663 useless declaration.
664 (ada_is_exception_sym): Likewise.
665
666 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
667
668 Add m32r-linux support.
669 * configure.tgt: Add m32r*-*-linux*.
670 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
671 and m32r-linux-tdep.c.
672 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
673 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
674 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
675 m32r-linux-tdep.c.
676 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
677 config/m32r/linux.mh, config/m32r/linux.mt,
678 config/m32r/nm-linux.h: New files.
679
680 2004-09-30 Joel Brobecker <brobecker@gnat.com>
681
682 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
683 (mips32_fetch_instruction): Remove, unused.
684
685 2004-09-30 Joel Brobecker <brobecker@gnat.com>
686
687 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
688 conditions that will always be true.
689
690 2004-09-30 Mark Kettenis <kettenis@gnu.org>
691
692 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
693 (vaxbsd_fetch_inferior_registers): Rename from
694 fetch_inferior_registers. Make static.
695 (vaxbsd_store_inferior_registers): Rename from
696 store_inferior_registers. Make static.
697 (_initialize_vaxbsd_nat): Construct and add target vector.
698 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
699 inftarg.o. Add inf-child.o and inf-ptrace.o.
700 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
701 inftarg.o. Add inf-child.o and inf-ptrace.o.
702 (NAT_FILE): Remove.
703 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
704 inftarg.o. Add inf-child.o and inf-ptrace.o.
705 (NAT_FILE): Remove.
706 * Makefile.in (vaxbsd-nat.o): Update dependencies.
707
708 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
709 (m88kbsd_fetch_inferior_registers): Rename from
710 fetch_inferior_registers. Make static.
711 (m88kbsd_store_inferior_registers): Rename from
712 store_inferior_registers. Make static.
713 (_initialize_m88kbsd_nat): New prototype and function.
714 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
715 inftarg.o. Add inf-child.o and inf-ptrace.o.
716 (NAT_FILE): Remove.
717 * Makefile.in (m88kbsd-nat.o): Update dependencies.
718
719 2004-09-30 Andrew Cagney <cagney@gnu.org>
720
721 * target.c (target_xfer_partial): New function.
722 (target_read_memory_partial, target_write_memory_partial)
723 (default_xfer_partial, target_read_partial, target_write_partial)
724 (xfer_using_stratum): Use.
725 (debug_to_xfer_partial): Delete function.
726 (setup_target_debug): Do not override to_xfer_partial.
727
728 2004-09-30 Mark Kettenis <kettenis@chello.nl>
729
730 * fork-child.c: Update copyright year. Fix coding style.
731
732 2004-09-29 Mark Kettenis <kettenis@gnu.org>
733
734 * defs.h (msavestring, mstrsave): Remove prototypes.
735 * utils.c (msavestring, mstrsave): Remove functions.
736 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
737 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
738 of mstrsave.
739 * source.c (find_and_open_source): Use xstrdup instead of
740 mstrsave.
741
742 2004-09-30 Andrew Cagney <cagney@gnu.org>
743
744 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
745 (inf_ptrace_xfer_memory): Delete.
746 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
747 (target_read_memory, target_write_memory): Use xfer_using_stratum
748 when target_xfer_partial_p.
749 (debug_target): Move to start of file.
750 (target_read_memory_partial, target_write_memory_partial): Use
751 to_xfer_partial when target_xfer_partial_p.
752
753 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
754 inf_ptrace_xfer_memory with equivalent code.
755 * inftarg.c (child_xfer_partial): When performing a write, pass
756 writebuf to child_xfer_memory.
757
758 * target.c (target_read_string): Use target_read_memory instead of
759 target_xfer_memory.
760
761 2004-09-29 Andrew Cagney <cagney@gnu.org>
762
763 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
764 the address of status.
765
766 * infptrace.c (ptrace_wait): Mention problem with HPUX.
767 (kill_inferior): Inline ptrace_wait call.
768 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
769 * inftarg.c (child_wait): Inline ptrace_wait call.
770
771 * target.h (struct target_ops): Delete field to_post_wait.
772 (target_post_wait): Delete macro.
773 (child_post_wait): Delete declaration.
774 * target.c (update_current_target, update_current_target)
775 (debug_to_post_wait, setup_target_debug): Delete functions and
776 references.
777 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
778 * inftarg.c (child_post_wait): Delete.
779 (init_child_ops): Do not set to_post_wait.
780 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
781 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
782 * inf-child.c (inf_child_post_wait): Delete.
783 (inf_child_target): Do not set to_post_wait.
784 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
785 (inf_ptrace_target): Do not set to_post_wait.
786
787 * wince.c (child_ops): Delete.
788 * win32-nat.c (child_ops): Delete.
789
790 * inftarg.c (inftarg_set_find_memory_regions)
791 (inftarg_set_make_corefile_notes): Delete functions.
792 (_initialize_linux_nat): Inline calls.
793
794 * target.h (child_ops): Declare.
795 * inftarg.c (child_ops): Move from here ...
796 * target.c (child_ops): ... to here.
797 * wince.c (child_ops): Delete extern declaration.
798 * win32-nat.c (child_ops): Delete extern declaration.
799 * linux-nat.c (child_ops): Delete extern declaration.
800 * hpux-thread.c (child_ops): Delete extern declaration.
801
802 2004-09-28 Mark Kettenis <kettenis@gnu.org>
803
804 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
805
806 2004-09-28 Mark Kettenis <kettenis@gnu.org>
807
808 * configure.in: Only set host_makefile_frag when building a native
809 debugger.
810 * configure: Regenerate.
811
812 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
813 for OpenBSD ELF.
814
815 2004-09-28 Andrew Cagney <cagney@gnu.org>
816
817 Problem identified by Paul Hilfinger.
818 * Makefile.in (ada_lex_c): Define.
819 (ada-lex.o): Delete rule.
820
821 * linux-proc.c: Delete file.
822 * Makefile.in: Update.
823 * config/sparc/linux64.mh (NATDEPFILES):
824 * config/sparc/linux.mh (NATDEPFILES): Update.
825 * config/s390/s390.mh (NATDEPFILES): Update.
826 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
827 * config/powerpc/linux.mh (NATDEPFILES): Update.
828 * config/pa/linux.mh (NATDEPFILES): Update.
829 * config/mips/linux.mh (NATDEPFILES): Update.
830 * config/m68k/linux.mh (NATDEPFILES): Update.
831 * config/ia64/linux.mh (NATDEPFILES): Update.
832 * config/i386/linux64.mh (NATDEPFILES): Update.
833 * config/i386/linux.mh (NATDEPFILES): Update.
834 * config/arm/linux.mh (NATDEPFILES): Update.
835 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
836 * linux-nat.c: Update copyright. Include <sys/param.h>,
837 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
838 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
839 (O_LARGEFILE): Possibly define.
840 (_initialize_linux_nat, linux_proc_pending_signals)
841 (add_line_to_sigset, linux_proc_xfer_memory)
842 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
843 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
844 (struct linux_corefile_thread_data)
845 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
846 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
847
848 2004-09-16 Andrew Cagney <cagney@gnu.org>
849
850 * lin-lwp.c: Delete file.
851 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
852 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
853 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
854 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
855 (linux_nat_attach, detach_callback, linux_nat_detach)
856 (resume_callback, resume_clear_callback, linux_nat_resume)
857 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
858 (stop_wait_callback, linux_nat_has_pending, flush_callback)
859 (status_callback, running_callback, count_events_callback)
860 (select_singlestep_lwp_callback, select_event_lwp_callback)
861 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
862 (child_wait, stop_and_resume_callback, linux_nat_wait)
863 (kill_callback, kill_wait_callback, linux_nat_kill)
864 (linux_nat_create_inferior, linux_nat_mourn_inferior)
865 (linux_nat_xfer_memory, linux_nat_thread_alive)
866 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
867 (_initialize_linux_nat): New functions.
868 * Makefile.in: Update all dependencies.
869 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
870 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
871 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
872 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
873 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
874 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
875 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
876 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
877 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
878 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
879 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
880 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
881 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
882
883 2004-09-27 Mark Kettenis <kettenis@gnu.org>
884
885 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
886 config/i386/obsd64.mh (NAT_FILE): Remove variable.
887
888 * configure.in: Don't comment out NATDEPFILES in the generated
889 Makefile if NAT_FILE is unset.
890 * configure: Regenerate.
891
892 2004-09-27 Andrew Cagney <cagney@gnu.org>
893
894 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
895 (insert_step_resume_breakpoint): Delete.
896 (insert_step_resume_breakpoint_at_frame): New function.
897 (insert_step_resume_breakpoint_at_sal): New function.
898 (handle_inferior_event, step_into_function)
899 (insert_step_resume_breakpoint): Simplify by using same.
900
901 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
902
903 2004-09-26 Mark Kettenis <kettenis@gnu.org>
904
905 * fbsd-proc.c: Remove file.
906 * Makefile.in (fbsd-proc.o): Remove dependency.
907
908 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
909 code together.
910
911 * config/i386/nm-fbsd64.h: Remove file.
912 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
913
914 2004-09-26 Mark Kettenis <kettenis@gnu.org>
915
916 * amd64-nat.h: Update copyright year.
917 (amd64bsd_target): New prototype.
918 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
919 (amd64bsd_target): New function.
920 (amd64bsd_fetch_inferior_registers): Rename from
921 fetch_inferior_registers. Make static.
922 (amd64bsd_store_inferior_registers): Rename from
923 store_inferior_registers. Make static.
924 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
925 (_initialize_amd64fbsd_nat): Construct and add target vector.
926 * amd64nbsd-nat.o: Include "target.h".
927 (_initialize_amd64nbsd_nat): Construct and add target vector.
928 * amd64obsd-nat.c: Include "target.h".
929 (_initialize_amd64obsd_nat): Construct and add target vector.
930 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
931 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
932 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
933 fbsd-nat.o.
934 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
935 Remove infptrace.o and inftarg.o. Add inf-child.o and
936 inf-ptrace.o.
937 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
938 (amd64obsd-nat.o): Update dependencies.
939
940 2004-09-25 Mark Kettenis <kettenis@gnu.org>
941
942 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
943 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
944 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
945 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
946 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
947
948 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
949 Inline attach call.
950 (inf_ptrace_detach): Inline detach call.
951
952 * configure.in: Check for waddstr instead of mvwaddstr when
953 searching for curses library. Check for wborder.
954 * configure, config.in: Regenerate.
955 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
956 available.
957
958 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
959
960 2004-09-24 Robert Picco <Robert.Picco@hp.com>
961
962 Committed by Andrew Cagney.
963 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
964 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
965 configuration.
966 (fetch_register_using_p): Implement 'p' packet. Based on code by
967 Fernando Nasser.
968 (remote_fetch_registers): Call fetch_register_using_p.
969 (init_all_packet_configs, show_remote_cmd)
970 (_initialize_remote): Add p-packet.
971
972 2004-09-24 Mark Kettenis <kettenis@gnu.org>
973
974 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
975 instead of call_ptrace. Call wait directly instead of
976 ptrace_wait.
977 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
978 (inf_ptrace_wait): Inline ptrace_wait call.
979
980 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
981
982 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
983 rolled back instead.
984
985 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
986
987 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
988 the new argument order.
989
990 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
991
992 * MAINTAINERS: Remove "broken" from XStormy16 entry.
993 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
994 (struct gdbarch_tdep): Remove.
995 (struct xstormy16_frame_cache): New frame cache structure.
996 (xstormy16_register_byte, xstormy16_register_raw_size)
997 (xstormy16_reg_virtual_type, xstormy16_register_type)
998 (xstormy16_push_arguments, xstormy16_push_return_address)
999 (xstormy16_pop_frame, xstormy16_store_struct_return)
1000 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1001 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1002 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1003 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1004 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1005 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1006 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1007 (xstormy16_extract_return_value, xstormy16_store_return_value):
1008 Regcachify. Drop useless struct convention handling.
1009 (xstormy16_register_type, xstormy16_return_value)
1010 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1011 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1012 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1013 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1014 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1015 (xstormy16_unwind_dummy_id) : New functions.
1016 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1017 of xstormy16_scan_prologue.
1018 (xstormy16_frame_unwind): New frame_unwind structure.
1019 (xstormy16_frame_base): New frame_base structure.
1020 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1021 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1022
1023 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1024
1025 * language.c (language_gdbarch_post_init): Fix off-by one error.
1026
1027 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1028
1029 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1030 (struct dwarf2_offset_and_type): New.
1031 (set_die_type, reset_die_and_siblings_types, get_die_type)
1032 (offset_and_type_hash, offset_and_type_eq): New functions.
1033 (read_structure_type, read_enumeration_type, read_array_type)
1034 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1035 (read_tag_reference_type, read_tag_const_type)
1036 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1037 (read_typedef, read_base_type, read_subrange_type): Use
1038 set_die_type.
1039
1040 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1041
1042 * Makefile.in (dwarf2read.o): Update dependencies.
1043 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1044 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1045 and read_in_chain.
1046 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1047 mark, and has_form_ref_addr.
1048 (struct dwarf2_per_cu_data): New.
1049 (dwarf2_max_cache_age): New.
1050 (dwarf2_build_psymtabs_hard): Free cached compilation units
1051 after loading. Create and manage the list of compilation units.
1052 Remove unnecessary NULL initialization. Fix indentation.
1053 (psymtab_to_symtab_1): Initialize all of CU.
1054 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1055 (find_partial_die): Use dwarf2_find_containing_comp_unit
1056 and load_comp_unit.
1057 (free_stack_comp_unit): Update comments. Clear the per-cu
1058 pointer. Handle aging.
1059 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1060 (age_cached_comp_units, free_one_cached_comp_unit)
1061 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1062 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1063 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1064 (show_dwarf2_cmd): New.
1065 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1066 and "maint show dwarf2 max-cache-age".
1067 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1068 externs.
1069 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1070 global.
1071
1072 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1073
1074 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1075 and dwarf2_cu struct pointer as arguments. Change function to use
1076 obstack if provided and use dwarf2_cu to determine language-specific
1077 separator.
1078 (partial_die_parent_scope): Change comment to include java. Use
1079 new version of typename_concat instead of obconcat.
1080 (partial_die_full_name): Use typename_concat.
1081 (read_namespace): Ditto.
1082 (read_enumeration_type): Use typename_concat instead of obconcat.
1083 (new_symbol): Ditto.
1084 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1085 (guess_structure_name): Ditto.
1086 (read_subroutine_type): Ditto.
1087 (read_structure_type): Ditto.
1088 (is_vtable_name): Add Java support.
1089 (determine_class_name): Switch to new typename_concat call.
1090 (determine_prefix): Switch to new typename_concat call.
1091 * jv-exp.y (FuncStart): New pattern.
1092 (MethodInvocation): Add support for simple function calls. Change
1093 warning message for other forms of inferior call currently not
1094 supported.
1095 * valarith.c (value_subscript): Treat an array with upper-bound
1096 of -1 as unknown size.
1097
1098 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1099
1100 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1101 (lookup_partial_symtab): Use symtab_to_fullname.
1102
1103 2004-09-19 Jim Blandy <jimb@redhat.com>
1104
1105 * minsyms.c (lookup_minimal_symbol): Doc fix.
1106
1107 2004-09-20 Andrew Cagney <cagney@gnu.org>
1108
1109 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1110 CHILD_RESUME.
1111 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1112 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1113 KILL_INFERIOR.
1114 * infptrace.c: Update.
1115
1116 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1117
1118 * symtab.c (output_source_filename): Mark first argument as const.
1119 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1120 for "info sources" output.
1121
1122 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1123
1124 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1125 <machine/vmparam.h>.
1126 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1127 (register_u_addr): Remove prototype.
1128
1129 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1130
1131 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1132 (i386bsd_fetch_inferior_registers): Rename from
1133 fetch_inferior_registers. Make static.
1134 (i386bsd_store_inferior_registers): Rename from
1135 store_inferior_registers. Make static.
1136 (i386bsd_target): New function.
1137 * i386bsd-nat.h: New file.
1138 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1139 "i386bsd-nat.h".
1140 (i386fbsd_resume): Rename from child_resume. Make static.
1141 (_initialize_i386fbsd_nat): Construct and add target vector.
1142 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1143 (_initialize_i386nbsd_nat): Construct and add target vector.
1144 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1145 Remove defines.
1146 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1147 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1148 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1149 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1150 (LOADLIBES): New variable.
1151 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1152 inf-ptrace.o. Remove inftarg.o.
1153 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1154 inf-ptrace.o. Remove inftarg.o.
1155 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1156 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1157 (LOADLIBES): New variable.
1158 * Makefile.in (i386bsd_nat_h): New variable.
1159 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1160 dependencies.
1161
1162 * sparc64nbsd-tdep.c: Include "objfiles.h".
1163 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1164 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1165 svr4_lp64_fetch_link_map_offsets.
1166 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1167 "nbsd-tdep.h".
1168 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1169 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1170 svr4_lp64_fetch_link_map_offsets.
1171 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1172 dependencies.
1173
1174 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1175 * fbsd-nat.h: New file.
1176 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1177 (fbsd_nat_h): New variable.
1178 (fbsd-nat.o): New dependency.
1179
1180 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1181 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1182
1183 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1184 comment.
1185
1186 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1187
1188 * ada-exp.y (type_int): New function to add layer of abstraction
1189 around references to expression types.
1190 (type_long): Ditto.
1191 (type_long_long): Ditto.
1192 (type_float): Ditto.
1193 (type_double): Ditto.
1194 (type_long_double): Ditto.
1195 (type_char): Ditto.
1196 (type_system_address): Ditto.
1197 (simple_exp): Use type_* functions in place of builtin_*
1198 variables.
1199 (exp): Ditto.
1200 (write_var_from_name): Ditto.
1201 (write_object_renaming): Ditto.
1202 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1203 declaration.
1204 (build_ada_types): Remove, replacing with...
1205 (ada_language_arch_info): New function to initialize primitive
1206 type vector in language_arch_info.
1207 (ada_array_length): Remove use of builtin_type_ada_int.
1208 (value_pos_atr): Ditto.
1209 (ada_evaluate_subexp): Ditto.
1210 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1211 builtin_type_ada_long_long, builtin_type_ada_char,
1212 builtin_type_ada_float, builtin_type_ada_double,
1213 builtin_type_ada_long_double, builtin_type_ada_natural,
1214 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1215 (ada_builtin_types): Remove.
1216 (ada_language_defn): Remove entries for la_builtin_type_vector and
1217 string_char_type and use ada_language_arch_info.
1218 (_initialize_ada_language): Do type-vector initialization along
1219 the lines of c-lang.c.
1220 (ada_create_fundamental_type): Break up line.
1221 (ada_dump_symtab): Remove unused function.
1222 (enum ada_primitive_types): Define.
1223 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1224 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1225 builtin_type_ada_float, builtin_type_ada_double,
1226 builtin_type_ada_long_double, builtin_type_ada_natural,
1227 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1228 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1229 (processInt): Ditto.
1230 (processReal): Ditto.
1231 (name_lookup): Ditto.
1232 * ada-typeprint.c (print_range): Use builtin_type_int, not
1233 builtin_type_ada_int.
1234
1235 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1236
1237 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1238
1239 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1240 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1241 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1242 * configure.in: Improve checks for curses library by checking for
1243 mvwaddstr instead of initscr. Drop HP curses in favour of
1244 standard curses on HP-UX.
1245 * configure: Regenerated.
1246
1247 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1248
1249 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1250 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1251 Minor formatting changes.
1252 (empty_array): Slight rewrite for formatting.
1253 (emit_char,parse,ada_language_defn,build_ada_types,
1254 ada_is_exception_sym, _initialize_ada_language): Move
1255 definitions around.
1256 (ada_dump_symtab): Remove unused definition.
1257 (ada_maybe_exception_partial_symbol): Remove unused definition.
1258
1259 2004-09-16 Andrew Cagney <cagney@gnu.org>
1260
1261 * inf-child.c: Include "gdb_string.h".
1262 (inf_child_core_file_to_sym_file): Delete.
1263 (inf_child_target): Set to_fetch_registers and to_store_registers.
1264 * inf-ptrace.c: Include "gdb_string.h".
1265 * Makefile.in: Update all dependencies.
1266
1267 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1268 problem.
1269
1270 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1271
1272 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1273 call to heuristic_proc_desc. Remove code that became redundant
1274 as a consequence.
1275 (read_next_frame_reg): Remove special case for SP_REGNUM.
1276 (set_reg_offset): Fix small typo.
1277 (reset_saved_regs): New procedure.
1278 (mips32_heuristic_proc_desc): No longer compute a fake
1279 procedure descriptor. Compute the full frame cache instead.
1280 Some minor comment reformatting.
1281
1282 2004-09-14 Andrew Cagney <cagney@gnu.org>
1283
1284 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1285 maintainer.
1286
1287 * thread-db.c (thread_db_new_objfile): Assume that there is a
1288 child process.
1289
1290 2004-09-13 Jim Blandy <jimb@redhat.com>
1291
1292 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1293 so that its storage isn't referenced after its lifetime ends.
1294
1295 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1296 and never assigned to. Delete it, and the 'if (use_buffer)'
1297 clauses. Delete 'raw_buffer', since it is now unused.
1298
1299 2004-09-13 Andrew Cagney <cagney@gnu.org>
1300
1301 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1302 * configure: Re-generate.
1303 * nlm/Makefile.in (TAGS): Update.
1304 * Makefile.in (TAGS): Update.
1305 * config/vax/nbsd.mt (TM_FILE): Update.
1306 * config/sparc/vxworks.mt (TM_FILE): Update.
1307 * config/sparc/sol2.mt (TM_FILE): Update.
1308 * config/sparc/sol2-64.mt (TM_FILE): Update.
1309 * config/sparc/obsd64.mt (TM_FILE): Update.
1310 * config/sparc/obsd.mt (TM_FILE): Update.
1311 * config/sparc/nbsd64.mt (TM_FILE): Update.
1312 * config/sparc/nbsd.mt (TM_FILE): Update.
1313 * config/sparc/linux64.mt (TM_FILE): Update.
1314 * config/sparc/linux.mt (TM_FILE): Update.
1315 * config/sparc/fbsd.mt (TM_FILE): Update.
1316 * config/sh/wince.mt (TM_FILE): Update.
1317 * config/sh/nbsd.mt (TM_FILE): Update.
1318 * config/sh/linux.mt (TM_FILE): Update.
1319 * config/sh/embed.mt (TM_FILE): Update.
1320 * config/s390/s390.mt (TM_FILE): Update.
1321 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1322 * config/rs6000/rs6000.mt (TM_FILE): Update.
1323 * config/rs6000/aix4.mt (TM_FILE): Update.
1324 * config/powerpc/vxworks.mt (TM_FILE): Update.
1325 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1326 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1327 * config/powerpc/obsd.mt (TM_FILE): Update.
1328 * config/powerpc/nbsd.mt (TM_FILE): Update.
1329 * config/powerpc/linux.mt (TM_FILE): Update.
1330 * config/powerpc/aix.mt (TM_FILE): Update.
1331 * config/pa/obsd.mt (TM_FILE): Update.
1332 * config/pa/linux.mt (TM_FILE): Update.
1333 * config/pa/hppahpux.mt (TM_FILE): Update.
1334 * config/pa/hppa64.mt (TM_FILE): Update.
1335 * config/pa/hppa.mt (TM_FILE): Update.
1336 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1337 * config/mips/wince.mt (TM_FILE): Update.
1338 * config/mips/vxmips.mt (TM_FILE): Update.
1339 * config/mips/nbsd.mt (TM_FILE): Update.
1340 * config/mips/linux.mt (TM_FILE): Update.
1341 * config/mips/irix6.mt (TM_FILE): Update.
1342 * config/mips/irix5.mt (TM_FILE): Update.
1343 * config/mips/embed.mt (TM_FILE): Update.
1344 * config/m68k/vxworks68.mt (TM_FILE): Update.
1345 * config/m68k/st2000.mt (TM_FILE): Update.
1346 * config/m68k/os68k.mt (TM_FILE): Update.
1347 * config/m68k/obsd.mt (TM_FILE): Update.
1348 * config/m68k/nbsd.mt (TM_FILE): Update.
1349 * config/m68k/monitor.mt (TM_FILE): Update.
1350 * config/m68k/linux.mt (TM_FILE): Update.
1351 * config/m68k/cisco.mt (TM_FILE): Update.
1352 * config/ia64/linux.mt (TM_FILE): Update.
1353 * config/ia64/aix.mt (TM_FILE): Update.
1354 * config/ia64/ia64.mt (TM_FILE): Update.
1355 * config/i386/vxworks.mt (TM_FILE): Update.
1356 * config/i386/obsd64.mt (TM_FILE): Update.
1357 * config/i386/obsd.mt (TM_FILE): Update.
1358 * config/i386/nto.mt (TM_FILE): Update.
1359 * config/i386/nbsd64.mt (TM_FILE): Update.
1360 * config/i386/nbsd.mt (TM_FILE): Update.
1361 * config/i386/linux64.mt (TM_FILE): Update.
1362 * config/i386/linux.mt (TM_FILE): Update.
1363 * config/i386/i386sol2.mt (TM_FILE): Update.
1364 * config/i386/i386lynx.mt (TM_FILE): Update.
1365 * config/i386/fbsd64.mt (TM_FILE): Update.
1366 * config/i386/fbsd.mt (TM_FILE): Update.
1367 * config/i386/cygwin.mt (TM_FILE): Update.
1368 * config/h8300/h8300.mt (TM_FILE): Update.
1369 * config/frv/frv.mt (TM_FILE): Update.
1370 * config/cris/cris.mt (TM_FILE): Update.
1371 * config/arm/wince.mt (TM_FILE): Update.
1372 * config/arm/nbsd.mt (TM_FILE): Update.
1373 * config/arm/linux.mt (TM_FILE): Update.
1374 * config/arm/embed.mt (TM_FILE): Update.
1375 * config/alpha/nbsd.mt (TM_FILE): Update.
1376 * config/alpha/fbsd.mt (TM_FILE): Update.
1377 * config/alpha/alpha.mt (TM_FILE): Update.
1378 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1379 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1380
1381 Eliminate event_loop_p, always has the value 1.
1382 * defs.h (event_loop_p): Delete macro.
1383 * breakpoint.c (until_break_command): Simplify.
1384 * utils.c (prompt_for_continue): Simplify.
1385 * tracepoint.c (read_actions): Simplify.
1386 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1387 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1388 (set_prompt, init_main): Simplify.
1389 (init_signals, disconnect): Delete, unused.
1390 * remote.c (remote_async_resume)
1391 (extended_remote_async_create_inferior): Simplify.
1392 * mi/mi-interp.c (mi_input): Delete, unused.
1393 (mi_interpreter_resume, mi_command_loop): Simplify.
1394 * interps.c (current_interp_command_loop): Simplify.
1395 * infrun.c (proceed): Simplify.
1396 * infcmd.c (run_command, continue_command, step_1, jump_command)
1397 (until_command, advance_command, finish_command)
1398 (interrupt_target_command): Simplify.
1399 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1400
1401 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1402 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1403 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1404 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1405 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1406 * mips-tdep.c (mips_dump_tdep): Do not print same.
1407
1408 2004-09-12 Andrew Cagney <cagney@gnu.org>
1409
1410 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1411 const.
1412 * Makefile.in (valprint.o): Delete explict rule.
1413
1414 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1415 reported by Dave Anderson.
1416
1417 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1418
1419 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1420
1421 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1422 Andrew Cagney <cagney@gnu.org>
1423
1424 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1425 (mi_cmd_data_list_register_values)
1426 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1427 the register number computation.
1428
1429 2004-09-12 Andrew Cagney <cagney@gnu.org>
1430
1431 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1432 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1433 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1434 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1435 target.
1436 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1437 inf-ptrace.o and inf-child.o.
1438 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1439 * Makefile.in: Update dependencies.
1440
1441 2004-09-11 Andrew Cagney <cagney@gnu.org>
1442
1443 * language.c (hex_string, hex_string_custom): Move from here ...
1444 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1445 (CELLSIZE): Increase to 50.
1446 * language.h (hex_string, hex_string_custom): Move from here ...
1447 * defs.h: ... to here.
1448 * Makefile.in: Update all dependencies.
1449
1450 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1451
1452 * language.c (local_hex_format_custom): Remove.
1453 (local_hex_string): Rename to hex_string, use C format, and move to
1454 utils.c
1455 (local_hex_string_custom): Rename to hex_string_custom and change
1456 interface. Now uses C format. Move to utils.c
1457 (local_octal_format_custom): Remove.
1458 (local_decimal_format_custom): Remove.
1459 (unknown_language_defn): Remove language-specific number
1460 formatting entries.
1461 (auto_language_defn): Ditto.
1462 (local_language_defn): Ditto.
1463 * language.h (struct language_format_info): Delete declaration.
1464 (struct language_defn): Remove language_format_info fields
1465 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1466 (local_binary_format): Remove macro.
1467 (local_binary_format_prefix): Remove macro.
1468 (local_binary_format_specifier): Remove macro.
1469 (local_binary_format_suffix): Remove macro.
1470 (local_octal_format): Remove macro.
1471 (local_octal_format_prefix): Remove macro.
1472 (local_octal_format_specifier): Remove macro.
1473 (local_octal_format_suffix): Remove macro.
1474 (local_decimal_format): Remove macro.
1475 (local_decimal_format_prefix): Remove macro.
1476 (local_decimal_format_specifier): Remove macro.
1477 (local_decimal_format_suffix): Remove macro.
1478 (local_hex_format): Remove macro.
1479 (local_hex_format_prefix): Remove macro.
1480 (local_hex_format_specifier): Remove macro.
1481 (local_hex_format_suffix): Remove macro.
1482 (local_decimal_format_custom): Remove.
1483 (local_octal_format_custom): Remove.
1484 (local_hex_format_custom): Remove.
1485 (local_hex_string): Rename to hex_string and move to defs.h.
1486 (local_hex_string_custom): Rename to hex_string_custom, change
1487 interface, and move to defs.h.
1488 * utils.c: (int_string): New function.
1489 (hex_string): New function (from language.c).
1490 (hex_string_custom): New function (from language.c).
1491 (octal2str): New function.
1492 (decimal2str): Add width parameter.
1493 (paddr_u): Use new decimal2str interface.
1494 (paddr_d): Ditto.
1495 * defs.h (hex_string): Declare.
1496 (hex_string_custom): Declare.
1497 (int_string): Declare.
1498 * printcmd.c (print_scalar_formatted): Remove localized binary
1499 formatting.
1500 * valprint.c (print_longest): Use int_string.
1501 (print_floating): Use C hex format.
1502 (print_hex_chars): Ditto.
1503 (print_binary_chars): Remove language-specific formatting.
1504 (print_octal_chars): Use C octal format.
1505 (print_decimal_chars): Delocalize format.
1506 (print_decimal): Remove.
1507 * ada-lang.c (ada_language_defn): Remove language-specific number
1508 formatting entries.
1509 * p-lang.c (pascal_language_defn): Ditto.
1510 * c-lang.c (c_language_defn): Ditto.
1511 (cplus_language_defn): Ditto.
1512 (asm_language_defn): Ditto.
1513 (minimal_language_defn): Ditto.
1514 * f-lang.c (f_language_defn): Ditto.
1515 * jv-lang.c (java_language_defn): Ditto.
1516 * m2-lang.c (m2_language_defn): Ditto.
1517 * scm-lang.c (scm_language_defn): Ditto.
1518 * objc-lang.c (objc_language_defn): Ditto.
1519 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1520 new interface.
1521 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1522 * ui-out.c (ui_out_field_core_addr): Ditto.
1523 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1524 * exec.c (print_section_info): Ditto.
1525 * i387-tdep.c (print_i387_status_word): Ditto.
1526 (print_i387_control_word): Ditto.
1527 (i387_print_float_info): Ditto.
1528 * maint.c (maint_print_section_info): Ditto.
1529 * solib.c (info_sharedlibrary_command): Ditto.
1530 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1531 * symtab.c (print_msymbol_info): Ditto.
1532 * tracepoint.c (tracepoints_info): Ditto.
1533 * solib-frv.c (lm_base): Ditto.
1534 (frv_current_sos): Ditto.
1535 (enable_break2): Ditto.
1536 (enable_break): Ditto.
1537 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1538 (process_one_symbol): Ditto.
1539 * infcmd.c (program_info): Ditto.
1540 * mdebugread.c (parse_partial_symbols): Ditto.
1541 * symfile.c (add_symbol_file_command): Ditto.
1542 * cli/cli-cmds.c (edit_command): Ditto.
1543 (list_command): Ditto.
1544 * infcall.c (call_function_by_hand): Ditto.
1545 * remote-vx.c (vx_run_files_info): Ditto.
1546 (vx_wait): Ditto.
1547 (vx_attach): Ditto.
1548 (vx_detach): Ditto.
1549 (vx_kill): Ditto.
1550 * aix-thread.c (pdc_symbol_addrs): Ditto.
1551 (pdc_read_regs): Ditto.
1552 (pdc_write_regs): Ditto.
1553 (pdc_read_data): Ditto.
1554 (pdc_write_data): Ditto.
1555 * d10v-tdep.c (display_trace): Ditto.
1556 * rs6000-nat.c (find_toc_address): Ditto.
1557 * aix-thread.c: Don't include language.h.
1558 * buildsym.c: Ditto.
1559 * dbxread.c: Ditto.
1560 * mdebugread.c: Ditto.
1561 * rs6000-nat.c: Ditto.
1562 * buildsym.c (make_blockvector): Use renamed hex_string.
1563
1564 2004-09-10 Jason Molenda (jmolenda@apple.com)
1565
1566 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1567 chars after 'if' or 'while' commands in user-defined commands.
1568
1569 2004-09-08 Jim Blandy <jimb@redhat.com>
1570
1571 Fix bug reported and analyzed by Olivier Crete:
1572 * symfile.c (copy_section_addr_info): New function.
1573 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1574 original set of address arguments, instead of handwritten code
1575 that uses one length to allocate and a different length to
1576 initialize. Use make_cleanup_free_section_addr_info.
1577 * symfile.h (copy_section_addr_info): New declaration.
1578 * utils.c: #include "symfile.h".
1579 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1580 New functions.
1581 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1582 * Makefile.in (utils.o): Update dependencies.
1583
1584 2004-09-08 Andrew Cagney <cagney@gnu.org>
1585
1586 * thread-db.c (keep_thread_db): Delete.
1587 (thread_db_new_objfile, thread_db_create_inferior)
1588 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1589
1590 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1591
1592 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1593 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1594 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1595 (i386_frameless_signal_p): Remove prototype.
1596 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1597 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1598 I386_SSE_NUM_REGS.
1599 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1600 instead of FP0_REGNUM.
1601 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1602 of FP0_REGNUM and FPC_REGNUM.
1603
1604 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1605 (sunos_solib_create_inferior_hook): Don't call
1606 sunos_relocate_main_executable.
1607
1608 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1609 solib_svr4_fetch_link_map_offsets to
1610 svr4_ilp32_fetch_link_map_offsets.
1611 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1612 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1613 svr4_ilp32_fetch_link_map_offsets.
1614 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1615
1616 2004-09-07 Jim Blandy <jimb@redhat.com>
1617
1618 * frame.h (frame_register): Doc fix.
1619
1620 2004-09-07 Andrew Cagney <cagney@gnu.org>
1621
1622 * vx-share/wait.h: Delete #ifdef USG.
1623 * utils.c (request_quit): Ditto.
1624 * tui/tui.c (tui_reset): Ditto.
1625 * remote.c: Ditto.
1626 * remote-sds.c: Ditto.
1627 * remote-rdi.c: Ditto.
1628 * mdebugread.c: Ditto.
1629 * m68klinux-nat.c: Ditto.
1630 * infttrace.c: Ditto.
1631 * infptrace.c: Ditto.
1632 * i386v-nat.c: Ditto.
1633 * exec.c: Ditto.
1634 * dbxread.c: Ditto.
1635 * core-aout.c: Ditto.
1636
1637 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1638
1639 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1640 heuristic_proc_desc.
1641 (mips_insn32_frame_cache): Likewise.
1642
1643 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1644
1645 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1646 left behind by error.
1647
1648 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1649
1650 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1651 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1652
1653 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1654
1655 * config/rs6000/xm-aix4.h: Remove this file.
1656 * config/rs6000/aix4.mh (XM_FILE): Delete.
1657
1658 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1659
1660 * config/rs6000/xm-rs6000.h: Remove this file.
1661 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1662
1663 2004-09-03 Andrew Cagney <cagney@gnu.org>
1664
1665 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1666 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1667 only use.
1668
1669 * mips-tdep.c (temp_saved_regs): Delete.
1670 (set_reg_offset): Replace saved_regs parameter with this_cache.
1671 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1672 (mips32_heuristic_proc_desc): Add this_cache parameter.
1673 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1674 (after_prologue): Pass a NULL this_cache.
1675
1676 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1677 non-kernel trap prologues.
1678
1679 * mips-tdep.c (find_proc_desc): Delete function.
1680 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1681 simplify.
1682 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1683 mips_insn32_frame_cache.
1684
1685 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1686 Simplify as NEXT_FRAME is NULL.
1687 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1688
1689 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1690 local variable.
1691 (mips_skip_prologue): Update.
1692
1693 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1694 "cur_frame" parameter.
1695 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1696 (mips_insn32_frame_cache, find_proc_desc): Update
1697
1698 * config/vax/nm-obsd.h: Delete file.
1699 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1700 * config/vax/nm-nbsd.h: Delete file.
1701 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1702 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1703 * config/sh/nm-nbsd.h: Delete file.
1704 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1705 * config/rs6000/nm-rs6000ly.h: Delete file.
1706 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1707 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1708 * config/powerpc/nm-obsd.h: Delete file.
1709 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1710 * config/powerpc/nm-nbsd.h: Delete file.
1711 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1712 * config/pa/nm-obsd.h: Delete file.
1713 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1714 * config/mips/nm-nbsd.h: Delete file.
1715 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1716 * config/m88k/nm-obsd.h: Delete file.
1717 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1718 * config/m68k/nm-nbsd.h: Delete file.
1719 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1720 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1721 * config/i386/nm-nbsd.h: Delete file.
1722 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1723 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1724 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1725 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1726 * config/i386/nm-i386lynx.h: Delete file.
1727 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1728 * config/arm/nm-nbsd.h: Delete file.
1729 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1730 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1731
1732 * config/i386/tm-fbsd.h: Delete file.
1733 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1734 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1735
1736 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1737 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1738 * config/rs6000/aix4.mt (TM_FILE): Set to
1739 config/rs6000/tm-rs6000.h.
1740 * config/powerpc/tm-ppc-aix.h: Delete file.
1741 * config/powerpc/aix.mt (TM_FILE): Set to
1742 config/rs6000/tm-rs6000.h.
1743 * config/m68k/tm-linux.h: Delete file.
1744 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1745 * config/i386/tm-linux64.h: Delete file.
1746 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1747 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1748
1749 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1750 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1751 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1752 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1753 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1754 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1755 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1756 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1757 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1758
1759 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1760 gdb_host_cpu.
1761
1762 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1763
1764 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1765 Minor reformatting. Some code factoring.
1766
1767 2004-09-02 Andrew Cagney <cagney@gnu.org>
1768
1769 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1770 * config/vax/tm-nbsd.h: Delete file.
1771 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1772 * config/sparc/tm-vxworks.h: Delete file.
1773 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1774 * config/sparc/tm-nbsd.h: Delete file.
1775 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1776 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1777 * config/sparc/tm-linux.h: Delete file.
1778 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1779 * config/s390/tm-linux.h: Delete file.
1780 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1781 * config/pa/tm-bsd.h: Delete file.
1782 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1783 * config/m68k/tm-obsd.h: Delete file.
1784 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1785 * config/m68k/tm-nbsd.h: Delete file.
1786 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1787 * config/i386/tm-vxworks.h: Delete file.
1788 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1789 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1790 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1791 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1792 * config/i386/tm-nbsd.h: Delete file.
1793 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1794 * config/i386/tm-i386lynx.h: Delete file.
1795 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1796 * config/cris/tm-cris.h: Delete file.
1797
1798 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1799 * configure: Re-generate.
1800 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1801 * config/arm/tm-nbsd.h: Delete file.
1802
1803 * config/powerpc/tm-ppcle-sim.h: Delete.
1804 * config/powerpc/tm-ppcle-eabi.h: Delete.
1805 * config/powerpc/tm-nbsd.h: Delete.
1806 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1807 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1808 tm-ppcle-eabi.h.
1809
1810 * config/i386/nto.mh (NAT_FILE): Delete.
1811 * config/i386/nm-nto.h: Delete.
1812
1813 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1814 * config/m68k/tm-os68k.h: Ditto.
1815 * config/m68k/tm-monitor.h: Ditto.
1816 * config/m68k/tm-cisco.h: Ditto.
1817 * config/m68k/st2000.mt (TM_FILE): Delete.
1818 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1819 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1820 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1821 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1822
1823 * config/m68k/tm-st2000.h: Delete.
1824 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1825 * config/sparc/fbsd.mt (TM_FILE): Delete.
1826 * config/sparc/tm-fbsd.h: Delete.
1827
1828 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1829 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1830 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1831
1832 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1833 GDB_TM_FILE and GDB_XM_FILE.
1834 * gdbarch.c: Re-generate.
1835 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1836 quotes in macro definition.
1837 * configure.in: Re-generate.
1838
1839 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1840 validating architecture methods.
1841 * gdbarch.c: Re-generate.
1842
1843 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1844 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1845 GDB_MULTI_ARCH_PARTIAL.
1846 * gdbarch.h: Re-generate.
1847
1848 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1849 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1850 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1851 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1852 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1853 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1854 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1855 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1856 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1857 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1858 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1859 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1860
1861 2004-09-01 Andrew Cagney <cagney@gnu.org>
1862
1863 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1864 and main_func_highpc.
1865 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1866 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1867 * nlmread.c (nlm_symfile_read): Update.
1868
1869 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1870
1871 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1872 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1873 (find_proc_desc): Remove dead code.
1874
1875 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1876
1877 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1878
1879 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1880
1881 * observer.sh: Add struct so_list declaration.
1882 * Makefile.in: Add dependencies on observer.h for solib.c and
1883 breakpoint.c.
1884 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1885 function.
1886 (_initialize_breakpoint): Register
1887 disable_breakpoints_in_unloaded_shlib as an observer of the
1888 "solib unloaded" observation event.
1889 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1890 call decode_line_1 so unfound breakpoint errors are silent.
1891 * solib.c (update_solib_list): When a solib is discovered to have
1892 been unloaded by the program, notify all observers of the
1893 "solib unloaded" observation event.
1894
1895 2004-09-01 Andrew Cagney <cagney@gnu.org>
1896
1897 * frame.c: Include "objfiles.h".
1898 (inside_main_func): New function.
1899 (get_prev_frame): Use new inside_main_func.
1900 * Makefile.in (frame.o): Update dependencies.
1901 * defs.h (inside_main_func): Delete declaration.
1902 * blockframe.c (inside_main_func): Delete function.
1903
1904 2004-08-31 Jim Blandy <jimb@redhat.com>
1905
1906 * dwarf2read.c (is_vtable_name): New function, based on logic from
1907 read_structure_type, but passing the correct length to strncmp,
1908 and using 'sizeof' instead of 'strlen'.
1909 (read_structure_type): Call it.
1910
1911 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1912
1913 * config/powerpc/aix.mh: Add comment.
1914
1915 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1916
1917 * MAINTAINERS: Add self to Write-After-Approval.
1918
1919 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1920
1921 * MAINTAINERS: Add self to Write-After-Approval.
1922
1923 2004-08-30 Andrew Cagney <cagney@gnu.org>
1924
1925 Fix PR breakpoints/1757.
1926 * infrun.c (struct execution_control_state): Replace
1927 remove_breakpoints_on_following_step with
1928 step_after_step_resume_breakpoint.
1929 (init_execution_control_state): Update.
1930 (handle_inferior_event): For signals, when stepping off a
1931 breakpoint, set step_after_step_resume_breakpoint. When
1932 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1933 (keep_going): Delete code handling
1934 remove_breakpoints_on_following_step.
1935
1936 2004-08-29 David Lecomber <david@streamline-computing.com>
1937
1938 Fix PR gdb/648
1939 * language.h (enum array_ordering): New enum.
1940 * language.h (struct language_defn): New la_array_ordering
1941 attribute.
1942 * language.c (unknown_language_defn, auto_language_defn)
1943 (local_language_defn): Ditto.
1944 * ada-lang.c (ada_language_defn): Ditto.
1945 * c-lang.c (c_language_defn, cplus_language_defn)
1946 (asm_language_defn, minimal_language_defn): Ditto.
1947 * f-lang.c (f_language_defn): Ditto.
1948 * jv-lang.c (java_language_defn): Ditto.
1949 * m2-lang.c (f_language_defn): Ditto.
1950 * objc-lang.c (objc_language_defn): Ditto.
1951 * p-lang.c (pascal_language_defn): Ditto.
1952 * scm-lang.c (scm_language_defn): Ditto.
1953 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1954 oriented large to small in type structure.
1955 * dwarf2read.c (read_array_order): New function.
1956 (read_array_type): Use read_array_order to check row/column
1957 major ordering.
1958
1959 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1960
1961 * target.c (target_resize_to_sections): Check
1962 current_target.to_sections for an old value when updating.
1963
1964 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1965
1966 * procfs.c (dbx_link_bpt_addr): New static global variable.
1967 (dbx_link_shadow_contents): New static global variable.
1968 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1969 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1970 if we just hit it.
1971 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1972 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1973 from run to run.
1974 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1975 after the inferior has been forked.
1976 (remove_dbx_link_breakpoint): New function.
1977 (dbx_link_addr): New function.
1978 (insert_dbx_link_bpt_in_file): New function.
1979 (insert_dbx_link_bpt_in_region): New function.
1980 (insert_dbx_link_breakpoint): New function.
1981 (proc_trace_syscalls_1): New function, extracted from
1982 proc_trace_syscalls.
1983 (proc_trace_syscalls): Replace extract code by call to
1984 proc_trace_syscalls_1.
1985 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1986 is no longer valid.
1987
1988 2004-08-25 Jim Blandy <jimb@redhat.com>
1989
1990 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1991
1992 2004-08-25 Andrew Cagney <cagney@gnu.org>
1993
1994 * infrun.c (struct execution_control_state): Delete field
1995 "stepping_through_sigtramp".
1996 (init_execution_control_state): Do not set same.
1997 (context_switch): Do not pass same to save_infrun_state and
1998 load_infrun_state.
1999 * gdbthread.h (struct thread_info): Delete field
2000 stepping_through_sigtramp.
2001 (save_infrun_state, load_infrun_state): Delete parameter
2002 stepping_through_sigtramp.
2003 * thread.c (load_infrun_state, save_infrun_state): Update.
2004
2005 * infrun.c: Re-indent. Move expression operators to the beginning
2006 of the line. Remove long disabled #if 0 code.
2007
2008 2004-08-24 Andrew Cagney <cagney@gnu.org>
2009
2010 * doublest.h (floatformat_ieee_quad): Rename
2011 floatformat_ia64_quad.
2012 * doublest.c (floatformat_ieee_quad): Rename
2013 floatformat_ia64_quad.
2014 (_initialize_doublest): Update.
2015
2016 2004-08-24 Jim Blandy <jimb@redhat.com>
2017
2018 * dwarf2expr.h (struct dwarf_expr_context): New members
2019 'num_pieces' and 'pieces', for returning the result of an
2020 expression that uses DW_OP_piece.
2021 (struct dwarf_expr_piece): New struct type.
2022 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2023 pieces.
2024 (free_dwarf_expr_context): Free pieces, if any.
2025 (add_piece): New function.
2026 (execute_stack_op): Implement DW_OP_piece.
2027 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2028 expression is a list of pieces, print an error message.
2029 (dwarf2_loc_desc_needs_frame): If the expression yields
2030 pieces, and any piece is in a register, then we need a frame.
2031
2032 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2033 the stack until we've decided what sort of result the evaluation
2034 has produced. Use separate variables, with more specific names.
2035
2036 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2037
2038 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2039 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2040 (arm_netbsd_init_abi_common): Register them.
2041
2042 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2043
2044 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2045
2046 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2047 safe_frame_unwind_memory instead of target_read_memory.
2048
2049 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2050 Reorder includes.
2051 (fetch_register, store_register): Remove prototypes.
2052 (child_resume): Reorganize code and comments such that it is
2053 grouped a bit more logically.
2054 (attach): Explicitly compare errno against 0.
2055 (detach): Likewise. Use perror_with_name instead of
2056 print_sys_errmsg.
2057 * Makefile.in (infptrace.o): Update dependencies.
2058
2059 * ia64-linux-nat.c: Update copyright year.
2060 (fetch_debug_register, store_debug_register)
2061 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2062 PTRACE_TYPE_ARG3.
2063 * config/ia64/nm-linux.h: Update copyright year.
2064 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2065
2066 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2067 from CORE_ADDR to struct frame_info *. Use
2068 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2069 (amd64_linux_sigtramp_p): Adjust for changed signature of
2070 and64_linux_sigtramp_start
2071
2072 * gdb_ptrace.h: GNU/Linux.
2073
2074 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2075 Remove defines.
2076
2077 * infptrace.c: Include "gdb_assert.h".
2078 (PTRACE_XFER_TYPE): Remove define.
2079 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2080 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2081 Tweak comment.
2082 (fetch_inferior_registers, store_inferior_registers): Remove
2083 redundant culry braces. Tweak comment. s/regno/regnum.
2084 * Makefile.in (infptrace.o): Update dependencies.
2085
2086 * configure.in: Change test for return type of ptrace to default
2087 to `long' instead of `int'.
2088 * configure: Regenerate.
2089
2090 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2091
2092 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2093
2094 * configure.in: Check for ttrace function.
2095 * configure, config.in: Regenerate.
2096
2097 * gdb_ptrace.h: New file.
2098 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2099 <sys/ptrace.h>.
2100 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2101 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2102 (attach): Don't define PT_ATTACH.
2103 (detach): Don't define PT_DETACH.
2104 * Makefile.in (gdb_ptrace_h): New variable.
2105 (infptrace.o): Update dependencies.
2106
2107 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2108
2109 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2110 instead of `int' if not already defined.
2111 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2112 PTRACE_TYPE_ARG3.
2113 * infptrace.c (call_ptrace): Revert change that replaced
2114 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2115
2116 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2117
2118 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2119 Remove defines.
2120
2121 * linux-nat.c (kill_inferior): Add missing third and fourth
2122 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2123
2124 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2125 PTRACE_TYPE_RET.
2126
2127 * proc-why.c (proc_prettyfprint_why): Fix format string.
2128
2129 * solib-osf.c (osf_current_sos): Remove unsused label.
2130
2131 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2132 curses headers.
2133 * configure, config.in: Regenerate.
2134 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2135 <ncurses/ncurses.h>.
2136
2137 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2138 * config/nm-nbsd.h: Update copyright year.
2139 (PTRACE_ARG3_TYPE): Remove define.
2140
2141 * sparc-nat.c (fetch_inferior_registers)
2142 (store_inferior_registers, sparc_xfer_wcookie):
2143 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2144
2145 * alphabsd-nat.c (fetch_inferior_registers):
2146 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2147 PTRACE_TYPE_ARG3.
2148 * amd64bsd-nat.c (fetch_inferior_registers)
2149 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2150 PTRACE_TYPE_ARG3.
2151 * armnbsd-nat.c: Update copyright year.
2152 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2153 (store_register, store_regs, store_fp_register, store_fp_regs):
2154 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2155 * hppabsd-nat.c (fetch_inferior_registers)
2156 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2157 PTRACE_TYPE_ARG3.
2158 * i386bsd-nat.c (fetch_inferior_registers)
2159 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2160 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2161 * m68kbsd-nat.c (fetch_inferior_registers)
2162 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2163 PTRACE_TYPE_ARG3.
2164 * m88kbsd-nat.c (fetch_inferior_registers)
2165 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2166 PTRACE_TYPE_ARG3.
2167 * mipsnbsd-nat.c: Update copyright year.
2168 (fetch_inferior_registers, store_inferior_registers):
2169 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2170 * ns32knbsd-nat.c: Update copyright year.
2171 (fetch_inferior_registers, store_inferior_registers):
2172 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2173 * ppcnbsd-nat.c (fetch_inferior_registers):
2174 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2175 PTRACE_TYPE_ARG3.
2176 * ppcobsd-nat.c (fetch_inferior_registers):
2177 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2178 PTRACE_TYPE_ARG3.
2179 * shnbsd-nat.c: Update copyright year.
2180 (fetch_inferior_registers, store_inferior_registers):
2181 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2182 * vaxbsd-nat.c (fetch_inferior_registers)
2183 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2184 PTRACE_TYPE_ARG3.
2185
2186 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2187 PTRACE_TYPE_ARG3.
2188 * infptrace.c (call_ptrace, child_resume, attach, detach)
2189 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2190 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2191 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2192 PTRACE_TYPE_ARG3.
2193
2194 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2195
2196 * defs.h: Remove out-of-date comment.
2197 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2198 [!GETENV_PROVIDED] (getenv): Remove prototype.
2199
2200 * standalone.c: Remove file.
2201 * Makefile.in (standalone.o): Remove dependency.
2202
2203 * i386-linux-nat.c (dummy_sse_values): Remove function and
2204 prototype.
2205 (i386_linux_dr_get): Fix typo in comment.
2206 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2207
2208 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2209
2210 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2211 from declaration.
2212 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2213 from definition.
2214
2215 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2216
2217 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2218 parenthesis in definition.
2219 * configure: Regenerated.
2220
2221 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2222
2223 * PROBLEMS: Mention build/1411.
2224
2225 2004-08-09 Robert Millan <robertmh@gnu.org>
2226
2227 Committed by Nathanael Nerode.
2228 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2229 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2230
2231 2004-08-12 Andrew Cagney <cagney@gnu.org>
2232
2233 * NEWS: Mention fixes in GDB 6.2.1.
2234 * PROBLEMS: Remove mention of mips-irix.
2235
2236 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2237
2238 * config/powerpc/xm-aix.h: Delete.
2239 * config/powerpc/aix.mh (MH_FILE): Remove.
2240 * config/powerpc/aix432.mh (MH_FILE): Remove.
2241
2242 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2243
2244 * config/powerpc/aix.mh: Remove obsolete comment.
2245 * config/powerpc/aix432.mh: Likewise.
2246
2247 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2248
2249 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2250
2251 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2252
2253 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2254 this file is now empty.
2255 * config/xm-aix4.h: Remove, this file is no longer included
2256 anywhere.
2257
2258 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2259
2260 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2261 that file is now empty.
2262 (termdef): Remove prototype, function no longer used.
2263
2264 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2265
2266 * doc/gdbint.texinfo (Host Definition): Remove documentation
2267 for USE_O_NOCTTY, no longer used.
2268 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2269 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2270
2271 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2272
2273 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2274 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2275 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2276
2277 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2278
2279 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2280 instead of FIVE_ARG_PTRACE.
2281
2282 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2283 (new_tty): Use O_NOCTTY unconditionally.
2284
2285 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2286
2287 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2288 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2289 fflush on stdout.
2290
2291 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2292
2293 * xcoff_symfile_finish: Replace last call to xmfree by call
2294 to xfree.
2295
2296 2004-08-10 Andrew Cagney <cagney@gnu.org>
2297
2298 * main.c (captured_main): Delete call to init_malloc.
2299 * defs.h (init_malloc): Delete declaration.
2300 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2301 (init_malloc): Delete functions.
2302
2303 * defs.h (xmfree): Delete.
2304 * utils.c (xmfree): Delete function.
2305 (xfree): Inline calls to xmfree and mfree.
2306 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2307 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2308 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2309 * somread.c (som_symfile_finish): Ditto.
2310 * objfiles.c (allocate_objfile, free_objfile):
2311 * nlmread.c (nlm_symfile_finish): Ditto.
2312 * hpread.c (hpread_symfile_finish): Ditto.
2313 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2314 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2315 * coffread.c (coff_symfile_finish): Ditto.
2316
2317 * defs.h (xmcalloc): Delete declaration.
2318 * utils.c (xmcalloc): Delete.
2319 (xcalloc): Inline calls to xmcalloc and mcalloc.
2320 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2321 xcalloc and xfree.
2322 * symtab.c (create_demangled_names_hash): Ditto.
2323
2324 * defs.h (xmrealloc): Delete.
2325 * utils.c (xmrealloc): Delete.
2326 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2327 * symmisc.c (extend_psymbol_list): Use xrealloc.
2328 * source.c (find_source_lines): Ditto.
2329 * hpread.c (hpread_lookup_type): Ditto.
2330 * dbxread.c (add_bincl_to_list): Ditto.
2331
2332 * utils.c (xmmalloc): Delete.
2333 (xmalloc): Inline xmmalloc and mmalloc calls.
2334 (msavestring): Use xmalloc.
2335 * defs.h (xmmalloc): Delete declaration.
2336 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2337 xmmalloc.
2338 * symmisc.c (extend_psymbol_list): Ditto.
2339 * symfile.c (init_psymbol_list): Ditto.
2340 * source.c (find_source_lines): Ditto.
2341 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2342 * elfread.c (elf_symtab_read): Ditto.
2343 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2344 * coffread.c (coff_symfile_init): Ditto.
2345
2346 2004-08-10 David Carlton <carlton@bactrian.org>
2347
2348 * MAINTAINERS: Remove David Carlton from c++ testsuite
2349 maintainers.
2350
2351 2004-08-10 Jerome Guitton <guitton@gnat.com>
2352
2353 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2354 print a line feed before the prompt.
2355
2356 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2357
2358 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2359
2360 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2361
2362 General cleanup of the AIX xm include file:
2363 * config/xm-aix4.h (fd_set): Remove undefine.
2364 Remove include of <sys/select.h>.
2365 (HAVE_TERMIO): Remove define.
2366 (USG): Likewise.
2367 (NULL): Remove redefine.
2368 (alloca): Remove #pragma.
2369 (vfork): Remove define.
2370 (termdef): Remove.
2371 (SIGWINCH_HANDLER): Remove.
2372 (SIGWINCH_HANDLER_BODY): Remove.
2373
2374 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2375
2376 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2377 GDB_OSABI_OPENBSD_ELF.
2378
2379 2004-08-07 Robert Millan <robertmh@gnu.org>
2380
2381 * bsd-kvm.c: Check for nlist.h before including it.
2382
2383 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2384
2385 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2386 sigcontext' offset consistency checks for ancient BSD.
2387
2388 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2389
2390 * configure.in: Check for <sys/types.h>. Check return and
2391 argument types of ptrace.
2392 * configure, config.in: Regenerate.
2393
2394 2004-08-09 Jim Blandy <jimb@redhat.com>
2395
2396 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2397 rs6000_register_sim_regno): Doc fixes.
2398
2399 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2400
2401 * mips-tdep.c: Include "floatformat.h".
2402 (n32n64_floatformat_always_valid): New function.
2403 (floatformat_n32n64_long_double_big): New constant.
2404 (mips_gdbarch_init): Set size and format of long double
2405 for N32 and N64 ABIs.
2406 * Makefile.in (mips-tdep.o): Update dependencies.
2407
2408 2004-08-08 Andrew Cagney <cagney@gnu.org>
2409
2410 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2411 print. Improve script's error messages.
2412 * gdbarch.h: Re-generate.
2413
2414 * gdbarch.sh (pformat): New function.
2415 (float_format, double_format, long_double_format): List with bit
2416 members. Use pformat when printing.
2417 * gdbarch.c, gdbarch.h: Re-generate.
2418
2419 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2420
2421 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2422 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2423 (ppcnbsd_supply_pcb): New function.
2424 (_initialize_ppcnbsd_nat): New prototype and function.
2425 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2426 (LOADLIBES): New variable.
2427 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2428
2429 2004-08-08 Andrew Cagney <cagney@gnu.org>
2430
2431 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2432 (builtin_type_ieee_double, builtin_type_ia64_quad)
2433 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2434 BE/LE floating-point types.
2435 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2436 (builtin_type_ieee_double, builtin_type_ia64_quad)
2437 (builtin_type_ia64_spill): Declare.
2438 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2439 (floatformat_ieee_double, floatformat_arm_ext)
2440 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2441 of LE/BE floatformats.
2442 * doublest.h: (struct floatformat, floatformat_ieee_single)
2443 (floatformat_ieee_double, floatformat_arm_ext)
2444 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2445
2446 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2447
2448 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2449
2450 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2451 instead of regcache_raw_supply when storing the registers.
2452
2453 * i386gnu-nat.c: Update copyright year.
2454 (gnu_store_registers): Don't use deprecated_registers and
2455 deprecated_registers_valid. Use regcache_valid_p and
2456 regcache_raw_supply instead.
2457
2458 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2459 frame_pc_unwind.
2460
2461 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2462 variables. Incapitalized "process".
2463
2464 * configure.in: Add cursesX to the list of possible curses libs.
2465 Add cursesX.h to the list of possible curses headers.
2466 * configure, config.in: Regenerate.
2467
2468 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2469
2470 * configure.in: Test for struct lwp in <sys/lwp.h>.
2471 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2472 the offset of l_addr in struct lwp.
2473
2474 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2475
2476 * bsd-kvm.c: Include "gdbcore.h"
2477 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2478
2479 2004-08-07 Andrew Cagney <cagney@gnu.org>
2480
2481 * gdbtypes.c (build_flt, build_complex): New functions.
2482 (gdbtypes_post_init): Use.
2483
2484 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2485
2486 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2487 through to builtin_type_uint128.
2488
2489 * c-exp.y: Use builtin_type function to obtain builtin types.
2490
2491 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2492 builtin_uint128.
2493 * gdbtypes.c (gdbtypes_post_init): Update.
2494 (build_gdbtypes): Move initialization of builtin_type_int0
2495 through to builtin_type_uint128 from here ...
2496 (_initialize_gdbtypes): ... to here.
2497 * d10v-tdep.c (d10v_register_type): Update.
2498
2499 * doublest.c: Update copyright.
2500 (floatformat_from_length): Call error when floatformat is NULL.
2501 (extract_floating_by_length): Remove NULL fmt check.
2502 (store_floating_by_length): Ditto.
2503
2504 2004-08-07 Andrew Cagney <cagney@gnu.org>
2505
2506 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2507 that the register is valid.
2508
2509 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2510
2511 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2512 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2513 struct frame_info *. Use safe_frame_unwind_memory instead of
2514 deprecated_read_memory_nobpt.
2515 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2516 changed signature of i386_linux_sigtramp_start and
2517 i386_linux_rt_sigtramp_start.
2518
2519 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2520 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2521 instead of deprecated_read_memory_nobpt.
2522 (i386nbsd_sigtramp_p): Adjust for changed signature of
2523 i386nbsd_sigtramp_offset.
2524
2525 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2526 safe_frame_unwind_memory instead of target_read_memory.
2527
2528 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2529 !NO_SYS_FILE.
2530 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2531 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2532 (_initialize_kernel_u_addr): Remove prototype and function.
2533 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2534 !NO_SYS_FILE.
2535 * xcoffread.c: Likewise.
2536
2537 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2538
2539 * vax-nat.c: New file.
2540 * vaxbsd-nat.c: Tweak comment.
2541 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2542 vaxnbsd-tdep.c.
2543 (vax-nat.o): New dependency.
2544 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2545 (vax-*-ultrix2*): Remove.
2546 * config/vax/vax.mh: New file.
2547 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2548 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2549 (vax_register_u_addr): New prototype.
2550 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2551 * config/vax/vaxult2.mh: Remove file.
2552 * config/vax/vaxult.mh: Remove file.
2553 * config/vax/vaxbsd.mh: Remove file.
2554 * config/vax/vax.mt (TM_FILE): Remove.
2555 * config/vax/tm-vaxbsd.h: Remove file.
2556
2557 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2558
2559 * aix-thread.c (get_signaled_thread): New function.
2560 (iter_trap): Delete, no longer used.
2561 (iter_tid): New function.
2562 (pd_update): Find the thread that received the SIGTRAP signal
2563 by first locating the kernel thread, and then finding its
2564 associated thread.
2565
2566 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2567
2568 * lin-lwp.c (child_wait): Continue inferior after processing
2569 PTRACE_EVENT_CLONE event.
2570
2571 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2572
2573 * MAINTAINERS: Add self to Write-After-Approval.
2574
2575 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2576
2577 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2578 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2579
2580 2004-08-05 Andrew Cagney <cagney@gnu.org>
2581
2582 * config/xm-sysv4.h: Delete file.
2583 * config/mips/xm-irix5.h: Delete file.
2584 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2585 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2586 * config/ia64/xm-aix.h: Delete file.
2587 * config/ia64/aix.mh (XM_FILE): Delete.
2588 * config/pa/xm-hppah.h: Delete file.
2589 * config/pa/hpux11w.mh (XM_FILE): Delete.
2590 * config/pa/hpux11.mh (XM_FILE): Delete.
2591 * config/pa/hpux1020.mh (XM_FILE): Delete.
2592 * config/pa/hppahpux.mh (XM_FILE): Delete.
2593
2594 * config/alpha/xm-alphalinux.h: Delete file.
2595 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2596 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2597 * config/alpha/xm-alphaosf.h: Delete file.
2598 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2599 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2600 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2601 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2602
2603 * config/i386/xm-i386v.h: Delete file.
2604 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2605 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2606 * config/i386/xm-i386sco.h: Delete file.
2607 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2608 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2609 * config/i386/xm-i386v4.h: Delete file.
2610 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2611 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2612 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2613 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2614
2615 * config/vax/xm-vax.h: Delete file.
2616 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2617 * config/vax/xm-vaxult2.h: Delete file.
2618 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2619 * config/vax/vaxult2.mh (XM_FILE): Delete.
2620 * config/vax/xm-vaxult.h: Delete file.
2621 * config/vax/vaxult.mh (XM_FILE): Delete.
2622 * config/vax/xm-vaxbsd.h: Delete file.
2623 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2624
2625 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2626 * gdbarch.h, gdbarch.c: Re-generate.
2627 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2628 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2629 * frame.h: Delete deprecated_read_fp from comments.
2630 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2631 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2632
2633 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2634
2635 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2636 trampoline in OpenBSD 3.5-current.
2637
2638 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2639 SSE registers.
2640
2641 * Makefile.in: Remove embedded page breaks.
2642
2643 2004-08-04 Jim Blandy <jimb@redhat.com>
2644
2645 * regcache.c (regcache_raw_read): Assert that, after calling
2646 target_fetch_registers, the register we're reading is cached.
2647
2648 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2649 a call to 'internal_error', with a more helpful error message.
2650 * rs6000-tdep.c (e500_pseudo_register_read,
2651 e500_pseudo_register_write, rs6000_store_return_value): Same.
2652
2653 2004-08-04 Andrew Cagney <cagney@gnu.org>
2654
2655 * Makefile.in: Update dependencies.
2656
2657 2004-08-04 Jim Blandy <jimb@redhat.com>
2658
2659 Change the layout of the PowerPC E500 raw register cache to allow
2660 the lower 32-bit halves of the GPRS to be their own raw registers,
2661 not pseudoregisters.
2662 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2663 add ppc_ev0_upper_regnum flag.
2664 * rs6000-tdep.c: #include "reggroups.h".
2665 (spe_register_p): Recognize the ev upper half registers as SPE
2666 registers.
2667 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2668 registers.
2669 (e500_move_ev_register): New function.
2670 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2671 vector registers are the pseudo-registers now, formed by splicing
2672 together the gprs and the upper-half registers.
2673 (e500_register_reggroup_p): New function.
2674 (P): Macro deleted.
2675 (P8, A4): New macro.
2676 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2677 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2678 macros.
2679 (registers_e500): Rearrange register set so that the raw register
2680 set contains 32-bit GPRs and upper-half registers, and the SPE
2681 vector registers become pseudo-registers.
2682 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2683 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2684 register numbers are now the same for the E500 as they are for
2685 other PowerPC variants. Register e500_register_reggroup_p as the
2686 register group function for the E500.
2687 * Makefile.in (rs6000-tdep.o): Update dependencies.
2688
2689 Adapt PPC E500 native support to the new raw regcache layout.
2690 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2691 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2692 (fetch_spe_register, store_spe_register): Handle fetching/storing
2693 all the SPE registers at once, if regno == -1. These now take
2694 over the job of fetch_spe_registers and store_spe_registers.
2695 (fetch_spe_registers, store_spe_registers): Deleted.
2696 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2697 unconditionally; they're always raw. Fetch/store SPE upper half
2698 registers, if present, instead of ev registers.
2699 (fetch_register, store_register): Remove sanity checks: gprs are
2700 never pseudo-registers now, so we never need to even mention any
2701 registers that are ever pseudoregisters.
2702
2703 Use a fixed register numbering when communicating with the PowerPC
2704 simulator.
2705 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2706 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2707 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2708 New functions.
2709 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2710 init_sim_regno_table.
2711 * Makefile.in (gdb_sim_ppc_h): New variable.
2712 (rs6000-tdep.o): Update dependencies.
2713
2714 2004-08-02 Andrew Cagney <cagney@gnu.org>
2715
2716 * cris-tdep.c (cris_register_size): Restore function, still used
2717 locally.
2718
2719 * gdbarch.sh (deprecated_target_read_fp)
2720 (deprecated_frame_locals_address, deprecated_frame_args_address)
2721 (deprecated_frame_chain_valid, deprecated_frame_chain)
2722 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2723 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2724 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2725 * gdbarch.h, gdbarch.c: Re-generate.
2726 * regcache.c (deprecated_read_fp): Do not call
2727 DEPRECATED_TARGET_READ_FP_P.
2728 * infcmd.c (default_print_registers_info): Do not call
2729 DEPRECATED_DO_REGISTERS_INFO.
2730 * frame-base.c (default_frame_locals_address): Do not call
2731 DEPRECATED_FRAME_LOCALS_ADDRESS.
2732 (default_frame_args_address): Do not call
2733 DEPRECATED_FRAME_ARGS_ADDRESS.
2734
2735 * gdbarch.sh (deprecated_register_raw_size)
2736 (deprecated_register_virtual_size:int): Delete.
2737 * gdbarch.h, gdbarch.c: Re-generate.
2738 * cris-tdep.c (cris_register_size): Delete.
2739 (cris_gdbarch_init): Update.
2740 * alpha-tdep.c (alpha_register_raw_size)
2741 (alpha_register_virtual_size): Delete.
2742 (alpha_gdbarch_init): Update.
2743
2744 * gdbarch.sh (deprecated_register_virtual_type)
2745 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2746 (deprecated_dummy_write_sp): Delete.
2747 * gdbarch.h, gdbarch.c: Re-generate.
2748
2749 * gdbarch.sh (deprecated_register_bytes): Delete.
2750 * gdbarch.h, gdbarch.c: Re-generate.
2751 * regcache.c (deprecated_register_bytes): New function.
2752 * regcache.h (deprecated_register_bytes): Declare.
2753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2754 * v850-tdep.c (v850_gdbarch_init): Update.
2755 * sh64-tdep.c (sh64_gdbarch_init): Update.
2756 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2757 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2758 * mcore-tdep.c (mcore_gdbarch_init): Update.
2759 * cris-tdep.c (cris_gdbarch_init): Update.
2760 * arm-tdep.c (arm_gdbarch_init): Update.
2761 * remote.c (init_remote_state): Update.
2762 * remote-vx.c (vx_prepare_to_store): Update.
2763 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2764 * irix5-nat.c (fetch_core_registers): Update.
2765 * cris-tdep.c (cris_register_bytes_ok): Update.
2766 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2767
2768 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2769 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2770 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2771 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2772 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2773 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2774 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2775 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2776 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2777 with mips_insn16 and mips_insn32.
2778
2779 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2780 * rs6000-tdep.c (rs6000_push_dummy_call)
2781 (rs6000_extract_return_value): Use register_size.
2782 * xstormy16-tdep.c (xstormy16_get_saved_register)
2783 (xstormy16_extract_return_value): Ditto.
2784 * valops.c (value_assign): Ditto.
2785 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2786 * v850-tdep.c (v850_extract_return_value): Ditto.
2787 * tracepoint.c (collect_symbol): Ditto.
2788 * target.c (debug_print_register): Ditto.
2789 * stack.c (frame_info): Ditto.
2790 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2791 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2792 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2793 (store_register_using_P): Ditto.
2794 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2795 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2796 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2797 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2798 * regcache.c (deprecated_read_register_bytes)
2799 (deprecated_write_register_bytes, read_register)
2800 (write_register): Ditto.
2801 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2802 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2803 * monitor.c (monitor_supply_register, monitor_fetch_register)
2804 (monitor_store_register): Ditto.
2805 * mn10300-tdep.c (mn10300_pop_frame_regular)
2806 (mn10300_print_register): Ditto.
2807 * mipsv4-nat.c (fill_fpregset): Ditto.
2808 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2809 (mips64_fill_fpregset): Ditto.
2810 * mi/mi-main.c (register_changed_p, get_register)
2811 (mi_cmd_data_write_register_values): Ditto.
2812 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2813 * irix5-nat.c (fill_gregset, fetch_core_registers):
2814 * infrun.c (write_inferior_status_register): Ditto.
2815 * infptrace.c (fetch_register, store_register): Ditto.
2816 * infcmd.c (default_print_registers_info): Ditto.
2817 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2818 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2819 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2820 * hpux-thread.c (hpux_thread_fetch_registers)
2821 (hpux_thread_store_registers): Ditto.
2822 * hppah-nat.c (store_inferior_registers, fetch_register):
2823 * findvar.c (value_from_register): Ditto.
2824 * dve3900-rom.c (fetch_bitmapped_register):
2825 * cris-tdep.c (cris_gdbarch_init): Ditto.
2826 * alpha-tdep.h: Ditto.
2827 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2828
2829 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2830 DEPRECATED_REGISTER_RAW_SIZE from comments.
2831 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2832 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2833 DEPRECATED_REGISTER_RAW_SIZE.
2834 * findvar.c (value_of_register): Simplify by assuming that the
2835 registers raw and virtual sizes are identical.
2836 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2837 comment.
2838 * arch-utils.c (generic_register_size): Simplify by assuming
2839 register_type.
2840
2841 * regcache.c (legacy_read_register_gen, real_register)
2842 (legacy_write_register_gen): Delete, not used.
2843
2844 * regcache.c (struct regcache_descr): Delete legacy_p.
2845 (init_legacy_regcache_descr): Delete function.
2846 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2847 Do not use deprecated register functions.
2848 (regcache_raw_read, deprecated_write_register_gen):
2849 (deprecated_read_register_gen, regcache_raw_write): Delete code
2850 predicated on legacy_p.
2851 (register_size): Delete check against register raw size.
2852
2853 * cris-tdep.c (cris_register_type): Replace
2854 cris_register_virtual_type.
2855 (cris_gdbarch_init): Update, set register_type.
2856
2857 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2858 * gdbarch.h, gdbarch.c: Re-generate.
2859 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2860 (arm_gdbarch_init) Do not set frameless function invocation.
2861 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2862 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2863 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2864 (frv_gdbarch_init): Do not set frameless function invocation.
2865 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2866 * sh-tdep.c (sh_gdbarch_init): Ditto.
2867 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2869 * avr-tdep.c (avr_gdbarch_init): Ditto.
2870
2871 * blockframe.c (legacy_frame_chain_valid): Delete function.
2872
2873 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2874 and pc. Update comments.
2875 (pc_in_dummy_frame): Delete function.
2876 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2877 use the "id".
2878 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2879 call_hi, top and pc, use the id.
2880 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2881
2882 * dummy-frame.c: Include "gdb_string.h".
2883 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2884 (generic_save_dummy_frame_tos): Delete.
2885 (dummy_frame_push): New function, replaces above.
2886 * dummy-frame.h: Update copyright.
2887 (dummy_frame_push): Declare.
2888 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2889 (generic_save_call_dummy_addr): Delete declarations.
2890 * infcall.c: Include "dummy-frame.h".
2891 (call_function_by_hand): Add locals caller_regcache,
2892 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2893 with call to frame_save_as_regcache plus cleanup. Delete calls to
2894 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2895 Move clear_proceed_status to just before the resume, add call to
2896 dummy_frame_push (discard cleanup).
2897 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2898 (dummy-frame.o): Add $(gdb_string_h).
2899
2900 2004-08-01 Andrew Cagney <cagney@gnu.org>
2901
2902 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2903 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2904 * dummy-frame.c (find_dummy_frame): Delete.
2905 (struct dummy_frame_cache, dummy_frame_sniffer)
2906 (dummy_frame_prev_register, dummy_frame_this_id)
2907 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2908 frame unwinder using a dummy_frame_cache.
2909
2910 2004-08-01 Andrew Cagney <cagney@gnu.org>
2911
2912 * frame.h (frame_save_as_regcache): Declare.
2913 * frame.c (frame_save_as_regcache): New function.
2914 (do_frame_read_register): Replace do_frame_unwind_register.
2915 (frame_pop): Use frame_save_as_regcache.
2916 * dummy-frame.c (generic_push_dummy_frame): Use
2917 frame_save_as_regcache.
2918
2919 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2920
2921 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2922 file as included until we record the first line in the linetable.
2923
2924 2004-08-01 Andrew Cagney <cagney@gnu.org>
2925
2926 * frame.h (deprecated_pop_dummy_frame)
2927 (deprecated_read_register_dummy)
2928 (deprecated_generic_find_dummy_frame): Delete.
2929 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2930 (deprecated_read_register_dummy)
2931 (deprecated_find_dummy_frame_regcache)
2932 (discard_innermost_dummy)
2933 (deprecated_pop_dummy_frame): Delete.
2934 (dummy_frame_this_id): Simplify.
2935 (struct dummy_frame): Delete "fp" and "sp".
2936 (find_dummy_frame): Simplify.
2937 (generic_push_dummy_frame): Do not set "fp" or "sp".
2938 (fprint_dummy_frames): Do not print "fp" and "sp"
2939
2940 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2941
2942 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2943 (struct i386_insn): New structure.
2944 (i386_match_insn): New function.
2945 (i386_frame_setup_skip_insns): New variable.
2946 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2947 array i386_frame_setup_insns of instructions that should be
2948 skipped inside the frame setup sequence.
2949
2950 2004-08-01 Andrew Cagney <cagney@gnu.org>
2951
2952 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2953 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2954 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2955 * stack.c (frame_info): Delete references to
2956 DEPRECATED_FRAME_INIT_SAVED_REGS and
2957 deprecated_get_frame_saved_regs.
2958 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2959 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2960 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2961 (frame_unwind_register_signed)
2962 (frame_unwind_register_unsigned)
2963 (frame_unwind_unsigned_register): Use register_size.
2964 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2965 (deprecated_frame_xmalloc_with_cleanup)
2966 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2967 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2968
2969 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2970 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2971 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2972 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2973
2974 * infcall.c (call_function_by_hand): Do not use
2975 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2976 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2977 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2978 DEPRECATED_STACK_ALIGN.
2979
2980 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2981
2982 Committed by Andrew Cagney.
2983 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2984
2985 2004-08-01 Andrew Cagney <cagney@gnu.org>
2986
2987 * mips-tdep.c (mips16_frame_cache)
2988 (mips16_frame_this_id, mips16_frame_prev_register)
2989 (mips16_frame_unwind, mips16_frame_sniffer)
2990 (mips16_frame_base_address, mips16_frame_base)
2991 (mips16_frame_base_sniffer, mips32_frame_cache)
2992 (mips32_frame_this_id, mips32_frame_prev_register)
2993 (mips32_frame_unwind, mips32_frame_sniffer)
2994 (mips32_frame_base_address, mips32_frame_base)
2995 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2996 separate heuristic mips16 and mips32 unwinders.
2997 (mips_stub_frame_cache, mips_stub_frame_this_id)
2998 (mips_stub_frame_prev_register)
2999 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3000 (mips_stub_frame_base_address, mips_stub_frame_base)
3001 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3002 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3003 match true mdebug frames.
3004 (non_heuristic_proc_desc): Add forward declaration.
3005
3006 2004-08-01 Andrew Cagney <cagney@gnu.org>
3007
3008 * config/mips/tm-irix6.h: Delete file.
3009 * config/mips/tm-irix5.h: Delete file.
3010 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3011 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3012
3013 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3014 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3015 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3016 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3017 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3018 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3019 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3020 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3021 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3022 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3023 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3024 (TARGET_SIGNAL_RAW_VALUES): Delete.
3025 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3026 Delete.
3027 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3028 (TARGET_HW_WATCH_LIMIT): Delete.
3029 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3030 * minimon.h: Delete file.
3031
3032 * trad-frame.c (trad_frame_get_this_base)
3033 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3034 functions.
3035 * trad-frame.h (trad_frame_set_this_base)
3036 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3037
3038 2004-07-31 Andrew Cagney <cagney@gnu.org>
3039
3040 * trad-frame.c (trad_frame_get_prev_register): Rename
3041 trad_frame_get_prev_register.
3042 * vax-tdep.c (vax_frame_prev_register): Update.
3043 * trad-frame.h: Update.
3044 * trad-frame.c (trad_frame_get_register): Update.
3045 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3046 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3047 Update.
3048 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3049 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3050 Update.
3051 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3052 Update.
3053 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3054 Update.
3055 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3056 Update.
3057 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3058 Update.
3059 * s390-tdep.c (s390_frame_prev_register)
3060 (s390_stub_frame_prev_register)
3061 (s390_sigtramp_frame_prev_register): Update.
3062 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3063 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3064 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3065 * m88k-tdep.c (m88k_frame_prev_register)
3066 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3067 * m32r-tdep.c (m32r_frame_prev_register): Update.
3068 * hppa-tdep.c (hppa_frame_prev_register_helper)
3069 * frv-tdep.c (frv_frame_prev_register): Update.
3070 * d10v-tdep.c (d10v_frame_prev_register): Update.
3071 * cris-tdep.c (cris_frame_prev_register): Update.
3072 * avr-tdep.c (avr_frame_prev_register): Update.
3073 * arm-tdep.c (arm_prologue_prev_register)
3074 (arm_sigtramp_prev_register): Update.
3075
3076 2004-07-31 Andrew Cagney <cagney@gnu.org>
3077
3078 * frame.h (legacy_saved_regs_unwind)
3079 (legacy_frame_chain_valid, legacy_frame_p)
3080 (enum frame_type): Delete UNKNOWN_FRAME.
3081 * dummy-frame.c (dummy_frame_this_id): Simplify.
3082 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3083 * frame.c (struct frame_info): Delete the field "type".
3084 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3085 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3086 (legacy_saved_regs_unwind, legacy_frame_p)
3087 (frame_type_from_pc): Delete.
3088 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3089 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3090
3091 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3092
3093 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3094 indentation.
3095
3096 * mips-nat.c: Remove file.
3097 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3098 (mips-nat.o): Remove dependency.
3099
3100 * infptrace.c: Update copyright year.
3101 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3102 explicitly setting the buffer to all zeroes.
3103
3104 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3105 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3106
3107 2004-07-30 Andrew Cagney <cagney@gnu.org>
3108
3109 * GDB 6.2 released from gdb_6_2-branch.
3110
3111 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3112
3113 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3114
3115 * exec.c (exec_file_attach):
3116 * nto-tdep.c (nto_find_and_open_solib):
3117 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3118 * solib.c (solib_open):
3119 * somsolib.c (som_solib_sizeof_symbol_table):
3120 * source.c (is_regular_file, openp, open_source_file):
3121 * symfile.c (symfile_bfd_open):
3122 * wince.c (upload_to_device): Differentiate between the search for
3123 binary and source files.
3124
3125 2004-07-30 Andrew Cagney <cagney@gnu.org>
3126
3127 * complaints.c (_initialize_complaints): Pass NULL to
3128 add_setshow_zinteger_cmd for help_doc.
3129 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3130
3131 2004-07-30 Andrew Cagney <cagney@gnu.org>
3132
3133 Fix PR i18n/761.
3134 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3135 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3136 $(PACKAGE).pot and update-po.
3137 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3138 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3139 (update-po): New rules.
3140 (localedir): Define using autoconf.
3141 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3142 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3143 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3144 * configure.in: Generate CATALOGS and LINGUAS from contents of
3145 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3146 * configure: Re-generate.
3147 * po/gdbtext: New file
3148
3149 2004-07-30 Jerome Guitton <guitton@gnat.com>
3150
3151 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3152 order.
3153
3154 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3155
3156 * dwarf2read.c (read_file_scope): Set producer if attribute
3157 present.
3158 (struct dwarf2_cu): Added new member producer.
3159
3160 2004-07-30 Jerome Guitton <guitton@gnat.com>
3161
3162 * inflow.c (kill_command): release file handles in BFD.
3163 * exec.c (exec_file_attach): Ditto.
3164 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3165
3166 2004-07-29 Andrew Cagney <cagney@gnu.org>
3167
3168 * PROBLEMS (mips-irix): Note that it is broken.
3169
3170 2004-07-29 Andrew Cagney <cagney@gnu.org>
3171
3172 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3173 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3174
3175 * config/xm-nbsd.h: Delete file.
3176 * config/arm/xm-nbsd.h: Delete file.
3177 * config/i386/xm-nbsd.h: Delete file.
3178 * config/ns32k/xm-nbsd.h: Delete file.
3179 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3180 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3181 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3182 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3183 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3184
3185 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3186 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3187 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3188 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3189 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3190 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3191
3192 * config/powerpc/xm-linux.h: Delete empty file.
3193 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3194 * config/powerpc/linux.mh (XM_FILE): Delete.
3195 * config/m68k/xm-linux.h: Delete empty file.
3196 * config/m68k/linux.mh (XM_FILE): Delete.
3197 * config/ia64/xm-linux.h: Delete empty file.
3198 * config/ia64/linux.mh (XM_FILE): Delete.
3199 * config/arm/xm-linux.h: Delete empty file.
3200 * config/arm/linux.mh (XM_FILE): Delete.
3201
3202 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3203 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3204 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3205 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3206 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3207 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3208 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3209 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3210
3211 * config/m68k/xm-m68k.h: Delete file.
3212 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3213 copyright.
3214 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3215 * config/pa/xm-linux.h: Delete empty file.
3216 * config/pa/linux.mh (XM_FILE): Delete.
3217 * config/i386/xm-i386.h: Delete empty file.
3218 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3219 "i386/xm-i386.h".
3220 * config/i386/obsdaout.mh (XM_FILE): Delete.
3221 * config/i386/obsd64.mh (XM_FILE): Delete.
3222 * config/i386/fbsd64.mh (XM_FILE): Delete.
3223 * config/i386/nto.mh (XM_FILE): Delete.
3224 * config/i386/obsd.mh (XM_FILE): Delete.
3225 * config/i386/linux64.mh (XM_FILE): Delete.
3226 * config/i386/linux.mh (XM_FILE): Delete.
3227 * config/i386/i386sol2.mh (XM_FILE): Delete.
3228 * config/i386/i386gnu.mh (XM_FILE): Delete.
3229 * config/i386/fbsd.mh (XM_FILE): Delete.
3230 * config/i386/nbsd64.mh (XM_FILE): Delete.
3231
3232 2004-07-29 Andrew Cagney <cagney@gnu.org>
3233
3234 * config/pa/xm-linux.h: Do not include "floatformat.h".
3235 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3236 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3237 * config/i386/xm-i386.h: Do not include "floatformat.h".
3238 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3239 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3240 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3241 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3242 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3243 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3244 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3245 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3246 * configure, config.in: Regenerate.
3247 * configure.host (gdb_host_float_format, gdb_host_double_format)
3248 (gdb_host_long_double_format): Set according to the host.
3249
3250 2004-07-29 Andrew Cagney <cagney@gnu.org>
3251
3252 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3253
3254 2004-07-28 Andrew Cagney <cagney@gnu.org>
3255
3256 * PROBLEMS: Mention threads/1650.
3257 * NEWS: Mention the NPTL fix.
3258
3259 2004-07-28 Andrew Cagney <cagney@gnu.org>
3260
3261 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3262 (add_setshow_cmd_full): Make static.
3263 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3264 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3265 * cli/cli-decode.c (add_setshow_filename_cmd)
3266 (add_setshow_string_cmd): New functions.
3267 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3268 * mips-tdep.c (_initialize_mips_tdep): Update.
3269 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3270 * cli/cli-logging.c (_initialize_cli_logging): Update.
3271 * complaints.c (_initialize_complaints): Update.
3272 * remote.c (_initialize_remote): Update.
3273
3274 2004-07-28 Andrew Cagney <cagney@gnu.org>
3275
3276 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3277 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3278 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3279 print parameters. Make string parameters constant.
3280 * command.h: Update. Update copyright.
3281 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3282 * observer.c (_initialize_observer): Ditto.
3283 * frame.c (_initialize_frame): Ditto.
3284 * complaints.c (_initialize_complaints): Ditto.
3285 * maint.c (_initialize_maint_cmds): Ditto.
3286 * target.c (initialize_targets): Ditto.
3287 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3288 * infcall.c (_initialize_infcall): Ditto.
3289 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3290 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3291 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3292 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3293 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3294
3295 2004-07-28 Andrew Cagney <cagney@gnu.org>
3296
3297 * gdbtypes.c (lookup_primitive_typename): Delete function.
3298 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3299 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3300 * gdbtypes.c (lookup_typename): Ditto.
3301 * f-exp.y (yylex): Ditto.
3302 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3303
3304 * scm-lang.c (c_builtin_types): Delete extern declaration.
3305 (scm_language_defn): Replace
3306 string_char_type and primitive_type_vector with
3307 la_language_arch_info.
3308 * jv-lang.c (java_language_defn): Replace
3309 string_char_type and primitive_type_vector with
3310 la_language_arch_info.
3311 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3312 c_builtin_types in comment.
3313 * c-lang.h (struct language_arch_info): Declare opaque.
3314 (c_language_arch_info): Declare.
3315 (c_builtin_types): Delete declaration.
3316 * c-lang.c (c_language_arch_info): Set string_char_type to
3317 builtin_char, not builtin_true_char. Make global.
3318 (c_builtin_types): Delete array.
3319 (asm_language_defn, minimal_language_defn): Replace
3320 string_char_type and primitive_type_vector with
3321 la_language_arch_info.
3322
3323 2004-07-28 Andrew Cagney <cagney@gnu.org>
3324
3325 * gdbtypes.h (struct builtin_type): Rename true_char to
3326 builtin_true_char.
3327 * gdbtypes.c (gdbtypes_post_init): Update.
3328 * c-lang.c (arch_info): New function.
3329 (enum c_primitive_types): New enum.
3330 (c_language_defn): Instead of string_char_type and
3331 primitive_type_vector set la_language_arch_info.
3332
3333 2004-07-28 Andrew Cagney <cagney@gnu.org>
3334
3335 * language.h (struct language_arch_info): Fix typo
3336 s/primative/primitive/.
3337 * gdbtypes.c (lookup_primitive_typename): Ditto.
3338 * language.c (language_lookup_primitive_type_by_name)
3339 (unknown_language_arch_info): Ditto.
3340
3341 2004-07-27 Andrew Cagney <cagney@gnu.org>
3342
3343 * defs.h (enum language): Add nr_languages.
3344 * language.h (struct language_arch_info): Define.
3345 (struct language_defn): Add la_language_arch_info.
3346 (language_lookup_primative_type_by_name): Declare.
3347 (language_string_char_type): Declare.
3348 * language.c (_initialize_language, language_gdbarch_post_init)
3349 (struct language_gdbarch, language_gdbarch_data): Implement
3350 per-architecture language information.
3351 (unknown_language_arch_info, language_string_char_type)
3352 (language_lookup_primative_type_by_name): New functions.
3353 (unknown_language_defn, auto_language_defn)
3354 (local_language_defn): Set la_language_arch_info to
3355 unknown_language_arch_info.
3356 (unknown_builtin_types): Delete.
3357 * gdbtypes.c (lookup_primitive_typename): Use
3358 language_lookup_primative_type_by_name.
3359 (create_string_type): Use language_string_char_type.
3360 * values.c (value_from_string): Use language_string_char_type.
3361 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3362 * p-lang.c (pascal_language_defn): Ditto.
3363 * m2-lang.c (m2_language_defn): Ditto.
3364 * jv-lang.c (java_language_defn): Ditto.
3365 * objc-lang.c (objc_language_defn): Ditto.
3366 * f-lang.c (f_language_defn): Ditto.
3367 * c-lang.c (c_language_defn, cplus_language_defn)
3368 (asm_language_defn, minimal_language_defn): Ditto.
3369
3370 2004-07-27 Andrew Cagney <cagney@gnu.org>
3371
3372 * gdbtypes.h (struct builtin_type): Declare.
3373 (builtin_type): Declare.
3374 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3375 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3376 (gdbtypes_post_init): New function.
3377 (builtin_type): New function.
3378
3379 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3380
3381 * remote-m32r-sdi.c: Fix breakpoint bug.
3382 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3383 recv_char_data, recv_long_data): New functions to replace communication
3384 sequences.
3385
3386 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3387
3388 Document PR threads/1650.
3389 * PROBLEMS (Threads): Document problem with many threads
3390
3391 2004-07-26 Andrew Cagney <cagney@gnu.org>
3392
3393 * gdb-mi.el: Move from here ...
3394 * mi/gdb-mi.el: ... to here.
3395
3396 2004-07-26 Andrew Cagney <cagney@gnu.org>
3397
3398 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3399 * main.c (captured_main): When in batch mode always detach.
3400
3401 2004-07-26 Andrew Cagney <cagney@gnu.org>
3402
3403 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3404 and h8300 as broken.
3405 * NEWS: END-OF-LIFE frame compatibility module.
3406 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3407 specific comments.
3408
3409 2004-07-26 Andrew Cagney <cagney@gnu.org>
3410
3411 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3412 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3413 * wince.c (_initialize_wince): Update.
3414 * win32-nat.c (_initialize_win32_nat): Update.
3415 * varobj.c (_initialize_varobj): Update.
3416 * valops.c (_initialize_valops): Update.
3417 * utils.c (initialize_utils, initialize_utils): Update.
3418 * tui/tui-win.c (_initialize_tui_win): Update.
3419 * top.c (init_main): Update.
3420 * symfile.c (_initialize_symfile): Update.
3421 * source.c (_initialize_source): Update.
3422 * somsolib.c (_initialize_som_solib): Update.
3423 * solib.c (_initialize_solib): Update.
3424 * solib-frv.c (_initialize_frv_solib): Update.
3425 * serial.c (_initialize_serial): Update.
3426 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3427 * remote.c (_initialize_remote, _initialize_remote): Update.
3428 * remote-vx.c (_initialize_vx): Update.
3429 * remote-utils.c (_initialize_sr_support): Update.
3430 * remote-sds.c (_initialize_remote_sds): Update.
3431 * remote-mips.c (_initialize_remote_mips): Update.
3432 * remote-e7000.c (_initialize_remote_e7000): Update.
3433 * proc-api.c (_initialize_proc_api): Update.
3434 * printcmd.c: Update.
3435 * parse.c (_initialize_parse): Update.
3436 * pa64solib.c (_initialize_pa64_solib): Update.
3437 * p-valprint.c (_initialize_pascal_valprint): Update.
3438 * monitor.c (_initialize_remote_monitors): Update.
3439 * mips-tdep.c (_initialize_mips_tdep): Update.
3440 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3441 * maint.c (_initialize_maint_cmds): Update.
3442 * lin-lwp.c (_initialize_lin_lwp): Update.
3443 * language.c (_initialize_language): Update.
3444 * kod.c (_initialize_kod): Update.
3445 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3446 * i386-tdep.c (_initialize_i386_tdep): Update.
3447 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3448 * gdbarch.sh: Update.
3449 * gdbarch.c: Re-generate.
3450 * gdb-events.sh: Update.
3451 * gdb-events.c: Re-generate.
3452 * frame.c (_initialize_frame): Update.
3453 * exec.c: Update.
3454 * demangle.c (_initialize_demangler): Update.
3455 * dcache.c (_initialize_dcache): Update.
3456 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3457 * cp-valprint.c (_initialize_cp_valprint): Update.
3458 * corefile.c (_initialize_core): Update.
3459 * command.h: Update.
3460 * cli/cli-decode.h: Update.
3461 * cli/cli-cmds.c (init_cli_cmds): Update.
3462 * charset.c (_initialize_charset): Update.
3463 * breakpoint.c (_initialize_breakpoint): Update.
3464 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3465 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3466 * aix-thread.c (_initialize_aix_thread): Update.
3467
3468 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3469
3470 Partial fix for PR backtrace/1718.
3471 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3472 that GCC migrates into the prolugue. Don't handle any
3473 instructions that clobber %ebx.
3474
3475 2004-07-23 Andrew Cagney <cagney@gnu.org>
3476
3477 Use regcache_raw_collect instead of regcache_collect.
3478 * regcache.h (regcache_collect): Delete declaration.
3479 * regcache.c (regcache_colect): Delete function.
3480 * win32-nat.c (do_child_store_inferior_registers): Update.
3481 * sol-thread.c (sol_thread_store_registers): Update.
3482 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3483 * rs6000-nat.c (store_register): Update.
3484 * remote.c (store_register_using_P, remote_store_registers): Update.
3485 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3486 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3487 (fill_vrregset, store_spe_registers, fill_gregset)
3488 (fill_gregset): Update.
3489 * nto-procfs.c (procfs_store_registers): Update.
3490 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3491 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3492 * m68klinux-nat.c (store_register, fill_gregset): Update.
3493 * m68k-tdep.c (fill_gregset): Update.
3494 * infptrace.c (store_register): Update.
3495 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3496 * i386-linux-nat.c (store_register, fill_gregset): Update.
3497 * hppa-linux-nat.c (fill_gregset): Update.
3498 * go32-nat.c (store_register): Update.
3499 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3500 (store_fp_regs): Update.
3501 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3502 (store_nwfpe_extended, store_fpregister, store_fpregs)
3503 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3504 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3505 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3506 (store_regs_user_thread, store_regs_kernel_thread): Update.
3507
3508 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3509
3510 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3511 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3512 encoding.
3513 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3514 member of `struct comp_unit'.
3515
3516 2004-07-23 Andrew Cagney <cagney@gnu.org>
3517
3518 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3519 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3520
3521 2004-07-23 Martin Hunt <hunt@redhat.com>
3522 Kevin Buettner <kevinb@redhat.com>
3523
3524 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3525 alignment was being added to the offset instead of multiplied.
3526
3527 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3528
3529 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3530 changed signal trampoline in OpenBSD 3.5-current.
3531
3532 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3533 <machine/pcb.h> and "bsd-kvm.h".
3534 (sparc64nbsd_supply_pcb): New function.
3535 (_initialize_sparc64nbsd_nat): Renamed from
3536 _initialize_sparcnbsd_nat. Enable libkvm interface.
3537 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3538 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3539 (LOADLIBES): New variable.
3540
3541 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3542
3543 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3544
3545 2004-07-21 Andrew Cagney <cagney@gnu.org>
3546
3547 Use regcache_raw_supply instead of supply_register.
3548 * regcache.h (supply_register): Delete declaration.
3549 * regcache.c (supply_register): Delete function.
3550 * wince.c (do_child_fetch_inferior_registers): Update.
3551 * win32-nat.c (do_child_fetch_inferior_registers)
3552 (fetch_elf_core_registers): Update.
3553 * v850ice.c (v850ice_fetch_registers): Update.
3554 * thread-db.c (thread_db_store_registers): Update.
3555 * sol-thread.c (sol_thread_store_registers): Update.
3556 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3557 * rs6000-nat.c (fetch_register): Update.
3558 * rom68k-rom.c (rom68k_supply_one_register): Update.
3559 * remote.c (remote_wait, remote_async_wait): Update.
3560 * remote-st.c (get_hex_regs): Update.
3561 * remote-sim.c (gdbsim_fetch_register): Update.
3562 * remote-sds.c (sds_fetch_registers): Update.
3563 * remote-rdp.c (remote_rdp_fetch_register): Update.
3564 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3565 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3566 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3567 * remote-hms.c (init_hms_cmds): Update.
3568 * remote-est.c (init_est_cmds): Update.
3569 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3570 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3571 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3572 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3573 (fetch_register, supply_vrregset, supply_vrregset)
3574 (fetch_spe_registers): Update.
3575 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3576 * monitor.c (monitor_supply_register): Update.
3577 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3578 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3579 (mipsnbsd_supply_fpreg): Update.
3580 * mips-nat.c (fetch_inferior_registers)
3581 (fetch_core_registers): Update.
3582 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3583 (supply_fpregset, mips64_supply_gregset)
3584 (mips64_supply_fpregset): Update.
3585 * m68klinux-nat.c (fetch_register, supply_gregset)
3586 (supply_fpregset): Update.
3587 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3588 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3589 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3590 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3591 * infptrace.c (fetch_register): Update.
3592 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3593 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3594 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3595 (gnu_fetch_registers, gnu_store_registers): Update.
3596 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3597 * i386-linux-nat.c (fetch_register, supply_gregset)
3598 (dummy_sse_values): Update.
3599 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3600 * hppah-nat.c (fetch_register): Update.
3601 * hppa-linux-nat.c (fetch_register, supply_gregset)
3602 (supply_fpregset): Update.
3603 * go32-nat.c (fetch_register): Update.
3604 * dve3900-rom.c (fetch_bitmapped_register)
3605 (_initialize_r3900_rom): Update.
3606 * cris-tdep.c (supply_gregset): Update.
3607 * abug-rom.c (init_abug_cmds): Update.
3608 * core-aout.c (fetch_core_registers): Update.
3609 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3610 (fetch_register, fetch_fp_register): Update.
3611 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3612 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3613 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3614 * alphanbsd-tdep.c (fetch_core_registers): Update.
3615 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3616 * alpha-nat.c (fetch_osf_core_registers)
3617 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3618 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3619 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3620
3621 2004-07-21 Andrew Cagney <cagney@gnu.org>
3622
3623 * PROBLEMS: Mention breakpoints/1702.
3624 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3625 that is known to work.
3626
3627 2004-07-21 Andrew Cagney <cagney@gnu.org>
3628
3629 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3630 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3631 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3632 (handle_inferior_event): Wrap call to deprecated
3633 IGNORE_HELPER_CALL in #ifdef.
3634 * config/mips/tm-nbsd.h: Update.
3635
3636 2004-07-20 Jim Blandy <jimb@redhat.com>
3637
3638 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3639 bfd_mach_ppc has no segment registers.
3640
3641 Include PowerPC SPR numbers for special-purpose registers.
3642 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3643 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3644 new member in initializer.
3645 (S, S4, SN4, S64): New macros for defining special-purpose
3646 registers.
3647 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3648 registers_403, registers_403GC, registers_505, registers_860,
3649 registers_601, registers_602, registers_603, registers_604,
3650 registers_750, registers_e500): Use them.
3651
3652 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3653 replace references with expression used to initialize variable.
3654
3655 2004-07-20 Andrew Cagney <cagney@gnu.org>
3656
3657 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3658 read_memory_nobpt.
3659 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3660 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3661 (s390_sigtramp_frame_sniffer): Update.
3662 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3663 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3664 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3665 (mips32_fetch_instruction): Update.
3666 * mcore-tdep.c (get_insn): Update.
3667 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3668 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3669 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3670 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3671 (i386_linux_rt_sigtramp_start): Update.
3672 * i386-linux-nat.c (child_resume): Update.
3673 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3674 * hppa-linux-tdep.c (insns_match_pattern): Update.
3675 * gdbcore.h: Update.
3676 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3677 * frame.c (safe_frame_unwind_memory): Update.
3678 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3679 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3680 * alpha-tdep.c (alpha_read_insn): Update.
3681
3682 2004-07-20 Andrew Cagney <cagney@gnu.org>
3683
3684 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3685 containing both bytes and mask. Add "frame_type".
3686 * tramp-frame.c (tramp_frame_start): Update.
3687 (tramp_frame_prepend_unwinder): Update.
3688 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3689 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3690 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3691 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3692
3693 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3694
3695 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3696 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3697 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3698 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3699
3700 2004-07-17 Andrew Cagney <cagney@gnu.org>
3701
3702 * NEWS, PROBLEMS: Update for 6.2.
3703
3704 * README: Update to 6.2.
3705
3706 * utils.c (xvasprintf): Call xstrvprintf.
3707
3708 * parse.c: Update copyright.
3709 (null_post_parser): Eliminate ARGSUSED.
3710
3711 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3712 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3713 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3714
3715 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3716 * ppc-linux-nat.c: Use "Linux kernel".
3717 * hppa-linux-tdep.c: Use GNU/Linux.
3718 * hppa-linux-nat.c: Use GNU/Linux.
3719 * dwarfread.c: Add [sic] to use of Linux.
3720
3721 * hppa-linux-nat.c: Do not include <string.h>.
3722 (supply_fpregset): Remove "register" attribute.
3723
3724 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3725
3726 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3727
3728 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3729 * configure, config.in: Regenerated.
3730
3731 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3732 "bsd-kvm.h".
3733 (vaxbsd_supply_pcb): New function.
3734 (_initialize_vaxbsd_nat): New prototype and function.
3735 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3736 solib-sunos.o.
3737 (LOADLIBES): New variable.
3738 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3739 (LOADLIBES): New variable.
3740 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3741 (LOADLIBES): New variable.
3742 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3743
3744 2004-07-16 Andrew Cagney <cagney@gnu.org>
3745
3746 * defs.h (event_loop_p): Replace variable declaration with macro,
3747 always 1.
3748 * main.c (captured_main): Delete options "-async" and "-noasync".
3749 (event_loop_p): Delete variable.
3750 * NEWS: Mention that "-async" and "-noasync" were removed.
3751
3752 2004-07-16 Andrew Cagney <cagney@gnu.org>
3753
3754 * remote-m32r-sdi.c: Re-indent.
3755
3756 2004-07-16 Jim Blandy <jimb@redhat.com>
3757
3758 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3759 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3760 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3761 missing MPC823 SPRs.
3762 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3763 incorrect. (This was corrected in GDB's register name tables on
3764 2004-07-14.)
3765
3766 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3767 should be "esasrr" ("ESA Save and Restore Register").
3768
3769 2004-07-16 Andrew Cagney <cagney@gnu.org>
3770
3771 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3772 calls, no longer applicable. Update comments and rename parameter
3773 "step_frame" to "return_frame".
3774
3775 2004-07-16 Andrew Cagney <cagney@gnu.org>
3776
3777 * frame.c (fprint_field): New function.
3778 (fprint_frame_id): Use fprint_field.
3779
3780 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3781
3782 * ada-lang.c (ada_language_defn): Remove commented out code.
3783
3784 2004-07-15 Jim Blandy <jimb@redhat.com>
3785
3786 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3787 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3788
3789 2004-07-14 Jim Blandy <jimb@redhat.com>
3790
3791 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3792
3793 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3794
3795 * ppc-tdep.h (ppc_num_srs): New enum constant.
3796
3797 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3798 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3799 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3800 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3801 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3802 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3803 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3804 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3805 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3806 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3807 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3808 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3809 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3810 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3811 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3812 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3813 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3814 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3815 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3816 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3817 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3818 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3819 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3820 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3821 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3822 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3823 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3824 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3825 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3826 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3827 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3828 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3829 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3830 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3831 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3832 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3833 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3834 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3835 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3836 special-purpose register numbers.
3837
3838 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3839 manual mentions 'md_twb', but many mention 'm_twb', and at that
3840 point in the register list.)
3841
3842 2004-07-14 Andrew Cagney <cagney@gnu.org>
3843
3844 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3845 instead of "internal-error".
3846
3847 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3848
3849 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3850 that was inserted inside a comment.
3851
3852 2004-07-10 Randolph Chung <tausq@debian.org>
3853
3854 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3855 function.
3856 (hppa_hpux_push_dummy_code): New function.
3857 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3858 Set find_global_pointer method.
3859
3860 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3861
3862 * NEWS: Mention BSD libkvm interface.
3863
3864 2004-07-10 Michael Snyder <msnyder@redhat.com>
3865
3866 * symfile.c (generic_load): Comment typo.
3867 * stack.c (get_selected_block): Ditto.
3868 * regcache.c (regcache_cooked_read): Ditto.
3869 * monitor.c (monitor_debug): Ditto.
3870 * mips-tdep.c (mips_read_pc): Ditto.
3871 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3872 * gdb_mbuild.sh: Ditto.
3873 * gdbarch.sh: Ditto.
3874 * gdbarch.h: Ditto.
3875
3876 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3877
3878 * ada-tasks.c: Remove file.
3879
3880 Remove ARI problems:
3881
3882 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3883 beginning of line.
3884
3885 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3886 Add comment.
3887 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3888 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3889 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3890 (UMIN_OF_SIZE): Remove.
3891 (max_of_type): New function to replace orphan macro in gdbtypes.h
3892 (min_of_type): Ditto.
3893 (discrete_type_high_bound): Use max_of_type.
3894 (discrete_type_low_bound): Use min_of_type.
3895 (possible_user_operator_p): Move operator to beginning of line.
3896 (ada_is_variant_part): Ditto.
3897 (ensure_lval): Rewrite to avoid deprecated operations.
3898 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3899 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3900 (ada_enum_name): Remove assignments in 'if' statements.
3901 (build_ada_types): Add gdbarch parameter.
3902 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3903 with gdbarch_data_register_post_init.
3904 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3905 add_show_from_set.
3906
3907 * ada-valprint.c (inspect_it): Remove declaration.
3908 (repeat_count_threshold): Remove declaration.
3909 (ada_print_floating): Remove assignments in 'if' statements.
3910 (print_str): Move operator to beginning of line.
3911
3912 2004-07-08 Jim Blandy <jimb@redhat.com>
3913
3914 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3915
3916 2004-07-08 Bob Rossi <bob@brasko.net>
3917
3918 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3919
3920 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3921
3922 * language.h (struct_language_defn): Add new function pointer:
3923 la_class_name_from_physname. Also add new prototype for
3924 language_class_name_from_physname.
3925 * language.c (language_class_name_from_physname): New function.
3926 (unk_lang_class_name): Ditto.
3927 (unknown_language_defn, auto_language_defn): Change
3928 to add unk_lang_class_name function pointer for
3929 la_class_name_from_physname.
3930 (local_language_defn): Ditto.
3931 * dwarf2read.c (guess_structure_name): Change to call
3932 language_class_name_from_physname.
3933 (determine_class_name): Ditto.
3934 * cp-support.c (class_name_from_physname): Renamed.
3935 (cp_class_name_from_physname): New name of function.
3936 * cp-support.h: Ditto.
3937 * c-lang.c (c_language_defn): Change to add NULL
3938 for class_name_from_physname function pointer.
3939 (cplus_language_defn): Change to add cp_class_name_from_physname.
3940 * jv-lang.c (java_class_name_physname): New function.
3941 (java_find_last_component): New static routine.
3942 (java_language_defn): Add java_class_name_from_physname pointer.
3943 * ada-lang.c (ada_language_defn): Change to add NULL
3944 for class_name_from_physname function pointer.
3945 * f-lang.c (f_language_defn): Ditto.
3946 * m2-lang.c (m2_language_defn): Ditto.
3947 * objc-lang.c (objc_language_defn): Ditto.
3948 * p-lang.c (pascal_language_defn): Ditto.
3949 * scm-lang.c (scm_language_defn): Ditto.
3950
3951 2004-07-06 Andrew Cagney <cagney@gnu.org>
3952
3953 Patch from Bart Robinson.
3954 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3955 (O_LARGEFILE): Define to 0, if not defined.
3956
3957 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3958
3959 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3960 <machine/pcb.h> and "bsd-kvm.h".
3961 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3962 (m68kbsd_supply_pcb): New function.
3963 (_initialize_m68kbsd_nat): New prototype and function.
3964 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3965 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3966 (LOADLIBES): New variable.
3967 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3968 (LOADLIBES): New variable.
3969
3970 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3971
3972 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3973
3974 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3975 <sys/proc.h>.
3976 (bsd_kvm_cmdlist): New variable.
3977 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3978 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3979 command and "kvm proc" command.
3980 * Makefile.in (bsd-kvm.o): Update dependencies.
3981
3982 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3983
3984 * osabi.c: Update copyright year.
3985 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3986 notes if EI_OSABI is set to ELFOSABI_HPUX.
3987
3988 2004-07-01 Michael Snyder <msnyder@redhat.com>
3989
3990 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3991 that seems to have gotten whacked out of line.
3992
3993 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3994
3995 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3996 code.
3997
3998 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3999
4000 * ada-lang.c (decode_packed_array): Minor change to comment.
4001 (ada_value_slice_ptr): New function.
4002 (ada_value_slice): New function.
4003 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4004 test. Don't know why it is there.
4005 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4006 to avoid dereferencing huge arrays from which one is slicing.
4007 (empty_array): Correct to return an array rather than
4008 a subrange value.
4009 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4010 on empty arrays (let'em use 'FIRST instead).
4011
4012 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4013
4014 Address complaints from gdb_ari.sh:
4015
4016 * ada-exp.y: Include gdb_string.h rather than string.h.
4017 (convert_char_literal): Reformat declaration.
4018 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4019 * ada-lex.l: Change use of free to xfree (the macro would do so
4020 anyway, but this is harmless).
4021 Include gdb_string.h rather than string.h.
4022 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4023
4024 * ada-lang.c (parse): Remove K&Rism in parameter list.
4025 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4026
4027 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4028
4029 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4030 dead code.
4031
4032 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4033
4034 * alphabsd-nat.c: Update copyright year.
4035 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4036
4037 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4038
4039 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4040 (i386_cygwin_in_solib_call_trampoline): New function.
4041 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4042 and skip_trampoline_code gdbarch methods.
4043
4044 2004-06-29 Jim Blandy <jimb@redhat.com>
4045
4046 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4047 name actually used in the dependency lists.
4048
4049 2004-06-29 Randolph Chung <tausq@debian.org>
4050
4051 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4052
4053 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4054
4055 * win32-nat.c (child_pid_to_exec_file): New function.
4056 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4057 functionality.
4058
4059 2004-06-28 Andrew Cagney <cagney@gnu.org>
4060
4061 * defs.h (xstrvprintf): Declare.
4062 * utils.c (xstrvprintf): New function.
4063 (internal_vproblem, xstrprintf, xasprintf)
4064 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4065 * serial.c (serial_printf): Ditto.
4066 * complaints.c (vcomplaint): Ditto.
4067
4068 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4069
4070 * infcmd.c (attach_command): Move call to target_terminal_inferior
4071 behind loading symbol table.
4072
4073 2004-06-28 Andrew Cagney <cagney@gnu.org>
4074
4075 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4076 change - add back extern deprecated_ui_loop_hook declaration.
4077
4078 2004-06-28 Andrew Cagney <cagney@gnu.org>
4079
4080 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4081 xstrprintf.
4082 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4083 (c_value_of_variable): Ditto.
4084 * utils.c (internal_vproblem): Ditto.
4085 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4086 * remote.c (add_packet_config_cmd): Ditto.
4087 * remote-rdp.c (rdp_set_command_line): Ditto.
4088 * regcache.c (regcache_dump): Ditto.
4089 * frv-tdep.c (new_variant, new_variant): Ditto.
4090 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4091 (fbsd_find_memory_regions): Ditto.
4092 * breakpoint.c (create_thread_event_breakpoint)
4093 (create_breakpoints): Ditto.
4094 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4095 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4096
4097 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4098
4099 * ada-lang.c: Re-indent file, with some massaging to help indent
4100 a bit when the result is otherwise really too ugly.
4101
4102 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4103
4104 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4105 code_addr_p and special_addr_p to 'unsigned int'.
4106
4107 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4108
4109 * i386v4-nat.c: Update copyright year and tweak comment.
4110 (regmap): Remove trailing comma.
4111 (supply_gregset): Rename local variable i to regnum. Call
4112 regcache_raw_supply instead of supply_register.
4113 (fill_gregset): Rename argument regno to regnum. Call
4114 regcache_raw_collect instead of regcache_collect.
4115
4116 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4117
4118 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4119 and special_addr_p.
4120 (frame_id_build, frame_id_build_special): Update comments.
4121 (frame_id_build_wild): New prototype.
4122 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4123 struct frame_id fields.
4124 (frame_id_build_wild): New function.
4125 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4126
4127 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4128
4129 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4130 hppabsd-tdep.c.
4131
4132 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4133
4134 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4135
4136 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4137
4138 * ada-lang.c: Re-indent file.
4139
4140 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4141
4142 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4143 (no_symtab_msg): Likewise.
4144
4145 2004-06-27 Andreas Schwab <schwab@suse.de>
4146
4147 * source.c: Fix whitespace.
4148
4149 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4150
4151 * configure.in: Include <sys/param.h> for td_pcb test.
4152 * configure: Regenerated.
4153
4154 * i386nbsd-nat.c: New file.
4155 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4156 i386obsd-nat.c and i386obsd-tdep.c.
4157 (i386nbsd-nat.o): New dependency.
4158 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4159 bsd-kvm.o.
4160 (LOADLIBES): New variable.
4161 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4162 bsd-kvm.o.
4163 (LOADLIBES): New variable.
4164
4165 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4166 (LOADLIBES): New variable.
4167
4168 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4169 fetching from BSD_KVM_PADDR. Correctly lookup address for
4170 "_thread0".
4171
4172 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4173 "bsd-kvm.h".
4174 (amd64fbsd_supply_pcb): New funcion.
4175 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4176
4177 2004-06-27 <david@streamline-computing.com>
4178
4179 Partial fix for PR cli/1056.
4180 * valarith.c: Check for zero in division and remainder
4181 evaluation.
4182
4183 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4184
4185 * i387-tdep.c: Remove excessive whitespace.
4186
4187 2004-06-26 Andrew Cagney <cagney@gnu.org>
4188
4189 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4190 * gdb-events.h, gdb-events.c: Re-generate.
4191 * tui/tui-hooks.c (tui_install_hooks): Update.
4192 (tui_remove_hooks): Update.
4193 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4194
4195 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4196
4197 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4198 (gregset_t, fpregset_t): Remove typedefs.
4199 (REG_OFFSET): Rename argument.
4200 (amd64bsd_r_reg_offset): Rename from reg_offset.
4201 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4202 Remove functions.
4203 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4204 of reg_offset.
4205 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4206
4207 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4208
4209 * vax-tdep.c: Tweak comment.
4210
4211 Add OpenBSD/hppa support.
4212 * NEWS (New native configurations): Mention OpenBSD/hppa.
4213 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4214 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4215 files.
4216 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4217 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4218 * configure.host: Add hppa*-*-openbsd*.
4219 * configure.tgt: Add hppa*-*-openbsd*.
4220
4221 2004-06-25 Andrew Cagney <cagney@gnu.org>
4222
4223 * defs.h (deprecated_ui_loop_hook): Deprecated.
4224 * wince.c (child_wait): Update.
4225 * win32-nat.c (child_wait): Update.
4226 * v850ice.c (v850ice_wait): Update.
4227 * top.c (deprecated_ui_loop_hook): Update.
4228 * serial.h: Update.
4229 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4230 (do_unix_readchar): Update.
4231 * ser-tcp.c (net_open): Update.
4232 * remote-sim.c (gdb_os_poll_quit): Update.
4233 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4234
4235 2004-06-24 Andrew Cagney <cagney@gnu.org>
4236
4237 * defs.h (deprecated_pre_add_symbol_hook)
4238 (deprecated_post_add_symbol_hook): Deprecated.
4239 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4240 (symbol_file_add_with_addrs_or_offsets): Update references.
4241
4242 2004-06-24 Andrew Cagney <cagney@gnu.org>
4243
4244 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4245 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4246 * wince.c (ui_loop_hook): Delete extern declaration.
4247 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4248 * v850ice.c (ui_loop_hook): Delete extern declaration..
4249 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4250 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4251 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4252 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4253 ui_loop_hook declaration.
4254
4255 2004-06-24 Andrew Cagney <cagney@gnu.org>
4256
4257 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4258 entry_func_highpc fields.
4259 * objfiles.c (init_entry_point_info): Do not clear
4260 entry_func_lowpc and entry_func_highpc.
4261 (objfile_relocate): Do not relocate entry_func_lowpc and
4262 entry_func_highpc.
4263 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4264 entry_func_highpc.
4265 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4266 entry_func_highpc.
4267 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4268 entry_func_lowpc and entry_func_highpc with call to
4269 inside_entry_func.
4270
4271 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4272
4273 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4274 quad-precision floating point arguments in registers.
4275
4276 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4277
4278 From Michael Mueller <m.mueller99@kay-mueller.de>:
4279 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4280 account.
4281
4282 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4283
4284 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4285 to -1.
4286 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4287 untriggered watchpoints to a separate if clause. Update function
4288 comment regarding STOPPED_BY_WATCHPOINT argument.
4289
4290 2004-06-22 Jim Blandy <jimb@redhat.com>
4291
4292 * gdbarch.sh: Doc fix.
4293
4294 2004-06-21 Martin Hunt <hunt@redhat.com>
4295 Kevin Buettner <kevinb@redhat.com>
4296
4297 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4298 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4299 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4300 to set_gdbarch_sp_regnum(). Use cooked register number.
4301 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4302
4303 2004-06-21 Andrew Cagney <cagney@gnu.org>
4304
4305 * gdbarch.sh: When the macro field is empty, do not generate a
4306 macro definition. When the macro field is "=", generate the macro
4307 name from the upper-case function name.
4308 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4309 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4310 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4311 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4312 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4313 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4314 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4315 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4316 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4317 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4318 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4319 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4320 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4321 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4322 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4323 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4324 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4325 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4326 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4327 (DEPRECATED_USE_STRUCT_CONVENTION)
4328 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4329 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4330 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4331 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4332 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4333 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4334 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4335 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4336 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4337 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4338 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4339 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4340 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4341 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4342 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4343 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4344 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4345 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4346
4347 2004-06-21 Andrew Cagney <cagney@gnu.org>
4348
4349 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4350 macro name, and the function rather than macro value. Only wrap
4351 macro print statements in #ifdef. Move format logic to where it
4352 is needed.
4353 * gdbarch.c: Re-generate.
4354
4355 * gdbarch.sh (read): Delete "print_p" and "description", add
4356 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4357 Delete references to print_p.
4358 (TARGET_ARCHITECTURE): Delete print predicate.
4359 * gdbarch.c: Re-generate.
4360
4361 * gdbarch.sh: Check that multi-arch methods do not provide a
4362 macro.
4363 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4364 (print_registers_info, print_float_info, print_vector_info)
4365 (adjust_breakpoint_address, remote_translate_xfer_address)
4366 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4367 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4368 name from the multi-arch definition.
4369
4370 2004-06-20 Andrew Cagney <cagney@gnu.org>
4371
4372 * gdbarch.sh: Sort by the function, instead of macro name.
4373 * gdbarch.c: Re-generate.
4374
4375 2004-06-20 Andrew Cagney <cagney@gnu.org>
4376
4377 * gdbarch.sh: Use the function, instead of macro name in
4378 errors and the log file.
4379 (return_value): Remove stray ":" in spec.
4380
4381 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4382 * gdbarch.h, gdbarch.c: Re-generate.
4383 * Makefile.in (arch-utils.o): Update dependencies.
4384 * values.c (using_struct_return): Move code calling
4385 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4386 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4387 to legacy_return_value, simplify.
4388 * infcmd.c (print_return_value): Move code calling
4389 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4390 to legacy_return_value, simplify.
4391 * infcall.c (call_function_by_hand): Move code calling
4392 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4393 * arch-utils.c: Update copyright. Include "gdbcore.h".
4394 (legacy_return_value): New function.
4395 * arch-utils.h: Update copyright.
4396 (legacy_return_value): Declare.
4397
4398 2004-06-20 Andrew Cagney <cagney@gnu.org>
4399
4400 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4401 * gdbarch.h, gdbarch.c: Re-generate.
4402 * values.c (using_struct_return): Update call.
4403 * mcore-tdep.c: Update comment.
4404 * infcall.c (call_function_by_hand): Update comment.
4405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4406 * arch-utils.h (always_use_struct_convention): Update.
4407 * v850-tdep.c (v850_gdbarch_init): Update.
4408 * sh64-tdep.c (sh64_gdbarch_init): Update.
4409 * sh-tdep.c (sh_gdbarch_init): Update.
4410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4411 * mips-tdep.c (mips_gdbarch_init): Update.
4412 * mcore-tdep.c (mcore_gdbarch_init): Update.
4413 * m32r-tdep.c (m32r_gdbarch_init): Update.
4414 * ia64-tdep.c (ia64_gdbarch_init): Update.
4415 * h8300-tdep.c (h8300_gdbarch_init): Update.
4416 * frv-tdep.c (frv_gdbarch_init): Update.
4417 * cris-tdep.c (cris_gdbarch_init): Update.
4418 * arm-tdep.c (arm_gdbarch_init): Update.
4419 * alpha-tdep.c (alpha_gdbarch_init): Update.
4420
4421 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4422
4423 * PROBLEMS: Add more specific information, and a work-around,
4424 for PR gdb/1458.
4425
4426 2004-06-18 Andrew Cagney <cagney@gnu.org>
4427
4428 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4429 * gdbarch.h, gdbarch.c: Re-generate.
4430 * ada-lang.c (ada_finish_decode_line_1): Update.
4431 * infrun.c (handle_inferior_event): Update.
4432 * infcall.c (find_function_addr): Update.
4433 * linespec.c (minsym_found): Update.
4434 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4435 Update.
4436 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4437 * cli/cli-cmds.c (disassemble_command): Update.
4438 * vax-tdep.c (vax_gdbarch_init): Update.
4439
4440 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4441
4442 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4443
4444 2004-06-17 Andrew Cagney <cagney@gnu.org>
4445
4446 GDB 6.1.1 released from the GDB 6.1 branch.
4447 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4448 * PROBLEMS: Ditto.
4449
4450 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4451
4452 PR gdb/1658
4453 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4454 operation as a uleb128. Found by Michael Coulter.
4455
4456 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4457
4458 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4459 make it non-static.
4460 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4461 to ada-lang.h; this is needed to be able to implement the kill command
4462 in multi-task mode.
4463 (task_ptid): Ditto.
4464 (task_entry): Ditto.
4465 (task_list): Ditto.
4466 (ada_build_task_list): Ditto.
4467
4468 * ada-lang.c: Conditionalize routines and data structures related
4469 to breakpoints, exceptions, completion, and symbol caching on
4470 GNAT_GDB, since these are not yet used in the submitted public sources.
4471 (ada_main_name): Editorial: Move definition out of exception-related
4472 code.
4473
4474 2004-06-15 Andrew Cagney <cagney@gnu.org>
4475
4476 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4477 deprecated_pc_in_call_dummy.
4478
4479 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4480
4481 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4482 bfd_get_section_size_before_reloc or _raw_size.
4483 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4484 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4485 (dwarf2_read_section): Likewise.
4486 * elfread.c (elf_locate_sections): Likewise.
4487 * gcore.c (derive_heap_segment): Likewise.
4488 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4489 * remote-e7000.c (e7000_load): Likewise.
4490 * remote-m32r-sdi.c (m32r_load): Likewise.
4491 * remote-mips.c (mips_load_srec): Likewise.
4492 (pmon_load_fast): Likewise.
4493 * remote.c (compare_sections_command): Likewise.
4494 * symfile.c (add_section_size_callback): Likewise.
4495 (load_section_callback): Likewise.
4496 (pc_in_unmapped_range): Likewise.
4497 (pc_in_mapped_range): Likewise.
4498 (sections_overlap): Likewise.
4499 (list_overlays_command): Likewise.
4500 (simple_overlay_update_1): Likewise.
4501 (simple_overlay_update): Likewise.
4502 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4503 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4504
4505 2004-06-14 Randolph Chung <tausq@debian.org>
4506
4507 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4508 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4509 static.
4510 (hppa_hpux_inferior_created): New function.
4511 (hppa_hpux_init_abi): Register observer.
4512 * symfile.c (hp_cxx_exception_support_initialized)
4513 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4514 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4515
4516 2004-06-14 Randolph Chung <tausq@debian.org>
4517
4518 * MAINTAINERS (Write After Approval): Alphabetize my entry
4519 correctly.
4520
4521 2004-06-14 Andrew Cagney <cagney@gnu.org>
4522
4523 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4524 testsuite maintainer.
4525
4526 2004-06-13 Andrew Cagney <cagney@gnu.org>
4527
4528 * infcmd.c (print_return_value): Fix logic, allow
4529 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4530
4531 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4532 defining any macros.
4533 * gdbarch.h: Re-generate.
4534
4535 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4536 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4537 * gdbarch.h: Re-generate.
4538
4539 * values.c (generic_use_struct_convention): Don't check gcc_p.
4540
4541 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4542 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4543 * gdbarch.h, gdbarch.c: Regenerate.
4544 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4545 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4547 deprecated_max_register_raw_size and
4548 deprecated_max_register_virtual_size.
4549 * v850-tdep.c (v850_gdbarch_init): Ditto.
4550 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4551 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4552 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4553 * cris-tdep.c (cris_gdbarch_init): Ditto.
4554
4555 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4556 * gdbarch.h, gdbarch.c: Re-generate.
4557 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4558 (m68hc11_use_struct_convention): Delete function.
4559 (m68hc11_extract_struct_value_address): Delete function.
4560 (m68hc11_return_value): New function.
4561 (m68hc11_gdbarch_init): Instead of store_return_value,
4562 extract_return_value, return_value_on_stack,
4563 deprecated_extract_struct_value_address and use_struct_convention,
4564 set return_value.
4565 * values.c (using_struct_return): Do not call
4566 RETURN_VALUE_ON_STACK.
4567 * arch-utils.h (generic_return_value_on_stack_not): Delete
4568 declaration.
4569 * arch-utils.c (generic_return_value_on_stack_not): Delete
4570 function.
4571
4572 2004-06-12 Andrew Cagney <cagney@gnu.org>
4573
4574 * values.c (register_value_being_returned): Delete function.
4575 * infcmd.c (legacy_return_value): Delete function.
4576 * infcall.c (call_function_by_hand): Inline
4577 "register_value_being_returned", simplify.
4578 * values.c (using_struct_return): Update comment, refer to
4579 print_return_value instead of register_value_being_returned.
4580 * infcmd.c (print_return_value): Inline calls to
4581 register_value_being_returned and legacy_return_value. Simplify.
4582
4583 2004-06-11 Randolph Chung <tausq@debian.org>
4584
4585 * somread.c (som_symtab_read): Exclude gcc local symbols.
4586
4587 2004-06-11 Randolph Chung <tausq@debian.org>
4588
4589 * infrun.c (handle_inferior_event): Handle the case when a
4590 trampoline ends up in the runtime resolver, and if the trampoline
4591 has no name. Rearrange the code so that all the trampoline
4592 processing happens before other step-out-of-range handling.
4593
4594 2004-06-11 Martin Hunt <hunt@redhat.com>
4595
4596 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4597 has no fpu.
4598
4599 2004-06-10 Andrew Cagney <cagney@gnu.org>
4600
4601 * blockframe.c (legacy_inside_entry_func): Delete.
4602 (legacy_frame_chain_valid): Inline call to
4603 legacy_inside_entry_func, simplify.
4604
4605 2004-06-10 Bob Rossi <bob@brasko.net>
4606
4607 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4608 * dwarf2read.c (partial_die_info): Add dirname field.
4609 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4610 (read_partial_die): Save away DW_AT_comp_dir.
4611 * defs.h (symtab_to_filename): Removed.
4612 * source.c (find_and_open_source): Added.
4613 (open_source_file): Just calls find_and_open_source.
4614 (symtab_to_filename): Removed.
4615 (symtab_to_fullname, psymtab_to_fullname): Added.
4616 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4617 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4618 symtab_to_filename.
4619 * symtab.h (partial_symtab): Add dirname field.
4620 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4621 (mi_cmd_file_list_exec_source_file): Call new function
4622 symtab_to_fullname to find fullname.
4623 (mi_cmd_file_list_exec_source_files): Added.
4624 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4625 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4626
4627 2004-06-10 Andrew Cagney <cagney@gnu.org>
4628
4629 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4630 to generic_use_struct_convention, the default value.
4631
4632 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4633 of abort.
4634
4635 * ns32k-tdep.c (ns32k_push_arguments): New function.
4636 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4637 * infcall.c (call_function_by_hand): Call error instead of
4638 legacy_push_arguments.
4639 * value.h (legacy_push_arguments): Delete declaration.
4640 * valops.c (legacy_push_arguments): Delete function.
4641 (value_push): Delete function.
4642
4643 2004-06-10 Brian Ford <ford@vss.fsi.com>
4644
4645 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4646 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4647 info.
4648 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4649
4650 2004-06-10 Andrew Cagney <cagney@gnu.org>
4651
4652 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4653 * gdbarch.h, gdbarch.c: Re-generate.
4654 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4655 parameters.
4656 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4657 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4658 deprecated_pc_in_call_dummy instead of
4659 DEPRECATED_PC_IN_CALL_DUMMY.
4660 (arm_skip_prologue): Ditto.
4661 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4662 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4663 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4664 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4665 Ditto.
4666 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4667 (sh64_init_extra_frame_info, sh64_get_saved_register)
4668 (sh64_pop_frame): Ditto.
4669 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4670 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4671 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4672 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4673 (h8300_pop_frame): Ditto.
4674 * blockframe.c (legacy_inside_entry_func)
4675 (legacy_frame_chain_valid): Ditto.
4676 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4677 to deprecated_pc_in_call_dummy.
4678
4679 2004-06-09 Andrew Cagney <cagney@gnu.org>
4680
4681 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4682 provide a default value.
4683 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4684 * gdbarch.h, gdbarch.c: Re-generate.
4685 * arch-utils.c (generic_convert_register_p): Rename
4686 legacy_convert_register_p
4687 (legacy_register_to_value, legacy_value_to_register): Delete
4688 functions.
4689 * arch-utils.h (generic_convert_register_p): Rename
4690 legacy_convert_register_p.
4691 (legacy_register_to_value, legacy_value_to_register): Delete
4692 declarations.
4693
4694 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4695 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4696 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4697 * gdbarch.h, gdbarch.c: Re-generate.
4698 * infcmd.c (default_print_registers_info): Simplify.
4699 * findvar.c (value_of_register): Simplify.
4700 * mi/mi-main.c (get_register): Simplify.
4701 * arch-utils.c (legacy_convert_register_p): Always return 0.
4702 (legacy_register_to_value, legacy_value_to_register): Always call
4703 internal_error.
4704
4705 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4706 #ifdef CLEAR_INSN_CACHE code.
4707 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4708 Delete #ifdef CLEAR_DEFERRED_STORES code.
4709
4710 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4711
4712 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4713 copyright.
4714 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4715
4716 * config/mips/mipsv4.mh: Delete file.
4717
4718 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4719 unreferenced macro.
4720 (hpread_adjust_stack_address): Delete declaration.
4721
4722 2004-06-08 Andrew Cagney <cagney@gnu.org>
4723
4724 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4725 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4726 PTRACE_ATTACH / PTRACE_DETACH available call error.
4727 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4728 * infttrace.c (update_thread_state_after_attach, attach, detach):
4729 Remove #ifdef wrappers.
4730 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4731 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4732 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4733 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4734 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4735 * config/nm-linux.h (ATTACH_DETACH): Delete.
4736 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4737 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4738 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4739 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4740 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4741
4742 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4743
4744 * configure.in: Set $configdir to the right OS specific value.
4745 Use value when setting $tcldir and $tkdir.
4746 * configure: Regenerate.
4747
4748 2004-06-06 Paul Brook <paul@codesourcery.com>
4749
4750 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4751 records.
4752
4753 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4754
4755 * ada-lang.c (lookup_symbol_in_language): New function to allow
4756 re-use of another language's symbol lookup code. (Placed here
4757 temporarily while Ada support is being integrated into the public
4758 tree).
4759 (restore_language): New auxiliary function for
4760 lookup_symbol_in_language.
4761 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4762 temporarily while Ada support is being integrated into the public
4763 tree).
4764
4765 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4766
4767 * Makefile.in (check//%): New.
4768
4769 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4770 (mn10300_store_return_value): Rewrite.
4771 (mn10300_type_align): New.
4772 (mn10300_use_struct_convention): Rewrite.
4773 (mn10300_return_value): New, using all of the above.
4774 (mn10300_pop_frame_regular): Add saved_regs_size.
4775 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4776
4777 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4778 regs if PC is on movm.
4779
4780 2004-06-07 Jim Blandy <jimb@redhat.com>
4781
4782 Add native Linux support for the PowerPC E500.
4783 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4784 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4785 all architectures except the E500.
4786 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4787 #definitions.
4788 (struct gdb_evrregset_t): New type.
4789 (have_ptrace_getsetevrregs): New variable.
4790 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4791 fetch_spe_registers): New functions.
4792 (fetch_register): Call fetch_spe_register as appropriate.
4793 Assert that we're only passed raw register numbers.
4794 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4795 Don't fetch gprs if they're pseudoregisters.
4796 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4797 store_spe_registers): New functions.
4798 (store_register): Call store_spe_register as appropriate.
4799 Assert that we're only passed raw register numbers.
4800 (store_ppc_registers): Call store_spe_registers as appropriate.
4801 Don't store gprs if they're pseudoregisters.
4802
4803 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4804
4805 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4806 struct if one exists, even if we are dealing with a zombie thread.
4807
4808 2004-06-07 Andrew Cagney <cagney@gnu.org>
4809
4810 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4811 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4812 Rename PC_REQUIRES_RUN_BEFORE_USE.
4813 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4814 #ifdef.
4815
4816 2004-06-07 Randolph Chung <tausq@debian.org>
4817
4818 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4819 unwinding after sp has been saved to the stack but before the end
4820 of the prologue, and after the fp has been modified but before it has
4821 been saved to the stack.
4822 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4823 Remove superfluous definitions.
4824 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4825
4826 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4827
4828 Committed by Randolph Chung.
4829 * hppa-linux-nat.c: Include the correct version of the header file
4830 depending on the kernel version.
4831
4832 2004-06-06 Randolph Chung <tausq@debian.org>
4833
4834 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4835 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4836
4837 2004-06-06 Randolph Chung <tausq@debian.org>
4838
4839 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4840 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4841 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4842 * hppa-tdep.c (hppa_symbol_address): New function definition.
4843 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4844
4845 2004-06-06 Randolph Chung <tausq@debian.org>
4846
4847 * hppa-tdep.h (struct value): Forward declaration.
4848 (gdbarch_tdep): Define tdep find_global_pointer method.
4849 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4850 associated with the function we are trying to call, and write it
4851 to the gp register.
4852 (hppa32_convert_from_funct_ptr_addr): New function.
4853 (hppa_find_global_pointer): New function.
4854 (hppa_gdbarch_init): Set default find_global_pointer method; set
4855 convert_from_func_ptr_addr method.
4856 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4857 (hppa_linux_init_abi): Set find_global_pointer method.
4858 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4859
4860 2004-06-06 Randolph Chung <tausq@debian.org>
4861
4862 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4863 to struct value *function.
4864 * gdbarch.c: Regenerate.
4865 * gdbarch.h: Likewise.
4866 * infcall.c (call_function_by_hand): Pass entire function value
4867 to push_dummy_call.
4868
4869 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4870 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4871 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4872 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4873 * arm-tdep.c (arm_push_dummy_call): Likewise.
4874 * avr-tdep.c (avr_push_dummy_call): Likewise.
4875 * cris-tdep.c (cris_push_dummy_call): Likewise.
4876 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4877 * frv-tdep.c (frv_push_dummy_call): Likewise.
4878 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4879 * hppa-tdep.c (hppa32_push_dummy_call)
4880 (hppa64_push_dummy_call): Likewise.
4881 * i386-tdep.c (i386_push_dummy_call): Likewise.
4882 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4883 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4884 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4885 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4886 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4887 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4888 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4889 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4890 (ppc64_sysv_abi_push_dummy_call): Likewise.
4891 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4892 (ppc64_sysv_abi_push_dummy_call): Likewise.
4893 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4894 * s390-tdep.c (s390_push_dummy_call): Likewise.
4895 * sh-tdep.c (sh_push_dummy_call_fpu)
4896 (sh_push_dummy_call_nofpu): Likewise.
4897 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4898 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4899 * vax-tdep.c (vax_push_dummy_call): Likewise.
4900
4901 2004-06-04 Jim Blandy <jimb@redhat.com>
4902
4903 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4904 gdbarch argument to register_size.
4905
4906 * rs6000-tdep.c (rs6000_store_return_value): Use
4907 regcache_cooked_write_part instead of
4908 deprecated_write_register_bytes.
4909 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4910 not gdbarch_deprecated_store_return_value.
4911
4912 * ppc-linux-nat.c (store_register, fetch_register): Remove
4913 incorrect assertions. Simplify and generalize handling of
4914 transfers whose sizes are not multiples of, or less than, sizeof
4915 (PTRACE_XFER_TYPE).
4916
4917 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4918
4919 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4920 as a new thread event.
4921 * thread-db.c (thread_get_info_callback): If the thread is a
4922 zombie, return TD_THR_ZOMBIE.
4923 (thread_from_lwp): If thread_get_info_callback returns
4924 TD_THR_ZOMBIE, check if the thread is still on the thread list
4925 and return a -1 ptid if not found.
4926 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4927 change the status to TARGET_WAITKIND_SPURIOUS.
4928
4929 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4930
4931 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4932 double values in little endian mode.
4933
4934 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4935
4936 Committed by Andrew Cagney.
4937 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4938 after last enum constant to avoid error from IBM C
4939 compiler.
4940
4941 2004-06-02 Jim Blandy <jimb@redhat.com>
4942
4943 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4944 to 'message', and make it local to the lone block that uses it.
4945
4946 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4947
4948 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4949
4950 * ada-exp.y: Update copyright notice.
4951 Include block.h.
4952
4953 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4954 SPECIAL_VARIABLE and unify the treatment of these cases.
4955
4956 (write_attribute_call0): Remove.
4957 (write_attribute_call1): Remove.
4958 (write_attribute_calln): Remove.
4959 (save_qualifier): Add missing semicolon.
4960
4961 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4962 temporarily disabled to allow compilation with FSF head version.
4963
4964 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4965 use individual operators (OP_*) for all attributes.
4966 (exp syntax): Use write_int.
4967 Handle STRING literals with OP_STRING.
4968 (variable syntax): Add limit parameter to calls to
4969 write_object_renaming.
4970
4971 (temp_parse_space): New definition to hold entities that need
4972 only live until the next call to ada_parse.
4973 (string_to_operator): Rename fields of ada_opname_table entries.
4974
4975 (write_var_from_sym): Record block.
4976 (write_var_from_name): Minor reformatting.
4977 Make sure saved name is properly encoded in the case of multiple
4978 matches, and set its language to Ada.
4979 Update comment.
4980 Modify to indicate unresolved name as symbol in the UNRESOLVED
4981 namespace, allocated in temp_parse_space.
4982 (write_int): New function.
4983
4984 (write_object_renaming): Add max_depth parameter to limit
4985 chains of object renamings.
4986 Handle case where root of renaming expression is itself a renaming.
4987 Use temp_parse_space for temporary name buffer.
4988 Handle renamings to dereferenced pointers (___XEXA suffices).
4989
4990 (ada_parse, yyerror, string_to_operator,
4991 write_var_from_sym, write_var_from_name, write_attribute_call0,
4992 write_attribute_call1, write_attribute_calln,
4993 write_object_renaming): Protoize.
4994
4995 (_initialize_ada_exp): New function.
4996
4997 * ada-lang.c: Update copyright notice.
4998 General terminology change to conform to GNAT compiler usage:
4999 mangle => encode, demangle => decode
5000 Include gdb_obstack.h.
5001 Include gdb_regex.h
5002 Include frame.h
5003 Include hashtab.h
5004 Include completer.h
5005 Include gdb_stat.h
5006 Include block.h
5007 Include infcall.h
5008
5009 (ADA_RETAIN_DOTS): Make sure this is defined.
5010 (TRUNCATION_TOWARDS_ZERO): Define.
5011 (struct string_vector): Define.
5012 (unresolved_names): Remove definition.
5013 (xnew_string_vector): New function.
5014 (string_vector_append): New function.
5015 (extract_string): Make static.
5016 (ada_unqualified_name): New function.
5017 (add_angle_brackets): New function.
5018 (function_name_from_pc): New function.
5019 (place_on_stack): Rename to ensure_lval.
5020
5021 (ensure_lval): Renamed from place_on_stack.
5022 Make identity on lvals.
5023 Update comment.
5024 (is_nonfunction): New interface.
5025 Only symbols in LOC_CONST class can be enumerals.
5026 (fill_in_ada_prototype): Remove; now independent of language.
5027 (add_defn_to_vec): Add obstack and symtab arguments.
5028 Use obstack to hold collected definitions.
5029 (num_defns_collected): New function.
5030 (defns_collected): New function.
5031 (ada_resolve_subexp): Rename to resolve_subexp.
5032 (resolve_subexp): Renamed from ada_resolve_subexp.
5033 (ada_op_name): Return non-const result.
5034 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5035 other purposes.
5036
5037 (to_fixed_array_type): Add declaration.
5038 (coerce_unspec_val_to_type): Remove offset parameter.
5039 (find_sal_from_funcs_and_line): New interface.
5040 (find_line_in_linetable): Ditto.
5041
5042 (all_sals_for_line): Rename to ada_sals_for_line and make
5043 global.
5044 Add new parameter. When set, do not ask the user to choose the
5045 instance, but use the first one found instead.
5046 Use given line number in returned sals.
5047 Fix comment.
5048 Skip the prologue if funfirstline is set.
5049 Correct for memory leak when 0 lines found.
5050
5051 (value_pos_atr): Use pos_atr.
5052 (pos_atr): New function.
5053 (standard_lookup): Add block parameter.
5054
5055 (makeTimeStart): Remove declaration and uses.
5056 (makeTimeStop): Remove declaration and uses.
5057
5058 (ada_completer_word_break_characters): Allow for VMS.
5059 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5060 (raise_sym_name): New constant.
5061 (raise_unhandled_sym_name): New constant.
5062 (raise_assert_sym_name): New constant.
5063 (process_raise_exception_name): New constant.
5064 (longest_exception_template): New constant.
5065 (warning_limit): New variable to limit warnings during expression
5066 evaluation.
5067 (warnings_issued): New variable to keep track of warnings issued.
5068 (known_runtime_file_name_patterns): New constant.
5069 (known_auxiliary_function_name_patterns): New constant.
5070 (symbol_list_obstack): New variable.
5071
5072 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5073 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5074 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5075 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5076 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5077 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5078 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5079 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5080 and strcmp.
5081
5082 (ada_get_field_index): New function.
5083 (lim_warning): New function.
5084 (ada_translate_error_message): New function.
5085 (MAX_OF_SIZE): New function.
5086 (MIN_OF_SIZE): New function.
5087 (UMAX_OF_SIZE): New function.
5088 (UMIN_OF_SIZE): New function.
5089 (discrete_type_high_bound): New function.
5090 (discrete_type_low_bound): New function.
5091 (base_type): New function.
5092 (do_command): Remove.
5093
5094 (ada_update_initial_language): Use language_ada, not language_unknown.
5095 (ada_encode): Renamed from ada_mangle.
5096 Obey ADA_RETAIN_DOTS.
5097 (ada_decode): Renamed from ada_demangle.
5098 Update coding conventions.
5099 (decoded_names_store): New hash table.
5100 (ada_decode_symbol): New function.
5101 (ada_la_decode): New function.
5102
5103 (modify_general_field): Correct computations of offset and bit
5104 position.
5105 (desc_base_type): Handle ref types, too.
5106 (ada_is_direct_array_type): New function.
5107
5108 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5109 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5110 (ada_is_bogus_array_descriptor,ada_type_of_array,
5111 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5112 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5113 ada_is_array_descriptor_type.
5114
5115 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5116 (ada_is_packed_array_type): Handle pointers or
5117 references to packed arrays as well.
5118 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5119 (decode_packed_array_type): Search for the packed array type
5120 symbol in the currently selected block and associated
5121 superblocks too.
5122 Use lookup_symbol again.
5123
5124 (decode_packed_array): Handle pointers and references.
5125 Update call to coerce_unspec_val_to_type.
5126 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5127 (ada_value_primitive_packed_val): Improve comment.
5128
5129 (ada_index_type): Substitute int type for "undefined".
5130 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5131 ada_array_langth, ada_is_string_type): Use renamed
5132 ada_is_simple_array_type.
5133 (empty_array): New function.
5134
5135 (ada_resolve): Rename to resolve.
5136 (resolve): Make static.
5137 Call renamed resolve_subexp.
5138 Update comment.
5139 (ada_resolve_subexp): Rename to resolve_subexp.
5140 (resolve_subexp): Update comment.
5141 Decomment disabled code.
5142 Add LOC_COMPUTED* cases.
5143 Modify to use temporary struct symbols (marked as being in
5144 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5145 OP_UNRESOLVED_VALUE.
5146 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5147 Add OP_STRING case.
5148 Remove OP_ARRAY.
5149 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5150 Use new ada_lookup_symbol_list interface.
5151 Use new ada_resolve_function interface.
5152 Remove OP_TYPE case.
5153
5154 (ada_args_match): Idiot proof against null actuals.
5155 Use intermediate variables to clarify.
5156 (ada_resolve_function): Update comment and interface.
5157 (mangled_ordered_before): Rename to encoded_ordered_before and
5158 update comment.
5159 (sort_choices): Update comment and interface.
5160 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5161 (user_select_syms): New interface.
5162 Use new sort_choices interface.
5163 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5164 (possible_user_operator_p): Idiot-proof against null values.
5165 (ada_simple_renamed_entity): Don't make cleanup; rely on
5166 caller to free result string.
5167 Remove const from return type.
5168 (make_array_descriptor): Rename uses of place_on_stack to
5169 ensure_lval.
5170 Make sure that arrays are on stack.
5171
5172 (HASH_SIZE): Define.
5173 (struct cache_entry): Define.
5174 (cache_space): Define.
5175 (cache): Define.
5176 (clear_ada_sym_cache): New function.
5177 (find_entry): New function.
5178 (lookup_cached_symbol): New function.
5179 (defn_vector_size): Define.
5180 (cache_symbol): New function.
5181 (defn_symbols): Remove.
5182
5183 (standard_lookup): Use lookup_symbol_in_language to get effect of
5184 C lookup.
5185 Cache results.
5186
5187 (symbol_completion_match): New function.
5188 (symbol_completion_add): New function.
5189 (ada_make_symbol_completion_list): New function.
5190
5191 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5192 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5193 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5194 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5195
5196 (ada_lookup_simple_minsym): New function.
5197 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5198
5199 (add_symbols_from_enclosing_procs): New interface.
5200 Conditionalize more helpfully.
5201 Don't bother if program isn't running.
5202 Use new interface to get_frame_block.
5203 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5204
5205 (remove_extra_symbols): New interface.
5206 (xget_renaming_scope): New function.
5207 (is_package_name): New function.
5208 (renaming_is_visible): New function.
5209 (remove_out_of_scope_renamings): New function.
5210
5211 (ada_lookup_symbol_list): New interface.
5212 Properly reinitialize the symbol list obstack.
5213 Don't call add_symbols_from_enclosing_procs if we start from a
5214 static or global block.
5215 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5216 add_symbols_from_enclosing_procs.
5217 Add symtab data to cached entries.
5218 Handle symbols prefixed with
5219 "standard__" specially; strip prefix and don't look in local symbols.
5220 Do not include out of scope renaming symbols in list of
5221 symbols returned.
5222 Add const to block parameter.
5223 Move check for non-local, non-global symbols earlier.
5224 Remove timing stuff.
5225 (ada_lookup_symbol): New interface.
5226 Find symtab as well.
5227 (ada_lookup_symbol_nonlocal): New function.
5228
5229 (is_name_suffix): Enhance suffix detection to recognize
5230 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5231 (is_dot_digits_suffix): New function.
5232 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5233
5234 (ada_add_block_symbols): New interface. Use obstack to return results
5235 in a vector of struct ada_symbol_infos. Add symtab argument.
5236 Use new interface to add_defn_to_vec.
5237 Remove calls to fill_in_ada_prototype.
5238 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5239
5240 (ada_finish_decode_line_1): Add const qualification to local to fix
5241 warning.
5242 Start looking in static block for functions to avoid attempts
5243 to search frame chain for up-level variables.
5244 Adapt to new ada_sals_for_line interface.
5245 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5246 Handle quoting of the function name inside the spec string.
5247 Skip prologue when funfirstline is set and update the
5248 function documentation to that effect.
5249
5250 (debug_print_lines, debug_print_block, debug_print_blocks,
5251 debug_print_symtab): Remove.
5252
5253 (ada_main_name): New function.
5254 (ada_exception_breakpoint_type): New function.
5255 (is_known_support_routine): New function.
5256 (ada_find_printable_frame): Renamed from find_printable_frame and made
5257 global.
5258 Remove level parameter.
5259 Use new interface to select_frame.
5260
5261 (begin_command): Remove.
5262 (ada_adjust_exception_stop): New function.
5263 (ada_print_exception_stop): New function.
5264 (exception_name_from_cond): New function.
5265 (ada_report_exception_break): Replace disabled code with
5266 conditionalization on GNAT_GDB.
5267 Get the exception name from the condition string.
5268 Remove and move functionality into new functions
5269 ada_print_exception_breakpoint_task and
5270 ada_print_exception_breakpoint_nontask.
5271 (error_breakpoint_runtime_sym_not_found): New function.
5272 (is_runtime_sym_defined): New function.
5273 (ada_breakpoint_rewrite): Uncomment suppressed code.
5274 Use symbolic error-message and runtime-symbol names.
5275 Surround runtime symbol names in quotes.
5276 Allow non-specific breakpoints on exceptions and assertions before
5277 program starts.
5278
5279 (ada_is_tagged_type): Add parameter.
5280 (ada_is_tag_type): New function.
5281 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5282 (ada_variant_discrim_type): Ditto.
5283 (value_tag_from_contents_and_address): New function.
5284 (type_from_tag): New function.
5285 (struct tag_args): New structure used to communicate with
5286 ada_tag_name_1.
5287 (ada_tag_name_1): New function.
5288 (ada_tag_name): New function.
5289
5290 (ada_scan_number): Update comment.
5291 (find_struct_field): New function.
5292 (ada_search_struct_field): Make static.
5293 (ada_value_struct_elt): New version that returns references when
5294 given pointers or references to structs.
5295 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5296 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5297 interface.
5298 (ada_value_ind): Use new ada_to_fixed_value interface.
5299 (ada_coerce_ref): Ditto.
5300 (field_offset): Remove.
5301
5302 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5303 (ada_find_renaming_symbol): New function.
5304 (ada_prefer_type): Prefer named types over unnamed ones.
5305 (variant_field_index): New function.
5306 (contains_variant_part): Removed: subsumed by variant_field_index.
5307 (ada_template_to_fixed_record_type): New function, mostly from
5308 template_to_fixed_record_type.
5309 (template_to_fixed_record_type):
5310 Do not scan the type fields beyond the last one; prevents a
5311 potential SEGV.
5312 Handle case where variant field is listed BEFORE discriminant it
5313 depends on.
5314 Fix calculation of record length when bit length is
5315 not evenly divisible by char length.
5316 Move code to ada_template_to_fixed_record_type and call it.
5317
5318 (template_to_static_fixed_type): Revise comment.
5319 Modify to work on ordinary record types as well as templates,
5320 so as to handle fields that use ___XVE or ___XVU encodings.
5321 (to_record_with_fixed_variant_part): Fill out comment.
5322 Initialize C++ stuff in right type.
5323 Allow case where DVAL is null.
5324 Handle case where variant field is not last.
5325 Fix typo concerning record length.
5326 (to_fixed_record_type): Decomment disabled code.
5327 (to_fixed_record_type): Use variant_field_index instead of
5328 contains_variant_part.
5329 (to_fixed_variant_branch_type): Ditto.
5330 (to_fixed_array_type): Decomment disabled code.
5331 (ada_to_fixed_type): Convert tagged types to the specific type.
5332 Deactivate the size-check for array types in order to avoid
5333 some false size alarms.
5334 (to_static_fixed_type): Decomment disabled code.
5335 Modify to call template_to_static_fixed_type
5336 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5337 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5338 Remove valaddr argument, as it is never really used.
5339 (ada_to_fixed_value): Change interface to act on single struct value*
5340 operand.
5341 (adjust_pc_past_prologue): New function.
5342 (ada_attribute_name): Modify to take enum exp_opcode argument.
5343
5344 (ada_enum_name): Recognize new homonym-distinguishing convention.
5345 Adjust local variable's type to remove compiler warning.
5346 Fix a small problem in the part that unqualifies the enumeration name.
5347 (ada_value_binop): New function.
5348 (ada_value_equal): New function.
5349
5350 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5351 Don't give error message when not doing normal evaluation
5352 and a tagged type doesn't seem to contain a structure member.
5353 Give error message for packed arrays.
5354 For indexing arrays, handle pointers to packed arrays correctly.
5355 Handle case of 'first and 'last attributes of bare integral type
5356 without encoded subtype info.
5357 Remove some unnecessary casts.
5358 Fix uninitialized value of type in computing 'first, 'last, or 'length
5359 of array object.
5360 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5361 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5362 calls.
5363 Attributes are now exp_opcode values.
5364 Correct treatment of 'modulus.
5365 Better error message for taking 'length of wrong kind of type;
5366 improve comment.
5367 Change EVAL_NORMAL to noside for consistency.
5368 Use ada_value_binop for DIV, MOD, REM.
5369 Make special case out of array of length 0, since an argument
5370 of 0 upsets some platforms' malloc.
5371 Use OP_STRING instead of OP_ARRAY.
5372 For slice, add check that we have an array type before extracting
5373 a slice out of it. Avoids a SEGV.
5374 When evaluating an array slice, if the array type is a reference to
5375 an aligner type, then replace the aligner type by the actual type.
5376 Decomment disabled code.
5377 Remove some dead code.
5378 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5379 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5380 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5381 and UNOP_MBR to UNOP_IN_RANGE.
5382 If an array type has a parallel ___XVE type, then use it.
5383 Turn arrays into pointers for lvalue arrays.
5384 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5385 bounds error and handle 0-length slices.
5386 Use lim_warning.
5387 When selecting fields, apply ada_to_fixed_value (because the fields
5388 might have ___XVU or ___XVE encodings even if not dynamic.)
5389 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5390 (ada_is_system_address_type): New function.
5391
5392 (get_var_value): Use new interface to ada_lookup_symbol_list.
5393 (get_int_var_value): New interface.
5394 (to_fixed_range_type): Allow unknown bound, with warning.
5395 (ada_is_modular_type): Decomment disabled code.
5396 (ADA_OPERATORS): New definition.
5397 (ada_operator_length): New function.
5398 (ada_expr_op_name): New function.
5399 (ada_forward_operator_length): New function.
5400 (ada_dump_subexp_body): New function.
5401 (ada_print_subexp): New function.
5402 (ada_exp_descriptor): New constant.
5403 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5404 (ada_language_defn): Add ada_exp_descriptor entry.
5405 Change ada_parse => parse.
5406 Add post-parser entry.
5407 Use ada-specific non-local symbol lookup.
5408 Don't use C-style arrays.
5409 String lower-bound is 1.
5410 Decomment disabled code.
5411 (parse): New function.
5412 New fields ada_translate_error_message, ada_lookup_symbol,
5413 ada_lookup_minimal_symbol.
5414
5415 * ada-lang.h: Update copyright dates.
5416 Replace the mangle/demangle terminology throughout by the
5417 more appropriate encode/decode one.
5418 Include breakpoint.h.
5419 Forward declare struct partial_symbol, struct block.
5420 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5421 (EXTRACT_ADDRESS): Remove.
5422 (EXTRACT_INT): Remove.
5423 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5424 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5425 (MAX_RENAMING_CHAIN_LENGTH): Define.
5426 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5427
5428 (enum task_states): Remove.
5429 ada_task_states: Remove.
5430 (fat_string): Remove.
5431 (struct entry_call): Remove.
5432 (struct task_fields): Remove.
5433 (struct task_entry): Remove.
5434
5435 (struct ada_symbol_info): Define.
5436 (enum ada_attribute): Remove.
5437 (enum ada_operator): Define.
5438
5439 (ada_get_field_index): Declare.
5440 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5441 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5442 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5443 (ada_lookup_symbol_list): New interface.
5444 (ada_decode_symbol): Declare.
5445 (ada_decode): Declare.
5446 (ada_lookup_symbol): New interface.
5447 (ada_update_initial_language): Declare.
5448 (ada_lookup_simple_minsym): Declare.
5449 (user_select_syms): New interface.
5450 (ada_sals_for_line): Declare.
5451 (ada_is_tagged_type): New interface.
5452 (ada_tag_name): Declare.
5453 (ada_lookup_struct_elt_type): Remove declaration.
5454 (ada_search_struct_field): Remove declaration.
5455 (ada_attribute_name): New interface.
5456 (ada_is_system_address_type): Declare.
5457 (ada_to_fixed_value): Remove declaration.
5458 (ada_template_to_fixed_record_type_1): Declare.
5459 (get_int_var_value): New interface.
5460 (ada_find_any_symbol): Declare.
5461 (ada_find_renaming_symbol): Declare.
5462 (ada_mangle): Rename to ada_encode.
5463 (ada_simple_renamed_entity): Remove const.
5464 (ada_main_name): Declare.
5465 (get_current_task): Rename to ada_get_current_task.
5466 (get_entry_number): Remove declaration.
5467 (ada_report_exception_break): Remove declaration.
5468 (ada_print_exception_breakpoint_nontask): Declare.
5469 (ada_print_exception_breakpoint_task): Declare.
5470 (ada_find_printable_frame): Declare.
5471
5472 * ada-lex.l: Update copyright notices.
5473 Use xmalloc and xfree instead of malloc and free.
5474 Use new interface to name_lookup.
5475 Use new interface to
5476 ada_mangle=>ada_encode.
5477 Redo handling of '$...' variable to parallel current treatment
5478 in c-exp.y.
5479 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5480 digit_to_int, strtoulst, processInt, processReal, processId,
5481 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5482 yywrap): Protoize.
5483
5484 (processInt): Use cast to remove harmless warning.
5485 (processReal): Modify to get rid of compiler warning on scan formats.
5486
5487 (processId): Replace xmalloc with obstack_alloc for name and remove
5488 call to ada_name_string_cleanup.
5489 Remove obsolete disabled code.
5490 (name_lookup): Ditto.
5491 New interface.
5492 Use obsavestring on temp_parse_space instead of savestring
5493 on name, and remove call to ada_name_string_cleanup.
5494 Free string returned from ada_simple_renamed_entity.
5495 Use new interface to ada_lookup_symbol_list.
5496 Decomment disabled code.
5497 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5498 not types.
5499 When a type name lookup succeeds as a result of
5500 lookup_primitive_typename, check for regular type entry that has not
5501 yet been read in.
5502 Limit length of chain of renamed symbols we are willing to follow.
5503 Do not break names beginning with "standard__" into segments.
5504 (block_lookup): Use new interface to ada_lookup_symbol_list.
5505
5506 * ada-typeprint.c: Update copyright notice.
5507 (demangled_type_name): Rename to decoded_type_name.
5508 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5509 (print_range_bound): Correct handling of negative
5510 bounds that make the index type looked unsigned under STABS.
5511 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5512 (print_range_type_named): Use the builtin int type if no type
5513 corresponding to the given type name could be found.
5514 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5515 Add some bullet-proofing.
5516 (print_variant_clauses): Allow for variant branches with ___XVU
5517 encodings that are not dynamic fields.
5518 Use new interface to ada_is_tagged_type.
5519 (print_record_type): Allow for fields with ___XVE encodings that
5520 are not dynamic fields.
5521 Use new interface to ada_is_tagged_type.
5522 (ada_print_type): ada_is_array_descriptor =>
5523 ada_is_array_descriptor_type.
5524
5525 * ada-valprint.c: Update copyright notice.
5526 Include gdb_string.h
5527 Include infcall.h
5528 (ui_memcpy): New function.
5529 (ada_print_floating): New function.
5530 (ada_print_str): Order arguments correctly.
5531 Correct handling of empty arrays and arrays of 0-length items.
5532 ada_is_array_descriptor => ada_is_array_descriptor_type
5533 Print values of type System.Address in hexadecimal format.
5534 Use ada_print_floating to print floating-point numbers in Ada format.
5535 Print class tag values with type names.
5536 No longer print the address of reference values. Avoids
5537 a potential confusion.
5538 (ada_value_print): Stop printing the object type for reference
5539 values, but preserve that behavior for access types. Avoids
5540 a potential confusion.
5541 Simplify one conditional expression, as the first part is now
5542 necessarily true.
5543 ada_is_array_descriptor => ada_is_array_descriptor_type
5544 Add check for arrays for null records, and print them by hand.
5545
5546 2004-06-01 Jim Blandy <jimb@redhat.com>
5547
5548 * ppc-tdep.h: Delete unused 'regoff' member.
5549 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5550
5551 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5552
5553 Fix PR symtab/1661.
5554 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5555 (hpread_read_struct_type): Likewise.
5556
5557 2004-06-01 Andrew Cagney <cagney@gnu.org>
5558
5559 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5560 instead of xasprintf.
5561 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5562 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5563 (mi_cmd_data_list_register_names)
5564 (mi_cmd_data_list_changed_registers)
5565 (mi_cmd_data_list_register_values)
5566 (get_register, mi_cmd_data_write_register_values)
5567 (mi_cmd_data_write_register_values)
5568 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5569 (mi_cmd_target_download, mi_cmd_target_select)
5570 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5571 (mi_execute_cli_command, mi_execute_async_cli_command)
5572 (mi_execute_async_cli_command): Ditto.
5573 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5574 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5575
5576 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5577 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5578 error_last_message instead of mi_error_last_message.
5579 * mi/mi-main.c (mi_error_last_message): Delete function.
5580
5581 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5582 "invalid number of columns" error. Delete redundant "out of
5583 memory" check.
5584
5585 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5586
5587 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5588 (gregset_t, fpregset_t): Remove typedefs.
5589 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5590 (REG_OFFSET): Rename argument.
5591 (i386bsd_r_reg_offset): Rename from reg_offset.
5592 (REG_ADDR): Remove macro.
5593 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5594 functions.
5595 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5596 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5597 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5598 instead of supply_gregset.
5599 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5600 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5601 instead of fill_gregset.
5602 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5603
5604 * i386bsd-nat.c: Don't include "gregset.h".
5605 (supply_gregset, fill_gregset): Make static.
5606 (supply_fpregset, fill_fpregset): Remove.
5607 * Makefile.in (i386bsd-nat.o): Update dependencies.
5608
5609 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5610
5611 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5612 "gdb_assert.h". Con't include "gregset.h".
5613 (fbsd_make_corefile_notes): Use regset-based core file support
5614 instead off fill_gregset and fill_fpregset.
5615 * Makefile.in (fbsd-proc.o): Update dependencies.
5616
5617 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5618 instructions.
5619 (m88k_frame_prev_register): Simplify code a bit.
5620
5621 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5622 (amd64_collect_fpregset): New function.
5623 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5624
5625 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5626
5627 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5628 (i386_collect_gregset): New function.
5629 (i386_supply_fpregset): Adjust comment.
5630 (i386_collect_fpregset): New function.
5631 (i386_regset_from_core_section): Use i386_collect_gregset and
5632 i386_collect_fpregset.
5633
5634 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5635 handle VALUEP being null.
5636
5637 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5638
5639 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5640
5641 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5642
5643 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5644 assembler in OpenBSD 3.5-current.
5645 (amd64obsd_sigcontext_addr): Likewise.
5646
5647 2004-05-28 Jim Blandy <jimb@redhat.com>
5648
5649 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5650 register set, so our regcache isn't declared "legacy" and our E500
5651 pseudoregister read and write functions aren't ignored.
5652 (rs6000_register_byte, rs6000_register_raw_size,
5653 rs6000_register_virtual_type, rs6000_register_convertible,
5654 rs6000_register_convert_to_virtual,
5655 rs6000_register_convert_to_raw): Deleted.
5656 (rs6000_register_type, rs6000_convert_register_p,
5657 rs6000_register_to_value, rs6000_value_to_register): New
5658 functions.
5659 (rs6000_gdbarch_init): Don't register
5660 gdbarch_deprecated_register_size,
5661 gdbarch_deprecated_register_bytes,
5662 gdbarch_deprecated_register_byte,
5663 gdbarch_deprecated_register_raw_size,
5664 gdbarch_deprecated_register_virtual_type,
5665 gdbarch_deprecated_register_convertible,
5666 gdbarch_deprecated_register_convert_to_virtual, or
5667 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5668 register gdbarch_register_type, gdbarch_convert_register_p,
5669 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5670
5671 2004-05-26 Jim Blandy <jimb@redhat.com>
5672
5673 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5674 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5675 functions, updated to match the register numberings used in GCC.
5676 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5677 rs6000_dwarf2_reg_to_regnum as register number conversions
5678 functions for STABS and Dwarf2.
5679
5680 2004-05-26 Randolph Chung <tausq@debian.org>
5681
5682 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5683 in header file.
5684
5685 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5686
5687 * NEWS: Document new "start" command.
5688
5689 2004-05-25 Randolph Chung <tausq@debian.org>
5690
5691 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5692 hppa-linux.
5693
5694 2004-05-25 Randolph Chung <tausq@debian.org>
5695
5696 * hppa-hpux-tdep.c (offsetof): Define.
5697 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5698 (hppa32_hpux_frame_base_before_sigtramp)
5699 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5700 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5701 (hppa64_hpux_frame_base_before_sigtramp)
5702 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5703 functions.
5704 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5705 (hppa_hpux_sigtramp_frame_unwind_cache)
5706 (hppa_hpux_sigtramp_frame_this_id)
5707 (hppa_hpux_sigtramp_frame_prev_register)
5708 (hppa_hpux_sigtramp_frame_unwind)
5709 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5710 (hppa_hpux_init_abi): Register sigtramp unwinder.
5711 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5712
5713 2004-05-25 Randolph Chung <tausq@debian.org>
5714
5715 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5716 and multiple stack unwinds.
5717 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5718
5719 2004-05-25 Andrew Cagney <cagney@gnu.org>
5720
5721 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5722 * symfile-mem.h: Delete file.
5723 * symfile-mem.c: Do not include "symfile-mem.h".
5724 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5725 "struct bfd_section". When an error do not bother returning NULL.
5726 (add_symbol_file_from_memory_command): Use "struct bfd" and
5727 "struct bfd_section".
5728 * Makefile.in (symfile_mem_h): Delete.
5729 (symfile-mem.o): Update dependencies.
5730
5731 2004-05-25 Nick Roberts <nickrob@gnu.org>
5732
5733 * gdb-mi.el: New file.
5734
5735 2004-05-25 Andrew Cagney <cagney@gnu.org>
5736
5737 * inftarg.c: Include "observer.h".
5738 (child_attach, child_create_inferior): Notify inferior_created.
5739 * corelow.c: Include "observer.h".
5740 (core_open): Notify inferior_created.
5741 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5742
5743 2004-05-25 Andrew Cagney <cagney@gnu.org>
5744
5745 * target.h (struct target_ops): Add from_tty to
5746 to_create_inferior.
5747 (target_create_inferior, find_default_create_inferior): Update.
5748 * infcmd.c (run_command): Update.
5749 * wince.c (child_create_inferior): Update.
5750 * win32-nat.c (child_create_inferior): Update.
5751 * uw-thread.c (uw_thread_create_inferior): Update.
5752 * thread-db.c (thread_db_create_inferior): Update.
5753 * target.c (debug_to_create_inferior)
5754 (find_default_create_inferior): Update.
5755 (maybe_kill_then_create_inferior): Update.
5756 * sol-thread.c (sol_thread_create_inferior): Update.
5757 * remote.c (extended_remote_async_create_inferior)
5758 (extended_remote_create_inferior): Update.
5759 * remote-vx.c (vx_create_inferior): Update.
5760 * remote-st.c (st2000_create_inferior): Update.
5761 * remote-sim.c (gdbsim_create_inferior): Update.
5762 * remote-sds.c (sds_create_inferior): Update.
5763 * remote-rdp.c (remote_rdp_create_inferior): Update.
5764 * remote-rdi.c (arm_rdi_create_inferior): Update.
5765 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5766 * remote-e7000.c (e7000_create_inferior): Update.
5767 * procfs.c (procfs_create_inferior): Update.
5768 * ocd.c (ocd_create_inferior): Update.
5769 * ocd.h (ocd_create_inferior): Update.
5770 * nto-procfs.c (procfs_create_inferior): Update.
5771 * monitor.c (monitor_create_inferior): Update.
5772 * lin-lwp.c (lin_lwp_create_inferior): Update.
5773 * inftarg.c (child_create_inferior): Update.
5774 * hpux-thread.c (hpux_thread_create_inferior): Update.
5775 * gnu-nat.c (gnu_create_inferior): Update.
5776
5777 2004-05-25 Andrew Cagney <cagney@gnu.com>
5778
5779 * MAINTAINERS: Update e-mail address.
5780
5781 2004-05-24 Randolph Chung <tausq@debian.org>
5782
5783 * thread.c (info_threads_command, thread_apply_all_command)
5784 (thread_apply_command, thread_command, do_captured_thread_select):
5785 Remove HPUXHPPA-specific code.
5786
5787 2004-05-24 Randolph Chung <tausq@debian.org>
5788
5789 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5790 unused symbols.
5791 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5792 references.
5793
5794 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5795
5796 * infcmd.c (kill_if_already_running): New function, extracted
5797 from run_command().
5798 (run_command): Replace extracted code by call to
5799 kill_if_already_running().
5800 (start_command): New function.
5801 (_initialize_infcmd): Add "start" command.
5802
5803 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5804
5805 Add OpenBSD/m88k support.
5806 * NEWS (New native configurations): Mention OpenBSD/m88k.
5807 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5808 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5809 * Makefile.in (m88k_tdep_h): New variable.
5810 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5811 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5812 * configure.host: Add m88*-*-openbsd*.
5813 * configure.tgt: Add m88*-*-openbsd*.
5814
5815 2004-05-24 Jim Blandy <jimb@redhat.com>
5816
5817 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5818 to approve changes.
5819
5820 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5821
5822 * symtab.c (fixup_section): Search section table when lookup by
5823 name fails.
5824
5825 2004-05-24 Randolph Chung <tausq@debian.org>
5826
5827 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5828 be "small_struct".
5829
5830 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5831
5832 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5833 register number in regcache_raw_collect call.
5834 (m68kbsd_collect_fpregset): Likewise.
5835 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5836
5837 * regset.h (struct regset): Add back `regset' member.
5838
5839 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5840
5841 * configure.in: Check for td_pcb in `struct thread'.
5842 * configure, config.in: Regenerated.
5843
5844 * dpx2-nat.c: Remove file.
5845 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5846 (dpx2-nat.o): Remove dependencies.
5847
5848 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5849 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5850 (amd64obsd_supply_pcb): New function.
5851 (_initialize_amd64obsd_nat): Enable libkvm interface.
5852 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5853 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5854 (LOADLIBES): New variable.
5855
5856 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5857 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5858 (sparc32nbsd_supply_pcb): New function.
5859 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5860 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5861 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5862 (LOADLIBES): New variable.
5863
5864 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5865
5866 * bsd-kvm.c, bsd-kvm.h: New files.
5867 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5868 "bsd-kvm.h".
5869 (i386fbsd_supply_pcb): New function.
5870 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5871 (i386fbsd-nat.o): Update dependencies.
5872 (bsd_kvm_h): New variable.
5873 (bsd-kvm.o): New dependency.
5874 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5875 (LOADLIBES): New variable.
5876
5877 * regset.c: Tweak comment.
5878 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5879 macro.
5880 * regset.h: Update copyright year.
5881 (struct regset): Remove `descr' member, add `gdbarch' member.
5882 (regset_alloc): Adjust prototype and comment.
5883 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5884 (i386_supply_fpregset): Likewise.
5885 (i386_regset_from_core_section): Update call to regset_alloc.
5886 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5887 REGSET->arch.
5888 (i386obsd_aout_regset_from_core_section): Update call to
5889 regset_alloc.
5890 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5891 REGSET->arch.
5892 (i386nbsd_aout_regset_from_core_section): Update call to
5893 regset_alloc.
5894 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5895 REGSET->arch.
5896 (amd64_regset_from_core_section): Update call to regset_alloc.
5897 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5898 REGSET->arch.
5899 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5900 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5901 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5902 (sparc32nbsd_init_abi): Update call to regset_alloc.
5903 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5904 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5905 (sparc64obsd_init_abi): Update call to regset_alloc.
5906 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5907 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5908 (sparc64nbsd_init_abi): Update call to regset_alloc.
5909 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5910 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5911 (sparc64fbsd_init_abi): Update call to regset_alloc.
5912
5913 2004-05-22 Jim Blandy <jimb@redhat.com>
5914
5915 * ppc-tdep.h (spe_register_p): New declaration.
5916 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5917 ppc_spefscr_regnum.
5918 * rs6000-tdep.c (spe_register_p): New function.
5919 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5920 spefscr.
5921 (rs6000_gdbarch_init): Initialize the new members of the tdep
5922 structure.
5923
5924 2004-05-21 Jim Blandy <jimb@redhat.com>
5925
5926 * ppc-linux-nat.c (fetch_register): Move code back to be next
5927 to the comment that describes it. (Moved code, instead of
5928 comment, for symmetry with store_register.)
5929
5930 Allocate regset structures in the gdbarch's obstack, not using
5931 xmalloc.
5932 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5933 Add 'arch' argument. Allocate the regset on arch's obstack, not
5934 using xmalloc.
5935 * regset.h (regset_alloc): Update declaration.
5936 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5937 gdbarch argument.
5938 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5939 * i386-tdep.c (i386_regset_from_core_section): Same.
5940 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5941 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5942 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5943 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5944 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5945 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5946
5947 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5948
5949 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5950
5951 2004-05-21 Jim Blandy <jimb@redhat.com>
5952
5953 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5954 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5955
5956 2004-05-20 Jim Blandy <jimb@redhat.com>
5957
5958 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5959
5960 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5961
5962 * regset.h: Make prototype const-correct.
5963 * regset.c (regset_xmalloc): Make const-correct.
5964
5965 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5966
5967 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5968 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5969 (symbol_search_name): Declare.
5970
5971 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5972 (iter_name_next_hashed): Ditto.
5973 (iter_name_next_linear): Ditto.
5974 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5975
5976 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5977 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5978 (symbol_search_name): New function.
5979
5980 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5981
5982 * minsyms.c (build_minimal_symbol_hash_tables): Change
5983 test for adding to demangled hash table to check for difference
5984 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5985
5986 2004-05-19 Jim Blandy <jimb@redhat.com>
5987
5988 Use a constructor function to create regset structures.
5989 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5990 (struct regset): Use supply_regset_ftype. Add new
5991 'collect_regset' member.
5992 (regset_xmalloc): New declaration.
5993 * regset.c: New file.
5994 * am64-tdep.c (amd64_regset_from_core_section): Use
5995 regset_xmalloc to construct regset structures.
5996 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5997 * i386-tdep.c (i386_regset_from_core_section): Same.
5998 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5999 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6000 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6001 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6002 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6003 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6004 * Makefile.in (COMMON_OBS): Add regset.o.
6005 (regset.o): New rule.
6006
6007 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6008
6009 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6010 and pthread_cond_wait.c.
6011
6012 2004-05-18 Jim Blandy <jimb@redhat.com>
6013
6014 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6015 before the mach-specific switch, and then let the individual cases
6016 override the defaults, rather than leaving them uninitialized
6017 until the switch and then setting them in each case.
6018
6019 2004-05-18 Randolph Chung <tausq@debian.org>
6020
6021 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6022 millicode functions.
6023
6024 2004-05-18 Randolph Chung <tausq@debian.org>
6025
6026 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6027 references to dld_flags_buffer consistent.
6028
6029 2004-05-18 Randolph Chung <tausq@debian.org>
6030
6031 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6032 it for unwinding the stack.
6033
6034 2004-05-18 Randolph Chung <tausq@debian.org>
6035
6036 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6037 Undefine these so we can overide them using gdbarch.
6038
6039 2004-05-18 Randolph Chung <tausq@debian.org>
6040
6041 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6042 handling for 64-bit HPUX (elf).
6043
6044 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6045
6046 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6047 constants.
6048 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6049 * ia64-tdep.c (examine_prologue): Likewise.
6050 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6051 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6052
6053 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6054
6055 * vax-tdep.c (vax_return_value): Implement
6056 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6057
6058 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6059
6060 * vax-tdep.c (vax_return_value): Fix typo.
6061
6062 2004-05-17 Andrew Cagney <cagney@redhat.com>
6063
6064 * MAINTAINERS: Mark Salter was also responsible for
6065 testsuite/config/
6066
6067 * NEWS: Mention signal fixes.
6068
6069 2004-05-17 Randolph Chung <tausq@debian.org>
6070
6071 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6072 check to see if we are unwinding an export stub. Export stubs clobber
6073 the %rp in the call path and stores the original rp in a stack slot.
6074
6075 2004-05-17 Jim Blandy <jimb@redhat.com>
6076
6077 * MAINTAINERS: Update address for J.T. Conklin.
6078
6079 2004-05-17 Randolph Chung <tausq@debian.org>
6080
6081 * hppa-tdep.c: Remove superfluous #include's.
6082 * Makefile.in (hppa-tdep.o): Update dependencies.
6083
6084 2004-05-17 Randolph Chung <tausq@debian.org>
6085
6086 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6087 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6088 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6089 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6090 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6091 Remove static function declarations.
6092
6093 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6094
6095 * alphabsd-nat.c: Update copyright year.
6096 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6097
6098 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6099 and M68K_A2_REGNUM.
6100
6101 * m68k-tdep.c (m68k_svr4_return_value): Implement
6102 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6103
6104 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6105
6106 * sol-thread.c Update copyright year. Fix various coding
6107 standards violations. Tweak a few comments.
6108 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6109 Delete prototypes.
6110
6111 2004-05-15 Randolph Chung <tausq@debian.org>
6112
6113 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6114 as pointer instead of array reference since HPUX compiler does
6115 not accept unsized array arguments.
6116 * somsolib.c (dld_flags_buffer): Use constant array size.
6117
6118 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6119
6120 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6121 offset with decimal offset.
6122 (amd64obsd_sigcontext_addr): Return correct address for entire
6123 signal trampoline.
6124
6125 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6126 instead of get_frame_base.
6127
6128 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6129 (fill_gregset): Use regcache_raw_collect.
6130
6131 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6132 ppcobsd-tdep.c.
6133
6134 * config/sparc/tm-nbsd64.h: Remove file.
6135 * config/tm-sunos.h: Remove file.
6136
6137 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6138
6139 * rs6000-tdep.c (store_param_on_stack_p): New function,
6140 an improved version of some code extracted from skip_prologue().
6141 (skip_prologue): Use store_param_on_stack_p() to detect
6142 instructions saving a parameter on the stack. Detect when r0
6143 is used to save a parameter.
6144 Do not mark "li rx, SIMM" instructions as part of the prologue,
6145 unless the following instruction is also part of the prologue.
6146
6147 2004-05-14 Andrew Cagney <cagney@redhat.com>
6148
6149 * infrun.c (handle_inferior_event): Simplify
6150 STEP_OVER_UNDEBUGGABLE.
6151
6152 * infrun.c (handle_step_into_function): Delete function.
6153 (handle_inferior_event): Inline calls to
6154 handle_step_into_function.
6155
6156 2004-05-14 Jerome Guitton <guitton@gnat.com>
6157
6158 * rs6000-nat.c: Fix a comment.
6159
6160 2004-05-12 David Anderson <davea@sgi.com>
6161
6162 Committed by Jim Blandy <jimb@redhat.com>:
6163 * regcache.c (struct regcache_descr): fix comment spelling.
6164
6165 2004-05-13 J. Brobecker <brobecker@gnat.com>
6166
6167 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6168 Fixes a link link failure.
6169
6170 2004-05-13 J. Brobecker <brobecker@gnat.com>
6171
6172 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6173 error that was causing the build to fail.
6174
6175 2004-05-13 J. Brobecker <brobecker@gnat.com>
6176
6177 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6178 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6179
6180 2004-05-13 Andrew Cagney <cagney@redhat.com>
6181
6182 * infrun.c (handle_inferior_event): Check for
6183 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6184 calls. Update comments.
6185
6186 2004-05-13 Jim Blandy <jimb@redhat.com>
6187
6188 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6189 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6190 (store_regs_user_thread, store_regs_kernel_thread): Use
6191 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6192 * ppc-linux-nat.c (fill_gregset): Same.
6193 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6194 (ppc_linux_sigtramp_cache): Same.
6195 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6196 (ppcnbsd_sigtramp_cache_init): Same.
6197 * rs6000-nat.c (fetch_core_registers): Same.
6198 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6199 (rs6000_frame_cache): Same.
6200
6201 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6202 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6203 of assuming that the gprs are numbered starting with zero.
6204 * ppc-linux-nat.c (fill_gregset): Same.
6205 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6206 * ppcnbsd-nat.c (getregs_supplies): Same.
6207 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6208 * rs6000-nat.c (fetch_core_registers): Same.
6209 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6210
6211 2004-05-07 Michael Snyder <msnyder@redhat.com>
6212
6213 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6214 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6215
6216 2004-05-13 Andrew Cagney <cagney@redhat.com>
6217
6218 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6219
6220 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6221
6222 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6223 base_address for shared libraries.
6224
6225 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6226
6227 * MAINTAINERS (write after approval): Add myself.
6228
6229 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6230
6231 * breakpoint.c (bpstat_stop_status): Add new argument
6232 STOPPED_BY_WATCHPOINT. Use it instead of testing
6233 target_stopped_data_address agaist 0 to check whether
6234 or not we stopped due to a hardware watchpoint.
6235 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6236 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6237 with new argument.
6238
6239 2004-05-12 Jim Blandy <jimb@redhat.com>
6240
6241 * configure.in: When checking whether we should use the -bbigtoc
6242 option, don't forget to restore the original value of LDFLAGS.
6243 * configure: Regenerated.
6244
6245 2004-05-12 Andrew Cagney <cagney@redhat.com>
6246
6247 * thread.c (load_infrun_state): Delete step_sp.
6248 * infrun.c (context_switch): Ditto.
6249 * inferior.h (step_sp): Ditto.
6250 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6251 * gdbthread.h (struct thread_info, save_infrun_state)
6252 (restore_infrun_state): Ditto.
6253
6254 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6255
6256 * MAINTAINERS (write after approval): Add myself.
6257
6258 2004-05-12 Andrew Cagney <cagney@redhat.com>
6259
6260 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6261 eliminate reference to step_sp.
6262 (struct execution_control_state, init_execution_control_state)
6263 (handle_inferior_event, keep_going): Delete update_step_sp and
6264 step_sp.
6265 * infcmd.c (step_sp): Note that variable is unused.
6266
6267 2004-05-11 Andrew Cagney <cagney@redhat.com>
6268
6269 * infrun.c (step_over_function): Delete function.
6270 (handle_step_into_function): Use insert_step_resume_breakpoint.
6271 (insert_step_resume_breakpoint): Fix assertion.
6272
6273 2004-05-11 Nick Roberts <nickrob@gnu.org>
6274
6275 * utils.c (defaulted_query): Just use the normal query input type
6276 when printing the annotations.
6277
6278 2004-05-11 Andrew Cagney <cagney@redhat.com>
6279
6280 * infrun.c (handle_inferior_event): Simplify code handling
6281 step-into or return-from a signal trampoline.
6282
6283 2004-05-11 Andrew Cagney <cagney@redhat.com>
6284
6285 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6286 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6287
6288 2004-05-10 Jim Blandy <jimb@redhat.com>
6289
6290 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6291 with a call to internal_error.
6292
6293 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6294 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6295 processor variant lacks those registers.
6296 (ppc_floating_point_unit_p): Change description to make it clear
6297 that this returns info about the ISA, not the ABI.
6298 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6299 return true or false by checking tdep->ppc_fp0_regnum and
6300 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6301 arch/mach switching done in rs6000_gdbarch_init; it's better to
6302 keep that logic there, and just check the results here.
6303 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6304 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6305 floating-point registers.
6306 (ppc_supply_fpregset, ppc_collect_fpregset)
6307 (rs6000_push_dummy_call, rs6000_extract_return_value)
6308 (rs6000_store_return_value): Assert that we have floating-point
6309 registers.
6310 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6311 (rs6000_frame_cache): Don't note the locations at which
6312 floating-point registers were saved if we have no fprs.
6313 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6314 registers.
6315 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6316 (store_regs_user_thread, store_regs_kernel_thread): Only call
6317 supply_fprs / fill_fprs if we actually have floating-point
6318 registers.
6319 (special_register_p): Check ppc_fpscr_regnum before matching
6320 against it.
6321 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6322 supply / collect fpscr if we don't have it.
6323 * ppc-bdm.c: #include "gdb_assert.h".
6324 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6325 have floating-point registers, since I can't test this code on
6326 FP-free systems to adapt it.
6327 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6328 fpscr and floating point register numbers if they don't exist.
6329 (fetch_register): Assert that we have floating-point registers
6330 before we reach the code that handles them.
6331 (store_register): Same. And use tdep instead of calling
6332 gdbarch_tdep again.
6333 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6334 don't have them.
6335 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6336 fprs and fpscr if we don't have them.
6337 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6338 don't have them.
6339 * ppcnbsd-nat.c: #include "gdb_assert.h".
6340 (getfpregs_supplies): Assert that we have floating-point registers.
6341 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6342 * ppcobsd-tdep.c: #include "gdb_assert.h".
6343 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6344 have floating-point registers.
6345 * rs6000-nat.c (regmap): Don't match against the fpscr and
6346 floating point register numbers if they don't exist.
6347 (fetch_inferior_registers, store_inferior_registers,
6348 fetch_core_registers): Only fetch / store / supply the
6349 floating-point registers and the fpscr if we have them.
6350 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6351 (ppcobsd-tdep.o): Update dependencies.
6352
6353 2004-05-10 Andrew Cagney <cagney@redhat.com>
6354
6355 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6356 (context_switch): Do not switch through_sigtramp_breakpoint.
6357 * gdbthread.h (save_infrun_state, load_infrun_state)
6358 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6359 and structure member.
6360 * thread.c (load_infrun_state, save_infrun_state): Update.
6361
6362 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6363
6364 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6365
6366 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6367
6368 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6369 throughout.
6370 * aclocal.m4: Regenerate.
6371
6372 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6373
6374 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6375
6376 2004-05-10 Andrew Cagney <cagney@redhat.com>
6377
6378 * infrun.c (check_sigtramp2): Delete function.
6379 (handle_inferior_event): When single stepping, and taking a
6380 signal, set a breakpoint at the signal return address. Delete
6381 redundant calls to check_sigtramp2.
6382 (insert_step_resume_breakpoint): New function.
6383 (through_sigtramp_breakpoint, handle_inferior_event)
6384 (follow_exec, wait_for_inferior, fetch_inferior_event)
6385 (currently_stepping, keep_going): Delete most uses of
6386 through_sigtramp_breakpoint, not that it should be deleted.
6387 (delete_breakpoint_current_contents): Delete function.
6388
6389 2004-05-10 Randolph Chung <tausq@debian.org>
6390
6391 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6392 target.
6393 * config/pa/tm-linux.h: New file.
6394
6395 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6396
6397 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6398 of prefixes. Don't print the prefix twice in the CLI.
6399
6400 2004-05-10 Jim Blandy <jimb@redhat.com>
6401
6402 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6403 collect all the gprs.
6404
6405 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6406 loop collecting gprs.
6407
6408 2004-05-09 Andrew Cagney <cagney@redhat.com>
6409
6410 * remote-vx.c (net_step): Delete step-range code.
6411 * remote.c (remote_resume, init_all_packet_configs)
6412 (set_remote_protocol_E_packet_cmd)
6413 (show_remote_protocol_E_packet_cmd)
6414 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6415 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6416 (show_remote_protocol_e_packet_cmd): Ditto.
6417
6418 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6419
6420 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6421
6422 * hppa-tdep.h: Update copyright year.
6423 (struct trad_frame_saved_reg): Add opaque declaration.
6424
6425 * amd64-tdep.c (amd64_return_value): Implement
6426 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6427
6428 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6429 (m68k_value_to_register): New functions.
6430 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6431 value_to_register.
6432
6433 * defs.h (enum return_value_convention): Add
6434 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6435 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6436 * infcmd.c (legacy_return_value): New function.
6437 (print_return_value): Rwerite to implement
6438 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6439 * values.c (using_struct_return): Check for inequality to
6440 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6441 RETURN_VALUE_STRUCT_CONVENTION.
6442 * i386-tdep.c (i386_return_value): Implement
6443 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6444
6445 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6446 include "symtab.h", "opcode/vax.h" and "inferior.h".
6447 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6448 to read_memory_unsigned_integer.
6449 (vax_gdbarch_init): Reorder.
6450 (_initialize_vax_tdep): Spell out prototype.
6451 * Makefile.in (vax-tdep.o): Update dependencies.
6452
6453 2004-05-08 Andrew Cagney <cagney@redhat.com>
6454
6455 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6456 * target.c (target_detach, target_disconnect): Ditto.
6457
6458 * infcall.c (call_function_by_hand): When no
6459 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6460 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6461 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6462 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6464
6465 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6467 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6468 deprecated_fix_call_dummy.
6469 * v850-tdep.c (v850_gdbarch_init): Ditto.
6470 * infcall.c (call_function_by_hand): Do not call
6471 DEPRECATED_FIX_CALL_DUMMY.
6472
6473 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6474 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6475 * gdbarch.h, gdbarch.c: Re-generate.
6476 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6477 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6478 deprecated_sizeof_call_dummy_words.
6479 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6481 * v850-tdep.c (v850_gdbarch_init): Ditto.
6482 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6483 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6484 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6486 * arch-utils.h (legacy_call_dummy_words)
6487 (legacy_sizeof_call_dummy_words): Delete declarations.
6488 * arch-utils.c (legacy_call_dummy_words)
6489 (legacy_sizeof_call_dummy_words): Delete variables.
6490
6491 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6492 * gdbarch.h, gdbarch.c: Re-generate.
6493 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6494 * infcall.c (call_function_by_hand): Eliminate call to
6495 DEPRECATED_PUSH_DUMMY_FRAME.
6496 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6497 push_dummy_frame.
6498 (ns32k_push_dummy_frame): Delete function.
6499
6500 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6501 deprecated_call_dummy_breakpoint_offset or
6502 deprecated_call_dummy_start_offset.
6503 * dummy-frame.c, arm-tdep.c: Update comments.
6504 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6505 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6506 * gdbarch.h, gdbarch.c: Re-generate.
6507
6508 * infcall.c (legacy_push_dummy_code): Delete function.
6509 (push_dummy_code): Delete call.
6510
6511 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6512 * gdbarch.h, gdbarch.c: Re-generate.
6513 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6514 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6515 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6516 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6517
6518 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6519 (struct frame_info): Delete opaque declaration.
6520 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6521 * frame.c (get_frame_type): Delete call.
6522
6523 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6524 pc_in_call_dummy.
6525 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6526 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6527
6528 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6529
6530 * alphanbsd-tdep.c: Include "gdb_string.h".
6531 * armnbsd-tdep.c: Update copyright year.
6532 Include "gdb_string.h".
6533 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6534 dependencies.
6535
6536 * delta68-nat.c: Remove file.
6537 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6538 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6539 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6540 (delta68-nat.o): Remove dependency.
6541
6542 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6543 function.
6544 (m68k_gdbarch_init): Don't set
6545 deprecated_frameless_function_invocation.
6546
6547 2004-05-07 Randolph Chung <tausq@debian.org>
6548
6549 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6550 read_memory_nobpt for code reading when doing frame unwinding.
6551 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6552
6553 2004-05-07 Randolph Chung <tausq@debian.org>
6554
6555 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6556 instead of sp, handle sigaltstack case.
6557 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6558 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6559 signal handler and not that of the caller.
6560 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6561 hppa_linux_sigtramp_find_sigcontext.
6562
6563 2004-05-07 Randolph Chung <tausq@debian.org>
6564
6565 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6566 hppa-linux-nat.c.
6567 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6568 * hppa-linux-nat.c (fetch_register, store_register): Define.
6569 (fetch_inferior_registers, store_inferior_registers): Define.
6570 (supply_gregset): Add comment and clean up some unneeded code.
6571 (fill_gregset): Add comment and fix so that it saves registers in
6572 the right place in the gregset.
6573 (fill_fpregset): Fix buffer overrun problem.
6574 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6575
6576 2004-05-07 Randolph Chung <tausq@debian.org>
6577
6578 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6579 do common handling of the pcoqt register.
6580 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6581 to use helper function.
6582 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6583 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6584 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6585 generic fallback unwinder when all else fails.
6586 (hppa_gdbarch_init): Add fallback sniffer.
6587 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6588 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6589 to use helper function.
6590
6591 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6592
6593 * config/djgpp/fnchange.lst: Add translation rules for
6594 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6595
6596 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6597
6598 * frame.c (get_prev_frame_1): Work around GCC bug.
6599 * frame.h: Add comment about GCC bug.
6600
6601 2004-05-07 Andrew Cagney <cagney@redhat.com>
6602
6603 * observer.c: Include "commands.h" and "gdbcmd.h".
6604 (observer_debug, _initialize_observer): Add the
6605 command "set/show debug observer".
6606 * observer.sh: When observer debugging, log notify calls.
6607 * Makefile.in (observer.o): Update dependencies.
6608
6609 2004-05-07 Jason Molenda (jmolenda@apple.com)
6610
6611 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6612
6613 2004-05-07 Jim Blandy <jimb@redhat.com>
6614
6615 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6616 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6617 to recognize gpr regnums, instead of assuming that
6618 tdep->ppc_fp0_regnum marks the end of the general-purpose
6619 registers.
6620
6621 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6622 the given architecture has floating-point registers.
6623
6624 2004-05-07 Andrew Cagney <cagney@redhat.com>
6625
6626 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6627 macro defined to 1.
6628 * gdbarch.h, gdbarch.c: Re-generate.
6629 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6630 deprecated_use_generic_dummy_frames.
6631
6632 2004-05-07 Brian Ford <ford@vss.fsi.com>
6633
6634 * NEWS: Mention Cygwin DWARF 2 support.
6635
6636 2004-05-07 Andrew Cagney <cagney@redhat.com>
6637
6638 * objfiles.h (struct entry_info): Delete unused fields
6639 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6640 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6641 * mipsread.c (mipscoff_symfile_read): Update.
6642 * mdebugread.c (parse_partial_symbols): Update.
6643 * dwarfread.c (read_file_scope): Update.
6644 * dwarf2read.c (read_file_scope): Update.
6645 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6646 * coffread.c (complete_symtab): Update.
6647
6648 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6649
6650 * infcall.c (_initialize_infcall): Fix typo.
6651
6652 2004-05-07 Andrew Cagney <cagney@redhat.com>
6653
6654 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6655 * command.h (add_setshow_zinteger_cmd): Declare.
6656
6657 2004-05-06 Randolph Chung <tausq@debian.org>
6658
6659 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6660 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6661 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6662 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6663 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6664 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6665 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6666 definitions ...
6667 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6668 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6669 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6670 (hppa64_hpux_frame_find_saved_regs_in_sig)
6671 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6672 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6673 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6674 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6675 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6676 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6677 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6678 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6679 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6680 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6681 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6682 (hppa32_register_type, hppa_cannot_store_register)
6683 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6684 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6685 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6686 * pa64solib.c (pa64_solib_have_load_event)
6687 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6688 (pa64_solib_unloaded_library_pathname): Likewise.
6689 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6690 (som_solib_library_pathname): Likewise.
6691
6692 2004-05-05 Jim Ingham <jingham@apple.com>
6693
6694 * breakpoint.c (create_breakpoints): Copy the ignore count and
6695 thread id over from the pended breakpoint to the actual
6696 breakpoint.
6697
6698 2004-05-05 Andrew Cagney <cagney@redhat.com>
6699
6700 * gdbarch.sh (PARM_BOUNDARY): Delete.
6701 gdbarch.h, gdbarch.c: Re-generate.
6702 * valops.c (PARM_BOUNDARY): Delete macro.
6703 (value_push): Delete PARM_BOUNDARY code.
6704 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6705
6706 2004-05-04 Jim Blandy <jimb@redhat.com>
6707
6708 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6709 Don't assume that the gprs, fprs, and UISA sprs are
6710 contiguous, start at register number zero, and end with fpscr.
6711 Instead, use the numbers from the tdep structure.
6712
6713 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6714 should no longer be used in code specific to the RS6000 and its
6715 derivatives.
6716 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6717 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6718 tdep->ppc_fp0_regnum.
6719 (ppc_supply_fpregset, ppc_collect_fpregset)
6720 (rs6000_push_dummy_call, rs6000_extract_return_value)
6721 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6722 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6723 FP0_REGNUM.
6724 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6725 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6726 Same.
6727 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6728 bdm_ppc_store_registers): Same.
6729 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6730 (store_register, fill_fpregset): Same.
6731 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6732 (ppc_linux_supply_fpregset): Same.
6733 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6734 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6735 Same.
6736 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6737 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6738 ppc64_sysv_abi_return_value): Same.
6739 * rs6000-nat.c (regmap, fetch_inferior_registers)
6740 (store_inferior_registers, fetch_core_registers): Same.
6741
6742 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6743
6744 * m68knbsd-nat.c: Remove file.
6745 * m68knbsd-tdep.c: Remove file.
6746 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6747 dependencies.
6748 * configure.host: Add m68k-*-netbsdelf*.
6749 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6750 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6751 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6752 (XM_FILE): Remove.
6753 * config/m68k/nbsdelf.mh: New file.
6754 * config/m68k/nbsd.mt: New file.
6755 * config/m68k/nbsdaout.mt: Remove file.
6756 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6757 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6758 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6759 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6760 (use_struct_convention): Remove prototype.
6761 (USE_STRUCT_CONVENTION): Remove define.
6762 * config/m68k/xm-nbsd.h: Remove file.
6763
6764 2004-05-04 Michael Snyder <msnyder@redhat.com>
6765
6766 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6767 reg_struct_return method (as gcc usually does for cross targets).
6768
6769 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6770
6771 Committed by Andrew Cagney.
6772 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6773 alignment padding when accessing ucontext struct members.
6774
6775 2004-05-04 Jim Blandy <jimb@redhat.com>
6776
6777 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6778 'ppc_gplast_regnum' member.
6779 (ppc_num_gprs): New enum constant.
6780 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6781 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6782 * rs6000-nat.c (regmap, fetch_inferior_registers,
6783 store_inferior_registers): Same.
6784 * rs6000-tdep.c (e500_pseudo_register_read)
6785 (e500_pseudo_register_write): Same.
6786 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6787
6788 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6789 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6790 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6791 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6792 FPLAST_REGNUM.
6793 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6794 Same.
6795 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6796 * rs6000-nat.c (regmap, fetch_inferior_registers)
6797 (store_inferior_registers): Same.
6798
6799 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6800 with FPLAST_REGNUM.
6801
6802 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6803
6804 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6805 failure detected by recent versions of GCC.
6806 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6807 to be consistent with the usage in dwarf2_create_include_psymtab.
6808
6809 2004-05-03 Michael Snyder <msnyder@redhat.com>
6810
6811 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6812 (heuristic_proc_start): Whitespace cleanup.
6813
6814 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6815
6816 * sun3-nat.c: Remove file.
6817 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6818 dependencies.
6819 (ALLDEPFILES): Remove sun3-nat.c.
6820 (sun3-nat.o): Remove dependencies.
6821
6822 * i386-interix-nat.c, i386-interix-tdep.c,
6823 config/i386/nm-interix.h, config/i386/interix.mh,
6824 config/i386/interix.mt: Remove files.
6825 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6826 dependencies.
6827
6828 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6829
6830 * m68k-tdep.h (struct gdbarch_tdep): Add member
6831 struct_value_regnum.
6832 (m68k_svr4_init_abi): New prototype.
6833 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6834 different calling conventions.
6835 (m68k_extract_return_value): Remove code dealing with single-field
6836 structs.
6837 (m68k_store_return_value): Remove code dealing with single-field
6838 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6839 (m68k_extract_struct_value_address): Remove function.
6840 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6841 (m68k_reg_struct_return_p, m68k_return_value)
6842 (m68k_svr4_return_value): New functions.
6843 (m68k_use_struct_convention): Remove function.
6844 (m68k_push_dummy_call): Use new struct_value_regnum member of
6845 `struct gdbarch_tdep' instead of hardcoded register number to
6846 store STRUCT_ADDR.
6847 (m68k_svr4_init_abi): New function.
6848 (m68k_gdbarch_init): Don't set extract_return_value,
6849 store_return_values, deprecated_extract_struct_value_address and
6850 use_struct_convention. Set return_value instead. Initialize new
6851 struct_value_regnum member of `struct gdbarch_tdep'.
6852 * m68klinux-tdep.c: Update copyright year.
6853 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6854 (m68k_linux_extract_struct_value_address): Remove function.
6855 (m68k_linux_init_abi): Don't set extract_return_value,
6856 store_return_values, deprecated_extract_struct_value_address and
6857 use_struct_convention. Call m68k_svr4_init_abi but override the
6858 new struct_value_regnum member of `struct gdbarch_tdep'.
6859 * Makefile.in (m68k-tdep.o): Update dependencies.
6860
6861 2004-05-03 J. Brobecker <brobecker@gnat.com>
6862
6863 * dwarf2read.c (line_header): Add new included_p field in
6864 field file_names.
6865 (partial_die_info): New field has_stmt_list. New field line_offset.
6866 (dwarf2_create_include_psymtab): New function.
6867 (dwarf2_build_include_psymtabs): New function.
6868 (add_file_name): Add forward declaration. Initialize new field.
6869 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6870 to be able to determine the list of files included by the
6871 given unit, and build their associated psymtabs.
6872 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6873 files as well.
6874 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6875 (read_file_scope): Update call to dwarf_decode_lines.
6876 (read_partial_die): Handle DW_AT_stmt_list attributes.
6877
6878 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6879
6880 Unfix PR gdb/1626.
6881 * configure.in: Revert special case for osf5.*.
6882 * configure: Regenerate.
6883
6884 2004-05-02 Jim Blandy <jimb@redhat.com>
6885
6886 Move the symbol-file-from-memory functions into their own file.
6887 * symfile-mem.c, symfile-mem.h: New files.
6888 * symfile.c (symbol_file_add_from_bfd): New function.
6889 (symbol_file_add): Call symbol_file_add_from_bfd.
6890 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6891 Moved to symfile-mem.c.
6892 (_initialize_symfile): Move definition of
6893 add-symbol-file-from-memory command to symfile-mem.c.
6894 * symfile.h (symbol_file_add_from_bfd): New declaration.
6895 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6896 * config/powerpc/linux.mt (TDEPFILES): Same.
6897 * Makefile.in (SFILES): Add symfile-mem.c.
6898 (symfile_mem_h): New variable.
6899 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6900 (symfile-mem.o): New rule.
6901
6902 2004-05-01 Andrew Cagney <cagney@redhat.com>
6903
6904 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6905 frame_find_by_id instead of frame_relative_level.
6906 (do_enable_breakpoint): Ditto.
6907 * thread.c: Update copyright.
6908 (info_threads_command): Ditto, simplify.
6909
6910 * frame.c (deprecated_generic_get_saved_register): Delete
6911 function, moved to "xstormy16-tdep.c".
6912 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6913 deprecated_generic_get_saved_register from "frame.c".
6914 (xstormy16_frame_saved_register): Call
6915 xstormy16_get_saved_register.
6916 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6917 static.
6918 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6919 * frame.h (deprecated_generic_get_saved_register): Delete.
6920
6921 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6922
6923 * dwarfread.c: Update documentation on the state of dwarf-1.
6924
6925 2004-05-01 Andrew Cagney <cagney@redhat.com>
6926
6927 * stack.c (select_frame_command): Delete call to
6928 frame_relative_level.
6929 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6930 Delete #if0 code.
6931 (frame_info): Do not print FRAMELESS.
6932 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6933 (catch_info): Delete #if0 code.
6934
6935 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6936 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6937 of frame_relative_level.
6938 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6939 to SENTINEL_FRAME.
6940 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6941 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6942 frame_relative_level.
6943
6944 * frame.h (deprecated_set_frame_type): Delete declaration.
6945 * frame.c (deprecated_set_frame_type): Delete function, update
6946 comments.
6947
6948 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6949 * gdbarch.h, gdbarch.c: Re-generate.
6950 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6951 (shnbsd_pc_in_sigtramp): Delete.
6952 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6953 pc_in_sigtramp.
6954 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6955 pc_in_sigtramp.
6956 * frame.h: Update comments.
6957 * ppc-linux-tdep.c: Update comments.
6958 * breakpoint.c (bpstat_what): Update comments.
6959
6960 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6961 m68klinux-tdep.o's dependencies, were previously added to
6962 m68klinux-nat.o.
6963
6964 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6965 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6966 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6967 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6968 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6969
6970 * Makefile.in (m68klinux-nat.o): Update dependencies.
6971 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6972 (m68k_linux_sigtramp_frame_cache)
6973 (m68k_linux_sigtramp_frame_this_id)
6974 (m68k_linux_sigtramp_frame_prev_register)
6975 (m68k_linux_sigtramp_frame_unwind)
6976 (m68k_linux_sigtramp_frame_sniffer)
6977 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6978 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6979 names, use trad-frame.h.
6980 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6981 (struct m68k_sigtramp_info): Delete.
6982 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6983 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6984 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6985 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6986 "m68klinux-tdep.c".
6987
6988 * infrun.c (check_sigtramp2): Delete check for
6989 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6990
6991 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6992
6993 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6994
6995 2004-05-01 Andrew Cagney <cagney@redhat.com>
6996
6997 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6998 (frv_linux_sigtramp_frame_cache)
6999 (frv_linux_sigtramp_frame_this_id)
7000 (frv_linux_sigtramp_frame_prev_register)
7001 (frv_linux_sigtramp_frame_unwind)
7002 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7003 include "linux" in function and variable names, directly call
7004 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7005 the latest trad-frame code.
7006 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7007 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7008 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7009 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7010 * frv-tdep.c (frv_sigtramp_frame_cache)
7011 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7012 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7013 frv-linux-tdep.c.
7014 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7015 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7016 (frv_set_sigcontext_reg_addr): Delete function.
7017
7018 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7019 (DEPRECATED_SIGTRAMP_END): Delete.
7020 * gdbarch.h, gdbarch.c: Re-generate.
7021 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7022 * config/vax/tm-vaxbsd.h: Update copyright.
7023 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7024 (DEPRECATED_IN_SIGTRAMP): Define.
7025 * config/m68k/tm-nbsd.h: Update copyright.
7026 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7027 (DEPRECATED_IN_SIGTRAMP): Define.
7028
7029 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7030
7031 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7032 encondings. Fixes PR gdb/1628.
7033
7034 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7035 DW_CFA_restore state without a matching DW_CFA_remember_state
7036 instead of aborting. Fixes PR backtrace/1589.
7037
7038 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7039
7040 * MAINTAINERS: Add self as AIX maintainer.
7041 Update my e-mail address in write-after-approval section.
7042
7043 2004-04-30 Andrew Cagney <cagney@redhat.com>
7044
7045 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7046 (legacy_get_prev_frame): Ditto.
7047
7048 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7049 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7050 * mipsread.c (sigtramp_address): Delete extern variable.
7051 (mipscoff_new_init): Delete reference.
7052 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7053 (fixup_sigtramp): Delete function.
7054 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7055 (fixup_sigtramp): Delete declarations.
7056
7057 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7058 deprecated_pc_in_sigtramp.
7059 (ppcnbsd_pc_in_sigtramp): Delete function.
7060
7061 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7062
7063 * config/m68k/nm-nbsd.h: Tweak comments.
7064 * config/m68k/nm-nbsdaout.h: Likewise.
7065
7066 2004-04-30 Andrew Cagney <cagney@redhat.com>
7067
7068 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7069 legacy_pc_in_sigtramp.
7070 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7071
7072 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7073
7074 Add OpenBSD/m68k support.
7075 * NEWS (New native configurations): Mention OpenBSD/m68k.
7076 * m68kbsd-tdep.c: New file.
7077 * m68kbsd-nat.c: New file.
7078 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7079 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7080 * configure.host: Add m68k-*-openbsd.
7081 * configure.tgt: Add m68k-*-openbsd.
7082 * config/m68k/tm-obsd.h: New file.
7083 * config/m68k/obsd.mt: New file.
7084 * config/m68k/obsd.mh: New file.
7085 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7086 m68kbsd-tdep.c.
7087
7088 2004-04-30 Andrew Cagney <cagney@redhat.com>
7089
7090 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7091 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7092
7093 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7094
7095 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7096 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7097
7098 2004-04-30 Brian Ford <ford@vss.fsi.com>
7099
7100 Revert 2004-04-16 change.
7101 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7102 (i386_coff_init_abi): Remove.
7103 * i386-tdep.h (i386_coff_init_abi): Remove.
7104 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7105
7106 2004-04-30 Andrew Cagney <cagney@redhat.com>
7107
7108 * blockframe.c (find_pc_partial_function): Delete use of
7109 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7110 DEPRECATED_SIGTRAMP_END.
7111
7112 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7113 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7114 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7115 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7116 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7117
7118 * defs.h (deprecated_inside_entry_file): Delete declaration.
7119 * blockframe.c (deprecated_inside_entry_file): Delete function.
7120 (legacy_frame_chain_valid): Delete call.
7121 * sh64-tdep.c (sh64_frame_chain): Delete call.
7122 * objfiles.h: Update comments.
7123 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7124 call.
7125 * frame.c (get_prev_frame): Delete call, update comments.
7126
7127 2004-04-30 Brian Ford <ford@vss.fsi.com>
7128
7129 * MAINTAINERS (Write After Approval): Add myself.
7130
7131 2004-04-30 Andrew Cagney <cagney@redhat.com>
7132
7133 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7134 * gdbarch.h, gdbarch.c: Re-generate.
7135 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7136 code.
7137
7138 2004-04-30 Andrew Cagney <cagney@redhat.com>
7139
7140 * gdb-events.sh (selected_thread_changed)
7141 (selected_frame_level_changed, target_changed): Delete.
7142 * gdb-events.h, gdb-events.c: Re-generate.
7143 * valops.c (value_assign): Update.
7144 * stack.c (select_frame_command, up_silently_base)
7145 (down_silently_base): Update.
7146
7147 2004-04-29 Andrew Cagney <cagney@redhat.com>
7148
7149 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7150 registers correctly.
7151 (print_gp_register_row, mips32_heuristic_proc_desc)
7152 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7153 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7154 references to mips_isa_regsize.
7155
7156 2004-04-29 Andrew Cagney <cagney@redhat.com>
7157
7158 * mips-tdep.c (struct gdbarch_tdep): Delete
7159 mips_fp_register_double.
7160 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7161 mips_abi_regsize.
7162 (mips_gdbarch_init): Do not set mips_fp_register_double.
7163 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7164
7165 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7166
7167 Committed by Andrew Cagney.
7168 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7169 function calls.
7170
7171 2004-04-29 Andrew Cagney <cagney@redhat.com>
7172
7173 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7174 gdbarch, use mips_abi, update callers.
7175 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7176 mips_abi_regsize, update callers.
7177 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7178 mips_default_abi_regsize.
7179 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7180 mips_default_abi_regsize.
7181
7182 2004-04-29 Andrew Cagney <cagney@redhat.com>
7183
7184 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7185 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7186 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7187 mips_default_abi_regsize.
7188 (mips_isa_regsize): Rename mips_regisze.
7189 * mipsnbsd-tdep.c: Update.
7190 * mips-linux-tdep.c: Update.
7191 * irix5-nat.c: Update.
7192 * mips-tdep.h (mips_isa_regsize): Update.
7193
7194 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7195 Delete all disabled code.
7196 * gdb-events.h, gdb-events.c: Re-generate.
7197
7198 2004-04-19 Jerome Guitton <guitton@gnat.com>
7199 Mark Kettenis <kettenis@gnu.org>
7200
7201 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7202 the function begins with a branch instruction.
7203
7204 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7205
7206 * i386-tdep.c: Fix spelling mistakes.
7207
7208 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7209 Andrew Cagney <cagney@redhat.com>
7210
7211 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7212 <sys/proc.h>.
7213 * acconfig.h: Provide default _KMEMUSER value.
7214 * config.in, configure: Re-generate.
7215 * NEWS: Mention fix.
7216
7217 2004-04-24 Randolph Chung <tausq@debian.org>
7218
7219 * configure.host (hppa*-*-linux*): New target.
7220 * configure.tgt (hppa*-*-linux*): Likewise.
7221 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7222 gdbarch_init_osabi() call earlier so that osabi-specific frame
7223 unwinders can be registered first.
7224 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7225 hppa-linux-nat.c.
7226 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7227 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7228 * config/pa/linux.mh: New file.
7229 * config/pa/linux.mt: New file.
7230 * config/pa/nm-linux.h: New file.
7231 * config/pa/xm-linux.h: New file.
7232 * hppa-linux-nat.c: New file.
7233 * hppa-linux-tdep.c: New file.
7234
7235 2004-04-28 Randolph Chung <tausq@debian.org>
7236
7237 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7238 return values.
7239 (hppa32_push_dummy_call): Fix small struct and floating point argument
7240 passing, and make sure the stack frame is properly aligned.
7241
7242 2004-04-28 Andrew Cagney <cagney@redhat.com>
7243
7244 * stack.c (print_stack_frame): Fix description.
7245
7246 * NEWS: Mention gdb/gdbserver/configure execute permission
7247 changed. PR server/519.
7248
7249 2004-04-28 Andrew Cagney <cagney@redhat.com>
7250
7251 * stack.c (print_stack_frame_stub): Delete declaration.
7252 (struct print_stack_frame_args, print_stack_frame)
7253 (print_frame_info, print_frame): Replace "source" with print what.
7254 Replace "print" with "print_level". Replace "args" with
7255 "print_args".
7256 * frame.h (show_and_print_stack_frame, print_stack_frame)
7257 (print_frame_info): Update declarations.
7258 * stack.c (select_and_print_frame, frame_command)
7259 (current_frame_command, up_command, down_command): Update calls -
7260 use get_selected_frame, pass "enum print_what" for source, do not
7261 call frame_relative_level.
7262 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7263 * remote-rdp.c (remote_rdp_open): Ditto.
7264 * remote-mips.c (common_open): Ditto.
7265 * remote-e7000.c (e7000_start_remote): Ditto.
7266 * ocd.c (ocd_start_remote): Ditto.
7267 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7268 * infrun.c (normal_stop): Ditto.
7269 * inflow.c (kill_command): Ditto.
7270 * infcmd.c (finish_command): Ditto.
7271 * corelow.c (core_open): Ditto.
7272 * tracepoint.c (finish_tfind_command): Ditto.
7273 * thread.c (info_threads_command, info_threads_command)
7274 (restore_current_thread, do_captured_thread_select): Ditto.
7275 * ada-tasks.c (task_command): Ditto.
7276
7277 2004-04-26 Orjan Friberg <orjanf@axis.com>
7278
7279 * frame.c: Include "observer.h".
7280 (frame_observer_target_changed): New function.
7281 (_initialize_frame): Attach target_changed observer.
7282 * regcache.c: Include "observer.h".
7283 (regcache_observer_target_changed): New function.
7284 (_initialize_regcache): Attach target_changed observer.
7285 * valops.c: Include "observer.h".
7286 (value_assign): Notify target_changed event when modifying register.
7287 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7288
7289 2004-04-26 Orjan Friberg <orjanf@axis.com>
7290
7291 From Paul Koning <pkoning@equallogic.com>:
7292 * breakpoint.c (free_valchain): New function.
7293 (insert_bp_location, delete_breakpoint): Use free_valchain.
7294 (remove_breakpoint): Do not remove the valchain.
7295 (bpstat_stop_status): If not stopped by watchpoint, skip
7296 watchpoints when generating stop status list.
7297 * infrun.c (handle_inferior_event): Make
7298 stepped_after_stopped_by_watchpoint a global variable.
7299 * remote.c (remote_stopped_data_address): Return watch data
7300 address rather than zero if stepped_after_stopped_by_watchpoint is
7301 set.
7302
7303 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7304
7305 Fix PR gdb/1626.
7306 * configure.in: Check for curses after termcap.
7307 On osf5.*, do not check for ncurses.
7308 * configure: Regenerate.
7309
7310 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7311
7312 * ppcobsd-nat.c: Include "ppc-tdep.h".
7313 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7314
7315 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7316 Fixes PR tdep/1623 and PR tdep/1624.
7317
7318 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7319
7320 * xmodem.h, xmodem.c: Remove files.
7321 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7322
7323 2004-04-23 Randolph Chung <tausq@debian.org>
7324
7325 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7326 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7327 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7328 for handling stackless frames.
7329 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7330
7331 2004-04-23 Randolph Chung <tausq@debian.org>
7332
7333 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7334 starts at a pc before the frame is created.
7335
7336 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7337
7338 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7339
7340 2004-04-23 Jerome Guitton <guitton@gnat.com>
7341
7342 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7343 use convert_typed_floating to get the appropriate format.
7344
7345 2004-04-22 Randolph Chung <tausq@debian.org>
7346
7347 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7348 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7349 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7350 (hppa_sign_extend): Add prototype.
7351 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7352 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7353 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7354 hppa targets will also use these functions.
7355 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7356 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7357 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7358 (hppa_gdbarch_init): Remove gdbarch setting of
7359 skip_trampoline_code, in_solib_call_trampoline and
7360 in_solib_return_trampoline.
7361 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7362 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7363 hppa_in_solib_call_trampoline.
7364 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7365 Moved from hppa-tdep.c.
7366 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7367 in_solib_call_trampoline and in_solib_return_trampoline.
7368
7369 2004-04-22 Randolph Chung <tausq@debian.org>
7370
7371 * hppa-tdep.c (hppa_debug): New variable.
7372 (find_unwind_entry, hppa_frame_cache): Add debug output.
7373 (_initialize_hppa_tdep): Add command to set debug flag.
7374
7375 2004-04-22 Andrew Cagney <cagney@redhat.com>
7376
7377 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7378 "trad-frame.h".
7379 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7380 signal trampoline unwinder.
7381 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7382
7383 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7384
7385 Add OpenBSD/powerpc support.
7386 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7387 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7388 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7389 (ppc_collect_fpregset): New prototypes.
7390 * ppcobsd-nat.c: New file.
7391 * ppcobsd-tdep.c: New file.
7392 * ppcobsd-tdep.h: New file.
7393 * rs6000-tdep.c: Include "regset.h".
7394 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7395 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7396 New functions.
7397 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7398 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7399 (rs6000-tdep.o): Update dependencies.
7400 * configure.host: Add powerpc-*-openbsd.
7401 * configure.tgt: Add powerpc-*-openbsd.
7402 * config/powerpc/obsd.mh: New file.
7403 * config/powerpc/nm-obsd.h: New file.
7404 * config/powerpc/obsd.mt: New file.
7405
7406 2004-04-22 Andrew Cagney <cagney@redhat.com>
7407
7408 * frame.h (show_frame_info): Delete declaration.
7409
7410 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7411 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7412 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7413 * frv-tdep.c (frv_frame_this_id): Ditto.
7414 * avr-tdep.c (avr_frame_this_id): Ditto.
7415
7416 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7417
7418 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7419
7420 2004-04-22 Jim Blandy <jimb@redhat.com>
7421
7422 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7423 register number zero.
7424
7425 2004-04-21 Michael Snyder <msnyder@redhat.com>
7426
7427 * mips-tdep.c (heuristic_proc_start):
7428 Warning() already prefixes "Warning: ".
7429
7430 2004-04-21 Andrew Cagney <cagney@redhat.com>
7431
7432 * annotate.h (deprecated_annotate_starting_hook)
7433 (deprecated_annotate_stopped_hook)
7434 (deprecated_annotate_exited_hook)
7435 (deprecated_annotate_signal_hook)
7436 (deprecated_annotate_signalled_hook): Deprecate.
7437 * tracepoint.h (deprecated_create_tracepoint_hook)
7438 (deprecated_delete_tracepoint_hook)
7439 (deprecated_modify_tracepoint_hook)
7440 (deprecated_trace_find_hook)
7441 (deprecated_trace_start_stop_hook): Deprecate.
7442 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7443 * remote.h (deprecated_target_resume_hook)
7444 (deprecated_target_wait_loop_hook): Deprecate.
7445 * gdbcore.h (deprecated_exec_file_display_hook)
7446 (deprecated_file_changed_hook): Deprecate.
7447 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7448 * defs.h (deprecated_modify_breakpoint_hook)
7449 (deprecated_command_loop_hook, deprecated_show_load_progress)
7450 (deprecated_print_frame_info_listing_hook)
7451 (deprecated_query_hook, deprecated_warning_hook)
7452 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7453 (deprecated_delete_breakpoint_hook)
7454 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7455 (deprecated_readline_begin_hook, deprecated_readline_hook)
7456 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7457 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7458 (deprecated_context_hook, deprecated_target_wait_hook)
7459 (deprecated_attach_hook, deprecated_detach_hook)
7460 (deprecated_call_command_hook, deprecated_set_hook)
7461 (deprecated_error_hook, deprecated_error_begin_hook)
7462 (deprecated_ui_load_progress_hook): Deprecate.
7463 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7464 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7465 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7466 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7467 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7468 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7469 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7470 * annotate.c, aix-thread.c: Update.
7471
7472 2004-04-21 Andrew Cagney <cagney@redhat.com>
7473
7474 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7475 * vaxnbsd-tdep.c: Include "gdb_string.h".
7476
7477 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7478 (add_symbol_file_from_memory_command): #if 0 function body, call
7479 error instead.
7480
7481 2004-04-21 Andrew Cagney <cagney@redhat.com>
7482
7483 * gdbcore.h: Update copyright.
7484 (deprecated_add_core_fns): Rename add_core_fns.
7485 * win32-nat.c (_initialize_core_win32): Update.
7486 * sun3-nat.c (_initialize_core_sun3): Update.
7487 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7488 * rs6000-nat.c (_initialize_core_rs6000): Update.
7489 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7490 * nto-tdep.c (_initialize_nto_tdep): Update.
7491 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7492 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7493 * mips-nat.c (_initialize_core_mips): Update.
7494 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7495 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7496 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7497 * lynx-nat.c (_initialize_core_lynx): Update.
7498 * irix5-nat.c (_initialize_core_irix5): Update.
7499 * i386-interix-nat.c (_initialize_core_interix): Update.
7500 * cris-tdep.c (_initialize_cris_tdep): Update.
7501 * corelow.c (deprecated_add_core_fns): Update.
7502 * core-regset.c (_initialize_core_regset): Update.
7503 * core-aout.c (_initialize_core_aout): Update.
7504 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7505 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7506 * alpha-nat.c (_initialize_core_alpha): Update.
7507
7508 2004-04-21 Jim Blandy <jimb@redhat.com>
7509
7510 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7511
7512 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7513
7514 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7515 Delete.
7516 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7517 (read_attribute_value): Update calls to dwarf_alloc_block.
7518 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7519 dwarf2_tmp_obstack.
7520 (psymtab_to_symtab_1): Likewise. Clean up using
7521 free_stack_comp_unit.
7522 (add_to_cu_func_list): Use the comp_unit_obstack.
7523
7524 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7525
7526 * dwarf2read.c (dwarf2_flag_true_p): New function.
7527 (die_is_declaration): Use the function above. Add some comments.
7528
7529 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7530
7531 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7532 architecture when registering sparcnbsd_core_osabi_sniffer.
7533 Adjust comment.
7534
7535 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7536
7537 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7538 return value.
7539
7540 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7541 * i386-tdep.c: Correct register numbering scheme comments
7542 throughout.
7543 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7544 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7545 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7546 (i386_gdb_arch_init): Likewise.
7547
7548 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7549 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7550 ppcnbsd-tdep.o.
7551
7552 * m68k-tdep.h: Tweak comments.
7553 * m68k-tdep.c: Tweak comment.
7554
7555 2004-04-17 Randolph Chung <tausq@debian.org>
7556
7557 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7558 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7559 (hppa_hpux_som_init_abi): Set is_elf to 0.
7560 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7561 * hppa-tdep.c (low_text_segment_address): Remove global.
7562 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7563 section offset to calculate segment address.
7564 (internalize_unwinds): Define low_text_segment_address as local and
7565 pass to record_text_segment_lowaddr for ELF targets.
7566 (hppa_gdbarch_init): Zero fill tdep structure.
7567 (hppa_dump_tdep): Print tdep structure.
7568 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7569
7570 2004-04-17 Randolph Chung <tausq@debian.org>
7571
7572 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7573 (hppa_gdbarch_init): Set pseudo_register_read.
7574 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7575 * regcache.c (supply_register): Remove check for
7576 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7577
7578 2004-04-17 Randolph Chung <tausq@debian.org>
7579
7580 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7581 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7582 (hpread_adjust_stack_address): Move to hpread.c.
7583 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7584 obj_private_struct): Move from tm-hppa.h.
7585 * hpread.c (hppa-tdep.h): Include.
7586 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7587 (hpread_read_function_type, hpread_read_doc_function_type)
7588 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7589 directly.
7590 * pa64solib.c (hppa-tdep.h): Include.
7591 * somsolib.c (hppa-tdep.h): Include.
7592 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7593 inferior_status): Remove unused forward declarations.
7594 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7595 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7596 obj_private_struct): Move to hppa-tdep.h.
7597 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7598
7599 2004-04-17 Randolph Chung <tausq@debian.org>
7600
7601 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7602 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7603 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7604 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7605 Remove forward declaration and make static.
7606 (hppa_reg_struct_has_addr): Remove.
7607
7608 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7609
7610 * observer.sh: Move comments in sed command to first column.
7611
7612 2004-04-16 Jason Molenda (jmolenda@apple.com)
7613
7614 * frame.c: Minor typeo corrections in comments.
7615
7616 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7617
7618 * observer.c (observer_test_first_notification_function): Update
7619 function profile.
7620 (observer_test_second_notification_function): Likewise.
7621 (observer_test_third_notification_function): Likewise.
7622
7623 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7624
7625 From Brian Ford <ford@vss.fsi.com>:
7626 * i386-tdep.c (i386_coff_init_abi): New function.
7627 * i386-tdep.h (i386_coff_init_abi): New prototype.
7628 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7629 register number translation functions for DWARF and DWARF 2.
7630
7631 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7632
7633 * dwarf2read.c: Back out my previous change, it was incorrect.
7634
7635 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7636
7637 * dwarf2read.c: Include "hashtab.h".
7638 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7639 has_namespace_info.
7640 (struct partial_die_info): Add comments. Use bitfields to reduce
7641 memory footprint. Add scope, scope_set, has_specification,
7642 spec_offset, die_parent, die_child, and die_sibling.
7643 (peek_die_abbrev): Add prototype.
7644 (partial_read_comp_unit_head): New function, broken out from
7645 dwarf2_build_psymtabs_hard.
7646 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7647 Use partial_read_comp_unit_head. Initialize the CU and
7648 comp_unit_obstack. Update calls to read_partial_die and
7649 scan_partial_symbols. Use free_stack_comp_unit and
7650 load_partial_dies.
7651 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7652 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7653 Update calls to helper functions. Remove NAMESPACE argument.
7654 Update comments.
7655 (partial_die_parent_scope, partial_die_full_name): New functions.
7656 (add_partial_symbol): Remove namespace argument. Update call to
7657 pdi_needs_namespace. Use partial_die_full_name. Handle
7658 DW_TAG_namespace. Check has_namespace_info flag.
7659 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7660 tag. Handle namespaces.
7661 (add_partial_namespace, add_partial_enumeration): Simplify.
7662 (guess_structure_name): New function, derived from
7663 add_partial_structure.
7664 (add_partial_structure): Remove.
7665 (determine_class_name): Update comment.
7666 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7667 (is_type_tag_for_partial, load_partial_dies): New functions.
7668 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7669 Record specifications instead of following them immediately.
7670 (find_partial_die_in_comp_unit, find_partial_die)
7671 (fixup_partial_die, free_stack_comp_unit)
7672 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7673 (partial_die_hash, partial_die_eq): New functions.
7674 * Makefile.in (hashtab_h): Define.
7675 (dwarf2read.o): Update dependencies.
7676 (observer_inc, observer_h): Move to the correct section.
7677
7678 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7679
7680 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7681 (die_is_declaration): Use the function above. Add comment.
7682
7683 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7684
7685 * dwarf2read.c (read_structure_scope): Identify stub types
7686 using die_is_declaration() only.
7687
7688 2004-04-15 Roland McGrath <roland@redhat.com>
7689
7690 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7691 argument instead of NAME.
7692 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7693 in call to symbol_file_add_with_addrs_or_offsets.
7694 (build_addr_info): New function, helper for ...
7695 (symbol_file_add_from_memory): New function.
7696 (add_symbol_file_from_memory_command): New function using that.
7697 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7698 (pre_add_symbol_hook): Add const to argument type.
7699 * symfile.h (symbol_file_add_from_memory): Declare it.
7700
7701 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7702
7703 * NEWS (New native configurations): Mention OpenBSD/vax.
7704 * configure.host: Add vax-*-openbsd*.
7705 * config/vax/obsd.mh: New file.
7706 * config/vax/nm-obsd.h: New file.
7707
7708 * vax-tdep.c: Include "regset.h".
7709 (vax_supply_gregset): New function.
7710 (vax_gregset): New variable.
7711 (vax_regset_from_core_section): New function.
7712 (vax_gdbarch_init): Set regset_from_core_section.
7713 * Makefile.in (vax-tdep.o): Update dependencies.
7714
7715 2004-04-15 Andrew Cagney <cagney@redhat.com>
7716
7717 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7718 (observer_normal_stop_notification_stub)
7719 (observer_attach_normal_stop, observer_detach_normal_stop):
7720 Delete, replaced by #include "observer.inc".
7721 * infrun.c (normal_stop): Pass "stop_bpstat" to
7722 observer_notify_normal_stop.
7723 * Makefile.in (observer_inc): Define.
7724 (observer.o): Update dependencies.
7725 (observer.h, observer.inc): New rules.
7726 * observer.h: Delete file.
7727 * observer.sh: New file.
7728
7729 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7730
7731 * vax-tdep.c (vax_frame_cache): Fix typo.
7732
7733 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7734
7735 * NEWS (New native configurations): Mention NetBSD/vax.
7736 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7737 * config/vax/nbsdelf.mh: New file.
7738 * config/vax/nbsdaout.mh: New file.
7739 * config/vax/nm-nbsd.h: New file.
7740 * config/vax/nm-nbsdaout.h: New file.
7741
7742 * vaxnbsd-tdep.c: New file.
7743 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7744 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7745 * config/vax/nbsd.mt: New file.
7746 * config/vax/tm-nbsd.h: New file.
7747
7748 * Makefile.in (vaxbsd-nat.o): New dependency.
7749
7750 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7751 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7752 struct_addr arguments. Don't push return value address.
7753 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7754 arguments to vax_store_arguments. Store return value address in
7755 R1.
7756 (vax_store_struct_return, vax_extract_return_value)
7757 (vax_store_return_value): Remove functions.
7758 (vax_return_value): New function.
7759 (vax_gdbarch_init): Set return value. Don't set
7760 deprecated_store_struct_return, deprecated_extract_struct_return
7761 and deprecated_store_return_value.
7762
7763 2004-04-14 Andreas Schwab <schwab@suse.de>
7764
7765 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7766 value buffer.
7767 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7768
7769 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7770
7771 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7772 (vax_unwind_dummy_id): New functions.
7773 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7774 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7775 variables.
7776 (vax_fix_call_dummy): Remove function.
7777 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7778 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7779 call_dummy_location, deprecated_call_dummy_words,
7780 deprecated_sizeof_call_dummy_words,
7781 deprecated_call_dummy_breakpoint_offset,
7782 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7783 and deprecated_dummy_write_sp.
7784
7785 2004-04-13 David Carlton <carlton@kealia.com>
7786
7787 * MAINTAINERS: Move myself to "paper trail" section.
7788
7789 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7790
7791 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7792 "trad-frame.h".
7793 (vax_frame_init_saved_regs): Remove function.
7794 (vax_sigtramp_saved_pc): Remove function.
7795 (vax_frame_saved_pc): Remove function.
7796 (vax_frame_args_address): Remove function.
7797 (vax_frame_num_args): Rewrite.
7798 (vax_frame_chain): Remove function.
7799 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7800 VAX_FP_REGNUM.
7801 (vax_pop_frame): Likewise.
7802 (vax_saved_pc_after_call): Remove function.
7803 (struct vax_frame_cache): New structure.
7804 (vax_frame_cache): New function.
7805 (vax_frame_this_id): New function.
7806 (vax_frame_prev_register): New function.
7807 (vax_frame_unwind): New variable.
7808 (vax_frame_sniffer): New function.
7809 (vax_frame_base_address): New function.
7810 (vax_frame_args_address): New function.
7811 (vax_frame_base): New variable.
7812 (vax_unwind_pc): New function.
7813 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7814 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7815 deprecated_frame_chain, deprecated_frame_saved_pc,
7816 deprecated_frame_args_address and
7817 deprecated_frame_init_saved_regs.
7818 * Makefile.in (vax-tdep.o): Update dependencies.
7819
7820 * vaxbsd-nat.c: New file.
7821
7822 * vax-tdep.h: Update copyright year. Adjust comments.
7823 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7824 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7825 (vax_regnum): New enum. Replacing...
7826 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7827 (VAX_PS_REGNUM): ... these removed macros.
7828 * vax-tdep.c (vax_register_name): Remove prototype.
7829 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7830 (vax_register_byte, vax_register_raw_size,
7831 vax_register_virtual_size, vax_register_virtual_type): Remove
7832 functions.
7833 (vax_register_type): New function.
7834 (vax_breakpoint_from_pc): Reorganize.
7835 (vax_gdbarch_init): Set register_type. Don't set
7836 deprecated_register_size, deprecated_register_bytes,
7837 deprecated_register_byte, deprecated_register_raw_size,
7838 deprecated_max_register_raw_size,
7839 deprecated_register_virtual_size,
7840 deprecated_max_register_virtual_size and
7841 deprecated_register_virtual_type. Add comment on stack direction.
7842
7843 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7844
7845 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7846 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7847 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7848
7849 2004-04-10 Randolph Chung <tausq@debian.org>
7850
7851 * MAINTAINERS (write after approval): Add myself.
7852
7853 2004-04-07 Randolph Chung <tausq@debian.org>
7854
7855 * hppa-tdep.c (hppa_inner_than): Remove.
7856 (is_pa_2): Remove unused static variable.
7857 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7858
7859 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7860
7861 * language.h (language_defn): Add new la_post_parser field.
7862 * parser-defs.h (null_post_parser): New declaration (default for
7863 la_post_parser).
7864
7865 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7866 insert call to that function.
7867 (parse_exp_in_context): New function, including code formerly in
7868 parse_exp_1. Calls language-dependent post-parser after
7869 prefixification.
7870 (parse_expression_in_context): New exported function.
7871 (null_post_parser): New definition.
7872 * expression.h (parse_expression_in_context): Add declaration.
7873
7874 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7875 * c-lang.c (c_language_defn): Ditto.
7876 (cplus_language_defn): Ditto.
7877 (asm_language_defn): Ditto.
7878 (minimal_language_defn): Ditto.
7879 * f-lang.c (f_language_defn): Ditto.
7880 * jv-lang.c (java_language_defn): Ditto.
7881 * language.c (unknown_language_defn): Ditto.
7882 (auto_language_defn): Ditto.
7883 (local_language_defn): Ditto.
7884 * m2-lang.c (m2_language_defn): Ditto.
7885 * scm-lang.c (scm_language_defn): Ditto.
7886 * obj-lang.c (objc_language_defn): Ditto.
7887
7888 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7889
7890 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7891 (amd64nbsd_mcontext_addr): New function.
7892 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7893 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7894 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7895
7896 * corelow.c (core_xfer_partial): Fix coding standards violation.
7897 Add support for TARGET_OBJECT_WCOOKIE.
7898
7899 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7900 deprecated_pc_in_sigtramp.
7901 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7902 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7903 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7904 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7905 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7906 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7907 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7908
7909 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7910 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7911 Fix typo.
7912
7913 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7914 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7915 (amd64_collect_fxsave): Likewise.
7916
7917 * i386-sol2-tdep.c: Include "gdb_string.h".
7918 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7919 name.
7920 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7921
7922 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7923
7924 * i386-sol2-tdep.c: Include "solib-svr4.h".
7925 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7926 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7927 * config/i386/tm-i386sol2.h: Include :solib.h".
7928 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7929 solib-svr4.o and solib-legacy.o.
7930 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7931 solib-svr4.o.
7932
7933 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7934
7935 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7936 whether a register is supplied by PTRACE_GETFPREGS.
7937 (store_inferior_registers): Likewise.
7938 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7939 whether a register is supplied by PT_GETFPREGS.
7940 (store_inferior_registers): Likewise.
7941
7942 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7943 * config/i386/linux64.mt (TDEPFILES): Likewise.
7944
7945 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7946
7947 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7948 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7949 the program counter is in the range specified by `struct
7950 gdbarch_tdep'.
7951 * amd64-linux-tdep.c: Include "symtab.h".
7952 (amd64_linux_pc_in_sigtramp): Remove function.
7953 (amd64_linux_sigtramp_p): New function.
7954 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7955 deprecated_pc_in_sigtramp.
7956 * amd64nbsd-tdep.c: Include "symtab.h".
7957 (amd64nbsd_sigtramp_p): New function.
7958 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7959 deprecated_pc_in_sigtramp.
7960 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7961 few comments.
7962 (amd64obsd_pc_in_sigtramp): Remove function.
7963 (amd64obsd_sigtramp_p): New function.
7964 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7965 deprecated_pc_in_sigtramp.
7966 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7967 (i386bsd_pc_ins_sigtramp): Remove prototype.
7968 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7969 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7970 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7971 the program counter is in the range specified by `struct
7972 gdbarch_tdep'.
7973 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7974 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7975 (i386_go32_pc_in_sigtramp): Remove function.
7976 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7977 Initialize TDEP->sigtramp_p.
7978 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7979 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7980 deprecated_pc_in_sigtramp.
7981 * i386-linux-tdep.c: Adjust comments.
7982 (i386_linux_pc_in_sigtramp): Remove function.
7983 (i386_linux_sigtramp_p): New function.
7984 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7985 deprecated_pc_in_sigtramp.
7986 * i386-nto-tdep.c: Update copyright year.
7987 (i386nto_pc_in_sigtramp): Remove function.
7988 (i386nto_sigtramp_p): New function.
7989 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7990 SP_REGNUM.
7991 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7992 deprecated_pc_in_sigtramp.
7993 * i386-sol2-tdep.c: Update copyright year.
7994 (i386_sol2_pc_in_sigtramp): Remove function.
7995 (i386_sol2_sigtramp_p): New function.
7996 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7997 deprecated_pc_in_sigtramp.
7998 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7999 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8000 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8001 deprecated_sigtramp_start and deprecated_sigtramp_end.
8002 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8003 (i386nbsd_pc_in_sigtramp): Remove function.
8004 (i386nbsd_sigtramp_p): New function.
8005 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8006 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8007 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8008 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8009 (i386obsd_pc_in_sigtramp): Remove function.
8010 (i386obsd_sigtramp_p): New function.
8011 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8012 functions.
8013 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8014 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8015 TDEP->sigtramp_p.
8016 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8017 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8018 dependencies.
8019
8020 * config/i386/i386aout.mt: Remove file.
8021
8022 * configure.tgt: Remove i[34567]86-*-go32*,
8023 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8024 and i[34567]86-*-isc*. Set gdb_target to i386 for
8025 i[34567]86-*-netware* and i[34567]86-*-*.
8026 * config/i386/i386.mt: New file.
8027 * config/i386/embed.mt: Remove file.
8028 * config/i386/go32.mt: Remove file.
8029 * config/i386/i386nw.mt: Remove file.
8030 * config/i386/i386v.mt: Remove file.
8031 * config/i386/tm-go32.h: Remove file.
8032
8033 * tui/tui-hooks.c: Include "readline/readline.h" after
8034 "gdb_curses.h" instead of before.
8035 * tui/tui-io.c: Likewise.
8036
8037 * tui/tui.c: Fix typo in comment.
8038
8039 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8040
8041 2004-04-08 Andrew Cagney <cagney@redhat.com>
8042
8043 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8044 (deprecated_exception_support_initialized): Declare.
8045 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8046 (initialize_hp_cxx_exception_support)
8047 (child_enable_exception_callback): Update.
8048 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8049 (deprecated_exception_support_initialized): Rename
8050 deprecated_exception_catchpoints_are_fragile and
8051 deprecated_exception_support_initialized.
8052 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8053
8054 * symtab.c (deprecated_hp_som_som_object_present): Rename
8055 hp_som_som_object_present.
8056 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8057 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8058 Update. Delete extern declaration.
8059 * valops.c (hp_som_som_object_present): Ditto.
8060 * parse.c (deprecated_hp_som_som_object_present)
8061 (parse_nested_classes_for_hpacc): Ditto.
8062 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8063 * hppa-hpux-tdep.c (hp_som_som_object_present)
8064 (initialize_hp_cxx_exception_support): Ditto.
8065 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8066 * cp-valprint.c (hp_som_som_object_present)
8067 (cp_print_class_method): Ditto.
8068 * c-typeprint.c (hp_som_som_object_present):
8069 (c_type_print_base): Ditto.
8070 * c-exp.y (hp_som_som_object_present): Ditto.
8071
8072 2004-04-08 Andrew Cagney <cagney@redhat.com>
8073
8074 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8075 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8076 (frame_unwind_find_by_frame): Re-implement the unwind code so
8077 that it can both prepend and append sniffers. Replace
8078 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8079 * tramp-frame.c (tramp_frame_append): Use
8080 frame_unwind_prepend_unwinder.
8081 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8082 frame_unwind_register_unwinder.
8083 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8084 tramp_frame_append.
8085 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8086 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8087 (mips_linux_init_abi): Update.
8088
8089 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8090
8091 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8092 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8093 file support.
8094
8095 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8096
8097 * ia64-tdep.c (elf.h): Don't include.
8098 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8099
8100 2004-04-07 Jason Molenda (jmolenda@apple.com)
8101
8102 * frame.h: Typeo corrections in comments.
8103
8104 2004-04-07 Jim Blandy <jimb@redhat.com>
8105
8106 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8107 %esp and %ebp
8108
8109 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8110
8111 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8112 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8113 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8114 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8115 and solib-legacy.o.
8116 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8117 solib-svr4.o.
8118 * config/sparc/tm-sol2.h: Update copyright year. Include
8119 "solib.h".
8120
8121 * sparc-sol2-tdep.c: Update copyright year. Include
8122 "solib-svr4.h".
8123 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8124 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8125 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8126 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8127 dependencies.
8128
8129 2004-04-06 Andrew Cagney <cagney@redhat.com>
8130
8131 * infttrace.c: Include "infttrace.h".
8132 * infttrace.h: Include "target.h".
8133 * Makefile.in (infttrace_h): Update.
8134 (infttrace.o): Update.
8135
8136 2004-04-06 Andrew Cagney <cagney@redhat.com>
8137
8138 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8139 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8140 move extern declarations from here ...
8141 * infttrace.h: ... to here.
8142 * Makefile.in (hppah-nat.o): Update dependencies.
8143
8144 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8145 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8146 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8147 (hppa_breakpoint_from_pc): Delete.
8148
8149 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8150
8151 2004-04-05 Andrew Cagney <cagney@redhat.com>
8152
8153 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8154 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8155 <sys/file.h>.
8156
8157 2004-04-06 Randolph Chung <tausq@debian.org>
8158
8159 Committed by Andrew Cagney (mechanical change).
8160 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8161 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8162 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8163 child_enable_exception_callback, current_ex_event,
8164 null_symtab_and_line, child_get_current_exception_event,
8165 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8166 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8167 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8168 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8169 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8170 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8171 Move hpux-specific definitions ...
8172 * hppa-hpux-tdep.c: ... to here.
8173
8174 2004-04-05 Andrew Cagney <cagney@redhat.com>
8175
8176 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8177 skip_prologue_using_sal.
8178
8179 2004-04-05 Andrew Cagney <cagney@redhat.com>
8180
8181 * config/i386/tm-i386.h: Delete file.
8182 * config/i386/tm-vxworks.h: Update copyright, do not include
8183 "tm-i386.h".
8184 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8185 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8186 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8187 * config/i386/ncr3000.mt (TM_FILE): Delete.
8188 * config/i386/interix.mt (TM_FILE): Delete.
8189 * config/i386/i386v.mt (TM_FILE): Delete.
8190 * config/i386/i386nw.mt (TM_FILE): Delete.
8191 * config/i386/i386gnu.mt (TM_FILE): Delete.
8192 * config/i386/i386aout.mt (TM_FILE): Delete.
8193 * config/i386/embed.mt (TM_FILE): Delete.
8194
8195 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8196
8197 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8198 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8199 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8200 (accg7_regnum): New constants.
8201 (last_spr_regnum, last_pseudo_regnum): Update.
8202 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8203 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8204 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8205 for accg registers.
8206 (frv_register_sim_regno): Update spr_map[].
8207
8208 2004-04-04 Andrew Cagney <cagney@redhat.com>
8209
8210 * config/mips/xm-riscos.h: Delete.
8211 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8212 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8213 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8214 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8215 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8216 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8217 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8218 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8219 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8220 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8221 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8222 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8223 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8224 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8225 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8226 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8227 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8228 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8229 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8230 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8231 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8232 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8233 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8234 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8235 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8236 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8237
8238 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8239 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8240 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8241 * configure.host: Remove m680[01]0-sun-sunos3*,
8242 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8243 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8244 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8245 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8246 mips-*-riscos*.
8247 * NEWS: Mention removed systems.
8248
8249 2004-04-04 Andrew Cagney <cagney@redhat.com>
8250
8251 GDB 6.1 release created from 6.1 branch.
8252
8253 2004-04-04 Andrew Cagney <cagney@redhat.com>
8254
8255 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8256 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8257 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8258
8259 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8260 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8261 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8262
8263 2004-04-03 Jim Blandy <jimb@redhat.com>
8264
8265 * MAINTAINERS: Chris Faylor has changed employers; add him to
8266 "paper trail" section, and update his E-mail address.
8267
8268 2004-04-03 Andrew Cagney <cagney@redhat.com>
8269
8270 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8271 generic dummy frames.
8272 * dummy-frame.c: Update copyright.
8273 (dummy_frame_sniffer): Delete check for generic dummy frames.
8274
8275 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8276 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8277 (REG_PARM_STACK_SPACE): Delete.
8278 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8279 Inline reference to REG_PARM_STACK_SPACE.
8280
8281 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8282 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8283 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8284 (FRAME_BASE_BEFORE_SIGTRAMP)
8285 (hppa32_hpux_frame_base_before_sigtramp)
8286 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8287 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8288 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8289 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8290 (FRAME_BASE_BEFORE_SIGTRAMP)
8291 (hppa64_hpux_frame_base_before_sigtramp)
8292 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8293
8294 2004-04-03 Andrew Cagney <cagney@redhat.com>
8295
8296 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8297
8298 2004-04-02 Andrew Cagney <cagney@redhat.com>
8299
8300 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8301 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8302 * dummy-frame.h: Delete out-of-date comments.
8303 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8304 * gdbarch.h, gdbarch.c: Re-generate.
8305
8306 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8307
8308 Committed by Andrew Cagney <cagney@redhat.com>.
8309 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8310 into account an instruction saving a register if we have already
8311 seen an earlier instruction saving that same register.
8312
8313 2004-04-02 Andrew Cagney <cagney@redhat.com>
8314
8315 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8316 * gdbarch.h, gdbarch.c: Re-generate.
8317 * frame.c (legacy_get_prev_frame): Delete references to
8318 DEPRECATED_INIT_FRAME_PC_FIRST.
8319
8320 * infrun.c (pc_in_sigtramp): Delete function.
8321 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8322 get_frame_type.
8323
8324 2004-04-02 Andrew Cagney <cagney@redhat.com>
8325
8326 * infrun.c (handle_step_into_function): Delete code conditional on
8327 legacy_frame_p.
8328 (handle_inferior_event, step_over_function): Ditto.
8329
8330 2004-04-02 Andrew Cagney <cagney@redhat.com>
8331
8332 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8333 "previous frame inner to this frame" test.
8334
8335 2004-04-02 Andrew Cagney <cagney@redhat.com>
8336
8337 * frame.c (safe_frame_unwind_memory): New function.
8338 * frame.h (safe_frame_unwind_memory): Declare. Update description
8339 of /safe_/ methods.
8340 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8341 "next_frame". Use safe_frame_unwind_memory.
8342 (tramp_frame_sniffer): Update call to tramp_frame_start.
8343
8344 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8345
8346 * dwarf2read.c (dwarf2_objfile_data_key): New.
8347 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8348 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8349 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8350 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8351 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8352 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8353 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8354 Remove variables.
8355 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8356 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8357 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8358 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8359 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8360 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8361 Remove macros.
8362 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8363 data.
8364 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8365 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8366 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8367 (read_partial_die, read_full_die, read_indirect_string)
8368 (dwarf_decode_line_header, dwarf_decode_macros)
8369 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8370 Update uses of removed variables.
8371 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8372 of removed macros.
8373 (_initialize_dwarf2_read): New function.
8374 * symfile.h (dwarf2_has_info): Update prototype.
8375 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8376 * elfread.c (elf_symfile_read): Likewise.
8377
8378 2004-04-01 Jim Blandy <jimb@redhat.com>
8379
8380 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8381 function for register numbers on all the rs6000-derived targets.
8382 (rs6000_gdbarch_init): Don't register a separate
8383 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8384 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8385 variants.
8386
8387 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8388 numbering.
8389
8390 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8391
8392 * valarith.c: Update copyright notice.
8393 (value_add): Handle range types.
8394 (value_sub): Ditto.
8395 (value_equal): Ditto.
8396 (value_less): Ditto.
8397 (value_neg): Ditto.
8398 (value_complement): Ditto.
8399 (value_binop): Simplify slightly by using is_integral_type and
8400 eliminiating unnecessary COERCE_ENUMs.
8401
8402 2004-03-31 Andrew Cagney <cagney@redhat.com>
8403
8404 * frame.h (frame_unwind_id): Declare.
8405 * frame.c (frame_unwind_id): New function.
8406 (get_prev_frame_1): New function.
8407 (frame_debug_got_null_frame): New function.
8408 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8409 code proper to prev_frame, update description.
8410 * infrun.c (step_over_function): Use frame_unwind_id.
8411
8412 2004-04-31 J. Brobecker <brobecker@gnat.com>
8413
8414 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8415 (hppa64_push_dummy_call): Likewise.
8416
8417 2004-03-30 Jim Blandy <jimb@redhat.com>
8418
8419 From Ulrich Weigand:
8420 * utils.c (query): Do not use a va_list variable multiple times.
8421
8422 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * Makefile.in (linux_nat_h): Update dependencies.
8425 * configure.in: Check for <gnu/libc-version.h>.
8426 * configure: Regenerate.
8427 * config.in: Regenerate.
8428 * linux-nat.h: Include "target.h". Add waitstatus field to
8429 struct lwp_info.
8430 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8431 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8432 to.
8433 (lin_lwp_handle_extended): New function. Handle clone events.
8434 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8435 thread exit events.
8436 (child_wait): Handle clone events.
8437 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8438 * linux-nat.c (linux_enable_event_reporting): Turn on
8439 PTRACE_O_TRACECLONE.
8440 (linux_handle_extended_wait): Handle clone events.
8441 * thread-db.c: Include <gnu/libc-version.h>.
8442 (struct private_thread_info): Add dying flag.
8443 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8444 higher.
8445 (attach_thread): Update comments. Handle dying threads.
8446 (detach_thread): Set the dying flag.
8447 (check_event): Always call attach_thread.
8448
8449 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * mips-tdep.c (mips_pdr_data): New.
8452 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8453 (_initialize_mips_tdep): Initialize mips_pdr_data.
8454
8455 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8456
8457 * minsyms.c (install_minimal_symbols): Move dropping leading
8458 char from linkage name from here...
8459 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8460 test for "__gnu_compiled*" symbols.
8461
8462 2004-03-28 Jim Blandy <jimb@redhat.com>
8463
8464 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8465 registers to temp register r0 and byte stores as prologue
8466 instructions.
8467
8468 2004-03-28 Andrew Cagney <cagney@redhat.com>
8469
8470 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8471 arm*-*-*.
8472
8473 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8474
8475 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8476 and switch the layout to force a display of register window.
8477
8478 2004-02-26 J. Brobecker <brobecker@gnat.com>
8479
8480 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8481 of the INTEGER class.
8482
8483 2004-03-26 Jim Blandy <jimb@redhat.com>
8484
8485 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8486 bytes long on PPC GNU/Linux.
8487
8488 2004-03-26 David Carlton <carlton@kealia.com>
8489
8490 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8491
8492 2004-03-25 Andrew Cagney <cagney@redhat.com>
8493
8494 * PROBLEMS: Add general section titles, remove references to
8495 specific releases.
8496
8497 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8498
8499 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8500 INT_REGISTER_SIZE.
8501 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8502 FP_REGISTER_VIRTUAL_SIZE.
8503 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8504 of DEPRECATED_REGISTER_RAW_SIZE.
8505 (arm_register_type): Add gdbarch argument.
8506 (arm_register_raw_size, arm_register_virtual_size): Delete.
8507 (arm_register_byte, arm_extract_return_value)
8508 (arm_store_return_value, arm_get_longjmp_target): Update references
8509 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8510 (arm_gdbarch_init): Likewise. Don't set
8511 deprecated_register_raw_size, deprecated_register_virtual_size,
8512 deprecated_max_register_raw_size,
8513 deprecated_max_register_virtual_size, or
8514 deprecated_max_register_virtual_type. Do set register_type.
8515 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8516 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8517 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8518 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8519 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8520 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8521 INT_REGISTER_SIZE.
8522 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8523 (remote_rdp_store_register): Likewise.
8524
8525 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8528 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8529 to after osabi initialization.
8530 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8531 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8532 functions.
8533 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8534 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8535 variables.
8536 (mips_linux_init_abi): Append signal trampoline unwinders.
8537
8538 2004-03-24 Andrew Cagney <cagney@redhat.com>
8539
8540 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8541 * tramp-frame.c: Include "gdb_assert.h".
8542 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8543 correct sizeof.
8544 (tramp_frame_append): Validate the tramp frame's instructions.
8545 * Makefile.in (tramp-frame.o): Update dependencies.
8546
8547 2004-03-23 Andrew Cagney <cagney@redhat.com>
8548
8549 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8550
8551 2004-03-23 Andrew Cagney <cagney@redhat.com>
8552
8553 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8554 Nasser as past testsuite/lib/ (and other) maintainers.
8555
8556 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8557
8558 * infcmd.c (attach_command): Reread symbols if we already have
8559 an exec file.
8560
8561 2004-03-23 Andrew Cagney <cagney@redhat.com>
8562
8563 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8564
8565 2004-03-23 Andrew Cagney <cagney@redhat.com>
8566
8567 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8568 * gdbarch.h, gdbarch.c: Re-generate.
8569 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8570 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8571 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8572 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8573 (DEPRECATED_SIGTRAMP_START): Update.
8574 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8575 (DEPRECATED_SIGTRAMP_START): Update.
8576 * blockframe.c (find_pc_sect_partial_function): Update.
8577 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8578
8579 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8580
8581 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8582 if necessary.
8583
8584 2004-03-23 Andrew Cagney <cagney@redhat.com>
8585
8586 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8587 predicate, deprecate.
8588 * gdbarch.h, gdbarch.c: Re-generate.
8589 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8590 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8591 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8592 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8593 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8594 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8595 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8596 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8597 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8598 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8599 * blockframe.c (find_pc_partial_function): Update.
8600 * breakpoint.c (bpstat_what): Update.
8601 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8602 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8603 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8604 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8605 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8606 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8607 * i386-nto-tdep.c (i386nto_init_abi): Update.
8608 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8609 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8610 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8611 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8612 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8613 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8614 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8615 * infrun.c (pc_in_sigtramp): Update.
8616 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8617 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8618 * mips-tdep.c (mips_gdbarch_init): Update.
8619 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8620 * ppc-linux-tdep.c: Update comment.
8621 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8622 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8623 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8624 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8625 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8626 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8627 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8628 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8629 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8630 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8631
8632 2004-03-23 Andrew Cagney <cagney@redhat.com>
8633
8634 * tramp-frame.h, tramp-frame.h: New files.
8635 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8636 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8637
8638 * Makefile.in: Update all dependencies.
8639
8640 2004-03-23 Andrew Cagney <cagney@redhat.com>
8641
8642 * Makefile.in (trad_frame_h): Add $(frame_h).
8643 * trad-frame.h: Update copyright. Include "frame.h".
8644 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8645 (trad_frame_set_id, trad_frame_get_id): Declare.
8646 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8647 * trad-frame.c: Update copyright.
8648 (struct trad_frame_cache): Define.
8649 (trad_frame_cache_zalloc): New function.
8650 (trad_frame_set_id, trad_frame_get_id): New functions.
8651 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8652
8653 2004-03-22 Andrew Cagney <cagney@redhat.com>
8654
8655 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8656 s390_pltstub_unwind_cache.
8657 (s390_stub_frame_unwind_cache): Rename
8658 s390_pltstub_frame_unwind_cache.
8659 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8660 (s390_stub_frame_prev_register): Rename
8661 s390_pltstub_frame_prev_register.
8662 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8663 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8664
8665 From Ulrich Weigand:
8666 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8667 pointer calls like PLT calls.
8668
8669 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8670
8671 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8672 PC rather than the partial function start address. Use the start
8673 address to sanity check the found PDR.
8674
8675 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8676
8677 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8678 linux_handle_extended_wait.
8679
8680 2004-03-22 Andrew Cagney <cagney@redhat.com>
8681
8682 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8683 function.
8684
8685 * frame.h (generic_pop_current_frame): Delete declaration.
8686 (deprecate_pop_dummy_frame): Deprecate
8687 generic_pop_dummy_frame.
8688 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8689 (generic_pop_current_frame): Delete function.
8690 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8691 generic_pop_current_frame.
8692 * v850-tdep.c (v850_pop_frame): Update.
8693 * mcore-tdep.c (mcore_pop_frame): Update.
8694 * sh64-tdep.c (sh64_pop_frame): Update.
8695 * h8300-tdep.c (h8300_pop_frame): Update.
8696
8697 2004-03-22 Andrew Cagney <cagney@redhat.com>
8698
8699 * frame.h (deprecated_pc_in_call_dummy): Rename
8700 generic_pc_in_call_dummy.
8701 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8702 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8703 generic_pc_in_call_dummy.
8704 (pc_in_dummy_frame): Make static.
8705 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8706 * gdbarch.h, gdbarch.c: Re-generate.
8707 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8708 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8709 (legacy_get_prev_frame): Ditto.
8710 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8711 comment.
8712
8713 2004-03-21 Andrew Cagney <cagney@redhat.com>
8714
8715 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8716 declaration and out-of-date comment.
8717 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8718 Delete function.
8719 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8720 deprecated_pc_in_call_dummy.
8721
8722 * infrun.c (handle_inferior_event): For non legacy frames, use the
8723 frame ID and frame type to identify a signal trampoline. Update
8724 comments.
8725
8726 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8727
8728 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8729 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8730
8731 2004-03-21 Andrew Cagney <cagney@redhat.com>
8732
8733 * frame-unwind.h: Update copyright.
8734 (struct frame_data): Add opaque declaration.
8735 (frame_sniffer_ftype): Declare.
8736 (struct frame_unwind): Add "unwind_data" and "sniffer".
8737 (frame_unwind_register_unwinder): Declare.
8738 (frame_unwind_find_by_frame): Add parameter "this_cache".
8739 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8740 (legacy_get_prev_frame, legacy_get_prev_frame)
8741 (get_frame_type): Pass the prologue_cache to
8742 frame_unwind_find_by_frame.
8743 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8744 "unwinder".
8745 (frame_unwind_register_unwinder): New function.
8746 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8747
8748 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8749
8750 * bcache.c (print_percentage): Use floating point to avoid
8751 incorrect results when portion*100 overflows.
8752
8753 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8754
8755 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8756 (ppc_linux_init_extra_frame_info)
8757 (ppc_linux_frameless_function_invocation)
8758 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8759 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8760 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8761 (rs6000_frame_chain): Delete declarations.
8762 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8763 (ppc_linux_init_extra_frame_info)
8764 (ppc_linux_frameless_function_invocation)
8765 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8766 (ppc_linux_init_abi): Remove registration of above deleted functions.
8767 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8768 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8769 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8770 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8771 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8772 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8773 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8774 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8775 frame management for all OSABIs.
8776
8777 2004-03-19 Andrew Cagney <cagney@redhat.com>
8778
8779 Committed by Kevin Buettner <kevinb@redhat.com>.
8780
8781 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8782 Update copyright.
8783 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8784 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8785 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8786 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8787 unwinders. #ifdef legacy frame code.
8788 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8789 "frame-base.h".
8790 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8791 (struct rs6000_frame_cache, rs6000_frame_cache)
8792 (rs6000_frame_this_id, rs6000_frame_prev_register)
8793 (rs6000_frame_sniffer, rs6000_frame_unwind)
8794 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8795 (rs6000_frame_base): Implement a traditional frame unwinder.
8796 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8797 frame unwinder.
8798
8799 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8800
8801 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8802 breakpoint address for watchpoints or the catch eventpoints.
8803 Add new paramter ``bptype''. Adjust all callers.
8804
8805 2004-03-19 Andrew Cagney <cagney@redhat.com>
8806
8807 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8808
8809 * PROBLEMS: Delete note that ARM does not use frame code, problem
8810 fixed.
8811
8812 2004-03-18 Andrew Cagney <cagney@redhat.com>
8813
8814 * stack.c (return_command): Delete code wrapped in #ifdef
8815 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8816
8817 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8818
8819 2004-03-18 Andrew Cagney <cagney@redhat.com>
8820
8821 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8822 DEPRECATED_IN_SIGTRAMP.
8823 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8824 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8825 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8826 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8827 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8828 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8829 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8830 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8831 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8832 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8833
8834 2004-03-18 Andrew Cagney <cagney@redhat.com>
8835
8836 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8837 (struct frame_base_table_entry): Define.
8838 (struct frame_base_table): Re-implement as a linked list.
8839 (frame_base_init): Re-implement.
8840 (frame_base_table): Delete function.
8841 (append_predicate): Delete function.
8842 (frame_base_append_sniffer): Update.
8843 (frame_base_set_default): Update.
8844 (frame_base_find_by_frame): Update.
8845 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8846 * Makefile.in (frame-base.o): Update dependencies.
8847
8848 2004-03-17 Andrew Cagney <cagney@redhat.com>
8849
8850 * frame.c (legacy_get_prev_frame): Pass correct frame to
8851 frame_unwind_find_by_frame.
8852
8853 2004-03-17 David Carlton <carlton@kealia.com>
8854
8855 * NEWS: Mention C++ nested types and namespaces
8856
8857 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8858
8859 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8860 and "Regressions since gdb 5.3.". Add known regressions since
8861 gdb 6.0.
8862
8863 2004-03-16 David Carlton <carlton@kealia.com>
8864
8865 * dwarf2read.c (process_structure_scope): Process children even
8866 when we're a declaration.
8867
8868 2004-03-16 Andrew Cagney <cagney@redhat.com>
8869
8870 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8871 * blockframe.c (find_pc_partial_function)
8872 (find_pc_sect_partial_function): Merge into a single
8873 find_pc_partial_function.
8874
8875 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8876
8877 * i386bsd-nat.c: s/regno/regnum/g.
8878 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8879 FP0_REGNUM.
8880 (store_inferior_registers): Likewise.
8881
8882 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8883
8884 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8885 of i387_fill_fsave.
8886 (store_inferior_registers): Call i387_collect_fsave and
8887 i387_collect_fxsave instead of i387_fill_fsave and
8888 i387_fill_fxsave.
8889
8890 2004-03-15 Andrew Cagney <cagney@redhat.com>
8891
8892 * Makefile.in (frame-unwind.o): Update dependencies.
8893 * frame-unwind.c: Include "gdb_obstack.h".
8894 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8895 parameter.
8896 (append_predicate): Delete function.
8897 (struct frame_unwind_table_entry): New structure.
8898 (struct frame_unwind_table): Replace "sniffer" with "head" and
8899 "tail".
8900 (frame_unwind_append_sniffer): Update.
8901 (frame_unwind_find_by_frame): Update.
8902 (_initialize_frame_unwind): Registe frame_unwind_init using
8903 gdbarch_data_register_pre_init.
8904
8905 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8906
8907 * i386bsd-nat.c: Update copyright year.
8908 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8909 define unconditionally.
8910
8911 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8912
8913 * i387-tdep.h (i387_collect_fsave): New prototype.
8914 * i387-tdep.c (i387_collect_fsave): New function containing most
8915 of the code from i387_fill_fsave.
8916 (i387_fill_fsave): Call i387_collect_fsave.
8917
8918 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8919
8920 * i386-linux-tdep.c: Update copyright year.
8921 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8922 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8923 svr4_ilp32_link_map_offsets instead of
8924 i386_linux_svr4_fetch_link_map_offsets.
8925
8926 2004-03-15 David Carlton <carlton@kealia.com>
8927
8928 Fix for PR c++/1553:
8929 * dwarf2read.c (read_structure_type): Determine type name by
8930 calling determine_class_name.
8931 (determine_class_name): New.
8932 (determine_prefix): Look at TYPE_TAG_NAME and call
8933 determine_class_name when appropriate.
8934 (determine_prefix_aux, class_name): Delete.
8935 (read_namespace): Set die->type.
8936
8937 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8938
8939 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8940 unused macro definition. The definition in target.h (or perhaps
8941 elsewhere) takes precedence.
8942
8943 2004-03-15 Andrew Cagney <cagney@redhat.com>
8944
8945 * ppc-tdep.h: Update copyright.
8946 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8947 function signatures to match "regsets.h".
8948 * ppc-linux-tdep.c: Include "regset.h".
8949 (ELF_GREGSET_SIZE): Delete.
8950 (right_supply_register): New function.
8951 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8952 using right_supply_register.
8953 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8954 functions.
8955 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8956 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8957 (_initialize_ppc_linux_tdep): Do not register
8958 ppc_linux_regset_core_fns.
8959 (ppc_linux_regset_from_core_section): Replace
8960 fetch_core_registers.
8961 (ppc_linux_regset_core_fns): Delete.
8962 * ppc-linux-nat.c: (right_fill_reg): New function.
8963 (supply_gregset): Update call to ppc_linux_supply_gregset.
8964 (fill_gregset): Clear the register set, use right_fill_reg.
8965 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8966 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8967
8968 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8969 unsigned.
8970
8971 2004-03-15 Andrew Cagney <cagney@redhat.com>
8972
8973 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8974 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8975 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8976 and register_gdbarch_data.
8977 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8978 (struct gdbarch_data): Replace "init" by "pre_init" and
8979 "post_init".
8980 * gdbarch.h, gdbarch.c: Re-generate.
8981 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8982 with"obstack", use OBSTACK_ZALLOC.
8983 (dwarf2_frame_ops): Delete.
8984 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8985 (dwarf2_frame_init_reg): Use gdbarch_data.
8986 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8987 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8988 (_initialize_svr4_solib): Update.
8989 * user-regs.c (_initialize_user_regs): Update.
8990 * reggroups.c (_initialize_reggroup): Update.
8991 * regcache.c (_initialize_regcache): Update.
8992 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8993 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8994 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8995 * frame-unwind.c (_initialize_frame_unwind): Update.
8996 * frame-base.c (_initialize_frame_base): Update.
8997 * user-regs.c (user_reg_add): Update.
8998 * reggroups.c (reggroup_add): Update.
8999 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9000 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9001 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9002 * frame-base.c (frame_base_table): Update.
9003 * remote.c (_initialize_remote): Update.
9004 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9005
9006 2004-03-15 Andrew Cagney <cagney@redhat.com>
9007
9008 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9009
9010 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9011
9012 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9013 * frv-linux-tdep.c: New file.
9014 * frv-tdep.c (struct gdbarch_tdep): Add new field
9015 ``sigcontext_reg_addr''.
9016 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9017 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9018 (frv_sigramp_frame_sniffer): New functions.
9019 (frv_sigtramp_frame_unwind): New static global.
9020 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9021 sniffers.
9022 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9023 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9024
9025 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9026
9027 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9028 but not via a call to error(), when unable to read memory.
9029
9030 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9031
9032 * frv-tdep.c (frv_call_dummy_words): Delete.
9033 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9034
9035 2004-03-15 Andrew Cagney <cagney@redhat.com>
9036
9037 * infrun.c (handle_step_into_function, step_over_function): Only
9038 update and use STEP_FRAME_ID when the system is using legacy
9039 frames. Update comments.
9040
9041 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9042
9043 * amd64-linux-tdep.h: Remove file.
9044 * amd64-linux-tdep.c: Don't include "inferior.h" and
9045 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9046 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9047 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9048 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9049 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9050 macros.
9051 (user_to_gdb_regmap): Remove variable.
9052 (amd64_linux_gregset_reg_offset): New variable.
9053 (amd64_core_fns): Remove variable.
9054 (fetch_core_registers): Remove function.
9055 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9056 functions.
9057 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9058 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9059 * Makefile.in (amd64_linux_tdep_h): Remove.
9060 (amd64-linux-nat.o): Update dependencies.
9061 (amd64-linux-tdep.o): Update dependencies.
9062
9063 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9064 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9065 functions.
9066 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9067
9068 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9069 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9070
9071 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9072
9073 * dwarf2read.c (read_structure_type): Rename from
9074 read_structure_scope. Don't create a symbol or call process_die.
9075 Return immediately if die->type is set. Call read_type_die before
9076 dwarf2_add_member_fn.
9077 (process_structure_scope): New function.
9078 (read_enumeration_type, process_enumeration_scope): New functions,
9079 broken out from read_enumeration. Don't create the enumeration
9080 type if it has already been created.
9081 (read_enumeration): Removed.
9082 (process_die): Call read_structure_type, process_structure_scope,
9083 read_enumeration_type, and process_enumeration_scope. Just call
9084 new_symbol for base and subrange types. Add a comment about other
9085 type dies.
9086 (read_type_die): Call read_enumeration_type.
9087 (add_partial_structure, new_symbol): Update comments.
9088
9089 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9090
9091 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9092
9093 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9094
9095 * tui/tui-win.h (tui_get_cmd_list): Declare.
9096 * tui/tui-win.c (tui_command): New function.
9097 (tui_get_cmd_list): New function.
9098 (_initialize_tui_win): Moved initialization of tui command in
9099 tui_get_cmd_list.
9100
9101 * tui/tui-data.c (init_content_element): Setup new data members.
9102 (init_win_info): Likewise.
9103 (free_content_elements): Free it.
9104 * tui/tui-data.h (struct tui_data_element): Store the register
9105 content to print.
9106 (struct tui_data_info): Keep the current register group.
9107
9108 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9109
9110 * tui/tui-regs.h (tui_show_registers): Update prototype.
9111 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9112 (tui_resize_all): No need to calculate anything for register window.
9113 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9114 (tui_set_register_element, tui_set_general_regs_content): Remove.
9115 (tui_set_special_regs_content): Remove.
9116 (tui_set_general_and_special_regs_content): Remove.
9117 (tui_set_float_regs_content): Remove.
9118 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9119 (tui_set_regs_content): Remove.
9120 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9121 (tui_v_show_registers_command_support): Remove.
9122 (tui_show_registers): Use a reggroup to specify the registers to show.
9123 (tui_show_register_group): New function.
9124 (tui_display_registers_from): Compute the layout of register window
9125 and refresh with new API; be sure to delete old register windows.
9126 (tui_check_register_values): Update to use tui_get_register and
9127 tui_display_data.
9128 (tui_display_register): Just refresh the register window part.
9129 (tui_register_format): Format registers and save in tui_data_element.
9130 (tui_get_register): New to combine tui_reg_value_has_changed and
9131 tui_get_register_raw_value; fix to use the new gdb API.
9132 (tui_show_float_command): Renamed tui_reg_float_command.
9133 (tui_show_general_command): Renamed tui_reg_general_command.
9134 (tui_show_special_command): Renamed tui_reg_system_command.
9135 (_initialize_tui_regs): Remove unused commands.
9136
9137 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9138
9139 * NEWS (New native configurations): Mention OpenBSD/amd64.
9140
9141 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9142 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9143 Remove defines.
9144 * config/i386/nm-fbsd64.h: Likewise.
9145 * config/i386/nm-obsd.h: Likewise.
9146 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9147 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9148
9149 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9150
9151 * frv-tdep.c (set_variant_scratch_registers): New function.
9152 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9153 New constants.
9154
9155 From Richard Sandiford <rsandifo@redhat.com>:
9156 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9157
9158 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9159
9160 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9161 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9162 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9163 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9164 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9165 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9166 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9167 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9168 definitions from frv-tdep.c to frv-tdep.h.
9169
9170 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9171
9172 Add shared library support for FR-V FDPIC ABI:
9173 * Makefile.in (solib-frv.o): Add dependencies.
9174 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9175 New functions.
9176 (frv_push_dummy_call): Add support for FDPIC ABI.
9177 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9178 for FDPIC ABI.
9179 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9180 (frv_fdpic_find_canonical_descriptor): Declare.
9181 * solib-frv.c: New file.
9182 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9183 * config/frv/tm-frv.h (solib.h): Include.
9184
9185 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9186
9187 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9188 (frv-tdep.o): Update dependencies.
9189 * frv-tdep.h: New file.
9190 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9191 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9192 constants.
9193 (struct gdbarch_tdep): Add new member ``frv_abi''.
9194 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9195 functions.
9196 (new_variant): Set ``frv_abi'' field.
9197 (gdb_arch_init): Detect FDPIC executables.
9198
9199 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9200
9201 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9202 wrapper.
9203
9204 2004-03-11 Andrew Cagney <cagney@redhat.com>
9205
9206 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9207
9208 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9209
9210 * solist.h (master_so_list): New function.
9211 * solib.c (master_so_list): Likewise.
9212 * solib-svr4.c (enable_break): Iterate over so_list entries
9213 obtained from master list instead of entries obtained directly
9214 via svr4_current_sos().
9215
9216 2004-03-10 Ben Elliston <bje@gnu.org>
9217
9218 * MAINTAINERS: Update my mail address.
9219
9220 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9221
9222 * remote-m32r-sdi.c: Support hardware watchpoint.
9223
9224 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * user-regs.c: Update copyright years.
9227 (struct user_regs): Rename to gdb_user_regs.
9228 (append_user_reg, builtin_user_regs, user_regs_init)
9229 (user_reg_add, user_reg_map_name_to_regnum)
9230 (usernum_to_user_reg): Update.
9231
9232 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9235 (skip_children): New functions.
9236 (locate_pdi_sibling): Call skip_children.
9237
9238 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9241 * gdbtypes.c (check_typedef): Update comments.
9242
9243 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9244
9245 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9246 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9247 pointer. Update comment about comp_unit_head.
9248 (struct abbrev_info): Shorten two int flags.
9249 (dwarf_alloc_abbrev): Take a CU argument.
9250 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9251 each time through the loop. Update cleanup argument.
9252 (psymtab_to_symtab_1): Update cleanup call.
9253 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9254 abbrev_obstack.
9255 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9256 Just call obstack_free and clear the pointer.
9257
9258 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9259
9260 * infrun.c (handle_inferior_event): Remove short-circuit code for
9261 events in a different thread.
9262
9263 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9264
9265 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9266 print the whole transfer.
9267 (initialize_targets): Update description of "set debug target".
9268
9269 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9270
9271 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9272
9273 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9274
9275 * MAINTAINERS (write after approval): Add myself.
9276
9277 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9278
9279 * sh-tdep.c (sh_print_registers_info): Use for loop.
9280 Don't skip multiple registers when a float register is encountered.
9281
9282 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9283
9284 Fix PR tdep/1291.
9285 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9286 to official SH documentation.
9287
9288 2004-03-07 Andrew Cagney <cagney@redhat.com>
9289
9290 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9291 unused function.
9292
9293 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9294
9295 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9296 (arm_get_next_pc): Handle BX and BLX.
9297
9298 2004-03-07 Andrew Cagney <cagney@redhat.com>
9299
9300 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9301 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9302 HPPA_SP_REGNUM.
9303 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9304 (hppa_target_read_fp): Delete.
9305 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9306 register_virtual_size, max_register_raw_size,
9307 max_register_virtual_size, register_byte, register_size,
9308 target_read_fp, fp_regnum, and register_bytes. Set register_type
9309 instead of register_virtual_type.
9310 (hppa32_register_type, hppa64_register_type): Replace
9311 hppa32_register_virtual_type and hppa64_register_virtual_type.
9312 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9313 (HPPA_FP_REGNUM): Define.
9314
9315 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9316
9317 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9318 (pa_do_registers_info): Delete.
9319 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9320 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9321 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9322
9323 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9324 GDB_TARGET_IS_HPPA code.
9325 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9326 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9327 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9328 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9329 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9330 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9331 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9332 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9333 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9334 (hppa_frameless_function_invocation, hppa64_store_return_value)
9335 (hppa_store_struct_return, hppa64_extract_return_value)
9336 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9337 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9338 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9339 (find_proc_framesize, deposit_21, restore_pc_queue)
9340 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9341 (rp_saved, pc_in_linker_stub): Delete.
9342
9343 Unconditionally enable 64-bit frame and ABI code.
9344 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9345 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9346 push_dummy_frame, fix_call_dummy, push_arguments,
9347 call_dummy_location, extract_return_value, use_struct_convention,
9348 store_return_value, store_struct_return, saved_pc_after_call,
9349 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9350 frame_chain, frame_chain_valid, frameless_function_invocation,
9351 frame_saved_pc, and pop_frame.
9352
9353 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9354 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9355 (hppa_gdbarch_init): Do not set PC_REGNUM.
9356
9357 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9358
9359 * config/alpha/tm-fbsd.h: Remove file.
9360 * config/alpha/fbsd.mt: Tweak comment.
9361 (TM_FILE): Set to tm-alpha.h.
9362
9363 2004-03-05 Andrew Cagney <cagney@redhat.com>
9364
9365 * infrun.c (step_over_function): When non-legacy code, and no
9366 step_frame_id, use the unwinder to get the caller's frame ID.
9367
9368 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9369
9370 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9371 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9372 bfd_arch_unknown. Adjust comment.
9373
9374 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9375 * i386obsd-tdep.c: Correct spelling in comment.
9376 * i386nbsd-tdep.c: Correct spelling in comment.
9377 * sparc-tdep.c: Correct spelling in comments.
9378
9379 2004-03-05 David Carlton <carlton@kealia.com>
9380
9381 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9382 bug.
9383
9384 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9385
9386 * sparc-tdep.c: Fix typo in comment.
9387
9388 2004-03-04 J. Brobecker <brobecker@gnat.com>
9389
9390 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9391
9392 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9393
9394 * dwarf2read.c: Add comment describing memory lifetimes.
9395 (struct dwarf2_pinfo): Update comment.
9396 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9397 (read_enumeration, new_symbol): Don't use obsavestring.
9398
9399 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9400
9401 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9402 instead of amd64_fill_fxsave.
9403 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9404 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9405
9406 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9407 Reorganize code a bit.
9408
9409 2004-03-04 Orjan Friberg <orjanf@axis.com>
9410
9411 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9412 when the frame pointer is pushed. Don't set the frame pointer's
9413 address on the stack unless it's actually located there.
9414 Set the SRP's address on the stack correctly when the PC is still in
9415 the prologue.
9416 (cris_return_value): New function.
9417 (cris_gdbarch_init): Clear deprecated store_return_value,
9418 extract_return_value.
9419
9420 2004-03-02 Jim Blandy <jimb@redhat.com>
9421
9422 * stabsread.c (reg_value_complaint): The maximum register number
9423 is one less than the number of registers.
9424
9425 2004-03-02 Andrew Cagney <cagney@redhat.com>
9426
9427 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9428 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9429 trailing comma and redundant assignment of I386_ST0_REGNUM.
9430 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9431 32-bit segment registers.
9432
9433 2004-03-01 Andrew Cagney <cagney@redhat.com>
9434
9435 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9436 use frame_relative_level and get_next_frame.
9437
9438 2004-02-29 Andrew Cagney <cagney@redhat.com>
9439
9440 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9441 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9442 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9443 Delete macro.
9444
9445 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9446
9447 * inflow.c (terminal_inferior): Don't give up the terminal if we
9448 previously couldn't get the inferior's terminal state.
9449
9450 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9451
9452 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9453 PC_REGNUM.
9454
9455 2004-02-28 Andrew Cagney <cagney@redhat.com>
9456
9457 * NEWS: Refer to GDB 6.1.
9458 * README: Refer to GDB 6.1.
9459 * PROBLEMS: Refer to GDB 6.1.
9460
9461 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9462
9463 * thread-db.c (disable_thread_signals): Remove unused function.
9464
9465 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9466
9467 * amd64-nat.c: Include "gdb_string.h".
9468 (amd64_collect_native_gregset): Zero-extend the 32-bit
9469 general-purpose registers and %eip.
9470
9471 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9472 * amd64-tdep.c (amd64_collect_fxsave): New function.
9473 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9474
9475 * i387-tdep.h: Update copyright year.
9476 (i387_collect_fxsave): New prototype.
9477 * i387-tdep.c: Update copyright year.
9478 (i387_collect_fxsave): New function containing most of the code
9479 from i387_fill_fxsave.
9480 (i387_fill_fxsave): Call i387_collect_fxsave.
9481
9482 2004-02-28 Andrew Cagney <cagney@redhat.com>
9483
9484 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9485 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9486
9487 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9488
9489 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9490
9491 2004-02-28 Andrew Cagney <cagney@redhat.com>
9492
9493 * utils.c: Use "", instead of <>, to include readline.
9494 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9495 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9496 * source.c, solib.c, exec.c, event-top.c: Ditto.
9497 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9498 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9499 * Makefile.in: Update all dependencies.
9500 (readline_tilde_h, readline_history_h): Define.
9501 (readline_headers): Delete.
9502
9503 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9504
9505 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9506 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9507 "config/i386/tm-lx64.h".
9508
9509 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9510 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9511 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9512
9513 2004-02-28 Andrew Cagney <cagney@redhat.com>
9514
9515 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9516
9517 * breakpoint.c (_initialize_breakpoint): Use
9518 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9519 Add help to show command.
9520
9521 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9522
9523 * i386-nat.c: Reformat to be closer to coding standards.
9524 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9525 `retval'. Make variables `align' and `size' local to while-loop.
9526 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9527 (_initialize_i386_nat): New prototype.
9528
9529 * tui/tui.c: Include <readline/readline.h> instead of
9530 "readline/readline.h". Include it after <term.h> and
9531 "gdb_curses.h".
9532
9533 2004-02-27 Andrew Cagney <cagney@redhat.com>
9534
9535 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9536 the new frame unwind code.
9537 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9538 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9539 PCOQ_HEAD_REGNUM.
9540
9541 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9542 "return_value" and "push_dummy_call".
9543 (hppa32_use_struct_convention): Delete unused function.
9544 (hppa32_store_return_value): Delete unused function.
9545 (hppa32_extract_return_value): Delete unused function.
9546 (hppa32_stack_align): Delete function.
9547
9548 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9549
9550 * coffread.c (enter_linenos): Don't let rawptr reference memory
9551 outside linetab[]'s limits.
9552
9553 2004-02-27 Andrew Cagney <cagney@redhat.com>
9554
9555 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9556 inferior stack space - the stack needs to grow upwards.
9557 (hppa32_frame_align): New function.
9558 (hppa64_frame_align): Replace hppa_frame_align.
9559 (hppa_gdbarch_init): Update.
9560
9561 2004-02-26 Orjan Friberg <orjanf@axis.com>
9562
9563 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9564 (dwarf2-frame.h): Include.
9565 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9566 Remove static variables related to ABI setting.
9567 (struct gdbarch_tdep): Remove cris_abi member.
9568 (struct frame_extra_info): Remove.
9569 (cris_unwind_cache, stack_item): New structs.
9570 (cris_frame_unwind, cris_frame_base): New variables.
9571 (push_stack_item, pop_stack_item)
9572 (cris_frame_unwind_cache, cris_frame_this_id)
9573 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9574 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9575 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9576 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9577 (cris_reg_struct_has_addr): New functions.
9578 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9579 (cris_frame_saved_pc, cris_saved_pc_after_call,
9580 (cris_store_struct_return, cris_frameless_function_invocation)
9581 (cris_pop_frame, cris_skip_prologue_main)
9582 (cris_abi_original_store_return_value)
9583 (cris_abi_v2_store_return_value)
9584 (cris_abi_original_extract_return_value)
9585 (cris_abi_v2_extract_return_value)
9586 (cris_abi_original_reg_struct_has_addr)
9587 (cris_abi_v2_reg_struct_has_addr)
9588 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9589 (cris_push_return_address, cris_abi_update): Remove.
9590 (_initialize_cris_tdep): Remove ABI command.
9591 (cris_dump_tdep): Ditto.
9592 (cris_gdbarch_init): Remove ABI command.
9593 Set store_return_value, extract_return_value, push_dummy_code,
9594 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9595 frame_unwind_append_sniffer, frame_base_set_default.
9596 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9597 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9598 sizeof_call_dummy_words, get_saved_register, push_return_address,
9599 pop_frame, store_struct_return, frame_init_saved_regs,
9600 init_extra_frame_info, frameless_function_invocation, frame_chain,
9601 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9602 dummy_write_sp.
9603
9604 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9605
9606 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9607 * valprint.c (print_hex_chars): Change from static to external.
9608 (print_char_chars): New function.
9609 * printcmd.c (print_scalar_formatted): For integer and enum types
9610 that are longer than LONGEST, perform processing via appropriate
9611 print_*_chars routines.
9612
9613 2004-02-26 Andrew Cagney <cagney@redhat.com>
9614
9615 * Makefile.in: Update dependencies.
9616 Changes from Ulrich Weigand,
9617 * s390-tdep.c: Include "dwarf2-frame.h".
9618 (s390_dwarf2_frame_init_reg): New function.
9619 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9620 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9621
9622 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9623
9624 * breakpoint.c (pending_break_support): New setting variable.
9625 (break_command_1): Account for pending_break_support setting
9626 when creating pending breakpoints.
9627 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9628 (_initialize_breakpoint): Add "set breakpoint pending" and
9629 "show breakpoint pending" commands.
9630
9631 2004-02-26 Andrew Cagney <cagney@redhat.com>
9632
9633 Fix PR i18n/1570.
9634 * charset.c (backslashable, backslashed, represented): Remove 'e'
9635 from list of escaped characters, not part of ISO-C.
9636
9637 2004-02-25 J. Brobecker <brobecker@gnat.com>
9638
9639 From Peter Schauer <schauer@pdf.de>:
9640 * tui/tui.c: Move system header includes after local includes.
9641 Fixes a build failure on solaris systems.
9642
9643 2004-02-25 J. Brobecker <brobecker@gnat.com>
9644
9645 * configure.in: Refine the previous change.
9646 * configure: Regenerate.
9647
9648 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9649
9650 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9651 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9652 "amd64-tdep.h" instead of "x86-64-tdep.h".
9653 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9654 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9655 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9656 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9657 and "x86-64-tdep.c".
9658 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9659 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9660 and "x86-64-tdep.c".
9661 * amd64bsd-nat.c: Update copyright year.
9662 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9663 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9664 "x86-64-tdep.h".
9665 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9666 "x86-64-tdep.h".
9667 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9668 "x86-64-tdep.h".
9669 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9670 "x86-64-tdep.h".
9671 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9672 "x86-64-tdep.h".
9673 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9674 "x86-64-tdep.h".
9675 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9676 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9677 * Makefile.in (amd64_linux_tdep_h): Renamed from
9678 x86_64_linux_tdep_h.
9679 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9680 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9681 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9682 (amd64obsd-tdep.o): Update dependencies.
9683 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9684 dependencies.
9685 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9686 dependencies.
9687 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9688 amd64-linux-nat.c amd64-linux-tdep.c.
9689 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9690 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9691 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9692 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9693 amd64-tdep.o and amd64-linux-tdep.o.
9694 (TM_FILE): Set to tm-linux64.h.
9695 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9696 (NAT_FILE): Set to nm-linux64.h.
9697 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9698 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9699 amd64-tdep.o.
9700 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9701 amd64-tdep.o.
9702 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9703 amd64-tdep.o.
9704
9705 2004-02-25 Roland McGrath <roland@redhat.com>
9706
9707 * remote.c (remote_protocol_qPart_auxv): New variable.
9708 (init_all_packet_configs): Initialize it.
9709 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9710 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9711 (show_remote_cmd): Call it.
9712 (_initialize_remote): Initialize commands.
9713 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9714 service TARGET_OBJECT_AUXV requests.
9715
9716 2004-02-25 J. Brobecker <brobecker@gnat.com>
9717
9718 * configure.in: Make sure that the wborder function is available.
9719 Otherwise, search for it in the cur_colr library.
9720 * configure: Regenerate.
9721
9722 2004-02-25 Andrew Cagney <cagney@redhat.com>
9723
9724 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9725
9726 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9727
9728 * config/i386/tm-x86-64linux.h: Tweak comments.
9729
9730 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9731
9732 * MAINTAINERS: Add self to write-after-approval list.
9733
9734 2004-02-25 Andrew Cagney <cagney@redhat.com>
9735
9736 PR cli/1566. Problem found, and fix suggested by David Allan.
9737 * cli/cli-script.c (execute_control_command): Unconditionally
9738 install a cleanup. Default "ret" to "invalid_control". Use
9739 "break" instead of "return" to escape from the switch.
9740
9741 2004-02-24 J. Brobecker <brobecker@gnat.com>
9742
9743 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9744 with the lines macro defined in term.h on AiX.
9745 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9746 a collision with the label_width macro defined in term.h on AiX.
9747
9748 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9749
9750 Committed by Kevin Buettner <kevinb@redhat.com>.
9751
9752 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9753 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9754 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9755 instead of ia64_write_pc().
9756 * ia64-linux-tdep.c (regcache.h): Include.
9757 (ia64_linux_write_pc): New function.
9758
9759 2004-02-23 Roland McGrath <roland@redhat.com>
9760
9761 * auxv.c (info_auxv_command): Fix typos in error messages.
9762
9763 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9764
9765 * x86-64-tdep.h: Tweak comment.
9766 (enum amd64_regnum): New.
9767 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9768 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9769 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9770 (X86_64_XMM1_REGNUM): Removed.
9771 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9772 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9773 prototypes for renamed functions.
9774 * x86-64-tdep.c: Fix typo.
9775 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9776 register numbers.
9777 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9778 Use constants from `enum amd64_regnum' for register numbers.
9779 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9780 (amd64_analyze_prologue, amd64_frame_cache,
9781 amd64_sigtramp_frame_cache): Use constants from `enum
9782 amd64_regnum' for register numbers.
9783 (amd64_supply_fpregset): Adjust for renamed functions.
9784 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9785 `enum amd64_regnum' for register numbers.
9786 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9787 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9788 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9789 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9790 (amd64_linux_fill_gregset): Adjust for renamed macros.
9791 (fetch_core_registers): Adjust for renamed functions.
9792 (amd64_linux_init_abi): Adjust for renamed functions.
9793 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9794 renamed functions.
9795 * amd64-nat.c: Adjust for renamed macros.
9796 * amd64bsd-nat.c (fetch_inferior_registers)
9797 (store_inferior_registers): Use constants from `enum amd64_regnum'
9798 for register numbers. Adjust for renamed variables.
9799 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9800 renamed variables.
9801 (_initialize_amd64fbsd_nat): Use constants from `enum
9802 amd64_regnum' for register numbers.
9803 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9804 `enum amd64_regnum' for register numbers.
9805 (amd64fbsd_init_abi): Adjust for renamed functions.
9806 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9807 `enum amd64_regnum' for register numbers.
9808 (amd64nbsd_init_abi): Adjust for renamed functions.
9809 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9810 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9811 `enum amd64_regnum' for register numbers.
9812 (amd64obsd_init_abi): Adjust for renamed functions.
9813 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9814
9815 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9816
9817 * breakpoint.c (print_one_breakpoint): Do not output spaces
9818 after printing <PENDING> for a pending breakpoint.
9819
9820 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9821
9822 * printcmd.c (print_scalar_formatted): Initialize val_long
9823 to remove compiler warning message.
9824
9825 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9826
9827 * defs.h (nquery, yquery): New prototypes.
9828 * breakpoint.c (break_command_1): Use new nquery interface.
9829 * utils.c (defaulted_query, nquery, yquery): New functions.
9830
9831 2004-02-23 Andrew Cagney <cagney@redhat.com>
9832
9833 * hppa-tdep.c (hppa_frame_align): New function.
9834 (hppa32_push_dummy_call): New function.
9835 (hppa64_push_dummy_call): New function.
9836 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9837 disabled.
9838
9839 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9840 FIX_CALL_DUMMY when push_dummy_call is available.
9841 (call_function_by_hand, push_dummy_code): Ditto.
9842
9843 2004-02-22 Andrew Cagney <cagney@redhat.com>
9844
9845 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9846 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9847 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9848 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9849 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9850 call_dummy_location to ON_STACK.
9851
9852 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9853
9854 * x86-64-linux-tdep.c: Tweak comment.
9855 (amd64_linux_supply_gregset): Renamed from
9856 x86_64_linux_supply_gresget.
9857 (amd64_linux_fill_gregset): Renamed from
9858 x86_64_linux_fill_gregset.
9859 (fetch_core_registers): Adjust for renamed functions.
9860 (amd64_core_fns): Renamed from x86_64_core_fns.
9861 (amd64_linux_sigtramp_start): Renamed from
9862 x86_64_linux_sigtramp_start.
9863 (amd64_linux_pc_in_sigtramp): Renamed from
9864 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9865 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9866 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9867 (amd64_linux_sigcontext_addr): Renamed from
9868 x86_64_linux_sigcontext_addr.
9869 (amd64_linux_sc_reg_offset): Renamed from
9870 x86_64_linux_sc_reg_offset.
9871 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9872 Adjust for renamed functions and variables.
9873 (_initialize_amd64_linux_tdep): Renamed from
9874 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9875 variables.
9876 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9877 Adjust for renamed functions.
9878
9879 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9880 from x86_64_linux_gregset64_reg_offset.
9881 (amd64_linux_gregset32_reg_offset): Rename from
9882 x86_64_linux_gregset64_reg_offset.
9883 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9884 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9885 (amd64_linux_dr_set_control): Renamed from
9886 x86_64_linux_dr_set_control. Adjust for renamed functions.
9887 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9888 Adjust for renamed functions.
9889 (amd64_linux_dr_reset_addr): Renamed from
9890 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9891 (amd64_linux_dr_get_status): Renamed from
9892 x86_64_linux_dr_get_status. Adjust for renamed functions.
9893 (_initialize_amd64_linux_nat): Renamed from
9894 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9895 functions.
9896 * config/i386/nm-x86-64linux.h: Update copyright year.
9897 Adjust for renamed functions.
9898
9899 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9900 amd64fbsd_sigtramp_start.
9901 (amd64fbsd_sigtramp_end_addr): Renamed from
9902 amd64fbsd_sigtramp_end.
9903 (amd64fbsd_init_abi): Adjust for renamed variables.
9904 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9905 variables.
9906 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9907 amd64fbsd_sigtramp_start.
9908 (amd64fbsd_sigtramp_end_addr): Renamed from
9909 amd64fbsd_sigtramp_end.
9910
9911 2004-02-22 Andrew Cagney <cagney@redhat.com>
9912
9913 * hppa-tdep.c (hppa32_return_value): New function.
9914 (hppa64_return_value): New function.
9915 (hppa_gdbarch_init): Set return_value; keep disabled.
9916
9917 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9918 struct-return and inferior function call methods.
9919
9920 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9921 "frame-base.h".
9922 (struct hppa_frame_cache): Define.
9923 (hppa_frame_cache, hppa_frame_this_id): New functions.
9924 (hppa_frame_prev_register): New function.
9925 (hppa_frame_unwind, hppa_frame_base): New variables.
9926 (hppa_frame_unwind_sniffer): New function.
9927 (hppa_frame_base_address, hppa_unwind_pc): New function.
9928 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9929 sniffer, and frame base sniffer; keep disabled.
9930 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9931 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9932
9933 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9934 to predicates for "seriously old code".
9935
9936 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9937 runtime if(0).
9938
9939 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9940 unsigned.
9941 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9942
9943 * config/pa/tm-hppa.h: Update copyright.
9944 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9945 (deprecated_init_frame_pc_default): Delete declaration.
9946 (hppa_frame_init_saved_regs): Delete declaration.
9947 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9948 * hppa-tdep.c: Include "arch-utils.h".
9949 (hppa_gdbarch_init): Set deprecated init_frame_pc
9950 and deprecated frame_init_saved_regs.
9951 (hppa_frame_init_saved_regs): Make static.
9952
9953 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9954
9955 Remove old 386BSD support.
9956 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9957 * configure.host: Remove i[34567]86-*-bsd*.
9958 * configure.tgt: Remove i[34567]86-*-bsd*.
9959 * i386b-nat.c: Removed.
9960 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9961 (i386b-nat.o): Remove dependencies.
9962
9963 * config/i386/i386bsd.mh: Removed.
9964 * config/i386/i386bsd.mt: Removed.
9965 * config/i386/nm-i386bsd.h: Removed.
9966 * config/i386/tm-i386bsd.h: Removed.
9967 * config/i386/xm-i386bsd.h: Removed.
9968
9969 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9970
9971 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9972 (amd64fbsd_init_abi): Set link map offsets.
9973 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9974 (amd64nbsd_init_abi): Set link map offsets.
9975 * amd64obsd-tdep.c: Include "solib-svr4.h".
9976 (amd64obsd_init_abi): Set link map offsets.
9977 * i386fbsd-tdep.c: Include "solib-svr4.h".
9978 (i386fbsd_init_abi): Set link map offsets.
9979 * i386nbsd-tdep.c: Include "solib-svr4.h".
9980 (i386nbsdelf_init_abi): Set link map offsets.
9981 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9982 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9983 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9984 solib-legacy.o and core-aout.o. Reformat.
9985 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9986 solib-svr4.o, solib-legacy.o. Reformat.
9987 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9988 * config/i386/nbsdelf.mh: Reformat.
9989 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9990 solib-svr4.o, solib-legacy.o and corelow.o.
9991 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9992 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9993 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9994 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9995 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9996 (TM_FILE): Set to tm-fbsd.h.
9997 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9998 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9999 solib-svr4.o.
10000 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10001 solib-svr4.o.
10002 (TM_FILE): Set to nm-nbsd.h.
10003 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10004 Simplify shared library support. Don't include "elf/common.h".
10005 (SVR4_SHARED_LIBS): Don't define.
10006 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10007 "solib.h".
10008 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10009 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10010 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10011 Don't include "i386/tm-i386.h". Include "solib.h".
10012 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10013 Don't include "i386/tm-i386.h".
10014 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10015 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10016 Include "i386/xm-i386.h".
10017 (HOST_LONG_DOUBLE_FORMAT): Remove.
10018
10019 Fix OpenBSD/i386 sigtramp recognition.
10020 * i386-tdep.h: Update copyright year.
10021 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10022 (i386bsd_sigtramp_end): New prototypes.
10023 (i386fbsd_sigtramp_start_addr): Renamed from
10024 i386fbsd_sigtramp_start.
10025 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10026 (i386obsd_sigtramp_start_addr): Renamed from
10027 i386obsd_sigtramp_start.
10028 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10029 * i386bsd-tdep.c: Update copyright year.
10030 (i386bsd_pc_in_sigtramp): Make public.
10031 * i386fbsd-nat.c: Update copyright year.
10032 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10033 * i386fbsd-tdep.c: Update copyright year.
10034 (i386fbsd_sigtramp_start_addr): Renamed from
10035 i386fbsd_sigtramp_start.
10036 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10037 (i386fbsdaout_init_abi): Adjust for renamed variables.
10038 * i386obsd-nat.c: Update copyright year.
10039 (_initialize_i386obsd_nat): Adjust for renamed variables.
10040 * i386obsd-tdep.c: Include "target.h".
10041 (i386obsd_page_size): New variable.
10042 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10043 (i386obsd_sigtramp_end): New functions.
10044 (i386obsd_sigtramp_start_addr): Renamed from
10045 i386obsd_sigtramp_start.
10046 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10047 (i386obsd_init_abi): Adjust for renamed variables. Set
10048 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10049 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10050
10051 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10052 trampoline change in OpenBSD kernel.
10053
10054 * amd64-nat.c: Update copyright year.
10055 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10056 architecture from REGCACHE.
10057
10058 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10059 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10060
10061 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10062
10063 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10064 i[34567]86-*-openbsd3.[0-3].
10065 * config/i386/obsdaout.mh: New file.
10066
10067 * config/i386/obsd.mh (MH_FLAGS): Remove.
10068
10069 Fix PR build/1549.
10070 * i386obsd-tdep.c: Update copyright years. Include
10071 "solib-svr4.h".
10072 (i386obsd_init_abi): Don't set regset_from_core_section here.
10073 (i386obsd_aout_init_abi): New function. Set
10074 regset_from_core_section here.
10075 (i386obsd_elf_init_abi): New function.
10076 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10077 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10078 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10079 (TM_FILE): Set to tm-nbsd.h.
10080
10081 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10082 solib-sunos.o.
10083
10084 * solib-svr4.h: Update copyright year.
10085 (svr4_ilp32_fetch_link_map_offsets)
10086 (svr4_lp64_fetch_link_map_offsets): New prototype.
10087 * solib-svr4.c: Update copyright year.
10088 (svr4_ilp32_fetch_link_map_offsets)
10089 (svr4_lp64_fetch_link_map_offsets): New function.
10090
10091 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10092
10093 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10094 to the partial symbol table.
10095
10096 2004-02-20 J. brobecker <brobecker@gnat.com>
10097
10098 * PROBLEMS: Add description of problem documented under gdb/1560.
10099
10100 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10101
10102 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10103 comments.
10104 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10105 functions.
10106 (amd64obsd_init_abi): Reorder initializations. Use
10107 amd64obsd_r_reg_offset to initialize the general-purpose register
10108 set details. Set regset_from_core_section.
10109 (_initialize_amd64obsd_tdep): Rename from
10110 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10111 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10112 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10113
10114 * NEWS (New native configurations): Mention OpenBSD/alpha.
10115 * configure.tgt: Add alpha*-*-openbsd*.
10116 * configure.host: Add alpha*-*-openbsd*.
10117 * alphanbsd-tdep.c: Update copyright year.
10118 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10119
10120 2004-02-20 Andrew Cagney <cagney@redhat.com>
10121
10122 Fix PR tdep/1372.
10123 * configure.tgt: Delete target "none-*-*".
10124 * configure.host: Delete host "none-*-*".
10125 * config/none/none.mh: Delete file.
10126 * config/none/none.mt: Delete file.
10127 * config/none/xm-none.h: Delete file.
10128 * config/none/tm-none.h: Delete file.
10129 * config/none/nm-none.h: Delete file.
10130
10131 2004-02-19 Fred Fish <fnf@redhat.com>
10132
10133 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10134 cache->uses_fp prior to setting it.
10135
10136 2004-02-19 Fred Fish <fnf@redhat.com>
10137
10138 Fix for PR breakpoint/1558.
10139 * sh-tdep.c (IS_JSR): New macro.
10140 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10141
10142 2004-02-19 Jim Blandy <jimb@redhat.com>
10143
10144 * findvar.c (value_from_register): Doc fix.
10145
10146 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10147
10148 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10149 type being greater than sizeof of host's LONGEST. Always use
10150 unpack_long() unless format 'f' chosen.
10151
10152 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10153
10154 Committed by Elena Zannoni <ezannoni@redhat.com>
10155
10156 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10157 contains a symbol wich is the best, non-exact match for the given
10158 pc. Update comments.
10159
10160 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10161
10162 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10163 macro, which was part of the now removed Mach 3 port.
10164 * utils.c (request_quit): Ditto.
10165
10166 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10167
10168 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10169 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10170
10171 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10172
10173 Committed by Mark Kettenis <kettenis@gnu.org>.
10174
10175 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10176 Define.
10177
10178 2004-02-18 Andrew Cagney <cagney@redhat.com>
10179
10180 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10181 CONFIG_INSTALL and CONFIG_UNINSTALL.
10182 * configure: Re-generate.
10183 * interps.h (INTERP_TUI): Define.
10184 * Makefile.in: Update dependencies.
10185 (TUI): New macro.
10186 (tui-main.o): Specify dependencies.
10187 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10188 * tui/tui-main.c: New file.
10189
10190 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10191
10192 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10193 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10194 dependencies.
10195 * configure.host: Add x86_64-*-openbsd*.
10196 * configure.tgt: Add x86_64-*-openbsd*.
10197 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10198
10199 * tui/tui.c: Don't include <malloc.h>.
10200
10201 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10202 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10203 amd64nbsd-tdep.c.
10204
10205 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10206 static. Remove extraneous whitespace.
10207 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10208 static.
10209
10210 2004-02-17 Jim Blandy <jimb@redhat.com>
10211
10212 * findvar.c (value_from_register): Doc fix.
10213
10214 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10215
10216 Committed by Jim Blandy <jimb@redhat.com>.
10217
10218 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10219 CORE_ADDR as type for selectors. Correct types for GNU run time
10220 message lookup function to use double indirection.
10221 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10222 * objc-lang.h (lookup_child_selector): Adapt prototype.
10223
10224 * s390-nat.c (SUBOFF): New macro.
10225 (supply_gregset, fill_gregset): Use it to handle debugging
10226 of 32-bit exectuables running under a 64-bit kernel.
10227 * s390-tdep.c: Include "solib-svr4.h".
10228 (s390_svr4_fetch_link_map_offset): New function.
10229 (s390x_svr_fetch_link_map_offset): Likewise.
10230 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10231 * Makefile.in (s390-tdep.o): Update dependencies.
10232
10233 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10234 "frame-unwind.h".
10235 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10236 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10237 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10238 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10239 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10240 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10241 S390_SIGNAL_FRAMESIZE,
10242 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10243 (struct frame_extra_info): Remove.
10244 (s390_memset_extra_info): Remove.
10245 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10246 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10247 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10248 (is_rse): Renamed to ...
10249 (is_rsy): ... this. Support long displacements.
10250 (is_rxe): Renamed to ...
10251 (is_rxy): ... this. Support long displacements.
10252 (compute_x_addr): Support long displacements.
10253 (struct s390_prologue_data): New data type.
10254 (s390_on_stack): Change API to use struct s390_prologue_data.
10255 (s390_store): Reimplement.
10256 (s390_load): New function.
10257 (s390_get_signal_frame_info): Remove.
10258 (s390_get_frame_info): Remove, replace by ...
10259 (s390_analyze_prolog): ... this new function.
10260 (s390_check_function_end): Remove.
10261 (s390_function_start): Remove.
10262 (s390_frameless_function_invokation): Remove.
10263 (s390_is_sigreturn): Remove.
10264 (s390_init_frame_pc_first): Remove.
10265 (s390_init_frame_extra_info): Remove.
10266 (s390_frame_init_saved_regs): Remove.
10267 (s390_frame_saved_pc_nofix): Remove.
10268 (s390_frame_saved_pc): Remove.
10269 (s390_frame_chain): Remove.
10270 (s390_fp_regnum, s390_read_fp): Remove.
10271 (s390_pop_frame_regular, s390_pop_frame): Remove.
10272 (s390_saved_pc_after_call): Remove.
10273 (s390_skip_prologue): Reimplement.
10274 (s390_in_function_epilogue_p): Support long displacements.
10275 (struct s390_unwind_cache): New data structure.
10276 (s390_frame_unwind_cache): New function.
10277 (s390_prologue_frame_unwind_cache): Likewise.
10278 (s390_backchain_frame_unwind_cache): Likewise.
10279 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10280 (s390_frame_unwind): Define.
10281 (s390_frame_sniffer): New function.
10282 (struct s390_pltstub_unwind_cache): New data structure.
10283 (s390_pltstub_frame_unwind_cache): New function.
10284 (s390_pltstub_frame_this_id): Likewise.
10285 (s390_pltstub_frame_prev_register): Likewise.
10286 (s390_pltstub_frame_unwind): Define.
10287 (s390_pltstub_frame_sniffer): New function.
10288 (struct s390_sigtramp_unwind_cache): New data structure.
10289 (s390_sigtramp_frame_unwind_cache): New function.
10290 (s390_sigtramp_frame_this_id): Likewise.
10291 (s390_sigtramp_frame_prev_register): Likewise.
10292 (s390_sigtramp_frame_unwind): Define.
10293 (s390_sigtramp_frame_sniffer): New function.
10294 (s390_frame_base_address, s390_local_base_address): New functions.
10295 (s390_frame_base): Define.
10296 (s390_unwind_pc, s390_unwind_sp): New function.
10297 (s390_push_dummy_call): Use new frame base location.
10298 (s390_unwind_dummy_id): Likewise.
10299 (s390_gdbarch_init): Remove calls to:
10300 set_gdbarch_frameless_function_invocation,
10301 set_gdbarch_deprecated_init_frame_pc,
10302 set_gdbarch_deprecated_frame_chain,
10303 set_gdbarch_deprecated_frame_init_saved_regs,
10304 set_gdbarch_deprecated_pop_frame,
10305 set_gdbarch_deprecated_init_extra_frame_info,
10306 set_gdbarch_deprecated_init_frame_pc_first,
10307 set_gdbarch_deprecated_target_read_fp,
10308 set_gdbarch_deprecated_frame_saved_pc,
10309 set_gdbarch_deprecated_saved_pc_after_call,
10310 set_gdbarch_deprecated_fp_regnum.
10311 Add calls to:
10312 set_gdbarch_in_solib_call_trampoline,
10313 frame_unwind_append_sniffer,
10314 frame_base_set_default,
10315 set_gdbarch_unwind_pc,
10316 set_gdbarch_unwind_sp.
10317 * Makefile.in (s390-tdep.o): Update dependencies.
10318
10319 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10320 (S390_STACK_FRAME_OVERHEAD): Remove.
10321 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10322 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10323 (s390_promote_integer_argument): Remove.
10324 (s390_cannot_extract_struct_value_address): Remove.
10325 (s390_use_struct_convention, s390_store_struct_return): Remove.
10326 (s390_extract_return_value, s390_store_return_value): Remove.
10327 (s390_return_value_convention, s390_return_value): New functions.
10328 (is_float_singleton): Handle typedefs.
10329 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10330 Remove, replace by ...
10331 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10332 s390_function_arg_integer): ... these new functions.
10333 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10334 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10335 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10336 Fill in tdep->abi.
10337 Remove calls to:
10338 set_gdbarch_deprecated_store_struct_return,
10339 set_gdbarch_deprecated_extract_return_value,
10340 set_gdbarch_deprecated_store_return_value,
10341 set_gdbarch_use_struct_convention,
10342 set_gdbarch_extract_struct_value_address,
10343 set_gdbarch_deprecated_pc_in_call_dummy,
10344 set_gdbarch_deprecated_push_arguments,
10345 set_gdbarch_deprecated_save_dummy_frame_tos,
10346 set_gdbarch_deprecated_push_return_address,
10347 set_gdbarch_deprecated_sizeof_call_dummy_words,
10348 set_gdbarch_deprecated_call_dummy_words,
10349 set_gdbarch_deprecated_dummy_write_sp.
10350 Add calls to:
10351 set_gdbarch_push_dummy_call,
10352 set_gdbarch_unwind_dummy_id,
10353 set_gdbarch_return_value.
10354
10355 * config/s390/nm-linux.h: Update comments.
10356 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10357 (STOPPED_BY_WATCHPOINT): Redefine.
10358 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10359 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10360 (s390_stopped_by_watchpoint): Likewise.
10361 (watch_area_cnt): Remove.
10362 * s390-nat.c: Update comments.
10363 (watch_area): Remove typedef.
10364 Global replace watch_area by struct watch_area.
10365 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10366 (s390_stopped_by_watchpoint): Remove pid argument,
10367 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10368 (s390_fix_watch_points): Remove pid argument,
10369 use s390_inferior_tid. Recompute area spanned by watchpoints.
10370 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10371 argument. Reimplement.
10372
10373 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10374 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10375 (FETCH_INFERIOR_REGISTERS): Define.
10376 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10377 core-regset.o.
10378 * config/s390/s390x.mt: Remove.
10379 * config/s390/tm-s390.h: Remove.
10380 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10381 (TARGET_ELF64): Remove.
10382 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10383 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10384 s390*-*-* case; always set gdb_target to s390.
10385 * regformats/reg-s390.dat: Remove control registers.
10386 * regformats/reg-s390x.dat: Likewise.
10387 * s390-tdep.h: New file.
10388 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10389 Include "inferior.h" and "s390-tdep.h".
10390 Remove private definition of offsetof.
10391 (s390_register_u_addr): Remove.
10392 (regmap_gregset, regmap_fpregset): Define.
10393 (supply_gregset, fill_gregset): Reimplement.
10394 (supply_fpregset, fill_fpregset): Likewise.
10395 (s390_inferior_tid): New function.
10396 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10397 (fetch_inferior_registers, store_inferior_registers): Likewise.
10398 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10399 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10400 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10401 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10402 (struct gdbarch_tdep): Define.
10403 (struct s390_register_info): Define.
10404 (s390_register_info): New variable.
10405 (s390_register_name): Reimplement.
10406 (s390_register_type): New function.
10407 (s390_register_raw_size, s390x_register_raw_size): Remove.
10408 (s390_cannot_fetch_register): Remove.
10409 (s390_register_byte): Remove.
10410 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10411 (s390_dwarf_regmap): New variable.
10412 (s390_dwarf_reg_to_regnum): New function.
10413 (s390_stab_reg_to_regnum): Remove.
10414 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10415 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10416 (s390_convert_register_p): Likewise.
10417 (s390_register_to_value, s390_value_to_register): Likewise.
10418 (s390_register_reggroup_p): Likewise.
10419 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10420 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10421 (s390_supply_regset, s390_regset_from_core_section): New functions.
10422 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10423 (S390_FPR_SIZE): Likewise.
10424 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10425 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10426 (S390_NUM_GPRS): Move here from tm-s390.h.
10427 (S390_NUM_FPRS): Likewise.
10428 (s390_in_function_epilogue_p): New function.
10429 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10430 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10431 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10432 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10433 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10434 Remove calls to:
10435 set_gdbarch_deprecated_max_register_raw_size,
10436 set_gdbarch_deprecated_max_register_virtual_size,
10437 set_gdbarch_deprecated_register_byte,
10438 set_gdbarch_cannot_fetch_register,
10439 set_gdbarch_cannot_store_register,
10440 set_gdbarch_deprecated_register_size,
10441 set_gdbarch_deprecated_register_raw_size,
10442 set_gdbarch_deprecated_register_virtual_size,
10443 set_gdbarch_deprecated_register_virtual_type,
10444 set_gdbarch_deprecated_register_bytes.
10445 Add calls to:
10446 set_gdbarch_num_pseudo_regs,
10447 set_gdbarch_register_type,
10448 set_gdbarch_convert_register_p,
10449 set_gdbarch_register_to_value,
10450 set_gdbarch_value_to_register,
10451 set_gdbarch_register_reggroup_p,
10452 set_gdbarch_regset_from_core_section,
10453 set_gdbarch_pseudo_register_read,
10454 set_gdbarch_pseudo_register_write,
10455 set_gdbarch_in_function_epilogue_p.
10456 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10457 (s390_tdep_h): New variable.
10458
10459 2004-02-17 Jim Blandy <jimb@redhat.com>
10460
10461 * findvar.c (value_from_register): If the type has no length, just
10462 return an acceptable value --- don't report an internal error.
10463
10464 * stabsread.c (read_type): If we find any type numbers that are
10465 forward references, complain if the references aren't resolved by
10466 the time we're finished reading.
10467 (cleanup_undefined_types): Make error message more appropriate for
10468 a complaint.
10469
10470 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10471
10472 * Makefile.in (defs_h): Remove dependency on progress_h.
10473 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10474 progress.h.
10475 * main.c (captured_main): Delete use of START_PROGRESS and
10476 END_PROGRESS.
10477
10478 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10479
10480 * objfiles.c (terminate_minimal_symbol_table): Add back
10481 initialization of MSYMBOL_TYPE.
10482
10483 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10484
10485 Committed by Andrew Cagney.
10486 * Makefile.in (ia64_tdep_h): New macro.
10487 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10488 (ia64-tdep.o): Likewise.
10489 * ia64-tdep.h: New file.
10490 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10491 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10492 (ia64_aix_sigcontext_register_address): Likewise.
10493 (ia64_linux_getunwind_table): Delete declaration.
10494 * ia64-linux-tdep.c: Likewise.
10495
10496 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10497
10498 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10499 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10500 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10501
10502 2004-02-17 Andrew Cagney <cagney@redhat.com>
10503
10504 * symtab.c (skip_prologue_using_sal): New function.
10505 * symtab.h (skip_prologue_using_sal): Declare.
10506 * frv-tdep.c: Include "symtab.h".
10507 (skip_prologue_using_sal): Delete function.
10508 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10509 * rs6000-tdep.c (refine_prologue_limit): Mention
10510 skip_prologue_using_sal.
10511 * ia64-tdep.c (refine_prologue_limit): Ditto.
10512 * Makefile.in: Update dependencies.
10513
10514 2004-02-16 Andrew Cagney <cagney@redhat.com>
10515
10516 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10517 START_INFERIOR_TRAPS_EXPECTED.
10518 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10519 START_INFERIOR_TRAPS_EXPECTED.
10520 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10521 Delete macro.
10522 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10523 macro, moved to "nm-osf.h". Update copyright.
10524 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10525 update copyright.
10526
10527 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10528 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10529 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10530 frameless_look_for_prologue.
10531 * frame.h (legacy_frameless_look_for_prologue): Rename
10532 frameless_look_for_prologue.
10533 * gdbarch.h, gdbarch.c: Re-generate.
10534 * sh64-tdep.c (sh64_gdbarch_init): Update.
10535 * sh-tdep.c (sh_gdbarch_init): Update.
10536 * s390-tdep.c (s390_gdbarch_init): Update.
10537 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10538 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10539 * m68k-tdep.c (m68k_gdbarch_init): Update.
10540 (delta68_frame_args_address): Update.
10541 * m32r-tdep.c (m32r_gdbarch_init): Update.
10542 * hppa-tdep.c (hppa_gdbarch_init): Update.
10543 * h8300-tdep.c (h8300_gdbarch_init): Update.
10544 * frv-tdep.c (frv_gdbarch_init): Update.
10545 (frv_frameless_function_invocation): Update.
10546 * cris-tdep.c (cris_gdbarch_init): Update.
10547 (cris_frameless_function_invocation): Update.
10548 * avr-tdep.c (avr_gdbarch_init): Update.
10549 * arm-tdep.c (arm_gdbarch_init): Update.
10550 * stack.c (frame_info): Update, call predicate.
10551 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10552 * frame.c (legacy_get_prev_frame): Update, call predicate..
10553 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10554 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10555 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10556 invocation.
10557 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10558 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10559 * vax-tdep.c (vax_gdbarch_init): Ditto.
10560
10561 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10562 function.
10563
10564 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10567 initializations.
10568
10569 2004-02-16 Andrew Cagney <cagney@redhat.com>
10570
10571 * tui/tui-windata.c: Include "gdb_string.h".
10572 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10573 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10574 * Makefile.in: Update dependencies.
10575
10576 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10579 * infrun.c: Include "gdb_assert.h".
10580 (singlestep_ptid, saved_singlestep_ptid)
10581 (stepping_past_singlestep_breakpoint): New variables.
10582 (resume): Set singlestep_ptid. Check for singlestep thread
10583 hop.
10584 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10585 (handle_inferior_event): Handle singlestep thread hop.
10586
10587 2004-02-16 Andrew Cagney <cagney@redhat.com>
10588
10589 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10590 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10591 (dwarf2_frame_init_reg): Ditto.
10592
10593 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10594 suggested by Joshua Neuheisel
10595
10596 * configure.in: Always check for curses, including pdcurses.
10597 Warn, instead of error, when no curses are found. Enable TUI when
10598 curses is available.
10599 * configure: Re-generate.
10600
10601 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10602
10603 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10604 sh_sh4_register_convert_to_virtual.
10605 (sh_register_convert_to_raw): Rename from
10606 sh_sh4_register_convert_to_raw.
10607 (sh_pseudo_register_read): Accomodate above name change.
10608 (sh_pseudo_register_write): Ditto.
10609
10610 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10611
10612 * sh-tdep.c (sh_generic_register_name): Remove.
10613 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10614
10615 2004-02-15 Andrew Cagney <cagney@redhat.com>
10616
10617 * configure.in (build_warnings): Add -Wunused-function.
10618 * configure: Re-generate.
10619
10620 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10621 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10622
10623 * procfs.c (procfs_init_inferior): Assume that
10624 START_INFERIOR_TRAPS_EXPECTED is defined.
10625 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10626 * config/ns32k/tm-nbsd.h: Delete file,
10627 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10628
10629 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10630 * config/vax/tm-vax.h: Delete file.
10631
10632 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10633 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10634 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10635 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10636 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10637 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10638 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10639
10640 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10641
10642 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10643 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10644 (struct dwarf2_frame_ops): New.
10645 (dwarf2_frame_default_init_reg): New function, based on
10646 dwarf2_frame_init_reg.
10647 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10648 (dwarf2_frame_init_reg): Call architecture-specific function.
10649 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10650 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10651 instead of dwarf2_frame_data.
10652 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10653 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10654
10655 2004-02-15 Andrew Cagney <cagney@redhat.com>
10656
10657 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10658 register_gdbarch_swap.
10659 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10660 * f-lang.c (_initialize_f_language): Update, use
10661 DEPRECATED_REGISTER_GDBARCH_SWAP.
10662 * remote.c (_initialize_remote): Ditto.
10663 * regcache.c (_initialize_regcache): Ditto.
10664 * parse.c (_initialize_parse): Ditto.
10665 * infrun.c (_initialize_infrun): Ditto.
10666 * mi/mi-main.c (_initialize_mi_main): Ditto.
10667 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10668
10669 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10670 poking .cacheable directly.
10671 * symfile.c (symfile_bfd_open): Ditto.
10672
10673 * Makefile.in: Update all dependencies.
10674
10675 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10676 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10677 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10678 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10679 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10680
10681 2004-02-14 Andrew Cagney <cagney@redhat.com>
10682
10683 * arch-utils.c (legacy_convert_register_p): Check
10684 DEPRECATED_REGISTER_CONVERTIBLE_P.
10685 * findvar.c (value_of_register): Ditto.
10686
10687 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10688 * gdbarch.h, gdbarch.c: Re-generate.
10689 * arch-utils.c (deprecated_register_convertible_not): Delete.
10690 * arch-utils.h (deprecated_register_convertible_not): Delete.
10691 * mi/mi-main.c (get_register): Update. Update copyright.
10692 * infcmd.c (default_print_registers_info): Update.
10693
10694 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10695 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10696 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10697 * gdbarch.h, gdbarch.c: Re-generate.
10698 * frame.c (deprecated_get_next_frame_hack): Delete function.
10699 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10700 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10701 Update.
10702 * infcall.c (call_function_by_hand): Update.
10703
10704 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10705
10706 * symfile.c (init_entry_point_info, entry_point_address): Move
10707 from here...
10708 * objfiles.c (init_entry_point_info, entry_point_address):..to
10709 here.
10710 * symfile.h (init_entry_point_info, entry_point_address): Remove
10711 prototypes.
10712 * objfiles.h (init_entry_point_info, entry_point_address):Add
10713 prototypes.
10714 * cris-tdep.c: Remove include of symfile.h. Add include of
10715 objfiles.h.
10716 * infcall.c: Ditto.
10717 * mcore-tdep.c: Ditto.
10718 * mn10300-tdep.c: Ditto.
10719 * sh64-tdep.c: Ditto.
10720 * v850-tdep.c: Ditto.
10721 * arm-tdep.c: Remove include of symfile.h.
10722 * blockframe.c: Ditto.
10723 * coffread.c: Ditto.
10724 * dbxread.c: Ditto.
10725 * dwarf2read.c: Ditto.
10726 * dwarfread.c: Ditto.
10727 * frv-tdep.c: Ditto.
10728 * ia64-tdep.c: Ditto.
10729 * mdebugread.c: Ditto.
10730 * mipsread.c: Ditto.
10731 * rs6000-tdep.c: Ditto.
10732 * s390-tdep.c: Ditto.
10733 * sh-tdep.c: Ditto.
10734 * xstormy16-tdep.c: Ditto.
10735 * gdbarch.sh: Remove include of symfile.h.
10736 * gdbarch.c: Regenerate.
10737 * solib-irix.c (enable_break): Use entry_point_address().
10738 Add comment about include file.
10739 * xcoffread.c: Add comment about include file.
10740 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10741 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10742 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10743 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10744 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10745
10746 2004-02-13 Andrew Cagney <cagney@redhat.com>
10747
10748 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10749 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10750 copyright.
10751 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10752
10753 2004-02-12 Fred Fish <fnf@redhat.com>
10754
10755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10756 set_gdbarch_store_return_value.
10757
10758 2004-02-12 Andrew Cagney <cagney@redhat.com>
10759
10760 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10761 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10762 (interrupt_query): Ditto.
10763 (ofunc): Delete unused variable.
10764 * cris-tdep.c (cris_abi): Delete unused function.
10765 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10766 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10767 (cris_get_asr_quick_shift_steps): Ditto.
10768 (cris_skip_prologue_frameless_p): Ditto.
10769 * arm-tdep.c (arm_push_return_address): Delete unused function.
10770 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10771 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10772 * s390-tdep.c (s390_function_start): Delete unused function.
10773
10774 2004-02-12 Andrew Cagney <cagney@redhat.com>
10775
10776 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10777 gdbarch.h, gdbarch.c: Re-generate.
10778 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10779 to generic_prologue_frameless_p.
10780 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10781 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10782
10783 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * mips-linux-tdep.c: Include "frame.h".
10786 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10787 (mips_linux_skip_resolver): New functions.
10788 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10789 and set_gdbarch_in_solib_call_trampoline.
10790 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10791 to after set_gdbarch_in_solib_return_trampoline. Only set the
10792 solib hooks to mips16 functions if the OS ABI is unknown.
10793 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10794 including "config/tm-linux.h".
10795 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10796 * Makefile.in (mips-linux-tdep.o): Update.
10797
10798 2004-02-11 David Carlton <carlton@kealia.com>
10799
10800 * linespec.c (decode_compound): Only look for a class symbol when
10801 considering all but the rightmost component.
10802
10803 2004-02-11 Andrew Cagney <cagney@redhat.com>
10804
10805 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10806 abi code are are separatly grouped.
10807
10808 2004-02-11 Andrew Cagney <cagney@redhat.com>
10809
10810 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10811 * gdbarch.h, gdbarch.c: Re-generate.
10812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10813 * v850-tdep.c (v850_gdbarch_init): Update.
10814 * sh64-tdep.c (sh64_gdbarch_init): Update.
10815 * sh-tdep.c (sh_gdbarch_init): Update.
10816 * s390-tdep.c (s390_gdbarch_init): Update.
10817 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10818 * mips-tdep.c (mips_gdbarch_init): Update.
10819 * mcore-tdep.c (mcore_gdbarch_init): Update.
10820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10821 * m32r-tdep.c (m32r_gdbarch_init): Update.
10822 * ia64-tdep.c (ia64_gdbarch_init): Update.
10823 * hppa-tdep.c (hppa_gdbarch_init): Update.
10824 * h8300-tdep.c (h8300_gdbarch_init): Update.
10825 * frv-tdep.c (frv_gdbarch_init): Update.
10826 * d10v-tdep.c (d10v_gdbarch_init): Update.
10827 * cris-tdep.c (cris_gdbarch_init): Update.
10828 * avr-tdep.c (avr_gdbarch_init): Update.
10829 * arm-tdep.c (arm_gdbarch_init): Update.
10830 * alpha-tdep.c (alpha_gdbarch_init): Update.
10831
10832 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10833
10834 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10835 comma.
10836 (sh_sh4al_dsp_register_name): Ditto.
10837
10838 2004-02-10 Andrew Cagney <cagney@redhat.com>
10839
10840 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10841 (mips_init_frame_pc_first): Delete function.
10842 (mips_frame_saved_pc): Delete function.
10843 (mips_frame_chain): Delete function.
10844 (mips_init_extra_frame_info): Delete function.
10845 (mips_xfer_register): Delete unused variable "reg".
10846 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10847 (mips_n32n64_return_value): Delete unused variable "reg".
10848 (mips_n32n64_return_value): Delete unused variable "pos".
10849 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10850 (mips_o32_return_value): Delete unused variable "pos".
10851 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10852 (mips_print_fp_register): Delete unused variable "namelen"
10853 (mips_print_fp_register): Delete unused variable "flt2"
10854 (get_frame_pointer): Delete function.
10855 (cached_proc_desc): Delete static variable.
10856 (mips_pop_frame): Delete function.
10857 (mips_find_saved_regs): Delete function.
10858 (mips_get_saved_register): Delete function.
10859 (mips_saved_pc_after_call): Delete function.
10860 (SIGFRAME_BASE): Delete macro.
10861 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10862 (SIGFRAME_PC_OFF): Delete macro.
10863 (SIGFRAME_REGSAVE_OFF): Delete macro.
10864 (mips_dump_tdep): Do not print deleted macro definitions.
10865
10866 2004-02-10 Andrew Cagney <cagney@redhat.com>
10867
10868 * Makefile.in (SFILES): Remove explictly listed tui files.
10869 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10870
10871 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10872
10873 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10874 to use paddr functions to format ia64 addresses and long values.
10875 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10876 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10877 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10878 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10879 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10880
10881 2004-02-10 Andrew Cagney <cagney@redhat.com>
10882
10883 * defs.h: Do not include "tui.h".
10884 * gdb_curses.h: New file.
10885 * tui/tui-hooks.h: New file.
10886 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10887 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10888 (tui_initialize_io): Delete declaration.
10889 (tui_initialize_readline: Delete redundant declaration.
10890 (struct tui_point): Delete definition.
10891 * tui/tui-data.h (struct tui_point): Define.
10892 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10893 * utils.c: Include "tui/tui.h".
10894 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10895 * printcmd.c [TUI]: Include "tui/tui.h".
10896 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10897 * tui/tui-command.c: Include "gdb_curses.h".
10898 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10899 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10900 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10901 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10902 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10903 * Makefile.in: Update all dependencies.
10904 (tui_hooks_h, gdb_curses_h): Define.
10905 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10906
10907 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10908
10909 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10910 auxf2. Add comments about some other rarely used fields.
10911
10912 2004-02-10 Andrew Cagney <cagney@redhat.com>
10913
10914 * Makefile.in (init.c): Fix script removing duplicates. Problem
10915 reported by Peter Schauer.
10916
10917 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10918
10919 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10920 obstack_specify_allocation.
10921 * objfiles.c (allocate_objfile): Ditto.
10922 * solib-sunos.c (solib_add_common_symbols)
10923 (allocate_rt_common_objfile): Ditto.
10924 * symfile.c (reread_symbols): Ditto.
10925 * gdb_obstack.h: Add comment.
10926
10927 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10928
10929 * linespec.c (decode_line_1, locate_first_half)
10930 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10931 commented out code.
10932
10933 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10934
10935 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10936 obstack_free.
10937
10938 2004-02-09 Andrew Cagney <cagney@redhat.com>
10939
10940 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10941 fails, try find_pc_section. Fix PR c++/1267.
10942 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10943 instead of find_pc_mapped_section.
10944 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10945 not default to the section containing PC. Fix PR symtab/1519.
10946
10947 2004-02-09 Andrew Cagney <cagney@redhat.com>
10948
10949 * Makefile.in (mips-tdep.o): Update dependencies.
10950 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10951 "trad-frame.h".
10952 (mips_unwind_pc): Return the pseudo PC register.
10953 (mips_unwind_dummy_id): New function.
10954 (mips16_fetch_instruction): New function.
10955 (mips32_fetch_instruction): New function.
10956 (struct mips_frame_cache): Define.
10957 (mips_mdebug_frame_cache): New function.
10958 (mips_mdebug_frame_this_id): New function.
10959 (mips_mdebug_frame_prev_register): New function.
10960 (mips_mdebug_frame_unwind): Define.
10961 (mips_mdebug_frame_sniffer): New function.
10962 (mips_mdebug_frame_base_address): New function.
10963 (mips_mdebug_frame_base): Define.
10964 (mips_mdebug_frame_base_sniffer): New function.
10965 (mips_gdbarch_init): Append unwind and base sniffers. Set
10966 unwind_dummy_id.
10967
10968 2004-02-08 Andrew Cagney <cagney@redhat.com>
10969
10970 * frame.c: Print both the register number and name.
10971
10972 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10973 and a sed into a single sed. Make .c and .o patterns more robust.
10974 (OBS): Delete.
10975 (INIT_FILES): Replace OBS with COMMON_OBS.
10976 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10977
10978 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10979
10980 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10981 the PT_WCOOKIE request.
10982
10983 2004-02-08 Andrew Cagney <cagney@redhat.com>
10984
10985 * mips-tdep.c (mips_unwind_pc): New function.
10986 (mips_gdbarch_init): Set mips_unwind_pc.
10987
10988 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10989 (get_frame_id): Allow the UNKNOWN_FRAME.
10990 (frame_register_unwind, get_frame_type): Ditto.
10991
10992 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10993 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10994 unwind_dummy_id indicates a legacy frame.
10995
10996 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10997 * configure: Re-generate.
10998
10999 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11000 methods.
11001
11002 2004-02-08 Andrew Cagney <cagney@redhat.com>
11003
11004 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11005 makefile macro.
11006 * configure: Re-generate.
11007 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11008 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11009 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11010 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11011 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11012 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11013 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11014 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11015 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11016 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11017
11018 2004-02-07 Andrew Cagney <cagney@redhat.com>
11019
11020 * Makefile.in: Update all dependencies.
11021
11022 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11023 * configure: Re-generate.
11024 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11025 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11026 (COMMON_OBS): Add "main.o" and "annotate.o".
11027 (ANNOTATE_OBS): Delete.
11028 (OBS): Remove ANNOTATE_OBS.
11029 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11030 CONFIG_INITS.
11031 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11032 against CONFIG_OBS and "main.o".
11033 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11034 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11035
11036 * tui/tui-command.c: Include "gdb_string.h", delete register
11037 attribute, use ISO-C function signatures.
11038 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11039 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11040 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11041 * tui/tui.c: Ditto.
11042
11043 * tui/tui-command.c: Change variable and function names to lower
11044 case.
11045 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11046 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11047 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11048 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11049 * tui/tui-winsource.c, tui/tui.c: Ditto.
11050
11051 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11052
11053 * buildsym.c (free_pending_blocks, finish_block)
11054 (record_pending_block, make_blockvector, end_symtab): Replace
11055 symbol_obstack with objfile_obstack.
11056 * coffread.c (process_coff_symbol, coff_read_struct_type)
11057 (coff_read_enum_type): Ditto.
11058 * cp-namespace.c (initialize_namespace_symtab)
11059 (check_one_possible_namespace_symbol): Ditto.
11060 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11061 (dwarf2_symbol_mark_computed): Ditto.
11062 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11063 * elfread.c (elf_symtab_read): Ditto.
11064 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11065 (hpread_read_enum_type, hpread_read_function_type)
11066 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11067 Ditto.
11068 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11069 (java_link_class_type): Ditto.
11070 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11071 (new_symbol): Ditto.
11072 * minsyms.c (install_minimal_symbols): Ditto.
11073 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11074 (terminate_minimal_symbol_table): Replace symbol_obstack with
11075 objfile_obstack.
11076 (free_objfile): Remove freeing of symbol_obstack.
11077 * objfiles.h: Remove symbol_obstack field.
11078 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11079 objfile_obstack.
11080 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11081 symbol_obstack.
11082 (solib_add_common_symbols): Replace symbol_obstack with
11083 objfile_obstack.
11084 * somsolib.c (som_solib_add): Ditto.
11085 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11086 (common_block_start, common_block_end): Ditto.
11087 * symfile.c (reread_symbols): Remove freeing and init of
11088 symbol_obstack.
11089 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11090 * symfile.h: Update comment.
11091 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11092 stats printing.
11093 * symtab.c (symbol_set_names): Replace symbol_obstack with
11094 objfile_obstack.
11095 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11096 Update comments.
11097 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11098 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11099 objfile_obstack.
11100
11101 2004-02-07 Andrew Cagney <cagney@redhat.com>
11102
11103 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11104 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11105 fields and variables.
11106 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11107 (m_beInvisible): Delete macro.
11108 * tui/tui-data.h: Fix case case fields and variables.
11109 (m_genWinPtrIsNull): Delete macro.
11110 (tui_win_list): Rename winList.
11111 (TUI_SRC_WIN): Rename srcWin.
11112 (TUI_DISASM_WIN): Rename disassemWin.
11113 (TUI_DATA_WIN): Rename dataWin.
11114 (TUI_CMD_WIN): Rename cmdWin.
11115 (m_genWinPtrNotNull): Delete macro.
11116 (m_winPtrIsNull): Delete macro.
11117 (m_winPtrNotNull): Delete macro.
11118 (tui_win_is_source_type): Replace m_winIsSourceType
11119 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11120 (tui_win_has_locator): Replace m_hasLocator.
11121 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11122 m_setWinHighlightOff.
11123 * tui/tui-data.c: Update references.
11124 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11125 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11126 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11127 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11128 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11129 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11130 * tui/tui-winsource.c, tui/tui.c: Ditto.
11131
11132 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11133
11134 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11135 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11136 StackGhost.
11137
11138 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11139 variable `i6' to `i7'.
11140 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11141
11142 2004-02-07 Andrew Cagney <cagney@redhat.com>
11143
11144 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11145 (TuiPoint, TuiPointPtr): Ditto.
11146 (TuiStatus, TuiStatusPtr): Ditto.
11147 (TuiWinType, TuiWinTypePtr): Ditto.
11148 (struct tui_point): Rename _TuiPoint.
11149 (tui_get_low_disassembly_address): Rename
11150 tuiGetLowDisassemblyAddress.
11151 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11152 (tuiFree): Delete declaration.
11153 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11154 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11155 * tui/tui.c (tuiFree): Delete function.
11156 * cli/cli-cmds.c (disassemble_command): Update references.
11157 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11158 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11159 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11160 * tui/tui-winsource.c: Ditto.
11161
11162 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11163
11164 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11165 coffstab_build_psymtabs, elfstab_build_psymtabs)
11166 (stabsect_build_psymtabs): Replace psymbol_obstack with
11167 objfile_obstack.
11168 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11169 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11170 Ditto.
11171 * dwarfread.c (scan_compilation_units): Ditto.
11172 * elfread.c (elfstab_offset_sections): Ditto.
11173 * hppa-tdep.c (read_unwind_info): Ditto.
11174 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11175 (hpread_end_psymtab): Ditto.
11176 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11177 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11178 Ditto.
11179 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11180 * objfiles.c (add_to_objfile_sections)
11181 (build_objfile_section_table): Ditto.
11182 (allocate_objfile): Remove init of psymbol_obstack.
11183 (free_objfile): Remove freeing of psymbol_obstack.
11184 * objfiles.h (struct objfile): Remove field
11185 psymbol_obstack. Update comments.
11186 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11187 psymbol_obstack with objfile_obstack.
11188 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11189 psymbol_obstack.
11190 * somread.c (som_symfile_offsets, init_import_symbols)
11191 (init_export_symbols): Replace psymbol_obstack with
11192 objfile_obstack.
11193 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11194 * symfile.c (default_symfile_offsets, syms_from_objfile)
11195 (reread_symbols): Remove freeing and init of psymbol_obstack.
11196 (cashier_psymtab): Update comment.
11197 * symmisc.c (print_objfile_statistics): Don't report stats for
11198 psymbol obstack.
11199 * symtab.h (struct general_symbol_info, struct partial_symtab):
11200 Update comments.
11201 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11202 (xcoff_symfile_offsets): Replace psymbol_obstack with
11203 objfile_obstack.
11204
11205 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11206
11207 * objfiles.h (struct objfile): Add objfile_obstack field.
11208 Remove type_obstack field.
11209
11210 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11211 read_structure_scope read_enumeration, new_symbol): Replace
11212 type_obstack with objfile_obstack.
11213 * dwarfread.c (struct_type, enum_type): Ditto.
11214 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11215 (lookup_fundamental_type): Ditto.
11216 * gdbtypes.h (TYPE_ALLOC): Ditto.
11217 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11218 (hpread_read_doc_function_type, hpread_read_struct_type)
11219 (fix_static_member_physnames, hpread_read_array_type)
11220 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11221 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11222 (java_link_class_type): Ditto.
11223 * mdebugread.c (parse_type): Ditto.
11224 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11225 * solib-sunos.c (solib_add_common_symbols): Ditto.
11226 * stabsread.c (define_symbol, read_type, read_member_functions,
11227 read_cpp_abbrev, read_one_struct_field): Ditto.
11228 * symfile.c (reread_symbols): Ditto.
11229 * symmisc.c (print_objfile_statistics): Ditto.
11230
11231 2004-02-07 Andrew Cagney <cagney@redhat.com>
11232
11233 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11234 (tui_exec_info_content): Rename TuiExecInfoContent.
11235 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11236 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11237 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11238 (TuiList, TuiListPtr): Ditto.
11239 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11240 (TuiDataType, TuiDataTypePtr): Ditto.
11241 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11242 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11243 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11244 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11245 (TuiDataElement, TuiDataElementPtr): Ditto.
11246 (TuiWinElement, TuiWinElementPtr): Ditto.
11247 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11248 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11249 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11250 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11251 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11252 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11253 * tui/tui-command.c, tui/tui-data.c: Update references.
11254 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11255 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11256 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11257 * tui/tui-winsource.c, tui/tui.c: Ditto.
11258
11259 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11260
11261 * dwarf2-frame.h: Update copyright.
11262 (enum dwarf2_frame_reg_rule): New.
11263 (struct dwarf2_frame_state_reg): New.
11264 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11265 * dwarf2-frame.c: Update copyright.
11266 (enum dwarf2_reg_rule): Remove.
11267 (struct dwarf2_frame_state): Remove defenition of `struct
11268 dwarf2_frame_state_reg'.
11269 (read_reg): Call get_frame_arch to get the architecture instead of
11270 using CURRENT_GDBARCH.
11271 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11272 DWARF2_FRAME_.
11273 (dwarf2_frame_init_reg): New function.
11274 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11275 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11276 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11277 tags with DWARF2_FRAME_.
11278 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11279 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11280 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11281
11282 2004-02-06 Andrew Cagney <cagney@redhat.com>
11283
11284 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11285 (enum tui_data_type): Rename _TuiDataType.
11286 (struct tui_layout_def): Rename _TuiLayoutDef.
11287 (struct tui_source_element): Rename _TuiSourceElement.
11288 (struct tui_data_element): Rename _TuiDataElement.
11289 (struct tui_command_element): Rename _TuiCommandElement.
11290 (struct tui_locator_element): Rename _TuiLocatorElement.
11291 (union tui_which_element): Define.
11292 (struct tui_win_element): Rename _TuiWinElement.
11293 (struct tui_data_info): Rename _TuiDataInfo.
11294 (struct tui_source_info): Rename _TuiSourceInfo.
11295 (struct tui_command_info): Rename _TuiCommandInfo.
11296 (tui_initialize_static_data): Rename initializeStaticData.
11297 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11298 (tui_alloc_win_info): Rename allocWinInfo.
11299 (tui_init_generic_part): Rename initGenericPart.
11300 (tui_init_win_info): Rename initWinInfo.
11301 (tui_alloc_content): Rename allocContent.
11302 (tui_add_content_elements): Rename addContentElements.
11303 (tui_init_content_element): Rename initContentElement.
11304 (tui_free_window): Rename freeWindow.
11305 (tui_free_win_content): Rename freeWinContent.
11306 (tui_free_data_content): Rename freeDataContent.
11307 (tui_free_all_source_wins_content): Rename
11308 freeAllSourceWinsContent.
11309 (tui_del_window): Rename tuiDelWindow.
11310 (tui_del_data_windows): Rename tuiDelDataWindows.
11311 (tui_partial_win_by_name): Rename partialWinByName.
11312 (tui_win_name): Rename winName.
11313 (tui_current_layout): Rename currentLayout.
11314 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11315 (tui_term_height): Rename termHeight.
11316 (tui_set_term_height_to): Rename setTermHeightTo.
11317 (tui_term_width): Rename termWidth.
11318 (tui_set_term_width_to): Rename setTermWidthTo.
11319 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11320 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11321 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11322 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11323 (tui_source_windows): Rename sourceWindows.
11324 (tui_clear_source_windows): Rename clearSourceWindows.
11325 (tui_clear_source_windows_detail): Rename
11326 clearSourceWindowsDetail.
11327 (tui_clear_win_detail): Rename clearWinDetail.
11328 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11329 (tui_default_tab_len): Rename tuiDefaultTabLen.
11330 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11331 (tui_win_with_focus): Rename tuiWinWithFocus.
11332 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11333 (tui_layout_def): Rename tuiLayoutDef.
11334 (tui_win_resized): Rename tuiWinResized.
11335 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11336 (tui_next_win): Rename tuiNextWin.
11337 (tui_prev_win): Rename tuiPrevWin.
11338 (tui_add_to_source_windows): Rename addToSourceWindows.
11339 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11340 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11341 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11342 * tui/tui.c, tui/tui-data.c: Ditto.
11343 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11344 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11345
11346 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11347 (struct symtab): Declare.
11348 (tui_set_source_content): Rename tuiSetSourceContent.
11349 (tui_show_symtab_source): Rename tuiShowSource.
11350 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11351 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11352 * tui/tui-source.c: Update copyright. Update references.
11353 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11354 * tui/tui-stack.c: Update references.
11355
11356 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11357 (struct tui_win_info): Declare.
11358 (tui_scroll_forward): Rename tuiScrollForward.
11359 (tui_scroll_backward): Rename tuiScrollBackward.
11360 (tui_scroll_left): Rename tuiScrollLeft.
11361 (tui_scroll_right): Rename tuiScrollRight.
11362 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11363 (tui_resize_all): Rename tuiResizeAll.
11364 (tui_refresh_all_win): Rename tuiRefreshAll.
11365 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11366 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11367 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11368 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11369
11370 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11371 (tui_erase_data_content): Rename tuiEraseDataContent.
11372 (tui_display_all_data): Rename tuiDisplayAllData.
11373 (tui_check_data_values): Rename tuiCheckDataValues.
11374 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11375 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11376 (tui_first_data_element_no_in_line): Rename
11377 tuiFirstDataElementNoInLine.
11378 (tui_delete_data_content_windows): Rename
11379 tuiDeleteDataContentWindows.
11380 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11381 (tui_display_data_from): Rename tuiDisplayDataFrom.
11382 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11383 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11384 * tui/tui-win.c, tui/tui-regs.c: Update references.
11385 * tui/tui-layout.c, tui/tui.c: Update references.
11386
11387 * tui/tui-wingeneral.h: Update copyright.
11388 (m_allBeVisible): Delete macro.
11389 (m_allBeInvisible): Delete macro.
11390 (struct tui_gen_win_info): Declare.
11391 (struct tui_win_info): Declare.
11392 (tui_unhighlight_win): Rename unhighlightWin.
11393 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11394 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11395 (tui_make_window): Rename makeWindow.
11396 (tui_copy_win): Rename copyWin.
11397 (tui_box_win): Rename boxWin.
11398 (tui_highlight_win): Rename highlightWin.
11399 (tui_check_and_display_highlight_if_needed): Rename
11400 checkAndDisplayHighlightIfNeeded.
11401 (tui_refresh_all): Rename refreshAll.
11402 (tui_delete_win): Rename tuiDelwin.
11403 (tui_refresh_win): Rename tuiRefreshWin.
11404 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11405 (tui_make_visible, tui_make_invisible): New functions.
11406 (tui_make_all_visible, tui_make_all_invisible): New functions.
11407 (make_all_visible): Rename makeAllVisible.
11408 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11409 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11410 * tui/tui-windata.c, tui/tui-win.c: Update references.
11411 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11412 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11413
11414 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11415
11416 * proc-api.c (write_with_trace): Initialize local variable to
11417 silence compiler warning.
11418
11419 2004-02-06 Andrew Cagney <cagney@redhat.com>
11420
11421 * tui/tui-source.h: Do not include "defs.h".
11422 (struct tui_win_info): Declare.
11423 (tui_set_source_content_nil): Declare.
11424 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11425 (union tui_line_or_address): Rename _TuiLineOrAddress.
11426 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11427 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11428 (tui_update_source_window_as_is): Rename
11429 tuiUpdateSourceWindowAsIs.
11430 (tui_update_source_windows_with_addr): Rename
11431 tuiUpdateSourceWindowsWithAddr.
11432 (tui_update_source_windows_with_line): Rename
11433 tuiUpdateSourceWindowsWithLine.
11434 (tui_clear_source_content): Rename tuiClearSourceContent.
11435 (tui_erase_source_content): Rename tuiEraseSourceContent.
11436 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11437 (tui_show_source_content): Rename tuiShowSourceContent.
11438 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11439 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11440 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11441 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11442 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11443 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11444 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11445 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11446 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11447 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11448 (struct tui_win_info): Declare.
11449 * tui/tui-stack.c: Update references.
11450 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11451 * tui/tui-win.c, tui/tui-source.c: Ditto.
11452 * tui/tui.c, tui/tui-disasm.c: Ditto.
11453
11454 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11455
11456 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11457 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11458
11459 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11460
11461 * infrun.c (handle_inferior_event): Allow for breakpoint
11462 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11463 and SIGEMT. Update comments.
11464 * NEWS (Revised SPARC target): Mention support for non-executable
11465 stack.
11466
11467 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11468
11469 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11470 * inftarg.c: Update copyright year.
11471 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11472 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11473 (sparc_xfer_wcookie): New function.
11474 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11475 * Makefile.in (sparc-nat.o): Update dependencies.
11476 * config/sparc/nm-nbsd.h: Include "target.h".
11477 (NATIVE_XFER_WCOOKIE): New define.
11478 (sparc_xfer_wcookie): New prototype.
11479
11480 2004-02-04 Andrew Cagney <cagney@redhat.com>
11481
11482 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11483 SYSCALL_TRAP function.
11484 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11485
11486 2004-02-04 Andrew Cagney <cagney@redhat.com>
11487 Daniel Jacobowitz <drow@mvista.com>
11488
11489 * objfiles.h: Delete comments refering to inside_entry_func and
11490 DEPRECATED_FRAME_CHAIN_VALID.
11491 * defs.h (inside_entry_func): Update prototype..
11492 * blockframe.c (inside_entry_func): Rename to
11493 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11494 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11495
11496 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11497
11498 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11499 outside of #ifdef SOLIB_ADD region.
11500 (do_restore_lang_radix_cleanup): Ditto.
11501 (resolve_pending_breakpoint): Ditto.
11502
11503 2004-02-03 Andrew Cagney <cagney@redhat.com>
11504
11505 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11506 (process_note_abi_tag_sections): Delete unused function.
11507 (ia64_read_fp): Delete unused function.
11508 (gdbarch_extract_struct_value_address): Delete declaration.
11509
11510 2004-02-02 Andrew Cagney <cagney@redhat.com>
11511
11512 * vax-tdep.c (vax_frame_chain): Delete call to
11513 deprecated_inside_entry_file.
11514 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11515
11516 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11517
11518 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11519 column that's "empty" or "same value" when eliminating REG_RA
11520 rules.
11521
11522 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11523
11524 * NEWS: Add information about new pending breakpoint support.
11525
11526 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11527
11528 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11529 and pending fields for pending breakpoint support.
11530 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11531 (condition_command): Only parse condition if not a pending
11532 breakpoint.
11533 (print_one_breakpoint): Add support for pending breakpoints.
11534 (describe_other_breakpoints): Add checks to verify we are not
11535 dealing with pending breakpoints.
11536 (check_duplicates): Don't check pending breakpoints.
11537 (set_raw_breakpoint): Initialize pending flag.
11538 (do_restore_lang_radix_cleanup): New cleanup routine.
11539 (resolve_pending_breakpoint): New function.
11540 (re_enable_breakpoints_in_shlibs): Try and resolve any
11541 pending breakpoints via resolve_pending_breakpoint.
11542 (mention): Add pending breakpoint support.
11543 (parse_breakpoint_sals): Add new parameter to pass to
11544 decode_line_1 to indicate silent errors when files or functions
11545 are not found. Change all callers.
11546 (do_captured_parse_breakpoint): New function.
11547 (break_command_1): Change prototype to return an rc value and to
11548 take an optional pending breakpoint pointer. Support creating
11549 a pending breakpoint if a "not found" form of error occurs when
11550 parsing the breakpoint. Also support resolving an existing pending
11551 breakpoint and be silent if the resolution fails.
11552 (create_breakpoints): Change prototype to take pending breakpoint
11553 pointer. When resolving a pending breakpoint, use the new pointer
11554 to provide a conditional or commands added by the end-user.
11555 (delete_breakpoint): Add appropriate check for pending.
11556 (breakpoint_re_set_one): Ditto.
11557 (do_enable_breakpoint): Ditto.
11558
11559 2004-02-02 David Carlton <carlton@kealia.com>
11560
11561 * valops.c (enum oload_classification): New.
11562 (find_overload_match): Break implementation into separate
11563 functions; delete #if 0'd code; look for symbols within
11564 namespaces.
11565 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11566 (find_oload_champ,oload_method_static,classify_oload_match): New.
11567 * cp-support.h: Add declaration for cp_func_name; update
11568 declaration for make_symbol_overload_list.
11569 * cp-support.c (cp_func_name): New.
11570 (overload_list_add_symbol): Fix comment, use
11571 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11572 (make_symbol_overload_list): Take a function name and a namespace
11573 instead of a symbol; change implementation.
11574 (make_symbol_overload_list_using): New.
11575 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11576
11577 2004-02-02 Fred Fish <fnf@redhat.com>
11578
11579 * main.c (gdb_stdtarg): Move definition to group with other
11580 gdb_stdtarg definitions and update copyright years.
11581 * remote-sim.c (gdb_os_write_stderr): Write output to
11582 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11583 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11584 gdb_stderr stream and update copyright years.
11585
11586 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11587
11588 * Makefile.in (mips-linux-nat.o): Update dependencies.
11589 * mips-linux-nat.c: Include mips-tdep.h.
11590
11591 2004-02-01 Roland McGrath <roland@redhat.com>
11592
11593 * sol-thread.c (sol_thread_xfer_partial): New function.
11594 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11595 (init_sol_core_ops): Likewise.
11596
11597 * procfs.c (procfs_xfer_partial): New function.
11598 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11599 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11600
11601 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11602 procfs_xfer_auxv function.
11603
11604 * procfs.c (procfs_make_note_section): If we can read
11605 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11606 * linux-proc.c (linux_make_note_section): Likewise.
11607
11608 * auxv.h: New file.
11609 * auxv.c: New file.
11610 * Makefile.in (auxv_h): New variable.
11611 (COMMON_OBS): Add auxv.o here.
11612 (auxv.o): New target.
11613
11614 * corelow.c (core_xfer_partial): New function.
11615 (init_core_ops): Use it for core_ops.to_xfer_partial.
11616
11617 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11618 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11619 macro if that is defined.
11620
11621 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11622
11623 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11624 and check the specified thread for each breakpoint.
11625 * breakpoint.h (bpstat_stop_status): Update prototype.
11626 * infrun.c (handle_inferior_event): Update calls to
11627 bpstat_stop_status.
11628
11629 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11630
11631 * Makefile.in (cli-cmds.o): Add $(readline_h).
11632
11633 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11634
11635 * cli/cli-cmds.c: Include readline.h.
11636 (complete_command): Pass the start of the last word to
11637 complete_line.
11638
11639 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11642 argument, and change first argument to a CORE_ADDR.
11643 * breakpoint.h (bpstat_stop_status): Update prototype.
11644 * infrun.c (adjust_pc_after_break): Add a new comment.
11645 (handle_inferior_event): Update calls to bpstat_stop_status.
11646
11647 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * breakpoint.h: Update copyright years.
11650
11651 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11654 (bpstat_stop_status): Don't decrement PC.
11655 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11656 prototype.
11657 * infrun.c (adjust_pc_after_break): New function.
11658 (handle_inferior_event): Call it, early. Remove later references
11659 to DECR_PC_AFTER_BREAK.
11660 (normal_stop): Add commentary.
11661
11662 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11663
11664 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11665 2004-01-27 double-free fix.
11666
11667 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11668
11669 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11670 (sparc32_frame_prev_register): Handle StackGhost.
11671 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11672
11673 2004-01-29 Roland McGrath <roland@redhat.com>
11674
11675 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11676 * configure: Regenerated.
11677
11678 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11679 * Makefile.in (procfs.o): Add dep.
11680
11681 2004-01-28 Andrew Cagney <cagney@redhat.com>
11682
11683 * tui/tui-stack.h: Update copyright.
11684 (struct frame_info): Add opaque declaration.
11685 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11686 (tui_show_locator_content): Rename tuiShowLocatorContent.
11687 (tui_show_frame_info): Rename tuiShowFrameInfo.
11688 * tui/tui-stack.c: Update copyright. Update references.
11689 * tui/tui-winsource.c: Update references.
11690 * tui/tui-win.c: Update references.
11691 * tui/tui-layout.c: Update references.
11692 * tui/tui-hooks.c: Update copyright, update references.
11693 * tui/tui.c: Update copyright, update references.
11694 * tui/tui-disasm.c: Update references.
11695
11696 2004-01-28 David Carlton <carlton@kealia.com>
11697
11698 * dwarf2read.c (add_partial_structure): Use demangled name if
11699 namespace equals "".
11700
11701 2004-01-27 Jim Blandy <jimb@redhat.com>
11702
11703 Clean up misapplied patch:
11704 * dwarf2read.c (determine_prefix): Change one of the two forward
11705 declarations for 'determine_prefix_aux' to a declaration for this.
11706 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11707 argument to 'die_specification'.
11708
11709 * dwarf2read.c (read_func_scope): Re-indent comment.
11710
11711 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11712
11713 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11714 b->exp to NULL after freeing so that error during re-parsing or
11715 evaluation of expressions associated with breakpoint don't
11716 eventually lead to re-freeing of storage.
11717 Committed by Andrew Cagney.
11718
11719 2004-01-27 Andrew Cagney <cagney@redhat.com>
11720
11721 * source.c (ambiguous_line_spec): Delete undefined declaration.
11722 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11723 (m32r_set_server_address, m32r_set_download_path): Ditto.
11724 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11725
11726 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11727
11728 * dwarf2read.c: Update calls to changed and renamed functions, and
11729 references to moved variables.
11730
11731 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11732 language, language_defn, list_in_scope, and ftypes members.
11733 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11734 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11735 (baseaddr): Remove globals.
11736
11737 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11738 (set_cu_language, die_is_declaration, die_specification)
11739 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11740 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11741 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11742 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11743
11744 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11745 cu.list_in_scope. Don't initialize cu_header_offset.
11746 (add_partial_symbol): Add local baseaddr.
11747 (psymtab_to_symtab_1): Add local baseaddr. Use
11748 objfile->section_offsets for consistency. Don't initialize
11749 cu_header_offset; do initialize cu.header.offset and
11750 cu.list_in_scope.
11751 (read_file_scope, read_func_scope, read_lexical_block_scope)
11752 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11753
11754 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11755
11756 * PROBLEMS: Add gdb/1516.
11757
11758 2003-12-29 Robert Millan <robertmh@gnu.org>
11759
11760 Patch committed by Andrw Cagney.
11761 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11762 * configure.tgt: Match knetbsd*-gnu.
11763
11764 2004-01-26 Andrew Cagney <cagney@redhat.com>
11765
11766 * breakpoint.c (catch_command_1): Delete #ifdef code.
11767 (catch_fork_command_1): Delete #ifdef wrapper.
11768 (catch_exec_command_1): Ditto.
11769 (catch_load_command_1): Ditto.
11770 (catch_unload_command_1): Ditto.
11771
11772 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11773 (catch_breakpoint): Delete #if0ed function.
11774 (disable_catch_breakpoint): Ditto.
11775 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11776 (disable_catch, enable_catch, delete_catch): Ditto.
11777
11778 2004-01-26 Andrew Cagney <cagney@redhat.com>
11779
11780 * remote.c (echo_check, quit_flag): Delete variables.
11781 (cisco_kernel_mode): Delete variable.
11782 (minitelnet_return, tty_input, escape_count): Delete variables.
11783 (remote_cisco_mode): Delete variable.
11784 (remote_cisco_open, remote_cisco_close): Delete function.
11785 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11786 (init_remote_cisco_ops): Delete function.
11787 (_initialize_remote): Do not install "remote cisco" code.
11788 (read_frame): Delete cisco specific code.
11789 (remote_info_process): Delete function.
11790 (remote_wait): Delete cisco specific code.
11791 (remote_cisco_section_offsets): Delete function.
11792 (remote_cisco_objfile_relocate): Delete function.
11793 (remote_async_wait): Delete cisco specific code.
11794 (minitelnet, readtty, readsocket): Delete function.
11795
11796 2004-01-26 Andrew Cagney <cagney@redhat.com>
11797
11798 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11799 comments mentioning extract_returned_value_address.
11800 * infcmd.c (print_return_value): Update. Add comments on
11801 extract_returned_value_address.
11802 * stack.c (return_command): Add comments on
11803 extract_returned_value_address.
11804 * values.c: Update comment.
11805 * m32r-tdep.c: Update comment.
11806 * sparc-tdep.c: Update comment.
11807 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11809 * sh64-tdep.c (sh64_gdbarch_init): Update.
11810 * sh-tdep.c (sh_gdbarch_init): Update.
11811 * s390-tdep.c (s390_gdbarch_init): Update.
11812 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11813 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11814 * m68k-tdep.c (m68k_gdbarch_init): Update.
11815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11816 * m32r-tdep.c (m32r_gdbarch_init): Update.
11817 * ia64-tdep.c (ia64_gdbarch_init): Update.
11818 * h8300-tdep.c (h8300_gdbarch_init): Update.
11819 * frv-tdep.c (frv_gdbarch_init): Update.
11820 * arm-tdep.c (arm_gdbarch_init): Update.
11821 * alpha-tdep.c (alpha_gdbarch_init): Update.
11822
11823 2004-01-26 Andrew Cagney <cagney@redhat.com>
11824
11825 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11826 SYMBOL_LOCATION_FUNCS
11827 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11828 "struct symbol_ops".
11829 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11830 type to "struct symbol_ops".
11831 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11832 (struct symbol): Replace ".aux_value.loc.funcs" and
11833 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11834 (SYMBOL_OBJFILE): Delete macro.
11835 (SYMBOL_LOCATION_FUNCS): Delete macro.
11836 (SYMBOL_LOCATION_BATON): Update.
11837 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11838 intead of SYMBOL_LOCATION_FUNCS.
11839 * ax-gdb.c (gen_var_ref): Ditto.
11840 * printcmd.c (address_info): Ditto.
11841 * findvar.c (read_var_value): Ditto.
11842 (symbol_read_needs_frame): Ditto.
11843
11844 2004-01-26 Andrew Cagney <cagney@redhat.com>
11845
11846 * dwarf2read.c (read_func_scope): Document frame-base hack.
11847
11848 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11849
11850 * infcmd.c (print_return_value): Plug memory leak; delete
11851 ui_stream object. Rename argument `structure_return' to
11852 `struct_return'.
11853
11854 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11855
11856 * infcmd.c (print_return_value): Wrap long lines.
11857 (finish_command_continuation, finish_command): Remove unused
11858 variable `funcaddr'. Fix some coding-standards problems.
11859
11860 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11861 SECT_SIZE is large enough, not whether it's exactly the right size.
11862 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11863 TDEP->fpregset to zero.
11864
11865 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11866 floating-point registers for traditional NetBSD core files.
11867 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11868 TDEP->sizeof_fpregset here.
11869
11870 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11871
11872 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11873 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11874 function with code split out from
11875 sparc32nbsd_sigcontext_frame_cache.
11876 (sparc32nbsd_sigcontext_frame_cache): Use
11877 sparc32nbsd_sigcontext_saved_regs.
11878 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11879 OpenBSD.
11880 * sparcobsd-tdep.c: New file.
11881 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11882 (sparcobsd-tdep.o): New dependency.
11883 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11884 * config/sparc/obsd.mt: New file.
11885
11886 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11887 TDEP->fpregset to be initialized to enable core file register
11888 sets.
11889
11890 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11891
11892 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11893 Add opaque declarations.
11894 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11895 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11896 function with code split out from
11897 sparc64nbsd_sigcontext_frame_cache.
11898 (sparc64nbsd_sigcontext_frame_cache): Use
11899 sparc64nbsd_sigcontext_saved_regs.
11900 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11901 OpenBSD.
11902 * sparc64obsd-tdep.c: New file.
11903 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11904 (sparc64obsd-tdep.o): New dependency.
11905 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11906 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11907 * config/sparc/obsd64.mt: New file.
11908
11909 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11910 read the instruction at PC.
11911
11912 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11913 value of GDB_OSABI_DEFAULT.
11914 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11915 instead of GDB_OSABI_NETBSD_AOUT.
11916
11917 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11918
11919 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11920 copyright.
11921
11922 2004-01-23 Andrew Cagney <cagney@redhat.com>
11923
11924 * printcmd.c (display_command): Replace tui_set_display call with
11925 tui_set_layout_for_display_command.
11926 * tui/tui.h (enum tui_win_type): Define.
11927 (tui_set_layout): Delete declaration.
11928 (tui_set_layout_for_display_command): Rename set_tui_layout.
11929 * tui/tui-data.h (enum tui_layout_type): Define.
11930 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11931 "tui.h".
11932 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11933 (tui_default_win_height): Rename tuiDefaultWinHeight.
11934 (tui_default_win_viewport_height): Rename
11935 tuiDefaultWinViewportHeight.
11936 (tui_set_layout): RenametuiSetLayout.
11937 * tui/tui-layout.c: Update references.
11938 * tui/tui.c: Update references.
11939 * tui/tui-disasm.c: Update references.
11940
11941 2004-01-23 David Carlton <carlton@kealia.com>
11942
11943 Partial workaround for PR c++/1511:
11944 * cp-namespace.c: Include frame.h.
11945 (cp_lookup_transparent_type): New
11946 (cp_lookup_transparent_type_loop): New.
11947 * cp-support.h: Declare cp_lookup_transparent_type.
11948 * symtab.c (basic_lookup_transparent_type): Renamed from
11949 lookup_transparent_type.
11950 (lookup_transparent_type): Replace old body by a call to
11951 current_language->la_lookup_transparent_type.
11952 * symtab.h: Update copyright. Declare
11953 basic_lookup_transparent_type.
11954 * language.h: Update copyright.
11955 (struct language_defn): Add la_lookup_transparent_type.
11956 * language.c: Update copyright.
11957 (unknown_language_defn): Add basic_lookup_transparent_type.
11958 (auto_language_defn): Add basic_lookup_transparent_type.
11959 (local_language_defn): Add basic_lookup_transparent_type.
11960 * ada-lang.c: Update copyright.
11961 (ada_language_defn): Add basic_lookup_transparent_type.
11962 * c-lang.c: Update copyright.
11963 (c_language_defn): Add basic_lookup_transparent_type.
11964 (cplus_language_defn): Add basic_lookup_transparent_type.
11965 (asm_language_defn): Add basic_lookup_transparent_type.
11966 (minimal_language_defn): Add basic_lookup_transparent_type.
11967 * f-lang.c: Update copyright.
11968 (f_language_defn): Add basic_lookup_transparent_type.
11969 * jv-lang.c: Update copyright.
11970 (java_language_defn): Add basic_lookup_transparent_type.
11971 * m2-lang.c: Update copyright.
11972 (m2_language_defn): Add basic_lookup_transparent_type.
11973 * objc-lang.c: Update copyright.
11974 (objc_language_defn): Add basic_lookup_transparent_type.
11975 * p-lang.c: Update copyright.
11976 (p_language_defn): Add basic_lookup_transparent_type.
11977 * scm-lang.c: Update copyright.
11978 (scm_language_defn): Add basic_lookup_transparent_type.
11979 * Makefile.in (cp-namespace.o): Depend on frame.h.
11980
11981 2004-01-23 David Carlton <carlton@kealia.com>
11982
11983 Patch for PR c++/1520:
11984 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11985 properly if we have a specification die.
11986 (determine_prefix_aux): Rename from determine_prefix.
11987 (determine_prefix): Like the old determine_prefix, but never
11988 returns NULL.
11989
11990 2004-01-23 Theodore A. Roth <troth@openavr.org>
11991
11992 * avr-tdep.c: Update copyright.
11993 (avr_iaddr_p): Delete unused function.
11994 (avr_saddr_p): Delete unused function.
11995
11996 2004-01-23 David Carlton <carlton@kealia.com>
11997
11998 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11999 Fix for PR symtab/1534.
12000
12001 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12002
12003 * NEWS (New native configurations): Mention OpenBSD/sparc and
12004 OpenBSD/sparc64.
12005 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12006 * configure.host: Likewise.
12007 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12008 handler for OpenBSD.
12009 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12010
12011 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12012
12013 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12014 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12015
12016 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12017 * cli/cli-cmds.c (shell_escape): Likewise.
12018
12019 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12020 OpenBSD .note.openbsd.ident sections.
12021
12022 2004-01-22 David Carlton <carlton@kealia.com>
12023
12024 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12025 get_scope_pc_bounds.
12026 (read_file_scope): Ditto.
12027 (get_scope_pc_bounds): New function, produced by extracting code
12028 from the above two functions, consolidating it, and adding support
12029 for DW_TAG_namespace.
12030
12031 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12032
12033 * osabi.c (MAX_NOTESZ): New define.
12034 (check_note): New function.
12035 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12036 check_note.
12037
12038 2004-01-21 Roland McGrath <roland@redhat.com>
12039
12040 * MAINTAINERS (write after approval): Add myself.
12041
12042 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12043
12044 * utils.c (init_page_info): Move declarations of `rows' and
12045 `cols' before the __GO32__-specific code. Move the closing brace
12046 outside the #ifdef __GO32__..#endif block.
12047 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12048
12049 2004-01-21 Paul Brook <paul@codesourcery.com>
12050
12051 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12052 BPSTAT_WHAT_CHECK_SHLIBS.
12053
12054 2004-01-21 Paul Brook <paul@codesourcery.com>
12055
12056 * MAINTAINERS: Add myself to write-after-approval.
12057
12058 2004-01-20 Andrew Cagney <cagney@redhat.com>
12059
12060 * ax-gdb.c (print_axs_value): Delete unused function.
12061 * jv-lang.c (java_lookup_type): Delete unused function.
12062 * cli/cli-dump.c (dump_filetype): Delete unused function.
12063 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12064 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12065 (mips_getstring): Delete unused function.
12066 (pmon_insert_breakpoint): Delete #if0ed function.
12067 (PMON_MAX_BP): Delete #if0ed MACRO.
12068 (mips_pmon_bp_info): Delete #if0ed variable.
12069 (pmon_remove_breakpoint): Delete #if0ed function.
12070 * monitor.c (monitor_write_even_block): Delete unused function.
12071 (monitor_write_memory_block): Delete #if0ed code.
12072 * dink32-rom.c (dink32_load): Delete unused function.
12073 (_initialize_dink32_rom): Delete #if0ed code.
12074 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12075
12076 * tui/tui-command.c: Update references.
12077 * tui/tui-io.c: Update references.
12078 * tui/tui-command.h: Update copyright.
12079 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12080
12081 * source.c (ambiguous_line_spec): Delete never-defined function.
12082 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12083 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12084 * cli/cli-cmds.c (validate_comname): Ditto.
12085
12086 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12087 "tui-data.h".
12088 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12089 (tui_show_disassem): Rename tuiShowDisassem.
12090 (tui_show_disassem_and_update_source): Rename
12091 tuiVerticalDisassemScroll.
12092 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12093 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12094 * tui/tui.h: Update copyright.
12095 (enum tui_status): Define.
12096 * tui/tui-data.h (enum tui_scroll_direction): Define.
12097 * tui/tui-disasm.c: Update copyright. Update references.
12098 * tui/tui-winsource.c: Update copyright. Update references.
12099 * tui/tui-win.c: Update references.
12100 * tui/tui-layout.c: Update references.
12101
12102 2004-01-20 Andrew Cagney <cagney@redhat.com>
12103
12104 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12105 sym2 to start of block.
12106
12107 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12108
12109 * MAINTAINERS: Delete mmalloc.
12110 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12111 * NEWS: Mention removal of --with-malloc.
12112 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12113 * config.in: Regenerate.
12114 * configure: Regenerate.
12115 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12116 USE_MMALLOC, MMCHECK_FORCE.
12117 * gdbinit.in: Remove mmalloc.
12118 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12119 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12120 * config/i386/go32.mh: Likewise.
12121 * config/i386/interix.mh: Likewise.
12122 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12123
12124 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12125
12126 * linespec.c (decode_variable, symtab_from_filename): Call
12127 error_silent with error message instead of throwing an exception
12128 directly.
12129 * defs.h (error_silent, error_output_message): Add prototypes.
12130 (catch_exceptions_with_msg): Ditto.
12131 * utils.c (error_silent, error_output_message): New functions.
12132 * top.c (catch_exceptions_with_msg): New function.
12133
12134 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12135
12136 * mi/mi-cmds.h (enum print_values): Add definition.
12137
12138 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12139 type and value for simple data types and just the name and type
12140 for complex ones, if required.
12141
12142 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12143 children, if required.
12144
12145 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12146
12147 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12148 unused declarations.
12149
12150 2004-01-19 Andrew Cagney <cagney@redhat.com>
12151
12152 * top.h (mapped_symbol_files): Delete declaration.
12153 * main.c (captured_main): Delete option "m" and "mapped".
12154 * objfiles.c (mapped_symbol_files): Delete variable.
12155 * symfile.c (symbol_file_command): Delete mmap code.
12156 (symbol_file_add_with_addrs_or_offsets): Ditto.
12157 (add_symbol_file_command, reread_separate_symbols): Ditto.
12158 * objfiles.h (OBJF_MAPPED): Delete.
12159 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12160 (free_objfile) [USE_MMALLOC]: Ditto.
12161 (open_existing_mapped_file): Delete function.
12162 (open_mapped_file): Delete function.
12163 (map_to_file): Delete function.
12164
12165 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12166
12167 * infrun.c (step_into_function): Account for possible breakpoint
12168 adjustment when computing ``stop_func_start''.
12169
12170 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12171
12172 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12173 the region size against the size of a pointer, not the size of
12174 a register as given by DEPRECATED_REGISTER_SIZE.
12175
12176 2004-01-19 Andrew Cagney <cagney@redhat.com>
12177
12178 * tui/tui-regs.h: Include "tui-data.h".
12179 (tuiFirstRegElementNoInLine): Delete declaration.
12180 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12181 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12182 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12183 (tui_calculate_regs_column_count): Rename
12184 tuiCalculateRegsColumnCount.
12185 (tui_check_register_values): Rename tuiCheckRegisterValues.
12186 (tui_show_registers): Rename tuiShowRegisters.
12187 (tui_display_registers_from_line): Rename
12188 tuiDisplayRegistersFromLine.
12189 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12190 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12191 (tui_first_reg_element_no_inline): Rename
12192 tuiFirstRegElementNoInLine.
12193 * tui/tui-data.h: Update copyright.
12194 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12195 * tui/tui-windata.c: Update copyright, update references.
12196 * tui/tui-regs.c: Update copyright, update references.
12197 * tui/tui-win.c: Update copyright, update references.
12198 * tui/tui-layout.c: Update copyright, update references.
12199
12200 2004-01-18 Andrew Cagney <cagney@redhat.com>
12201
12202 * tui/tui-io.c: Update copyright.
12203 (key_is_end_sequence, key_is_backspace): New functions.
12204 (key_is_command_char, key_is_start_sequence): New function.
12205 (tui_getc): Update references.
12206 * tui/tui-io.h: Update copyright.
12207 (m_tuiStartNewLine): Delete macro.
12208 (m_isBackspace, m_isDeleteChar): Delete macros.
12209 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12210 (m_isNextPage, m_isPrevPage): Delete macros.
12211 (m_isLeftArrow, m_isRightArrow): Delete macros.
12212 (m_isXdbStyleCommandChar): Delete macro.
12213 (key_is_start_sequence): Declare, replace m_isStartSequence.
12214 (key_is_end_sequence): Declare, replace m_isEndSequence.
12215 (key_is_backspace): Declare ,replace m_isBackspace.
12216 (key_is_command_char): Declare, replace m_isCommandChar.
12217 * tui/tui-command.c: Update copyright.
12218 (tuiDispatchCtrlChar): Update references.
12219
12220 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12221 tuiSourceWin.h.
12222
12223 * tui/tui-command.c: Rename tui/tuiCommand.c.
12224 * tui/tui-command.h: Rename tui/tuiCommand.h.
12225 * tui/tui-data.c: Rename tui/tuiData.c.
12226 * tui/tui-data.h: Rename tui/tuiData.h.
12227 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12228 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12229 * tui/tui-io.c: Rename tui/tuiIO.c.
12230 * tui/tui-io.h: Rename tui/tuiIO.h.
12231 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12232 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12233 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12234 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12235 * tui/tui-source.c: Rename tui/tuiSource.c.
12236 * tui/tui-source.h: Rename tui/tuiSource.h.
12237 * tui/tui-stack.c: Rename tui/tuiStack.c.
12238 * tui/tui-stack.h: Rename tui/tuiStack.h.
12239 * tui/tui-win.c: Rename tui/tuiWin.c.
12240 * tui/tui-win.h: Rename tui/tuiWin.h.
12241 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12242 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12243 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12244 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12245 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12246 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12247 * tui/tui-file.c: Update includes.
12248 * tui/tui-hooks.c: Update includes.
12249 * tui/tui-interp.c: Update includes.
12250 * tui/tui.c: Update includes.
12251 * Makefile.in: Update all tui/ dependencies.
12252 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12253
12254 * Makefile.in: Update copyright. Update dependencies.
12255
12256 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12257 problem.
12258
12259 2004-01-18 Andrew Cagney <cagney@redhat.com>
12260
12261 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12262 instead of register_gdbarch_init.
12263
12264 * remote-sds.c (tohex): Delete unused function. Update copyright.
12265 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12266 * v850-tdep.c (v850_register_virtual_size): Ditto.
12267 * target.c (normal_target_post_startup_inferior): Ditto.
12268 * source.c (ambiguous_line_spec): Ditto.
12269 * remote.c (adapt_remote_get_threadinfo): Ditto.
12270 * mi/mi-out.c (out_field_fmt): Ditto.
12271 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12272 (output_control_change_notification): Ditto.
12273 * m68k-tdep.c (m68k_register_byte): Ditto.
12274 (m68k_remote_breakpoint_from_pc): Ditto.
12275 * ui-out.c (init_ui_out_state): Delete unused declaration.
12276 * stabsread.c (search_value): Ditto.
12277 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12278 * maint.c (print_section_table): Ditto.
12279 * infrun.c (set_follow_fork_mode_command): Ditto.
12280
12281 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12282
12283 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12284 DW_CFA_def_cfa_exporession. Add support for
12285 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12286 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12287
12288 2004-01-18 Andrew Cagney <cagney@redhat.com>
12289
12290 * ocd.c: Update copyright.
12291 (bdm_read_register_command): Delete unused function.
12292 (_initialize_remote_ocd): Delete commented out reference.
12293 (get_quoted_char, reset_packet): Delete #if0ed function.
12294 (output_packet, put_quoted_char): Delete #if0ed function.
12295 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12296 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12297 (BDM_BREAKPOINT): Delete #if0ed macro.
12298 (remote_timeout): Delete #if0ed variable.
12299
12300 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12301
12302 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12303 (core-sol2.o): Remove dependency.
12304 * core-sol2.c: Remove file.
12305
12306 2004-01-17 Andrew Cagney <cagney@redhat.com>
12307
12308 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12309 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12310 enums.
12311
12312 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12313
12314 * remote.c: Update copyright years.
12315
12316 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12319
12320 2004-01-17 Andrew Cagney <cagney@redhat.com>
12321
12322 * mdebugread.c: Update copyright.
12323 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12324 (parse_type, parse_procedure): Ditto.
12325 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12326
12327 * cris-tdep.c (cris_store_struct_return): Put back accidently
12328 deleted function.
12329
12330 * gdbarch.sh: Update copyright year.
12331 * gdbarch.h, gdbarch.c: Re-generate.
12332
12333 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12334
12335 Suggested by George Anzinger.
12336 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12337 correct stack offset. Include unknown opcode numbers in the error
12338 message.
12339
12340 2004-01-17 Andrew Cagney <cagney@redhat.com>
12341
12342 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12343 extract_struct_value_address, i386 does not set it.
12344 * sparc64-tdep.c (sparc64_init_abi): Do not set
12345 extract_struct_value_address, never called.
12346 (sparc64_extract_struct_value_address): Delete function.
12347 * m68hc11-tdep.c: Update copyright.
12348 (m68hc11_gdbarch_init): Delete redundant assignment of
12349 extract_struct_value_address.
12350 * i386-tdep.c: Update copyright.
12351 (i386_gdbarch_init): Do not set extract_struct_value_address,
12352 never called.
12353 (i386_extract_struct_value_address): Delete function.
12354 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12355 extract_struct_value_address, never called.
12356 (sparc32_extract_struct_value_address): #if 0 function. Add
12357 comments explaining its future.
12358
12359 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12360
12361 * arm-tdep.c (arm_write_pc): New function.
12362 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12363
12364 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12365
12366 * breakpoint.c (must_shift_inst_regs): Delete.
12367 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12368 and SHIFT_INST_REGS.
12369 * infcmd.c (step_1, step_1_continuation): Delete references to
12370 SHIFT_INST_REGS.
12371 * infrun.c (keep_going): Likewise.
12372 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12373 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12374
12375 2004-01-17 Andrew Cagney <cagney@redhat.com>
12376
12377 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12378 * gdbarch.h, gdbarch.c: Re-generate.
12379 * infcmd.c (print_return_value): Delete reference to
12380 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12381
12382 * cris-tdep.c (cris_gdbarch_init): Do not set
12383 deprecated_extract_struct_value_address.
12384
12385 * xstormy16-tdep.c: Update copyright.
12386 (xstormy16_extract_struct_value_address): Update to current
12387 extract struct value address interface.
12388 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12389 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12390 current extract struct value address interface.
12391 (sh64_gdbarch_init): Set extract_struct_value_address.
12392
12393 * cris-tdep.c: Update copyright.
12394 (cris_extract_struct_value_address): Delete function.
12395 (struct_return_address): Delete variable.
12396 (cris_store_struct_return): Do not set struct_return_address.
12397
12398 * mcore-tdep.c: Update copyright.
12399 (mcore_extract_struct_value_address): Delete function. Update
12400 comments.
12401 (mcore_gdbarch_init): Update.
12402 * mn10300-tdep.c: Update copyright.
12403 (mn10300_extract_struct_value_address): Delete function.
12404 (mn10300_gdbarch_init): Update.
12405 * v850-tdep.c: Update copyright.
12406 (v850_extract_struct_value_address): Delete.
12407 (v850_gdbarch_init): Update.
12408 * ns32k-tdep.c: Update copyright.
12409 (ns32k_extract_struct_value_address): Delete.
12410 (ns32k_gdbarch_init): Update.
12411 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12412 (hppa_gdbarch_init): Update.
12413 * vax-tdep.c: Update copyright.
12414 (vax_extract_struct_value_address): Delete.
12415 (vax_gdbarch_init): Update.
12416
12417 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12418 * gdbarch.h, gdbarch.c: Re-generate.
12419 * procfs.c (procfs_fetch_registers): Delete reference to
12420 DEPRECATED_NPC_REGNUM.
12421 (procfs_store_registers): Ditto.
12422 * regcache.c (generic_target_write_pc): Simplify.
12423 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12424
12425 * core-sol2.c (fetch_core_registers): Replace
12426 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12427
12428 * hppa-tdep.c: Update copyright year.
12429 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12430 NPC_REGNUM.
12431 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12432
12433 * mips-tdep.c (mips_write_pc): New function.
12434 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12435 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12436 (mips_find_saved_regs, mips_software_single_step: Ditto.
12437 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12438 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12439
12440 2004-01-17 Andrew Cagney <cagney@redhat.com>
12441
12442 * mips-tdep.c: Re-indent. Group functions by ABI.
12443
12444 2004-01-17 Andrew Cagney <cagney@redhat.com>
12445
12446 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12447 * gdbarch.c: Re-generate.
12448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12449 DECR_PC_AFTER_BREAK to zero.
12450 * vax-tdep.c (vax_gdbarch_init): Ditto.
12451 * v850-tdep.c (v850_gdbarch_init): Ditto.
12452 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12453 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12454 * sh-tdep.c (sh_gdbarch_init): Ditto.
12455 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12456 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12457 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12458 * mips-tdep.c (mips_gdbarch_init): Ditto.
12459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12461 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12463 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12464 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12466 * frv-tdep.c (frv_gdbarch_init): Ditto.
12467 * cris-tdep.c (cris_gdbarch_init): Ditto.
12468 * avr-tdep.c (avr_gdbarch_init): Ditto.
12469 * arm-tdep.c (arm_gdbarch_init): Ditto.
12470 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12471
12472 2004-01-17 J. Brobecker <brobecker@gnat.com>
12473
12474 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12475 Delete, no longer used.
12476 (read_subrange_type): New function, mostly extracted from
12477 read_array_type().
12478 (read_array_type): Replace extracted code by call to
12479 read_subrange_type().
12480 (dwarf2_get_attr_constant_value): New function.
12481 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12482 (add_partial_symbol): Likewise.
12483 (process_die): Likewise.
12484 (new_symbol): Likewise.
12485 (read_type_die): Likewise.
12486
12487 2004-01-16 Andrew Cagney <cagney@redhat.com>
12488
12489 * symfile.c: Update copyright year.
12490 (compare_symbols): Delete unused function.
12491 * stabsread.c: Update copyright year.
12492 (lrs_general_complaint): Delete unused function.
12493 (ref_search_value): Ditto.
12494 (get_substring): Delete declaration.
12495 * sh64-tdep.c: Update copyright year.
12496 (sh64_get_gdb_regnum): Delete unused function.
12497 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12498 Delete unused function.
12499
12500 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12501
12502 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12503 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12504
12505 2004-01-16 Andrew Cagney <cagney@redhat.com>
12506
12507 Changes from Peter Schauer.
12508 * rs6000-tdep.c: Update copyright year.
12509 (rs6000_push_dummy_call): Update the stack pointer before
12510 accessing the corresponding stack region.
12511 * rs6000-nat.c: Update copyright year.
12512 (set_host_arch): Set "info.abfd" to "exec_bfd".
12513
12514 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12515
12516 * blockframe.c: Update copyright year.
12517 (inside_entry_func): Don't treat a zero PC specially.
12518
12519 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12520
12521 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12522 variable.
12523 (gcore_create_callback): Ditto. Skip any memory segment that has
12524 no permissions set.
12525
12526 2004-01-14 David Carlton <carlton@kealia.com>
12527
12528 Change symbols for C++ nested types to contain the fully qualified
12529 name, if possible. (At least in the DWARF-2 case.) Partial fix
12530 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12531 c++/895.
12532 * c-exp.y (qualified_type): Handle types nested within classes.
12533 * cp-namespace.c: Update comments.
12534 (cp_set_block_scope): Delete #if 0.
12535 (cp_lookup_nested_type): Handle types nested within classes.
12536 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12537 when appropriate.
12538 (add_partial_symbol): Add the name of the enclosing namespace to
12539 types.
12540 (pdi_needs_namespace): New.
12541 (add_partial_namespace): Tweak comment.
12542 (add_partial_structure): New.
12543 (psymtab_to_symtab_1): Initialize processing_current_prefix
12544 here...
12545 (process_die): instead of here.
12546 (read_structure_scope): Try to figure out the name of the class or
12547 namespace that the structure might be defined within.
12548 (read_enumeration): Generate fully-qualified names, if possible.
12549 (read_namespace): Don't set name to NULL.
12550 (die_specification): New.
12551 (new_symbol): Generate fully-qualified names for types.
12552 (read_type_die): Determine appropriate prefix.
12553 (determine_prefix): New.
12554 (typename_concat): New.
12555 (class_name): New.
12556 * valops.c (value_aggregate_elt): Pass NOSIDE to
12557 value_struct_elt_for_reference.
12558 (value_struct_elt_for_reference): Make static, add NOSIDE
12559 parameter, call value_maybe_namespace_elt as a last resort.
12560 (value_namespace_elt): Break out code into
12561 value_maybe_namespace_elt.
12562 (value_maybe_namespace_elt): New.
12563
12564 2004-01-12 Andrew Cagney <cagney@redhat.com>
12565
12566 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12567 cooked floating-point registers.
12568 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12569 and value_to_register.
12570
12571 2004-01-13 Andrew Cagney <cagney@redhat.com>
12572
12573 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12574 * gdbarch.c: Re-generate.
12575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12576 FUNCTION_START_OFFSET.
12577 * v850-tdep.c (v850_gdbarch_init): Ditto.
12578 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12579 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12580 * sh-tdep.c (sh_gdbarch_init): Ditto.
12581 * s390-tdep.c (s390_gdbarch_init): Ditto.
12582 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12583 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12584 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12585 * mips-tdep.c (mips_gdbarch_init): Ditto.
12586 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12587 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12589 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12590 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12591 * i386-tdep.c (i386_gdbarch_init): Ditto.
12592 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12594 * frv-tdep.c (frv_gdbarch_init): Ditto.
12595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12596 * cris-tdep.c (cris_gdbarch_init): Ditto.
12597 * avr-tdep.c (avr_gdbarch_init): Ditto.
12598 * arm-tdep.c (arm_gdbarch_init): Ditto.
12599 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12600
12601 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12602
12603 * infrun.c (follow_fork_mode_ask): Remove.
12604 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12605 (follow_fork): Simplify and remove internal error for
12606 follow_fork_mode_ask.
12607 (_initialize_infrun): Update "set follow-fork-mode" help text.
12608
12609 2004-01-13 Andrew Cagney <cagney@redhat.com>
12610
12611 * configure.in: Update copyright year.
12612 (build_warnings): Add -Wunused-label.
12613 * configure: Re-generate.
12614
12615 2004-01-12 Andrew Cagney <cagney@redhat.com>
12616
12617 * exec.h (exec_ops): Make "extern".
12618
12619 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12620 the function is void.
12621 (mips_pseudo_register_write): Ditto.
12622
12623 2004-01-12 Andrew Cagney <cagney@redhat.com>
12624
12625 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12626 call. Never defined.
12627 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12628 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12629 (struct sparc_gregset, struct regcache): Ditto.
12630 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12631
12632 2004-01-12 Andrew Cagney <cagney@redhat.com>
12633
12634 * mi/ChangeLog: Delete file. Renamed to ...
12635 * mi/ChangeLog-1999-2003: New file.
12636 * tui/ChangeLog: Delete file. Renamed to ...
12637 * tui/ChangeLog-1998-2003: New file.
12638
12639 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12640
12641 * sparc64nbsd-tdep.c: Include "regset.h".
12642 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12643 Remove variables.
12644 (fetch_core_registers): Remove function.
12645 (sparc64nbsd_core_fns): Remove variable.
12646 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12647 functions.
12648 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12649 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12650 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12651
12652 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12653 sparc_extract_struct_value_address.
12654 (sparc32_gdbarch_init): Set extract_struct_value_address.
12655 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12656 function.
12657 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12658 return_value_on_stack.
12659
12660 * NEWS: Mention that %cs and %ss have been added to the AMD64
12661 configurations
12662
12663 * frame.c: Update copyright year.
12664 (get_prev_frame): Improve comment.
12665
12666 * sparc64fbsd-tdep.c: Include "regset.h".
12667 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12668 Remove variables.
12669 (fetch_core_registers): Remove function.
12670 (sparc64fbsd_core_fns): Remove variable.
12671 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12672 functions.
12673 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12674 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12675 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12676
12677 * sparcnbsd-tdep.c: Include "regset.h".
12678 (fetch_core_registers): Remove function.
12679 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12680 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12681 functions.
12682 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12683 TDEP->fpregset.
12684 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12685
12686 * sparc-tdep.h (struct regset): Provide opaque declaration.
12687 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12688 fpregset and sizeof_fpregset members.
12689 * sparc-tdep.c (struct regset): Provide opaque declaration.
12690 (sparc_regset_from_core_section): New function.
12691 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12692 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12693 Set regset_from_core_section when appropriate.
12694
12695 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12696
12697 * x86-64-tdep.c (amd64_non_pod_p): New function.
12698 (amd64_classify_aggregate): Return class memory for non-POD
12699 C++ structure types.
12700
12701 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12702 argument. Use it to reserve a register if necessary.
12703 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12704 amd64_push_arguments.
12705
12706 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12707
12708 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12709 register numbers in comments.
12710 * x86-64-tdep.h: Update copyright year.
12711 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12712 Adjust for addition of %cs and %ss.
12713 * amd64fbsd-nat.c: Update copyright year.
12714 (reg_offset): Add register offsets for %cs and %ss.
12715 * amd64fbsd-tdep.c: Update copyright year.
12716 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12717 (amd64fbsd_sc_reg_offset): Likewise.
12718 * x86-64-linux-nat.c: Update copyright year.
12719 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12720 and %ss.
12721 * amd64nbsd-nat.c: Update copyright year.
12722 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12723 * amd64nbsd-tdep.c: Update copyright year.
12724 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12725 * x86-64-linux-tdep.c: Update copyright year.
12726 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12727 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12728 * regformats/reg-x86-64.dat: Add %cs and %ss.
12729
12730 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12731 variables to prevent long lines. Update comments to reflect
12732 reality.
12733
12734 2004-01-09 David Carlton <carlton@kealia.com>
12735
12736 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12737 * dwarf2read.c (read_namespace): Pull out name-generating code
12738 into namespace_name. Rename previous_namespace to previous_prefix
12739 and processing_current_namespace to processing_current_prefix..
12740 (namespace_name): New function.
12741 (add_partial_symbol): Substitute uses of pdi->name with
12742 actual_name.
12743 * cp-support.h: Rename processing_current_namespace to
12744 processing_current_prefix.
12745 Update copyright year.
12746 * cp-namespace.c: Rename processing_current_namespace to
12747 processing_current_prefix.
12748 Update copyright year.
12749
12750 2004-01-09 Andrew Cagney <cagney@redhat.com>
12751
12752 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12753
12754 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12755
12756 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12757 complaining.
12758 (process_one_symbol): Deal with N_PATCH stabs.
12759
12760 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12761
12762 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12763 ifdeffed code.
12764 Update copyright year.
12765
12766 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12767
12768 * config/pa/tm-hppa.h: Update extern declarations for
12769 hppa32_hpux_frame_saved_pc_in_sigtramp,
12770 hppa32_hpux_frame_base_before_sigtramp, and
12771 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12772
12773 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12774
12775 * config/pa/tm-hppah.h: Update copyright years.
12776
12777 2004-01-08 Andrew Cagney <cagney@redhat.com>
12778
12779 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12780 (mips_o32_reg_struct_has_addr): Delete function.
12781 (mips_gdbarch_init): Update.
12782 (mips_extract_struct_value_address): Delete function.
12783
12784 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12785
12786 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12787 reality.
12788
12789 2004-01-07 Andrew Cagney <cagney@redhat.com>
12790
12791 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12792 architecture's elf flags (when available).
12793
12794 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12795 FPU to the start, check the MIPS FPU when looking for an old
12796 architecture.
12797 (set_mipsfpu_single_command): Update the architecture.
12798 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12799
12800 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12801 (mips_mask_address_p): Add "tdep" parameter.
12802 (show_mask_address, mips_addr_bits_remove): Update.
12803 (mips_dump_tdep): Update.
12804 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12805 (MIPS_STACK_ARGSIZE): Delete macro.
12806 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12807 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12808 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12809 (mips_dump_tdep): Update.
12810 (MIPS_SAVED_REGSIZE): Delete macro.
12811 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12812 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12813 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12814 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12815 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12816 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12817 (mips_pop_frame, return_value_location): Update.
12818 (mips_n32n64_return_value, mips_dump_tdep): Update.
12819
12820 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12821 MIPS ABI.
12822
12823 * mips-tdep.c: Update copyright.
12824 (mips_gdbarch_init): Merge two code blocks handling the register
12825 name and number layout.
12826
12827 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12828
12829 * tracepoint.c (validate_actionline): Fix segv at EOF
12830
12831 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12832
12833 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12834 properly for static fields.
12835
12836 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12837 Jason Molenda <jmolenda@apple.com>
12838
12839 * disasm.c: Update copyright to include 2004.
12840 (do_mixed_source_and_assembly): For uiout asm list
12841 and tuple cleanups, initialize to null_cleanup instead of
12842 NULL and do so prior to loop. Only reset when we close off
12843 the tuple/list. Move check for whether to close off the
12844 asm tuple/list to after dump_insns call where it will be run
12845 on each loop iteration.
12846
12847 2004-01-05 Andrew Cagney <cagney@redhat.com>
12848
12849 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12850 should be a switch case and not a label.
12851 * mips-tdep.c (mips32_next_pc): Delete unused labels
12852 "greater_equal_branch" and "less_zero_branch".
12853 * jv-valprint.c (java_print_value_fields): Delete unused label
12854 "flush_it".
12855
12856 * target.c (unpush_target): Only close a target that is in the
12857 target stack.
12858
12859 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12860
12861 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12862 address from [sp + 64] instead of %o2.
12863
12864 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12865 fixes PR backtrace/1476.
12866
12867 2004-01-05 Andrew Cagney <cagney@redhat.com>
12868
12869 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12870 move to start of file.
12871 * i386-tdep.h (struct regcache): Add opaque declaration.
12872 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12873 declaration.
12874 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12875 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12876 * win32-nat.c (fake_create_process): Use ISO C style definition.
12877 * stabsread.c (define_symbol): Delete #ifndef
12878 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12879 stabs_argument_has_addr call, macro never defined.
12880
12881 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12882
12883 * op50-rom.c: Delete.
12884 * w89k-rom.c: Delete.
12885 * Makefile.in: Remove references.
12886
12887 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12888
12889 * x86-64-tdep.c: Update copyright year.
12890 (struct amd64_register_info): Rename from x86_64_register_info.
12891 (amd64_register_info): Rename from x86_64_register_info.
12892 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12893 (amd64_register_name): Rename from x86_64_register_name.
12894 (amd64_register_type): Rename from x86_64_register_type.
12895 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12896 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12897 (amd64_dwarf_reg_to_regnum): Rename from
12898 x86_64_dwarf_reg_to_regnum.
12899 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12900 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12901 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12902 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12903 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12904 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12905 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12906 (amd64_frame_cache): Rename from x86_64_frame_cache.
12907 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12908 (amd64_frame_prev_register): Rename from
12909 x86_64_frame_prev_register.
12910 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12911 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12912 (amd64_sigtramp_frame_cache): Rename from
12913 x86_64_sigtramp_frame_cache.
12914 (amd64_sigtramp_frame_prev_register): Rename from
12915 x86_64_sigtramp_frame_prev_register.
12916 (amd64_sigtramp_frame_unwind): Rename from
12917 x86_64_sigtramp_frame_unwind.
12918 (amd64_sigtramp_frame_sniffer): Rename from
12919 x86_64_sigtramp_frame_sniffer.
12920 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12921 (amd64_frame_base): Rename from x86_64_frame_base.
12922 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12923 (amd64_frame_align): Rename from x86_64_frame_align.
12924 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12925 (amd64_regset_from_core_section): Rename from
12926 x86_64_regset_from_core_section.
12927 (x86_64_init_abi): Update comments.
12928
12929 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12930
12931 * MAINTAINERS (write after approval): Add myself.
12932
12933 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12934
12935 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12936 `float' arguments.
12937
12938 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12939
12940 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12941 such that it mentions a specific version of GCC that exhibits this
12942 bug.
12943
12944 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12945
12946 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12947 structure that has a single `float' member, store it in %f1 in
12948 addition to %f0.
12949
12950 * sparc-sol2-nat.c: Add missing '\'.
12951
12952 * sparc-tdep.c (sparc32_return_value): New function.
12953 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12954 Remove functions.
12955 (sparc32_gdbarch_init): Set return_value, don't set
12956 extract_return_value, store_return_value, use_struct_convention
12957 and return_value_on_stack.
12958
12959 * sparc-sol2-nat.c: Add missing ')'.
12960
12961 2004-01-03 J. Brobecker <brobecker@gnat.com>
12962
12963 * infrun.c (handle_step_into_function): New function.
12964 (handle_inferior_event): Extract out some code into the new
12965 function above.
12966
12967 2004-01-03 J. Brobecker <brobecker@gnat.com>
12968
12969 * infrun.c (handle_inferior_event): Move the declaration of
12970 real_stop_pc inside the if blocks where it is used.
12971
12972 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12973
12974 * sparc64-tdep.c (sparc64_16_byte_align_p)
12975 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12976 Use check_typedef to get subtypes of structures and unions.
12977 (sparc64_store_return_value): Fix calculation of the appropriate
12978 offset into VALBUF when storing a structure or union.
12979 (sparc64_return_value): New function.
12980 (sparc64_use_struct_convention): Remove function.
12981 (sparc64_init_abi): Set return_value, don't set
12982 extract_return_value, store_return_value and
12983 use_struct_convention.
12984
12985 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12986
12987 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12988 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12989 gdb/config/alpha/xm-alphaosf.h,
12990 gdb/config/powerpc/tm-ppcle-eabi.h,
12991 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12992 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12993 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12994 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12995 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12996 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12997 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12998 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12999 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13000 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13001 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13002 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13003 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13004 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13005 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13006 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13007 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13008 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13009 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13010 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13011 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13012 Remove lines for .cvsignore files.
13013
13014 2004-01-03 J. Brobecker <brobecker@gnat.com>
13015
13016 * infrun.c: Back out the previous change.
13017
13018 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13019
13020 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13021 sparc-*-sunos4* to the list of REMOVED configurations.
13022
13023 * configure.tgt: Add back sparc-*-vxworks*.
13024 * remote-vxsparc.c: Remove all includes except for "defs.h",
13025 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13026 Include "sparc-tdep.h".
13027 (SPARC_R_G1): New define.
13028 (vxsparc_gregset): New variable.
13029 (ext_format_sparc): Remove extern declaration.
13030 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13031 sparc32_supply_fpregset.
13032 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13033 sparc_collect_rwindow and sparc32_collect_fpregset.
13034 * config/sparc/tm-vxworks.h: New file, based on recently removed
13035 tm-vxsparc.h.
13036 * config/sparc/vxworks.mt: New file, based on recently removed
13037 vxworks.mt.
13038
13039 2004-01-03 J. Brobecker <brobecker@gnat.com>
13040
13041 * infrun.c (handle_step_into_function): New function.
13042 (handle_inferior_event): Extract out some code into the new
13043 function above.
13044
13045 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13046
13047 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13048 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13049 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13050 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13051 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13052 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13053 (sparc_nat_h): New variable.
13054 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13055 (tm-sun4os4.h): Remove dependency.
13056 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13057 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13058 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13059 sparc-tdep.o): Update dependencies.
13060 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13061 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13062 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13063 dependencies.
13064 * configure.host: Remove existing sparc-*-lynxos*,
13065 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13066 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13067 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13068 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13069 triplets.
13070 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13071 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13072 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13073 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13074 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13075 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13076 sparc64-*-solaris2* and sparc64-*-* triplets.
13077 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13078 "symtab.h" and "objfiles.h".
13079 (BIAS): Remove define.
13080 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13081 (X_DISP19): Remove macros.
13082 (sparc_fetch_instruction): Remove function.
13083 (struct gdbarch_tdep): Remove definition.
13084 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13085 (sparc_breakpoint_from_pc): Remove function.
13086 (struct sparc64_frame_cache): Remove definition.
13087 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13088 sparc64_unwind_pc): Remove functions.
13089 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13090 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13091 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13092 (sparc64_frame_cache): Change return type to `struct
13093 sparc_frame_cache *'. Simply call sparc_frame_cache.
13094 (sparc64_frame_this_id, sparc64_frame_prev_register,
13095 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13096 instead of `struct sparc64_frame_cache.
13097 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13098 sparc_analyze_control_transfer, sparc_software_single_step,
13099 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13100 _initialize_sparc64_tdep): Remove functions.
13101 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13102 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13103 macros.
13104 (sparc64_supply_gregset, sparc64_collect_gregset,
13105 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13106 (sparc64_init_abi): New function.
13107 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13108 inclusion guard. Include "sparc-tdep.h".
13109 (BIAS): Define.
13110 (r_tstate_offset, r_fprs_offset): New defines.
13111 (enum sparc_regnum): Remove defenition.
13112 (enum sparc64_regnum): Reformat.
13113 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13114 (sparc64_init_abi, sparc64_supply_gregset,
13115 sparc64_collect_gregset, sparc64_supply_fpregset,
13116 sparc64_collect_fpregset): New prototypes.
13117 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13118 Add extern declarations.
13119 (sparc64_sol2_init_abi): New prototype.
13120 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13121 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13122 prototypes.
13123 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13124 "sparnbsd-nat.h".
13125 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13126 functions.
13127 (_initialize_sparc64fbsd_nat): Remove initialization of
13128 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13129 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13130 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13131 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13132 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13133 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13134 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13135 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13136 (sparc64fbsd_r_y_offset): Remove variables.
13137 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13138 Make static and const.
13139 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13140 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13141 functions.
13142 (sparc64fbsd_gregset): New variable.
13143 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13144 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13145 and sparc64_supply_fpregset.
13146 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13147 (sparc64fbsd_sigtramp_frame_this_id)
13148 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13149 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13150 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13151 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13152 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13153 * sparcnbsd-tdep.c: Update copyright year. Include
13154 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13155 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13156 "value.h" and "sparcnbsd-tdep.h".
13157 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13158 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13159 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13160 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13161 defines.
13162 (sparcnbsd_gregset): New variable.
13163 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13164 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13165 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13166 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13167 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13168 variables.
13169 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13170 (sparc32nbsd_sigcontext_frame_this_id)
13171 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13172 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13173 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13174 (sparcnbsd_get_longjmp_target_32,
13175 sparcnbsd_get_longjmp_target_64): Remove functions.
13176 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13177 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13178 sparcnbsd_init_elf): Remove.
13179 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13180 (sparcnbsd_elf_init_abi): New functions.
13181 (_initialize_sparcnbsd_tdep): New prototype.
13182 (_initialize_sparnbsd_tdep): Update.
13183 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13184 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13185 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13186 * config/sparc/linux.mh: Update comment.
13187 (XM_FILE, HOST_IPC): Remove variables.
13188 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13189 sparc-linux-nat.o.
13190 * config/sparc/linux.mt: Update comment.
13191 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13192 * config/sparc/nbsd.mt: Reformat.
13193 * config/sparc/nbsd64.mh: Update comment.
13194 (NATDEPFILES): Add sparc-nat.o.
13195 * config/sparc/nbsd64.mt: Update comment.
13196 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13197 (TM_FILE): Set to tm-nbsd.h.
13198 * config/sparc/nbsdelf.mh: Update comment.
13199 (NATDEPFILES): Add sparc-nat.o.
13200 (XM_FILE): Delete.
13201 * config/sparc/nbsdaout.mh: Update comment.
13202 (NATDEPFILES): Add sparc-nat.o
13203 (XM_FILE): Delete.
13204 * config/sparc/nm-linux.h: Update copyright year. Don't include
13205 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13206 inclusion.
13207 (KERNEL_U_SIZE): Remove define.
13208 (kernel_u_size): Remove prototype.
13209 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13210 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13211 "regcache.h".
13212 (CHILD_PREPARE_TO_STORE): Remove define.
13213 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13214 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13215 sparcnbsd-nat.c: Rewrite files.
13216 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13217 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13218 sparcnbsd-tdep.h: Remove files.
13219 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13220 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13221 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13222 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13223 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13224 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13225 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13226 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13227 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13228 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13229 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13230 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13231 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13232 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13233 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13234 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13235 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13236 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13237 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13238
13239 2004-01-02 Andrew Cagney <cagney@redhat.com>
13240
13241 From 2003-12-18 Kazuhiro Inaoka:
13242 * configure.host: Add m32r-linux target.
13243
13244 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13245
13246 * top.c (print_gdb_version): Update year to 2004.
13247
13248 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13249
13250 * MAINTAINERS: Add myself to the write-after-approval category.
13251
13252 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13253
13254 From Bernardo Innocenti <bernie@develer.com>:
13255 * configure.tgt: Add uClinux target.
13256
13257 2004-01-02 Andrew Cagney <cagney@redhat.com>
13258
13259 * utils.c (do_my_cleanups): Make static, add forward declaration.
13260 * defs.h (do_my_cleanups): Delete declaration.
13261
13262 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13263
13264 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13265 bfd/ChangeLog-0203.
13266
13267 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13268
13269 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13270 in <machine/reg.h>.
13271 * configure, config.in: Regenerate.
13272
13273 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13274 tui/ChangeLog-1998-2003.
13275 \f
13276 Local Variables:
13277 mode: change-log
13278 left-margin: 8
13279 fill-column: 74
13280 version-control: never
13281 End: