OSDN Git Service

2004-10-19 Andrew Cagney <cagney@gnu.org>
[pf3gnuchains/pf3gnuchains3x.git] / gdb / ChangeLog
1 2004-10-19  Andrew Cagney  <cagney@gnu.org>
2
3         GDB 6.3 branch created.
4         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
5
6 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
7
8         * dwarf2read.c (set_cu_language): Set language to Ada for
9         DW_LANG_Ada83 and DW_LANG_Ada95.
10
11 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
12
13         From Andreas Schwab <schwab@suse.de>:
14         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
15         for xmalloc and xrealloc.
16
17 2004-10-15  Andrew Cagney  <cagney@gnu.org>
18
19         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
20         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
21         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
22         Update dependencies.
23
24 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
25
26         * ada-lang.c (ada_lookup_symbol): Correct comment.
27         (ada_evaluate_subexp): Change error message for
28         OP_FUNCALL case so as not to indicate an internal error.
29         
30 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
31
32         Committed by Paul Hilfinger.
33         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
34         type sizes in XVE/XVU types, and emit a warning when that happens,
35         instead of rounding up the size of the resulting type.
36         Some minor reformatting.
37         (ada_is_aligner_type): Do not consider a type as an aligner type 
38         if there is a corresponding XVS type as well.
39         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
40         have several levels of pointer indirection to the array.
41         
42 2004-10-15  Jerome Guitton  <guitton@gnat.com>
43
44         Committed by Paul Hilfinger.
45         * ada-lang.c (check_size): New function.
46         (coerce_unspec_val_to_type): call check_size to make sure
47         that the object size is reasonable.
48         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
49         Implements the case when we get a reference when we evaluate
50         the expression of one of the bounds of the slice.
51         (ada_value_struct_elt): when a packed array field is
52         a reference, use ada_coerce_ref to dereference it; use 
53         ada_value_ind only if it is a pointer.
54
55 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
56
57         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
58         a bit to avoid the necessity of an advance declaration. Remove
59         declaration.
60         (set_reg_offset): Move implemenation up.
61         (mips16_get_imm): Likewise.
62         (mips16_scan_prologue): Likewise.
63         (reset_saved_regs): Likewise.
64         (mips32_scan_prologue): Likewise.
65
66 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
67
68         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
69         Remove sp as a parameter, compute it internally instead. Move
70         prologue scanning limit from heuristic_proc_desc to here.
71         (mips16_scan_prologue): Likewise.
72         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
73         by call to mips16_scan_prologue.
74         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
75         by call to mips32_scan_prologue.
76         (heuristic_proc_desc): Remove code that's no longer necessary.
77         Update calls to mips16_scan_prologue and mips32_scan_prologue.
78         (mips_skip_prologue): Update calls to mips16_scan_prologue
79         and mips32_scan_prologue.
80
81 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
82
83         * mips-tdep.c (mips16_scan_prologue): Merge code from
84         mips16_skip_prologue.  Now return the address of the first
85         instruction past the function prologue.
86         (mips16_skip_prologue): Remove, no longer necessary.
87         (mips_skip_prologue): Replace call to mips16_skip_prologue
88         by call to mips16_scan_prologue.
89
90 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
91
92         * mips-tdep.c (mips32_scan_prologue): Merge code from
93         mips32_skip_prologue.  Now return the address of the first
94         instruction past the function prologue.
95         (mips32_skip_prologue): Remove.  No longer necessary.
96         (mips16_skip_prologue): Add parameter end_pc instead of
97         computing it.
98         (mips_skip_prologue): Compute the upper limit for the
99         prologue scanning. Update call to mips16_skip_prologue.
100         Replace call to mips32_skip_prologue by call to
101         mips32_scan_prologue.
102
103 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
104
105         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
106         NetBSD system call stubs that store %rp in the ERP slot of the
107         stack frame.
108
109         * source.c: Always define O_BINARY to 0 if not defined already.
110         (openp): Unconditionally use O_BINARY.
111
112         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
113         * event-top.c (gdb_readline2): Likewise.
114
115 2004-10-14  Orjan Friberg  <orjanf@axis.com>
116
117         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
118         deprecated_add_core_fns which was removed by mistake.
119
120 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
121
122         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
123         references to deprecated_registers[] with equivalent code.
124
125 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
126
127         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
128         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
129         instead of explicit test and print statement.
130
131 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
132
133         * sparc-nat.c: Include "inf-ptrace.h".
134         (sparc_target): New function.
135         * sparc-nat.h: Update copyright year.
136         (sparc_target): New prototype.
137         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
138         (_initialize_sparcnbsd_nat): Construct and add target vector.
139         * sparc64nbsd-nat.c: Include "target.h".
140         (_initialize_sparc64nbsd_nat): Construct and add target vector.
141         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
142         Update dependencies.
143         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
144         inftarg.o, add inf-ptrace.o.
145         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
146         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
147         (NAT_FILE): Set to nm-bsd.h.
148         (LOADLIBES): New variable.
149         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
150         infarg.o, add inf-ptrace.o.
151         * config/sparc/nm-nbsdaout.h: Remove file.
152         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
153         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
154         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
155
156         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
157         "fopen-same.h".  Update comment.
158
159 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
160
161         * i386gnu-nat.c: Include "gdb_string.h".
162         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
163         registers when the floating-point state isn't initialized.
164         * Makefile.in (i386gnu-nat.o): Update dependencies.
165
166 2004-10-11  David Anderson  <davea@sgi.com>
167
168         * regcache.c (regcache_raw_read): Comment was missing "to".
169         Extraneous ' removed.
170         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
171         comment now describes use.
172
173 2004-10-11  Orjan Friberg  <orjanf@axis.com>
174
175         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
176         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
177         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
178         (cris_sigtramp_frame_sniffer): New functions.
179         (cris_gdbarch_init): Hook in signal trampoline unwinder.
180         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
181         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
182         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
183         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
184         command.
185         (cris_version_update): Remove, replace with ...
186         (set_cris_version): New function.
187         (struct gdbarch_tdep, cris_mode, cris_mode_update)
188         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
189         (_initialize_cris_tdep): Remove CRIS mode command.
190         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
191         cris-fpless-backtrace command.
192         (cris_scan_prologue): Fix prologue scanning limit.
193         (cris_register_type): Update to reflect actual registers.
194         (cris_register_bytes_ok) Remove.
195         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
196         Remove set_gdbarch_deprecated_register_size,
197         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
198         
199 2004-10-10  Andrew Cagney  <cagney@gnu.org>
200
201         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
202         comment.
203
204 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
205
206         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
207
208 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
209
210         * mips-tdep.c (mips16_scan_prologue): Renames
211         mips16_heuristic_proc_desc. Update comment.
212         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
213         (heuristic_proc_desc): Update calls to the 2 functions above.
214
215 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
216
217         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
218         Update comments. Also immediately return empty cache when the start
219         address of our function could not be found.
220         (mips_insn32_frame_cache): Likewise.
221
222 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
223
224         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
225         (mips_insn16_frame_cache): Pass frame cache in call to
226         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
227         Remove code that became redundant as a consequence.
228         (mips32_heuristic_proc_desc): No longer compute a fake
229         procedure descriptor. Compute the full frame cache instead.
230         Some minor comment reformatting.
231
232 2004-10-10  Jim Blandy  <jimb@redhat.com>
233
234         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
235         reader, tracing bytecode stuff): Remove self.
236
237 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
238
239         * sparc64-linux-tdep.c: Update copyright year.  Don't include
240         "solib-svr4.h".
241         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
242         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
243         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
244
245         * sparc-linux-tdep.c: Update copyright year.
246         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
247         to struct frame_info *.  Use safe_frame_unwind_memory instead of
248         deprecated_read_memory_nobpt.
249         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
250         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
251         changed signature of sparc_linux_sigtramp_start.
252         (sparc32_linux_pc_in_sigtramp): Remove function.
253         (sparc32_linux_sigtramp_p): New function.
254         (sparc32_linux_sigtramp_frame_sniffer): Use
255         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
256
257         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
258         Remove function.
259         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
260
261         * ada-lang.c (lim_warning): Re-implement as a varargs function.
262         (decode_packed_array_type, value_subscript_packed)
263         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
264         argument in call to lim_warning.
265
266         * configure.in: Really disable the TUI if an enhanced curses
267         library isn't found.
268         * configure: Regenerate.
269
270 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
271
272         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
273         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
274         * config/i386/nm-nbsdaout.h: Remove file.
275         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
276         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
277         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
278         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
279         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
280         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
281         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
282         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
283         (ldd, ld_un, ld_2): Remove defines.
284         * config/i386/nm-obsd.h: Likewise.
285
286 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
287
288         * ada-lex.l: Remove useless rule whose right-context clause
289         causes unreferenced static function warning for yyrealloc.
290         (ada_flex_use): Remove the artificial reference to yyrealloc.
291
292 2004-10-08  Andrew Cagney  <cagney@gnu.org>
293
294         * target.h (struct target_ops): Rename to_xfer_memory to
295         deprecated_xfer_memory.
296         * target.c: Update.
297         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
298         * wince.c: Update.
299         * win32-nat.c: Update.
300         * v850ice.c: Update.
301         * uw-thread.c: Update.
302         * thread-db.c: Update.
303         * sol-thread.c: Update.
304         * remote.c: Update.
305         * remote-vx.c: Update.
306         * remote-st.c: Update.
307         * remote-sim.c: Update.
308         * remote-sds.c: Update.
309         * remote-rdp.c: Update.
310         * remote-rdi.c: Update.
311         * remote-mips.c: Update.
312         * remote-m32r-sdi.c: Update.
313         * remote-e7000.c: Update.
314         * procfs.c: Update.
315         * ppc-bdm.c: Update.
316         * nto-procfs.c: Update.
317         * monitor.c: Update.
318         * linux-nat.c: Update.
319         * inftarg.c: Update.
320         * hpux-thread.c: Update.
321         * go32-nat.c: Update.
322         * gnu-nat.c: Update.
323         * exec.c: Update.
324         * corelow.c: Update.
325         * bsd-kvm.c: Update.
326         * aix-thread.c: Update.
327
328 2004-10-08  Andrew Cagney  <cagney@gnu.org>
329
330         * target.c (debug_target): Move to near start of file.
331         (target_stopped_data_address_p): Re-org logic, add casts.
332
333 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
334
335         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
336         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
337         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
338         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
339         New defines.
340
341 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
342
343         * target.h (to_stopped_data_address): Change prototype to
344         take a CORE_ADDR pointer and return an int.
345         * target.c (update_current_target): Change to_stopped_data_address
346         to match new prototype.
347         (debug_to_stopped_data_address): Change appropriately.
348         * breakpoint.c (bpstat_stop_status): Change call to
349         target_stopped_data_address to use new prototype.
350         * frv-tdep.c (frv_have_stopped_data_address): New function.
351         (frv_stopped_data_address): Change to new prototype and
352         functionality.
353         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
354         prototype and functionality.
355         (ia64_stopped_by_watchpoint): New function.
356         * i386-nat.c (i386_stopped_data_address): Change to new
357         prototype and functionality.
358         (i386_stopped_by_watchpoint): New function.
359         * remote.c (remote_stopped_data_address): Change to new prototype
360         and functionality.
361         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
362         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
363         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
364         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
365         new i386_stopped_by_watchpoint function.
366         (i386_stopped_by_watchpoint): New prototype.
367         (i386_stoppped_data_address): Change to new prototype.
368         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
369         new ia64_stopped_by_watchpoint function.
370         (ia64_stopped_by_watchpoint): New prototype.
371         (ia64_stopped_data_address): Ditto.
372
373 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
374
375         * ada-typeprint.c (ada_print_type): Use int_string for printing
376         modulus of modular type.
377         * ada-lang.h (ada_modulus): Change return type to unsigned.
378         * ada-lang.c (ada_language_arch_info): Correct type of 
379         string_char_type.
380         (ada_modulus): Return unsigned result.
381         (ada_lookup_symbol): Remove user disambiguation and modify comment 
382         accordingly.
383         
384 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
385
386         Committed by Paul Hilfinger.
387         * ada-lang.c (decode_packed_array): On big-endian targets, 
388         left-justify the value if it comes with a modular type.
389
390 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
391
392         Committed by Paul Hilfinger.
393         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
394         (is_name_suffix): Add support for "___JM" suffixes.
395         (ada_check_typedef): Renames ada_completed_type. 
396         Update all users of CHECK_TYPEDEF, check_typedef, and 
397         ada_complete_type to call ada_check_typedef.
398         * ada-typeprint.c: Likewise.
399         * ada-valprint.c: Likewise.
400
401 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
402
403         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
404
405 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
406
407         * MAINTAINERS: Update e-mail address.
408
409 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
410
411         From Maciej W. Rozycki  <macro@mips.com>:
412         * mips-tdep.c (mips32_next_pc): Check the register's contents,
413         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
414
415 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
416
417         * m32r-tdep.c (decode_prologue): Support functions written
418         in assembler language. Recognize trap instructions as the
419         end of prologue.
420         (m32r_frame_unwind_cache): Ditto.
421         (m32r_skip_prologue): Extend search limit. Quit analyzing
422         prologue if pc's location is not readable.
423
424 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
425
426         * Makefile.in (.l.c): Do conversions of names of alloc and free 
427         functions that are done for .y.c files, plus special one
428         for yy_flex_realloc.  Also, correct missing-file tests here.
429         * ada-lex.l (malloc, free): Remove macros.
430         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
431         xrealloc.
432         (ada_flex_use): Dummy definition to remove warnings about unused
433         functions.
434         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
435         to suppress warning.
436         
437 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
438
439         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
440         RETURN_VALUE.
441         (sh_return_value_fpu): Ditto for CPUs with FPU.
442         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
443         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
444         Install sh_return_value_nofpu resp. sh_return_value_fpu as
445         RETURN_VALUE functions.
446
447 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
448
449         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
450         (sh_pseudo_register_write): Ditto.
451
452 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
453
454         * sh-tdep.c (IS_MACL_STS): New define.
455         (IS_MOVI20): Ditto.
456         (IS_MACL_LDS): Ditto.
457         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
458         instructions in prologue.
459         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
460         instructions in epilogue.
461
462 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
463
464         * sh-tdep.c (SH_NUM_REGS): Define as 67.
465         (sh_sh_register_name): Add eight empty register names.
466         (sh_sh3_register_name): Ditto.
467         (sh_sh3e_register_name): Ditto.
468         (sh_sh2e_register_name): Ditto.
469         (sh_sh2a_register_name): New function, defining SH2A register set.
470         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
471         in nofpu case.
472         (sh_sh_dsp_register_name): Add eight empty register names.
473         (sh_sh3_dsp_register_name): Ditto.
474         (sh_sh4_register_name): Ditto.
475         (sh_sh4_nofpu_register_name): Ditto.
476         (sh_sh4al_dsp_register_name): Ditto.
477         (sh2a_show_regs): New function.
478         (sh2a_nofpu_show_regs): New function.
479         (sh_sh2a_register_type): New function.
480         (do_bank_register_info): New function.
481         (sh_print_pseudo_register): Call do_bank_register_info.
482         Call sh_print_pseudo_register for valid "bank" register.
483         (sh_sh2a_register_sim_regno): New function.
484         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
485         Increment pseudo register count by one for all sh variants with
486         pseudo registers to accomodate pseudo bank register.
487         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
488         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
489         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
490         Increment pseudo register numbers.
491
492 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
493
494         * dwarf2read.c (read_subroutine_type): Call make_function_type
495         instead of lookup_function_type.
496
497 2004-10-05  Jim Blandy  <jimb@redhat.com>
498
499         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
500         (Previous change missed some uses.)
501
502 2004-10-05  Andrew Cagney  <cagney@gnu.org>
503
504         * target.h (deprecated_child_ops): Rename child_ops.
505         * wince.c: Update copyright.  Rename child_ops.
506         * win32-nat.c: Rename child_ops.
507         * target.c: Rename child_ops.
508         * rs6000-nat.c: Rename child_ops.
509         * linux-nat.c: Rename child_ops.
510         * infttrace.c: Rename child_ops.
511         * inftarg.c: Rename child_ops.
512         * infptrace.c: Rename child_ops.
513         * hppah-nat.c: Update copyright.  Rename child_ops.
514         * hpux-thread.c: Update copyright.  Rename child_ops.
515
516 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
517
518         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
519
520 2004-10-05  Andrew Cagney  <cagney@gnu.org>
521
522         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
523
524 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
525
526         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
527         (die_ref_table): Remove.
528         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
529         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
530         the usage of this type.
531         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
532         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
533         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
534         (dwarf2_create_include_psymtab): Update comment.
535         (find_partial_die): Remove third argument.  Remove unreachable call
536         to error ().
537         (dwarf2_find_containing_comp_unit): Update comments.  Change one
538         assertion to an error.  Remove an unreachable error.
539         (dwarf2_find_comp_unit): Update comments.
540         (type_at_offset): Remove dead code.
541         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
542         (store_in_ref_table): Add CU argument.
543         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
544         inter-compilation-unit references.
545         (load_full_comp_unit, process_full_comp_unit): New functions, based
546         on psymtab_to_symtab_1.
547         (psymtab_to_symtab_1): Use them.
548         (dwarf2_add_dependence): New function.
549         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
550         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
551         (partial_die_parent_scope, guess_structure_name): Update for changes
552         to find_partial_die.
553         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
554         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
555         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
556         (read_die_and_children): Update call to store_in_ref_table.
557         (do_free_die_list_cleanup): Remove.
558         (fixup_partial_die): Update for changes to find_partial_die.
559         (read_full_die): Handle queueing absolute references.
560         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
561         (dwarf2_attr, die_specification, die_type)
562         (die_containing_type, dwarf2_extension): Update calls to
563         follow_die_ref.
564         (dump_die): Update DW_FORM_ref* handling.
565         (dwarf2_get_ref_die_offset): Likewise.
566         (free_one_comp_unit): Release the dies list.
567         (dwarf2_mark_helper): New function.
568         (dwarf2_mark): Use it.
569
570 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
571
572         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
573         when writing to memory.
574
575 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
576
577         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
578         (m32r_extract_struct_value_address): Delete function.
579         (m32r_return_value): New function.
580         (m32r_gdbarch_init): Instead of store_return_value,
581         extract_return_value, deprecated_extract_struct_value_address
582         and deprecated_use_struct_convention, set return_value.
583
584 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
585
586         * dwarf2read.c (read_subrange_type): Add comment for variable
587         sized arrays.
588
589 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
590
591         * Makefile.in (.l.c): Modify rule for compatibility with recent
592         versions of flex, and remove most command-line options.
593         * ada-lex.l: Add %options line in place of -I -i and -s command-line
594         options.
595
596 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
597
598         Turn on initial Ada support (mainly expression evaluation).
599         
600         * Makefile.in (SFILES): Remove ada-tasks.c.
601         (HFILES_NO_SRCDIR): Add ada-lang.h.
602         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
603         (YYOBJ): Add ada-exp.o.
604         (rule .l.c): Generalize to not mention ada.
605         * symtab.c: Include ada-lang.h.
606         (symbol_natural_name, symbol_demangled_name)
607         (symbol_search_name): Add Ada case.
608
609 2004-10-01  Andrew Cagney  <cagney@gnu.org>
610
611         * Makefile.in (COMMON_OBS): Add inf-child.o.
612         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
613         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
614         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
615         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
616         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
617         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
618         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
619         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
620         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
621         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
622         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
623         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
624         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
625
626         * target.c (xfer_using_stratum): Change return type to LONGEST.
627         On each iteration offset, readbuf and writebuf.
628         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
629         partial_length, and read/modify/write predicate, update comments.
630         Pass buffer.word to ptrace write.
631
632 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
633
634         * symfile.c (init_filename_language_table): Add extensions for
635         Ada.
636         * defs.h (enum language): Add language_ada.
637         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
638         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
639         (add_symbols_from_enclosing_procs): Make a no-op for now.
640         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
641         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
642         (find_line_in_linetable, find_next_line_in_linetable)
643         (read_all_symtabs, is_plausible_func_for_line)
644         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
645         (is_runtime_sym_defined, check_size): Remove declaration.
646         (function_name_from_pc, ada_translate_error_message)
647         (ada_lookup_minimal_symbol): Remove definition.
648         (ada_add_block_symbols): Remove useless label.
649         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
650         useless declaration.
651         (ada_is_exception_sym): Likewise.
652
653 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
654
655         Add m32r-linux support.
656         * configure.tgt: Add m32r*-*-linux*.
657         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
658         and m32r-linux-tdep.c.
659         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
660         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
661         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
662         m32r-linux-tdep.c.
663         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
664         config/m32r/linux.mh, config/m32r/linux.mt,
665         config/m32r/nm-linux.h: New files.
666
667 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
668
669         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
670         (mips32_fetch_instruction): Remove, unused.
671
672 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
673
674         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
675         conditions that will always be true.
676
677 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
678
679         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
680         (vaxbsd_fetch_inferior_registers): Rename from
681         fetch_inferior_registers.  Make static.
682         (vaxbsd_store_inferior_registers): Rename from
683         store_inferior_registers.  Make static.
684         (_initialize_vaxbsd_nat): Construct and add target vector.
685         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
686         inftarg.o.  Add inf-child.o and inf-ptrace.o.
687         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
688         inftarg.o.  Add inf-child.o and inf-ptrace.o.
689         (NAT_FILE): Remove.
690         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
691         inftarg.o.  Add inf-child.o and inf-ptrace.o.
692         (NAT_FILE): Remove.
693         * Makefile.in (vaxbsd-nat.o): Update dependencies.
694
695         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
696         (m88kbsd_fetch_inferior_registers): Rename from
697         fetch_inferior_registers.  Make static.
698         (m88kbsd_store_inferior_registers): Rename from
699         store_inferior_registers.  Make static.
700         (_initialize_m88kbsd_nat): New prototype and function.
701         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
702         inftarg.o.  Add inf-child.o and inf-ptrace.o.
703         (NAT_FILE): Remove.
704         * Makefile.in (m88kbsd-nat.o): Update dependencies.
705
706 2004-09-30  Andrew Cagney  <cagney@gnu.org>
707
708         * target.c (target_xfer_partial): New function.
709         (target_read_memory_partial, target_write_memory_partial) 
710         (default_xfer_partial, target_read_partial, target_write_partial) 
711         (xfer_using_stratum): Use.
712         (debug_to_xfer_partial): Delete function.
713         (setup_target_debug): Do not override to_xfer_partial.
714
715 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
716
717         * fork-child.c: Update copyright year.  Fix coding style.
718
719 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
720
721         * defs.h (msavestring, mstrsave): Remove prototypes.
722         * utils.c (msavestring, mstrsave): Remove functions.
723         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
724         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
725         of mstrsave.
726         * source.c (find_and_open_source): Use xstrdup instead of
727         mstrsave.
728
729 2004-09-30  Andrew Cagney  <cagney@gnu.org>
730
731         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
732         (inf_ptrace_xfer_memory): Delete.
733         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
734         (target_read_memory, target_write_memory): Use xfer_using_stratum
735         when target_xfer_partial_p.
736         (debug_target): Move to start of file.
737         (target_read_memory_partial, target_write_memory_partial): Use
738         to_xfer_partial when target_xfer_partial_p.
739
740         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
741         inf_ptrace_xfer_memory with equivalent code.
742         * inftarg.c (child_xfer_partial): When performing a write, pass
743         writebuf to child_xfer_memory.
744
745         * target.c (target_read_string): Use target_read_memory instead of
746         target_xfer_memory.
747
748 2004-09-29  Andrew Cagney  <cagney@gnu.org>
749
750         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
751         the address of status.
752
753         * infptrace.c (ptrace_wait): Mention problem with HPUX.
754         (kill_inferior): Inline ptrace_wait call.
755         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
756         * inftarg.c (child_wait): Inline ptrace_wait call.
757
758         * target.h (struct target_ops): Delete field to_post_wait.
759         (target_post_wait): Delete macro.
760         (child_post_wait): Delete declaration.
761         * target.c (update_current_target, update_current_target)
762         (debug_to_post_wait, setup_target_debug): Delete functions and
763         references.
764         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
765         * inftarg.c (child_post_wait): Delete.
766         (init_child_ops): Do not set to_post_wait.
767         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
768         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
769         * inf-child.c (inf_child_post_wait): Delete.
770         (inf_child_target): Do not set to_post_wait.
771         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
772         (inf_ptrace_target): Do not set to_post_wait.
773
774         * wince.c (child_ops): Delete.
775         * win32-nat.c (child_ops): Delete.
776
777         * inftarg.c (inftarg_set_find_memory_regions) 
778         (inftarg_set_make_corefile_notes): Delete functions.
779         (_initialize_linux_nat): Inline calls.
780
781         * target.h (child_ops): Declare.
782         * inftarg.c (child_ops): Move from here ...
783         * target.c (child_ops): ... to here.
784         * wince.c (child_ops): Delete extern declaration.
785         * win32-nat.c (child_ops): Delete extern declaration.
786         * linux-nat.c (child_ops): Delete extern declaration.
787         * hpux-thread.c (child_ops): Delete extern declaration.
788
789 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
790
791         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
792
793 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
794
795         * configure.in: Only set host_makefile_frag when building a native
796         debugger.
797         * configure: Regenerate.
798
799         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
800         for OpenBSD ELF.
801
802 2004-09-28  Andrew Cagney  <cagney@gnu.org>
803
804         Problem identified by Paul Hilfinger.
805         * Makefile.in (ada_lex_c): Define.
806         (ada-lex.o): Delete rule.
807
808         * linux-proc.c: Delete file.
809         * Makefile.in: Update.
810         * config/sparc/linux64.mh (NATDEPFILES): 
811         * config/sparc/linux.mh (NATDEPFILES): Update.
812         * config/s390/s390.mh (NATDEPFILES): Update.
813         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
814         * config/powerpc/linux.mh (NATDEPFILES): Update.
815         * config/pa/linux.mh (NATDEPFILES): Update.
816         * config/mips/linux.mh (NATDEPFILES): Update.
817         * config/m68k/linux.mh (NATDEPFILES): Update.
818         * config/ia64/linux.mh (NATDEPFILES): Update.
819         * config/i386/linux64.mh (NATDEPFILES): Update.
820         * config/i386/linux.mh (NATDEPFILES): Update.
821         * config/arm/linux.mh (NATDEPFILES): Update.
822         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
823         * linux-nat.c: Update copyright.  Include <sys/param.h>,
824         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
825         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
826         (O_LARGEFILE): Possibly define.
827         (_initialize_linux_nat, linux_proc_pending_signals)
828         (add_line_to_sigset, linux_proc_xfer_memory)
829         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
830         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
831         (struct linux_corefile_thread_data)
832         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
833         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
834
835 2004-09-16  Andrew Cagney  <cagney@gnu.org>
836
837         * lin-lwp.c: Delete file.
838         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
839         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
840         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
841         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
842         (linux_nat_attach, detach_callback, linux_nat_detach)
843         (resume_callback, resume_clear_callback, linux_nat_resume)
844         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
845         (stop_wait_callback, linux_nat_has_pending, flush_callback)
846         (status_callback, running_callback, count_events_callback)
847         (select_singlestep_lwp_callback, select_event_lwp_callback)
848         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
849         (child_wait, stop_and_resume_callback, linux_nat_wait)
850         (kill_callback, kill_wait_callback, linux_nat_kill)
851         (linux_nat_create_inferior, linux_nat_mourn_inferior)
852         (linux_nat_xfer_memory, linux_nat_thread_alive)
853         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
854         (_initialize_linux_nat): New functions.
855         * Makefile.in: Update all dependencies.
856         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
857         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
858         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
859         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
860         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
861         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
862         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
863         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
864         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
865         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
866         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
867         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
868         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
869
870 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
871
872         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
873         config/i386/obsd64.mh (NAT_FILE): Remove variable.
874
875         * configure.in: Don't comment out NATDEPFILES in the generated
876         Makefile if NAT_FILE is unset.
877         * configure: Regenerate.
878
879 2004-09-27  Andrew Cagney  <cagney@gnu.org>
880
881         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
882         (insert_step_resume_breakpoint): Delete.
883         (insert_step_resume_breakpoint_at_frame): New function.
884         (insert_step_resume_breakpoint_at_sal): New function.
885         (handle_inferior_event, step_into_function)
886         (insert_step_resume_breakpoint): Simplify by using same.
887
888         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
889
890 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
891
892         * fbsd-proc.c: Remove file.
893         * Makefile.in (fbsd-proc.o): Remove dependency.
894
895         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
896         code together.
897
898         * config/i386/nm-fbsd64.h: Remove file.
899         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
900
901 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
902
903         * amd64-nat.h: Update copyright year.
904         (amd64bsd_target): New prototype.
905         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
906         (amd64bsd_target): New function.
907         (amd64bsd_fetch_inferior_registers): Rename from
908         fetch_inferior_registers.  Make static.
909         (amd64bsd_store_inferior_registers): Rename from
910         store_inferior_registers.  Make static.
911         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
912         (_initialize_amd64fbsd_nat): Construct and add target vector.
913         * amd64nbsd-nat.o: Include "target.h".
914         (_initialize_amd64nbsd_nat): Construct and add target vector.
915         * amd64obsd-nat.c: Include "target.h".
916         (_initialize_amd64obsd_nat): Construct and add target vector.
917         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
918         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
919         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
920         fbsd-nat.o.
921         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
922         Remove infptrace.o and inftarg.o.  Add inf-child.o and
923         inf-ptrace.o.
924         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
925         (amd64obsd-nat.o): Update dependencies.
926
927 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
928
929         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
930         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
931         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
932         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
933         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
934
935         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
936         Inline attach call.
937         (inf_ptrace_detach): Inline detach call.
938
939         * configure.in: Check for waddstr instead of mvwaddstr when
940         searching for curses library.  Check for wborder.
941         * configure, config.in: Regenerate.
942         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
943         available.
944
945         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
946
947 2004-09-24  Robert Picco <Robert.Picco@hp.com>
948
949         Committed by Andrew Cagney.
950         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
951         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
952         configuration.
953         (fetch_register_using_p): Implement 'p' packet.  Based on code by
954         Fernando Nasser.
955         (remote_fetch_registers): Call fetch_register_using_p.
956         (init_all_packet_configs, show_remote_cmd)
957         (_initialize_remote): Add p-packet.
958
959 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
960
961         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
962         instead of call_ptrace.  Call wait directly instead of
963         ptrace_wait.
964         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
965         (inf_ptrace_wait): Inline ptrace_wait call.
966
967 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
968
969         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
970         rolled back instead.
971
972 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
973
974         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
975         the new argument order.
976
977 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
978
979         * MAINTAINERS: Remove "broken" from XStormy16 entry.
980         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
981         (struct gdbarch_tdep): Remove.
982         (struct xstormy16_frame_cache): New frame cache structure.
983         (xstormy16_register_byte, xstormy16_register_raw_size)
984         (xstormy16_reg_virtual_type, xstormy16_register_type)
985         (xstormy16_push_arguments, xstormy16_push_return_address)
986         (xstormy16_pop_frame, xstormy16_store_struct_return)
987         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
988         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
989         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
990         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
991         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
992         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
993         (xstormy16_use_struct_convention): Drop gcc_p parameter.
994         (xstormy16_extract_return_value, xstormy16_store_return_value):
995         Regcachify.  Drop useless struct convention handling.
996         (xstormy16_register_type, xstormy16_return_value)
997         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
998         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
999         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1000         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1001         (xstormy16_unwind_sp, xstormy16_unwind_pc)
1002         (xstormy16_unwind_dummy_id) : New functions.
1003         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1004         of xstormy16_scan_prologue.
1005         (xstormy16_frame_unwind): New frame_unwind structure.
1006         (xstormy16_frame_base): New frame_base structure.
1007         (xstormy16_gdbarch_init): Accomodate all of the above changes.
1008         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
1009
1010 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
1011
1012         * language.c (language_gdbarch_post_init): Fix off-by one error.
1013
1014 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
1015
1016         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1017         (struct dwarf2_offset_and_type): New.
1018         (set_die_type, reset_die_and_siblings_types, get_die_type)
1019         (offset_and_type_hash, offset_and_type_eq): New functions.
1020         (read_structure_type, read_enumeration_type, read_array_type)
1021         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1022         (read_tag_reference_type, read_tag_const_type)
1023         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1024         (read_typedef, read_base_type, read_subrange_type): Use
1025         set_die_type.
1026
1027 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
1028
1029         * Makefile.in (dwarf2read.o): Update dependencies.
1030         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1031         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1032         and read_in_chain.
1033         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1034         mark, and has_form_ref_addr.
1035         (struct dwarf2_per_cu_data): New.
1036         (dwarf2_max_cache_age): New.
1037         (dwarf2_build_psymtabs_hard): Free cached compilation units
1038         after loading.  Create and manage the list of compilation units.
1039         Remove unnecessary NULL initialization.  Fix indentation.
1040         (psymtab_to_symtab_1): Initialize all of CU.
1041         (dwarf2_read_abbrevs): Set has_form_ref_addr.
1042         (find_partial_die): Use dwarf2_find_containing_comp_unit
1043         and load_comp_unit.
1044         (free_stack_comp_unit): Update comments.  Clear the per-cu
1045         pointer.  Handle aging.
1046         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1047         (age_cached_comp_units, free_one_cached_comp_unit)
1048         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1049         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1050         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1051         (show_dwarf2_cmd): New.
1052         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1053         and "maint show dwarf2 max-cache-age".
1054         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1055         externs.
1056         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1057         global.
1058
1059 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
1060
1061         * dwarf2read.c (typename_concat): Change prototype to accept obstack
1062         and dwarf2_cu struct pointer as arguments.  Change function to use
1063         obstack if provided and use dwarf2_cu to determine language-specific
1064         separator.
1065         (partial_die_parent_scope): Change comment to include java.  Use
1066         new version of typename_concat instead of obconcat.
1067         (partial_die_full_name): Use typename_concat.
1068         (read_namespace): Ditto.
1069         (read_enumeration_type): Use typename_concat instead of obconcat.
1070         (new_symbol): Ditto.
1071         (add_partial_symbol): Enhance tests for C++ to also test for Java.
1072         (guess_structure_name): Ditto.
1073         (read_subroutine_type): Ditto.
1074         (read_structure_type): Ditto.
1075         (is_vtable_name): Add Java support.
1076         (determine_class_name): Switch to new typename_concat call.
1077         (determine_prefix): Switch to new typename_concat call.
1078         * jv-exp.y (FuncStart): New pattern.
1079         (MethodInvocation): Add support for simple function calls.  Change
1080         warning message for other forms of inferior call currently not
1081         supported.
1082         * valarith.c (value_subscript): Treat an array with upper-bound
1083         of -1 as unknown size.
1084
1085 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
1086
1087         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1088         (lookup_partial_symtab): Use symtab_to_fullname.
1089
1090 2004-09-19  Jim Blandy  <jimb@redhat.com>
1091
1092         * minsyms.c (lookup_minimal_symbol): Doc fix.
1093
1094 2004-09-20  Andrew Cagney  <cagney@gnu.org>
1095
1096         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1097         CHILD_RESUME.
1098         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1099         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1100         KILL_INFERIOR.
1101         * infptrace.c: Update.
1102
1103 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
1104
1105         * symtab.c (output_source_filename): Mark first argument as const.
1106         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1107         for "info sources" output.
1108
1109 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
1110
1111         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1112         <machine/vmparam.h>.
1113         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1114         (register_u_addr): Remove prototype.
1115
1116 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
1117
1118         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1119         (i386bsd_fetch_inferior_registers): Rename from
1120         fetch_inferior_registers.  Make static.
1121         (i386bsd_store_inferior_registers): Rename from
1122         store_inferior_registers.  Make static.
1123         (i386bsd_target): New function.
1124         * i386bsd-nat.h: New file.
1125         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1126         "i386bsd-nat.h".
1127         (i386fbsd_resume): Rename from child_resume.  Make static.
1128         (_initialize_i386fbsd_nat): Construct and add target vector.
1129         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1130         (_initialize_i386nbsd_nat): Construct and add target vector.
1131         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1132         Remove defines.
1133         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1134         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
1135         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1136         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1137         (LOADLIBES): New variable.
1138         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1139         inf-ptrace.o.  Remove inftarg.o.
1140         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1141         inf-ptrace.o. Remove inftarg.o.
1142         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1143         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1144         (LOADLIBES): New variable.
1145         * Makefile.in (i386bsd_nat_h): New variable.
1146         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1147         dependencies.
1148
1149         * sparc64nbsd-tdep.c: Include "objfiles.h".
1150         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1151         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1152         svr4_lp64_fetch_link_map_offsets.
1153         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
1154         "nbsd-tdep.h".
1155         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1156         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1157         svr4_lp64_fetch_link_map_offsets.
1158         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1159         dependencies.
1160
1161         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1162         * fbsd-nat.h: New file.
1163         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1164         (fbsd_nat_h): New variable.
1165         (fbsd-nat.o): New dependency.
1166
1167         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1168         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1169
1170         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1171         comment.
1172
1173 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1174         
1175         * ada-exp.y (type_int): New function to add layer of abstraction
1176         around references to expression types.
1177         (type_long): Ditto.
1178         (type_long_long): Ditto.
1179         (type_float): Ditto.
1180         (type_double): Ditto.
1181         (type_long_double): Ditto.
1182         (type_char): Ditto.
1183         (type_system_address): Ditto.
1184         (simple_exp): Use type_* functions in place of builtin_* 
1185         variables.
1186         (exp): Ditto.
1187         (write_var_from_name): Ditto.
1188         (write_object_renaming): Ditto.
1189         * ada-lang.c (ada_create_fundamental_type): Remove redundant
1190         declaration.
1191         (build_ada_types): Remove, replacing with...
1192         (ada_language_arch_info): New function to initialize primitive
1193         type vector in language_arch_info.
1194         (ada_array_length): Remove use of builtin_type_ada_int.
1195         (value_pos_atr): Ditto.
1196         (ada_evaluate_subexp): Ditto.
1197         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1198         builtin_type_ada_long_long, builtin_type_ada_char, 
1199         builtin_type_ada_float, builtin_type_ada_double, 
1200         builtin_type_ada_long_double, builtin_type_ada_natural,
1201         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1202         (ada_builtin_types): Remove.
1203         (ada_language_defn): Remove entries for la_builtin_type_vector and
1204         string_char_type and use ada_language_arch_info.
1205         (_initialize_ada_language): Do type-vector initialization along
1206         the lines of c-lang.c.
1207         (ada_create_fundamental_type): Break up line.
1208         (ada_dump_symtab): Remove unused function.
1209         (enum ada_primitive_types): Define.
1210         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
1211         builtin_type_ada_long,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-lex.l: Use type_* functions in place of builtin_* variables.
1216         (processInt): Ditto.
1217         (processReal): Ditto.
1218         (name_lookup): Ditto.
1219         * ada-typeprint.c (print_range): Use builtin_type_int, not
1220         builtin_type_ada_int.
1221         
1222 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
1223
1224         * i386-tdep.c (i386_register_name): Rename regno to regnum.
1225
1226         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1227         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1228         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1229         * configure.in: Improve checks for curses library by checking for
1230         mvwaddstr instead of initscr.  Drop HP curses in favour of
1231         standard curses on HP-UX.
1232         * configure: Regenerated.
1233
1234 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1235
1236         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1237         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
1238         Minor formatting changes.
1239         (empty_array): Slight rewrite for formatting.
1240         (emit_char,parse,ada_language_defn,build_ada_types,
1241         ada_is_exception_sym, _initialize_ada_language): Move 
1242         definitions around.
1243         (ada_dump_symtab): Remove unused definition.
1244         (ada_maybe_exception_partial_symbol): Remove unused definition.
1245
1246 2004-09-16  Andrew Cagney  <cagney@gnu.org>
1247
1248         * inf-child.c: Include "gdb_string.h".
1249         (inf_child_core_file_to_sym_file): Delete.
1250         (inf_child_target): Set to_fetch_registers and to_store_registers.
1251         * inf-ptrace.c: Include "gdb_string.h".
1252         * Makefile.in: Update all dependencies.
1253
1254         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1255         problem.
1256
1257 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
1258
1259         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1260         call to heuristic_proc_desc. Remove code that became redundant
1261         as a consequence.
1262         (read_next_frame_reg): Remove special case for SP_REGNUM.
1263         (set_reg_offset): Fix small typo.
1264         (reset_saved_regs): New procedure.
1265         (mips32_heuristic_proc_desc): No longer compute a fake
1266         procedure descriptor. Compute the full frame cache instead.
1267         Some minor comment reformatting.
1268
1269 2004-09-14  Andrew Cagney  <cagney@gnu.org>
1270
1271         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1272         maintainer.
1273
1274         * thread-db.c (thread_db_new_objfile): Assume that there is a
1275         child process.
1276
1277 2004-09-13  Jim Blandy  <jimb@redhat.com>
1278
1279         * valops.c (value_assign): Move 'buffer' to the enclosing block,
1280         so that its storage isn't referenced after its lifetime ends.
1281
1282         * valops.c (value_assign): 'use_buffer' is initialized to zero,
1283         and never assigned to.   Delete it, and the 'if (use_buffer)'
1284         clauses.  Delete 'raw_buffer', since it is now unused.
1285
1286 2004-09-13  Andrew Cagney  <cagney@gnu.org>
1287
1288         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1289         * configure: Re-generate.
1290         * nlm/Makefile.in (TAGS): Update.
1291         * Makefile.in (TAGS): Update.
1292         * config/vax/nbsd.mt (TM_FILE): Update.
1293         * config/sparc/vxworks.mt (TM_FILE): Update.
1294         * config/sparc/sol2.mt (TM_FILE): Update.
1295         * config/sparc/sol2-64.mt (TM_FILE): Update.
1296         * config/sparc/obsd64.mt (TM_FILE): Update.
1297         * config/sparc/obsd.mt (TM_FILE): Update.
1298         * config/sparc/nbsd64.mt (TM_FILE): Update.
1299         * config/sparc/nbsd.mt (TM_FILE): Update.
1300         * config/sparc/linux64.mt (TM_FILE): Update.
1301         * config/sparc/linux.mt (TM_FILE): Update.
1302         * config/sparc/fbsd.mt (TM_FILE): Update.
1303         * config/sh/wince.mt (TM_FILE): Update.
1304         * config/sh/nbsd.mt (TM_FILE): Update.
1305         * config/sh/linux.mt (TM_FILE): Update.
1306         * config/sh/embed.mt (TM_FILE): Update.
1307         * config/s390/s390.mt (TM_FILE): Update.
1308         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1309         * config/rs6000/rs6000.mt (TM_FILE): Update.
1310         * config/rs6000/aix4.mt (TM_FILE): Update.
1311         * config/powerpc/vxworks.mt (TM_FILE): Update.
1312         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1313         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1314         * config/powerpc/obsd.mt (TM_FILE): Update.
1315         * config/powerpc/nbsd.mt (TM_FILE): Update.
1316         * config/powerpc/linux.mt (TM_FILE): Update.
1317         * config/powerpc/aix.mt (TM_FILE): Update.
1318         * config/pa/obsd.mt (TM_FILE): Update.
1319         * config/pa/linux.mt (TM_FILE): Update.
1320         * config/pa/hppahpux.mt (TM_FILE): Update.
1321         * config/pa/hppa64.mt (TM_FILE): Update.
1322         * config/pa/hppa.mt (TM_FILE): Update.
1323         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1324         * config/mips/wince.mt (TM_FILE): Update.
1325         * config/mips/vxmips.mt (TM_FILE): Update.
1326         * config/mips/nbsd.mt (TM_FILE): Update.
1327         * config/mips/linux.mt (TM_FILE): Update.
1328         * config/mips/irix6.mt (TM_FILE): Update.
1329         * config/mips/irix5.mt (TM_FILE): Update.
1330         * config/mips/embed.mt (TM_FILE): Update.
1331         * config/m68k/vxworks68.mt (TM_FILE): Update.
1332         * config/m68k/st2000.mt (TM_FILE): Update.
1333         * config/m68k/os68k.mt (TM_FILE): Update.
1334         * config/m68k/obsd.mt (TM_FILE): Update.
1335         * config/m68k/nbsd.mt (TM_FILE): Update.
1336         * config/m68k/monitor.mt (TM_FILE): Update.
1337         * config/m68k/linux.mt (TM_FILE): Update.
1338         * config/m68k/cisco.mt (TM_FILE): Update.
1339         * config/ia64/linux.mt (TM_FILE): Update.
1340         * config/ia64/aix.mt (TM_FILE): Update.
1341         * config/ia64/ia64.mt (TM_FILE): Update.
1342         * config/i386/vxworks.mt (TM_FILE): Update.
1343         * config/i386/obsd64.mt (TM_FILE): Update.
1344         * config/i386/obsd.mt (TM_FILE): Update.
1345         * config/i386/nto.mt (TM_FILE): Update.
1346         * config/i386/nbsd64.mt (TM_FILE): Update.
1347         * config/i386/nbsd.mt (TM_FILE): Update.
1348         * config/i386/linux64.mt (TM_FILE): Update.
1349         * config/i386/linux.mt (TM_FILE): Update.
1350         * config/i386/i386sol2.mt (TM_FILE): Update.
1351         * config/i386/i386lynx.mt (TM_FILE): Update.
1352         * config/i386/fbsd64.mt (TM_FILE): Update.
1353         * config/i386/fbsd.mt (TM_FILE): Update.
1354         * config/i386/cygwin.mt (TM_FILE): Update.
1355         * config/h8300/h8300.mt (TM_FILE): Update.
1356         * config/frv/frv.mt (TM_FILE): Update.
1357         * config/cris/cris.mt (TM_FILE): Update.
1358         * config/arm/wince.mt (TM_FILE): Update.
1359         * config/arm/nbsd.mt (TM_FILE): Update.
1360         * config/arm/linux.mt (TM_FILE): Update.
1361         * config/arm/embed.mt (TM_FILE): Update.
1362         * config/alpha/nbsd.mt (TM_FILE): Update.
1363         * config/alpha/fbsd.mt (TM_FILE): Update.
1364         * config/alpha/alpha.mt (TM_FILE): Update.
1365         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1366         * config/alpha/alpha-linux.mt (TM_FILE): Update.
1367
1368         Eliminate event_loop_p, always has the value 1.
1369         * defs.h (event_loop_p): Delete macro.
1370         * breakpoint.c (until_break_command): Simplify.
1371         * utils.c (prompt_for_continue): Simplify.
1372         * tracepoint.c (read_actions): Simplify.
1373         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
1374         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
1375         (set_prompt, init_main): Simplify.
1376         (init_signals, disconnect): Delete, unused.
1377         * remote.c (remote_async_resume) 
1378         (extended_remote_async_create_inferior): Simplify.
1379         * mi/mi-interp.c (mi_input): Delete, unused.
1380         (mi_interpreter_resume, mi_command_loop): Simplify.
1381         * interps.c (current_interp_command_loop): Simplify.
1382         * infrun.c (proceed): Simplify.
1383         * infcmd.c (run_command, continue_command, step_1, jump_command)
1384         (until_command, advance_command, finish_command)
1385         (interrupt_target_command): Simplify.
1386         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1387
1388         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1389         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1390         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1391         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1392         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1393         * mips-tdep.c (mips_dump_tdep): Do not print same.
1394
1395 2004-09-12  Andrew Cagney  <cagney@gnu.org>
1396
1397         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
1398         const.
1399         * Makefile.in (valprint.o): Delete explict rule.
1400
1401         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
1402         reported by Dave Anderson.
1403
1404         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1405
1406         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1407
1408 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
1409             Andrew Cagney  <cagney@gnu.org>
1410
1411         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1412         (mi_cmd_data_list_register_values)
1413         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1414         the register number computation.
1415
1416 2004-09-12  Andrew Cagney  <cagney@gnu.org>
1417
1418         * ppcnbsd-nat.c: Include "inf-ptrace.h".
1419         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1420         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1421         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1422         target.
1423         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1424         inf-ptrace.o and inf-child.o.
1425         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1426         * Makefile.in: Update dependencies.
1427         
1428 2004-09-11  Andrew Cagney  <cagney@gnu.org>
1429
1430         * language.c (hex_string, hex_string_custom): Move from here ...
1431         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1432         (CELLSIZE): Increase to 50.
1433         * language.h (hex_string, hex_string_custom): Move from here ...
1434         * defs.h: ... to here.
1435         * Makefile.in: Update all dependencies.
1436         
1437 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
1438
1439         * language.c (local_hex_format_custom): Remove.
1440         (local_hex_string): Rename to hex_string, use C format, and move to
1441         utils.c
1442         (local_hex_string_custom): Rename to hex_string_custom and change
1443         interface.  Now uses C format.  Move to utils.c
1444         (local_octal_format_custom): Remove.
1445         (local_decimal_format_custom): Remove.
1446         (unknown_language_defn): Remove language-specific number 
1447         formatting entries.
1448         (auto_language_defn): Ditto.
1449         (local_language_defn): Ditto.
1450         * language.h (struct language_format_info): Delete declaration.
1451         (struct language_defn): Remove language_format_info fields
1452         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1453         (local_binary_format): Remove macro.
1454         (local_binary_format_prefix): Remove macro.
1455         (local_binary_format_specifier): Remove macro.
1456         (local_binary_format_suffix): Remove macro.
1457         (local_octal_format): Remove macro.
1458         (local_octal_format_prefix): Remove macro.
1459         (local_octal_format_specifier): Remove macro.
1460         (local_octal_format_suffix): Remove macro.
1461         (local_decimal_format): Remove macro.
1462         (local_decimal_format_prefix): Remove macro.
1463         (local_decimal_format_specifier): Remove macro.
1464         (local_decimal_format_suffix): Remove macro.
1465         (local_hex_format): Remove macro.
1466         (local_hex_format_prefix): Remove macro.
1467         (local_hex_format_specifier): Remove macro.
1468         (local_hex_format_suffix): Remove macro.
1469         (local_decimal_format_custom): Remove.
1470         (local_octal_format_custom): Remove.
1471         (local_hex_format_custom): Remove.
1472         (local_hex_string): Rename to hex_string and move to defs.h.
1473         (local_hex_string_custom): Rename to hex_string_custom, change
1474         interface, and move to defs.h.
1475         * utils.c: (int_string): New function.
1476         (hex_string): New function (from language.c).
1477         (hex_string_custom): New function (from language.c).
1478         (octal2str): New function.
1479         (decimal2str): Add width parameter.
1480         (paddr_u): Use new decimal2str interface.
1481         (paddr_d): Ditto.
1482         * defs.h (hex_string): Declare.
1483         (hex_string_custom): Declare.
1484         (int_string): Declare.
1485         * printcmd.c (print_scalar_formatted): Remove localized binary
1486         formatting.
1487         * valprint.c (print_longest): Use int_string.
1488         (print_floating): Use C hex format.
1489         (print_hex_chars): Ditto.
1490         (print_binary_chars): Remove language-specific formatting.
1491         (print_octal_chars): Use C octal format.
1492         (print_decimal_chars): Delocalize format.
1493         (print_decimal): Remove.
1494         * ada-lang.c (ada_language_defn): Remove language-specific number 
1495         formatting entries.
1496         * p-lang.c (pascal_language_defn): Ditto.
1497         * c-lang.c (c_language_defn): Ditto.
1498         (cplus_language_defn): Ditto.
1499         (asm_language_defn): Ditto.
1500         (minimal_language_defn): Ditto.
1501         * f-lang.c (f_language_defn): Ditto.
1502         * jv-lang.c (java_language_defn): Ditto.
1503         * m2-lang.c (m2_language_defn): Ditto.
1504         * scm-lang.c (scm_language_defn): Ditto.
1505         * objc-lang.c (objc_language_defn): Ditto.
1506         * memattr.c (mem_info_command): Use renamed hex_string_custom with
1507         new interface.
1508         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1509         * ui-out.c (ui_out_field_core_addr): Ditto.
1510         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1511         * exec.c (print_section_info): Ditto.
1512         * i387-tdep.c (print_i387_status_word): Ditto.
1513         (print_i387_control_word): Ditto.
1514         (i387_print_float_info): Ditto.
1515         * maint.c (maint_print_section_info): Ditto.
1516         * solib.c (info_sharedlibrary_command): Ditto.
1517         * somsolib.c (som_sharedlibrary_info_command): Ditto.
1518         * symtab.c (print_msymbol_info): Ditto.
1519         * tracepoint.c (tracepoints_info): Ditto.
1520         * solib-frv.c (lm_base): Ditto.
1521         (frv_current_sos): Ditto.
1522         (enable_break2): Ditto.
1523         (enable_break): Ditto.
1524         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1525         (process_one_symbol): Ditto.
1526         * infcmd.c (program_info): Ditto.
1527         * mdebugread.c (parse_partial_symbols): Ditto.
1528         * symfile.c (add_symbol_file_command): Ditto.
1529         * cli/cli-cmds.c (edit_command): Ditto.
1530         (list_command): Ditto.
1531         * infcall.c (call_function_by_hand): Ditto.
1532         * remote-vx.c (vx_run_files_info): Ditto.
1533         (vx_wait): Ditto.
1534         (vx_attach): Ditto.
1535         (vx_detach): Ditto.
1536         (vx_kill): Ditto.
1537         * aix-thread.c (pdc_symbol_addrs): Ditto.
1538         (pdc_read_regs): Ditto.
1539         (pdc_write_regs): Ditto.
1540         (pdc_read_data): Ditto.
1541         (pdc_write_data): Ditto.
1542         * d10v-tdep.c (display_trace): Ditto.
1543         * rs6000-nat.c (find_toc_address): Ditto.
1544         * aix-thread.c: Don't include language.h.
1545         * buildsym.c: Ditto.
1546         * dbxread.c: Ditto.
1547         * mdebugread.c: Ditto.
1548         * rs6000-nat.c: Ditto.
1549         * buildsym.c (make_blockvector): Use renamed hex_string.
1550         
1551 2004-09-10  Jason Molenda  (jmolenda@apple.com)
1552
1553         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1554         chars after 'if' or 'while' commands in user-defined commands.
1555
1556 2004-09-08  Jim Blandy  <jimb@redhat.com>
1557
1558         Fix bug reported and analyzed by Olivier Crete:
1559         * symfile.c (copy_section_addr_info): New function.
1560         (symbol_file_add_with_addrs_or_offsets): Use it to save the
1561         original set of address arguments, instead of handwritten code
1562         that uses one length to allocate and a different length to
1563         initialize.  Use make_cleanup_free_section_addr_info.
1564         * symfile.h (copy_section_addr_info): New declaration.
1565         * utils.c: #include "symfile.h".
1566         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1567         New functions.
1568         * defs.h (make_cleanup_free_section_addr_info): New declaration.
1569         * Makefile.in (utils.o): Update dependencies.
1570
1571 2004-09-08  Andrew Cagney  <cagney@gnu.org>
1572
1573         * thread-db.c (keep_thread_db): Delete.
1574         (thread_db_new_objfile, thread_db_create_inferior)
1575         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1576
1577 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
1578
1579         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1580         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1581         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1582         (i386_frameless_signal_p): Remove prototype.
1583         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1584         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1585         I386_SSE_NUM_REGS.
1586         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1587         instead of FP0_REGNUM.
1588         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1589         of FP0_REGNUM and FPC_REGNUM.
1590
1591         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1592         (sunos_solib_create_inferior_hook): Don't call
1593         sunos_relocate_main_executable.
1594
1595         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1596         solib_svr4_fetch_link_map_offsets to
1597         svr4_ilp32_fetch_link_map_offsets.
1598         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1599         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1600         svr4_ilp32_fetch_link_map_offsets.
1601         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1602
1603 2004-09-07  Jim Blandy  <jimb@redhat.com>
1604
1605         * frame.h (frame_register): Doc fix.
1606
1607 2004-09-07  Andrew Cagney  <cagney@gnu.org>
1608
1609         * vx-share/wait.h: Delete #ifdef USG.
1610         * utils.c (request_quit): Ditto.
1611         * tui/tui.c (tui_reset): Ditto.
1612         * remote.c: Ditto.
1613         * remote-sds.c: Ditto.
1614         * remote-rdi.c: Ditto.
1615         * mdebugread.c: Ditto.
1616         * m68klinux-nat.c: Ditto.
1617         * infttrace.c: Ditto.
1618         * infptrace.c: Ditto.
1619         * i386v-nat.c: Ditto.
1620         * exec.c: Ditto.
1621         * dbxread.c: Ditto.
1622         * core-aout.c: Ditto.
1623
1624 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
1625
1626         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1627         heuristic_proc_desc.
1628         (mips_insn32_frame_cache): Likewise.
1629
1630 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1631
1632         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1633         left behind by error.
1634
1635 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1636
1637         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1638         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1639
1640 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1641
1642         * config/rs6000/xm-aix4.h: Remove this file.
1643         * config/rs6000/aix4.mh (XM_FILE): Delete.
1644
1645 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1646
1647         * config/rs6000/xm-rs6000.h: Remove this file.
1648         * config/rs6000/rs6000.mh (XM_FILE): Remove.
1649
1650 2004-09-03  Andrew Cagney  <cagney@gnu.org>
1651
1652         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1653         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1654         only use.
1655
1656         * mips-tdep.c (temp_saved_regs): Delete.
1657         (set_reg_offset): Replace saved_regs parameter with this_cache.
1658         (heuristic_proc_desc, mips16_heuristic_proc_desc)
1659         (mips32_heuristic_proc_desc): Add this_cache parameter.
1660         (mips_insn32_frame_cache, mips_insn16_frame_cache)
1661         (after_prologue): Pass a NULL this_cache.
1662
1663         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1664         non-kernel trap prologues.
1665
1666         * mips-tdep.c (find_proc_desc): Delete function.
1667         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1668         simplify.
1669         (mips_insn16_frame_cache): Replace find_proc_desc with code from
1670         mips_insn32_frame_cache.
1671
1672         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1673         Simplify as NEXT_FRAME is NULL.
1674         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1675
1676         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1677         local variable.
1678         (mips_skip_prologue): Update.
1679
1680         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1681         "cur_frame" parameter.
1682         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1683         (mips_insn32_frame_cache, find_proc_desc): Update
1684
1685         * config/vax/nm-obsd.h: Delete file.
1686         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1687         * config/vax/nm-nbsd.h: Delete file.
1688         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1689         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1690         * config/sh/nm-nbsd.h: Delete file.
1691         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1692         * config/rs6000/nm-rs6000ly.h: Delete file.
1693         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1694         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1695         * config/powerpc/nm-obsd.h: Delete file.
1696         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1697         * config/powerpc/nm-nbsd.h: Delete file.
1698         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1699         * config/pa/nm-obsd.h: Delete file.
1700         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1701         * config/mips/nm-nbsd.h: Delete file.
1702         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1703         * config/m88k/nm-obsd.h: Delete file.
1704         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1705         * config/m68k/nm-nbsd.h: Delete file.
1706         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1707         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1708         * config/i386/nm-nbsd.h: Delete file.
1709         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1710         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1711         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1712         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1713         * config/i386/nm-i386lynx.h: Delete file.
1714         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1715         * config/arm/nm-nbsd.h: Delete file.
1716         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1717         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1718
1719         * config/i386/tm-fbsd.h: Delete file.
1720         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1721         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1722
1723         * config/rs6000/tm-rs6000-aix4.h: Delete file.
1724         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1725         * config/rs6000/aix4.mt (TM_FILE): Set to
1726         config/rs6000/tm-rs6000.h.
1727         * config/powerpc/tm-ppc-aix.h: Delete file.
1728         * config/powerpc/aix.mt (TM_FILE): Set to
1729         config/rs6000/tm-rs6000.h.
1730         * config/m68k/tm-linux.h: Delete file.
1731         * config/m68k/linux.mt (TM_FILE): Set to solib.h
1732         * config/i386/tm-linux64.h: Delete file.
1733         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1734         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1735         
1736         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1737         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1738         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1739         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1740         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1741         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1742         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1743         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
1744         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1745
1746         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1747         gdb_host_cpu.
1748
1749 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
1750
1751         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1752         Minor reformatting. Some code factoring.
1753
1754 2004-09-02  Andrew Cagney  <cagney@gnu.org>
1755
1756         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1757         * config/vax/tm-nbsd.h: Delete file.
1758         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1759         * config/sparc/tm-vxworks.h: Delete file.
1760         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1761         * config/sparc/tm-nbsd.h: Delete file.
1762         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1763         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1764         * config/sparc/tm-linux.h: Delete file.
1765         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1766         * config/s390/tm-linux.h: Delete file.
1767         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1768         * config/pa/tm-bsd.h: Delete file.
1769         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1770         * config/m68k/tm-obsd.h: Delete file.
1771         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1772         * config/m68k/tm-nbsd.h: Delete file.
1773         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1774         * config/i386/tm-vxworks.h: Delete file.
1775         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1776         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1777         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1778         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1779         * config/i386/tm-nbsd.h: Delete file.
1780         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1781         * config/i386/tm-i386lynx.h: Delete file.
1782         * config/cris/cris.mt (TM_FILE): Set to solib.h.
1783         * config/cris/tm-cris.h: Delete file.
1784
1785         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1786         * configure: Re-generate.
1787         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1788         * config/arm/tm-nbsd.h: Delete file.
1789         
1790         * config/powerpc/tm-ppcle-sim.h: Delete.
1791         * config/powerpc/tm-ppcle-eabi.h: Delete.
1792         * config/powerpc/tm-nbsd.h: Delete.
1793         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1794         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1795         tm-ppcle-eabi.h.
1796
1797         * config/i386/nto.mh (NAT_FILE): Delete.
1798         * config/i386/nm-nto.h: Delete.
1799
1800         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1801         * config/m68k/tm-os68k.h: Ditto.
1802         * config/m68k/tm-monitor.h: Ditto.
1803         * config/m68k/tm-cisco.h: Ditto.
1804         * config/m68k/st2000.mt (TM_FILE): Delete.
1805         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1806         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1807         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1808         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1809
1810         * config/m68k/tm-st2000.h: Delete.
1811         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1812         * config/sparc/fbsd.mt (TM_FILE): Delete.
1813         * config/sparc/tm-fbsd.h: Delete.
1814
1815         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1816         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
1817         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1818
1819         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1820         GDB_TM_FILE and GDB_XM_FILE.
1821         * gdbarch.c: Re-generate.       
1822         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1823         quotes in macro definition.
1824         * configure.in: Re-generate.
1825
1826         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1827         validating architecture methods.
1828         * gdbarch.c: Re-generate.
1829         
1830         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1831         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
1832         GDB_MULTI_ARCH_PARTIAL.
1833         * gdbarch.h: Re-generate.
1834         
1835         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1836         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1837         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1838         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1839         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1840         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1841         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1842         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1843         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1844         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1845         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1846         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1847
1848 2004-09-01  Andrew Cagney  <cagney@gnu.org>
1849
1850         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1851         and main_func_highpc.
1852         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1853         * objfiles.c (init_entry_point_info, objfile_relocate): Update
1854         * nlmread.c (nlm_symfile_read): Update.
1855
1856 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
1857
1858         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1859         (mips_insn32_frame_cache): Inline call to find_proc_desc.
1860         (find_proc_desc): Remove dead code.
1861
1862 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
1863
1864         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1865
1866 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1867
1868         * observer.sh: Add struct so_list declaration.
1869         * Makefile.in: Add dependencies on observer.h for solib.c and
1870         breakpoint.c.
1871         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1872         function.
1873         (_initialize_breakpoint): Register 
1874         disable_breakpoints_in_unloaded_shlib as an observer of the 
1875         "solib unloaded" observation event.
1876         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1877         call decode_line_1 so unfound breakpoint errors are silent.
1878         * solib.c (update_solib_list): When a solib is discovered to have
1879         been unloaded by the program, notify all observers of the
1880         "solib unloaded" observation event.
1881
1882 2004-09-01  Andrew Cagney  <cagney@gnu.org>
1883
1884         * frame.c: Include "objfiles.h".
1885         (inside_main_func): New function.
1886         (get_prev_frame): Use new inside_main_func.
1887         * Makefile.in (frame.o): Update dependencies.
1888         * defs.h (inside_main_func): Delete declaration.
1889         * blockframe.c (inside_main_func): Delete function.
1890
1891 2004-08-31  Jim Blandy  <jimb@redhat.com>
1892
1893         * dwarf2read.c (is_vtable_name): New function, based on logic from
1894         read_structure_type, but passing the correct length to strncmp,
1895         and using 'sizeof' instead of 'strlen'.
1896         (read_structure_type): Call it.
1897
1898 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
1899
1900         * config/powerpc/aix.mh: Add comment.
1901
1902 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
1903
1904         * MAINTAINERS: Add self to Write-After-Approval.
1905
1906 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
1907
1908         * MAINTAINERS: Add self to Write-After-Approval.
1909
1910 2004-08-30  Andrew Cagney  <cagney@gnu.org>
1911
1912         Fix PR breakpoints/1757.
1913         * infrun.c (struct execution_control_state): Replace
1914         remove_breakpoints_on_following_step with
1915         step_after_step_resume_breakpoint.
1916         (init_execution_control_state): Update.
1917         (handle_inferior_event): For signals, when stepping off a
1918         breakpoint, set step_after_step_resume_breakpoint.  When
1919         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1920         (keep_going): Delete code handling
1921         remove_breakpoints_on_following_step.
1922
1923 2004-08-29  David Lecomber  <david@streamline-computing.com>
1924         
1925         Fix PR gdb/648
1926         * language.h (enum array_ordering): New enum.
1927         * language.h (struct language_defn): New la_array_ordering 
1928         attribute.
1929         * language.c (unknown_language_defn, auto_language_defn)
1930         (local_language_defn): Ditto.
1931         * ada-lang.c (ada_language_defn): Ditto.
1932         * c-lang.c (c_language_defn, cplus_language_defn)
1933         (asm_language_defn, minimal_language_defn): Ditto.
1934         * f-lang.c (f_language_defn): Ditto.
1935         * jv-lang.c (java_language_defn): Ditto.
1936         * m2-lang.c (f_language_defn): Ditto.
1937         * objc-lang.c (objc_language_defn): Ditto.
1938         * p-lang.c (pascal_language_defn): Ditto.
1939         * scm-lang.c (scm_language_defn): Ditto.
1940         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1941         oriented large to small in type structure.
1942         * dwarf2read.c (read_array_order): New function.
1943         (read_array_type): Use read_array_order to check row/column
1944         major ordering.
1945
1946 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
1947
1948         * target.c (target_resize_to_sections): Check
1949         current_target.to_sections for an old value when updating.
1950
1951 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
1952
1953         * procfs.c (dbx_link_bpt_addr): New static global variable.
1954         (dbx_link_shadow_contents): New static global variable.
1955         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1956         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1957         if we just hit it.
1958         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1959         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1960         from run to run.
1961         (procfs_create_inferior): Remove syssgi syscall-exit notifications
1962         after the inferior has been forked.
1963         (remove_dbx_link_breakpoint): New function.
1964         (dbx_link_addr): New function.
1965         (insert_dbx_link_bpt_in_file): New function.
1966         (insert_dbx_link_bpt_in_region): New function.
1967         (insert_dbx_link_breakpoint): New function.
1968         (proc_trace_syscalls_1): New function, extracted from
1969         proc_trace_syscalls.
1970         (proc_trace_syscalls): Replace extract code by call to
1971         proc_trace_syscalls_1.
1972         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1973         is no longer valid.
1974
1975 2004-08-25  Jim Blandy  <jimb@redhat.com>
1976
1977         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1978
1979 2004-08-25  Andrew Cagney  <cagney@gnu.org>
1980
1981         * infrun.c (struct execution_control_state): Delete field
1982         "stepping_through_sigtramp".
1983         (init_execution_control_state): Do not set same.
1984         (context_switch): Do not pass same to save_infrun_state and
1985         load_infrun_state.
1986         * gdbthread.h (struct thread_info): Delete field
1987         stepping_through_sigtramp.
1988         (save_infrun_state, load_infrun_state): Delete parameter
1989         stepping_through_sigtramp.
1990         * thread.c (load_infrun_state, save_infrun_state): Update.
1991
1992         * infrun.c: Re-indent.  Move expression operators to the beginning
1993         of the line.  Remove long disabled #if 0 code.
1994
1995 2004-08-24  Andrew Cagney  <cagney@gnu.org>
1996
1997         * doublest.h (floatformat_ieee_quad): Rename
1998         floatformat_ia64_quad.
1999         * doublest.c (floatformat_ieee_quad): Rename
2000         floatformat_ia64_quad.
2001         (_initialize_doublest): Update.
2002
2003 2004-08-24  Jim Blandy  <jimb@redhat.com>
2004
2005         * dwarf2expr.h (struct dwarf_expr_context): New members
2006         'num_pieces' and 'pieces', for returning the result of an
2007         expression that uses DW_OP_piece.
2008         (struct dwarf_expr_piece): New struct type.
2009         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2010         pieces.
2011         (free_dwarf_expr_context): Free pieces, if any.
2012         (add_piece): New function.
2013         (execute_stack_op): Implement DW_OP_piece.
2014         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2015         expression is a list of pieces, print an error message.
2016         (dwarf2_loc_desc_needs_frame): If the expression yields
2017         pieces, and any piece is in a register, then we need a frame.
2018
2019         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2020         the stack until we've decided what sort of result the evaluation
2021         has produced.  Use separate variables, with more specific names.
2022
2023 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
2024
2025         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2026         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2027         (arm_netbsd_init_abi_common): Register them.
2028
2029 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
2030
2031         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2032
2033         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2034         safe_frame_unwind_memory instead of target_read_memory.
2035
2036         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2037         Reorder includes.
2038         (fetch_register, store_register): Remove prototypes.
2039         (child_resume): Reorganize code and comments such that it is
2040         grouped a bit more logically.
2041         (attach): Explicitly compare errno against 0.
2042         (detach): Likewise.  Use perror_with_name instead of
2043         print_sys_errmsg.
2044         * Makefile.in (infptrace.o): Update dependencies.
2045
2046         * ia64-linux-nat.c: Update copyright year.
2047         (fetch_debug_register, store_debug_register)
2048         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2049         PTRACE_TYPE_ARG3.
2050         * config/ia64/nm-linux.h: Update copyright year.
2051          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2052
2053         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2054         from CORE_ADDR to struct frame_info *.  Use
2055         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2056         (amd64_linux_sigtramp_p): Adjust for changed signature of
2057         and64_linux_sigtramp_start
2058
2059         * gdb_ptrace.h: GNU/Linux.
2060
2061         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2062         Remove defines.
2063
2064         * infptrace.c: Include "gdb_assert.h".
2065         (PTRACE_XFER_TYPE): Remove define.
2066         (offsetof): Only define if U_REGS_OFFSET isn't defined.
2067         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2068         Tweak comment.
2069         (fetch_inferior_registers, store_inferior_registers): Remove
2070         redundant culry braces.  Tweak comment.  s/regno/regnum.
2071         * Makefile.in (infptrace.o): Update dependencies.
2072
2073         * configure.in: Change test for return type of ptrace to default
2074         to `long' instead of `int'.
2075         * configure: Regenerate.        
2076
2077 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
2078
2079         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2080
2081         * configure.in: Check for ttrace function.
2082         * configure, config.in: Regenerate.     
2083
2084         * gdb_ptrace.h: New file.
2085         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2086         <sys/ptrace.h>.
2087         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2088         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2089         (attach): Don't define PT_ATTACH.
2090         (detach): Don't define PT_DETACH.
2091         * Makefile.in (gdb_ptrace_h): New variable.
2092         (infptrace.o): Update dependencies.
2093
2094 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
2095
2096         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2097         instead of `int' if not already defined.
2098         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2099         PTRACE_TYPE_ARG3.
2100         * infptrace.c (call_ptrace): Revert change that replaced
2101         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2102
2103 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
2104
2105         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2106         Remove defines.
2107
2108         * linux-nat.c (kill_inferior): Add missing third and fourth
2109         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
2110
2111         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2112         PTRACE_TYPE_RET.
2113
2114         * proc-why.c (proc_prettyfprint_why): Fix format string.
2115
2116         * solib-osf.c (osf_current_sos): Remove unsused label.
2117
2118         * configure.in: Add <ncurses/ncurses.h> to the list of possible
2119         curses headers.
2120         * configure, config.in: Regenerate.     
2121         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2122         <ncurses/ncurses.h>.
2123
2124         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2125         * config/nm-nbsd.h: Update copyright year.
2126         (PTRACE_ARG3_TYPE): Remove define.
2127
2128         * sparc-nat.c (fetch_inferior_registers)
2129         (store_inferior_registers, sparc_xfer_wcookie): 
2130         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2131
2132         * alphabsd-nat.c (fetch_inferior_registers):
2133         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2134         PTRACE_TYPE_ARG3.
2135         * amd64bsd-nat.c (fetch_inferior_registers)
2136         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2137         PTRACE_TYPE_ARG3.
2138         * armnbsd-nat.c: Update copyright year.
2139         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2140         (store_register, store_regs, store_fp_register, store_fp_regs):
2141         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2142         * hppabsd-nat.c (fetch_inferior_registers)
2143         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2144         PTRACE_TYPE_ARG3.
2145         * i386bsd-nat.c (fetch_inferior_registers)
2146         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2147         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2148         * m68kbsd-nat.c (fetch_inferior_registers)
2149         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2150         PTRACE_TYPE_ARG3.
2151         * m88kbsd-nat.c (fetch_inferior_registers)
2152         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2153         PTRACE_TYPE_ARG3.
2154         * mipsnbsd-nat.c: Update copyright year.
2155         (fetch_inferior_registers, store_inferior_registers):
2156         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2157         * ns32knbsd-nat.c: Update copyright year.
2158         (fetch_inferior_registers, store_inferior_registers):
2159         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2160         * ppcnbsd-nat.c (fetch_inferior_registers):
2161         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2162         PTRACE_TYPE_ARG3.
2163         * ppcobsd-nat.c (fetch_inferior_registers):
2164         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2165         PTRACE_TYPE_ARG3.
2166         * shnbsd-nat.c: Update copyright year.
2167         (fetch_inferior_registers, store_inferior_registers):
2168         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2169         * vaxbsd-nat.c (fetch_inferior_registers)
2170         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2171         PTRACE_TYPE_ARG3.
2172         
2173         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2174         PTRACE_TYPE_ARG3.
2175         * infptrace.c (call_ptrace, child_resume, attach, detach)
2176         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2177         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2178         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2179         PTRACE_TYPE_ARG3.
2180
2181 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
2182
2183         * defs.h: Remove out-of-date comment.
2184         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2185         [!GETENV_PROVIDED] (getenv): Remove prototype.
2186
2187         * standalone.c: Remove file.
2188         * Makefile.in (standalone.o): Remove dependency.
2189
2190         * i386-linux-nat.c (dummy_sse_values): Remove function and
2191         prototype.
2192         (i386_linux_dr_get): Fix typo in comment.
2193         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2194
2195         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2196
2197         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2198         from declaration.
2199         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2200         from definition.
2201
2202 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
2203
2204         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2205         parenthesis in definition.
2206         * configure: Regenerated.
2207
2208 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
2209
2210         * PROBLEMS: Mention build/1411.
2211
2212 2004-08-09  Robert Millan  <robertmh@gnu.org>
2213
2214         Committed by Nathanael Nerode.
2215         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2216         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2217
2218 2004-08-12  Andrew Cagney  <cagney@gnu.org>
2219
2220         * NEWS: Mention fixes in GDB 6.2.1.
2221         * PROBLEMS: Remove mention of mips-irix.
2222
2223 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2224
2225         * config/powerpc/xm-aix.h: Delete.
2226         * config/powerpc/aix.mh (MH_FILE): Remove.
2227         * config/powerpc/aix432.mh (MH_FILE): Remove.
2228
2229 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2230
2231         * config/powerpc/aix.mh: Remove obsolete comment.
2232         * config/powerpc/aix432.mh: Likewise.
2233
2234 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2235
2236         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2237
2238 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2239
2240         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2241         this file is now empty.
2242         * config/xm-aix4.h: Remove, this file is no longer included
2243         anywhere.
2244
2245 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2246
2247         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2248         that file is now empty.
2249         (termdef): Remove prototype, function no longer used.
2250
2251 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2252
2253         * doc/gdbint.texinfo (Host Definition): Remove documentation
2254         for USE_O_NOCTTY, no longer used.
2255         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2256         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2257
2258 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2259
2260         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2261         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2262         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2263
2264 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
2265
2266         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2267         instead of FIVE_ARG_PTRACE.
2268
2269         * inflow.c (O_NOCTTY): Define to zero if not already defined.
2270         (new_tty): Use O_NOCTTY unconditionally.
2271
2272 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2273
2274         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
2275         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
2276         fflush on stdout.
2277
2278 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
2279
2280         * xcoff_symfile_finish: Replace last call to xmfree by call
2281         to xfree.
2282
2283 2004-08-10  Andrew Cagney  <cagney@gnu.org>
2284
2285         * main.c (captured_main): Delete call to init_malloc.
2286         * defs.h (init_malloc): Delete declaration.
2287         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2288         (init_malloc): Delete functions.
2289
2290         * defs.h (xmfree): Delete.
2291         * utils.c (xmfree): Delete function.
2292         (xfree): Inline calls to xmfree and mfree.
2293         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2294         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2295         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2296         * somread.c (som_symfile_finish): Ditto.
2297         * objfiles.c (allocate_objfile, free_objfile): 
2298         * nlmread.c (nlm_symfile_finish): Ditto.
2299         * hpread.c (hpread_symfile_finish): Ditto.
2300         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2301         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2302         * coffread.c (coff_symfile_finish): Ditto.
2303
2304         * defs.h (xmcalloc): Delete declaration.
2305         * utils.c (xmcalloc): Delete.
2306         (xcalloc): Inline calls to xmcalloc and mcalloc.
2307         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2308         xcalloc and xfree.
2309         * symtab.c (create_demangled_names_hash): Ditto.
2310
2311         * defs.h (xmrealloc): Delete.
2312         * utils.c (xmrealloc): Delete.
2313         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2314         * symmisc.c (extend_psymbol_list): Use xrealloc.
2315         * source.c (find_source_lines): Ditto.
2316         * hpread.c (hpread_lookup_type): Ditto.
2317         * dbxread.c (add_bincl_to_list): Ditto.
2318
2319         * utils.c (xmmalloc): Delete.
2320         (xmalloc): Inline xmmalloc and mmalloc calls.
2321         (msavestring): Use xmalloc.
2322         * defs.h (xmmalloc): Delete declaration.
2323         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2324         xmmalloc.
2325         * symmisc.c (extend_psymbol_list): Ditto.
2326         * symfile.c (init_psymbol_list): Ditto.
2327         * source.c (find_source_lines): Ditto.
2328         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2329         * elfread.c (elf_symtab_read): Ditto.
2330         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2331         * coffread.c (coff_symfile_init): Ditto.
2332
2333 2004-08-10  David Carlton  <carlton@bactrian.org>
2334
2335         * MAINTAINERS: Remove David Carlton from c++ testsuite
2336         maintainers.
2337
2338 2004-08-10  Jerome Guitton  <guitton@gnat.com>
2339
2340         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2341         print a line feed before the prompt.
2342
2343 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2344
2345         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2346
2347 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
2348
2349         General cleanup of the AIX xm include file:
2350         * config/xm-aix4.h (fd_set): Remove undefine.
2351         Remove include of <sys/select.h>.
2352         (HAVE_TERMIO): Remove define.
2353         (USG): Likewise.
2354         (NULL): Remove redefine.
2355         (alloca): Remove #pragma.
2356         (vfork): Remove define.
2357         (termdef): Remove.
2358         (SIGWINCH_HANDLER): Remove.
2359         (SIGWINCH_HANDLER_BODY): Remove.
2360
2361 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2362
2363         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2364         GDB_OSABI_OPENBSD_ELF.
2365
2366 2004-08-07  Robert Millan  <robertmh@gnu.org>
2367
2368         * bsd-kvm.c: Check for nlist.h before including it.
2369
2370 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2371
2372         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2373         sigcontext' offset consistency checks for ancient BSD.
2374
2375         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2376
2377         * configure.in: Check for <sys/types.h>.  Check return and
2378         argument types of ptrace.
2379         * configure, config.in: Regenerate.     
2380
2381 2004-08-09  Jim Blandy  <jimb@redhat.com>
2382
2383         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2384         rs6000_register_sim_regno): Doc fixes.
2385
2386 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
2387
2388         * mips-tdep.c: Include "floatformat.h".
2389         (n32n64_floatformat_always_valid): New function.
2390         (floatformat_n32n64_long_double_big): New constant.
2391         (mips_gdbarch_init): Set size and format of long double
2392         for N32 and N64 ABIs.
2393         * Makefile.in (mips-tdep.o): Update dependencies.
2394
2395 2004-08-08  Andrew Cagney  <cagney@gnu.org>
2396
2397         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
2398         print.  Improve script's error messages.
2399         * gdbarch.h: Re-generate.
2400
2401         * gdbarch.sh (pformat): New function.
2402         (float_format, double_format, long_double_format): List with bit
2403         members.  Use pformat when printing.
2404         * gdbarch.c, gdbarch.h: Re-generate.
2405         
2406 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
2407
2408         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2409         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2410         (ppcnbsd_supply_pcb): New function.
2411         (_initialize_ppcnbsd_nat): New prototype and function.
2412         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2413         (LOADLIBES): New variable.
2414         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2415
2416 2004-08-08  Andrew Cagney  <cagney@gnu.org>
2417
2418         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2419         (builtin_type_ieee_double, builtin_type_ia64_quad)
2420         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2421         BE/LE floating-point types.
2422         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2423         (builtin_type_ieee_double, builtin_type_ia64_quad)
2424         (builtin_type_ia64_spill): Declare.
2425         * doublest.c (_initialize_doublest, floatformat_ieee_single)
2426         (floatformat_ieee_double, floatformat_arm_ext)
2427         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2428         of LE/BE floatformats.  
2429         * doublest.h: (struct floatformat, floatformat_ieee_single)
2430         (floatformat_ieee_double, floatformat_arm_ext)
2431         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2432
2433 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
2434
2435         * i386gnu-nat.c (gnu_store_registers): Fix typo.
2436
2437         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2438         instead of regcache_raw_supply when storing the registers.
2439
2440         * i386gnu-nat.c: Update copyright year.
2441         (gnu_store_registers): Don't use deprecated_registers and
2442         deprecated_registers_valid.  Use regcache_valid_p and
2443         regcache_raw_supply instead.
2444
2445         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2446         frame_pc_unwind.
2447
2448         * procfs.c (procfs_pid_to_str): Remove redundant and unused
2449         variables.  Incapitalized "process".
2450
2451         * configure.in: Add cursesX to the list of possible curses libs.
2452         Add cursesX.h to the list of possible curses headers. 
2453         * configure, config.in: Regenerate.     
2454
2455 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
2456
2457         * configure.in: Test for struct lwp in <sys/lwp.h>.
2458         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2459         the offset of l_addr in struct lwp.
2460
2461 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
2462
2463         * bsd-kvm.c: Include "gdbcore.h"
2464         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2465
2466 2004-08-07  Andrew Cagney  <cagney@gnu.org>
2467
2468         * gdbtypes.c (build_flt, build_complex): New functions.
2469         (gdbtypes_post_init): Use.
2470
2471         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2472
2473         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2474         through to builtin_type_uint128.
2475
2476         * c-exp.y: Use builtin_type function to obtain builtin types.
2477
2478         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2479         builtin_uint128.
2480         * gdbtypes.c (gdbtypes_post_init): Update.
2481         (build_gdbtypes): Move initialization of builtin_type_int0
2482         through to builtin_type_uint128 from here ...
2483         (_initialize_gdbtypes): ... to here.
2484         * d10v-tdep.c (d10v_register_type): Update.
2485
2486         * doublest.c: Update copyright.
2487         (floatformat_from_length): Call error when floatformat is NULL.
2488         (extract_floating_by_length): Remove NULL fmt check.
2489         (store_floating_by_length): Ditto.
2490
2491 2004-08-07  Andrew Cagney  <cagney@gnu.org>
2492
2493         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2494         that the register is valid.
2495
2496 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
2497
2498         * i386-linux-tdep.c (i386_linux_sigtramp_start)
2499         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2500         struct frame_info *.  Use safe_frame_unwind_memory instead of
2501         deprecated_read_memory_nobpt.
2502         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2503         changed signature of i386_linux_sigtramp_start and
2504         i386_linux_rt_sigtramp_start.
2505
2506         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2507         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
2508         instead of deprecated_read_memory_nobpt.
2509         (i386nbsd_sigtramp_p): Adjust for changed signature of
2510         i386nbsd_sigtramp_offset.
2511
2512         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2513         safe_frame_unwind_memory instead of target_read_memory.
2514
2515         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2516         !NO_SYS_FILE.
2517         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2518         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2519         (_initialize_kernel_u_addr): Remove prototype and function.
2520         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2521         !NO_SYS_FILE.
2522         * xcoffread.c: Likewise.
2523
2524 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
2525
2526         * vax-nat.c: New file.
2527         * vaxbsd-nat.c: Tweak comment.
2528         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2529         vaxnbsd-tdep.c.
2530         (vax-nat.o): New dependency.
2531         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2532         (vax-*-ultrix2*): Remove.
2533         * config/vax/vax.mh: New file.
2534         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2535         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2536         (vax_register_u_addr): New prototype.
2537         (REGISTER_U_ADDR): Define using vax_register_u_addr.
2538         * config/vax/vaxult2.mh: Remove file.
2539         * config/vax/vaxult.mh: Remove file.
2540         * config/vax/vaxbsd.mh: Remove file.
2541         * config/vax/vax.mt (TM_FILE): Remove.
2542         * config/vax/tm-vaxbsd.h: Remove file.
2543
2544 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
2545
2546         * aix-thread.c (get_signaled_thread): New function.
2547         (iter_trap): Delete, no longer used.
2548         (iter_tid): New function.
2549         (pd_update): Find the thread that received the SIGTRAP signal
2550         by first locating the kernel thread, and then finding its
2551         associated thread.
2552
2553 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
2554
2555         * lin-lwp.c (child_wait): Continue inferior after processing
2556         PTRACE_EVENT_CLONE event.
2557
2558 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
2559
2560         * MAINTAINERS: Add self to Write-After-Approval.
2561
2562 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
2563
2564         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2565         libunwind-xxxx.so" where xxxx is UNW_TARGET.
2566
2567 2004-08-05  Andrew Cagney  <cagney@gnu.org>
2568
2569         * config/xm-sysv4.h: Delete file.
2570         * config/mips/xm-irix5.h: Delete file.
2571         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2572         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2573         * config/ia64/xm-aix.h: Delete file.
2574         * config/ia64/aix.mh (XM_FILE): Delete.
2575         * config/pa/xm-hppah.h: Delete file.
2576         * config/pa/hpux11w.mh (XM_FILE): Delete.
2577         * config/pa/hpux11.mh (XM_FILE): Delete.
2578         * config/pa/hpux1020.mh (XM_FILE): Delete.
2579         * config/pa/hppahpux.mh (XM_FILE): Delete.
2580
2581         * config/alpha/xm-alphalinux.h: Delete file.
2582         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2583         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2584         * config/alpha/xm-alphaosf.h: Delete file.
2585         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2586         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2587         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2588         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2589
2590         * config/i386/xm-i386v.h: Delete file.
2591         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2592         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2593         * config/i386/xm-i386sco.h: Delete file.
2594         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2595         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2596         * config/i386/xm-i386v4.h: Delete file.
2597         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2598         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2599         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2600         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2601
2602         * config/vax/xm-vax.h: Delete file.
2603         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2604         * config/vax/xm-vaxult2.h: Delete file.
2605         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2606         * config/vax/vaxult2.mh (XM_FILE): Delete.
2607         * config/vax/xm-vaxult.h: Delete file.
2608         * config/vax/vaxult.mh (XM_FILE): Delete.
2609         * config/vax/xm-vaxbsd.h: Delete file.
2610         * config/vax/vaxbsd.mh (XM_FILE): Delete.
2611
2612         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2613         * gdbarch.h, gdbarch.c: Re-generate.
2614         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2615         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2616         * frame.h: Delete deprecated_read_fp from comments.
2617         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2618         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2619
2620 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
2621
2622         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2623         trampoline in OpenBSD 3.5-current.
2624
2625         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2626         SSE registers.
2627
2628         * Makefile.in: Remove embedded page breaks.
2629
2630 2004-08-04  Jim Blandy  <jimb@redhat.com>
2631
2632         * regcache.c (regcache_raw_read): Assert that, after calling
2633         target_fetch_registers, the register we're reading is cached.
2634
2635         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2636         a call to 'internal_error', with a more helpful error message.
2637         * rs6000-tdep.c (e500_pseudo_register_read,
2638         e500_pseudo_register_write, rs6000_store_return_value): Same.
2639
2640 2004-08-04  Andrew Cagney  <cagney@gnu.org>
2641
2642         * Makefile.in: Update dependencies.
2643
2644 2004-08-04  Jim Blandy  <jimb@redhat.com>
2645
2646         Change the layout of the PowerPC E500 raw register cache to allow
2647         the lower 32-bit halves of the GPRS to be their own raw registers,
2648         not pseudoregisters.
2649         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2650         add ppc_ev0_upper_regnum flag.
2651         * rs6000-tdep.c: #include "reggroups.h".
2652         (spe_register_p): Recognize the ev upper half registers as SPE
2653         registers.
2654         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2655         registers.
2656         (e500_move_ev_register): New function.
2657         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2658         vector registers are the pseudo-registers now, formed by splicing
2659         together the gprs and the upper-half registers.
2660         (e500_register_reggroup_p): New function.
2661         (P): Macro deleted.
2662         (P8, A4): New macro.
2663         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2664         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2665         macros.
2666         (registers_e500): Rearrange register set so that the raw register
2667         set contains 32-bit GPRs and upper-half registers, and the SPE
2668         vector registers become pseudo-registers.
2669         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2670         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
2671         register numbers are now the same for the E500 as they are for
2672         other PowerPC variants.  Register e500_register_reggroup_p as the
2673         register group function for the E500.
2674         * Makefile.in (rs6000-tdep.o): Update dependencies.
2675
2676         Adapt PPC E500 native support to the new raw regcache layout.
2677         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2678         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2679         (fetch_spe_register, store_spe_register): Handle fetching/storing
2680         all the SPE registers at once, if regno == -1.  These now take
2681         over the job of fetch_spe_registers and store_spe_registers.
2682         (fetch_spe_registers, store_spe_registers): Deleted.
2683         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2684         unconditionally; they're always raw.  Fetch/store SPE upper half
2685         registers, if present, instead of ev registers.
2686         (fetch_register, store_register): Remove sanity checks: gprs are
2687         never pseudo-registers now, so we never need to even mention any
2688         registers that are ever pseudoregisters.
2689
2690         Use a fixed register numbering when communicating with the PowerPC
2691         simulator.
2692         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2693         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2694         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
2695         New functions.
2696         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
2697         init_sim_regno_table.
2698         * Makefile.in (gdb_sim_ppc_h): New variable.
2699         (rs6000-tdep.o): Update dependencies.
2700
2701 2004-08-02  Andrew Cagney  <cagney@gnu.org>
2702
2703         * cris-tdep.c (cris_register_size): Restore function, still used
2704         locally.
2705
2706         * gdbarch.sh (deprecated_target_read_fp)
2707         (deprecated_frame_locals_address, deprecated_frame_args_address)
2708         (deprecated_frame_chain_valid, deprecated_frame_chain)
2709         (deprecated_init_extra_frame_info, deprecated_pop_frame)
2710         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2711         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2712         * gdbarch.h, gdbarch.c: Re-generate.
2713         * regcache.c (deprecated_read_fp): Do not call
2714         DEPRECATED_TARGET_READ_FP_P.
2715         * infcmd.c (default_print_registers_info): Do not call
2716         DEPRECATED_DO_REGISTERS_INFO.
2717         * frame-base.c (default_frame_locals_address): Do not call
2718         DEPRECATED_FRAME_LOCALS_ADDRESS.
2719         (default_frame_args_address): Do not call
2720         DEPRECATED_FRAME_ARGS_ADDRESS.
2721
2722         * gdbarch.sh (deprecated_register_raw_size)
2723         (deprecated_register_virtual_size:int): Delete.
2724         * gdbarch.h, gdbarch.c: Re-generate.
2725         * cris-tdep.c (cris_register_size): Delete.
2726         (cris_gdbarch_init): Update.
2727         * alpha-tdep.c (alpha_register_raw_size)
2728         (alpha_register_virtual_size): Delete.
2729         (alpha_gdbarch_init): Update.
2730
2731         * gdbarch.sh (deprecated_register_virtual_type)
2732         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2733         (deprecated_dummy_write_sp): Delete.
2734         * gdbarch.h, gdbarch.c: Re-generate.
2735
2736         * gdbarch.sh (deprecated_register_bytes): Delete.
2737         * gdbarch.h, gdbarch.c: Re-generate.
2738         * regcache.c (deprecated_register_bytes): New function.
2739         * regcache.h (deprecated_register_bytes): Declare.
2740         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2741         * v850-tdep.c (v850_gdbarch_init): Update.
2742         * sh64-tdep.c (sh64_gdbarch_init): Update.
2743         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2744         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2745         * mcore-tdep.c (mcore_gdbarch_init): Update.
2746         * cris-tdep.c (cris_gdbarch_init): Update.
2747         * arm-tdep.c (arm_gdbarch_init): Update.
2748         * remote.c (init_remote_state): Update.
2749         * remote-vx.c (vx_prepare_to_store): Update.
2750         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2751         * irix5-nat.c (fetch_core_registers): Update.
2752         * cris-tdep.c (cris_register_bytes_ok): Update.
2753         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2754
2755         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2756         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2757         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2758         (mips_insn16_frame_base_address, mips_insn16_frame_base)
2759         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2760         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2761         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2762         (mips_insn32_frame_base_address, mips_insn32_frame_base)
2763         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2764         with mips_insn16 and mips_insn32.
2765
2766         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2767         * rs6000-tdep.c (rs6000_push_dummy_call)
2768         (rs6000_extract_return_value): Use register_size.
2769         * xstormy16-tdep.c (xstormy16_get_saved_register) 
2770         (xstormy16_extract_return_value): Ditto.
2771         * valops.c (value_assign): Ditto.
2772         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
2773         * v850-tdep.c (v850_extract_return_value): Ditto.
2774         * tracepoint.c (collect_symbol): Ditto.
2775         * target.c (debug_print_register): Ditto.
2776         * stack.c (frame_info): Ditto.
2777         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2778         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2779         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2780         (store_register_using_P): Ditto.
2781         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2782         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2783         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2784         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2785         * regcache.c (deprecated_read_register_bytes) 
2786         (deprecated_write_register_bytes, read_register) 
2787         (write_register): Ditto.
2788         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2789         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2790         * monitor.c (monitor_supply_register, monitor_fetch_register) 
2791         (monitor_store_register): Ditto.
2792         * mn10300-tdep.c (mn10300_pop_frame_regular) 
2793         (mn10300_print_register): Ditto.
2794         * mipsv4-nat.c (fill_fpregset): Ditto.
2795         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
2796         (mips64_fill_fpregset): Ditto.
2797         * mi/mi-main.c (register_changed_p, get_register)
2798         (mi_cmd_data_write_register_values): Ditto.
2799         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
2800         * irix5-nat.c (fill_gregset, fetch_core_registers): 
2801         * infrun.c (write_inferior_status_register): Ditto.
2802         * infptrace.c (fetch_register, store_register): Ditto.
2803         * infcmd.c (default_print_registers_info): Ditto.
2804         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2805         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2806         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2807         * hpux-thread.c (hpux_thread_fetch_registers)
2808         (hpux_thread_store_registers): Ditto.
2809         * hppah-nat.c (store_inferior_registers, fetch_register): 
2810         * findvar.c (value_from_register): Ditto.
2811         * dve3900-rom.c (fetch_bitmapped_register): 
2812         * cris-tdep.c (cris_gdbarch_init): Ditto.
2813         * alpha-tdep.h: Ditto.
2814         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2815
2816         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2817         DEPRECATED_REGISTER_RAW_SIZE from comments.
2818         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2819         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2820         DEPRECATED_REGISTER_RAW_SIZE.
2821         * findvar.c (value_of_register): Simplify by assuming that the
2822         registers raw and virtual sizes are identical.
2823         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2824         comment.
2825         * arch-utils.c (generic_register_size): Simplify by assuming
2826         register_type.
2827
2828         * regcache.c (legacy_read_register_gen, real_register) 
2829         (legacy_write_register_gen): Delete, not used.
2830
2831         * regcache.c (struct regcache_descr): Delete legacy_p.
2832         (init_legacy_regcache_descr): Delete function.
2833         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2834         Do not use deprecated register functions.
2835         (regcache_raw_read, deprecated_write_register_gen):
2836         (deprecated_read_register_gen, regcache_raw_write): Delete code
2837         predicated on legacy_p.
2838         (register_size): Delete check against register raw size.
2839
2840         * cris-tdep.c (cris_register_type): Replace
2841         cris_register_virtual_type.
2842         (cris_gdbarch_init): Update, set register_type.
2843
2844         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2845         * gdbarch.h, gdbarch.c: Re-generate.
2846         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
2847         (arm_gdbarch_init) Do not set frameless function invocation.
2848         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2849         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2850         * frv-tdep.c (frv_frameless_function_invocation): Delete.
2851         (frv_gdbarch_init): Do not set frameless function invocation.
2852         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2853         * sh-tdep.c (sh_gdbarch_init): Ditto.
2854         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2855         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2856         * avr-tdep.c (avr_gdbarch_init): Ditto.
2857
2858         * blockframe.c (legacy_frame_chain_valid): Delete function.
2859
2860         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2861         and pc.  Update comments.
2862         (pc_in_dummy_frame): Delete function.
2863         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2864         use the "id".
2865         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2866         call_hi, top and pc, use the id.
2867         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2868
2869         * dummy-frame.c: Include "gdb_string.h".
2870         (generic_save_call_dummy_addr, generic_push_dummy_frame)
2871         (generic_save_dummy_frame_tos): Delete.
2872         (dummy_frame_push): New function, replaces above.
2873         * dummy-frame.h: Update copyright.
2874         (dummy_frame_push): Declare.
2875         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2876         (generic_save_call_dummy_addr): Delete declarations.
2877         * infcall.c: Include "dummy-frame.h".
2878         (call_function_by_hand): Add locals caller_regcache,
2879         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
2880         with call to frame_save_as_regcache plus cleanup.  Delete calls to
2881         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2882         Move clear_proceed_status to just before the resume, add call to
2883         dummy_frame_push (discard cleanup).
2884         * Makefile.in (infcall.o): Add $(dummy_frame_h).
2885         (dummy-frame.o): Add $(gdb_string_h).
2886
2887 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2888
2889         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2890         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2891         * dummy-frame.c (find_dummy_frame): Delete.
2892         (struct dummy_frame_cache, dummy_frame_sniffer)
2893         (dummy_frame_prev_register, dummy_frame_this_id)
2894         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2895         frame unwinder using a dummy_frame_cache.
2896
2897 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2898
2899         * frame.h (frame_save_as_regcache): Declare.
2900         * frame.c (frame_save_as_regcache): New function.
2901         (do_frame_read_register): Replace do_frame_unwind_register.
2902         (frame_pop): Use frame_save_as_regcache.
2903         * dummy-frame.c (generic_push_dummy_frame): Use
2904         frame_save_as_regcache.
2905
2906 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
2907
2908         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2909         file as included until we record the first line in the linetable.
2910
2911 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2912
2913         * frame.h (deprecated_pop_dummy_frame)
2914         (deprecated_read_register_dummy)
2915         (deprecated_generic_find_dummy_frame): Delete.
2916         * dummy-frame.c (deprecated_generic_find_dummy_frame)
2917         (deprecated_read_register_dummy)
2918         (deprecated_find_dummy_frame_regcache)
2919         (discard_innermost_dummy)
2920         (deprecated_pop_dummy_frame): Delete.
2921         (dummy_frame_this_id): Simplify.
2922         (struct dummy_frame): Delete "fp" and "sp".
2923         (find_dummy_frame): Simplify.
2924         (generic_push_dummy_frame): Do not set "fp" or "sp".
2925         (fprint_dummy_frames): Do not print "fp" and "sp"
2926
2927 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
2928
2929         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2930         (struct i386_insn): New structure.
2931         (i386_match_insn): New function.
2932         (i386_frame_setup_skip_insns): New variable.
2933         (i386_analyze_frame_setup): Change to use i386_match_insn and the
2934         array i386_frame_setup_insns of instructions that should be
2935         skipped inside the frame setup sequence.
2936
2937 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2938
2939         * frame.h (deprecated_frame_xmalloc_with_cleanup)
2940         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2941         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2942         * stack.c (frame_info): Delete references to
2943         DEPRECATED_FRAME_INIT_SAVED_REGS and
2944         deprecated_get_frame_saved_regs.
2945         * frame.c (struct frame_info): Delete saved_regs and extra_info.
2946         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2947         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2948         (frame_unwind_register_signed)
2949         (frame_unwind_register_unsigned)
2950         (frame_unwind_unsigned_register): Use register_size.
2951         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2952         (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
2956         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2957         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2958         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2959         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2960
2961         * infcall.c (call_function_by_hand): Do not use
2962         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2963         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2964         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2965         DEPRECATED_STACK_ALIGN.
2966
2967 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2968
2969         Committed by Andrew Cagney.
2970         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2971
2972 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2973
2974         * mips-tdep.c (mips16_frame_cache)
2975         (mips16_frame_this_id, mips16_frame_prev_register)
2976         (mips16_frame_unwind, mips16_frame_sniffer)
2977         (mips16_frame_base_address, mips16_frame_base)
2978         (mips16_frame_base_sniffer, mips32_frame_cache)
2979         (mips32_frame_this_id, mips32_frame_prev_register)
2980         (mips32_frame_unwind, mips32_frame_sniffer)
2981         (mips32_frame_base_address, mips32_frame_base)
2982         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2983         separate heuristic mips16 and mips32 unwinders.
2984         (mips_stub_frame_cache, mips_stub_frame_this_id)
2985         (mips_stub_frame_prev_register)
2986         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2987         (mips_stub_frame_base_address, mips_stub_frame_base)
2988         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2989         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2990         match true mdebug frames.
2991         (non_heuristic_proc_desc): Add forward declaration.
2992
2993 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2994
2995         * config/mips/tm-irix6.h: Delete file.
2996         * config/mips/tm-irix5.h: Delete file.
2997         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2998         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2999
3000         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3001         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3002         * config/nm-gnu.h (NO_CORE_OPS): Delete.
3003         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3004         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3005         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3006         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3007         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3008         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3009         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3010         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3011         (TARGET_SIGNAL_RAW_VALUES): Delete.
3012         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3013         Delete.
3014         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
3015         (TARGET_HW_WATCH_LIMIT): Delete.
3016         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3017         * minimon.h: Delete file.
3018
3019         * trad-frame.c (trad_frame_get_this_base)
3020         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3021         functions.
3022         * trad-frame.h (trad_frame_set_this_base)
3023         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3024
3025 2004-07-31  Andrew Cagney  <cagney@gnu.org>
3026
3027         * trad-frame.c (trad_frame_get_prev_register): Rename
3028         trad_frame_get_prev_register.
3029         * vax-tdep.c (vax_frame_prev_register): Update.
3030         * trad-frame.h: Update.
3031         * trad-frame.c (trad_frame_get_register): Update.
3032         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3033         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3034         Update.
3035         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3036         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3037         Update.
3038         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3039         Update.
3040         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3041         Update.
3042         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3043         Update.
3044         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3045         Update.
3046         * s390-tdep.c (s390_frame_prev_register) 
3047         (s390_stub_frame_prev_register) 
3048         (s390_sigtramp_frame_prev_register): Update.
3049         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3050         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3051         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3052         * m88k-tdep.c (m88k_frame_prev_register) 
3053         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
3054         * m32r-tdep.c (m32r_frame_prev_register): Update.
3055         * hppa-tdep.c (hppa_frame_prev_register_helper) 
3056         * frv-tdep.c (frv_frame_prev_register): Update.
3057         * d10v-tdep.c (d10v_frame_prev_register): Update.
3058         * cris-tdep.c (cris_frame_prev_register): Update.
3059         * avr-tdep.c (avr_frame_prev_register): Update.
3060         * arm-tdep.c (arm_prologue_prev_register) 
3061         (arm_sigtramp_prev_register): Update.
3062
3063 2004-07-31  Andrew Cagney  <cagney@gnu.org>
3064
3065         * frame.h (legacy_saved_regs_unwind)
3066         (legacy_frame_chain_valid, legacy_frame_p)
3067         (enum frame_type): Delete UNKNOWN_FRAME.
3068         * dummy-frame.c (dummy_frame_this_id): Simplify.
3069         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3070         * frame.c (struct frame_info): Delete the field "type".
3071         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3072         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3073         (legacy_saved_regs_unwind, legacy_frame_p)
3074         (frame_type_from_pc): Delete.
3075         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3076         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3077
3078 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
3079
3080         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3081         indentation.
3082
3083         * mips-nat.c: Remove file.
3084         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3085         (mips-nat.o): Remove dependency.
3086
3087         * infptrace.c: Update copyright year.
3088         (fetch_register): Pass NULL in regcache_raw_supply call instead of
3089         explicitly setting the buffer to all zeroes.
3090
3091         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3092         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3093
3094 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3095
3096         * GDB 6.2 released from gdb_6_2-branch.
3097
3098 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
3099
3100         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3101
3102         * exec.c (exec_file_attach):
3103         * nto-tdep.c (nto_find_and_open_solib):
3104         * pa64solib.c (pa64_solib_sizeof_symbol_table):
3105         * solib.c (solib_open):
3106         * somsolib.c (som_solib_sizeof_symbol_table):
3107         * source.c (is_regular_file, openp, open_source_file):
3108         * symfile.c (symfile_bfd_open):
3109         * wince.c (upload_to_device): Differentiate between the search for
3110         binary and source files.
3111
3112 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3113
3114         * complaints.c (_initialize_complaints): Pass NULL to
3115         add_setshow_zinteger_cmd for help_doc.
3116         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3117
3118 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3119
3120         Fix PR i18n/761.
3121         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3122         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3123         $(PACKAGE).pot and update-po.
3124         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3125         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3126         (update-po): New rules.
3127         (localedir): Define using autoconf.
3128         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3129         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3130         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3131         * configure.in: Generate CATALOGS and LINGUAS from contents of
3132         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
3133         * configure: Re-generate.
3134         * po/gdbtext: New file
3135         
3136 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3137
3138         * MAINTAINERS: Reorder Write After Approval list in alphabetical
3139         order.
3140
3141 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
3142
3143         * dwarf2read.c (read_file_scope): Set producer if attribute 
3144         present.
3145         (struct dwarf2_cu): Added new member producer.
3146
3147 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3148
3149         * inflow.c (kill_command): release file handles in BFD.
3150         * exec.c (exec_file_attach): Ditto.
3151         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3152
3153 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3154
3155         * PROBLEMS (mips-irix): Note that it is broken.
3156
3157 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3158
3159         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3160         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3161
3162         * config/xm-nbsd.h: Delete file.
3163         * config/arm/xm-nbsd.h: Delete file.
3164         * config/i386/xm-nbsd.h: Delete file.
3165         * config/ns32k/xm-nbsd.h: Delete file.
3166         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3167         * config/i386/nbsdelf.mh (XM_FILE): Delete.
3168         * config/i386/nbsdaout.mh (XM_FILE): Delete.
3169         * config/arm/nbsdelf.mh (XM_FILE): Delete.
3170         * config/arm/nbsdaout.mh (XM_FILE): Delete.
3171
3172         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3173         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3174         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3175         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3176         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3177         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3178
3179         * config/powerpc/xm-linux.h: Delete empty file.
3180         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3181         * config/powerpc/linux.mh (XM_FILE): Delete.
3182         * config/m68k/xm-linux.h: Delete empty file.
3183         * config/m68k/linux.mh (XM_FILE): Delete.
3184         * config/ia64/xm-linux.h: Delete empty file.
3185         * config/ia64/linux.mh (XM_FILE): Delete.
3186         * config/arm/xm-linux.h: Delete empty file.
3187         * config/arm/linux.mh (XM_FILE): Delete.
3188         
3189         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3190         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3191         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3192         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3193         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3194         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3195         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3196         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3197
3198         * config/m68k/xm-m68k.h: Delete file.
3199         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
3200         copyright.
3201         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3202         * config/pa/xm-linux.h: Delete empty file.
3203         * config/pa/linux.mh (XM_FILE): Delete.
3204         * config/i386/xm-i386.h: Delete empty file.
3205         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3206         "i386/xm-i386.h".
3207         * config/i386/obsdaout.mh (XM_FILE): Delete.
3208         * config/i386/obsd64.mh (XM_FILE): Delete.
3209         * config/i386/fbsd64.mh (XM_FILE): Delete.
3210         * config/i386/nto.mh (XM_FILE): Delete.
3211         * config/i386/obsd.mh (XM_FILE): Delete.
3212         * config/i386/linux64.mh (XM_FILE): Delete.
3213         * config/i386/linux.mh (XM_FILE): Delete.
3214         * config/i386/i386sol2.mh (XM_FILE): Delete.
3215         * config/i386/i386gnu.mh (XM_FILE): Delete.
3216         * config/i386/fbsd.mh (XM_FILE): Delete.
3217         * config/i386/nbsd64.mh (XM_FILE): Delete.
3218
3219 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3220
3221         * config/pa/xm-linux.h: Do not include "floatformat.h".
3222         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3223         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3224         * config/i386/xm-i386.h: Do not include "floatformat.h".
3225         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
3226         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3227         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3228         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
3229         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3230         GDB_HOST_LONG_DOUBLE_FORMAT instead.
3231         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3232         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3233         * configure, config.in: Regenerate.     
3234         * configure.host (gdb_host_float_format, gdb_host_double_format)
3235         (gdb_host_long_double_format): Set according to the host.
3236         
3237 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3238
3239         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3240
3241 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3242
3243         * PROBLEMS: Mention threads/1650.
3244         * NEWS: Mention the NPTL fix.
3245
3246 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3247
3248         * cli/cli-decode.c (add_setshow_cmd): Delete function.
3249         (add_setshow_cmd_full): Make static.
3250         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3251         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3252         * cli/cli-decode.c (add_setshow_filename_cmd) 
3253         (add_setshow_string_cmd): New functions.
3254         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
3255         * mips-tdep.c (_initialize_mips_tdep): Update.
3256         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
3257         * cli/cli-logging.c (_initialize_cli_logging): Update.
3258         * complaints.c (_initialize_complaints): Update.
3259         * remote.c (_initialize_remote): Update.
3260         
3261 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3262
3263         * cli/cli-decode.c (add_setshow_zinteger_cmd)
3264         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3265         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3266         print parameters.  Make string parameters constant.
3267         * command.h: Update.  Update copyright.
3268         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3269         * observer.c (_initialize_observer): Ditto.
3270         * frame.c (_initialize_frame): Ditto.
3271         * complaints.c (_initialize_complaints): Ditto.
3272         * maint.c (_initialize_maint_cmds): Ditto.
3273         * target.c (initialize_targets): Ditto.
3274         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3275         * infcall.c (_initialize_infcall): Ditto.
3276         * arm-tdep.c (_initialize_arm_tdep): Ditto.
3277         * m32r-rom.c (_initialize_m32r_rom): Ditto.
3278         * remote-rdi.c (_initialize_remote_rdi): Ditto.
3279         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3280         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3281
3282 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3283
3284         * gdbtypes.c (lookup_primitive_typename): Delete function.
3285         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3286         * ada-lex.l: Use language_lookup_primitive_type_by_name.
3287         * gdbtypes.c (lookup_typename): Ditto.
3288         * f-exp.y (yylex): Ditto.
3289         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3290
3291         * scm-lang.c (c_builtin_types): Delete extern declaration.
3292         (scm_language_defn): Replace
3293         string_char_type and primitive_type_vector with
3294         la_language_arch_info.
3295         * jv-lang.c (java_language_defn): Replace
3296         string_char_type and primitive_type_vector with
3297         la_language_arch_info.
3298         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3299         c_builtin_types in comment.
3300         * c-lang.h (struct language_arch_info): Declare opaque.
3301         (c_language_arch_info): Declare.
3302         (c_builtin_types): Delete declaration.
3303         * c-lang.c (c_language_arch_info): Set string_char_type to
3304         builtin_char, not builtin_true_char.  Make global.
3305         (c_builtin_types): Delete array.
3306         (asm_language_defn, minimal_language_defn): Replace
3307         string_char_type and primitive_type_vector with
3308         la_language_arch_info.
3309
3310 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3311
3312         * gdbtypes.h (struct builtin_type): Rename true_char to
3313         builtin_true_char.
3314         * gdbtypes.c (gdbtypes_post_init): Update.
3315         * c-lang.c (arch_info): New function.
3316         (enum c_primitive_types): New enum.
3317         (c_language_defn): Instead of string_char_type and
3318         primitive_type_vector set la_language_arch_info.
3319
3320 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3321
3322         * language.h (struct language_arch_info): Fix typo
3323         s/primative/primitive/.
3324         * gdbtypes.c (lookup_primitive_typename): Ditto.
3325         * language.c (language_lookup_primitive_type_by_name)
3326         (unknown_language_arch_info): Ditto.
3327
3328 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3329
3330         * defs.h (enum language): Add nr_languages.
3331         * language.h (struct language_arch_info): Define.
3332         (struct language_defn): Add la_language_arch_info.
3333         (language_lookup_primative_type_by_name): Declare.
3334         (language_string_char_type): Declare.
3335         * language.c (_initialize_language, language_gdbarch_post_init)
3336         (struct language_gdbarch, language_gdbarch_data): Implement
3337         per-architecture language information.
3338         (unknown_language_arch_info, language_string_char_type)
3339         (language_lookup_primative_type_by_name): New functions.
3340         (unknown_language_defn, auto_language_defn)
3341         (local_language_defn): Set la_language_arch_info to
3342         unknown_language_arch_info.
3343         (unknown_builtin_types): Delete.
3344         * gdbtypes.c (lookup_primitive_typename): Use
3345         language_lookup_primative_type_by_name.
3346         (create_string_type): Use language_string_char_type.
3347         * values.c (value_from_string): Use language_string_char_type.
3348         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3349         * p-lang.c (pascal_language_defn): Ditto.
3350         * m2-lang.c (m2_language_defn): Ditto.
3351         * jv-lang.c (java_language_defn): Ditto.
3352         * objc-lang.c (objc_language_defn): Ditto.
3353         * f-lang.c (f_language_defn): Ditto.
3354         * c-lang.c (c_language_defn, cplus_language_defn) 
3355         (asm_language_defn, minimal_language_defn): Ditto.
3356         
3357 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3358
3359         * gdbtypes.h (struct builtin_type): Declare.
3360         (builtin_type): Declare.
3361         * d10v-tdep.c (d10v_register_type): Use builtin_type.
3362         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3363         (gdbtypes_post_init): New function.
3364         (builtin_type): New function.
3365
3366 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
3367
3368         * remote-m32r-sdi.c: Fix breakpoint bug.
3369         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3370         recv_char_data, recv_long_data): New functions to replace communication
3371         sequences.
3372
3373 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
3374
3375         Document PR threads/1650.
3376         * PROBLEMS (Threads): Document problem with many threads
3377
3378 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3379
3380         * gdb-mi.el: Move from here ...
3381         * mi/gdb-mi.el: ... to here.
3382
3383 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3384
3385         Problem reported by Ashley Pittman <ashley@quadrics.com>.
3386         * main.c (captured_main): When in batch mode always detach.
3387
3388 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3389
3390         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3391         and h8300 as broken.
3392         * NEWS: END-OF-LIFE frame compatibility module.
3393         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3394         specific comments.
3395
3396 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3397
3398         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3399         * xcoffsolib.c (_initialize_xcoffsolib): Update.
3400         * wince.c (_initialize_wince): Update.
3401         * win32-nat.c (_initialize_win32_nat): Update.
3402         * varobj.c (_initialize_varobj): Update.
3403         * valops.c (_initialize_valops): Update.
3404         * utils.c (initialize_utils, initialize_utils): Update.
3405         * tui/tui-win.c (_initialize_tui_win): Update.
3406         * top.c (init_main): Update.
3407         * symfile.c (_initialize_symfile): Update.
3408         * source.c (_initialize_source): Update.
3409         * somsolib.c (_initialize_som_solib): Update.
3410         * solib.c (_initialize_solib): Update.
3411         * solib-frv.c (_initialize_frv_solib): Update.
3412         * serial.c (_initialize_serial): Update.
3413         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3414         * remote.c (_initialize_remote, _initialize_remote): Update.
3415         * remote-vx.c (_initialize_vx): Update.
3416         * remote-utils.c (_initialize_sr_support): Update.
3417         * remote-sds.c (_initialize_remote_sds): Update.
3418         * remote-mips.c (_initialize_remote_mips): Update.
3419         * remote-e7000.c (_initialize_remote_e7000): Update.
3420         * proc-api.c (_initialize_proc_api): Update.
3421         * printcmd.c: Update.
3422         * parse.c (_initialize_parse): Update.
3423         * pa64solib.c (_initialize_pa64_solib): Update.
3424         * p-valprint.c (_initialize_pascal_valprint): Update.
3425         * monitor.c (_initialize_remote_monitors): Update.
3426         * mips-tdep.c (_initialize_mips_tdep): Update.
3427         * mcore-tdep.c (_initialize_mcore_tdep): Update.
3428         * maint.c (_initialize_maint_cmds): Update.
3429         * lin-lwp.c (_initialize_lin_lwp): Update.
3430         * language.c (_initialize_language): Update.
3431         * kod.c (_initialize_kod): Update.
3432         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3433         * i386-tdep.c (_initialize_i386_tdep): Update.
3434         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3435         * gdbarch.sh: Update.
3436         * gdbarch.c: Re-generate.
3437         * gdb-events.sh: Update.
3438         * gdb-events.c: Re-generate.
3439         * frame.c (_initialize_frame): Update.
3440         * exec.c: Update.
3441         * demangle.c (_initialize_demangler): Update.
3442         * dcache.c (_initialize_dcache): Update.
3443         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3444         * cp-valprint.c (_initialize_cp_valprint): Update.
3445         * corefile.c (_initialize_core): Update.
3446         * command.h: Update.
3447         * cli/cli-decode.h: Update.
3448         * cli/cli-cmds.c (init_cli_cmds): Update.
3449         * charset.c (_initialize_charset): Update.
3450         * breakpoint.c (_initialize_breakpoint): Update.
3451         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3452         * alpha-tdep.c (_initialize_alpha_tdep): Update.
3453         * aix-thread.c (_initialize_aix_thread): Update.
3454
3455 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
3456
3457         Partial fix for PR backtrace/1718.
3458         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3459         that GCC migrates into the prolugue.  Don't handle any
3460         instructions that clobber %ebx.
3461
3462 2004-07-23  Andrew Cagney  <cagney@gnu.org>
3463
3464         Use regcache_raw_collect instead of regcache_collect.
3465         * regcache.h (regcache_collect): Delete declaration.
3466         * regcache.c (regcache_colect): Delete function.
3467         * win32-nat.c (do_child_store_inferior_registers): Update.
3468         * sol-thread.c (sol_thread_store_registers): Update.
3469         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3470         * rs6000-nat.c (store_register): Update.
3471         * remote.c (store_register_using_P, remote_store_registers): Update.
3472         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3473         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
3474         (fill_vrregset, store_spe_registers, fill_gregset)
3475         (fill_gregset): Update.
3476         * nto-procfs.c (procfs_store_registers): Update.
3477         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3478         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3479         * m68klinux-nat.c (store_register, fill_gregset): Update.
3480         * m68k-tdep.c (fill_gregset): Update.
3481         * infptrace.c (store_register): Update.
3482         * i386-nto-tdep.c (i386nto_regset_fill): Update.
3483         * i386-linux-nat.c (store_register, fill_gregset): Update.
3484         * hppa-linux-nat.c (fill_gregset): Update.
3485         * go32-nat.c (store_register): Update.
3486         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3487         (store_fp_regs): Update.
3488         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
3489         (store_nwfpe_extended, store_fpregister, store_fpregs) 
3490         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3491         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3492         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3493         (store_regs_user_thread, store_regs_kernel_thread): Update.
3494
3495 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
3496
3497         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3498         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3499         encoding.
3500         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3501         member of `struct comp_unit'.
3502
3503 2004-07-23  Andrew Cagney  <cagney@gnu.org>
3504
3505         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3506         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3507
3508 2004-07-23  Martin Hunt  <hunt@redhat.com>
3509         Kevin Buettner <kevinb@redhat.com>
3510
3511         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3512         alignment was being added to the offset instead of multiplied.
3513
3514 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
3515
3516         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3517         changed signal trampoline in OpenBSD 3.5-current.
3518
3519         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3520         <machine/pcb.h> and "bsd-kvm.h".
3521         (sparc64nbsd_supply_pcb): New function.
3522         (_initialize_sparc64nbsd_nat): Renamed from
3523         _initialize_sparcnbsd_nat.  Enable libkvm interface.
3524         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3525         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3526         (LOADLIBES): New variable.
3527
3528         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3529
3530         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3531
3532 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3533
3534         Use regcache_raw_supply instead of supply_register.
3535         * regcache.h (supply_register): Delete declaration.
3536         * regcache.c (supply_register): Delete function.
3537         * wince.c (do_child_fetch_inferior_registers): Update.
3538         * win32-nat.c (do_child_fetch_inferior_registers) 
3539         (fetch_elf_core_registers): Update.
3540         * v850ice.c (v850ice_fetch_registers): Update.
3541         * thread-db.c (thread_db_store_registers): Update.
3542         * sol-thread.c (sol_thread_store_registers): Update.
3543         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3544         * rs6000-nat.c (fetch_register): Update.
3545         * rom68k-rom.c (rom68k_supply_one_register): Update.
3546         * remote.c (remote_wait, remote_async_wait): Update.
3547         * remote-st.c (get_hex_regs): Update.
3548         * remote-sim.c (gdbsim_fetch_register): Update.
3549         * remote-sds.c (sds_fetch_registers): Update.
3550         * remote-rdp.c (remote_rdp_fetch_register): Update.
3551         * remote-rdi.c (arm_rdi_fetch_registers): Update.
3552         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3553         * remote-m32r-sdi.c (m32r_fetch_register): Update.
3554         * remote-hms.c (init_hms_cmds): Update.
3555         * remote-est.c (init_est_cmds): Update.
3556         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
3557         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3558         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3559         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
3560         (fetch_register, supply_vrregset, supply_vrregset)
3561         (fetch_spe_registers): Update.
3562         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3563         * monitor.c (monitor_supply_register): Update.
3564         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3565         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3566         (mipsnbsd_supply_fpreg): Update.
3567         * mips-nat.c (fetch_inferior_registers)
3568         (fetch_core_registers): Update.
3569         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
3570         (supply_fpregset, mips64_supply_gregset)
3571         (mips64_supply_fpregset): Update.
3572         * m68klinux-nat.c (fetch_register, supply_gregset)
3573         (supply_fpregset): Update.
3574         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3575         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3576         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3577         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3578         * infptrace.c (fetch_register): Update.
3579         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3580         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3581         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
3582         (gnu_fetch_registers, gnu_store_registers): Update.
3583         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3584         * i386-linux-nat.c (fetch_register, supply_gregset)
3585         (dummy_sse_values): Update.
3586         * hpux-thread.c (hpux_thread_fetch_registers): Update.
3587         * hppah-nat.c (fetch_register): Update.
3588         * hppa-linux-nat.c (fetch_register, supply_gregset) 
3589         (supply_fpregset): Update.
3590         * go32-nat.c (fetch_register): Update.
3591         * dve3900-rom.c (fetch_bitmapped_register)
3592         (_initialize_r3900_rom): Update.
3593         * cris-tdep.c (supply_gregset): Update.
3594         * abug-rom.c (init_abug_cmds): Update.
3595         * core-aout.c (fetch_core_registers): Update.
3596         * armnbsd-nat.c (supply_gregset, supply_fparegset)
3597         (fetch_register, fetch_fp_register): Update.
3598         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3599         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3600         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3601         * alphanbsd-tdep.c (fetch_core_registers): Update.
3602         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3603         * alpha-nat.c (fetch_osf_core_registers) 
3604         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3605         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
3606         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3607
3608 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3609
3610         * PROBLEMS: Mention breakpoints/1702.
3611         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3612         that is known to work.
3613
3614 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3615
3616         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3617         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3618         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3619         (handle_inferior_event): Wrap call to deprecated
3620         IGNORE_HELPER_CALL in #ifdef.
3621         * config/mips/tm-nbsd.h: Update.
3622
3623 2004-07-20  Jim Blandy  <jimb@redhat.com>
3624
3625         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3626         bfd_mach_ppc has no segment registers.
3627
3628         Include PowerPC SPR numbers for special-purpose registers.
3629         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3630         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3631         new member in initializer.
3632         (S, S4, SN4, S64): New macros for defining special-purpose
3633         registers.
3634         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3635         registers_403, registers_403GC, registers_505, registers_860,
3636         registers_601, registers_602, registers_603, registers_604,
3637         registers_750, registers_e500): Use them.
3638
3639         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3640         replace references with expression used to initialize variable.
3641
3642 2004-07-20  Andrew Cagney  <cagney@gnu.org>
3643
3644         * breakpoint.c (deprecated_read_memory_nobpt): Rename
3645         read_memory_nobpt.
3646         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3647         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3648         (s390_sigtramp_frame_sniffer): Update.
3649         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3650         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3651         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
3652         (mips32_fetch_instruction): Update.
3653         * mcore-tdep.c (get_insn): Update.
3654         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3655         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3656         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3657         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
3658         (i386_linux_rt_sigtramp_start): Update.
3659         * i386-linux-nat.c (child_resume): Update.
3660         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3661         * hppa-linux-tdep.c (insns_match_pattern): Update.
3662         * gdbcore.h: Update.
3663         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3664         * frame.c (safe_frame_unwind_memory): Update.
3665         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3666         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3667         * alpha-tdep.c (alpha_read_insn): Update.
3668
3669 2004-07-20  Andrew Cagney  <cagney@gnu.org>
3670
3671         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3672         containing both bytes and mask.  Add "frame_type".
3673         * tramp-frame.c (tramp_frame_start): Update.
3674         (tramp_frame_prepend_unwinder): Update.
3675         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3676         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3677         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
3678         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3679
3680 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
3681
3682         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3683         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3684         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3685         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3686
3687 2004-07-17  Andrew Cagney  <cagney@gnu.org>
3688
3689         * NEWS, PROBLEMS: Update for 6.2.
3690
3691         * README: Update to 6.2.
3692
3693         * utils.c (xvasprintf): Call xstrvprintf.
3694
3695         * parse.c: Update copyright.
3696         (null_post_parser): Eliminate ARGSUSED.
3697
3698         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3699         * tui/tui-win.c (tui_get_cmd_list): Ditto.
3700         * symfile-mem.c (_initialize_symfile_mem): Ditto.
3701         
3702         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3703         * ppc-linux-nat.c: Use "Linux kernel".
3704         * hppa-linux-tdep.c: Use GNU/Linux.
3705         * hppa-linux-nat.c: Use GNU/Linux.
3706         * dwarfread.c: Add [sic] to use of Linux.
3707
3708         * hppa-linux-nat.c: Do not include <string.h>.
3709         (supply_fpregset): Remove "register" attribute.
3710
3711         * solib-frv.c (fetch_loadmap): Use xfree, not free.
3712
3713 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
3714
3715         * configure.in: Define _MSE_INT_H on Solaris 9 too.
3716         * configure, config.in: Regenerated.
3717
3718         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3719         "bsd-kvm.h".
3720         (vaxbsd_supply_pcb): New function.
3721         (_initialize_vaxbsd_nat): New prototype and function.
3722         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3723         solib-sunos.o.
3724         (LOADLIBES): New variable.
3725         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3726         (LOADLIBES): New variable.
3727         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3728         (LOADLIBES): New variable.
3729         * Makefile.in (vaxbsd-nat.o): Update dependencies.
3730
3731 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3732
3733         * defs.h (event_loop_p): Replace variable declaration with macro,
3734         always 1.
3735         * main.c (captured_main): Delete options "-async" and "-noasync".
3736         (event_loop_p): Delete variable.
3737         * NEWS: Mention that "-async" and "-noasync" were removed.
3738
3739 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3740
3741         * remote-m32r-sdi.c: Re-indent.
3742
3743 2004-07-16  Jim Blandy  <jimb@redhat.com>
3744
3745         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3746         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3747         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3748         missing MPC823 SPRs.
3749         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3750         incorrect.  (This was corrected in GDB's register name tables on
3751         2004-07-14.)
3752
3753         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3754         should be "esasrr" ("ESA Save and Restore Register").
3755
3756 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3757
3758         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3759         calls, no longer applicable.  Update comments and rename parameter
3760         "step_frame" to "return_frame".
3761
3762 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3763
3764         * frame.c (fprint_field): New function.
3765         (fprint_frame_id): Use fprint_field.
3766
3767 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
3768
3769         * ada-lang.c (ada_language_defn): Remove commented out code.
3770
3771 2004-07-15  Jim Blandy  <jimb@redhat.com>
3772
3773         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3774         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3775
3776 2004-07-14  Jim Blandy  <jimb@redhat.com>
3777
3778         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3779
3780         * ppc-tdep.h (ppc_num_vrs): New enum constant.
3781
3782         * ppc-tdep.h (ppc_num_srs): New enum constant.
3783
3784         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3785         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3786         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3787         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3788         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3789         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3790         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3791         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3792         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3793         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3794         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3795         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3796         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3797         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3798         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3799         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3800         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3801         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3802         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3803         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3804         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3805         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3806         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3807         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3808         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3809         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3810         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3811         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3812         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3813         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3814         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3815         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3816         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3817         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3818         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3819         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3820         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3821         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3822         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3823         special-purpose register numbers.
3824
3825         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
3826         manual mentions 'md_twb', but many mention 'm_twb', and at that
3827         point in the register list.)
3828
3829 2004-07-14  Andrew Cagney  <cagney@gnu.org>
3830
3831         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3832         instead of "internal-error".
3833
3834 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
3835
3836         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3837         that was inserted inside a comment.
3838
3839 2004-07-10  Randolph Chung  <tausq@debian.org>
3840
3841         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
3842         function.
3843         (hppa_hpux_push_dummy_code): New function.
3844         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3845         Set find_global_pointer method.
3846
3847 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
3848
3849         * NEWS: Mention BSD libkvm interface.
3850
3851 2004-07-10  Michael Snyder  <msnyder@redhat.com>
3852
3853         * symfile.c (generic_load): Comment typo.
3854         * stack.c (get_selected_block): Ditto.
3855         * regcache.c (regcache_cooked_read): Ditto.
3856         * monitor.c (monitor_debug): Ditto.
3857         * mips-tdep.c (mips_read_pc): Ditto.
3858         * i386-linux-nat.c (ps_get_thread_area): Ditto.
3859         * gdb_mbuild.sh: Ditto.
3860         * gdbarch.sh: Ditto.
3861         * gdbarch.h: Ditto.
3862
3863 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
3864
3865         * ada-tasks.c: Remove file.
3866         
3867         Remove ARI problems:
3868         
3869         * ada-exp.y (write_var_from_sym): Reformat to put operator at
3870         beginning of line.
3871
3872         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3873         Add comment.
3874         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3875         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
3876         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
3877         (UMIN_OF_SIZE): Remove.
3878         (max_of_type): New function to replace orphan macro in gdbtypes.h
3879         (min_of_type): Ditto.
3880         (discrete_type_high_bound): Use max_of_type.
3881         (discrete_type_low_bound): Use min_of_type.
3882         (possible_user_operator_p): Move operator to beginning of line.
3883         (ada_is_variant_part): Ditto.
3884         (ensure_lval): Rewrite to avoid deprecated operations.
3885         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3886         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3887         (ada_enum_name): Remove assignments in 'if' statements.
3888         (build_ada_types): Add gdbarch parameter.
3889         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3890         with gdbarch_data_register_post_init.
3891         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
3892         add_show_from_set.
3893
3894         * ada-valprint.c (inspect_it): Remove declaration.
3895         (repeat_count_threshold): Remove declaration.
3896         (ada_print_floating): Remove assignments in 'if' statements.
3897         (print_str): Move operator to beginning of line.
3898         
3899 2004-07-08  Jim Blandy  <jimb@redhat.com>
3900
3901         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3902
3903 2004-07-08  Bob Rossi  <bob@brasko.net>
3904
3905         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3906
3907 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
3908
3909         * language.h (struct_language_defn): Add new function pointer:
3910         la_class_name_from_physname.  Also add new prototype for
3911         language_class_name_from_physname.
3912         * language.c (language_class_name_from_physname): New function.
3913         (unk_lang_class_name): Ditto.
3914         (unknown_language_defn, auto_language_defn): Change
3915         to add unk_lang_class_name function pointer for
3916         la_class_name_from_physname.
3917         (local_language_defn): Ditto.
3918         * dwarf2read.c (guess_structure_name): Change to call
3919         language_class_name_from_physname.
3920         (determine_class_name): Ditto.
3921         * cp-support.c (class_name_from_physname): Renamed.
3922         (cp_class_name_from_physname): New name of function.
3923         * cp-support.h: Ditto.
3924         * c-lang.c (c_language_defn): Change to add NULL
3925         for class_name_from_physname function pointer.
3926         (cplus_language_defn): Change to add cp_class_name_from_physname.
3927         * jv-lang.c (java_class_name_physname): New function.
3928         (java_find_last_component): New static routine.
3929         (java_language_defn): Add java_class_name_from_physname pointer.
3930         * ada-lang.c (ada_language_defn): Change to add NULL
3931         for class_name_from_physname function pointer.
3932         * f-lang.c (f_language_defn): Ditto.
3933         * m2-lang.c (m2_language_defn): Ditto.
3934         * objc-lang.c (objc_language_defn): Ditto.
3935         * p-lang.c (pascal_language_defn): Ditto.
3936         * scm-lang.c (scm_language_defn): Ditto. 
3937
3938 2004-07-06  Andrew Cagney  <cagney@gnu.org>
3939
3940         Patch from Bart Robinson.
3941         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3942         (O_LARGEFILE): Define to 0, if not defined.
3943
3944 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
3945
3946         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3947         <machine/pcb.h> and "bsd-kvm.h".
3948         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3949         (m68kbsd_supply_pcb): New function.
3950         (_initialize_m68kbsd_nat): New prototype and function.
3951         * Makefile.in (m68kbsd-nat.o): Update dependencies.
3952         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3953         (LOADLIBES): New variable.
3954         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3955         (LOADLIBES): New variable.
3956
3957         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3958
3959 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
3960
3961         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3962         <sys/proc.h>.
3963         (bsd_kvm_cmdlist): New variable.
3964         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3965         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3966         command and "kvm proc" command.
3967         * Makefile.in (bsd-kvm.o): Update dependencies.
3968
3969 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
3970
3971         * osabi.c: Update copyright year.
3972         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
3973         notes if EI_OSABI is set to ELFOSABI_HPUX.
3974
3975 2004-07-01  Michael Snyder  <msnyder@redhat.com>
3976
3977         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3978         that seems to have gotten whacked out of line.
3979
3980 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
3981
3982         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3983         code.
3984
3985 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
3986
3987         * ada-lang.c (decode_packed_array): Minor change to comment.
3988         (ada_value_slice_ptr): New function. 
3989         (ada_value_slice): New function. 
3990         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3991         test.  Don't know why it is there.
3992         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3993         to avoid dereferencing huge arrays from which one is slicing.  
3994         (empty_array): Correct to return an array rather than
3995         a subrange value.
3996         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3997         on empty arrays (let'em use 'FIRST instead).
3998
3999 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
4000
4001         Address complaints from gdb_ari.sh:
4002         
4003         * ada-exp.y: Include gdb_string.h rather than string.h.
4004         (convert_char_literal): Reformat declaration.
4005         * ada-lang.h: Include opaque struct declaration for struct frame_info.
4006         * ada-lex.l: Change use of free to xfree (the macro would do so
4007         anyway, but this is harmless).
4008         Include gdb_string.h rather than string.h.
4009         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4010         
4011         * ada-lang.c (parse): Remove K&Rism in parameter list.
4012         (is_name_suffix): Correct Linux => GNU/Linux in comment.
4013         
4014 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
4015
4016         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4017         dead code.
4018
4019 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
4020
4021         * alphabsd-nat.c: Update copyright year.
4022         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4023
4024 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
4025
4026         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4027         (i386_cygwin_in_solib_call_trampoline): New function.
4028         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4029         and skip_trampoline_code gdbarch methods.
4030
4031 2004-06-29  Jim Blandy  <jimb@redhat.com>
4032
4033         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4034         name actually used in the dependency lists.
4035
4036 2004-06-29  Randolph Chung  <tausq@debian.org>
4037
4038         * NEWS (New native configurations): Mention GNU/Linux/hppa.
4039
4040 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
4041
4042         * win32-nat.c (child_pid_to_exec_file): New function.
4043         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4044         functionality.
4045
4046 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4047
4048         * defs.h (xstrvprintf): Declare.
4049         * utils.c (xstrvprintf): New function.
4050         (internal_vproblem, xstrprintf, xasprintf) 
4051         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4052         * serial.c (serial_printf): Ditto.
4053         * complaints.c (vcomplaint): Ditto.
4054
4055 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
4056
4057         * infcmd.c (attach_command): Move call to target_terminal_inferior
4058         behind loading symbol table.
4059
4060 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4061
4062         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4063         change - add back extern deprecated_ui_loop_hook declaration.
4064
4065 2004-06-28  Andrew Cagney  <cagney@gnu.org>
4066
4067         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4068         xstrprintf.
4069         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4070         (c_value_of_variable): Ditto.
4071         * utils.c (internal_vproblem): Ditto.
4072         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4073         * remote.c (add_packet_config_cmd): Ditto.
4074         * remote-rdp.c (rdp_set_command_line): Ditto.
4075         * regcache.c (regcache_dump): Ditto.
4076         * frv-tdep.c (new_variant, new_variant): Ditto.
4077         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4078         (fbsd_find_memory_regions): Ditto.
4079         * breakpoint.c (create_thread_event_breakpoint) 
4080         (create_breakpoints): Ditto.
4081         * aix-thread.c (aix_thread_pid_to_str): Ditto.
4082         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
4083
4084 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
4085
4086         * ada-lang.c: Re-indent file, with some massaging to help indent
4087         a bit when the result is otherwise really too ugly.
4088
4089 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
4090
4091         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
4092         code_addr_p and special_addr_p to 'unsigned int'.
4093
4094 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4095
4096         * i386v4-nat.c: Update copyright year and tweak comment.
4097         (regmap): Remove trailing comma.
4098         (supply_gregset): Rename local variable i to regnum.  Call
4099         regcache_raw_supply instead of supply_register.
4100         (fill_gregset): Rename argument regno to regnum.  Call
4101         regcache_raw_collect instead of regcache_collect.
4102
4103 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
4104
4105         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4106         and special_addr_p.
4107         (frame_id_build, frame_id_build_special): Update comments.
4108         (frame_id_build_wild): New prototype.
4109         * frame.c (frame_id_build, frame_id_build_special): Fill in new
4110         struct frame_id fields.
4111         (frame_id_build_wild): New function.
4112         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4113
4114 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4115
4116         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4117         hppabsd-tdep.c.
4118
4119 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4120
4121         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4122
4123 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4124
4125         * ada-lang.c: Re-indent file.
4126
4127 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4128
4129         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4130         (no_symtab_msg): Likewise.
4131
4132 2004-06-27  Andreas Schwab  <schwab@suse.de>
4133
4134         * source.c: Fix whitespace.
4135
4136 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4137
4138         * configure.in: Include <sys/param.h> for td_pcb test.
4139         * configure: Regenerated.
4140
4141         * i386nbsd-nat.c: New file.
4142         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4143         i386obsd-nat.c and i386obsd-tdep.c.
4144         (i386nbsd-nat.o): New dependency.
4145         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4146         bsd-kvm.o.
4147         (LOADLIBES): New variable.
4148         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4149         bsd-kvm.o.
4150         (LOADLIBES): New variable.
4151
4152         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4153         (LOADLIBES): New variable.
4154
4155         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4156         fetching from BSD_KVM_PADDR.  Correctly lookup address for
4157         "_thread0".
4158
4159         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4160         "bsd-kvm.h".
4161         (amd64fbsd_supply_pcb): New funcion.
4162         (_initialize_amd64fbsd_nat): Enable libkvm interface.
4163
4164 2004-06-27    <david@streamline-computing.com>
4165
4166         Partial fix for PR cli/1056.
4167         * valarith.c: Check for zero in division and remainder 
4168         evaluation.
4169
4170 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4171
4172         * i387-tdep.c: Remove excessive whitespace.
4173
4174 2004-06-26  Andrew Cagney  <cagney@gnu.org>
4175
4176         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4177         * gdb-events.h, gdb-events.c: Re-generate.
4178         * tui/tui-hooks.c (tui_install_hooks): Update.
4179         (tui_remove_hooks): Update.
4180         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4181
4182 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
4183
4184         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4185         (gregset_t, fpregset_t): Remove typedefs.
4186         (REG_OFFSET): Rename argument.
4187         (amd64bsd_r_reg_offset): Rename from reg_offset.
4188         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4189         Remove functions.
4190         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4191         of reg_offset.
4192         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4193
4194         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4195
4196         * vax-tdep.c: Tweak comment.
4197
4198         Add OpenBSD/hppa support.
4199         * NEWS (New native configurations): Mention OpenBSD/hppa.
4200         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4201         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4202         files.
4203         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4204         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4205         * configure.host: Add hppa*-*-openbsd*.
4206         * configure.tgt: Add hppa*-*-openbsd*.
4207
4208 2004-06-25  Andrew Cagney  <cagney@gnu.org>
4209
4210         * defs.h (deprecated_ui_loop_hook): Deprecated.
4211         * wince.c (child_wait): Update.
4212         * win32-nat.c (child_wait): Update.
4213         * v850ice.c (v850ice_wait): Update.
4214         * top.c (deprecated_ui_loop_hook): Update.
4215         * serial.h: Update.
4216         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
4217         (do_unix_readchar): Update.
4218         * ser-tcp.c (net_open): Update.
4219         * remote-sim.c (gdb_os_poll_quit): Update.
4220         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4221
4222 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4223
4224         * defs.h (deprecated_pre_add_symbol_hook)
4225         (deprecated_post_add_symbol_hook): Deprecated.
4226         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
4227         (symbol_file_add_with_addrs_or_offsets): Update references.
4228
4229 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4230
4231         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4232         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4233         * wince.c (ui_loop_hook): Delete extern declaration.
4234         * win32-nat.c (ui_loop_hook): Delete extern declaration..
4235         * v850ice.c (ui_loop_hook): Delete extern declaration..
4236         * ser-unix.c (ui_loop_hook): Delete extern declaration..
4237         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4238         * remote-sim.c (ui_loop_hook): Delete extern declaration..
4239         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4240         ui_loop_hook declaration.
4241
4242 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4243
4244         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4245         entry_func_highpc fields.
4246         * objfiles.c (init_entry_point_info): Do not clear
4247         entry_func_lowpc and entry_func_highpc.
4248         (objfile_relocate): Do not relocate entry_func_lowpc and
4249         entry_func_highpc.
4250         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4251         entry_func_highpc.
4252         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4253         entry_func_highpc.
4254         * blockframe.c (legacy_frame_chain_valid): Replace tests against
4255         entry_func_lowpc and entry_func_highpc with call to
4256         inside_entry_func.
4257
4258 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4259
4260         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4261         quad-precision floating point arguments in registers.
4262
4263 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4264
4265         From Michael Mueller <m.mueller99@kay-mueller.de>:
4266         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4267         account.
4268
4269 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
4270
4271         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4272         to -1.
4273         * breakpoint.c (bpstat_stop_status): Move check for ignoring
4274         untriggered watchpoints to a separate if clause.  Update function
4275         comment regarding STOPPED_BY_WATCHPOINT argument.
4276
4277 2004-06-22  Jim Blandy  <jimb@redhat.com>
4278
4279         * gdbarch.sh: Doc fix.
4280
4281 2004-06-21  Martin Hunt  <hunt@redhat.com>
4282         Kevin Buettner <kevinb@redhat.com>
4283
4284         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4285         * mips-tdep.h (MIPS_SP_REGNUM): Define.
4286         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4287         to set_gdbarch_sp_regnum().  Use cooked register number.
4288         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4289
4290 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4291
4292         * gdbarch.sh: When the macro field is empty, do not generate a
4293         macro definition.  When the macro field is "=", generate the macro
4294         name from the upper-case function name.
4295         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4296         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4297         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4298         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4299         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4300         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4301         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4302         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4303         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4304         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4305         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4306         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4307         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4308         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4309         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4310         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4311         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4312         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4313         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4314         (DEPRECATED_USE_STRUCT_CONVENTION)
4315         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4316         (DEPRECATED_FRAME_INIT_SAVED_REGS)
4317         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4318         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4319         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4320         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4321         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4322         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4323         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4324         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4325         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4326         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4327         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4328         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4329         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4330         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4331         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4332         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4333
4334 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4335
4336         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4337         macro name, and the function rather than macro value.  Only wrap
4338         macro print statements in #ifdef.  Move format logic to where it
4339         is needed.
4340         * gdbarch.c: Re-generate.
4341         
4342         * gdbarch.sh (read): Delete "print_p" and "description", add
4343         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
4344         Delete references to print_p.
4345         (TARGET_ARCHITECTURE): Delete print predicate.
4346         * gdbarch.c: Re-generate.
4347         
4348         * gdbarch.sh: Check that multi-arch methods do not provide a
4349         macro.
4350         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4351         (print_registers_info, print_float_info, print_vector_info)
4352         (adjust_breakpoint_address, remote_translate_xfer_address)
4353         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4354         (address_class_type_flags_to_name, unwind_sp): Remove the macro
4355         name from the multi-arch definition.
4356         
4357 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4358
4359         * gdbarch.sh: Sort by the function, instead of macro name.
4360         * gdbarch.c: Re-generate.
4361         
4362 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4363
4364         * gdbarch.sh: Use the function, instead of macro name in
4365         errors and the log file.
4366         (return_value): Remove stray ":" in spec.
4367
4368         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4369         * gdbarch.h, gdbarch.c: Re-generate.
4370         * Makefile.in (arch-utils.o): Update dependencies.
4371         * values.c (using_struct_return): Move code calling
4372         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4373         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4374         to legacy_return_value, simplify.
4375         * infcmd.c (print_return_value): Move code calling
4376         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4377         to legacy_return_value, simplify.
4378         * infcall.c (call_function_by_hand): Move code calling
4379         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4380         * arch-utils.c: Update copyright.  Include "gdbcore.h".
4381         (legacy_return_value): New function.
4382         * arch-utils.h: Update copyright.
4383         (legacy_return_value): Declare.
4384         
4385 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4386
4387         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4388         * gdbarch.h, gdbarch.c: Re-generate.
4389         * values.c (using_struct_return): Update call.
4390         * mcore-tdep.c: Update comment.
4391         * infcall.c (call_function_by_hand): Update comment.
4392         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4393         * arch-utils.h (always_use_struct_convention): Update.
4394         * v850-tdep.c (v850_gdbarch_init): Update.
4395         * sh64-tdep.c (sh64_gdbarch_init): Update.
4396         * sh-tdep.c (sh_gdbarch_init): Update.
4397         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4398         * mips-tdep.c (mips_gdbarch_init): Update.
4399         * mcore-tdep.c (mcore_gdbarch_init): Update.
4400         * m32r-tdep.c (m32r_gdbarch_init): Update.
4401         * ia64-tdep.c (ia64_gdbarch_init): Update.
4402         * h8300-tdep.c (h8300_gdbarch_init): Update.
4403         * frv-tdep.c (frv_gdbarch_init): Update.
4404         * cris-tdep.c (cris_gdbarch_init): Update.
4405         * arm-tdep.c (arm_gdbarch_init): Update.
4406         * alpha-tdep.c (alpha_gdbarch_init): Update.
4407
4408 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
4409
4410         * PROBLEMS: Add more specific information, and a work-around,
4411         for PR gdb/1458.
4412
4413 2004-06-18  Andrew Cagney  <cagney@gnu.org>
4414
4415         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4416         * gdbarch.h, gdbarch.c: Re-generate.
4417         * ada-lang.c (ada_finish_decode_line_1): Update.
4418         * infrun.c (handle_inferior_event): Update.
4419         * infcall.c (find_function_addr): Update.
4420         * linespec.c (minsym_found): Update.
4421         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4422         Update.
4423         * blockframe.c (legacy_frameless_look_for_prologue): Update.
4424         * cli/cli-cmds.c (disassemble_command): Update.
4425         * vax-tdep.c (vax_gdbarch_init): Update.
4426
4427 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
4428
4429         * i386-tdep.c (i386_collect_fpregset): Fix comment.
4430
4431 2004-06-17  Andrew Cagney  <cagney@gnu.org>
4432
4433         GDB 6.1.1 released from the GDB 6.1 branch.
4434         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4435         * PROBLEMS: Ditto.
4436
4437 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
4438
4439         PR gdb/1658
4440         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4441         operation as a uleb128.  Found by Michael Coulter.
4442
4443 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
4444         
4445         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4446         make it non-static.
4447         * ada-lang.h (task_control_block): declaration moved from ada-task.c
4448         to ada-lang.h; this is needed to be able to implement the kill command
4449         in multi-task mode.
4450         (task_ptid): Ditto.
4451         (task_entry): Ditto.
4452         (task_list): Ditto.
4453         (ada_build_task_list): Ditto.
4454         
4455         * ada-lang.c: Conditionalize routines and data structures related 
4456         to breakpoints, exceptions, completion, and symbol caching on 
4457         GNAT_GDB, since these are not yet used in the submitted public sources.
4458         (ada_main_name): Editorial: Move definition out of exception-related 
4459         code.
4460
4461 2004-06-15  Andrew Cagney  <cagney@gnu.org>
4462
4463         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4464         deprecated_pc_in_call_dummy.
4465
4466 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
4467
4468         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4469         bfd_get_section_size_before_reloc or _raw_size.
4470         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4471         * dwarf2read.c (dwarf2_locate_sections): Likewise.
4472         (dwarf2_read_section): Likewise.
4473         * elfread.c (elf_locate_sections): Likewise.
4474         * gcore.c (derive_heap_segment): Likewise.
4475         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4476         * remote-e7000.c (e7000_load): Likewise.
4477         * remote-m32r-sdi.c (m32r_load): Likewise.
4478         * remote-mips.c (mips_load_srec): Likewise.
4479         (pmon_load_fast): Likewise.
4480         * remote.c (compare_sections_command): Likewise.
4481         * symfile.c (add_section_size_callback): Likewise.
4482         (load_section_callback): Likewise.
4483         (pc_in_unmapped_range): Likewise.
4484         (pc_in_mapped_range): Likewise.
4485         (sections_overlap): Likewise.
4486         (list_overlays_command): Likewise.
4487         (simple_overlay_update_1): Likewise.
4488         (simple_overlay_update): Likewise.
4489         * tracepoint.c (remote_set_transparent_ranges): Likewise.
4490         * win32-nat.c (core_section_load_dll_symbols): Likewise.
4491
4492 2004-06-14  Randolph Chung  <tausq@debian.org>
4493
4494         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4495         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
4496         static.
4497         (hppa_hpux_inferior_created): New function.
4498         (hppa_hpux_init_abi): Register observer.
4499         * symfile.c (hp_cxx_exception_support_initialized)
4500         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4501         (symbol_file_add_main_1, symbol_file_clear): Likewise.
4502
4503 2004-06-14  Randolph Chung  <tausq@debian.org>
4504
4505         * MAINTAINERS (Write After Approval): Alphabetize my entry
4506         correctly.
4507
4508 2004-06-14  Andrew Cagney  <cagney@gnu.org>
4509
4510         * MAINTAINERS (testsuite): List Michael Chastain as the lead
4511         testsuite maintainer.
4512
4513 2004-06-13  Andrew Cagney  <cagney@gnu.org>
4514
4515         * infcmd.c (print_return_value): Fix logic, allow
4516         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4517
4518         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4519         defining any macros.
4520         * gdbarch.h: Re-generate.
4521
4522         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
4523         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4524         * gdbarch.h: Re-generate.
4525
4526         * values.c (generic_use_struct_convention): Don't check gcc_p.
4527
4528         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4529         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4530         * gdbarch.h, gdbarch.c: Regenerate.
4531         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
4532         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4533         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4534         deprecated_max_register_raw_size and
4535         deprecated_max_register_virtual_size.
4536         * v850-tdep.c (v850_gdbarch_init): Ditto.
4537         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4538         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4539         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4540         * cris-tdep.c (cris_gdbarch_init): Ditto.
4541
4542         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4543         * gdbarch.h, gdbarch.c: Re-generate.
4544         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4545         (m68hc11_use_struct_convention): Delete function.
4546         (m68hc11_extract_struct_value_address): Delete function.
4547         (m68hc11_return_value): New function.
4548         (m68hc11_gdbarch_init): Instead of store_return_value,
4549         extract_return_value, return_value_on_stack,
4550         deprecated_extract_struct_value_address and use_struct_convention,
4551         set return_value.
4552         * values.c (using_struct_return): Do not call
4553         RETURN_VALUE_ON_STACK.
4554         * arch-utils.h (generic_return_value_on_stack_not): Delete
4555         declaration.
4556         * arch-utils.c (generic_return_value_on_stack_not): Delete
4557         function.
4558         
4559 2004-06-12  Andrew Cagney  <cagney@gnu.org>
4560
4561         * values.c (register_value_being_returned): Delete function.
4562         * infcmd.c (legacy_return_value): Delete function.
4563         * infcall.c (call_function_by_hand): Inline
4564         "register_value_being_returned", simplify.
4565         * values.c (using_struct_return): Update comment, refer to
4566         print_return_value instead of register_value_being_returned.
4567         * infcmd.c (print_return_value): Inline calls to
4568         register_value_being_returned and legacy_return_value.  Simplify.
4569
4570 2004-06-11  Randolph Chung  <tausq@debian.org>
4571
4572         * somread.c (som_symtab_read): Exclude gcc local symbols.
4573
4574 2004-06-11  Randolph Chung  <tausq@debian.org>
4575
4576         * infrun.c (handle_inferior_event): Handle the case when a
4577         trampoline ends up in the runtime resolver, and if the trampoline
4578         has no name.  Rearrange the code so that all the trampoline
4579         processing happens before other step-out-of-range handling.
4580
4581 2004-06-11  Martin Hunt  <hunt@redhat.com>
4582
4583         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4584         has no fpu.
4585
4586 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4587
4588         * blockframe.c (legacy_inside_entry_func): Delete.
4589         (legacy_frame_chain_valid): Inline call to
4590         legacy_inside_entry_func, simplify.
4591
4592 2004-06-10  Bob Rossi  <bob@brasko.net>
4593
4594         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4595         * dwarf2read.c (partial_die_info): Add dirname field.
4596         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4597         (read_partial_die): Save away DW_AT_comp_dir.
4598         * defs.h (symtab_to_filename): Removed.
4599         * source.c (find_and_open_source): Added.
4600         (open_source_file): Just calls find_and_open_source.
4601         (symtab_to_filename): Removed.
4602         (symtab_to_fullname, psymtab_to_fullname): Added.
4603         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4604         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4605         symtab_to_filename.
4606         * symtab.h (partial_symtab): Add dirname field.
4607         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4608         (mi_cmd_file_list_exec_source_file): Call new function
4609         symtab_to_fullname to find fullname.
4610         (mi_cmd_file_list_exec_source_files): Added.
4611         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4612         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4613
4614 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4615
4616         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4617         to generic_use_struct_convention, the default value.
4618
4619         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4620         of abort.
4621
4622         * ns32k-tdep.c (ns32k_push_arguments): New function.
4623         (ns32k_gdbarch_init): Set deprecated_push_arguments.
4624         * infcall.c (call_function_by_hand): Call error instead of
4625         legacy_push_arguments.
4626         * value.h (legacy_push_arguments): Delete declaration.
4627         * valops.c (legacy_push_arguments): Delete function.
4628         (value_push): Delete function.
4629
4630 2004-06-10  Brian Ford  <ford@vss.fsi.com>
4631
4632         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4633         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
4634         info.
4635         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4636
4637 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4638
4639         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4640         * gdbarch.h, gdbarch.c: Re-generate.
4641         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4642         parameters.
4643         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4644         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4645         deprecated_pc_in_call_dummy instead of
4646         DEPRECATED_PC_IN_CALL_DUMMY.
4647         (arm_skip_prologue): Ditto.
4648         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4649         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4650         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4651         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4652         Ditto.
4653         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
4654         (sh64_init_extra_frame_info, sh64_get_saved_register) 
4655         (sh64_pop_frame): Ditto.
4656         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4657         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
4658         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4659         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
4660         (h8300_pop_frame): Ditto.
4661         * blockframe.c (legacy_inside_entry_func) 
4662         (legacy_frame_chain_valid): Ditto.
4663         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4664         to deprecated_pc_in_call_dummy.
4665         
4666 2004-06-09  Andrew Cagney  <cagney@gnu.org>
4667
4668         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4669         provide a default value.
4670         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4671         * gdbarch.h, gdbarch.c: Re-generate.
4672         * arch-utils.c (generic_convert_register_p): Rename
4673         legacy_convert_register_p
4674         (legacy_register_to_value, legacy_value_to_register): Delete
4675         functions.
4676         * arch-utils.h (generic_convert_register_p): Rename
4677         legacy_convert_register_p.
4678         (legacy_register_to_value, legacy_value_to_register): Delete
4679         declarations.
4680
4681         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4682         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4683         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4684         * gdbarch.h, gdbarch.c: Re-generate.
4685         * infcmd.c (default_print_registers_info): Simplify.
4686         * findvar.c (value_of_register): Simplify.
4687         * mi/mi-main.c (get_register): Simplify.
4688         * arch-utils.c (legacy_convert_register_p): Always return 0.
4689         (legacy_register_to_value, legacy_value_to_register): Always call
4690         internal_error.
4691
4692         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4693         #ifdef CLEAR_INSN_CACHE code.
4694         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4695         Delete #ifdef CLEAR_DEFERRED_STORES code.
4696
4697         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4698
4699         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4700         copyright.
4701         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4702
4703         * config/mips/mipsv4.mh: Delete file.
4704
4705         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4706         unreferenced macro.
4707         (hpread_adjust_stack_address): Delete declaration.
4708
4709 2004-06-08  Andrew Cagney  <cagney@gnu.org>
4710
4711         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4712         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4713         PTRACE_ATTACH / PTRACE_DETACH available call error.
4714         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4715         * infttrace.c (update_thread_state_after_attach, attach, detach):
4716         Remove #ifdef wrappers.
4717         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4718         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4719         * config/nm-bsd.h (ATTACH_DETACH): Delete.
4720         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4721         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4722         * config/nm-linux.h (ATTACH_DETACH): Delete.
4723         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4724         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4725         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4726         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4727         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4728
4729 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
4730
4731         * configure.in: Set $configdir to the right OS specific value.
4732         Use value when setting $tcldir and $tkdir.
4733         * configure: Regenerate.
4734
4735 2004-06-06  Paul Brook  <paul@codesourcery.com>
4736
4737         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4738         records.
4739
4740 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
4741
4742         * ada-lang.c (lookup_symbol_in_language): New function to allow
4743         re-use of another language's symbol lookup code.  (Placed here
4744         temporarily while Ada support is being integrated into the public
4745         tree).  
4746         (restore_language): New auxiliary function for 
4747         lookup_symbol_in_language.
4748         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4749         temporarily while Ada support is being integrated into the public
4750         tree).
4751         
4752 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
4753
4754         * Makefile.in (check//%): New.
4755
4756         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4757         (mn10300_store_return_value): Rewrite.
4758         (mn10300_type_align): New.
4759         (mn10300_use_struct_convention): Rewrite.
4760         (mn10300_return_value): New, using all of the above.
4761         (mn10300_pop_frame_regular): Add saved_regs_size.
4762         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4763
4764         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4765         regs if PC is on movm.
4766
4767 2004-06-07  Jim Blandy  <jimb@redhat.com>
4768
4769         Add native Linux support for the PowerPC E500.
4770         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4771         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4772         all architectures except the E500.
4773         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4774         #definitions.
4775         (struct gdb_evrregset_t): New type.
4776         (have_ptrace_getsetevrregs): New variable.
4777         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
4778         fetch_spe_registers): New functions.
4779         (fetch_register): Call fetch_spe_register as appropriate.
4780         Assert that we're only passed raw register numbers.
4781         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4782         Don't fetch gprs if they're pseudoregisters.
4783         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4784         store_spe_registers): New functions.
4785         (store_register): Call store_spe_register as appropriate.
4786         Assert that we're only passed raw register numbers.
4787         (store_ppc_registers): Call store_spe_registers as appropriate.
4788         Don't store gprs if they're pseudoregisters.
4789         
4790 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
4791
4792         * thread-db.c (thread_get_info_callback): Fill in the thread_info
4793         struct if one exists, even if we are dealing with a zombie thread.
4794
4795 2004-06-07  Andrew Cagney  <cagney@gnu.org>
4796
4797         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4798         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4799         Rename PC_REQUIRES_RUN_BEFORE_USE.
4800         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
4801         #ifdef.
4802
4803 2004-06-07  Randolph Chung  <tausq@debian.org>
4804
4805         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4806         unwinding after sp has been saved to the stack but before the end
4807         of the prologue, and after the fp has been modified but before it has
4808         been saved to the stack.
4809         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
4810         Remove superfluous definitions.
4811         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4812
4813 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
4814
4815         Committed by Randolph Chung.
4816         * hppa-linux-nat.c: Include the correct version of the header file
4817         depending on the kernel version.
4818
4819 2004-06-06  Randolph Chung  <tausq@debian.org>
4820
4821         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4822         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4823
4824 2004-06-06  Randolph Chung  <tausq@debian.org>
4825
4826         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
4827         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4828         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4829         * hppa-tdep.c (hppa_symbol_address): New function definition.
4830         * hppa-tdep.h (hppa_symbol_address): New function declaration.
4831
4832 2004-06-06  Randolph Chung  <tausq@debian.org>
4833
4834         * hppa-tdep.h (struct value): Forward declaration.
4835         (gdbarch_tdep): Define tdep find_global_pointer method.
4836         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4837         associated with the function we are trying to call, and write it
4838         to the gp register.
4839         (hppa32_convert_from_funct_ptr_addr): New function.
4840         (hppa_find_global_pointer): New function.
4841         (hppa_gdbarch_init): Set default find_global_pointer method; set
4842         convert_from_func_ptr_addr method.
4843         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4844         (hppa_linux_init_abi): Set find_global_pointer method.
4845         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4846
4847 2004-06-06  Randolph Chung  <tausq@debian.org>
4848
4849         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4850         to struct value *function.
4851         * gdbarch.c: Regenerate.
4852         * gdbarch.h: Likewise.
4853         * infcall.c (call_function_by_hand): Pass entire function value
4854         to push_dummy_call.
4855
4856         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4857         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4858         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4859         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4860         * arm-tdep.c (arm_push_dummy_call): Likewise.
4861         * avr-tdep.c (avr_push_dummy_call): Likewise.
4862         * cris-tdep.c (cris_push_dummy_call): Likewise.
4863         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4864         * frv-tdep.c (frv_push_dummy_call): Likewise.
4865         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4866         * hppa-tdep.c (hppa32_push_dummy_call)
4867         (hppa64_push_dummy_call): Likewise.
4868         * i386-tdep.c (i386_push_dummy_call): Likewise.
4869         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4870         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4871         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4872         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4873         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4874         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4875         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4876         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4877         (ppc64_sysv_abi_push_dummy_call): Likewise.
4878         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4879         (ppc64_sysv_abi_push_dummy_call): Likewise.
4880         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4881         * s390-tdep.c (s390_push_dummy_call): Likewise.
4882         * sh-tdep.c (sh_push_dummy_call_fpu)
4883         (sh_push_dummy_call_nofpu): Likewise.
4884         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4885         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4886         * vax-tdep.c (vax_push_dummy_call): Likewise.
4887
4888 2004-06-04  Jim Blandy  <jimb@redhat.com>
4889
4890         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4891         gdbarch argument to register_size.
4892
4893         * rs6000-tdep.c (rs6000_store_return_value): Use
4894         regcache_cooked_write_part instead of
4895         deprecated_write_register_bytes.
4896         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4897         not gdbarch_deprecated_store_return_value.
4898
4899         * ppc-linux-nat.c (store_register, fetch_register): Remove
4900         incorrect assertions.  Simplify and generalize handling of
4901         transfers whose sizes are not multiples of, or less than, sizeof
4902         (PTRACE_XFER_TYPE).
4903
4904 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4905
4906         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4907         as a new thread event.
4908         * thread-db.c (thread_get_info_callback): If the thread is a
4909         zombie, return TD_THR_ZOMBIE.
4910         (thread_from_lwp): If thread_get_info_callback returns
4911         TD_THR_ZOMBIE, check if the thread is still on the thread list
4912         and return a -1 ptid if not found.
4913         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4914         change the status to TARGET_WAITKIND_SPURIOUS.
4915
4916 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
4917
4918         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4919         double values in little endian mode.
4920
4921 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
4922
4923         Committed by Andrew Cagney.
4924         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4925         after last enum constant to avoid error from IBM C
4926         compiler.
4927
4928 2004-06-02  Jim Blandy  <jimb@redhat.com>
4929
4930         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4931         to 'message', and make it local to the lone block that uses it.
4932
4933         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4934
4935 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
4936
4937         * ada-exp.y: Update copyright notice.
4938         Include block.h.
4939         
4940         Replace REGNAME, LAST, INTERNAL_VARIABLE with
4941         SPECIAL_VARIABLE and unify the treatment of these cases.
4942
4943         (write_attribute_call0): Remove.
4944         (write_attribute_call1): Remove.
4945         (write_attribute_calln): Remove.
4946         (save_qualifier): Add missing semicolon.
4947
4948         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
4949         temporarily disabled to allow compilation with FSF head version.
4950
4951         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
4952         use individual operators (OP_*) for all attributes.
4953         (exp syntax): Use write_int.
4954         Handle STRING literals with OP_STRING.
4955         (variable syntax): Add limit parameter to calls to 
4956         write_object_renaming.  
4957
4958         (temp_parse_space): New definition to hold entities that need
4959         only live until the next call to ada_parse.
4960         (string_to_operator): Rename fields of ada_opname_table entries.
4961
4962         (write_var_from_sym): Record block.
4963         (write_var_from_name): Minor reformatting.
4964         Make sure saved name is properly encoded in the case of multiple 
4965         matches, and set its language to Ada.
4966         Update comment.
4967         Modify to indicate unresolved name as symbol in the UNRESOLVED 
4968         namespace, allocated in temp_parse_space.
4969         (write_int): New function.
4970
4971         (write_object_renaming): Add max_depth parameter to limit
4972         chains of object renamings.
4973         Handle case where root of renaming expression is itself a renaming.
4974         Use temp_parse_space for temporary name buffer.
4975         Handle renamings to dereferenced pointers (___XEXA suffices).
4976         
4977         (ada_parse, yyerror, string_to_operator, 
4978         write_var_from_sym, write_var_from_name, write_attribute_call0, 
4979         write_attribute_call1, write_attribute_calln, 
4980         write_object_renaming): Protoize.
4981
4982         (_initialize_ada_exp): New function.
4983         
4984         * ada-lang.c: Update copyright notice.
4985         General terminology change to conform to GNAT compiler usage:
4986         mangle => encode, demangle => decode
4987         Include gdb_obstack.h.
4988         Include gdb_regex.h
4989         Include frame.h
4990         Include hashtab.h
4991         Include completer.h
4992         Include gdb_stat.h
4993         Include block.h
4994         Include infcall.h
4995         
4996         (ADA_RETAIN_DOTS): Make sure this is defined.
4997         (TRUNCATION_TOWARDS_ZERO): Define.
4998         (struct string_vector): Define.
4999         (unresolved_names): Remove definition.
5000         (xnew_string_vector): New function.
5001         (string_vector_append): New function.
5002         (extract_string): Make static.
5003         (ada_unqualified_name): New function.
5004         (add_angle_brackets): New function.
5005         (function_name_from_pc): New function.
5006         (place_on_stack): Rename to ensure_lval.
5007
5008         (ensure_lval): Renamed from place_on_stack.
5009         Make identity on lvals.
5010         Update comment.
5011         (is_nonfunction): New interface.
5012         Only symbols in LOC_CONST class can be enumerals.
5013         (fill_in_ada_prototype): Remove; now independent of language.
5014         (add_defn_to_vec): Add obstack and symtab arguments.
5015         Use obstack to hold collected definitions.
5016         (num_defns_collected): New function.
5017         (defns_collected): New function.
5018         (ada_resolve_subexp): Rename to resolve_subexp.
5019         (resolve_subexp): Renamed from ada_resolve_subexp.
5020         (ada_op_name): Return non-const result.
5021         (ada_decoded_op_name): Renamed from ada_op_name, now used for
5022         other purposes.
5023
5024         (to_fixed_array_type): Add declaration.
5025         (coerce_unspec_val_to_type): Remove offset parameter.
5026         (find_sal_from_funcs_and_line): New interface.
5027         (find_line_in_linetable): Ditto.
5028
5029         (all_sals_for_line): Rename to ada_sals_for_line and make
5030         global.
5031         Add new parameter. When set, do not ask the user to choose the 
5032         instance, but use the first one found instead.
5033         Use given line number in returned sals.
5034         Fix comment. 
5035         Skip the prologue if funfirstline is set.
5036         Correct for memory leak when 0 lines found.
5037
5038         (value_pos_atr): Use pos_atr.
5039         (pos_atr): New function.
5040         (standard_lookup): Add block parameter.
5041
5042         (makeTimeStart): Remove declaration and uses.
5043         (makeTimeStop): Remove declaration and uses.
5044
5045         (ada_completer_word_break_characters): Allow for VMS.
5046         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5047         (raise_sym_name): New constant.
5048         (raise_unhandled_sym_name): New constant.
5049         (raise_assert_sym_name): New constant.
5050         (process_raise_exception_name): New constant.
5051         (longest_exception_template): New constant.
5052         (warning_limit): New variable to limit warnings during expression
5053         evaluation.
5054         (warnings_issued): New variable to keep track of warnings issued.
5055         (known_runtime_file_name_patterns): New constant.
5056         (known_auxiliary_function_name_patterns): New constant.
5057         (symbol_list_obstack): New variable.
5058         
5059         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5060         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5061         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5062         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
5063         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
5064         ada_variant_discrim_name, field_alignment, dynamic_template_type,
5065         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
5066         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
5067         and strcmp. 
5068
5069         (ada_get_field_index): New function.
5070         (lim_warning): New function.
5071         (ada_translate_error_message): New function.
5072         (MAX_OF_SIZE): New function.
5073         (MIN_OF_SIZE): New function.
5074         (UMAX_OF_SIZE): New function.
5075         (UMIN_OF_SIZE): New function.
5076         (discrete_type_high_bound): New function.
5077         (discrete_type_low_bound): New function.
5078         (base_type): New function.
5079         (do_command): Remove.
5080         
5081         (ada_update_initial_language): Use language_ada, not language_unknown.
5082         (ada_encode): Renamed from ada_mangle.
5083         Obey ADA_RETAIN_DOTS.
5084         (ada_decode): Renamed from ada_demangle.
5085         Update coding conventions.
5086         (decoded_names_store): New hash table.
5087         (ada_decode_symbol): New function.
5088         (ada_la_decode): New function.
5089         
5090         (modify_general_field): Correct computations of offset and bit 
5091         position.
5092         (desc_base_type): Handle ref types, too.
5093         (ada_is_direct_array_type): New function.
5094
5095         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5096         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5097         (ada_is_bogus_array_descriptor,ada_type_of_array,
5098         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5099         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
5100         ada_is_array_descriptor_type.
5101         
5102         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5103         (ada_is_packed_array_type): Handle pointers or 
5104         references to packed arrays as well.
5105         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5106         (decode_packed_array_type): Search for the packed array type 
5107         symbol in the currently selected block and associated 
5108         superblocks too.
5109         Use lookup_symbol again.
5110
5111         (decode_packed_array): Handle pointers and references.
5112         Update call to coerce_unspec_val_to_type.
5113         (decode_packed_array_type,value_subscript_packed): Limit warnings.
5114         (ada_value_primitive_packed_val): Improve comment.
5115         
5116         (ada_index_type): Substitute int type for "undefined".
5117         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5118         ada_array_langth, ada_is_string_type): Use renamed 
5119         ada_is_simple_array_type.
5120         (empty_array): New function.
5121
5122         (ada_resolve):  Rename to resolve.
5123         (resolve): Make static.
5124         Call renamed resolve_subexp.
5125         Update comment.
5126         (ada_resolve_subexp): Rename to resolve_subexp.
5127         (resolve_subexp): Update comment.
5128         Decomment disabled code.
5129         Add LOC_COMPUTED* cases.
5130         Modify to use temporary struct symbols (marked as being in 
5131         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
5132         OP_UNRESOLVED_VALUE.
5133         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
5134         Add OP_STRING case.
5135         Remove OP_ARRAY.
5136         Use SYMBOL_PRINT_NAME instead of ada_demangle.
5137         Use new ada_lookup_symbol_list interface.
5138         Use new ada_resolve_function interface.
5139         Remove OP_TYPE case.
5140
5141         (ada_args_match): Idiot proof against null actuals.
5142         Use intermediate variables to clarify.
5143         (ada_resolve_function): Update comment and interface.
5144         (mangled_ordered_before): Rename to encoded_ordered_before and
5145         update comment.
5146         (sort_choices): Update comment and interface.
5147         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5148         (user_select_syms): New interface.
5149         Use new sort_choices interface.
5150         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5151         (possible_user_operator_p): Idiot-proof against null values.
5152         (ada_simple_renamed_entity): Don't make cleanup; rely on 
5153         caller to free result string.
5154         Remove const from return type.
5155         (make_array_descriptor): Rename uses of place_on_stack to 
5156         ensure_lval.
5157         Make sure that arrays are on stack.
5158         
5159         (HASH_SIZE): Define.
5160         (struct cache_entry): Define.
5161         (cache_space): Define.
5162         (cache): Define.
5163         (clear_ada_sym_cache): New function.
5164         (find_entry): New function.
5165         (lookup_cached_symbol): New function.
5166         (defn_vector_size): Define.
5167         (cache_symbol): New function.
5168         (defn_symbols): Remove.
5169         
5170         (standard_lookup): Use lookup_symbol_in_language to get effect of
5171         C lookup.
5172         Cache results.
5173         
5174         (symbol_completion_match): New function.
5175         (symbol_completion_add): New function.
5176         (ada_make_symbol_completion_list): New function.
5177
5178         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
5179         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
5180         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
5181         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5182         
5183         (ada_lookup_simple_minsym): New function.
5184         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5185
5186         (add_symbols_from_enclosing_procs): New interface.
5187         Conditionalize more helpfully.
5188         Don't bother if program isn't running.
5189         Use new interface to get_frame_block.
5190         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5191         
5192         (remove_extra_symbols): New interface.
5193         (xget_renaming_scope): New function.
5194         (is_package_name): New function.
5195         (renaming_is_visible): New function.
5196         (remove_out_of_scope_renamings): New function.
5197
5198         (ada_lookup_symbol_list): New interface.
5199         Properly reinitialize the symbol list obstack.
5200         Don't call add_symbols_from_enclosing_procs if we start from a
5201         static or global block.
5202         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
5203         add_symbols_from_enclosing_procs.
5204         Add symtab data to cached entries.
5205         Handle symbols prefixed with
5206         "standard__" specially; strip prefix and don't look in local symbols.
5207         Do not include out of scope renaming symbols in list of 
5208         symbols returned.
5209         Add const to block parameter.
5210         Move check for non-local, non-global symbols earlier.  
5211         Remove timing stuff.
5212         (ada_lookup_symbol): New interface.
5213         Find symtab as well.
5214         (ada_lookup_symbol_nonlocal): New function.
5215
5216         (is_name_suffix): Enhance suffix detection to recognize
5217         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5218         (is_dot_digits_suffix): New function.
5219         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5220         
5221         (ada_add_block_symbols): New interface.  Use obstack to return results
5222         in a vector of struct ada_symbol_infos.  Add symtab argument.
5223         Use new interface to add_defn_to_vec.
5224         Remove calls to fill_in_ada_prototype.
5225         Use BLOCK_BUCKETS, BLOCK_BUCKET.
5226         
5227         (ada_finish_decode_line_1): Add const qualification to local to fix
5228         warning.
5229         Start looking in static block for functions to avoid attempts 
5230         to search frame chain for up-level variables.
5231         Adapt to new ada_sals_for_line interface.
5232         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5233         Handle quoting of the function name inside the spec string.
5234         Skip prologue when funfirstline is set and update the 
5235         function documentation to that effect.
5236
5237         (debug_print_lines, debug_print_block, debug_print_blocks, 
5238         debug_print_symtab): Remove.
5239
5240         (ada_main_name): New function.  
5241         (ada_exception_breakpoint_type): New function.
5242         (is_known_support_routine): New function.
5243         (ada_find_printable_frame): Renamed from find_printable_frame and made
5244         global.
5245         Remove level parameter.
5246         Use new interface to select_frame.
5247
5248         (begin_command): Remove.
5249         (ada_adjust_exception_stop): New function.
5250         (ada_print_exception_stop): New function.
5251         (exception_name_from_cond): New function.
5252         (ada_report_exception_break): Replace disabled code with 
5253         conditionalization on GNAT_GDB.
5254         Get the exception name from the condition string.
5255         Remove and move functionality into new functions 
5256         ada_print_exception_breakpoint_task and 
5257         ada_print_exception_breakpoint_nontask.
5258         (error_breakpoint_runtime_sym_not_found): New function.
5259         (is_runtime_sym_defined): New function.
5260         (ada_breakpoint_rewrite): Uncomment suppressed code.
5261         Use symbolic error-message and runtime-symbol names.
5262         Surround runtime symbol names in quotes.
5263         Allow non-specific breakpoints on exceptions and assertions before
5264         program starts.
5265         
5266         (ada_is_tagged_type): Add parameter.
5267         (ada_is_tag_type): New function.
5268         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5269         (ada_variant_discrim_type): Ditto.
5270         (value_tag_from_contents_and_address): New function.
5271         (type_from_tag): New function.
5272         (struct tag_args): New structure used to communicate with
5273         ada_tag_name_1.
5274         (ada_tag_name_1): New function.
5275         (ada_tag_name): New function.
5276
5277         (ada_scan_number): Update comment.
5278         (find_struct_field): New function.
5279         (ada_search_struct_field): Make static.
5280         (ada_value_struct_elt): New version that returns references when
5281         given pointers or references to structs.
5282         (ada_lookup_struct_elt_type): Add 'refok' parameter.
5283         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5284         interface.
5285         (ada_value_ind): Use new ada_to_fixed_value interface.
5286         (ada_coerce_ref): Ditto.
5287         (field_offset): Remove.
5288
5289         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5290         (ada_find_renaming_symbol): New function.
5291         (ada_prefer_type): Prefer named types over unnamed ones.
5292         (variant_field_index): New function.
5293         (contains_variant_part): Removed: subsumed by variant_field_index.
5294         (ada_template_to_fixed_record_type): New function, mostly from
5295         template_to_fixed_record_type.
5296         (template_to_fixed_record_type): 
5297         Do not scan the type fields beyond the last one; prevents a 
5298         potential SEGV.
5299         Handle case where variant field is listed BEFORE discriminant it 
5300         depends on.
5301         Fix calculation of record length when bit length is 
5302         not evenly divisible by char length.
5303         Move code to ada_template_to_fixed_record_type and call it.
5304
5305         (template_to_static_fixed_type): Revise comment.  
5306         Modify to work on ordinary record types as well as templates, 
5307         so as to handle fields that use ___XVE or ___XVU encodings. 
5308         (to_record_with_fixed_variant_part): Fill out comment.
5309         Initialize C++ stuff in right type.
5310         Allow case where DVAL is null.
5311         Handle case where variant field is not last.
5312         Fix typo concerning record length.
5313         (to_fixed_record_type): Decomment disabled code.
5314         (to_fixed_record_type): Use variant_field_index instead of 
5315         contains_variant_part.
5316         (to_fixed_variant_branch_type): Ditto.
5317         (to_fixed_array_type): Decomment disabled code.
5318         (ada_to_fixed_type): Convert tagged types to the specific type.
5319         Deactivate the size-check for array types in order to avoid 
5320         some false size alarms.
5321         (to_static_fixed_type): Decomment disabled code.
5322         Modify to call template_to_static_fixed_type
5323         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5324         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5325         Remove valaddr argument, as it is never really used.
5326         (ada_to_fixed_value): Change interface to act on single struct value*
5327         operand.
5328         (adjust_pc_past_prologue): New function.
5329         (ada_attribute_name): Modify to take enum exp_opcode argument.
5330                 
5331         (ada_enum_name): Recognize new homonym-distinguishing convention.
5332         Adjust local variable's type to remove compiler warning.
5333         Fix a small problem in the part that unqualifies the enumeration name.
5334         (ada_value_binop): New function.
5335         (ada_value_equal): New function.
5336
5337         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5338         Don't give error message when not doing normal evaluation 
5339         and a tagged type doesn't seem to contain a structure member.
5340         Give error message for packed arrays.
5341         For indexing arrays, handle pointers to packed arrays correctly.
5342         Handle case of 'first and 'last attributes of bare integral type 
5343         without encoded subtype info.  
5344         Remove some unnecessary casts.
5345         Fix uninitialized value of type in computing 'first, 'last, or 'length
5346         of array object.  
5347         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5348         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5349         calls.
5350         Attributes are now exp_opcode values.
5351         Correct treatment of 'modulus.
5352         Better error message for taking 'length of wrong kind of type; 
5353         improve comment.
5354         Change EVAL_NORMAL to noside for consistency.
5355         Use ada_value_binop for DIV, MOD, REM.
5356         Make special case out of array of length 0, since an argument 
5357         of 0 upsets some platforms' malloc.
5358         Use OP_STRING instead of OP_ARRAY.
5359         For slice, add check that we have an array type before extracting 
5360         a slice out of it.  Avoids a SEGV.
5361         When evaluating an array slice, if the array type is a reference to 
5362         an aligner type, then replace the aligner type by the actual type.
5363         Decomment disabled code.
5364         Remove some dead code.
5365         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
5366         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5367         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
5368         and UNOP_MBR to UNOP_IN_RANGE.
5369         If an array type has a parallel ___XVE type, then use it.
5370         Turn arrays into pointers for lvalue arrays.
5371         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5372         bounds error and handle 0-length slices.
5373         Use lim_warning.
5374         When selecting fields, apply ada_to_fixed_value (because the fields 
5375         might have ___XVU or ___XVE encodings even if not dynamic.)
5376         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5377         (ada_is_system_address_type): New function.
5378
5379         (get_var_value): Use new interface to ada_lookup_symbol_list.
5380         (get_int_var_value): New interface.
5381         (to_fixed_range_type): Allow unknown bound, with warning.
5382         (ada_is_modular_type): Decomment disabled code.
5383         (ADA_OPERATORS): New definition.
5384         (ada_operator_length): New function.
5385         (ada_expr_op_name): New function.
5386         (ada_forward_operator_length): New function.
5387         (ada_dump_subexp_body): New function.
5388         (ada_print_subexp): New function.
5389         (ada_exp_descriptor): New constant.
5390         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
5391         (ada_language_defn): Add ada_exp_descriptor entry.
5392         Change ada_parse => parse.
5393         Add post-parser entry.
5394         Use ada-specific non-local symbol lookup.
5395         Don't use C-style arrays. 
5396         String lower-bound is 1.
5397         Decomment disabled code.        
5398         (parse): New function.
5399         New fields ada_translate_error_message, ada_lookup_symbol, 
5400         ada_lookup_minimal_symbol.
5401         
5402         * ada-lang.h: Update copyright dates.
5403         Replace the mangle/demangle terminology throughout by the
5404         more appropriate encode/decode one. 
5405         Include breakpoint.h.
5406         Forward declare struct partial_symbol, struct block.
5407         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5408         (EXTRACT_ADDRESS): Remove.
5409         (EXTRACT_INT): Remove.
5410         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5411         (MAX_ENCLOSING_FRAME_LEVELS): Define.
5412         (MAX_RENAMING_CHAIN_LENGTH): Define.
5413         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5414
5415         (enum task_states): Remove.
5416         ada_task_states: Remove.
5417         (fat_string): Remove.
5418         (struct entry_call): Remove.
5419         (struct task_fields): Remove.
5420         (struct task_entry): Remove.
5421
5422         (struct ada_symbol_info): Define.
5423         (enum ada_attribute): Remove.
5424         (enum ada_operator): Define.
5425         
5426         (ada_get_field_index): Declare.
5427         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5428         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5429         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5430         (ada_lookup_symbol_list): New interface.
5431         (ada_decode_symbol): Declare.
5432         (ada_decode): Declare.
5433         (ada_lookup_symbol): New interface.
5434         (ada_update_initial_language): Declare.
5435         (ada_lookup_simple_minsym): Declare.
5436         (user_select_syms): New interface.
5437         (ada_sals_for_line): Declare.
5438         (ada_is_tagged_type): New interface.
5439         (ada_tag_name): Declare.
5440         (ada_lookup_struct_elt_type): Remove declaration.
5441         (ada_search_struct_field): Remove declaration.
5442         (ada_attribute_name): New interface.
5443         (ada_is_system_address_type): Declare.
5444         (ada_to_fixed_value): Remove declaration.
5445         (ada_template_to_fixed_record_type_1): Declare.
5446         (get_int_var_value): New interface.
5447         (ada_find_any_symbol): Declare.
5448         (ada_find_renaming_symbol): Declare.
5449         (ada_mangle): Rename to ada_encode.
5450         (ada_simple_renamed_entity): Remove const.
5451         (ada_main_name): Declare.
5452         (get_current_task): Rename to ada_get_current_task.
5453         (get_entry_number): Remove declaration.
5454         (ada_report_exception_break): Remove declaration.
5455         (ada_print_exception_breakpoint_nontask): Declare.
5456         (ada_print_exception_breakpoint_task): Declare.
5457         (ada_find_printable_frame): Declare.
5458
5459         * ada-lex.l: Update copyright notices.
5460         Use xmalloc and xfree instead of malloc and free.
5461         Use new interface to name_lookup.
5462         Use new interface to 
5463         ada_mangle=>ada_encode.
5464         Redo handling of '$...' variable to parallel current treatment 
5465         in c-exp.y.  
5466         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5467         digit_to_int, strtoulst, processInt, processReal, processId, 
5468         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5469         yywrap): Protoize.
5470         
5471         (processInt): Use cast to remove harmless warning.
5472         (processReal): Modify to get rid of compiler warning on scan formats.
5473
5474         (processId): Replace xmalloc with obstack_alloc for name and remove
5475         call to ada_name_string_cleanup.
5476         Remove obsolete disabled code.
5477         (name_lookup): Ditto. 
5478         New interface.
5479         Use obsavestring on temp_parse_space instead of savestring 
5480         on name, and remove call to ada_name_string_cleanup.  
5481         Free string returned from ada_simple_renamed_entity.
5482         Use new interface to ada_lookup_symbol_list.
5483         Decomment disabled code.
5484         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
5485         not types.
5486         When a type name lookup succeeds as a result of 
5487         lookup_primitive_typename, check for regular type entry that has not 
5488         yet been read in.
5489         Limit length of chain of renamed symbols we are willing to follow.  
5490         Do not break names beginning with "standard__" into segments.  
5491         (block_lookup): Use new interface to ada_lookup_symbol_list.
5492         
5493         * ada-typeprint.c: Update copyright notice.
5494         (demangled_type_name): Rename to decoded_type_name.
5495         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5496         (print_range_bound):  Correct handling of negative
5497         bounds that make the index type looked unsigned under STABS.  
5498         (print_dynamic_range_bound): Use new interface to get_int_var_value.
5499         (print_range_type_named):  Use the builtin int type if no type 
5500         corresponding to the given type name could be found.
5501         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5502         Add some bullet-proofing.
5503         (print_variant_clauses): Allow for variant branches with ___XVU 
5504         encodings that are not dynamic fields.  
5505         Use new interface to ada_is_tagged_type.
5506         (print_record_type): Allow for fields with ___XVE encodings that 
5507         are not dynamic fields. 
5508         Use new interface to ada_is_tagged_type.
5509         (ada_print_type): ada_is_array_descriptor => 
5510         ada_is_array_descriptor_type.
5511
5512         * ada-valprint.c: Update copyright notice.
5513         Include gdb_string.h
5514         Include infcall.h
5515         (ui_memcpy): New function.
5516         (ada_print_floating): New function.
5517         (ada_print_str): Order arguments correctly.
5518         Correct handling of empty arrays and arrays of 0-length items. 
5519         ada_is_array_descriptor => ada_is_array_descriptor_type 
5520         Print values of type System.Address in hexadecimal format.
5521         Use ada_print_floating to print floating-point numbers in Ada format.
5522         Print class tag values with type names.  
5523         No longer print the address of reference values. Avoids 
5524         a potential confusion.  
5525         (ada_value_print): Stop printing the object type for reference
5526         values, but preserve that behavior for access types. Avoids
5527         a potential confusion.
5528         Simplify one conditional expression, as the first part is now
5529         necessarily true.
5530         ada_is_array_descriptor => ada_is_array_descriptor_type 
5531         Add check for arrays for null records, and print them by hand.
5532         
5533 2004-06-01  Jim Blandy  <jimb@redhat.com>
5534
5535         * ppc-tdep.h: Delete unused 'regoff' member.
5536         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5537
5538 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
5539
5540         Fix PR symtab/1661.
5541         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5542         (hpread_read_struct_type): Likewise.
5543
5544 2004-06-01  Andrew Cagney  <cagney@gnu.org>
5545
5546         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5547         instead of xasprintf.
5548         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
5549         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
5550         (mi_cmd_data_list_register_names) 
5551         (mi_cmd_data_list_changed_registers) 
5552         (mi_cmd_data_list_register_values) 
5553         (get_register, mi_cmd_data_write_register_values) 
5554         (mi_cmd_data_write_register_values) 
5555         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
5556         (mi_cmd_target_download, mi_cmd_target_select) 
5557         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
5558         (mi_execute_cli_command, mi_execute_async_cli_command) 
5559         (mi_execute_async_cli_command): Ditto.
5560         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5561         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5562
5563         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5564         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5565         error_last_message instead of mi_error_last_message.
5566         * mi/mi-main.c (mi_error_last_message): Delete function.
5567
5568         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5569         "invalid number of columns" error.  Delete redundant "out of
5570         memory" check.
5571
5572 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
5573
5574         * i386bsd-nat.c: Don't include <sys/procfs.h>.
5575         (gregset_t, fpregset_t): Remove typedefs.
5576         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5577         (REG_OFFSET): Rename argument.
5578         (i386bsd_r_reg_offset): Rename from reg_offset.
5579         (REG_ADDR): Remove macro.
5580         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5581         functions.
5582         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5583         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5584         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
5585         instead of supply_gregset.
5586         (store_inferior_registers): Use `struct reg' and `struct fpreg'
5587         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
5588         instead of fill_gregset.
5589         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5590
5591         * i386bsd-nat.c: Don't include "gregset.h".
5592         (supply_gregset, fill_gregset): Make static.
5593         (supply_fpregset, fill_fpregset): Remove.
5594         * Makefile.in (i386bsd-nat.o): Update dependencies.
5595
5596 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
5597
5598         * fbsd-proc.c: Include "regcache.h", "regset.h" and
5599         "gdb_assert.h".  Con't include "gregset.h".
5600         (fbsd_make_corefile_notes): Use regset-based core file support
5601         instead off fill_gregset and fill_fpregset.
5602         * Makefile.in (fbsd-proc.o): Update dependencies.
5603
5604         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5605         instructions.
5606         (m88k_frame_prev_register): Simplify code a bit.
5607
5608         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5609         (amd64_collect_fpregset): New function.
5610         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5611
5612         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5613
5614         * i386-tdep.c (i386_supply_gregset): Adjust comment.
5615         (i386_collect_gregset): New function.
5616         (i386_supply_fpregset): Adjust comment.
5617         (i386_collect_fpregset): New function.
5618         (i386_regset_from_core_section): Use i386_collect_gregset and
5619         i386_collect_fpregset.
5620
5621         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5622         handle VALUEP being null.
5623
5624         * regset.h (collect_regset_ftype): Unconstify fourth argument.
5625
5626 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
5627
5628         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
5629
5630         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5631         assembler in OpenBSD 3.5-current.
5632         (amd64obsd_sigcontext_addr): Likewise.
5633
5634 2004-05-28  Jim Blandy  <jimb@redhat.com>
5635
5636         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5637         register set, so our regcache isn't declared "legacy" and our E500
5638         pseudoregister read and write functions aren't ignored.
5639         (rs6000_register_byte, rs6000_register_raw_size,
5640         rs6000_register_virtual_type, rs6000_register_convertible,
5641         rs6000_register_convert_to_virtual,
5642         rs6000_register_convert_to_raw): Deleted.
5643         (rs6000_register_type, rs6000_convert_register_p,
5644         rs6000_register_to_value, rs6000_value_to_register): New
5645         functions.
5646         (rs6000_gdbarch_init): Don't register
5647         gdbarch_deprecated_register_size,
5648         gdbarch_deprecated_register_bytes,
5649         gdbarch_deprecated_register_byte,
5650         gdbarch_deprecated_register_raw_size,
5651         gdbarch_deprecated_register_virtual_type,
5652         gdbarch_deprecated_register_convertible,
5653         gdbarch_deprecated_register_convert_to_virtual, or
5654         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
5655         register gdbarch_register_type, gdbarch_convert_register_p,
5656         gdbarch_register_to_value, and gdbarch_value_to_register methods.
5657
5658 2004-05-26  Jim Blandy  <jimb@redhat.com>
5659
5660         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5661         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5662         functions, updated to match the register numberings used in GCC.
5663         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5664         rs6000_dwarf2_reg_to_regnum as register number conversions
5665         functions for STABS and Dwarf2.
5666
5667 2004-05-26  Randolph Chung  <tausq@debian.org>
5668
5669         * infttrace.h (target_waitkind): Forward declare type instead of pulling
5670         in header file.
5671
5672 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
5673
5674         * NEWS: Document new "start" command.
5675
5676 2004-05-25  Randolph Chung  <tausq@debian.org>
5677
5678         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5679         hppa-linux.
5680
5681 2004-05-25  Randolph Chung  <tausq@debian.org>
5682
5683         * hppa-hpux-tdep.c (offsetof): Define.
5684         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5685         (hppa32_hpux_frame_base_before_sigtramp)
5686         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5687         (hppa64_hpux_frame_saved_pc_in_sigtramp)
5688         (hppa64_hpux_frame_base_before_sigtramp)
5689         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
5690         functions.
5691         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5692         (hppa_hpux_sigtramp_frame_unwind_cache)
5693         (hppa_hpux_sigtramp_frame_this_id)
5694         (hppa_hpux_sigtramp_frame_prev_register)
5695         (hppa_hpux_sigtramp_frame_unwind)
5696         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5697         (hppa_hpux_init_abi): Register sigtramp unwinder.
5698         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5699
5700 2004-05-25  Randolph Chung  <tausq@debian.org>
5701
5702         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5703         and multiple stack unwinds.
5704         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5705
5706 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5707
5708         * symfile.h (symbol_file_add_from_memory): Delete declaration.
5709         * symfile-mem.h: Delete file.
5710         * symfile-mem.c: Do not include "symfile-mem.h".
5711         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5712         "struct bfd_section".  When an error do not bother returning NULL.
5713         (add_symbol_file_from_memory_command): Use "struct bfd" and
5714         "struct bfd_section".
5715         * Makefile.in (symfile_mem_h): Delete.
5716         (symfile-mem.o): Update dependencies.
5717
5718 2004-05-25  Nick Roberts  <nickrob@gnu.org>
5719
5720         * gdb-mi.el: New file.
5721
5722 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5723
5724         * inftarg.c: Include "observer.h".
5725         (child_attach, child_create_inferior): Notify inferior_created.
5726         * corelow.c: Include "observer.h".
5727         (core_open): Notify inferior_created.
5728         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5729
5730 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5731
5732         * target.h (struct target_ops): Add from_tty to
5733         to_create_inferior.
5734         (target_create_inferior, find_default_create_inferior): Update.
5735         * infcmd.c (run_command): Update.
5736         * wince.c (child_create_inferior): Update.
5737         * win32-nat.c (child_create_inferior): Update.
5738         * uw-thread.c (uw_thread_create_inferior): Update.
5739         * thread-db.c (thread_db_create_inferior): Update.
5740         * target.c (debug_to_create_inferior) 
5741         (find_default_create_inferior): Update.
5742         (maybe_kill_then_create_inferior): Update.
5743         * sol-thread.c (sol_thread_create_inferior): Update.
5744         * remote.c (extended_remote_async_create_inferior) 
5745         (extended_remote_create_inferior): Update.
5746         * remote-vx.c (vx_create_inferior): Update.
5747         * remote-st.c (st2000_create_inferior): Update.
5748         * remote-sim.c (gdbsim_create_inferior): Update.
5749         * remote-sds.c (sds_create_inferior): Update.
5750         * remote-rdp.c (remote_rdp_create_inferior): Update.
5751         * remote-rdi.c (arm_rdi_create_inferior): Update.
5752         * remote-m32r-sdi.c (m32r_create_inferior): Update.
5753         * remote-e7000.c (e7000_create_inferior): Update.
5754         * procfs.c (procfs_create_inferior): Update.
5755         * ocd.c (ocd_create_inferior): Update.
5756         * ocd.h (ocd_create_inferior): Update.
5757         * nto-procfs.c (procfs_create_inferior): Update.
5758         * monitor.c (monitor_create_inferior): Update.
5759         * lin-lwp.c (lin_lwp_create_inferior): Update.
5760         * inftarg.c (child_create_inferior): Update.
5761         * hpux-thread.c (hpux_thread_create_inferior): Update.
5762         * gnu-nat.c (gnu_create_inferior): Update.
5763
5764 2004-05-25  Andrew Cagney  <cagney@gnu.com>
5765
5766         * MAINTAINERS: Update e-mail address.
5767
5768 2004-05-24  Randolph Chung  <tausq@debian.org>
5769
5770         * thread.c (info_threads_command, thread_apply_all_command)
5771         (thread_apply_command, thread_command, do_captured_thread_select):
5772         Remove HPUXHPPA-specific code.
5773
5774 2004-05-24  Randolph Chung  <tausq@debian.org>
5775
5776         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5777         unused symbols.
5778         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5779         references.
5780
5781 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
5782
5783         * infcmd.c (kill_if_already_running): New function, extracted
5784         from run_command().
5785         (run_command): Replace extracted code by call to
5786         kill_if_already_running().
5787         (start_command): New function.
5788         (_initialize_infcmd): Add "start" command.
5789
5790 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
5791
5792         Add OpenBSD/m88k support.
5793         * NEWS (New native configurations): Mention OpenBSD/m88k.
5794         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5795         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5796         * Makefile.in (m88k_tdep_h): New variable.
5797         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5798         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5799         * configure.host: Add m88*-*-openbsd*.
5800         * configure.tgt: Add m88*-*-openbsd*.
5801
5802 2004-05-24  Jim Blandy  <jimb@redhat.com>
5803
5804         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5805         to approve changes.
5806
5807 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
5808
5809         * symtab.c (fixup_section): Search section table when lookup by
5810         name fails.
5811
5812 2004-05-24  Randolph Chung  <tausq@debian.org>
5813
5814         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
5815         be "small_struct".
5816
5817 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
5818
5819         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5820         register number in regcache_raw_collect call.
5821         (m68kbsd_collect_fpregset): Likewise.
5822         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5823
5824         * regset.h (struct regset): Add back `regset' member.
5825
5826 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
5827
5828         * configure.in: Check for td_pcb in `struct thread'.
5829         * configure, config.in: Regenerated.
5830
5831         * dpx2-nat.c: Remove file.
5832         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5833         (dpx2-nat.o): Remove dependencies.
5834
5835         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5836         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5837         (amd64obsd_supply_pcb): New function.
5838         (_initialize_amd64obsd_nat): Enable libkvm interface.
5839         * Makefile.in (amd64obsd-nat.o): Update dependencies.
5840         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5841         (LOADLIBES): New variable.
5842
5843         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5844         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5845         (sparc32nbsd_supply_pcb): New function.
5846         (_initialize_sparcnbsd_nat): Enable libkvm interface.
5847         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5848         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5849         (LOADLIBES): New variable.
5850
5851 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
5852
5853         * bsd-kvm.c, bsd-kvm.h: New files.
5854         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5855         "bsd-kvm.h".
5856         (i386fbsd_supply_pcb): New function.
5857         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5858         (i386fbsd-nat.o): Update dependencies.
5859         (bsd_kvm_h): New variable.
5860         (bsd-kvm.o): New dependency.
5861         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5862         (LOADLIBES): New variable.
5863
5864         * regset.c: Tweak comment.
5865         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
5866         macro.
5867         * regset.h: Update copyright year.
5868         (struct regset): Remove `descr' member, add `gdbarch' member.
5869         (regset_alloc): Adjust prototype and comment.
5870         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5871         (i386_supply_fpregset): Likewise.
5872         (i386_regset_from_core_section): Update call to regset_alloc.
5873         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5874         REGSET->arch.
5875         (i386obsd_aout_regset_from_core_section): Update call to
5876         regset_alloc.
5877         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5878         REGSET->arch.
5879         (i386nbsd_aout_regset_from_core_section): Update call to
5880         regset_alloc.
5881         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5882         REGSET->arch.
5883         (amd64_regset_from_core_section): Update call to regset_alloc.
5884         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5885         REGSET->arch.
5886         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5887         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5888         &sparc32nbsd_gregset in sparc32_supply_gregset call.
5889         (sparc32nbsd_init_abi): Update call to regset_alloc.
5890         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5891         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5892         (sparc64obsd_init_abi): Update call to regset_alloc.
5893         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5894         &sparc64nbsd_gregset in sparc64_supply_gregset call.
5895         (sparc64nbsd_init_abi): Update call to regset_alloc.
5896         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5897         &sparc64fbsd_gregset in sparc64_supply_gregset call.
5898         (sparc64fbsd_init_abi): Update call to regset_alloc.
5899
5900 2004-05-22  Jim Blandy  <jimb@redhat.com>
5901
5902         * ppc-tdep.h (spe_register_p): New declaration.
5903         (struct gdbarch_tdep): New members: ppc_acc_regnum and
5904         ppc_spefscr_regnum.
5905         * rs6000-tdep.c (spe_register_p): New function.
5906         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5907         spefscr.
5908         (rs6000_gdbarch_init): Initialize the new members of the tdep
5909         structure.
5910
5911 2004-05-21  Jim Blandy  <jimb@redhat.com>
5912
5913         * ppc-linux-nat.c (fetch_register): Move code back to be next
5914         to the comment that describes it.  (Moved code, instead of
5915         comment, for symmetry with store_register.)
5916
5917         Allocate regset structures in the gdbarch's obstack, not using
5918         xmalloc.
5919         * regset.c (regset_alloc): Renamed from regset_xmalloc.
5920         Add 'arch' argument.  Allocate the regset on arch's obstack, not
5921         using xmalloc.
5922         * regset.h (regset_alloc): Update declaration.
5923         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5924         gdbarch argument.
5925         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5926         * i386-tdep.c (i386_regset_from_core_section): Same.
5927         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5928         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5929         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5930         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5931         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5932         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5933
5934 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
5935
5936         * config/djgpp/fnchange.lst: Undo previous change, was useless.
5937
5938 2004-05-21  Jim Blandy  <jimb@redhat.com>
5939
5940         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5941         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
5942
5943 2004-05-20  Jim Blandy  <jimb@redhat.com>
5944
5945         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5946
5947 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
5948
5949         * regset.h: Make prototype const-correct.
5950         * regset.c (regset_xmalloc): Make const-correct.
5951
5952 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
5953
5954         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5955         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5956         (symbol_search_name): Declare.
5957         
5958         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5959         (iter_name_next_hashed): Ditto.
5960         (iter_name_next_linear): Ditto.
5961         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5962
5963         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
5964         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5965         (symbol_search_name): New function.
5966         
5967         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5968         
5969         * minsyms.c (build_minimal_symbol_hash_tables): Change
5970         test for adding to demangled hash table to check for difference
5971         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5972         
5973 2004-05-19  Jim Blandy  <jimb@redhat.com>
5974
5975         Use a constructor function to create regset structures.
5976         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5977         (struct regset): Use supply_regset_ftype.  Add new
5978         'collect_regset' member.
5979         (regset_xmalloc): New declaration.
5980         * regset.c: New file.
5981         * am64-tdep.c (amd64_regset_from_core_section): Use
5982         regset_xmalloc to construct regset structures.
5983         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5984         * i386-tdep.c (i386_regset_from_core_section): Same.
5985         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5986         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5987         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5988         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5989         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5990         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5991         * Makefile.in (COMMON_OBS): Add regset.o.
5992         (regset.o): New rule.
5993
5994 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
5995
5996         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5997         and pthread_cond_wait.c.
5998
5999 2004-05-18  Jim Blandy  <jimb@redhat.com>
6000
6001         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6002         before the mach-specific switch, and then let the individual cases
6003         override the defaults, rather than leaving them uninitialized
6004         until the switch and then setting them in each case.
6005
6006 2004-05-18  Randolph Chung  <tausq@debian.org>
6007
6008         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6009         millicode functions.
6010
6011 2004-05-18  Randolph Chung  <tausq@debian.org>
6012
6013         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6014         references to dld_flags_buffer consistent.
6015
6016 2004-05-18  Randolph Chung  <tausq@debian.org>
6017
6018         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6019         it for unwinding the stack.
6020
6021 2004-05-18  Randolph Chung  <tausq@debian.org>
6022
6023         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6024         Undefine these so we can overide them using gdbarch.
6025
6026 2004-05-18  Randolph Chung <tausq@debian.org>
6027
6028         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6029         handling for 64-bit HPUX (elf).
6030
6031 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
6032
6033         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6034         constants.
6035         * amd64-tdep.c (amd64_skip_prologue): Likewise.
6036         * ia64-tdep.c (examine_prologue): Likewise.
6037         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6038         * v850-tdep.c (v850_fix_call_dummy): Likewise.
6039
6040 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
6041
6042         * vax-tdep.c (vax_return_value): Implement
6043         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6044
6045 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
6046
6047         * vax-tdep.c (vax_return_value): Fix typo.
6048
6049 2004-05-17  Andrew Cagney  <cagney@redhat.com>
6050
6051         * MAINTAINERS: Mark Salter was also responsible for
6052         testsuite/config/
6053
6054         * NEWS: Mention signal fixes.
6055
6056 2004-05-17  Randolph Chung  <tausq@debian.org>
6057
6058         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6059         check to see if we are unwinding an export stub.  Export stubs clobber
6060         the %rp in the call path and stores the original rp in a stack slot.
6061
6062 2004-05-17  Jim Blandy  <jimb@redhat.com>
6063
6064         * MAINTAINERS: Update address for J.T. Conklin.
6065
6066 2004-05-17  Randolph Chung  <tausq@debian.org>
6067
6068         * hppa-tdep.c: Remove superfluous #include's.
6069         * Makefile.in (hppa-tdep.o): Update dependencies.
6070
6071 2004-05-17  Randolph Chung  <tausq@debian.org>
6072
6073         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6074         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6075         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6076         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6077         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6078         Remove static function declarations.
6079
6080 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
6081
6082         * alphabsd-nat.c: Update copyright year.
6083         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6084
6085         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6086         and M68K_A2_REGNUM.
6087
6088         * m68k-tdep.c (m68k_svr4_return_value): Implement
6089         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6090
6091 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
6092
6093         * sol-thread.c Update copyright year.  Fix various coding
6094         standards violations.  Tweak a few comments.
6095         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6096         Delete prototypes.
6097
6098 2004-05-15  Randolph Chung  <tausq@debian.org>
6099
6100         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6101         as pointer instead of array reference since HPUX compiler does
6102         not accept unsized array arguments.
6103         * somsolib.c (dld_flags_buffer): Use constant array size.
6104
6105 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
6106
6107         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6108         offset with decimal offset.
6109         (amd64obsd_sigcontext_addr): Return correct address for entire
6110         signal trampoline.
6111
6112         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6113         instead of get_frame_base.
6114
6115         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6116         (fill_gregset): Use regcache_raw_collect.
6117
6118         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6119         ppcobsd-tdep.c.
6120
6121         * config/sparc/tm-nbsd64.h: Remove file.
6122         * config/tm-sunos.h: Remove file.
6123
6124 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
6125
6126         * rs6000-tdep.c (store_param_on_stack_p): New function,
6127         an improved version of some code extracted from skip_prologue().
6128         (skip_prologue): Use store_param_on_stack_p() to detect
6129         instructions saving a parameter on the stack. Detect when r0
6130         is used to save a parameter.
6131         Do not mark "li rx, SIMM" instructions as part of the prologue,
6132         unless the following instruction is also part of the prologue.
6133
6134 2004-05-14  Andrew Cagney  <cagney@redhat.com>
6135
6136         * infrun.c (handle_inferior_event): Simplify
6137         STEP_OVER_UNDEBUGGABLE.
6138
6139         * infrun.c (handle_step_into_function): Delete function.
6140         (handle_inferior_event): Inline calls to
6141         handle_step_into_function.
6142
6143 2004-05-14  Jerome Guitton  <guitton@gnat.com>
6144
6145         * rs6000-nat.c: Fix a comment.
6146
6147 2004-05-12  David Anderson <davea@sgi.com>
6148
6149         Committed by Jim Blandy <jimb@redhat.com>:
6150         * regcache.c (struct regcache_descr): fix comment spelling.
6151
6152 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6153
6154         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6155         Fixes a link link failure.
6156
6157 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6158
6159         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6160         error that was causing the build to fail.
6161
6162 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6163
6164         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6165         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6166
6167 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6168
6169         * infrun.c (handle_inferior_event): Check for
6170         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6171         calls.  Update comments.
6172
6173 2004-05-13  Jim Blandy  <jimb@redhat.com>
6174
6175         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6176         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6177         (store_regs_user_thread, store_regs_kernel_thread): Use
6178         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6179         * ppc-linux-nat.c (fill_gregset): Same.
6180         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
6181         (ppc_linux_sigtramp_cache): Same.
6182         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
6183         (ppcnbsd_sigtramp_cache_init): Same.
6184         * rs6000-nat.c (fetch_core_registers): Same.
6185         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
6186         (rs6000_frame_cache): Same.
6187
6188         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6189         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6190         of assuming that the gprs are numbered starting with zero.
6191         * ppc-linux-nat.c (fill_gregset): Same.
6192         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6193         * ppcnbsd-nat.c (getregs_supplies): Same.
6194         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6195         * rs6000-nat.c (fetch_core_registers): Same.
6196         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6197
6198 2004-05-07  Michael Snyder  <msnyder@redhat.com>
6199
6200         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6201         LOC_COMPUTED_ARG, and LOC_INDIRECT.
6202
6203 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6204
6205         * infrun.c (handle_inferior_event): Use frame_unwind_id.
6206
6207 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6208
6209         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6210         base_address for shared libraries.
6211
6212 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6213
6214         * MAINTAINERS (write after approval): Add myself.       
6215
6216 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6217
6218         * breakpoint.c (bpstat_stop_status): Add new argument
6219         STOPPED_BY_WATCHPOINT.  Use it instead of testing
6220         target_stopped_data_address agaist 0 to check whether
6221         or not we stopped due to a hardware watchpoint.
6222         * breakpoint.h (bpstat_stop_status): Adapt prototype.
6223         * infrun.c (handle_inferior_event): Call bpstat_stop_status
6224         with new argument.
6225
6226 2004-05-12  Jim Blandy  <jimb@redhat.com>
6227
6228         * configure.in: When checking whether we should use the -bbigtoc
6229         option, don't forget to restore the original value of LDFLAGS.
6230         * configure: Regenerated.
6231
6232 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6233
6234         * thread.c (load_infrun_state): Delete step_sp.
6235         * infrun.c (context_switch): Ditto.
6236         * inferior.h (step_sp): Ditto.
6237         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6238         * gdbthread.h (struct thread_info, save_infrun_state)
6239         (restore_infrun_state): Ditto.
6240
6241 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
6242
6243         * MAINTAINERS (write after approval): Add myself.
6244
6245 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6246
6247         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6248         eliminate reference to step_sp.
6249         (struct execution_control_state, init_execution_control_state)
6250         (handle_inferior_event, keep_going): Delete update_step_sp and
6251         step_sp.
6252         * infcmd.c (step_sp): Note that variable is unused.
6253
6254 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6255
6256         * infrun.c (step_over_function): Delete function.
6257         (handle_step_into_function): Use insert_step_resume_breakpoint.
6258         (insert_step_resume_breakpoint): Fix assertion.
6259
6260 2004-05-11  Nick Roberts  <nickrob@gnu.org>
6261
6262         * utils.c (defaulted_query): Just use the normal query input type
6263         when printing the annotations.
6264
6265 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6266
6267         * infrun.c (handle_inferior_event): Simplify code handling
6268         step-into or return-from a signal trampoline.
6269
6270 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6271
6272         * ppcnbsd-tdep.c: Include "gdb_assert.h".
6273         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6274
6275 2004-05-10  Jim Blandy  <jimb@redhat.com>
6276
6277         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6278         with a call to internal_error.
6279
6280         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6281         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6282         processor variant lacks those registers.
6283         (ppc_floating_point_unit_p): Change description to make it clear
6284         that this returns info about the ISA, not the ABI.
6285         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6286         return true or false by checking tdep->ppc_fp0_regnum and
6287         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
6288         arch/mach switching done in rs6000_gdbarch_init; it's better to
6289         keep that logic there, and just check the results here.
6290         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6291         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6292         floating-point registers.
6293         (ppc_supply_fpregset, ppc_collect_fpregset)
6294         (rs6000_push_dummy_call, rs6000_extract_return_value)
6295         (rs6000_store_return_value): Assert that we have floating-point
6296         registers.
6297         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6298         (rs6000_frame_cache): Don't note the locations at which
6299         floating-point registers were saved if we have no fprs.
6300         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6301         registers.
6302         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6303         (store_regs_user_thread, store_regs_kernel_thread): Only call
6304         supply_fprs / fill_fprs if we actually have floating-point
6305         registers.
6306         (special_register_p): Check ppc_fpscr_regnum before matching
6307         against it.
6308         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6309         supply / collect fpscr if we don't have it.
6310         * ppc-bdm.c: #include "gdb_assert.h".
6311         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6312         have floating-point registers, since I can't test this code on
6313         FP-free systems to adapt it.
6314         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6315         fpscr and floating point register numbers if they don't exist.
6316         (fetch_register): Assert that we have floating-point registers
6317         before we reach the code that handles them.
6318         (store_register): Same.  And use tdep instead of calling
6319         gdbarch_tdep again.
6320         (fill_fpregset): Don't try to collect FP registers and fpscr if we
6321         don't have them.
6322         (ppc_linux_sigtramp_cache): Don't record the saved locations of
6323         fprs and fpscr if we don't have them.
6324         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6325         don't have them.
6326         * ppcnbsd-nat.c: #include "gdb_assert.h".
6327         (getfpregs_supplies): Assert that we have floating-point registers.
6328         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6329         * ppcobsd-tdep.c: #include "gdb_assert.h".
6330         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6331         have floating-point registers.
6332         * rs6000-nat.c (regmap): Don't match against the fpscr and
6333         floating point register numbers if they don't exist.
6334         (fetch_inferior_registers, store_inferior_registers,
6335         fetch_core_registers): Only fetch / store / supply the
6336         floating-point registers and the fpscr if we have them.
6337         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6338         (ppcobsd-tdep.o): Update dependencies.
6339         
6340 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6341
6342         * infrun.c (through_sigtramp_breakpoint): Delete variable.
6343         (context_switch): Do not switch through_sigtramp_breakpoint.
6344         * gdbthread.h (save_infrun_state, load_infrun_state)
6345         (struct thread_info): Delete through_sigtramp_breakpoint parameter
6346         and structure member.
6347         * thread.c (load_infrun_state, save_infrun_state): Update.
6348
6349 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
6350
6351         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6352
6353 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6354
6355         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
6356         throughout.
6357         * aclocal.m4: Regenerate.
6358
6359 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
6360
6361         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6362
6363 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6364
6365         * infrun.c (check_sigtramp2): Delete function.
6366         (handle_inferior_event): When single stepping, and taking a
6367         signal, set a breakpoint at the signal return address.  Delete
6368         redundant calls to check_sigtramp2.
6369         (insert_step_resume_breakpoint): New function.
6370         (through_sigtramp_breakpoint, handle_inferior_event)
6371         (follow_exec, wait_for_inferior, fetch_inferior_event)
6372         (currently_stepping, keep_going): Delete most uses of
6373         through_sigtramp_breakpoint, not that it should be deleted.
6374         (delete_breakpoint_current_contents): Delete function.
6375
6376 2004-05-10  Randolph Chung  <tausq@debian.org>
6377
6378         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6379         target.
6380         * config/pa/tm-linux.h: New file.
6381
6382 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
6383
6384         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6385         of prefixes.  Don't print the prefix twice in the CLI.
6386
6387 2004-05-10  Jim Blandy  <jimb@redhat.com>
6388
6389         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6390         collect all the gprs.
6391
6392         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6393         loop collecting gprs.
6394
6395 2004-05-09  Andrew Cagney  <cagney@redhat.com>
6396
6397         * remote-vx.c (net_step): Delete step-range code.
6398         * remote.c (remote_resume, init_all_packet_configs)
6399         (set_remote_protocol_E_packet_cmd)
6400         (show_remote_protocol_E_packet_cmd)
6401         (remote_protocol_E, show_remote_cmd, _initialize_remote)
6402         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6403         (show_remote_protocol_e_packet_cmd): Ditto.
6404
6405 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
6406
6407         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6408
6409         * hppa-tdep.h: Update copyright year.
6410         (struct trad_frame_saved_reg): Add opaque declaration.
6411
6412         * amd64-tdep.c (amd64_return_value): Implement
6413         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6414
6415         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6416         (m68k_value_to_register): New functions.
6417         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6418         value_to_register.
6419
6420         * defs.h (enum return_value_convention): Add
6421         RETURN_VALUE_ABI_RETURNS_ADDRESS and
6422         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6423         * infcmd.c (legacy_return_value): New function.
6424         (print_return_value): Rwerite to implement
6425         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6426         * values.c (using_struct_return): Check for inequality to
6427         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6428         RETURN_VALUE_STRUCT_CONVENTION.
6429         * i386-tdep.c (i386_return_value): Implement
6430         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6431
6432         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
6433         include "symtab.h", "opcode/vax.h" and "inferior.h".
6434         (vax_skip_prologue): Replace calls to read_memory_integer by calls
6435         to read_memory_unsigned_integer.
6436         (vax_gdbarch_init): Reorder.
6437         (_initialize_vax_tdep): Spell out prototype.
6438         * Makefile.in (vax-tdep.o): Update dependencies.
6439
6440 2004-05-08  Andrew Cagney  <cagney@redhat.com>
6441
6442         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6443         * target.c (target_detach, target_disconnect): Ditto.
6444
6445         * infcall.c (call_function_by_hand): When no
6446         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6447         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6448         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6449         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6450         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6451         
6452         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6453         * gdbarch.h, gdbarch.c: Re-generate.
6454         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6455         deprecated_fix_call_dummy.
6456         * v850-tdep.c (v850_gdbarch_init): Ditto.
6457         * infcall.c (call_function_by_hand): Do not call
6458         DEPRECATED_FIX_CALL_DUMMY.
6459
6460         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6461         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6462         * gdbarch.h, gdbarch.c: Re-generate.
6463         * arm-linux-tdep.c (arm_linux_call_dummy_words)
6464         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6465         deprecated_sizeof_call_dummy_words.
6466         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6467         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6468         * v850-tdep.c (v850_gdbarch_init): Ditto.
6469         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6470         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6471         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6472         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6473         * arch-utils.h (legacy_call_dummy_words)
6474         (legacy_sizeof_call_dummy_words): Delete declarations.
6475         * arch-utils.c (legacy_call_dummy_words)
6476         (legacy_sizeof_call_dummy_words): Delete variables.
6477
6478         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6479         * gdbarch.h, gdbarch.c: Re-generate.
6480         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6481         * infcall.c (call_function_by_hand): Eliminate call to
6482         DEPRECATED_PUSH_DUMMY_FRAME.
6483         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6484         push_dummy_frame.
6485         (ns32k_push_dummy_frame): Delete function.
6486
6487         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6488         deprecated_call_dummy_breakpoint_offset or
6489         deprecated_call_dummy_start_offset.
6490         * dummy-frame.c, arm-tdep.c: Update comments.
6491         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6492         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6493         * gdbarch.h, gdbarch.c: Re-generate.
6494         
6495         * infcall.c (legacy_push_dummy_code): Delete function.
6496         (push_dummy_code): Delete call.
6497
6498         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6499         * gdbarch.h, gdbarch.c: Re-generate.
6500         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6501         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6502         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6503         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6504
6505         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6506         (struct frame_info): Delete opaque declaration.
6507         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6508         * frame.c (get_frame_type): Delete call.
6509
6510         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6511         pc_in_call_dummy.
6512         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6513         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6514
6515 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
6516
6517         * alphanbsd-tdep.c: Include "gdb_string.h".
6518         * armnbsd-tdep.c: Update copyright year.
6519         Include "gdb_string.h".
6520         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6521         dependencies.
6522
6523         * delta68-nat.c: Remove file.
6524         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6525         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6526         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6527         (delta68-nat.o): Remove dependency.
6528
6529         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6530         function.
6531         (m68k_gdbarch_init): Don't set
6532         deprecated_frameless_function_invocation.
6533
6534 2004-05-07  Randolph Chung  <tausq@debian.org>
6535
6536         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
6537         read_memory_nobpt for code reading when doing frame unwinding.
6538         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6539
6540 2004-05-07  Randolph Chung  <tausq@debian.org>
6541
6542         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6543         instead of sp, handle sigaltstack case.
6544         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
6545         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6546         signal handler and not that of the caller.
6547         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6548         hppa_linux_sigtramp_find_sigcontext.
6549
6550 2004-05-07  Randolph Chung  <tausq@debian.org>
6551
6552         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6553         hppa-linux-nat.c.
6554         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6555         * hppa-linux-nat.c (fetch_register, store_register): Define.
6556         (fetch_inferior_registers, store_inferior_registers): Define.
6557         (supply_gregset): Add comment and clean up some unneeded code.
6558         (fill_gregset): Add comment and fix so that it saves registers in
6559         the right place in the gregset.
6560         (fill_fpregset): Fix buffer overrun problem.
6561         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6562
6563 2004-05-07  Randolph Chung  <tausq@debian.org>
6564
6565         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
6566         do common handling of the pcoqt register.
6567         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6568         to use helper function.
6569         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6570         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6571         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6572         generic fallback unwinder when all else fails.
6573         (hppa_gdbarch_init): Add fallback sniffer.
6574         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6575         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6576         to use helper function.
6577
6578 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
6579
6580         * config/djgpp/fnchange.lst: Add translation rules for
6581         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6582
6583 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
6584
6585         * frame.c (get_prev_frame_1): Work around GCC bug.
6586         * frame.h: Add comment about GCC bug.
6587
6588 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6589
6590         * observer.c: Include "commands.h" and "gdbcmd.h".
6591         (observer_debug, _initialize_observer): Add the
6592         command "set/show debug observer".
6593         * observer.sh: When observer debugging, log notify calls.
6594         * Makefile.in (observer.o): Update dependencies.
6595
6596 2004-05-07  Jason Molenda  (jmolenda@apple.com)
6597
6598         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6599
6600 2004-05-07  Jim Blandy  <jimb@redhat.com>
6601
6602         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6603         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6604         to recognize gpr regnums, instead of assuming that
6605         tdep->ppc_fp0_regnum marks the end of the general-purpose
6606         registers.
6607
6608         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6609         the given architecture has floating-point registers. 
6610
6611 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6612
6613         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6614         macro defined to 1.
6615         * gdbarch.h, gdbarch.c: Re-generate.
6616         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6617         deprecated_use_generic_dummy_frames.
6618
6619 2004-05-07  Brian Ford  <ford@vss.fsi.com>
6620
6621         * NEWS: Mention Cygwin DWARF 2 support.
6622
6623 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6624
6625         * objfiles.h (struct entry_info): Delete unused fields
6626         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6627         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6628         * mipsread.c (mipscoff_symfile_read): Update.
6629         * mdebugread.c (parse_partial_symbols): Update.
6630         * dwarfread.c (read_file_scope): Update.
6631         * dwarf2read.c (read_file_scope): Update.
6632         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6633         * coffread.c (complete_symtab): Update.
6634
6635 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
6636
6637         * infcall.c (_initialize_infcall): Fix typo.
6638
6639 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6640
6641         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6642         * command.h (add_setshow_zinteger_cmd): Declare.
6643
6644 2004-05-06  Randolph Chung  <tausq@debian.org>
6645
6646         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6647         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6648         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6649         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6650         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6651         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6652         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
6653         definitions ...
6654         * hppa-tdep.h: ... to here, with HPPA_ prefix.
6655         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6656         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6657         (hppa64_hpux_frame_find_saved_regs_in_sig)
6658         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6659         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6660         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6661         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6662         (hppa_linux_sigtramp_frame_prev_register): Likewise.
6663         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6664         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6665         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6666         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6667         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6668         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6669         (hppa32_register_type, hppa_cannot_store_register)
6670         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6671         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6672         * hpread.c (hpread_process_one_debug_symbol): Likewise.
6673         * pa64solib.c (pa64_solib_have_load_event)
6674         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6675         (pa64_solib_unloaded_library_pathname): Likewise.
6676         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6677         (som_solib_library_pathname): Likewise.
6678
6679 2004-05-05  Jim Ingham  <jingham@apple.com>
6680         
6681         * breakpoint.c (create_breakpoints): Copy the ignore count and
6682         thread id over from the pended breakpoint to the actual
6683         breakpoint.
6684         
6685 2004-05-05  Andrew Cagney  <cagney@redhat.com>
6686
6687         * gdbarch.sh (PARM_BOUNDARY): Delete.
6688         gdbarch.h, gdbarch.c: Re-generate.
6689         * valops.c (PARM_BOUNDARY): Delete macro.
6690         (value_push): Delete PARM_BOUNDARY code.
6691         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6692
6693 2004-05-04  Jim Blandy  <jimb@redhat.com>
6694
6695         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6696         Don't assume that the gprs, fprs, and UISA sprs are
6697         contiguous, start at register number zero, and end with fpscr.
6698         Instead, use the numbers from the tdep structure.
6699
6700         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6701         should no longer be used in code specific to the RS6000 and its
6702         derivatives.
6703         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6704         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6705         tdep->ppc_fp0_regnum.
6706         (ppc_supply_fpregset, ppc_collect_fpregset)
6707         (rs6000_push_dummy_call, rs6000_extract_return_value)
6708         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6709         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6710         FP0_REGNUM. 
6711         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6712         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6713         Same.
6714         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6715         bdm_ppc_store_registers): Same.
6716         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
6717         (store_register, fill_fpregset): Same.
6718         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
6719         (ppc_linux_supply_fpregset): Same.
6720         * ppcnbsd-nat.c (getfpregs_supplies): Same.
6721         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6722         Same.
6723         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6724         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6725         ppc64_sysv_abi_return_value): Same.
6726         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6727         (store_inferior_registers, fetch_core_registers): Same.
6728
6729 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6730
6731         * m68knbsd-nat.c: Remove file.
6732         * m68knbsd-tdep.c: Remove file.
6733         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6734         dependencies.
6735         * configure.host: Add m68k-*-netbsdelf*.
6736         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6737         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6738         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
6739         (XM_FILE): Remove.
6740         * config/m68k/nbsdelf.mh: New file.
6741         * config/m68k/nbsd.mt: New file.
6742         * config/m68k/nbsdaout.mt: Remove file.
6743         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6744         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
6745         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6746         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6747         (use_struct_convention): Remove prototype.
6748         (USE_STRUCT_CONVENTION): Remove define.
6749         * config/m68k/xm-nbsd.h: Remove file.
6750
6751 2004-05-04  Michael Snyder  <msnyder@redhat.com>
6752
6753         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
6754         reg_struct_return method (as gcc usually does for cross targets).
6755
6756 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6757
6758         Committed by Andrew Cagney.
6759         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6760         alignment padding when accessing ucontext struct members.
6761
6762 2004-05-04  Jim Blandy  <jimb@redhat.com>
6763
6764         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6765         'ppc_gplast_regnum' member.
6766         (ppc_num_gprs): New enum constant.
6767         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6768         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6769         * rs6000-nat.c (regmap, fetch_inferior_registers,
6770         store_inferior_registers): Same.
6771         * rs6000-tdep.c (e500_pseudo_register_read)
6772         (e500_pseudo_register_write): Same.
6773         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6774
6775         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6776         * ppc-tdep.h (ppc_num_fprs): New enum constant.
6777         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6778         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6779         FPLAST_REGNUM.
6780         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6781         Same.
6782         * ppc-linux-nat.c (ppc_register_u_addr): Same.
6783         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6784         (store_inferior_registers): Same.
6785
6786         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6787         with FPLAST_REGNUM.
6788
6789 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
6790
6791         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6792         failure detected by recent versions of GCC.
6793         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6794         to be consistent with the usage in dwarf2_create_include_psymtab.
6795
6796 2004-05-03  Michael Snyder  <msnyder@redhat.com>
6797
6798         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6799         (heuristic_proc_start): Whitespace cleanup.
6800
6801 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
6802
6803         * sun3-nat.c: Remove file.
6804         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6805         dependencies.
6806         (ALLDEPFILES): Remove sun3-nat.c.
6807         (sun3-nat.o): Remove dependencies.
6808
6809         * i386-interix-nat.c, i386-interix-tdep.c,
6810         config/i386/nm-interix.h, config/i386/interix.mh,
6811         config/i386/interix.mt: Remove files.
6812         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6813         dependencies.
6814
6815 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
6816
6817         * m68k-tdep.h (struct gdbarch_tdep): Add member
6818         struct_value_regnum.
6819         (m68k_svr4_init_abi): New prototype.
6820         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
6821         different calling conventions.
6822         (m68k_extract_return_value): Remove code dealing with single-field
6823         structs.
6824         (m68k_store_return_value): Remove code dealing with single-field
6825         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
6826         (m68k_extract_struct_value_address): Remove function.
6827         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6828         (m68k_reg_struct_return_p, m68k_return_value)
6829         (m68k_svr4_return_value): New functions.
6830         (m68k_use_struct_convention): Remove function.
6831         (m68k_push_dummy_call): Use new struct_value_regnum member of
6832         `struct gdbarch_tdep' instead of hardcoded register number to
6833         store STRUCT_ADDR.
6834         (m68k_svr4_init_abi): New function.
6835         (m68k_gdbarch_init): Don't set extract_return_value,
6836         store_return_values, deprecated_extract_struct_value_address and
6837         use_struct_convention.  Set return_value instead.  Initialize new
6838         struct_value_regnum member of `struct gdbarch_tdep'.
6839         * m68klinux-tdep.c: Update copyright year.
6840         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6841         (m68k_linux_extract_struct_value_address): Remove function.
6842         (m68k_linux_init_abi): Don't set extract_return_value,
6843         store_return_values, deprecated_extract_struct_value_address and
6844         use_struct_convention.  Call m68k_svr4_init_abi but override the
6845         new struct_value_regnum member of `struct gdbarch_tdep'.
6846         * Makefile.in (m68k-tdep.o): Update dependencies.
6847
6848 2004-05-03  J. Brobecker  <brobecker@gnat.com>
6849
6850         * dwarf2read.c (line_header): Add new included_p field in
6851         field file_names.
6852         (partial_die_info): New field has_stmt_list. New field line_offset.
6853         (dwarf2_create_include_psymtab): New function.
6854         (dwarf2_build_include_psymtabs): New function.
6855         (add_file_name): Add forward declaration. Initialize new field.
6856         (dwarf_decode_lines): Add new parameter. Enhance this procedure
6857         to be able to determine the list of files included by the
6858         given unit, and build their associated psymtabs.
6859         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6860         files as well.
6861         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6862         (read_file_scope): Update call to dwarf_decode_lines.
6863         (read_partial_die): Handle DW_AT_stmt_list attributes.
6864
6865 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
6866
6867         Unfix PR gdb/1626.
6868         * configure.in: Revert special case for osf5.*.
6869         * configure: Regenerate.
6870
6871 2004-05-02  Jim Blandy  <jimb@redhat.com>
6872
6873         Move the symbol-file-from-memory functions into their own file.
6874         * symfile-mem.c, symfile-mem.h: New files.
6875         * symfile.c (symbol_file_add_from_bfd): New function.
6876         (symbol_file_add): Call symbol_file_add_from_bfd.
6877         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6878         Moved to symfile-mem.c.
6879         (_initialize_symfile): Move definition of
6880         add-symbol-file-from-memory command to symfile-mem.c.
6881         * symfile.h (symbol_file_add_from_bfd): New declaration.
6882         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6883         * config/powerpc/linux.mt (TDEPFILES): Same.
6884         * Makefile.in (SFILES): Add symfile-mem.c.
6885         (symfile_mem_h): New variable.
6886         (HFILES_NO_SRCDIR): Add symfile-mem.h.
6887         (symfile-mem.o): New rule.
6888
6889 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6890
6891         * breakpoint.c (insert_bp_location): Use get_frame_id, and
6892         frame_find_by_id instead of frame_relative_level.
6893         (do_enable_breakpoint): Ditto.
6894         * thread.c: Update copyright.
6895         (info_threads_command): Ditto, simplify.
6896
6897         * frame.c (deprecated_generic_get_saved_register): Delete
6898         function, moved to "xstormy16-tdep.c".
6899         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6900         deprecated_generic_get_saved_register from "frame.c".
6901         (xstormy16_frame_saved_register): Call
6902         xstormy16_get_saved_register.
6903         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6904         static.
6905         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6906         * frame.h (deprecated_generic_get_saved_register): Delete.
6907
6908 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
6909
6910         * dwarfread.c: Update documentation on the state of dwarf-1.
6911
6912 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6913
6914         * stack.c (select_frame_command): Delete call to
6915         frame_relative_level.
6916         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6917         Delete #if0 code.
6918         (frame_info): Do not print FRAMELESS.
6919         (print_block_frame_labels): Replace DEPRECATED_STREQ.
6920         (catch_info): Delete #if0 code.
6921
6922         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6923         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6924         of frame_relative_level.
6925         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6926         to SENTINEL_FRAME.
6927         * frame.h (enum frame_type): Add SENTINEL_FRAME.
6928         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6929         frame_relative_level.
6930
6931         * frame.h (deprecated_set_frame_type): Delete declaration.
6932         * frame.c (deprecated_set_frame_type): Delete function, update
6933         comments.
6934
6935         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6936         * gdbarch.h, gdbarch.c: Re-generate.
6937         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6938         (shnbsd_pc_in_sigtramp): Delete.
6939         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6940         pc_in_sigtramp.
6941         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6942         pc_in_sigtramp.
6943         * frame.h: Update comments.
6944         * ppc-linux-tdep.c: Update comments.
6945         * breakpoint.c (bpstat_what): Update comments.
6946
6947         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6948         m68klinux-tdep.o's dependencies, were previously added to
6949         m68klinux-nat.o.
6950
6951         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6952         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6953         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6954         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6955         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6956
6957         * Makefile.in (m68klinux-nat.o): Update dependencies.
6958         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6959         (m68k_linux_sigtramp_frame_cache)
6960         (m68k_linux_sigtramp_frame_this_id)
6961         (m68k_linux_sigtramp_frame_prev_register)
6962         (m68k_linux_sigtramp_frame_unwind)
6963         (m68k_linux_sigtramp_frame_sniffer)
6964         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6965         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6966         names, use trad-frame.h.
6967         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6968         (struct m68k_sigtramp_info): Delete.
6969         * m68k-tdep.c (m68k_sigtramp_frame_cache)
6970         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6971         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6972         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6973         "m68klinux-tdep.c".
6974
6975         * infrun.c (check_sigtramp2): Delete check for
6976         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6977
6978 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6979
6980         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6981
6982 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6983
6984         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6985         (frv_linux_sigtramp_frame_cache)
6986         (frv_linux_sigtramp_frame_this_id)
6987         (frv_linux_sigtramp_frame_prev_register)
6988         (frv_linux_sigtramp_frame_unwind)
6989         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6990         include "linux" in function and variable names, directly call
6991         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6992         the latest trad-frame code.
6993         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6994         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6995         * Makefile.in (frv-linux-tdep.o): Update dependencies.
6996         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6997         * frv-tdep.c (frv_sigtramp_frame_cache)
6998         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6999         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7000         frv-linux-tdep.c.
7001         (frv_gdbarch_init): Do not append a sigtramp sniffer.
7002         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7003         (frv_set_sigcontext_reg_addr): Delete function.
7004
7005         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7006         (DEPRECATED_SIGTRAMP_END): Delete.
7007         * gdbarch.h, gdbarch.c: Re-generate.
7008         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7009         * config/vax/tm-vaxbsd.h: Update copyright.
7010         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7011         (DEPRECATED_IN_SIGTRAMP): Define.
7012         * config/m68k/tm-nbsd.h: Update copyright.
7013         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7014         (DEPRECATED_IN_SIGTRAMP): Define.
7015
7016 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7017
7018         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7019         encondings.  Fixes PR gdb/1628.
7020
7021         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7022         DW_CFA_restore state without a matching DW_CFA_remember_state
7023         instead of aborting.  Fixes PR backtrace/1589.
7024
7025 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
7026
7027         * MAINTAINERS: Add self as AIX maintainer.
7028         Update my e-mail address in write-after-approval section.
7029
7030 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7031
7032         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7033         (legacy_get_prev_frame): Ditto.
7034
7035         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7036         (mips_gdbarch_init): Do not set pc_in_sigtramp.
7037         * mipsread.c (sigtramp_address): Delete extern variable.
7038         (mipscoff_new_init): Delete reference.
7039         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7040         (fixup_sigtramp): Delete function.
7041         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7042         (fixup_sigtramp): Delete declarations.
7043
7044         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7045         deprecated_pc_in_sigtramp.
7046         (ppcnbsd_pc_in_sigtramp): Delete function.
7047
7048 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7049
7050         * config/m68k/nm-nbsd.h: Tweak comments.
7051         * config/m68k/nm-nbsdaout.h: Likewise.
7052
7053 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7054
7055         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7056         legacy_pc_in_sigtramp.
7057         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7058
7059 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
7060
7061         Add OpenBSD/m68k support.
7062         * NEWS (New native configurations): Mention OpenBSD/m68k.
7063         * m68kbsd-tdep.c: New file.
7064         * m68kbsd-nat.c: New file.
7065         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7066         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7067         * configure.host: Add m68k-*-openbsd.
7068         * configure.tgt: Add m68k-*-openbsd.
7069         * config/m68k/tm-obsd.h: New file.
7070         * config/m68k/obsd.mt: New file.
7071         * config/m68k/obsd.mh: New file.
7072         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7073         m68kbsd-tdep.c.
7074
7075 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7076
7077         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7078         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7079
7080 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
7081
7082         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7083         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7084
7085 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7086
7087         Revert 2004-04-16 change.
7088         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7089         (i386_coff_init_abi): Remove.
7090         * i386-tdep.h (i386_coff_init_abi): Remove.
7091         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7092
7093 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7094
7095         * blockframe.c (find_pc_partial_function): Delete use of
7096         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7097         DEPRECATED_SIGTRAMP_END.
7098
7099         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7100         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7101         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7102         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7103         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7104
7105         * defs.h (deprecated_inside_entry_file): Delete declaration.
7106         * blockframe.c (deprecated_inside_entry_file): Delete function.
7107         (legacy_frame_chain_valid): Delete call.
7108         * sh64-tdep.c (sh64_frame_chain): Delete call.
7109         * objfiles.h: Update comments.
7110         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7111         call.
7112         * frame.c (get_prev_frame): Delete call, update comments.
7113
7114 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7115
7116         * MAINTAINERS (Write After Approval): Add myself.
7117
7118 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7119
7120         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7121         * gdbarch.h, gdbarch.c: Re-generate.
7122         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7123         code.
7124
7125 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7126
7127         * gdb-events.sh (selected_thread_changed)
7128         (selected_frame_level_changed, target_changed): Delete.
7129         * gdb-events.h, gdb-events.c: Re-generate.
7130         * valops.c (value_assign): Update.
7131         * stack.c (select_frame_command, up_silently_base)
7132         (down_silently_base): Update.
7133
7134 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7135
7136         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7137         registers correctly.
7138         (print_gp_register_row, mips32_heuristic_proc_desc)
7139         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7140         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7141         references to mips_isa_regsize.
7142
7143 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7144
7145         * mips-tdep.c (struct gdbarch_tdep): Delete
7146         mips_fp_register_double.
7147         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7148         mips_abi_regsize.
7149         (mips_gdbarch_init): Do not set mips_fp_register_double.
7150         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7151
7152 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
7153
7154         Committed by Andrew Cagney.
7155         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7156         function calls.
7157
7158 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7159
7160         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7161         gdbarch, use mips_abi, update callers.
7162         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7163         mips_abi_regsize, update callers.
7164         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7165         mips_default_abi_regsize.
7166         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7167         mips_default_abi_regsize.
7168
7169 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7170
7171         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7172         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7173         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7174         mips_default_abi_regsize.
7175         (mips_isa_regsize): Rename mips_regisze.
7176         * mipsnbsd-tdep.c: Update.
7177         * mips-linux-tdep.c: Update.
7178         * irix5-nat.c: Update.
7179         * mips-tdep.h (mips_isa_regsize): Update.
7180
7181         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7182         Delete all disabled code.
7183         * gdb-events.h, gdb-events.c: Re-generate.
7184         
7185 2004-04-19  Jerome Guitton  <guitton@gnat.com>
7186             Mark Kettenis  <kettenis@gnu.org>
7187
7188         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7189         the function begins with a branch instruction.
7190
7191 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
7192
7193         * i386-tdep.c: Fix spelling mistakes.
7194
7195 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7196             Andrew Cagney  <cagney@redhat.com>
7197
7198         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7199         <sys/proc.h>.
7200         * acconfig.h: Provide default _KMEMUSER value.
7201         * config.in, configure: Re-generate.
7202         * NEWS: Mention fix.
7203
7204 2004-04-24  Randolph Chung  <tausq@debian.org>
7205
7206         * configure.host (hppa*-*-linux*): New target.
7207         * configure.tgt (hppa*-*-linux*): Likewise.
7208         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7209         gdbarch_init_osabi() call earlier so that osabi-specific frame
7210         unwinders can be registered first.
7211         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7212         hppa-linux-nat.c.
7213         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7214         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7215         * config/pa/linux.mh: New file.
7216         * config/pa/linux.mt: New file.
7217         * config/pa/nm-linux.h: New file.
7218         * config/pa/xm-linux.h: New file.
7219         * hppa-linux-nat.c: New file.
7220         * hppa-linux-tdep.c: New file.
7221
7222 2004-04-28  Randolph Chung  <tausq@debian.org>
7223
7224         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7225         return values.
7226         (hppa32_push_dummy_call): Fix small struct and floating point argument 
7227         passing, and make sure the stack frame is properly aligned.
7228
7229 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7230
7231         * stack.c (print_stack_frame): Fix description.
7232
7233         * NEWS: Mention gdb/gdbserver/configure execute permission
7234         changed.  PR server/519.
7235
7236 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7237
7238         * stack.c (print_stack_frame_stub): Delete declaration.
7239         (struct print_stack_frame_args, print_stack_frame)
7240         (print_frame_info, print_frame): Replace "source" with print what.
7241         Replace "print" with "print_level".  Replace "args" with
7242         "print_args".
7243         * frame.h (show_and_print_stack_frame, print_stack_frame)
7244         (print_frame_info): Update declarations.
7245         * stack.c (select_and_print_frame, frame_command)
7246         (current_frame_command, up_command, down_command): Update calls -
7247         use get_selected_frame, pass "enum print_what" for source, do not
7248         call frame_relative_level.
7249         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7250         * remote-rdp.c (remote_rdp_open): Ditto.
7251         * remote-mips.c (common_open): Ditto.
7252         * remote-e7000.c (e7000_start_remote): Ditto.
7253         * ocd.c (ocd_start_remote): Ditto.
7254         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7255         * infrun.c (normal_stop): Ditto.
7256         * inflow.c (kill_command): Ditto.
7257         * infcmd.c (finish_command): Ditto.
7258         * corelow.c (core_open): Ditto.
7259         * tracepoint.c (finish_tfind_command): Ditto.
7260         * thread.c (info_threads_command, info_threads_command) 
7261         (restore_current_thread, do_captured_thread_select): Ditto.
7262         * ada-tasks.c (task_command): Ditto.
7263
7264 2004-04-26  Orjan Friberg <orjanf@axis.com>
7265
7266         * frame.c: Include "observer.h".
7267         (frame_observer_target_changed): New function.
7268         (_initialize_frame): Attach target_changed observer.
7269         * regcache.c: Include "observer.h".
7270         (regcache_observer_target_changed): New function.
7271         (_initialize_regcache): Attach target_changed observer.
7272         * valops.c: Include "observer.h".
7273         (value_assign): Notify target_changed event when modifying register.
7274         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7275
7276 2004-04-26  Orjan Friberg <orjanf@axis.com>
7277
7278         From Paul Koning <pkoning@equallogic.com>:
7279         * breakpoint.c (free_valchain): New function.
7280         (insert_bp_location, delete_breakpoint): Use free_valchain.
7281         (remove_breakpoint): Do not remove the valchain.
7282         (bpstat_stop_status): If not stopped by watchpoint, skip
7283         watchpoints when generating stop status list.
7284         * infrun.c (handle_inferior_event): Make
7285         stepped_after_stopped_by_watchpoint a global variable.
7286         * remote.c (remote_stopped_data_address): Return watch data
7287         address rather than zero if stepped_after_stopped_by_watchpoint is
7288         set.
7289
7290 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
7291
7292         Fix PR gdb/1626.
7293         * configure.in: Check for curses after termcap.
7294         On osf5.*, do not check for ncurses.
7295         * configure: Regenerate.
7296
7297 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
7298
7299         * ppcobsd-nat.c: Include "ppc-tdep.h".
7300         * Makefile.in (ppcobsd-nat.o): Update dependencies.
7301
7302         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7303         Fixes PR tdep/1623 and PR tdep/1624.
7304
7305 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
7306
7307         * xmodem.h, xmodem.c: Remove files.
7308         * Makefile.in: Remove references to xmodem.h, xmodem.c.
7309
7310 2004-04-23  Randolph Chung  <tausq@debian.org>
7311
7312         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7313         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7314         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7315         for handling stackless frames.
7316         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
7317
7318 2004-04-23  Randolph Chung  <tausq@debian.org>
7319
7320         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7321         starts at a pc before the frame is created.
7322
7323 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
7324
7325         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7326
7327 2004-04-23  Jerome Guitton  <guitton@gnat.com>
7328
7329         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7330         use convert_typed_floating to get the appropriate format.
7331
7332 2004-04-22  Randolph Chung  <tausq@debian.org>
7333
7334         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7335         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7336         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7337         (hppa_sign_extend): Add prototype.
7338         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7339         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7340         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
7341         hppa targets will also use these functions.
7342         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7343         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7344         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7345         (hppa_gdbarch_init): Remove gdbarch setting of 
7346         skip_trampoline_code, in_solib_call_trampoline and
7347         in_solib_return_trampoline.
7348         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7349         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7350         hppa_in_solib_call_trampoline.
7351         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7352         Moved from hppa-tdep.c.
7353         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
7354         in_solib_call_trampoline and in_solib_return_trampoline.
7355
7356 2004-04-22  Randolph Chung  <tausq@debian.org>
7357
7358         * hppa-tdep.c (hppa_debug): New variable.
7359         (find_unwind_entry, hppa_frame_cache): Add debug output.
7360         (_initialize_hppa_tdep): Add command to set debug flag.
7361
7362 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7363
7364         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
7365         "trad-frame.h".
7366         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7367         signal trampoline unwinder.
7368         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7369
7370 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
7371
7372         Add OpenBSD/powerpc support.
7373         * NEWS (New native configurations): Mention OpenBSD/powerpc.
7374         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7375         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7376         (ppc_collect_fpregset): New prototypes.
7377         * ppcobsd-nat.c: New file.
7378         * ppcobsd-tdep.c: New file.
7379         * ppcobsd-tdep.h: New file.
7380         * rs6000-tdep.c: Include "regset.h".
7381         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7382         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7383         New functions.
7384         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7385         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7386         (rs6000-tdep.o): Update dependencies.
7387         * configure.host: Add powerpc-*-openbsd.
7388         * configure.tgt: Add powerpc-*-openbsd.
7389         * config/powerpc/obsd.mh: New file.
7390         * config/powerpc/nm-obsd.h: New file.
7391         * config/powerpc/obsd.mt: New file.
7392
7393 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7394
7395         * frame.h (show_frame_info): Delete declaration.
7396
7397         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7398         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7399         * m32r-tdep.c (m32r_frame_this_id): Ditto.
7400         * frv-tdep.c (frv_frame_this_id): Ditto.
7401         * avr-tdep.c (avr_frame_this_id): Ditto.
7402
7403 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
7404
7405         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7406
7407 2004-04-22  Jim Blandy  <jimb@redhat.com>
7408
7409         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7410         register number zero.
7411
7412 2004-04-21  Michael Snyder  <msnyder@redhat.com>
7413
7414         * mips-tdep.c (heuristic_proc_start): 
7415         Warning() already prefixes "Warning: ".
7416
7417 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7418
7419         * annotate.h (deprecated_annotate_starting_hook)
7420         (deprecated_annotate_stopped_hook)
7421         (deprecated_annotate_exited_hook)
7422         (deprecated_annotate_signal_hook)
7423         (deprecated_annotate_signalled_hook): Deprecate.
7424         * tracepoint.h (deprecated_create_tracepoint_hook)
7425         (deprecated_delete_tracepoint_hook)
7426         (deprecated_modify_tracepoint_hook)
7427         (deprecated_trace_find_hook)
7428         (deprecated_trace_start_stop_hook): Deprecate.
7429         * target.h (deprecated_target_new_objfile_hook): Deprecate.
7430         * remote.h (deprecated_target_resume_hook)
7431         (deprecated_target_wait_loop_hook): Deprecate.
7432         * gdbcore.h (deprecated_exec_file_display_hook)
7433         (deprecated_file_changed_hook): Deprecate.
7434         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7435         * defs.h (deprecated_modify_breakpoint_hook)
7436         (deprecated_command_loop_hook, deprecated_show_load_progress)
7437         (deprecated_print_frame_info_listing_hook)
7438         (deprecated_query_hook, deprecated_warning_hook)
7439         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7440         (deprecated_delete_breakpoint_hook)
7441         (deprecated_interactive_hook, deprecated_registers_changed_hook)
7442         (deprecated_readline_begin_hook, deprecated_readline_hook)
7443         (deprecated_readline_end_hook, deprecated_register_changed_hook)
7444         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7445         (deprecated_context_hook, deprecated_target_wait_hook)
7446         (deprecated_attach_hook, deprecated_detach_hook)
7447         (deprecated_call_command_hook, deprecated_set_hook)
7448         (deprecated_error_hook, deprecated_error_begin_hook)
7449         (deprecated_ui_load_progress_hook): Deprecate.
7450         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7451         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7452         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7453         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7454         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7455         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7456         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7457         * annotate.c, aix-thread.c: Update.
7458
7459 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7460
7461         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7462         * vaxnbsd-tdep.c: Include "gdb_string.h".
7463
7464         * symfile.c (symbol_file_add_from_memory): #if 0 function.
7465         (add_symbol_file_from_memory_command): #if 0 function body, call
7466         error instead.
7467
7468 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7469
7470         * gdbcore.h: Update copyright.
7471         (deprecated_add_core_fns): Rename add_core_fns.
7472         * win32-nat.c (_initialize_core_win32): Update.
7473         * sun3-nat.c (_initialize_core_sun3): Update.
7474         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7475         * rs6000-nat.c (_initialize_core_rs6000): Update.
7476         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7477         * nto-tdep.c (_initialize_nto_tdep): Update.
7478         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7479         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7480         * mips-nat.c (_initialize_core_mips): Update.
7481         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7482         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7483         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7484         * lynx-nat.c (_initialize_core_lynx): Update.
7485         * irix5-nat.c (_initialize_core_irix5): Update.
7486         * i386-interix-nat.c (_initialize_core_interix): Update.
7487         * cris-tdep.c (_initialize_cris_tdep): Update.
7488         * corelow.c (deprecated_add_core_fns): Update.
7489         * core-regset.c (_initialize_core_regset): Update.
7490         * core-aout.c (_initialize_core_aout): Update.
7491         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7492         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7493         * alpha-nat.c (_initialize_core_alpha): Update.
7494
7495 2004-04-21  Jim Blandy  <jimb@redhat.com>
7496
7497         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7498
7499 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
7500
7501         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7502         Delete.
7503         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
7504         (read_attribute_value): Update calls to dwarf_alloc_block.
7505         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7506         dwarf2_tmp_obstack.
7507         (psymtab_to_symtab_1): Likewise.  Clean up using
7508         free_stack_comp_unit.
7509         (add_to_cu_func_list): Use the comp_unit_obstack.
7510
7511 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
7512
7513         * dwarf2read.c (dwarf2_flag_true_p): New function.
7514         (die_is_declaration): Use the function above. Add some comments.
7515
7516 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
7517
7518         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7519         architecture when registering sparcnbsd_core_osabi_sniffer.
7520         Adjust comment.
7521
7522 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
7523
7524         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7525         return value.
7526
7527         Based on a patch from Brian Ford <ford@vss.fsi.com>:
7528         * i386-tdep.c: Correct register numbering scheme comments
7529         throughout.
7530         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7531         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7532         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7533         (i386_gdb_arch_init): Likewise.
7534
7535         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7536         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7537         ppcnbsd-tdep.o.
7538
7539         * m68k-tdep.h: Tweak comments.
7540         * m68k-tdep.c: Tweak comment.
7541
7542 2004-04-17  Randolph Chung  <tausq@debian.org>
7543
7544         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7545         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7546         (hppa_hpux_som_init_abi): Set is_elf to 0.
7547         (hppa_hpux_elf_init_abi): Set is_elf to 1.
7548         * hppa-tdep.c (low_text_segment_address): Remove global.
7549         (record_text_segment_lowaddr): Pass in low address as parameter. Use
7550         section offset to calculate segment address.
7551         (internalize_unwinds): Define low_text_segment_address as local and
7552         pass to record_text_segment_lowaddr for ELF targets.
7553         (hppa_gdbarch_init): Zero fill tdep structure.
7554         (hppa_dump_tdep): Print tdep structure.
7555         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7556
7557 2004-04-17  Randolph Chung  <tausq@debian.org>
7558
7559         * hppa-tdep.c (hppa_pseudo_register_read): Define.
7560         (hppa_gdbarch_init): Set pseudo_register_read.
7561         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7562         * regcache.c (supply_register): Remove check for
7563         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7564
7565 2004-04-17  Randolph Chung  <tausq@debian.org>
7566
7567         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7568         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7569         (hpread_adjust_stack_address): Move to hpread.c.
7570         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7571         obj_private_struct): Move from tm-hppa.h.
7572         * hpread.c (hppa-tdep.h): Include.
7573         (hpread_adjust_stack_address): Move from hppa-tdep.c.
7574         (hpread_read_function_type, hpread_read_doc_function_type)
7575         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
7576         directly.
7577         * pa64solib.c (hppa-tdep.h): Include.
7578         * somsolib.c (hppa-tdep.h): Include.
7579         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7580         inferior_status): Remove unused forward declarations.
7581         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7582         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
7583         obj_private_struct): Move to hppa-tdep.h.
7584         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7585
7586 2004-04-17  Randolph Chung  <tausq@debian.org>
7587
7588         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7589         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7590         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7591         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7592         Remove forward declaration and make static.
7593         (hppa_reg_struct_has_addr): Remove.
7594
7595 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7596
7597         * observer.sh: Move comments in sed command to first column.
7598
7599 2004-04-16  Jason Molenda  (jmolenda@apple.com)
7600
7601         * frame.c: Minor typeo corrections in comments.
7602
7603 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7604
7605         * observer.c (observer_test_first_notification_function): Update
7606         function profile.
7607         (observer_test_second_notification_function): Likewise.
7608         (observer_test_third_notification_function): Likewise.
7609
7610 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
7611
7612         From Brian Ford <ford@vss.fsi.com>:
7613         * i386-tdep.c (i386_coff_init_abi): New function.
7614         * i386-tdep.h (i386_coff_init_abi): New prototype.      
7615         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
7616         register number translation functions for DWARF and DWARF 2.
7617
7618 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7619
7620         * dwarf2read.c: Back out my previous change, it was incorrect.
7621
7622 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
7623
7624         * dwarf2read.c: Include "hashtab.h".
7625         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7626         has_namespace_info.
7627         (struct partial_die_info): Add comments.  Use bitfields to reduce
7628         memory footprint.  Add scope, scope_set, has_specification,
7629         spec_offset, die_parent, die_child, and die_sibling.
7630         (peek_die_abbrev): Add prototype.
7631         (partial_read_comp_unit_head): New function, broken out from
7632         dwarf2_build_psymtabs_hard.
7633         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7634         Use partial_read_comp_unit_head.  Initialize the CU and
7635         comp_unit_obstack.  Update calls to read_partial_die and
7636         scan_partial_symbols.  Use free_stack_comp_unit and
7637         load_partial_dies.
7638         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
7639         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
7640         Update calls to helper functions.  Remove NAMESPACE argument.
7641         Update comments.
7642         (partial_die_parent_scope, partial_die_full_name): New functions.
7643         (add_partial_symbol): Remove namespace argument.  Update call to
7644         pdi_needs_namespace.  Use partial_die_full_name.  Handle
7645         DW_TAG_namespace.  Check has_namespace_info flag.
7646         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
7647         tag.  Handle namespaces.
7648         (add_partial_namespace, add_partial_enumeration): Simplify.
7649         (guess_structure_name): New function, derived from
7650         add_partial_structure.
7651         (add_partial_structure): Remove.
7652         (determine_class_name): Update comment.
7653         (dwarf2_read_abbrevs): Set has_namespace_info flag.
7654         (is_type_tag_for_partial, load_partial_dies): New functions.
7655         (read_partial_die): Pass abbrev and abbrev_len as arguments.
7656         Record specifications instead of following them immediately.
7657         (find_partial_die_in_comp_unit, find_partial_die)
7658         (fixup_partial_die, free_stack_comp_unit)
7659         (hashtab_obstack_allocate, dummy_obstack_deallocate)
7660         (partial_die_hash, partial_die_eq): New functions.
7661         * Makefile.in (hashtab_h): Define.
7662         (dwarf2read.o): Update dependencies.
7663         (observer_inc, observer_h): Move to the correct section.
7664
7665 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
7666
7667         * dwarf2read.c (dwarf2_attribute_true_p): New function.
7668         (die_is_declaration): Use the function above. Add comment.
7669
7670 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
7671
7672         * dwarf2read.c (read_structure_scope): Identify stub types
7673         using die_is_declaration() only.
7674
7675 2004-04-15  Roland McGrath  <roland@redhat.com>
7676
7677         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7678         argument instead of NAME.
7679         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7680         in call to symbol_file_add_with_addrs_or_offsets.
7681         (build_addr_info): New function, helper for ...
7682         (symbol_file_add_from_memory): New function.
7683         (add_symbol_file_from_memory_command): New function using that.
7684         (_initialize_symfile): Register it for add-symbol-file-from-memory.
7685         (pre_add_symbol_hook): Add const to argument type.
7686         * symfile.h (symbol_file_add_from_memory): Declare it.
7687
7688 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
7689
7690         * NEWS (New native configurations): Mention OpenBSD/vax.
7691         * configure.host: Add vax-*-openbsd*.
7692         * config/vax/obsd.mh: New file.
7693         * config/vax/nm-obsd.h: New file.
7694
7695         * vax-tdep.c: Include "regset.h".
7696         (vax_supply_gregset): New function.
7697         (vax_gregset): New variable.
7698         (vax_regset_from_core_section): New function.
7699         (vax_gdbarch_init): Set regset_from_core_section.
7700         * Makefile.in (vax-tdep.o): Update dependencies.
7701
7702 2004-04-15  Andrew Cagney  <cagney@redhat.com>
7703
7704         * observer.c (normal_stop_subject, observer_notify_normal_stop)
7705         (observer_normal_stop_notification_stub)
7706         (observer_attach_normal_stop, observer_detach_normal_stop):
7707         Delete, replaced by #include "observer.inc".
7708         * infrun.c (normal_stop): Pass "stop_bpstat" to
7709         observer_notify_normal_stop.
7710         * Makefile.in (observer_inc): Define.
7711         (observer.o): Update dependencies.
7712         (observer.h, observer.inc): New rules.
7713         * observer.h: Delete file.
7714         * observer.sh: New file.
7715
7716 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
7717
7718         * vax-tdep.c (vax_frame_cache): Fix typo.
7719
7720 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
7721
7722         * NEWS (New native configurations): Mention NetBSD/vax.
7723         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7724         * config/vax/nbsdelf.mh: New file.
7725         * config/vax/nbsdaout.mh: New file.
7726         * config/vax/nm-nbsd.h: New file.
7727         * config/vax/nm-nbsdaout.h: New file.
7728
7729         * vaxnbsd-tdep.c: New file.
7730         * Makefile.in (vaxnbsd-tdep.o): New dependency.
7731         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7732         * config/vax/nbsd.mt: New file.
7733         * config/vax/tm-nbsd.h: New file.
7734
7735         * Makefile.in (vaxbsd-nat.o): New dependency.
7736
7737         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7738         * vax-tdep.c (vax_store_arguments): Remove struct_return and
7739         struct_addr arguments.  Don't push return value address.
7740         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7741         arguments to vax_store_arguments.  Store return value address in
7742         R1.
7743         (vax_store_struct_return, vax_extract_return_value)
7744         (vax_store_return_value): Remove functions.
7745         (vax_return_value): New function.
7746         (vax_gdbarch_init): Set return value.  Don't set
7747         deprecated_store_struct_return, deprecated_extract_struct_return
7748         and deprecated_store_return_value.
7749
7750 2004-04-14  Andreas Schwab  <schwab@suse.de>
7751
7752         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7753         value buffer.
7754         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7755
7756 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
7757
7758         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7759         (vax_unwind_dummy_id): New functions.
7760         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7761         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7762         variables.
7763         (vax_fix_call_dummy): Remove function.
7764         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7765         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7766         call_dummy_location, deprecated_call_dummy_words,
7767         deprecated_sizeof_call_dummy_words,
7768         deprecated_call_dummy_breakpoint_offset,
7769         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7770         and deprecated_dummy_write_sp.
7771
7772 2004-04-13  David Carlton  <carlton@kealia.com>
7773
7774         * MAINTAINERS: Move myself to "paper trail" section.
7775
7776 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
7777
7778         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7779         "trad-frame.h".
7780         (vax_frame_init_saved_regs): Remove function.
7781         (vax_sigtramp_saved_pc): Remove function.
7782         (vax_frame_saved_pc): Remove function.
7783         (vax_frame_args_address): Remove function.
7784         (vax_frame_num_args): Rewrite.
7785         (vax_frame_chain): Remove function.
7786         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7787         VAX_FP_REGNUM.
7788         (vax_pop_frame): Likewise.
7789         (vax_saved_pc_after_call): Remove function.
7790         (struct vax_frame_cache): New structure.
7791         (vax_frame_cache): New function.
7792         (vax_frame_this_id): New function.
7793         (vax_frame_prev_register): New function.
7794         (vax_frame_unwind): New variable.
7795         (vax_frame_sniffer): New function.
7796         (vax_frame_base_address): New function.
7797         (vax_frame_args_address): New function.
7798         (vax_frame_base): New variable.
7799         (vax_unwind_pc): New function.
7800         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7801         deprecated_fp_regnum, deprecated_saved_pc_after_call,
7802         deprecated_frame_chain, deprecated_frame_saved_pc,
7803         deprecated_frame_args_address and
7804         deprecated_frame_init_saved_regs.
7805         * Makefile.in (vax-tdep.o): Update dependencies.
7806
7807         * vaxbsd-nat.c: New file.
7808
7809         * vax-tdep.h: Update copyright year.  Adjust comments.
7810         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7811         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7812         (vax_regnum): New enum.  Replacing...
7813         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7814         (VAX_PS_REGNUM): ... these removed macros.
7815         * vax-tdep.c (vax_register_name): Remove prototype.
7816         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
7817         (vax_register_byte, vax_register_raw_size,
7818         vax_register_virtual_size, vax_register_virtual_type): Remove
7819         functions.
7820         (vax_register_type): New function.
7821         (vax_breakpoint_from_pc): Reorganize.
7822         (vax_gdbarch_init): Set register_type.  Don't set
7823         deprecated_register_size, deprecated_register_bytes,
7824         deprecated_register_byte, deprecated_register_raw_size,
7825         deprecated_max_register_raw_size,
7826         deprecated_register_virtual_size,
7827         deprecated_max_register_virtual_size and
7828         deprecated_register_virtual_type.  Add comment on stack direction.
7829
7830 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
7831
7832         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7833         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7834         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7835
7836 2004-04-10  Randolph Chung  <tausq@debian.org>
7837
7838         * MAINTAINERS (write after approval): Add myself.
7839
7840 2004-04-07  Randolph Chung  <tausq@debian.org>
7841
7842         * hppa-tdep.c (hppa_inner_than): Remove.
7843         (is_pa_2): Remove unused static variable.
7844         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7845
7846 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
7847
7848         * language.h (language_defn): Add new la_post_parser field.
7849         * parser-defs.h (null_post_parser): New declaration (default for
7850         la_post_parser).
7851
7852         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7853         insert call to that function.
7854         (parse_exp_in_context): New function, including code formerly in
7855         parse_exp_1.  Calls language-dependent post-parser after
7856         prefixification.
7857         (parse_expression_in_context): New exported function.
7858         (null_post_parser): New definition.
7859         * expression.h (parse_expression_in_context): Add declaration.
7860
7861         * p-lang.c (pascal_language_defn): Add trivial post-parser.
7862         * c-lang.c (c_language_defn): Ditto.
7863         (cplus_language_defn): Ditto.
7864         (asm_language_defn): Ditto.
7865         (minimal_language_defn): Ditto.
7866         * f-lang.c (f_language_defn): Ditto.
7867         * jv-lang.c (java_language_defn): Ditto.
7868         * language.c (unknown_language_defn): Ditto.
7869         (auto_language_defn): Ditto.
7870         (local_language_defn): Ditto.
7871         * m2-lang.c (m2_language_defn): Ditto.
7872         * scm-lang.c (scm_language_defn): Ditto.
7873         * obj-lang.c (objc_language_defn): Ditto.
7874
7875 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
7876
7877         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7878         (amd64nbsd_mcontext_addr): New function.
7879         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7880         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
7881         with amd64nbsd_r_reg_offset, instead of building it on the fly.
7882
7883         * corelow.c (core_xfer_partial): Fix coding standards violation.
7884         Add support for TARGET_OBJECT_WCOOKIE.
7885
7886         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7887         deprecated_pc_in_sigtramp.
7888         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7889         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7890         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7891         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7892         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7893         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7894         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7895
7896         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7897         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7898         Fix typo.
7899
7900         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7901         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7902         (amd64_collect_fxsave): Likewise.
7903
7904         * i386-sol2-tdep.c: Include "gdb_string.h".
7905         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7906         name.
7907         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7908
7909 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
7910
7911         * i386-sol2-tdep.c: Include "solib-svr4.h".
7912         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7913         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7914         * config/i386/tm-i386sol2.h: Include :solib.h".
7915         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7916         solib-svr4.o and solib-legacy.o.
7917         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7918         solib-svr4.o.
7919
7920 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
7921
7922         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7923         whether a register is supplied by PTRACE_GETFPREGS.
7924         (store_inferior_registers): Likewise.
7925         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7926         whether a register is supplied by PT_GETFPREGS.
7927         (store_inferior_registers): Likewise.
7928
7929         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7930         * config/i386/linux64.mt (TDEPFILES): Likewise.
7931
7932         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
7933
7934         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7935         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7936         the program counter is in the range specified by `struct
7937         gdbarch_tdep'.
7938         * amd64-linux-tdep.c: Include "symtab.h".
7939         (amd64_linux_pc_in_sigtramp): Remove function.
7940         (amd64_linux_sigtramp_p): New function.
7941         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7942         deprecated_pc_in_sigtramp.
7943         * amd64nbsd-tdep.c: Include "symtab.h".
7944         (amd64nbsd_sigtramp_p): New function.
7945         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7946         deprecated_pc_in_sigtramp.
7947         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
7948         few comments.
7949         (amd64obsd_pc_in_sigtramp): Remove function.
7950         (amd64obsd_sigtramp_p): New function.
7951         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7952         deprecated_pc_in_sigtramp.
7953         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7954         (i386bsd_pc_ins_sigtramp): Remove prototype.
7955         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7956         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7957         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7958         the program counter is in the range specified by `struct
7959         gdbarch_tdep'.
7960         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7961         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7962         (i386_go32_pc_in_sigtramp): Remove function.
7963         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7964         Initialize TDEP->sigtramp_p.
7965         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7966         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
7967         deprecated_pc_in_sigtramp.
7968         * i386-linux-tdep.c: Adjust comments.
7969         (i386_linux_pc_in_sigtramp): Remove function.
7970         (i386_linux_sigtramp_p): New function.
7971         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7972         deprecated_pc_in_sigtramp.
7973         * i386-nto-tdep.c: Update copyright year.
7974         (i386nto_pc_in_sigtramp): Remove function.
7975         (i386nto_sigtramp_p): New function.
7976         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7977         SP_REGNUM.
7978         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7979         deprecated_pc_in_sigtramp.
7980         * i386-sol2-tdep.c: Update copyright year.
7981         (i386_sol2_pc_in_sigtramp): Remove function.
7982         (i386_sol2_sigtramp_p): New function.
7983         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7984         deprecated_pc_in_sigtramp.
7985         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7986         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7987         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7988         deprecated_sigtramp_start and deprecated_sigtramp_end.
7989         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7990         (i386nbsd_pc_in_sigtramp): Remove function.
7991         (i386nbsd_sigtramp_p): New function.
7992         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7993         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7994         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7995         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7996         (i386obsd_pc_in_sigtramp): Remove function.
7997         (i386obsd_sigtramp_p): New function.
7998         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7999         functions.
8000         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8001         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
8002         TDEP->sigtramp_p.
8003         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8004         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8005         dependencies.
8006
8007         * config/i386/i386aout.mt: Remove file.
8008
8009         * configure.tgt: Remove i[34567]86-*-go32*,
8010         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8011         and i[34567]86-*-isc*.  Set gdb_target to i386 for
8012         i[34567]86-*-netware* and i[34567]86-*-*.
8013         * config/i386/i386.mt: New file.
8014         * config/i386/embed.mt: Remove file.
8015         * config/i386/go32.mt: Remove file.
8016         * config/i386/i386nw.mt: Remove file.
8017         * config/i386/i386v.mt: Remove file.
8018         * config/i386/tm-go32.h: Remove file.
8019
8020         * tui/tui-hooks.c: Include "readline/readline.h" after
8021         "gdb_curses.h" instead of before.
8022         * tui/tui-io.c: Likewise.
8023
8024         * tui/tui.c: Fix typo in comment.
8025
8026         * sparc64-tdep.c (sparc_address_from_register): Remove function.
8027
8028 2004-04-08  Andrew Cagney  <cagney@redhat.com>
8029
8030         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8031         (deprecated_exception_support_initialized): Declare.
8032         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8033         (initialize_hp_cxx_exception_support)
8034         (child_enable_exception_callback): Update.
8035         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8036         (deprecated_exception_support_initialized): Rename
8037         deprecated_exception_catchpoints_are_fragile and
8038         deprecated_exception_support_initialized.
8039         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8040
8041         * symtab.c (deprecated_hp_som_som_object_present): Rename
8042         hp_som_som_object_present.
8043         * symtab.h (deprecated_hp_som_som_object_present): Declare.
8044         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8045         Update.  Delete extern declaration.
8046         * valops.c (hp_som_som_object_present): Ditto.
8047         * parse.c (deprecated_hp_som_som_object_present)
8048         (parse_nested_classes_for_hpacc): Ditto.
8049         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8050         * hppa-hpux-tdep.c (hp_som_som_object_present)
8051         (initialize_hp_cxx_exception_support): Ditto.
8052         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8053         * cp-valprint.c (hp_som_som_object_present)
8054         (cp_print_class_method): Ditto.
8055         * c-typeprint.c (hp_som_som_object_present):
8056         (c_type_print_base): Ditto.
8057         * c-exp.y (hp_som_som_object_present): Ditto.
8058
8059 2004-04-08  Andrew Cagney  <cagney@redhat.com>
8060
8061         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8062         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8063         (frame_unwind_find_by_frame): Re-implement the unwind code so
8064         that it can both prepend and append sniffers.  Replace
8065         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8066         * tramp-frame.c (tramp_frame_append): Use
8067         frame_unwind_prepend_unwinder.
8068         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8069         frame_unwind_register_unwinder.
8070         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8071         tramp_frame_append.
8072         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8073         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8074         (mips_linux_init_abi): Update.
8075
8076 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
8077
8078         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8079         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
8080         file support.
8081
8082 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
8083
8084         * ia64-tdep.c (elf.h): Don't include.
8085         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8086
8087 2004-04-07  Jason Molenda  (jmolenda@apple.com)
8088
8089         * frame.h: Typeo corrections in comments.
8090
8091 2004-04-07  Jim Blandy  <jimb@redhat.com>
8092
8093         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8094         %esp and %ebp
8095
8096 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
8097
8098         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8099         * config/sparc/linux64.mt (TDEPFILES): Likewise.
8100         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8101         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8102         and solib-legacy.o.
8103         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8104         solib-svr4.o.
8105         * config/sparc/tm-sol2.h: Update copyright year.  Include
8106         "solib.h".
8107
8108         * sparc-sol2-tdep.c: Update copyright year.  Include
8109         "solib-svr4.h".
8110         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8111         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8112         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8113         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8114         dependencies.
8115
8116 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8117
8118         * infttrace.c: Include "infttrace.h".
8119         * infttrace.h: Include "target.h".
8120         * Makefile.in (infttrace_h): Update.
8121         (infttrace.o): Update.
8122
8123 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8124
8125         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8126         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8127         move extern declarations from here ...
8128         * infttrace.h: ... to here.
8129         * Makefile.in (hppah-nat.o): Update dependencies.
8130
8131         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8132         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8133         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8134         (hppa_breakpoint_from_pc): Delete.
8135
8136         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8137
8138 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8139
8140         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8141         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8142         <sys/file.h>.
8143
8144 2004-04-06  Randolph Chung  <tausq@debian.org>
8145
8146         Committed by Andrew Cagney (mechanical change).
8147         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8148         exception_catchpoints_are_fragile, find_stub_with_shl_get,
8149         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8150         child_enable_exception_callback, current_ex_event,
8151         null_symtab_and_line, child_get_current_exception_event,
8152         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8153         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8154         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8155         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8156         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8157         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8158         Move hpux-specific definitions ...
8159         * hppa-hpux-tdep.c: ... to here.
8160
8161 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8162
8163         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8164         skip_prologue_using_sal.
8165
8166 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8167
8168         * config/i386/tm-i386.h: Delete file.
8169         * config/i386/tm-vxworks.h: Update copyright, do not include
8170         "tm-i386.h".
8171         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8172         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8173         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8174         * config/i386/ncr3000.mt (TM_FILE): Delete.
8175         * config/i386/interix.mt (TM_FILE): Delete.
8176         * config/i386/i386v.mt (TM_FILE): Delete.
8177         * config/i386/i386nw.mt (TM_FILE): Delete.
8178         * config/i386/i386gnu.mt (TM_FILE): Delete.
8179         * config/i386/i386aout.mt (TM_FILE): Delete.
8180         * config/i386/embed.mt (TM_FILE): Delete.
8181
8182 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
8183
8184         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8185         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8186         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8187         (accg7_regnum): New constants.
8188         (last_spr_regnum, last_pseudo_regnum): Update.
8189         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8190         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8191         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8192         for accg registers.
8193         (frv_register_sim_regno): Update spr_map[].
8194
8195 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8196
8197         * config/mips/xm-riscos.h: Delete.
8198         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8199         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8200         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8201         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8202         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8203         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8204         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8205         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8206         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8207         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8208         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8209         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8210         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8211         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8212         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8213         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8214         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8215         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8216         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8217         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8218         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8219         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8220         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8221         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8222         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8223         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8224
8225         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8226         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8227         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8228         * configure.host: Remove m680[01]0-sun-sunos3*,
8229         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8230         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8231         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8232         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8233         mips-*-riscos*.
8234         * NEWS: Mention removed systems.
8235
8236 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8237
8238         GDB 6.1 release created from 6.1 branch.
8239
8240 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8241
8242         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8243         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8244         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8245
8246         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8247         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8248         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8249
8250 2004-04-03  Jim Blandy  <jimb@redhat.com>
8251
8252         * MAINTAINERS: Chris Faylor has changed employers; add him to
8253         "paper trail" section, and update his E-mail address.
8254
8255 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8256
8257         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8258         generic dummy frames.
8259         * dummy-frame.c: Update copyright.
8260         (dummy_frame_sniffer): Delete check for generic dummy frames.
8261
8262         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8263         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8264         (REG_PARM_STACK_SPACE): Delete.
8265         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8266         Inline reference to REG_PARM_STACK_SPACE.
8267
8268         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8269         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8270         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8271         (FRAME_BASE_BEFORE_SIGTRAMP)
8272         (hppa32_hpux_frame_base_before_sigtramp)
8273         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8274         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8275         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8276         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8277         (FRAME_BASE_BEFORE_SIGTRAMP)
8278         (hppa64_hpux_frame_base_before_sigtramp)
8279         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8280
8281 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8282
8283         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8284
8285 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8286
8287         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8288         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8289         * dummy-frame.h: Delete out-of-date comments.
8290         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8291         * gdbarch.h, gdbarch.c: Re-generate.
8292
8293 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
8294
8295         Committed by Andrew Cagney <cagney@redhat.com>.
8296         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8297         into account an instruction saving a register if we have already
8298         seen an earlier instruction saving that same register.
8299
8300 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8301
8302         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8303         * gdbarch.h, gdbarch.c: Re-generate.
8304         * frame.c (legacy_get_prev_frame): Delete references to
8305         DEPRECATED_INIT_FRAME_PC_FIRST.
8306
8307         * infrun.c (pc_in_sigtramp): Delete function.
8308         (check_sigtramp2): Inline call to pc_in_sigtramp, use
8309         get_frame_type.
8310
8311 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8312
8313         * infrun.c (handle_step_into_function): Delete code conditional on
8314         legacy_frame_p.
8315         (handle_inferior_event, step_over_function): Ditto.
8316
8317 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8318
8319         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8320         "previous frame inner to this frame" test.
8321
8322 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8323
8324         * frame.c (safe_frame_unwind_memory): New function.
8325         * frame.h (safe_frame_unwind_memory): Declare.  Update description
8326         of /safe_/ methods.
8327         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8328         "next_frame".  Use safe_frame_unwind_memory.
8329         (tramp_frame_sniffer): Update call to tramp_frame_start.
8330
8331 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
8332
8333         * dwarf2read.c (dwarf2_objfile_data_key): New.
8334         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8335         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8336         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8337         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8338         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8339         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8340         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8341         Remove variables.
8342         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
8343         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8344         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8345         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8346         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8347         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8348         Remove macros.
8349         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
8350         data.
8351         (dwarf2_locate_sections, dwarf2_build_psymtabs)
8352         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8353         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8354         (read_partial_die, read_full_die, read_indirect_string)
8355         (dwarf_decode_line_header, dwarf_decode_macros)
8356         (dwarf2_symbol_mark_computed): Remove use of removed macros.
8357         Update uses of removed variables.
8358         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
8359         of removed macros.
8360         (_initialize_dwarf2_read): New function.
8361         * symfile.h (dwarf2_has_info): Update prototype.
8362         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8363         * elfread.c (elf_symfile_read): Likewise.
8364
8365 2004-04-01  Jim Blandy  <jimb@redhat.com>
8366
8367         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8368         function for register numbers on all the rs6000-derived targets.
8369         (rs6000_gdbarch_init): Don't register a separate
8370         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
8371         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8372         variants.
8373
8374         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8375         numbering.
8376
8377 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
8378
8379         * valarith.c: Update copyright notice.
8380         (value_add): Handle range types.
8381         (value_sub): Ditto.
8382         (value_equal): Ditto.
8383         (value_less): Ditto.
8384         (value_neg): Ditto.
8385         (value_complement): Ditto.
8386         (value_binop): Simplify slightly by using is_integral_type and
8387         eliminiating unnecessary COERCE_ENUMs.
8388
8389 2004-03-31  Andrew Cagney  <cagney@redhat.com>
8390
8391         * frame.h (frame_unwind_id): Declare.
8392         * frame.c (frame_unwind_id): New function.
8393         (get_prev_frame_1): New function.
8394         (frame_debug_got_null_frame): New function.
8395         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
8396         code proper to prev_frame, update description.
8397         * infrun.c (step_over_function): Use frame_unwind_id.
8398
8399 2004-04-31  J. Brobecker  <brobecker@gnat.com>
8400
8401         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8402         (hppa64_push_dummy_call): Likewise.
8403
8404 2004-03-30  Jim Blandy  <jimb@redhat.com>
8405
8406         From Ulrich Weigand:
8407         * utils.c (query): Do not use a va_list variable multiple times.
8408
8409 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
8410
8411         * Makefile.in (linux_nat_h): Update dependencies.
8412         * configure.in: Check for <gnu/libc-version.h>.
8413         * configure: Regenerate.
8414         * config.in: Regenerate.
8415         * linux-nat.h: Include "target.h".  Add waitstatus field to
8416         struct lwp_info.
8417         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8418         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8419         to.
8420         (lin_lwp_handle_extended): New function.  Handle clone events.
8421         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
8422         thread exit events.
8423         (child_wait): Handle clone events.
8424         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8425         * linux-nat.c (linux_enable_event_reporting): Turn on
8426         PTRACE_O_TRACECLONE.
8427         (linux_handle_extended_wait): Handle clone events.
8428         * thread-db.c: Include <gnu/libc-version.h>.
8429         (struct private_thread_info): Add dying flag.
8430         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8431         higher.
8432         (attach_thread): Update comments.  Handle dying threads.
8433         (detach_thread): Set the dying flag.
8434         (check_event): Always call attach_thread.
8435
8436 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
8437
8438         * mips-tdep.c (mips_pdr_data): New.
8439         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8440         (_initialize_mips_tdep): Initialize mips_pdr_data.
8441
8442 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
8443
8444         * minsyms.c (install_minimal_symbols): Move dropping leading
8445         char from linkage name from here...
8446         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
8447         test for "__gnu_compiled*" symbols.
8448
8449 2004-03-28  Jim Blandy  <jimb@redhat.com>
8450
8451         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8452         registers to temp register r0 and byte stores as prologue
8453         instructions.
8454
8455 2004-03-28  Andrew Cagney  <cagney@redhat.com>
8456
8457         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
8458         arm*-*-*.
8459
8460 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
8461
8462         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8463         and switch the layout to force a display of register window.
8464
8465 2004-02-26  J. Brobecker  <brobecker@gnat.com>
8466
8467         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8468         of the INTEGER class.
8469
8470 2004-03-26  Jim Blandy  <jimb@redhat.com>
8471
8472         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8473         bytes long on PPC GNU/Linux.
8474
8475 2004-03-26  David Carlton  <carlton@kealia.com>
8476
8477         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8478
8479 2004-03-25  Andrew Cagney  <cagney@redhat.com>
8480
8481         * PROBLEMS: Add general section titles, remove references to
8482         specific releases.
8483
8484 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
8485
8486         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8487         INT_REGISTER_SIZE.
8488         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8489         FP_REGISTER_VIRTUAL_SIZE.
8490         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8491         of DEPRECATED_REGISTER_RAW_SIZE.
8492         (arm_register_type): Add gdbarch argument.
8493         (arm_register_raw_size, arm_register_virtual_size): Delete.
8494         (arm_register_byte, arm_extract_return_value)
8495         (arm_store_return_value, arm_get_longjmp_target): Update references
8496         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8497         (arm_gdbarch_init): Likewise.  Don't set
8498         deprecated_register_raw_size, deprecated_register_virtual_size,
8499         deprecated_max_register_raw_size,
8500         deprecated_max_register_virtual_size, or
8501         deprecated_max_register_virtual_type.  Do set register_type.
8502         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8503         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8504         (FP_REGISTER_VIRTUAL_SIZE): Delete.
8505         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8506         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8507         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8508         INT_REGISTER_SIZE.
8509         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8510         (remote_rdp_store_register): Likewise.
8511
8512 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
8513
8514         * Makefile.in (mips-linux-tdep.o): Update dependencies.
8515         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8516         to after osabi initialization.
8517         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8518         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8519         functions.
8520         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8521         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8522         variables.
8523         (mips_linux_init_abi): Append signal trampoline unwinders.
8524
8525 2004-03-24  Andrew Cagney  <cagney@redhat.com>
8526
8527         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8528         * tramp-frame.c: Include "gdb_assert.h".
8529         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
8530         correct sizeof.
8531         (tramp_frame_append): Validate the tramp frame's instructions.
8532         * Makefile.in (tramp-frame.o): Update dependencies.
8533
8534 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8535
8536         * trad-frame.h (trad_frame_set_reg_addr): Declare.
8537
8538 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8539
8540         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8541         Nasser as past testsuite/lib/ (and other) maintainers.
8542
8543 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
8544
8545         * infcmd.c (attach_command): Reread symbols if we already have
8546         an exec file.
8547
8548 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8549
8550         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8551
8552 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8553
8554         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8555         * gdbarch.h, gdbarch.c: Re-generate.
8556         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8557         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8558         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8559         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8560         (DEPRECATED_SIGTRAMP_START): Update.
8561         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8562         (DEPRECATED_SIGTRAMP_START): Update.
8563         * blockframe.c (find_pc_sect_partial_function): Update.
8564         * arch-utils.c (legacy_pc_in_sigtramp): Update.
8565
8566 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
8567
8568         * remote.c (remote_open_1): Reopen the exec file and reread symbols
8569         if necessary.
8570
8571 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8572
8573         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8574         predicate, deprecate.
8575         * gdbarch.h, gdbarch.c: Re-generate.
8576         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8577         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8578         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8579         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8580         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8581         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8582         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8583         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8584         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8585         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8586         * blockframe.c (find_pc_partial_function): Update.
8587         * breakpoint.c (bpstat_what): Update.
8588         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8589         * frv-linux-tdep.c (frv_linux_init_abi): Update.
8590         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8591         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8592         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8593         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8594         * i386-nto-tdep.c (i386nto_init_abi): Update.
8595         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8596         * i386-tdep.c (i386_sigtramp_frame_sniffer)
8597         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8598         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8599         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8600         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8601         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8602         * infrun.c (pc_in_sigtramp): Update.
8603         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8604         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8605         * mips-tdep.c (mips_gdbarch_init): Update.
8606         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8607         * ppc-linux-tdep.c: Update comment.
8608         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8609         * shnbsd-tdep.c (shnbsd_init_abi): Update.
8610         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8611         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8612         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8613         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8614         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8615         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8616         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8617         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8618
8619 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8620
8621         * tramp-frame.h, tramp-frame.h: New files.
8622         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8623         Update rules to include "tramp-frame.h" and "tramp-frame.c".
8624
8625         * Makefile.in: Update all dependencies.
8626
8627 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8628
8629         * Makefile.in (trad_frame_h): Add $(frame_h).
8630         * trad-frame.h: Update copyright.  Include "frame.h".
8631         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8632         (trad_frame_set_id, trad_frame_get_id): Declare.
8633         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8634         * trad-frame.c: Update copyright.
8635         (struct trad_frame_cache): Define.
8636         (trad_frame_cache_zalloc): New function.
8637         (trad_frame_set_id, trad_frame_get_id): New functions.
8638         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8639
8640 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8641
8642         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8643         s390_pltstub_unwind_cache.
8644         (s390_stub_frame_unwind_cache): Rename
8645         s390_pltstub_frame_unwind_cache.
8646         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8647         (s390_stub_frame_prev_register): Rename
8648         s390_pltstub_frame_prev_register.
8649         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8650         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8651
8652         From Ulrich Weigand:
8653         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8654         pointer calls like PLT calls.
8655
8656 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
8657
8658         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8659         PC rather than the partial function start address.  Use the start
8660         address to sanity check the found PDR.
8661
8662 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
8663
8664         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8665         linux_handle_extended_wait.
8666
8667 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8668
8669         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8670         function.
8671
8672         * frame.h (generic_pop_current_frame): Delete declaration.
8673         (deprecate_pop_dummy_frame): Deprecate
8674         generic_pop_dummy_frame.
8675         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8676         (generic_pop_current_frame): Delete function.
8677         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8678         generic_pop_current_frame.
8679         * v850-tdep.c (v850_pop_frame): Update.
8680         * mcore-tdep.c (mcore_pop_frame): Update.
8681         * sh64-tdep.c (sh64_pop_frame): Update.
8682         * h8300-tdep.c (h8300_pop_frame): Update.
8683
8684 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8685
8686         * frame.h (deprecated_pc_in_call_dummy): Rename
8687         generic_pc_in_call_dummy.
8688         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8689         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8690         generic_pc_in_call_dummy.
8691         (pc_in_dummy_frame): Make static.
8692         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8693         * gdbarch.h, gdbarch.c: Re-generate.
8694         * dummy-frame.c (dummy_frame_sniffer): Simplify.
8695         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8696         (legacy_get_prev_frame): Ditto.
8697         * inferior.h: Delete reference to generic_pc_in_call_dummy in
8698         comment.
8699
8700 2004-03-21  Andrew Cagney  <cagney@redhat.com>
8701
8702         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8703         declaration and out-of-date comment.
8704         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8705         Delete function.
8706         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8707         deprecated_pc_in_call_dummy.
8708
8709         * infrun.c (handle_inferior_event): For non legacy frames, use the
8710         frame ID and frame type to identify a signal trampoline.  Update
8711         comments.
8712
8713 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
8714
8715         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8716         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8717
8718 2004-03-21  Andrew Cagney  <cagney@redhat.com>
8719
8720         * frame-unwind.h: Update copyright.
8721         (struct frame_data): Add opaque declaration.
8722         (frame_sniffer_ftype): Declare.
8723         (struct frame_unwind): Add "unwind_data" and "sniffer".
8724         (frame_unwind_register_unwinder): Declare.
8725         (frame_unwind_find_by_frame): Add parameter "this_cache".
8726         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8727         (legacy_get_prev_frame, legacy_get_prev_frame)
8728         (get_frame_type): Pass the prologue_cache to
8729         frame_unwind_find_by_frame.
8730         * frame-unwind.c (struct frame_unwind_table_entry): Add field
8731         "unwinder".
8732         (frame_unwind_register_unwinder): New function.
8733         (frame_unwind_find_by_frame): Handle an unwind sniffer.
8734
8735 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
8736
8737         * bcache.c (print_percentage): Use floating point to avoid
8738         incorrect results when portion*100 overflows.
8739
8740 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
8741
8742         * ppc_tdep.h (ppc_linux_frame_saved_pc)
8743         (ppc_linux_init_extra_frame_info)
8744         (ppc_linux_frameless_function_invocation)
8745         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8746         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8747         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8748         (rs6000_frame_chain): Delete declarations.
8749         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8750         (ppc_linux_init_extra_frame_info)
8751         (ppc_linux_frameless_function_invocation)
8752         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8753         (ppc_linux_init_abi): Remove registration of above deleted functions.
8754         * rs6000-tdep.c (rs6000_init_extra_frame_info)
8755         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8756         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8757         (rs6000_pop_frame, rs6000_frameless_function_invocation)
8758         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8759         (rs6000_gdbarch_init): Remove registration of above deleted functions.
8760         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8761         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8762         frame management for all OSABIs.
8763
8764 2004-03-19  Andrew Cagney  <cagney@redhat.com>
8765
8766         Committed by Kevin Buettner <kevinb@redhat.com>.
8767
8768         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8769         Update copyright.
8770         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8771         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8772         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8773         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8774         unwinders.  #ifdef legacy frame code.
8775         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8776         "frame-base.h".
8777         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8778         (struct rs6000_frame_cache, rs6000_frame_cache)
8779         (rs6000_frame_this_id, rs6000_frame_prev_register)
8780         (rs6000_frame_sniffer, rs6000_frame_unwind)
8781         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8782         (rs6000_frame_base): Implement a traditional frame unwinder.
8783         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8784         frame unwinder.
8785
8786 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
8787
8788         * breakpoint.c (adjust_breakpoint_address): Don't adjust
8789         breakpoint address for watchpoints or the catch eventpoints.
8790         Add new paramter ``bptype''.  Adjust all callers.
8791
8792 2004-03-19  Andrew Cagney  <cagney@redhat.com>
8793
8794         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8795
8796         * PROBLEMS: Delete note that ARM does not use frame code, problem
8797         fixed.
8798
8799 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8800
8801         * stack.c (return_command): Delete code wrapped in #ifdef
8802         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8803
8804         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8805
8806 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8807
8808         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8809         DEPRECATED_IN_SIGTRAMP.
8810         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8811         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8812         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8813         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8814         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8815         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8816         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8817         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8818         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8819         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8820
8821 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8822
8823         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
8824         (struct frame_base_table_entry): Define.
8825         (struct frame_base_table): Re-implement as a linked list.
8826         (frame_base_init): Re-implement.
8827         (frame_base_table): Delete function.
8828         (append_predicate): Delete function.
8829         (frame_base_append_sniffer): Update.
8830         (frame_base_set_default): Update.
8831         (frame_base_find_by_frame): Update.
8832         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8833         * Makefile.in (frame-base.o): Update dependencies.
8834
8835 2004-03-17  Andrew Cagney  <cagney@redhat.com>
8836
8837         * frame.c (legacy_get_prev_frame): Pass correct frame to
8838         frame_unwind_find_by_frame.
8839
8840 2004-03-17  David Carlton  <carlton@kealia.com>
8841
8842         * NEWS: Mention C++ nested types and namespaces
8843
8844 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
8845
8846         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8847         and "Regressions since gdb 5.3.".  Add known regressions since
8848         gdb 6.0.
8849
8850 2004-03-16  David Carlton  <carlton@kealia.com>
8851
8852         * dwarf2read.c (process_structure_scope): Process children even
8853         when we're a declaration.
8854
8855 2004-03-16  Andrew Cagney  <cagney@redhat.com>
8856
8857         * symtab.h (find_pc_sect_partial_function): Delete declaration.
8858         * blockframe.c (find_pc_partial_function)
8859         (find_pc_sect_partial_function): Merge into a single
8860         find_pc_partial_function.
8861
8862 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
8863
8864         * i386bsd-nat.c: s/regno/regnum/g.
8865         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8866         FP0_REGNUM.
8867         (store_inferior_registers): Likewise.
8868
8869 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
8870
8871         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8872         of i387_fill_fsave.
8873         (store_inferior_registers): Call i387_collect_fsave and
8874         i387_collect_fxsave instead of i387_fill_fsave and
8875         i387_fill_fxsave.
8876
8877 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8878
8879         * Makefile.in (frame-unwind.o): Update dependencies.
8880         * frame-unwind.c: Include "gdb_obstack.h".
8881         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8882         parameter.
8883         (append_predicate): Delete function.
8884         (struct frame_unwind_table_entry): New structure.
8885         (struct frame_unwind_table): Replace "sniffer" with "head" and
8886         "tail".
8887         (frame_unwind_append_sniffer): Update.
8888         (frame_unwind_find_by_frame): Update.
8889         (_initialize_frame_unwind): Registe frame_unwind_init using
8890         gdbarch_data_register_pre_init.
8891
8892 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8893
8894         * i386bsd-nat.c: Update copyright year.
8895         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8896         define unconditionally.
8897
8898 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8899
8900         * i387-tdep.h (i387_collect_fsave): New prototype.
8901         * i387-tdep.c (i387_collect_fsave): New function containing most
8902         of the code from i387_fill_fsave.
8903         (i387_fill_fsave): Call i387_collect_fsave.
8904
8905 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8906
8907         * i386-linux-tdep.c: Update copyright year.
8908         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8909         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8910         svr4_ilp32_link_map_offsets instead of
8911         i386_linux_svr4_fetch_link_map_offsets.
8912
8913 2004-03-15  David Carlton  <carlton@kealia.com>
8914
8915         Fix for PR c++/1553:
8916         * dwarf2read.c (read_structure_type): Determine type name by
8917         calling determine_class_name.
8918         (determine_class_name): New.
8919         (determine_prefix): Look at TYPE_TAG_NAME and call
8920         determine_class_name when appropriate.
8921         (determine_prefix_aux, class_name): Delete.
8922         (read_namespace): Set die->type.
8923
8924 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8925
8926         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8927         unused macro definition.  The definition in target.h (or perhaps
8928         elsewhere) takes precedence.
8929
8930 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8931
8932         * ppc-tdep.h: Update copyright.
8933         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8934         function signatures to match "regsets.h".
8935         * ppc-linux-tdep.c: Include "regset.h".
8936         (ELF_GREGSET_SIZE): Delete.
8937         (right_supply_register): New function.
8938         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8939         using right_supply_register.
8940         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8941         functions.
8942         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8943         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8944         (_initialize_ppc_linux_tdep): Do not register
8945         ppc_linux_regset_core_fns.
8946         (ppc_linux_regset_from_core_section): Replace
8947         fetch_core_registers.
8948         (ppc_linux_regset_core_fns): Delete.
8949         * ppc-linux-nat.c: (right_fill_reg): New function.
8950         (supply_gregset): Update call to ppc_linux_supply_gregset.
8951         (fill_gregset): Clear the register set, use right_fill_reg.
8952         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8953         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8954
8955         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8956         unsigned.
8957
8958 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8959
8960         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8961         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8962         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8963         and register_gdbarch_data.
8964         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8965         (struct gdbarch_data): Replace "init" by "pre_init" and
8966         "post_init".
8967         * gdbarch.h, gdbarch.c: Re-generate.
8968         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8969         with"obstack", use OBSTACK_ZALLOC.
8970         (dwarf2_frame_ops): Delete.
8971         (dwarf2_frame_set_init_reg): Use gdbarch_data.
8972         (dwarf2_frame_init_reg): Use gdbarch_data.
8973         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8974         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8975         (_initialize_svr4_solib): Update.
8976         * user-regs.c (_initialize_user_regs): Update.
8977         * reggroups.c (_initialize_reggroup): Update.
8978         * regcache.c (_initialize_regcache): Update.
8979         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8980         * libunwind-frame.c (_initialize_libunwind_frame): Update.
8981         * gnu-v3-abi.c (init_gnuv3_ops): Update.
8982         * frame-unwind.c (_initialize_frame_unwind): Update.
8983         * frame-base.c (_initialize_frame_base): Update.
8984         * user-regs.c (user_reg_add): Update.
8985         * reggroups.c (reggroup_add): Update.
8986         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8987         * libunwind-frame.c (libunwind_frame_set_descr): Update.
8988         * frame-unwind.c (frame_unwind_append_sniffer): Update.
8989         * frame-base.c (frame_base_table): Update.
8990         * remote.c (_initialize_remote): Update.
8991         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8992
8993 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8994
8995         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8996
8997 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8998
8999         * Makefile.in (frv-linux-tdep.o): Add dependencies.
9000         * frv-linux-tdep.c: New file.
9001         * frv-tdep.c (struct gdbarch_tdep): Add new field
9002         ``sigcontext_reg_addr''.
9003         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9004         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9005         (frv_sigramp_frame_sniffer): New functions.
9006         (frv_sigtramp_frame_unwind): New static global.
9007         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
9008         sniffers.
9009         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9010         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9011
9012 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9013
9014         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9015         but not via a call to error(), when unable to read memory.
9016
9017 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
9018
9019         * frv-tdep.c (frv_call_dummy_words): Delete.
9020         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9021
9022 2004-03-15  Andrew Cagney  <cagney@redhat.com>
9023
9024         * infrun.c (handle_step_into_function, step_over_function): Only
9025         update and use STEP_FRAME_ID when the system is using legacy
9026         frames.  Update comments.
9027
9028 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
9029
9030         * amd64-linux-tdep.h: Remove file.
9031         * amd64-linux-tdep.c: Don't include "inferior.h" and
9032         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
9033         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9034         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9035         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9036         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9037         macros.
9038         (user_to_gdb_regmap): Remove variable.
9039         (amd64_linux_gregset_reg_offset): New variable.
9040         (amd64_core_fns): Remove variable.
9041         (fetch_core_registers): Remove function.
9042         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9043         functions.
9044         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9045         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9046         * Makefile.in (amd64_linux_tdep_h): Remove.
9047         (amd64-linux-nat.o): Update dependencies.
9048         (amd64-linux-tdep.o): Update dependencies.
9049
9050         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9051         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9052         functions.
9053         (fetch_inferior_registers, store_inferior_registers): Rewrite.
9054
9055         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9056         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9057
9058 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
9059
9060         * dwarf2read.c (read_structure_type): Rename from
9061         read_structure_scope.  Don't create a symbol or call process_die.
9062         Return immediately if die->type is set.  Call read_type_die before
9063         dwarf2_add_member_fn.
9064         (process_structure_scope): New function.
9065         (read_enumeration_type, process_enumeration_scope): New functions,
9066         broken out from read_enumeration.  Don't create the enumeration
9067         type if it has already been created.
9068         (read_enumeration): Removed.
9069         (process_die): Call read_structure_type, process_structure_scope,
9070         read_enumeration_type, and process_enumeration_scope.  Just call
9071         new_symbol for base and subrange types.  Add a comment about other
9072         type dies.
9073         (read_type_die): Call read_enumeration_type.
9074         (add_partial_structure, new_symbol): Update comments.
9075
9076 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
9077
9078         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9079
9080 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
9081
9082         * tui/tui-win.h (tui_get_cmd_list): Declare.
9083         * tui/tui-win.c (tui_command): New function.
9084         (tui_get_cmd_list): New function.
9085         (_initialize_tui_win): Moved initialization of tui command in
9086         tui_get_cmd_list.
9087
9088         * tui/tui-data.c (init_content_element): Setup new data members.
9089         (init_win_info): Likewise.
9090         (free_content_elements): Free it.
9091         * tui/tui-data.h (struct tui_data_element): Store the register
9092         content to print.
9093         (struct tui_data_info): Keep the current register group.
9094
9095         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9096
9097         * tui/tui-regs.h (tui_show_registers): Update prototype.
9098         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9099         (tui_resize_all): No need to calculate anything for register window.
9100         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9101         (tui_set_register_element, tui_set_general_regs_content): Remove.
9102         (tui_set_special_regs_content): Remove.
9103         (tui_set_general_and_special_regs_content): Remove.
9104         (tui_set_float_regs_content): Remove.
9105         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9106         (tui_set_regs_content): Remove.
9107         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9108         (tui_v_show_registers_command_support): Remove.
9109         (tui_show_registers): Use a reggroup to specify the registers to show.
9110         (tui_show_register_group): New function.
9111         (tui_display_registers_from): Compute the layout of register window
9112         and refresh with new API; be sure to delete old register windows.
9113         (tui_check_register_values): Update to use tui_get_register and
9114         tui_display_data.
9115         (tui_display_register): Just refresh the register window part.
9116         (tui_register_format): Format registers and save in tui_data_element.
9117         (tui_get_register): New to combine tui_reg_value_has_changed and
9118         tui_get_register_raw_value; fix to use the new gdb API.
9119         (tui_show_float_command): Renamed tui_reg_float_command.
9120         (tui_show_general_command): Renamed tui_reg_general_command.
9121         (tui_show_special_command): Renamed tui_reg_system_command.
9122         (_initialize_tui_regs): Remove unused commands.
9123
9124 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
9125
9126         * NEWS (New native configurations): Mention OpenBSD/amd64.
9127
9128         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9129         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9130         Remove defines.
9131         * config/i386/nm-fbsd64.h: Likewise.
9132         * config/i386/nm-obsd.h: Likewise.
9133         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
9134         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
9135
9136 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9137
9138         * frv-tdep.c (set_variant_scratch_registers): New function.
9139         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9140         New constants.
9141
9142         From Richard Sandiford  <rsandifo@redhat.com>:
9143         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9144
9145 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9146
9147         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
9148         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9149         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9150         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9151         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9152         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9153         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9154         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9155         definitions from frv-tdep.c to frv-tdep.h.
9156
9157 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9158
9159         Add shared library support for FR-V FDPIC ABI:
9160         * Makefile.in (solib-frv.o): Add dependencies.
9161         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9162         New functions.
9163         (frv_push_dummy_call): Add support for FDPIC ABI.
9164         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9165         for FDPIC ABI.
9166         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9167         (frv_fdpic_find_canonical_descriptor): Declare.
9168         * solib-frv.c: New file.
9169         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9170         * config/frv/tm-frv.h (solib.h): Include.
9171
9172 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9173
9174         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9175         (frv-tdep.o): Update dependencies.
9176         * frv-tdep.h: New file.
9177         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9178         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9179         constants.
9180         (struct gdbarch_tdep): Add new member ``frv_abi''.
9181         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9182         functions.
9183         (new_variant): Set ``frv_abi'' field.
9184         (gdb_arch_init): Detect FDPIC executables.
9185
9186 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
9187
9188         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9189         wrapper.
9190
9191 2004-03-11  Andrew Cagney  <cagney@redhat.com>
9192
9193         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9194
9195 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
9196
9197         * solist.h (master_so_list): New function.
9198         * solib.c (master_so_list): Likewise.
9199         * solib-svr4.c (enable_break): Iterate over so_list entries
9200         obtained from master list instead of entries obtained directly
9201         via svr4_current_sos().
9202
9203 2004-03-10  Ben Elliston  <bje@gnu.org>
9204
9205         * MAINTAINERS: Update my mail address.
9206
9207 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
9208
9209         * remote-m32r-sdi.c: Support hardware watchpoint.
9210
9211 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9212
9213         * user-regs.c: Update copyright years.
9214         (struct user_regs): Rename to gdb_user_regs.
9215         (append_user_reg, builtin_user_regs, user_regs_init)
9216         (user_reg_add, user_reg_map_name_to_regnum)
9217         (usernum_to_user_reg): Update.
9218
9219 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9220
9221         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9222         (skip_children): New functions.
9223         (locate_pdi_sibling): Call skip_children.
9224
9225 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9226
9227         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9228         * gdbtypes.c (check_typedef): Update comments.
9229
9230 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9231
9232         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9233         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9234         pointer.  Update comment about comp_unit_head.
9235         (struct abbrev_info): Shorten two int flags.
9236         (dwarf_alloc_abbrev): Take a CU argument.
9237         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9238         each time through the loop.  Update cleanup argument.
9239         (psymtab_to_symtab_1): Update cleanup call.
9240         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9241         abbrev_obstack.
9242         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9243         Just call obstack_free and clear the pointer.
9244
9245 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9246
9247         * infrun.c (handle_inferior_event): Remove short-circuit code for
9248         events in a different thread.
9249
9250 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9251
9252         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9253         print the whole transfer.
9254         (initialize_targets): Update description of "set debug target".
9255
9256 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9257
9258         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9259
9260 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
9261
9262         * MAINTAINERS (write after approval): Add myself.
9263
9264 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9265
9266         * sh-tdep.c (sh_print_registers_info): Use for loop.
9267         Don't skip multiple registers when a float register is encountered.
9268
9269 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9270
9271         Fix PR tdep/1291.
9272         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9273         to official SH documentation.
9274
9275 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9276
9277         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9278         unused function.
9279
9280 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
9281
9282         * arm-tdep.c (thumb_get_next_pc): Handle BX.
9283         (arm_get_next_pc): Handle BX and BLX.
9284
9285 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9286
9287         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9288         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9289         HPPA_SP_REGNUM.
9290         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9291         (hppa_target_read_fp): Delete.
9292         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9293         register_virtual_size, max_register_raw_size,
9294         max_register_virtual_size, register_byte, register_size,
9295         target_read_fp, fp_regnum, and register_bytes.  Set register_type
9296         instead of register_virtual_type.
9297         (hppa32_register_type, hppa64_register_type): Replace
9298         hppa32_register_virtual_type and hppa64_register_virtual_type.
9299         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9300         (HPPA_FP_REGNUM): Define.
9301
9302         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9303
9304         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9305         (pa_do_registers_info): Delete.
9306         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9307         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9308         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9309
9310         * infcall.c (legacy_push_dummy_code): Delete #ifdef
9311         GDB_TARGET_IS_HPPA code.
9312         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9313         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9314         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9315         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9316         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9317         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9318         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9319         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9320         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9321         (hppa_frameless_function_invocation, hppa64_store_return_value)
9322         (hppa_store_struct_return, hppa64_extract_return_value)
9323         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9324         (hppa32_call_dummy_length, hppa64_call_dummy_length)
9325         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9326         (find_proc_framesize, deposit_21, restore_pc_queue)
9327         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9328         (rp_saved, pc_in_linker_stub): Delete.
9329
9330         Unconditionally enable 64-bit frame and ABI code.
9331         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9332         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9333         push_dummy_frame, fix_call_dummy, push_arguments,
9334         call_dummy_location, extract_return_value, use_struct_convention,
9335         store_return_value, store_struct_return, saved_pc_after_call,
9336         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9337         frame_chain, frame_chain_valid, frameless_function_invocation,
9338         frame_saved_pc, and pop_frame.
9339
9340         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9341         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9342         (hppa_gdbarch_init): Do not set PC_REGNUM.
9343
9344 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
9345
9346         * config/alpha/tm-fbsd.h: Remove file.
9347         * config/alpha/fbsd.mt: Tweak comment.
9348         (TM_FILE): Set to tm-alpha.h.
9349
9350 2004-03-05  Andrew Cagney  <cagney@redhat.com>
9351
9352         * infrun.c (step_over_function): When non-legacy code, and no
9353         step_frame_id, use the unwinder to get the caller's frame ID.
9354
9355 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9356
9357         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9358         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9359         bfd_arch_unknown.  Adjust comment.
9360
9361         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
9362         * i386obsd-tdep.c: Correct spelling in comment.
9363         * i386nbsd-tdep.c: Correct spelling in comment.
9364         * sparc-tdep.c: Correct spelling in comments.
9365
9366 2004-03-05  David Carlton  <carlton@kealia.com>
9367
9368         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9369         bug.
9370
9371 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9372
9373         * sparc-tdep.c: Fix typo in comment.
9374
9375 2004-03-04  J. Brobecker  <brobecker@gnat.com>
9376
9377         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9378
9379 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
9380
9381         * dwarf2read.c: Add comment describing memory lifetimes.
9382         (struct dwarf2_pinfo): Update comment.
9383         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9384         (read_enumeration, new_symbol): Don't use obsavestring.
9385
9386 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
9387
9388         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9389         instead of amd64_fill_fxsave.
9390         * amd64bsd-nat.c (store_inferior_registers): Likewise.
9391         * amd64fbsd-nat.c (fill_fpregset): Likewise.
9392
9393         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9394         Reorganize code a bit.
9395
9396 2004-03-04  Orjan Friberg  <orjanf@axis.com>
9397
9398         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9399         when the frame pointer is pushed.  Don't set the frame pointer's
9400         address on the stack unless it's actually located there.
9401         Set the SRP's address on the stack correctly when the PC is still in
9402         the prologue.
9403         (cris_return_value): New function.
9404         (cris_gdbarch_init): Clear deprecated store_return_value,
9405         extract_return_value.
9406
9407 2004-03-02  Jim Blandy  <jimb@redhat.com>
9408
9409         * stabsread.c (reg_value_complaint): The maximum register number
9410         is one less than the number of registers.
9411
9412 2004-03-02  Andrew Cagney  <cagney@redhat.com>
9413
9414         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9415         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
9416         trailing comma and redundant assignment of I386_ST0_REGNUM.
9417         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9418         32-bit segment registers.
9419
9420 2004-03-01  Andrew Cagney  <cagney@redhat.com>
9421
9422         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9423         use frame_relative_level and get_next_frame.
9424
9425 2004-02-29  Andrew Cagney  <cagney@redhat.com>
9426
9427         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9428         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9429         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9430         Delete macro.
9431
9432 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
9433
9434         * inflow.c (terminal_inferior): Don't give up the terminal if we
9435         previously couldn't get the inferior's terminal state.
9436
9437 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
9438
9439         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9440         PC_REGNUM.
9441
9442 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9443
9444         * NEWS: Refer to GDB 6.1.
9445         * README: Refer to GDB 6.1.
9446         * PROBLEMS: Refer to GDB 6.1.
9447
9448 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
9449
9450         * thread-db.c (disable_thread_signals): Remove unused function.
9451
9452 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9453
9454         * amd64-nat.c: Include "gdb_string.h".
9455         (amd64_collect_native_gregset): Zero-extend the 32-bit
9456         general-purpose registers and %eip.
9457
9458         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9459         * amd64-tdep.c (amd64_collect_fxsave): New function.
9460         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9461
9462         * i387-tdep.h: Update copyright year.
9463         (i387_collect_fxsave): New prototype.
9464         * i387-tdep.c: Update copyright year.
9465         (i387_collect_fxsave): New function containing most of the code
9466         from i387_fill_fxsave.
9467         (i387_fill_fxsave): Call i387_collect_fxsave.
9468
9469 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9470
9471         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9472         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
9473
9474 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9475
9476         * amd64-tdep.c (amd64_frame_cache): Fix comment.
9477
9478 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9479
9480         * utils.c: Use "", instead of <>, to include readline.
9481         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9482         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9483         * source.c, solib.c, exec.c, event-top.c: Ditto.
9484         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9485         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9486         * Makefile.in: Update all dependencies.
9487         (readline_tilde_h, readline_history_h): Define.
9488         (readline_headers): Delete.
9489
9490 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9491
9492         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9493         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9494         "config/i386/tm-lx64.h".
9495
9496         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9497         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
9498         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9499
9500 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9501
9502         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9503
9504         * breakpoint.c (_initialize_breakpoint): Use
9505         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
9506         Add help to show command.
9507
9508 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9509
9510         * i386-nat.c: Reformat to be closer to coding standards.
9511         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9512         `retval'.  Make variables `align' and `size' local to while-loop.
9513         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9514         (_initialize_i386_nat): New prototype.
9515
9516         * tui/tui.c: Include <readline/readline.h> instead of
9517         "readline/readline.h".  Include it after <term.h> and
9518         "gdb_curses.h".
9519
9520 2004-02-27  Andrew Cagney  <cagney@redhat.com>
9521
9522         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9523         the new frame unwind code.
9524         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9525         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9526         PCOQ_HEAD_REGNUM.
9527
9528         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9529         "return_value" and "push_dummy_call".
9530         (hppa32_use_struct_convention): Delete unused function.
9531         (hppa32_store_return_value): Delete unused function.
9532         (hppa32_extract_return_value): Delete unused function.
9533         (hppa32_stack_align): Delete function.
9534
9535 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
9536
9537         * coffread.c (enter_linenos): Don't let rawptr reference memory
9538         outside linetab[]'s limits.
9539
9540 2004-02-27  Andrew Cagney  <cagney@redhat.com>
9541
9542         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9543         inferior stack space - the stack needs to grow upwards.
9544         (hppa32_frame_align): New function.
9545         (hppa64_frame_align): Replace hppa_frame_align.
9546         (hppa_gdbarch_init): Update.
9547
9548 2004-02-26  Orjan Friberg  <orjanf@axis.com>
9549
9550         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9551         (dwarf2-frame.h): Include.
9552         (enum cris_regnums): New enum CRIS_FP_REGNUM.
9553         Remove static variables related to ABI setting.
9554         (struct gdbarch_tdep): Remove cris_abi member.
9555         (struct frame_extra_info): Remove.
9556         (cris_unwind_cache, stack_item): New structs.
9557         (cris_frame_unwind, cris_frame_base): New variables.
9558         (push_stack_item, pop_stack_item)
9559         (cris_frame_unwind_cache, cris_frame_this_id)
9560         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9561         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9562         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9563         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9564         (cris_reg_struct_has_addr): New functions.
9565         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9566         (cris_frame_saved_pc, cris_saved_pc_after_call,
9567         (cris_store_struct_return, cris_frameless_function_invocation)
9568         (cris_pop_frame, cris_skip_prologue_main)
9569         (cris_abi_original_store_return_value)
9570         (cris_abi_v2_store_return_value)
9571         (cris_abi_original_extract_return_value)
9572         (cris_abi_v2_extract_return_value)
9573         (cris_abi_original_reg_struct_has_addr)
9574         (cris_abi_v2_reg_struct_has_addr)
9575         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9576         (cris_push_return_address, cris_abi_update): Remove.
9577         (_initialize_cris_tdep): Remove ABI command.
9578         (cris_dump_tdep): Ditto.
9579         (cris_gdbarch_init): Remove ABI command.
9580         Set store_return_value, extract_return_value, push_dummy_code,
9581         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9582         frame_unwind_append_sniffer, frame_base_set_default.
9583         Clear deprecated init_frame_pc, push_arguments, store_return_value,
9584         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9585         sizeof_call_dummy_words, get_saved_register, push_return_address,
9586         pop_frame, store_struct_return, frame_init_saved_regs,
9587         init_extra_frame_info, frameless_function_invocation, frame_chain,
9588         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9589         dummy_write_sp.
9590
9591 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9592
9593         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9594         * valprint.c (print_hex_chars): Change from static to external.
9595         (print_char_chars): New function.
9596         * printcmd.c (print_scalar_formatted): For integer and enum types
9597         that are longer than LONGEST, perform processing via appropriate
9598         print_*_chars routines.
9599
9600 2004-02-26  Andrew Cagney  <cagney@redhat.com>
9601
9602         * Makefile.in: Update dependencies.
9603         Changes from Ulrich Weigand,
9604         * s390-tdep.c: Include "dwarf2-frame.h".
9605         (s390_dwarf2_frame_init_reg): New function.
9606         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9607         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
9608
9609 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9610
9611         * breakpoint.c (pending_break_support): New setting variable.
9612         (break_command_1): Account for pending_break_support setting
9613         when creating pending breakpoints.
9614         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9615         (_initialize_breakpoint): Add "set breakpoint pending" and
9616         "show breakpoint pending" commands.
9617
9618 2004-02-26  Andrew Cagney  <cagney@redhat.com>
9619
9620         Fix PR i18n/1570.
9621         * charset.c (backslashable, backslashed, represented): Remove 'e'
9622         from list of escaped characters, not part of ISO-C.
9623
9624 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9625
9626         From Peter Schauer <schauer@pdf.de>:
9627         * tui/tui.c: Move system header includes after local includes.
9628         Fixes a build failure on solaris systems.
9629
9630 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9631
9632         * configure.in: Refine the previous change.
9633         * configure: Regenerate.
9634
9635 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
9636
9637         * amd64-tdep.h: Renamed from x86-64-tdep.h.
9638         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
9639         "amd64-tdep.h" instead of "x86-64-tdep.h".
9640         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9641         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9642         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
9643         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9644         and "x86-64-tdep.c".
9645         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
9646         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9647         and "x86-64-tdep.c".
9648         * amd64bsd-nat.c: Update copyright year.
9649         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9650         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9651         "x86-64-tdep.h".
9652         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9653         "x86-64-tdep.h".
9654         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9655         "x86-64-tdep.h".
9656         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9657         "x86-64-tdep.h".
9658         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9659         "x86-64-tdep.h".
9660         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9661         "x86-64-tdep.h".
9662         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9663         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9664         * Makefile.in (amd64_linux_tdep_h): Renamed from
9665         x86_64_linux_tdep_h.
9666         (amd64_tdep_h): Renamed from x86_64_tdep_h.
9667         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9668         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9669         (amd64obsd-tdep.o): Update dependencies.
9670         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9671         dependencies.
9672         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9673         dependencies.
9674         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9675         amd64-linux-nat.c amd64-linux-tdep.c.
9676         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9677         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9678         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9679         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9680         amd64-tdep.o and amd64-linux-tdep.o.
9681         (TM_FILE): Set to tm-linux64.h.
9682         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9683         (NAT_FILE): Set to nm-linux64.h.
9684         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9685         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9686         amd64-tdep.o.
9687         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9688         amd64-tdep.o.
9689         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9690         amd64-tdep.o.
9691
9692 2004-02-25  Roland McGrath  <roland@redhat.com>
9693
9694         * remote.c (remote_protocol_qPart_auxv): New variable.
9695         (init_all_packet_configs): Initialize it.
9696         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9697         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9698         (show_remote_cmd): Call it.
9699         (_initialize_remote): Initialize commands.
9700         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9701         service TARGET_OBJECT_AUXV requests.
9702
9703 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9704
9705         * configure.in: Make sure that the wborder function is available.
9706         Otherwise, search for it in the cur_colr library.
9707         * configure: Regenerate.
9708
9709 2004-02-25  Andrew Cagney  <cagney@redhat.com>
9710
9711         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9712
9713 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
9714
9715         * config/i386/tm-x86-64linux.h: Tweak comments.
9716
9717 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
9718
9719         * MAINTAINERS: Add self to write-after-approval list.
9720
9721 2004-02-25  Andrew Cagney  <cagney@redhat.com>
9722
9723         PR cli/1566.  Problem found, and fix suggested by David Allan.
9724         * cli/cli-script.c (execute_control_command): Unconditionally
9725         install a cleanup.  Default "ret" to "invalid_control".  Use
9726         "break" instead of "return" to escape from the switch.
9727
9728 2004-02-24  J. Brobecker  <brobecker@gnat.com>
9729
9730         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9731         with the lines macro defined in term.h on AiX.
9732         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9733         a collision with the label_width macro defined in term.h on AiX.
9734
9735 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
9736
9737         Committed by Kevin Buettner <kevinb@redhat.com>.
9738
9739         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9740         * ia64-tdep.c (ia64_write_pc): Make it a global function.
9741         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9742         instead of ia64_write_pc().
9743         * ia64-linux-tdep.c (regcache.h): Include.
9744         (ia64_linux_write_pc): New function.
9745
9746 2004-02-23  Roland McGrath  <roland@redhat.com>
9747
9748         * auxv.c (info_auxv_command): Fix typos in error messages.
9749
9750 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
9751
9752         * x86-64-tdep.h: Tweak comment.
9753         (enum amd64_regnum): New.
9754         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9755         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9756         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9757         (X86_64_XMM1_REGNUM): Removed.
9758         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9759         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9760         prototypes for renamed functions.
9761         * x86-64-tdep.c: Fix typo.
9762         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9763         register numbers.
9764         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9765         Use constants from `enum amd64_regnum' for register numbers.
9766         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9767         (amd64_analyze_prologue, amd64_frame_cache,
9768         amd64_sigtramp_frame_cache): Use constants from `enum
9769         amd64_regnum' for register numbers.
9770         (amd64_supply_fpregset): Adjust for renamed functions.
9771         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
9772         `enum amd64_regnum' for register numbers.
9773         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9774         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9775         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9776         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9777         (amd64_linux_fill_gregset): Adjust for renamed macros.
9778         (fetch_core_registers): Adjust for renamed functions.
9779         (amd64_linux_init_abi): Adjust for renamed functions.
9780         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9781         renamed functions.
9782         * amd64-nat.c: Adjust for renamed macros.
9783         * amd64bsd-nat.c (fetch_inferior_registers)
9784         (store_inferior_registers): Use constants from `enum amd64_regnum'
9785         for register numbers.  Adjust for renamed variables.
9786         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9787         renamed variables.
9788         (_initialize_amd64fbsd_nat): Use constants from `enum
9789         amd64_regnum' for register numbers.
9790         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9791         `enum amd64_regnum' for register numbers.
9792         (amd64fbsd_init_abi): Adjust for renamed functions.
9793         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9794         `enum amd64_regnum' for register numbers.
9795         (amd64nbsd_init_abi): Adjust for renamed functions.
9796         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9797         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9798         `enum amd64_regnum' for register numbers.
9799         (amd64obsd_init_abi): Adjust for renamed functions.
9800         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9801
9802 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9803
9804         * breakpoint.c (print_one_breakpoint): Do not output spaces
9805         after printing <PENDING> for a pending breakpoint.
9806
9807 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9808
9809         * printcmd.c (print_scalar_formatted): Initialize val_long
9810         to remove compiler warning message.
9811
9812 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9813
9814         * defs.h (nquery, yquery): New prototypes.
9815         * breakpoint.c (break_command_1): Use new nquery interface.
9816         * utils.c (defaulted_query, nquery, yquery): New functions.
9817
9818 2004-02-23  Andrew Cagney  <cagney@redhat.com>
9819
9820         * hppa-tdep.c (hppa_frame_align): New function.
9821         (hppa32_push_dummy_call): New function.
9822         (hppa64_push_dummy_call): New function.
9823         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9824         disabled.
9825
9826         * infcall.c (legacy_push_dummy_code): Don't call deprecated
9827         FIX_CALL_DUMMY when push_dummy_call is available.
9828         (call_function_by_hand, push_dummy_code): Ditto.
9829
9830 2004-02-22  Andrew Cagney  <cagney@redhat.com>
9831
9832         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9833         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9834         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9835         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9836         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9837         call_dummy_location to ON_STACK.
9838
9839 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
9840
9841         * x86-64-linux-tdep.c: Tweak comment.
9842         (amd64_linux_supply_gregset): Renamed from
9843         x86_64_linux_supply_gresget.
9844         (amd64_linux_fill_gregset): Renamed from
9845         x86_64_linux_fill_gregset.
9846         (fetch_core_registers): Adjust for renamed functions.
9847         (amd64_core_fns): Renamed from x86_64_core_fns.
9848         (amd64_linux_sigtramp_start): Renamed from
9849         x86_64_linux_sigtramp_start.
9850         (amd64_linux_pc_in_sigtramp): Renamed from
9851         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
9852         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9853         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9854         (amd64_linux_sigcontext_addr): Renamed from
9855         x86_64_linux_sigcontext_addr.
9856         (amd64_linux_sc_reg_offset): Renamed from
9857         x86_64_linux_sc_reg_offset.
9858         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9859         Adjust for renamed functions and variables.
9860         (_initialize_amd64_linux_tdep): Renamed from
9861         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
9862         variables.
9863         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
9864         Adjust for renamed functions.
9865
9866         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9867         from x86_64_linux_gregset64_reg_offset.
9868         (amd64_linux_gregset32_reg_offset): Rename from
9869         x86_64_linux_gregset64_reg_offset.
9870         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9871         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9872         (amd64_linux_dr_set_control): Renamed from
9873         x86_64_linux_dr_set_control.  Adjust for renamed functions.
9874         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9875         Adjust for renamed functions.
9876         (amd64_linux_dr_reset_addr): Renamed from
9877         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9878         (amd64_linux_dr_get_status): Renamed from
9879         x86_64_linux_dr_get_status.  Adjust for renamed functions.
9880         (_initialize_amd64_linux_nat): Renamed from
9881         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
9882         functions.
9883         * config/i386/nm-x86-64linux.h: Update copyright year.
9884         Adjust for renamed functions.
9885
9886         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9887         amd64fbsd_sigtramp_start.
9888         (amd64fbsd_sigtramp_end_addr): Renamed from
9889         amd64fbsd_sigtramp_end.
9890         (amd64fbsd_init_abi): Adjust for renamed variables.
9891         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9892         variables.
9893         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9894         amd64fbsd_sigtramp_start.
9895         (amd64fbsd_sigtramp_end_addr): Renamed from
9896         amd64fbsd_sigtramp_end.
9897
9898 2004-02-22  Andrew Cagney  <cagney@redhat.com>
9899
9900         * hppa-tdep.c (hppa32_return_value): New function.
9901         (hppa64_return_value): New function.
9902         (hppa_gdbarch_init): Set return_value; keep disabled.
9903
9904         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9905         struct-return and inferior function call methods.
9906
9907         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9908         "frame-base.h".
9909         (struct hppa_frame_cache): Define.
9910         (hppa_frame_cache, hppa_frame_this_id): New functions.
9911         (hppa_frame_prev_register): New function.
9912         (hppa_frame_unwind, hppa_frame_base): New variables.
9913         (hppa_frame_unwind_sniffer): New function.
9914         (hppa_frame_base_address, hppa_unwind_pc): New function.
9915         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9916         sniffer, and frame base sniffer; keep disabled.
9917         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9918         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9919
9920         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9921         to predicates for "seriously old code".
9922
9923         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9924         runtime if(0).
9925
9926         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9927         unsigned.
9928         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9929
9930         * config/pa/tm-hppa.h: Update copyright.
9931         (DEPRECATED_INIT_FRAME_PC): Delete macro.
9932         (deprecated_init_frame_pc_default): Delete declaration.
9933         (hppa_frame_init_saved_regs): Delete declaration.
9934         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9935         * hppa-tdep.c: Include "arch-utils.h".
9936         (hppa_gdbarch_init): Set deprecated init_frame_pc
9937         and deprecated frame_init_saved_regs.
9938         (hppa_frame_init_saved_regs): Make static.
9939
9940 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
9941
9942         Remove old 386BSD support.
9943         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9944         * configure.host: Remove i[34567]86-*-bsd*.
9945         * configure.tgt: Remove i[34567]86-*-bsd*.
9946         * i386b-nat.c: Removed.
9947         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9948         (i386b-nat.o): Remove dependencies.
9949
9950         * config/i386/i386bsd.mh: Removed.
9951         * config/i386/i386bsd.mt: Removed.
9952         * config/i386/nm-i386bsd.h: Removed.
9953         * config/i386/tm-i386bsd.h: Removed.
9954         * config/i386/xm-i386bsd.h: Removed.
9955
9956         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9957
9958         * amd64fbsd-tdep.c: Include "solib-svr4.h".
9959         (amd64fbsd_init_abi): Set link map offsets.
9960         * amd64nbsd-tdep.c: Include "slib-svr4.h".
9961         (amd64nbsd_init_abi): Set link map offsets.
9962         * amd64obsd-tdep.c: Include "solib-svr4.h".
9963         (amd64obsd_init_abi): Set link map offsets.
9964         * i386fbsd-tdep.c: Include "solib-svr4.h".
9965         (i386fbsd_init_abi): Set link map offsets.
9966         * i386nbsd-tdep.c: Include "solib-svr4.h".
9967         (i386nbsdelf_init_abi): Set link map offsets.
9968         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9969         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9970         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9971         solib-legacy.o and core-aout.o. Reformat.
9972         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9973         solib-svr4.o, solib-legacy.o.  Reformat.
9974         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
9975         * config/i386/nbsdelf.mh: Reformat.
9976         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9977         solib-svr4.o, solib-legacy.o and corelow.o.
9978         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9979         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9980         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
9981         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9982         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9983         (TM_FILE): Set to tm-fbsd.h.
9984         * config/i386/nbsd.mt (TDEPFILES): Reformat.
9985         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9986         solib-svr4.o.
9987         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9988         solib-svr4.o.
9989         (TM_FILE): Set to nm-nbsd.h.
9990         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
9991         Simplify shared library support.  Don't include "elf/common.h".
9992         (SVR4_SHARED_LIBS): Don't define.
9993         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
9994         "solib.h".
9995         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9996         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
9997         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
9998         Don't include "i386/tm-i386.h".  Include "solib.h".
9999         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
10000         Don't include "i386/tm-i386.h".
10001         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
10002         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
10003         Include "i386/xm-i386.h".
10004         (HOST_LONG_DOUBLE_FORMAT): Remove.
10005
10006         Fix OpenBSD/i386 sigtramp recognition.
10007         * i386-tdep.h: Update copyright year.
10008         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10009         (i386bsd_sigtramp_end): New prototypes.
10010         (i386fbsd_sigtramp_start_addr): Renamed from
10011         i386fbsd_sigtramp_start.
10012         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10013         (i386obsd_sigtramp_start_addr): Renamed from
10014         i386obsd_sigtramp_start.
10015         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10016         * i386bsd-tdep.c: Update copyright year.
10017         (i386bsd_pc_in_sigtramp): Make public.
10018         * i386fbsd-nat.c: Update copyright year.
10019         (_initialize_i386fbsd_nat): Adjust for renamed variables.
10020         * i386fbsd-tdep.c: Update copyright year.
10021         (i386fbsd_sigtramp_start_addr): Renamed from
10022         i386fbsd_sigtramp_start.
10023         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10024         (i386fbsdaout_init_abi): Adjust for renamed variables.
10025         * i386obsd-nat.c: Update copyright year.
10026         (_initialize_i386obsd_nat): Adjust for renamed variables.
10027         * i386obsd-tdep.c: Include "target.h".
10028         (i386obsd_page_size): New variable.
10029         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10030         (i386obsd_sigtramp_end): New functions.
10031         (i386obsd_sigtramp_start_addr): Renamed from
10032         i386obsd_sigtramp_start.
10033         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10034         (i386obsd_init_abi): Adjust for renamed variables.  Set
10035         pc_in_sigtramp, sigtramp_start and sigtramp_end.
10036         * Makefile.in (i386obsd-tdep.o): Update dependencies.
10037
10038         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10039         trampoline change in OpenBSD kernel.
10040
10041         * amd64-nat.c: Update copyright year.
10042         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10043         architecture from REGCACHE.
10044
10045         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10046         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10047
10048 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
10049
10050         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10051         i[34567]86-*-openbsd3.[0-3].
10052         * config/i386/obsdaout.mh: New file.
10053
10054         * config/i386/obsd.mh (MH_FLAGS): Remove.
10055
10056         Fix PR build/1549.
10057         * i386obsd-tdep.c: Update copyright years.  Include
10058         "solib-svr4.h".
10059         (i386obsd_init_abi): Don't set regset_from_core_section here.
10060         (i386obsd_aout_init_abi): New function.  Set
10061         regset_from_core_section here.
10062         (i386obsd_elf_init_abi): New function.
10063         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10064         * Makefile.in (i386obsd-tdep.o): Update dependecies.
10065         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10066         (TM_FILE): Set to tm-nbsd.h.
10067
10068         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10069         solib-sunos.o.
10070
10071         * solib-svr4.h: Update copyright year.
10072         (svr4_ilp32_fetch_link_map_offsets)
10073         (svr4_lp64_fetch_link_map_offsets): New prototype.
10074         * solib-svr4.c: Update copyright year.
10075         (svr4_ilp32_fetch_link_map_offsets)
10076         (svr4_lp64_fetch_link_map_offsets): New function.
10077
10078 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
10079
10080         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10081         to the partial symbol table.
10082
10083 2004-02-20  J. brobecker  <brobecker@gnat.com>
10084
10085         * PROBLEMS: Add description of problem documented under gdb/1560.
10086
10087 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
10088
10089         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
10090         comments.
10091         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10092         functions.
10093         (amd64obsd_init_abi): Reorder initializations.  Use
10094         amd64obsd_r_reg_offset to initialize the general-purpose register
10095         set details.  Set regset_from_core_section.
10096         (_initialize_amd64obsd_tdep): Rename from
10097         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
10098         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10099         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10100
10101         * NEWS (New native configurations): Mention OpenBSD/alpha.
10102         * configure.tgt: Add alpha*-*-openbsd*.
10103         * configure.host: Add alpha*-*-openbsd*.
10104         * alphanbsd-tdep.c: Update copyright year.
10105         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10106
10107 2004-02-20  Andrew Cagney  <cagney@redhat.com>
10108
10109         Fix PR tdep/1372.
10110         * configure.tgt: Delete target "none-*-*".
10111         * configure.host: Delete host "none-*-*".
10112         * config/none/none.mh: Delete file.
10113         * config/none/none.mt: Delete file.
10114         * config/none/xm-none.h: Delete file.
10115         * config/none/tm-none.h: Delete file.
10116         * config/none/nm-none.h: Delete file.
10117
10118 2004-02-19  Fred Fish  <fnf@redhat.com>
10119
10120         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10121         cache->uses_fp prior to setting it.
10122
10123 2004-02-19  Fred Fish  <fnf@redhat.com>
10124
10125         Fix for PR breakpoint/1558.
10126         * sh-tdep.c (IS_JSR): New macro.
10127         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10128
10129 2004-02-19  Jim Blandy  <jimb@redhat.com>
10130
10131         * findvar.c (value_from_register): Doc fix.
10132
10133 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10134
10135         * printcmd.c (print_scalar_formatted): Do not check for sizeof
10136         type being greater than sizeof of host's LONGEST.  Always use
10137         unpack_long() unless format 'f' chosen.
10138
10139 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
10140
10141         Committed by Elena Zannoni  <ezannoni@redhat.com>
10142
10143         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10144         contains a symbol wich is the best, non-exact match for the given
10145         pc.  Update comments.
10146
10147 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
10148
10149         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10150         macro, which was part of the now removed Mach 3 port.
10151         * utils.c (request_quit): Ditto.
10152
10153 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10154
10155         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10156         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10157
10158 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10159
10160         Committed by Mark Kettenis  <kettenis@gnu.org>.
10161
10162         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10163         Define.
10164
10165 2004-02-18  Andrew Cagney  <cagney@redhat.com>
10166
10167         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10168         CONFIG_INSTALL and CONFIG_UNINSTALL.
10169         * configure: Re-generate.
10170         * interps.h (INTERP_TUI): Define.
10171         * Makefile.in: Update dependencies.
10172         (TUI): New macro.
10173         (tui-main.o): Specify dependencies.
10174         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10175         * tui/tui-main.c: New file.
10176
10177 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10178
10179         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10180         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10181         dependencies.
10182         * configure.host: Add x86_64-*-openbsd*.
10183         * configure.tgt: Add x86_64-*-openbsd*.
10184         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10185
10186         * tui/tui.c: Don't include <malloc.h>.
10187
10188         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10189         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10190         amd64nbsd-tdep.c.
10191
10192         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10193         static.  Remove extraneous whitespace.
10194         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10195         static.
10196
10197 2004-02-17  Jim Blandy  <jimb@redhat.com>
10198
10199         * findvar.c (value_from_register): Doc fix.
10200
10201 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10202
10203         Committed by Jim Blandy  <jimb@redhat.com>.
10204
10205         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10206         CORE_ADDR as type for selectors.  Correct types for GNU run time
10207         message lookup function to use double indirection.
10208         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10209         * objc-lang.h (lookup_child_selector): Adapt prototype.
10210
10211         * s390-nat.c (SUBOFF): New macro.
10212         (supply_gregset, fill_gregset): Use it to handle debugging
10213         of 32-bit exectuables running under a 64-bit kernel.
10214         * s390-tdep.c: Include "solib-svr4.h".
10215         (s390_svr4_fetch_link_map_offset): New function.
10216         (s390x_svr_fetch_link_map_offset): Likewise.
10217         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10218         * Makefile.in (s390-tdep.o): Update dependencies.
10219
10220         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10221         "frame-unwind.h".
10222         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
10223         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10224         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10225         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10226         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10227         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10228         S390_SIGNAL_FRAMESIZE,
10229         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10230         (struct frame_extra_info): Remove.
10231         (s390_memset_extra_info): Remove.
10232         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10233         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10234         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10235         (is_rse): Renamed to ...
10236         (is_rsy): ... this.  Support long displacements.
10237         (is_rxe): Renamed to ...
10238         (is_rxy): ... this.  Support long displacements.
10239         (compute_x_addr): Support long displacements.
10240         (struct s390_prologue_data): New data type.
10241         (s390_on_stack): Change API to use struct s390_prologue_data.
10242         (s390_store): Reimplement.
10243         (s390_load): New function.
10244         (s390_get_signal_frame_info): Remove.
10245         (s390_get_frame_info): Remove, replace by ...
10246         (s390_analyze_prolog): ... this new function.
10247         (s390_check_function_end): Remove.
10248         (s390_function_start): Remove.
10249         (s390_frameless_function_invokation): Remove.
10250         (s390_is_sigreturn): Remove.
10251         (s390_init_frame_pc_first): Remove.
10252         (s390_init_frame_extra_info): Remove.
10253         (s390_frame_init_saved_regs): Remove.
10254         (s390_frame_saved_pc_nofix): Remove.
10255         (s390_frame_saved_pc): Remove.
10256         (s390_frame_chain): Remove.
10257         (s390_fp_regnum, s390_read_fp): Remove.
10258         (s390_pop_frame_regular, s390_pop_frame): Remove.
10259         (s390_saved_pc_after_call): Remove.
10260         (s390_skip_prologue): Reimplement.
10261         (s390_in_function_epilogue_p): Support long displacements.
10262         (struct s390_unwind_cache): New data structure.
10263         (s390_frame_unwind_cache): New function.
10264         (s390_prologue_frame_unwind_cache): Likewise.
10265         (s390_backchain_frame_unwind_cache): Likewise.
10266         (s390_frame_this_id, s390_frame_prev_register): Likewise.
10267         (s390_frame_unwind): Define.
10268         (s390_frame_sniffer): New function.
10269         (struct s390_pltstub_unwind_cache): New data structure.
10270         (s390_pltstub_frame_unwind_cache): New function.
10271         (s390_pltstub_frame_this_id): Likewise.
10272         (s390_pltstub_frame_prev_register): Likewise.
10273         (s390_pltstub_frame_unwind): Define.
10274         (s390_pltstub_frame_sniffer): New function.
10275         (struct s390_sigtramp_unwind_cache): New data structure.
10276         (s390_sigtramp_frame_unwind_cache): New function.
10277         (s390_sigtramp_frame_this_id): Likewise.
10278         (s390_sigtramp_frame_prev_register): Likewise.
10279         (s390_sigtramp_frame_unwind): Define.
10280         (s390_sigtramp_frame_sniffer): New function.
10281         (s390_frame_base_address, s390_local_base_address): New functions.
10282         (s390_frame_base): Define.
10283         (s390_unwind_pc, s390_unwind_sp): New function.
10284         (s390_push_dummy_call): Use new frame base location.
10285         (s390_unwind_dummy_id): Likewise.
10286         (s390_gdbarch_init): Remove calls to:
10287         set_gdbarch_frameless_function_invocation,
10288         set_gdbarch_deprecated_init_frame_pc,
10289         set_gdbarch_deprecated_frame_chain,
10290         set_gdbarch_deprecated_frame_init_saved_regs,
10291         set_gdbarch_deprecated_pop_frame,
10292         set_gdbarch_deprecated_init_extra_frame_info,
10293         set_gdbarch_deprecated_init_frame_pc_first,
10294         set_gdbarch_deprecated_target_read_fp,
10295         set_gdbarch_deprecated_frame_saved_pc,
10296         set_gdbarch_deprecated_saved_pc_after_call,
10297         set_gdbarch_deprecated_fp_regnum.
10298         Add calls to:
10299         set_gdbarch_in_solib_call_trampoline,
10300         frame_unwind_append_sniffer,
10301         frame_base_set_default,
10302         set_gdbarch_unwind_pc,
10303         set_gdbarch_unwind_sp.
10304         * Makefile.in (s390-tdep.o): Update dependencies.
10305
10306         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10307         (S390_STACK_FRAME_OVERHEAD): Remove.
10308         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10309         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10310         (s390_promote_integer_argument): Remove.
10311         (s390_cannot_extract_struct_value_address): Remove.
10312         (s390_use_struct_convention, s390_store_struct_return): Remove.
10313         (s390_extract_return_value, s390_store_return_value): Remove.
10314         (s390_return_value_convention, s390_return_value): New functions.
10315         (is_float_singleton): Handle typedefs.
10316         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10317         Remove, replace by ...
10318         (s390_function_arg_pass_by_reference, s390_function_arg_float,
10319         s390_function_arg_integer): ... these new functions.
10320         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10321         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10322         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10323         Fill in tdep->abi.
10324         Remove calls to:
10325         set_gdbarch_deprecated_store_struct_return,
10326         set_gdbarch_deprecated_extract_return_value,
10327         set_gdbarch_deprecated_store_return_value,
10328         set_gdbarch_use_struct_convention,
10329         set_gdbarch_extract_struct_value_address,
10330         set_gdbarch_deprecated_pc_in_call_dummy,
10331         set_gdbarch_deprecated_push_arguments,
10332         set_gdbarch_deprecated_save_dummy_frame_tos,
10333         set_gdbarch_deprecated_push_return_address,
10334         set_gdbarch_deprecated_sizeof_call_dummy_words,
10335         set_gdbarch_deprecated_call_dummy_words,
10336         set_gdbarch_deprecated_dummy_write_sp.
10337         Add calls to:
10338         set_gdbarch_push_dummy_call,
10339         set_gdbarch_unwind_dummy_id,
10340         set_gdbarch_return_value.
10341
10342         * config/s390/nm-linux.h: Update comments.
10343         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10344         (STOPPED_BY_WATCHPOINT): Redefine.
10345         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10346         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10347         (s390_stopped_by_watchpoint): Likewise.
10348         (watch_area_cnt): Remove.
10349         * s390-nat.c: Update comments.
10350         (watch_area): Remove typedef.
10351         Global replace watch_area by struct watch_area.
10352         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10353         (s390_stopped_by_watchpoint): Remove pid argument,
10354         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
10355         (s390_fix_watch_points): Remove pid argument,
10356         use s390_inferior_tid.  Recompute area spanned by watchpoints.
10357         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10358         argument.  Reimplement.
10359
10360         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
10361         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10362         (FETCH_INFERIOR_REGISTERS): Define.
10363         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10364         core-regset.o.
10365         * config/s390/s390x.mt: Remove.
10366         * config/s390/tm-s390.h: Remove.
10367         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10368         (TARGET_ELF64): Remove.
10369         (SKIP_TRAMPOLINE_CODE): Do not undefine.
10370         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10371         s390*-*-* case; always set gdb_target to s390.
10372         * regformats/reg-s390.dat: Remove control registers.
10373         * regformats/reg-s390x.dat: Likewise.
10374         * s390-tdep.h: New file.
10375         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10376         Include "inferior.h" and "s390-tdep.h".
10377         Remove private definition of offsetof.
10378         (s390_register_u_addr): Remove.
10379         (regmap_gregset, regmap_fpregset): Define.
10380         (supply_gregset, fill_gregset): Reimplement.
10381         (supply_fpregset, fill_fpregset): Likewise.
10382         (s390_inferior_tid): New function.
10383         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10384         (fetch_inferior_registers, store_inferior_registers): Likewise.
10385         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
10386         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
10387         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10388         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10389         (struct gdbarch_tdep): Define.
10390         (struct s390_register_info): Define.
10391         (s390_register_info): New variable.
10392         (s390_register_name): Reimplement.
10393         (s390_register_type): New function.
10394         (s390_register_raw_size, s390x_register_raw_size): Remove.
10395         (s390_cannot_fetch_register): Remove.
10396         (s390_register_byte): Remove.
10397         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10398         (s390_dwarf_regmap): New variable.
10399         (s390_dwarf_reg_to_regnum): New function.
10400         (s390_stab_reg_to_regnum): Remove.
10401         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10402         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10403         (s390_convert_register_p): Likewise.
10404         (s390_register_to_value, s390_value_to_register): Likewise.
10405         (s390_register_reggroup_p): Likewise.
10406         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10407         s390_gregset, s390x_gregset, s390_fpregset): New variables.
10408         (s390_supply_regset, s390_regset_from_core_section): New functions.
10409         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10410         (S390_FPR_SIZE): Likewise.
10411         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
10412         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10413         (S390_NUM_GPRS): Move here from tm-s390.h.
10414         (S390_NUM_FPRS): Likewise.
10415         (s390_in_function_epilogue_p): New function.
10416         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10417         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10418         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10419         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10420         Replace S390_FP_REGNUM by S390_SP_REGNUM.
10421         Remove calls to:
10422         set_gdbarch_deprecated_max_register_raw_size,
10423         set_gdbarch_deprecated_max_register_virtual_size,
10424         set_gdbarch_deprecated_register_byte,
10425         set_gdbarch_cannot_fetch_register,
10426         set_gdbarch_cannot_store_register,
10427         set_gdbarch_deprecated_register_size,
10428         set_gdbarch_deprecated_register_raw_size,
10429         set_gdbarch_deprecated_register_virtual_size,
10430         set_gdbarch_deprecated_register_virtual_type,
10431         set_gdbarch_deprecated_register_bytes.
10432         Add calls to:
10433         set_gdbarch_num_pseudo_regs,
10434         set_gdbarch_register_type,
10435         set_gdbarch_convert_register_p,
10436         set_gdbarch_register_to_value,
10437         set_gdbarch_value_to_register,
10438         set_gdbarch_register_reggroup_p,
10439         set_gdbarch_regset_from_core_section,
10440         set_gdbarch_pseudo_register_read,
10441         set_gdbarch_pseudo_register_write,
10442         set_gdbarch_in_function_epilogue_p.
10443         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10444         (s390_tdep_h): New variable.
10445
10446 2004-02-17  Jim Blandy  <jimb@redhat.com>
10447
10448         * findvar.c (value_from_register): If the type has no length, just
10449         return an acceptable value --- don't report an internal error.
10450
10451         * stabsread.c (read_type): If we find any type numbers that are
10452         forward references, complain if the references aren't resolved by
10453         the time we're finished reading.
10454         (cleanup_undefined_types): Make error message more appropriate for
10455         a complaint.
10456
10457 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
10458
10459         * Makefile.in (defs_h): Remove dependency on progress_h.
10460         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10461         progress.h.
10462         * main.c (captured_main): Delete use of START_PROGRESS and
10463         END_PROGRESS.
10464
10465 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
10466
10467         * objfiles.c (terminate_minimal_symbol_table): Add back
10468         initialization of MSYMBOL_TYPE.
10469
10470 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
10471
10472         Committed by Andrew Cagney.
10473         * Makefile.in (ia64_tdep_h): New macro.
10474         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10475         (ia64-tdep.o): Likewise.
10476         * ia64-tdep.h: New file.
10477         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
10478         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10479         (ia64_aix_sigcontext_register_address): Likewise.
10480         (ia64_linux_getunwind_table): Delete declaration.
10481         * ia64-linux-tdep.c: Likewise.
10482
10483 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
10484
10485         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10486         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10487         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10488
10489 2004-02-17  Andrew Cagney  <cagney@redhat.com>
10490
10491         * symtab.c (skip_prologue_using_sal): New function.
10492         * symtab.h (skip_prologue_using_sal): Declare.
10493         * frv-tdep.c: Include "symtab.h".
10494         (skip_prologue_using_sal): Delete function.
10495         * mips-tdep.c (skip_prologue_using_sal): Delete function.
10496         * rs6000-tdep.c (refine_prologue_limit): Mention
10497         skip_prologue_using_sal.
10498         * ia64-tdep.c (refine_prologue_limit): Ditto.
10499         * Makefile.in: Update dependencies.
10500
10501 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10502
10503         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10504         START_INFERIOR_TRAPS_EXPECTED.
10505         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10506         START_INFERIOR_TRAPS_EXPECTED.
10507         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10508         Delete macro.
10509         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10510         macro, moved to "nm-osf.h".  Update copyright.
10511         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10512         update copyright.
10513
10514         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10515         and function replacing FRAMELESS_FUNCTION_INVOCATION.
10516         * blockframe.c (legacy_frameless_look_for_prologue): Rename
10517         frameless_look_for_prologue.
10518         * frame.h (legacy_frameless_look_for_prologue): Rename
10519         frameless_look_for_prologue.
10520         * gdbarch.h, gdbarch.c: Re-generate.
10521         * sh64-tdep.c (sh64_gdbarch_init): Update.
10522         * sh-tdep.c (sh_gdbarch_init): Update.
10523         * s390-tdep.c (s390_gdbarch_init): Update.
10524         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10525         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10526         * m68k-tdep.c (m68k_gdbarch_init): Update.
10527         (delta68_frame_args_address): Update.
10528         * m32r-tdep.c (m32r_gdbarch_init): Update.
10529         * hppa-tdep.c (hppa_gdbarch_init): Update.
10530         * h8300-tdep.c (h8300_gdbarch_init): Update.
10531         * frv-tdep.c (frv_gdbarch_init): Update.
10532         (frv_frameless_function_invocation): Update.
10533         * cris-tdep.c (cris_gdbarch_init): Update.
10534         (cris_frameless_function_invocation): Update.
10535         * avr-tdep.c (avr_gdbarch_init): Update.
10536         * arm-tdep.c (arm_gdbarch_init): Update.
10537         * stack.c (frame_info): Update, call predicate.
10538         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10539         * frame.c (legacy_get_prev_frame): Update, call predicate..
10540         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10541         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10542         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10543         invocation.
10544         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10545         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10546         * vax-tdep.c (vax_gdbarch_init): Ditto.
10547
10548         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10549         function.
10550
10551 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
10552
10553         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10554         initializations.
10555
10556 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10557
10558         * tui/tui-windata.c: Include "gdb_string.h".
10559         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10560         * tui/tui-layout.c, tui/tui-command.c: Ditto.
10561         * Makefile.in: Update dependencies.
10562
10563 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
10564
10565         * Makefile.in (infrun.o): Add $(gdb_assert_h).
10566         * infrun.c: Include "gdb_assert.h".
10567         (singlestep_ptid, saved_singlestep_ptid)
10568         (stepping_past_singlestep_breakpoint): New variables.
10569         (resume): Set singlestep_ptid.  Check for singlestep thread
10570         hop.
10571         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10572         (handle_inferior_event): Handle singlestep thread hop.
10573
10574 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10575
10576         * dwarf2-frame.c (dwarf2_frame_ops): New function.
10577         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10578         (dwarf2_frame_init_reg): Ditto.
10579
10580         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
10581         suggested by Joshua Neuheisel
10582
10583         * configure.in: Always check for curses, including pdcurses.
10584         Warn, instead of error, when no curses are found.  Enable TUI when
10585         curses is available.
10586         * configure: Re-generate.
10587
10588 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
10589
10590         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10591         sh_sh4_register_convert_to_virtual.
10592         (sh_register_convert_to_raw): Rename from
10593         sh_sh4_register_convert_to_raw.
10594         (sh_pseudo_register_read): Accomodate above name change.
10595         (sh_pseudo_register_write): Ditto.
10596
10597 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
10598
10599         * sh-tdep.c (sh_generic_register_name): Remove.
10600         (sh_gdbarch_init): Use sh_sh_register_name in default case.
10601
10602 2004-02-15  Andrew Cagney  <cagney@redhat.com>
10603
10604         * configure.in (build_warnings): Add -Wunused-function.
10605         * configure: Re-generate.
10606
10607         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10608         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10609
10610         * procfs.c (procfs_init_inferior): Assume that
10611         START_INFERIOR_TRAPS_EXPECTED is defined.
10612         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10613         * config/ns32k/tm-nbsd.h: Delete file,
10614         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10615
10616         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10617         * config/vax/tm-vax.h: Delete file.
10618
10619         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10620         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10621         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10622         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10623         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10624         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10625         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10626
10627 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
10628
10629         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10630         * dwarf2-frame.c (dwarf2_frame_data): New variable.
10631         (struct dwarf2_frame_ops): New.
10632         (dwarf2_frame_default_init_reg): New function, based on
10633         dwarf2_frame_init_reg.
10634         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10635         (dwarf2_frame_init_reg): Call architecture-specific function.
10636         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10637         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10638         instead of dwarf2_frame_data.
10639         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10640         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10641
10642 2004-02-15  Andrew Cagney  <cagney@redhat.com>
10643
10644         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10645         register_gdbarch_swap.
10646         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10647         * f-lang.c (_initialize_f_language): Update, use
10648         DEPRECATED_REGISTER_GDBARCH_SWAP.
10649         * remote.c (_initialize_remote): Ditto.
10650         * regcache.c (_initialize_regcache): Ditto.
10651         * parse.c (_initialize_parse): Ditto.
10652         * infrun.c (_initialize_infrun): Ditto.
10653         * mi/mi-main.c (_initialize_mi_main): Ditto.
10654         * gdbtypes.c (_initialize_gdbtypes): Ditto.
10655
10656         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10657         poking .cacheable directly.
10658         * symfile.c (symfile_bfd_open): Ditto.
10659
10660         * Makefile.in: Update all dependencies.
10661
10662         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10663         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
10664         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
10665         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10666         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10667
10668 2004-02-14  Andrew Cagney  <cagney@redhat.com>
10669
10670         * arch-utils.c (legacy_convert_register_p): Check
10671         DEPRECATED_REGISTER_CONVERTIBLE_P.
10672         * findvar.c (value_of_register): Ditto.
10673
10674         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10675         * gdbarch.h, gdbarch.c: Re-generate.
10676         * arch-utils.c (deprecated_register_convertible_not): Delete.
10677         * arch-utils.h (deprecated_register_convertible_not): Delete.
10678         * mi/mi-main.c (get_register): Update.  Update copyright.
10679         * infcmd.c (default_print_registers_info): Update.
10680
10681         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10682         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10683         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10684         * gdbarch.h, gdbarch.c: Re-generate.
10685         * frame.c (deprecated_get_next_frame_hack): Delete function.
10686         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10687         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10688         Update.
10689         * infcall.c (call_function_by_hand): Update.
10690
10691 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
10692
10693         * symfile.c (init_entry_point_info, entry_point_address): Move
10694         from here...
10695         * objfiles.c (init_entry_point_info, entry_point_address):..to
10696         here.
10697         * symfile.h (init_entry_point_info, entry_point_address): Remove
10698         prototypes.
10699         * objfiles.h (init_entry_point_info, entry_point_address):Add
10700         prototypes.
10701         * cris-tdep.c: Remove include of symfile.h. Add include of
10702         objfiles.h.
10703         * infcall.c: Ditto.
10704         * mcore-tdep.c: Ditto.
10705         * mn10300-tdep.c: Ditto.
10706         * sh64-tdep.c: Ditto.
10707         * v850-tdep.c: Ditto.
10708         * arm-tdep.c: Remove include of symfile.h.
10709         * blockframe.c: Ditto.
10710         * coffread.c: Ditto.
10711         * dbxread.c: Ditto.
10712         * dwarf2read.c: Ditto.
10713         * dwarfread.c: Ditto.
10714         * frv-tdep.c: Ditto.
10715         * ia64-tdep.c: Ditto.
10716         * mdebugread.c: Ditto.
10717         * mipsread.c: Ditto.
10718         * rs6000-tdep.c: Ditto.
10719         * s390-tdep.c: Ditto.
10720         * sh-tdep.c: Ditto.
10721         * xstormy16-tdep.c: Ditto.
10722         * gdbarch.sh: Remove include of symfile.h.
10723         * gdbarch.c: Regenerate.
10724         * solib-irix.c (enable_break): Use entry_point_address().
10725         Add comment about include file.
10726         * xcoffread.c: Add comment about include file.
10727         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10728         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10729         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10730         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10731         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10732
10733 2004-02-13  Andrew Cagney  <cagney@redhat.com>
10734
10735         * corelow.c (core_xfer_partial): Use "struct bfd_section".
10736         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10737         copyright.
10738         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10739
10740 2004-02-12  Fred Fish  <fnf@redhat.com>
10741
10742         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10743          set_gdbarch_store_return_value.
10744
10745 2004-02-12  Andrew Cagney  <cagney@redhat.com>
10746
10747         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10748         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10749         (interrupt_query): Ditto.
10750         (ofunc): Delete unused variable.
10751         * cris-tdep.c (cris_abi): Delete unused function.
10752         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10753         (cris_get_wide_opcode, cris_get_short_size): Ditto.
10754         (cris_get_asr_quick_shift_steps): Ditto.
10755         (cris_skip_prologue_frameless_p): Ditto.
10756         * arm-tdep.c (arm_push_return_address): Delete unused function.
10757         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10758         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10759         * s390-tdep.c (s390_function_start): Delete unused function.
10760
10761 2004-02-12  Andrew Cagney  <cagney@redhat.com>
10762
10763         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10764         gdbarch.h, gdbarch.c: Re-generate.
10765         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10766         to generic_prologue_frameless_p.
10767         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10768         * arch-utils.c (generic_prologue_frameless_p): Delete function.
10769
10770 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
10771
10772         * mips-linux-tdep.c: Include "frame.h".
10773         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10774         (mips_linux_skip_resolver): New functions.
10775         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10776         and set_gdbarch_in_solib_call_trampoline.
10777         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10778         to after set_gdbarch_in_solib_return_trampoline.  Only set the
10779         solib hooks to mips16 functions if the OS ABI is unknown.
10780         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10781         including "config/tm-linux.h".
10782         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10783         * Makefile.in (mips-linux-tdep.o): Update.
10784
10785 2004-02-11  David Carlton  <carlton@kealia.com>
10786
10787         * linespec.c (decode_compound): Only look for a class symbol when
10788         considering all but the rightmost component.
10789
10790 2004-02-11  Andrew Cagney  <cagney@redhat.com>
10791
10792         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10793         abi code are are separatly grouped.
10794
10795 2004-02-11  Andrew Cagney  <cagney@redhat.com>
10796
10797         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10798         * gdbarch.h, gdbarch.c: Re-generate.
10799         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10800         * v850-tdep.c (v850_gdbarch_init): Update.
10801         * sh64-tdep.c (sh64_gdbarch_init): Update.
10802         * sh-tdep.c (sh_gdbarch_init): Update.
10803         * s390-tdep.c (s390_gdbarch_init): Update.
10804         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10805         * mips-tdep.c (mips_gdbarch_init): Update.
10806         * mcore-tdep.c (mcore_gdbarch_init): Update.
10807         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10808         * m32r-tdep.c (m32r_gdbarch_init): Update.
10809         * ia64-tdep.c (ia64_gdbarch_init): Update.
10810         * hppa-tdep.c (hppa_gdbarch_init): Update.
10811         * h8300-tdep.c (h8300_gdbarch_init): Update.
10812         * frv-tdep.c (frv_gdbarch_init): Update.
10813         * d10v-tdep.c (d10v_gdbarch_init): Update.
10814         * cris-tdep.c (cris_gdbarch_init): Update.
10815         * avr-tdep.c (avr_gdbarch_init): Update.
10816         * arm-tdep.c (arm_gdbarch_init): Update.
10817         * alpha-tdep.c (alpha_gdbarch_init): Update.
10818
10819 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
10820
10821         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10822         comma.
10823         (sh_sh4al_dsp_register_name): Ditto.
10824
10825 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10826
10827         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10828         (mips_init_frame_pc_first): Delete function.
10829         (mips_frame_saved_pc): Delete function.
10830         (mips_frame_chain): Delete function.
10831         (mips_init_extra_frame_info): Delete function.
10832         (mips_xfer_register): Delete unused variable "reg".
10833         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10834         (mips_n32n64_return_value): Delete unused variable "reg".
10835         (mips_n32n64_return_value): Delete unused variable "pos".
10836         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10837         (mips_o32_return_value): Delete unused variable "pos".
10838         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10839         (mips_print_fp_register): Delete unused variable "namelen"
10840         (mips_print_fp_register): Delete unused variable "flt2"
10841         (get_frame_pointer): Delete function.
10842         (cached_proc_desc): Delete static variable.
10843         (mips_pop_frame): Delete function.
10844         (mips_find_saved_regs): Delete function.
10845         (mips_get_saved_register): Delete function.
10846         (mips_saved_pc_after_call): Delete function.
10847         (SIGFRAME_BASE): Delete macro.
10848         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10849         (SIGFRAME_PC_OFF): Delete macro.
10850         (SIGFRAME_REGSAVE_OFF): Delete macro.
10851         (mips_dump_tdep): Do not print deleted macro definitions.
10852
10853 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10854
10855         * Makefile.in (SFILES): Remove explictly listed tui files.
10856         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10857
10858 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
10859
10860         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10861         to use paddr functions to format ia64 addresses and long values.
10862         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10863         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10864         (get_kernel_table, ia64_find_proc_info_x): Ditto.
10865         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10866         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10867
10868 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10869
10870         * defs.h: Do not include "tui.h".
10871         * gdb_curses.h: New file.
10872         * tui/tui-hooks.h: New file.
10873         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10874         (tui_install_hooks, tui_remove_hooks): Delete declarations.
10875         (tui_initialize_io): Delete declaration.
10876         (tui_initialize_readline: Delete redundant declaration.
10877         (struct tui_point): Delete definition.
10878         * tui/tui-data.h (struct tui_point): Define.
10879         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10880         * utils.c: Include "tui/tui.h".
10881         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10882         * printcmd.c [TUI]: Include "tui/tui.h".
10883         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10884         * tui/tui-command.c: Include "gdb_curses.h".
10885         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10886         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10887         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10888         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10889         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10890         * Makefile.in: Update all dependencies.
10891         (tui_hooks_h, gdb_curses_h): Define.
10892         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10893
10894 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
10895
10896         * objfiles.h (struct objfile): Remove unused fields auxf1 and
10897         auxf2. Add comments about some other rarely used fields.
10898
10899 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10900
10901         * Makefile.in (init.c): Fix script removing duplicates. Problem
10902         reported by Peter Schauer.
10903
10904 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
10905
10906         * bcache.c (bcache_xmalloc): Use obstack_init instead of
10907         obstack_specify_allocation.
10908         * objfiles.c (allocate_objfile): Ditto.
10909         * solib-sunos.c (solib_add_common_symbols)
10910         (allocate_rt_common_objfile): Ditto.
10911         * symfile.c (reread_symbols): Ditto.
10912         * gdb_obstack.h: Add comment.
10913
10914 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
10915
10916         * linespec.c (decode_line_1, locate_first_half)
10917         (decode_compound, lookup_prefix_sym): Update comments. Delete old
10918         commented out code.
10919
10920 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
10921
10922         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10923         obstack_free.
10924
10925 2004-02-09  Andrew Cagney  <cagney@redhat.com>
10926
10927         * blockframe.c (find_pc_partial_function): If find_pc_overlay
10928         fails, try find_pc_section.  Fix PR c++/1267.
10929         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10930         instead of find_pc_mapped_section.
10931         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10932         not default to the section containing PC.  Fix PR symtab/1519.
10933
10934 2004-02-09  Andrew Cagney  <cagney@redhat.com>
10935
10936         * Makefile.in (mips-tdep.o): Update dependencies.
10937         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10938         "trad-frame.h".
10939         (mips_unwind_pc): Return the pseudo PC register.
10940         (mips_unwind_dummy_id): New function.
10941         (mips16_fetch_instruction): New function.
10942         (mips32_fetch_instruction): New function.
10943         (struct mips_frame_cache): Define.
10944         (mips_mdebug_frame_cache): New function.
10945         (mips_mdebug_frame_this_id): New function.
10946         (mips_mdebug_frame_prev_register): New function.
10947         (mips_mdebug_frame_unwind): Define.
10948         (mips_mdebug_frame_sniffer): New function.
10949         (mips_mdebug_frame_base_address): New function.
10950         (mips_mdebug_frame_base): Define.
10951         (mips_mdebug_frame_base_sniffer): New function.
10952         (mips_gdbarch_init): Append unwind and base sniffers.  Set
10953         unwind_dummy_id.
10954
10955 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10956
10957         * frame.c: Print both the register number and name.
10958
10959         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
10960         and a sed into a single sed.  Make .c and .o patterns more robust.
10961         (OBS): Delete.
10962         (INIT_FILES): Replace OBS with COMMON_OBS.
10963         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10964
10965 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
10966
10967         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10968         the PT_WCOOKIE request.
10969
10970 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10971
10972         * mips-tdep.c (mips_unwind_pc): New function.
10973         (mips_gdbarch_init): Set mips_unwind_pc.
10974
10975         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10976         (get_frame_id): Allow the UNKNOWN_FRAME.
10977         (frame_register_unwind, get_frame_type): Ditto.
10978
10979         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10980         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
10981         unwind_dummy_id indicates a legacy frame.
10982
10983         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10984         * configure: Re-generate.
10985
10986         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10987         methods.
10988
10989 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10990
10991         * configure.in (CONFIG_ALL): Set to Makefile target, and not
10992         makefile macro.
10993         * configure: Re-generate.
10994         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10995         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10996         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10997         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10998         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10999         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11000         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11001         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11002         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11003         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11004
11005 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11006
11007         * Makefile.in: Update all dependencies.
11008
11009         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11010         * configure: Re-generate.
11011         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11012         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11013         (COMMON_OBS): Add "main.o" and "annotate.o".
11014         (ANNOTATE_OBS): Delete.
11015         (OBS): Remove ANNOTATE_OBS.
11016         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11017         CONFIG_INITS.
11018         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11019         against CONFIG_OBS and "main.o".
11020         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11021         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11022
11023         * tui/tui-command.c: Include "gdb_string.h", delete register
11024         attribute, use ISO-C function signatures.
11025         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11026         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11027         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11028         * tui/tui.c: Ditto.
11029
11030         * tui/tui-command.c: Change variable and function names to lower
11031         case.
11032         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11033         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11034         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11035         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11036         * tui/tui-winsource.c, tui/tui.c: Ditto.
11037
11038 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11039
11040         * buildsym.c (free_pending_blocks, finish_block)
11041         (record_pending_block, make_blockvector, end_symtab): Replace
11042         symbol_obstack with objfile_obstack.
11043         * coffread.c (process_coff_symbol, coff_read_struct_type)
11044         (coff_read_enum_type): Ditto.
11045         * cp-namespace.c (initialize_namespace_symtab)
11046         (check_one_possible_namespace_symbol): Ditto.
11047         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11048         (dwarf2_symbol_mark_computed): Ditto.
11049         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11050         * elfread.c (elf_symtab_read): Ditto.
11051         * hpread.c (hpread_symfile_init, hpread_symfile_init)
11052         (hpread_read_enum_type, hpread_read_function_type)
11053         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11054         Ditto.
11055         * jv-lang.c (get_java_class_symtab, add_class_symbol)
11056         (java_link_class_type): Ditto.
11057         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11058         (new_symbol): Ditto.
11059         * minsyms.c (install_minimal_symbols): Ditto.
11060         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11061         (terminate_minimal_symbol_table): Replace symbol_obstack with
11062         objfile_obstack.
11063         (free_objfile): Remove freeing of symbol_obstack.
11064         * objfiles.h: Remove symbol_obstack field.
11065         * pa64solib.c (add_to_solist): Replace symbol_obstack with
11066         objfile_obstack.
11067         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11068         symbol_obstack.
11069         (solib_add_common_symbols): Replace symbol_obstack with
11070         objfile_obstack.
11071         * somsolib.c (som_solib_add): Ditto.
11072         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11073         (common_block_start, common_block_end): Ditto.
11074         * symfile.c (reread_symbols): Remove freeing and init of
11075         symbol_obstack.
11076         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11077         * symfile.h: Update comment.
11078         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11079         stats printing.
11080         * symtab.c (symbol_set_names): Replace symbol_obstack with
11081         objfile_obstack.
11082         * symtab.h (struct general_symbol_info, struct minimal_symbol):
11083         Update comments.
11084         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11085         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11086         objfile_obstack.
11087
11088 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11089
11090         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11091         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
11092         fields and variables.
11093         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11094         (m_beInvisible): Delete macro.
11095         * tui/tui-data.h: Fix case case fields and variables.
11096         (m_genWinPtrIsNull): Delete macro.
11097         (tui_win_list): Rename winList.
11098         (TUI_SRC_WIN): Rename srcWin.
11099         (TUI_DISASM_WIN): Rename disassemWin.
11100         (TUI_DATA_WIN): Rename dataWin.
11101         (TUI_CMD_WIN): Rename cmdWin.
11102         (m_genWinPtrNotNull): Delete macro.
11103         (m_winPtrIsNull): Delete macro.
11104         (m_winPtrNotNull): Delete macro.
11105         (tui_win_is_source_type): Replace m_winIsSourceType
11106         (tui_win_is_auxillary): Replace m_winIsAuzillary.
11107         (tui_win_has_locator): Replace m_hasLocator.
11108         (tui_set_win_highlight): Replace m_setWinHighlightOn and
11109         m_setWinHighlightOff.
11110         * tui/tui-data.c: Update references.
11111         (tui_win_is_source_type, tui_set_win_highlight): New functions.
11112         (tui_win_has_locator, tui_win_is_auxillary): New functions.
11113         * tui/tui-command.c, tui/tui-disasm.c: Update references.
11114         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11115         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11116         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11117         * tui/tui-winsource.c, tui/tui.c: Ditto.
11118
11119 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11120
11121         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11122         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11123         StackGhost.
11124
11125         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11126         variable `i6' to `i7'.
11127         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11128
11129 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11130
11131         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11132         (TuiPoint, TuiPointPtr): Ditto.
11133         (TuiStatus, TuiStatusPtr): Ditto.
11134         (TuiWinType, TuiWinTypePtr): Ditto.
11135         (struct tui_point): Rename _TuiPoint.
11136         (tui_get_low_disassembly_address): Rename
11137         tuiGetLowDisassemblyAddress.
11138         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11139         (tuiFree): Delete declaration.
11140         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11141         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11142         * tui/tui.c (tuiFree): Delete function.
11143         * cli/cli-cmds.c (disassemble_command): Update references.
11144         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11145         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11146         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11147         * tui/tui-winsource.c: Ditto.
11148
11149 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11150
11151         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11152         coffstab_build_psymtabs, elfstab_build_psymtabs)
11153         (stabsect_build_psymtabs): Replace psymbol_obstack with
11154         objfile_obstack.
11155         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11156         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11157         Ditto.
11158         * dwarfread.c (scan_compilation_units): Ditto.
11159         * elfread.c (elfstab_offset_sections): Ditto.
11160         * hppa-tdep.c (read_unwind_info): Ditto.
11161         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11162         (hpread_end_psymtab): Ditto.
11163         * mdebugread.c (mdebug_build_psymtabs, add_pending)
11164         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11165         Ditto.
11166         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11167         * objfiles.c (add_to_objfile_sections)
11168         (build_objfile_section_table): Ditto.
11169         (allocate_objfile): Remove init of psymbol_obstack.
11170         (free_objfile): Remove freeing of psymbol_obstack.
11171         * objfiles.h (struct objfile): Remove field
11172         psymbol_obstack. Update comments.
11173         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11174         psymbol_obstack with objfile_obstack.
11175         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11176         psymbol_obstack.
11177         * somread.c (som_symfile_offsets, init_import_symbols)
11178         (init_export_symbols): Replace psymbol_obstack with
11179         objfile_obstack.
11180         * somsolib.c (som_solib_add_solib_objfile): Ditto.
11181         * symfile.c (default_symfile_offsets, syms_from_objfile)
11182         (reread_symbols): Remove freeing and init of psymbol_obstack.
11183         (cashier_psymtab): Update comment.
11184         * symmisc.c (print_objfile_statistics): Don't report stats for
11185         psymbol obstack.
11186         * symtab.h (struct general_symbol_info, struct partial_symtab):
11187         Update comments.
11188         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11189         (xcoff_symfile_offsets): Replace psymbol_obstack with
11190         objfile_obstack.
11191
11192 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11193
11194         * objfiles.h (struct objfile): Add objfile_obstack field.
11195         Remove type_obstack field.
11196
11197         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11198         read_structure_scope read_enumeration, new_symbol): Replace
11199         type_obstack with objfile_obstack.
11200         * dwarfread.c (struct_type, enum_type): Ditto.
11201         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11202         (lookup_fundamental_type): Ditto.
11203         * gdbtypes.h (TYPE_ALLOC): Ditto.
11204         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11205         (hpread_read_doc_function_type, hpread_read_struct_type)
11206         (fix_static_member_physnames, hpread_read_array_type)
11207         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11208         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11209         (java_link_class_type): Ditto.
11210         * mdebugread.c (parse_type): Ditto.
11211         * objfiles.c (allocate_objfile, free_objfile): Ditto.
11212         * solib-sunos.c (solib_add_common_symbols): Ditto.
11213         * stabsread.c (define_symbol, read_type, read_member_functions,
11214         read_cpp_abbrev, read_one_struct_field): Ditto.
11215         * symfile.c (reread_symbols): Ditto.
11216         * symmisc.c (print_objfile_statistics): Ditto.
11217
11218 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11219
11220         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11221         (tui_exec_info_content): Rename TuiExecInfoContent.
11222         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11223         (TuiWinInfo, TuiWinInfoPtr): Ditto.
11224         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11225         (TuiList, TuiListPtr): Ditto.
11226         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11227         (TuiDataType, TuiDataTypePtr): Ditto.
11228         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11229         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11230         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11231         (TuiSourceElement, TuiSourceElementPtr): Ditto.
11232         (TuiDataElement, TuiDataElementPtr): Ditto.
11233         (TuiWinElement, TuiWinElementPtr): Ditto.
11234         (TuiDataInfo, TuiDataInfoPtr): Ditto.
11235         (TuiCommandElement, TuiCommandElementPtr): Ditto.
11236         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11237         (TuiWhichElement, TuiWhichElementPtr): Ditto.
11238         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11239         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11240         * tui/tui-command.c, tui/tui-data.c: Update references.
11241         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11242         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11243         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11244         * tui/tui-winsource.c, tui/tui.c: Ditto.
11245
11246 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11247
11248         * dwarf2-frame.h: Update copyright.
11249         (enum dwarf2_frame_reg_rule): New.
11250         (struct dwarf2_frame_state_reg): New.
11251         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11252         * dwarf2-frame.c: Update copyright.
11253         (enum dwarf2_reg_rule): Remove.
11254         (struct dwarf2_frame_state): Remove defenition of `struct
11255         dwarf2_frame_state_reg'.
11256         (read_reg): Call get_frame_arch to get the architecture instead of
11257         using CURRENT_GDBARCH.
11258         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11259         DWARF2_FRAME_.
11260         (dwarf2_frame_init_reg): New function.
11261         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11262         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
11263         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
11264         tags with DWARF2_FRAME_.
11265         (dwarf2_frame_prev_register): Call get_frame_arch to get the
11266         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
11267         dwarf2_reg_rule' tags with DWARF2_FRAME_.
11268
11269 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11270
11271         * tui/tui-data.h (struct tui_list): Rename _TuiList.
11272         (enum tui_data_type): Rename _TuiDataType.
11273         (struct tui_layout_def): Rename _TuiLayoutDef.
11274         (struct tui_source_element): Rename _TuiSourceElement.
11275         (struct tui_data_element): Rename _TuiDataElement.
11276         (struct tui_command_element): Rename _TuiCommandElement.
11277         (struct tui_locator_element): Rename _TuiLocatorElement.
11278         (union tui_which_element): Define.
11279         (struct tui_win_element): Rename _TuiWinElement.
11280         (struct tui_data_info): Rename _TuiDataInfo.
11281         (struct tui_source_info): Rename _TuiSourceInfo.
11282         (struct tui_command_info): Rename _TuiCommandInfo.
11283         (tui_initialize_static_data): Rename initializeStaticData.
11284         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11285         (tui_alloc_win_info): Rename allocWinInfo.
11286         (tui_init_generic_part): Rename initGenericPart.
11287         (tui_init_win_info): Rename initWinInfo.
11288         (tui_alloc_content): Rename allocContent.
11289         (tui_add_content_elements): Rename addContentElements.
11290         (tui_init_content_element): Rename initContentElement.
11291         (tui_free_window): Rename freeWindow.
11292         (tui_free_win_content): Rename freeWinContent.
11293         (tui_free_data_content): Rename freeDataContent.
11294         (tui_free_all_source_wins_content): Rename
11295         freeAllSourceWinsContent.
11296         (tui_del_window): Rename tuiDelWindow.
11297         (tui_del_data_windows): Rename tuiDelDataWindows.
11298         (tui_partial_win_by_name): Rename partialWinByName.
11299         (tui_win_name): Rename winName.
11300         (tui_current_layout): Rename currentLayout.
11301         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11302         (tui_term_height): Rename termHeight.
11303         (tui_set_term_height_to): Rename setTermHeightTo.
11304         (tui_term_width): Rename termWidth.
11305         (tui_set_term_width_to): Rename setTermWidthTo.
11306         (tui_set_gen_win_origin): Rename setGenWinOrigin.
11307         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11308         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11309         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11310         (tui_source_windows): Rename sourceWindows.
11311         (tui_clear_source_windows): Rename clearSourceWindows.
11312         (tui_clear_source_windows_detail): Rename
11313         clearSourceWindowsDetail.
11314         (tui_clear_win_detail): Rename clearWinDetail.
11315         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11316         (tui_default_tab_len): Rename tuiDefaultTabLen.
11317         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11318         (tui_win_with_focus): Rename tuiWinWithFocus.
11319         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11320         (tui_layout_def): Rename tuiLayoutDef.
11321         (tui_win_resized): Rename tuiWinResized.
11322         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11323         (tui_next_win): Rename tuiNextWin.
11324         (tui_prev_win): Rename tuiPrevWin.
11325         (tui_add_to_source_windows): Rename addToSourceWindows.
11326         * tui/tui-winsource.c, tui/tui-win.c: Update references.
11327         * tui/tui-layout.c, tui/tui-source.c: Ditto.
11328         * tui/tui-stack.c, tui/tui-io.c: Ditto.
11329         * tui/tui.c, tui/tui-data.c: Ditto.
11330         * tui/tui-interp.c, tui/tui-data.c: Ditto.
11331         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11332
11333         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
11334         (struct symtab): Declare.
11335         (tui_set_source_content): Rename tuiSetSourceContent.
11336         (tui_show_symtab_source): Rename tuiShowSource.
11337         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11338         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11339         * tui/tui-source.c: Update copyright.  Update references.
11340         * tui/tui-win.c, tui/tui-winsource.c: Update references.
11341         * tui/tui-stack.c: Update references.
11342
11343         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
11344         (struct tui_win_info): Declare.
11345         (tui_scroll_forward): Rename tuiScrollForward.
11346         (tui_scroll_backward): Rename tuiScrollBackward.
11347         (tui_scroll_left): Rename tuiScrollLeft.
11348         (tui_scroll_right): Rename tuiScrollRight.
11349         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11350         (tui_resize_all): Rename tuiResizeAll.
11351         (tui_refresh_all_win): Rename tuiRefreshAll.
11352         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11353         * tui/tui-layout.c, * tui/tui-io.c: Update references.
11354         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11355         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11356
11357         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
11358         (tui_erase_data_content): Rename tuiEraseDataContent.
11359         (tui_display_all_data): Rename tuiDisplayAllData.
11360         (tui_check_data_values): Rename tuiCheckDataValues.
11361         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11362         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11363         (tui_first_data_element_no_in_line): Rename
11364         tuiFirstDataElementNoInLine.
11365         (tui_delete_data_content_windows): Rename
11366         tuiDeleteDataContentWindows.
11367         (tui_refresh_data_win): Rename tuiRefreshDataWin.
11368         (tui_display_data_from): Rename tuiDisplayDataFrom.
11369         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11370         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11371         * tui/tui-win.c, tui/tui-regs.c: Update references.
11372         * tui/tui-layout.c, tui/tui.c: Update references.
11373
11374         * tui/tui-wingeneral.h: Update copyright.
11375         (m_allBeVisible): Delete macro.
11376         (m_allBeInvisible): Delete macro.
11377         (struct tui_gen_win_info): Declare.
11378         (struct tui_win_info): Declare.
11379         (tui_unhighlight_win): Rename unhighlightWin.
11380         (tui_make_visible, tui_make_invisible): Replace makeVisible.
11381         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11382         (tui_make_window): Rename makeWindow.
11383         (tui_copy_win): Rename copyWin.
11384         (tui_box_win): Rename boxWin.
11385         (tui_highlight_win): Rename highlightWin.
11386         (tui_check_and_display_highlight_if_needed): Rename
11387         checkAndDisplayHighlightIfNeeded.
11388         (tui_refresh_all): Rename refreshAll.
11389         (tui_delete_win): Rename tuiDelwin.
11390         (tui_refresh_win): Rename tuiRefreshWin.
11391         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11392         (tui_make_visible, tui_make_invisible): New functions.
11393         (tui_make_all_visible, tui_make_all_invisible): New functions.
11394         (make_all_visible): Rename makeAllVisible.
11395         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11396         * tui/tui-data.c, tui/tui-winsource.c: Update references.
11397         * tui/tui-windata.c, tui/tui-win.c: Update references.
11398         * tui/tui-regs.c, tui/tui-layout.c: Update references.
11399         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11400
11401 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
11402
11403         * proc-api.c (write_with_trace): Initialize local variable to
11404         silence compiler warning.
11405
11406 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11407
11408         * tui/tui-source.h: Do not include "defs.h".
11409         (struct tui_win_info): Declare.
11410         (tui_set_source_content_nil): Declare.
11411         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11412         (union tui_line_or_address): Rename _TuiLineOrAddress.
11413         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
11414         (tui_update_source_window): Rename tuiUpdateSourceWindow.
11415         (tui_update_source_window_as_is): Rename
11416         tuiUpdateSourceWindowAsIs.
11417         (tui_update_source_windows_with_addr): Rename
11418         tuiUpdateSourceWindowsWithAddr.
11419         (tui_update_source_windows_with_line): Rename
11420         tuiUpdateSourceWindowsWithLine.
11421         (tui_clear_source_content): Rename tuiClearSourceContent.
11422         (tui_erase_source_content): Rename tuiEraseSourceContent.
11423         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11424         (tui_show_source_content): Rename tuiShowSourceContent.
11425         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11426         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11427         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11428         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11429         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11430         (tui_update_exec_info): Rename tuiUpdateExecInfo.
11431         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11432         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11433         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11434         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11435         (struct tui_win_info): Declare.
11436         * tui/tui-stack.c: Update references.
11437         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11438         * tui/tui-win.c, tui/tui-source.c: Ditto.
11439         * tui/tui.c, tui/tui-disasm.c: Ditto.
11440
11441 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
11442
11443         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11444         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
11445
11446 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
11447
11448         * infrun.c (handle_inferior_event): Allow for breakpoint
11449         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11450         and SIGEMT.  Update comments.
11451         * NEWS (Revised SPARC target): Mention support for non-executable
11452         stack.
11453
11454 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
11455
11456         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11457         * inftarg.c: Update copyright year.
11458         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11459         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11460         (sparc_xfer_wcookie): New function.
11461         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11462         * Makefile.in (sparc-nat.o): Update dependencies.
11463         * config/sparc/nm-nbsd.h: Include "target.h".
11464         (NATIVE_XFER_WCOOKIE): New define.
11465         (sparc_xfer_wcookie): New prototype.
11466
11467 2004-02-04  Andrew Cagney  <cagney@redhat.com>
11468
11469         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11470         SYSCALL_TRAP function.
11471         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11472
11473 2004-02-04  Andrew Cagney  <cagney@redhat.com>
11474             Daniel Jacobowitz  <drow@mvista.com>
11475
11476         * objfiles.h: Delete comments refering to inside_entry_func and
11477         DEPRECATED_FRAME_CHAIN_VALID.
11478         * defs.h (inside_entry_func): Update prototype..
11479         * blockframe.c (inside_entry_func): Rename to
11480         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
11481         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11482
11483 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
11484
11485         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
11486         outside of #ifdef SOLIB_ADD region.
11487         (do_restore_lang_radix_cleanup): Ditto.
11488         (resolve_pending_breakpoint): Ditto.
11489
11490 2004-02-03  Andrew Cagney  <cagney@redhat.com>
11491
11492         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11493         (process_note_abi_tag_sections): Delete unused function.
11494         (ia64_read_fp): Delete unused function.
11495         (gdbarch_extract_struct_value_address): Delete declaration.
11496
11497 2004-02-02  Andrew Cagney  <cagney@redhat.com>
11498
11499         * vax-tdep.c (vax_frame_chain): Delete call to
11500         deprecated_inside_entry_file.
11501         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11502
11503 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
11504
11505         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11506         column that's "empty" or "same value" when eliminating REG_RA
11507         rules.
11508
11509 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
11510
11511         * NEWS: Add information about new pending breakpoint support.
11512
11513 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
11514
11515         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11516         and pending fields for pending breakpoint support.
11517         * breakpoint.c (breakpoint_enabled): Add check for not pending.
11518         (condition_command): Only parse condition if not a pending
11519         breakpoint.
11520         (print_one_breakpoint): Add support for pending breakpoints.
11521         (describe_other_breakpoints): Add checks to verify we are not
11522         dealing with pending breakpoints.
11523         (check_duplicates): Don't check pending breakpoints.
11524         (set_raw_breakpoint): Initialize pending flag.
11525         (do_restore_lang_radix_cleanup): New cleanup routine.
11526         (resolve_pending_breakpoint): New function.
11527         (re_enable_breakpoints_in_shlibs): Try and resolve any
11528         pending breakpoints via resolve_pending_breakpoint.
11529         (mention): Add pending breakpoint support.
11530         (parse_breakpoint_sals): Add new parameter to pass to
11531         decode_line_1 to indicate silent errors when files or functions
11532         are not found.  Change all callers.
11533         (do_captured_parse_breakpoint): New function.
11534         (break_command_1): Change prototype to return an rc value and to
11535         take an optional pending breakpoint pointer.  Support creating
11536         a pending breakpoint if a "not found" form of error occurs when
11537         parsing the breakpoint.  Also support resolving an existing pending
11538         breakpoint and be silent if the resolution fails.
11539         (create_breakpoints): Change prototype to take pending breakpoint
11540         pointer.  When resolving a pending breakpoint, use the new pointer
11541         to provide a conditional or commands added by the end-user.
11542         (delete_breakpoint): Add appropriate check for pending.
11543         (breakpoint_re_set_one): Ditto.
11544         (do_enable_breakpoint): Ditto.
11545
11546 2004-02-02  David Carlton  <carlton@kealia.com>
11547
11548         * valops.c (enum oload_classification): New.
11549         (find_overload_match): Break implementation into separate
11550         functions; delete #if 0'd code; look for symbols within
11551         namespaces.
11552         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11553         (find_oload_champ,oload_method_static,classify_oload_match): New.
11554         * cp-support.h: Add declaration for cp_func_name; update
11555         declaration for make_symbol_overload_list.
11556         * cp-support.c (cp_func_name): New.
11557         (overload_list_add_symbol): Fix comment, use
11558         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11559         (make_symbol_overload_list): Take a function name and a namespace
11560         instead of a symbol; change implementation.
11561         (make_symbol_overload_list_using): New.
11562         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11563
11564 2004-02-02  Fred Fish  <fnf@redhat.com>
11565
11566         * main.c (gdb_stdtarg): Move definition to group with other
11567         gdb_stdtarg definitions and update copyright years.
11568         * remote-sim.c (gdb_os_write_stderr): Write output to
11569         gdb_stdtargerr stream instead of gdb_stdtarg stream.
11570         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11571         gdb_stderr stream and update copyright years.
11572
11573 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11574
11575         * Makefile.in (mips-linux-nat.o): Update dependencies.
11576         * mips-linux-nat.c: Include mips-tdep.h.
11577
11578 2004-02-01  Roland McGrath  <roland@redhat.com>
11579
11580         * sol-thread.c (sol_thread_xfer_partial): New function.
11581         (init_sol_thread_ops): Use that for to_xfer_partial hook.
11582         (init_sol_core_ops): Likewise.
11583
11584         * procfs.c (procfs_xfer_partial): New function.
11585         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11586         * Makefile.in (procfs.o): Add $(auxv_h) dep.
11587
11588         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11589         procfs_xfer_auxv function.
11590
11591         * procfs.c (procfs_make_note_section): If we can read
11592         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11593         * linux-proc.c (linux_make_note_section): Likewise.
11594
11595         * auxv.h: New file.
11596         * auxv.c: New file.
11597         * Makefile.in (auxv_h): New variable.
11598         (COMMON_OBS): Add auxv.o here.
11599         (auxv.o): New target.
11600
11601         * corelow.c (core_xfer_partial): New function.
11602         (init_core_ops): Use it for core_ops.to_xfer_partial.
11603
11604         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11605         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11606         macro if that is defined.
11607
11608 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11609
11610         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11611         and check the specified thread for each breakpoint.
11612         * breakpoint.h (bpstat_stop_status): Update prototype.
11613         * infrun.c (handle_inferior_event): Update calls to
11614         bpstat_stop_status.
11615
11616 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11617
11618         * Makefile.in (cli-cmds.o): Add $(readline_h).
11619
11620 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11621
11622         * cli/cli-cmds.c: Include readline.h.
11623         (complete_command): Pass the start of the last word to
11624         complete_line.
11625
11626 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11627
11628         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11629         argument, and change first argument to a CORE_ADDR.
11630         * breakpoint.h (bpstat_stop_status): Update prototype.
11631         * infrun.c (adjust_pc_after_break): Add a new comment.
11632         (handle_inferior_event): Update calls to bpstat_stop_status.
11633
11634 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11635
11636         * breakpoint.h: Update copyright years.
11637
11638 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11639
11640         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11641         (bpstat_stop_status): Don't decrement PC.
11642         * breakpoint.h (software_breakpoint_inserted_here_p): Add
11643         prototype.
11644         * infrun.c (adjust_pc_after_break): New function.
11645         (handle_inferior_event): Call it, early.  Remove later references
11646         to DECR_PC_AFTER_BREAK.
11647         (normal_stop): Add commentary.
11648
11649 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11650
11651         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11652         2004-01-27 double-free fix.
11653
11654 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
11655
11656         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11657         (sparc32_frame_prev_register): Handle StackGhost.
11658         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11659
11660 2004-01-29  Roland McGrath  <roland@redhat.com>
11661
11662         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11663         * configure: Regenerated.
11664
11665         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11666         * Makefile.in (procfs.o): Add dep.
11667
11668 2004-01-28  Andrew Cagney  <cagney@redhat.com>
11669
11670         * tui/tui-stack.h: Update copyright.
11671         (struct frame_info): Add opaque declaration.
11672         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11673         (tui_show_locator_content): Rename tuiShowLocatorContent.
11674         (tui_show_frame_info): Rename tuiShowFrameInfo.
11675         * tui/tui-stack.c: Update copyright.  Update references.
11676         * tui/tui-winsource.c: Update references.
11677         * tui/tui-win.c: Update references.
11678         * tui/tui-layout.c: Update references.
11679         * tui/tui-hooks.c: Update copyright, update references.
11680         * tui/tui.c: Update copyright, update references.
11681         * tui/tui-disasm.c: Update references.
11682
11683 2004-01-28  David Carlton  <carlton@kealia.com>
11684
11685         * dwarf2read.c (add_partial_structure): Use demangled name if
11686         namespace equals "".
11687
11688 2004-01-27  Jim Blandy  <jimb@redhat.com>
11689
11690         Clean up misapplied patch:
11691         * dwarf2read.c (determine_prefix): Change one of the two forward
11692         declarations for 'determine_prefix_aux' to a declaration for this.
11693         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
11694         argument to 'die_specification'.
11695
11696         * dwarf2read.c (read_func_scope): Re-indent comment.
11697
11698 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
11699
11700         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11701         b->exp to NULL after freeing so that error during re-parsing or
11702         evaluation of expressions associated with breakpoint don't
11703         eventually lead to re-freeing of storage.
11704         Committed by Andrew Cagney.
11705
11706 2004-01-27  Andrew Cagney  <cagney@redhat.com>
11707
11708         * source.c (ambiguous_line_spec): Delete undefined declaration.
11709         * m32r-rom.c (m32r_set_board_address): Delete unused function.
11710         (m32r_set_server_address, m32r_set_download_path): Ditto.
11711         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11712
11713 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
11714
11715         * dwarf2read.c: Update calls to changed and renamed functions, and
11716         references to moved variables.
11717
11718         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11719         language, language_defn, list_in_scope, and ftypes members.
11720         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11721         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11722         (baseaddr): Remove globals.
11723
11724         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
11725         (set_cu_language, die_is_declaration, die_specification)
11726         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11727         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11728         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11729         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11730
11731         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
11732         cu.list_in_scope.  Don't initialize cu_header_offset.
11733         (add_partial_symbol): Add local baseaddr.
11734         (psymtab_to_symtab_1): Add local baseaddr.  Use
11735         objfile->section_offsets for consistency.  Don't initialize
11736         cu_header_offset; do initialize cu.header.offset and
11737         cu.list_in_scope.
11738         (read_file_scope, read_func_scope, read_lexical_block_scope)
11739         (dwarf_decode_lines, new_symbol): Add local baseaddr.
11740
11741 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
11742
11743         * PROBLEMS: Add gdb/1516.
11744
11745 2003-12-29  Robert Millan  <robertmh@gnu.org>
11746
11747         Patch committed by Andrw Cagney.
11748         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11749         * configure.tgt: Match knetbsd*-gnu.
11750
11751 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11752
11753         * breakpoint.c (catch_command_1): Delete #ifdef code.
11754         (catch_fork_command_1): Delete #ifdef wrapper.
11755         (catch_exec_command_1): Ditto.
11756         (catch_load_command_1): Ditto.
11757         (catch_unload_command_1): Ditto.
11758
11759         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11760         (catch_breakpoint): Delete #if0ed function.
11761         (disable_catch_breakpoint): Ditto.
11762         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11763         (disable_catch, enable_catch, delete_catch): Ditto.
11764
11765 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11766
11767         * remote.c (echo_check, quit_flag): Delete variables.
11768         (cisco_kernel_mode): Delete variable.
11769         (minitelnet_return, tty_input, escape_count): Delete variables.
11770         (remote_cisco_mode): Delete variable.
11771         (remote_cisco_open, remote_cisco_close): Delete function.
11772         (remote_cisco_mourn, remote_cisco_wait): Delete function.
11773         (init_remote_cisco_ops): Delete function.
11774         (_initialize_remote): Do not install "remote cisco" code.
11775         (read_frame): Delete cisco specific code.
11776         (remote_info_process): Delete function.
11777         (remote_wait): Delete cisco specific code.
11778         (remote_cisco_section_offsets): Delete function.
11779         (remote_cisco_objfile_relocate): Delete function.
11780         (remote_async_wait): Delete cisco specific code.
11781         (minitelnet, readtty, readsocket): Delete function.
11782
11783 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11784
11785         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
11786         comments mentioning extract_returned_value_address.
11787         * infcmd.c (print_return_value): Update.  Add comments on
11788         extract_returned_value_address.
11789         * stack.c (return_command): Add comments on
11790         extract_returned_value_address.
11791         * values.c: Update comment.
11792         * m32r-tdep.c: Update comment.
11793         * sparc-tdep.c: Update comment.
11794         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11795         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11796         * sh64-tdep.c (sh64_gdbarch_init): Update.
11797         * sh-tdep.c (sh_gdbarch_init): Update.
11798         * s390-tdep.c (s390_gdbarch_init): Update.
11799         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11800         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11801         * m68k-tdep.c (m68k_gdbarch_init): Update.
11802         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11803         * m32r-tdep.c (m32r_gdbarch_init): Update.
11804         * ia64-tdep.c (ia64_gdbarch_init): Update.
11805         * h8300-tdep.c (h8300_gdbarch_init): Update.
11806         * frv-tdep.c (frv_gdbarch_init): Update.
11807         * arm-tdep.c (arm_gdbarch_init): Update.
11808         * alpha-tdep.c (alpha_gdbarch_init): Update.
11809
11810 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11811
11812         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11813         SYMBOL_LOCATION_FUNCS
11814         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11815         "struct symbol_ops".
11816         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11817         type to "struct symbol_ops".
11818         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11819         (struct symbol): Replace ".aux_value.loc.funcs" and
11820         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11821         (SYMBOL_OBJFILE): Delete macro.
11822         (SYMBOL_LOCATION_FUNCS): Delete macro.
11823         (SYMBOL_LOCATION_BATON): Update.
11824         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11825         intead of SYMBOL_LOCATION_FUNCS.
11826         * ax-gdb.c (gen_var_ref): Ditto.
11827         * printcmd.c (address_info): Ditto.
11828         * findvar.c (read_var_value): Ditto.
11829         (symbol_read_needs_frame): Ditto.
11830
11831 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11832
11833         * dwarf2read.c (read_func_scope): Document frame-base hack.
11834
11835 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11836
11837         * infcmd.c (print_return_value): Plug memory leak; delete
11838         ui_stream object.  Rename argument `structure_return' to
11839         `struct_return'.
11840
11841 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11842
11843         * infcmd.c (print_return_value): Wrap long lines.
11844         (finish_command_continuation, finish_command): Remove unused
11845         variable `funcaddr'.  Fix some coding-standards problems.
11846
11847         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11848         SECT_SIZE is large enough, not whether it's exactly the right size.
11849         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11850         TDEP->fpregset to zero.
11851
11852         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11853         floating-point registers for traditional NetBSD core files.
11854         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11855         TDEP->sizeof_fpregset here.
11856
11857 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11858
11859         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11860         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11861         function with code split out from
11862         sparc32nbsd_sigcontext_frame_cache.
11863         (sparc32nbsd_sigcontext_frame_cache): Use
11864         sparc32nbsd_sigcontext_saved_regs.
11865         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11866         OpenBSD.
11867         * sparcobsd-tdep.c: New file.
11868         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11869         (sparcobsd-tdep.o): New dependency.
11870         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11871         * config/sparc/obsd.mt: New file.
11872
11873         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11874         TDEP->fpregset to be initialized to enable core file register
11875         sets.
11876
11877 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
11878
11879         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11880         Add opaque declarations.
11881         (sparc64nbsd_sigcontext_saved_regs): New prototype.
11882         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11883         function with code split out from
11884         sparc64nbsd_sigcontext_frame_cache.
11885         (sparc64nbsd_sigcontext_frame_cache): Use
11886         sparc64nbsd_sigcontext_saved_regs.
11887         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11888         OpenBSD.
11889         * sparc64obsd-tdep.c: New file.
11890         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11891         (sparc64obsd-tdep.o): New dependency.
11892         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11893         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11894         * config/sparc/obsd64.mt: New file.
11895
11896         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11897         read the instruction at PC.
11898
11899         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11900         value of GDB_OSABI_DEFAULT.
11901         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11902         instead of GDB_OSABI_NETBSD_AOUT.
11903
11904 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
11905
11906         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11907         copyright.
11908
11909 2004-01-23  Andrew Cagney  <cagney@redhat.com>
11910
11911         * printcmd.c (display_command): Replace tui_set_display call with
11912         tui_set_layout_for_display_command.
11913         * tui/tui.h (enum tui_win_type): Define.
11914         (tui_set_layout): Delete declaration.
11915         (tui_set_layout_for_display_command): Rename set_tui_layout.
11916         * tui/tui-data.h (enum tui_layout_type): Define.
11917         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
11918         "tui.h".
11919         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11920         (tui_default_win_height): Rename tuiDefaultWinHeight.
11921         (tui_default_win_viewport_height): Rename
11922         tuiDefaultWinViewportHeight.
11923         (tui_set_layout): RenametuiSetLayout.
11924         * tui/tui-layout.c: Update references.
11925         * tui/tui.c: Update references.
11926         * tui/tui-disasm.c: Update references.
11927
11928 2004-01-23  David Carlton  <carlton@kealia.com>
11929
11930         Partial workaround for PR c++/1511:
11931         * cp-namespace.c: Include frame.h.
11932         (cp_lookup_transparent_type): New
11933         (cp_lookup_transparent_type_loop): New.
11934         * cp-support.h: Declare cp_lookup_transparent_type.
11935         * symtab.c (basic_lookup_transparent_type): Renamed from
11936         lookup_transparent_type.
11937         (lookup_transparent_type): Replace old body by a call to
11938         current_language->la_lookup_transparent_type.
11939         * symtab.h: Update copyright.  Declare
11940         basic_lookup_transparent_type.
11941         * language.h: Update copyright.
11942         (struct language_defn): Add la_lookup_transparent_type.
11943         * language.c: Update copyright.
11944         (unknown_language_defn): Add basic_lookup_transparent_type.
11945         (auto_language_defn): Add basic_lookup_transparent_type.
11946         (local_language_defn): Add basic_lookup_transparent_type.
11947         * ada-lang.c: Update copyright.
11948         (ada_language_defn): Add basic_lookup_transparent_type.
11949         * c-lang.c: Update copyright.
11950         (c_language_defn): Add basic_lookup_transparent_type.
11951         (cplus_language_defn): Add basic_lookup_transparent_type.
11952         (asm_language_defn): Add basic_lookup_transparent_type.
11953         (minimal_language_defn): Add basic_lookup_transparent_type.
11954         * f-lang.c: Update copyright.
11955         (f_language_defn): Add basic_lookup_transparent_type.
11956         * jv-lang.c: Update copyright.
11957         (java_language_defn): Add basic_lookup_transparent_type.
11958         * m2-lang.c: Update copyright.
11959         (m2_language_defn): Add basic_lookup_transparent_type.
11960         * objc-lang.c: Update copyright.
11961         (objc_language_defn): Add basic_lookup_transparent_type.
11962         * p-lang.c: Update copyright.
11963         (p_language_defn): Add basic_lookup_transparent_type.
11964         * scm-lang.c: Update copyright.
11965         (scm_language_defn): Add basic_lookup_transparent_type.
11966         * Makefile.in (cp-namespace.o): Depend on frame.h.
11967
11968 2004-01-23  David Carlton  <carlton@kealia.com>
11969
11970         Patch for PR c++/1520:
11971         * dwarf2read.c (read_func_scope): Set processing_current_prefix
11972         properly if we have a specification die.
11973         (determine_prefix_aux): Rename from determine_prefix.
11974         (determine_prefix): Like the old determine_prefix, but never
11975         returns NULL.
11976
11977 2004-01-23  Theodore A. Roth  <troth@openavr.org>
11978
11979         * avr-tdep.c: Update copyright.
11980         (avr_iaddr_p): Delete unused function.
11981         (avr_saddr_p): Delete unused function.
11982
11983 2004-01-23  David Carlton  <carlton@kealia.com>
11984
11985         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11986         Fix for PR symtab/1534.
11987
11988 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
11989
11990         * NEWS (New native configurations): Mention OpenBSD/sparc and
11991         OpenBSD/sparc64.
11992         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11993         * configure.host: Likewise.
11994         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11995         handler for OpenBSD.
11996         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11997
11998 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
11999
12000         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12001         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12002
12003         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12004         * cli/cli-cmds.c (shell_escape): Likewise.
12005
12006         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12007         OpenBSD .note.openbsd.ident sections.
12008
12009 2004-01-22  David Carlton  <carlton@kealia.com>
12010
12011         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12012         get_scope_pc_bounds.
12013         (read_file_scope): Ditto.
12014         (get_scope_pc_bounds): New function, produced by extracting code
12015         from the above two functions, consolidating it, and adding support
12016         for DW_TAG_namespace.
12017
12018 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
12019
12020         * osabi.c (MAX_NOTESZ): New define.
12021         (check_note): New function.
12022         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12023         check_note.
12024
12025 2004-01-21  Roland McGrath  <roland@redhat.com>
12026
12027         * MAINTAINERS (write after approval): Add myself.
12028
12029 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
12030
12031         * utils.c (init_page_info): Move declarations of `rows' and
12032         `cols' before the __GO32__-specific code.  Move the closing brace
12033         outside the #ifdef __GO32__..#endif block.
12034         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12035
12036 2004-01-21  Paul Brook  <paul@codesourcery.com>
12037
12038         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12039         BPSTAT_WHAT_CHECK_SHLIBS.
12040
12041 2004-01-21  Paul Brook  <paul@codesourcery.com>
12042
12043         * MAINTAINERS: Add myself to write-after-approval.
12044
12045 2004-01-20  Andrew Cagney  <cagney@redhat.com>
12046
12047         * ax-gdb.c (print_axs_value): Delete unused function.
12048         * jv-lang.c (java_lookup_type): Delete unused function.
12049         * cli/cli-dump.c (dump_filetype): Delete unused function.
12050         * remote-mips.c (remote_mips_insert_hw_breakpoint)
12051         (remote_mips_remove_hw_breakpoint): Delete unused functions.
12052         (mips_getstring): Delete unused function.
12053         (pmon_insert_breakpoint): Delete #if0ed function.
12054         (PMON_MAX_BP): Delete #if0ed MACRO.
12055         (mips_pmon_bp_info): Delete #if0ed variable.
12056         (pmon_remove_breakpoint): Delete #if0ed function.
12057         * monitor.c (monitor_write_even_block): Delete unused function.
12058         (monitor_write_memory_block): Delete #if0ed code.
12059         * dink32-rom.c (dink32_load): Delete unused function.
12060         (_initialize_dink32_rom): Delete #if0ed code.
12061         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12062
12063         * tui/tui-command.c: Update references.
12064         * tui/tui-io.c: Update references.
12065         * tui/tui-command.h: Update copyright.
12066         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12067
12068         * source.c (ambiguous_line_spec): Delete never-defined function.
12069         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12070         * gdbtypes.c (add_name, add_mangled_type): Ditto.
12071         * cli/cli-cmds.c (validate_comname): Ditto.
12072
12073         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
12074         "tui-data.h".
12075         (tui_set_disassem_content): Rename tuiSetDisassemContent.
12076         (tui_show_disassem): Rename tuiShowDisassem.
12077         (tui_show_disassem_and_update_source): Rename
12078         tuiVerticalDisassemScroll.
12079         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12080         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12081         * tui/tui.h: Update copyright.
12082         (enum tui_status): Define.
12083         * tui/tui-data.h (enum tui_scroll_direction): Define.
12084         * tui/tui-disasm.c: Update copyright.  Update references.
12085         * tui/tui-winsource.c:  Update copyright.  Update references.
12086         * tui/tui-win.c: Update references.
12087         * tui/tui-layout.c: Update references.
12088
12089 2004-01-20  Andrew Cagney  <cagney@redhat.com>
12090
12091         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12092         sym2 to start of block.
12093
12094 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
12095
12096         * MAINTAINERS: Delete mmalloc.
12097         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12098         * NEWS: Mention removal of --with-malloc.
12099         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12100         * config.in: Regenerate.
12101         * configure: Regenerate.
12102         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12103         USE_MMALLOC, MMCHECK_FORCE.
12104         * gdbinit.in: Remove mmalloc.
12105         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12106         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12107         * config/i386/go32.mh: Likewise.
12108         * config/i386/interix.mh: Likewise.
12109         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12110
12111 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
12112
12113         * linespec.c (decode_variable, symtab_from_filename):  Call
12114         error_silent with error message instead of throwing an exception
12115         directly.
12116         * defs.h (error_silent, error_output_message): Add prototypes.
12117         (catch_exceptions_with_msg): Ditto.
12118         * utils.c (error_silent, error_output_message): New functions.
12119         * top.c (catch_exceptions_with_msg): New function.
12120
12121 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
12122
12123         * mi/mi-cmds.h (enum print_values): Add definition.
12124
12125         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12126         type and value for simple data types and just the name and type
12127         for complex ones, if required.
12128
12129         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12130         children, if required.
12131
12132 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12133
12134         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12135         unused declarations.
12136
12137 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12138
12139         * top.h (mapped_symbol_files): Delete declaration.
12140         * main.c (captured_main): Delete option "m" and "mapped".
12141         * objfiles.c (mapped_symbol_files): Delete variable.
12142         * symfile.c (symbol_file_command): Delete mmap code.
12143         (symbol_file_add_with_addrs_or_offsets): Ditto.
12144         (add_symbol_file_command, reread_separate_symbols): Ditto.
12145         * objfiles.h (OBJF_MAPPED): Delete.
12146         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12147         (free_objfile) [USE_MMALLOC]: Ditto.
12148         (open_existing_mapped_file): Delete function.
12149         (open_mapped_file): Delete function.
12150         (map_to_file): Delete function.
12151
12152 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12153
12154         * infrun.c (step_into_function): Account for possible breakpoint
12155         adjustment when computing ``stop_func_start''.
12156
12157 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12158
12159         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12160         the region size against the size of a pointer, not the size of
12161         a register as given by DEPRECATED_REGISTER_SIZE.
12162
12163 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12164
12165         * tui/tui-regs.h: Include "tui-data.h".
12166         (tuiFirstRegElementNoInLine): Delete declaration.
12167         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12168         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12169         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12170         (tui_calculate_regs_column_count): Rename
12171         tuiCalculateRegsColumnCount.
12172         (tui_check_register_values): Rename tuiCheckRegisterValues.
12173         (tui_show_registers): Rename tuiShowRegisters.
12174         (tui_display_registers_from_line): Rename
12175         tuiDisplayRegistersFromLine.
12176         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12177         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12178         (tui_first_reg_element_no_inline): Rename
12179         tuiFirstRegElementNoInLine.
12180         * tui/tui-data.h: Update copyright.
12181         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12182         * tui/tui-windata.c: Update copyright, update references.
12183         * tui/tui-regs.c: Update copyright, update references.
12184         * tui/tui-win.c: Update copyright, update references.
12185         * tui/tui-layout.c: Update copyright, update references.
12186
12187 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12188
12189         * tui/tui-io.c: Update copyright.
12190         (key_is_end_sequence, key_is_backspace): New functions.
12191         (key_is_command_char, key_is_start_sequence): New function.
12192         (tui_getc): Update references.
12193         * tui/tui-io.h: Update copyright.
12194         (m_tuiStartNewLine): Delete macro.
12195         (m_isBackspace, m_isDeleteChar): Delete macros.
12196         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12197         (m_isNextPage, m_isPrevPage): Delete macros.
12198         (m_isLeftArrow, m_isRightArrow): Delete macros.
12199         (m_isXdbStyleCommandChar): Delete macro.
12200         (key_is_start_sequence): Declare, replace m_isStartSequence.
12201         (key_is_end_sequence): Declare, replace m_isEndSequence.
12202         (key_is_backspace): Declare ,replace m_isBackspace.
12203         (key_is_command_char): Declare, replace m_isCommandChar.
12204         * tui/tui-command.c: Update copyright.
12205         (tuiDispatchCtrlChar): Update references.
12206
12207         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12208         tuiSourceWin.h.
12209
12210         * tui/tui-command.c: Rename tui/tuiCommand.c.
12211         * tui/tui-command.h: Rename tui/tuiCommand.h.
12212         * tui/tui-data.c: Rename tui/tuiData.c.
12213         * tui/tui-data.h: Rename tui/tuiData.h.
12214         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12215         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12216         * tui/tui-io.c: Rename tui/tuiIO.c.
12217         * tui/tui-io.h: Rename tui/tuiIO.h.
12218         * tui/tui-layout.c: Rename tui/tuiLayout.c.
12219         * tui/tui-layout.h: Rename tui/tuiLayout.h.
12220         * tui/tui-regs.c: Rename tui/tuiRegs.c.
12221         * tui/tui-regs.h: Rename tui/tuiRegs.h.
12222         * tui/tui-source.c: Rename tui/tuiSource.c.
12223         * tui/tui-source.h: Rename tui/tuiSource.h.
12224         * tui/tui-stack.c: Rename tui/tuiStack.c.
12225         * tui/tui-stack.h: Rename tui/tuiStack.h.
12226         * tui/tui-win.c: Rename tui/tuiWin.c.
12227         * tui/tui-win.h: Rename tui/tuiWin.h.
12228         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12229         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12230         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12231         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12232         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12233         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12234         * tui/tui-file.c: Update includes.
12235         * tui/tui-hooks.c: Update includes.
12236         * tui/tui-interp.c: Update includes.
12237         * tui/tui.c: Update includes.
12238         * Makefile.in: Update all tui/ dependencies.
12239         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12240
12241         * Makefile.in: Update copyright.  Update dependencies.
12242
12243         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12244         problem.
12245
12246 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12247
12248         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12249         instead of register_gdbarch_init.
12250
12251         * remote-sds.c (tohex): Delete unused function.  Update copyright.
12252         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12253         * v850-tdep.c (v850_register_virtual_size): Ditto.
12254         * target.c (normal_target_post_startup_inferior): Ditto.
12255         * source.c (ambiguous_line_spec): Ditto.
12256         * remote.c (adapt_remote_get_threadinfo): Ditto.
12257         * mi/mi-out.c (out_field_fmt): Ditto.
12258         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12259         (output_control_change_notification): Ditto.
12260         * m68k-tdep.c (m68k_register_byte): Ditto.
12261         (m68k_remote_breakpoint_from_pc): Ditto.
12262         * ui-out.c (init_ui_out_state): Delete unused declaration.
12263         * stabsread.c (search_value): Ditto.
12264         * mi/mi-cmd-env.c (env_cli_command): Ditto.
12265         * maint.c (print_section_table): Ditto.
12266         * infrun.c (set_follow_fork_mode_command): Ditto.
12267
12268 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12269
12270         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12271         DW_CFA_def_cfa_exporession.  Add support for
12272         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12273         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
12274
12275 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12276
12277         * ocd.c: Update copyright.
12278         (bdm_read_register_command): Delete unused function.
12279         (_initialize_remote_ocd): Delete commented out reference.
12280         (get_quoted_char, reset_packet): Delete #if0ed function.
12281         (output_packet, put_quoted_char): Delete #if0ed function.
12282         (stu_put_packet, stu_get_packet): Delete #if0ed function.
12283         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12284         (BDM_BREAKPOINT): Delete #if0ed macro.
12285         (remote_timeout): Delete #if0ed variable.
12286
12287 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12288
12289         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12290         (core-sol2.o): Remove dependency.
12291         * core-sol2.c: Remove file.
12292
12293 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12294
12295         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12296         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12297         enums.
12298
12299 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12300
12301         * remote.c: Update copyright years.
12302
12303 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12304
12305         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12306
12307 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12308
12309         * mdebugread.c: Update copyright.
12310         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12311         (parse_type, parse_procedure): Ditto.
12312         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12313
12314         * cris-tdep.c (cris_store_struct_return): Put back accidently
12315         deleted function.
12316
12317         * gdbarch.sh: Update copyright year.
12318         * gdbarch.h, gdbarch.c: Re-generate.
12319
12320 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12321
12322         Suggested by George Anzinger.
12323         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12324         correct stack offset.  Include unknown opcode numbers in the error
12325         message.
12326
12327 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12328
12329         * x86-64-tdep.c (x86_64_init_abi): No need to clear
12330         extract_struct_value_address, i386 does not set it.
12331         * sparc64-tdep.c (sparc64_init_abi): Do not set
12332         extract_struct_value_address, never called.
12333         (sparc64_extract_struct_value_address): Delete function.
12334         * m68hc11-tdep.c: Update copyright.
12335         (m68hc11_gdbarch_init): Delete redundant assignment of
12336         extract_struct_value_address.
12337         * i386-tdep.c: Update copyright.
12338         (i386_gdbarch_init): Do not set extract_struct_value_address,
12339         never called.
12340         (i386_extract_struct_value_address): Delete function.
12341         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12342         extract_struct_value_address, never called.
12343         (sparc32_extract_struct_value_address): #if 0 function.  Add
12344         comments explaining its future.
12345
12346 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12347
12348         * arm-tdep.c (arm_write_pc): New function.
12349         (arm_gdbarch_init): Call set_gdbarch_write_pc.
12350
12351 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12352
12353         * breakpoint.c (must_shift_inst_regs): Delete.
12354         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12355         and SHIFT_INST_REGS.
12356         * infcmd.c (step_1, step_1_continuation): Delete references to
12357         SHIFT_INST_REGS.
12358         * infrun.c (keep_going): Likewise.
12359         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12360         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12361
12362 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12363
12364         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12365         * gdbarch.h, gdbarch.c: Re-generate.
12366         * infcmd.c (print_return_value): Delete reference to
12367         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12368
12369         * cris-tdep.c (cris_gdbarch_init): Do not set
12370         deprecated_extract_struct_value_address.
12371
12372         * xstormy16-tdep.c: Update copyright.
12373         (xstormy16_extract_struct_value_address): Update to current
12374         extract struct value address interface.
12375         (xstormy16_gdbarch_init): Set extract_struct_value_address.
12376         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12377         current extract struct value address interface.
12378         (sh64_gdbarch_init): Set extract_struct_value_address.
12379
12380         * cris-tdep.c: Update copyright.
12381         (cris_extract_struct_value_address): Delete function.
12382         (struct_return_address): Delete variable.
12383         (cris_store_struct_return): Do not set struct_return_address.
12384
12385         * mcore-tdep.c: Update copyright.
12386         (mcore_extract_struct_value_address): Delete function.  Update
12387         comments.
12388         (mcore_gdbarch_init): Update.
12389         * mn10300-tdep.c: Update copyright.
12390         (mn10300_extract_struct_value_address): Delete function.
12391         (mn10300_gdbarch_init): Update.
12392         * v850-tdep.c: Update copyright.
12393         (v850_extract_struct_value_address): Delete.
12394         (v850_gdbarch_init): Update.
12395         * ns32k-tdep.c: Update copyright.
12396         (ns32k_extract_struct_value_address): Delete.
12397         (ns32k_gdbarch_init): Update.
12398         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12399         (hppa_gdbarch_init): Update.
12400         * vax-tdep.c: Update copyright.
12401         (vax_extract_struct_value_address): Delete.
12402         (vax_gdbarch_init): Update.
12403
12404         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12405         * gdbarch.h, gdbarch.c: Re-generate.
12406         * procfs.c (procfs_fetch_registers): Delete reference to
12407         DEPRECATED_NPC_REGNUM.
12408         (procfs_store_registers): Ditto.
12409         * regcache.c (generic_target_write_pc): Simplify.
12410         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
12411
12412         * core-sol2.c (fetch_core_registers): Replace
12413         DEPRECATED_NPC_REGNUM with equivalent tdep value.
12414
12415         * hppa-tdep.c: Update copyright year.
12416         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12417         NPC_REGNUM.
12418         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12419
12420         * mips-tdep.c (mips_write_pc): New function.
12421         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12422         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12423         (mips_find_saved_regs, mips_software_single_step: Ditto.
12424         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12425         mips_init_extra_frame_info, mips_pop_frame): Ditto.
12426
12427 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12428
12429         * mips-tdep.c: Re-indent.  Group functions by ABI.
12430
12431 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12432
12433         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12434         * gdbarch.c: Re-generate.
12435         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12436         DECR_PC_AFTER_BREAK to zero.
12437         * vax-tdep.c (vax_gdbarch_init): Ditto.
12438         * v850-tdep.c (v850_gdbarch_init): Ditto.
12439         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12440         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12441         * sh-tdep.c (sh_gdbarch_init): Ditto.
12442         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12443         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12444         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12445         * mips-tdep.c (mips_gdbarch_init): Ditto.
12446         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12447         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12448         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12449         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12450         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12451         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12452         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12453         * frv-tdep.c (frv_gdbarch_init): Ditto.
12454         * cris-tdep.c (cris_gdbarch_init): Ditto.
12455         * avr-tdep.c (avr_gdbarch_init): Ditto.
12456         * arm-tdep.c (arm_gdbarch_init): Ditto.
12457         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12458
12459 2004-01-17  J. Brobecker  <brobecker@gnat.com>
12460
12461         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12462         Delete, no longer used.
12463         (read_subrange_type): New function, mostly extracted from
12464         read_array_type().
12465         (read_array_type): Replace extracted code by call to
12466         read_subrange_type().
12467         (dwarf2_get_attr_constant_value): New function.
12468         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12469         (add_partial_symbol): Likewise.
12470         (process_die): Likewise.
12471         (new_symbol): Likewise.
12472         (read_type_die): Likewise.
12473
12474 2004-01-16  Andrew Cagney  <cagney@redhat.com>
12475
12476         * symfile.c: Update copyright year.
12477         (compare_symbols): Delete unused function.
12478         * stabsread.c: Update copyright year.
12479         (lrs_general_complaint): Delete unused function.
12480         (ref_search_value): Ditto.
12481         (get_substring): Delete declaration.
12482         * sh64-tdep.c: Update copyright year.
12483         (sh64_get_gdb_regnum): Delete unused function.
12484         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12485         Delete unused function.
12486
12487 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
12488
12489         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12490         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12491
12492 2004-01-16  Andrew Cagney  <cagney@redhat.com>
12493
12494         Changes from Peter Schauer.
12495         * rs6000-tdep.c: Update copyright year.
12496         (rs6000_push_dummy_call): Update the stack pointer before
12497         accessing the corresponding stack region.
12498         * rs6000-nat.c: Update copyright year.
12499         (set_host_arch): Set "info.abfd" to "exec_bfd".
12500
12501 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
12502
12503         * blockframe.c: Update copyright year.
12504         (inside_entry_func): Don't treat a zero PC specially.
12505
12506 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
12507
12508         * gcore.c (gcore_copy_callback): Use paddr_d to print size
12509         variable.
12510         (gcore_create_callback): Ditto.  Skip any memory segment that has
12511         no permissions set.
12512
12513 2004-01-14  David Carlton  <carlton@kealia.com>
12514
12515         Change symbols for C++ nested types to contain the fully qualified
12516         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
12517         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12518         c++/895.
12519         * c-exp.y (qualified_type): Handle types nested within classes.
12520         * cp-namespace.c: Update comments.
12521         (cp_set_block_scope): Delete #if 0.
12522         (cp_lookup_nested_type): Handle types nested within classes.
12523         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12524         when appropriate.
12525         (add_partial_symbol): Add the name of the enclosing namespace to
12526         types.
12527         (pdi_needs_namespace): New.
12528         (add_partial_namespace): Tweak comment.
12529         (add_partial_structure): New.
12530         (psymtab_to_symtab_1): Initialize processing_current_prefix
12531         here...
12532         (process_die): instead of here.
12533         (read_structure_scope): Try to figure out the name of the class or
12534         namespace that the structure might be defined within.
12535         (read_enumeration): Generate fully-qualified names, if possible.
12536         (read_namespace): Don't set name to NULL.
12537         (die_specification): New.
12538         (new_symbol): Generate fully-qualified names for types.
12539         (read_type_die): Determine appropriate prefix.
12540         (determine_prefix): New.
12541         (typename_concat): New.
12542         (class_name): New.
12543         * valops.c (value_aggregate_elt): Pass NOSIDE to
12544         value_struct_elt_for_reference.
12545         (value_struct_elt_for_reference): Make static, add NOSIDE
12546         parameter, call value_maybe_namespace_elt as a last resort.
12547         (value_namespace_elt): Break out code into
12548         value_maybe_namespace_elt.
12549         (value_maybe_namespace_elt): New.
12550
12551 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12552
12553         * mips-tdep.c (mips_convert_register_p): Handle both raw and
12554         cooked floating-point registers.
12555         (mips_gdbarch_init): Set convert_register_p, register_to_value,
12556         and value_to_register.
12557
12558 2004-01-13  Andrew Cagney  <cagney@redhat.com>
12559
12560         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12561         * gdbarch.c: Re-generate.
12562         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12563         FUNCTION_START_OFFSET.
12564         * v850-tdep.c (v850_gdbarch_init): Ditto.
12565         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12566         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12567         * sh-tdep.c (sh_gdbarch_init): Ditto.
12568         * s390-tdep.c (s390_gdbarch_init): Ditto.
12569         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12570         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12571         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12572         * mips-tdep.c (mips_gdbarch_init): Ditto.
12573         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12574         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12575         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12576         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12577         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12578         * i386-tdep.c (i386_gdbarch_init): Ditto.
12579         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12580         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12581         * frv-tdep.c (frv_gdbarch_init): Ditto.
12582         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12583         * cris-tdep.c (cris_gdbarch_init): Ditto.
12584         * avr-tdep.c (avr_gdbarch_init): Ditto.
12585         * arm-tdep.c (arm_gdbarch_init): Ditto.
12586         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12587
12588 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
12589
12590         * infrun.c (follow_fork_mode_ask): Remove.
12591         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12592         (follow_fork): Simplify and remove internal error for
12593         follow_fork_mode_ask.
12594         (_initialize_infrun): Update "set follow-fork-mode" help text.
12595
12596 2004-01-13  Andrew Cagney  <cagney@redhat.com>
12597
12598         * configure.in: Update copyright year.
12599         (build_warnings): Add -Wunused-label.
12600         * configure: Re-generate.
12601
12602 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12603
12604         * exec.h (exec_ops): Make "extern".
12605
12606         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12607         the function is void.
12608         (mips_pseudo_register_write): Ditto.
12609
12610 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12611
12612         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12613         call.  Never defined.
12614         * sparc-tdep.h (struct frame_info): Add opaque declaration.
12615         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12616         (struct sparc_gregset, struct regcache): Ditto.
12617         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
12618
12619 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12620
12621         * mi/ChangeLog: Delete file.  Renamed to ...
12622         * mi/ChangeLog-1999-2003: New file.
12623         * tui/ChangeLog: Delete file.  Renamed to ...
12624         * tui/ChangeLog-1998-2003: New file.
12625
12626 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
12627
12628         * sparc64nbsd-tdep.c: Include "regset.h".
12629         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12630         Remove variables.
12631         (fetch_core_registers): Remove function.
12632         (sparc64nbsd_core_fns): Remove variable.
12633         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12634         functions.
12635         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12636         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12637         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12638
12639         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12640         sparc_extract_struct_value_address.
12641         (sparc32_gdbarch_init): Set extract_struct_value_address.
12642         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12643         function.
12644         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
12645         return_value_on_stack.
12646
12647         * NEWS: Mention that %cs and %ss have been added to the AMD64
12648         configurations
12649
12650         * frame.c: Update copyright year.
12651         (get_prev_frame): Improve comment.
12652
12653         * sparc64fbsd-tdep.c: Include "regset.h".
12654         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12655         Remove variables.
12656         (fetch_core_registers): Remove function.
12657         (sparc64fbsd_core_fns): Remove variable.
12658         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12659         functions.
12660         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12661         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12662         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12663
12664         * sparcnbsd-tdep.c: Include "regset.h".
12665         (fetch_core_registers): Remove function.
12666         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12667         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12668         functions.
12669         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12670         TDEP->fpregset.
12671         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12672
12673         * sparc-tdep.h (struct regset): Provide opaque declaration.
12674         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12675         fpregset and sizeof_fpregset members.
12676         * sparc-tdep.c (struct regset): Provide opaque declaration.
12677         (sparc_regset_from_core_section): New function.
12678         (sparc32_gdbarch_init): Initialize TDEP->gregset,
12679         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12680         Set regset_from_core_section when appropriate.
12681
12682 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
12683
12684         * x86-64-tdep.c (amd64_non_pod_p): New function.
12685         (amd64_classify_aggregate): Return class memory for non-POD
12686         C++ structure types.
12687
12688         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12689         argument.  Use it to reserve a register if necessary.
12690         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12691         amd64_push_arguments.
12692
12693         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12694
12695         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
12696         register numbers in comments.
12697         * x86-64-tdep.h: Update copyright year.
12698         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12699         Adjust for addition of %cs and %ss.
12700         * amd64fbsd-nat.c: Update copyright year.
12701         (reg_offset): Add register offsets for %cs and %ss.
12702         * amd64fbsd-tdep.c: Update copyright year.
12703         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12704         (amd64fbsd_sc_reg_offset): Likewise.
12705         * x86-64-linux-nat.c: Update copyright year.
12706         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12707         and %ss.
12708         * amd64nbsd-nat.c: Update copyright year.
12709         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12710         * amd64nbsd-tdep.c: Update copyright year.
12711         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12712         * x86-64-linux-tdep.c: Update copyright year.
12713         (user_to_gdb_regmap): Add mapping for %cs and %ss.
12714         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12715         * regformats/reg-x86-64.dat: Add %cs and %ss.
12716
12717         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
12718         variables to prevent long lines.  Update comments to reflect
12719         reality.
12720
12721 2004-01-09  David Carlton  <carlton@kealia.com>
12722
12723         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
12724         * dwarf2read.c (read_namespace): Pull out name-generating code
12725         into namespace_name. Rename previous_namespace to previous_prefix
12726         and processing_current_namespace to processing_current_prefix..
12727         (namespace_name): New function.
12728         (add_partial_symbol): Substitute uses of pdi->name with
12729         actual_name.
12730         * cp-support.h: Rename processing_current_namespace to
12731         processing_current_prefix.
12732         Update copyright year.
12733         * cp-namespace.c: Rename processing_current_namespace to
12734         processing_current_prefix.
12735         Update copyright year.
12736
12737 2004-01-09  Andrew Cagney  <cagney@redhat.com>
12738
12739         * jv-valprint.c, ser-unix.c: Add missing copyright years.
12740
12741 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
12742
12743         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12744         complaining.
12745         (process_one_symbol): Deal with N_PATCH stabs.
12746
12747 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
12748
12749         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12750         ifdeffed code.
12751         Update copyright year.
12752
12753 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
12754
12755         * config/pa/tm-hppa.h: Update extern declarations for
12756         hppa32_hpux_frame_saved_pc_in_sigtramp,
12757         hppa32_hpux_frame_base_before_sigtramp, and
12758         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12759
12760 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
12761
12762         * config/pa/tm-hppah.h: Update copyright years.
12763
12764 2004-01-08  Andrew Cagney  <cagney@redhat.com>
12765
12766         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12767         (mips_o32_reg_struct_has_addr): Delete function.
12768         (mips_gdbarch_init): Update.
12769         (mips_extract_struct_value_address): Delete function.
12770
12771 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
12772
12773         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12774         reality.
12775
12776 2004-01-07  Andrew Cagney  <cagney@redhat.com>
12777
12778         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12779         architecture's elf flags (when available).
12780
12781         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12782         FPU to the start, check the MIPS FPU when looking for an old
12783         architecture.
12784         (set_mipsfpu_single_command): Update the architecture.
12785         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12786
12787         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12788         (mips_mask_address_p): Add "tdep" parameter.
12789         (show_mask_address, mips_addr_bits_remove): Update.
12790         (mips_dump_tdep): Update.
12791         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12792         (MIPS_STACK_ARGSIZE): Delete macro.
12793         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12794         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12795         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12796         (mips_dump_tdep): Update.
12797         (MIPS_SAVED_REGSIZE): Delete macro.
12798         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12799         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12800         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12801         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12802         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12803         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12804         (mips_pop_frame, return_value_location): Update.
12805         (mips_n32n64_return_value, mips_dump_tdep): Update.
12806
12807         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12808         MIPS ABI.
12809
12810         * mips-tdep.c: Update copyright.
12811         (mips_gdbarch_init): Merge two code blocks handling the register
12812         name and number layout.
12813
12814 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
12815
12816         * tracepoint.c (validate_actionline): Fix segv at EOF
12817
12818 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
12819
12820         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12821         properly for static fields.
12822
12823 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
12824             Jason Molenda  <jmolenda@apple.com>
12825
12826         * disasm.c: Update copyright to include 2004.
12827         (do_mixed_source_and_assembly): For uiout asm list
12828         and tuple cleanups, initialize to null_cleanup instead of
12829         NULL and do so prior to loop.  Only reset when we close off
12830         the tuple/list.  Move check for whether to close off the
12831         asm tuple/list to after dump_insns call where it will be run
12832         on each loop iteration.
12833
12834 2004-01-05  Andrew Cagney  <cagney@redhat.com>
12835
12836         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12837         should be a switch case and not a label.
12838         * mips-tdep.c (mips32_next_pc): Delete unused labels
12839         "greater_equal_branch" and "less_zero_branch".
12840         * jv-valprint.c (java_print_value_fields): Delete unused label
12841         "flush_it".
12842
12843         * target.c (unpush_target): Only close a target that is in the
12844         target stack.
12845
12846 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
12847
12848         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12849         address from [sp + 64] instead of %o2.
12850
12851         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
12852         fixes PR backtrace/1476.
12853
12854 2004-01-05  Andrew Cagney  <cagney@redhat.com>
12855
12856         * libunwind-frame.h (struct frame_id): Add opaque declaration,
12857         move to start of file.
12858         * i386-tdep.h (struct regcache): Add opaque declaration.
12859         * config/ia64/nm-linux.h (struct target_ops): Add opaque
12860         declaration.
12861         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12862         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12863         * win32-nat.c (fake_create_process): Use ISO C style definition.
12864         * stabsread.c (define_symbol): Delete #ifndef
12865         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12866         stabs_argument_has_addr call, macro never defined.
12867
12868 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
12869
12870         * op50-rom.c: Delete.
12871         * w89k-rom.c: Delete.
12872         * Makefile.in: Remove references.
12873
12874 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12875
12876         * x86-64-tdep.c: Update copyright year.
12877         (struct amd64_register_info): Rename from x86_64_register_info.
12878         (amd64_register_info): Rename from x86_64_register_info.
12879         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12880         (amd64_register_name): Rename from x86_64_register_name.
12881         (amd64_register_type): Rename from x86_64_register_type.
12882         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12883         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12884         (amd64_dwarf_reg_to_regnum): Rename from
12885         x86_64_dwarf_reg_to_regnum.
12886         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12887         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12888         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12889         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12890         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12891         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12892         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12893         (amd64_frame_cache): Rename from x86_64_frame_cache.
12894         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12895         (amd64_frame_prev_register): Rename from
12896         x86_64_frame_prev_register.
12897         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12898         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12899         (amd64_sigtramp_frame_cache): Rename from
12900         x86_64_sigtramp_frame_cache.
12901         (amd64_sigtramp_frame_prev_register): Rename from
12902         x86_64_sigtramp_frame_prev_register.
12903         (amd64_sigtramp_frame_unwind): Rename from
12904         x86_64_sigtramp_frame_unwind.
12905         (amd64_sigtramp_frame_sniffer): Rename from
12906         x86_64_sigtramp_frame_sniffer.
12907         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12908         (amd64_frame_base): Rename from x86_64_frame_base.
12909         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12910         (amd64_frame_align): Rename from x86_64_frame_align.
12911         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12912         (amd64_regset_from_core_section): Rename from
12913         x86_64_regset_from_core_section.
12914         (x86_64_init_abi): Update comments.
12915
12916 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
12917
12918         * MAINTAINERS (write after approval): Add myself.
12919
12920 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12921
12922         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12923         `float' arguments.
12924
12925 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12926
12927         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12928         such that it mentions a specific version of GCC that exhibits this
12929         bug.
12930
12931 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
12932
12933         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12934         structure that has a single `float' member, store it in %f1 in
12935         addition to %f0.
12936
12937         * sparc-sol2-nat.c: Add missing '\'.
12938
12939         * sparc-tdep.c (sparc32_return_value): New function.
12940          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12941         Remove functions.
12942         (sparc32_gdbarch_init): Set return_value, don't set
12943         extract_return_value, store_return_value, use_struct_convention
12944         and return_value_on_stack.
12945
12946         * sparc-sol2-nat.c: Add missing ')'.
12947
12948 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12949
12950         * infrun.c (handle_step_into_function): New function.
12951         (handle_inferior_event): Extract out some code into the new
12952         function above.
12953
12954 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12955
12956         * infrun.c (handle_inferior_event): Move the declaration of
12957         real_stop_pc inside the if blocks where it is used.
12958
12959 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
12960
12961         * sparc64-tdep.c (sparc64_16_byte_align_p)
12962         (sparc64_store_floating_fields, sparc64_store_floating_fields):
12963         Use check_typedef to get subtypes of structures and unions.
12964         (sparc64_store_return_value): Fix calculation of the appropriate
12965         offset into VALBUF when storing a structure or union.
12966         (sparc64_return_value): New function.
12967         (sparc64_use_struct_convention): Remove function.
12968         (sparc64_init_abi): Set return_value, don't set
12969         extract_return_value, store_return_value and
12970         use_struct_convention.
12971
12972 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
12973
12974         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12975         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12976         gdb/config/alpha/xm-alphaosf.h,
12977         gdb/config/powerpc/tm-ppcle-eabi.h,
12978         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12979         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12980         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12981         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12982         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12983         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12984         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12985         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12986         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12987         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12988         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12989         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12990         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12991         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12992         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12993         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12994         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12995         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12996         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12997         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12998         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12999         Remove lines for .cvsignore files.
13000
13001 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13002
13003         * infrun.c: Back out the previous change.
13004
13005 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
13006
13007         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
13008         sparc-*-sunos4* to the list of REMOVED configurations.
13009
13010         * configure.tgt: Add back sparc-*-vxworks*.
13011         * remote-vxsparc.c: Remove all includes except for "defs.h",
13012         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13013         Include "sparc-tdep.h".
13014         (SPARC_R_G1): New define.
13015         (vxsparc_gregset): New variable.
13016         (ext_format_sparc): Remove extern declaration.
13017         (vx_read_register): Rewrite to use sparc32_supply_gregset and
13018         sparc32_supply_fpregset.
13019         (vx_write_register): Rewrite to use sparc32_collect_gregset,
13020         sparc_collect_rwindow and sparc32_collect_fpregset.
13021         * config/sparc/tm-vxworks.h: New file, based on recently removed
13022         tm-vxsparc.h.
13023         * config/sparc/vxworks.mt: New file, based on recently removed
13024         vxworks.mt.
13025
13026 2004-01-03  J. Brobecker  <brobecker@gnat.com>
13027
13028         * infrun.c (handle_step_into_function): New function.
13029         (handle_inferior_event): Extract out some code into the new
13030         function above.
13031
13032 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
13033
13034         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13035         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13036         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13037         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13038         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13039         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13040         (sparc_nat_h): New variable.
13041         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13042         (tm-sun4os4.h): Remove dependency.
13043         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13044         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13045         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13046         sparc-tdep.o): Update dependencies.
13047         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13048         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13049         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13050         dependencies.
13051         * configure.host: Remove existing sparc-*-lynxos*,
13052         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13053         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13054         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
13055         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13056         triplets.
13057         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13058         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13059         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13060         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
13061         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13062         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13063         sparc64-*-solaris2* and sparc64-*-* triplets.
13064         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
13065         "symtab.h" and "objfiles.h".
13066         (BIAS): Remove define.
13067         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13068         (X_DISP19): Remove macros.
13069         (sparc_fetch_instruction): Remove function.
13070         (struct gdbarch_tdep): Remove definition.
13071         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13072         (sparc_breakpoint_from_pc): Remove function.
13073         (struct sparc64_frame_cache): Remove definition.
13074         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13075         sparc64_unwind_pc): Remove functions.
13076         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13077         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
13078         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
13079         (sparc64_frame_cache): Change return type to `struct
13080         sparc_frame_cache *'.  Simply call sparc_frame_cache.
13081         (sparc64_frame_this_id, sparc64_frame_prev_register,
13082         sparc64_frame_base_address): Use `struct sparc_frame_cache'
13083         instead of `struct sparc64_frame_cache.
13084         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13085         sparc_analyze_control_transfer, sparc_software_single_step,
13086         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13087         _initialize_sparc64_tdep): Remove functions.
13088         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13089         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13090         macros.
13091         (sparc64_supply_gregset, sparc64_collect_gregset,
13092         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13093         (sparc64_init_abi): New function.
13094         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
13095         inclusion guard.  Include "sparc-tdep.h".
13096         (BIAS): Define.
13097         (r_tstate_offset, r_fprs_offset): New defines.
13098         (enum sparc_regnum): Remove defenition.
13099         (enum sparc64_regnum): Reformat.
13100         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13101         (sparc64_init_abi, sparc64_supply_gregset,
13102         sparc64_collect_gregset, sparc64_supply_fpregset,
13103         sparc64_collect_fpregset): New prototypes.
13104         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13105         Add extern declarations.
13106         (sparc64_sol2_init_abi): New prototype.
13107         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13108         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13109         prototypes.
13110         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13111         "sparnbsd-nat.h".
13112         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13113         functions.
13114         (_initialize_sparc64fbsd_nat): Remove initialization of
13115         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13116         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13117         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
13118         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
13119         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13120         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13121         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13122         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13123         (sparc64fbsd_r_y_offset): Remove variables.
13124         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13125         Make static and const.
13126         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13127         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13128         functions.
13129         (sparc64fbsd_gregset): New variable.
13130         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13131         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13132         and sparc64_supply_fpregset.
13133         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13134         (sparc64fbsd_sigtramp_frame_this_id)
13135         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13136         (sparc64fbsd_sigtramp_frame_unwind): New variable.
13137         (sparc64fbsd_sigtramp_frame_sniffer): New function.
13138         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13139         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
13140         * sparcnbsd-tdep.c: Update copyright year.  Include
13141         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13142         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13143         "value.h" and "sparcnbsd-tdep.h".
13144         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13145         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13146         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13147         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13148         defines.
13149         (sparcnbsd_gregset): New variable.
13150         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13151         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13152         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13153         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13154         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13155         variables.
13156         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13157         (sparc32nbsd_sigcontext_frame_this_id)
13158         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13159         (sparc32nbsd_sigcontext_frame_unwind): New variable.
13160         (sparc32nbsd_sigtramp_frame_sniffer): New function.
13161         (sparcnbsd_get_longjmp_target_32,
13162         sparcnbsd_get_longjmp_target_64): Remove functions.
13163         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13164         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13165         sparcnbsd_init_elf): Remove.
13166         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13167         (sparcnbsd_elf_init_abi): New functions.
13168         (_initialize_sparcnbsd_tdep): New prototype.
13169         (_initialize_sparnbsd_tdep): Update.
13170         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13171         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
13172         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13173         * config/sparc/linux.mh: Update comment.
13174         (XM_FILE, HOST_IPC): Remove variables.
13175         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
13176         sparc-linux-nat.o.
13177         * config/sparc/linux.mt: Update comment.
13178         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13179         * config/sparc/nbsd.mt: Reformat.
13180         * config/sparc/nbsd64.mh: Update comment.
13181         (NATDEPFILES): Add sparc-nat.o.
13182         * config/sparc/nbsd64.mt: Update comment.
13183         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13184         (TM_FILE): Set to tm-nbsd.h.
13185         * config/sparc/nbsdelf.mh: Update comment.
13186         (NATDEPFILES): Add sparc-nat.o.
13187         (XM_FILE): Delete.
13188         * config/sparc/nbsdaout.mh: Update comment.
13189         (NATDEPFILES): Add sparc-nat.o
13190         (XM_FILE): Delete.
13191         * config/sparc/nm-linux.h: Update copyright year.  Don't include
13192         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
13193         inclusion.
13194         (KERNEL_U_SIZE): Remove define.
13195         (kernel_u_size): Remove prototype.
13196         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13197         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
13198         "regcache.h".
13199         (CHILD_PREPARE_TO_STORE): Remove define.
13200         * config/sparc/nm-nbsdaout.h: Tweak some comments.
13201         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13202         sparcnbsd-nat.c: Rewrite files.
13203         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13204         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13205         sparcnbsd-tdep.h: Remove files.
13206         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13207         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13208         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13209         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13210         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13211         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13212         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13213         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13214         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13215         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13216         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13217         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13218         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13219         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13220         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13221         * config/sparc/linux64.mh, config/sparc/linux64.mt,
13222         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13223         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13224         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13225
13226 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13227
13228         From 2003-12-18 Kazuhiro Inaoka:
13229         * configure.host: Add m32r-linux target.
13230
13231 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
13232
13233         * top.c (print_gdb_version): Update year to 2004.
13234
13235 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
13236
13237         * MAINTAINERS: Add myself to the write-after-approval category.
13238
13239 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
13240
13241         From Bernardo Innocenti <bernie@develer.com>:
13242         * configure.tgt: Add uClinux target.
13243
13244 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13245
13246         * utils.c (do_my_cleanups): Make static, add forward declaration.
13247         * defs.h (do_my_cleanups): Delete declaration.
13248
13249 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
13250
13251         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13252         bfd/ChangeLog-0203.
13253
13254 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
13255
13256         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
13257         in <machine/reg.h>.
13258         * configure, config.in: Regenerate.
13259
13260 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13261 tui/ChangeLog-1998-2003.
13262 \f
13263 Local Variables:
13264 mode: change-log
13265 left-margin: 8
13266 fill-column: 74
13267 version-control: never
13268 End: