* source.c: Always define O_BINARY to 0 if not defined already.
[external/binutils.git] / gdb / ChangeLog
1 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
2
3         * source.c: Always define O_BINARY to 0 if not defined already.
4         (openp): Unconditionally use O_BINARY.
5
6         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
7         * event-top.c (gdb_readline2): Likewise.
8
9 2004-10-14  Orjan Friberg  <orjanf@axis.com>
10
11         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
12         deprecated_add_core_fns which was removed by mistake.
13
14 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
15
16         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
17         references to deprecated_registers[] with equivalent code.
18
19 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
20
21         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
22         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
23         instead of explicit test and print statement.
24
25 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
26
27         * sparc-nat.c: Include "inf-ptrace.h".
28         (sparc_target): New function.
29         * sparc-nat.h: Update copyright year.
30         (sparc_target): New prototype.
31         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
32         (_initialize_sparcnbsd_nat): Construct and add target vector.
33         * sparc64nbsd-nat.c: Include "target.h".
34         (_initialize_sparc64nbsd_nat): Construct and add target vector.
35         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
36         Update dependencies.
37         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
38         inftarg.o, add inf-ptrace.o.
39         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
40         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
41         (NAT_FILE): Set to nm-bsd.h.
42         (LOADLIBES): New variable.
43         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
44         infarg.o, add inf-ptrace.o.
45         * config/sparc/nm-nbsdaout.h: Remove file.
46         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
47         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
48         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
49
50         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
51         "fopen-same.h".  Update comment.
52
53 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
54
55         * i386gnu-nat.c: Include "gdb_string.h".
56         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
57         registers when the floating-point state isn't initialized.
58         * Makefile.in (i386gnu-nat.o): Update dependencies.
59
60 2004-10-11  David Anderson  <davea@sgi.com>
61
62         * regcache.c (regcache_raw_read): Comment was missing "to".
63         Extraneous ' removed.
64         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
65         comment now describes use.
66
67 2004-10-11  Orjan Friberg  <orjanf@axis.com>
68
69         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
70         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
71         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
72         (cris_sigtramp_frame_sniffer): New functions.
73         (cris_gdbarch_init): Hook in signal trampoline unwinder.
74         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
75         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
76         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
77         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
78         command.
79         (cris_version_update): Remove, replace with ...
80         (set_cris_version): New function.
81         (struct gdbarch_tdep, cris_mode, cris_mode_update)
82         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
83         (_initialize_cris_tdep): Remove CRIS mode command.
84         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
85         cris-fpless-backtrace command.
86         (cris_scan_prologue): Fix prologue scanning limit.
87         (cris_register_type): Update to reflect actual registers.
88         (cris_register_bytes_ok) Remove.
89         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
90         Remove set_gdbarch_deprecated_register_size,
91         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
92         
93 2004-10-10  Andrew Cagney  <cagney@gnu.org>
94
95         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
96         comment.
97
98 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
99
100         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
101
102 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
103
104         * mips-tdep.c (mips16_scan_prologue): Renames
105         mips16_heuristic_proc_desc. Update comment.
106         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
107         (heuristic_proc_desc): Update calls to the 2 functions above.
108
109 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
110
111         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
112         Update comments. Also immediately return empty cache when the start
113         address of our function could not be found.
114         (mips_insn32_frame_cache): Likewise.
115
116 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
117
118         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
119         (mips_insn16_frame_cache): Pass frame cache in call to
120         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
121         Remove code that became redundant as a consequence.
122         (mips32_heuristic_proc_desc): No longer compute a fake
123         procedure descriptor. Compute the full frame cache instead.
124         Some minor comment reformatting.
125
126 2004-10-10  Jim Blandy  <jimb@redhat.com>
127
128         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
129         reader, tracing bytecode stuff): Remove self.
130
131 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
132
133         * sparc64-linux-tdep.c: Update copyright year.  Don't include
134         "solib-svr4.h".
135         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
136         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
137         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
138
139         * sparc-linux-tdep.c: Update copyright year.
140         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
141         to struct frame_info *.  Use safe_frame_unwind_memory instead of
142         deprecated_read_memory_nobpt.
143         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
144         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
145         changed signature of sparc_linux_sigtramp_start.
146         (sparc32_linux_pc_in_sigtramp): Remove function.
147         (sparc32_linux_sigtramp_p): New function.
148         (sparc32_linux_sigtramp_frame_sniffer): Use
149         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
150
151         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
152         Remove function.
153         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
154
155         * ada-lang.c (lim_warning): Re-implement as a varargs function.
156         (decode_packed_array_type, value_subscript_packed)
157         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
158         argument in call to lim_warning.
159
160         * configure.in: Really disable the TUI if an enhanced curses
161         library isn't found.
162         * configure: Regenerate.
163
164 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
165
166         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
167         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
168         * config/i386/nm-nbsdaout.h: Remove file.
169         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
170         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
171         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
172         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
173         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
174         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
175         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
176         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
177         (ldd, ld_un, ld_2): Remove defines.
178         * config/i386/nm-obsd.h: Likewise.
179
180 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
181
182         * ada-lex.l: Remove useless rule whose right-context clause
183         causes unreferenced static function warning for yyrealloc.
184         (ada_flex_use): Remove the artificial reference to yyrealloc.
185
186 2004-10-08  Andrew Cagney  <cagney@gnu.org>
187
188         * target.h (struct target_ops): Rename to_xfer_memory to
189         deprecated_xfer_memory.
190         * target.c: Update.
191         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
192         * wince.c: Update.
193         * win32-nat.c: Update.
194         * v850ice.c: Update.
195         * uw-thread.c: Update.
196         * thread-db.c: Update.
197         * sol-thread.c: Update.
198         * remote.c: Update.
199         * remote-vx.c: Update.
200         * remote-st.c: Update.
201         * remote-sim.c: Update.
202         * remote-sds.c: Update.
203         * remote-rdp.c: Update.
204         * remote-rdi.c: Update.
205         * remote-mips.c: Update.
206         * remote-m32r-sdi.c: Update.
207         * remote-e7000.c: Update.
208         * procfs.c: Update.
209         * ppc-bdm.c: Update.
210         * nto-procfs.c: Update.
211         * monitor.c: Update.
212         * linux-nat.c: Update.
213         * inftarg.c: Update.
214         * hpux-thread.c: Update.
215         * go32-nat.c: Update.
216         * gnu-nat.c: Update.
217         * exec.c: Update.
218         * corelow.c: Update.
219         * bsd-kvm.c: Update.
220         * aix-thread.c: Update.
221
222 2004-10-08  Andrew Cagney  <cagney@gnu.org>
223
224         * target.c (debug_target): Move to near start of file.
225         (target_stopped_data_address_p): Re-org logic, add casts.
226
227 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
228
229         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
230         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
231         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
232         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
233         New defines.
234
235 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
236
237         * target.h (to_stopped_data_address): Change prototype to
238         take a CORE_ADDR pointer and return an int.
239         * target.c (update_current_target): Change to_stopped_data_address
240         to match new prototype.
241         (debug_to_stopped_data_address): Change appropriately.
242         * breakpoint.c (bpstat_stop_status): Change call to
243         target_stopped_data_address to use new prototype.
244         * frv-tdep.c (frv_have_stopped_data_address): New function.
245         (frv_stopped_data_address): Change to new prototype and
246         functionality.
247         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
248         prototype and functionality.
249         (ia64_stopped_by_watchpoint): New function.
250         * i386-nat.c (i386_stopped_data_address): Change to new
251         prototype and functionality.
252         (i386_stopped_by_watchpoint): New function.
253         * remote.c (remote_stopped_data_address): Change to new prototype
254         and functionality.
255         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
256         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
257         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
258         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
259         new i386_stopped_by_watchpoint function.
260         (i386_stopped_by_watchpoint): New prototype.
261         (i386_stoppped_data_address): Change to new prototype.
262         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
263         new ia64_stopped_by_watchpoint function.
264         (ia64_stopped_by_watchpoint): New prototype.
265         (ia64_stopped_data_address): Ditto.
266
267 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
268
269         * ada-typeprint.c (ada_print_type): Use int_string for printing
270         modulus of modular type.
271         * ada-lang.h (ada_modulus): Change return type to unsigned.
272         * ada-lang.c (ada_language_arch_info): Correct type of 
273         string_char_type.
274         (ada_modulus): Return unsigned result.
275         (ada_lookup_symbol): Remove user disambiguation and modify comment 
276         accordingly.
277         
278 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
279
280         Committed by Paul Hilfinger.
281         * ada-lang.c (decode_packed_array): On big-endian targets, 
282         left-justify the value if it comes with a modular type.
283
284 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
285
286         Committed by Paul Hilfinger.
287         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
288         (is_name_suffix): Add support for "___JM" suffixes.
289         (ada_check_typedef): Renames ada_completed_type. 
290         Update all users of CHECK_TYPEDEF, check_typedef, and 
291         ada_complete_type to call ada_check_typedef.
292         * ada-typeprint.c: Likewise.
293         * ada-valprint.c: Likewise.
294
295 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
296
297         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
298
299 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
300
301         * MAINTAINERS: Update e-mail address.
302
303 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
304
305         From Maciej W. Rozycki  <macro@mips.com>:
306         * mips-tdep.c (mips32_next_pc): Check the register's contents,
307         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
308
309 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
310
311         * m32r-tdep.c (decode_prologue): Support functions written
312         in assembler language. Recognize trap instructions as the
313         end of prologue.
314         (m32r_frame_unwind_cache): Ditto.
315         (m32r_skip_prologue): Extend search limit. Quit analyzing
316         prologue if pc's location is not readable.
317
318 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
319
320         * Makefile.in (.l.c): Do conversions of names of alloc and free 
321         functions that are done for .y.c files, plus special one
322         for yy_flex_realloc.  Also, correct missing-file tests here.
323         * ada-lex.l (malloc, free): Remove macros.
324         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
325         xrealloc.
326         (ada_flex_use): Dummy definition to remove warnings about unused
327         functions.
328         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
329         to suppress warning.
330         
331 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
332
333         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
334         RETURN_VALUE.
335         (sh_return_value_fpu): Ditto for CPUs with FPU.
336         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
337         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
338         Install sh_return_value_nofpu resp. sh_return_value_fpu as
339         RETURN_VALUE functions.
340
341 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
342
343         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
344         (sh_pseudo_register_write): Ditto.
345
346 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
347
348         * sh-tdep.c (IS_MACL_STS): New define.
349         (IS_MOVI20): Ditto.
350         (IS_MACL_LDS): Ditto.
351         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
352         instructions in prologue.
353         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
354         instructions in epilogue.
355
356 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
357
358         * sh-tdep.c (SH_NUM_REGS): Define as 67.
359         (sh_sh_register_name): Add eight empty register names.
360         (sh_sh3_register_name): Ditto.
361         (sh_sh3e_register_name): Ditto.
362         (sh_sh2e_register_name): Ditto.
363         (sh_sh2a_register_name): New function, defining SH2A register set.
364         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
365         in nofpu case.
366         (sh_sh_dsp_register_name): Add eight empty register names.
367         (sh_sh3_dsp_register_name): Ditto.
368         (sh_sh4_register_name): Ditto.
369         (sh_sh4_nofpu_register_name): Ditto.
370         (sh_sh4al_dsp_register_name): Ditto.
371         (sh2a_show_regs): New function.
372         (sh2a_nofpu_show_regs): New function.
373         (sh_sh2a_register_type): New function.
374         (do_bank_register_info): New function.
375         (sh_print_pseudo_register): Call do_bank_register_info.
376         Call sh_print_pseudo_register for valid "bank" register.
377         (sh_sh2a_register_sim_regno): New function.
378         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
379         Increment pseudo register count by one for all sh variants with
380         pseudo registers to accomodate pseudo bank register.
381         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
382         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
383         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
384         Increment pseudo register numbers.
385
386 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
387
388         * dwarf2read.c (read_subroutine_type): Call make_function_type
389         instead of lookup_function_type.
390
391 2004-10-05  Jim Blandy  <jimb@redhat.com>
392
393         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
394         (Previous change missed some uses.)
395
396 2004-10-05  Andrew Cagney  <cagney@gnu.org>
397
398         * target.h (deprecated_child_ops): Rename child_ops.
399         * wince.c: Update copyright.  Rename child_ops.
400         * win32-nat.c: Rename child_ops.
401         * target.c: Rename child_ops.
402         * rs6000-nat.c: Rename child_ops.
403         * linux-nat.c: Rename child_ops.
404         * infttrace.c: Rename child_ops.
405         * inftarg.c: Rename child_ops.
406         * infptrace.c: Rename child_ops.
407         * hppah-nat.c: Update copyright.  Rename child_ops.
408         * hpux-thread.c: Update copyright.  Rename child_ops.
409
410 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
411
412         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
413
414 2004-10-05  Andrew Cagney  <cagney@gnu.org>
415
416         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
417
418 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
419
420         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
421         (die_ref_table): Remove.
422         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
423         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
424         the usage of this type.
425         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
426         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
427         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
428         (dwarf2_create_include_psymtab): Update comment.
429         (find_partial_die): Remove third argument.  Remove unreachable call
430         to error ().
431         (dwarf2_find_containing_comp_unit): Update comments.  Change one
432         assertion to an error.  Remove an unreachable error.
433         (dwarf2_find_comp_unit): Update comments.
434         (type_at_offset): Remove dead code.
435         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
436         (store_in_ref_table): Add CU argument.
437         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
438         inter-compilation-unit references.
439         (load_full_comp_unit, process_full_comp_unit): New functions, based
440         on psymtab_to_symtab_1.
441         (psymtab_to_symtab_1): Use them.
442         (dwarf2_add_dependence): New function.
443         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
444         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
445         (partial_die_parent_scope, guess_structure_name): Update for changes
446         to find_partial_die.
447         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
448         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
449         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
450         (read_die_and_children): Update call to store_in_ref_table.
451         (do_free_die_list_cleanup): Remove.
452         (fixup_partial_die): Update for changes to find_partial_die.
453         (read_full_die): Handle queueing absolute references.
454         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
455         (dwarf2_attr, die_specification, die_type)
456         (die_containing_type, dwarf2_extension): Update calls to
457         follow_die_ref.
458         (dump_die): Update DW_FORM_ref* handling.
459         (dwarf2_get_ref_die_offset): Likewise.
460         (free_one_comp_unit): Release the dies list.
461         (dwarf2_mark_helper): New function.
462         (dwarf2_mark): Use it.
463
464 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
465
466         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
467         when writing to memory.
468
469 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
470
471         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
472         (m32r_extract_struct_value_address): Delete function.
473         (m32r_return_value): New function.
474         (m32r_gdbarch_init): Instead of store_return_value,
475         extract_return_value, deprecated_extract_struct_value_address
476         and deprecated_use_struct_convention, set return_value.
477
478 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
479
480         * dwarf2read.c (read_subrange_type): Add comment for variable
481         sized arrays.
482
483 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
484
485         * Makefile.in (.l.c): Modify rule for compatibility with recent
486         versions of flex, and remove most command-line options.
487         * ada-lex.l: Add %options line in place of -I -i and -s command-line
488         options.
489
490 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
491
492         Turn on initial Ada support (mainly expression evaluation).
493         
494         * Makefile.in (SFILES): Remove ada-tasks.c.
495         (HFILES_NO_SRCDIR): Add ada-lang.h.
496         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
497         (YYOBJ): Add ada-exp.o.
498         (rule .l.c): Generalize to not mention ada.
499         * symtab.c: Include ada-lang.h.
500         (symbol_natural_name, symbol_demangled_name)
501         (symbol_search_name): Add Ada case.
502
503 2004-10-01  Andrew Cagney  <cagney@gnu.org>
504
505         * Makefile.in (COMMON_OBS): Add inf-child.o.
506         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
507         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
508         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
509         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
510         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
511         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
512         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
513         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
514         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
515         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
516         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
517         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
518         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
519
520         * target.c (xfer_using_stratum): Change return type to LONGEST.
521         On each iteration offset, readbuf and writebuf.
522         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
523         partial_length, and read/modify/write predicate, update comments.
524         Pass buffer.word to ptrace write.
525
526 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
527
528         * symfile.c (init_filename_language_table): Add extensions for
529         Ada.
530         * defs.h (enum language): Add language_ada.
531         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
532         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
533         (add_symbols_from_enclosing_procs): Make a no-op for now.
534         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
535         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
536         (find_line_in_linetable, find_next_line_in_linetable)
537         (read_all_symtabs, is_plausible_func_for_line)
538         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
539         (is_runtime_sym_defined, check_size): Remove declaration.
540         (function_name_from_pc, ada_translate_error_message)
541         (ada_lookup_minimal_symbol): Remove definition.
542         (ada_add_block_symbols): Remove useless label.
543         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
544         useless declaration.
545         (ada_is_exception_sym): Likewise.
546
547 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
548
549         Add m32r-linux support.
550         * configure.tgt: Add m32r*-*-linux*.
551         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
552         and m32r-linux-tdep.c.
553         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
554         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
555         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
556         m32r-linux-tdep.c.
557         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
558         config/m32r/linux.mh, config/m32r/linux.mt,
559         config/m32r/nm-linux.h: New files.
560
561 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
562
563         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
564         (mips32_fetch_instruction): Remove, unused.
565
566 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
567
568         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
569         conditions that will always be true.
570
571 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
572
573         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
574         (vaxbsd_fetch_inferior_registers): Rename from
575         fetch_inferior_registers.  Make static.
576         (vaxbsd_store_inferior_registers): Rename from
577         store_inferior_registers.  Make static.
578         (_initialize_vaxbsd_nat): Construct and add target vector.
579         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
580         inftarg.o.  Add inf-child.o and inf-ptrace.o.
581         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
582         inftarg.o.  Add inf-child.o and inf-ptrace.o.
583         (NAT_FILE): Remove.
584         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
585         inftarg.o.  Add inf-child.o and inf-ptrace.o.
586         (NAT_FILE): Remove.
587         * Makefile.in (vaxbsd-nat.o): Update dependencies.
588
589         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
590         (m88kbsd_fetch_inferior_registers): Rename from
591         fetch_inferior_registers.  Make static.
592         (m88kbsd_store_inferior_registers): Rename from
593         store_inferior_registers.  Make static.
594         (_initialize_m88kbsd_nat): New prototype and function.
595         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
596         inftarg.o.  Add inf-child.o and inf-ptrace.o.
597         (NAT_FILE): Remove.
598         * Makefile.in (m88kbsd-nat.o): Update dependencies.
599
600 2004-09-30  Andrew Cagney  <cagney@gnu.org>
601
602         * target.c (target_xfer_partial): New function.
603         (target_read_memory_partial, target_write_memory_partial) 
604         (default_xfer_partial, target_read_partial, target_write_partial) 
605         (xfer_using_stratum): Use.
606         (debug_to_xfer_partial): Delete function.
607         (setup_target_debug): Do not override to_xfer_partial.
608
609 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
610
611         * fork-child.c: Update copyright year.  Fix coding style.
612
613 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
614
615         * defs.h (msavestring, mstrsave): Remove prototypes.
616         * utils.c (msavestring, mstrsave): Remove functions.
617         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
618         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
619         of mstrsave.
620         * source.c (find_and_open_source): Use xstrdup instead of
621         mstrsave.
622
623 2004-09-30  Andrew Cagney  <cagney@gnu.org>
624
625         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
626         (inf_ptrace_xfer_memory): Delete.
627         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
628         (target_read_memory, target_write_memory): Use xfer_using_stratum
629         when target_xfer_partial_p.
630         (debug_target): Move to start of file.
631         (target_read_memory_partial, target_write_memory_partial): Use
632         to_xfer_partial when target_xfer_partial_p.
633
634         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
635         inf_ptrace_xfer_memory with equivalent code.
636         * inftarg.c (child_xfer_partial): When performing a write, pass
637         writebuf to child_xfer_memory.
638
639         * target.c (target_read_string): Use target_read_memory instead of
640         target_xfer_memory.
641
642 2004-09-29  Andrew Cagney  <cagney@gnu.org>
643
644         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
645         the address of status.
646
647         * infptrace.c (ptrace_wait): Mention problem with HPUX.
648         (kill_inferior): Inline ptrace_wait call.
649         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
650         * inftarg.c (child_wait): Inline ptrace_wait call.
651
652         * target.h (struct target_ops): Delete field to_post_wait.
653         (target_post_wait): Delete macro.
654         (child_post_wait): Delete declaration.
655         * target.c (update_current_target, update_current_target)
656         (debug_to_post_wait, setup_target_debug): Delete functions and
657         references.
658         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
659         * inftarg.c (child_post_wait): Delete.
660         (init_child_ops): Do not set to_post_wait.
661         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
662         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
663         * inf-child.c (inf_child_post_wait): Delete.
664         (inf_child_target): Do not set to_post_wait.
665         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
666         (inf_ptrace_target): Do not set to_post_wait.
667
668         * wince.c (child_ops): Delete.
669         * win32-nat.c (child_ops): Delete.
670
671         * inftarg.c (inftarg_set_find_memory_regions) 
672         (inftarg_set_make_corefile_notes): Delete functions.
673         (_initialize_linux_nat): Inline calls.
674
675         * target.h (child_ops): Declare.
676         * inftarg.c (child_ops): Move from here ...
677         * target.c (child_ops): ... to here.
678         * wince.c (child_ops): Delete extern declaration.
679         * win32-nat.c (child_ops): Delete extern declaration.
680         * linux-nat.c (child_ops): Delete extern declaration.
681         * hpux-thread.c (child_ops): Delete extern declaration.
682
683 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
684
685         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
686
687 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
688
689         * configure.in: Only set host_makefile_frag when building a native
690         debugger.
691         * configure: Regenerate.
692
693         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
694         for OpenBSD ELF.
695
696 2004-09-28  Andrew Cagney  <cagney@gnu.org>
697
698         Problem identified by Paul Hilfinger.
699         * Makefile.in (ada_lex_c): Define.
700         (ada-lex.o): Delete rule.
701
702         * linux-proc.c: Delete file.
703         * Makefile.in: Update.
704         * config/sparc/linux64.mh (NATDEPFILES): 
705         * config/sparc/linux.mh (NATDEPFILES): Update.
706         * config/s390/s390.mh (NATDEPFILES): Update.
707         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
708         * config/powerpc/linux.mh (NATDEPFILES): Update.
709         * config/pa/linux.mh (NATDEPFILES): Update.
710         * config/mips/linux.mh (NATDEPFILES): Update.
711         * config/m68k/linux.mh (NATDEPFILES): Update.
712         * config/ia64/linux.mh (NATDEPFILES): Update.
713         * config/i386/linux64.mh (NATDEPFILES): Update.
714         * config/i386/linux.mh (NATDEPFILES): Update.
715         * config/arm/linux.mh (NATDEPFILES): Update.
716         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
717         * linux-nat.c: Update copyright.  Include <sys/param.h>,
718         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
719         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
720         (O_LARGEFILE): Possibly define.
721         (_initialize_linux_nat, linux_proc_pending_signals)
722         (add_line_to_sigset, linux_proc_xfer_memory)
723         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
724         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
725         (struct linux_corefile_thread_data)
726         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
727         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
728
729 2004-09-16  Andrew Cagney  <cagney@gnu.org>
730
731         * lin-lwp.c: Delete file.
732         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
733         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
734         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
735         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
736         (linux_nat_attach, detach_callback, linux_nat_detach)
737         (resume_callback, resume_clear_callback, linux_nat_resume)
738         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
739         (stop_wait_callback, linux_nat_has_pending, flush_callback)
740         (status_callback, running_callback, count_events_callback)
741         (select_singlestep_lwp_callback, select_event_lwp_callback)
742         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
743         (child_wait, stop_and_resume_callback, linux_nat_wait)
744         (kill_callback, kill_wait_callback, linux_nat_kill)
745         (linux_nat_create_inferior, linux_nat_mourn_inferior)
746         (linux_nat_xfer_memory, linux_nat_thread_alive)
747         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
748         (_initialize_linux_nat): New functions.
749         * Makefile.in: Update all dependencies.
750         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
751         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
752         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
753         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
754         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
755         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
756         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
757         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
758         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
759         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
760         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
761         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
762         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
763
764 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
765
766         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
767         config/i386/obsd64.mh (NAT_FILE): Remove variable.
768
769         * configure.in: Don't comment out NATDEPFILES in the generated
770         Makefile if NAT_FILE is unset.
771         * configure: Regenerate.
772
773 2004-09-27  Andrew Cagney  <cagney@gnu.org>
774
775         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
776         (insert_step_resume_breakpoint): Delete.
777         (insert_step_resume_breakpoint_at_frame): New function.
778         (insert_step_resume_breakpoint_at_sal): New function.
779         (handle_inferior_event, step_into_function)
780         (insert_step_resume_breakpoint): Simplify by using same.
781
782         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
783
784 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
785
786         * fbsd-proc.c: Remove file.
787         * Makefile.in (fbsd-proc.o): Remove dependency.
788
789         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
790         code together.
791
792         * config/i386/nm-fbsd64.h: Remove file.
793         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
794
795 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
796
797         * amd64-nat.h: Update copyright year.
798         (amd64bsd_target): New prototype.
799         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
800         (amd64bsd_target): New function.
801         (amd64bsd_fetch_inferior_registers): Rename from
802         fetch_inferior_registers.  Make static.
803         (amd64bsd_store_inferior_registers): Rename from
804         store_inferior_registers.  Make static.
805         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
806         (_initialize_amd64fbsd_nat): Construct and add target vector.
807         * amd64nbsd-nat.o: Include "target.h".
808         (_initialize_amd64nbsd_nat): Construct and add target vector.
809         * amd64obsd-nat.c: Include "target.h".
810         (_initialize_amd64obsd_nat): Construct and add target vector.
811         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
812         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
813         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
814         fbsd-nat.o.
815         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
816         Remove infptrace.o and inftarg.o.  Add inf-child.o and
817         inf-ptrace.o.
818         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
819         (amd64obsd-nat.o): Update dependencies.
820
821 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
822
823         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
824         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
825         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
826         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
827         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
828
829         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
830         Inline attach call.
831         (inf_ptrace_detach): Inline detach call.
832
833         * configure.in: Check for waddstr instead of mvwaddstr when
834         searching for curses library.  Check for wborder.
835         * configure, config.in: Regenerate.
836         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
837         available.
838
839         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
840
841 2004-09-24  Robert Picco <Robert.Picco@hp.com>
842
843         Committed by Andrew Cagney.
844         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
845         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
846         configuration.
847         (fetch_register_using_p): Implement 'p' packet.  Based on code by
848         Fernando Nasser.
849         (remote_fetch_registers): Call fetch_register_using_p.
850         (init_all_packet_configs, show_remote_cmd)
851         (_initialize_remote): Add p-packet.
852
853 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
854
855         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
856         instead of call_ptrace.  Call wait directly instead of
857         ptrace_wait.
858         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
859         (inf_ptrace_wait): Inline ptrace_wait call.
860
861 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
862
863         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
864         rolled back instead.
865
866 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
867
868         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
869         the new argument order.
870
871 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
872
873         * MAINTAINERS: Remove "broken" from XStormy16 entry.
874         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
875         (struct gdbarch_tdep): Remove.
876         (struct xstormy16_frame_cache): New frame cache structure.
877         (xstormy16_register_byte, xstormy16_register_raw_size)
878         (xstormy16_reg_virtual_type, xstormy16_register_type)
879         (xstormy16_push_arguments, xstormy16_push_return_address)
880         (xstormy16_pop_frame, xstormy16_store_struct_return)
881         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
882         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
883         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
884         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
885         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
886         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
887         (xstormy16_use_struct_convention): Drop gcc_p parameter.
888         (xstormy16_extract_return_value, xstormy16_store_return_value):
889         Regcachify.  Drop useless struct convention handling.
890         (xstormy16_register_type, xstormy16_return_value)
891         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
892         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
893         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
894         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
895         (xstormy16_unwind_sp, xstormy16_unwind_pc)
896         (xstormy16_unwind_dummy_id) : New functions.
897         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
898         of xstormy16_scan_prologue.
899         (xstormy16_frame_unwind): New frame_unwind structure.
900         (xstormy16_frame_base): New frame_base structure.
901         (xstormy16_gdbarch_init): Accomodate all of the above changes.
902         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
903
904 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
905
906         * language.c (language_gdbarch_post_init): Fix off-by one error.
907
908 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
909
910         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
911         (struct dwarf2_offset_and_type): New.
912         (set_die_type, reset_die_and_siblings_types, get_die_type)
913         (offset_and_type_hash, offset_and_type_eq): New functions.
914         (read_structure_type, read_enumeration_type, read_array_type)
915         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
916         (read_tag_reference_type, read_tag_const_type)
917         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
918         (read_typedef, read_base_type, read_subrange_type): Use
919         set_die_type.
920
921 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
922
923         * Makefile.in (dwarf2read.o): Update dependencies.
924         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
925         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
926         and read_in_chain.
927         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
928         mark, and has_form_ref_addr.
929         (struct dwarf2_per_cu_data): New.
930         (dwarf2_max_cache_age): New.
931         (dwarf2_build_psymtabs_hard): Free cached compilation units
932         after loading.  Create and manage the list of compilation units.
933         Remove unnecessary NULL initialization.  Fix indentation.
934         (psymtab_to_symtab_1): Initialize all of CU.
935         (dwarf2_read_abbrevs): Set has_form_ref_addr.
936         (find_partial_die): Use dwarf2_find_containing_comp_unit
937         and load_comp_unit.
938         (free_stack_comp_unit): Update comments.  Clear the per-cu
939         pointer.  Handle aging.
940         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
941         (age_cached_comp_units, free_one_cached_comp_unit)
942         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
943         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
944         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
945         (show_dwarf2_cmd): New.
946         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
947         and "maint show dwarf2 max-cache-age".
948         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
949         externs.
950         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
951         global.
952
953 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
954
955         * dwarf2read.c (typename_concat): Change prototype to accept obstack
956         and dwarf2_cu struct pointer as arguments.  Change function to use
957         obstack if provided and use dwarf2_cu to determine language-specific
958         separator.
959         (partial_die_parent_scope): Change comment to include java.  Use
960         new version of typename_concat instead of obconcat.
961         (partial_die_full_name): Use typename_concat.
962         (read_namespace): Ditto.
963         (read_enumeration_type): Use typename_concat instead of obconcat.
964         (new_symbol): Ditto.
965         (add_partial_symbol): Enhance tests for C++ to also test for Java.
966         (guess_structure_name): Ditto.
967         (read_subroutine_type): Ditto.
968         (read_structure_type): Ditto.
969         (is_vtable_name): Add Java support.
970         (determine_class_name): Switch to new typename_concat call.
971         (determine_prefix): Switch to new typename_concat call.
972         * jv-exp.y (FuncStart): New pattern.
973         (MethodInvocation): Add support for simple function calls.  Change
974         warning message for other forms of inferior call currently not
975         supported.
976         * valarith.c (value_subscript): Treat an array with upper-bound
977         of -1 as unknown size.
978
979 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
980
981         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
982         (lookup_partial_symtab): Use symtab_to_fullname.
983
984 2004-09-19  Jim Blandy  <jimb@redhat.com>
985
986         * minsyms.c (lookup_minimal_symbol): Doc fix.
987
988 2004-09-20  Andrew Cagney  <cagney@gnu.org>
989
990         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
991         CHILD_RESUME.
992         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
993         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
994         KILL_INFERIOR.
995         * infptrace.c: Update.
996
997 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
998
999         * symtab.c (output_source_filename): Mark first argument as const.
1000         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1001         for "info sources" output.
1002
1003 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
1004
1005         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1006         <machine/vmparam.h>.
1007         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1008         (register_u_addr): Remove prototype.
1009
1010 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
1011
1012         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1013         (i386bsd_fetch_inferior_registers): Rename from
1014         fetch_inferior_registers.  Make static.
1015         (i386bsd_store_inferior_registers): Rename from
1016         store_inferior_registers.  Make static.
1017         (i386bsd_target): New function.
1018         * i386bsd-nat.h: New file.
1019         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1020         "i386bsd-nat.h".
1021         (i386fbsd_resume): Rename from child_resume.  Make static.
1022         (_initialize_i386fbsd_nat): Construct and add target vector.
1023         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1024         (_initialize_i386nbsd_nat): Construct and add target vector.
1025         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1026         Remove defines.
1027         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1028         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
1029         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1030         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1031         (LOADLIBES): New variable.
1032         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1033         inf-ptrace.o.  Remove inftarg.o.
1034         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1035         inf-ptrace.o. Remove inftarg.o.
1036         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1037         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
1038         (LOADLIBES): New variable.
1039         * Makefile.in (i386bsd_nat_h): New variable.
1040         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1041         dependencies.
1042
1043         * sparc64nbsd-tdep.c: Include "objfiles.h".
1044         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1045         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1046         svr4_lp64_fetch_link_map_offsets.
1047         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
1048         "nbsd-tdep.h".
1049         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1050         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
1051         svr4_lp64_fetch_link_map_offsets.
1052         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1053         dependencies.
1054
1055         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1056         * fbsd-nat.h: New file.
1057         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1058         (fbsd_nat_h): New variable.
1059         (fbsd-nat.o): New dependency.
1060
1061         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1062         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1063
1064         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1065         comment.
1066
1067 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1068         
1069         * ada-exp.y (type_int): New function to add layer of abstraction
1070         around references to expression types.
1071         (type_long): Ditto.
1072         (type_long_long): Ditto.
1073         (type_float): Ditto.
1074         (type_double): Ditto.
1075         (type_long_double): Ditto.
1076         (type_char): Ditto.
1077         (type_system_address): Ditto.
1078         (simple_exp): Use type_* functions in place of builtin_* 
1079         variables.
1080         (exp): Ditto.
1081         (write_var_from_name): Ditto.
1082         (write_object_renaming): Ditto.
1083         * ada-lang.c (ada_create_fundamental_type): Remove redundant
1084         declaration.
1085         (build_ada_types): Remove, replacing with...
1086         (ada_language_arch_info): New function to initialize primitive
1087         type vector in language_arch_info.
1088         (ada_array_length): Remove use of builtin_type_ada_int.
1089         (value_pos_atr): Ditto.
1090         (ada_evaluate_subexp): Ditto.
1091         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1092         builtin_type_ada_long_long, builtin_type_ada_char, 
1093         builtin_type_ada_float, builtin_type_ada_double, 
1094         builtin_type_ada_long_double, builtin_type_ada_natural,
1095         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1096         (ada_builtin_types): Remove.
1097         (ada_language_defn): Remove entries for la_builtin_type_vector and
1098         string_char_type and use ada_language_arch_info.
1099         (_initialize_ada_language): Do type-vector initialization along
1100         the lines of c-lang.c.
1101         (ada_create_fundamental_type): Break up line.
1102         (ada_dump_symtab): Remove unused function.
1103         (enum ada_primitive_types): Define.
1104         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
1105         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
1106         builtin_type_ada_float, builtin_type_ada_double, 
1107         builtin_type_ada_long_double, builtin_type_ada_natural,
1108         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1109         * ada-lex.l: Use type_* functions in place of builtin_* variables.
1110         (processInt): Ditto.
1111         (processReal): Ditto.
1112         (name_lookup): Ditto.
1113         * ada-typeprint.c (print_range): Use builtin_type_int, not
1114         builtin_type_ada_int.
1115         
1116 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
1117
1118         * i386-tdep.c (i386_register_name): Rename regno to regnum.
1119
1120         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1121         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1122         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1123         * configure.in: Improve checks for curses library by checking for
1124         mvwaddstr instead of initscr.  Drop HP curses in favour of
1125         standard curses on HP-UX.
1126         * configure: Regenerated.
1127
1128 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
1129
1130         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1131         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
1132         Minor formatting changes.
1133         (empty_array): Slight rewrite for formatting.
1134         (emit_char,parse,ada_language_defn,build_ada_types,
1135         ada_is_exception_sym, _initialize_ada_language): Move 
1136         definitions around.
1137         (ada_dump_symtab): Remove unused definition.
1138         (ada_maybe_exception_partial_symbol): Remove unused definition.
1139
1140 2004-09-16  Andrew Cagney  <cagney@gnu.org>
1141
1142         * inf-child.c: Include "gdb_string.h".
1143         (inf_child_core_file_to_sym_file): Delete.
1144         (inf_child_target): Set to_fetch_registers and to_store_registers.
1145         * inf-ptrace.c: Include "gdb_string.h".
1146         * Makefile.in: Update all dependencies.
1147
1148         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1149         problem.
1150
1151 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
1152
1153         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1154         call to heuristic_proc_desc. Remove code that became redundant
1155         as a consequence.
1156         (read_next_frame_reg): Remove special case for SP_REGNUM.
1157         (set_reg_offset): Fix small typo.
1158         (reset_saved_regs): New procedure.
1159         (mips32_heuristic_proc_desc): No longer compute a fake
1160         procedure descriptor. Compute the full frame cache instead.
1161         Some minor comment reformatting.
1162
1163 2004-09-14  Andrew Cagney  <cagney@gnu.org>
1164
1165         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1166         maintainer.
1167
1168         * thread-db.c (thread_db_new_objfile): Assume that there is a
1169         child process.
1170
1171 2004-09-13  Jim Blandy  <jimb@redhat.com>
1172
1173         * valops.c (value_assign): Move 'buffer' to the enclosing block,
1174         so that its storage isn't referenced after its lifetime ends.
1175
1176         * valops.c (value_assign): 'use_buffer' is initialized to zero,
1177         and never assigned to.   Delete it, and the 'if (use_buffer)'
1178         clauses.  Delete 'raw_buffer', since it is now unused.
1179
1180 2004-09-13  Andrew Cagney  <cagney@gnu.org>
1181
1182         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1183         * configure: Re-generate.
1184         * nlm/Makefile.in (TAGS): Update.
1185         * Makefile.in (TAGS): Update.
1186         * config/vax/nbsd.mt (TM_FILE): Update.
1187         * config/sparc/vxworks.mt (TM_FILE): Update.
1188         * config/sparc/sol2.mt (TM_FILE): Update.
1189         * config/sparc/sol2-64.mt (TM_FILE): Update.
1190         * config/sparc/obsd64.mt (TM_FILE): Update.
1191         * config/sparc/obsd.mt (TM_FILE): Update.
1192         * config/sparc/nbsd64.mt (TM_FILE): Update.
1193         * config/sparc/nbsd.mt (TM_FILE): Update.
1194         * config/sparc/linux64.mt (TM_FILE): Update.
1195         * config/sparc/linux.mt (TM_FILE): Update.
1196         * config/sparc/fbsd.mt (TM_FILE): Update.
1197         * config/sh/wince.mt (TM_FILE): Update.
1198         * config/sh/nbsd.mt (TM_FILE): Update.
1199         * config/sh/linux.mt (TM_FILE): Update.
1200         * config/sh/embed.mt (TM_FILE): Update.
1201         * config/s390/s390.mt (TM_FILE): Update.
1202         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1203         * config/rs6000/rs6000.mt (TM_FILE): Update.
1204         * config/rs6000/aix4.mt (TM_FILE): Update.
1205         * config/powerpc/vxworks.mt (TM_FILE): Update.
1206         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1207         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1208         * config/powerpc/obsd.mt (TM_FILE): Update.
1209         * config/powerpc/nbsd.mt (TM_FILE): Update.
1210         * config/powerpc/linux.mt (TM_FILE): Update.
1211         * config/powerpc/aix.mt (TM_FILE): Update.
1212         * config/pa/obsd.mt (TM_FILE): Update.
1213         * config/pa/linux.mt (TM_FILE): Update.
1214         * config/pa/hppahpux.mt (TM_FILE): Update.
1215         * config/pa/hppa64.mt (TM_FILE): Update.
1216         * config/pa/hppa.mt (TM_FILE): Update.
1217         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1218         * config/mips/wince.mt (TM_FILE): Update.
1219         * config/mips/vxmips.mt (TM_FILE): Update.
1220         * config/mips/nbsd.mt (TM_FILE): Update.
1221         * config/mips/linux.mt (TM_FILE): Update.
1222         * config/mips/irix6.mt (TM_FILE): Update.
1223         * config/mips/irix5.mt (TM_FILE): Update.
1224         * config/mips/embed.mt (TM_FILE): Update.
1225         * config/m68k/vxworks68.mt (TM_FILE): Update.
1226         * config/m68k/st2000.mt (TM_FILE): Update.
1227         * config/m68k/os68k.mt (TM_FILE): Update.
1228         * config/m68k/obsd.mt (TM_FILE): Update.
1229         * config/m68k/nbsd.mt (TM_FILE): Update.
1230         * config/m68k/monitor.mt (TM_FILE): Update.
1231         * config/m68k/linux.mt (TM_FILE): Update.
1232         * config/m68k/cisco.mt (TM_FILE): Update.
1233         * config/ia64/linux.mt (TM_FILE): Update.
1234         * config/ia64/aix.mt (TM_FILE): Update.
1235         * config/ia64/ia64.mt (TM_FILE): Update.
1236         * config/i386/vxworks.mt (TM_FILE): Update.
1237         * config/i386/obsd64.mt (TM_FILE): Update.
1238         * config/i386/obsd.mt (TM_FILE): Update.
1239         * config/i386/nto.mt (TM_FILE): Update.
1240         * config/i386/nbsd64.mt (TM_FILE): Update.
1241         * config/i386/nbsd.mt (TM_FILE): Update.
1242         * config/i386/linux64.mt (TM_FILE): Update.
1243         * config/i386/linux.mt (TM_FILE): Update.
1244         * config/i386/i386sol2.mt (TM_FILE): Update.
1245         * config/i386/i386lynx.mt (TM_FILE): Update.
1246         * config/i386/fbsd64.mt (TM_FILE): Update.
1247         * config/i386/fbsd.mt (TM_FILE): Update.
1248         * config/i386/cygwin.mt (TM_FILE): Update.
1249         * config/h8300/h8300.mt (TM_FILE): Update.
1250         * config/frv/frv.mt (TM_FILE): Update.
1251         * config/cris/cris.mt (TM_FILE): Update.
1252         * config/arm/wince.mt (TM_FILE): Update.
1253         * config/arm/nbsd.mt (TM_FILE): Update.
1254         * config/arm/linux.mt (TM_FILE): Update.
1255         * config/arm/embed.mt (TM_FILE): Update.
1256         * config/alpha/nbsd.mt (TM_FILE): Update.
1257         * config/alpha/fbsd.mt (TM_FILE): Update.
1258         * config/alpha/alpha.mt (TM_FILE): Update.
1259         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1260         * config/alpha/alpha-linux.mt (TM_FILE): Update.
1261
1262         Eliminate event_loop_p, always has the value 1.
1263         * defs.h (event_loop_p): Delete macro.
1264         * breakpoint.c (until_break_command): Simplify.
1265         * utils.c (prompt_for_continue): Simplify.
1266         * tracepoint.c (read_actions): Simplify.
1267         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
1268         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
1269         (set_prompt, init_main): Simplify.
1270         (init_signals, disconnect): Delete, unused.
1271         * remote.c (remote_async_resume) 
1272         (extended_remote_async_create_inferior): Simplify.
1273         * mi/mi-interp.c (mi_input): Delete, unused.
1274         (mi_interpreter_resume, mi_command_loop): Simplify.
1275         * interps.c (current_interp_command_loop): Simplify.
1276         * infrun.c (proceed): Simplify.
1277         * infcmd.c (run_command, continue_command, step_1, jump_command)
1278         (until_command, advance_command, finish_command)
1279         (interrupt_target_command): Simplify.
1280         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1281
1282         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1283         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1284         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1285         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1286         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1287         * mips-tdep.c (mips_dump_tdep): Do not print same.
1288
1289 2004-09-12  Andrew Cagney  <cagney@gnu.org>
1290
1291         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
1292         const.
1293         * Makefile.in (valprint.o): Delete explict rule.
1294
1295         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
1296         reported by Dave Anderson.
1297
1298         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1299
1300         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1301
1302 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
1303             Andrew Cagney  <cagney@gnu.org>
1304
1305         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1306         (mi_cmd_data_list_register_values)
1307         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1308         the register number computation.
1309
1310 2004-09-12  Andrew Cagney  <cagney@gnu.org>
1311
1312         * ppcnbsd-nat.c: Include "inf-ptrace.h".
1313         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1314         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1315         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1316         target.
1317         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1318         inf-ptrace.o and inf-child.o.
1319         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1320         * Makefile.in: Update dependencies.
1321         
1322 2004-09-11  Andrew Cagney  <cagney@gnu.org>
1323
1324         * language.c (hex_string, hex_string_custom): Move from here ...
1325         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1326         (CELLSIZE): Increase to 50.
1327         * language.h (hex_string, hex_string_custom): Move from here ...
1328         * defs.h: ... to here.
1329         * Makefile.in: Update all dependencies.
1330         
1331 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
1332
1333         * language.c (local_hex_format_custom): Remove.
1334         (local_hex_string): Rename to hex_string, use C format, and move to
1335         utils.c
1336         (local_hex_string_custom): Rename to hex_string_custom and change
1337         interface.  Now uses C format.  Move to utils.c
1338         (local_octal_format_custom): Remove.
1339         (local_decimal_format_custom): Remove.
1340         (unknown_language_defn): Remove language-specific number 
1341         formatting entries.
1342         (auto_language_defn): Ditto.
1343         (local_language_defn): Ditto.
1344         * language.h (struct language_format_info): Delete declaration.
1345         (struct language_defn): Remove language_format_info fields
1346         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1347         (local_binary_format): Remove macro.
1348         (local_binary_format_prefix): Remove macro.
1349         (local_binary_format_specifier): Remove macro.
1350         (local_binary_format_suffix): Remove macro.
1351         (local_octal_format): Remove macro.
1352         (local_octal_format_prefix): Remove macro.
1353         (local_octal_format_specifier): Remove macro.
1354         (local_octal_format_suffix): Remove macro.
1355         (local_decimal_format): Remove macro.
1356         (local_decimal_format_prefix): Remove macro.
1357         (local_decimal_format_specifier): Remove macro.
1358         (local_decimal_format_suffix): Remove macro.
1359         (local_hex_format): Remove macro.
1360         (local_hex_format_prefix): Remove macro.
1361         (local_hex_format_specifier): Remove macro.
1362         (local_hex_format_suffix): Remove macro.
1363         (local_decimal_format_custom): Remove.
1364         (local_octal_format_custom): Remove.
1365         (local_hex_format_custom): Remove.
1366         (local_hex_string): Rename to hex_string and move to defs.h.
1367         (local_hex_string_custom): Rename to hex_string_custom, change
1368         interface, and move to defs.h.
1369         * utils.c: (int_string): New function.
1370         (hex_string): New function (from language.c).
1371         (hex_string_custom): New function (from language.c).
1372         (octal2str): New function.
1373         (decimal2str): Add width parameter.
1374         (paddr_u): Use new decimal2str interface.
1375         (paddr_d): Ditto.
1376         * defs.h (hex_string): Declare.
1377         (hex_string_custom): Declare.
1378         (int_string): Declare.
1379         * printcmd.c (print_scalar_formatted): Remove localized binary
1380         formatting.
1381         * valprint.c (print_longest): Use int_string.
1382         (print_floating): Use C hex format.
1383         (print_hex_chars): Ditto.
1384         (print_binary_chars): Remove language-specific formatting.
1385         (print_octal_chars): Use C octal format.
1386         (print_decimal_chars): Delocalize format.
1387         (print_decimal): Remove.
1388         * ada-lang.c (ada_language_defn): Remove language-specific number 
1389         formatting entries.
1390         * p-lang.c (pascal_language_defn): Ditto.
1391         * c-lang.c (c_language_defn): Ditto.
1392         (cplus_language_defn): Ditto.
1393         (asm_language_defn): Ditto.
1394         (minimal_language_defn): Ditto.
1395         * f-lang.c (f_language_defn): Ditto.
1396         * jv-lang.c (java_language_defn): Ditto.
1397         * m2-lang.c (m2_language_defn): Ditto.
1398         * scm-lang.c (scm_language_defn): Ditto.
1399         * objc-lang.c (objc_language_defn): Ditto.
1400         * memattr.c (mem_info_command): Use renamed hex_string_custom with
1401         new interface.
1402         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1403         * ui-out.c (ui_out_field_core_addr): Ditto.
1404         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1405         * exec.c (print_section_info): Ditto.
1406         * i387-tdep.c (print_i387_status_word): Ditto.
1407         (print_i387_control_word): Ditto.
1408         (i387_print_float_info): Ditto.
1409         * maint.c (maint_print_section_info): Ditto.
1410         * solib.c (info_sharedlibrary_command): Ditto.
1411         * somsolib.c (som_sharedlibrary_info_command): Ditto.
1412         * symtab.c (print_msymbol_info): Ditto.
1413         * tracepoint.c (tracepoints_info): Ditto.
1414         * solib-frv.c (lm_base): Ditto.
1415         (frv_current_sos): Ditto.
1416         (enable_break2): Ditto.
1417         (enable_break): Ditto.
1418         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1419         (process_one_symbol): Ditto.
1420         * infcmd.c (program_info): Ditto.
1421         * mdebugread.c (parse_partial_symbols): Ditto.
1422         * symfile.c (add_symbol_file_command): Ditto.
1423         * cli/cli-cmds.c (edit_command): Ditto.
1424         (list_command): Ditto.
1425         * infcall.c (call_function_by_hand): Ditto.
1426         * remote-vx.c (vx_run_files_info): Ditto.
1427         (vx_wait): Ditto.
1428         (vx_attach): Ditto.
1429         (vx_detach): Ditto.
1430         (vx_kill): Ditto.
1431         * aix-thread.c (pdc_symbol_addrs): Ditto.
1432         (pdc_read_regs): Ditto.
1433         (pdc_write_regs): Ditto.
1434         (pdc_read_data): Ditto.
1435         (pdc_write_data): Ditto.
1436         * d10v-tdep.c (display_trace): Ditto.
1437         * rs6000-nat.c (find_toc_address): Ditto.
1438         * aix-thread.c: Don't include language.h.
1439         * buildsym.c: Ditto.
1440         * dbxread.c: Ditto.
1441         * mdebugread.c: Ditto.
1442         * rs6000-nat.c: Ditto.
1443         * buildsym.c (make_blockvector): Use renamed hex_string.
1444         
1445 2004-09-10  Jason Molenda  (jmolenda@apple.com)
1446
1447         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1448         chars after 'if' or 'while' commands in user-defined commands.
1449
1450 2004-09-08  Jim Blandy  <jimb@redhat.com>
1451
1452         Fix bug reported and analyzed by Olivier Crete:
1453         * symfile.c (copy_section_addr_info): New function.
1454         (symbol_file_add_with_addrs_or_offsets): Use it to save the
1455         original set of address arguments, instead of handwritten code
1456         that uses one length to allocate and a different length to
1457         initialize.  Use make_cleanup_free_section_addr_info.
1458         * symfile.h (copy_section_addr_info): New declaration.
1459         * utils.c: #include "symfile.h".
1460         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1461         New functions.
1462         * defs.h (make_cleanup_free_section_addr_info): New declaration.
1463         * Makefile.in (utils.o): Update dependencies.
1464
1465 2004-09-08  Andrew Cagney  <cagney@gnu.org>
1466
1467         * thread-db.c (keep_thread_db): Delete.
1468         (thread_db_new_objfile, thread_db_create_inferior)
1469         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1470
1471 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
1472
1473         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1474         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1475         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1476         (i386_frameless_signal_p): Remove prototype.
1477         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1478         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1479         I386_SSE_NUM_REGS.
1480         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1481         instead of FP0_REGNUM.
1482         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1483         of FP0_REGNUM and FPC_REGNUM.
1484
1485         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1486         (sunos_solib_create_inferior_hook): Don't call
1487         sunos_relocate_main_executable.
1488
1489         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1490         solib_svr4_fetch_link_map_offsets to
1491         svr4_ilp32_fetch_link_map_offsets.
1492         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1493         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1494         svr4_ilp32_fetch_link_map_offsets.
1495         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1496
1497 2004-09-07  Jim Blandy  <jimb@redhat.com>
1498
1499         * frame.h (frame_register): Doc fix.
1500
1501 2004-09-07  Andrew Cagney  <cagney@gnu.org>
1502
1503         * vx-share/wait.h: Delete #ifdef USG.
1504         * utils.c (request_quit): Ditto.
1505         * tui/tui.c (tui_reset): Ditto.
1506         * remote.c: Ditto.
1507         * remote-sds.c: Ditto.
1508         * remote-rdi.c: Ditto.
1509         * mdebugread.c: Ditto.
1510         * m68klinux-nat.c: Ditto.
1511         * infttrace.c: Ditto.
1512         * infptrace.c: Ditto.
1513         * i386v-nat.c: Ditto.
1514         * exec.c: Ditto.
1515         * dbxread.c: Ditto.
1516         * core-aout.c: Ditto.
1517
1518 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
1519
1520         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1521         heuristic_proc_desc.
1522         (mips_insn32_frame_cache): Likewise.
1523
1524 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1525
1526         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1527         left behind by error.
1528
1529 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1530
1531         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1532         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1533
1534 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1535
1536         * config/rs6000/xm-aix4.h: Remove this file.
1537         * config/rs6000/aix4.mh (XM_FILE): Delete.
1538
1539 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
1540
1541         * config/rs6000/xm-rs6000.h: Remove this file.
1542         * config/rs6000/rs6000.mh (XM_FILE): Remove.
1543
1544 2004-09-03  Andrew Cagney  <cagney@gnu.org>
1545
1546         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1547         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1548         only use.
1549
1550         * mips-tdep.c (temp_saved_regs): Delete.
1551         (set_reg_offset): Replace saved_regs parameter with this_cache.
1552         (heuristic_proc_desc, mips16_heuristic_proc_desc)
1553         (mips32_heuristic_proc_desc): Add this_cache parameter.
1554         (mips_insn32_frame_cache, mips_insn16_frame_cache)
1555         (after_prologue): Pass a NULL this_cache.
1556
1557         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1558         non-kernel trap prologues.
1559
1560         * mips-tdep.c (find_proc_desc): Delete function.
1561         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1562         simplify.
1563         (mips_insn16_frame_cache): Replace find_proc_desc with code from
1564         mips_insn32_frame_cache.
1565
1566         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1567         Simplify as NEXT_FRAME is NULL.
1568         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1569
1570         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1571         local variable.
1572         (mips_skip_prologue): Update.
1573
1574         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1575         "cur_frame" parameter.
1576         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1577         (mips_insn32_frame_cache, find_proc_desc): Update
1578
1579         * config/vax/nm-obsd.h: Delete file.
1580         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1581         * config/vax/nm-nbsd.h: Delete file.
1582         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1583         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1584         * config/sh/nm-nbsd.h: Delete file.
1585         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1586         * config/rs6000/nm-rs6000ly.h: Delete file.
1587         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1588         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1589         * config/powerpc/nm-obsd.h: Delete file.
1590         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1591         * config/powerpc/nm-nbsd.h: Delete file.
1592         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1593         * config/pa/nm-obsd.h: Delete file.
1594         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1595         * config/mips/nm-nbsd.h: Delete file.
1596         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1597         * config/m88k/nm-obsd.h: Delete file.
1598         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1599         * config/m68k/nm-nbsd.h: Delete file.
1600         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1601         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1602         * config/i386/nm-nbsd.h: Delete file.
1603         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1604         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1605         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1606         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1607         * config/i386/nm-i386lynx.h: Delete file.
1608         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1609         * config/arm/nm-nbsd.h: Delete file.
1610         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1611         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1612
1613         * config/i386/tm-fbsd.h: Delete file.
1614         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1615         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1616
1617         * config/rs6000/tm-rs6000-aix4.h: Delete file.
1618         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1619         * config/rs6000/aix4.mt (TM_FILE): Set to
1620         config/rs6000/tm-rs6000.h.
1621         * config/powerpc/tm-ppc-aix.h: Delete file.
1622         * config/powerpc/aix.mt (TM_FILE): Set to
1623         config/rs6000/tm-rs6000.h.
1624         * config/m68k/tm-linux.h: Delete file.
1625         * config/m68k/linux.mt (TM_FILE): Set to solib.h
1626         * config/i386/tm-linux64.h: Delete file.
1627         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1628         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1629         
1630         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1631         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1632         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1633         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1634         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1635         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1636         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1637         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
1638         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1639
1640         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1641         gdb_host_cpu.
1642
1643 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
1644
1645         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1646         Minor reformatting. Some code factoring.
1647
1648 2004-09-02  Andrew Cagney  <cagney@gnu.org>
1649
1650         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1651         * config/vax/tm-nbsd.h: Delete file.
1652         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1653         * config/sparc/tm-vxworks.h: Delete file.
1654         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1655         * config/sparc/tm-nbsd.h: Delete file.
1656         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1657         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1658         * config/sparc/tm-linux.h: Delete file.
1659         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1660         * config/s390/tm-linux.h: Delete file.
1661         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1662         * config/pa/tm-bsd.h: Delete file.
1663         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1664         * config/m68k/tm-obsd.h: Delete file.
1665         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1666         * config/m68k/tm-nbsd.h: Delete file.
1667         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1668         * config/i386/tm-vxworks.h: Delete file.
1669         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1670         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1671         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1672         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1673         * config/i386/tm-nbsd.h: Delete file.
1674         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1675         * config/i386/tm-i386lynx.h: Delete file.
1676         * config/cris/cris.mt (TM_FILE): Set to solib.h.
1677         * config/cris/tm-cris.h: Delete file.
1678
1679         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1680         * configure: Re-generate.
1681         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1682         * config/arm/tm-nbsd.h: Delete file.
1683         
1684         * config/powerpc/tm-ppcle-sim.h: Delete.
1685         * config/powerpc/tm-ppcle-eabi.h: Delete.
1686         * config/powerpc/tm-nbsd.h: Delete.
1687         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1688         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1689         tm-ppcle-eabi.h.
1690
1691         * config/i386/nto.mh (NAT_FILE): Delete.
1692         * config/i386/nm-nto.h: Delete.
1693
1694         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1695         * config/m68k/tm-os68k.h: Ditto.
1696         * config/m68k/tm-monitor.h: Ditto.
1697         * config/m68k/tm-cisco.h: Ditto.
1698         * config/m68k/st2000.mt (TM_FILE): Delete.
1699         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1700         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1701         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1702         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1703
1704         * config/m68k/tm-st2000.h: Delete.
1705         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1706         * config/sparc/fbsd.mt (TM_FILE): Delete.
1707         * config/sparc/tm-fbsd.h: Delete.
1708
1709         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1710         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
1711         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1712
1713         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1714         GDB_TM_FILE and GDB_XM_FILE.
1715         * gdbarch.c: Re-generate.       
1716         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1717         quotes in macro definition.
1718         * configure.in: Re-generate.
1719
1720         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1721         validating architecture methods.
1722         * gdbarch.c: Re-generate.
1723         
1724         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1725         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
1726         GDB_MULTI_ARCH_PARTIAL.
1727         * gdbarch.h: Re-generate.
1728         
1729         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1730         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1731         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1732         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1733         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1734         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1735         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1736         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1737         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1738         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1739         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1740         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1741
1742 2004-09-01  Andrew Cagney  <cagney@gnu.org>
1743
1744         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1745         and main_func_highpc.
1746         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1747         * objfiles.c (init_entry_point_info, objfile_relocate): Update
1748         * nlmread.c (nlm_symfile_read): Update.
1749
1750 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
1751
1752         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1753         (mips_insn32_frame_cache): Inline call to find_proc_desc.
1754         (find_proc_desc): Remove dead code.
1755
1756 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
1757
1758         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1759
1760 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
1761
1762         * observer.sh: Add struct so_list declaration.
1763         * Makefile.in: Add dependencies on observer.h for solib.c and
1764         breakpoint.c.
1765         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1766         function.
1767         (_initialize_breakpoint): Register 
1768         disable_breakpoints_in_unloaded_shlib as an observer of the 
1769         "solib unloaded" observation event.
1770         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1771         call decode_line_1 so unfound breakpoint errors are silent.
1772         * solib.c (update_solib_list): When a solib is discovered to have
1773         been unloaded by the program, notify all observers of the
1774         "solib unloaded" observation event.
1775
1776 2004-09-01  Andrew Cagney  <cagney@gnu.org>
1777
1778         * frame.c: Include "objfiles.h".
1779         (inside_main_func): New function.
1780         (get_prev_frame): Use new inside_main_func.
1781         * Makefile.in (frame.o): Update dependencies.
1782         * defs.h (inside_main_func): Delete declaration.
1783         * blockframe.c (inside_main_func): Delete function.
1784
1785 2004-08-31  Jim Blandy  <jimb@redhat.com>
1786
1787         * dwarf2read.c (is_vtable_name): New function, based on logic from
1788         read_structure_type, but passing the correct length to strncmp,
1789         and using 'sizeof' instead of 'strlen'.
1790         (read_structure_type): Call it.
1791
1792 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
1793
1794         * config/powerpc/aix.mh: Add comment.
1795
1796 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
1797
1798         * MAINTAINERS: Add self to Write-After-Approval.
1799
1800 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
1801
1802         * MAINTAINERS: Add self to Write-After-Approval.
1803
1804 2004-08-30  Andrew Cagney  <cagney@gnu.org>
1805
1806         Fix PR breakpoints/1757.
1807         * infrun.c (struct execution_control_state): Replace
1808         remove_breakpoints_on_following_step with
1809         step_after_step_resume_breakpoint.
1810         (init_execution_control_state): Update.
1811         (handle_inferior_event): For signals, when stepping off a
1812         breakpoint, set step_after_step_resume_breakpoint.  When
1813         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1814         (keep_going): Delete code handling
1815         remove_breakpoints_on_following_step.
1816
1817 2004-08-29  David Lecomber  <david@streamline-computing.com>
1818         
1819         Fix PR gdb/648
1820         * language.h (enum array_ordering): New enum.
1821         * language.h (struct language_defn): New la_array_ordering 
1822         attribute.
1823         * language.c (unknown_language_defn, auto_language_defn)
1824         (local_language_defn): Ditto.
1825         * ada-lang.c (ada_language_defn): Ditto.
1826         * c-lang.c (c_language_defn, cplus_language_defn)
1827         (asm_language_defn, minimal_language_defn): Ditto.
1828         * f-lang.c (f_language_defn): Ditto.
1829         * jv-lang.c (java_language_defn): Ditto.
1830         * m2-lang.c (f_language_defn): Ditto.
1831         * objc-lang.c (objc_language_defn): Ditto.
1832         * p-lang.c (pascal_language_defn): Ditto.
1833         * scm-lang.c (scm_language_defn): Ditto.
1834         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1835         oriented large to small in type structure.
1836         * dwarf2read.c (read_array_order): New function.
1837         (read_array_type): Use read_array_order to check row/column
1838         major ordering.
1839
1840 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
1841
1842         * target.c (target_resize_to_sections): Check
1843         current_target.to_sections for an old value when updating.
1844
1845 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
1846
1847         * procfs.c (dbx_link_bpt_addr): New static global variable.
1848         (dbx_link_shadow_contents): New static global variable.
1849         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1850         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1851         if we just hit it.
1852         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1853         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1854         from run to run.
1855         (procfs_create_inferior): Remove syssgi syscall-exit notifications
1856         after the inferior has been forked.
1857         (remove_dbx_link_breakpoint): New function.
1858         (dbx_link_addr): New function.
1859         (insert_dbx_link_bpt_in_file): New function.
1860         (insert_dbx_link_bpt_in_region): New function.
1861         (insert_dbx_link_breakpoint): New function.
1862         (proc_trace_syscalls_1): New function, extracted from
1863         proc_trace_syscalls.
1864         (proc_trace_syscalls): Replace extract code by call to
1865         proc_trace_syscalls_1.
1866         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1867         is no longer valid.
1868
1869 2004-08-25  Jim Blandy  <jimb@redhat.com>
1870
1871         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1872
1873 2004-08-25  Andrew Cagney  <cagney@gnu.org>
1874
1875         * infrun.c (struct execution_control_state): Delete field
1876         "stepping_through_sigtramp".
1877         (init_execution_control_state): Do not set same.
1878         (context_switch): Do not pass same to save_infrun_state and
1879         load_infrun_state.
1880         * gdbthread.h (struct thread_info): Delete field
1881         stepping_through_sigtramp.
1882         (save_infrun_state, load_infrun_state): Delete parameter
1883         stepping_through_sigtramp.
1884         * thread.c (load_infrun_state, save_infrun_state): Update.
1885
1886         * infrun.c: Re-indent.  Move expression operators to the beginning
1887         of the line.  Remove long disabled #if 0 code.
1888
1889 2004-08-24  Andrew Cagney  <cagney@gnu.org>
1890
1891         * doublest.h (floatformat_ieee_quad): Rename
1892         floatformat_ia64_quad.
1893         * doublest.c (floatformat_ieee_quad): Rename
1894         floatformat_ia64_quad.
1895         (_initialize_doublest): Update.
1896
1897 2004-08-24  Jim Blandy  <jimb@redhat.com>
1898
1899         * dwarf2expr.h (struct dwarf_expr_context): New members
1900         'num_pieces' and 'pieces', for returning the result of an
1901         expression that uses DW_OP_piece.
1902         (struct dwarf_expr_piece): New struct type.
1903         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1904         pieces.
1905         (free_dwarf_expr_context): Free pieces, if any.
1906         (add_piece): New function.
1907         (execute_stack_op): Implement DW_OP_piece.
1908         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1909         expression is a list of pieces, print an error message.
1910         (dwarf2_loc_desc_needs_frame): If the expression yields
1911         pieces, and any piece is in a register, then we need a frame.
1912
1913         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1914         the stack until we've decided what sort of result the evaluation
1915         has produced.  Use separate variables, with more specific names.
1916
1917 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
1918
1919         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1920         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1921         (arm_netbsd_init_abi_common): Register them.
1922
1923 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
1924
1925         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1926
1927         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1928         safe_frame_unwind_memory instead of target_read_memory.
1929
1930         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1931         Reorder includes.
1932         (fetch_register, store_register): Remove prototypes.
1933         (child_resume): Reorganize code and comments such that it is
1934         grouped a bit more logically.
1935         (attach): Explicitly compare errno against 0.
1936         (detach): Likewise.  Use perror_with_name instead of
1937         print_sys_errmsg.
1938         * Makefile.in (infptrace.o): Update dependencies.
1939
1940         * ia64-linux-nat.c: Update copyright year.
1941         (fetch_debug_register, store_debug_register)
1942         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1943         PTRACE_TYPE_ARG3.
1944         * config/ia64/nm-linux.h: Update copyright year.
1945          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1946
1947         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1948         from CORE_ADDR to struct frame_info *.  Use
1949         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1950         (amd64_linux_sigtramp_p): Adjust for changed signature of
1951         and64_linux_sigtramp_start
1952
1953         * gdb_ptrace.h: GNU/Linux.
1954
1955         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1956         Remove defines.
1957
1958         * infptrace.c: Include "gdb_assert.h".
1959         (PTRACE_XFER_TYPE): Remove define.
1960         (offsetof): Only define if U_REGS_OFFSET isn't defined.
1961         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1962         Tweak comment.
1963         (fetch_inferior_registers, store_inferior_registers): Remove
1964         redundant culry braces.  Tweak comment.  s/regno/regnum.
1965         * Makefile.in (infptrace.o): Update dependencies.
1966
1967         * configure.in: Change test for return type of ptrace to default
1968         to `long' instead of `int'.
1969         * configure: Regenerate.        
1970
1971 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
1972
1973         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1974
1975         * configure.in: Check for ttrace function.
1976         * configure, config.in: Regenerate.     
1977
1978         * gdb_ptrace.h: New file.
1979         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1980         <sys/ptrace.h>.
1981         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1982         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1983         (attach): Don't define PT_ATTACH.
1984         (detach): Don't define PT_DETACH.
1985         * Makefile.in (gdb_ptrace_h): New variable.
1986         (infptrace.o): Update dependencies.
1987
1988 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
1989
1990         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1991         instead of `int' if not already defined.
1992         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1993         PTRACE_TYPE_ARG3.
1994         * infptrace.c (call_ptrace): Revert change that replaced
1995         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1996
1997 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
1998
1999         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2000         Remove defines.
2001
2002         * linux-nat.c (kill_inferior): Add missing third and fourth
2003         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
2004
2005         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2006         PTRACE_TYPE_RET.
2007
2008         * proc-why.c (proc_prettyfprint_why): Fix format string.
2009
2010         * solib-osf.c (osf_current_sos): Remove unsused label.
2011
2012         * configure.in: Add <ncurses/ncurses.h> to the list of possible
2013         curses headers.
2014         * configure, config.in: Regenerate.     
2015         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2016         <ncurses/ncurses.h>.
2017
2018         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2019         * config/nm-nbsd.h: Update copyright year.
2020         (PTRACE_ARG3_TYPE): Remove define.
2021
2022         * sparc-nat.c (fetch_inferior_registers)
2023         (store_inferior_registers, sparc_xfer_wcookie): 
2024         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2025
2026         * alphabsd-nat.c (fetch_inferior_registers):
2027         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2028         PTRACE_TYPE_ARG3.
2029         * amd64bsd-nat.c (fetch_inferior_registers)
2030         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2031         PTRACE_TYPE_ARG3.
2032         * armnbsd-nat.c: Update copyright year.
2033         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2034         (store_register, store_regs, store_fp_register, store_fp_regs):
2035         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2036         * hppabsd-nat.c (fetch_inferior_registers)
2037         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2038         PTRACE_TYPE_ARG3.
2039         * i386bsd-nat.c (fetch_inferior_registers)
2040         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2041         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2042         * m68kbsd-nat.c (fetch_inferior_registers)
2043         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2044         PTRACE_TYPE_ARG3.
2045         * m88kbsd-nat.c (fetch_inferior_registers)
2046         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2047         PTRACE_TYPE_ARG3.
2048         * mipsnbsd-nat.c: Update copyright year.
2049         (fetch_inferior_registers, store_inferior_registers):
2050         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2051         * ns32knbsd-nat.c: Update copyright year.
2052         (fetch_inferior_registers, store_inferior_registers):
2053         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2054         * ppcnbsd-nat.c (fetch_inferior_registers):
2055         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2056         PTRACE_TYPE_ARG3.
2057         * ppcobsd-nat.c (fetch_inferior_registers):
2058         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2059         PTRACE_TYPE_ARG3.
2060         * shnbsd-nat.c: Update copyright year.
2061         (fetch_inferior_registers, store_inferior_registers):
2062         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2063         * vaxbsd-nat.c (fetch_inferior_registers)
2064         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2065         PTRACE_TYPE_ARG3.
2066         
2067         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2068         PTRACE_TYPE_ARG3.
2069         * infptrace.c (call_ptrace, child_resume, attach, detach)
2070         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2071         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2072         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2073         PTRACE_TYPE_ARG3.
2074
2075 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
2076
2077         * defs.h: Remove out-of-date comment.
2078         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2079         [!GETENV_PROVIDED] (getenv): Remove prototype.
2080
2081         * standalone.c: Remove file.
2082         * Makefile.in (standalone.o): Remove dependency.
2083
2084         * i386-linux-nat.c (dummy_sse_values): Remove function and
2085         prototype.
2086         (i386_linux_dr_get): Fix typo in comment.
2087         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2088
2089         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2090
2091         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2092         from declaration.
2093         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2094         from definition.
2095
2096 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
2097
2098         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2099         parenthesis in definition.
2100         * configure: Regenerated.
2101
2102 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
2103
2104         * PROBLEMS: Mention build/1411.
2105
2106 2004-08-09  Robert Millan  <robertmh@gnu.org>
2107
2108         Committed by Nathanael Nerode.
2109         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2110         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2111
2112 2004-08-12  Andrew Cagney  <cagney@gnu.org>
2113
2114         * NEWS: Mention fixes in GDB 6.2.1.
2115         * PROBLEMS: Remove mention of mips-irix.
2116
2117 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2118
2119         * config/powerpc/xm-aix.h: Delete.
2120         * config/powerpc/aix.mh (MH_FILE): Remove.
2121         * config/powerpc/aix432.mh (MH_FILE): Remove.
2122
2123 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2124
2125         * config/powerpc/aix.mh: Remove obsolete comment.
2126         * config/powerpc/aix432.mh: Likewise.
2127
2128 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2129
2130         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2131
2132 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2133
2134         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2135         this file is now empty.
2136         * config/xm-aix4.h: Remove, this file is no longer included
2137         anywhere.
2138
2139 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2140
2141         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2142         that file is now empty.
2143         (termdef): Remove prototype, function no longer used.
2144
2145 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2146
2147         * doc/gdbint.texinfo (Host Definition): Remove documentation
2148         for USE_O_NOCTTY, no longer used.
2149         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2150         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2151
2152 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
2153
2154         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2155         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2156         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2157
2158 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
2159
2160         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2161         instead of FIVE_ARG_PTRACE.
2162
2163         * inflow.c (O_NOCTTY): Define to zero if not already defined.
2164         (new_tty): Use O_NOCTTY unconditionally.
2165
2166 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2167
2168         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
2169         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
2170         fflush on stdout.
2171
2172 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
2173
2174         * xcoff_symfile_finish: Replace last call to xmfree by call
2175         to xfree.
2176
2177 2004-08-10  Andrew Cagney  <cagney@gnu.org>
2178
2179         * main.c (captured_main): Delete call to init_malloc.
2180         * defs.h (init_malloc): Delete declaration.
2181         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2182         (init_malloc): Delete functions.
2183
2184         * defs.h (xmfree): Delete.
2185         * utils.c (xmfree): Delete function.
2186         (xfree): Inline calls to xmfree and mfree.
2187         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2188         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2189         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2190         * somread.c (som_symfile_finish): Ditto.
2191         * objfiles.c (allocate_objfile, free_objfile): 
2192         * nlmread.c (nlm_symfile_finish): Ditto.
2193         * hpread.c (hpread_symfile_finish): Ditto.
2194         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2195         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2196         * coffread.c (coff_symfile_finish): Ditto.
2197
2198         * defs.h (xmcalloc): Delete declaration.
2199         * utils.c (xmcalloc): Delete.
2200         (xcalloc): Inline calls to xmcalloc and mcalloc.
2201         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2202         xcalloc and xfree.
2203         * symtab.c (create_demangled_names_hash): Ditto.
2204
2205         * defs.h (xmrealloc): Delete.
2206         * utils.c (xmrealloc): Delete.
2207         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2208         * symmisc.c (extend_psymbol_list): Use xrealloc.
2209         * source.c (find_source_lines): Ditto.
2210         * hpread.c (hpread_lookup_type): Ditto.
2211         * dbxread.c (add_bincl_to_list): Ditto.
2212
2213         * utils.c (xmmalloc): Delete.
2214         (xmalloc): Inline xmmalloc and mmalloc calls.
2215         (msavestring): Use xmalloc.
2216         * defs.h (xmmalloc): Delete declaration.
2217         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2218         xmmalloc.
2219         * symmisc.c (extend_psymbol_list): Ditto.
2220         * symfile.c (init_psymbol_list): Ditto.
2221         * source.c (find_source_lines): Ditto.
2222         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2223         * elfread.c (elf_symtab_read): Ditto.
2224         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2225         * coffread.c (coff_symfile_init): Ditto.
2226
2227 2004-08-10  David Carlton  <carlton@bactrian.org>
2228
2229         * MAINTAINERS: Remove David Carlton from c++ testsuite
2230         maintainers.
2231
2232 2004-08-10  Jerome Guitton  <guitton@gnat.com>
2233
2234         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2235         print a line feed before the prompt.
2236
2237 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
2238
2239         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2240
2241 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
2242
2243         General cleanup of the AIX xm include file:
2244         * config/xm-aix4.h (fd_set): Remove undefine.
2245         Remove include of <sys/select.h>.
2246         (HAVE_TERMIO): Remove define.
2247         (USG): Likewise.
2248         (NULL): Remove redefine.
2249         (alloca): Remove #pragma.
2250         (vfork): Remove define.
2251         (termdef): Remove.
2252         (SIGWINCH_HANDLER): Remove.
2253         (SIGWINCH_HANDLER_BODY): Remove.
2254
2255 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2256
2257         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2258         GDB_OSABI_OPENBSD_ELF.
2259
2260 2004-08-07  Robert Millan  <robertmh@gnu.org>
2261
2262         * bsd-kvm.c: Check for nlist.h before including it.
2263
2264 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
2265
2266         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2267         sigcontext' offset consistency checks for ancient BSD.
2268
2269         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2270
2271         * configure.in: Check for <sys/types.h>.  Check return and
2272         argument types of ptrace.
2273         * configure, config.in: Regenerate.     
2274
2275 2004-08-09  Jim Blandy  <jimb@redhat.com>
2276
2277         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2278         rs6000_register_sim_regno): Doc fixes.
2279
2280 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
2281
2282         * mips-tdep.c: Include "floatformat.h".
2283         (n32n64_floatformat_always_valid): New function.
2284         (floatformat_n32n64_long_double_big): New constant.
2285         (mips_gdbarch_init): Set size and format of long double
2286         for N32 and N64 ABIs.
2287         * Makefile.in (mips-tdep.o): Update dependencies.
2288
2289 2004-08-08  Andrew Cagney  <cagney@gnu.org>
2290
2291         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
2292         print.  Improve script's error messages.
2293         * gdbarch.h: Re-generate.
2294
2295         * gdbarch.sh (pformat): New function.
2296         (float_format, double_format, long_double_format): List with bit
2297         members.  Use pformat when printing.
2298         * gdbarch.c, gdbarch.h: Re-generate.
2299         
2300 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
2301
2302         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2303         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2304         (ppcnbsd_supply_pcb): New function.
2305         (_initialize_ppcnbsd_nat): New prototype and function.
2306         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2307         (LOADLIBES): New variable.
2308         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2309
2310 2004-08-08  Andrew Cagney  <cagney@gnu.org>
2311
2312         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2313         (builtin_type_ieee_double, builtin_type_ia64_quad)
2314         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2315         BE/LE floating-point types.
2316         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2317         (builtin_type_ieee_double, builtin_type_ia64_quad)
2318         (builtin_type_ia64_spill): Declare.
2319         * doublest.c (_initialize_doublest, floatformat_ieee_single)
2320         (floatformat_ieee_double, floatformat_arm_ext)
2321         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2322         of LE/BE floatformats.  
2323         * doublest.h: (struct floatformat, floatformat_ieee_single)
2324         (floatformat_ieee_double, floatformat_arm_ext)
2325         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2326
2327 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
2328
2329         * i386gnu-nat.c (gnu_store_registers): Fix typo.
2330
2331         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2332         instead of regcache_raw_supply when storing the registers.
2333
2334         * i386gnu-nat.c: Update copyright year.
2335         (gnu_store_registers): Don't use deprecated_registers and
2336         deprecated_registers_valid.  Use regcache_valid_p and
2337         regcache_raw_supply instead.
2338
2339         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2340         frame_pc_unwind.
2341
2342         * procfs.c (procfs_pid_to_str): Remove redundant and unused
2343         variables.  Incapitalized "process".
2344
2345         * configure.in: Add cursesX to the list of possible curses libs.
2346         Add cursesX.h to the list of possible curses headers. 
2347         * configure, config.in: Regenerate.     
2348
2349 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
2350
2351         * configure.in: Test for struct lwp in <sys/lwp.h>.
2352         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2353         the offset of l_addr in struct lwp.
2354
2355 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
2356
2357         * bsd-kvm.c: Include "gdbcore.h"
2358         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2359
2360 2004-08-07  Andrew Cagney  <cagney@gnu.org>
2361
2362         * gdbtypes.c (build_flt, build_complex): New functions.
2363         (gdbtypes_post_init): Use.
2364
2365         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2366
2367         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2368         through to builtin_type_uint128.
2369
2370         * c-exp.y: Use builtin_type function to obtain builtin types.
2371
2372         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2373         builtin_uint128.
2374         * gdbtypes.c (gdbtypes_post_init): Update.
2375         (build_gdbtypes): Move initialization of builtin_type_int0
2376         through to builtin_type_uint128 from here ...
2377         (_initialize_gdbtypes): ... to here.
2378         * d10v-tdep.c (d10v_register_type): Update.
2379
2380         * doublest.c: Update copyright.
2381         (floatformat_from_length): Call error when floatformat is NULL.
2382         (extract_floating_by_length): Remove NULL fmt check.
2383         (store_floating_by_length): Ditto.
2384
2385 2004-08-07  Andrew Cagney  <cagney@gnu.org>
2386
2387         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2388         that the register is valid.
2389
2390 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
2391
2392         * i386-linux-tdep.c (i386_linux_sigtramp_start)
2393         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2394         struct frame_info *.  Use safe_frame_unwind_memory instead of
2395         deprecated_read_memory_nobpt.
2396         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2397         changed signature of i386_linux_sigtramp_start and
2398         i386_linux_rt_sigtramp_start.
2399
2400         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2401         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
2402         instead of deprecated_read_memory_nobpt.
2403         (i386nbsd_sigtramp_p): Adjust for changed signature of
2404         i386nbsd_sigtramp_offset.
2405
2406         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2407         safe_frame_unwind_memory instead of target_read_memory.
2408
2409         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2410         !NO_SYS_FILE.
2411         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2412         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2413         (_initialize_kernel_u_addr): Remove prototype and function.
2414         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2415         !NO_SYS_FILE.
2416         * xcoffread.c: Likewise.
2417
2418 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
2419
2420         * vax-nat.c: New file.
2421         * vaxbsd-nat.c: Tweak comment.
2422         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2423         vaxnbsd-tdep.c.
2424         (vax-nat.o): New dependency.
2425         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2426         (vax-*-ultrix2*): Remove.
2427         * config/vax/vax.mh: New file.
2428         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2429         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2430         (vax_register_u_addr): New prototype.
2431         (REGISTER_U_ADDR): Define using vax_register_u_addr.
2432         * config/vax/vaxult2.mh: Remove file.
2433         * config/vax/vaxult.mh: Remove file.
2434         * config/vax/vaxbsd.mh: Remove file.
2435         * config/vax/vax.mt (TM_FILE): Remove.
2436         * config/vax/tm-vaxbsd.h: Remove file.
2437
2438 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
2439
2440         * aix-thread.c (get_signaled_thread): New function.
2441         (iter_trap): Delete, no longer used.
2442         (iter_tid): New function.
2443         (pd_update): Find the thread that received the SIGTRAP signal
2444         by first locating the kernel thread, and then finding its
2445         associated thread.
2446
2447 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
2448
2449         * lin-lwp.c (child_wait): Continue inferior after processing
2450         PTRACE_EVENT_CLONE event.
2451
2452 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
2453
2454         * MAINTAINERS: Add self to Write-After-Approval.
2455
2456 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
2457
2458         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2459         libunwind-xxxx.so" where xxxx is UNW_TARGET.
2460
2461 2004-08-05  Andrew Cagney  <cagney@gnu.org>
2462
2463         * config/xm-sysv4.h: Delete file.
2464         * config/mips/xm-irix5.h: Delete file.
2465         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2466         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2467         * config/ia64/xm-aix.h: Delete file.
2468         * config/ia64/aix.mh (XM_FILE): Delete.
2469         * config/pa/xm-hppah.h: Delete file.
2470         * config/pa/hpux11w.mh (XM_FILE): Delete.
2471         * config/pa/hpux11.mh (XM_FILE): Delete.
2472         * config/pa/hpux1020.mh (XM_FILE): Delete.
2473         * config/pa/hppahpux.mh (XM_FILE): Delete.
2474
2475         * config/alpha/xm-alphalinux.h: Delete file.
2476         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2477         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2478         * config/alpha/xm-alphaosf.h: Delete file.
2479         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2480         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2481         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2482         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2483
2484         * config/i386/xm-i386v.h: Delete file.
2485         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2486         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2487         * config/i386/xm-i386sco.h: Delete file.
2488         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2489         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2490         * config/i386/xm-i386v4.h: Delete file.
2491         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2492         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2493         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2494         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2495
2496         * config/vax/xm-vax.h: Delete file.
2497         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2498         * config/vax/xm-vaxult2.h: Delete file.
2499         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2500         * config/vax/vaxult2.mh (XM_FILE): Delete.
2501         * config/vax/xm-vaxult.h: Delete file.
2502         * config/vax/vaxult.mh (XM_FILE): Delete.
2503         * config/vax/xm-vaxbsd.h: Delete file.
2504         * config/vax/vaxbsd.mh (XM_FILE): Delete.
2505
2506         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2507         * gdbarch.h, gdbarch.c: Re-generate.
2508         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2509         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2510         * frame.h: Delete deprecated_read_fp from comments.
2511         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2512         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2513
2514 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
2515
2516         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2517         trampoline in OpenBSD 3.5-current.
2518
2519         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2520         SSE registers.
2521
2522         * Makefile.in: Remove embedded page breaks.
2523
2524 2004-08-04  Jim Blandy  <jimb@redhat.com>
2525
2526         * regcache.c (regcache_raw_read): Assert that, after calling
2527         target_fetch_registers, the register we're reading is cached.
2528
2529         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2530         a call to 'internal_error', with a more helpful error message.
2531         * rs6000-tdep.c (e500_pseudo_register_read,
2532         e500_pseudo_register_write, rs6000_store_return_value): Same.
2533
2534 2004-08-04  Andrew Cagney  <cagney@gnu.org>
2535
2536         * Makefile.in: Update dependencies.
2537
2538 2004-08-04  Jim Blandy  <jimb@redhat.com>
2539
2540         Change the layout of the PowerPC E500 raw register cache to allow
2541         the lower 32-bit halves of the GPRS to be their own raw registers,
2542         not pseudoregisters.
2543         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2544         add ppc_ev0_upper_regnum flag.
2545         * rs6000-tdep.c: #include "reggroups.h".
2546         (spe_register_p): Recognize the ev upper half registers as SPE
2547         registers.
2548         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2549         registers.
2550         (e500_move_ev_register): New function.
2551         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2552         vector registers are the pseudo-registers now, formed by splicing
2553         together the gprs and the upper-half registers.
2554         (e500_register_reggroup_p): New function.
2555         (P): Macro deleted.
2556         (P8, A4): New macro.
2557         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2558         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2559         macros.
2560         (registers_e500): Rearrange register set so that the raw register
2561         set contains 32-bit GPRs and upper-half registers, and the SPE
2562         vector registers become pseudo-registers.
2563         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2564         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
2565         register numbers are now the same for the E500 as they are for
2566         other PowerPC variants.  Register e500_register_reggroup_p as the
2567         register group function for the E500.
2568         * Makefile.in (rs6000-tdep.o): Update dependencies.
2569
2570         Adapt PPC E500 native support to the new raw regcache layout.
2571         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2572         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2573         (fetch_spe_register, store_spe_register): Handle fetching/storing
2574         all the SPE registers at once, if regno == -1.  These now take
2575         over the job of fetch_spe_registers and store_spe_registers.
2576         (fetch_spe_registers, store_spe_registers): Deleted.
2577         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2578         unconditionally; they're always raw.  Fetch/store SPE upper half
2579         registers, if present, instead of ev registers.
2580         (fetch_register, store_register): Remove sanity checks: gprs are
2581         never pseudo-registers now, so we never need to even mention any
2582         registers that are ever pseudoregisters.
2583
2584         Use a fixed register numbering when communicating with the PowerPC
2585         simulator.
2586         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2587         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2588         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
2589         New functions.
2590         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
2591         init_sim_regno_table.
2592         * Makefile.in (gdb_sim_ppc_h): New variable.
2593         (rs6000-tdep.o): Update dependencies.
2594
2595 2004-08-02  Andrew Cagney  <cagney@gnu.org>
2596
2597         * cris-tdep.c (cris_register_size): Restore function, still used
2598         locally.
2599
2600         * gdbarch.sh (deprecated_target_read_fp)
2601         (deprecated_frame_locals_address, deprecated_frame_args_address)
2602         (deprecated_frame_chain_valid, deprecated_frame_chain)
2603         (deprecated_init_extra_frame_info, deprecated_pop_frame)
2604         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2605         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2606         * gdbarch.h, gdbarch.c: Re-generate.
2607         * regcache.c (deprecated_read_fp): Do not call
2608         DEPRECATED_TARGET_READ_FP_P.
2609         * infcmd.c (default_print_registers_info): Do not call
2610         DEPRECATED_DO_REGISTERS_INFO.
2611         * frame-base.c (default_frame_locals_address): Do not call
2612         DEPRECATED_FRAME_LOCALS_ADDRESS.
2613         (default_frame_args_address): Do not call
2614         DEPRECATED_FRAME_ARGS_ADDRESS.
2615
2616         * gdbarch.sh (deprecated_register_raw_size)
2617         (deprecated_register_virtual_size:int): Delete.
2618         * gdbarch.h, gdbarch.c: Re-generate.
2619         * cris-tdep.c (cris_register_size): Delete.
2620         (cris_gdbarch_init): Update.
2621         * alpha-tdep.c (alpha_register_raw_size)
2622         (alpha_register_virtual_size): Delete.
2623         (alpha_gdbarch_init): Update.
2624
2625         * gdbarch.sh (deprecated_register_virtual_type)
2626         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2627         (deprecated_dummy_write_sp): Delete.
2628         * gdbarch.h, gdbarch.c: Re-generate.
2629
2630         * gdbarch.sh (deprecated_register_bytes): Delete.
2631         * gdbarch.h, gdbarch.c: Re-generate.
2632         * regcache.c (deprecated_register_bytes): New function.
2633         * regcache.h (deprecated_register_bytes): Declare.
2634         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2635         * v850-tdep.c (v850_gdbarch_init): Update.
2636         * sh64-tdep.c (sh64_gdbarch_init): Update.
2637         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2638         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2639         * mcore-tdep.c (mcore_gdbarch_init): Update.
2640         * cris-tdep.c (cris_gdbarch_init): Update.
2641         * arm-tdep.c (arm_gdbarch_init): Update.
2642         * remote.c (init_remote_state): Update.
2643         * remote-vx.c (vx_prepare_to_store): Update.
2644         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2645         * irix5-nat.c (fetch_core_registers): Update.
2646         * cris-tdep.c (cris_register_bytes_ok): Update.
2647         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2648
2649         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2650         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2651         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2652         (mips_insn16_frame_base_address, mips_insn16_frame_base)
2653         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2654         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2655         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2656         (mips_insn32_frame_base_address, mips_insn32_frame_base)
2657         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2658         with mips_insn16 and mips_insn32.
2659
2660         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2661         * rs6000-tdep.c (rs6000_push_dummy_call)
2662         (rs6000_extract_return_value): Use register_size.
2663         * xstormy16-tdep.c (xstormy16_get_saved_register) 
2664         (xstormy16_extract_return_value): Ditto.
2665         * valops.c (value_assign): Ditto.
2666         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
2667         * v850-tdep.c (v850_extract_return_value): Ditto.
2668         * tracepoint.c (collect_symbol): Ditto.
2669         * target.c (debug_print_register): Ditto.
2670         * stack.c (frame_info): Ditto.
2671         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2672         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2673         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2674         (store_register_using_P): Ditto.
2675         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2676         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2677         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2678         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2679         * regcache.c (deprecated_read_register_bytes) 
2680         (deprecated_write_register_bytes, read_register) 
2681         (write_register): Ditto.
2682         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2683         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2684         * monitor.c (monitor_supply_register, monitor_fetch_register) 
2685         (monitor_store_register): Ditto.
2686         * mn10300-tdep.c (mn10300_pop_frame_regular) 
2687         (mn10300_print_register): Ditto.
2688         * mipsv4-nat.c (fill_fpregset): Ditto.
2689         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
2690         (mips64_fill_fpregset): Ditto.
2691         * mi/mi-main.c (register_changed_p, get_register)
2692         (mi_cmd_data_write_register_values): Ditto.
2693         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
2694         * irix5-nat.c (fill_gregset, fetch_core_registers): 
2695         * infrun.c (write_inferior_status_register): Ditto.
2696         * infptrace.c (fetch_register, store_register): Ditto.
2697         * infcmd.c (default_print_registers_info): Ditto.
2698         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2699         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2700         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2701         * hpux-thread.c (hpux_thread_fetch_registers)
2702         (hpux_thread_store_registers): Ditto.
2703         * hppah-nat.c (store_inferior_registers, fetch_register): 
2704         * findvar.c (value_from_register): Ditto.
2705         * dve3900-rom.c (fetch_bitmapped_register): 
2706         * cris-tdep.c (cris_gdbarch_init): Ditto.
2707         * alpha-tdep.h: Ditto.
2708         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2709
2710         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2711         DEPRECATED_REGISTER_RAW_SIZE from comments.
2712         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2713         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2714         DEPRECATED_REGISTER_RAW_SIZE.
2715         * findvar.c (value_of_register): Simplify by assuming that the
2716         registers raw and virtual sizes are identical.
2717         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2718         comment.
2719         * arch-utils.c (generic_register_size): Simplify by assuming
2720         register_type.
2721
2722         * regcache.c (legacy_read_register_gen, real_register) 
2723         (legacy_write_register_gen): Delete, not used.
2724
2725         * regcache.c (struct regcache_descr): Delete legacy_p.
2726         (init_legacy_regcache_descr): Delete function.
2727         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2728         Do not use deprecated register functions.
2729         (regcache_raw_read, deprecated_write_register_gen):
2730         (deprecated_read_register_gen, regcache_raw_write): Delete code
2731         predicated on legacy_p.
2732         (register_size): Delete check against register raw size.
2733
2734         * cris-tdep.c (cris_register_type): Replace
2735         cris_register_virtual_type.
2736         (cris_gdbarch_init): Update, set register_type.
2737
2738         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2739         * gdbarch.h, gdbarch.c: Re-generate.
2740         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
2741         (arm_gdbarch_init) Do not set frameless function invocation.
2742         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2743         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2744         * frv-tdep.c (frv_frameless_function_invocation): Delete.
2745         (frv_gdbarch_init): Do not set frameless function invocation.
2746         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2747         * sh-tdep.c (sh_gdbarch_init): Ditto.
2748         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2749         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2750         * avr-tdep.c (avr_gdbarch_init): Ditto.
2751
2752         * blockframe.c (legacy_frame_chain_valid): Delete function.
2753
2754         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2755         and pc.  Update comments.
2756         (pc_in_dummy_frame): Delete function.
2757         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2758         use the "id".
2759         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2760         call_hi, top and pc, use the id.
2761         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2762
2763         * dummy-frame.c: Include "gdb_string.h".
2764         (generic_save_call_dummy_addr, generic_push_dummy_frame)
2765         (generic_save_dummy_frame_tos): Delete.
2766         (dummy_frame_push): New function, replaces above.
2767         * dummy-frame.h: Update copyright.
2768         (dummy_frame_push): Declare.
2769         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2770         (generic_save_call_dummy_addr): Delete declarations.
2771         * infcall.c: Include "dummy-frame.h".
2772         (call_function_by_hand): Add locals caller_regcache,
2773         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
2774         with call to frame_save_as_regcache plus cleanup.  Delete calls to
2775         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2776         Move clear_proceed_status to just before the resume, add call to
2777         dummy_frame_push (discard cleanup).
2778         * Makefile.in (infcall.o): Add $(dummy_frame_h).
2779         (dummy-frame.o): Add $(gdb_string_h).
2780
2781 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2782
2783         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2784         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2785         * dummy-frame.c (find_dummy_frame): Delete.
2786         (struct dummy_frame_cache, dummy_frame_sniffer)
2787         (dummy_frame_prev_register, dummy_frame_this_id)
2788         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2789         frame unwinder using a dummy_frame_cache.
2790
2791 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2792
2793         * frame.h (frame_save_as_regcache): Declare.
2794         * frame.c (frame_save_as_regcache): New function.
2795         (do_frame_read_register): Replace do_frame_unwind_register.
2796         (frame_pop): Use frame_save_as_regcache.
2797         * dummy-frame.c (generic_push_dummy_frame): Use
2798         frame_save_as_regcache.
2799
2800 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
2801
2802         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2803         file as included until we record the first line in the linetable.
2804
2805 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2806
2807         * frame.h (deprecated_pop_dummy_frame)
2808         (deprecated_read_register_dummy)
2809         (deprecated_generic_find_dummy_frame): Delete.
2810         * dummy-frame.c (deprecated_generic_find_dummy_frame)
2811         (deprecated_read_register_dummy)
2812         (deprecated_find_dummy_frame_regcache)
2813         (discard_innermost_dummy)
2814         (deprecated_pop_dummy_frame): Delete.
2815         (dummy_frame_this_id): Simplify.
2816         (struct dummy_frame): Delete "fp" and "sp".
2817         (find_dummy_frame): Simplify.
2818         (generic_push_dummy_frame): Do not set "fp" or "sp".
2819         (fprint_dummy_frames): Do not print "fp" and "sp"
2820
2821 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
2822
2823         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2824         (struct i386_insn): New structure.
2825         (i386_match_insn): New function.
2826         (i386_frame_setup_skip_insns): New variable.
2827         (i386_analyze_frame_setup): Change to use i386_match_insn and the
2828         array i386_frame_setup_insns of instructions that should be
2829         skipped inside the frame setup sequence.
2830
2831 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2832
2833         * frame.h (deprecated_frame_xmalloc_with_cleanup)
2834         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2835         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2836         * stack.c (frame_info): Delete references to
2837         DEPRECATED_FRAME_INIT_SAVED_REGS and
2838         deprecated_get_frame_saved_regs.
2839         * frame.c (struct frame_info): Delete saved_regs and extra_info.
2840         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2841         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2842         (frame_unwind_register_signed)
2843         (frame_unwind_register_unsigned)
2844         (frame_unwind_unsigned_register): Use register_size.
2845         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2846         (deprecated_frame_xmalloc_with_cleanup)
2847         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2848         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2849
2850         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2851         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2852         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2853         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2854
2855         * infcall.c (call_function_by_hand): Do not use
2856         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2857         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2858         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2859         DEPRECATED_STACK_ALIGN.
2860
2861 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2862
2863         Committed by Andrew Cagney.
2864         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2865
2866 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2867
2868         * mips-tdep.c (mips16_frame_cache)
2869         (mips16_frame_this_id, mips16_frame_prev_register)
2870         (mips16_frame_unwind, mips16_frame_sniffer)
2871         (mips16_frame_base_address, mips16_frame_base)
2872         (mips16_frame_base_sniffer, mips32_frame_cache)
2873         (mips32_frame_this_id, mips32_frame_prev_register)
2874         (mips32_frame_unwind, mips32_frame_sniffer)
2875         (mips32_frame_base_address, mips32_frame_base)
2876         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2877         separate heuristic mips16 and mips32 unwinders.
2878         (mips_stub_frame_cache, mips_stub_frame_this_id)
2879         (mips_stub_frame_prev_register)
2880         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2881         (mips_stub_frame_base_address, mips_stub_frame_base)
2882         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2883         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2884         match true mdebug frames.
2885         (non_heuristic_proc_desc): Add forward declaration.
2886
2887 2004-08-01  Andrew Cagney  <cagney@gnu.org>
2888
2889         * config/mips/tm-irix6.h: Delete file.
2890         * config/mips/tm-irix5.h: Delete file.
2891         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2892         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2893
2894         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2895         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2896         * config/nm-gnu.h (NO_CORE_OPS): Delete.
2897         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2898         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2899         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2900         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2901         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2902         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2903         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2904         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2905         (TARGET_SIGNAL_RAW_VALUES): Delete.
2906         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2907         Delete.
2908         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
2909         (TARGET_HW_WATCH_LIMIT): Delete.
2910         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2911         * minimon.h: Delete file.
2912
2913         * trad-frame.c (trad_frame_get_this_base)
2914         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2915         functions.
2916         * trad-frame.h (trad_frame_set_this_base)
2917         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2918
2919 2004-07-31  Andrew Cagney  <cagney@gnu.org>
2920
2921         * trad-frame.c (trad_frame_get_prev_register): Rename
2922         trad_frame_get_prev_register.
2923         * vax-tdep.c (vax_frame_prev_register): Update.
2924         * trad-frame.h: Update.
2925         * trad-frame.c (trad_frame_get_register): Update.
2926         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2927         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2928         Update.
2929         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2930         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2931         Update.
2932         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2933         Update.
2934         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2935         Update.
2936         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2937         Update.
2938         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2939         Update.
2940         * s390-tdep.c (s390_frame_prev_register) 
2941         (s390_stub_frame_prev_register) 
2942         (s390_sigtramp_frame_prev_register): Update.
2943         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2944         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2945         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2946         * m88k-tdep.c (m88k_frame_prev_register) 
2947         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
2948         * m32r-tdep.c (m32r_frame_prev_register): Update.
2949         * hppa-tdep.c (hppa_frame_prev_register_helper) 
2950         * frv-tdep.c (frv_frame_prev_register): Update.
2951         * d10v-tdep.c (d10v_frame_prev_register): Update.
2952         * cris-tdep.c (cris_frame_prev_register): Update.
2953         * avr-tdep.c (avr_frame_prev_register): Update.
2954         * arm-tdep.c (arm_prologue_prev_register) 
2955         (arm_sigtramp_prev_register): Update.
2956
2957 2004-07-31  Andrew Cagney  <cagney@gnu.org>
2958
2959         * frame.h (legacy_saved_regs_unwind)
2960         (legacy_frame_chain_valid, legacy_frame_p)
2961         (enum frame_type): Delete UNKNOWN_FRAME.
2962         * dummy-frame.c (dummy_frame_this_id): Simplify.
2963         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2964         * frame.c (struct frame_info): Delete the field "type".
2965         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2966         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2967         (legacy_saved_regs_unwind, legacy_frame_p)
2968         (frame_type_from_pc): Delete.
2969         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2970         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2971
2972 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
2973
2974         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2975         indentation.
2976
2977         * mips-nat.c: Remove file.
2978         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2979         (mips-nat.o): Remove dependency.
2980
2981         * infptrace.c: Update copyright year.
2982         (fetch_register): Pass NULL in regcache_raw_supply call instead of
2983         explicitly setting the buffer to all zeroes.
2984
2985         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2986         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2987
2988 2004-07-30  Andrew Cagney  <cagney@gnu.org>
2989
2990         * GDB 6.2 released from gdb_6_2-branch.
2991
2992 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
2993
2994         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2995
2996         * exec.c (exec_file_attach):
2997         * nto-tdep.c (nto_find_and_open_solib):
2998         * pa64solib.c (pa64_solib_sizeof_symbol_table):
2999         * solib.c (solib_open):
3000         * somsolib.c (som_solib_sizeof_symbol_table):
3001         * source.c (is_regular_file, openp, open_source_file):
3002         * symfile.c (symfile_bfd_open):
3003         * wince.c (upload_to_device): Differentiate between the search for
3004         binary and source files.
3005
3006 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3007
3008         * complaints.c (_initialize_complaints): Pass NULL to
3009         add_setshow_zinteger_cmd for help_doc.
3010         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3011
3012 2004-07-30  Andrew Cagney  <cagney@gnu.org>
3013
3014         Fix PR i18n/761.
3015         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3016         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3017         $(PACKAGE).pot and update-po.
3018         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3019         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3020         (update-po): New rules.
3021         (localedir): Define using autoconf.
3022         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3023         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3024         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3025         * configure.in: Generate CATALOGS and LINGUAS from contents of
3026         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
3027         * configure: Re-generate.
3028         * po/gdbtext: New file
3029         
3030 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3031
3032         * MAINTAINERS: Reorder Write After Approval list in alphabetical
3033         order.
3034
3035 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
3036
3037         * dwarf2read.c (read_file_scope): Set producer if attribute 
3038         present.
3039         (struct dwarf2_cu): Added new member producer.
3040
3041 2004-07-30  Jerome Guitton  <guitton@gnat.com>
3042
3043         * inflow.c (kill_command): release file handles in BFD.
3044         * exec.c (exec_file_attach): Ditto.
3045         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3046
3047 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3048
3049         * PROBLEMS (mips-irix): Note that it is broken.
3050
3051 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3052
3053         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3054         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3055
3056         * config/xm-nbsd.h: Delete file.
3057         * config/arm/xm-nbsd.h: Delete file.
3058         * config/i386/xm-nbsd.h: Delete file.
3059         * config/ns32k/xm-nbsd.h: Delete file.
3060         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3061         * config/i386/nbsdelf.mh (XM_FILE): Delete.
3062         * config/i386/nbsdaout.mh (XM_FILE): Delete.
3063         * config/arm/nbsdelf.mh (XM_FILE): Delete.
3064         * config/arm/nbsdaout.mh (XM_FILE): Delete.
3065
3066         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3067         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3068         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3069         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3070         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3071         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3072
3073         * config/powerpc/xm-linux.h: Delete empty file.
3074         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3075         * config/powerpc/linux.mh (XM_FILE): Delete.
3076         * config/m68k/xm-linux.h: Delete empty file.
3077         * config/m68k/linux.mh (XM_FILE): Delete.
3078         * config/ia64/xm-linux.h: Delete empty file.
3079         * config/ia64/linux.mh (XM_FILE): Delete.
3080         * config/arm/xm-linux.h: Delete empty file.
3081         * config/arm/linux.mh (XM_FILE): Delete.
3082         
3083         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3084         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3085         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3086         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3087         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3088         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3089         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3090         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3091
3092         * config/m68k/xm-m68k.h: Delete file.
3093         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
3094         copyright.
3095         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3096         * config/pa/xm-linux.h: Delete empty file.
3097         * config/pa/linux.mh (XM_FILE): Delete.
3098         * config/i386/xm-i386.h: Delete empty file.
3099         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3100         "i386/xm-i386.h".
3101         * config/i386/obsdaout.mh (XM_FILE): Delete.
3102         * config/i386/obsd64.mh (XM_FILE): Delete.
3103         * config/i386/fbsd64.mh (XM_FILE): Delete.
3104         * config/i386/nto.mh (XM_FILE): Delete.
3105         * config/i386/obsd.mh (XM_FILE): Delete.
3106         * config/i386/linux64.mh (XM_FILE): Delete.
3107         * config/i386/linux.mh (XM_FILE): Delete.
3108         * config/i386/i386sol2.mh (XM_FILE): Delete.
3109         * config/i386/i386gnu.mh (XM_FILE): Delete.
3110         * config/i386/fbsd.mh (XM_FILE): Delete.
3111         * config/i386/nbsd64.mh (XM_FILE): Delete.
3112
3113 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3114
3115         * config/pa/xm-linux.h: Do not include "floatformat.h".
3116         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3117         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3118         * config/i386/xm-i386.h: Do not include "floatformat.h".
3119         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
3120         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3121         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3122         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
3123         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3124         GDB_HOST_LONG_DOUBLE_FORMAT instead.
3125         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3126         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3127         * configure, config.in: Regenerate.     
3128         * configure.host (gdb_host_float_format, gdb_host_double_format)
3129         (gdb_host_long_double_format): Set according to the host.
3130         
3131 2004-07-29  Andrew Cagney  <cagney@gnu.org>
3132
3133         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3134
3135 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3136
3137         * PROBLEMS: Mention threads/1650.
3138         * NEWS: Mention the NPTL fix.
3139
3140 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3141
3142         * cli/cli-decode.c (add_setshow_cmd): Delete function.
3143         (add_setshow_cmd_full): Make static.
3144         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3145         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3146         * cli/cli-decode.c (add_setshow_filename_cmd) 
3147         (add_setshow_string_cmd): New functions.
3148         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
3149         * mips-tdep.c (_initialize_mips_tdep): Update.
3150         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
3151         * cli/cli-logging.c (_initialize_cli_logging): Update.
3152         * complaints.c (_initialize_complaints): Update.
3153         * remote.c (_initialize_remote): Update.
3154         
3155 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3156
3157         * cli/cli-decode.c (add_setshow_zinteger_cmd)
3158         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3159         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3160         print parameters.  Make string parameters constant.
3161         * command.h: Update.  Update copyright.
3162         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3163         * observer.c (_initialize_observer): Ditto.
3164         * frame.c (_initialize_frame): Ditto.
3165         * complaints.c (_initialize_complaints): Ditto.
3166         * maint.c (_initialize_maint_cmds): Ditto.
3167         * target.c (initialize_targets): Ditto.
3168         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3169         * infcall.c (_initialize_infcall): Ditto.
3170         * arm-tdep.c (_initialize_arm_tdep): Ditto.
3171         * m32r-rom.c (_initialize_m32r_rom): Ditto.
3172         * remote-rdi.c (_initialize_remote_rdi): Ditto.
3173         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3174         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3175
3176 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3177
3178         * gdbtypes.c (lookup_primitive_typename): Delete function.
3179         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3180         * ada-lex.l: Use language_lookup_primitive_type_by_name.
3181         * gdbtypes.c (lookup_typename): Ditto.
3182         * f-exp.y (yylex): Ditto.
3183         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3184
3185         * scm-lang.c (c_builtin_types): Delete extern declaration.
3186         (scm_language_defn): Replace
3187         string_char_type and primitive_type_vector with
3188         la_language_arch_info.
3189         * jv-lang.c (java_language_defn): Replace
3190         string_char_type and primitive_type_vector with
3191         la_language_arch_info.
3192         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3193         c_builtin_types in comment.
3194         * c-lang.h (struct language_arch_info): Declare opaque.
3195         (c_language_arch_info): Declare.
3196         (c_builtin_types): Delete declaration.
3197         * c-lang.c (c_language_arch_info): Set string_char_type to
3198         builtin_char, not builtin_true_char.  Make global.
3199         (c_builtin_types): Delete array.
3200         (asm_language_defn, minimal_language_defn): Replace
3201         string_char_type and primitive_type_vector with
3202         la_language_arch_info.
3203
3204 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3205
3206         * gdbtypes.h (struct builtin_type): Rename true_char to
3207         builtin_true_char.
3208         * gdbtypes.c (gdbtypes_post_init): Update.
3209         * c-lang.c (arch_info): New function.
3210         (enum c_primitive_types): New enum.
3211         (c_language_defn): Instead of string_char_type and
3212         primitive_type_vector set la_language_arch_info.
3213
3214 2004-07-28  Andrew Cagney  <cagney@gnu.org>
3215
3216         * language.h (struct language_arch_info): Fix typo
3217         s/primative/primitive/.
3218         * gdbtypes.c (lookup_primitive_typename): Ditto.
3219         * language.c (language_lookup_primitive_type_by_name)
3220         (unknown_language_arch_info): Ditto.
3221
3222 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3223
3224         * defs.h (enum language): Add nr_languages.
3225         * language.h (struct language_arch_info): Define.
3226         (struct language_defn): Add la_language_arch_info.
3227         (language_lookup_primative_type_by_name): Declare.
3228         (language_string_char_type): Declare.
3229         * language.c (_initialize_language, language_gdbarch_post_init)
3230         (struct language_gdbarch, language_gdbarch_data): Implement
3231         per-architecture language information.
3232         (unknown_language_arch_info, language_string_char_type)
3233         (language_lookup_primative_type_by_name): New functions.
3234         (unknown_language_defn, auto_language_defn)
3235         (local_language_defn): Set la_language_arch_info to
3236         unknown_language_arch_info.
3237         (unknown_builtin_types): Delete.
3238         * gdbtypes.c (lookup_primitive_typename): Use
3239         language_lookup_primative_type_by_name.
3240         (create_string_type): Use language_string_char_type.
3241         * values.c (value_from_string): Use language_string_char_type.
3242         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3243         * p-lang.c (pascal_language_defn): Ditto.
3244         * m2-lang.c (m2_language_defn): Ditto.
3245         * jv-lang.c (java_language_defn): Ditto.
3246         * objc-lang.c (objc_language_defn): Ditto.
3247         * f-lang.c (f_language_defn): Ditto.
3248         * c-lang.c (c_language_defn, cplus_language_defn) 
3249         (asm_language_defn, minimal_language_defn): Ditto.
3250         
3251 2004-07-27  Andrew Cagney  <cagney@gnu.org>
3252
3253         * gdbtypes.h (struct builtin_type): Declare.
3254         (builtin_type): Declare.
3255         * d10v-tdep.c (d10v_register_type): Use builtin_type.
3256         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3257         (gdbtypes_post_init): New function.
3258         (builtin_type): New function.
3259
3260 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
3261
3262         * remote-m32r-sdi.c: Fix breakpoint bug.
3263         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3264         recv_char_data, recv_long_data): New functions to replace communication
3265         sequences.
3266
3267 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
3268
3269         Document PR threads/1650.
3270         * PROBLEMS (Threads): Document problem with many threads
3271
3272 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3273
3274         * gdb-mi.el: Move from here ...
3275         * mi/gdb-mi.el: ... to here.
3276
3277 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3278
3279         Problem reported by Ashley Pittman <ashley@quadrics.com>.
3280         * main.c (captured_main): When in batch mode always detach.
3281
3282 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3283
3284         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3285         and h8300 as broken.
3286         * NEWS: END-OF-LIFE frame compatibility module.
3287         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3288         specific comments.
3289
3290 2004-07-26  Andrew Cagney  <cagney@gnu.org>
3291
3292         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3293         * xcoffsolib.c (_initialize_xcoffsolib): Update.
3294         * wince.c (_initialize_wince): Update.
3295         * win32-nat.c (_initialize_win32_nat): Update.
3296         * varobj.c (_initialize_varobj): Update.
3297         * valops.c (_initialize_valops): Update.
3298         * utils.c (initialize_utils, initialize_utils): Update.
3299         * tui/tui-win.c (_initialize_tui_win): Update.
3300         * top.c (init_main): Update.
3301         * symfile.c (_initialize_symfile): Update.
3302         * source.c (_initialize_source): Update.
3303         * somsolib.c (_initialize_som_solib): Update.
3304         * solib.c (_initialize_solib): Update.
3305         * solib-frv.c (_initialize_frv_solib): Update.
3306         * serial.c (_initialize_serial): Update.
3307         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3308         * remote.c (_initialize_remote, _initialize_remote): Update.
3309         * remote-vx.c (_initialize_vx): Update.
3310         * remote-utils.c (_initialize_sr_support): Update.
3311         * remote-sds.c (_initialize_remote_sds): Update.
3312         * remote-mips.c (_initialize_remote_mips): Update.
3313         * remote-e7000.c (_initialize_remote_e7000): Update.
3314         * proc-api.c (_initialize_proc_api): Update.
3315         * printcmd.c: Update.
3316         * parse.c (_initialize_parse): Update.
3317         * pa64solib.c (_initialize_pa64_solib): Update.
3318         * p-valprint.c (_initialize_pascal_valprint): Update.
3319         * monitor.c (_initialize_remote_monitors): Update.
3320         * mips-tdep.c (_initialize_mips_tdep): Update.
3321         * mcore-tdep.c (_initialize_mcore_tdep): Update.
3322         * maint.c (_initialize_maint_cmds): Update.
3323         * lin-lwp.c (_initialize_lin_lwp): Update.
3324         * language.c (_initialize_language): Update.
3325         * kod.c (_initialize_kod): Update.
3326         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3327         * i386-tdep.c (_initialize_i386_tdep): Update.
3328         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3329         * gdbarch.sh: Update.
3330         * gdbarch.c: Re-generate.
3331         * gdb-events.sh: Update.
3332         * gdb-events.c: Re-generate.
3333         * frame.c (_initialize_frame): Update.
3334         * exec.c: Update.
3335         * demangle.c (_initialize_demangler): Update.
3336         * dcache.c (_initialize_dcache): Update.
3337         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3338         * cp-valprint.c (_initialize_cp_valprint): Update.
3339         * corefile.c (_initialize_core): Update.
3340         * command.h: Update.
3341         * cli/cli-decode.h: Update.
3342         * cli/cli-cmds.c (init_cli_cmds): Update.
3343         * charset.c (_initialize_charset): Update.
3344         * breakpoint.c (_initialize_breakpoint): Update.
3345         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3346         * alpha-tdep.c (_initialize_alpha_tdep): Update.
3347         * aix-thread.c (_initialize_aix_thread): Update.
3348
3349 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
3350
3351         Partial fix for PR backtrace/1718.
3352         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3353         that GCC migrates into the prolugue.  Don't handle any
3354         instructions that clobber %ebx.
3355
3356 2004-07-23  Andrew Cagney  <cagney@gnu.org>
3357
3358         Use regcache_raw_collect instead of regcache_collect.
3359         * regcache.h (regcache_collect): Delete declaration.
3360         * regcache.c (regcache_colect): Delete function.
3361         * win32-nat.c (do_child_store_inferior_registers): Update.
3362         * sol-thread.c (sol_thread_store_registers): Update.
3363         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3364         * rs6000-nat.c (store_register): Update.
3365         * remote.c (store_register_using_P, remote_store_registers): Update.
3366         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3367         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
3368         (fill_vrregset, store_spe_registers, fill_gregset)
3369         (fill_gregset): Update.
3370         * nto-procfs.c (procfs_store_registers): Update.
3371         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3372         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3373         * m68klinux-nat.c (store_register, fill_gregset): Update.
3374         * m68k-tdep.c (fill_gregset): Update.
3375         * infptrace.c (store_register): Update.
3376         * i386-nto-tdep.c (i386nto_regset_fill): Update.
3377         * i386-linux-nat.c (store_register, fill_gregset): Update.
3378         * hppa-linux-nat.c (fill_gregset): Update.
3379         * go32-nat.c (store_register): Update.
3380         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3381         (store_fp_regs): Update.
3382         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
3383         (store_nwfpe_extended, store_fpregister, store_fpregs) 
3384         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3385         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3386         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3387         (store_regs_user_thread, store_regs_kernel_thread): Update.
3388
3389 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
3390
3391         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3392         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3393         encoding.
3394         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3395         member of `struct comp_unit'.
3396
3397 2004-07-23  Andrew Cagney  <cagney@gnu.org>
3398
3399         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3400         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3401
3402 2004-07-23  Martin Hunt  <hunt@redhat.com>
3403         Kevin Buettner <kevinb@redhat.com>
3404
3405         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3406         alignment was being added to the offset instead of multiplied.
3407
3408 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
3409
3410         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3411         changed signal trampoline in OpenBSD 3.5-current.
3412
3413         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3414         <machine/pcb.h> and "bsd-kvm.h".
3415         (sparc64nbsd_supply_pcb): New function.
3416         (_initialize_sparc64nbsd_nat): Renamed from
3417         _initialize_sparcnbsd_nat.  Enable libkvm interface.
3418         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3419         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3420         (LOADLIBES): New variable.
3421
3422         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3423
3424         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3425
3426 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3427
3428         Use regcache_raw_supply instead of supply_register.
3429         * regcache.h (supply_register): Delete declaration.
3430         * regcache.c (supply_register): Delete function.
3431         * wince.c (do_child_fetch_inferior_registers): Update.
3432         * win32-nat.c (do_child_fetch_inferior_registers) 
3433         (fetch_elf_core_registers): Update.
3434         * v850ice.c (v850ice_fetch_registers): Update.
3435         * thread-db.c (thread_db_store_registers): Update.
3436         * sol-thread.c (sol_thread_store_registers): Update.
3437         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3438         * rs6000-nat.c (fetch_register): Update.
3439         * rom68k-rom.c (rom68k_supply_one_register): Update.
3440         * remote.c (remote_wait, remote_async_wait): Update.
3441         * remote-st.c (get_hex_regs): Update.
3442         * remote-sim.c (gdbsim_fetch_register): Update.
3443         * remote-sds.c (sds_fetch_registers): Update.
3444         * remote-rdp.c (remote_rdp_fetch_register): Update.
3445         * remote-rdi.c (arm_rdi_fetch_registers): Update.
3446         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3447         * remote-m32r-sdi.c (m32r_fetch_register): Update.
3448         * remote-hms.c (init_hms_cmds): Update.
3449         * remote-est.c (init_est_cmds): Update.
3450         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
3451         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3452         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3453         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
3454         (fetch_register, supply_vrregset, supply_vrregset)
3455         (fetch_spe_registers): Update.
3456         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3457         * monitor.c (monitor_supply_register): Update.
3458         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3459         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3460         (mipsnbsd_supply_fpreg): Update.
3461         * mips-nat.c (fetch_inferior_registers)
3462         (fetch_core_registers): Update.
3463         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
3464         (supply_fpregset, mips64_supply_gregset)
3465         (mips64_supply_fpregset): Update.
3466         * m68klinux-nat.c (fetch_register, supply_gregset)
3467         (supply_fpregset): Update.
3468         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3469         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3470         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3471         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3472         * infptrace.c (fetch_register): Update.
3473         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3474         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3475         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
3476         (gnu_fetch_registers, gnu_store_registers): Update.
3477         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3478         * i386-linux-nat.c (fetch_register, supply_gregset)
3479         (dummy_sse_values): Update.
3480         * hpux-thread.c (hpux_thread_fetch_registers): Update.
3481         * hppah-nat.c (fetch_register): Update.
3482         * hppa-linux-nat.c (fetch_register, supply_gregset) 
3483         (supply_fpregset): Update.
3484         * go32-nat.c (fetch_register): Update.
3485         * dve3900-rom.c (fetch_bitmapped_register)
3486         (_initialize_r3900_rom): Update.
3487         * cris-tdep.c (supply_gregset): Update.
3488         * abug-rom.c (init_abug_cmds): Update.
3489         * core-aout.c (fetch_core_registers): Update.
3490         * armnbsd-nat.c (supply_gregset, supply_fparegset)
3491         (fetch_register, fetch_fp_register): Update.
3492         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3493         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3494         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3495         * alphanbsd-tdep.c (fetch_core_registers): Update.
3496         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3497         * alpha-nat.c (fetch_osf_core_registers) 
3498         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3499         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
3500         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3501
3502 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3503
3504         * PROBLEMS: Mention breakpoints/1702.
3505         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3506         that is known to work.
3507
3508 2004-07-21  Andrew Cagney  <cagney@gnu.org>
3509
3510         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3511         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3512         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3513         (handle_inferior_event): Wrap call to deprecated
3514         IGNORE_HELPER_CALL in #ifdef.
3515         * config/mips/tm-nbsd.h: Update.
3516
3517 2004-07-20  Jim Blandy  <jimb@redhat.com>
3518
3519         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3520         bfd_mach_ppc has no segment registers.
3521
3522         Include PowerPC SPR numbers for special-purpose registers.
3523         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3524         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3525         new member in initializer.
3526         (S, S4, SN4, S64): New macros for defining special-purpose
3527         registers.
3528         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3529         registers_403, registers_403GC, registers_505, registers_860,
3530         registers_601, registers_602, registers_603, registers_604,
3531         registers_750, registers_e500): Use them.
3532
3533         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3534         replace references with expression used to initialize variable.
3535
3536 2004-07-20  Andrew Cagney  <cagney@gnu.org>
3537
3538         * breakpoint.c (deprecated_read_memory_nobpt): Rename
3539         read_memory_nobpt.
3540         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3541         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3542         (s390_sigtramp_frame_sniffer): Update.
3543         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3544         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3545         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
3546         (mips32_fetch_instruction): Update.
3547         * mcore-tdep.c (get_insn): Update.
3548         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3549         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3550         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3551         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
3552         (i386_linux_rt_sigtramp_start): Update.
3553         * i386-linux-nat.c (child_resume): Update.
3554         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3555         * hppa-linux-tdep.c (insns_match_pattern): Update.
3556         * gdbcore.h: Update.
3557         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3558         * frame.c (safe_frame_unwind_memory): Update.
3559         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3560         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3561         * alpha-tdep.c (alpha_read_insn): Update.
3562
3563 2004-07-20  Andrew Cagney  <cagney@gnu.org>
3564
3565         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3566         containing both bytes and mask.  Add "frame_type".
3567         * tramp-frame.c (tramp_frame_start): Update.
3568         (tramp_frame_prepend_unwinder): Update.
3569         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3570         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3571         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
3572         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3573
3574 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
3575
3576         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3577         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3578         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3579         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3580
3581 2004-07-17  Andrew Cagney  <cagney@gnu.org>
3582
3583         * NEWS, PROBLEMS: Update for 6.2.
3584
3585         * README: Update to 6.2.
3586
3587         * utils.c (xvasprintf): Call xstrvprintf.
3588
3589         * parse.c: Update copyright.
3590         (null_post_parser): Eliminate ARGSUSED.
3591
3592         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3593         * tui/tui-win.c (tui_get_cmd_list): Ditto.
3594         * symfile-mem.c (_initialize_symfile_mem): Ditto.
3595         
3596         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3597         * ppc-linux-nat.c: Use "Linux kernel".
3598         * hppa-linux-tdep.c: Use GNU/Linux.
3599         * hppa-linux-nat.c: Use GNU/Linux.
3600         * dwarfread.c: Add [sic] to use of Linux.
3601
3602         * hppa-linux-nat.c: Do not include <string.h>.
3603         (supply_fpregset): Remove "register" attribute.
3604
3605         * solib-frv.c (fetch_loadmap): Use xfree, not free.
3606
3607 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
3608
3609         * configure.in: Define _MSE_INT_H on Solaris 9 too.
3610         * configure, config.in: Regenerated.
3611
3612         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3613         "bsd-kvm.h".
3614         (vaxbsd_supply_pcb): New function.
3615         (_initialize_vaxbsd_nat): New prototype and function.
3616         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3617         solib-sunos.o.
3618         (LOADLIBES): New variable.
3619         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3620         (LOADLIBES): New variable.
3621         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3622         (LOADLIBES): New variable.
3623         * Makefile.in (vaxbsd-nat.o): Update dependencies.
3624
3625 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3626
3627         * defs.h (event_loop_p): Replace variable declaration with macro,
3628         always 1.
3629         * main.c (captured_main): Delete options "-async" and "-noasync".
3630         (event_loop_p): Delete variable.
3631         * NEWS: Mention that "-async" and "-noasync" were removed.
3632
3633 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3634
3635         * remote-m32r-sdi.c: Re-indent.
3636
3637 2004-07-16  Jim Blandy  <jimb@redhat.com>
3638
3639         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3640         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3641         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3642         missing MPC823 SPRs.
3643         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3644         incorrect.  (This was corrected in GDB's register name tables on
3645         2004-07-14.)
3646
3647         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3648         should be "esasrr" ("ESA Save and Restore Register").
3649
3650 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3651
3652         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3653         calls, no longer applicable.  Update comments and rename parameter
3654         "step_frame" to "return_frame".
3655
3656 2004-07-16  Andrew Cagney  <cagney@gnu.org>
3657
3658         * frame.c (fprint_field): New function.
3659         (fprint_frame_id): Use fprint_field.
3660
3661 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
3662
3663         * ada-lang.c (ada_language_defn): Remove commented out code.
3664
3665 2004-07-15  Jim Blandy  <jimb@redhat.com>
3666
3667         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3668         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3669
3670 2004-07-14  Jim Blandy  <jimb@redhat.com>
3671
3672         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3673
3674         * ppc-tdep.h (ppc_num_vrs): New enum constant.
3675
3676         * ppc-tdep.h (ppc_num_srs): New enum constant.
3677
3678         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3679         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3680         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3681         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3682         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3683         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3684         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3685         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3686         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3687         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3688         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3689         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3690         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3691         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3692         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3693         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3694         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3695         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3696         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3697         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3698         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3699         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3700         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3701         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3702         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3703         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3704         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3705         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3706         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3707         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3708         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3709         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3710         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3711         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3712         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3713         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3714         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3715         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3716         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3717         special-purpose register numbers.
3718
3719         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
3720         manual mentions 'md_twb', but many mention 'm_twb', and at that
3721         point in the register list.)
3722
3723 2004-07-14  Andrew Cagney  <cagney@gnu.org>
3724
3725         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3726         instead of "internal-error".
3727
3728 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
3729
3730         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3731         that was inserted inside a comment.
3732
3733 2004-07-10  Randolph Chung  <tausq@debian.org>
3734
3735         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
3736         function.
3737         (hppa_hpux_push_dummy_code): New function.
3738         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3739         Set find_global_pointer method.
3740
3741 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
3742
3743         * NEWS: Mention BSD libkvm interface.
3744
3745 2004-07-10  Michael Snyder  <msnyder@redhat.com>
3746
3747         * symfile.c (generic_load): Comment typo.
3748         * stack.c (get_selected_block): Ditto.
3749         * regcache.c (regcache_cooked_read): Ditto.
3750         * monitor.c (monitor_debug): Ditto.
3751         * mips-tdep.c (mips_read_pc): Ditto.
3752         * i386-linux-nat.c (ps_get_thread_area): Ditto.
3753         * gdb_mbuild.sh: Ditto.
3754         * gdbarch.sh: Ditto.
3755         * gdbarch.h: Ditto.
3756
3757 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
3758
3759         * ada-tasks.c: Remove file.
3760         
3761         Remove ARI problems:
3762         
3763         * ada-exp.y (write_var_from_sym): Reformat to put operator at
3764         beginning of line.
3765
3766         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3767         Add comment.
3768         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3769         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
3770         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
3771         (UMIN_OF_SIZE): Remove.
3772         (max_of_type): New function to replace orphan macro in gdbtypes.h
3773         (min_of_type): Ditto.
3774         (discrete_type_high_bound): Use max_of_type.
3775         (discrete_type_low_bound): Use min_of_type.
3776         (possible_user_operator_p): Move operator to beginning of line.
3777         (ada_is_variant_part): Ditto.
3778         (ensure_lval): Rewrite to avoid deprecated operations.
3779         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3780         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3781         (ada_enum_name): Remove assignments in 'if' statements.
3782         (build_ada_types): Add gdbarch parameter.
3783         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3784         with gdbarch_data_register_post_init.
3785         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
3786         add_show_from_set.
3787
3788         * ada-valprint.c (inspect_it): Remove declaration.
3789         (repeat_count_threshold): Remove declaration.
3790         (ada_print_floating): Remove assignments in 'if' statements.
3791         (print_str): Move operator to beginning of line.
3792         
3793 2004-07-08  Jim Blandy  <jimb@redhat.com>
3794
3795         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3796
3797 2004-07-08  Bob Rossi  <bob@brasko.net>
3798
3799         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3800
3801 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
3802
3803         * language.h (struct_language_defn): Add new function pointer:
3804         la_class_name_from_physname.  Also add new prototype for
3805         language_class_name_from_physname.
3806         * language.c (language_class_name_from_physname): New function.
3807         (unk_lang_class_name): Ditto.
3808         (unknown_language_defn, auto_language_defn): Change
3809         to add unk_lang_class_name function pointer for
3810         la_class_name_from_physname.
3811         (local_language_defn): Ditto.
3812         * dwarf2read.c (guess_structure_name): Change to call
3813         language_class_name_from_physname.
3814         (determine_class_name): Ditto.
3815         * cp-support.c (class_name_from_physname): Renamed.
3816         (cp_class_name_from_physname): New name of function.
3817         * cp-support.h: Ditto.
3818         * c-lang.c (c_language_defn): Change to add NULL
3819         for class_name_from_physname function pointer.
3820         (cplus_language_defn): Change to add cp_class_name_from_physname.
3821         * jv-lang.c (java_class_name_physname): New function.
3822         (java_find_last_component): New static routine.
3823         (java_language_defn): Add java_class_name_from_physname pointer.
3824         * ada-lang.c (ada_language_defn): Change to add NULL
3825         for class_name_from_physname function pointer.
3826         * f-lang.c (f_language_defn): Ditto.
3827         * m2-lang.c (m2_language_defn): Ditto.
3828         * objc-lang.c (objc_language_defn): Ditto.
3829         * p-lang.c (pascal_language_defn): Ditto.
3830         * scm-lang.c (scm_language_defn): Ditto. 
3831
3832 2004-07-06  Andrew Cagney  <cagney@gnu.org>
3833
3834         Patch from Bart Robinson.
3835         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3836         (O_LARGEFILE): Define to 0, if not defined.
3837
3838 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
3839
3840         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3841         <machine/pcb.h> and "bsd-kvm.h".
3842         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3843         (m68kbsd_supply_pcb): New function.
3844         (_initialize_m68kbsd_nat): New prototype and function.
3845         * Makefile.in (m68kbsd-nat.o): Update dependencies.
3846         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3847         (LOADLIBES): New variable.
3848         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3849         (LOADLIBES): New variable.
3850
3851         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3852
3853 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
3854
3855         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3856         <sys/proc.h>.
3857         (bsd_kvm_cmdlist): New variable.
3858         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3859         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3860         command and "kvm proc" command.
3861         * Makefile.in (bsd-kvm.o): Update dependencies.
3862
3863 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
3864
3865         * osabi.c: Update copyright year.
3866         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
3867         notes if EI_OSABI is set to ELFOSABI_HPUX.
3868
3869 2004-07-01  Michael Snyder  <msnyder@redhat.com>
3870
3871         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3872         that seems to have gotten whacked out of line.
3873
3874 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
3875
3876         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3877         code.
3878
3879 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
3880
3881         * ada-lang.c (decode_packed_array): Minor change to comment.
3882         (ada_value_slice_ptr): New function. 
3883         (ada_value_slice): New function. 
3884         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3885         test.  Don't know why it is there.
3886         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3887         to avoid dereferencing huge arrays from which one is slicing.  
3888         (empty_array): Correct to return an array rather than
3889         a subrange value.
3890         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3891         on empty arrays (let'em use 'FIRST instead).
3892
3893 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
3894
3895         Address complaints from gdb_ari.sh:
3896         
3897         * ada-exp.y: Include gdb_string.h rather than string.h.
3898         (convert_char_literal): Reformat declaration.
3899         * ada-lang.h: Include opaque struct declaration for struct frame_info.
3900         * ada-lex.l: Change use of free to xfree (the macro would do so
3901         anyway, but this is harmless).
3902         Include gdb_string.h rather than string.h.
3903         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3904         
3905         * ada-lang.c (parse): Remove K&Rism in parameter list.
3906         (is_name_suffix): Correct Linux => GNU/Linux in comment.
3907         
3908 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
3909
3910         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3911         dead code.
3912
3913 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
3914
3915         * alphabsd-nat.c: Update copyright year.
3916         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3917
3918 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
3919
3920         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3921         (i386_cygwin_in_solib_call_trampoline): New function.
3922         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3923         and skip_trampoline_code gdbarch methods.
3924
3925 2004-06-29  Jim Blandy  <jimb@redhat.com>
3926
3927         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3928         name actually used in the dependency lists.
3929
3930 2004-06-29  Randolph Chung  <tausq@debian.org>
3931
3932         * NEWS (New native configurations): Mention GNU/Linux/hppa.
3933
3934 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
3935
3936         * win32-nat.c (child_pid_to_exec_file): New function.
3937         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3938         functionality.
3939
3940 2004-06-28  Andrew Cagney  <cagney@gnu.org>
3941
3942         * defs.h (xstrvprintf): Declare.
3943         * utils.c (xstrvprintf): New function.
3944         (internal_vproblem, xstrprintf, xasprintf) 
3945         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3946         * serial.c (serial_printf): Ditto.
3947         * complaints.c (vcomplaint): Ditto.
3948
3949 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
3950
3951         * infcmd.c (attach_command): Move call to target_terminal_inferior
3952         behind loading symbol table.
3953
3954 2004-06-28  Andrew Cagney  <cagney@gnu.org>
3955
3956         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3957         change - add back extern deprecated_ui_loop_hook declaration.
3958
3959 2004-06-28  Andrew Cagney  <cagney@gnu.org>
3960
3961         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3962         xstrprintf.
3963         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3964         (c_value_of_variable): Ditto.
3965         * utils.c (internal_vproblem): Ditto.
3966         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3967         * remote.c (add_packet_config_cmd): Ditto.
3968         * remote-rdp.c (rdp_set_command_line): Ditto.
3969         * regcache.c (regcache_dump): Ditto.
3970         * frv-tdep.c (new_variant, new_variant): Ditto.
3971         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3972         (fbsd_find_memory_regions): Ditto.
3973         * breakpoint.c (create_thread_event_breakpoint) 
3974         (create_breakpoints): Ditto.
3975         * aix-thread.c (aix_thread_pid_to_str): Ditto.
3976         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
3977
3978 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
3979
3980         * ada-lang.c: Re-indent file, with some massaging to help indent
3981         a bit when the result is otherwise really too ugly.
3982
3983 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
3984
3985         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
3986         code_addr_p and special_addr_p to 'unsigned int'.
3987
3988 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
3989
3990         * i386v4-nat.c: Update copyright year and tweak comment.
3991         (regmap): Remove trailing comma.
3992         (supply_gregset): Rename local variable i to regnum.  Call
3993         regcache_raw_supply instead of supply_register.
3994         (fill_gregset): Rename argument regno to regnum.  Call
3995         regcache_raw_collect instead of regcache_collect.
3996
3997 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
3998
3999         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4000         and special_addr_p.
4001         (frame_id_build, frame_id_build_special): Update comments.
4002         (frame_id_build_wild): New prototype.
4003         * frame.c (frame_id_build, frame_id_build_special): Fill in new
4004         struct frame_id fields.
4005         (frame_id_build_wild): New function.
4006         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4007
4008 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4009
4010         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4011         hppabsd-tdep.c.
4012
4013 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4014
4015         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4016
4017 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4018
4019         * ada-lang.c: Re-indent file.
4020
4021 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
4022
4023         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4024         (no_symtab_msg): Likewise.
4025
4026 2004-06-27  Andreas Schwab  <schwab@suse.de>
4027
4028         * source.c: Fix whitespace.
4029
4030 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4031
4032         * configure.in: Include <sys/param.h> for td_pcb test.
4033         * configure: Regenerated.
4034
4035         * i386nbsd-nat.c: New file.
4036         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4037         i386obsd-nat.c and i386obsd-tdep.c.
4038         (i386nbsd-nat.o): New dependency.
4039         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4040         bsd-kvm.o.
4041         (LOADLIBES): New variable.
4042         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4043         bsd-kvm.o.
4044         (LOADLIBES): New variable.
4045
4046         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4047         (LOADLIBES): New variable.
4048
4049         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4050         fetching from BSD_KVM_PADDR.  Correctly lookup address for
4051         "_thread0".
4052
4053         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4054         "bsd-kvm.h".
4055         (amd64fbsd_supply_pcb): New funcion.
4056         (_initialize_amd64fbsd_nat): Enable libkvm interface.
4057
4058 2004-06-27    <david@streamline-computing.com>
4059
4060         Partial fix for PR cli/1056.
4061         * valarith.c: Check for zero in division and remainder 
4062         evaluation.
4063
4064 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
4065
4066         * i387-tdep.c: Remove excessive whitespace.
4067
4068 2004-06-26  Andrew Cagney  <cagney@gnu.org>
4069
4070         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4071         * gdb-events.h, gdb-events.c: Re-generate.
4072         * tui/tui-hooks.c (tui_install_hooks): Update.
4073         (tui_remove_hooks): Update.
4074         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4075
4076 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
4077
4078         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4079         (gregset_t, fpregset_t): Remove typedefs.
4080         (REG_OFFSET): Rename argument.
4081         (amd64bsd_r_reg_offset): Rename from reg_offset.
4082         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4083         Remove functions.
4084         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4085         of reg_offset.
4086         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4087
4088         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4089
4090         * vax-tdep.c: Tweak comment.
4091
4092         Add OpenBSD/hppa support.
4093         * NEWS (New native configurations): Mention OpenBSD/hppa.
4094         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4095         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4096         files.
4097         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4098         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4099         * configure.host: Add hppa*-*-openbsd*.
4100         * configure.tgt: Add hppa*-*-openbsd*.
4101
4102 2004-06-25  Andrew Cagney  <cagney@gnu.org>
4103
4104         * defs.h (deprecated_ui_loop_hook): Deprecated.
4105         * wince.c (child_wait): Update.
4106         * win32-nat.c (child_wait): Update.
4107         * v850ice.c (v850ice_wait): Update.
4108         * top.c (deprecated_ui_loop_hook): Update.
4109         * serial.h: Update.
4110         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
4111         (do_unix_readchar): Update.
4112         * ser-tcp.c (net_open): Update.
4113         * remote-sim.c (gdb_os_poll_quit): Update.
4114         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4115
4116 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4117
4118         * defs.h (deprecated_pre_add_symbol_hook)
4119         (deprecated_post_add_symbol_hook): Deprecated.
4120         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
4121         (symbol_file_add_with_addrs_or_offsets): Update references.
4122
4123 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4124
4125         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4126         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4127         * wince.c (ui_loop_hook): Delete extern declaration.
4128         * win32-nat.c (ui_loop_hook): Delete extern declaration..
4129         * v850ice.c (ui_loop_hook): Delete extern declaration..
4130         * ser-unix.c (ui_loop_hook): Delete extern declaration..
4131         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4132         * remote-sim.c (ui_loop_hook): Delete extern declaration..
4133         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4134         ui_loop_hook declaration.
4135
4136 2004-06-24  Andrew Cagney  <cagney@gnu.org>
4137
4138         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4139         entry_func_highpc fields.
4140         * objfiles.c (init_entry_point_info): Do not clear
4141         entry_func_lowpc and entry_func_highpc.
4142         (objfile_relocate): Do not relocate entry_func_lowpc and
4143         entry_func_highpc.
4144         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4145         entry_func_highpc.
4146         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4147         entry_func_highpc.
4148         * blockframe.c (legacy_frame_chain_valid): Replace tests against
4149         entry_func_lowpc and entry_func_highpc with call to
4150         inside_entry_func.
4151
4152 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4153
4154         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4155         quad-precision floating point arguments in registers.
4156
4157 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
4158
4159         From Michael Mueller <m.mueller99@kay-mueller.de>:
4160         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4161         account.
4162
4163 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
4164
4165         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4166         to -1.
4167         * breakpoint.c (bpstat_stop_status): Move check for ignoring
4168         untriggered watchpoints to a separate if clause.  Update function
4169         comment regarding STOPPED_BY_WATCHPOINT argument.
4170
4171 2004-06-22  Jim Blandy  <jimb@redhat.com>
4172
4173         * gdbarch.sh: Doc fix.
4174
4175 2004-06-21  Martin Hunt  <hunt@redhat.com>
4176         Kevin Buettner <kevinb@redhat.com>
4177
4178         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4179         * mips-tdep.h (MIPS_SP_REGNUM): Define.
4180         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4181         to set_gdbarch_sp_regnum().  Use cooked register number.
4182         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4183
4184 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4185
4186         * gdbarch.sh: When the macro field is empty, do not generate a
4187         macro definition.  When the macro field is "=", generate the macro
4188         name from the upper-case function name.
4189         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4190         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4191         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4192         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4193         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4194         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4195         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4196         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4197         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4198         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4199         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4200         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4201         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4202         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4203         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4204         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4205         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4206         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4207         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4208         (DEPRECATED_USE_STRUCT_CONVENTION)
4209         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4210         (DEPRECATED_FRAME_INIT_SAVED_REGS)
4211         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4212         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4213         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4214         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4215         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4216         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4217         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4218         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4219         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4220         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4221         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4222         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4223         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4224         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4225         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4226         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4227
4228 2004-06-21  Andrew Cagney  <cagney@gnu.org>
4229
4230         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4231         macro name, and the function rather than macro value.  Only wrap
4232         macro print statements in #ifdef.  Move format logic to where it
4233         is needed.
4234         * gdbarch.c: Re-generate.
4235         
4236         * gdbarch.sh (read): Delete "print_p" and "description", add
4237         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
4238         Delete references to print_p.
4239         (TARGET_ARCHITECTURE): Delete print predicate.
4240         * gdbarch.c: Re-generate.
4241         
4242         * gdbarch.sh: Check that multi-arch methods do not provide a
4243         macro.
4244         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4245         (print_registers_info, print_float_info, print_vector_info)
4246         (adjust_breakpoint_address, remote_translate_xfer_address)
4247         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4248         (address_class_type_flags_to_name, unwind_sp): Remove the macro
4249         name from the multi-arch definition.
4250         
4251 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4252
4253         * gdbarch.sh: Sort by the function, instead of macro name.
4254         * gdbarch.c: Re-generate.
4255         
4256 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4257
4258         * gdbarch.sh: Use the function, instead of macro name in
4259         errors and the log file.
4260         (return_value): Remove stray ":" in spec.
4261
4262         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4263         * gdbarch.h, gdbarch.c: Re-generate.
4264         * Makefile.in (arch-utils.o): Update dependencies.
4265         * values.c (using_struct_return): Move code calling
4266         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4267         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4268         to legacy_return_value, simplify.
4269         * infcmd.c (print_return_value): Move code calling
4270         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4271         to legacy_return_value, simplify.
4272         * infcall.c (call_function_by_hand): Move code calling
4273         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4274         * arch-utils.c: Update copyright.  Include "gdbcore.h".
4275         (legacy_return_value): New function.
4276         * arch-utils.h: Update copyright.
4277         (legacy_return_value): Declare.
4278         
4279 2004-06-20  Andrew Cagney  <cagney@gnu.org>
4280
4281         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4282         * gdbarch.h, gdbarch.c: Re-generate.
4283         * values.c (using_struct_return): Update call.
4284         * mcore-tdep.c: Update comment.
4285         * infcall.c (call_function_by_hand): Update comment.
4286         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4287         * arch-utils.h (always_use_struct_convention): Update.
4288         * v850-tdep.c (v850_gdbarch_init): Update.
4289         * sh64-tdep.c (sh64_gdbarch_init): Update.
4290         * sh-tdep.c (sh_gdbarch_init): Update.
4291         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4292         * mips-tdep.c (mips_gdbarch_init): Update.
4293         * mcore-tdep.c (mcore_gdbarch_init): Update.
4294         * m32r-tdep.c (m32r_gdbarch_init): Update.
4295         * ia64-tdep.c (ia64_gdbarch_init): Update.
4296         * h8300-tdep.c (h8300_gdbarch_init): Update.
4297         * frv-tdep.c (frv_gdbarch_init): Update.
4298         * cris-tdep.c (cris_gdbarch_init): Update.
4299         * arm-tdep.c (arm_gdbarch_init): Update.
4300         * alpha-tdep.c (alpha_gdbarch_init): Update.
4301
4302 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
4303
4304         * PROBLEMS: Add more specific information, and a work-around,
4305         for PR gdb/1458.
4306
4307 2004-06-18  Andrew Cagney  <cagney@gnu.org>
4308
4309         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4310         * gdbarch.h, gdbarch.c: Re-generate.
4311         * ada-lang.c (ada_finish_decode_line_1): Update.
4312         * infrun.c (handle_inferior_event): Update.
4313         * infcall.c (find_function_addr): Update.
4314         * linespec.c (minsym_found): Update.
4315         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4316         Update.
4317         * blockframe.c (legacy_frameless_look_for_prologue): Update.
4318         * cli/cli-cmds.c (disassemble_command): Update.
4319         * vax-tdep.c (vax_gdbarch_init): Update.
4320
4321 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
4322
4323         * i386-tdep.c (i386_collect_fpregset): Fix comment.
4324
4325 2004-06-17  Andrew Cagney  <cagney@gnu.org>
4326
4327         GDB 6.1.1 released from the GDB 6.1 branch.
4328         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4329         * PROBLEMS: Ditto.
4330
4331 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
4332
4333         PR gdb/1658
4334         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4335         operation as a uleb128.  Found by Michael Coulter.
4336
4337 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
4338         
4339         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4340         make it non-static.
4341         * ada-lang.h (task_control_block): declaration moved from ada-task.c
4342         to ada-lang.h; this is needed to be able to implement the kill command
4343         in multi-task mode.
4344         (task_ptid): Ditto.
4345         (task_entry): Ditto.
4346         (task_list): Ditto.
4347         (ada_build_task_list): Ditto.
4348         
4349         * ada-lang.c: Conditionalize routines and data structures related 
4350         to breakpoints, exceptions, completion, and symbol caching on 
4351         GNAT_GDB, since these are not yet used in the submitted public sources.
4352         (ada_main_name): Editorial: Move definition out of exception-related 
4353         code.
4354
4355 2004-06-15  Andrew Cagney  <cagney@gnu.org>
4356
4357         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4358         deprecated_pc_in_call_dummy.
4359
4360 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
4361
4362         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4363         bfd_get_section_size_before_reloc or _raw_size.
4364         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4365         * dwarf2read.c (dwarf2_locate_sections): Likewise.
4366         (dwarf2_read_section): Likewise.
4367         * elfread.c (elf_locate_sections): Likewise.
4368         * gcore.c (derive_heap_segment): Likewise.
4369         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4370         * remote-e7000.c (e7000_load): Likewise.
4371         * remote-m32r-sdi.c (m32r_load): Likewise.
4372         * remote-mips.c (mips_load_srec): Likewise.
4373         (pmon_load_fast): Likewise.
4374         * remote.c (compare_sections_command): Likewise.
4375         * symfile.c (add_section_size_callback): Likewise.
4376         (load_section_callback): Likewise.
4377         (pc_in_unmapped_range): Likewise.
4378         (pc_in_mapped_range): Likewise.
4379         (sections_overlap): Likewise.
4380         (list_overlays_command): Likewise.
4381         (simple_overlay_update_1): Likewise.
4382         (simple_overlay_update): Likewise.
4383         * tracepoint.c (remote_set_transparent_ranges): Likewise.
4384         * win32-nat.c (core_section_load_dll_symbols): Likewise.
4385
4386 2004-06-14  Randolph Chung  <tausq@debian.org>
4387
4388         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4389         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
4390         static.
4391         (hppa_hpux_inferior_created): New function.
4392         (hppa_hpux_init_abi): Register observer.
4393         * symfile.c (hp_cxx_exception_support_initialized)
4394         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4395         (symbol_file_add_main_1, symbol_file_clear): Likewise.
4396
4397 2004-06-14  Randolph Chung  <tausq@debian.org>
4398
4399         * MAINTAINERS (Write After Approval): Alphabetize my entry
4400         correctly.
4401
4402 2004-06-14  Andrew Cagney  <cagney@gnu.org>
4403
4404         * MAINTAINERS (testsuite): List Michael Chastain as the lead
4405         testsuite maintainer.
4406
4407 2004-06-13  Andrew Cagney  <cagney@gnu.org>
4408
4409         * infcmd.c (print_return_value): Fix logic, allow
4410         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4411
4412         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4413         defining any macros.
4414         * gdbarch.h: Re-generate.
4415
4416         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
4417         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4418         * gdbarch.h: Re-generate.
4419
4420         * values.c (generic_use_struct_convention): Don't check gcc_p.
4421
4422         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4423         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4424         * gdbarch.h, gdbarch.c: Regenerate.
4425         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
4426         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4427         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4428         deprecated_max_register_raw_size and
4429         deprecated_max_register_virtual_size.
4430         * v850-tdep.c (v850_gdbarch_init): Ditto.
4431         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4432         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4433         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4434         * cris-tdep.c (cris_gdbarch_init): Ditto.
4435
4436         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4437         * gdbarch.h, gdbarch.c: Re-generate.
4438         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4439         (m68hc11_use_struct_convention): Delete function.
4440         (m68hc11_extract_struct_value_address): Delete function.
4441         (m68hc11_return_value): New function.
4442         (m68hc11_gdbarch_init): Instead of store_return_value,
4443         extract_return_value, return_value_on_stack,
4444         deprecated_extract_struct_value_address and use_struct_convention,
4445         set return_value.
4446         * values.c (using_struct_return): Do not call
4447         RETURN_VALUE_ON_STACK.
4448         * arch-utils.h (generic_return_value_on_stack_not): Delete
4449         declaration.
4450         * arch-utils.c (generic_return_value_on_stack_not): Delete
4451         function.
4452         
4453 2004-06-12  Andrew Cagney  <cagney@gnu.org>
4454
4455         * values.c (register_value_being_returned): Delete function.
4456         * infcmd.c (legacy_return_value): Delete function.
4457         * infcall.c (call_function_by_hand): Inline
4458         "register_value_being_returned", simplify.
4459         * values.c (using_struct_return): Update comment, refer to
4460         print_return_value instead of register_value_being_returned.
4461         * infcmd.c (print_return_value): Inline calls to
4462         register_value_being_returned and legacy_return_value.  Simplify.
4463
4464 2004-06-11  Randolph Chung  <tausq@debian.org>
4465
4466         * somread.c (som_symtab_read): Exclude gcc local symbols.
4467
4468 2004-06-11  Randolph Chung  <tausq@debian.org>
4469
4470         * infrun.c (handle_inferior_event): Handle the case when a
4471         trampoline ends up in the runtime resolver, and if the trampoline
4472         has no name.  Rearrange the code so that all the trampoline
4473         processing happens before other step-out-of-range handling.
4474
4475 2004-06-11  Martin Hunt  <hunt@redhat.com>
4476
4477         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4478         has no fpu.
4479
4480 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4481
4482         * blockframe.c (legacy_inside_entry_func): Delete.
4483         (legacy_frame_chain_valid): Inline call to
4484         legacy_inside_entry_func, simplify.
4485
4486 2004-06-10  Bob Rossi  <bob@brasko.net>
4487
4488         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4489         * dwarf2read.c (partial_die_info): Add dirname field.
4490         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4491         (read_partial_die): Save away DW_AT_comp_dir.
4492         * defs.h (symtab_to_filename): Removed.
4493         * source.c (find_and_open_source): Added.
4494         (open_source_file): Just calls find_and_open_source.
4495         (symtab_to_filename): Removed.
4496         (symtab_to_fullname, psymtab_to_fullname): Added.
4497         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4498         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4499         symtab_to_filename.
4500         * symtab.h (partial_symtab): Add dirname field.
4501         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4502         (mi_cmd_file_list_exec_source_file): Call new function
4503         symtab_to_fullname to find fullname.
4504         (mi_cmd_file_list_exec_source_files): Added.
4505         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4506         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4507
4508 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4509
4510         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4511         to generic_use_struct_convention, the default value.
4512
4513         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4514         of abort.
4515
4516         * ns32k-tdep.c (ns32k_push_arguments): New function.
4517         (ns32k_gdbarch_init): Set deprecated_push_arguments.
4518         * infcall.c (call_function_by_hand): Call error instead of
4519         legacy_push_arguments.
4520         * value.h (legacy_push_arguments): Delete declaration.
4521         * valops.c (legacy_push_arguments): Delete function.
4522         (value_push): Delete function.
4523
4524 2004-06-10  Brian Ford  <ford@vss.fsi.com>
4525
4526         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4527         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
4528         info.
4529         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4530
4531 2004-06-10  Andrew Cagney  <cagney@gnu.org>
4532
4533         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4534         * gdbarch.h, gdbarch.c: Re-generate.
4535         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4536         parameters.
4537         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4538         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4539         deprecated_pc_in_call_dummy instead of
4540         DEPRECATED_PC_IN_CALL_DUMMY.
4541         (arm_skip_prologue): Ditto.
4542         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4543         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4544         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4545         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4546         Ditto.
4547         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
4548         (sh64_init_extra_frame_info, sh64_get_saved_register) 
4549         (sh64_pop_frame): Ditto.
4550         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4551         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
4552         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4553         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
4554         (h8300_pop_frame): Ditto.
4555         * blockframe.c (legacy_inside_entry_func) 
4556         (legacy_frame_chain_valid): Ditto.
4557         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4558         to deprecated_pc_in_call_dummy.
4559         
4560 2004-06-09  Andrew Cagney  <cagney@gnu.org>
4561
4562         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4563         provide a default value.
4564         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4565         * gdbarch.h, gdbarch.c: Re-generate.
4566         * arch-utils.c (generic_convert_register_p): Rename
4567         legacy_convert_register_p
4568         (legacy_register_to_value, legacy_value_to_register): Delete
4569         functions.
4570         * arch-utils.h (generic_convert_register_p): Rename
4571         legacy_convert_register_p.
4572         (legacy_register_to_value, legacy_value_to_register): Delete
4573         declarations.
4574
4575         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4576         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4577         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4578         * gdbarch.h, gdbarch.c: Re-generate.
4579         * infcmd.c (default_print_registers_info): Simplify.
4580         * findvar.c (value_of_register): Simplify.
4581         * mi/mi-main.c (get_register): Simplify.
4582         * arch-utils.c (legacy_convert_register_p): Always return 0.
4583         (legacy_register_to_value, legacy_value_to_register): Always call
4584         internal_error.
4585
4586         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4587         #ifdef CLEAR_INSN_CACHE code.
4588         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4589         Delete #ifdef CLEAR_DEFERRED_STORES code.
4590
4591         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4592
4593         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4594         copyright.
4595         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4596
4597         * config/mips/mipsv4.mh: Delete file.
4598
4599         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4600         unreferenced macro.
4601         (hpread_adjust_stack_address): Delete declaration.
4602
4603 2004-06-08  Andrew Cagney  <cagney@gnu.org>
4604
4605         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4606         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4607         PTRACE_ATTACH / PTRACE_DETACH available call error.
4608         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4609         * infttrace.c (update_thread_state_after_attach, attach, detach):
4610         Remove #ifdef wrappers.
4611         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4612         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4613         * config/nm-bsd.h (ATTACH_DETACH): Delete.
4614         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4615         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4616         * config/nm-linux.h (ATTACH_DETACH): Delete.
4617         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4618         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4619         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4620         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4621         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4622
4623 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
4624
4625         * configure.in: Set $configdir to the right OS specific value.
4626         Use value when setting $tcldir and $tkdir.
4627         * configure: Regenerate.
4628
4629 2004-06-06  Paul Brook  <paul@codesourcery.com>
4630
4631         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4632         records.
4633
4634 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
4635
4636         * ada-lang.c (lookup_symbol_in_language): New function to allow
4637         re-use of another language's symbol lookup code.  (Placed here
4638         temporarily while Ada support is being integrated into the public
4639         tree).  
4640         (restore_language): New auxiliary function for 
4641         lookup_symbol_in_language.
4642         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4643         temporarily while Ada support is being integrated into the public
4644         tree).
4645         
4646 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
4647
4648         * Makefile.in (check//%): New.
4649
4650         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4651         (mn10300_store_return_value): Rewrite.
4652         (mn10300_type_align): New.
4653         (mn10300_use_struct_convention): Rewrite.
4654         (mn10300_return_value): New, using all of the above.
4655         (mn10300_pop_frame_regular): Add saved_regs_size.
4656         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4657
4658         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4659         regs if PC is on movm.
4660
4661 2004-06-07  Jim Blandy  <jimb@redhat.com>
4662
4663         Add native Linux support for the PowerPC E500.
4664         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4665         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4666         all architectures except the E500.
4667         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4668         #definitions.
4669         (struct gdb_evrregset_t): New type.
4670         (have_ptrace_getsetevrregs): New variable.
4671         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
4672         fetch_spe_registers): New functions.
4673         (fetch_register): Call fetch_spe_register as appropriate.
4674         Assert that we're only passed raw register numbers.
4675         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4676         Don't fetch gprs if they're pseudoregisters.
4677         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4678         store_spe_registers): New functions.
4679         (store_register): Call store_spe_register as appropriate.
4680         Assert that we're only passed raw register numbers.
4681         (store_ppc_registers): Call store_spe_registers as appropriate.
4682         Don't store gprs if they're pseudoregisters.
4683         
4684 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
4685
4686         * thread-db.c (thread_get_info_callback): Fill in the thread_info
4687         struct if one exists, even if we are dealing with a zombie thread.
4688
4689 2004-06-07  Andrew Cagney  <cagney@gnu.org>
4690
4691         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4692         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4693         Rename PC_REQUIRES_RUN_BEFORE_USE.
4694         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
4695         #ifdef.
4696
4697 2004-06-07  Randolph Chung  <tausq@debian.org>
4698
4699         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4700         unwinding after sp has been saved to the stack but before the end
4701         of the prologue, and after the fp has been modified but before it has
4702         been saved to the stack.
4703         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
4704         Remove superfluous definitions.
4705         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4706
4707 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
4708
4709         Committed by Randolph Chung.
4710         * hppa-linux-nat.c: Include the correct version of the header file
4711         depending on the kernel version.
4712
4713 2004-06-06  Randolph Chung  <tausq@debian.org>
4714
4715         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4716         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4717
4718 2004-06-06  Randolph Chung  <tausq@debian.org>
4719
4720         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
4721         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4722         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4723         * hppa-tdep.c (hppa_symbol_address): New function definition.
4724         * hppa-tdep.h (hppa_symbol_address): New function declaration.
4725
4726 2004-06-06  Randolph Chung  <tausq@debian.org>
4727
4728         * hppa-tdep.h (struct value): Forward declaration.
4729         (gdbarch_tdep): Define tdep find_global_pointer method.
4730         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4731         associated with the function we are trying to call, and write it
4732         to the gp register.
4733         (hppa32_convert_from_funct_ptr_addr): New function.
4734         (hppa_find_global_pointer): New function.
4735         (hppa_gdbarch_init): Set default find_global_pointer method; set
4736         convert_from_func_ptr_addr method.
4737         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4738         (hppa_linux_init_abi): Set find_global_pointer method.
4739         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4740
4741 2004-06-06  Randolph Chung  <tausq@debian.org>
4742
4743         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4744         to struct value *function.
4745         * gdbarch.c: Regenerate.
4746         * gdbarch.h: Likewise.
4747         * infcall.c (call_function_by_hand): Pass entire function value
4748         to push_dummy_call.
4749
4750         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4751         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4752         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4753         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4754         * arm-tdep.c (arm_push_dummy_call): Likewise.
4755         * avr-tdep.c (avr_push_dummy_call): Likewise.
4756         * cris-tdep.c (cris_push_dummy_call): Likewise.
4757         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4758         * frv-tdep.c (frv_push_dummy_call): Likewise.
4759         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4760         * hppa-tdep.c (hppa32_push_dummy_call)
4761         (hppa64_push_dummy_call): Likewise.
4762         * i386-tdep.c (i386_push_dummy_call): Likewise.
4763         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4764         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4765         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4766         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4767         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4768         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4769         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4770         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4771         (ppc64_sysv_abi_push_dummy_call): Likewise.
4772         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4773         (ppc64_sysv_abi_push_dummy_call): Likewise.
4774         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4775         * s390-tdep.c (s390_push_dummy_call): Likewise.
4776         * sh-tdep.c (sh_push_dummy_call_fpu)
4777         (sh_push_dummy_call_nofpu): Likewise.
4778         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4779         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4780         * vax-tdep.c (vax_push_dummy_call): Likewise.
4781
4782 2004-06-04  Jim Blandy  <jimb@redhat.com>
4783
4784         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4785         gdbarch argument to register_size.
4786
4787         * rs6000-tdep.c (rs6000_store_return_value): Use
4788         regcache_cooked_write_part instead of
4789         deprecated_write_register_bytes.
4790         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4791         not gdbarch_deprecated_store_return_value.
4792
4793         * ppc-linux-nat.c (store_register, fetch_register): Remove
4794         incorrect assertions.  Simplify and generalize handling of
4795         transfers whose sizes are not multiples of, or less than, sizeof
4796         (PTRACE_XFER_TYPE).
4797
4798 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4799
4800         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4801         as a new thread event.
4802         * thread-db.c (thread_get_info_callback): If the thread is a
4803         zombie, return TD_THR_ZOMBIE.
4804         (thread_from_lwp): If thread_get_info_callback returns
4805         TD_THR_ZOMBIE, check if the thread is still on the thread list
4806         and return a -1 ptid if not found.
4807         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4808         change the status to TARGET_WAITKIND_SPURIOUS.
4809
4810 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
4811
4812         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4813         double values in little endian mode.
4814
4815 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
4816
4817         Committed by Andrew Cagney.
4818         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4819         after last enum constant to avoid error from IBM C
4820         compiler.
4821
4822 2004-06-02  Jim Blandy  <jimb@redhat.com>
4823
4824         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4825         to 'message', and make it local to the lone block that uses it.
4826
4827         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4828
4829 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
4830
4831         * ada-exp.y: Update copyright notice.
4832         Include block.h.
4833         
4834         Replace REGNAME, LAST, INTERNAL_VARIABLE with
4835         SPECIAL_VARIABLE and unify the treatment of these cases.
4836
4837         (write_attribute_call0): Remove.
4838         (write_attribute_call1): Remove.
4839         (write_attribute_calln): Remove.
4840         (save_qualifier): Add missing semicolon.
4841
4842         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
4843         temporarily disabled to allow compilation with FSF head version.
4844
4845         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
4846         use individual operators (OP_*) for all attributes.
4847         (exp syntax): Use write_int.
4848         Handle STRING literals with OP_STRING.
4849         (variable syntax): Add limit parameter to calls to 
4850         write_object_renaming.  
4851
4852         (temp_parse_space): New definition to hold entities that need
4853         only live until the next call to ada_parse.
4854         (string_to_operator): Rename fields of ada_opname_table entries.
4855
4856         (write_var_from_sym): Record block.
4857         (write_var_from_name): Minor reformatting.
4858         Make sure saved name is properly encoded in the case of multiple 
4859         matches, and set its language to Ada.
4860         Update comment.
4861         Modify to indicate unresolved name as symbol in the UNRESOLVED 
4862         namespace, allocated in temp_parse_space.
4863         (write_int): New function.
4864
4865         (write_object_renaming): Add max_depth parameter to limit
4866         chains of object renamings.
4867         Handle case where root of renaming expression is itself a renaming.
4868         Use temp_parse_space for temporary name buffer.
4869         Handle renamings to dereferenced pointers (___XEXA suffices).
4870         
4871         (ada_parse, yyerror, string_to_operator, 
4872         write_var_from_sym, write_var_from_name, write_attribute_call0, 
4873         write_attribute_call1, write_attribute_calln, 
4874         write_object_renaming): Protoize.
4875
4876         (_initialize_ada_exp): New function.
4877         
4878         * ada-lang.c: Update copyright notice.
4879         General terminology change to conform to GNAT compiler usage:
4880         mangle => encode, demangle => decode
4881         Include gdb_obstack.h.
4882         Include gdb_regex.h
4883         Include frame.h
4884         Include hashtab.h
4885         Include completer.h
4886         Include gdb_stat.h
4887         Include block.h
4888         Include infcall.h
4889         
4890         (ADA_RETAIN_DOTS): Make sure this is defined.
4891         (TRUNCATION_TOWARDS_ZERO): Define.
4892         (struct string_vector): Define.
4893         (unresolved_names): Remove definition.
4894         (xnew_string_vector): New function.
4895         (string_vector_append): New function.
4896         (extract_string): Make static.
4897         (ada_unqualified_name): New function.
4898         (add_angle_brackets): New function.
4899         (function_name_from_pc): New function.
4900         (place_on_stack): Rename to ensure_lval.
4901
4902         (ensure_lval): Renamed from place_on_stack.
4903         Make identity on lvals.
4904         Update comment.
4905         (is_nonfunction): New interface.
4906         Only symbols in LOC_CONST class can be enumerals.
4907         (fill_in_ada_prototype): Remove; now independent of language.
4908         (add_defn_to_vec): Add obstack and symtab arguments.
4909         Use obstack to hold collected definitions.
4910         (num_defns_collected): New function.
4911         (defns_collected): New function.
4912         (ada_resolve_subexp): Rename to resolve_subexp.
4913         (resolve_subexp): Renamed from ada_resolve_subexp.
4914         (ada_op_name): Return non-const result.
4915         (ada_decoded_op_name): Renamed from ada_op_name, now used for
4916         other purposes.
4917
4918         (to_fixed_array_type): Add declaration.
4919         (coerce_unspec_val_to_type): Remove offset parameter.
4920         (find_sal_from_funcs_and_line): New interface.
4921         (find_line_in_linetable): Ditto.
4922
4923         (all_sals_for_line): Rename to ada_sals_for_line and make
4924         global.
4925         Add new parameter. When set, do not ask the user to choose the 
4926         instance, but use the first one found instead.
4927         Use given line number in returned sals.
4928         Fix comment. 
4929         Skip the prologue if funfirstline is set.
4930         Correct for memory leak when 0 lines found.
4931
4932         (value_pos_atr): Use pos_atr.
4933         (pos_atr): New function.
4934         (standard_lookup): Add block parameter.
4935
4936         (makeTimeStart): Remove declaration and uses.
4937         (makeTimeStop): Remove declaration and uses.
4938
4939         (ada_completer_word_break_characters): Allow for VMS.
4940         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4941         (raise_sym_name): New constant.
4942         (raise_unhandled_sym_name): New constant.
4943         (raise_assert_sym_name): New constant.
4944         (process_raise_exception_name): New constant.
4945         (longest_exception_template): New constant.
4946         (warning_limit): New variable to limit warnings during expression
4947         evaluation.
4948         (warnings_issued): New variable to keep track of warnings issued.
4949         (known_runtime_file_name_patterns): New constant.
4950         (known_auxiliary_function_name_patterns): New constant.
4951         (symbol_list_obstack): New variable.
4952         
4953         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4954         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4955         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4956         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
4957         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
4958         ada_variant_discrim_name, field_alignment, dynamic_template_type,
4959         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
4960         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
4961         and strcmp. 
4962
4963         (ada_get_field_index): New function.
4964         (lim_warning): New function.
4965         (ada_translate_error_message): New function.
4966         (MAX_OF_SIZE): New function.
4967         (MIN_OF_SIZE): New function.
4968         (UMAX_OF_SIZE): New function.
4969         (UMIN_OF_SIZE): New function.
4970         (discrete_type_high_bound): New function.
4971         (discrete_type_low_bound): New function.
4972         (base_type): New function.
4973         (do_command): Remove.
4974         
4975         (ada_update_initial_language): Use language_ada, not language_unknown.
4976         (ada_encode): Renamed from ada_mangle.
4977         Obey ADA_RETAIN_DOTS.
4978         (ada_decode): Renamed from ada_demangle.
4979         Update coding conventions.
4980         (decoded_names_store): New hash table.
4981         (ada_decode_symbol): New function.
4982         (ada_la_decode): New function.
4983         
4984         (modify_general_field): Correct computations of offset and bit 
4985         position.
4986         (desc_base_type): Handle ref types, too.
4987         (ada_is_direct_array_type): New function.
4988
4989         (ada_is_simple_array): Rename to ada_is_simple_array_type.
4990         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4991         (ada_is_bogus_array_descriptor,ada_type_of_array,
4992         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4993         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
4994         ada_is_array_descriptor_type.
4995         
4996         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4997         (ada_is_packed_array_type): Handle pointers or 
4998         references to packed arrays as well.
4999         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5000         (decode_packed_array_type): Search for the packed array type 
5001         symbol in the currently selected block and associated 
5002         superblocks too.
5003         Use lookup_symbol again.
5004
5005         (decode_packed_array): Handle pointers and references.
5006         Update call to coerce_unspec_val_to_type.
5007         (decode_packed_array_type,value_subscript_packed): Limit warnings.
5008         (ada_value_primitive_packed_val): Improve comment.
5009         
5010         (ada_index_type): Substitute int type for "undefined".
5011         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5012         ada_array_langth, ada_is_string_type): Use renamed 
5013         ada_is_simple_array_type.
5014         (empty_array): New function.
5015
5016         (ada_resolve):  Rename to resolve.
5017         (resolve): Make static.
5018         Call renamed resolve_subexp.
5019         Update comment.
5020         (ada_resolve_subexp): Rename to resolve_subexp.
5021         (resolve_subexp): Update comment.
5022         Decomment disabled code.
5023         Add LOC_COMPUTED* cases.
5024         Modify to use temporary struct symbols (marked as being in 
5025         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
5026         OP_UNRESOLVED_VALUE.
5027         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
5028         Add OP_STRING case.
5029         Remove OP_ARRAY.
5030         Use SYMBOL_PRINT_NAME instead of ada_demangle.
5031         Use new ada_lookup_symbol_list interface.
5032         Use new ada_resolve_function interface.
5033         Remove OP_TYPE case.
5034
5035         (ada_args_match): Idiot proof against null actuals.
5036         Use intermediate variables to clarify.
5037         (ada_resolve_function): Update comment and interface.
5038         (mangled_ordered_before): Rename to encoded_ordered_before and
5039         update comment.
5040         (sort_choices): Update comment and interface.
5041         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5042         (user_select_syms): New interface.
5043         Use new sort_choices interface.
5044         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5045         (possible_user_operator_p): Idiot-proof against null values.
5046         (ada_simple_renamed_entity): Don't make cleanup; rely on 
5047         caller to free result string.
5048         Remove const from return type.
5049         (make_array_descriptor): Rename uses of place_on_stack to 
5050         ensure_lval.
5051         Make sure that arrays are on stack.
5052         
5053         (HASH_SIZE): Define.
5054         (struct cache_entry): Define.
5055         (cache_space): Define.
5056         (cache): Define.
5057         (clear_ada_sym_cache): New function.
5058         (find_entry): New function.
5059         (lookup_cached_symbol): New function.
5060         (defn_vector_size): Define.
5061         (cache_symbol): New function.
5062         (defn_symbols): Remove.
5063         
5064         (standard_lookup): Use lookup_symbol_in_language to get effect of
5065         C lookup.
5066         Cache results.
5067         
5068         (symbol_completion_match): New function.
5069         (symbol_completion_add): New function.
5070         (ada_make_symbol_completion_list): New function.
5071
5072         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
5073         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
5074         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
5075         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5076         
5077         (ada_lookup_simple_minsym): New function.
5078         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5079
5080         (add_symbols_from_enclosing_procs): New interface.
5081         Conditionalize more helpfully.
5082         Don't bother if program isn't running.
5083         Use new interface to get_frame_block.
5084         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5085         
5086         (remove_extra_symbols): New interface.
5087         (xget_renaming_scope): New function.
5088         (is_package_name): New function.
5089         (renaming_is_visible): New function.
5090         (remove_out_of_scope_renamings): New function.
5091
5092         (ada_lookup_symbol_list): New interface.
5093         Properly reinitialize the symbol list obstack.
5094         Don't call add_symbols_from_enclosing_procs if we start from a
5095         static or global block.
5096         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
5097         add_symbols_from_enclosing_procs.
5098         Add symtab data to cached entries.
5099         Handle symbols prefixed with
5100         "standard__" specially; strip prefix and don't look in local symbols.
5101         Do not include out of scope renaming symbols in list of 
5102         symbols returned.
5103         Add const to block parameter.
5104         Move check for non-local, non-global symbols earlier.  
5105         Remove timing stuff.
5106         (ada_lookup_symbol): New interface.
5107         Find symtab as well.
5108         (ada_lookup_symbol_nonlocal): New function.
5109
5110         (is_name_suffix): Enhance suffix detection to recognize
5111         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5112         (is_dot_digits_suffix): New function.
5113         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5114         
5115         (ada_add_block_symbols): New interface.  Use obstack to return results
5116         in a vector of struct ada_symbol_infos.  Add symtab argument.
5117         Use new interface to add_defn_to_vec.
5118         Remove calls to fill_in_ada_prototype.
5119         Use BLOCK_BUCKETS, BLOCK_BUCKET.
5120         
5121         (ada_finish_decode_line_1): Add const qualification to local to fix
5122         warning.
5123         Start looking in static block for functions to avoid attempts 
5124         to search frame chain for up-level variables.
5125         Adapt to new ada_sals_for_line interface.
5126         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5127         Handle quoting of the function name inside the spec string.
5128         Skip prologue when funfirstline is set and update the 
5129         function documentation to that effect.
5130
5131         (debug_print_lines, debug_print_block, debug_print_blocks, 
5132         debug_print_symtab): Remove.
5133
5134         (ada_main_name): New function.  
5135         (ada_exception_breakpoint_type): New function.
5136         (is_known_support_routine): New function.
5137         (ada_find_printable_frame): Renamed from find_printable_frame and made
5138         global.
5139         Remove level parameter.
5140         Use new interface to select_frame.
5141
5142         (begin_command): Remove.
5143         (ada_adjust_exception_stop): New function.
5144         (ada_print_exception_stop): New function.
5145         (exception_name_from_cond): New function.
5146         (ada_report_exception_break): Replace disabled code with 
5147         conditionalization on GNAT_GDB.
5148         Get the exception name from the condition string.
5149         Remove and move functionality into new functions 
5150         ada_print_exception_breakpoint_task and 
5151         ada_print_exception_breakpoint_nontask.
5152         (error_breakpoint_runtime_sym_not_found): New function.
5153         (is_runtime_sym_defined): New function.
5154         (ada_breakpoint_rewrite): Uncomment suppressed code.
5155         Use symbolic error-message and runtime-symbol names.
5156         Surround runtime symbol names in quotes.
5157         Allow non-specific breakpoints on exceptions and assertions before
5158         program starts.
5159         
5160         (ada_is_tagged_type): Add parameter.
5161         (ada_is_tag_type): New function.
5162         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5163         (ada_variant_discrim_type): Ditto.
5164         (value_tag_from_contents_and_address): New function.
5165         (type_from_tag): New function.
5166         (struct tag_args): New structure used to communicate with
5167         ada_tag_name_1.
5168         (ada_tag_name_1): New function.
5169         (ada_tag_name): New function.
5170
5171         (ada_scan_number): Update comment.
5172         (find_struct_field): New function.
5173         (ada_search_struct_field): Make static.
5174         (ada_value_struct_elt): New version that returns references when
5175         given pointers or references to structs.
5176         (ada_lookup_struct_elt_type): Add 'refok' parameter.
5177         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5178         interface.
5179         (ada_value_ind): Use new ada_to_fixed_value interface.
5180         (ada_coerce_ref): Ditto.
5181         (field_offset): Remove.
5182
5183         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5184         (ada_find_renaming_symbol): New function.
5185         (ada_prefer_type): Prefer named types over unnamed ones.
5186         (variant_field_index): New function.
5187         (contains_variant_part): Removed: subsumed by variant_field_index.
5188         (ada_template_to_fixed_record_type): New function, mostly from
5189         template_to_fixed_record_type.
5190         (template_to_fixed_record_type): 
5191         Do not scan the type fields beyond the last one; prevents a 
5192         potential SEGV.
5193         Handle case where variant field is listed BEFORE discriminant it 
5194         depends on.
5195         Fix calculation of record length when bit length is 
5196         not evenly divisible by char length.
5197         Move code to ada_template_to_fixed_record_type and call it.
5198
5199         (template_to_static_fixed_type): Revise comment.  
5200         Modify to work on ordinary record types as well as templates, 
5201         so as to handle fields that use ___XVE or ___XVU encodings. 
5202         (to_record_with_fixed_variant_part): Fill out comment.
5203         Initialize C++ stuff in right type.
5204         Allow case where DVAL is null.
5205         Handle case where variant field is not last.
5206         Fix typo concerning record length.
5207         (to_fixed_record_type): Decomment disabled code.
5208         (to_fixed_record_type): Use variant_field_index instead of 
5209         contains_variant_part.
5210         (to_fixed_variant_branch_type): Ditto.
5211         (to_fixed_array_type): Decomment disabled code.
5212         (ada_to_fixed_type): Convert tagged types to the specific type.
5213         Deactivate the size-check for array types in order to avoid 
5214         some false size alarms.
5215         (to_static_fixed_type): Decomment disabled code.
5216         Modify to call template_to_static_fixed_type
5217         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5218         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5219         Remove valaddr argument, as it is never really used.
5220         (ada_to_fixed_value): Change interface to act on single struct value*
5221         operand.
5222         (adjust_pc_past_prologue): New function.
5223         (ada_attribute_name): Modify to take enum exp_opcode argument.
5224                 
5225         (ada_enum_name): Recognize new homonym-distinguishing convention.
5226         Adjust local variable's type to remove compiler warning.
5227         Fix a small problem in the part that unqualifies the enumeration name.
5228         (ada_value_binop): New function.
5229         (ada_value_equal): New function.
5230
5231         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5232         Don't give error message when not doing normal evaluation 
5233         and a tagged type doesn't seem to contain a structure member.
5234         Give error message for packed arrays.
5235         For indexing arrays, handle pointers to packed arrays correctly.
5236         Handle case of 'first and 'last attributes of bare integral type 
5237         without encoded subtype info.  
5238         Remove some unnecessary casts.
5239         Fix uninitialized value of type in computing 'first, 'last, or 'length
5240         of array object.  
5241         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5242         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5243         calls.
5244         Attributes are now exp_opcode values.
5245         Correct treatment of 'modulus.
5246         Better error message for taking 'length of wrong kind of type; 
5247         improve comment.
5248         Change EVAL_NORMAL to noside for consistency.
5249         Use ada_value_binop for DIV, MOD, REM.
5250         Make special case out of array of length 0, since an argument 
5251         of 0 upsets some platforms' malloc.
5252         Use OP_STRING instead of OP_ARRAY.
5253         For slice, add check that we have an array type before extracting 
5254         a slice out of it.  Avoids a SEGV.
5255         When evaluating an array slice, if the array type is a reference to 
5256         an aligner type, then replace the aligner type by the actual type.
5257         Decomment disabled code.
5258         Remove some dead code.
5259         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
5260         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5261         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
5262         and UNOP_MBR to UNOP_IN_RANGE.
5263         If an array type has a parallel ___XVE type, then use it.
5264         Turn arrays into pointers for lvalue arrays.
5265         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5266         bounds error and handle 0-length slices.
5267         Use lim_warning.
5268         When selecting fields, apply ada_to_fixed_value (because the fields 
5269         might have ___XVU or ___XVE encodings even if not dynamic.)
5270         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5271         (ada_is_system_address_type): New function.
5272
5273         (get_var_value): Use new interface to ada_lookup_symbol_list.
5274         (get_int_var_value): New interface.
5275         (to_fixed_range_type): Allow unknown bound, with warning.
5276         (ada_is_modular_type): Decomment disabled code.
5277         (ADA_OPERATORS): New definition.
5278         (ada_operator_length): New function.
5279         (ada_expr_op_name): New function.
5280         (ada_forward_operator_length): New function.
5281         (ada_dump_subexp_body): New function.
5282         (ada_print_subexp): New function.
5283         (ada_exp_descriptor): New constant.
5284         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
5285         (ada_language_defn): Add ada_exp_descriptor entry.
5286         Change ada_parse => parse.
5287         Add post-parser entry.
5288         Use ada-specific non-local symbol lookup.
5289         Don't use C-style arrays. 
5290         String lower-bound is 1.
5291         Decomment disabled code.        
5292         (parse): New function.
5293         New fields ada_translate_error_message, ada_lookup_symbol, 
5294         ada_lookup_minimal_symbol.
5295         
5296         * ada-lang.h: Update copyright dates.
5297         Replace the mangle/demangle terminology throughout by the
5298         more appropriate encode/decode one. 
5299         Include breakpoint.h.
5300         Forward declare struct partial_symbol, struct block.
5301         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5302         (EXTRACT_ADDRESS): Remove.
5303         (EXTRACT_INT): Remove.
5304         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5305         (MAX_ENCLOSING_FRAME_LEVELS): Define.
5306         (MAX_RENAMING_CHAIN_LENGTH): Define.
5307         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5308
5309         (enum task_states): Remove.
5310         ada_task_states: Remove.
5311         (fat_string): Remove.
5312         (struct entry_call): Remove.
5313         (struct task_fields): Remove.
5314         (struct task_entry): Remove.
5315
5316         (struct ada_symbol_info): Define.
5317         (enum ada_attribute): Remove.
5318         (enum ada_operator): Define.
5319         
5320         (ada_get_field_index): Declare.
5321         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5322         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5323         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5324         (ada_lookup_symbol_list): New interface.
5325         (ada_decode_symbol): Declare.
5326         (ada_decode): Declare.
5327         (ada_lookup_symbol): New interface.
5328         (ada_update_initial_language): Declare.
5329         (ada_lookup_simple_minsym): Declare.
5330         (user_select_syms): New interface.
5331         (ada_sals_for_line): Declare.
5332         (ada_is_tagged_type): New interface.
5333         (ada_tag_name): Declare.
5334         (ada_lookup_struct_elt_type): Remove declaration.
5335         (ada_search_struct_field): Remove declaration.
5336         (ada_attribute_name): New interface.
5337         (ada_is_system_address_type): Declare.
5338         (ada_to_fixed_value): Remove declaration.
5339         (ada_template_to_fixed_record_type_1): Declare.
5340         (get_int_var_value): New interface.
5341         (ada_find_any_symbol): Declare.
5342         (ada_find_renaming_symbol): Declare.
5343         (ada_mangle): Rename to ada_encode.
5344         (ada_simple_renamed_entity): Remove const.
5345         (ada_main_name): Declare.
5346         (get_current_task): Rename to ada_get_current_task.
5347         (get_entry_number): Remove declaration.
5348         (ada_report_exception_break): Remove declaration.
5349         (ada_print_exception_breakpoint_nontask): Declare.
5350         (ada_print_exception_breakpoint_task): Declare.
5351         (ada_find_printable_frame): Declare.
5352
5353         * ada-lex.l: Update copyright notices.
5354         Use xmalloc and xfree instead of malloc and free.
5355         Use new interface to name_lookup.
5356         Use new interface to 
5357         ada_mangle=>ada_encode.
5358         Redo handling of '$...' variable to parallel current treatment 
5359         in c-exp.y.  
5360         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5361         digit_to_int, strtoulst, processInt, processReal, processId, 
5362         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5363         yywrap): Protoize.
5364         
5365         (processInt): Use cast to remove harmless warning.
5366         (processReal): Modify to get rid of compiler warning on scan formats.
5367
5368         (processId): Replace xmalloc with obstack_alloc for name and remove
5369         call to ada_name_string_cleanup.
5370         Remove obsolete disabled code.
5371         (name_lookup): Ditto. 
5372         New interface.
5373         Use obsavestring on temp_parse_space instead of savestring 
5374         on name, and remove call to ada_name_string_cleanup.  
5375         Free string returned from ada_simple_renamed_entity.
5376         Use new interface to ada_lookup_symbol_list.
5377         Decomment disabled code.
5378         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
5379         not types.
5380         When a type name lookup succeeds as a result of 
5381         lookup_primitive_typename, check for regular type entry that has not 
5382         yet been read in.
5383         Limit length of chain of renamed symbols we are willing to follow.  
5384         Do not break names beginning with "standard__" into segments.  
5385         (block_lookup): Use new interface to ada_lookup_symbol_list.
5386         
5387         * ada-typeprint.c: Update copyright notice.
5388         (demangled_type_name): Rename to decoded_type_name.
5389         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5390         (print_range_bound):  Correct handling of negative
5391         bounds that make the index type looked unsigned under STABS.  
5392         (print_dynamic_range_bound): Use new interface to get_int_var_value.
5393         (print_range_type_named):  Use the builtin int type if no type 
5394         corresponding to the given type name could be found.
5395         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5396         Add some bullet-proofing.
5397         (print_variant_clauses): Allow for variant branches with ___XVU 
5398         encodings that are not dynamic fields.  
5399         Use new interface to ada_is_tagged_type.
5400         (print_record_type): Allow for fields with ___XVE encodings that 
5401         are not dynamic fields. 
5402         Use new interface to ada_is_tagged_type.
5403         (ada_print_type): ada_is_array_descriptor => 
5404         ada_is_array_descriptor_type.
5405
5406         * ada-valprint.c: Update copyright notice.
5407         Include gdb_string.h
5408         Include infcall.h
5409         (ui_memcpy): New function.
5410         (ada_print_floating): New function.
5411         (ada_print_str): Order arguments correctly.
5412         Correct handling of empty arrays and arrays of 0-length items. 
5413         ada_is_array_descriptor => ada_is_array_descriptor_type 
5414         Print values of type System.Address in hexadecimal format.
5415         Use ada_print_floating to print floating-point numbers in Ada format.
5416         Print class tag values with type names.  
5417         No longer print the address of reference values. Avoids 
5418         a potential confusion.  
5419         (ada_value_print): Stop printing the object type for reference
5420         values, but preserve that behavior for access types. Avoids
5421         a potential confusion.
5422         Simplify one conditional expression, as the first part is now
5423         necessarily true.
5424         ada_is_array_descriptor => ada_is_array_descriptor_type 
5425         Add check for arrays for null records, and print them by hand.
5426         
5427 2004-06-01  Jim Blandy  <jimb@redhat.com>
5428
5429         * ppc-tdep.h: Delete unused 'regoff' member.
5430         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5431
5432 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
5433
5434         Fix PR symtab/1661.
5435         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5436         (hpread_read_struct_type): Likewise.
5437
5438 2004-06-01  Andrew Cagney  <cagney@gnu.org>
5439
5440         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5441         instead of xasprintf.
5442         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
5443         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
5444         (mi_cmd_data_list_register_names) 
5445         (mi_cmd_data_list_changed_registers) 
5446         (mi_cmd_data_list_register_values) 
5447         (get_register, mi_cmd_data_write_register_values) 
5448         (mi_cmd_data_write_register_values) 
5449         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
5450         (mi_cmd_target_download, mi_cmd_target_select) 
5451         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
5452         (mi_execute_cli_command, mi_execute_async_cli_command) 
5453         (mi_execute_async_cli_command): Ditto.
5454         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5455         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5456
5457         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5458         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5459         error_last_message instead of mi_error_last_message.
5460         * mi/mi-main.c (mi_error_last_message): Delete function.
5461
5462         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5463         "invalid number of columns" error.  Delete redundant "out of
5464         memory" check.
5465
5466 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
5467
5468         * i386bsd-nat.c: Don't include <sys/procfs.h>.
5469         (gregset_t, fpregset_t): Remove typedefs.
5470         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5471         (REG_OFFSET): Rename argument.
5472         (i386bsd_r_reg_offset): Rename from reg_offset.
5473         (REG_ADDR): Remove macro.
5474         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5475         functions.
5476         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5477         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5478         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
5479         instead of supply_gregset.
5480         (store_inferior_registers): Use `struct reg' and `struct fpreg'
5481         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
5482         instead of fill_gregset.
5483         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5484
5485         * i386bsd-nat.c: Don't include "gregset.h".
5486         (supply_gregset, fill_gregset): Make static.
5487         (supply_fpregset, fill_fpregset): Remove.
5488         * Makefile.in (i386bsd-nat.o): Update dependencies.
5489
5490 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
5491
5492         * fbsd-proc.c: Include "regcache.h", "regset.h" and
5493         "gdb_assert.h".  Con't include "gregset.h".
5494         (fbsd_make_corefile_notes): Use regset-based core file support
5495         instead off fill_gregset and fill_fpregset.
5496         * Makefile.in (fbsd-proc.o): Update dependencies.
5497
5498         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5499         instructions.
5500         (m88k_frame_prev_register): Simplify code a bit.
5501
5502         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5503         (amd64_collect_fpregset): New function.
5504         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5505
5506         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5507
5508         * i386-tdep.c (i386_supply_gregset): Adjust comment.
5509         (i386_collect_gregset): New function.
5510         (i386_supply_fpregset): Adjust comment.
5511         (i386_collect_fpregset): New function.
5512         (i386_regset_from_core_section): Use i386_collect_gregset and
5513         i386_collect_fpregset.
5514
5515         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5516         handle VALUEP being null.
5517
5518         * regset.h (collect_regset_ftype): Unconstify fourth argument.
5519
5520 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
5521
5522         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
5523
5524         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5525         assembler in OpenBSD 3.5-current.
5526         (amd64obsd_sigcontext_addr): Likewise.
5527
5528 2004-05-28  Jim Blandy  <jimb@redhat.com>
5529
5530         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5531         register set, so our regcache isn't declared "legacy" and our E500
5532         pseudoregister read and write functions aren't ignored.
5533         (rs6000_register_byte, rs6000_register_raw_size,
5534         rs6000_register_virtual_type, rs6000_register_convertible,
5535         rs6000_register_convert_to_virtual,
5536         rs6000_register_convert_to_raw): Deleted.
5537         (rs6000_register_type, rs6000_convert_register_p,
5538         rs6000_register_to_value, rs6000_value_to_register): New
5539         functions.
5540         (rs6000_gdbarch_init): Don't register
5541         gdbarch_deprecated_register_size,
5542         gdbarch_deprecated_register_bytes,
5543         gdbarch_deprecated_register_byte,
5544         gdbarch_deprecated_register_raw_size,
5545         gdbarch_deprecated_register_virtual_type,
5546         gdbarch_deprecated_register_convertible,
5547         gdbarch_deprecated_register_convert_to_virtual, or
5548         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
5549         register gdbarch_register_type, gdbarch_convert_register_p,
5550         gdbarch_register_to_value, and gdbarch_value_to_register methods.
5551
5552 2004-05-26  Jim Blandy  <jimb@redhat.com>
5553
5554         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5555         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5556         functions, updated to match the register numberings used in GCC.
5557         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5558         rs6000_dwarf2_reg_to_regnum as register number conversions
5559         functions for STABS and Dwarf2.
5560
5561 2004-05-26  Randolph Chung  <tausq@debian.org>
5562
5563         * infttrace.h (target_waitkind): Forward declare type instead of pulling
5564         in header file.
5565
5566 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
5567
5568         * NEWS: Document new "start" command.
5569
5570 2004-05-25  Randolph Chung  <tausq@debian.org>
5571
5572         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5573         hppa-linux.
5574
5575 2004-05-25  Randolph Chung  <tausq@debian.org>
5576
5577         * hppa-hpux-tdep.c (offsetof): Define.
5578         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5579         (hppa32_hpux_frame_base_before_sigtramp)
5580         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5581         (hppa64_hpux_frame_saved_pc_in_sigtramp)
5582         (hppa64_hpux_frame_base_before_sigtramp)
5583         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
5584         functions.
5585         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5586         (hppa_hpux_sigtramp_frame_unwind_cache)
5587         (hppa_hpux_sigtramp_frame_this_id)
5588         (hppa_hpux_sigtramp_frame_prev_register)
5589         (hppa_hpux_sigtramp_frame_unwind)
5590         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5591         (hppa_hpux_init_abi): Register sigtramp unwinder.
5592         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5593
5594 2004-05-25  Randolph Chung  <tausq@debian.org>
5595
5596         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5597         and multiple stack unwinds.
5598         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5599
5600 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5601
5602         * symfile.h (symbol_file_add_from_memory): Delete declaration.
5603         * symfile-mem.h: Delete file.
5604         * symfile-mem.c: Do not include "symfile-mem.h".
5605         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5606         "struct bfd_section".  When an error do not bother returning NULL.
5607         (add_symbol_file_from_memory_command): Use "struct bfd" and
5608         "struct bfd_section".
5609         * Makefile.in (symfile_mem_h): Delete.
5610         (symfile-mem.o): Update dependencies.
5611
5612 2004-05-25  Nick Roberts  <nickrob@gnu.org>
5613
5614         * gdb-mi.el: New file.
5615
5616 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5617
5618         * inftarg.c: Include "observer.h".
5619         (child_attach, child_create_inferior): Notify inferior_created.
5620         * corelow.c: Include "observer.h".
5621         (core_open): Notify inferior_created.
5622         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5623
5624 2004-05-25  Andrew Cagney  <cagney@gnu.org>
5625
5626         * target.h (struct target_ops): Add from_tty to
5627         to_create_inferior.
5628         (target_create_inferior, find_default_create_inferior): Update.
5629         * infcmd.c (run_command): Update.
5630         * wince.c (child_create_inferior): Update.
5631         * win32-nat.c (child_create_inferior): Update.
5632         * uw-thread.c (uw_thread_create_inferior): Update.
5633         * thread-db.c (thread_db_create_inferior): Update.
5634         * target.c (debug_to_create_inferior) 
5635         (find_default_create_inferior): Update.
5636         (maybe_kill_then_create_inferior): Update.
5637         * sol-thread.c (sol_thread_create_inferior): Update.
5638         * remote.c (extended_remote_async_create_inferior) 
5639         (extended_remote_create_inferior): Update.
5640         * remote-vx.c (vx_create_inferior): Update.
5641         * remote-st.c (st2000_create_inferior): Update.
5642         * remote-sim.c (gdbsim_create_inferior): Update.
5643         * remote-sds.c (sds_create_inferior): Update.
5644         * remote-rdp.c (remote_rdp_create_inferior): Update.
5645         * remote-rdi.c (arm_rdi_create_inferior): Update.
5646         * remote-m32r-sdi.c (m32r_create_inferior): Update.
5647         * remote-e7000.c (e7000_create_inferior): Update.
5648         * procfs.c (procfs_create_inferior): Update.
5649         * ocd.c (ocd_create_inferior): Update.
5650         * ocd.h (ocd_create_inferior): Update.
5651         * nto-procfs.c (procfs_create_inferior): Update.
5652         * monitor.c (monitor_create_inferior): Update.
5653         * lin-lwp.c (lin_lwp_create_inferior): Update.
5654         * inftarg.c (child_create_inferior): Update.
5655         * hpux-thread.c (hpux_thread_create_inferior): Update.
5656         * gnu-nat.c (gnu_create_inferior): Update.
5657
5658 2004-05-25  Andrew Cagney  <cagney@gnu.com>
5659
5660         * MAINTAINERS: Update e-mail address.
5661
5662 2004-05-24  Randolph Chung  <tausq@debian.org>
5663
5664         * thread.c (info_threads_command, thread_apply_all_command)
5665         (thread_apply_command, thread_command, do_captured_thread_select):
5666         Remove HPUXHPPA-specific code.
5667
5668 2004-05-24  Randolph Chung  <tausq@debian.org>
5669
5670         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5671         unused symbols.
5672         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5673         references.
5674
5675 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
5676
5677         * infcmd.c (kill_if_already_running): New function, extracted
5678         from run_command().
5679         (run_command): Replace extracted code by call to
5680         kill_if_already_running().
5681         (start_command): New function.
5682         (_initialize_infcmd): Add "start" command.
5683
5684 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
5685
5686         Add OpenBSD/m88k support.
5687         * NEWS (New native configurations): Mention OpenBSD/m88k.
5688         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5689         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5690         * Makefile.in (m88k_tdep_h): New variable.
5691         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5692         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5693         * configure.host: Add m88*-*-openbsd*.
5694         * configure.tgt: Add m88*-*-openbsd*.
5695
5696 2004-05-24  Jim Blandy  <jimb@redhat.com>
5697
5698         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5699         to approve changes.
5700
5701 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
5702
5703         * symtab.c (fixup_section): Search section table when lookup by
5704         name fails.
5705
5706 2004-05-24  Randolph Chung  <tausq@debian.org>
5707
5708         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
5709         be "small_struct".
5710
5711 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
5712
5713         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5714         register number in regcache_raw_collect call.
5715         (m68kbsd_collect_fpregset): Likewise.
5716         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5717
5718         * regset.h (struct regset): Add back `regset' member.
5719
5720 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
5721
5722         * configure.in: Check for td_pcb in `struct thread'.
5723         * configure, config.in: Regenerated.
5724
5725         * dpx2-nat.c: Remove file.
5726         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5727         (dpx2-nat.o): Remove dependencies.
5728
5729         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5730         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5731         (amd64obsd_supply_pcb): New function.
5732         (_initialize_amd64obsd_nat): Enable libkvm interface.
5733         * Makefile.in (amd64obsd-nat.o): Update dependencies.
5734         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5735         (LOADLIBES): New variable.
5736
5737         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5738         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5739         (sparc32nbsd_supply_pcb): New function.
5740         (_initialize_sparcnbsd_nat): Enable libkvm interface.
5741         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5742         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5743         (LOADLIBES): New variable.
5744
5745 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
5746
5747         * bsd-kvm.c, bsd-kvm.h: New files.
5748         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5749         "bsd-kvm.h".
5750         (i386fbsd_supply_pcb): New function.
5751         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5752         (i386fbsd-nat.o): Update dependencies.
5753         (bsd_kvm_h): New variable.
5754         (bsd-kvm.o): New dependency.
5755         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5756         (LOADLIBES): New variable.
5757
5758         * regset.c: Tweak comment.
5759         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
5760         macro.
5761         * regset.h: Update copyright year.
5762         (struct regset): Remove `descr' member, add `gdbarch' member.
5763         (regset_alloc): Adjust prototype and comment.
5764         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5765         (i386_supply_fpregset): Likewise.
5766         (i386_regset_from_core_section): Update call to regset_alloc.
5767         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5768         REGSET->arch.
5769         (i386obsd_aout_regset_from_core_section): Update call to
5770         regset_alloc.
5771         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5772         REGSET->arch.
5773         (i386nbsd_aout_regset_from_core_section): Update call to
5774         regset_alloc.
5775         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5776         REGSET->arch.
5777         (amd64_regset_from_core_section): Update call to regset_alloc.
5778         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5779         REGSET->arch.
5780         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5781         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5782         &sparc32nbsd_gregset in sparc32_supply_gregset call.
5783         (sparc32nbsd_init_abi): Update call to regset_alloc.
5784         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5785         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5786         (sparc64obsd_init_abi): Update call to regset_alloc.
5787         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5788         &sparc64nbsd_gregset in sparc64_supply_gregset call.
5789         (sparc64nbsd_init_abi): Update call to regset_alloc.
5790         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5791         &sparc64fbsd_gregset in sparc64_supply_gregset call.
5792         (sparc64fbsd_init_abi): Update call to regset_alloc.
5793
5794 2004-05-22  Jim Blandy  <jimb@redhat.com>
5795
5796         * ppc-tdep.h (spe_register_p): New declaration.
5797         (struct gdbarch_tdep): New members: ppc_acc_regnum and
5798         ppc_spefscr_regnum.
5799         * rs6000-tdep.c (spe_register_p): New function.
5800         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5801         spefscr.
5802         (rs6000_gdbarch_init): Initialize the new members of the tdep
5803         structure.
5804
5805 2004-05-21  Jim Blandy  <jimb@redhat.com>
5806
5807         * ppc-linux-nat.c (fetch_register): Move code back to be next
5808         to the comment that describes it.  (Moved code, instead of
5809         comment, for symmetry with store_register.)
5810
5811         Allocate regset structures in the gdbarch's obstack, not using
5812         xmalloc.
5813         * regset.c (regset_alloc): Renamed from regset_xmalloc.
5814         Add 'arch' argument.  Allocate the regset on arch's obstack, not
5815         using xmalloc.
5816         * regset.h (regset_alloc): Update declaration.
5817         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5818         gdbarch argument.
5819         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5820         * i386-tdep.c (i386_regset_from_core_section): Same.
5821         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5822         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5823         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5824         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5825         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5826         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5827
5828 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
5829
5830         * config/djgpp/fnchange.lst: Undo previous change, was useless.
5831
5832 2004-05-21  Jim Blandy  <jimb@redhat.com>
5833
5834         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5835         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
5836
5837 2004-05-20  Jim Blandy  <jimb@redhat.com>
5838
5839         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5840
5841 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
5842
5843         * regset.h: Make prototype const-correct.
5844         * regset.c (regset_xmalloc): Make const-correct.
5845
5846 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
5847
5848         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5849         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5850         (symbol_search_name): Declare.
5851         
5852         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5853         (iter_name_next_hashed): Ditto.
5854         (iter_name_next_linear): Ditto.
5855         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5856
5857         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
5858         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5859         (symbol_search_name): New function.
5860         
5861         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5862         
5863         * minsyms.c (build_minimal_symbol_hash_tables): Change
5864         test for adding to demangled hash table to check for difference
5865         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5866         
5867 2004-05-19  Jim Blandy  <jimb@redhat.com>
5868
5869         Use a constructor function to create regset structures.
5870         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5871         (struct regset): Use supply_regset_ftype.  Add new
5872         'collect_regset' member.
5873         (regset_xmalloc): New declaration.
5874         * regset.c: New file.
5875         * am64-tdep.c (amd64_regset_from_core_section): Use
5876         regset_xmalloc to construct regset structures.
5877         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5878         * i386-tdep.c (i386_regset_from_core_section): Same.
5879         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5880         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5881         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5882         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5883         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5884         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5885         * Makefile.in (COMMON_OBS): Add regset.o.
5886         (regset.o): New rule.
5887
5888 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
5889
5890         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5891         and pthread_cond_wait.c.
5892
5893 2004-05-18  Jim Blandy  <jimb@redhat.com>
5894
5895         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5896         before the mach-specific switch, and then let the individual cases
5897         override the defaults, rather than leaving them uninitialized
5898         until the switch and then setting them in each case.
5899
5900 2004-05-18  Randolph Chung  <tausq@debian.org>
5901
5902         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5903         millicode functions.
5904
5905 2004-05-18  Randolph Chung  <tausq@debian.org>
5906
5907         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5908         references to dld_flags_buffer consistent.
5909
5910 2004-05-18  Randolph Chung  <tausq@debian.org>
5911
5912         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5913         it for unwinding the stack.
5914
5915 2004-05-18  Randolph Chung  <tausq@debian.org>
5916
5917         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5918         Undefine these so we can overide them using gdbarch.
5919
5920 2004-05-18  Randolph Chung <tausq@debian.org>
5921
5922         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5923         handling for 64-bit HPUX (elf).
5924
5925 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
5926
5927         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5928         constants.
5929         * amd64-tdep.c (amd64_skip_prologue): Likewise.
5930         * ia64-tdep.c (examine_prologue): Likewise.
5931         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5932         * v850-tdep.c (v850_fix_call_dummy): Likewise.
5933
5934 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
5935
5936         * vax-tdep.c (vax_return_value): Implement
5937         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5938
5939 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
5940
5941         * vax-tdep.c (vax_return_value): Fix typo.
5942
5943 2004-05-17  Andrew Cagney  <cagney@redhat.com>
5944
5945         * MAINTAINERS: Mark Salter was also responsible for
5946         testsuite/config/
5947
5948         * NEWS: Mention signal fixes.
5949
5950 2004-05-17  Randolph Chung  <tausq@debian.org>
5951
5952         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5953         check to see if we are unwinding an export stub.  Export stubs clobber
5954         the %rp in the call path and stores the original rp in a stack slot.
5955
5956 2004-05-17  Jim Blandy  <jimb@redhat.com>
5957
5958         * MAINTAINERS: Update address for J.T. Conklin.
5959
5960 2004-05-17  Randolph Chung  <tausq@debian.org>
5961
5962         * hppa-tdep.c: Remove superfluous #include's.
5963         * Makefile.in (hppa-tdep.o): Update dependencies.
5964
5965 2004-05-17  Randolph Chung  <tausq@debian.org>
5966
5967         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5968         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5969         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5970         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5971         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5972         Remove static function declarations.
5973
5974 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
5975
5976         * alphabsd-nat.c: Update copyright year.
5977         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5978
5979         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5980         and M68K_A2_REGNUM.
5981
5982         * m68k-tdep.c (m68k_svr4_return_value): Implement
5983         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5984
5985 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
5986
5987         * sol-thread.c Update copyright year.  Fix various coding
5988         standards violations.  Tweak a few comments.
5989         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5990         Delete prototypes.
5991
5992 2004-05-15  Randolph Chung  <tausq@debian.org>
5993
5994         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5995         as pointer instead of array reference since HPUX compiler does
5996         not accept unsized array arguments.
5997         * somsolib.c (dld_flags_buffer): Use constant array size.
5998
5999 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
6000
6001         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6002         offset with decimal offset.
6003         (amd64obsd_sigcontext_addr): Return correct address for entire
6004         signal trampoline.
6005
6006         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6007         instead of get_frame_base.
6008
6009         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6010         (fill_gregset): Use regcache_raw_collect.
6011
6012         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6013         ppcobsd-tdep.c.
6014
6015         * config/sparc/tm-nbsd64.h: Remove file.
6016         * config/tm-sunos.h: Remove file.
6017
6018 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
6019
6020         * rs6000-tdep.c (store_param_on_stack_p): New function,
6021         an improved version of some code extracted from skip_prologue().
6022         (skip_prologue): Use store_param_on_stack_p() to detect
6023         instructions saving a parameter on the stack. Detect when r0
6024         is used to save a parameter.
6025         Do not mark "li rx, SIMM" instructions as part of the prologue,
6026         unless the following instruction is also part of the prologue.
6027
6028 2004-05-14  Andrew Cagney  <cagney@redhat.com>
6029
6030         * infrun.c (handle_inferior_event): Simplify
6031         STEP_OVER_UNDEBUGGABLE.
6032
6033         * infrun.c (handle_step_into_function): Delete function.
6034         (handle_inferior_event): Inline calls to
6035         handle_step_into_function.
6036
6037 2004-05-14  Jerome Guitton  <guitton@gnat.com>
6038
6039         * rs6000-nat.c: Fix a comment.
6040
6041 2004-05-12  David Anderson <davea@sgi.com>
6042
6043         Committed by Jim Blandy <jimb@redhat.com>:
6044         * regcache.c (struct regcache_descr): fix comment spelling.
6045
6046 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6047
6048         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6049         Fixes a link link failure.
6050
6051 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6052
6053         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6054         error that was causing the build to fail.
6055
6056 2004-05-13  J. Brobecker  <brobecker@gnat.com>
6057
6058         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6059         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6060
6061 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6062
6063         * infrun.c (handle_inferior_event): Check for
6064         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6065         calls.  Update comments.
6066
6067 2004-05-13  Jim Blandy  <jimb@redhat.com>
6068
6069         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6070         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6071         (store_regs_user_thread, store_regs_kernel_thread): Use
6072         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6073         * ppc-linux-nat.c (fill_gregset): Same.
6074         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
6075         (ppc_linux_sigtramp_cache): Same.
6076         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
6077         (ppcnbsd_sigtramp_cache_init): Same.
6078         * rs6000-nat.c (fetch_core_registers): Same.
6079         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
6080         (rs6000_frame_cache): Same.
6081
6082         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6083         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6084         of assuming that the gprs are numbered starting with zero.
6085         * ppc-linux-nat.c (fill_gregset): Same.
6086         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6087         * ppcnbsd-nat.c (getregs_supplies): Same.
6088         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6089         * rs6000-nat.c (fetch_core_registers): Same.
6090         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6091
6092 2004-05-07  Michael Snyder  <msnyder@redhat.com>
6093
6094         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6095         LOC_COMPUTED_ARG, and LOC_INDIRECT.
6096
6097 2004-05-13  Andrew Cagney  <cagney@redhat.com>
6098
6099         * infrun.c (handle_inferior_event): Use frame_unwind_id.
6100
6101 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6102
6103         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6104         base_address for shared libraries.
6105
6106 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
6107
6108         * MAINTAINERS (write after approval): Add myself.       
6109
6110 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
6111
6112         * breakpoint.c (bpstat_stop_status): Add new argument
6113         STOPPED_BY_WATCHPOINT.  Use it instead of testing
6114         target_stopped_data_address agaist 0 to check whether
6115         or not we stopped due to a hardware watchpoint.
6116         * breakpoint.h (bpstat_stop_status): Adapt prototype.
6117         * infrun.c (handle_inferior_event): Call bpstat_stop_status
6118         with new argument.
6119
6120 2004-05-12  Jim Blandy  <jimb@redhat.com>
6121
6122         * configure.in: When checking whether we should use the -bbigtoc
6123         option, don't forget to restore the original value of LDFLAGS.
6124         * configure: Regenerated.
6125
6126 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6127
6128         * thread.c (load_infrun_state): Delete step_sp.
6129         * infrun.c (context_switch): Ditto.
6130         * inferior.h (step_sp): Ditto.
6131         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6132         * gdbthread.h (struct thread_info, save_infrun_state)
6133         (restore_infrun_state): Ditto.
6134
6135 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
6136
6137         * MAINTAINERS (write after approval): Add myself.
6138
6139 2004-05-12  Andrew Cagney  <cagney@redhat.com>
6140
6141         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6142         eliminate reference to step_sp.
6143         (struct execution_control_state, init_execution_control_state)
6144         (handle_inferior_event, keep_going): Delete update_step_sp and
6145         step_sp.
6146         * infcmd.c (step_sp): Note that variable is unused.
6147
6148 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6149
6150         * infrun.c (step_over_function): Delete function.
6151         (handle_step_into_function): Use insert_step_resume_breakpoint.
6152         (insert_step_resume_breakpoint): Fix assertion.
6153
6154 2004-05-11  Nick Roberts  <nickrob@gnu.org>
6155
6156         * utils.c (defaulted_query): Just use the normal query input type
6157         when printing the annotations.
6158
6159 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6160
6161         * infrun.c (handle_inferior_event): Simplify code handling
6162         step-into or return-from a signal trampoline.
6163
6164 2004-05-11  Andrew Cagney  <cagney@redhat.com>
6165
6166         * ppcnbsd-tdep.c: Include "gdb_assert.h".
6167         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6168
6169 2004-05-10  Jim Blandy  <jimb@redhat.com>
6170
6171         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6172         with a call to internal_error.
6173
6174         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6175         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6176         processor variant lacks those registers.
6177         (ppc_floating_point_unit_p): Change description to make it clear
6178         that this returns info about the ISA, not the ABI.
6179         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6180         return true or false by checking tdep->ppc_fp0_regnum and
6181         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
6182         arch/mach switching done in rs6000_gdbarch_init; it's better to
6183         keep that logic there, and just check the results here.
6184         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6185         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6186         floating-point registers.
6187         (ppc_supply_fpregset, ppc_collect_fpregset)
6188         (rs6000_push_dummy_call, rs6000_extract_return_value)
6189         (rs6000_store_return_value): Assert that we have floating-point
6190         registers.
6191         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6192         (rs6000_frame_cache): Don't note the locations at which
6193         floating-point registers were saved if we have no fprs.
6194         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6195         registers.
6196         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6197         (store_regs_user_thread, store_regs_kernel_thread): Only call
6198         supply_fprs / fill_fprs if we actually have floating-point
6199         registers.
6200         (special_register_p): Check ppc_fpscr_regnum before matching
6201         against it.
6202         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6203         supply / collect fpscr if we don't have it.
6204         * ppc-bdm.c: #include "gdb_assert.h".
6205         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6206         have floating-point registers, since I can't test this code on
6207         FP-free systems to adapt it.
6208         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6209         fpscr and floating point register numbers if they don't exist.
6210         (fetch_register): Assert that we have floating-point registers
6211         before we reach the code that handles them.
6212         (store_register): Same.  And use tdep instead of calling
6213         gdbarch_tdep again.
6214         (fill_fpregset): Don't try to collect FP registers and fpscr if we
6215         don't have them.
6216         (ppc_linux_sigtramp_cache): Don't record the saved locations of
6217         fprs and fpscr if we don't have them.
6218         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6219         don't have them.
6220         * ppcnbsd-nat.c: #include "gdb_assert.h".
6221         (getfpregs_supplies): Assert that we have floating-point registers.
6222         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6223         * ppcobsd-tdep.c: #include "gdb_assert.h".
6224         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6225         have floating-point registers.
6226         * rs6000-nat.c (regmap): Don't match against the fpscr and
6227         floating point register numbers if they don't exist.
6228         (fetch_inferior_registers, store_inferior_registers,
6229         fetch_core_registers): Only fetch / store / supply the
6230         floating-point registers and the fpscr if we have them.
6231         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6232         (ppcobsd-tdep.o): Update dependencies.
6233         
6234 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6235
6236         * infrun.c (through_sigtramp_breakpoint): Delete variable.
6237         (context_switch): Do not switch through_sigtramp_breakpoint.
6238         * gdbthread.h (save_infrun_state, load_infrun_state)
6239         (struct thread_info): Delete through_sigtramp_breakpoint parameter
6240         and structure member.
6241         * thread.c (load_infrun_state, save_infrun_state): Update.
6242
6243 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
6244
6245         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6246
6247 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
6248
6249         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
6250         throughout.
6251         * aclocal.m4: Regenerate.
6252
6253 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
6254
6255         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6256
6257 2004-05-10  Andrew Cagney  <cagney@redhat.com>
6258
6259         * infrun.c (check_sigtramp2): Delete function.
6260         (handle_inferior_event): When single stepping, and taking a
6261         signal, set a breakpoint at the signal return address.  Delete
6262         redundant calls to check_sigtramp2.
6263         (insert_step_resume_breakpoint): New function.
6264         (through_sigtramp_breakpoint, handle_inferior_event)
6265         (follow_exec, wait_for_inferior, fetch_inferior_event)
6266         (currently_stepping, keep_going): Delete most uses of
6267         through_sigtramp_breakpoint, not that it should be deleted.
6268         (delete_breakpoint_current_contents): Delete function.
6269
6270 2004-05-10  Randolph Chung  <tausq@debian.org>
6271
6272         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6273         target.
6274         * config/pa/tm-linux.h: New file.
6275
6276 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
6277
6278         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6279         of prefixes.  Don't print the prefix twice in the CLI.
6280
6281 2004-05-10  Jim Blandy  <jimb@redhat.com>
6282
6283         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6284         collect all the gprs.
6285
6286         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6287         loop collecting gprs.
6288
6289 2004-05-09  Andrew Cagney  <cagney@redhat.com>
6290
6291         * remote-vx.c (net_step): Delete step-range code.
6292         * remote.c (remote_resume, init_all_packet_configs)
6293         (set_remote_protocol_E_packet_cmd)
6294         (show_remote_protocol_E_packet_cmd)
6295         (remote_protocol_E, show_remote_cmd, _initialize_remote)
6296         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6297         (show_remote_protocol_e_packet_cmd): Ditto.
6298
6299 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
6300
6301         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6302
6303         * hppa-tdep.h: Update copyright year.
6304         (struct trad_frame_saved_reg): Add opaque declaration.
6305
6306         * amd64-tdep.c (amd64_return_value): Implement
6307         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6308
6309         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6310         (m68k_value_to_register): New functions.
6311         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6312         value_to_register.
6313
6314         * defs.h (enum return_value_convention): Add
6315         RETURN_VALUE_ABI_RETURNS_ADDRESS and
6316         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6317         * infcmd.c (legacy_return_value): New function.
6318         (print_return_value): Rwerite to implement
6319         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6320         * values.c (using_struct_return): Check for inequality to
6321         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6322         RETURN_VALUE_STRUCT_CONVENTION.
6323         * i386-tdep.c (i386_return_value): Implement
6324         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6325
6326         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
6327         include "symtab.h", "opcode/vax.h" and "inferior.h".
6328         (vax_skip_prologue): Replace calls to read_memory_integer by calls
6329         to read_memory_unsigned_integer.
6330         (vax_gdbarch_init): Reorder.
6331         (_initialize_vax_tdep): Spell out prototype.
6332         * Makefile.in (vax-tdep.o): Update dependencies.
6333
6334 2004-05-08  Andrew Cagney  <cagney@redhat.com>
6335
6336         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6337         * target.c (target_detach, target_disconnect): Ditto.
6338
6339         * infcall.c (call_function_by_hand): When no
6340         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6341         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6342         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6343         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6344         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6345         
6346         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6347         * gdbarch.h, gdbarch.c: Re-generate.
6348         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6349         deprecated_fix_call_dummy.
6350         * v850-tdep.c (v850_gdbarch_init): Ditto.
6351         * infcall.c (call_function_by_hand): Do not call
6352         DEPRECATED_FIX_CALL_DUMMY.
6353
6354         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6355         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6356         * gdbarch.h, gdbarch.c: Re-generate.
6357         * arm-linux-tdep.c (arm_linux_call_dummy_words)
6358         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6359         deprecated_sizeof_call_dummy_words.
6360         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6361         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6362         * v850-tdep.c (v850_gdbarch_init): Ditto.
6363         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6364         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6365         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6366         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6367         * arch-utils.h (legacy_call_dummy_words)
6368         (legacy_sizeof_call_dummy_words): Delete declarations.
6369         * arch-utils.c (legacy_call_dummy_words)
6370         (legacy_sizeof_call_dummy_words): Delete variables.
6371
6372         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6373         * gdbarch.h, gdbarch.c: Re-generate.
6374         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6375         * infcall.c (call_function_by_hand): Eliminate call to
6376         DEPRECATED_PUSH_DUMMY_FRAME.
6377         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6378         push_dummy_frame.
6379         (ns32k_push_dummy_frame): Delete function.
6380
6381         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6382         deprecated_call_dummy_breakpoint_offset or
6383         deprecated_call_dummy_start_offset.
6384         * dummy-frame.c, arm-tdep.c: Update comments.
6385         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6386         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6387         * gdbarch.h, gdbarch.c: Re-generate.
6388         
6389         * infcall.c (legacy_push_dummy_code): Delete function.
6390         (push_dummy_code): Delete call.
6391
6392         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6393         * gdbarch.h, gdbarch.c: Re-generate.
6394         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6395         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6396         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6397         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6398
6399         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6400         (struct frame_info): Delete opaque declaration.
6401         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6402         * frame.c (get_frame_type): Delete call.
6403
6404         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6405         pc_in_call_dummy.
6406         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6407         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6408
6409 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
6410
6411         * alphanbsd-tdep.c: Include "gdb_string.h".
6412         * armnbsd-tdep.c: Update copyright year.
6413         Include "gdb_string.h".
6414         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6415         dependencies.
6416
6417         * delta68-nat.c: Remove file.
6418         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6419         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6420         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6421         (delta68-nat.o): Remove dependency.
6422
6423         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6424         function.
6425         (m68k_gdbarch_init): Don't set
6426         deprecated_frameless_function_invocation.
6427
6428 2004-05-07  Randolph Chung  <tausq@debian.org>
6429
6430         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
6431         read_memory_nobpt for code reading when doing frame unwinding.
6432         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6433
6434 2004-05-07  Randolph Chung  <tausq@debian.org>
6435
6436         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6437         instead of sp, handle sigaltstack case.
6438         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
6439         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6440         signal handler and not that of the caller.
6441         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6442         hppa_linux_sigtramp_find_sigcontext.
6443
6444 2004-05-07  Randolph Chung  <tausq@debian.org>
6445
6446         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6447         hppa-linux-nat.c.
6448         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6449         * hppa-linux-nat.c (fetch_register, store_register): Define.
6450         (fetch_inferior_registers, store_inferior_registers): Define.
6451         (supply_gregset): Add comment and clean up some unneeded code.
6452         (fill_gregset): Add comment and fix so that it saves registers in
6453         the right place in the gregset.
6454         (fill_fpregset): Fix buffer overrun problem.
6455         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6456
6457 2004-05-07  Randolph Chung  <tausq@debian.org>
6458
6459         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
6460         do common handling of the pcoqt register.
6461         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6462         to use helper function.
6463         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6464         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6465         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6466         generic fallback unwinder when all else fails.
6467         (hppa_gdbarch_init): Add fallback sniffer.
6468         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6469         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6470         to use helper function.
6471
6472 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
6473
6474         * config/djgpp/fnchange.lst: Add translation rules for
6475         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6476
6477 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
6478
6479         * frame.c (get_prev_frame_1): Work around GCC bug.
6480         * frame.h: Add comment about GCC bug.
6481
6482 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6483
6484         * observer.c: Include "commands.h" and "gdbcmd.h".
6485         (observer_debug, _initialize_observer): Add the
6486         command "set/show debug observer".
6487         * observer.sh: When observer debugging, log notify calls.
6488         * Makefile.in (observer.o): Update dependencies.
6489
6490 2004-05-07  Jason Molenda  (jmolenda@apple.com)
6491
6492         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6493
6494 2004-05-07  Jim Blandy  <jimb@redhat.com>
6495
6496         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6497         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6498         to recognize gpr regnums, instead of assuming that
6499         tdep->ppc_fp0_regnum marks the end of the general-purpose
6500         registers.
6501
6502         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6503         the given architecture has floating-point registers. 
6504
6505 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6506
6507         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6508         macro defined to 1.
6509         * gdbarch.h, gdbarch.c: Re-generate.
6510         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6511         deprecated_use_generic_dummy_frames.
6512
6513 2004-05-07  Brian Ford  <ford@vss.fsi.com>
6514
6515         * NEWS: Mention Cygwin DWARF 2 support.
6516
6517 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6518
6519         * objfiles.h (struct entry_info): Delete unused fields
6520         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6521         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6522         * mipsread.c (mipscoff_symfile_read): Update.
6523         * mdebugread.c (parse_partial_symbols): Update.
6524         * dwarfread.c (read_file_scope): Update.
6525         * dwarf2read.c (read_file_scope): Update.
6526         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6527         * coffread.c (complete_symtab): Update.
6528
6529 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
6530
6531         * infcall.c (_initialize_infcall): Fix typo.
6532
6533 2004-05-07  Andrew Cagney  <cagney@redhat.com>
6534
6535         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6536         * command.h (add_setshow_zinteger_cmd): Declare.
6537
6538 2004-05-06  Randolph Chung  <tausq@debian.org>
6539
6540         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6541         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6542         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6543         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6544         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6545         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6546         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
6547         definitions ...
6548         * hppa-tdep.h: ... to here, with HPPA_ prefix.
6549         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6550         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6551         (hppa64_hpux_frame_find_saved_regs_in_sig)
6552         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6553         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6554         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6555         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6556         (hppa_linux_sigtramp_frame_prev_register): Likewise.
6557         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6558         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6559         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6560         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6561         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6562         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6563         (hppa32_register_type, hppa_cannot_store_register)
6564         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6565         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6566         * hpread.c (hpread_process_one_debug_symbol): Likewise.
6567         * pa64solib.c (pa64_solib_have_load_event)
6568         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6569         (pa64_solib_unloaded_library_pathname): Likewise.
6570         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6571         (som_solib_library_pathname): Likewise.
6572
6573 2004-05-05  Jim Ingham  <jingham@apple.com>
6574         
6575         * breakpoint.c (create_breakpoints): Copy the ignore count and
6576         thread id over from the pended breakpoint to the actual
6577         breakpoint.
6578         
6579 2004-05-05  Andrew Cagney  <cagney@redhat.com>
6580
6581         * gdbarch.sh (PARM_BOUNDARY): Delete.
6582         gdbarch.h, gdbarch.c: Re-generate.
6583         * valops.c (PARM_BOUNDARY): Delete macro.
6584         (value_push): Delete PARM_BOUNDARY code.
6585         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6586
6587 2004-05-04  Jim Blandy  <jimb@redhat.com>
6588
6589         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6590         Don't assume that the gprs, fprs, and UISA sprs are
6591         contiguous, start at register number zero, and end with fpscr.
6592         Instead, use the numbers from the tdep structure.
6593
6594         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6595         should no longer be used in code specific to the RS6000 and its
6596         derivatives.
6597         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6598         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6599         tdep->ppc_fp0_regnum.
6600         (ppc_supply_fpregset, ppc_collect_fpregset)
6601         (rs6000_push_dummy_call, rs6000_extract_return_value)
6602         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6603         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6604         FP0_REGNUM. 
6605         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6606         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6607         Same.
6608         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6609         bdm_ppc_store_registers): Same.
6610         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
6611         (store_register, fill_fpregset): Same.
6612         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
6613         (ppc_linux_supply_fpregset): Same.
6614         * ppcnbsd-nat.c (getfpregs_supplies): Same.
6615         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6616         Same.
6617         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6618         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6619         ppc64_sysv_abi_return_value): Same.
6620         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6621         (store_inferior_registers, fetch_core_registers): Same.
6622
6623 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6624
6625         * m68knbsd-nat.c: Remove file.
6626         * m68knbsd-tdep.c: Remove file.
6627         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6628         dependencies.
6629         * configure.host: Add m68k-*-netbsdelf*.
6630         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6631         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6632         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
6633         (XM_FILE): Remove.
6634         * config/m68k/nbsdelf.mh: New file.
6635         * config/m68k/nbsd.mt: New file.
6636         * config/m68k/nbsdaout.mt: Remove file.
6637         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6638         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
6639         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6640         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6641         (use_struct_convention): Remove prototype.
6642         (USE_STRUCT_CONVENTION): Remove define.
6643         * config/m68k/xm-nbsd.h: Remove file.
6644
6645 2004-05-04  Michael Snyder  <msnyder@redhat.com>
6646
6647         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
6648         reg_struct_return method (as gcc usually does for cross targets).
6649
6650 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6651
6652         Committed by Andrew Cagney.
6653         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6654         alignment padding when accessing ucontext struct members.
6655
6656 2004-05-04  Jim Blandy  <jimb@redhat.com>
6657
6658         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6659         'ppc_gplast_regnum' member.
6660         (ppc_num_gprs): New enum constant.
6661         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6662         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6663         * rs6000-nat.c (regmap, fetch_inferior_registers,
6664         store_inferior_registers): Same.
6665         * rs6000-tdep.c (e500_pseudo_register_read)
6666         (e500_pseudo_register_write): Same.
6667         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6668
6669         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6670         * ppc-tdep.h (ppc_num_fprs): New enum constant.
6671         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6672         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6673         FPLAST_REGNUM.
6674         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6675         Same.
6676         * ppc-linux-nat.c (ppc_register_u_addr): Same.
6677         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6678         (store_inferior_registers): Same.
6679
6680         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6681         with FPLAST_REGNUM.
6682
6683 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
6684
6685         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6686         failure detected by recent versions of GCC.
6687         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6688         to be consistent with the usage in dwarf2_create_include_psymtab.
6689
6690 2004-05-03  Michael Snyder  <msnyder@redhat.com>
6691
6692         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6693         (heuristic_proc_start): Whitespace cleanup.
6694
6695 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
6696
6697         * sun3-nat.c: Remove file.
6698         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6699         dependencies.
6700         (ALLDEPFILES): Remove sun3-nat.c.
6701         (sun3-nat.o): Remove dependencies.
6702
6703         * i386-interix-nat.c, i386-interix-tdep.c,
6704         config/i386/nm-interix.h, config/i386/interix.mh,
6705         config/i386/interix.mt: Remove files.
6706         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6707         dependencies.
6708
6709 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
6710
6711         * m68k-tdep.h (struct gdbarch_tdep): Add member
6712         struct_value_regnum.
6713         (m68k_svr4_init_abi): New prototype.
6714         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
6715         different calling conventions.
6716         (m68k_extract_return_value): Remove code dealing with single-field
6717         structs.
6718         (m68k_store_return_value): Remove code dealing with single-field
6719         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
6720         (m68k_extract_struct_value_address): Remove function.
6721         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6722         (m68k_reg_struct_return_p, m68k_return_value)
6723         (m68k_svr4_return_value): New functions.
6724         (m68k_use_struct_convention): Remove function.
6725         (m68k_push_dummy_call): Use new struct_value_regnum member of
6726         `struct gdbarch_tdep' instead of hardcoded register number to
6727         store STRUCT_ADDR.
6728         (m68k_svr4_init_abi): New function.
6729         (m68k_gdbarch_init): Don't set extract_return_value,
6730         store_return_values, deprecated_extract_struct_value_address and
6731         use_struct_convention.  Set return_value instead.  Initialize new
6732         struct_value_regnum member of `struct gdbarch_tdep'.
6733         * m68klinux-tdep.c: Update copyright year.
6734         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6735         (m68k_linux_extract_struct_value_address): Remove function.
6736         (m68k_linux_init_abi): Don't set extract_return_value,
6737         store_return_values, deprecated_extract_struct_value_address and
6738         use_struct_convention.  Call m68k_svr4_init_abi but override the
6739         new struct_value_regnum member of `struct gdbarch_tdep'.
6740         * Makefile.in (m68k-tdep.o): Update dependencies.
6741
6742 2004-05-03  J. Brobecker  <brobecker@gnat.com>
6743
6744         * dwarf2read.c (line_header): Add new included_p field in
6745         field file_names.
6746         (partial_die_info): New field has_stmt_list. New field line_offset.
6747         (dwarf2_create_include_psymtab): New function.
6748         (dwarf2_build_include_psymtabs): New function.
6749         (add_file_name): Add forward declaration. Initialize new field.
6750         (dwarf_decode_lines): Add new parameter. Enhance this procedure
6751         to be able to determine the list of files included by the
6752         given unit, and build their associated psymtabs.
6753         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6754         files as well.
6755         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6756         (read_file_scope): Update call to dwarf_decode_lines.
6757         (read_partial_die): Handle DW_AT_stmt_list attributes.
6758
6759 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
6760
6761         Unfix PR gdb/1626.
6762         * configure.in: Revert special case for osf5.*.
6763         * configure: Regenerate.
6764
6765 2004-05-02  Jim Blandy  <jimb@redhat.com>
6766
6767         Move the symbol-file-from-memory functions into their own file.
6768         * symfile-mem.c, symfile-mem.h: New files.
6769         * symfile.c (symbol_file_add_from_bfd): New function.
6770         (symbol_file_add): Call symbol_file_add_from_bfd.
6771         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6772         Moved to symfile-mem.c.
6773         (_initialize_symfile): Move definition of
6774         add-symbol-file-from-memory command to symfile-mem.c.
6775         * symfile.h (symbol_file_add_from_bfd): New declaration.
6776         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6777         * config/powerpc/linux.mt (TDEPFILES): Same.
6778         * Makefile.in (SFILES): Add symfile-mem.c.
6779         (symfile_mem_h): New variable.
6780         (HFILES_NO_SRCDIR): Add symfile-mem.h.
6781         (symfile-mem.o): New rule.
6782
6783 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6784
6785         * breakpoint.c (insert_bp_location): Use get_frame_id, and
6786         frame_find_by_id instead of frame_relative_level.
6787         (do_enable_breakpoint): Ditto.
6788         * thread.c: Update copyright.
6789         (info_threads_command): Ditto, simplify.
6790
6791         * frame.c (deprecated_generic_get_saved_register): Delete
6792         function, moved to "xstormy16-tdep.c".
6793         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6794         deprecated_generic_get_saved_register from "frame.c".
6795         (xstormy16_frame_saved_register): Call
6796         xstormy16_get_saved_register.
6797         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6798         static.
6799         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6800         * frame.h (deprecated_generic_get_saved_register): Delete.
6801
6802 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
6803
6804         * dwarfread.c: Update documentation on the state of dwarf-1.
6805
6806 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6807
6808         * stack.c (select_frame_command): Delete call to
6809         frame_relative_level.
6810         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6811         Delete #if0 code.
6812         (frame_info): Do not print FRAMELESS.
6813         (print_block_frame_labels): Replace DEPRECATED_STREQ.
6814         (catch_info): Delete #if0 code.
6815
6816         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6817         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6818         of frame_relative_level.
6819         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6820         to SENTINEL_FRAME.
6821         * frame.h (enum frame_type): Add SENTINEL_FRAME.
6822         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6823         frame_relative_level.
6824
6825         * frame.h (deprecated_set_frame_type): Delete declaration.
6826         * frame.c (deprecated_set_frame_type): Delete function, update
6827         comments.
6828
6829         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6830         * gdbarch.h, gdbarch.c: Re-generate.
6831         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6832         (shnbsd_pc_in_sigtramp): Delete.
6833         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6834         pc_in_sigtramp.
6835         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6836         pc_in_sigtramp.
6837         * frame.h: Update comments.
6838         * ppc-linux-tdep.c: Update comments.
6839         * breakpoint.c (bpstat_what): Update comments.
6840
6841         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6842         m68klinux-tdep.o's dependencies, were previously added to
6843         m68klinux-nat.o.
6844
6845         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6846         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6847         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6848         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6849         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6850
6851         * Makefile.in (m68klinux-nat.o): Update dependencies.
6852         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6853         (m68k_linux_sigtramp_frame_cache)
6854         (m68k_linux_sigtramp_frame_this_id)
6855         (m68k_linux_sigtramp_frame_prev_register)
6856         (m68k_linux_sigtramp_frame_unwind)
6857         (m68k_linux_sigtramp_frame_sniffer)
6858         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6859         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6860         names, use trad-frame.h.
6861         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6862         (struct m68k_sigtramp_info): Delete.
6863         * m68k-tdep.c (m68k_sigtramp_frame_cache)
6864         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6865         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6866         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6867         "m68klinux-tdep.c".
6868
6869         * infrun.c (check_sigtramp2): Delete check for
6870         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6871
6872 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6873
6874         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6875
6876 2004-05-01  Andrew Cagney  <cagney@redhat.com>
6877
6878         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6879         (frv_linux_sigtramp_frame_cache)
6880         (frv_linux_sigtramp_frame_this_id)
6881         (frv_linux_sigtramp_frame_prev_register)
6882         (frv_linux_sigtramp_frame_unwind)
6883         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6884         include "linux" in function and variable names, directly call
6885         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6886         the latest trad-frame code.
6887         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6888         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6889         * Makefile.in (frv-linux-tdep.o): Update dependencies.
6890         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6891         * frv-tdep.c (frv_sigtramp_frame_cache)
6892         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6893         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6894         frv-linux-tdep.c.
6895         (frv_gdbarch_init): Do not append a sigtramp sniffer.
6896         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6897         (frv_set_sigcontext_reg_addr): Delete function.
6898
6899         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6900         (DEPRECATED_SIGTRAMP_END): Delete.
6901         * gdbarch.h, gdbarch.c: Re-generate.
6902         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6903         * config/vax/tm-vaxbsd.h: Update copyright.
6904         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6905         (DEPRECATED_IN_SIGTRAMP): Define.
6906         * config/m68k/tm-nbsd.h: Update copyright.
6907         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6908         (DEPRECATED_IN_SIGTRAMP): Define.
6909
6910 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6911
6912         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6913         encondings.  Fixes PR gdb/1628.
6914
6915         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6916         DW_CFA_restore state without a matching DW_CFA_remember_state
6917         instead of aborting.  Fixes PR backtrace/1589.
6918
6919 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
6920
6921         * MAINTAINERS: Add self as AIX maintainer.
6922         Update my e-mail address in write-after-approval section.
6923
6924 2004-04-30  Andrew Cagney  <cagney@redhat.com>
6925
6926         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6927         (legacy_get_prev_frame): Ditto.
6928
6929         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6930         (mips_gdbarch_init): Do not set pc_in_sigtramp.
6931         * mipsread.c (sigtramp_address): Delete extern variable.
6932         (mipscoff_new_init): Delete reference.
6933         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6934         (fixup_sigtramp): Delete function.
6935         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6936         (fixup_sigtramp): Delete declarations.
6937
6938         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6939         deprecated_pc_in_sigtramp.
6940         (ppcnbsd_pc_in_sigtramp): Delete function.
6941
6942 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6943
6944         * config/m68k/nm-nbsd.h: Tweak comments.
6945         * config/m68k/nm-nbsdaout.h: Likewise.
6946
6947 2004-04-30  Andrew Cagney  <cagney@redhat.com>
6948
6949         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6950         legacy_pc_in_sigtramp.
6951         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6952
6953 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
6954
6955         Add OpenBSD/m68k support.
6956         * NEWS (New native configurations): Mention OpenBSD/m68k.
6957         * m68kbsd-tdep.c: New file.
6958         * m68kbsd-nat.c: New file.
6959         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6960         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6961         * configure.host: Add m68k-*-openbsd.
6962         * configure.tgt: Add m68k-*-openbsd.
6963         * config/m68k/tm-obsd.h: New file.
6964         * config/m68k/obsd.mt: New file.
6965         * config/m68k/obsd.mh: New file.
6966         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6967         m68kbsd-tdep.c.
6968
6969 2004-04-30  Andrew Cagney  <cagney@redhat.com>
6970
6971         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6972         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6973
6974 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
6975
6976         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6977         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6978
6979 2004-04-30  Brian Ford  <ford@vss.fsi.com>
6980
6981         Revert 2004-04-16 change.
6982         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6983         (i386_coff_init_abi): Remove.
6984         * i386-tdep.h (i386_coff_init_abi): Remove.
6985         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6986
6987 2004-04-30  Andrew Cagney  <cagney@redhat.com>
6988
6989         * blockframe.c (find_pc_partial_function): Delete use of
6990         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6991         DEPRECATED_SIGTRAMP_END.
6992
6993         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6994         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6995         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6996         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6997         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6998
6999         * defs.h (deprecated_inside_entry_file): Delete declaration.
7000         * blockframe.c (deprecated_inside_entry_file): Delete function.
7001         (legacy_frame_chain_valid): Delete call.
7002         * sh64-tdep.c (sh64_frame_chain): Delete call.
7003         * objfiles.h: Update comments.
7004         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7005         call.
7006         * frame.c (get_prev_frame): Delete call, update comments.
7007
7008 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7009
7010         * MAINTAINERS (Write After Approval): Add myself.
7011
7012 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7013
7014         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7015         * gdbarch.h, gdbarch.c: Re-generate.
7016         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7017         code.
7018
7019 2004-04-30  Andrew Cagney  <cagney@redhat.com>
7020
7021         * gdb-events.sh (selected_thread_changed)
7022         (selected_frame_level_changed, target_changed): Delete.
7023         * gdb-events.h, gdb-events.c: Re-generate.
7024         * valops.c (value_assign): Update.
7025         * stack.c (select_frame_command, up_silently_base)
7026         (down_silently_base): Update.
7027
7028 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7029
7030         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7031         registers correctly.
7032         (print_gp_register_row, mips32_heuristic_proc_desc)
7033         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7034         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7035         references to mips_isa_regsize.
7036
7037 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7038
7039         * mips-tdep.c (struct gdbarch_tdep): Delete
7040         mips_fp_register_double.
7041         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7042         mips_abi_regsize.
7043         (mips_gdbarch_init): Do not set mips_fp_register_double.
7044         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7045
7046 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
7047
7048         Committed by Andrew Cagney.
7049         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7050         function calls.
7051
7052 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7053
7054         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7055         gdbarch, use mips_abi, update callers.
7056         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7057         mips_abi_regsize, update callers.
7058         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7059         mips_default_abi_regsize.
7060         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7061         mips_default_abi_regsize.
7062
7063 2004-04-29  Andrew Cagney  <cagney@redhat.com>
7064
7065         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7066         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7067         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7068         mips_default_abi_regsize.
7069         (mips_isa_regsize): Rename mips_regisze.
7070         * mipsnbsd-tdep.c: Update.
7071         * mips-linux-tdep.c: Update.
7072         * irix5-nat.c: Update.
7073         * mips-tdep.h (mips_isa_regsize): Update.
7074
7075         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7076         Delete all disabled code.
7077         * gdb-events.h, gdb-events.c: Re-generate.
7078         
7079 2004-04-19  Jerome Guitton  <guitton@gnat.com>
7080             Mark Kettenis  <kettenis@gnu.org>
7081
7082         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7083         the function begins with a branch instruction.
7084
7085 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
7086
7087         * i386-tdep.c: Fix spelling mistakes.
7088
7089 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7090             Andrew Cagney  <cagney@redhat.com>
7091
7092         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7093         <sys/proc.h>.
7094         * acconfig.h: Provide default _KMEMUSER value.
7095         * config.in, configure: Re-generate.
7096         * NEWS: Mention fix.
7097
7098 2004-04-24  Randolph Chung  <tausq@debian.org>
7099
7100         * configure.host (hppa*-*-linux*): New target.
7101         * configure.tgt (hppa*-*-linux*): Likewise.
7102         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7103         gdbarch_init_osabi() call earlier so that osabi-specific frame
7104         unwinders can be registered first.
7105         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7106         hppa-linux-nat.c.
7107         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7108         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7109         * config/pa/linux.mh: New file.
7110         * config/pa/linux.mt: New file.
7111         * config/pa/nm-linux.h: New file.
7112         * config/pa/xm-linux.h: New file.
7113         * hppa-linux-nat.c: New file.
7114         * hppa-linux-tdep.c: New file.
7115
7116 2004-04-28  Randolph Chung  <tausq@debian.org>
7117
7118         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7119         return values.
7120         (hppa32_push_dummy_call): Fix small struct and floating point argument 
7121         passing, and make sure the stack frame is properly aligned.
7122
7123 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7124
7125         * stack.c (print_stack_frame): Fix description.
7126
7127         * NEWS: Mention gdb/gdbserver/configure execute permission
7128         changed.  PR server/519.
7129
7130 2004-04-28  Andrew Cagney  <cagney@redhat.com>
7131
7132         * stack.c (print_stack_frame_stub): Delete declaration.
7133         (struct print_stack_frame_args, print_stack_frame)
7134         (print_frame_info, print_frame): Replace "source" with print what.
7135         Replace "print" with "print_level".  Replace "args" with
7136         "print_args".
7137         * frame.h (show_and_print_stack_frame, print_stack_frame)
7138         (print_frame_info): Update declarations.
7139         * stack.c (select_and_print_frame, frame_command)
7140         (current_frame_command, up_command, down_command): Update calls -
7141         use get_selected_frame, pass "enum print_what" for source, do not
7142         call frame_relative_level.
7143         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7144         * remote-rdp.c (remote_rdp_open): Ditto.
7145         * remote-mips.c (common_open): Ditto.
7146         * remote-e7000.c (e7000_start_remote): Ditto.
7147         * ocd.c (ocd_start_remote): Ditto.
7148         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7149         * infrun.c (normal_stop): Ditto.
7150         * inflow.c (kill_command): Ditto.
7151         * infcmd.c (finish_command): Ditto.
7152         * corelow.c (core_open): Ditto.
7153         * tracepoint.c (finish_tfind_command): Ditto.
7154         * thread.c (info_threads_command, info_threads_command) 
7155         (restore_current_thread, do_captured_thread_select): Ditto.
7156         * ada-tasks.c (task_command): Ditto.
7157
7158 2004-04-26  Orjan Friberg <orjanf@axis.com>
7159
7160         * frame.c: Include "observer.h".
7161         (frame_observer_target_changed): New function.
7162         (_initialize_frame): Attach target_changed observer.
7163         * regcache.c: Include "observer.h".
7164         (regcache_observer_target_changed): New function.
7165         (_initialize_regcache): Attach target_changed observer.
7166         * valops.c: Include "observer.h".
7167         (value_assign): Notify target_changed event when modifying register.
7168         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7169
7170 2004-04-26  Orjan Friberg <orjanf@axis.com>
7171
7172         From Paul Koning <pkoning@equallogic.com>:
7173         * breakpoint.c (free_valchain): New function.
7174         (insert_bp_location, delete_breakpoint): Use free_valchain.
7175         (remove_breakpoint): Do not remove the valchain.
7176         (bpstat_stop_status): If not stopped by watchpoint, skip
7177         watchpoints when generating stop status list.
7178         * infrun.c (handle_inferior_event): Make
7179         stepped_after_stopped_by_watchpoint a global variable.
7180         * remote.c (remote_stopped_data_address): Return watch data
7181         address rather than zero if stepped_after_stopped_by_watchpoint is
7182         set.
7183
7184 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
7185
7186         Fix PR gdb/1626.
7187         * configure.in: Check for curses after termcap.
7188         On osf5.*, do not check for ncurses.
7189         * configure: Regenerate.
7190
7191 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
7192
7193         * ppcobsd-nat.c: Include "ppc-tdep.h".
7194         * Makefile.in (ppcobsd-nat.o): Update dependencies.
7195
7196         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7197         Fixes PR tdep/1623 and PR tdep/1624.
7198
7199 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
7200
7201         * xmodem.h, xmodem.c: Remove files.
7202         * Makefile.in: Remove references to xmodem.h, xmodem.c.
7203
7204 2004-04-23  Randolph Chung  <tausq@debian.org>
7205
7206         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7207         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7208         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7209         for handling stackless frames.
7210         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
7211
7212 2004-04-23  Randolph Chung  <tausq@debian.org>
7213
7214         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7215         starts at a pc before the frame is created.
7216
7217 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
7218
7219         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7220
7221 2004-04-23  Jerome Guitton  <guitton@gnat.com>
7222
7223         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7224         use convert_typed_floating to get the appropriate format.
7225
7226 2004-04-22  Randolph Chung  <tausq@debian.org>
7227
7228         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7229         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7230         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7231         (hppa_sign_extend): Add prototype.
7232         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7233         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7234         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
7235         hppa targets will also use these functions.
7236         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7237         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7238         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7239         (hppa_gdbarch_init): Remove gdbarch setting of 
7240         skip_trampoline_code, in_solib_call_trampoline and
7241         in_solib_return_trampoline.
7242         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7243         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7244         hppa_in_solib_call_trampoline.
7245         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7246         Moved from hppa-tdep.c.
7247         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
7248         in_solib_call_trampoline and in_solib_return_trampoline.
7249
7250 2004-04-22  Randolph Chung  <tausq@debian.org>
7251
7252         * hppa-tdep.c (hppa_debug): New variable.
7253         (find_unwind_entry, hppa_frame_cache): Add debug output.
7254         (_initialize_hppa_tdep): Add command to set debug flag.
7255
7256 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7257
7258         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
7259         "trad-frame.h".
7260         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7261         signal trampoline unwinder.
7262         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7263
7264 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
7265
7266         Add OpenBSD/powerpc support.
7267         * NEWS (New native configurations): Mention OpenBSD/powerpc.
7268         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7269         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7270         (ppc_collect_fpregset): New prototypes.
7271         * ppcobsd-nat.c: New file.
7272         * ppcobsd-tdep.c: New file.
7273         * ppcobsd-tdep.h: New file.
7274         * rs6000-tdep.c: Include "regset.h".
7275         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7276         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7277         New functions.
7278         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7279         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7280         (rs6000-tdep.o): Update dependencies.
7281         * configure.host: Add powerpc-*-openbsd.
7282         * configure.tgt: Add powerpc-*-openbsd.
7283         * config/powerpc/obsd.mh: New file.
7284         * config/powerpc/nm-obsd.h: New file.
7285         * config/powerpc/obsd.mt: New file.
7286
7287 2004-04-22  Andrew Cagney  <cagney@redhat.com>
7288
7289         * frame.h (show_frame_info): Delete declaration.
7290
7291         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7292         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7293         * m32r-tdep.c (m32r_frame_this_id): Ditto.
7294         * frv-tdep.c (frv_frame_this_id): Ditto.
7295         * avr-tdep.c (avr_frame_this_id): Ditto.
7296
7297 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
7298
7299         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7300
7301 2004-04-22  Jim Blandy  <jimb@redhat.com>
7302
7303         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7304         register number zero.
7305
7306 2004-04-21  Michael Snyder  <msnyder@redhat.com>
7307
7308         * mips-tdep.c (heuristic_proc_start): 
7309         Warning() already prefixes "Warning: ".
7310
7311 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7312
7313         * annotate.h (deprecated_annotate_starting_hook)
7314         (deprecated_annotate_stopped_hook)
7315         (deprecated_annotate_exited_hook)
7316         (deprecated_annotate_signal_hook)
7317         (deprecated_annotate_signalled_hook): Deprecate.
7318         * tracepoint.h (deprecated_create_tracepoint_hook)
7319         (deprecated_delete_tracepoint_hook)
7320         (deprecated_modify_tracepoint_hook)
7321         (deprecated_trace_find_hook)
7322         (deprecated_trace_start_stop_hook): Deprecate.
7323         * target.h (deprecated_target_new_objfile_hook): Deprecate.
7324         * remote.h (deprecated_target_resume_hook)
7325         (deprecated_target_wait_loop_hook): Deprecate.
7326         * gdbcore.h (deprecated_exec_file_display_hook)
7327         (deprecated_file_changed_hook): Deprecate.
7328         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7329         * defs.h (deprecated_modify_breakpoint_hook)
7330         (deprecated_command_loop_hook, deprecated_show_load_progress)
7331         (deprecated_print_frame_info_listing_hook)
7332         (deprecated_query_hook, deprecated_warning_hook)
7333         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7334         (deprecated_delete_breakpoint_hook)
7335         (deprecated_interactive_hook, deprecated_registers_changed_hook)
7336         (deprecated_readline_begin_hook, deprecated_readline_hook)
7337         (deprecated_readline_end_hook, deprecated_register_changed_hook)
7338         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7339         (deprecated_context_hook, deprecated_target_wait_hook)
7340         (deprecated_attach_hook, deprecated_detach_hook)
7341         (deprecated_call_command_hook, deprecated_set_hook)
7342         (deprecated_error_hook, deprecated_error_begin_hook)
7343         (deprecated_ui_load_progress_hook): Deprecate.
7344         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7345         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7346         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7347         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7348         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7349         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7350         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7351         * annotate.c, aix-thread.c: Update.
7352
7353 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7354
7355         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7356         * vaxnbsd-tdep.c: Include "gdb_string.h".
7357
7358         * symfile.c (symbol_file_add_from_memory): #if 0 function.
7359         (add_symbol_file_from_memory_command): #if 0 function body, call
7360         error instead.
7361
7362 2004-04-21  Andrew Cagney  <cagney@redhat.com>
7363
7364         * gdbcore.h: Update copyright.
7365         (deprecated_add_core_fns): Rename add_core_fns.
7366         * win32-nat.c (_initialize_core_win32): Update.
7367         * sun3-nat.c (_initialize_core_sun3): Update.
7368         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7369         * rs6000-nat.c (_initialize_core_rs6000): Update.
7370         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7371         * nto-tdep.c (_initialize_nto_tdep): Update.
7372         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7373         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7374         * mips-nat.c (_initialize_core_mips): Update.
7375         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7376         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7377         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7378         * lynx-nat.c (_initialize_core_lynx): Update.
7379         * irix5-nat.c (_initialize_core_irix5): Update.
7380         * i386-interix-nat.c (_initialize_core_interix): Update.
7381         * cris-tdep.c (_initialize_cris_tdep): Update.
7382         * corelow.c (deprecated_add_core_fns): Update.
7383         * core-regset.c (_initialize_core_regset): Update.
7384         * core-aout.c (_initialize_core_aout): Update.
7385         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7386         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7387         * alpha-nat.c (_initialize_core_alpha): Update.
7388
7389 2004-04-21  Jim Blandy  <jimb@redhat.com>
7390
7391         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7392
7393 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
7394
7395         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7396         Delete.
7397         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
7398         (read_attribute_value): Update calls to dwarf_alloc_block.
7399         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7400         dwarf2_tmp_obstack.
7401         (psymtab_to_symtab_1): Likewise.  Clean up using
7402         free_stack_comp_unit.
7403         (add_to_cu_func_list): Use the comp_unit_obstack.
7404
7405 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
7406
7407         * dwarf2read.c (dwarf2_flag_true_p): New function.
7408         (die_is_declaration): Use the function above. Add some comments.
7409
7410 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
7411
7412         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7413         architecture when registering sparcnbsd_core_osabi_sniffer.
7414         Adjust comment.
7415
7416 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
7417
7418         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7419         return value.
7420
7421         Based on a patch from Brian Ford <ford@vss.fsi.com>:
7422         * i386-tdep.c: Correct register numbering scheme comments
7423         throughout.
7424         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7425         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7426         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7427         (i386_gdb_arch_init): Likewise.
7428
7429         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7430         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7431         ppcnbsd-tdep.o.
7432
7433         * m68k-tdep.h: Tweak comments.
7434         * m68k-tdep.c: Tweak comment.
7435
7436 2004-04-17  Randolph Chung  <tausq@debian.org>
7437
7438         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7439         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7440         (hppa_hpux_som_init_abi): Set is_elf to 0.
7441         (hppa_hpux_elf_init_abi): Set is_elf to 1.
7442         * hppa-tdep.c (low_text_segment_address): Remove global.
7443         (record_text_segment_lowaddr): Pass in low address as parameter. Use
7444         section offset to calculate segment address.
7445         (internalize_unwinds): Define low_text_segment_address as local and
7446         pass to record_text_segment_lowaddr for ELF targets.
7447         (hppa_gdbarch_init): Zero fill tdep structure.
7448         (hppa_dump_tdep): Print tdep structure.
7449         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7450
7451 2004-04-17  Randolph Chung  <tausq@debian.org>
7452
7453         * hppa-tdep.c (hppa_pseudo_register_read): Define.
7454         (hppa_gdbarch_init): Set pseudo_register_read.
7455         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7456         * regcache.c (supply_register): Remove check for
7457         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7458
7459 2004-04-17  Randolph Chung  <tausq@debian.org>
7460
7461         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7462         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7463         (hpread_adjust_stack_address): Move to hpread.c.
7464         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7465         obj_private_struct): Move from tm-hppa.h.
7466         * hpread.c (hppa-tdep.h): Include.
7467         (hpread_adjust_stack_address): Move from hppa-tdep.c.
7468         (hpread_read_function_type, hpread_read_doc_function_type)
7469         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
7470         directly.
7471         * pa64solib.c (hppa-tdep.h): Include.
7472         * somsolib.c (hppa-tdep.h): Include.
7473         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7474         inferior_status): Remove unused forward declarations.
7475         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7476         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
7477         obj_private_struct): Move to hppa-tdep.h.
7478         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7479
7480 2004-04-17  Randolph Chung  <tausq@debian.org>
7481
7482         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7483         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7484         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7485         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7486         Remove forward declaration and make static.
7487         (hppa_reg_struct_has_addr): Remove.
7488
7489 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7490
7491         * observer.sh: Move comments in sed command to first column.
7492
7493 2004-04-16  Jason Molenda  (jmolenda@apple.com)
7494
7495         * frame.c: Minor typeo corrections in comments.
7496
7497 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7498
7499         * observer.c (observer_test_first_notification_function): Update
7500         function profile.
7501         (observer_test_second_notification_function): Likewise.
7502         (observer_test_third_notification_function): Likewise.
7503
7504 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
7505
7506         From Brian Ford <ford@vss.fsi.com>:
7507         * i386-tdep.c (i386_coff_init_abi): New function.
7508         * i386-tdep.h (i386_coff_init_abi): New prototype.      
7509         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
7510         register number translation functions for DWARF and DWARF 2.
7511
7512 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
7513
7514         * dwarf2read.c: Back out my previous change, it was incorrect.
7515
7516 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
7517
7518         * dwarf2read.c: Include "hashtab.h".
7519         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7520         has_namespace_info.
7521         (struct partial_die_info): Add comments.  Use bitfields to reduce
7522         memory footprint.  Add scope, scope_set, has_specification,
7523         spec_offset, die_parent, die_child, and die_sibling.
7524         (peek_die_abbrev): Add prototype.
7525         (partial_read_comp_unit_head): New function, broken out from
7526         dwarf2_build_psymtabs_hard.
7527         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7528         Use partial_read_comp_unit_head.  Initialize the CU and
7529         comp_unit_obstack.  Update calls to read_partial_die and
7530         scan_partial_symbols.  Use free_stack_comp_unit and
7531         load_partial_dies.
7532         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
7533         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
7534         Update calls to helper functions.  Remove NAMESPACE argument.
7535         Update comments.
7536         (partial_die_parent_scope, partial_die_full_name): New functions.
7537         (add_partial_symbol): Remove namespace argument.  Update call to
7538         pdi_needs_namespace.  Use partial_die_full_name.  Handle
7539         DW_TAG_namespace.  Check has_namespace_info flag.
7540         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
7541         tag.  Handle namespaces.
7542         (add_partial_namespace, add_partial_enumeration): Simplify.
7543         (guess_structure_name): New function, derived from
7544         add_partial_structure.
7545         (add_partial_structure): Remove.
7546         (determine_class_name): Update comment.
7547         (dwarf2_read_abbrevs): Set has_namespace_info flag.
7548         (is_type_tag_for_partial, load_partial_dies): New functions.
7549         (read_partial_die): Pass abbrev and abbrev_len as arguments.
7550         Record specifications instead of following them immediately.
7551         (find_partial_die_in_comp_unit, find_partial_die)
7552         (fixup_partial_die, free_stack_comp_unit)
7553         (hashtab_obstack_allocate, dummy_obstack_deallocate)
7554         (partial_die_hash, partial_die_eq): New functions.
7555         * Makefile.in (hashtab_h): Define.
7556         (dwarf2read.o): Update dependencies.
7557         (observer_inc, observer_h): Move to the correct section.
7558
7559 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
7560
7561         * dwarf2read.c (dwarf2_attribute_true_p): New function.
7562         (die_is_declaration): Use the function above. Add comment.
7563
7564 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
7565
7566         * dwarf2read.c (read_structure_scope): Identify stub types
7567         using die_is_declaration() only.
7568
7569 2004-04-15  Roland McGrath  <roland@redhat.com>
7570
7571         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7572         argument instead of NAME.
7573         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7574         in call to symbol_file_add_with_addrs_or_offsets.
7575         (build_addr_info): New function, helper for ...
7576         (symbol_file_add_from_memory): New function.
7577         (add_symbol_file_from_memory_command): New function using that.
7578         (_initialize_symfile): Register it for add-symbol-file-from-memory.
7579         (pre_add_symbol_hook): Add const to argument type.
7580         * symfile.h (symbol_file_add_from_memory): Declare it.
7581
7582 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
7583
7584         * NEWS (New native configurations): Mention OpenBSD/vax.
7585         * configure.host: Add vax-*-openbsd*.
7586         * config/vax/obsd.mh: New file.
7587         * config/vax/nm-obsd.h: New file.
7588
7589         * vax-tdep.c: Include "regset.h".
7590         (vax_supply_gregset): New function.
7591         (vax_gregset): New variable.
7592         (vax_regset_from_core_section): New function.
7593         (vax_gdbarch_init): Set regset_from_core_section.
7594         * Makefile.in (vax-tdep.o): Update dependencies.
7595
7596 2004-04-15  Andrew Cagney  <cagney@redhat.com>
7597
7598         * observer.c (normal_stop_subject, observer_notify_normal_stop)
7599         (observer_normal_stop_notification_stub)
7600         (observer_attach_normal_stop, observer_detach_normal_stop):
7601         Delete, replaced by #include "observer.inc".
7602         * infrun.c (normal_stop): Pass "stop_bpstat" to
7603         observer_notify_normal_stop.
7604         * Makefile.in (observer_inc): Define.
7605         (observer.o): Update dependencies.
7606         (observer.h, observer.inc): New rules.
7607         * observer.h: Delete file.
7608         * observer.sh: New file.
7609
7610 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
7611
7612         * vax-tdep.c (vax_frame_cache): Fix typo.
7613
7614 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
7615
7616         * NEWS (New native configurations): Mention NetBSD/vax.
7617         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7618         * config/vax/nbsdelf.mh: New file.
7619         * config/vax/nbsdaout.mh: New file.
7620         * config/vax/nm-nbsd.h: New file.
7621         * config/vax/nm-nbsdaout.h: New file.
7622
7623         * vaxnbsd-tdep.c: New file.
7624         * Makefile.in (vaxnbsd-tdep.o): New dependency.
7625         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7626         * config/vax/nbsd.mt: New file.
7627         * config/vax/tm-nbsd.h: New file.
7628
7629         * Makefile.in (vaxbsd-nat.o): New dependency.
7630
7631         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7632         * vax-tdep.c (vax_store_arguments): Remove struct_return and
7633         struct_addr arguments.  Don't push return value address.
7634         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7635         arguments to vax_store_arguments.  Store return value address in
7636         R1.
7637         (vax_store_struct_return, vax_extract_return_value)
7638         (vax_store_return_value): Remove functions.
7639         (vax_return_value): New function.
7640         (vax_gdbarch_init): Set return value.  Don't set
7641         deprecated_store_struct_return, deprecated_extract_struct_return
7642         and deprecated_store_return_value.
7643
7644 2004-04-14  Andreas Schwab  <schwab@suse.de>
7645
7646         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7647         value buffer.
7648         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7649
7650 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
7651
7652         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7653         (vax_unwind_dummy_id): New functions.
7654         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7655         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7656         variables.
7657         (vax_fix_call_dummy): Remove function.
7658         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7659         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7660         call_dummy_location, deprecated_call_dummy_words,
7661         deprecated_sizeof_call_dummy_words,
7662         deprecated_call_dummy_breakpoint_offset,
7663         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7664         and deprecated_dummy_write_sp.
7665
7666 2004-04-13  David Carlton  <carlton@kealia.com>
7667
7668         * MAINTAINERS: Move myself to "paper trail" section.
7669
7670 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
7671
7672         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7673         "trad-frame.h".
7674         (vax_frame_init_saved_regs): Remove function.
7675         (vax_sigtramp_saved_pc): Remove function.
7676         (vax_frame_saved_pc): Remove function.
7677         (vax_frame_args_address): Remove function.
7678         (vax_frame_num_args): Rewrite.
7679         (vax_frame_chain): Remove function.
7680         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7681         VAX_FP_REGNUM.
7682         (vax_pop_frame): Likewise.
7683         (vax_saved_pc_after_call): Remove function.
7684         (struct vax_frame_cache): New structure.
7685         (vax_frame_cache): New function.
7686         (vax_frame_this_id): New function.
7687         (vax_frame_prev_register): New function.
7688         (vax_frame_unwind): New variable.
7689         (vax_frame_sniffer): New function.
7690         (vax_frame_base_address): New function.
7691         (vax_frame_args_address): New function.
7692         (vax_frame_base): New variable.
7693         (vax_unwind_pc): New function.
7694         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7695         deprecated_fp_regnum, deprecated_saved_pc_after_call,
7696         deprecated_frame_chain, deprecated_frame_saved_pc,
7697         deprecated_frame_args_address and
7698         deprecated_frame_init_saved_regs.
7699         * Makefile.in (vax-tdep.o): Update dependencies.
7700
7701         * vaxbsd-nat.c: New file.
7702
7703         * vax-tdep.h: Update copyright year.  Adjust comments.
7704         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7705         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7706         (vax_regnum): New enum.  Replacing...
7707         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7708         (VAX_PS_REGNUM): ... these removed macros.
7709         * vax-tdep.c (vax_register_name): Remove prototype.
7710         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
7711         (vax_register_byte, vax_register_raw_size,
7712         vax_register_virtual_size, vax_register_virtual_type): Remove
7713         functions.
7714         (vax_register_type): New function.
7715         (vax_breakpoint_from_pc): Reorganize.
7716         (vax_gdbarch_init): Set register_type.  Don't set
7717         deprecated_register_size, deprecated_register_bytes,
7718         deprecated_register_byte, deprecated_register_raw_size,
7719         deprecated_max_register_raw_size,
7720         deprecated_register_virtual_size,
7721         deprecated_max_register_virtual_size and
7722         deprecated_register_virtual_type.  Add comment on stack direction.
7723
7724 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
7725
7726         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7727         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7728         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7729
7730 2004-04-10  Randolph Chung  <tausq@debian.org>
7731
7732         * MAINTAINERS (write after approval): Add myself.
7733
7734 2004-04-07  Randolph Chung  <tausq@debian.org>
7735
7736         * hppa-tdep.c (hppa_inner_than): Remove.
7737         (is_pa_2): Remove unused static variable.
7738         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7739
7740 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
7741
7742         * language.h (language_defn): Add new la_post_parser field.
7743         * parser-defs.h (null_post_parser): New declaration (default for
7744         la_post_parser).
7745
7746         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7747         insert call to that function.
7748         (parse_exp_in_context): New function, including code formerly in
7749         parse_exp_1.  Calls language-dependent post-parser after
7750         prefixification.
7751         (parse_expression_in_context): New exported function.
7752         (null_post_parser): New definition.
7753         * expression.h (parse_expression_in_context): Add declaration.
7754
7755         * p-lang.c (pascal_language_defn): Add trivial post-parser.
7756         * c-lang.c (c_language_defn): Ditto.
7757         (cplus_language_defn): Ditto.
7758         (asm_language_defn): Ditto.
7759         (minimal_language_defn): Ditto.
7760         * f-lang.c (f_language_defn): Ditto.
7761         * jv-lang.c (java_language_defn): Ditto.
7762         * language.c (unknown_language_defn): Ditto.
7763         (auto_language_defn): Ditto.
7764         (local_language_defn): Ditto.
7765         * m2-lang.c (m2_language_defn): Ditto.
7766         * scm-lang.c (scm_language_defn): Ditto.
7767         * obj-lang.c (objc_language_defn): Ditto.
7768
7769 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
7770
7771         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7772         (amd64nbsd_mcontext_addr): New function.
7773         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7774         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
7775         with amd64nbsd_r_reg_offset, instead of building it on the fly.
7776
7777         * corelow.c (core_xfer_partial): Fix coding standards violation.
7778         Add support for TARGET_OBJECT_WCOOKIE.
7779
7780         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7781         deprecated_pc_in_sigtramp.
7782         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7783         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7784         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7785         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7786         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7787         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7788         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7789
7790         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7791         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7792         Fix typo.
7793
7794         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7795         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7796         (amd64_collect_fxsave): Likewise.
7797
7798         * i386-sol2-tdep.c: Include "gdb_string.h".
7799         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7800         name.
7801         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7802
7803 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
7804
7805         * i386-sol2-tdep.c: Include "solib-svr4.h".
7806         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7807         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7808         * config/i386/tm-i386sol2.h: Include :solib.h".
7809         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7810         solib-svr4.o and solib-legacy.o.
7811         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7812         solib-svr4.o.
7813
7814 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
7815
7816         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7817         whether a register is supplied by PTRACE_GETFPREGS.
7818         (store_inferior_registers): Likewise.
7819         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7820         whether a register is supplied by PT_GETFPREGS.
7821         (store_inferior_registers): Likewise.
7822
7823         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7824         * config/i386/linux64.mt (TDEPFILES): Likewise.
7825
7826         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
7827
7828         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7829         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7830         the program counter is in the range specified by `struct
7831         gdbarch_tdep'.
7832         * amd64-linux-tdep.c: Include "symtab.h".
7833         (amd64_linux_pc_in_sigtramp): Remove function.
7834         (amd64_linux_sigtramp_p): New function.
7835         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7836         deprecated_pc_in_sigtramp.
7837         * amd64nbsd-tdep.c: Include "symtab.h".
7838         (amd64nbsd_sigtramp_p): New function.
7839         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7840         deprecated_pc_in_sigtramp.
7841         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
7842         few comments.
7843         (amd64obsd_pc_in_sigtramp): Remove function.
7844         (amd64obsd_sigtramp_p): New function.
7845         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7846         deprecated_pc_in_sigtramp.
7847         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7848         (i386bsd_pc_ins_sigtramp): Remove prototype.
7849         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7850         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7851         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7852         the program counter is in the range specified by `struct
7853         gdbarch_tdep'.
7854         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7855         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7856         (i386_go32_pc_in_sigtramp): Remove function.
7857         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7858         Initialize TDEP->sigtramp_p.
7859         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7860         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
7861         deprecated_pc_in_sigtramp.
7862         * i386-linux-tdep.c: Adjust comments.
7863         (i386_linux_pc_in_sigtramp): Remove function.
7864         (i386_linux_sigtramp_p): New function.
7865         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7866         deprecated_pc_in_sigtramp.
7867         * i386-nto-tdep.c: Update copyright year.
7868         (i386nto_pc_in_sigtramp): Remove function.
7869         (i386nto_sigtramp_p): New function.
7870         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7871         SP_REGNUM.
7872         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7873         deprecated_pc_in_sigtramp.
7874         * i386-sol2-tdep.c: Update copyright year.
7875         (i386_sol2_pc_in_sigtramp): Remove function.
7876         (i386_sol2_sigtramp_p): New function.
7877         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7878         deprecated_pc_in_sigtramp.
7879         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7880         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7881         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7882         deprecated_sigtramp_start and deprecated_sigtramp_end.
7883         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7884         (i386nbsd_pc_in_sigtramp): Remove function.
7885         (i386nbsd_sigtramp_p): New function.
7886         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7887         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7888         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7889         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7890         (i386obsd_pc_in_sigtramp): Remove function.
7891         (i386obsd_sigtramp_p): New function.
7892         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7893         functions.
7894         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7895         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7896         TDEP->sigtramp_p.
7897         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7898         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7899         dependencies.
7900
7901         * config/i386/i386aout.mt: Remove file.
7902
7903         * configure.tgt: Remove i[34567]86-*-go32*,
7904         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7905         and i[34567]86-*-isc*.  Set gdb_target to i386 for
7906         i[34567]86-*-netware* and i[34567]86-*-*.
7907         * config/i386/i386.mt: New file.
7908         * config/i386/embed.mt: Remove file.
7909         * config/i386/go32.mt: Remove file.
7910         * config/i386/i386nw.mt: Remove file.
7911         * config/i386/i386v.mt: Remove file.
7912         * config/i386/tm-go32.h: Remove file.
7913
7914         * tui/tui-hooks.c: Include "readline/readline.h" after
7915         "gdb_curses.h" instead of before.
7916         * tui/tui-io.c: Likewise.
7917
7918         * tui/tui.c: Fix typo in comment.
7919
7920         * sparc64-tdep.c (sparc_address_from_register): Remove function.
7921
7922 2004-04-08  Andrew Cagney  <cagney@redhat.com>
7923
7924         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7925         (deprecated_exception_support_initialized): Declare.
7926         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7927         (initialize_hp_cxx_exception_support)
7928         (child_enable_exception_callback): Update.
7929         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7930         (deprecated_exception_support_initialized): Rename
7931         deprecated_exception_catchpoints_are_fragile and
7932         deprecated_exception_support_initialized.
7933         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7934
7935         * symtab.c (deprecated_hp_som_som_object_present): Rename
7936         hp_som_som_object_present.
7937         * symtab.h (deprecated_hp_som_som_object_present): Declare.
7938         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7939         Update.  Delete extern declaration.
7940         * valops.c (hp_som_som_object_present): Ditto.
7941         * parse.c (deprecated_hp_som_som_object_present)
7942         (parse_nested_classes_for_hpacc): Ditto.
7943         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7944         * hppa-hpux-tdep.c (hp_som_som_object_present)
7945         (initialize_hp_cxx_exception_support): Ditto.
7946         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7947         * cp-valprint.c (hp_som_som_object_present)
7948         (cp_print_class_method): Ditto.
7949         * c-typeprint.c (hp_som_som_object_present):
7950         (c_type_print_base): Ditto.
7951         * c-exp.y (hp_som_som_object_present): Ditto.
7952
7953 2004-04-08  Andrew Cagney  <cagney@redhat.com>
7954
7955         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7956         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7957         (frame_unwind_find_by_frame): Re-implement the unwind code so
7958         that it can both prepend and append sniffers.  Replace
7959         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7960         * tramp-frame.c (tramp_frame_append): Use
7961         frame_unwind_prepend_unwinder.
7962         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7963         frame_unwind_register_unwinder.
7964         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7965         tramp_frame_append.
7966         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7967         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7968         (mips_linux_init_abi): Update.
7969
7970 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
7971
7972         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7973         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
7974         file support.
7975
7976 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
7977
7978         * ia64-tdep.c (elf.h): Don't include.
7979         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7980
7981 2004-04-07  Jason Molenda  (jmolenda@apple.com)
7982
7983         * frame.h: Typeo corrections in comments.
7984
7985 2004-04-07  Jim Blandy  <jimb@redhat.com>
7986
7987         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7988         %esp and %ebp
7989
7990 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
7991
7992         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7993         * config/sparc/linux64.mt (TDEPFILES): Likewise.
7994         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7995         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7996         and solib-legacy.o.
7997         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7998         solib-svr4.o.
7999         * config/sparc/tm-sol2.h: Update copyright year.  Include
8000         "solib.h".
8001
8002         * sparc-sol2-tdep.c: Update copyright year.  Include
8003         "solib-svr4.h".
8004         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8005         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8006         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8007         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8008         dependencies.
8009
8010 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8011
8012         * infttrace.c: Include "infttrace.h".
8013         * infttrace.h: Include "target.h".
8014         * Makefile.in (infttrace_h): Update.
8015         (infttrace.o): Update.
8016
8017 2004-04-06  Andrew Cagney  <cagney@redhat.com>
8018
8019         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8020         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8021         move extern declarations from here ...
8022         * infttrace.h: ... to here.
8023         * Makefile.in (hppah-nat.o): Update dependencies.
8024
8025         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8026         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8027         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8028         (hppa_breakpoint_from_pc): Delete.
8029
8030         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8031
8032 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8033
8034         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8035         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8036         <sys/file.h>.
8037
8038 2004-04-06  Randolph Chung  <tausq@debian.org>
8039
8040         Committed by Andrew Cagney (mechanical change).
8041         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8042         exception_catchpoints_are_fragile, find_stub_with_shl_get,
8043         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8044         child_enable_exception_callback, current_ex_event,
8045         null_symtab_and_line, child_get_current_exception_event,
8046         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8047         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8048         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8049         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8050         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8051         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8052         Move hpux-specific definitions ...
8053         * hppa-hpux-tdep.c: ... to here.
8054
8055 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8056
8057         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8058         skip_prologue_using_sal.
8059
8060 2004-04-05  Andrew Cagney  <cagney@redhat.com>
8061
8062         * config/i386/tm-i386.h: Delete file.
8063         * config/i386/tm-vxworks.h: Update copyright, do not include
8064         "tm-i386.h".
8065         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8066         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8067         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8068         * config/i386/ncr3000.mt (TM_FILE): Delete.
8069         * config/i386/interix.mt (TM_FILE): Delete.
8070         * config/i386/i386v.mt (TM_FILE): Delete.
8071         * config/i386/i386nw.mt (TM_FILE): Delete.
8072         * config/i386/i386gnu.mt (TM_FILE): Delete.
8073         * config/i386/i386aout.mt (TM_FILE): Delete.
8074         * config/i386/embed.mt (TM_FILE): Delete.
8075
8076 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
8077
8078         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8079         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8080         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8081         (accg7_regnum): New constants.
8082         (last_spr_regnum, last_pseudo_regnum): Update.
8083         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8084         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8085         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8086         for accg registers.
8087         (frv_register_sim_regno): Update spr_map[].
8088
8089 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8090
8091         * config/mips/xm-riscos.h: Delete.
8092         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8093         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8094         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8095         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8096         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8097         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8098         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8099         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8100         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8101         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8102         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8103         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8104         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8105         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8106         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8107         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8108         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8109         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8110         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8111         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8112         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8113         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8114         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8115         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8116         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8117         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8118
8119         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8120         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8121         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8122         * configure.host: Remove m680[01]0-sun-sunos3*,
8123         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8124         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8125         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8126         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8127         mips-*-riscos*.
8128         * NEWS: Mention removed systems.
8129
8130 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8131
8132         GDB 6.1 release created from 6.1 branch.
8133
8134 2004-04-04  Andrew Cagney  <cagney@redhat.com>
8135
8136         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8137         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8138         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8139
8140         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8141         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8142         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8143
8144 2004-04-03  Jim Blandy  <jimb@redhat.com>
8145
8146         * MAINTAINERS: Chris Faylor has changed employers; add him to
8147         "paper trail" section, and update his E-mail address.
8148
8149 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8150
8151         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8152         generic dummy frames.
8153         * dummy-frame.c: Update copyright.
8154         (dummy_frame_sniffer): Delete check for generic dummy frames.
8155
8156         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8157         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8158         (REG_PARM_STACK_SPACE): Delete.
8159         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8160         Inline reference to REG_PARM_STACK_SPACE.
8161
8162         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8163         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8164         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8165         (FRAME_BASE_BEFORE_SIGTRAMP)
8166         (hppa32_hpux_frame_base_before_sigtramp)
8167         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8168         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8169         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8170         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8171         (FRAME_BASE_BEFORE_SIGTRAMP)
8172         (hppa64_hpux_frame_base_before_sigtramp)
8173         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8174
8175 2004-04-03  Andrew Cagney  <cagney@redhat.com>
8176
8177         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8178
8179 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8180
8181         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8182         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8183         * dummy-frame.h: Delete out-of-date comments.
8184         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8185         * gdbarch.h, gdbarch.c: Re-generate.
8186
8187 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
8188
8189         Committed by Andrew Cagney <cagney@redhat.com>.
8190         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8191         into account an instruction saving a register if we have already
8192         seen an earlier instruction saving that same register.
8193
8194 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8195
8196         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8197         * gdbarch.h, gdbarch.c: Re-generate.
8198         * frame.c (legacy_get_prev_frame): Delete references to
8199         DEPRECATED_INIT_FRAME_PC_FIRST.
8200
8201         * infrun.c (pc_in_sigtramp): Delete function.
8202         (check_sigtramp2): Inline call to pc_in_sigtramp, use
8203         get_frame_type.
8204
8205 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8206
8207         * infrun.c (handle_step_into_function): Delete code conditional on
8208         legacy_frame_p.
8209         (handle_inferior_event, step_over_function): Ditto.
8210
8211 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8212
8213         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8214         "previous frame inner to this frame" test.
8215
8216 2004-04-02  Andrew Cagney  <cagney@redhat.com>
8217
8218         * frame.c (safe_frame_unwind_memory): New function.
8219         * frame.h (safe_frame_unwind_memory): Declare.  Update description
8220         of /safe_/ methods.
8221         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8222         "next_frame".  Use safe_frame_unwind_memory.
8223         (tramp_frame_sniffer): Update call to tramp_frame_start.
8224
8225 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
8226
8227         * dwarf2read.c (dwarf2_objfile_data_key): New.
8228         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8229         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8230         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8231         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8232         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8233         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8234         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8235         Remove variables.
8236         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
8237         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8238         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8239         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8240         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8241         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8242         Remove macros.
8243         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
8244         data.
8245         (dwarf2_locate_sections, dwarf2_build_psymtabs)
8246         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8247         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8248         (read_partial_die, read_full_die, read_indirect_string)
8249         (dwarf_decode_line_header, dwarf_decode_macros)
8250         (dwarf2_symbol_mark_computed): Remove use of removed macros.
8251         Update uses of removed variables.
8252         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
8253         of removed macros.
8254         (_initialize_dwarf2_read): New function.
8255         * symfile.h (dwarf2_has_info): Update prototype.
8256         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8257         * elfread.c (elf_symfile_read): Likewise.
8258
8259 2004-04-01  Jim Blandy  <jimb@redhat.com>
8260
8261         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8262         function for register numbers on all the rs6000-derived targets.
8263         (rs6000_gdbarch_init): Don't register a separate
8264         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
8265         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8266         variants.
8267
8268         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8269         numbering.
8270
8271 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
8272
8273         * valarith.c: Update copyright notice.
8274         (value_add): Handle range types.
8275         (value_sub): Ditto.
8276         (value_equal): Ditto.
8277         (value_less): Ditto.
8278         (value_neg): Ditto.
8279         (value_complement): Ditto.
8280         (value_binop): Simplify slightly by using is_integral_type and
8281         eliminiating unnecessary COERCE_ENUMs.
8282
8283 2004-03-31  Andrew Cagney  <cagney@redhat.com>
8284
8285         * frame.h (frame_unwind_id): Declare.
8286         * frame.c (frame_unwind_id): New function.
8287         (get_prev_frame_1): New function.
8288         (frame_debug_got_null_frame): New function.
8289         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
8290         code proper to prev_frame, update description.
8291         * infrun.c (step_over_function): Use frame_unwind_id.
8292
8293 2004-04-31  J. Brobecker  <brobecker@gnat.com>
8294
8295         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8296         (hppa64_push_dummy_call): Likewise.
8297
8298 2004-03-30  Jim Blandy  <jimb@redhat.com>
8299
8300         From Ulrich Weigand:
8301         * utils.c (query): Do not use a va_list variable multiple times.
8302
8303 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
8304
8305         * Makefile.in (linux_nat_h): Update dependencies.
8306         * configure.in: Check for <gnu/libc-version.h>.
8307         * configure: Regenerate.
8308         * config.in: Regenerate.
8309         * linux-nat.h: Include "target.h".  Add waitstatus field to
8310         struct lwp_info.
8311         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8312         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8313         to.
8314         (lin_lwp_handle_extended): New function.  Handle clone events.
8315         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
8316         thread exit events.
8317         (child_wait): Handle clone events.
8318         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8319         * linux-nat.c (linux_enable_event_reporting): Turn on
8320         PTRACE_O_TRACECLONE.
8321         (linux_handle_extended_wait): Handle clone events.
8322         * thread-db.c: Include <gnu/libc-version.h>.
8323         (struct private_thread_info): Add dying flag.
8324         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8325         higher.
8326         (attach_thread): Update comments.  Handle dying threads.
8327         (detach_thread): Set the dying flag.
8328         (check_event): Always call attach_thread.
8329
8330 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
8331
8332         * mips-tdep.c (mips_pdr_data): New.
8333         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8334         (_initialize_mips_tdep): Initialize mips_pdr_data.
8335
8336 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
8337
8338         * minsyms.c (install_minimal_symbols): Move dropping leading
8339         char from linkage name from here...
8340         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
8341         test for "__gnu_compiled*" symbols.
8342
8343 2004-03-28  Jim Blandy  <jimb@redhat.com>
8344
8345         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8346         registers to temp register r0 and byte stores as prologue
8347         instructions.
8348
8349 2004-03-28  Andrew Cagney  <cagney@redhat.com>
8350
8351         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
8352         arm*-*-*.
8353
8354 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
8355
8356         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8357         and switch the layout to force a display of register window.
8358
8359 2004-02-26  J. Brobecker  <brobecker@gnat.com>
8360
8361         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8362         of the INTEGER class.
8363
8364 2004-03-26  Jim Blandy  <jimb@redhat.com>
8365
8366         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8367         bytes long on PPC GNU/Linux.
8368
8369 2004-03-26  David Carlton  <carlton@kealia.com>
8370
8371         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8372
8373 2004-03-25  Andrew Cagney  <cagney@redhat.com>
8374
8375         * PROBLEMS: Add general section titles, remove references to
8376         specific releases.
8377
8378 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
8379
8380         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8381         INT_REGISTER_SIZE.
8382         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8383         FP_REGISTER_VIRTUAL_SIZE.
8384         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8385         of DEPRECATED_REGISTER_RAW_SIZE.
8386         (arm_register_type): Add gdbarch argument.
8387         (arm_register_raw_size, arm_register_virtual_size): Delete.
8388         (arm_register_byte, arm_extract_return_value)
8389         (arm_store_return_value, arm_get_longjmp_target): Update references
8390         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8391         (arm_gdbarch_init): Likewise.  Don't set
8392         deprecated_register_raw_size, deprecated_register_virtual_size,
8393         deprecated_max_register_raw_size,
8394         deprecated_max_register_virtual_size, or
8395         deprecated_max_register_virtual_type.  Do set register_type.
8396         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8397         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8398         (FP_REGISTER_VIRTUAL_SIZE): Delete.
8399         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8400         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8401         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8402         INT_REGISTER_SIZE.
8403         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8404         (remote_rdp_store_register): Likewise.
8405
8406 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
8407
8408         * Makefile.in (mips-linux-tdep.o): Update dependencies.
8409         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8410         to after osabi initialization.
8411         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8412         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8413         functions.
8414         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8415         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8416         variables.
8417         (mips_linux_init_abi): Append signal trampoline unwinders.
8418
8419 2004-03-24  Andrew Cagney  <cagney@redhat.com>
8420
8421         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8422         * tramp-frame.c: Include "gdb_assert.h".
8423         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
8424         correct sizeof.
8425         (tramp_frame_append): Validate the tramp frame's instructions.
8426         * Makefile.in (tramp-frame.o): Update dependencies.
8427
8428 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8429
8430         * trad-frame.h (trad_frame_set_reg_addr): Declare.
8431
8432 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8433
8434         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8435         Nasser as past testsuite/lib/ (and other) maintainers.
8436
8437 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
8438
8439         * infcmd.c (attach_command): Reread symbols if we already have
8440         an exec file.
8441
8442 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8443
8444         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8445
8446 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8447
8448         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8449         * gdbarch.h, gdbarch.c: Re-generate.
8450         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8451         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8452         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8453         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8454         (DEPRECATED_SIGTRAMP_START): Update.
8455         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8456         (DEPRECATED_SIGTRAMP_START): Update.
8457         * blockframe.c (find_pc_sect_partial_function): Update.
8458         * arch-utils.c (legacy_pc_in_sigtramp): Update.
8459
8460 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
8461
8462         * remote.c (remote_open_1): Reopen the exec file and reread symbols
8463         if necessary.
8464
8465 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8466
8467         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8468         predicate, deprecate.
8469         * gdbarch.h, gdbarch.c: Re-generate.
8470         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8471         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8472         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8473         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8474         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8475         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8476         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8477         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8478         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8479         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8480         * blockframe.c (find_pc_partial_function): Update.
8481         * breakpoint.c (bpstat_what): Update.
8482         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8483         * frv-linux-tdep.c (frv_linux_init_abi): Update.
8484         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8485         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8486         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8487         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8488         * i386-nto-tdep.c (i386nto_init_abi): Update.
8489         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8490         * i386-tdep.c (i386_sigtramp_frame_sniffer)
8491         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8492         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8493         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8494         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8495         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8496         * infrun.c (pc_in_sigtramp): Update.
8497         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8498         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8499         * mips-tdep.c (mips_gdbarch_init): Update.
8500         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8501         * ppc-linux-tdep.c: Update comment.
8502         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8503         * shnbsd-tdep.c (shnbsd_init_abi): Update.
8504         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8505         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8506         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8507         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8508         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8509         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8510         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8511         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8512
8513 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8514
8515         * tramp-frame.h, tramp-frame.h: New files.
8516         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8517         Update rules to include "tramp-frame.h" and "tramp-frame.c".
8518
8519         * Makefile.in: Update all dependencies.
8520
8521 2004-03-23  Andrew Cagney  <cagney@redhat.com>
8522
8523         * Makefile.in (trad_frame_h): Add $(frame_h).
8524         * trad-frame.h: Update copyright.  Include "frame.h".
8525         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8526         (trad_frame_set_id, trad_frame_get_id): Declare.
8527         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8528         * trad-frame.c: Update copyright.
8529         (struct trad_frame_cache): Define.
8530         (trad_frame_cache_zalloc): New function.
8531         (trad_frame_set_id, trad_frame_get_id): New functions.
8532         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8533
8534 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8535
8536         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8537         s390_pltstub_unwind_cache.
8538         (s390_stub_frame_unwind_cache): Rename
8539         s390_pltstub_frame_unwind_cache.
8540         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8541         (s390_stub_frame_prev_register): Rename
8542         s390_pltstub_frame_prev_register.
8543         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8544         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8545
8546         From Ulrich Weigand:
8547         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8548         pointer calls like PLT calls.
8549
8550 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
8551
8552         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8553         PC rather than the partial function start address.  Use the start
8554         address to sanity check the found PDR.
8555
8556 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
8557
8558         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8559         linux_handle_extended_wait.
8560
8561 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8562
8563         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8564         function.
8565
8566         * frame.h (generic_pop_current_frame): Delete declaration.
8567         (deprecate_pop_dummy_frame): Deprecate
8568         generic_pop_dummy_frame.
8569         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8570         (generic_pop_current_frame): Delete function.
8571         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8572         generic_pop_current_frame.
8573         * v850-tdep.c (v850_pop_frame): Update.
8574         * mcore-tdep.c (mcore_pop_frame): Update.
8575         * sh64-tdep.c (sh64_pop_frame): Update.
8576         * h8300-tdep.c (h8300_pop_frame): Update.
8577
8578 2004-03-22  Andrew Cagney  <cagney@redhat.com>
8579
8580         * frame.h (deprecated_pc_in_call_dummy): Rename
8581         generic_pc_in_call_dummy.
8582         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8583         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8584         generic_pc_in_call_dummy.
8585         (pc_in_dummy_frame): Make static.
8586         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8587         * gdbarch.h, gdbarch.c: Re-generate.
8588         * dummy-frame.c (dummy_frame_sniffer): Simplify.
8589         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8590         (legacy_get_prev_frame): Ditto.
8591         * inferior.h: Delete reference to generic_pc_in_call_dummy in
8592         comment.
8593
8594 2004-03-21  Andrew Cagney  <cagney@redhat.com>
8595
8596         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8597         declaration and out-of-date comment.
8598         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8599         Delete function.
8600         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8601         deprecated_pc_in_call_dummy.
8602
8603         * infrun.c (handle_inferior_event): For non legacy frames, use the
8604         frame ID and frame type to identify a signal trampoline.  Update
8605         comments.
8606
8607 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
8608
8609         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8610         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8611
8612 2004-03-21  Andrew Cagney  <cagney@redhat.com>
8613
8614         * frame-unwind.h: Update copyright.
8615         (struct frame_data): Add opaque declaration.
8616         (frame_sniffer_ftype): Declare.
8617         (struct frame_unwind): Add "unwind_data" and "sniffer".
8618         (frame_unwind_register_unwinder): Declare.
8619         (frame_unwind_find_by_frame): Add parameter "this_cache".
8620         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8621         (legacy_get_prev_frame, legacy_get_prev_frame)
8622         (get_frame_type): Pass the prologue_cache to
8623         frame_unwind_find_by_frame.
8624         * frame-unwind.c (struct frame_unwind_table_entry): Add field
8625         "unwinder".
8626         (frame_unwind_register_unwinder): New function.
8627         (frame_unwind_find_by_frame): Handle an unwind sniffer.
8628
8629 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
8630
8631         * bcache.c (print_percentage): Use floating point to avoid
8632         incorrect results when portion*100 overflows.
8633
8634 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
8635
8636         * ppc_tdep.h (ppc_linux_frame_saved_pc)
8637         (ppc_linux_init_extra_frame_info)
8638         (ppc_linux_frameless_function_invocation)
8639         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8640         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8641         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8642         (rs6000_frame_chain): Delete declarations.
8643         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8644         (ppc_linux_init_extra_frame_info)
8645         (ppc_linux_frameless_function_invocation)
8646         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8647         (ppc_linux_init_abi): Remove registration of above deleted functions.
8648         * rs6000-tdep.c (rs6000_init_extra_frame_info)
8649         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8650         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8651         (rs6000_pop_frame, rs6000_frameless_function_invocation)
8652         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8653         (rs6000_gdbarch_init): Remove registration of above deleted functions.
8654         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8655         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8656         frame management for all OSABIs.
8657
8658 2004-03-19  Andrew Cagney  <cagney@redhat.com>
8659
8660         Committed by Kevin Buettner <kevinb@redhat.com>.
8661
8662         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8663         Update copyright.
8664         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8665         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8666         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8667         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8668         unwinders.  #ifdef legacy frame code.
8669         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8670         "frame-base.h".
8671         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8672         (struct rs6000_frame_cache, rs6000_frame_cache)
8673         (rs6000_frame_this_id, rs6000_frame_prev_register)
8674         (rs6000_frame_sniffer, rs6000_frame_unwind)
8675         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8676         (rs6000_frame_base): Implement a traditional frame unwinder.
8677         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8678         frame unwinder.
8679
8680 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
8681
8682         * breakpoint.c (adjust_breakpoint_address): Don't adjust
8683         breakpoint address for watchpoints or the catch eventpoints.
8684         Add new paramter ``bptype''.  Adjust all callers.
8685
8686 2004-03-19  Andrew Cagney  <cagney@redhat.com>
8687
8688         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8689
8690         * PROBLEMS: Delete note that ARM does not use frame code, problem
8691         fixed.
8692
8693 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8694
8695         * stack.c (return_command): Delete code wrapped in #ifdef
8696         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8697
8698         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8699
8700 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8701
8702         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8703         DEPRECATED_IN_SIGTRAMP.
8704         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8705         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8706         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8707         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8708         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8709         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8710         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8711         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8712         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8713         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8714
8715 2004-03-18  Andrew Cagney  <cagney@redhat.com>
8716
8717         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
8718         (struct frame_base_table_entry): Define.
8719         (struct frame_base_table): Re-implement as a linked list.
8720         (frame_base_init): Re-implement.
8721         (frame_base_table): Delete function.
8722         (append_predicate): Delete function.
8723         (frame_base_append_sniffer): Update.
8724         (frame_base_set_default): Update.
8725         (frame_base_find_by_frame): Update.
8726         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8727         * Makefile.in (frame-base.o): Update dependencies.
8728
8729 2004-03-17  Andrew Cagney  <cagney@redhat.com>
8730
8731         * frame.c (legacy_get_prev_frame): Pass correct frame to
8732         frame_unwind_find_by_frame.
8733
8734 2004-03-17  David Carlton  <carlton@kealia.com>
8735
8736         * NEWS: Mention C++ nested types and namespaces
8737
8738 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
8739
8740         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8741         and "Regressions since gdb 5.3.".  Add known regressions since
8742         gdb 6.0.
8743
8744 2004-03-16  David Carlton  <carlton@kealia.com>
8745
8746         * dwarf2read.c (process_structure_scope): Process children even
8747         when we're a declaration.
8748
8749 2004-03-16  Andrew Cagney  <cagney@redhat.com>
8750
8751         * symtab.h (find_pc_sect_partial_function): Delete declaration.
8752         * blockframe.c (find_pc_partial_function)
8753         (find_pc_sect_partial_function): Merge into a single
8754         find_pc_partial_function.
8755
8756 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
8757
8758         * i386bsd-nat.c: s/regno/regnum/g.
8759         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8760         FP0_REGNUM.
8761         (store_inferior_registers): Likewise.
8762
8763 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
8764
8765         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8766         of i387_fill_fsave.
8767         (store_inferior_registers): Call i387_collect_fsave and
8768         i387_collect_fxsave instead of i387_fill_fsave and
8769         i387_fill_fxsave.
8770
8771 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8772
8773         * Makefile.in (frame-unwind.o): Update dependencies.
8774         * frame-unwind.c: Include "gdb_obstack.h".
8775         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8776         parameter.
8777         (append_predicate): Delete function.
8778         (struct frame_unwind_table_entry): New structure.
8779         (struct frame_unwind_table): Replace "sniffer" with "head" and
8780         "tail".
8781         (frame_unwind_append_sniffer): Update.
8782         (frame_unwind_find_by_frame): Update.
8783         (_initialize_frame_unwind): Registe frame_unwind_init using
8784         gdbarch_data_register_pre_init.
8785
8786 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8787
8788         * i386bsd-nat.c: Update copyright year.
8789         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8790         define unconditionally.
8791
8792 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8793
8794         * i387-tdep.h (i387_collect_fsave): New prototype.
8795         * i387-tdep.c (i387_collect_fsave): New function containing most
8796         of the code from i387_fill_fsave.
8797         (i387_fill_fsave): Call i387_collect_fsave.
8798
8799 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
8800
8801         * i386-linux-tdep.c: Update copyright year.
8802         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8803         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8804         svr4_ilp32_link_map_offsets instead of
8805         i386_linux_svr4_fetch_link_map_offsets.
8806
8807 2004-03-15  David Carlton  <carlton@kealia.com>
8808
8809         Fix for PR c++/1553:
8810         * dwarf2read.c (read_structure_type): Determine type name by
8811         calling determine_class_name.
8812         (determine_class_name): New.
8813         (determine_prefix): Look at TYPE_TAG_NAME and call
8814         determine_class_name when appropriate.
8815         (determine_prefix_aux, class_name): Delete.
8816         (read_namespace): Set die->type.
8817
8818 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8819
8820         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8821         unused macro definition.  The definition in target.h (or perhaps
8822         elsewhere) takes precedence.
8823
8824 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8825
8826         * ppc-tdep.h: Update copyright.
8827         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8828         function signatures to match "regsets.h".
8829         * ppc-linux-tdep.c: Include "regset.h".
8830         (ELF_GREGSET_SIZE): Delete.
8831         (right_supply_register): New function.
8832         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8833         using right_supply_register.
8834         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8835         functions.
8836         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8837         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8838         (_initialize_ppc_linux_tdep): Do not register
8839         ppc_linux_regset_core_fns.
8840         (ppc_linux_regset_from_core_section): Replace
8841         fetch_core_registers.
8842         (ppc_linux_regset_core_fns): Delete.
8843         * ppc-linux-nat.c: (right_fill_reg): New function.
8844         (supply_gregset): Update call to ppc_linux_supply_gregset.
8845         (fill_gregset): Clear the register set, use right_fill_reg.
8846         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8847         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8848
8849         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8850         unsigned.
8851
8852 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8853
8854         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8855         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8856         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8857         and register_gdbarch_data.
8858         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8859         (struct gdbarch_data): Replace "init" by "pre_init" and
8860         "post_init".
8861         * gdbarch.h, gdbarch.c: Re-generate.
8862         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8863         with"obstack", use OBSTACK_ZALLOC.
8864         (dwarf2_frame_ops): Delete.
8865         (dwarf2_frame_set_init_reg): Use gdbarch_data.
8866         (dwarf2_frame_init_reg): Use gdbarch_data.
8867         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8868         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8869         (_initialize_svr4_solib): Update.
8870         * user-regs.c (_initialize_user_regs): Update.
8871         * reggroups.c (_initialize_reggroup): Update.
8872         * regcache.c (_initialize_regcache): Update.
8873         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8874         * libunwind-frame.c (_initialize_libunwind_frame): Update.
8875         * gnu-v3-abi.c (init_gnuv3_ops): Update.
8876         * frame-unwind.c (_initialize_frame_unwind): Update.
8877         * frame-base.c (_initialize_frame_base): Update.
8878         * user-regs.c (user_reg_add): Update.
8879         * reggroups.c (reggroup_add): Update.
8880         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8881         * libunwind-frame.c (libunwind_frame_set_descr): Update.
8882         * frame-unwind.c (frame_unwind_append_sniffer): Update.
8883         * frame-base.c (frame_base_table): Update.
8884         * remote.c (_initialize_remote): Update.
8885         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8886
8887 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8888
8889         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8890
8891 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8892
8893         * Makefile.in (frv-linux-tdep.o): Add dependencies.
8894         * frv-linux-tdep.c: New file.
8895         * frv-tdep.c (struct gdbarch_tdep): Add new field
8896         ``sigcontext_reg_addr''.
8897         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8898         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8899         (frv_sigramp_frame_sniffer): New functions.
8900         (frv_sigtramp_frame_unwind): New static global.
8901         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
8902         sniffers.
8903         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8904         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8905
8906 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8907
8908         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8909         but not via a call to error(), when unable to read memory.
8910
8911 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
8912
8913         * frv-tdep.c (frv_call_dummy_words): Delete.
8914         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8915
8916 2004-03-15  Andrew Cagney  <cagney@redhat.com>
8917
8918         * infrun.c (handle_step_into_function, step_over_function): Only
8919         update and use STEP_FRAME_ID when the system is using legacy
8920         frames.  Update comments.
8921
8922 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
8923
8924         * amd64-linux-tdep.h: Remove file.
8925         * amd64-linux-tdep.c: Don't include "inferior.h" and
8926         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
8927         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8928         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8929         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8930         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8931         macros.
8932         (user_to_gdb_regmap): Remove variable.
8933         (amd64_linux_gregset_reg_offset): New variable.
8934         (amd64_core_fns): Remove variable.
8935         (fetch_core_registers): Remove function.
8936         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8937         functions.
8938         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8939         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8940         * Makefile.in (amd64_linux_tdep_h): Remove.
8941         (amd64-linux-nat.o): Update dependencies.
8942         (amd64-linux-tdep.o): Update dependencies.
8943
8944         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8945         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8946         functions.
8947         (fetch_inferior_registers, store_inferior_registers): Rewrite.
8948
8949         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8950         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8951
8952 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
8953
8954         * dwarf2read.c (read_structure_type): Rename from
8955         read_structure_scope.  Don't create a symbol or call process_die.
8956         Return immediately if die->type is set.  Call read_type_die before
8957         dwarf2_add_member_fn.
8958         (process_structure_scope): New function.
8959         (read_enumeration_type, process_enumeration_scope): New functions,
8960         broken out from read_enumeration.  Don't create the enumeration
8961         type if it has already been created.
8962         (read_enumeration): Removed.
8963         (process_die): Call read_structure_type, process_structure_scope,
8964         read_enumeration_type, and process_enumeration_scope.  Just call
8965         new_symbol for base and subrange types.  Add a comment about other
8966         type dies.
8967         (read_type_die): Call read_enumeration_type.
8968         (add_partial_structure, new_symbol): Update comments.
8969
8970 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
8971
8972         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8973
8974 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
8975
8976         * tui/tui-win.h (tui_get_cmd_list): Declare.
8977         * tui/tui-win.c (tui_command): New function.
8978         (tui_get_cmd_list): New function.
8979         (_initialize_tui_win): Moved initialization of tui command in
8980         tui_get_cmd_list.
8981
8982         * tui/tui-data.c (init_content_element): Setup new data members.
8983         (init_win_info): Likewise.
8984         (free_content_elements): Free it.
8985         * tui/tui-data.h (struct tui_data_element): Store the register
8986         content to print.
8987         (struct tui_data_info): Keep the current register group.
8988
8989         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8990
8991         * tui/tui-regs.h (tui_show_registers): Update prototype.
8992         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8993         (tui_resize_all): No need to calculate anything for register window.
8994         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8995         (tui_set_register_element, tui_set_general_regs_content): Remove.
8996         (tui_set_special_regs_content): Remove.
8997         (tui_set_general_and_special_regs_content): Remove.
8998         (tui_set_float_regs_content): Remove.
8999         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9000         (tui_set_regs_content): Remove.
9001         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9002         (tui_v_show_registers_command_support): Remove.
9003         (tui_show_registers): Use a reggroup to specify the registers to show.
9004         (tui_show_register_group): New function.
9005         (tui_display_registers_from): Compute the layout of register window
9006         and refresh with new API; be sure to delete old register windows.
9007         (tui_check_register_values): Update to use tui_get_register and
9008         tui_display_data.
9009         (tui_display_register): Just refresh the register window part.
9010         (tui_register_format): Format registers and save in tui_data_element.
9011         (tui_get_register): New to combine tui_reg_value_has_changed and
9012         tui_get_register_raw_value; fix to use the new gdb API.
9013         (tui_show_float_command): Renamed tui_reg_float_command.
9014         (tui_show_general_command): Renamed tui_reg_general_command.
9015         (tui_show_special_command): Renamed tui_reg_system_command.
9016         (_initialize_tui_regs): Remove unused commands.
9017
9018 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
9019
9020         * NEWS (New native configurations): Mention OpenBSD/amd64.
9021
9022         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9023         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9024         Remove defines.
9025         * config/i386/nm-fbsd64.h: Likewise.
9026         * config/i386/nm-obsd.h: Likewise.
9027         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
9028         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
9029
9030 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9031
9032         * frv-tdep.c (set_variant_scratch_registers): New function.
9033         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9034         New constants.
9035
9036         From Richard Sandiford  <rsandifo@redhat.com>:
9037         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9038
9039 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9040
9041         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
9042         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9043         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9044         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9045         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9046         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9047         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9048         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9049         definitions from frv-tdep.c to frv-tdep.h.
9050
9051 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9052
9053         Add shared library support for FR-V FDPIC ABI:
9054         * Makefile.in (solib-frv.o): Add dependencies.
9055         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9056         New functions.
9057         (frv_push_dummy_call): Add support for FDPIC ABI.
9058         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9059         for FDPIC ABI.
9060         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9061         (frv_fdpic_find_canonical_descriptor): Declare.
9062         * solib-frv.c: New file.
9063         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9064         * config/frv/tm-frv.h (solib.h): Include.
9065
9066 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
9067
9068         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9069         (frv-tdep.o): Update dependencies.
9070         * frv-tdep.h: New file.
9071         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9072         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9073         constants.
9074         (struct gdbarch_tdep): Add new member ``frv_abi''.
9075         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9076         functions.
9077         (new_variant): Set ``frv_abi'' field.
9078         (gdb_arch_init): Detect FDPIC executables.
9079
9080 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
9081
9082         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9083         wrapper.
9084
9085 2004-03-11  Andrew Cagney  <cagney@redhat.com>
9086
9087         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9088
9089 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
9090
9091         * solist.h (master_so_list): New function.
9092         * solib.c (master_so_list): Likewise.
9093         * solib-svr4.c (enable_break): Iterate over so_list entries
9094         obtained from master list instead of entries obtained directly
9095         via svr4_current_sos().
9096
9097 2004-03-10  Ben Elliston  <bje@gnu.org>
9098
9099         * MAINTAINERS: Update my mail address.
9100
9101 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
9102
9103         * remote-m32r-sdi.c: Support hardware watchpoint.
9104
9105 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9106
9107         * user-regs.c: Update copyright years.
9108         (struct user_regs): Rename to gdb_user_regs.
9109         (append_user_reg, builtin_user_regs, user_regs_init)
9110         (user_reg_add, user_reg_map_name_to_regnum)
9111         (usernum_to_user_reg): Update.
9112
9113 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9114
9115         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9116         (skip_children): New functions.
9117         (locate_pdi_sibling): Call skip_children.
9118
9119 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9120
9121         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9122         * gdbtypes.c (check_typedef): Update comments.
9123
9124 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9125
9126         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9127         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9128         pointer.  Update comment about comp_unit_head.
9129         (struct abbrev_info): Shorten two int flags.
9130         (dwarf_alloc_abbrev): Take a CU argument.
9131         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9132         each time through the loop.  Update cleanup argument.
9133         (psymtab_to_symtab_1): Update cleanup call.
9134         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9135         abbrev_obstack.
9136         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9137         Just call obstack_free and clear the pointer.
9138
9139 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9140
9141         * infrun.c (handle_inferior_event): Remove short-circuit code for
9142         events in a different thread.
9143
9144 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9145
9146         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9147         print the whole transfer.
9148         (initialize_targets): Update description of "set debug target".
9149
9150 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
9151
9152         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9153
9154 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
9155
9156         * MAINTAINERS (write after approval): Add myself.
9157
9158 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9159
9160         * sh-tdep.c (sh_print_registers_info): Use for loop.
9161         Don't skip multiple registers when a float register is encountered.
9162
9163 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
9164
9165         Fix PR tdep/1291.
9166         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9167         to official SH documentation.
9168
9169 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9170
9171         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9172         unused function.
9173
9174 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
9175
9176         * arm-tdep.c (thumb_get_next_pc): Handle BX.
9177         (arm_get_next_pc): Handle BX and BLX.
9178
9179 2004-03-07  Andrew Cagney  <cagney@redhat.com>
9180
9181         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9182         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9183         HPPA_SP_REGNUM.
9184         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9185         (hppa_target_read_fp): Delete.
9186         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9187         register_virtual_size, max_register_raw_size,
9188         max_register_virtual_size, register_byte, register_size,
9189         target_read_fp, fp_regnum, and register_bytes.  Set register_type
9190         instead of register_virtual_type.
9191         (hppa32_register_type, hppa64_register_type): Replace
9192         hppa32_register_virtual_type and hppa64_register_virtual_type.
9193         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9194         (HPPA_FP_REGNUM): Define.
9195
9196         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9197
9198         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9199         (pa_do_registers_info): Delete.
9200         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9201         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9202         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9203
9204         * infcall.c (legacy_push_dummy_code): Delete #ifdef
9205         GDB_TARGET_IS_HPPA code.
9206         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9207         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9208         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9209         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9210         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9211         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9212         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9213         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9214         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9215         (hppa_frameless_function_invocation, hppa64_store_return_value)
9216         (hppa_store_struct_return, hppa64_extract_return_value)
9217         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9218         (hppa32_call_dummy_length, hppa64_call_dummy_length)
9219         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9220         (find_proc_framesize, deposit_21, restore_pc_queue)
9221         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9222         (rp_saved, pc_in_linker_stub): Delete.
9223
9224         Unconditionally enable 64-bit frame and ABI code.
9225         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9226         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9227         push_dummy_frame, fix_call_dummy, push_arguments,
9228         call_dummy_location, extract_return_value, use_struct_convention,
9229         store_return_value, store_struct_return, saved_pc_after_call,
9230         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9231         frame_chain, frame_chain_valid, frameless_function_invocation,
9232         frame_saved_pc, and pop_frame.
9233
9234         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9235         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9236         (hppa_gdbarch_init): Do not set PC_REGNUM.
9237
9238 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
9239
9240         * config/alpha/tm-fbsd.h: Remove file.
9241         * config/alpha/fbsd.mt: Tweak comment.
9242         (TM_FILE): Set to tm-alpha.h.
9243
9244 2004-03-05  Andrew Cagney  <cagney@redhat.com>
9245
9246         * infrun.c (step_over_function): When non-legacy code, and no
9247         step_frame_id, use the unwinder to get the caller's frame ID.
9248
9249 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9250
9251         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9252         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9253         bfd_arch_unknown.  Adjust comment.
9254
9255         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
9256         * i386obsd-tdep.c: Correct spelling in comment.
9257         * i386nbsd-tdep.c: Correct spelling in comment.
9258         * sparc-tdep.c: Correct spelling in comments.
9259
9260 2004-03-05  David Carlton  <carlton@kealia.com>
9261
9262         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9263         bug.
9264
9265 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
9266
9267         * sparc-tdep.c: Fix typo in comment.
9268
9269 2004-03-04  J. Brobecker  <brobecker@gnat.com>
9270
9271         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9272
9273 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
9274
9275         * dwarf2read.c: Add comment describing memory lifetimes.
9276         (struct dwarf2_pinfo): Update comment.
9277         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9278         (read_enumeration, new_symbol): Don't use obsavestring.
9279
9280 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
9281
9282         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9283         instead of amd64_fill_fxsave.
9284         * amd64bsd-nat.c (store_inferior_registers): Likewise.
9285         * amd64fbsd-nat.c (fill_fpregset): Likewise.
9286
9287         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9288         Reorganize code a bit.
9289
9290 2004-03-04  Orjan Friberg  <orjanf@axis.com>
9291
9292         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9293         when the frame pointer is pushed.  Don't set the frame pointer's
9294         address on the stack unless it's actually located there.
9295         Set the SRP's address on the stack correctly when the PC is still in
9296         the prologue.
9297         (cris_return_value): New function.
9298         (cris_gdbarch_init): Clear deprecated store_return_value,
9299         extract_return_value.
9300
9301 2004-03-02  Jim Blandy  <jimb@redhat.com>
9302
9303         * stabsread.c (reg_value_complaint): The maximum register number
9304         is one less than the number of registers.
9305
9306 2004-03-02  Andrew Cagney  <cagney@redhat.com>
9307
9308         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9309         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
9310         trailing comma and redundant assignment of I386_ST0_REGNUM.
9311         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9312         32-bit segment registers.
9313
9314 2004-03-01  Andrew Cagney  <cagney@redhat.com>
9315
9316         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9317         use frame_relative_level and get_next_frame.
9318
9319 2004-02-29  Andrew Cagney  <cagney@redhat.com>
9320
9321         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9322         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9323         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9324         Delete macro.
9325
9326 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
9327
9328         * inflow.c (terminal_inferior): Don't give up the terminal if we
9329         previously couldn't get the inferior's terminal state.
9330
9331 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
9332
9333         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9334         PC_REGNUM.
9335
9336 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9337
9338         * NEWS: Refer to GDB 6.1.
9339         * README: Refer to GDB 6.1.
9340         * PROBLEMS: Refer to GDB 6.1.
9341
9342 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
9343
9344         * thread-db.c (disable_thread_signals): Remove unused function.
9345
9346 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9347
9348         * amd64-nat.c: Include "gdb_string.h".
9349         (amd64_collect_native_gregset): Zero-extend the 32-bit
9350         general-purpose registers and %eip.
9351
9352         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9353         * amd64-tdep.c (amd64_collect_fxsave): New function.
9354         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9355
9356         * i387-tdep.h: Update copyright year.
9357         (i387_collect_fxsave): New prototype.
9358         * i387-tdep.c: Update copyright year.
9359         (i387_collect_fxsave): New function containing most of the code
9360         from i387_fill_fxsave.
9361         (i387_fill_fxsave): Call i387_collect_fxsave.
9362
9363 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9364
9365         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9366         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
9367
9368 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9369
9370         * amd64-tdep.c (amd64_frame_cache): Fix comment.
9371
9372 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9373
9374         * utils.c: Use "", instead of <>, to include readline.
9375         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9376         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9377         * source.c, solib.c, exec.c, event-top.c: Ditto.
9378         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9379         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9380         * Makefile.in: Update all dependencies.
9381         (readline_tilde_h, readline_history_h): Define.
9382         (readline_headers): Delete.
9383
9384 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9385
9386         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9387         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9388         "config/i386/tm-lx64.h".
9389
9390         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9391         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
9392         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9393
9394 2004-02-28  Andrew Cagney  <cagney@redhat.com>
9395
9396         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9397
9398         * breakpoint.c (_initialize_breakpoint): Use
9399         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
9400         Add help to show command.
9401
9402 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
9403
9404         * i386-nat.c: Reformat to be closer to coding standards.
9405         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9406         `retval'.  Make variables `align' and `size' local to while-loop.
9407         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9408         (_initialize_i386_nat): New prototype.
9409
9410         * tui/tui.c: Include <readline/readline.h> instead of
9411         "readline/readline.h".  Include it after <term.h> and
9412         "gdb_curses.h".
9413
9414 2004-02-27  Andrew Cagney  <cagney@redhat.com>
9415
9416         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9417         the new frame unwind code.
9418         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9419         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9420         PCOQ_HEAD_REGNUM.
9421
9422         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9423         "return_value" and "push_dummy_call".
9424         (hppa32_use_struct_convention): Delete unused function.
9425         (hppa32_store_return_value): Delete unused function.
9426         (hppa32_extract_return_value): Delete unused function.
9427         (hppa32_stack_align): Delete function.
9428
9429 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
9430
9431         * coffread.c (enter_linenos): Don't let rawptr reference memory
9432         outside linetab[]'s limits.
9433
9434 2004-02-27  Andrew Cagney  <cagney@redhat.com>
9435
9436         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9437         inferior stack space - the stack needs to grow upwards.
9438         (hppa32_frame_align): New function.
9439         (hppa64_frame_align): Replace hppa_frame_align.
9440         (hppa_gdbarch_init): Update.
9441
9442 2004-02-26  Orjan Friberg  <orjanf@axis.com>
9443
9444         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9445         (dwarf2-frame.h): Include.
9446         (enum cris_regnums): New enum CRIS_FP_REGNUM.
9447         Remove static variables related to ABI setting.
9448         (struct gdbarch_tdep): Remove cris_abi member.
9449         (struct frame_extra_info): Remove.
9450         (cris_unwind_cache, stack_item): New structs.
9451         (cris_frame_unwind, cris_frame_base): New variables.
9452         (push_stack_item, pop_stack_item)
9453         (cris_frame_unwind_cache, cris_frame_this_id)
9454         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9455         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9456         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9457         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9458         (cris_reg_struct_has_addr): New functions.
9459         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9460         (cris_frame_saved_pc, cris_saved_pc_after_call,
9461         (cris_store_struct_return, cris_frameless_function_invocation)
9462         (cris_pop_frame, cris_skip_prologue_main)
9463         (cris_abi_original_store_return_value)
9464         (cris_abi_v2_store_return_value)
9465         (cris_abi_original_extract_return_value)
9466         (cris_abi_v2_extract_return_value)
9467         (cris_abi_original_reg_struct_has_addr)
9468         (cris_abi_v2_reg_struct_has_addr)
9469         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9470         (cris_push_return_address, cris_abi_update): Remove.
9471         (_initialize_cris_tdep): Remove ABI command.
9472         (cris_dump_tdep): Ditto.
9473         (cris_gdbarch_init): Remove ABI command.
9474         Set store_return_value, extract_return_value, push_dummy_code,
9475         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9476         frame_unwind_append_sniffer, frame_base_set_default.
9477         Clear deprecated init_frame_pc, push_arguments, store_return_value,
9478         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9479         sizeof_call_dummy_words, get_saved_register, push_return_address,
9480         pop_frame, store_struct_return, frame_init_saved_regs,
9481         init_extra_frame_info, frameless_function_invocation, frame_chain,
9482         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9483         dummy_write_sp.
9484
9485 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9486
9487         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9488         * valprint.c (print_hex_chars): Change from static to external.
9489         (print_char_chars): New function.
9490         * printcmd.c (print_scalar_formatted): For integer and enum types
9491         that are longer than LONGEST, perform processing via appropriate
9492         print_*_chars routines.
9493
9494 2004-02-26  Andrew Cagney  <cagney@redhat.com>
9495
9496         * Makefile.in: Update dependencies.
9497         Changes from Ulrich Weigand,
9498         * s390-tdep.c: Include "dwarf2-frame.h".
9499         (s390_dwarf2_frame_init_reg): New function.
9500         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9501         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
9502
9503 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9504
9505         * breakpoint.c (pending_break_support): New setting variable.
9506         (break_command_1): Account for pending_break_support setting
9507         when creating pending breakpoints.
9508         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9509         (_initialize_breakpoint): Add "set breakpoint pending" and
9510         "show breakpoint pending" commands.
9511
9512 2004-02-26  Andrew Cagney  <cagney@redhat.com>
9513
9514         Fix PR i18n/1570.
9515         * charset.c (backslashable, backslashed, represented): Remove 'e'
9516         from list of escaped characters, not part of ISO-C.
9517
9518 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9519
9520         From Peter Schauer <schauer@pdf.de>:
9521         * tui/tui.c: Move system header includes after local includes.
9522         Fixes a build failure on solaris systems.
9523
9524 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9525
9526         * configure.in: Refine the previous change.
9527         * configure: Regenerate.
9528
9529 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
9530
9531         * amd64-tdep.h: Renamed from x86-64-tdep.h.
9532         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
9533         "amd64-tdep.h" instead of "x86-64-tdep.h".
9534         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9535         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9536         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
9537         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9538         and "x86-64-tdep.c".
9539         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
9540         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9541         and "x86-64-tdep.c".
9542         * amd64bsd-nat.c: Update copyright year.
9543         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9544         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9545         "x86-64-tdep.h".
9546         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9547         "x86-64-tdep.h".
9548         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9549         "x86-64-tdep.h".
9550         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9551         "x86-64-tdep.h".
9552         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9553         "x86-64-tdep.h".
9554         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9555         "x86-64-tdep.h".
9556         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9557         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9558         * Makefile.in (amd64_linux_tdep_h): Renamed from
9559         x86_64_linux_tdep_h.
9560         (amd64_tdep_h): Renamed from x86_64_tdep_h.
9561         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9562         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9563         (amd64obsd-tdep.o): Update dependencies.
9564         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9565         dependencies.
9566         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9567         dependencies.
9568         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9569         amd64-linux-nat.c amd64-linux-tdep.c.
9570         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9571         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9572         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9573         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9574         amd64-tdep.o and amd64-linux-tdep.o.
9575         (TM_FILE): Set to tm-linux64.h.
9576         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9577         (NAT_FILE): Set to nm-linux64.h.
9578         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9579         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9580         amd64-tdep.o.
9581         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9582         amd64-tdep.o.
9583         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9584         amd64-tdep.o.
9585
9586 2004-02-25  Roland McGrath  <roland@redhat.com>
9587
9588         * remote.c (remote_protocol_qPart_auxv): New variable.
9589         (init_all_packet_configs): Initialize it.
9590         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9591         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9592         (show_remote_cmd): Call it.
9593         (_initialize_remote): Initialize commands.
9594         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9595         service TARGET_OBJECT_AUXV requests.
9596
9597 2004-02-25  J. Brobecker  <brobecker@gnat.com>
9598
9599         * configure.in: Make sure that the wborder function is available.
9600         Otherwise, search for it in the cur_colr library.
9601         * configure: Regenerate.
9602
9603 2004-02-25  Andrew Cagney  <cagney@redhat.com>
9604
9605         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9606
9607 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
9608
9609         * config/i386/tm-x86-64linux.h: Tweak comments.
9610
9611 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
9612
9613         * MAINTAINERS: Add self to write-after-approval list.
9614
9615 2004-02-25  Andrew Cagney  <cagney@redhat.com>
9616
9617         PR cli/1566.  Problem found, and fix suggested by David Allan.
9618         * cli/cli-script.c (execute_control_command): Unconditionally
9619         install a cleanup.  Default "ret" to "invalid_control".  Use
9620         "break" instead of "return" to escape from the switch.
9621
9622 2004-02-24  J. Brobecker  <brobecker@gnat.com>
9623
9624         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9625         with the lines macro defined in term.h on AiX.
9626         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9627         a collision with the label_width macro defined in term.h on AiX.
9628
9629 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
9630
9631         Committed by Kevin Buettner <kevinb@redhat.com>.
9632
9633         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9634         * ia64-tdep.c (ia64_write_pc): Make it a global function.
9635         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9636         instead of ia64_write_pc().
9637         * ia64-linux-tdep.c (regcache.h): Include.
9638         (ia64_linux_write_pc): New function.
9639
9640 2004-02-23  Roland McGrath  <roland@redhat.com>
9641
9642         * auxv.c (info_auxv_command): Fix typos in error messages.
9643
9644 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
9645
9646         * x86-64-tdep.h: Tweak comment.
9647         (enum amd64_regnum): New.
9648         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9649         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9650         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9651         (X86_64_XMM1_REGNUM): Removed.
9652         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9653         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9654         prototypes for renamed functions.
9655         * x86-64-tdep.c: Fix typo.
9656         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9657         register numbers.
9658         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9659         Use constants from `enum amd64_regnum' for register numbers.
9660         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9661         (amd64_analyze_prologue, amd64_frame_cache,
9662         amd64_sigtramp_frame_cache): Use constants from `enum
9663         amd64_regnum' for register numbers.
9664         (amd64_supply_fpregset): Adjust for renamed functions.
9665         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
9666         `enum amd64_regnum' for register numbers.
9667         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9668         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9669         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9670         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9671         (amd64_linux_fill_gregset): Adjust for renamed macros.
9672         (fetch_core_registers): Adjust for renamed functions.
9673         (amd64_linux_init_abi): Adjust for renamed functions.
9674         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9675         renamed functions.
9676         * amd64-nat.c: Adjust for renamed macros.
9677         * amd64bsd-nat.c (fetch_inferior_registers)
9678         (store_inferior_registers): Use constants from `enum amd64_regnum'
9679         for register numbers.  Adjust for renamed variables.
9680         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9681         renamed variables.
9682         (_initialize_amd64fbsd_nat): Use constants from `enum
9683         amd64_regnum' for register numbers.
9684         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9685         `enum amd64_regnum' for register numbers.
9686         (amd64fbsd_init_abi): Adjust for renamed functions.
9687         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9688         `enum amd64_regnum' for register numbers.
9689         (amd64nbsd_init_abi): Adjust for renamed functions.
9690         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9691         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9692         `enum amd64_regnum' for register numbers.
9693         (amd64obsd_init_abi): Adjust for renamed functions.
9694         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9695
9696 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9697
9698         * breakpoint.c (print_one_breakpoint): Do not output spaces
9699         after printing <PENDING> for a pending breakpoint.
9700
9701 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9702
9703         * printcmd.c (print_scalar_formatted): Initialize val_long
9704         to remove compiler warning message.
9705
9706 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
9707
9708         * defs.h (nquery, yquery): New prototypes.
9709         * breakpoint.c (break_command_1): Use new nquery interface.
9710         * utils.c (defaulted_query, nquery, yquery): New functions.
9711
9712 2004-02-23  Andrew Cagney  <cagney@redhat.com>
9713
9714         * hppa-tdep.c (hppa_frame_align): New function.
9715         (hppa32_push_dummy_call): New function.
9716         (hppa64_push_dummy_call): New function.
9717         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9718         disabled.
9719
9720         * infcall.c (legacy_push_dummy_code): Don't call deprecated
9721         FIX_CALL_DUMMY when push_dummy_call is available.
9722         (call_function_by_hand, push_dummy_code): Ditto.
9723
9724 2004-02-22  Andrew Cagney  <cagney@redhat.com>
9725
9726         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9727         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9728         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9729         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9730         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9731         call_dummy_location to ON_STACK.
9732
9733 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
9734
9735         * x86-64-linux-tdep.c: Tweak comment.
9736         (amd64_linux_supply_gregset): Renamed from
9737         x86_64_linux_supply_gresget.
9738         (amd64_linux_fill_gregset): Renamed from
9739         x86_64_linux_fill_gregset.
9740         (fetch_core_registers): Adjust for renamed functions.
9741         (amd64_core_fns): Renamed from x86_64_core_fns.
9742         (amd64_linux_sigtramp_start): Renamed from
9743         x86_64_linux_sigtramp_start.
9744         (amd64_linux_pc_in_sigtramp): Renamed from
9745         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
9746         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9747         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9748         (amd64_linux_sigcontext_addr): Renamed from
9749         x86_64_linux_sigcontext_addr.
9750         (amd64_linux_sc_reg_offset): Renamed from
9751         x86_64_linux_sc_reg_offset.
9752         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9753         Adjust for renamed functions and variables.
9754         (_initialize_amd64_linux_tdep): Renamed from
9755         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
9756         variables.
9757         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
9758         Adjust for renamed functions.
9759
9760         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9761         from x86_64_linux_gregset64_reg_offset.
9762         (amd64_linux_gregset32_reg_offset): Rename from
9763         x86_64_linux_gregset64_reg_offset.
9764         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9765         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9766         (amd64_linux_dr_set_control): Renamed from
9767         x86_64_linux_dr_set_control.  Adjust for renamed functions.
9768         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9769         Adjust for renamed functions.
9770         (amd64_linux_dr_reset_addr): Renamed from
9771         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9772         (amd64_linux_dr_get_status): Renamed from
9773         x86_64_linux_dr_get_status.  Adjust for renamed functions.
9774         (_initialize_amd64_linux_nat): Renamed from
9775         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
9776         functions.
9777         * config/i386/nm-x86-64linux.h: Update copyright year.
9778         Adjust for renamed functions.
9779
9780         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9781         amd64fbsd_sigtramp_start.
9782         (amd64fbsd_sigtramp_end_addr): Renamed from
9783         amd64fbsd_sigtramp_end.
9784         (amd64fbsd_init_abi): Adjust for renamed variables.
9785         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9786         variables.
9787         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9788         amd64fbsd_sigtramp_start.
9789         (amd64fbsd_sigtramp_end_addr): Renamed from
9790         amd64fbsd_sigtramp_end.
9791
9792 2004-02-22  Andrew Cagney  <cagney@redhat.com>
9793
9794         * hppa-tdep.c (hppa32_return_value): New function.
9795         (hppa64_return_value): New function.
9796         (hppa_gdbarch_init): Set return_value; keep disabled.
9797
9798         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9799         struct-return and inferior function call methods.
9800
9801         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9802         "frame-base.h".
9803         (struct hppa_frame_cache): Define.
9804         (hppa_frame_cache, hppa_frame_this_id): New functions.
9805         (hppa_frame_prev_register): New function.
9806         (hppa_frame_unwind, hppa_frame_base): New variables.
9807         (hppa_frame_unwind_sniffer): New function.
9808         (hppa_frame_base_address, hppa_unwind_pc): New function.
9809         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9810         sniffer, and frame base sniffer; keep disabled.
9811         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9812         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9813
9814         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9815         to predicates for "seriously old code".
9816
9817         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9818         runtime if(0).
9819
9820         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9821         unsigned.
9822         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9823
9824         * config/pa/tm-hppa.h: Update copyright.
9825         (DEPRECATED_INIT_FRAME_PC): Delete macro.
9826         (deprecated_init_frame_pc_default): Delete declaration.
9827         (hppa_frame_init_saved_regs): Delete declaration.
9828         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9829         * hppa-tdep.c: Include "arch-utils.h".
9830         (hppa_gdbarch_init): Set deprecated init_frame_pc
9831         and deprecated frame_init_saved_regs.
9832         (hppa_frame_init_saved_regs): Make static.
9833
9834 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
9835
9836         Remove old 386BSD support.
9837         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9838         * configure.host: Remove i[34567]86-*-bsd*.
9839         * configure.tgt: Remove i[34567]86-*-bsd*.
9840         * i386b-nat.c: Removed.
9841         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9842         (i386b-nat.o): Remove dependencies.
9843
9844         * config/i386/i386bsd.mh: Removed.
9845         * config/i386/i386bsd.mt: Removed.
9846         * config/i386/nm-i386bsd.h: Removed.
9847         * config/i386/tm-i386bsd.h: Removed.
9848         * config/i386/xm-i386bsd.h: Removed.
9849
9850         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9851
9852         * amd64fbsd-tdep.c: Include "solib-svr4.h".
9853         (amd64fbsd_init_abi): Set link map offsets.
9854         * amd64nbsd-tdep.c: Include "slib-svr4.h".
9855         (amd64nbsd_init_abi): Set link map offsets.
9856         * amd64obsd-tdep.c: Include "solib-svr4.h".
9857         (amd64obsd_init_abi): Set link map offsets.
9858         * i386fbsd-tdep.c: Include "solib-svr4.h".
9859         (i386fbsd_init_abi): Set link map offsets.
9860         * i386nbsd-tdep.c: Include "solib-svr4.h".
9861         (i386nbsdelf_init_abi): Set link map offsets.
9862         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9863         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9864         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9865         solib-legacy.o and core-aout.o. Reformat.
9866         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9867         solib-svr4.o, solib-legacy.o.  Reformat.
9868         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
9869         * config/i386/nbsdelf.mh: Reformat.
9870         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9871         solib-svr4.o, solib-legacy.o and corelow.o.
9872         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9873         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9874         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
9875         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9876         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9877         (TM_FILE): Set to tm-fbsd.h.
9878         * config/i386/nbsd.mt (TDEPFILES): Reformat.
9879         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9880         solib-svr4.o.
9881         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9882         solib-svr4.o.
9883         (TM_FILE): Set to nm-nbsd.h.
9884         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
9885         Simplify shared library support.  Don't include "elf/common.h".
9886         (SVR4_SHARED_LIBS): Don't define.
9887         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
9888         "solib.h".
9889         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9890         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
9891         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
9892         Don't include "i386/tm-i386.h".  Include "solib.h".
9893         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
9894         Don't include "i386/tm-i386.h".
9895         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
9896         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
9897         Include "i386/xm-i386.h".
9898         (HOST_LONG_DOUBLE_FORMAT): Remove.
9899
9900         Fix OpenBSD/i386 sigtramp recognition.
9901         * i386-tdep.h: Update copyright year.
9902         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9903         (i386bsd_sigtramp_end): New prototypes.
9904         (i386fbsd_sigtramp_start_addr): Renamed from
9905         i386fbsd_sigtramp_start.
9906         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9907         (i386obsd_sigtramp_start_addr): Renamed from
9908         i386obsd_sigtramp_start.
9909         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9910         * i386bsd-tdep.c: Update copyright year.
9911         (i386bsd_pc_in_sigtramp): Make public.
9912         * i386fbsd-nat.c: Update copyright year.
9913         (_initialize_i386fbsd_nat): Adjust for renamed variables.
9914         * i386fbsd-tdep.c: Update copyright year.
9915         (i386fbsd_sigtramp_start_addr): Renamed from
9916         i386fbsd_sigtramp_start.
9917         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9918         (i386fbsdaout_init_abi): Adjust for renamed variables.
9919         * i386obsd-nat.c: Update copyright year.
9920         (_initialize_i386obsd_nat): Adjust for renamed variables.
9921         * i386obsd-tdep.c: Include "target.h".
9922         (i386obsd_page_size): New variable.
9923         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9924         (i386obsd_sigtramp_end): New functions.
9925         (i386obsd_sigtramp_start_addr): Renamed from
9926         i386obsd_sigtramp_start.
9927         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9928         (i386obsd_init_abi): Adjust for renamed variables.  Set
9929         pc_in_sigtramp, sigtramp_start and sigtramp_end.
9930         * Makefile.in (i386obsd-tdep.o): Update dependencies.
9931
9932         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9933         trampoline change in OpenBSD kernel.
9934
9935         * amd64-nat.c: Update copyright year.
9936         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9937         architecture from REGCACHE.
9938
9939         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9940         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9941
9942 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
9943
9944         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9945         i[34567]86-*-openbsd3.[0-3].
9946         * config/i386/obsdaout.mh: New file.
9947
9948         * config/i386/obsd.mh (MH_FLAGS): Remove.
9949
9950         Fix PR build/1549.
9951         * i386obsd-tdep.c: Update copyright years.  Include
9952         "solib-svr4.h".
9953         (i386obsd_init_abi): Don't set regset_from_core_section here.
9954         (i386obsd_aout_init_abi): New function.  Set
9955         regset_from_core_section here.
9956         (i386obsd_elf_init_abi): New function.
9957         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9958         * Makefile.in (i386obsd-tdep.o): Update dependecies.
9959         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9960         (TM_FILE): Set to tm-nbsd.h.
9961
9962         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9963         solib-sunos.o.
9964
9965         * solib-svr4.h: Update copyright year.
9966         (svr4_ilp32_fetch_link_map_offsets)
9967         (svr4_lp64_fetch_link_map_offsets): New prototype.
9968         * solib-svr4.c: Update copyright year.
9969         (svr4_ilp32_fetch_link_map_offsets)
9970         (svr4_lp64_fetch_link_map_offsets): New function.
9971
9972 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
9973
9974         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9975         to the partial symbol table.
9976
9977 2004-02-20  J. brobecker  <brobecker@gnat.com>
9978
9979         * PROBLEMS: Add description of problem documented under gdb/1560.
9980
9981 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
9982
9983         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
9984         comments.
9985         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9986         functions.
9987         (amd64obsd_init_abi): Reorder initializations.  Use
9988         amd64obsd_r_reg_offset to initialize the general-purpose register
9989         set details.  Set regset_from_core_section.
9990         (_initialize_amd64obsd_tdep): Rename from
9991         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
9992         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9993         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9994
9995         * NEWS (New native configurations): Mention OpenBSD/alpha.
9996         * configure.tgt: Add alpha*-*-openbsd*.
9997         * configure.host: Add alpha*-*-openbsd*.
9998         * alphanbsd-tdep.c: Update copyright year.
9999         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10000
10001 2004-02-20  Andrew Cagney  <cagney@redhat.com>
10002
10003         Fix PR tdep/1372.
10004         * configure.tgt: Delete target "none-*-*".
10005         * configure.host: Delete host "none-*-*".
10006         * config/none/none.mh: Delete file.
10007         * config/none/none.mt: Delete file.
10008         * config/none/xm-none.h: Delete file.
10009         * config/none/tm-none.h: Delete file.
10010         * config/none/nm-none.h: Delete file.
10011
10012 2004-02-19  Fred Fish  <fnf@redhat.com>
10013
10014         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10015         cache->uses_fp prior to setting it.
10016
10017 2004-02-19  Fred Fish  <fnf@redhat.com>
10018
10019         Fix for PR breakpoint/1558.
10020         * sh-tdep.c (IS_JSR): New macro.
10021         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10022
10023 2004-02-19  Jim Blandy  <jimb@redhat.com>
10024
10025         * findvar.c (value_from_register): Doc fix.
10026
10027 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
10028
10029         * printcmd.c (print_scalar_formatted): Do not check for sizeof
10030         type being greater than sizeof of host's LONGEST.  Always use
10031         unpack_long() unless format 'f' chosen.
10032
10033 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
10034
10035         Committed by Elena Zannoni  <ezannoni@redhat.com>
10036
10037         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10038         contains a symbol wich is the best, non-exact match for the given
10039         pc.  Update comments.
10040
10041 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
10042
10043         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10044         macro, which was part of the now removed Mach 3 port.
10045         * utils.c (request_quit): Ditto.
10046
10047 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10048
10049         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10050         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10051
10052 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10053
10054         Committed by Mark Kettenis  <kettenis@gnu.org>.
10055
10056         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10057         Define.
10058
10059 2004-02-18  Andrew Cagney  <cagney@redhat.com>
10060
10061         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10062         CONFIG_INSTALL and CONFIG_UNINSTALL.
10063         * configure: Re-generate.
10064         * interps.h (INTERP_TUI): Define.
10065         * Makefile.in: Update dependencies.
10066         (TUI): New macro.
10067         (tui-main.o): Specify dependencies.
10068         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10069         * tui/tui-main.c: New file.
10070
10071 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
10072
10073         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10074         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10075         dependencies.
10076         * configure.host: Add x86_64-*-openbsd*.
10077         * configure.tgt: Add x86_64-*-openbsd*.
10078         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10079
10080         * tui/tui.c: Don't include <malloc.h>.
10081
10082         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10083         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10084         amd64nbsd-tdep.c.
10085
10086         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10087         static.  Remove extraneous whitespace.
10088         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10089         static.
10090
10091 2004-02-17  Jim Blandy  <jimb@redhat.com>
10092
10093         * findvar.c (value_from_register): Doc fix.
10094
10095 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10096
10097         Committed by Jim Blandy  <jimb@redhat.com>.
10098
10099         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10100         CORE_ADDR as type for selectors.  Correct types for GNU run time
10101         message lookup function to use double indirection.
10102         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10103         * objc-lang.h (lookup_child_selector): Adapt prototype.
10104
10105         * s390-nat.c (SUBOFF): New macro.
10106         (supply_gregset, fill_gregset): Use it to handle debugging
10107         of 32-bit exectuables running under a 64-bit kernel.
10108         * s390-tdep.c: Include "solib-svr4.h".
10109         (s390_svr4_fetch_link_map_offset): New function.
10110         (s390x_svr_fetch_link_map_offset): Likewise.
10111         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10112         * Makefile.in (s390-tdep.o): Update dependencies.
10113
10114         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10115         "frame-unwind.h".
10116         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
10117         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10118         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10119         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10120         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10121         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10122         S390_SIGNAL_FRAMESIZE,
10123         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10124         (struct frame_extra_info): Remove.
10125         (s390_memset_extra_info): Remove.
10126         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10127         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10128         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10129         (is_rse): Renamed to ...
10130         (is_rsy): ... this.  Support long displacements.
10131         (is_rxe): Renamed to ...
10132         (is_rxy): ... this.  Support long displacements.
10133         (compute_x_addr): Support long displacements.
10134         (struct s390_prologue_data): New data type.
10135         (s390_on_stack): Change API to use struct s390_prologue_data.
10136         (s390_store): Reimplement.
10137         (s390_load): New function.
10138         (s390_get_signal_frame_info): Remove.
10139         (s390_get_frame_info): Remove, replace by ...
10140         (s390_analyze_prolog): ... this new function.
10141         (s390_check_function_end): Remove.
10142         (s390_function_start): Remove.
10143         (s390_frameless_function_invokation): Remove.
10144         (s390_is_sigreturn): Remove.
10145         (s390_init_frame_pc_first): Remove.
10146         (s390_init_frame_extra_info): Remove.
10147         (s390_frame_init_saved_regs): Remove.
10148         (s390_frame_saved_pc_nofix): Remove.
10149         (s390_frame_saved_pc): Remove.
10150         (s390_frame_chain): Remove.
10151         (s390_fp_regnum, s390_read_fp): Remove.
10152         (s390_pop_frame_regular, s390_pop_frame): Remove.
10153         (s390_saved_pc_after_call): Remove.
10154         (s390_skip_prologue): Reimplement.
10155         (s390_in_function_epilogue_p): Support long displacements.
10156         (struct s390_unwind_cache): New data structure.
10157         (s390_frame_unwind_cache): New function.
10158         (s390_prologue_frame_unwind_cache): Likewise.
10159         (s390_backchain_frame_unwind_cache): Likewise.
10160         (s390_frame_this_id, s390_frame_prev_register): Likewise.
10161         (s390_frame_unwind): Define.
10162         (s390_frame_sniffer): New function.
10163         (struct s390_pltstub_unwind_cache): New data structure.
10164         (s390_pltstub_frame_unwind_cache): New function.
10165         (s390_pltstub_frame_this_id): Likewise.
10166         (s390_pltstub_frame_prev_register): Likewise.
10167         (s390_pltstub_frame_unwind): Define.
10168         (s390_pltstub_frame_sniffer): New function.
10169         (struct s390_sigtramp_unwind_cache): New data structure.
10170         (s390_sigtramp_frame_unwind_cache): New function.
10171         (s390_sigtramp_frame_this_id): Likewise.
10172         (s390_sigtramp_frame_prev_register): Likewise.
10173         (s390_sigtramp_frame_unwind): Define.
10174         (s390_sigtramp_frame_sniffer): New function.
10175         (s390_frame_base_address, s390_local_base_address): New functions.
10176         (s390_frame_base): Define.
10177         (s390_unwind_pc, s390_unwind_sp): New function.
10178         (s390_push_dummy_call): Use new frame base location.
10179         (s390_unwind_dummy_id): Likewise.
10180         (s390_gdbarch_init): Remove calls to:
10181         set_gdbarch_frameless_function_invocation,
10182         set_gdbarch_deprecated_init_frame_pc,
10183         set_gdbarch_deprecated_frame_chain,
10184         set_gdbarch_deprecated_frame_init_saved_regs,
10185         set_gdbarch_deprecated_pop_frame,
10186         set_gdbarch_deprecated_init_extra_frame_info,
10187         set_gdbarch_deprecated_init_frame_pc_first,
10188         set_gdbarch_deprecated_target_read_fp,
10189         set_gdbarch_deprecated_frame_saved_pc,
10190         set_gdbarch_deprecated_saved_pc_after_call,
10191         set_gdbarch_deprecated_fp_regnum.
10192         Add calls to:
10193         set_gdbarch_in_solib_call_trampoline,
10194         frame_unwind_append_sniffer,
10195         frame_base_set_default,
10196         set_gdbarch_unwind_pc,
10197         set_gdbarch_unwind_sp.
10198         * Makefile.in (s390-tdep.o): Update dependencies.
10199
10200         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10201         (S390_STACK_FRAME_OVERHEAD): Remove.
10202         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10203         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10204         (s390_promote_integer_argument): Remove.
10205         (s390_cannot_extract_struct_value_address): Remove.
10206         (s390_use_struct_convention, s390_store_struct_return): Remove.
10207         (s390_extract_return_value, s390_store_return_value): Remove.
10208         (s390_return_value_convention, s390_return_value): New functions.
10209         (is_float_singleton): Handle typedefs.
10210         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10211         Remove, replace by ...
10212         (s390_function_arg_pass_by_reference, s390_function_arg_float,
10213         s390_function_arg_integer): ... these new functions.
10214         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10215         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10216         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10217         Fill in tdep->abi.
10218         Remove calls to:
10219         set_gdbarch_deprecated_store_struct_return,
10220         set_gdbarch_deprecated_extract_return_value,
10221         set_gdbarch_deprecated_store_return_value,
10222         set_gdbarch_use_struct_convention,
10223         set_gdbarch_extract_struct_value_address,
10224         set_gdbarch_deprecated_pc_in_call_dummy,
10225         set_gdbarch_deprecated_push_arguments,
10226         set_gdbarch_deprecated_save_dummy_frame_tos,
10227         set_gdbarch_deprecated_push_return_address,
10228         set_gdbarch_deprecated_sizeof_call_dummy_words,
10229         set_gdbarch_deprecated_call_dummy_words,
10230         set_gdbarch_deprecated_dummy_write_sp.
10231         Add calls to:
10232         set_gdbarch_push_dummy_call,
10233         set_gdbarch_unwind_dummy_id,
10234         set_gdbarch_return_value.
10235
10236         * config/s390/nm-linux.h: Update comments.
10237         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10238         (STOPPED_BY_WATCHPOINT): Redefine.
10239         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10240         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10241         (s390_stopped_by_watchpoint): Likewise.
10242         (watch_area_cnt): Remove.
10243         * s390-nat.c: Update comments.
10244         (watch_area): Remove typedef.
10245         Global replace watch_area by struct watch_area.
10246         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10247         (s390_stopped_by_watchpoint): Remove pid argument,
10248         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
10249         (s390_fix_watch_points): Remove pid argument,
10250         use s390_inferior_tid.  Recompute area spanned by watchpoints.
10251         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10252         argument.  Reimplement.
10253
10254         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
10255         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10256         (FETCH_INFERIOR_REGISTERS): Define.
10257         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10258         core-regset.o.
10259         * config/s390/s390x.mt: Remove.
10260         * config/s390/tm-s390.h: Remove.
10261         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10262         (TARGET_ELF64): Remove.
10263         (SKIP_TRAMPOLINE_CODE): Do not undefine.
10264         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10265         s390*-*-* case; always set gdb_target to s390.
10266         * regformats/reg-s390.dat: Remove control registers.
10267         * regformats/reg-s390x.dat: Likewise.
10268         * s390-tdep.h: New file.
10269         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10270         Include "inferior.h" and "s390-tdep.h".
10271         Remove private definition of offsetof.
10272         (s390_register_u_addr): Remove.
10273         (regmap_gregset, regmap_fpregset): Define.
10274         (supply_gregset, fill_gregset): Reimplement.
10275         (supply_fpregset, fill_fpregset): Likewise.
10276         (s390_inferior_tid): New function.
10277         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10278         (fetch_inferior_registers, store_inferior_registers): Likewise.
10279         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
10280         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
10281         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10282         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10283         (struct gdbarch_tdep): Define.
10284         (struct s390_register_info): Define.
10285         (s390_register_info): New variable.
10286         (s390_register_name): Reimplement.
10287         (s390_register_type): New function.
10288         (s390_register_raw_size, s390x_register_raw_size): Remove.
10289         (s390_cannot_fetch_register): Remove.
10290         (s390_register_byte): Remove.
10291         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10292         (s390_dwarf_regmap): New variable.
10293         (s390_dwarf_reg_to_regnum): New function.
10294         (s390_stab_reg_to_regnum): Remove.
10295         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10296         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10297         (s390_convert_register_p): Likewise.
10298         (s390_register_to_value, s390_value_to_register): Likewise.
10299         (s390_register_reggroup_p): Likewise.
10300         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10301         s390_gregset, s390x_gregset, s390_fpregset): New variables.
10302         (s390_supply_regset, s390_regset_from_core_section): New functions.
10303         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10304         (S390_FPR_SIZE): Likewise.
10305         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
10306         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10307         (S390_NUM_GPRS): Move here from tm-s390.h.
10308         (S390_NUM_FPRS): Likewise.
10309         (s390_in_function_epilogue_p): New function.
10310         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10311         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10312         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10313         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10314         Replace S390_FP_REGNUM by S390_SP_REGNUM.
10315         Remove calls to:
10316         set_gdbarch_deprecated_max_register_raw_size,
10317         set_gdbarch_deprecated_max_register_virtual_size,
10318         set_gdbarch_deprecated_register_byte,
10319         set_gdbarch_cannot_fetch_register,
10320         set_gdbarch_cannot_store_register,
10321         set_gdbarch_deprecated_register_size,
10322         set_gdbarch_deprecated_register_raw_size,
10323         set_gdbarch_deprecated_register_virtual_size,
10324         set_gdbarch_deprecated_register_virtual_type,
10325         set_gdbarch_deprecated_register_bytes.
10326         Add calls to:
10327         set_gdbarch_num_pseudo_regs,
10328         set_gdbarch_register_type,
10329         set_gdbarch_convert_register_p,
10330         set_gdbarch_register_to_value,
10331         set_gdbarch_value_to_register,
10332         set_gdbarch_register_reggroup_p,
10333         set_gdbarch_regset_from_core_section,
10334         set_gdbarch_pseudo_register_read,
10335         set_gdbarch_pseudo_register_write,
10336         set_gdbarch_in_function_epilogue_p.
10337         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10338         (s390_tdep_h): New variable.
10339
10340 2004-02-17  Jim Blandy  <jimb@redhat.com>
10341
10342         * findvar.c (value_from_register): If the type has no length, just
10343         return an acceptable value --- don't report an internal error.
10344
10345         * stabsread.c (read_type): If we find any type numbers that are
10346         forward references, complain if the references aren't resolved by
10347         the time we're finished reading.
10348         (cleanup_undefined_types): Make error message more appropriate for
10349         a complaint.
10350
10351 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
10352
10353         * Makefile.in (defs_h): Remove dependency on progress_h.
10354         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10355         progress.h.
10356         * main.c (captured_main): Delete use of START_PROGRESS and
10357         END_PROGRESS.
10358
10359 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
10360
10361         * objfiles.c (terminate_minimal_symbol_table): Add back
10362         initialization of MSYMBOL_TYPE.
10363
10364 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
10365
10366         Committed by Andrew Cagney.
10367         * Makefile.in (ia64_tdep_h): New macro.
10368         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10369         (ia64-tdep.o): Likewise.
10370         * ia64-tdep.h: New file.
10371         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
10372         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10373         (ia64_aix_sigcontext_register_address): Likewise.
10374         (ia64_linux_getunwind_table): Delete declaration.
10375         * ia64-linux-tdep.c: Likewise.
10376
10377 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
10378
10379         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10380         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10381         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10382
10383 2004-02-17  Andrew Cagney  <cagney@redhat.com>
10384
10385         * symtab.c (skip_prologue_using_sal): New function.
10386         * symtab.h (skip_prologue_using_sal): Declare.
10387         * frv-tdep.c: Include "symtab.h".
10388         (skip_prologue_using_sal): Delete function.
10389         * mips-tdep.c (skip_prologue_using_sal): Delete function.
10390         * rs6000-tdep.c (refine_prologue_limit): Mention
10391         skip_prologue_using_sal.
10392         * ia64-tdep.c (refine_prologue_limit): Ditto.
10393         * Makefile.in: Update dependencies.
10394
10395 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10396
10397         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10398         START_INFERIOR_TRAPS_EXPECTED.
10399         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10400         START_INFERIOR_TRAPS_EXPECTED.
10401         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10402         Delete macro.
10403         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10404         macro, moved to "nm-osf.h".  Update copyright.
10405         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10406         update copyright.
10407
10408         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10409         and function replacing FRAMELESS_FUNCTION_INVOCATION.
10410         * blockframe.c (legacy_frameless_look_for_prologue): Rename
10411         frameless_look_for_prologue.
10412         * frame.h (legacy_frameless_look_for_prologue): Rename
10413         frameless_look_for_prologue.
10414         * gdbarch.h, gdbarch.c: Re-generate.
10415         * sh64-tdep.c (sh64_gdbarch_init): Update.
10416         * sh-tdep.c (sh_gdbarch_init): Update.
10417         * s390-tdep.c (s390_gdbarch_init): Update.
10418         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10419         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10420         * m68k-tdep.c (m68k_gdbarch_init): Update.
10421         (delta68_frame_args_address): Update.
10422         * m32r-tdep.c (m32r_gdbarch_init): Update.
10423         * hppa-tdep.c (hppa_gdbarch_init): Update.
10424         * h8300-tdep.c (h8300_gdbarch_init): Update.
10425         * frv-tdep.c (frv_gdbarch_init): Update.
10426         (frv_frameless_function_invocation): Update.
10427         * cris-tdep.c (cris_gdbarch_init): Update.
10428         (cris_frameless_function_invocation): Update.
10429         * avr-tdep.c (avr_gdbarch_init): Update.
10430         * arm-tdep.c (arm_gdbarch_init): Update.
10431         * stack.c (frame_info): Update, call predicate.
10432         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10433         * frame.c (legacy_get_prev_frame): Update, call predicate..
10434         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10435         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10436         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10437         invocation.
10438         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10439         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10440         * vax-tdep.c (vax_gdbarch_init): Ditto.
10441
10442         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10443         function.
10444
10445 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
10446
10447         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10448         initializations.
10449
10450 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10451
10452         * tui/tui-windata.c: Include "gdb_string.h".
10453         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10454         * tui/tui-layout.c, tui/tui-command.c: Ditto.
10455         * Makefile.in: Update dependencies.
10456
10457 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
10458
10459         * Makefile.in (infrun.o): Add $(gdb_assert_h).
10460         * infrun.c: Include "gdb_assert.h".
10461         (singlestep_ptid, saved_singlestep_ptid)
10462         (stepping_past_singlestep_breakpoint): New variables.
10463         (resume): Set singlestep_ptid.  Check for singlestep thread
10464         hop.
10465         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10466         (handle_inferior_event): Handle singlestep thread hop.
10467
10468 2004-02-16  Andrew Cagney  <cagney@redhat.com>
10469
10470         * dwarf2-frame.c (dwarf2_frame_ops): New function.
10471         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10472         (dwarf2_frame_init_reg): Ditto.
10473
10474         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
10475         suggested by Joshua Neuheisel
10476
10477         * configure.in: Always check for curses, including pdcurses.
10478         Warn, instead of error, when no curses are found.  Enable TUI when
10479         curses is available.
10480         * configure: Re-generate.
10481
10482 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
10483
10484         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10485         sh_sh4_register_convert_to_virtual.
10486         (sh_register_convert_to_raw): Rename from
10487         sh_sh4_register_convert_to_raw.
10488         (sh_pseudo_register_read): Accomodate above name change.
10489         (sh_pseudo_register_write): Ditto.
10490
10491 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
10492
10493         * sh-tdep.c (sh_generic_register_name): Remove.
10494         (sh_gdbarch_init): Use sh_sh_register_name in default case.
10495
10496 2004-02-15  Andrew Cagney  <cagney@redhat.com>
10497
10498         * configure.in (build_warnings): Add -Wunused-function.
10499         * configure: Re-generate.
10500
10501         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10502         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10503
10504         * procfs.c (procfs_init_inferior): Assume that
10505         START_INFERIOR_TRAPS_EXPECTED is defined.
10506         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10507         * config/ns32k/tm-nbsd.h: Delete file,
10508         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10509
10510         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10511         * config/vax/tm-vax.h: Delete file.
10512
10513         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10514         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10515         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10516         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10517         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10518         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10519         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10520
10521 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
10522
10523         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10524         * dwarf2-frame.c (dwarf2_frame_data): New variable.
10525         (struct dwarf2_frame_ops): New.
10526         (dwarf2_frame_default_init_reg): New function, based on
10527         dwarf2_frame_init_reg.
10528         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10529         (dwarf2_frame_init_reg): Call architecture-specific function.
10530         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10531         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10532         instead of dwarf2_frame_data.
10533         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10534         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10535
10536 2004-02-15  Andrew Cagney  <cagney@redhat.com>
10537
10538         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10539         register_gdbarch_swap.
10540         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10541         * f-lang.c (_initialize_f_language): Update, use
10542         DEPRECATED_REGISTER_GDBARCH_SWAP.
10543         * remote.c (_initialize_remote): Ditto.
10544         * regcache.c (_initialize_regcache): Ditto.
10545         * parse.c (_initialize_parse): Ditto.
10546         * infrun.c (_initialize_infrun): Ditto.
10547         * mi/mi-main.c (_initialize_mi_main): Ditto.
10548         * gdbtypes.c (_initialize_gdbtypes): Ditto.
10549
10550         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10551         poking .cacheable directly.
10552         * symfile.c (symfile_bfd_open): Ditto.
10553
10554         * Makefile.in: Update all dependencies.
10555
10556         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10557         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
10558         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
10559         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10560         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10561
10562 2004-02-14  Andrew Cagney  <cagney@redhat.com>
10563
10564         * arch-utils.c (legacy_convert_register_p): Check
10565         DEPRECATED_REGISTER_CONVERTIBLE_P.
10566         * findvar.c (value_of_register): Ditto.
10567
10568         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10569         * gdbarch.h, gdbarch.c: Re-generate.
10570         * arch-utils.c (deprecated_register_convertible_not): Delete.
10571         * arch-utils.h (deprecated_register_convertible_not): Delete.
10572         * mi/mi-main.c (get_register): Update.  Update copyright.
10573         * infcmd.c (default_print_registers_info): Update.
10574
10575         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10576         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10577         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10578         * gdbarch.h, gdbarch.c: Re-generate.
10579         * frame.c (deprecated_get_next_frame_hack): Delete function.
10580         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10581         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10582         Update.
10583         * infcall.c (call_function_by_hand): Update.
10584
10585 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
10586
10587         * symfile.c (init_entry_point_info, entry_point_address): Move
10588         from here...
10589         * objfiles.c (init_entry_point_info, entry_point_address):..to
10590         here.
10591         * symfile.h (init_entry_point_info, entry_point_address): Remove
10592         prototypes.
10593         * objfiles.h (init_entry_point_info, entry_point_address):Add
10594         prototypes.
10595         * cris-tdep.c: Remove include of symfile.h. Add include of
10596         objfiles.h.
10597         * infcall.c: Ditto.
10598         * mcore-tdep.c: Ditto.
10599         * mn10300-tdep.c: Ditto.
10600         * sh64-tdep.c: Ditto.
10601         * v850-tdep.c: Ditto.
10602         * arm-tdep.c: Remove include of symfile.h.
10603         * blockframe.c: Ditto.
10604         * coffread.c: Ditto.
10605         * dbxread.c: Ditto.
10606         * dwarf2read.c: Ditto.
10607         * dwarfread.c: Ditto.
10608         * frv-tdep.c: Ditto.
10609         * ia64-tdep.c: Ditto.
10610         * mdebugread.c: Ditto.
10611         * mipsread.c: Ditto.
10612         * rs6000-tdep.c: Ditto.
10613         * s390-tdep.c: Ditto.
10614         * sh-tdep.c: Ditto.
10615         * xstormy16-tdep.c: Ditto.
10616         * gdbarch.sh: Remove include of symfile.h.
10617         * gdbarch.c: Regenerate.
10618         * solib-irix.c (enable_break): Use entry_point_address().
10619         Add comment about include file.
10620         * xcoffread.c: Add comment about include file.
10621         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10622         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10623         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10624         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10625         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10626
10627 2004-02-13  Andrew Cagney  <cagney@redhat.com>
10628
10629         * corelow.c (core_xfer_partial): Use "struct bfd_section".
10630         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10631         copyright.
10632         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10633
10634 2004-02-12  Fred Fish  <fnf@redhat.com>
10635
10636         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10637          set_gdbarch_store_return_value.
10638
10639 2004-02-12  Andrew Cagney  <cagney@redhat.com>
10640
10641         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10642         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10643         (interrupt_query): Ditto.
10644         (ofunc): Delete unused variable.
10645         * cris-tdep.c (cris_abi): Delete unused function.
10646         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10647         (cris_get_wide_opcode, cris_get_short_size): Ditto.
10648         (cris_get_asr_quick_shift_steps): Ditto.
10649         (cris_skip_prologue_frameless_p): Ditto.
10650         * arm-tdep.c (arm_push_return_address): Delete unused function.
10651         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10652         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10653         * s390-tdep.c (s390_function_start): Delete unused function.
10654
10655 2004-02-12  Andrew Cagney  <cagney@redhat.com>
10656
10657         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10658         gdbarch.h, gdbarch.c: Re-generate.
10659         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10660         to generic_prologue_frameless_p.
10661         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10662         * arch-utils.c (generic_prologue_frameless_p): Delete function.
10663
10664 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
10665
10666         * mips-linux-tdep.c: Include "frame.h".
10667         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10668         (mips_linux_skip_resolver): New functions.
10669         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10670         and set_gdbarch_in_solib_call_trampoline.
10671         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10672         to after set_gdbarch_in_solib_return_trampoline.  Only set the
10673         solib hooks to mips16 functions if the OS ABI is unknown.
10674         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10675         including "config/tm-linux.h".
10676         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10677         * Makefile.in (mips-linux-tdep.o): Update.
10678
10679 2004-02-11  David Carlton  <carlton@kealia.com>
10680
10681         * linespec.c (decode_compound): Only look for a class symbol when
10682         considering all but the rightmost component.
10683
10684 2004-02-11  Andrew Cagney  <cagney@redhat.com>
10685
10686         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10687         abi code are are separatly grouped.
10688
10689 2004-02-11  Andrew Cagney  <cagney@redhat.com>
10690
10691         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10692         * gdbarch.h, gdbarch.c: Re-generate.
10693         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10694         * v850-tdep.c (v850_gdbarch_init): Update.
10695         * sh64-tdep.c (sh64_gdbarch_init): Update.
10696         * sh-tdep.c (sh_gdbarch_init): Update.
10697         * s390-tdep.c (s390_gdbarch_init): Update.
10698         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10699         * mips-tdep.c (mips_gdbarch_init): Update.
10700         * mcore-tdep.c (mcore_gdbarch_init): Update.
10701         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10702         * m32r-tdep.c (m32r_gdbarch_init): Update.
10703         * ia64-tdep.c (ia64_gdbarch_init): Update.
10704         * hppa-tdep.c (hppa_gdbarch_init): Update.
10705         * h8300-tdep.c (h8300_gdbarch_init): Update.
10706         * frv-tdep.c (frv_gdbarch_init): Update.
10707         * d10v-tdep.c (d10v_gdbarch_init): Update.
10708         * cris-tdep.c (cris_gdbarch_init): Update.
10709         * avr-tdep.c (avr_gdbarch_init): Update.
10710         * arm-tdep.c (arm_gdbarch_init): Update.
10711         * alpha-tdep.c (alpha_gdbarch_init): Update.
10712
10713 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
10714
10715         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10716         comma.
10717         (sh_sh4al_dsp_register_name): Ditto.
10718
10719 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10720
10721         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10722         (mips_init_frame_pc_first): Delete function.
10723         (mips_frame_saved_pc): Delete function.
10724         (mips_frame_chain): Delete function.
10725         (mips_init_extra_frame_info): Delete function.
10726         (mips_xfer_register): Delete unused variable "reg".
10727         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10728         (mips_n32n64_return_value): Delete unused variable "reg".
10729         (mips_n32n64_return_value): Delete unused variable "pos".
10730         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10731         (mips_o32_return_value): Delete unused variable "pos".
10732         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10733         (mips_print_fp_register): Delete unused variable "namelen"
10734         (mips_print_fp_register): Delete unused variable "flt2"
10735         (get_frame_pointer): Delete function.
10736         (cached_proc_desc): Delete static variable.
10737         (mips_pop_frame): Delete function.
10738         (mips_find_saved_regs): Delete function.
10739         (mips_get_saved_register): Delete function.
10740         (mips_saved_pc_after_call): Delete function.
10741         (SIGFRAME_BASE): Delete macro.
10742         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10743         (SIGFRAME_PC_OFF): Delete macro.
10744         (SIGFRAME_REGSAVE_OFF): Delete macro.
10745         (mips_dump_tdep): Do not print deleted macro definitions.
10746
10747 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10748
10749         * Makefile.in (SFILES): Remove explictly listed tui files.
10750         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10751
10752 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
10753
10754         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10755         to use paddr functions to format ia64 addresses and long values.
10756         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10757         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10758         (get_kernel_table, ia64_find_proc_info_x): Ditto.
10759         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10760         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10761
10762 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10763
10764         * defs.h: Do not include "tui.h".
10765         * gdb_curses.h: New file.
10766         * tui/tui-hooks.h: New file.
10767         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10768         (tui_install_hooks, tui_remove_hooks): Delete declarations.
10769         (tui_initialize_io): Delete declaration.
10770         (tui_initialize_readline: Delete redundant declaration.
10771         (struct tui_point): Delete definition.
10772         * tui/tui-data.h (struct tui_point): Define.
10773         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10774         * utils.c: Include "tui/tui.h".
10775         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10776         * printcmd.c [TUI]: Include "tui/tui.h".
10777         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10778         * tui/tui-command.c: Include "gdb_curses.h".
10779         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10780         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10781         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10782         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10783         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10784         * Makefile.in: Update all dependencies.
10785         (tui_hooks_h, gdb_curses_h): Define.
10786         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10787
10788 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
10789
10790         * objfiles.h (struct objfile): Remove unused fields auxf1 and
10791         auxf2. Add comments about some other rarely used fields.
10792
10793 2004-02-10  Andrew Cagney  <cagney@redhat.com>
10794
10795         * Makefile.in (init.c): Fix script removing duplicates. Problem
10796         reported by Peter Schauer.
10797
10798 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
10799
10800         * bcache.c (bcache_xmalloc): Use obstack_init instead of
10801         obstack_specify_allocation.
10802         * objfiles.c (allocate_objfile): Ditto.
10803         * solib-sunos.c (solib_add_common_symbols)
10804         (allocate_rt_common_objfile): Ditto.
10805         * symfile.c (reread_symbols): Ditto.
10806         * gdb_obstack.h: Add comment.
10807
10808 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
10809
10810         * linespec.c (decode_line_1, locate_first_half)
10811         (decode_compound, lookup_prefix_sym): Update comments. Delete old
10812         commented out code.
10813
10814 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
10815
10816         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10817         obstack_free.
10818
10819 2004-02-09  Andrew Cagney  <cagney@redhat.com>
10820
10821         * blockframe.c (find_pc_partial_function): If find_pc_overlay
10822         fails, try find_pc_section.  Fix PR c++/1267.
10823         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10824         instead of find_pc_mapped_section.
10825         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10826         not default to the section containing PC.  Fix PR symtab/1519.
10827
10828 2004-02-09  Andrew Cagney  <cagney@redhat.com>
10829
10830         * Makefile.in (mips-tdep.o): Update dependencies.
10831         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10832         "trad-frame.h".
10833         (mips_unwind_pc): Return the pseudo PC register.
10834         (mips_unwind_dummy_id): New function.
10835         (mips16_fetch_instruction): New function.
10836         (mips32_fetch_instruction): New function.
10837         (struct mips_frame_cache): Define.
10838         (mips_mdebug_frame_cache): New function.
10839         (mips_mdebug_frame_this_id): New function.
10840         (mips_mdebug_frame_prev_register): New function.
10841         (mips_mdebug_frame_unwind): Define.
10842         (mips_mdebug_frame_sniffer): New function.
10843         (mips_mdebug_frame_base_address): New function.
10844         (mips_mdebug_frame_base): Define.
10845         (mips_mdebug_frame_base_sniffer): New function.
10846         (mips_gdbarch_init): Append unwind and base sniffers.  Set
10847         unwind_dummy_id.
10848
10849 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10850
10851         * frame.c: Print both the register number and name.
10852
10853         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
10854         and a sed into a single sed.  Make .c and .o patterns more robust.
10855         (OBS): Delete.
10856         (INIT_FILES): Replace OBS with COMMON_OBS.
10857         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10858
10859 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
10860
10861         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10862         the PT_WCOOKIE request.
10863
10864 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10865
10866         * mips-tdep.c (mips_unwind_pc): New function.
10867         (mips_gdbarch_init): Set mips_unwind_pc.
10868
10869         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10870         (get_frame_id): Allow the UNKNOWN_FRAME.
10871         (frame_register_unwind, get_frame_type): Ditto.
10872
10873         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10874         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
10875         unwind_dummy_id indicates a legacy frame.
10876
10877         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10878         * configure: Re-generate.
10879
10880         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10881         methods.
10882
10883 2004-02-08  Andrew Cagney  <cagney@redhat.com>
10884
10885         * configure.in (CONFIG_ALL): Set to Makefile target, and not
10886         makefile macro.
10887         * configure: Re-generate.
10888         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10889         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10890         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10891         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10892         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10893         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10894         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10895         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10896         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10897         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10898
10899 2004-02-07  Andrew Cagney  <cagney@redhat.com>
10900
10901         * Makefile.in: Update all dependencies.
10902
10903         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10904         * configure: Re-generate.
10905         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10906         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10907         (COMMON_OBS): Add "main.o" and "annotate.o".
10908         (ANNOTATE_OBS): Delete.
10909         (OBS): Remove ANNOTATE_OBS.
10910         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10911         CONFIG_INITS.
10912         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10913         against CONFIG_OBS and "main.o".
10914         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10915         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10916
10917         * tui/tui-command.c: Include "gdb_string.h", delete register
10918         attribute, use ISO-C function signatures.
10919         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10920         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10921         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10922         * tui/tui.c: Ditto.
10923
10924         * tui/tui-command.c: Change variable and function names to lower
10925         case.
10926         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10927         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10928         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10929         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10930         * tui/tui-winsource.c, tui/tui.c: Ditto.
10931
10932 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
10933
10934         * buildsym.c (free_pending_blocks, finish_block)
10935         (record_pending_block, make_blockvector, end_symtab): Replace
10936         symbol_obstack with objfile_obstack.
10937         * coffread.c (process_coff_symbol, coff_read_struct_type)
10938         (coff_read_enum_type): Ditto.
10939         * cp-namespace.c (initialize_namespace_symtab)
10940         (check_one_possible_namespace_symbol): Ditto.
10941         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10942         (dwarf2_symbol_mark_computed): Ditto.
10943         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10944         * elfread.c (elf_symtab_read): Ditto.
10945         * hpread.c (hpread_symfile_init, hpread_symfile_init)
10946         (hpread_read_enum_type, hpread_read_function_type)
10947         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10948         Ditto.
10949         * jv-lang.c (get_java_class_symtab, add_class_symbol)
10950         (java_link_class_type): Ditto.
10951         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10952         (new_symbol): Ditto.
10953         * minsyms.c (install_minimal_symbols): Ditto.
10954         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10955         (terminate_minimal_symbol_table): Replace symbol_obstack with
10956         objfile_obstack.
10957         (free_objfile): Remove freeing of symbol_obstack.
10958         * objfiles.h: Remove symbol_obstack field.
10959         * pa64solib.c (add_to_solist): Replace symbol_obstack with
10960         objfile_obstack.
10961         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10962         symbol_obstack.
10963         (solib_add_common_symbols): Replace symbol_obstack with
10964         objfile_obstack.
10965         * somsolib.c (som_solib_add): Ditto.
10966         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10967         (common_block_start, common_block_end): Ditto.
10968         * symfile.c (reread_symbols): Remove freeing and init of
10969         symbol_obstack.
10970         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10971         * symfile.h: Update comment.
10972         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10973         stats printing.
10974         * symtab.c (symbol_set_names): Replace symbol_obstack with
10975         objfile_obstack.
10976         * symtab.h (struct general_symbol_info, struct minimal_symbol):
10977         Update comments.
10978         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10979         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10980         objfile_obstack.
10981
10982 2004-02-07  Andrew Cagney  <cagney@redhat.com>
10983
10984         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10985         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
10986         fields and variables.
10987         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10988         (m_beInvisible): Delete macro.
10989         * tui/tui-data.h: Fix case case fields and variables.
10990         (m_genWinPtrIsNull): Delete macro.
10991         (tui_win_list): Rename winList.
10992         (TUI_SRC_WIN): Rename srcWin.
10993         (TUI_DISASM_WIN): Rename disassemWin.
10994         (TUI_DATA_WIN): Rename dataWin.
10995         (TUI_CMD_WIN): Rename cmdWin.
10996         (m_genWinPtrNotNull): Delete macro.
10997         (m_winPtrIsNull): Delete macro.
10998         (m_winPtrNotNull): Delete macro.
10999         (tui_win_is_source_type): Replace m_winIsSourceType
11000         (tui_win_is_auxillary): Replace m_winIsAuzillary.
11001         (tui_win_has_locator): Replace m_hasLocator.
11002         (tui_set_win_highlight): Replace m_setWinHighlightOn and
11003         m_setWinHighlightOff.
11004         * tui/tui-data.c: Update references.
11005         (tui_win_is_source_type, tui_set_win_highlight): New functions.
11006         (tui_win_has_locator, tui_win_is_auxillary): New functions.
11007         * tui/tui-command.c, tui/tui-disasm.c: Update references.
11008         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11009         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11010         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11011         * tui/tui-winsource.c, tui/tui.c: Ditto.
11012
11013 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11014
11015         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11016         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11017         StackGhost.
11018
11019         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11020         variable `i6' to `i7'.
11021         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11022
11023 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11024
11025         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11026         (TuiPoint, TuiPointPtr): Ditto.
11027         (TuiStatus, TuiStatusPtr): Ditto.
11028         (TuiWinType, TuiWinTypePtr): Ditto.
11029         (struct tui_point): Rename _TuiPoint.
11030         (tui_get_low_disassembly_address): Rename
11031         tuiGetLowDisassemblyAddress.
11032         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11033         (tuiFree): Delete declaration.
11034         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11035         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11036         * tui/tui.c (tuiFree): Delete function.
11037         * cli/cli-cmds.c (disassemble_command): Update references.
11038         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11039         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11040         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11041         * tui/tui-winsource.c: Ditto.
11042
11043 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11044
11045         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11046         coffstab_build_psymtabs, elfstab_build_psymtabs)
11047         (stabsect_build_psymtabs): Replace psymbol_obstack with
11048         objfile_obstack.
11049         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11050         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11051         Ditto.
11052         * dwarfread.c (scan_compilation_units): Ditto.
11053         * elfread.c (elfstab_offset_sections): Ditto.
11054         * hppa-tdep.c (read_unwind_info): Ditto.
11055         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11056         (hpread_end_psymtab): Ditto.
11057         * mdebugread.c (mdebug_build_psymtabs, add_pending)
11058         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11059         Ditto.
11060         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11061         * objfiles.c (add_to_objfile_sections)
11062         (build_objfile_section_table): Ditto.
11063         (allocate_objfile): Remove init of psymbol_obstack.
11064         (free_objfile): Remove freeing of psymbol_obstack.
11065         * objfiles.h (struct objfile): Remove field
11066         psymbol_obstack. Update comments.
11067         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11068         psymbol_obstack with objfile_obstack.
11069         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11070         psymbol_obstack.
11071         * somread.c (som_symfile_offsets, init_import_symbols)
11072         (init_export_symbols): Replace psymbol_obstack with
11073         objfile_obstack.
11074         * somsolib.c (som_solib_add_solib_objfile): Ditto.
11075         * symfile.c (default_symfile_offsets, syms_from_objfile)
11076         (reread_symbols): Remove freeing and init of psymbol_obstack.
11077         (cashier_psymtab): Update comment.
11078         * symmisc.c (print_objfile_statistics): Don't report stats for
11079         psymbol obstack.
11080         * symtab.h (struct general_symbol_info, struct partial_symtab):
11081         Update comments.
11082         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11083         (xcoff_symfile_offsets): Replace psymbol_obstack with
11084         objfile_obstack.
11085
11086 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
11087
11088         * objfiles.h (struct objfile): Add objfile_obstack field.
11089         Remove type_obstack field.
11090
11091         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11092         read_structure_scope read_enumeration, new_symbol): Replace
11093         type_obstack with objfile_obstack.
11094         * dwarfread.c (struct_type, enum_type): Ditto.
11095         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11096         (lookup_fundamental_type): Ditto.
11097         * gdbtypes.h (TYPE_ALLOC): Ditto.
11098         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11099         (hpread_read_doc_function_type, hpread_read_struct_type)
11100         (fix_static_member_physnames, hpread_read_array_type)
11101         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11102         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11103         (java_link_class_type): Ditto.
11104         * mdebugread.c (parse_type): Ditto.
11105         * objfiles.c (allocate_objfile, free_objfile): Ditto.
11106         * solib-sunos.c (solib_add_common_symbols): Ditto.
11107         * stabsread.c (define_symbol, read_type, read_member_functions,
11108         read_cpp_abbrev, read_one_struct_field): Ditto.
11109         * symfile.c (reread_symbols): Ditto.
11110         * symmisc.c (print_objfile_statistics): Ditto.
11111
11112 2004-02-07  Andrew Cagney  <cagney@redhat.com>
11113
11114         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11115         (tui_exec_info_content): Rename TuiExecInfoContent.
11116         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11117         (TuiWinInfo, TuiWinInfoPtr): Ditto.
11118         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11119         (TuiList, TuiListPtr): Ditto.
11120         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11121         (TuiDataType, TuiDataTypePtr): Ditto.
11122         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11123         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11124         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11125         (TuiSourceElement, TuiSourceElementPtr): Ditto.
11126         (TuiDataElement, TuiDataElementPtr): Ditto.
11127         (TuiWinElement, TuiWinElementPtr): Ditto.
11128         (TuiDataInfo, TuiDataInfoPtr): Ditto.
11129         (TuiCommandElement, TuiCommandElementPtr): Ditto.
11130         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11131         (TuiWhichElement, TuiWhichElementPtr): Ditto.
11132         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11133         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11134         * tui/tui-command.c, tui/tui-data.c: Update references.
11135         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11136         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11137         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11138         * tui/tui-winsource.c, tui/tui.c: Ditto.
11139
11140 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
11141
11142         * dwarf2-frame.h: Update copyright.
11143         (enum dwarf2_frame_reg_rule): New.
11144         (struct dwarf2_frame_state_reg): New.
11145         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11146         * dwarf2-frame.c: Update copyright.
11147         (enum dwarf2_reg_rule): Remove.
11148         (struct dwarf2_frame_state): Remove defenition of `struct
11149         dwarf2_frame_state_reg'.
11150         (read_reg): Call get_frame_arch to get the architecture instead of
11151         using CURRENT_GDBARCH.
11152         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11153         DWARF2_FRAME_.
11154         (dwarf2_frame_init_reg): New function.
11155         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11156         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
11157         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
11158         tags with DWARF2_FRAME_.
11159         (dwarf2_frame_prev_register): Call get_frame_arch to get the
11160         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
11161         dwarf2_reg_rule' tags with DWARF2_FRAME_.
11162
11163 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11164
11165         * tui/tui-data.h (struct tui_list): Rename _TuiList.
11166         (enum tui_data_type): Rename _TuiDataType.
11167         (struct tui_layout_def): Rename _TuiLayoutDef.
11168         (struct tui_source_element): Rename _TuiSourceElement.
11169         (struct tui_data_element): Rename _TuiDataElement.
11170         (struct tui_command_element): Rename _TuiCommandElement.
11171         (struct tui_locator_element): Rename _TuiLocatorElement.
11172         (union tui_which_element): Define.
11173         (struct tui_win_element): Rename _TuiWinElement.
11174         (struct tui_data_info): Rename _TuiDataInfo.
11175         (struct tui_source_info): Rename _TuiSourceInfo.
11176         (struct tui_command_info): Rename _TuiCommandInfo.
11177         (tui_initialize_static_data): Rename initializeStaticData.
11178         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11179         (tui_alloc_win_info): Rename allocWinInfo.
11180         (tui_init_generic_part): Rename initGenericPart.
11181         (tui_init_win_info): Rename initWinInfo.
11182         (tui_alloc_content): Rename allocContent.
11183         (tui_add_content_elements): Rename addContentElements.
11184         (tui_init_content_element): Rename initContentElement.
11185         (tui_free_window): Rename freeWindow.
11186         (tui_free_win_content): Rename freeWinContent.
11187         (tui_free_data_content): Rename freeDataContent.
11188         (tui_free_all_source_wins_content): Rename
11189         freeAllSourceWinsContent.
11190         (tui_del_window): Rename tuiDelWindow.
11191         (tui_del_data_windows): Rename tuiDelDataWindows.
11192         (tui_partial_win_by_name): Rename partialWinByName.
11193         (tui_win_name): Rename winName.
11194         (tui_current_layout): Rename currentLayout.
11195         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11196         (tui_term_height): Rename termHeight.
11197         (tui_set_term_height_to): Rename setTermHeightTo.
11198         (tui_term_width): Rename termWidth.
11199         (tui_set_term_width_to): Rename setTermWidthTo.
11200         (tui_set_gen_win_origin): Rename setGenWinOrigin.
11201         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11202         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11203         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11204         (tui_source_windows): Rename sourceWindows.
11205         (tui_clear_source_windows): Rename clearSourceWindows.
11206         (tui_clear_source_windows_detail): Rename
11207         clearSourceWindowsDetail.
11208         (tui_clear_win_detail): Rename clearWinDetail.
11209         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11210         (tui_default_tab_len): Rename tuiDefaultTabLen.
11211         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11212         (tui_win_with_focus): Rename tuiWinWithFocus.
11213         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11214         (tui_layout_def): Rename tuiLayoutDef.
11215         (tui_win_resized): Rename tuiWinResized.
11216         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11217         (tui_next_win): Rename tuiNextWin.
11218         (tui_prev_win): Rename tuiPrevWin.
11219         (tui_add_to_source_windows): Rename addToSourceWindows.
11220         * tui/tui-winsource.c, tui/tui-win.c: Update references.
11221         * tui/tui-layout.c, tui/tui-source.c: Ditto.
11222         * tui/tui-stack.c, tui/tui-io.c: Ditto.
11223         * tui/tui.c, tui/tui-data.c: Ditto.
11224         * tui/tui-interp.c, tui/tui-data.c: Ditto.
11225         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11226
11227         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
11228         (struct symtab): Declare.
11229         (tui_set_source_content): Rename tuiSetSourceContent.
11230         (tui_show_symtab_source): Rename tuiShowSource.
11231         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11232         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11233         * tui/tui-source.c: Update copyright.  Update references.
11234         * tui/tui-win.c, tui/tui-winsource.c: Update references.
11235         * tui/tui-stack.c: Update references.
11236
11237         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
11238         (struct tui_win_info): Declare.
11239         (tui_scroll_forward): Rename tuiScrollForward.
11240         (tui_scroll_backward): Rename tuiScrollBackward.
11241         (tui_scroll_left): Rename tuiScrollLeft.
11242         (tui_scroll_right): Rename tuiScrollRight.
11243         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11244         (tui_resize_all): Rename tuiResizeAll.
11245         (tui_refresh_all_win): Rename tuiRefreshAll.
11246         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11247         * tui/tui-layout.c, * tui/tui-io.c: Update references.
11248         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11249         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11250
11251         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
11252         (tui_erase_data_content): Rename tuiEraseDataContent.
11253         (tui_display_all_data): Rename tuiDisplayAllData.
11254         (tui_check_data_values): Rename tuiCheckDataValues.
11255         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11256         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11257         (tui_first_data_element_no_in_line): Rename
11258         tuiFirstDataElementNoInLine.
11259         (tui_delete_data_content_windows): Rename
11260         tuiDeleteDataContentWindows.
11261         (tui_refresh_data_win): Rename tuiRefreshDataWin.
11262         (tui_display_data_from): Rename tuiDisplayDataFrom.
11263         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11264         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11265         * tui/tui-win.c, tui/tui-regs.c: Update references.
11266         * tui/tui-layout.c, tui/tui.c: Update references.
11267
11268         * tui/tui-wingeneral.h: Update copyright.
11269         (m_allBeVisible): Delete macro.
11270         (m_allBeInvisible): Delete macro.
11271         (struct tui_gen_win_info): Declare.
11272         (struct tui_win_info): Declare.
11273         (tui_unhighlight_win): Rename unhighlightWin.
11274         (tui_make_visible, tui_make_invisible): Replace makeVisible.
11275         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11276         (tui_make_window): Rename makeWindow.
11277         (tui_copy_win): Rename copyWin.
11278         (tui_box_win): Rename boxWin.
11279         (tui_highlight_win): Rename highlightWin.
11280         (tui_check_and_display_highlight_if_needed): Rename
11281         checkAndDisplayHighlightIfNeeded.
11282         (tui_refresh_all): Rename refreshAll.
11283         (tui_delete_win): Rename tuiDelwin.
11284         (tui_refresh_win): Rename tuiRefreshWin.
11285         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11286         (tui_make_visible, tui_make_invisible): New functions.
11287         (tui_make_all_visible, tui_make_all_invisible): New functions.
11288         (make_all_visible): Rename makeAllVisible.
11289         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11290         * tui/tui-data.c, tui/tui-winsource.c: Update references.
11291         * tui/tui-windata.c, tui/tui-win.c: Update references.
11292         * tui/tui-regs.c, tui/tui-layout.c: Update references.
11293         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11294
11295 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
11296
11297         * proc-api.c (write_with_trace): Initialize local variable to
11298         silence compiler warning.
11299
11300 2004-02-06  Andrew Cagney  <cagney@redhat.com>
11301
11302         * tui/tui-source.h: Do not include "defs.h".
11303         (struct tui_win_info): Declare.
11304         (tui_set_source_content_nil): Declare.
11305         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11306         (union tui_line_or_address): Rename _TuiLineOrAddress.
11307         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
11308         (tui_update_source_window): Rename tuiUpdateSourceWindow.
11309         (tui_update_source_window_as_is): Rename
11310         tuiUpdateSourceWindowAsIs.
11311         (tui_update_source_windows_with_addr): Rename
11312         tuiUpdateSourceWindowsWithAddr.
11313         (tui_update_source_windows_with_line): Rename
11314         tuiUpdateSourceWindowsWithLine.
11315         (tui_clear_source_content): Rename tuiClearSourceContent.
11316         (tui_erase_source_content): Rename tuiEraseSourceContent.
11317         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11318         (tui_show_source_content): Rename tuiShowSourceContent.
11319         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11320         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11321         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11322         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11323         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11324         (tui_update_exec_info): Rename tuiUpdateExecInfo.
11325         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11326         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11327         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11328         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11329         (struct tui_win_info): Declare.
11330         * tui/tui-stack.c: Update references.
11331         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11332         * tui/tui-win.c, tui/tui-source.c: Ditto.
11333         * tui/tui.c, tui/tui-disasm.c: Ditto.
11334
11335 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
11336
11337         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11338         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
11339
11340 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
11341
11342         * infrun.c (handle_inferior_event): Allow for breakpoint
11343         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11344         and SIGEMT.  Update comments.
11345         * NEWS (Revised SPARC target): Mention support for non-executable
11346         stack.
11347
11348 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
11349
11350         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11351         * inftarg.c: Update copyright year.
11352         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11353         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11354         (sparc_xfer_wcookie): New function.
11355         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11356         * Makefile.in (sparc-nat.o): Update dependencies.
11357         * config/sparc/nm-nbsd.h: Include "target.h".
11358         (NATIVE_XFER_WCOOKIE): New define.
11359         (sparc_xfer_wcookie): New prototype.
11360
11361 2004-02-04  Andrew Cagney  <cagney@redhat.com>
11362
11363         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11364         SYSCALL_TRAP function.
11365         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11366
11367 2004-02-04  Andrew Cagney  <cagney@redhat.com>
11368             Daniel Jacobowitz  <drow@mvista.com>
11369
11370         * objfiles.h: Delete comments refering to inside_entry_func and
11371         DEPRECATED_FRAME_CHAIN_VALID.
11372         * defs.h (inside_entry_func): Update prototype..
11373         * blockframe.c (inside_entry_func): Rename to
11374         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
11375         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11376
11377 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
11378
11379         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
11380         outside of #ifdef SOLIB_ADD region.
11381         (do_restore_lang_radix_cleanup): Ditto.
11382         (resolve_pending_breakpoint): Ditto.
11383
11384 2004-02-03  Andrew Cagney  <cagney@redhat.com>
11385
11386         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11387         (process_note_abi_tag_sections): Delete unused function.
11388         (ia64_read_fp): Delete unused function.
11389         (gdbarch_extract_struct_value_address): Delete declaration.
11390
11391 2004-02-02  Andrew Cagney  <cagney@redhat.com>
11392
11393         * vax-tdep.c (vax_frame_chain): Delete call to
11394         deprecated_inside_entry_file.
11395         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11396
11397 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
11398
11399         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11400         column that's "empty" or "same value" when eliminating REG_RA
11401         rules.
11402
11403 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
11404
11405         * NEWS: Add information about new pending breakpoint support.
11406
11407 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
11408
11409         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11410         and pending fields for pending breakpoint support.
11411         * breakpoint.c (breakpoint_enabled): Add check for not pending.
11412         (condition_command): Only parse condition if not a pending
11413         breakpoint.
11414         (print_one_breakpoint): Add support for pending breakpoints.
11415         (describe_other_breakpoints): Add checks to verify we are not
11416         dealing with pending breakpoints.
11417         (check_duplicates): Don't check pending breakpoints.
11418         (set_raw_breakpoint): Initialize pending flag.
11419         (do_restore_lang_radix_cleanup): New cleanup routine.
11420         (resolve_pending_breakpoint): New function.
11421         (re_enable_breakpoints_in_shlibs): Try and resolve any
11422         pending breakpoints via resolve_pending_breakpoint.
11423         (mention): Add pending breakpoint support.
11424         (parse_breakpoint_sals): Add new parameter to pass to
11425         decode_line_1 to indicate silent errors when files or functions
11426         are not found.  Change all callers.
11427         (do_captured_parse_breakpoint): New function.
11428         (break_command_1): Change prototype to return an rc value and to
11429         take an optional pending breakpoint pointer.  Support creating
11430         a pending breakpoint if a "not found" form of error occurs when
11431         parsing the breakpoint.  Also support resolving an existing pending
11432         breakpoint and be silent if the resolution fails.
11433         (create_breakpoints): Change prototype to take pending breakpoint
11434         pointer.  When resolving a pending breakpoint, use the new pointer
11435         to provide a conditional or commands added by the end-user.
11436         (delete_breakpoint): Add appropriate check for pending.
11437         (breakpoint_re_set_one): Ditto.
11438         (do_enable_breakpoint): Ditto.
11439
11440 2004-02-02  David Carlton  <carlton@kealia.com>
11441
11442         * valops.c (enum oload_classification): New.
11443         (find_overload_match): Break implementation into separate
11444         functions; delete #if 0'd code; look for symbols within
11445         namespaces.
11446         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11447         (find_oload_champ,oload_method_static,classify_oload_match): New.
11448         * cp-support.h: Add declaration for cp_func_name; update
11449         declaration for make_symbol_overload_list.
11450         * cp-support.c (cp_func_name): New.
11451         (overload_list_add_symbol): Fix comment, use
11452         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11453         (make_symbol_overload_list): Take a function name and a namespace
11454         instead of a symbol; change implementation.
11455         (make_symbol_overload_list_using): New.
11456         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11457
11458 2004-02-02  Fred Fish  <fnf@redhat.com>
11459
11460         * main.c (gdb_stdtarg): Move definition to group with other
11461         gdb_stdtarg definitions and update copyright years.
11462         * remote-sim.c (gdb_os_write_stderr): Write output to
11463         gdb_stdtargerr stream instead of gdb_stdtarg stream.
11464         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11465         gdb_stderr stream and update copyright years.
11466
11467 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11468
11469         * Makefile.in (mips-linux-nat.o): Update dependencies.
11470         * mips-linux-nat.c: Include mips-tdep.h.
11471
11472 2004-02-01  Roland McGrath  <roland@redhat.com>
11473
11474         * sol-thread.c (sol_thread_xfer_partial): New function.
11475         (init_sol_thread_ops): Use that for to_xfer_partial hook.
11476         (init_sol_core_ops): Likewise.
11477
11478         * procfs.c (procfs_xfer_partial): New function.
11479         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11480         * Makefile.in (procfs.o): Add $(auxv_h) dep.
11481
11482         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11483         procfs_xfer_auxv function.
11484
11485         * procfs.c (procfs_make_note_section): If we can read
11486         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11487         * linux-proc.c (linux_make_note_section): Likewise.
11488
11489         * auxv.h: New file.
11490         * auxv.c: New file.
11491         * Makefile.in (auxv_h): New variable.
11492         (COMMON_OBS): Add auxv.o here.
11493         (auxv.o): New target.
11494
11495         * corelow.c (core_xfer_partial): New function.
11496         (init_core_ops): Use it for core_ops.to_xfer_partial.
11497
11498         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11499         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11500         macro if that is defined.
11501
11502 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11503
11504         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11505         and check the specified thread for each breakpoint.
11506         * breakpoint.h (bpstat_stop_status): Update prototype.
11507         * infrun.c (handle_inferior_event): Update calls to
11508         bpstat_stop_status.
11509
11510 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11511
11512         * Makefile.in (cli-cmds.o): Add $(readline_h).
11513
11514 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
11515
11516         * cli/cli-cmds.c: Include readline.h.
11517         (complete_command): Pass the start of the last word to
11518         complete_line.
11519
11520 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11521
11522         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11523         argument, and change first argument to a CORE_ADDR.
11524         * breakpoint.h (bpstat_stop_status): Update prototype.
11525         * infrun.c (adjust_pc_after_break): Add a new comment.
11526         (handle_inferior_event): Update calls to bpstat_stop_status.
11527
11528 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11529
11530         * breakpoint.h: Update copyright years.
11531
11532 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11533
11534         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11535         (bpstat_stop_status): Don't decrement PC.
11536         * breakpoint.h (software_breakpoint_inserted_here_p): Add
11537         prototype.
11538         * infrun.c (adjust_pc_after_break): New function.
11539         (handle_inferior_event): Call it, early.  Remove later references
11540         to DECR_PC_AFTER_BREAK.
11541         (normal_stop): Add commentary.
11542
11543 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
11544
11545         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11546         2004-01-27 double-free fix.
11547
11548 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
11549
11550         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11551         (sparc32_frame_prev_register): Handle StackGhost.
11552         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11553
11554 2004-01-29  Roland McGrath  <roland@redhat.com>
11555
11556         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11557         * configure: Regenerated.
11558
11559         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11560         * Makefile.in (procfs.o): Add dep.
11561
11562 2004-01-28  Andrew Cagney  <cagney@redhat.com>
11563
11564         * tui/tui-stack.h: Update copyright.
11565         (struct frame_info): Add opaque declaration.
11566         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11567         (tui_show_locator_content): Rename tuiShowLocatorContent.
11568         (tui_show_frame_info): Rename tuiShowFrameInfo.
11569         * tui/tui-stack.c: Update copyright.  Update references.
11570         * tui/tui-winsource.c: Update references.
11571         * tui/tui-win.c: Update references.
11572         * tui/tui-layout.c: Update references.
11573         * tui/tui-hooks.c: Update copyright, update references.
11574         * tui/tui.c: Update copyright, update references.
11575         * tui/tui-disasm.c: Update references.
11576
11577 2004-01-28  David Carlton  <carlton@kealia.com>
11578
11579         * dwarf2read.c (add_partial_structure): Use demangled name if
11580         namespace equals "".
11581
11582 2004-01-27  Jim Blandy  <jimb@redhat.com>
11583
11584         Clean up misapplied patch:
11585         * dwarf2read.c (determine_prefix): Change one of the two forward
11586         declarations for 'determine_prefix_aux' to a declaration for this.
11587         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
11588         argument to 'die_specification'.
11589
11590         * dwarf2read.c (read_func_scope): Re-indent comment.
11591
11592 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
11593
11594         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11595         b->exp to NULL after freeing so that error during re-parsing or
11596         evaluation of expressions associated with breakpoint don't
11597         eventually lead to re-freeing of storage.
11598         Committed by Andrew Cagney.
11599
11600 2004-01-27  Andrew Cagney  <cagney@redhat.com>
11601
11602         * source.c (ambiguous_line_spec): Delete undefined declaration.
11603         * m32r-rom.c (m32r_set_board_address): Delete unused function.
11604         (m32r_set_server_address, m32r_set_download_path): Ditto.
11605         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11606
11607 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
11608
11609         * dwarf2read.c: Update calls to changed and renamed functions, and
11610         references to moved variables.
11611
11612         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11613         language, language_defn, list_in_scope, and ftypes members.
11614         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11615         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11616         (baseaddr): Remove globals.
11617
11618         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
11619         (set_cu_language, die_is_declaration, die_specification)
11620         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11621         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11622         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11623         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11624
11625         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
11626         cu.list_in_scope.  Don't initialize cu_header_offset.
11627         (add_partial_symbol): Add local baseaddr.
11628         (psymtab_to_symtab_1): Add local baseaddr.  Use
11629         objfile->section_offsets for consistency.  Don't initialize
11630         cu_header_offset; do initialize cu.header.offset and
11631         cu.list_in_scope.
11632         (read_file_scope, read_func_scope, read_lexical_block_scope)
11633         (dwarf_decode_lines, new_symbol): Add local baseaddr.
11634
11635 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
11636
11637         * PROBLEMS: Add gdb/1516.
11638
11639 2003-12-29  Robert Millan  <robertmh@gnu.org>
11640
11641         Patch committed by Andrw Cagney.
11642         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11643         * configure.tgt: Match knetbsd*-gnu.
11644
11645 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11646
11647         * breakpoint.c (catch_command_1): Delete #ifdef code.
11648         (catch_fork_command_1): Delete #ifdef wrapper.
11649         (catch_exec_command_1): Ditto.
11650         (catch_load_command_1): Ditto.
11651         (catch_unload_command_1): Ditto.
11652
11653         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11654         (catch_breakpoint): Delete #if0ed function.
11655         (disable_catch_breakpoint): Ditto.
11656         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11657         (disable_catch, enable_catch, delete_catch): Ditto.
11658
11659 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11660
11661         * remote.c (echo_check, quit_flag): Delete variables.
11662         (cisco_kernel_mode): Delete variable.
11663         (minitelnet_return, tty_input, escape_count): Delete variables.
11664         (remote_cisco_mode): Delete variable.
11665         (remote_cisco_open, remote_cisco_close): Delete function.
11666         (remote_cisco_mourn, remote_cisco_wait): Delete function.
11667         (init_remote_cisco_ops): Delete function.
11668         (_initialize_remote): Do not install "remote cisco" code.
11669         (read_frame): Delete cisco specific code.
11670         (remote_info_process): Delete function.
11671         (remote_wait): Delete cisco specific code.
11672         (remote_cisco_section_offsets): Delete function.
11673         (remote_cisco_objfile_relocate): Delete function.
11674         (remote_async_wait): Delete cisco specific code.
11675         (minitelnet, readtty, readsocket): Delete function.
11676
11677 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11678
11679         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
11680         comments mentioning extract_returned_value_address.
11681         * infcmd.c (print_return_value): Update.  Add comments on
11682         extract_returned_value_address.
11683         * stack.c (return_command): Add comments on
11684         extract_returned_value_address.
11685         * values.c: Update comment.
11686         * m32r-tdep.c: Update comment.
11687         * sparc-tdep.c: Update comment.
11688         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11689         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11690         * sh64-tdep.c (sh64_gdbarch_init): Update.
11691         * sh-tdep.c (sh_gdbarch_init): Update.
11692         * s390-tdep.c (s390_gdbarch_init): Update.
11693         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11694         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11695         * m68k-tdep.c (m68k_gdbarch_init): Update.
11696         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11697         * m32r-tdep.c (m32r_gdbarch_init): Update.
11698         * ia64-tdep.c (ia64_gdbarch_init): Update.
11699         * h8300-tdep.c (h8300_gdbarch_init): Update.
11700         * frv-tdep.c (frv_gdbarch_init): Update.
11701         * arm-tdep.c (arm_gdbarch_init): Update.
11702         * alpha-tdep.c (alpha_gdbarch_init): Update.
11703
11704 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11705
11706         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11707         SYMBOL_LOCATION_FUNCS
11708         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11709         "struct symbol_ops".
11710         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11711         type to "struct symbol_ops".
11712         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11713         (struct symbol): Replace ".aux_value.loc.funcs" and
11714         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11715         (SYMBOL_OBJFILE): Delete macro.
11716         (SYMBOL_LOCATION_FUNCS): Delete macro.
11717         (SYMBOL_LOCATION_BATON): Update.
11718         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11719         intead of SYMBOL_LOCATION_FUNCS.
11720         * ax-gdb.c (gen_var_ref): Ditto.
11721         * printcmd.c (address_info): Ditto.
11722         * findvar.c (read_var_value): Ditto.
11723         (symbol_read_needs_frame): Ditto.
11724
11725 2004-01-26  Andrew Cagney  <cagney@redhat.com>
11726
11727         * dwarf2read.c (read_func_scope): Document frame-base hack.
11728
11729 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11730
11731         * infcmd.c (print_return_value): Plug memory leak; delete
11732         ui_stream object.  Rename argument `structure_return' to
11733         `struct_return'.
11734
11735 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11736
11737         * infcmd.c (print_return_value): Wrap long lines.
11738         (finish_command_continuation, finish_command): Remove unused
11739         variable `funcaddr'.  Fix some coding-standards problems.
11740
11741         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11742         SECT_SIZE is large enough, not whether it's exactly the right size.
11743         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11744         TDEP->fpregset to zero.
11745
11746         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11747         floating-point registers for traditional NetBSD core files.
11748         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11749         TDEP->sizeof_fpregset here.
11750
11751 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
11752
11753         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11754         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11755         function with code split out from
11756         sparc32nbsd_sigcontext_frame_cache.
11757         (sparc32nbsd_sigcontext_frame_cache): Use
11758         sparc32nbsd_sigcontext_saved_regs.
11759         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11760         OpenBSD.
11761         * sparcobsd-tdep.c: New file.
11762         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11763         (sparcobsd-tdep.o): New dependency.
11764         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11765         * config/sparc/obsd.mt: New file.
11766
11767         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11768         TDEP->fpregset to be initialized to enable core file register
11769         sets.
11770
11771 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
11772
11773         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11774         Add opaque declarations.
11775         (sparc64nbsd_sigcontext_saved_regs): New prototype.
11776         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11777         function with code split out from
11778         sparc64nbsd_sigcontext_frame_cache.
11779         (sparc64nbsd_sigcontext_frame_cache): Use
11780         sparc64nbsd_sigcontext_saved_regs.
11781         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11782         OpenBSD.
11783         * sparc64obsd-tdep.c: New file.
11784         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11785         (sparc64obsd-tdep.o): New dependency.
11786         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11787         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11788         * config/sparc/obsd64.mt: New file.
11789
11790         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11791         read the instruction at PC.
11792
11793         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11794         value of GDB_OSABI_DEFAULT.
11795         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11796         instead of GDB_OSABI_NETBSD_AOUT.
11797
11798 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
11799
11800         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11801         copyright.
11802
11803 2004-01-23  Andrew Cagney  <cagney@redhat.com>
11804
11805         * printcmd.c (display_command): Replace tui_set_display call with
11806         tui_set_layout_for_display_command.
11807         * tui/tui.h (enum tui_win_type): Define.
11808         (tui_set_layout): Delete declaration.
11809         (tui_set_layout_for_display_command): Rename set_tui_layout.
11810         * tui/tui-data.h (enum tui_layout_type): Define.
11811         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
11812         "tui.h".
11813         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11814         (tui_default_win_height): Rename tuiDefaultWinHeight.
11815         (tui_default_win_viewport_height): Rename
11816         tuiDefaultWinViewportHeight.
11817         (tui_set_layout): RenametuiSetLayout.
11818         * tui/tui-layout.c: Update references.
11819         * tui/tui.c: Update references.
11820         * tui/tui-disasm.c: Update references.
11821
11822 2004-01-23  David Carlton  <carlton@kealia.com>
11823
11824         Partial workaround for PR c++/1511:
11825         * cp-namespace.c: Include frame.h.
11826         (cp_lookup_transparent_type): New
11827         (cp_lookup_transparent_type_loop): New.
11828         * cp-support.h: Declare cp_lookup_transparent_type.
11829         * symtab.c (basic_lookup_transparent_type): Renamed from
11830         lookup_transparent_type.
11831         (lookup_transparent_type): Replace old body by a call to
11832         current_language->la_lookup_transparent_type.
11833         * symtab.h: Update copyright.  Declare
11834         basic_lookup_transparent_type.
11835         * language.h: Update copyright.
11836         (struct language_defn): Add la_lookup_transparent_type.
11837         * language.c: Update copyright.
11838         (unknown_language_defn): Add basic_lookup_transparent_type.
11839         (auto_language_defn): Add basic_lookup_transparent_type.
11840         (local_language_defn): Add basic_lookup_transparent_type.
11841         * ada-lang.c: Update copyright.
11842         (ada_language_defn): Add basic_lookup_transparent_type.
11843         * c-lang.c: Update copyright.
11844         (c_language_defn): Add basic_lookup_transparent_type.
11845         (cplus_language_defn): Add basic_lookup_transparent_type.
11846         (asm_language_defn): Add basic_lookup_transparent_type.
11847         (minimal_language_defn): Add basic_lookup_transparent_type.
11848         * f-lang.c: Update copyright.
11849         (f_language_defn): Add basic_lookup_transparent_type.
11850         * jv-lang.c: Update copyright.
11851         (java_language_defn): Add basic_lookup_transparent_type.
11852         * m2-lang.c: Update copyright.
11853         (m2_language_defn): Add basic_lookup_transparent_type.
11854         * objc-lang.c: Update copyright.
11855         (objc_language_defn): Add basic_lookup_transparent_type.
11856         * p-lang.c: Update copyright.
11857         (p_language_defn): Add basic_lookup_transparent_type.
11858         * scm-lang.c: Update copyright.
11859         (scm_language_defn): Add basic_lookup_transparent_type.
11860         * Makefile.in (cp-namespace.o): Depend on frame.h.
11861
11862 2004-01-23  David Carlton  <carlton@kealia.com>
11863
11864         Patch for PR c++/1520:
11865         * dwarf2read.c (read_func_scope): Set processing_current_prefix
11866         properly if we have a specification die.
11867         (determine_prefix_aux): Rename from determine_prefix.
11868         (determine_prefix): Like the old determine_prefix, but never
11869         returns NULL.
11870
11871 2004-01-23  Theodore A. Roth  <troth@openavr.org>
11872
11873         * avr-tdep.c: Update copyright.
11874         (avr_iaddr_p): Delete unused function.
11875         (avr_saddr_p): Delete unused function.
11876
11877 2004-01-23  David Carlton  <carlton@kealia.com>
11878
11879         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11880         Fix for PR symtab/1534.
11881
11882 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
11883
11884         * NEWS (New native configurations): Mention OpenBSD/sparc and
11885         OpenBSD/sparc64.
11886         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11887         * configure.host: Likewise.
11888         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11889         handler for OpenBSD.
11890         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11891
11892 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
11893
11894         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11895         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11896
11897         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11898         * cli/cli-cmds.c (shell_escape): Likewise.
11899
11900         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11901         OpenBSD .note.openbsd.ident sections.
11902
11903 2004-01-22  David Carlton  <carlton@kealia.com>
11904
11905         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11906         get_scope_pc_bounds.
11907         (read_file_scope): Ditto.
11908         (get_scope_pc_bounds): New function, produced by extracting code
11909         from the above two functions, consolidating it, and adding support
11910         for DW_TAG_namespace.
11911
11912 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
11913
11914         * osabi.c (MAX_NOTESZ): New define.
11915         (check_note): New function.
11916         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11917         check_note.
11918
11919 2004-01-21  Roland McGrath  <roland@redhat.com>
11920
11921         * MAINTAINERS (write after approval): Add myself.
11922
11923 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
11924
11925         * utils.c (init_page_info): Move declarations of `rows' and
11926         `cols' before the __GO32__-specific code.  Move the closing brace
11927         outside the #ifdef __GO32__..#endif block.
11928         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11929
11930 2004-01-21  Paul Brook  <paul@codesourcery.com>
11931
11932         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11933         BPSTAT_WHAT_CHECK_SHLIBS.
11934
11935 2004-01-21  Paul Brook  <paul@codesourcery.com>
11936
11937         * MAINTAINERS: Add myself to write-after-approval.
11938
11939 2004-01-20  Andrew Cagney  <cagney@redhat.com>
11940
11941         * ax-gdb.c (print_axs_value): Delete unused function.
11942         * jv-lang.c (java_lookup_type): Delete unused function.
11943         * cli/cli-dump.c (dump_filetype): Delete unused function.
11944         * remote-mips.c (remote_mips_insert_hw_breakpoint)
11945         (remote_mips_remove_hw_breakpoint): Delete unused functions.
11946         (mips_getstring): Delete unused function.
11947         (pmon_insert_breakpoint): Delete #if0ed function.
11948         (PMON_MAX_BP): Delete #if0ed MACRO.
11949         (mips_pmon_bp_info): Delete #if0ed variable.
11950         (pmon_remove_breakpoint): Delete #if0ed function.
11951         * monitor.c (monitor_write_even_block): Delete unused function.
11952         (monitor_write_memory_block): Delete #if0ed code.
11953         * dink32-rom.c (dink32_load): Delete unused function.
11954         (_initialize_dink32_rom): Delete #if0ed code.
11955         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11956
11957         * tui/tui-command.c: Update references.
11958         * tui/tui-io.c: Update references.
11959         * tui/tui-command.h: Update copyright.
11960         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11961
11962         * source.c (ambiguous_line_spec): Delete never-defined function.
11963         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11964         * gdbtypes.c (add_name, add_mangled_type): Ditto.
11965         * cli/cli-cmds.c (validate_comname): Ditto.
11966
11967         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
11968         "tui-data.h".
11969         (tui_set_disassem_content): Rename tuiSetDisassemContent.
11970         (tui_show_disassem): Rename tuiShowDisassem.
11971         (tui_show_disassem_and_update_source): Rename
11972         tuiVerticalDisassemScroll.
11973         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11974         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11975         * tui/tui.h: Update copyright.
11976         (enum tui_status): Define.
11977         * tui/tui-data.h (enum tui_scroll_direction): Define.
11978         * tui/tui-disasm.c: Update copyright.  Update references.
11979         * tui/tui-winsource.c:  Update copyright.  Update references.
11980         * tui/tui-win.c: Update references.
11981         * tui/tui-layout.c: Update references.
11982
11983 2004-01-20  Andrew Cagney  <cagney@redhat.com>
11984
11985         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11986         sym2 to start of block.
11987
11988 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
11989
11990         * MAINTAINERS: Delete mmalloc.
11991         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11992         * NEWS: Mention removal of --with-malloc.
11993         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11994         * config.in: Regenerate.
11995         * configure: Regenerate.
11996         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11997         USE_MMALLOC, MMCHECK_FORCE.
11998         * gdbinit.in: Remove mmalloc.
11999         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12000         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12001         * config/i386/go32.mh: Likewise.
12002         * config/i386/interix.mh: Likewise.
12003         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12004
12005 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
12006
12007         * linespec.c (decode_variable, symtab_from_filename):  Call
12008         error_silent with error message instead of throwing an exception
12009         directly.
12010         * defs.h (error_silent, error_output_message): Add prototypes.
12011         (catch_exceptions_with_msg): Ditto.
12012         * utils.c (error_silent, error_output_message): New functions.
12013         * top.c (catch_exceptions_with_msg): New function.
12014
12015 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
12016
12017         * mi/mi-cmds.h (enum print_values): Add definition.
12018
12019         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12020         type and value for simple data types and just the name and type
12021         for complex ones, if required.
12022
12023         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12024         children, if required.
12025
12026 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12027
12028         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12029         unused declarations.
12030
12031 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12032
12033         * top.h (mapped_symbol_files): Delete declaration.
12034         * main.c (captured_main): Delete option "m" and "mapped".
12035         * objfiles.c (mapped_symbol_files): Delete variable.
12036         * symfile.c (symbol_file_command): Delete mmap code.
12037         (symbol_file_add_with_addrs_or_offsets): Ditto.
12038         (add_symbol_file_command, reread_separate_symbols): Ditto.
12039         * objfiles.h (OBJF_MAPPED): Delete.
12040         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12041         (free_objfile) [USE_MMALLOC]: Ditto.
12042         (open_existing_mapped_file): Delete function.
12043         (open_mapped_file): Delete function.
12044         (map_to_file): Delete function.
12045
12046 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12047
12048         * infrun.c (step_into_function): Account for possible breakpoint
12049         adjustment when computing ``stop_func_start''.
12050
12051 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
12052
12053         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12054         the region size against the size of a pointer, not the size of
12055         a register as given by DEPRECATED_REGISTER_SIZE.
12056
12057 2004-01-19  Andrew Cagney  <cagney@redhat.com>
12058
12059         * tui/tui-regs.h: Include "tui-data.h".
12060         (tuiFirstRegElementNoInLine): Delete declaration.
12061         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12062         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12063         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12064         (tui_calculate_regs_column_count): Rename
12065         tuiCalculateRegsColumnCount.
12066         (tui_check_register_values): Rename tuiCheckRegisterValues.
12067         (tui_show_registers): Rename tuiShowRegisters.
12068         (tui_display_registers_from_line): Rename
12069         tuiDisplayRegistersFromLine.
12070         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12071         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12072         (tui_first_reg_element_no_inline): Rename
12073         tuiFirstRegElementNoInLine.
12074         * tui/tui-data.h: Update copyright.
12075         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12076         * tui/tui-windata.c: Update copyright, update references.
12077         * tui/tui-regs.c: Update copyright, update references.
12078         * tui/tui-win.c: Update copyright, update references.
12079         * tui/tui-layout.c: Update copyright, update references.
12080
12081 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12082
12083         * tui/tui-io.c: Update copyright.
12084         (key_is_end_sequence, key_is_backspace): New functions.
12085         (key_is_command_char, key_is_start_sequence): New function.
12086         (tui_getc): Update references.
12087         * tui/tui-io.h: Update copyright.
12088         (m_tuiStartNewLine): Delete macro.
12089         (m_isBackspace, m_isDeleteChar): Delete macros.
12090         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12091         (m_isNextPage, m_isPrevPage): Delete macros.
12092         (m_isLeftArrow, m_isRightArrow): Delete macros.
12093         (m_isXdbStyleCommandChar): Delete macro.
12094         (key_is_start_sequence): Declare, replace m_isStartSequence.
12095         (key_is_end_sequence): Declare, replace m_isEndSequence.
12096         (key_is_backspace): Declare ,replace m_isBackspace.
12097         (key_is_command_char): Declare, replace m_isCommandChar.
12098         * tui/tui-command.c: Update copyright.
12099         (tuiDispatchCtrlChar): Update references.
12100
12101         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12102         tuiSourceWin.h.
12103
12104         * tui/tui-command.c: Rename tui/tuiCommand.c.
12105         * tui/tui-command.h: Rename tui/tuiCommand.h.
12106         * tui/tui-data.c: Rename tui/tuiData.c.
12107         * tui/tui-data.h: Rename tui/tuiData.h.
12108         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12109         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12110         * tui/tui-io.c: Rename tui/tuiIO.c.
12111         * tui/tui-io.h: Rename tui/tuiIO.h.
12112         * tui/tui-layout.c: Rename tui/tuiLayout.c.
12113         * tui/tui-layout.h: Rename tui/tuiLayout.h.
12114         * tui/tui-regs.c: Rename tui/tuiRegs.c.
12115         * tui/tui-regs.h: Rename tui/tuiRegs.h.
12116         * tui/tui-source.c: Rename tui/tuiSource.c.
12117         * tui/tui-source.h: Rename tui/tuiSource.h.
12118         * tui/tui-stack.c: Rename tui/tuiStack.c.
12119         * tui/tui-stack.h: Rename tui/tuiStack.h.
12120         * tui/tui-win.c: Rename tui/tuiWin.c.
12121         * tui/tui-win.h: Rename tui/tuiWin.h.
12122         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12123         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12124         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12125         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12126         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12127         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12128         * tui/tui-file.c: Update includes.
12129         * tui/tui-hooks.c: Update includes.
12130         * tui/tui-interp.c: Update includes.
12131         * tui/tui.c: Update includes.
12132         * Makefile.in: Update all tui/ dependencies.
12133         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12134
12135         * Makefile.in: Update copyright.  Update dependencies.
12136
12137         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12138         problem.
12139
12140 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12141
12142         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12143         instead of register_gdbarch_init.
12144
12145         * remote-sds.c (tohex): Delete unused function.  Update copyright.
12146         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12147         * v850-tdep.c (v850_register_virtual_size): Ditto.
12148         * target.c (normal_target_post_startup_inferior): Ditto.
12149         * source.c (ambiguous_line_spec): Ditto.
12150         * remote.c (adapt_remote_get_threadinfo): Ditto.
12151         * mi/mi-out.c (out_field_fmt): Ditto.
12152         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12153         (output_control_change_notification): Ditto.
12154         * m68k-tdep.c (m68k_register_byte): Ditto.
12155         (m68k_remote_breakpoint_from_pc): Ditto.
12156         * ui-out.c (init_ui_out_state): Delete unused declaration.
12157         * stabsread.c (search_value): Ditto.
12158         * mi/mi-cmd-env.c (env_cli_command): Ditto.
12159         * maint.c (print_section_table): Ditto.
12160         * infrun.c (set_follow_fork_mode_command): Ditto.
12161
12162 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12163
12164         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12165         DW_CFA_def_cfa_exporession.  Add support for
12166         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12167         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
12168
12169 2004-01-18  Andrew Cagney  <cagney@redhat.com>
12170
12171         * ocd.c: Update copyright.
12172         (bdm_read_register_command): Delete unused function.
12173         (_initialize_remote_ocd): Delete commented out reference.
12174         (get_quoted_char, reset_packet): Delete #if0ed function.
12175         (output_packet, put_quoted_char): Delete #if0ed function.
12176         (stu_put_packet, stu_get_packet): Delete #if0ed function.
12177         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12178         (BDM_BREAKPOINT): Delete #if0ed macro.
12179         (remote_timeout): Delete #if0ed variable.
12180
12181 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
12182
12183         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12184         (core-sol2.o): Remove dependency.
12185         * core-sol2.c: Remove file.
12186
12187 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12188
12189         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12190         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12191         enums.
12192
12193 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12194
12195         * remote.c: Update copyright years.
12196
12197 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12198
12199         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12200
12201 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12202
12203         * mdebugread.c: Update copyright.
12204         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12205         (parse_type, parse_procedure): Ditto.
12206         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12207
12208         * cris-tdep.c (cris_store_struct_return): Put back accidently
12209         deleted function.
12210
12211         * gdbarch.sh: Update copyright year.
12212         * gdbarch.h, gdbarch.c: Re-generate.
12213
12214 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12215
12216         Suggested by George Anzinger.
12217         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12218         correct stack offset.  Include unknown opcode numbers in the error
12219         message.
12220
12221 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12222
12223         * x86-64-tdep.c (x86_64_init_abi): No need to clear
12224         extract_struct_value_address, i386 does not set it.
12225         * sparc64-tdep.c (sparc64_init_abi): Do not set
12226         extract_struct_value_address, never called.
12227         (sparc64_extract_struct_value_address): Delete function.
12228         * m68hc11-tdep.c: Update copyright.
12229         (m68hc11_gdbarch_init): Delete redundant assignment of
12230         extract_struct_value_address.
12231         * i386-tdep.c: Update copyright.
12232         (i386_gdbarch_init): Do not set extract_struct_value_address,
12233         never called.
12234         (i386_extract_struct_value_address): Delete function.
12235         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12236         extract_struct_value_address, never called.
12237         (sparc32_extract_struct_value_address): #if 0 function.  Add
12238         comments explaining its future.
12239
12240 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12241
12242         * arm-tdep.c (arm_write_pc): New function.
12243         (arm_gdbarch_init): Call set_gdbarch_write_pc.
12244
12245 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
12246
12247         * breakpoint.c (must_shift_inst_regs): Delete.
12248         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12249         and SHIFT_INST_REGS.
12250         * infcmd.c (step_1, step_1_continuation): Delete references to
12251         SHIFT_INST_REGS.
12252         * infrun.c (keep_going): Likewise.
12253         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12254         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12255
12256 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12257
12258         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12259         * gdbarch.h, gdbarch.c: Re-generate.
12260         * infcmd.c (print_return_value): Delete reference to
12261         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12262
12263         * cris-tdep.c (cris_gdbarch_init): Do not set
12264         deprecated_extract_struct_value_address.
12265
12266         * xstormy16-tdep.c: Update copyright.
12267         (xstormy16_extract_struct_value_address): Update to current
12268         extract struct value address interface.
12269         (xstormy16_gdbarch_init): Set extract_struct_value_address.
12270         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12271         current extract struct value address interface.
12272         (sh64_gdbarch_init): Set extract_struct_value_address.
12273
12274         * cris-tdep.c: Update copyright.
12275         (cris_extract_struct_value_address): Delete function.
12276         (struct_return_address): Delete variable.
12277         (cris_store_struct_return): Do not set struct_return_address.
12278
12279         * mcore-tdep.c: Update copyright.
12280         (mcore_extract_struct_value_address): Delete function.  Update
12281         comments.
12282         (mcore_gdbarch_init): Update.
12283         * mn10300-tdep.c: Update copyright.
12284         (mn10300_extract_struct_value_address): Delete function.
12285         (mn10300_gdbarch_init): Update.
12286         * v850-tdep.c: Update copyright.
12287         (v850_extract_struct_value_address): Delete.
12288         (v850_gdbarch_init): Update.
12289         * ns32k-tdep.c: Update copyright.
12290         (ns32k_extract_struct_value_address): Delete.
12291         (ns32k_gdbarch_init): Update.
12292         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12293         (hppa_gdbarch_init): Update.
12294         * vax-tdep.c: Update copyright.
12295         (vax_extract_struct_value_address): Delete.
12296         (vax_gdbarch_init): Update.
12297
12298         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12299         * gdbarch.h, gdbarch.c: Re-generate.
12300         * procfs.c (procfs_fetch_registers): Delete reference to
12301         DEPRECATED_NPC_REGNUM.
12302         (procfs_store_registers): Ditto.
12303         * regcache.c (generic_target_write_pc): Simplify.
12304         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
12305
12306         * core-sol2.c (fetch_core_registers): Replace
12307         DEPRECATED_NPC_REGNUM with equivalent tdep value.
12308
12309         * hppa-tdep.c: Update copyright year.
12310         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12311         NPC_REGNUM.
12312         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12313
12314         * mips-tdep.c (mips_write_pc): New function.
12315         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12316         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12317         (mips_find_saved_regs, mips_software_single_step: Ditto.
12318         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12319         mips_init_extra_frame_info, mips_pop_frame): Ditto.
12320
12321 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12322
12323         * mips-tdep.c: Re-indent.  Group functions by ABI.
12324
12325 2004-01-17  Andrew Cagney  <cagney@redhat.com>
12326
12327         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12328         * gdbarch.c: Re-generate.
12329         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12330         DECR_PC_AFTER_BREAK to zero.
12331         * vax-tdep.c (vax_gdbarch_init): Ditto.
12332         * v850-tdep.c (v850_gdbarch_init): Ditto.
12333         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12334         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12335         * sh-tdep.c (sh_gdbarch_init): Ditto.
12336         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12337         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12338         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12339         * mips-tdep.c (mips_gdbarch_init): Ditto.
12340         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12341         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12342         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12343         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12344         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12345         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12346         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12347         * frv-tdep.c (frv_gdbarch_init): Ditto.
12348         * cris-tdep.c (cris_gdbarch_init): Ditto.
12349         * avr-tdep.c (avr_gdbarch_init): Ditto.
12350         * arm-tdep.c (arm_gdbarch_init): Ditto.
12351         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12352
12353 2004-01-17  J. Brobecker  <brobecker@gnat.com>
12354
12355         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12356         Delete, no longer used.
12357         (read_subrange_type): New function, mostly extracted from
12358         read_array_type().
12359         (read_array_type): Replace extracted code by call to
12360         read_subrange_type().
12361         (dwarf2_get_attr_constant_value): New function.
12362         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12363         (add_partial_symbol): Likewise.
12364         (process_die): Likewise.
12365         (new_symbol): Likewise.
12366         (read_type_die): Likewise.
12367
12368 2004-01-16  Andrew Cagney  <cagney@redhat.com>
12369
12370         * symfile.c: Update copyright year.
12371         (compare_symbols): Delete unused function.
12372         * stabsread.c: Update copyright year.
12373         (lrs_general_complaint): Delete unused function.
12374         (ref_search_value): Ditto.
12375         (get_substring): Delete declaration.
12376         * sh64-tdep.c: Update copyright year.
12377         (sh64_get_gdb_regnum): Delete unused function.
12378         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12379         Delete unused function.
12380
12381 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
12382
12383         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12384         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12385
12386 2004-01-16  Andrew Cagney  <cagney@redhat.com>
12387
12388         Changes from Peter Schauer.
12389         * rs6000-tdep.c: Update copyright year.
12390         (rs6000_push_dummy_call): Update the stack pointer before
12391         accessing the corresponding stack region.
12392         * rs6000-nat.c: Update copyright year.
12393         (set_host_arch): Set "info.abfd" to "exec_bfd".
12394
12395 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
12396
12397         * blockframe.c: Update copyright year.
12398         (inside_entry_func): Don't treat a zero PC specially.
12399
12400 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
12401
12402         * gcore.c (gcore_copy_callback): Use paddr_d to print size
12403         variable.
12404         (gcore_create_callback): Ditto.  Skip any memory segment that has
12405         no permissions set.
12406
12407 2004-01-14  David Carlton  <carlton@kealia.com>
12408
12409         Change symbols for C++ nested types to contain the fully qualified
12410         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
12411         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12412         c++/895.
12413         * c-exp.y (qualified_type): Handle types nested within classes.
12414         * cp-namespace.c: Update comments.
12415         (cp_set_block_scope): Delete #if 0.
12416         (cp_lookup_nested_type): Handle types nested within classes.
12417         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12418         when appropriate.
12419         (add_partial_symbol): Add the name of the enclosing namespace to
12420         types.
12421         (pdi_needs_namespace): New.
12422         (add_partial_namespace): Tweak comment.
12423         (add_partial_structure): New.
12424         (psymtab_to_symtab_1): Initialize processing_current_prefix
12425         here...
12426         (process_die): instead of here.
12427         (read_structure_scope): Try to figure out the name of the class or
12428         namespace that the structure might be defined within.
12429         (read_enumeration): Generate fully-qualified names, if possible.
12430         (read_namespace): Don't set name to NULL.
12431         (die_specification): New.
12432         (new_symbol): Generate fully-qualified names for types.
12433         (read_type_die): Determine appropriate prefix.
12434         (determine_prefix): New.
12435         (typename_concat): New.
12436         (class_name): New.
12437         * valops.c (value_aggregate_elt): Pass NOSIDE to
12438         value_struct_elt_for_reference.
12439         (value_struct_elt_for_reference): Make static, add NOSIDE
12440         parameter, call value_maybe_namespace_elt as a last resort.
12441         (value_namespace_elt): Break out code into
12442         value_maybe_namespace_elt.
12443         (value_maybe_namespace_elt): New.
12444
12445 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12446
12447         * mips-tdep.c (mips_convert_register_p): Handle both raw and
12448         cooked floating-point registers.
12449         (mips_gdbarch_init): Set convert_register_p, register_to_value,
12450         and value_to_register.
12451
12452 2004-01-13  Andrew Cagney  <cagney@redhat.com>
12453
12454         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12455         * gdbarch.c: Re-generate.
12456         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12457         FUNCTION_START_OFFSET.
12458         * v850-tdep.c (v850_gdbarch_init): Ditto.
12459         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12460         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12461         * sh-tdep.c (sh_gdbarch_init): Ditto.
12462         * s390-tdep.c (s390_gdbarch_init): Ditto.
12463         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12464         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12465         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12466         * mips-tdep.c (mips_gdbarch_init): Ditto.
12467         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12468         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12469         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12470         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12471         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12472         * i386-tdep.c (i386_gdbarch_init): Ditto.
12473         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12474         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12475         * frv-tdep.c (frv_gdbarch_init): Ditto.
12476         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12477         * cris-tdep.c (cris_gdbarch_init): Ditto.
12478         * avr-tdep.c (avr_gdbarch_init): Ditto.
12479         * arm-tdep.c (arm_gdbarch_init): Ditto.
12480         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12481
12482 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
12483
12484         * infrun.c (follow_fork_mode_ask): Remove.
12485         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12486         (follow_fork): Simplify and remove internal error for
12487         follow_fork_mode_ask.
12488         (_initialize_infrun): Update "set follow-fork-mode" help text.
12489
12490 2004-01-13  Andrew Cagney  <cagney@redhat.com>
12491
12492         * configure.in: Update copyright year.
12493         (build_warnings): Add -Wunused-label.
12494         * configure: Re-generate.
12495
12496 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12497
12498         * exec.h (exec_ops): Make "extern".
12499
12500         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12501         the function is void.
12502         (mips_pseudo_register_write): Ditto.
12503
12504 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12505
12506         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12507         call.  Never defined.
12508         * sparc-tdep.h (struct frame_info): Add opaque declaration.
12509         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12510         (struct sparc_gregset, struct regcache): Ditto.
12511         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
12512
12513 2004-01-12  Andrew Cagney  <cagney@redhat.com>
12514
12515         * mi/ChangeLog: Delete file.  Renamed to ...
12516         * mi/ChangeLog-1999-2003: New file.
12517         * tui/ChangeLog: Delete file.  Renamed to ...
12518         * tui/ChangeLog-1998-2003: New file.
12519
12520 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
12521
12522         * sparc64nbsd-tdep.c: Include "regset.h".
12523         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12524         Remove variables.
12525         (fetch_core_registers): Remove function.
12526         (sparc64nbsd_core_fns): Remove variable.
12527         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12528         functions.
12529         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12530         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12531         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12532
12533         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12534         sparc_extract_struct_value_address.
12535         (sparc32_gdbarch_init): Set extract_struct_value_address.
12536         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12537         function.
12538         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
12539         return_value_on_stack.
12540
12541         * NEWS: Mention that %cs and %ss have been added to the AMD64
12542         configurations
12543
12544         * frame.c: Update copyright year.
12545         (get_prev_frame): Improve comment.
12546
12547         * sparc64fbsd-tdep.c: Include "regset.h".
12548         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12549         Remove variables.
12550         (fetch_core_registers): Remove function.
12551         (sparc64fbsd_core_fns): Remove variable.
12552         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12553         functions.
12554         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12555         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12556         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12557
12558         * sparcnbsd-tdep.c: Include "regset.h".
12559         (fetch_core_registers): Remove function.
12560         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12561         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12562         functions.
12563         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12564         TDEP->fpregset.
12565         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12566
12567         * sparc-tdep.h (struct regset): Provide opaque declaration.
12568         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12569         fpregset and sizeof_fpregset members.
12570         * sparc-tdep.c (struct regset): Provide opaque declaration.
12571         (sparc_regset_from_core_section): New function.
12572         (sparc32_gdbarch_init): Initialize TDEP->gregset,
12573         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12574         Set regset_from_core_section when appropriate.
12575
12576 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
12577
12578         * x86-64-tdep.c (amd64_non_pod_p): New function.
12579         (amd64_classify_aggregate): Return class memory for non-POD
12580         C++ structure types.
12581
12582         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12583         argument.  Use it to reserve a register if necessary.
12584         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12585         amd64_push_arguments.
12586
12587         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12588
12589         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
12590         register numbers in comments.
12591         * x86-64-tdep.h: Update copyright year.
12592         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12593         Adjust for addition of %cs and %ss.
12594         * amd64fbsd-nat.c: Update copyright year.
12595         (reg_offset): Add register offsets for %cs and %ss.
12596         * amd64fbsd-tdep.c: Update copyright year.
12597         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12598         (amd64fbsd_sc_reg_offset): Likewise.
12599         * x86-64-linux-nat.c: Update copyright year.
12600         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12601         and %ss.
12602         * amd64nbsd-nat.c: Update copyright year.
12603         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12604         * amd64nbsd-tdep.c: Update copyright year.
12605         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12606         * x86-64-linux-tdep.c: Update copyright year.
12607         (user_to_gdb_regmap): Add mapping for %cs and %ss.
12608         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12609         * regformats/reg-x86-64.dat: Add %cs and %ss.
12610
12611         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
12612         variables to prevent long lines.  Update comments to reflect
12613         reality.
12614
12615 2004-01-09  David Carlton  <carlton@kealia.com>
12616
12617         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
12618         * dwarf2read.c (read_namespace): Pull out name-generating code
12619         into namespace_name. Rename previous_namespace to previous_prefix
12620         and processing_current_namespace to processing_current_prefix..
12621         (namespace_name): New function.
12622         (add_partial_symbol): Substitute uses of pdi->name with
12623         actual_name.
12624         * cp-support.h: Rename processing_current_namespace to
12625         processing_current_prefix.
12626         Update copyright year.
12627         * cp-namespace.c: Rename processing_current_namespace to
12628         processing_current_prefix.
12629         Update copyright year.
12630
12631 2004-01-09  Andrew Cagney  <cagney@redhat.com>
12632
12633         * jv-valprint.c, ser-unix.c: Add missing copyright years.
12634
12635 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
12636
12637         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12638         complaining.
12639         (process_one_symbol): Deal with N_PATCH stabs.
12640
12641 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
12642
12643         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12644         ifdeffed code.
12645         Update copyright year.
12646
12647 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
12648
12649         * config/pa/tm-hppa.h: Update extern declarations for
12650         hppa32_hpux_frame_saved_pc_in_sigtramp,
12651         hppa32_hpux_frame_base_before_sigtramp, and
12652         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12653
12654 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
12655
12656         * config/pa/tm-hppah.h: Update copyright years.
12657
12658 2004-01-08  Andrew Cagney  <cagney@redhat.com>
12659
12660         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12661         (mips_o32_reg_struct_has_addr): Delete function.
12662         (mips_gdbarch_init): Update.
12663         (mips_extract_struct_value_address): Delete function.
12664
12665 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
12666
12667         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12668         reality.
12669
12670 2004-01-07  Andrew Cagney  <cagney@redhat.com>
12671
12672         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12673         architecture's elf flags (when available).
12674
12675         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12676         FPU to the start, check the MIPS FPU when looking for an old
12677         architecture.
12678         (set_mipsfpu_single_command): Update the architecture.
12679         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12680
12681         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12682         (mips_mask_address_p): Add "tdep" parameter.
12683         (show_mask_address, mips_addr_bits_remove): Update.
12684         (mips_dump_tdep): Update.
12685         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12686         (MIPS_STACK_ARGSIZE): Delete macro.
12687         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12688         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12689         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12690         (mips_dump_tdep): Update.
12691         (MIPS_SAVED_REGSIZE): Delete macro.
12692         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12693         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12694         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12695         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12696         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12697         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12698         (mips_pop_frame, return_value_location): Update.
12699         (mips_n32n64_return_value, mips_dump_tdep): Update.
12700
12701         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12702         MIPS ABI.
12703
12704         * mips-tdep.c: Update copyright.
12705         (mips_gdbarch_init): Merge two code blocks handling the register
12706         name and number layout.
12707
12708 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
12709
12710         * tracepoint.c (validate_actionline): Fix segv at EOF
12711
12712 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
12713
12714         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12715         properly for static fields.
12716
12717 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
12718             Jason Molenda  <jmolenda@apple.com>
12719
12720         * disasm.c: Update copyright to include 2004.
12721         (do_mixed_source_and_assembly): For uiout asm list
12722         and tuple cleanups, initialize to null_cleanup instead of
12723         NULL and do so prior to loop.  Only reset when we close off
12724         the tuple/list.  Move check for whether to close off the
12725         asm tuple/list to after dump_insns call where it will be run
12726         on each loop iteration.
12727
12728 2004-01-05  Andrew Cagney  <cagney@redhat.com>
12729
12730         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12731         should be a switch case and not a label.
12732         * mips-tdep.c (mips32_next_pc): Delete unused labels
12733         "greater_equal_branch" and "less_zero_branch".
12734         * jv-valprint.c (java_print_value_fields): Delete unused label
12735         "flush_it".
12736
12737         * target.c (unpush_target): Only close a target that is in the
12738         target stack.
12739
12740 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
12741
12742         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12743         address from [sp + 64] instead of %o2.
12744
12745         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
12746         fixes PR backtrace/1476.
12747
12748 2004-01-05  Andrew Cagney  <cagney@redhat.com>
12749
12750         * libunwind-frame.h (struct frame_id): Add opaque declaration,
12751         move to start of file.
12752         * i386-tdep.h (struct regcache): Add opaque declaration.
12753         * config/ia64/nm-linux.h (struct target_ops): Add opaque
12754         declaration.
12755         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12756         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12757         * win32-nat.c (fake_create_process): Use ISO C style definition.
12758         * stabsread.c (define_symbol): Delete #ifndef
12759         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12760         stabs_argument_has_addr call, macro never defined.
12761
12762 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
12763
12764         * op50-rom.c: Delete.
12765         * w89k-rom.c: Delete.
12766         * Makefile.in: Remove references.
12767
12768 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12769
12770         * x86-64-tdep.c: Update copyright year.
12771         (struct amd64_register_info): Rename from x86_64_register_info.
12772         (amd64_register_info): Rename from x86_64_register_info.
12773         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12774         (amd64_register_name): Rename from x86_64_register_name.
12775         (amd64_register_type): Rename from x86_64_register_type.
12776         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12777         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12778         (amd64_dwarf_reg_to_regnum): Rename from
12779         x86_64_dwarf_reg_to_regnum.
12780         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12781         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12782         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12783         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12784         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12785         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12786         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12787         (amd64_frame_cache): Rename from x86_64_frame_cache.
12788         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12789         (amd64_frame_prev_register): Rename from
12790         x86_64_frame_prev_register.
12791         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12792         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12793         (amd64_sigtramp_frame_cache): Rename from
12794         x86_64_sigtramp_frame_cache.
12795         (amd64_sigtramp_frame_prev_register): Rename from
12796         x86_64_sigtramp_frame_prev_register.
12797         (amd64_sigtramp_frame_unwind): Rename from
12798         x86_64_sigtramp_frame_unwind.
12799         (amd64_sigtramp_frame_sniffer): Rename from
12800         x86_64_sigtramp_frame_sniffer.
12801         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12802         (amd64_frame_base): Rename from x86_64_frame_base.
12803         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12804         (amd64_frame_align): Rename from x86_64_frame_align.
12805         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12806         (amd64_regset_from_core_section): Rename from
12807         x86_64_regset_from_core_section.
12808         (x86_64_init_abi): Update comments.
12809
12810 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
12811
12812         * MAINTAINERS (write after approval): Add myself.
12813
12814 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12815
12816         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12817         `float' arguments.
12818
12819 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
12820
12821         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12822         such that it mentions a specific version of GCC that exhibits this
12823         bug.
12824
12825 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
12826
12827         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12828         structure that has a single `float' member, store it in %f1 in
12829         addition to %f0.
12830
12831         * sparc-sol2-nat.c: Add missing '\'.
12832
12833         * sparc-tdep.c (sparc32_return_value): New function.
12834          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12835         Remove functions.
12836         (sparc32_gdbarch_init): Set return_value, don't set
12837         extract_return_value, store_return_value, use_struct_convention
12838         and return_value_on_stack.
12839
12840         * sparc-sol2-nat.c: Add missing ')'.
12841
12842 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12843
12844         * infrun.c (handle_step_into_function): New function.
12845         (handle_inferior_event): Extract out some code into the new
12846         function above.
12847
12848 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12849
12850         * infrun.c (handle_inferior_event): Move the declaration of
12851         real_stop_pc inside the if blocks where it is used.
12852
12853 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
12854
12855         * sparc64-tdep.c (sparc64_16_byte_align_p)
12856         (sparc64_store_floating_fields, sparc64_store_floating_fields):
12857         Use check_typedef to get subtypes of structures and unions.
12858         (sparc64_store_return_value): Fix calculation of the appropriate
12859         offset into VALBUF when storing a structure or union.
12860         (sparc64_return_value): New function.
12861         (sparc64_use_struct_convention): Remove function.
12862         (sparc64_init_abi): Set return_value, don't set
12863         extract_return_value, store_return_value and
12864         use_struct_convention.
12865
12866 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
12867
12868         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12869         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12870         gdb/config/alpha/xm-alphaosf.h,
12871         gdb/config/powerpc/tm-ppcle-eabi.h,
12872         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12873         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12874         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12875         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12876         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12877         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12878         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12879         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12880         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12881         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12882         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12883         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12884         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12885         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12886         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12887         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12888         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12889         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12890         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12891         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12892         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12893         Remove lines for .cvsignore files.
12894
12895 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12896
12897         * infrun.c: Back out the previous change.
12898
12899 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
12900
12901         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
12902         sparc-*-sunos4* to the list of REMOVED configurations.
12903
12904         * configure.tgt: Add back sparc-*-vxworks*.
12905         * remote-vxsparc.c: Remove all includes except for "defs.h",
12906         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12907         Include "sparc-tdep.h".
12908         (SPARC_R_G1): New define.
12909         (vxsparc_gregset): New variable.
12910         (ext_format_sparc): Remove extern declaration.
12911         (vx_read_register): Rewrite to use sparc32_supply_gregset and
12912         sparc32_supply_fpregset.
12913         (vx_write_register): Rewrite to use sparc32_collect_gregset,
12914         sparc_collect_rwindow and sparc32_collect_fpregset.
12915         * config/sparc/tm-vxworks.h: New file, based on recently removed
12916         tm-vxsparc.h.
12917         * config/sparc/vxworks.mt: New file, based on recently removed
12918         vxworks.mt.
12919
12920 2004-01-03  J. Brobecker  <brobecker@gnat.com>
12921
12922         * infrun.c (handle_step_into_function): New function.
12923         (handle_inferior_event): Extract out some code into the new
12924         function above.
12925
12926 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
12927
12928         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12929         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12930         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12931         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12932         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12933         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12934         (sparc_nat_h): New variable.
12935         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12936         (tm-sun4os4.h): Remove dependency.
12937         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12938         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12939         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12940         sparc-tdep.o): Update dependencies.
12941         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12942         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12943         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12944         dependencies.
12945         * configure.host: Remove existing sparc-*-lynxos*,
12946         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12947         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12948         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
12949         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12950         triplets.
12951         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12952         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12953         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12954         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
12955         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12956         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12957         sparc64-*-solaris2* and sparc64-*-* triplets.
12958         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
12959         "symtab.h" and "objfiles.h".
12960         (BIAS): Remove define.
12961         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12962         (X_DISP19): Remove macros.
12963         (sparc_fetch_instruction): Remove function.
12964         (struct gdbarch_tdep): Remove definition.
12965         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12966         (sparc_breakpoint_from_pc): Remove function.
12967         (struct sparc64_frame_cache): Remove definition.
12968         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12969         sparc64_unwind_pc): Remove functions.
12970         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12971         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
12972         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
12973         (sparc64_frame_cache): Change return type to `struct
12974         sparc_frame_cache *'.  Simply call sparc_frame_cache.
12975         (sparc64_frame_this_id, sparc64_frame_prev_register,
12976         sparc64_frame_base_address): Use `struct sparc_frame_cache'
12977         instead of `struct sparc64_frame_cache.
12978         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12979         sparc_analyze_control_transfer, sparc_software_single_step,
12980         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12981         _initialize_sparc64_tdep): Remove functions.
12982         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12983         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12984         macros.
12985         (sparc64_supply_gregset, sparc64_collect_gregset,
12986         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12987         (sparc64_init_abi): New function.
12988         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
12989         inclusion guard.  Include "sparc-tdep.h".
12990         (BIAS): Define.
12991         (r_tstate_offset, r_fprs_offset): New defines.
12992         (enum sparc_regnum): Remove defenition.
12993         (enum sparc64_regnum): Reformat.
12994         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12995         (sparc64_init_abi, sparc64_supply_gregset,
12996         sparc64_collect_gregset, sparc64_supply_fpregset,
12997         sparc64_collect_fpregset): New prototypes.
12998         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12999         Add extern declarations.
13000         (sparc64_sol2_init_abi): New prototype.
13001         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13002         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13003         prototypes.
13004         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13005         "sparnbsd-nat.h".
13006         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13007         functions.
13008         (_initialize_sparc64fbsd_nat): Remove initialization of
13009         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13010         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13011         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
13012         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
13013         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13014         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13015         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13016         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13017         (sparc64fbsd_r_y_offset): Remove variables.
13018         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13019         Make static and const.
13020         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13021         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13022         functions.
13023         (sparc64fbsd_gregset): New variable.
13024         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13025         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13026         and sparc64_supply_fpregset.
13027         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13028         (sparc64fbsd_sigtramp_frame_this_id)
13029         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13030         (sparc64fbsd_sigtramp_frame_unwind): New variable.
13031         (sparc64fbsd_sigtramp_frame_sniffer): New function.
13032         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13033         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
13034         * sparcnbsd-tdep.c: Update copyright year.  Include
13035         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13036         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13037         "value.h" and "sparcnbsd-tdep.h".
13038         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13039         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13040         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13041         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13042         defines.
13043         (sparcnbsd_gregset): New variable.
13044         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13045         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13046         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13047         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13048         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13049         variables.
13050         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13051         (sparc32nbsd_sigcontext_frame_this_id)
13052         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13053         (sparc32nbsd_sigcontext_frame_unwind): New variable.
13054         (sparc32nbsd_sigtramp_frame_sniffer): New function.
13055         (sparcnbsd_get_longjmp_target_32,
13056         sparcnbsd_get_longjmp_target_64): Remove functions.
13057         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13058         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13059         sparcnbsd_init_elf): Remove.
13060         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13061         (sparcnbsd_elf_init_abi): New functions.
13062         (_initialize_sparcnbsd_tdep): New prototype.
13063         (_initialize_sparnbsd_tdep): Update.
13064         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13065         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
13066         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13067         * config/sparc/linux.mh: Update comment.
13068         (XM_FILE, HOST_IPC): Remove variables.
13069         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
13070         sparc-linux-nat.o.
13071         * config/sparc/linux.mt: Update comment.
13072         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13073         * config/sparc/nbsd.mt: Reformat.
13074         * config/sparc/nbsd64.mh: Update comment.
13075         (NATDEPFILES): Add sparc-nat.o.
13076         * config/sparc/nbsd64.mt: Update comment.
13077         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13078         (TM_FILE): Set to tm-nbsd.h.
13079         * config/sparc/nbsdelf.mh: Update comment.
13080         (NATDEPFILES): Add sparc-nat.o.
13081         (XM_FILE): Delete.
13082         * config/sparc/nbsdaout.mh: Update comment.
13083         (NATDEPFILES): Add sparc-nat.o
13084         (XM_FILE): Delete.
13085         * config/sparc/nm-linux.h: Update copyright year.  Don't include
13086         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
13087         inclusion.
13088         (KERNEL_U_SIZE): Remove define.
13089         (kernel_u_size): Remove prototype.
13090         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13091         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
13092         "regcache.h".
13093         (CHILD_PREPARE_TO_STORE): Remove define.
13094         * config/sparc/nm-nbsdaout.h: Tweak some comments.
13095         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13096         sparcnbsd-nat.c: Rewrite files.
13097         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13098         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13099         sparcnbsd-tdep.h: Remove files.
13100         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13101         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13102         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13103         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13104         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13105         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13106         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13107         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13108         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13109         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13110         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13111         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13112         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13113         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13114         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13115         * config/sparc/linux64.mh, config/sparc/linux64.mt,
13116         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13117         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13118         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13119
13120 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13121
13122         From 2003-12-18 Kazuhiro Inaoka:
13123         * configure.host: Add m32r-linux target.
13124
13125 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
13126
13127         * top.c (print_gdb_version): Update year to 2004.
13128
13129 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
13130
13131         * MAINTAINERS: Add myself to the write-after-approval category.
13132
13133 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
13134
13135         From Bernardo Innocenti <bernie@develer.com>:
13136         * configure.tgt: Add uClinux target.
13137
13138 2004-01-02  Andrew Cagney  <cagney@redhat.com>
13139
13140         * utils.c (do_my_cleanups): Make static, add forward declaration.
13141         * defs.h (do_my_cleanups): Delete declaration.
13142
13143 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
13144
13145         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13146         bfd/ChangeLog-0203.
13147
13148 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
13149
13150         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
13151         in <machine/reg.h>.
13152         * configure, config.in: Regenerate.
13153
13154 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13155 tui/ChangeLog-1998-2003.
13156 \f
13157 Local Variables:
13158 mode: change-log
13159 left-margin: 8
13160 fill-column: 74
13161 version-control: never
13162 End: