]> Git Repo - binutils.git/blob - gdb/ChangeLog
* config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
[binutils.git] / gdb / ChangeLog
1 2004-10-09  Mark Kettenis  <[email protected]>
2
3         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
4         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
5         * config/i386/nm-nbsdaout.h: Remove file.
6         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
7         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
8         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
9         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
10         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
11         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
12         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
13         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
14         (ldd, ld_un, ld_2): Remove defines.
15         * config/i386/nm-obsd.h: Likewise.
16
17 2004-10-09  Paul Hilfinger  <[email protected]>
18
19         * ada-lex.l: Remove useless rule whose right-context clause
20         causes unreferenced static function warning for yyrealloc.
21         (ada_flex_use): Remove the artificial reference to yyrealloc.
22
23 2004-10-08  Andrew Cagney  <[email protected]>
24
25         * target.h (struct target_ops): Rename to_xfer_memory to
26         deprecated_xfer_memory.
27         * target.c: Update.
28         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
29         * wince.c: Update.
30         * win32-nat.c: Update.
31         * v850ice.c: Update.
32         * uw-thread.c: Update.
33         * thread-db.c: Update.
34         * sol-thread.c: Update.
35         * remote.c: Update.
36         * remote-vx.c: Update.
37         * remote-st.c: Update.
38         * remote-sim.c: Update.
39         * remote-sds.c: Update.
40         * remote-rdp.c: Update.
41         * remote-rdi.c: Update.
42         * remote-mips.c: Update.
43         * remote-m32r-sdi.c: Update.
44         * remote-e7000.c: Update.
45         * procfs.c: Update.
46         * ppc-bdm.c: Update.
47         * nto-procfs.c: Update.
48         * monitor.c: Update.
49         * linux-nat.c: Update.
50         * inftarg.c: Update.
51         * hpux-thread.c: Update.
52         * go32-nat.c: Update.
53         * gnu-nat.c: Update.
54         * exec.c: Update.
55         * corelow.c: Update.
56         * bsd-kvm.c: Update.
57         * aix-thread.c: Update.
58
59 2004-10-08  Andrew Cagney  <[email protected]>
60
61         * target.c (debug_target): Move to near start of file.
62         (target_stopped_data_address_p): Re-org logic, add casts.
63
64 2004-10-02  Mark Kettenis  <[email protected]>
65
66         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
67         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
68         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
69         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
70         New defines.
71
72 2004-10-08  Jeff Johnston  <[email protected]>
73
74         * target.h (to_stopped_data_address): Change prototype to
75         take a CORE_ADDR pointer and return an int.
76         * target.c (update_current_target): Change to_stopped_data_address
77         to match new prototype.
78         (debug_to_stopped_data_address): Change appropriately.
79         * breakpoint.c (bpstat_stop_status): Change call to
80         target_stopped_data_address to use new prototype.
81         * frv-tdep.c (frv_have_stopped_data_address): New function.
82         (frv_stopped_data_address): Change to new prototype and
83         functionality.
84         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
85         prototype and functionality.
86         (ia64_stopped_by_watchpoint): New function.
87         * i386-nat.c (i386_stopped_data_address): Change to new
88         prototype and functionality.
89         (i386_stopped_by_watchpoint): New function.
90         * remote.c (remote_stopped_data_address): Change to new prototype
91         and functionality.
92         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
93         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
94         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
95         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
96         new i386_stopped_by_watchpoint function.
97         (i386_stopped_by_watchpoint): New prototype.
98         (i386_stoppped_data_address): Change to new prototype.
99         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
100         new ia64_stopped_by_watchpoint function.
101         (ia64_stopped_by_watchpoint): New prototype.
102         (ia64_stopped_data_address): Ditto.
103
104 2004-10-08  Paul Hilfinger  <[email protected]>
105
106         * ada-typeprint.c (ada_print_type): Use int_string for printing
107         modulus of modular type.
108         * ada-lang.h (ada_modulus): Change return type to unsigned.
109         * ada-lang.c (ada_language_arch_info): Correct type of 
110         string_char_type.
111         (ada_modulus): Return unsigned result.
112         (ada_lookup_symbol): Remove user disambiguation and modify comment 
113         accordingly.
114         
115 2004-10-08 Eric Botcazou  <[email protected]>     
116
117         Committed by Paul Hilfinger.
118         * ada-lang.c (decode_packed_array): On big-endian targets, 
119         left-justify the value if it comes with a modular type.
120
121 2004-10-08  Joel Brobecker  <[email protected]>        
122
123         Committed by Paul Hilfinger.
124         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
125         (is_name_suffix): Add support for "___JM" suffixes.
126         (ada_check_typedef): Renames ada_completed_type. 
127         Update all users of CHECK_TYPEDEF, check_typedef, and 
128         ada_complete_type to call ada_check_typedef.
129         * ada-typeprint.c: Likewise.
130         * ada-valprint.c: Likewise.
131
132 2004-10-08  Corinna Vinschen  <[email protected]>
133
134         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
135
136 2004-10-08  Nick Roberts  <[email protected]>
137
138         * MAINTAINERS: Update e-mail address.
139
140 2004-10-07  Daniel Jacobowitz  <[email protected]>
141
142         From Maciej W. Rozycki  <[email protected]>:
143         * mips-tdep.c (mips32_next_pc): Check the register's contents,
144         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
145
146 2004-10-07  Kei Sakamoto  <[email protected]>
147
148         * m32r-tdep.c (decode_prologue): Support functions written
149         in assembler language. Recognize trap instructions as the
150         end of prologue.
151         (m32r_frame_unwind_cache): Ditto.
152         (m32r_skip_prologue): Extend search limit. Quit analyzing
153         prologue if pc's location is not readable.
154
155 2004-10-06  Paul N. Hilfinger  <[email protected]>
156
157         * Makefile.in (.l.c): Do conversions of names of alloc and free 
158         functions that are done for .y.c files, plus special one
159         for yy_flex_realloc.  Also, correct missing-file tests here.
160         * ada-lex.l (malloc, free): Remove macros.
161         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
162         xrealloc.
163         (ada_flex_use): Dummy definition to remove warnings about unused
164         functions.
165         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
166         to suppress warning.
167         
168 2004-10-06  Corinna Vinschen  <[email protected]>
169
170         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
171         RETURN_VALUE.
172         (sh_return_value_fpu): Ditto for CPUs with FPU.
173         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
174         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
175         Install sh_return_value_nofpu resp. sh_return_value_fpu as
176         RETURN_VALUE functions.
177
178 2004-10-06  Corinna Vinschen  <[email protected]>
179
180         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
181         (sh_pseudo_register_write): Ditto.
182
183 2004-10-06  Corinna Vinschen  <[email protected]>
184
185         * sh-tdep.c (IS_MACL_STS): New define.
186         (IS_MOVI20): Ditto.
187         (IS_MACL_LDS): Ditto.
188         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
189         instructions in prologue.
190         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
191         instructions in epilogue.
192
193 2004-10-06  Corinna Vinschen  <[email protected]>
194
195         * sh-tdep.c (SH_NUM_REGS): Define as 67.
196         (sh_sh_register_name): Add eight empty register names.
197         (sh_sh3_register_name): Ditto.
198         (sh_sh3e_register_name): Ditto.
199         (sh_sh2e_register_name): Ditto.
200         (sh_sh2a_register_name): New function, defining SH2A register set.
201         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
202         in nofpu case.
203         (sh_sh_dsp_register_name): Add eight empty register names.
204         (sh_sh3_dsp_register_name): Ditto.
205         (sh_sh4_register_name): Ditto.
206         (sh_sh4_nofpu_register_name): Ditto.
207         (sh_sh4al_dsp_register_name): Ditto.
208         (sh2a_show_regs): New function.
209         (sh2a_nofpu_show_regs): New function.
210         (sh_sh2a_register_type): New function.
211         (do_bank_register_info): New function.
212         (sh_print_pseudo_register): Call do_bank_register_info.
213         Call sh_print_pseudo_register for valid "bank" register.
214         (sh_sh2a_register_sim_regno): New function.
215         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
216         Increment pseudo register count by one for all sh variants with
217         pseudo registers to accomodate pseudo bank register.
218         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
219         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
220         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
221         Increment pseudo register numbers.
222
223 2004-10-06  Corinna Vinschen  <[email protected]>
224
225         * dwarf2read.c (read_subroutine_type): Call make_function_type
226         instead of lookup_function_type.
227
228 2004-10-05  Jim Blandy  <[email protected]>
229
230         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
231         (Previous change missed some uses.)
232
233 2004-10-05  Andrew Cagney  <[email protected]>
234
235         * target.h (deprecated_child_ops): Rename child_ops.
236         * wince.c: Update copyright.  Rename child_ops.
237         * win32-nat.c: Rename child_ops.
238         * target.c: Rename child_ops.
239         * rs6000-nat.c: Rename child_ops.
240         * linux-nat.c: Rename child_ops.
241         * infttrace.c: Rename child_ops.
242         * inftarg.c: Rename child_ops.
243         * infptrace.c: Rename child_ops.
244         * hppah-nat.c: Update copyright.  Rename child_ops.
245         * hpux-thread.c: Update copyright.  Rename child_ops.
246
247 2004-10-05  Daniel Jacobowitz  <[email protected]>
248
249         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
250
251 2004-10-05  Andrew Cagney  <[email protected]>
252
253         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
254
255 2004-10-05  Daniel Jacobowitz  <[email protected]>
256
257         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
258         (die_ref_table): Remove.
259         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
260         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
261         the usage of this type.
262         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
263         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
264         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
265         (dwarf2_create_include_psymtab): Update comment.
266         (find_partial_die): Remove third argument.  Remove unreachable call
267         to error ().
268         (dwarf2_find_containing_comp_unit): Update comments.  Change one
269         assertion to an error.  Remove an unreachable error.
270         (dwarf2_find_comp_unit): Update comments.
271         (type_at_offset): Remove dead code.
272         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
273         (store_in_ref_table): Add CU argument.
274         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
275         inter-compilation-unit references.
276         (load_full_comp_unit, process_full_comp_unit): New functions, based
277         on psymtab_to_symtab_1.
278         (psymtab_to_symtab_1): Use them.
279         (dwarf2_add_dependence): New function.
280         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
281         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
282         (partial_die_parent_scope, guess_structure_name): Update for changes
283         to find_partial_die.
284         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
285         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
286         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
287         (read_die_and_children): Update call to store_in_ref_table.
288         (do_free_die_list_cleanup): Remove.
289         (fixup_partial_die): Update for changes to find_partial_die.
290         (read_full_die): Handle queueing absolute references.
291         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
292         (dwarf2_attr, die_specification, die_type)
293         (die_containing_type, dwarf2_extension): Update calls to
294         follow_die_ref.
295         (dump_die): Update DW_FORM_ref* handling.
296         (dwarf2_get_ref_die_offset): Likewise.
297         (free_one_comp_unit): Release the dies list.
298         (dwarf2_mark_helper): New function.
299         (dwarf2_mark): Use it.
300
301 2004-10-05  Mark Kettenis  <[email protected]>
302
303         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
304         when writing to memory.
305
306 2004-10-05  Kei Sakamoto  <[email protected]>
307
308         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
309         (m32r_extract_struct_value_address): Delete function.
310         (m32r_return_value): New function.
311         (m32r_gdbarch_init): Instead of store_return_value,
312         extract_return_value, deprecated_extract_struct_value_address
313         and deprecated_use_struct_convention, set return_value.
314
315 2004-10-03  Daniel Jacobowitz  <[email protected]>
316
317         * dwarf2read.c (read_subrange_type): Add comment for variable
318         sized arrays.
319
320 2004-10-03  Paul Hilfinger  <[email protected]>
321
322         * Makefile.in (.l.c): Modify rule for compatibility with recent
323         versions of flex, and remove most command-line options.
324         * ada-lex.l: Add %options line in place of -I -i and -s command-line
325         options.
326
327 2004-10-02  Paul N. Hilfinger  <[email protected]>
328
329         Turn on initial Ada support (mainly expression evaluation).
330         
331         * Makefile.in (SFILES): Remove ada-tasks.c.
332         (HFILES_NO_SRCDIR): Add ada-lang.h.
333         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
334         (YYOBJ): Add ada-exp.o.
335         (rule .l.c): Generalize to not mention ada.
336         * symtab.c: Include ada-lang.h.
337         (symbol_natural_name, symbol_demangled_name)
338         (symbol_search_name): Add Ada case.
339
340 2004-10-01  Andrew Cagney  <[email protected]>
341
342         * Makefile.in (COMMON_OBS): Add inf-child.o.
343         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
344         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
345         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
346         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
347         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
348         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
349         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
350         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
351         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
352         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
353         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
354         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
355         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
356
357         * target.c (xfer_using_stratum): Change return type to LONGEST.
358         On each iteration offset, readbuf and writebuf.
359         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
360         partial_length, and read/modify/write predicate, update comments.
361         Pass buffer.word to ptrace write.
362
363 2004-10-01  Paul N. Hilfinger  <[email protected]>
364
365         * symfile.c (init_filename_language_table): Add extensions for
366         Ada.
367         * defs.h (enum language): Add language_ada.
368         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
369         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
370         (add_symbols_from_enclosing_procs): Make a no-op for now.
371         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
372         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
373         (find_line_in_linetable, find_next_line_in_linetable)
374         (read_all_symtabs, is_plausible_func_for_line)
375         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
376         (is_runtime_sym_defined, check_size): Remove declaration.
377         (function_name_from_pc, ada_translate_error_message)
378         (ada_lookup_minimal_symbol): Remove definition.
379         (ada_add_block_symbols): Remove useless label.
380         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
381         useless declaration.
382         (ada_is_exception_sym): Likewise.
383
384 2004-09-30    Kei Sakamoto  <[email protected]>
385
386         Add m32r-linux support.
387         * configure.tgt: Add m32r*-*-linux*.
388         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
389         and m32r-linux-tdep.c.
390         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
391         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
392         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
393         m32r-linux-tdep.c.
394         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
395         config/m32r/linux.mh, config/m32r/linux.mt,
396         config/m32r/nm-linux.h: New files.
397
398 2004-09-30  Joel Brobecker  <[email protected]>
399
400         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
401         (mips32_fetch_instruction): Remove, unused.
402
403 2004-09-30  Joel Brobecker  <[email protected]>
404
405         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
406         conditions that will always be true.
407
408 2004-09-30  Mark Kettenis  <[email protected]>
409
410         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
411         (vaxbsd_fetch_inferior_registers): Rename from
412         fetch_inferior_registers.  Make static.
413         (vaxbsd_store_inferior_registers): Rename from
414         store_inferior_registers.  Make static.
415         (_initialize_vaxbsd_nat): Construct and add target vector.
416         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
417         inftarg.o.  Add inf-child.o and inf-ptrace.o.
418         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
419         inftarg.o.  Add inf-child.o and inf-ptrace.o.
420         (NAT_FILE): Remove.
421         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
422         inftarg.o.  Add inf-child.o and inf-ptrace.o.
423         (NAT_FILE): Remove.
424         * Makefile.in (vaxbsd-nat.o): Update dependencies.
425
426         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
427         (m88kbsd_fetch_inferior_registers): Rename from
428         fetch_inferior_registers.  Make static.
429         (m88kbsd_store_inferior_registers): Rename from
430         store_inferior_registers.  Make static.
431         (_initialize_m88kbsd_nat): New prototype and function.
432         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
433         inftarg.o.  Add inf-child.o and inf-ptrace.o.
434         (NAT_FILE): Remove.
435         * Makefile.in (m88kbsd-nat.o): Update dependencies.
436
437 2004-09-30  Andrew Cagney  <[email protected]>
438
439         * target.c (target_xfer_partial): New function.
440         (target_read_memory_partial, target_write_memory_partial) 
441         (default_xfer_partial, target_read_partial, target_write_partial) 
442         (xfer_using_stratum): Use.
443         (debug_to_xfer_partial): Delete function.
444         (setup_target_debug): Do not override to_xfer_partial.
445
446 2004-09-30  Mark Kettenis  <[email protected]>
447
448         * fork-child.c: Update copyright year.  Fix coding style.
449
450 2004-09-29  Mark Kettenis  <[email protected]>
451
452         * defs.h (msavestring, mstrsave): Remove prototypes.
453         * utils.c (msavestring, mstrsave): Remove functions.
454         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
455         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
456         of mstrsave.
457         * source.c (find_and_open_source): Use xstrdup instead of
458         mstrsave.
459
460 2004-09-30  Andrew Cagney  <[email protected]>
461
462         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
463         (inf_ptrace_xfer_memory): Delete.
464         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
465         (target_read_memory, target_write_memory): Use xfer_using_stratum
466         when target_xfer_partial_p.
467         (debug_target): Move to start of file.
468         (target_read_memory_partial, target_write_memory_partial): Use
469         to_xfer_partial when target_xfer_partial_p.
470
471         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
472         inf_ptrace_xfer_memory with equivalent code.
473         * inftarg.c (child_xfer_partial): When performing a write, pass
474         writebuf to child_xfer_memory.
475
476         * target.c (target_read_string): Use target_read_memory instead of
477         target_xfer_memory.
478
479 2004-09-29  Andrew Cagney  <[email protected]>
480
481         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
482         the address of status.
483
484         * infptrace.c (ptrace_wait): Mention problem with HPUX.
485         (kill_inferior): Inline ptrace_wait call.
486         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
487         * inftarg.c (child_wait): Inline ptrace_wait call.
488
489         * target.h (struct target_ops): Delete field to_post_wait.
490         (target_post_wait): Delete macro.
491         (child_post_wait): Delete declaration.
492         * target.c (update_current_target, update_current_target)
493         (debug_to_post_wait, setup_target_debug): Delete functions and
494         references.
495         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
496         * inftarg.c (child_post_wait): Delete.
497         (init_child_ops): Do not set to_post_wait.
498         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
499         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
500         * inf-child.c (inf_child_post_wait): Delete.
501         (inf_child_target): Do not set to_post_wait.
502         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
503         (inf_ptrace_target): Do not set to_post_wait.
504
505         * wince.c (child_ops): Delete.
506         * win32-nat.c (child_ops): Delete.
507
508         * inftarg.c (inftarg_set_find_memory_regions) 
509         (inftarg_set_make_corefile_notes): Delete functions.
510         (_initialize_linux_nat): Inline calls.
511
512         * target.h (child_ops): Declare.
513         * inftarg.c (child_ops): Move from here ...
514         * target.c (child_ops): ... to here.
515         * wince.c (child_ops): Delete extern declaration.
516         * win32-nat.c (child_ops): Delete extern declaration.
517         * linux-nat.c (child_ops): Delete extern declaration.
518         * hpux-thread.c (child_ops): Delete extern declaration.
519
520 2004-09-28  Mark Kettenis  <[email protected]>
521
522         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
523
524 2004-09-28  Mark Kettenis  <[email protected]>
525
526         * configure.in: Only set host_makefile_frag when building a native
527         debugger.
528         * configure: Regenerate.
529
530         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
531         for OpenBSD ELF.
532
533 2004-09-28  Andrew Cagney  <[email protected]>
534
535         Problem identified by Paul Hilfinger.
536         * Makefile.in (ada_lex_c): Define.
537         (ada-lex.o): Delete rule.
538
539         * linux-proc.c: Delete file.
540         * Makefile.in: Update.
541         * config/sparc/linux64.mh (NATDEPFILES): 
542         * config/sparc/linux.mh (NATDEPFILES): Update.
543         * config/s390/s390.mh (NATDEPFILES): Update.
544         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
545         * config/powerpc/linux.mh (NATDEPFILES): Update.
546         * config/pa/linux.mh (NATDEPFILES): Update.
547         * config/mips/linux.mh (NATDEPFILES): Update.
548         * config/m68k/linux.mh (NATDEPFILES): Update.
549         * config/ia64/linux.mh (NATDEPFILES): Update.
550         * config/i386/linux64.mh (NATDEPFILES): Update.
551         * config/i386/linux.mh (NATDEPFILES): Update.
552         * config/arm/linux.mh (NATDEPFILES): Update.
553         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
554         * linux-nat.c: Update copyright.  Include <sys/param.h>,
555         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
556         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
557         (O_LARGEFILE): Possibly define.
558         (_initialize_linux_nat, linux_proc_pending_signals)
559         (add_line_to_sigset, linux_proc_xfer_memory)
560         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
561         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
562         (struct linux_corefile_thread_data)
563         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
564         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
565
566 2004-09-16  Andrew Cagney  <[email protected]>
567
568         * lin-lwp.c: Delete file.
569         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
570         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
571         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
572         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
573         (linux_nat_attach, detach_callback, linux_nat_detach)
574         (resume_callback, resume_clear_callback, linux_nat_resume)
575         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
576         (stop_wait_callback, linux_nat_has_pending, flush_callback)
577         (status_callback, running_callback, count_events_callback)
578         (select_singlestep_lwp_callback, select_event_lwp_callback)
579         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
580         (child_wait, stop_and_resume_callback, linux_nat_wait)
581         (kill_callback, kill_wait_callback, linux_nat_kill)
582         (linux_nat_create_inferior, linux_nat_mourn_inferior)
583         (linux_nat_xfer_memory, linux_nat_thread_alive)
584         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
585         (_initialize_linux_nat): New functions.
586         * Makefile.in: Update all dependencies.
587         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
588         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
589         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
590         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
591         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
592         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
593         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
594         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
595         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
596         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
597         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
598         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
599         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
600
601 2004-09-27  Mark Kettenis  <[email protected]>
602
603         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
604         config/i386/obsd64.mh (NAT_FILE): Remove variable.
605
606         * configure.in: Don't comment out NATDEPFILES in the generated
607         Makefile if NAT_FILE is unset.
608         * configure: Regenerate.
609
610 2004-09-27  Andrew Cagney  <[email protected]>
611
612         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
613         (insert_step_resume_breakpoint): Delete.
614         (insert_step_resume_breakpoint_at_frame): New function.
615         (insert_step_resume_breakpoint_at_sal): New function.
616         (handle_inferior_event, step_into_function)
617         (insert_step_resume_breakpoint): Simplify by using same.
618
619         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
620
621 2004-09-26  Mark Kettenis  <[email protected]>
622
623         * fbsd-proc.c: Remove file.
624         * Makefile.in (fbsd-proc.o): Remove dependency.
625
626         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
627         code together.
628
629         * config/i386/nm-fbsd64.h: Remove file.
630         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
631
632 2004-09-26  Mark Kettenis  <[email protected]>
633
634         * amd64-nat.h: Update copyright year.
635         (amd64bsd_target): New prototype.
636         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
637         (amd64bsd_target): New function.
638         (amd64bsd_fetch_inferior_registers): Rename from
639         fetch_inferior_registers.  Make static.
640         (amd64bsd_store_inferior_registers): Rename from
641         store_inferior_registers.  Make static.
642         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
643         (_initialize_amd64fbsd_nat): Construct and add target vector.
644         * amd64nbsd-nat.o: Include "target.h".
645         (_initialize_amd64nbsd_nat): Construct and add target vector.
646         * amd64obsd-nat.c: Include "target.h".
647         (_initialize_amd64obsd_nat): Construct and add target vector.
648         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
649         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
650         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
651         fbsd-nat.o.
652         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
653         Remove infptrace.o and inftarg.o.  Add inf-child.o and
654         inf-ptrace.o.
655         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
656         (amd64obsd-nat.o): Update dependencies.
657
658 2004-09-25  Mark Kettenis  <[email protected]>
659
660         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
661         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
662         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
663         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
664         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
665
666         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
667         Inline attach call.
668         (inf_ptrace_detach): Inline detach call.
669
670         * configure.in: Check for waddstr instead of mvwaddstr when
671         searching for curses library.  Check for wborder.
672         * configure, config.in: Regenerate.
673         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
674         available.
675
676         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
677
678 2004-09-24  Robert Picco <[email protected]>
679
680         Committed by Andrew Cagney.
681         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
682         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
683         configuration.
684         (fetch_register_using_p): Implement 'p' packet.  Based on code by
685         Fernando Nasser.
686         (remote_fetch_registers): Call fetch_register_using_p.
687         (init_all_packet_configs, show_remote_cmd)
688         (_initialize_remote): Add p-packet.
689
690 2004-09-24  Mark Kettenis  <[email protected]>
691
692         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
693         instead of call_ptrace.  Call wait directly instead of
694         ptrace_wait.
695         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
696         (inf_ptrace_wait): Inline ptrace_wait call.
697
698 2004-09-24  Paul Hilfinger  <[email protected]>
699
700         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
701         rolled back instead.
702
703 2004-09-24  Paul Hilfinger  <[email protected]>
704
705         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
706         the new argument order.
707
708 2004-09-23  Corinna Vinschen  <[email protected]>
709
710         * MAINTAINERS: Remove "broken" from XStormy16 entry.
711         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
712         (struct gdbarch_tdep): Remove.
713         (struct xstormy16_frame_cache): New frame cache structure.
714         (xstormy16_register_byte, xstormy16_register_raw_size)
715         (xstormy16_reg_virtual_type, xstormy16_register_type)
716         (xstormy16_push_arguments, xstormy16_push_return_address)
717         (xstormy16_pop_frame, xstormy16_store_struct_return)
718         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
719         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
720         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
721         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
722         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
723         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
724         (xstormy16_use_struct_convention): Drop gcc_p parameter.
725         (xstormy16_extract_return_value, xstormy16_store_return_value):
726         Regcachify.  Drop useless struct convention handling.
727         (xstormy16_register_type, xstormy16_return_value)
728         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
729         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
730         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
731         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
732         (xstormy16_unwind_sp, xstormy16_unwind_pc)
733         (xstormy16_unwind_dummy_id) : New functions.
734         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
735         of xstormy16_scan_prologue.
736         (xstormy16_frame_unwind): New frame_unwind structure.
737         (xstormy16_frame_base): New frame_base structure.
738         (xstormy16_gdbarch_init): Accomodate all of the above changes.
739         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
740
741 2004-09-22  Mark Kettenis  <[email protected]>
742
743         * language.c (language_gdbarch_post_init): Fix off-by one error.
744
745 2004-09-21  Daniel Jacobowitz  <[email protected]>
746
747         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
748         (struct dwarf2_offset_and_type): New.
749         (set_die_type, reset_die_and_siblings_types, get_die_type)
750         (offset_and_type_hash, offset_and_type_eq): New functions.
751         (read_structure_type, read_enumeration_type, read_array_type)
752         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
753         (read_tag_reference_type, read_tag_const_type)
754         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
755         (read_typedef, read_base_type, read_subrange_type): Use
756         set_die_type.
757
758 2004-09-20  Daniel Jacobowitz  <[email protected]>
759
760         * Makefile.in (dwarf2read.o): Update dependencies.
761         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
762         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
763         and read_in_chain.
764         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
765         mark, and has_form_ref_addr.
766         (struct dwarf2_per_cu_data): New.
767         (dwarf2_max_cache_age): New.
768         (dwarf2_build_psymtabs_hard): Free cached compilation units
769         after loading.  Create and manage the list of compilation units.
770         Remove unnecessary NULL initialization.  Fix indentation.
771         (psymtab_to_symtab_1): Initialize all of CU.
772         (dwarf2_read_abbrevs): Set has_form_ref_addr.
773         (find_partial_die): Use dwarf2_find_containing_comp_unit
774         and load_comp_unit.
775         (free_stack_comp_unit): Update comments.  Clear the per-cu
776         pointer.  Handle aging.
777         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
778         (age_cached_comp_units, free_one_cached_comp_unit)
779         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
780         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
781         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
782         (show_dwarf2_cmd): New.
783         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
784         and "maint show dwarf2 max-cache-age".
785         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
786         externs.
787         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
788         global.
789
790 2004-09-20  Jeff Johnston  <[email protected]>
791
792         * dwarf2read.c (typename_concat): Change prototype to accept obstack
793         and dwarf2_cu struct pointer as arguments.  Change function to use
794         obstack if provided and use dwarf2_cu to determine language-specific
795         separator.
796         (partial_die_parent_scope): Change comment to include java.  Use
797         new version of typename_concat instead of obconcat.
798         (partial_die_full_name): Use typename_concat.
799         (read_namespace): Ditto.
800         (read_enumeration_type): Use typename_concat instead of obconcat.
801         (new_symbol): Ditto.
802         (add_partial_symbol): Enhance tests for C++ to also test for Java.
803         (guess_structure_name): Ditto.
804         (read_subroutine_type): Ditto.
805         (read_structure_type): Ditto.
806         (is_vtable_name): Add Java support.
807         (determine_class_name): Switch to new typename_concat call.
808         (determine_prefix): Switch to new typename_concat call.
809         * jv-exp.y (FuncStart): New pattern.
810         (MethodInvocation): Add support for simple function calls.  Change
811         warning message for other forms of inferior call currently not
812         supported.
813         * valarith.c (value_subscript): Treat an array with upper-bound
814         of -1 as unknown size.
815
816 2004-09-20  Daniel Jacobowitz  <[email protected]>
817
818         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
819         (lookup_partial_symtab): Use symtab_to_fullname.
820
821 2004-09-19  Jim Blandy  <[email protected]>
822
823         * minsyms.c (lookup_minimal_symbol): Doc fix.
824
825 2004-09-20  Andrew Cagney  <[email protected]>
826
827         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
828         CHILD_RESUME.
829         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
830         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
831         KILL_INFERIOR.
832         * infptrace.c: Update.
833
834 2004-09-19  Daniel Jacobowitz  <[email protected]>
835
836         * symtab.c (output_source_filename): Mark first argument as const.
837         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
838         for "info sources" output.
839
840 2004-09-20  Mark Kettenis  <[email protected]>
841
842         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
843         <machine/vmparam.h>.
844         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
845         (register_u_addr): Remove prototype.
846
847 2004-09-19  Mark Kettenis  <[email protected]>
848
849         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
850         (i386bsd_fetch_inferior_registers): Rename from
851         fetch_inferior_registers.  Make static.
852         (i386bsd_store_inferior_registers): Rename from
853         store_inferior_registers.  Make static.
854         (i386bsd_target): New function.
855         * i386bsd-nat.h: New file.
856         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
857         "i386bsd-nat.h".
858         (i386fbsd_resume): Rename from child_resume.  Make static.
859         (_initialize_i386fbsd_nat): Construct and add target vector.
860         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
861         (_initialize_i386nbsd_nat): Construct and add target vector.
862         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
863         Remove defines.
864         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
865         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
866         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
867         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
868         (LOADLIBES): New variable.
869         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
870         inf-ptrace.o.  Remove inftarg.o.
871         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
872         inf-ptrace.o. Remove inftarg.o.
873         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
874         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
875         (LOADLIBES): New variable.
876         * Makefile.in (i386bsd_nat_h): New variable.
877         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
878         dependencies.
879
880         * sparc64nbsd-tdep.c: Include "objfiles.h".
881         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
882         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
883         svr4_lp64_fetch_link_map_offsets.
884         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
885         "nbsd-tdep.h".
886         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
887         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
888         svr4_lp64_fetch_link_map_offsets.
889         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
890         dependencies.
891
892         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
893         * fbsd-nat.h: New file.
894         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
895         (fbsd_nat_h): New variable.
896         (fbsd-nat.o): New dependency.
897
898         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
899         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
900
901         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
902         comment.
903
904 2004-09-18  Paul N. Hilfinger  <[email protected]>
905         
906         * ada-exp.y (type_int): New function to add layer of abstraction
907         around references to expression types.
908         (type_long): Ditto.
909         (type_long_long): Ditto.
910         (type_float): Ditto.
911         (type_double): Ditto.
912         (type_long_double): Ditto.
913         (type_char): Ditto.
914         (type_system_address): Ditto.
915         (simple_exp): Use type_* functions in place of builtin_* 
916         variables.
917         (exp): Ditto.
918         (write_var_from_name): Ditto.
919         (write_object_renaming): Ditto.
920         * ada-lang.c (ada_create_fundamental_type): Remove redundant
921         declaration.
922         (build_ada_types): Remove, replacing with...
923         (ada_language_arch_info): New function to initialize primitive
924         type vector in language_arch_info.
925         (ada_array_length): Remove use of builtin_type_ada_int.
926         (value_pos_atr): Ditto.
927         (ada_evaluate_subexp): Ditto.
928         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
929         builtin_type_ada_long_long, builtin_type_ada_char, 
930         builtin_type_ada_float, builtin_type_ada_double, 
931         builtin_type_ada_long_double, builtin_type_ada_natural,
932         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
933         (ada_builtin_types): Remove.
934         (ada_language_defn): Remove entries for la_builtin_type_vector and
935         string_char_type and use ada_language_arch_info.
936         (_initialize_ada_language): Do type-vector initialization along
937         the lines of c-lang.c.
938         (ada_create_fundamental_type): Break up line.
939         (ada_dump_symtab): Remove unused function.
940         (enum ada_primitive_types): Define.
941         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
942         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
943         builtin_type_ada_float, builtin_type_ada_double, 
944         builtin_type_ada_long_double, builtin_type_ada_natural,
945         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
946         * ada-lex.l: Use type_* functions in place of builtin_* variables.
947         (processInt): Ditto.
948         (processReal): Ditto.
949         (name_lookup): Ditto.
950         * ada-typeprint.c (print_range): Use builtin_type_int, not
951         builtin_type_ada_int.
952         
953 2004-09-18  Mark Kettenis  <[email protected]>
954
955         * i386-tdep.c (i386_register_name): Rename regno to regnum.
956
957         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
958         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
959         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
960         * configure.in: Improve checks for curses library by checking for
961         mvwaddstr instead of initscr.  Drop HP curses in favour of
962         standard curses on HP-UX.
963         * configure: Regenerated.
964
965 2004-09-18  Paul N. Hilfinger  <[email protected]>
966
967         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
968         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
969         Minor formatting changes.
970         (empty_array): Slight rewrite for formatting.
971         (emit_char,parse,ada_language_defn,build_ada_types,
972         ada_is_exception_sym, _initialize_ada_language): Move 
973         definitions around.
974         (ada_dump_symtab): Remove unused definition.
975         (ada_maybe_exception_partial_symbol): Remove unused definition.
976
977 2004-09-16  Andrew Cagney  <[email protected]>
978
979         * inf-child.c: Include "gdb_string.h".
980         (inf_child_core_file_to_sym_file): Delete.
981         (inf_child_target): Set to_fetch_registers and to_store_registers.
982         * inf-ptrace.c: Include "gdb_string.h".
983         * Makefile.in: Update all dependencies.
984
985         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
986         problem.
987
988 2004-09-14  Joel Brobecker  <[email protected]>
989
990         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
991         call to heuristic_proc_desc. Remove code that became redundant
992         as a consequence.
993         (read_next_frame_reg): Remove special case for SP_REGNUM.
994         (set_reg_offset): Fix small typo.
995         (reset_saved_regs): New procedure.
996         (mips32_heuristic_proc_desc): No longer compute a fake
997         procedure descriptor. Compute the full frame cache instead.
998         Some minor comment reformatting.
999
1000 2004-09-14  Andrew Cagney  <[email protected]>
1001
1002         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1003         maintainer.
1004
1005         * thread-db.c (thread_db_new_objfile): Assume that there is a
1006         child process.
1007
1008 2004-09-13  Jim Blandy  <[email protected]>
1009
1010         * valops.c (value_assign): Move 'buffer' to the enclosing block,
1011         so that its storage isn't referenced after its lifetime ends.
1012
1013         * valops.c (value_assign): 'use_buffer' is initialized to zero,
1014         and never assigned to.   Delete it, and the 'if (use_buffer)'
1015         clauses.  Delete 'raw_buffer', since it is now unused.
1016
1017 2004-09-13  Andrew Cagney  <[email protected]>
1018
1019         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1020         * configure: Re-generate.
1021         * nlm/Makefile.in (TAGS): Update.
1022         * Makefile.in (TAGS): Update.
1023         * config/vax/nbsd.mt (TM_FILE): Update.
1024         * config/sparc/vxworks.mt (TM_FILE): Update.
1025         * config/sparc/sol2.mt (TM_FILE): Update.
1026         * config/sparc/sol2-64.mt (TM_FILE): Update.
1027         * config/sparc/obsd64.mt (TM_FILE): Update.
1028         * config/sparc/obsd.mt (TM_FILE): Update.
1029         * config/sparc/nbsd64.mt (TM_FILE): Update.
1030         * config/sparc/nbsd.mt (TM_FILE): Update.
1031         * config/sparc/linux64.mt (TM_FILE): Update.
1032         * config/sparc/linux.mt (TM_FILE): Update.
1033         * config/sparc/fbsd.mt (TM_FILE): Update.
1034         * config/sh/wince.mt (TM_FILE): Update.
1035         * config/sh/nbsd.mt (TM_FILE): Update.
1036         * config/sh/linux.mt (TM_FILE): Update.
1037         * config/sh/embed.mt (TM_FILE): Update.
1038         * config/s390/s390.mt (TM_FILE): Update.
1039         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1040         * config/rs6000/rs6000.mt (TM_FILE): Update.
1041         * config/rs6000/aix4.mt (TM_FILE): Update.
1042         * config/powerpc/vxworks.mt (TM_FILE): Update.
1043         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1044         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1045         * config/powerpc/obsd.mt (TM_FILE): Update.
1046         * config/powerpc/nbsd.mt (TM_FILE): Update.
1047         * config/powerpc/linux.mt (TM_FILE): Update.
1048         * config/powerpc/aix.mt (TM_FILE): Update.
1049         * config/pa/obsd.mt (TM_FILE): Update.
1050         * config/pa/linux.mt (TM_FILE): Update.
1051         * config/pa/hppahpux.mt (TM_FILE): Update.
1052         * config/pa/hppa64.mt (TM_FILE): Update.
1053         * config/pa/hppa.mt (TM_FILE): Update.
1054         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1055         * config/mips/wince.mt (TM_FILE): Update.
1056         * config/mips/vxmips.mt (TM_FILE): Update.
1057         * config/mips/nbsd.mt (TM_FILE): Update.
1058         * config/mips/linux.mt (TM_FILE): Update.
1059         * config/mips/irix6.mt (TM_FILE): Update.
1060         * config/mips/irix5.mt (TM_FILE): Update.
1061         * config/mips/embed.mt (TM_FILE): Update.
1062         * config/m68k/vxworks68.mt (TM_FILE): Update.
1063         * config/m68k/st2000.mt (TM_FILE): Update.
1064         * config/m68k/os68k.mt (TM_FILE): Update.
1065         * config/m68k/obsd.mt (TM_FILE): Update.
1066         * config/m68k/nbsd.mt (TM_FILE): Update.
1067         * config/m68k/monitor.mt (TM_FILE): Update.
1068         * config/m68k/linux.mt (TM_FILE): Update.
1069         * config/m68k/cisco.mt (TM_FILE): Update.
1070         * config/ia64/linux.mt (TM_FILE): Update.
1071         * config/ia64/aix.mt (TM_FILE): Update.
1072         * config/ia64/ia64.mt (TM_FILE): Update.
1073         * config/i386/vxworks.mt (TM_FILE): Update.
1074         * config/i386/obsd64.mt (TM_FILE): Update.
1075         * config/i386/obsd.mt (TM_FILE): Update.
1076         * config/i386/nto.mt (TM_FILE): Update.
1077         * config/i386/nbsd64.mt (TM_FILE): Update.
1078         * config/i386/nbsd.mt (TM_FILE): Update.
1079         * config/i386/linux64.mt (TM_FILE): Update.
1080         * config/i386/linux.mt (TM_FILE): Update.
1081         * config/i386/i386sol2.mt (TM_FILE): Update.
1082         * config/i386/i386lynx.mt (TM_FILE): Update.
1083         * config/i386/fbsd64.mt (TM_FILE): Update.
1084         * config/i386/fbsd.mt (TM_FILE): Update.
1085         * config/i386/cygwin.mt (TM_FILE): Update.
1086         * config/h8300/h8300.mt (TM_FILE): Update.
1087         * config/frv/frv.mt (TM_FILE): Update.
1088         * config/cris/cris.mt (TM_FILE): Update.
1089         * config/arm/wince.mt (TM_FILE): Update.
1090         * config/arm/nbsd.mt (TM_FILE): Update.
1091         * config/arm/linux.mt (TM_FILE): Update.
1092         * config/arm/embed.mt (TM_FILE): Update.
1093         * config/alpha/nbsd.mt (TM_FILE): Update.
1094         * config/alpha/fbsd.mt (TM_FILE): Update.
1095         * config/alpha/alpha.mt (TM_FILE): Update.
1096         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1097         * config/alpha/alpha-linux.mt (TM_FILE): Update.
1098
1099         Eliminate event_loop_p, always has the value 1.
1100         * defs.h (event_loop_p): Delete macro.
1101         * breakpoint.c (until_break_command): Simplify.
1102         * utils.c (prompt_for_continue): Simplify.
1103         * tracepoint.c (read_actions): Simplify.
1104         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
1105         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
1106         (set_prompt, init_main): Simplify.
1107         (init_signals, disconnect): Delete, unused.
1108         * remote.c (remote_async_resume) 
1109         (extended_remote_async_create_inferior): Simplify.
1110         * mi/mi-interp.c (mi_input): Delete, unused.
1111         (mi_interpreter_resume, mi_command_loop): Simplify.
1112         * interps.c (current_interp_command_loop): Simplify.
1113         * infrun.c (proceed): Simplify.
1114         * infcmd.c (run_command, continue_command, step_1, jump_command)
1115         (until_command, advance_command, finish_command)
1116         (interrupt_target_command): Simplify.
1117         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1118
1119         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1120         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1121         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1122         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1123         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1124         * mips-tdep.c (mips_dump_tdep): Do not print same.
1125
1126 2004-09-12  Andrew Cagney  <[email protected]>
1127
1128         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
1129         const.
1130         * Makefile.in (valprint.o): Delete explict rule.
1131
1132         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
1133         reported by Dave Anderson.
1134
1135         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1136
1137         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1138
1139 2004-09-12  Salvador E. Tropea  <[email protected]>
1140             Andrew Cagney  <[email protected]>
1141
1142         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1143         (mi_cmd_data_list_register_values)
1144         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1145         the register number computation.
1146
1147 2004-09-12  Andrew Cagney  <[email protected]>
1148
1149         * ppcnbsd-nat.c: Include "inf-ptrace.h".
1150         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1151         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1152         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1153         target.
1154         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1155         inf-ptrace.o and inf-child.o.
1156         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1157         * Makefile.in: Update dependencies.
1158         
1159 2004-09-11  Andrew Cagney  <[email protected]>
1160
1161         * language.c (hex_string, hex_string_custom): Move from here ...
1162         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1163         (CELLSIZE): Increase to 50.
1164         * language.h (hex_string, hex_string_custom): Move from here ...
1165         * defs.h: ... to here.
1166         * Makefile.in: Update all dependencies.
1167         
1168 2004-09-11  Paul N. Hilfinger  <[email protected]>
1169
1170         * language.c (local_hex_format_custom): Remove.
1171         (local_hex_string): Rename to hex_string, use C format, and move to
1172         utils.c
1173         (local_hex_string_custom): Rename to hex_string_custom and change
1174         interface.  Now uses C format.  Move to utils.c
1175         (local_octal_format_custom): Remove.
1176         (local_decimal_format_custom): Remove.
1177         (unknown_language_defn): Remove language-specific number 
1178         formatting entries.
1179         (auto_language_defn): Ditto.
1180         (local_language_defn): Ditto.
1181         * language.h (struct language_format_info): Delete declaration.
1182         (struct language_defn): Remove language_format_info fields
1183         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1184         (local_binary_format): Remove macro.
1185         (local_binary_format_prefix): Remove macro.
1186         (local_binary_format_specifier): Remove macro.
1187         (local_binary_format_suffix): Remove macro.
1188         (local_octal_format): Remove macro.
1189         (local_octal_format_prefix): Remove macro.
1190         (local_octal_format_specifier): Remove macro.
1191         (local_octal_format_suffix): Remove macro.
1192         (local_decimal_format): Remove macro.
1193         (local_decimal_format_prefix): Remove macro.
1194         (local_decimal_format_specifier): Remove macro.
1195         (local_decimal_format_suffix): Remove macro.
1196         (local_hex_format): Remove macro.
1197         (local_hex_format_prefix): Remove macro.
1198         (local_hex_format_specifier): Remove macro.
1199         (local_hex_format_suffix): Remove macro.
1200         (local_decimal_format_custom): Remove.
1201         (local_octal_format_custom): Remove.
1202         (local_hex_format_custom): Remove.
1203         (local_hex_string): Rename to hex_string and move to defs.h.
1204         (local_hex_string_custom): Rename to hex_string_custom, change
1205         interface, and move to defs.h.
1206         * utils.c: (int_string): New function.
1207         (hex_string): New function (from language.c).
1208         (hex_string_custom): New function (from language.c).
1209         (octal2str): New function.
1210         (decimal2str): Add width parameter.
1211         (paddr_u): Use new decimal2str interface.
1212         (paddr_d): Ditto.
1213         * defs.h (hex_string): Declare.
1214         (hex_string_custom): Declare.
1215         (int_string): Declare.
1216         * printcmd.c (print_scalar_formatted): Remove localized binary
1217         formatting.
1218         * valprint.c (print_longest): Use int_string.
1219         (print_floating): Use C hex format.
1220         (print_hex_chars): Ditto.
1221         (print_binary_chars): Remove language-specific formatting.
1222         (print_octal_chars): Use C octal format.
1223         (print_decimal_chars): Delocalize format.
1224         (print_decimal): Remove.
1225         * ada-lang.c (ada_language_defn): Remove language-specific number 
1226         formatting entries.
1227         * p-lang.c (pascal_language_defn): Ditto.
1228         * c-lang.c (c_language_defn): Ditto.
1229         (cplus_language_defn): Ditto.
1230         (asm_language_defn): Ditto.
1231         (minimal_language_defn): Ditto.
1232         * f-lang.c (f_language_defn): Ditto.
1233         * jv-lang.c (java_language_defn): Ditto.
1234         * m2-lang.c (m2_language_defn): Ditto.
1235         * scm-lang.c (scm_language_defn): Ditto.
1236         * objc-lang.c (objc_language_defn): Ditto.
1237         * memattr.c (mem_info_command): Use renamed hex_string_custom with
1238         new interface.
1239         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1240         * ui-out.c (ui_out_field_core_addr): Ditto.
1241         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1242         * exec.c (print_section_info): Ditto.
1243         * i387-tdep.c (print_i387_status_word): Ditto.
1244         (print_i387_control_word): Ditto.
1245         (i387_print_float_info): Ditto.
1246         * maint.c (maint_print_section_info): Ditto.
1247         * solib.c (info_sharedlibrary_command): Ditto.
1248         * somsolib.c (som_sharedlibrary_info_command): Ditto.
1249         * symtab.c (print_msymbol_info): Ditto.
1250         * tracepoint.c (tracepoints_info): Ditto.
1251         * solib-frv.c (lm_base): Ditto.
1252         (frv_current_sos): Ditto.
1253         (enable_break2): Ditto.
1254         (enable_break): Ditto.
1255         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1256         (process_one_symbol): Ditto.
1257         * infcmd.c (program_info): Ditto.
1258         * mdebugread.c (parse_partial_symbols): Ditto.
1259         * symfile.c (add_symbol_file_command): Ditto.
1260         * cli/cli-cmds.c (edit_command): Ditto.
1261         (list_command): Ditto.
1262         * infcall.c (call_function_by_hand): Ditto.
1263         * remote-vx.c (vx_run_files_info): Ditto.
1264         (vx_wait): Ditto.
1265         (vx_attach): Ditto.
1266         (vx_detach): Ditto.
1267         (vx_kill): Ditto.
1268         * aix-thread.c (pdc_symbol_addrs): Ditto.
1269         (pdc_read_regs): Ditto.
1270         (pdc_write_regs): Ditto.
1271         (pdc_read_data): Ditto.
1272         (pdc_write_data): Ditto.
1273         * d10v-tdep.c (display_trace): Ditto.
1274         * rs6000-nat.c (find_toc_address): Ditto.
1275         * aix-thread.c: Don't include language.h.
1276         * buildsym.c: Ditto.
1277         * dbxread.c: Ditto.
1278         * mdebugread.c: Ditto.
1279         * rs6000-nat.c: Ditto.
1280         * buildsym.c (make_blockvector): Use renamed hex_string.
1281         
1282 2004-09-10  Jason Molenda  ([email protected])
1283
1284         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1285         chars after 'if' or 'while' commands in user-defined commands.
1286
1287 2004-09-08  Jim Blandy  <[email protected]>
1288
1289         Fix bug reported and analyzed by Olivier Crete:
1290         * symfile.c (copy_section_addr_info): New function.
1291         (symbol_file_add_with_addrs_or_offsets): Use it to save the
1292         original set of address arguments, instead of handwritten code
1293         that uses one length to allocate and a different length to
1294         initialize.  Use make_cleanup_free_section_addr_info.
1295         * symfile.h (copy_section_addr_info): New declaration.
1296         * utils.c: #include "symfile.h".
1297         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1298         New functions.
1299         * defs.h (make_cleanup_free_section_addr_info): New declaration.
1300         * Makefile.in (utils.o): Update dependencies.
1301
1302 2004-09-08  Andrew Cagney  <[email protected]>
1303
1304         * thread-db.c (keep_thread_db): Delete.
1305         (thread_db_new_objfile, thread_db_create_inferior)
1306         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1307
1308 2004-09-08  Mark Kettenis  <[email protected]>
1309
1310         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1311         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1312         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1313         (i386_frameless_signal_p): Remove prototype.
1314         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1315         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1316         I386_SSE_NUM_REGS.
1317         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1318         instead of FP0_REGNUM.
1319         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1320         of FP0_REGNUM and FPC_REGNUM.
1321
1322         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1323         (sunos_solib_create_inferior_hook): Don't call
1324         sunos_relocate_main_executable.
1325
1326         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1327         solib_svr4_fetch_link_map_offsets to
1328         svr4_ilp32_fetch_link_map_offsets.
1329         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1330         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1331         svr4_ilp32_fetch_link_map_offsets.
1332         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1333
1334 2004-09-07  Jim Blandy  <[email protected]>
1335
1336         * frame.h (frame_register): Doc fix.
1337
1338 2004-09-07  Andrew Cagney  <[email protected]>
1339
1340         * vx-share/wait.h: Delete #ifdef USG.
1341         * utils.c (request_quit): Ditto.
1342         * tui/tui.c (tui_reset): Ditto.
1343         * remote.c: Ditto.
1344         * remote-sds.c: Ditto.
1345         * remote-rdi.c: Ditto.
1346         * mdebugread.c: Ditto.
1347         * m68klinux-nat.c: Ditto.
1348         * infttrace.c: Ditto.
1349         * infptrace.c: Ditto.
1350         * i386v-nat.c: Ditto.
1351         * exec.c: Ditto.
1352         * dbxread.c: Ditto.
1353         * core-aout.c: Ditto.
1354
1355 2004-09-05  Joel Brobecker  <[email protected]>
1356
1357         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1358         heuristic_proc_desc.
1359         (mips_insn32_frame_cache): Likewise.
1360
1361 2004-09-04  Joel Brobecker  <[email protected]>
1362
1363         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1364         left behind by error.
1365
1366 2004-09-04  Joel Brobecker  <[email protected]>
1367
1368         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1369         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1370
1371 2004-09-04  Joel Brobecker  <[email protected]>
1372
1373         * config/rs6000/xm-aix4.h: Remove this file.
1374         * config/rs6000/aix4.mh (XM_FILE): Delete.
1375
1376 2004-09-04  Joel Brobecker  <[email protected]>
1377
1378         * config/rs6000/xm-rs6000.h: Remove this file.
1379         * config/rs6000/rs6000.mh (XM_FILE): Remove.
1380
1381 2004-09-03  Andrew Cagney  <[email protected]>
1382
1383         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1384         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1385         only use.
1386
1387         * mips-tdep.c (temp_saved_regs): Delete.
1388         (set_reg_offset): Replace saved_regs parameter with this_cache.
1389         (heuristic_proc_desc, mips16_heuristic_proc_desc)
1390         (mips32_heuristic_proc_desc): Add this_cache parameter.
1391         (mips_insn32_frame_cache, mips_insn16_frame_cache)
1392         (after_prologue): Pass a NULL this_cache.
1393
1394         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1395         non-kernel trap prologues.
1396
1397         * mips-tdep.c (find_proc_desc): Delete function.
1398         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1399         simplify.
1400         (mips_insn16_frame_cache): Replace find_proc_desc with code from
1401         mips_insn32_frame_cache.
1402
1403         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1404         Simplify as NEXT_FRAME is NULL.
1405         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1406
1407         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1408         local variable.
1409         (mips_skip_prologue): Update.
1410
1411         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1412         "cur_frame" parameter.
1413         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1414         (mips_insn32_frame_cache, find_proc_desc): Update
1415
1416         * config/vax/nm-obsd.h: Delete file.
1417         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1418         * config/vax/nm-nbsd.h: Delete file.
1419         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1420         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1421         * config/sh/nm-nbsd.h: Delete file.
1422         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1423         * config/rs6000/nm-rs6000ly.h: Delete file.
1424         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1425         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1426         * config/powerpc/nm-obsd.h: Delete file.
1427         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1428         * config/powerpc/nm-nbsd.h: Delete file.
1429         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1430         * config/pa/nm-obsd.h: Delete file.
1431         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1432         * config/mips/nm-nbsd.h: Delete file.
1433         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1434         * config/m88k/nm-obsd.h: Delete file.
1435         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1436         * config/m68k/nm-nbsd.h: Delete file.
1437         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1438         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1439         * config/i386/nm-nbsd.h: Delete file.
1440         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1441         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1442         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1443         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1444         * config/i386/nm-i386lynx.h: Delete file.
1445         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1446         * config/arm/nm-nbsd.h: Delete file.
1447         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1448         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1449
1450         * config/i386/tm-fbsd.h: Delete file.
1451         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1452         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1453
1454         * config/rs6000/tm-rs6000-aix4.h: Delete file.
1455         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1456         * config/rs6000/aix4.mt (TM_FILE): Set to
1457         config/rs6000/tm-rs6000.h.
1458         * config/powerpc/tm-ppc-aix.h: Delete file.
1459         * config/powerpc/aix.mt (TM_FILE): Set to
1460         config/rs6000/tm-rs6000.h.
1461         * config/m68k/tm-linux.h: Delete file.
1462         * config/m68k/linux.mt (TM_FILE): Set to solib.h
1463         * config/i386/tm-linux64.h: Delete file.
1464         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1465         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1466         
1467         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1468         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1469         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1470         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1471         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1472         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1473         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1474         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
1475         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1476
1477         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1478         gdb_host_cpu.
1479
1480 2004-09-02  Joel Brobecker  <[email protected]>
1481
1482         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1483         Minor reformatting. Some code factoring.
1484
1485 2004-09-02  Andrew Cagney  <[email protected]>
1486
1487         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1488         * config/vax/tm-nbsd.h: Delete file.
1489         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1490         * config/sparc/tm-vxworks.h: Delete file.
1491         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1492         * config/sparc/tm-nbsd.h: Delete file.
1493         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1494         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1495         * config/sparc/tm-linux.h: Delete file.
1496         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1497         * config/s390/tm-linux.h: Delete file.
1498         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1499         * config/pa/tm-bsd.h: Delete file.
1500         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1501         * config/m68k/tm-obsd.h: Delete file.
1502         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1503         * config/m68k/tm-nbsd.h: Delete file.
1504         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1505         * config/i386/tm-vxworks.h: Delete file.
1506         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1507         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1508         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1509         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1510         * config/i386/tm-nbsd.h: Delete file.
1511         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1512         * config/i386/tm-i386lynx.h: Delete file.
1513         * config/cris/cris.mt (TM_FILE): Set to solib.h.
1514         * config/cris/tm-cris.h: Delete file.
1515
1516         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1517         * configure: Re-generate.
1518         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1519         * config/arm/tm-nbsd.h: Delete file.
1520         
1521         * config/powerpc/tm-ppcle-sim.h: Delete.
1522         * config/powerpc/tm-ppcle-eabi.h: Delete.
1523         * config/powerpc/tm-nbsd.h: Delete.
1524         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1525         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1526         tm-ppcle-eabi.h.
1527
1528         * config/i386/nto.mh (NAT_FILE): Delete.
1529         * config/i386/nm-nto.h: Delete.
1530
1531         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1532         * config/m68k/tm-os68k.h: Ditto.
1533         * config/m68k/tm-monitor.h: Ditto.
1534         * config/m68k/tm-cisco.h: Ditto.
1535         * config/m68k/st2000.mt (TM_FILE): Delete.
1536         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1537         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1538         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1539         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1540
1541         * config/m68k/tm-st2000.h: Delete.
1542         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1543         * config/sparc/fbsd.mt (TM_FILE): Delete.
1544         * config/sparc/tm-fbsd.h: Delete.
1545
1546         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1547         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
1548         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1549
1550         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1551         GDB_TM_FILE and GDB_XM_FILE.
1552         * gdbarch.c: Re-generate.       
1553         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1554         quotes in macro definition.
1555         * configure.in: Re-generate.
1556
1557         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1558         validating architecture methods.
1559         * gdbarch.c: Re-generate.
1560         
1561         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1562         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
1563         GDB_MULTI_ARCH_PARTIAL.
1564         * gdbarch.h: Re-generate.
1565         
1566         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1567         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1568         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1569         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1570         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1571         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1572         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1573         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1574         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1575         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1576         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1577         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1578
1579 2004-09-01  Andrew Cagney  <[email protected]>
1580
1581         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1582         and main_func_highpc.
1583         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1584         * objfiles.c (init_entry_point_info, objfile_relocate): Update
1585         * nlmread.c (nlm_symfile_read): Update.
1586
1587 2004-09-01  Joel Brobecker  <[email protected]>
1588
1589         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1590         (mips_insn32_frame_cache): Inline call to find_proc_desc.
1591         (find_proc_desc): Remove dead code.
1592
1593 2004-09-01  Joel Brobecker  <[email protected]>
1594
1595         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1596
1597 2004-09-01  Jeff Johnston  <[email protected]>
1598
1599         * observer.sh: Add struct so_list declaration.
1600         * Makefile.in: Add dependencies on observer.h for solib.c and
1601         breakpoint.c.
1602         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1603         function.
1604         (_initialize_breakpoint): Register 
1605         disable_breakpoints_in_unloaded_shlib as an observer of the 
1606         "solib unloaded" observation event.
1607         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1608         call decode_line_1 so unfound breakpoint errors are silent.
1609         * solib.c (update_solib_list): When a solib is discovered to have
1610         been unloaded by the program, notify all observers of the
1611         "solib unloaded" observation event.
1612
1613 2004-09-01  Andrew Cagney  <[email protected]>
1614
1615         * frame.c: Include "objfiles.h".
1616         (inside_main_func): New function.
1617         (get_prev_frame): Use new inside_main_func.
1618         * Makefile.in (frame.o): Update dependencies.
1619         * defs.h (inside_main_func): Delete declaration.
1620         * blockframe.c (inside_main_func): Delete function.
1621
1622 2004-08-31  Jim Blandy  <[email protected]>
1623
1624         * dwarf2read.c (is_vtable_name): New function, based on logic from
1625         read_structure_type, but passing the correct length to strncmp,
1626         and using 'sizeof' instead of 'strlen'.
1627         (read_structure_type): Call it.
1628
1629 2004-08-31  Joel Brobecker  <[email protected]>
1630
1631         * config/powerpc/aix.mh: Add comment.
1632
1633 2004-08-31  Paul GIlliam  <[email protected]>
1634
1635         * MAINTAINERS: Add self to Write-After-Approval.
1636
1637 2004-08-30  Manoj Iyer  <[email protected]>
1638
1639         * MAINTAINERS: Add self to Write-After-Approval.
1640
1641 2004-08-30  Andrew Cagney  <[email protected]>
1642
1643         Fix PR breakpoints/1757.
1644         * infrun.c (struct execution_control_state): Replace
1645         remove_breakpoints_on_following_step with
1646         step_after_step_resume_breakpoint.
1647         (init_execution_control_state): Update.
1648         (handle_inferior_event): For signals, when stepping off a
1649         breakpoint, set step_after_step_resume_breakpoint.  When
1650         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1651         (keep_going): Delete code handling
1652         remove_breakpoints_on_following_step.
1653
1654 2004-08-29  David Lecomber  <[email protected]>
1655         
1656         Fix PR gdb/648
1657         * language.h (enum array_ordering): New enum.
1658         * language.h (struct language_defn): New la_array_ordering 
1659         attribute.
1660         * language.c (unknown_language_defn, auto_language_defn)
1661         (local_language_defn): Ditto.
1662         * ada-lang.c (ada_language_defn): Ditto.
1663         * c-lang.c (c_language_defn, cplus_language_defn)
1664         (asm_language_defn, minimal_language_defn): Ditto.
1665         * f-lang.c (f_language_defn): Ditto.
1666         * jv-lang.c (java_language_defn): Ditto.
1667         * m2-lang.c (f_language_defn): Ditto.
1668         * objc-lang.c (objc_language_defn): Ditto.
1669         * p-lang.c (pascal_language_defn): Ditto.
1670         * scm-lang.c (scm_language_defn): Ditto.
1671         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1672         oriented large to small in type structure.
1673         * dwarf2read.c (read_array_order): New function.
1674         (read_array_type): Use read_array_order to check row/column
1675         major ordering.
1676
1677 2004-08-27  Nathan J. Williams  <[email protected]>
1678
1679         * target.c (target_resize_to_sections): Check
1680         current_target.to_sections for an old value when updating.
1681
1682 2004-08-27  Joel Brobecker  <[email protected]>
1683
1684         * procfs.c (dbx_link_bpt_addr): New static global variable.
1685         (dbx_link_shadow_contents): New static global variable.
1686         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1687         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1688         if we just hit it.
1689         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1690         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1691         from run to run.
1692         (procfs_create_inferior): Remove syssgi syscall-exit notifications
1693         after the inferior has been forked.
1694         (remove_dbx_link_breakpoint): New function.
1695         (dbx_link_addr): New function.
1696         (insert_dbx_link_bpt_in_file): New function.
1697         (insert_dbx_link_bpt_in_region): New function.
1698         (insert_dbx_link_breakpoint): New function.
1699         (proc_trace_syscalls_1): New function, extracted from
1700         proc_trace_syscalls.
1701         (proc_trace_syscalls): Replace extract code by call to
1702         proc_trace_syscalls_1.
1703         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1704         is no longer valid.
1705
1706 2004-08-25  Jim Blandy  <[email protected]>
1707
1708         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1709
1710 2004-08-25  Andrew Cagney  <[email protected]>
1711
1712         * infrun.c (struct execution_control_state): Delete field
1713         "stepping_through_sigtramp".
1714         (init_execution_control_state): Do not set same.
1715         (context_switch): Do not pass same to save_infrun_state and
1716         load_infrun_state.
1717         * gdbthread.h (struct thread_info): Delete field
1718         stepping_through_sigtramp.
1719         (save_infrun_state, load_infrun_state): Delete parameter
1720         stepping_through_sigtramp.
1721         * thread.c (load_infrun_state, save_infrun_state): Update.
1722
1723         * infrun.c: Re-indent.  Move expression operators to the beginning
1724         of the line.  Remove long disabled #if 0 code.
1725
1726 2004-08-24  Andrew Cagney  <[email protected]>
1727
1728         * doublest.h (floatformat_ieee_quad): Rename
1729         floatformat_ia64_quad.
1730         * doublest.c (floatformat_ieee_quad): Rename
1731         floatformat_ia64_quad.
1732         (_initialize_doublest): Update.
1733
1734 2004-08-24  Jim Blandy  <[email protected]>
1735
1736         * dwarf2expr.h (struct dwarf_expr_context): New members
1737         'num_pieces' and 'pieces', for returning the result of an
1738         expression that uses DW_OP_piece.
1739         (struct dwarf_expr_piece): New struct type.
1740         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1741         pieces.
1742         (free_dwarf_expr_context): Free pieces, if any.
1743         (add_piece): New function.
1744         (execute_stack_op): Implement DW_OP_piece.
1745         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1746         expression is a list of pieces, print an error message.
1747         (dwarf2_loc_desc_needs_frame): If the expression yields
1748         pieces, and any piece is in a register, then we need a frame.
1749
1750         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1751         the stack until we've decided what sort of result the evaluation
1752         has produced.  Use separate variables, with more specific names.
1753
1754 2004-08-23  Richard Earnshaw  <[email protected]>
1755
1756         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1757         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1758         (arm_netbsd_init_abi_common): Register them.
1759
1760 2004-08-22  Mark Kettenis  <[email protected]>
1761
1762         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1763
1764         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1765         safe_frame_unwind_memory instead of target_read_memory.
1766
1767         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1768         Reorder includes.
1769         (fetch_register, store_register): Remove prototypes.
1770         (child_resume): Reorganize code and comments such that it is
1771         grouped a bit more logically.
1772         (attach): Explicitly compare errno against 0.
1773         (detach): Likewise.  Use perror_with_name instead of
1774         print_sys_errmsg.
1775         * Makefile.in (infptrace.o): Update dependencies.
1776
1777         * ia64-linux-nat.c: Update copyright year.
1778         (fetch_debug_register, store_debug_register)
1779         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1780         PTRACE_TYPE_ARG3.
1781         * config/ia64/nm-linux.h: Update copyright year.
1782          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1783
1784         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1785         from CORE_ADDR to struct frame_info *.  Use
1786         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1787         (amd64_linux_sigtramp_p): Adjust for changed signature of
1788         and64_linux_sigtramp_start
1789
1790         * gdb_ptrace.h: GNU/Linux.
1791
1792         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1793         Remove defines.
1794
1795         * infptrace.c: Include "gdb_assert.h".
1796         (PTRACE_XFER_TYPE): Remove define.
1797         (offsetof): Only define if U_REGS_OFFSET isn't defined.
1798         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1799         Tweak comment.
1800         (fetch_inferior_registers, store_inferior_registers): Remove
1801         redundant culry braces.  Tweak comment.  s/regno/regnum.
1802         * Makefile.in (infptrace.o): Update dependencies.
1803
1804         * configure.in: Change test for return type of ptrace to default
1805         to `long' instead of `int'.
1806         * configure: Regenerate.        
1807
1808 2004-08-21  Mark Kettenis  <[email protected]>
1809
1810         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1811
1812         * configure.in: Check for ttrace function.
1813         * configure, config.in: Regenerate.     
1814
1815         * gdb_ptrace.h: New file.
1816         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1817         <sys/ptrace.h>.
1818         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1819         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1820         (attach): Don't define PT_ATTACH.
1821         (detach): Don't define PT_DETACH.
1822         * Makefile.in (gdb_ptrace_h): New variable.
1823         (infptrace.o): Update dependencies.
1824
1825 2004-08-16  Mark Kettenis  <[email protected]>
1826
1827         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1828         instead of `int' if not already defined.
1829         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1830         PTRACE_TYPE_ARG3.
1831         * infptrace.c (call_ptrace): Revert change that replaced
1832         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1833
1834 2004-08-15  Mark Kettenis  <[email protected]>
1835
1836         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1837         Remove defines.
1838
1839         * linux-nat.c (kill_inferior): Add missing third and fourth
1840         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
1841
1842         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1843         PTRACE_TYPE_RET.
1844
1845         * proc-why.c (proc_prettyfprint_why): Fix format string.
1846
1847         * solib-osf.c (osf_current_sos): Remove unsused label.
1848
1849         * configure.in: Add <ncurses/ncurses.h> to the list of possible
1850         curses headers.
1851         * configure, config.in: Regenerate.     
1852         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1853         <ncurses/ncurses.h>.
1854
1855         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1856         * config/nm-nbsd.h: Update copyright year.
1857         (PTRACE_ARG3_TYPE): Remove define.
1858
1859         * sparc-nat.c (fetch_inferior_registers)
1860         (store_inferior_registers, sparc_xfer_wcookie): 
1861         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1862
1863         * alphabsd-nat.c (fetch_inferior_registers):
1864         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1865         PTRACE_TYPE_ARG3.
1866         * amd64bsd-nat.c (fetch_inferior_registers)
1867         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1868         PTRACE_TYPE_ARG3.
1869         * armnbsd-nat.c: Update copyright year.
1870         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1871         (store_register, store_regs, store_fp_register, store_fp_regs):
1872         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1873         * hppabsd-nat.c (fetch_inferior_registers)
1874         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1875         PTRACE_TYPE_ARG3.
1876         * i386bsd-nat.c (fetch_inferior_registers)
1877         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1878         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1879         * m68kbsd-nat.c (fetch_inferior_registers)
1880         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1881         PTRACE_TYPE_ARG3.
1882         * m88kbsd-nat.c (fetch_inferior_registers)
1883         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1884         PTRACE_TYPE_ARG3.
1885         * mipsnbsd-nat.c: Update copyright year.
1886         (fetch_inferior_registers, store_inferior_registers):
1887         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1888         * ns32knbsd-nat.c: Update copyright year.
1889         (fetch_inferior_registers, store_inferior_registers):
1890         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1891         * ppcnbsd-nat.c (fetch_inferior_registers):
1892         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1893         PTRACE_TYPE_ARG3.
1894         * ppcobsd-nat.c (fetch_inferior_registers):
1895         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1896         PTRACE_TYPE_ARG3.
1897         * shnbsd-nat.c: Update copyright year.
1898         (fetch_inferior_registers, store_inferior_registers):
1899         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1900         * vaxbsd-nat.c (fetch_inferior_registers)
1901         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1902         PTRACE_TYPE_ARG3.
1903         
1904         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1905         PTRACE_TYPE_ARG3.
1906         * infptrace.c (call_ptrace, child_resume, attach, detach)
1907         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1908         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1909         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1910         PTRACE_TYPE_ARG3.
1911
1912 2004-08-14  Mark Kettenis  <[email protected]>
1913
1914         * defs.h: Remove out-of-date comment.
1915         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1916         [!GETENV_PROVIDED] (getenv): Remove prototype.
1917
1918         * standalone.c: Remove file.
1919         * Makefile.in (standalone.o): Remove dependency.
1920
1921         * i386-linux-nat.c (dummy_sse_values): Remove function and
1922         prototype.
1923         (i386_linux_dr_get): Fix typo in comment.
1924         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1925
1926         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1927
1928         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1929         from declaration.
1930         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1931         from definition.
1932
1933 2004-08-13  Mark Kettenis  <[email protected]>
1934
1935         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1936         parenthesis in definition.
1937         * configure: Regenerated.
1938
1939 2004-08-12  Michael Chastain  <[email protected]>
1940
1941         * PROBLEMS: Mention build/1411.
1942
1943 2004-08-09  Robert Millan  <[email protected]>
1944
1945         Committed by Nathanael Nerode.
1946         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1947         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1948
1949 2004-08-12  Andrew Cagney  <[email protected]>
1950
1951         * NEWS: Mention fixes in GDB 6.2.1.
1952         * PROBLEMS: Remove mention of mips-irix.
1953
1954 2004-08-11  Joel Brobecker  <[email protected]>
1955
1956         * config/powerpc/xm-aix.h: Delete.
1957         * config/powerpc/aix.mh (MH_FILE): Remove.
1958         * config/powerpc/aix432.mh (MH_FILE): Remove.
1959
1960 2004-08-11  Joel Brobecker  <[email protected]>
1961
1962         * config/powerpc/aix.mh: Remove obsolete comment.
1963         * config/powerpc/aix432.mh: Likewise.
1964
1965 2004-08-11  Joel Brobecker  <[email protected]>
1966
1967         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1968
1969 2004-08-11  Joel Brobecker  <[email protected]>
1970
1971         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1972         this file is now empty.
1973         * config/xm-aix4.h: Remove, this file is no longer included
1974         anywhere.
1975
1976 2004-08-11  Joel Brobecker  <[email protected]>
1977
1978         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1979         that file is now empty.
1980         (termdef): Remove prototype, function no longer used.
1981
1982 2004-08-11  Joel Brobecker  <[email protected]>
1983
1984         * doc/gdbint.texinfo (Host Definition): Remove documentation
1985         for USE_O_NOCTTY, no longer used.
1986         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1987         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1988
1989 2004-08-11  Joel Brobecker  <[email protected]>
1990
1991         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1992         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1993         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1994
1995 2004-08-11  Mark Kettenis  <[email protected]>
1996
1997         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1998         instead of FIVE_ARG_PTRACE.
1999
2000         * inflow.c (O_NOCTTY): Define to zero if not already defined.
2001         (new_tty): Use O_NOCTTY unconditionally.
2002
2003 2004-08-10  Mark Kettenis  <[email protected]>
2004
2005         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
2006         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
2007         fflush on stdout.
2008
2009 2004-08-10  Joel Brobecker  <[email protected]>
2010
2011         * xcoff_symfile_finish: Replace last call to xmfree by call
2012         to xfree.
2013
2014 2004-08-10  Andrew Cagney  <[email protected]>
2015
2016         * main.c (captured_main): Delete call to init_malloc.
2017         * defs.h (init_malloc): Delete declaration.
2018         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2019         (init_malloc): Delete functions.
2020
2021         * defs.h (xmfree): Delete.
2022         * utils.c (xmfree): Delete function.
2023         (xfree): Inline calls to xmfree and mfree.
2024         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2025         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2026         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2027         * somread.c (som_symfile_finish): Ditto.
2028         * objfiles.c (allocate_objfile, free_objfile): 
2029         * nlmread.c (nlm_symfile_finish): Ditto.
2030         * hpread.c (hpread_symfile_finish): Ditto.
2031         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2032         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2033         * coffread.c (coff_symfile_finish): Ditto.
2034
2035         * defs.h (xmcalloc): Delete declaration.
2036         * utils.c (xmcalloc): Delete.
2037         (xcalloc): Inline calls to xmcalloc and mcalloc.
2038         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2039         xcalloc and xfree.
2040         * symtab.c (create_demangled_names_hash): Ditto.
2041
2042         * defs.h (xmrealloc): Delete.
2043         * utils.c (xmrealloc): Delete.
2044         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2045         * symmisc.c (extend_psymbol_list): Use xrealloc.
2046         * source.c (find_source_lines): Ditto.
2047         * hpread.c (hpread_lookup_type): Ditto.
2048         * dbxread.c (add_bincl_to_list): Ditto.
2049
2050         * utils.c (xmmalloc): Delete.
2051         (xmalloc): Inline xmmalloc and mmalloc calls.
2052         (msavestring): Use xmalloc.
2053         * defs.h (xmmalloc): Delete declaration.
2054         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2055         xmmalloc.
2056         * symmisc.c (extend_psymbol_list): Ditto.
2057         * symfile.c (init_psymbol_list): Ditto.
2058         * source.c (find_source_lines): Ditto.
2059         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2060         * elfread.c (elf_symtab_read): Ditto.
2061         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2062         * coffread.c (coff_symfile_init): Ditto.
2063
2064 2004-08-10  David Carlton  <[email protected]>
2065
2066         * MAINTAINERS: Remove David Carlton from c++ testsuite
2067         maintainers.
2068
2069 2004-08-10  Jerome Guitton  <[email protected]>
2070
2071         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2072         print a line feed before the prompt.
2073
2074 2004-08-10  Mark Kettenis  <[email protected]>
2075
2076         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2077
2078 2004-08-09  Joel Brobecker  <[email protected]>
2079
2080         General cleanup of the AIX xm include file:
2081         * config/xm-aix4.h (fd_set): Remove undefine.
2082         Remove include of <sys/select.h>.
2083         (HAVE_TERMIO): Remove define.
2084         (USG): Likewise.
2085         (NULL): Remove redefine.
2086         (alloca): Remove #pragma.
2087         (vfork): Remove define.
2088         (termdef): Remove.
2089         (SIGWINCH_HANDLER): Remove.
2090         (SIGWINCH_HANDLER_BODY): Remove.
2091
2092 2004-08-09  Mark Kettenis  <[email protected]>
2093
2094         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2095         GDB_OSABI_OPENBSD_ELF.
2096
2097 2004-08-07  Robert Millan  <[email protected]>
2098
2099         * bsd-kvm.c: Check for nlist.h before including it.
2100
2101 2004-08-09  Mark Kettenis  <[email protected]>
2102
2103         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2104         sigcontext' offset consistency checks for ancient BSD.
2105
2106         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2107
2108         * configure.in: Check for <sys/types.h>.  Check return and
2109         argument types of ptrace.
2110         * configure, config.in: Regenerate.     
2111
2112 2004-08-09  Jim Blandy  <[email protected]>
2113
2114         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2115         rs6000_register_sim_regno): Doc fixes.
2116
2117 2004-08-08  Joel Brobecker  <[email protected]>
2118
2119         * mips-tdep.c: Include "floatformat.h".
2120         (n32n64_floatformat_always_valid): New function.
2121         (floatformat_n32n64_long_double_big): New constant.
2122         (mips_gdbarch_init): Set size and format of long double
2123         for N32 and N64 ABIs.
2124         * Makefile.in (mips-tdep.o): Update dependencies.
2125
2126 2004-08-08  Andrew Cagney  <[email protected]>
2127
2128         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
2129         print.  Improve script's error messages.
2130         * gdbarch.h: Re-generate.
2131
2132         * gdbarch.sh (pformat): New function.
2133         (float_format, double_format, long_double_format): List with bit
2134         members.  Use pformat when printing.
2135         * gdbarch.c, gdbarch.h: Re-generate.
2136         
2137 2004-08-08  Nathan J. Williams  <[email protected]>
2138
2139         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2140         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2141         (ppcnbsd_supply_pcb): New function.
2142         (_initialize_ppcnbsd_nat): New prototype and function.
2143         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2144         (LOADLIBES): New variable.
2145         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2146
2147 2004-08-08  Andrew Cagney  <[email protected]>
2148
2149         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2150         (builtin_type_ieee_double, builtin_type_ia64_quad)
2151         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2152         BE/LE floating-point types.
2153         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2154         (builtin_type_ieee_double, builtin_type_ia64_quad)
2155         (builtin_type_ia64_spill): Declare.
2156         * doublest.c (_initialize_doublest, floatformat_ieee_single)
2157         (floatformat_ieee_double, floatformat_arm_ext)
2158         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2159         of LE/BE floatformats.  
2160         * doublest.h: (struct floatformat, floatformat_ieee_single)
2161         (floatformat_ieee_double, floatformat_arm_ext)
2162         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2163
2164 2004-08-08  Mark Kettenis  <[email protected]>
2165
2166         * i386gnu-nat.c (gnu_store_registers): Fix typo.
2167
2168         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2169         instead of regcache_raw_supply when storing the registers.
2170
2171         * i386gnu-nat.c: Update copyright year.
2172         (gnu_store_registers): Don't use deprecated_registers and
2173         deprecated_registers_valid.  Use regcache_valid_p and
2174         regcache_raw_supply instead.
2175
2176         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2177         frame_pc_unwind.
2178
2179         * procfs.c (procfs_pid_to_str): Remove redundant and unused
2180         variables.  Incapitalized "process".
2181
2182         * configure.in: Add cursesX to the list of possible curses libs.
2183         Add cursesX.h to the list of possible curses headers. 
2184         * configure, config.in: Regenerate.     
2185
2186 2004-08-07  Nathan J. Williams  <[email protected]>
2187
2188         * configure.in: Test for struct lwp in <sys/lwp.h>.
2189         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2190         the offset of l_addr in struct lwp.
2191
2192 2004-08-07  Nathan J. Williams  <[email protected]>
2193
2194         * bsd-kvm.c: Include "gdbcore.h"
2195         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2196
2197 2004-08-07  Andrew Cagney  <[email protected]>
2198
2199         * gdbtypes.c (build_flt, build_complex): New functions.
2200         (gdbtypes_post_init): Use.
2201
2202         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2203
2204         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2205         through to builtin_type_uint128.
2206
2207         * c-exp.y: Use builtin_type function to obtain builtin types.
2208
2209         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2210         builtin_uint128.
2211         * gdbtypes.c (gdbtypes_post_init): Update.
2212         (build_gdbtypes): Move initialization of builtin_type_int0
2213         through to builtin_type_uint128 from here ...
2214         (_initialize_gdbtypes): ... to here.
2215         * d10v-tdep.c (d10v_register_type): Update.
2216
2217         * doublest.c: Update copyright.
2218         (floatformat_from_length): Call error when floatformat is NULL.
2219         (extract_floating_by_length): Remove NULL fmt check.
2220         (store_floating_by_length): Ditto.
2221
2222 2004-08-07  Andrew Cagney  <[email protected]>
2223
2224         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2225         that the register is valid.
2226
2227 2004-08-05  Mark Kettenis  <[email protected]>
2228
2229         * i386-linux-tdep.c (i386_linux_sigtramp_start)
2230         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2231         struct frame_info *.  Use safe_frame_unwind_memory instead of
2232         deprecated_read_memory_nobpt.
2233         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2234         changed signature of i386_linux_sigtramp_start and
2235         i386_linux_rt_sigtramp_start.
2236
2237         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2238         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
2239         instead of deprecated_read_memory_nobpt.
2240         (i386nbsd_sigtramp_p): Adjust for changed signature of
2241         i386nbsd_sigtramp_offset.
2242
2243         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2244         safe_frame_unwind_memory instead of target_read_memory.
2245
2246         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2247         !NO_SYS_FILE.
2248         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2249         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2250         (_initialize_kernel_u_addr): Remove prototype and function.
2251         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2252         !NO_SYS_FILE.
2253         * xcoffread.c: Likewise.
2254
2255 2004-08-06  Mark Kettenis  <[email protected]>
2256
2257         * vax-nat.c: New file.
2258         * vaxbsd-nat.c: Tweak comment.
2259         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2260         vaxnbsd-tdep.c.
2261         (vax-nat.o): New dependency.
2262         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2263         (vax-*-ultrix2*): Remove.
2264         * config/vax/vax.mh: New file.
2265         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2266         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2267         (vax_register_u_addr): New prototype.
2268         (REGISTER_U_ADDR): Define using vax_register_u_addr.
2269         * config/vax/vaxult2.mh: Remove file.
2270         * config/vax/vaxult.mh: Remove file.
2271         * config/vax/vaxbsd.mh: Remove file.
2272         * config/vax/vax.mt (TM_FILE): Remove.
2273         * config/vax/tm-vaxbsd.h: Remove file.
2274
2275 2004-08-06  Joel Brobecker  <[email protected]>
2276
2277         * aix-thread.c (get_signaled_thread): New function.
2278         (iter_trap): Delete, no longer used.
2279         (iter_tid): New function.
2280         (pd_update): Find the thread that received the SIGTRAP signal
2281         by first locating the kernel thread, and then finding its
2282         associated thread.
2283
2284 2004-08-06  Ulrich Weigand  <[email protected]>
2285
2286         * lin-lwp.c (child_wait): Continue inferior after processing
2287         PTRACE_EVENT_CLONE event.
2288
2289 2004-08-05  Nathanael Nerode  <[email protected]>
2290
2291         * MAINTAINERS: Add self to Write-After-Approval.
2292
2293 2004-08-05  Jeff Johnston  <[email protected]>
2294
2295         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2296         libunwind-xxxx.so" where xxxx is UNW_TARGET.
2297
2298 2004-08-05  Andrew Cagney  <[email protected]>
2299
2300         * config/xm-sysv4.h: Delete file.
2301         * config/mips/xm-irix5.h: Delete file.
2302         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2303         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2304         * config/ia64/xm-aix.h: Delete file.
2305         * config/ia64/aix.mh (XM_FILE): Delete.
2306         * config/pa/xm-hppah.h: Delete file.
2307         * config/pa/hpux11w.mh (XM_FILE): Delete.
2308         * config/pa/hpux11.mh (XM_FILE): Delete.
2309         * config/pa/hpux1020.mh (XM_FILE): Delete.
2310         * config/pa/hppahpux.mh (XM_FILE): Delete.
2311
2312         * config/alpha/xm-alphalinux.h: Delete file.
2313         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2314         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2315         * config/alpha/xm-alphaosf.h: Delete file.
2316         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2317         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2318         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2319         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2320
2321         * config/i386/xm-i386v.h: Delete file.
2322         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2323         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2324         * config/i386/xm-i386sco.h: Delete file.
2325         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2326         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2327         * config/i386/xm-i386v4.h: Delete file.
2328         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2329         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2330         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2331         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2332
2333         * config/vax/xm-vax.h: Delete file.
2334         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2335         * config/vax/xm-vaxult2.h: Delete file.
2336         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2337         * config/vax/vaxult2.mh (XM_FILE): Delete.
2338         * config/vax/xm-vaxult.h: Delete file.
2339         * config/vax/vaxult.mh (XM_FILE): Delete.
2340         * config/vax/xm-vaxbsd.h: Delete file.
2341         * config/vax/vaxbsd.mh (XM_FILE): Delete.
2342
2343         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2344         * gdbarch.h, gdbarch.c: Re-generate.
2345         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2346         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2347         * frame.h: Delete deprecated_read_fp from comments.
2348         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2349         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2350
2351 2004-08-04  Mark Kettenis  <[email protected]>
2352
2353         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2354         trampoline in OpenBSD 3.5-current.
2355
2356         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2357         SSE registers.
2358
2359         * Makefile.in: Remove embedded page breaks.
2360
2361 2004-08-04  Jim Blandy  <[email protected]>
2362
2363         * regcache.c (regcache_raw_read): Assert that, after calling
2364         target_fetch_registers, the register we're reading is cached.
2365
2366         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2367         a call to 'internal_error', with a more helpful error message.
2368         * rs6000-tdep.c (e500_pseudo_register_read,
2369         e500_pseudo_register_write, rs6000_store_return_value): Same.
2370
2371 2004-08-04  Andrew Cagney  <[email protected]>
2372
2373         * Makefile.in: Update dependencies.
2374
2375 2004-08-04  Jim Blandy  <[email protected]>
2376
2377         Change the layout of the PowerPC E500 raw register cache to allow
2378         the lower 32-bit halves of the GPRS to be their own raw registers,
2379         not pseudoregisters.
2380         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2381         add ppc_ev0_upper_regnum flag.
2382         * rs6000-tdep.c: #include "reggroups.h".
2383         (spe_register_p): Recognize the ev upper half registers as SPE
2384         registers.
2385         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2386         registers.
2387         (e500_move_ev_register): New function.
2388         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2389         vector registers are the pseudo-registers now, formed by splicing
2390         together the gprs and the upper-half registers.
2391         (e500_register_reggroup_p): New function.
2392         (P): Macro deleted.
2393         (P8, A4): New macro.
2394         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2395         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2396         macros.
2397         (registers_e500): Rearrange register set so that the raw register
2398         set contains 32-bit GPRs and upper-half registers, and the SPE
2399         vector registers become pseudo-registers.
2400         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2401         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
2402         register numbers are now the same for the E500 as they are for
2403         other PowerPC variants.  Register e500_register_reggroup_p as the
2404         register group function for the E500.
2405         * Makefile.in (rs6000-tdep.o): Update dependencies.
2406
2407         Adapt PPC E500 native support to the new raw regcache layout.
2408         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2409         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2410         (fetch_spe_register, store_spe_register): Handle fetching/storing
2411         all the SPE registers at once, if regno == -1.  These now take
2412         over the job of fetch_spe_registers and store_spe_registers.
2413         (fetch_spe_registers, store_spe_registers): Deleted.
2414         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2415         unconditionally; they're always raw.  Fetch/store SPE upper half
2416         registers, if present, instead of ev registers.
2417         (fetch_register, store_register): Remove sanity checks: gprs are
2418         never pseudo-registers now, so we never need to even mention any
2419         registers that are ever pseudoregisters.
2420
2421         Use a fixed register numbering when communicating with the PowerPC
2422         simulator.
2423         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2424         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2425         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
2426         New functions.
2427         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
2428         init_sim_regno_table.
2429         * Makefile.in (gdb_sim_ppc_h): New variable.
2430         (rs6000-tdep.o): Update dependencies.
2431
2432 2004-08-02  Andrew Cagney  <[email protected]>
2433
2434         * cris-tdep.c (cris_register_size): Restore function, still used
2435         locally.
2436
2437         * gdbarch.sh (deprecated_target_read_fp)
2438         (deprecated_frame_locals_address, deprecated_frame_args_address)
2439         (deprecated_frame_chain_valid, deprecated_frame_chain)
2440         (deprecated_init_extra_frame_info, deprecated_pop_frame)
2441         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2442         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2443         * gdbarch.h, gdbarch.c: Re-generate.
2444         * regcache.c (deprecated_read_fp): Do not call
2445         DEPRECATED_TARGET_READ_FP_P.
2446         * infcmd.c (default_print_registers_info): Do not call
2447         DEPRECATED_DO_REGISTERS_INFO.
2448         * frame-base.c (default_frame_locals_address): Do not call
2449         DEPRECATED_FRAME_LOCALS_ADDRESS.
2450         (default_frame_args_address): Do not call
2451         DEPRECATED_FRAME_ARGS_ADDRESS.
2452
2453         * gdbarch.sh (deprecated_register_raw_size)
2454         (deprecated_register_virtual_size:int): Delete.
2455         * gdbarch.h, gdbarch.c: Re-generate.
2456         * cris-tdep.c (cris_register_size): Delete.
2457         (cris_gdbarch_init): Update.
2458         * alpha-tdep.c (alpha_register_raw_size)
2459         (alpha_register_virtual_size): Delete.
2460         (alpha_gdbarch_init): Update.
2461
2462         * gdbarch.sh (deprecated_register_virtual_type)
2463         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2464         (deprecated_dummy_write_sp): Delete.
2465         * gdbarch.h, gdbarch.c: Re-generate.
2466
2467         * gdbarch.sh (deprecated_register_bytes): Delete.
2468         * gdbarch.h, gdbarch.c: Re-generate.
2469         * regcache.c (deprecated_register_bytes): New function.
2470         * regcache.h (deprecated_register_bytes): Declare.
2471         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2472         * v850-tdep.c (v850_gdbarch_init): Update.
2473         * sh64-tdep.c (sh64_gdbarch_init): Update.
2474         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2475         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2476         * mcore-tdep.c (mcore_gdbarch_init): Update.
2477         * cris-tdep.c (cris_gdbarch_init): Update.
2478         * arm-tdep.c (arm_gdbarch_init): Update.
2479         * remote.c (init_remote_state): Update.
2480         * remote-vx.c (vx_prepare_to_store): Update.
2481         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2482         * irix5-nat.c (fetch_core_registers): Update.
2483         * cris-tdep.c (cris_register_bytes_ok): Update.
2484         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2485
2486         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2487         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2488         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2489         (mips_insn16_frame_base_address, mips_insn16_frame_base)
2490         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2491         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2492         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2493         (mips_insn32_frame_base_address, mips_insn32_frame_base)
2494         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2495         with mips_insn16 and mips_insn32.
2496
2497         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2498         * rs6000-tdep.c (rs6000_push_dummy_call)
2499         (rs6000_extract_return_value): Use register_size.
2500         * xstormy16-tdep.c (xstormy16_get_saved_register) 
2501         (xstormy16_extract_return_value): Ditto.
2502         * valops.c (value_assign): Ditto.
2503         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
2504         * v850-tdep.c (v850_extract_return_value): Ditto.
2505         * tracepoint.c (collect_symbol): Ditto.
2506         * target.c (debug_print_register): Ditto.
2507         * stack.c (frame_info): Ditto.
2508         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2509         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2510         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2511         (store_register_using_P): Ditto.
2512         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2513         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2514         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2515         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2516         * regcache.c (deprecated_read_register_bytes) 
2517         (deprecated_write_register_bytes, read_register) 
2518         (write_register): Ditto.
2519         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2520         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2521         * monitor.c (monitor_supply_register, monitor_fetch_register) 
2522         (monitor_store_register): Ditto.
2523         * mn10300-tdep.c (mn10300_pop_frame_regular) 
2524         (mn10300_print_register): Ditto.
2525         * mipsv4-nat.c (fill_fpregset): Ditto.
2526         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
2527         (mips64_fill_fpregset): Ditto.
2528         * mi/mi-main.c (register_changed_p, get_register)
2529         (mi_cmd_data_write_register_values): Ditto.
2530         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
2531         * irix5-nat.c (fill_gregset, fetch_core_registers): 
2532         * infrun.c (write_inferior_status_register): Ditto.
2533         * infptrace.c (fetch_register, store_register): Ditto.
2534         * infcmd.c (default_print_registers_info): Ditto.
2535         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2536         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2537         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2538         * hpux-thread.c (hpux_thread_fetch_registers)
2539         (hpux_thread_store_registers): Ditto.
2540         * hppah-nat.c (store_inferior_registers, fetch_register): 
2541         * findvar.c (value_from_register): Ditto.
2542         * dve3900-rom.c (fetch_bitmapped_register): 
2543         * cris-tdep.c (cris_gdbarch_init): Ditto.
2544         * alpha-tdep.h: Ditto.
2545         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2546
2547         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2548         DEPRECATED_REGISTER_RAW_SIZE from comments.
2549         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2550         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2551         DEPRECATED_REGISTER_RAW_SIZE.
2552         * findvar.c (value_of_register): Simplify by assuming that the
2553         registers raw and virtual sizes are identical.
2554         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2555         comment.
2556         * arch-utils.c (generic_register_size): Simplify by assuming
2557         register_type.
2558
2559         * regcache.c (legacy_read_register_gen, real_register) 
2560         (legacy_write_register_gen): Delete, not used.
2561
2562         * regcache.c (struct regcache_descr): Delete legacy_p.
2563         (init_legacy_regcache_descr): Delete function.
2564         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2565         Do not use deprecated register functions.
2566         (regcache_raw_read, deprecated_write_register_gen):
2567         (deprecated_read_register_gen, regcache_raw_write): Delete code
2568         predicated on legacy_p.
2569         (register_size): Delete check against register raw size.
2570
2571         * cris-tdep.c (cris_register_type): Replace
2572         cris_register_virtual_type.
2573         (cris_gdbarch_init): Update, set register_type.
2574
2575         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2576         * gdbarch.h, gdbarch.c: Re-generate.
2577         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
2578         (arm_gdbarch_init) Do not set frameless function invocation.
2579         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2580         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2581         * frv-tdep.c (frv_frameless_function_invocation): Delete.
2582         (frv_gdbarch_init): Do not set frameless function invocation.
2583         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2584         * sh-tdep.c (sh_gdbarch_init): Ditto.
2585         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2586         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2587         * avr-tdep.c (avr_gdbarch_init): Ditto.
2588
2589         * blockframe.c (legacy_frame_chain_valid): Delete function.
2590
2591         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2592         and pc.  Update comments.
2593         (pc_in_dummy_frame): Delete function.
2594         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2595         use the "id".
2596         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2597         call_hi, top and pc, use the id.
2598         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2599
2600         * dummy-frame.c: Include "gdb_string.h".
2601         (generic_save_call_dummy_addr, generic_push_dummy_frame)
2602         (generic_save_dummy_frame_tos): Delete.
2603         (dummy_frame_push): New function, replaces above.
2604         * dummy-frame.h: Update copyright.
2605         (dummy_frame_push): Declare.
2606         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2607         (generic_save_call_dummy_addr): Delete declarations.
2608         * infcall.c: Include "dummy-frame.h".
2609         (call_function_by_hand): Add locals caller_regcache,
2610         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
2611         with call to frame_save_as_regcache plus cleanup.  Delete calls to
2612         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2613         Move clear_proceed_status to just before the resume, add call to
2614         dummy_frame_push (discard cleanup).
2615         * Makefile.in (infcall.o): Add $(dummy_frame_h).
2616         (dummy-frame.o): Add $(gdb_string_h).
2617
2618 2004-08-01  Andrew Cagney  <[email protected]>
2619
2620         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2621         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2622         * dummy-frame.c (find_dummy_frame): Delete.
2623         (struct dummy_frame_cache, dummy_frame_sniffer)
2624         (dummy_frame_prev_register, dummy_frame_this_id)
2625         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2626         frame unwinder using a dummy_frame_cache.
2627
2628 2004-08-01  Andrew Cagney  <[email protected]>
2629
2630         * frame.h (frame_save_as_regcache): Declare.
2631         * frame.c (frame_save_as_regcache): New function.
2632         (do_frame_read_register): Replace do_frame_unwind_register.
2633         (frame_pop): Use frame_save_as_regcache.
2634         * dummy-frame.c (generic_push_dummy_frame): Use
2635         frame_save_as_regcache.
2636
2637 2004-08-01  Joel Brobecker  <[email protected]>
2638
2639         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2640         file as included until we record the first line in the linetable.
2641
2642 2004-08-01  Andrew Cagney  <[email protected]>
2643
2644         * frame.h (deprecated_pop_dummy_frame)
2645         (deprecated_read_register_dummy)
2646         (deprecated_generic_find_dummy_frame): Delete.
2647         * dummy-frame.c (deprecated_generic_find_dummy_frame)
2648         (deprecated_read_register_dummy)
2649         (deprecated_find_dummy_frame_regcache)
2650         (discard_innermost_dummy)
2651         (deprecated_pop_dummy_frame): Delete.
2652         (dummy_frame_this_id): Simplify.
2653         (struct dummy_frame): Delete "fp" and "sp".
2654         (find_dummy_frame): Simplify.
2655         (generic_push_dummy_frame): Do not set "fp" or "sp".
2656         (fprint_dummy_frames): Do not print "fp" and "sp"
2657
2658 2004-08-01  Mark Kettenis  <[email protected]>
2659
2660         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2661         (struct i386_insn): New structure.
2662         (i386_match_insn): New function.
2663         (i386_frame_setup_skip_insns): New variable.
2664         (i386_analyze_frame_setup): Change to use i386_match_insn and the
2665         array i386_frame_setup_insns of instructions that should be
2666         skipped inside the frame setup sequence.
2667
2668 2004-08-01  Andrew Cagney  <[email protected]>
2669
2670         * frame.h (deprecated_frame_xmalloc_with_cleanup)
2671         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2672         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2673         * stack.c (frame_info): Delete references to
2674         DEPRECATED_FRAME_INIT_SAVED_REGS and
2675         deprecated_get_frame_saved_regs.
2676         * frame.c (struct frame_info): Delete saved_regs and extra_info.
2677         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2678         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2679         (frame_unwind_register_signed)
2680         (frame_unwind_register_unsigned)
2681         (frame_unwind_unsigned_register): Use register_size.
2682         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2683         (deprecated_frame_xmalloc_with_cleanup)
2684         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2685         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2686
2687         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2688         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2689         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2690         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2691
2692         * infcall.c (call_function_by_hand): Do not use
2693         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2694         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2695         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2696         DEPRECATED_STACK_ALIGN.
2697
2698 2004-07-30  Ramana Radhakrishnan <[email protected]>
2699
2700         Committed by Andrew Cagney.
2701         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2702
2703 2004-08-01  Andrew Cagney  <[email protected]>
2704
2705         * mips-tdep.c (mips16_frame_cache)
2706         (mips16_frame_this_id, mips16_frame_prev_register)
2707         (mips16_frame_unwind, mips16_frame_sniffer)
2708         (mips16_frame_base_address, mips16_frame_base)
2709         (mips16_frame_base_sniffer, mips32_frame_cache)
2710         (mips32_frame_this_id, mips32_frame_prev_register)
2711         (mips32_frame_unwind, mips32_frame_sniffer)
2712         (mips32_frame_base_address, mips32_frame_base)
2713         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2714         separate heuristic mips16 and mips32 unwinders.
2715         (mips_stub_frame_cache, mips_stub_frame_this_id)
2716         (mips_stub_frame_prev_register)
2717         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2718         (mips_stub_frame_base_address, mips_stub_frame_base)
2719         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2720         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2721         match true mdebug frames.
2722         (non_heuristic_proc_desc): Add forward declaration.
2723
2724 2004-08-01  Andrew Cagney  <[email protected]>
2725
2726         * config/mips/tm-irix6.h: Delete file.
2727         * config/mips/tm-irix5.h: Delete file.
2728         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2729         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2730
2731         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2732         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2733         * config/nm-gnu.h (NO_CORE_OPS): Delete.
2734         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2735         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2736         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2737         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2738         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2739         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2740         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2741         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2742         (TARGET_SIGNAL_RAW_VALUES): Delete.
2743         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2744         Delete.
2745         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
2746         (TARGET_HW_WATCH_LIMIT): Delete.
2747         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2748         * minimon.h: Delete file.
2749
2750         * trad-frame.c (trad_frame_get_this_base)
2751         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2752         functions.
2753         * trad-frame.h (trad_frame_set_this_base)
2754         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2755
2756 2004-07-31  Andrew Cagney  <[email protected]>
2757
2758         * trad-frame.c (trad_frame_get_prev_register): Rename
2759         trad_frame_get_prev_register.
2760         * vax-tdep.c (vax_frame_prev_register): Update.
2761         * trad-frame.h: Update.
2762         * trad-frame.c (trad_frame_get_register): Update.
2763         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2764         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2765         Update.
2766         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2767         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2768         Update.
2769         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2770         Update.
2771         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2772         Update.
2773         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2774         Update.
2775         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2776         Update.
2777         * s390-tdep.c (s390_frame_prev_register) 
2778         (s390_stub_frame_prev_register) 
2779         (s390_sigtramp_frame_prev_register): Update.
2780         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2781         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2782         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2783         * m88k-tdep.c (m88k_frame_prev_register) 
2784         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
2785         * m32r-tdep.c (m32r_frame_prev_register): Update.
2786         * hppa-tdep.c (hppa_frame_prev_register_helper) 
2787         * frv-tdep.c (frv_frame_prev_register): Update.
2788         * d10v-tdep.c (d10v_frame_prev_register): Update.
2789         * cris-tdep.c (cris_frame_prev_register): Update.
2790         * avr-tdep.c (avr_frame_prev_register): Update.
2791         * arm-tdep.c (arm_prologue_prev_register) 
2792         (arm_sigtramp_prev_register): Update.
2793
2794 2004-07-31  Andrew Cagney  <[email protected]>
2795
2796         * frame.h (legacy_saved_regs_unwind)
2797         (legacy_frame_chain_valid, legacy_frame_p)
2798         (enum frame_type): Delete UNKNOWN_FRAME.
2799         * dummy-frame.c (dummy_frame_this_id): Simplify.
2800         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2801         * frame.c (struct frame_info): Delete the field "type".
2802         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2803         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2804         (legacy_saved_regs_unwind, legacy_frame_p)
2805         (frame_type_from_pc): Delete.
2806         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2807         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2808
2809 2004-07-31  Mark Kettenis  <[email protected]>
2810
2811         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2812         indentation.
2813
2814         * mips-nat.c: Remove file.
2815         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2816         (mips-nat.o): Remove dependency.
2817
2818         * infptrace.c: Update copyright year.
2819         (fetch_register): Pass NULL in regcache_raw_supply call instead of
2820         explicitly setting the buffer to all zeroes.
2821
2822         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2823         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2824
2825 2004-07-30  Andrew Cagney  <[email protected]>
2826
2827         * GDB 6.2 released from gdb_6_2-branch.
2828
2829 2004-07-30  Baurjan Ismagulov  <[email protected]>
2830
2831         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2832
2833         * exec.c (exec_file_attach):
2834         * nto-tdep.c (nto_find_and_open_solib):
2835         * pa64solib.c (pa64_solib_sizeof_symbol_table):
2836         * solib.c (solib_open):
2837         * somsolib.c (som_solib_sizeof_symbol_table):
2838         * source.c (is_regular_file, openp, open_source_file):
2839         * symfile.c (symfile_bfd_open):
2840         * wince.c (upload_to_device): Differentiate between the search for
2841         binary and source files.
2842
2843 2004-07-30  Andrew Cagney  <[email protected]>
2844
2845         * complaints.c (_initialize_complaints): Pass NULL to
2846         add_setshow_zinteger_cmd for help_doc.
2847         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2848
2849 2004-07-30  Andrew Cagney  <[email protected]>
2850
2851         Fix PR i18n/761.
2852         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2853         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2854         $(PACKAGE).pot and update-po.
2855         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2856         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2857         (update-po): New rules.
2858         (localedir): Define using autoconf.
2859         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2860         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2861         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2862         * configure.in: Generate CATALOGS and LINGUAS from contents of
2863         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
2864         * configure: Re-generate.
2865         * po/gdbtext: New file
2866         
2867 2004-07-30  Jerome Guitton  <[email protected]>
2868
2869         * MAINTAINERS: Reorder Write After Approval list in alphabetical
2870         order.
2871
2872 2004-07-30  David Lecomber  <[email protected]>
2873
2874         * dwarf2read.c (read_file_scope): Set producer if attribute 
2875         present.
2876         (struct dwarf2_cu): Added new member producer.
2877
2878 2004-07-30  Jerome Guitton  <[email protected]>
2879
2880         * inflow.c (kill_command): release file handles in BFD.
2881         * exec.c (exec_file_attach): Ditto.
2882         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2883
2884 2004-07-29  Andrew Cagney  <[email protected]>
2885
2886         * PROBLEMS (mips-irix): Note that it is broken.
2887
2888 2004-07-29  Andrew Cagney  <[email protected]>
2889
2890         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2891         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2892
2893         * config/xm-nbsd.h: Delete file.
2894         * config/arm/xm-nbsd.h: Delete file.
2895         * config/i386/xm-nbsd.h: Delete file.
2896         * config/ns32k/xm-nbsd.h: Delete file.
2897         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2898         * config/i386/nbsdelf.mh (XM_FILE): Delete.
2899         * config/i386/nbsdaout.mh (XM_FILE): Delete.
2900         * config/arm/nbsdelf.mh (XM_FILE): Delete.
2901         * config/arm/nbsdaout.mh (XM_FILE): Delete.
2902
2903         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2904         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2905         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2906         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2907         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2908         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2909
2910         * config/powerpc/xm-linux.h: Delete empty file.
2911         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2912         * config/powerpc/linux.mh (XM_FILE): Delete.
2913         * config/m68k/xm-linux.h: Delete empty file.
2914         * config/m68k/linux.mh (XM_FILE): Delete.
2915         * config/ia64/xm-linux.h: Delete empty file.
2916         * config/ia64/linux.mh (XM_FILE): Delete.
2917         * config/arm/xm-linux.h: Delete empty file.
2918         * config/arm/linux.mh (XM_FILE): Delete.
2919         
2920         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2921         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2922         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2923         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2924         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2925         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2926         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2927         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2928
2929         * config/m68k/xm-m68k.h: Delete file.
2930         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
2931         copyright.
2932         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2933         * config/pa/xm-linux.h: Delete empty file.
2934         * config/pa/linux.mh (XM_FILE): Delete.
2935         * config/i386/xm-i386.h: Delete empty file.
2936         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2937         "i386/xm-i386.h".
2938         * config/i386/obsdaout.mh (XM_FILE): Delete.
2939         * config/i386/obsd64.mh (XM_FILE): Delete.
2940         * config/i386/fbsd64.mh (XM_FILE): Delete.
2941         * config/i386/nto.mh (XM_FILE): Delete.
2942         * config/i386/obsd.mh (XM_FILE): Delete.
2943         * config/i386/linux64.mh (XM_FILE): Delete.
2944         * config/i386/linux.mh (XM_FILE): Delete.
2945         * config/i386/i386sol2.mh (XM_FILE): Delete.
2946         * config/i386/i386gnu.mh (XM_FILE): Delete.
2947         * config/i386/fbsd.mh (XM_FILE): Delete.
2948         * config/i386/nbsd64.mh (XM_FILE): Delete.
2949
2950 2004-07-29  Andrew Cagney  <[email protected]>
2951
2952         * config/pa/xm-linux.h: Do not include "floatformat.h".
2953         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2954         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2955         * config/i386/xm-i386.h: Do not include "floatformat.h".
2956         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
2957         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2958         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2959         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
2960         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2961         GDB_HOST_LONG_DOUBLE_FORMAT instead.
2962         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2963         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2964         * configure, config.in: Regenerate.     
2965         * configure.host (gdb_host_float_format, gdb_host_double_format)
2966         (gdb_host_long_double_format): Set according to the host.
2967         
2968 2004-07-29  Andrew Cagney  <[email protected]>
2969
2970         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2971
2972 2004-07-28  Andrew Cagney  <[email protected]>
2973
2974         * PROBLEMS: Mention threads/1650.
2975         * NEWS: Mention the NPTL fix.
2976
2977 2004-07-28  Andrew Cagney  <[email protected]>
2978
2979         * cli/cli-decode.c (add_setshow_cmd): Delete function.
2980         (add_setshow_cmd_full): Make static.
2981         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2982         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2983         * cli/cli-decode.c (add_setshow_filename_cmd) 
2984         (add_setshow_string_cmd): New functions.
2985         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
2986         * mips-tdep.c (_initialize_mips_tdep): Update.
2987         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
2988         * cli/cli-logging.c (_initialize_cli_logging): Update.
2989         * complaints.c (_initialize_complaints): Update.
2990         * remote.c (_initialize_remote): Update.
2991         
2992 2004-07-28  Andrew Cagney  <[email protected]>
2993
2994         * cli/cli-decode.c (add_setshow_zinteger_cmd)
2995         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2996         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2997         print parameters.  Make string parameters constant.
2998         * command.h: Update.  Update copyright.
2999         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3000         * observer.c (_initialize_observer): Ditto.
3001         * frame.c (_initialize_frame): Ditto.
3002         * complaints.c (_initialize_complaints): Ditto.
3003         * maint.c (_initialize_maint_cmds): Ditto.
3004         * target.c (initialize_targets): Ditto.
3005         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3006         * infcall.c (_initialize_infcall): Ditto.
3007         * arm-tdep.c (_initialize_arm_tdep): Ditto.
3008         * m32r-rom.c (_initialize_m32r_rom): Ditto.
3009         * remote-rdi.c (_initialize_remote_rdi): Ditto.
3010         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3011         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3012
3013 2004-07-28  Andrew Cagney  <[email protected]>
3014
3015         * gdbtypes.c (lookup_primitive_typename): Delete function.
3016         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3017         * ada-lex.l: Use language_lookup_primitive_type_by_name.
3018         * gdbtypes.c (lookup_typename): Ditto.
3019         * f-exp.y (yylex): Ditto.
3020         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3021
3022         * scm-lang.c (c_builtin_types): Delete extern declaration.
3023         (scm_language_defn): Replace
3024         string_char_type and primitive_type_vector with
3025         la_language_arch_info.
3026         * jv-lang.c (java_language_defn): Replace
3027         string_char_type and primitive_type_vector with
3028         la_language_arch_info.
3029         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3030         c_builtin_types in comment.
3031         * c-lang.h (struct language_arch_info): Declare opaque.
3032         (c_language_arch_info): Declare.
3033         (c_builtin_types): Delete declaration.
3034         * c-lang.c (c_language_arch_info): Set string_char_type to
3035         builtin_char, not builtin_true_char.  Make global.
3036         (c_builtin_types): Delete array.
3037         (asm_language_defn, minimal_language_defn): Replace
3038         string_char_type and primitive_type_vector with
3039         la_language_arch_info.
3040
3041 2004-07-28  Andrew Cagney  <[email protected]>
3042
3043         * gdbtypes.h (struct builtin_type): Rename true_char to
3044         builtin_true_char.
3045         * gdbtypes.c (gdbtypes_post_init): Update.
3046         * c-lang.c (arch_info): New function.
3047         (enum c_primitive_types): New enum.
3048         (c_language_defn): Instead of string_char_type and
3049         primitive_type_vector set la_language_arch_info.
3050
3051 2004-07-28  Andrew Cagney  <[email protected]>
3052
3053         * language.h (struct language_arch_info): Fix typo
3054         s/primative/primitive/.
3055         * gdbtypes.c (lookup_primitive_typename): Ditto.
3056         * language.c (language_lookup_primitive_type_by_name)
3057         (unknown_language_arch_info): Ditto.
3058
3059 2004-07-27  Andrew Cagney  <[email protected]>
3060
3061         * defs.h (enum language): Add nr_languages.
3062         * language.h (struct language_arch_info): Define.
3063         (struct language_defn): Add la_language_arch_info.
3064         (language_lookup_primative_type_by_name): Declare.
3065         (language_string_char_type): Declare.
3066         * language.c (_initialize_language, language_gdbarch_post_init)
3067         (struct language_gdbarch, language_gdbarch_data): Implement
3068         per-architecture language information.
3069         (unknown_language_arch_info, language_string_char_type)
3070         (language_lookup_primative_type_by_name): New functions.
3071         (unknown_language_defn, auto_language_defn)
3072         (local_language_defn): Set la_language_arch_info to
3073         unknown_language_arch_info.
3074         (unknown_builtin_types): Delete.
3075         * gdbtypes.c (lookup_primitive_typename): Use
3076         language_lookup_primative_type_by_name.
3077         (create_string_type): Use language_string_char_type.
3078         * values.c (value_from_string): Use language_string_char_type.
3079         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3080         * p-lang.c (pascal_language_defn): Ditto.
3081         * m2-lang.c (m2_language_defn): Ditto.
3082         * jv-lang.c (java_language_defn): Ditto.
3083         * objc-lang.c (objc_language_defn): Ditto.
3084         * f-lang.c (f_language_defn): Ditto.
3085         * c-lang.c (c_language_defn, cplus_language_defn) 
3086         (asm_language_defn, minimal_language_defn): Ditto.
3087         
3088 2004-07-27  Andrew Cagney  <[email protected]>
3089
3090         * gdbtypes.h (struct builtin_type): Declare.
3091         (builtin_type): Declare.
3092         * d10v-tdep.c (d10v_register_type): Use builtin_type.
3093         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3094         (gdbtypes_post_init): New function.
3095         (builtin_type): New function.
3096
3097 2004-07-27  Kei Sakamoto  <[email protected]>
3098
3099         * remote-m32r-sdi.c: Fix breakpoint bug.
3100         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3101         recv_char_data, recv_long_data): New functions to replace communication
3102         sequences.
3103
3104 2004-07-26  Michael Chastain  <[email protected]>
3105
3106         Document PR threads/1650.
3107         * PROBLEMS (Threads): Document problem with many threads
3108
3109 2004-07-26  Andrew Cagney  <[email protected]>
3110
3111         * gdb-mi.el: Move from here ...
3112         * mi/gdb-mi.el: ... to here.
3113
3114 2004-07-26  Andrew Cagney  <[email protected]>
3115
3116         Problem reported by Ashley Pittman <[email protected]>.
3117         * main.c (captured_main): When in batch mode always detach.
3118
3119 2004-07-26  Andrew Cagney  <[email protected]>
3120
3121         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3122         and h8300 as broken.
3123         * NEWS: END-OF-LIFE frame compatibility module.
3124         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3125         specific comments.
3126
3127 2004-07-26  Andrew Cagney  <[email protected]>
3128
3129         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3130         * xcoffsolib.c (_initialize_xcoffsolib): Update.
3131         * wince.c (_initialize_wince): Update.
3132         * win32-nat.c (_initialize_win32_nat): Update.
3133         * varobj.c (_initialize_varobj): Update.
3134         * valops.c (_initialize_valops): Update.
3135         * utils.c (initialize_utils, initialize_utils): Update.
3136         * tui/tui-win.c (_initialize_tui_win): Update.
3137         * top.c (init_main): Update.
3138         * symfile.c (_initialize_symfile): Update.
3139         * source.c (_initialize_source): Update.
3140         * somsolib.c (_initialize_som_solib): Update.
3141         * solib.c (_initialize_solib): Update.
3142         * solib-frv.c (_initialize_frv_solib): Update.
3143         * serial.c (_initialize_serial): Update.
3144         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3145         * remote.c (_initialize_remote, _initialize_remote): Update.
3146         * remote-vx.c (_initialize_vx): Update.
3147         * remote-utils.c (_initialize_sr_support): Update.
3148         * remote-sds.c (_initialize_remote_sds): Update.
3149         * remote-mips.c (_initialize_remote_mips): Update.
3150         * remote-e7000.c (_initialize_remote_e7000): Update.
3151         * proc-api.c (_initialize_proc_api): Update.
3152         * printcmd.c: Update.
3153         * parse.c (_initialize_parse): Update.
3154         * pa64solib.c (_initialize_pa64_solib): Update.
3155         * p-valprint.c (_initialize_pascal_valprint): Update.
3156         * monitor.c (_initialize_remote_monitors): Update.
3157         * mips-tdep.c (_initialize_mips_tdep): Update.
3158         * mcore-tdep.c (_initialize_mcore_tdep): Update.
3159         * maint.c (_initialize_maint_cmds): Update.
3160         * lin-lwp.c (_initialize_lin_lwp): Update.
3161         * language.c (_initialize_language): Update.
3162         * kod.c (_initialize_kod): Update.
3163         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3164         * i386-tdep.c (_initialize_i386_tdep): Update.
3165         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3166         * gdbarch.sh: Update.
3167         * gdbarch.c: Re-generate.
3168         * gdb-events.sh: Update.
3169         * gdb-events.c: Re-generate.
3170         * frame.c (_initialize_frame): Update.
3171         * exec.c: Update.
3172         * demangle.c (_initialize_demangler): Update.
3173         * dcache.c (_initialize_dcache): Update.
3174         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3175         * cp-valprint.c (_initialize_cp_valprint): Update.
3176         * corefile.c (_initialize_core): Update.
3177         * command.h: Update.
3178         * cli/cli-decode.h: Update.
3179         * cli/cli-cmds.c (init_cli_cmds): Update.
3180         * charset.c (_initialize_charset): Update.
3181         * breakpoint.c (_initialize_breakpoint): Update.
3182         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3183         * alpha-tdep.c (_initialize_alpha_tdep): Update.
3184         * aix-thread.c (_initialize_aix_thread): Update.
3185
3186 2004-07-24  Mark Kettenis  <[email protected]>
3187
3188         Partial fix for PR backtrace/1718.
3189         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3190         that GCC migrates into the prolugue.  Don't handle any
3191         instructions that clobber %ebx.
3192
3193 2004-07-23  Andrew Cagney  <[email protected]>
3194
3195         Use regcache_raw_collect instead of regcache_collect.
3196         * regcache.h (regcache_collect): Delete declaration.
3197         * regcache.c (regcache_colect): Delete function.
3198         * win32-nat.c (do_child_store_inferior_registers): Update.
3199         * sol-thread.c (sol_thread_store_registers): Update.
3200         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3201         * rs6000-nat.c (store_register): Update.
3202         * remote.c (store_register_using_P, remote_store_registers): Update.
3203         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3204         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
3205         (fill_vrregset, store_spe_registers, fill_gregset)
3206         (fill_gregset): Update.
3207         * nto-procfs.c (procfs_store_registers): Update.
3208         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3209         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3210         * m68klinux-nat.c (store_register, fill_gregset): Update.
3211         * m68k-tdep.c (fill_gregset): Update.
3212         * infptrace.c (store_register): Update.
3213         * i386-nto-tdep.c (i386nto_regset_fill): Update.
3214         * i386-linux-nat.c (store_register, fill_gregset): Update.
3215         * hppa-linux-nat.c (fill_gregset): Update.
3216         * go32-nat.c (store_register): Update.
3217         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3218         (store_fp_regs): Update.
3219         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
3220         (store_nwfpe_extended, store_fpregister, store_fpregs) 
3221         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3222         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3223         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3224         (store_regs_user_thread, store_regs_kernel_thread): Update.
3225
3226 2004-07-24  Mark Kettenis  <[email protected]>
3227
3228         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3229         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3230         encoding.
3231         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3232         member of `struct comp_unit'.
3233
3234 2004-07-23  Andrew Cagney  <[email protected]>
3235
3236         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3237         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3238
3239 2004-07-23  Martin Hunt  <[email protected]>
3240         Kevin Buettner <[email protected]>
3241
3242         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3243         alignment was being added to the offset instead of multiplied.
3244
3245 2004-07-23  Mark Kettenis  <[email protected]>
3246
3247         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3248         changed signal trampoline in OpenBSD 3.5-current.
3249
3250         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3251         <machine/pcb.h> and "bsd-kvm.h".
3252         (sparc64nbsd_supply_pcb): New function.
3253         (_initialize_sparc64nbsd_nat): Renamed from
3254         _initialize_sparcnbsd_nat.  Enable libkvm interface.
3255         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3256         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3257         (LOADLIBES): New variable.
3258
3259         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3260
3261         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3262
3263 2004-07-21  Andrew Cagney  <[email protected]>
3264
3265         Use regcache_raw_supply instead of supply_register.
3266         * regcache.h (supply_register): Delete declaration.
3267         * regcache.c (supply_register): Delete function.
3268         * wince.c (do_child_fetch_inferior_registers): Update.
3269         * win32-nat.c (do_child_fetch_inferior_registers) 
3270         (fetch_elf_core_registers): Update.
3271         * v850ice.c (v850ice_fetch_registers): Update.
3272         * thread-db.c (thread_db_store_registers): Update.
3273         * sol-thread.c (sol_thread_store_registers): Update.
3274         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3275         * rs6000-nat.c (fetch_register): Update.
3276         * rom68k-rom.c (rom68k_supply_one_register): Update.
3277         * remote.c (remote_wait, remote_async_wait): Update.
3278         * remote-st.c (get_hex_regs): Update.
3279         * remote-sim.c (gdbsim_fetch_register): Update.
3280         * remote-sds.c (sds_fetch_registers): Update.
3281         * remote-rdp.c (remote_rdp_fetch_register): Update.
3282         * remote-rdi.c (arm_rdi_fetch_registers): Update.
3283         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3284         * remote-m32r-sdi.c (m32r_fetch_register): Update.
3285         * remote-hms.c (init_hms_cmds): Update.
3286         * remote-est.c (init_est_cmds): Update.
3287         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
3288         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3289         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3290         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
3291         (fetch_register, supply_vrregset, supply_vrregset)
3292         (fetch_spe_registers): Update.
3293         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3294         * monitor.c (monitor_supply_register): Update.
3295         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3296         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3297         (mipsnbsd_supply_fpreg): Update.
3298         * mips-nat.c (fetch_inferior_registers)
3299         (fetch_core_registers): Update.
3300         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
3301         (supply_fpregset, mips64_supply_gregset)
3302         (mips64_supply_fpregset): Update.
3303         * m68klinux-nat.c (fetch_register, supply_gregset)
3304         (supply_fpregset): Update.
3305         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3306         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3307         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3308         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3309         * infptrace.c (fetch_register): Update.
3310         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3311         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3312         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
3313         (gnu_fetch_registers, gnu_store_registers): Update.
3314         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3315         * i386-linux-nat.c (fetch_register, supply_gregset)
3316         (dummy_sse_values): Update.
3317         * hpux-thread.c (hpux_thread_fetch_registers): Update.
3318         * hppah-nat.c (fetch_register): Update.
3319         * hppa-linux-nat.c (fetch_register, supply_gregset) 
3320         (supply_fpregset): Update.
3321         * go32-nat.c (fetch_register): Update.
3322         * dve3900-rom.c (fetch_bitmapped_register)
3323         (_initialize_r3900_rom): Update.
3324         * cris-tdep.c (supply_gregset): Update.
3325         * abug-rom.c (init_abug_cmds): Update.
3326         * core-aout.c (fetch_core_registers): Update.
3327         * armnbsd-nat.c (supply_gregset, supply_fparegset)
3328         (fetch_register, fetch_fp_register): Update.
3329         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3330         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3331         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3332         * alphanbsd-tdep.c (fetch_core_registers): Update.
3333         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3334         * alpha-nat.c (fetch_osf_core_registers) 
3335         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3336         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
3337         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3338
3339 2004-07-21  Andrew Cagney  <[email protected]>
3340
3341         * PROBLEMS: Mention breakpoints/1702.
3342         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3343         that is known to work.
3344
3345 2004-07-21  Andrew Cagney  <[email protected]>
3346
3347         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3348         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3349         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3350         (handle_inferior_event): Wrap call to deprecated
3351         IGNORE_HELPER_CALL in #ifdef.
3352         * config/mips/tm-nbsd.h: Update.
3353
3354 2004-07-20  Jim Blandy  <[email protected]>
3355
3356         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3357         bfd_mach_ppc has no segment registers.
3358
3359         Include PowerPC SPR numbers for special-purpose registers.
3360         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3361         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3362         new member in initializer.
3363         (S, S4, SN4, S64): New macros for defining special-purpose
3364         registers.
3365         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3366         registers_403, registers_403GC, registers_505, registers_860,
3367         registers_601, registers_602, registers_603, registers_604,
3368         registers_750, registers_e500): Use them.
3369
3370         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3371         replace references with expression used to initialize variable.
3372
3373 2004-07-20  Andrew Cagney  <[email protected]>
3374
3375         * breakpoint.c (deprecated_read_memory_nobpt): Rename
3376         read_memory_nobpt.
3377         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3378         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3379         (s390_sigtramp_frame_sniffer): Update.
3380         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3381         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3382         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
3383         (mips32_fetch_instruction): Update.
3384         * mcore-tdep.c (get_insn): Update.
3385         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3386         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3387         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3388         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
3389         (i386_linux_rt_sigtramp_start): Update.
3390         * i386-linux-nat.c (child_resume): Update.
3391         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3392         * hppa-linux-tdep.c (insns_match_pattern): Update.
3393         * gdbcore.h: Update.
3394         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3395         * frame.c (safe_frame_unwind_memory): Update.
3396         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3397         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3398         * alpha-tdep.c (alpha_read_insn): Update.
3399
3400 2004-07-20  Andrew Cagney  <[email protected]>
3401
3402         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3403         containing both bytes and mask.  Add "frame_type".
3404         * tramp-frame.c (tramp_frame_start): Update.
3405         (tramp_frame_prepend_unwinder): Update.
3406         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3407         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3408         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
3409         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3410
3411 2004-07-19  Eli Zaretskii  <[email protected]>
3412
3413         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3414         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3415         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3416         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3417
3418 2004-07-17  Andrew Cagney  <[email protected]>
3419
3420         * NEWS, PROBLEMS: Update for 6.2.
3421
3422         * README: Update to 6.2.
3423
3424         * utils.c (xvasprintf): Call xstrvprintf.
3425
3426         * parse.c: Update copyright.
3427         (null_post_parser): Eliminate ARGSUSED.
3428
3429         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3430         * tui/tui-win.c (tui_get_cmd_list): Ditto.
3431         * symfile-mem.c (_initialize_symfile_mem): Ditto.
3432         
3433         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3434         * ppc-linux-nat.c: Use "Linux kernel".
3435         * hppa-linux-tdep.c: Use GNU/Linux.
3436         * hppa-linux-nat.c: Use GNU/Linux.
3437         * dwarfread.c: Add [sic] to use of Linux.
3438
3439         * hppa-linux-nat.c: Do not include <string.h>.
3440         (supply_fpregset): Remove "register" attribute.
3441
3442         * solib-frv.c (fetch_loadmap): Use xfree, not free.
3443
3444 2004-07-17  Mark Kettenis  <[email protected]>
3445
3446         * configure.in: Define _MSE_INT_H on Solaris 9 too.
3447         * configure, config.in: Regenerated.
3448
3449         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3450         "bsd-kvm.h".
3451         (vaxbsd_supply_pcb): New function.
3452         (_initialize_vaxbsd_nat): New prototype and function.
3453         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3454         solib-sunos.o.
3455         (LOADLIBES): New variable.
3456         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3457         (LOADLIBES): New variable.
3458         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3459         (LOADLIBES): New variable.
3460         * Makefile.in (vaxbsd-nat.o): Update dependencies.
3461
3462 2004-07-16  Andrew Cagney  <[email protected]>
3463
3464         * defs.h (event_loop_p): Replace variable declaration with macro,
3465         always 1.
3466         * main.c (captured_main): Delete options "-async" and "-noasync".
3467         (event_loop_p): Delete variable.
3468         * NEWS: Mention that "-async" and "-noasync" were removed.
3469
3470 2004-07-16  Andrew Cagney  <[email protected]>
3471
3472         * remote-m32r-sdi.c: Re-indent.
3473
3474 2004-07-16  Jim Blandy  <[email protected]>
3475
3476         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3477         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3478         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3479         missing MPC823 SPRs.
3480         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3481         incorrect.  (This was corrected in GDB's register name tables on
3482         2004-07-14.)
3483
3484         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3485         should be "esasrr" ("ESA Save and Restore Register").
3486
3487 2004-07-16  Andrew Cagney  <[email protected]>
3488
3489         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3490         calls, no longer applicable.  Update comments and rename parameter
3491         "step_frame" to "return_frame".
3492
3493 2004-07-16  Andrew Cagney  <[email protected]>
3494
3495         * frame.c (fprint_field): New function.
3496         (fprint_frame_id): Use fprint_field.
3497
3498 2004-07-15  Joel Brobecker  <[email protected]>
3499
3500         * ada-lang.c (ada_language_defn): Remove commented out code.
3501
3502 2004-07-15  Jim Blandy  <[email protected]>
3503
3504         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3505         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3506
3507 2004-07-14  Jim Blandy  <[email protected]>
3508
3509         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3510
3511         * ppc-tdep.h (ppc_num_vrs): New enum constant.
3512
3513         * ppc-tdep.h (ppc_num_srs): New enum constant.
3514
3515         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3516         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3517         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3518         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3519         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3520         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3521         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3522         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3523         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3524         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3525         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3526         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3527         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3528         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3529         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3530         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3531         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3532         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3533         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3534         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3535         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3536         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3537         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3538         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3539         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3540         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3541         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3542         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3543         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3544         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3545         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3546         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3547         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3548         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3549         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3550         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3551         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3552         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3553         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3554         special-purpose register numbers.
3555
3556         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
3557         manual mentions 'md_twb', but many mention 'm_twb', and at that
3558         point in the register list.)
3559
3560 2004-07-14  Andrew Cagney  <[email protected]>
3561
3562         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3563         instead of "internal-error".
3564
3565 2004-07-10  Joel Brobecker  <[email protected]>
3566
3567         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3568         that was inserted inside a comment.
3569
3570 2004-07-10  Randolph Chung  <[email protected]>
3571
3572         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
3573         function.
3574         (hppa_hpux_push_dummy_code): New function.
3575         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3576         Set find_global_pointer method.
3577
3578 2004-07-10  Mark Kettenis  <[email protected]>
3579
3580         * NEWS: Mention BSD libkvm interface.
3581
3582 2004-07-10  Michael Snyder  <[email protected]>
3583
3584         * symfile.c (generic_load): Comment typo.
3585         * stack.c (get_selected_block): Ditto.
3586         * regcache.c (regcache_cooked_read): Ditto.
3587         * monitor.c (monitor_debug): Ditto.
3588         * mips-tdep.c (mips_read_pc): Ditto.
3589         * i386-linux-nat.c (ps_get_thread_area): Ditto.
3590         * gdb_mbuild.sh: Ditto.
3591         * gdbarch.sh: Ditto.
3592         * gdbarch.h: Ditto.
3593
3594 2004-07-09  Paul N. Hilfinger  <[email protected]>
3595
3596         * ada-tasks.c: Remove file.
3597         
3598         Remove ARI problems:
3599         
3600         * ada-exp.y (write_var_from_sym): Reformat to put operator at
3601         beginning of line.
3602
3603         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3604         Add comment.
3605         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3606         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
3607         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
3608         (UMIN_OF_SIZE): Remove.
3609         (max_of_type): New function to replace orphan macro in gdbtypes.h
3610         (min_of_type): Ditto.
3611         (discrete_type_high_bound): Use max_of_type.
3612         (discrete_type_low_bound): Use min_of_type.
3613         (possible_user_operator_p): Move operator to beginning of line.
3614         (ada_is_variant_part): Ditto.
3615         (ensure_lval): Rewrite to avoid deprecated operations.
3616         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3617         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3618         (ada_enum_name): Remove assignments in 'if' statements.
3619         (build_ada_types): Add gdbarch parameter.
3620         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3621         with gdbarch_data_register_post_init.
3622         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
3623         add_show_from_set.
3624
3625         * ada-valprint.c (inspect_it): Remove declaration.
3626         (repeat_count_threshold): Remove declaration.
3627         (ada_print_floating): Remove assignments in 'if' statements.
3628         (print_str): Move operator to beginning of line.
3629         
3630 2004-07-08  Jim Blandy  <[email protected]>
3631
3632         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3633
3634 2004-07-08  Bob Rossi  <[email protected]>
3635
3636         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3637
3638 2004-07-06  Jeff Johnston <[email protected]>
3639
3640         * language.h (struct_language_defn): Add new function pointer:
3641         la_class_name_from_physname.  Also add new prototype for
3642         language_class_name_from_physname.
3643         * language.c (language_class_name_from_physname): New function.
3644         (unk_lang_class_name): Ditto.
3645         (unknown_language_defn, auto_language_defn): Change
3646         to add unk_lang_class_name function pointer for
3647         la_class_name_from_physname.
3648         (local_language_defn): Ditto.
3649         * dwarf2read.c (guess_structure_name): Change to call
3650         language_class_name_from_physname.
3651         (determine_class_name): Ditto.
3652         * cp-support.c (class_name_from_physname): Renamed.
3653         (cp_class_name_from_physname): New name of function.
3654         * cp-support.h: Ditto.
3655         * c-lang.c (c_language_defn): Change to add NULL
3656         for class_name_from_physname function pointer.
3657         (cplus_language_defn): Change to add cp_class_name_from_physname.
3658         * jv-lang.c (java_class_name_physname): New function.
3659         (java_find_last_component): New static routine.
3660         (java_language_defn): Add java_class_name_from_physname pointer.
3661         * ada-lang.c (ada_language_defn): Change to add NULL
3662         for class_name_from_physname function pointer.
3663         * f-lang.c (f_language_defn): Ditto.
3664         * m2-lang.c (m2_language_defn): Ditto.
3665         * objc-lang.c (objc_language_defn): Ditto.
3666         * p-lang.c (pascal_language_defn): Ditto.
3667         * scm-lang.c (scm_language_defn): Ditto. 
3668
3669 2004-07-06  Andrew Cagney  <[email protected]>
3670
3671         Patch from Bart Robinson.
3672         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3673         (O_LARGEFILE): Define to 0, if not defined.
3674
3675 2004-07-03  Mark Kettenis  <[email protected]>
3676
3677         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3678         <machine/pcb.h> and "bsd-kvm.h".
3679         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3680         (m68kbsd_supply_pcb): New function.
3681         (_initialize_m68kbsd_nat): New prototype and function.
3682         * Makefile.in (m68kbsd-nat.o): Update dependencies.
3683         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3684         (LOADLIBES): New variable.
3685         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3686         (LOADLIBES): New variable.
3687
3688         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3689
3690 2004-07-03  Mark Kettenis  <[email protected]>
3691
3692         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3693         <sys/proc.h>.
3694         (bsd_kvm_cmdlist): New variable.
3695         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3696         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3697         command and "kvm proc" command.
3698         * Makefile.in (bsd-kvm.o): Update dependencies.
3699
3700 2004-07-02  Mark Kettenis  <[email protected]>
3701
3702         * osabi.c: Update copyright year.
3703         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
3704         notes if EI_OSABI is set to ELFOSABI_HPUX.
3705
3706 2004-07-01  Michael Snyder  <[email protected]>
3707
3708         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3709         that seems to have gotten whacked out of line.
3710
3711 2004-07-01  Mark Kettenis  <[email protected]>
3712
3713         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3714         code.
3715
3716 2004-07-01  Paul N. Hilfinger  <[email protected]>
3717
3718         * ada-lang.c (decode_packed_array): Minor change to comment.
3719         (ada_value_slice_ptr): New function. 
3720         (ada_value_slice): New function. 
3721         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3722         test.  Don't know why it is there.
3723         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3724         to avoid dereferencing huge arrays from which one is slicing.  
3725         (empty_array): Correct to return an array rather than
3726         a subrange value.
3727         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3728         on empty arrays (let'em use 'FIRST instead).
3729
3730 2004-07-01  Paul N. Hilfinger  <[email protected]>
3731
3732         Address complaints from gdb_ari.sh:
3733         
3734         * ada-exp.y: Include gdb_string.h rather than string.h.
3735         (convert_char_literal): Reformat declaration.
3736         * ada-lang.h: Include opaque struct declaration for struct frame_info.
3737         * ada-lex.l: Change use of free to xfree (the macro would do so
3738         anyway, but this is harmless).
3739         Include gdb_string.h rather than string.h.
3740         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3741         
3742         * ada-lang.c (parse): Remove K&Rism in parameter list.
3743         (is_name_suffix): Correct Linux => GNU/Linux in comment.
3744         
3745 2004-06-30  Mark Kettenis  <[email protected]>
3746
3747         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3748         dead code.
3749
3750 2004-06-30  Mark Kettenis  <[email protected]>
3751
3752         * alphabsd-nat.c: Update copyright year.
3753         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3754
3755 2004-06-29  Joel Brobecker  <[email protected]>
3756
3757         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3758         (i386_cygwin_in_solib_call_trampoline): New function.
3759         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3760         and skip_trampoline_code gdbarch methods.
3761
3762 2004-06-29  Jim Blandy  <[email protected]>
3763
3764         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3765         name actually used in the dependency lists.
3766
3767 2004-06-29  Randolph Chung  <[email protected]>
3768
3769         * NEWS (New native configurations): Mention GNU/Linux/hppa.
3770
3771 2004-06-29  Corinna Vinschen  <[email protected]>
3772
3773         * win32-nat.c (child_pid_to_exec_file): New function.
3774         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3775         functionality.
3776
3777 2004-06-28  Andrew Cagney  <[email protected]>
3778
3779         * defs.h (xstrvprintf): Declare.
3780         * utils.c (xstrvprintf): New function.
3781         (internal_vproblem, xstrprintf, xasprintf) 
3782         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3783         * serial.c (serial_printf): Ditto.
3784         * complaints.c (vcomplaint): Ditto.
3785
3786 2004-06-29  Corinna Vinschen  <[email protected]>
3787
3788         * infcmd.c (attach_command): Move call to target_terminal_inferior
3789         behind loading symbol table.
3790
3791 2004-06-28  Andrew Cagney  <[email protected]>
3792
3793         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3794         change - add back extern deprecated_ui_loop_hook declaration.
3795
3796 2004-06-28  Andrew Cagney  <[email protected]>
3797
3798         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3799         xstrprintf.
3800         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3801         (c_value_of_variable): Ditto.
3802         * utils.c (internal_vproblem): Ditto.
3803         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3804         * remote.c (add_packet_config_cmd): Ditto.
3805         * remote-rdp.c (rdp_set_command_line): Ditto.
3806         * regcache.c (regcache_dump): Ditto.
3807         * frv-tdep.c (new_variant, new_variant): Ditto.
3808         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3809         (fbsd_find_memory_regions): Ditto.
3810         * breakpoint.c (create_thread_event_breakpoint) 
3811         (create_breakpoints): Ditto.
3812         * aix-thread.c (aix_thread_pid_to_str): Ditto.
3813         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
3814
3815 2004-06-28  Joel Brobecker  <[email protected]>
3816
3817         * ada-lang.c: Re-indent file, with some massaging to help indent
3818         a bit when the result is otherwise really too ugly.
3819
3820 2004-06-27  Ulrich Weigand  <[email protected]>
3821
3822         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
3823         code_addr_p and special_addr_p to 'unsigned int'.
3824
3825 2004-06-27  Mark Kettenis  <[email protected]>
3826
3827         * i386v4-nat.c: Update copyright year and tweak comment.
3828         (regmap): Remove trailing comma.
3829         (supply_gregset): Rename local variable i to regnum.  Call
3830         regcache_raw_supply instead of supply_register.
3831         (fill_gregset): Rename argument regno to regnum.  Call
3832         regcache_raw_collect instead of regcache_collect.
3833
3834 2004-06-27  Ulrich Weigand  <[email protected]>
3835
3836         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3837         and special_addr_p.
3838         (frame_id_build, frame_id_build_special): Update comments.
3839         (frame_id_build_wild): New prototype.
3840         * frame.c (frame_id_build, frame_id_build_special): Fill in new
3841         struct frame_id fields.
3842         (frame_id_build_wild): New function.
3843         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3844
3845 2004-06-27  Mark Kettenis  <[email protected]>
3846
3847         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3848         hppabsd-tdep.c.
3849
3850 2004-06-27  Joel Brobecker  <[email protected]>
3851
3852         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3853
3854 2004-06-27  Joel Brobecker  <[email protected]>
3855
3856         * ada-lang.c: Re-indent file.
3857
3858 2004-06-27  Joel Brobecker  <[email protected]>
3859
3860         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3861         (no_symtab_msg): Likewise.
3862
3863 2004-06-27  Andreas Schwab  <[email protected]>
3864
3865         * source.c: Fix whitespace.
3866
3867 2004-06-27  Mark Kettenis  <[email protected]>
3868
3869         * configure.in: Include <sys/param.h> for td_pcb test.
3870         * configure: Regenerated.
3871
3872         * i386nbsd-nat.c: New file.
3873         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3874         i386obsd-nat.c and i386obsd-tdep.c.
3875         (i386nbsd-nat.o): New dependency.
3876         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3877         bsd-kvm.o.
3878         (LOADLIBES): New variable.
3879         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3880         bsd-kvm.o.
3881         (LOADLIBES): New variable.
3882
3883         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3884         (LOADLIBES): New variable.
3885
3886         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3887         fetching from BSD_KVM_PADDR.  Correctly lookup address for
3888         "_thread0".
3889
3890         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3891         "bsd-kvm.h".
3892         (amd64fbsd_supply_pcb): New funcion.
3893         (_initialize_amd64fbsd_nat): Enable libkvm interface.
3894
3895 2004-06-27    <[email protected]>
3896
3897         Partial fix for PR cli/1056.
3898         * valarith.c: Check for zero in division and remainder 
3899         evaluation.
3900
3901 2004-06-27  Mark Kettenis  <[email protected]>
3902
3903         * i387-tdep.c: Remove excessive whitespace.
3904
3905 2004-06-26  Andrew Cagney  <[email protected]>
3906
3907         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3908         * gdb-events.h, gdb-events.c: Re-generate.
3909         * tui/tui-hooks.c (tui_install_hooks): Update.
3910         (tui_remove_hooks): Update.
3911         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3912
3913 2004-06-26  Mark Kettenis  <[email protected]>
3914
3915         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3916         (gregset_t, fpregset_t): Remove typedefs.
3917         (REG_OFFSET): Rename argument.
3918         (amd64bsd_r_reg_offset): Rename from reg_offset.
3919         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3920         Remove functions.
3921         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3922         of reg_offset.
3923         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3924
3925         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3926
3927         * vax-tdep.c: Tweak comment.
3928
3929         Add OpenBSD/hppa support.
3930         * NEWS (New native configurations): Mention OpenBSD/hppa.
3931         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3932         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3933         files.
3934         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3935         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3936         * configure.host: Add hppa*-*-openbsd*.
3937         * configure.tgt: Add hppa*-*-openbsd*.
3938
3939 2004-06-25  Andrew Cagney  <[email protected]>
3940
3941         * defs.h (deprecated_ui_loop_hook): Deprecated.
3942         * wince.c (child_wait): Update.
3943         * win32-nat.c (child_wait): Update.
3944         * v850ice.c (v850ice_wait): Update.
3945         * top.c (deprecated_ui_loop_hook): Update.
3946         * serial.h: Update.
3947         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
3948         (do_unix_readchar): Update.
3949         * ser-tcp.c (net_open): Update.
3950         * remote-sim.c (gdb_os_poll_quit): Update.
3951         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3952
3953 2004-06-24  Andrew Cagney  <[email protected]>
3954
3955         * defs.h (deprecated_pre_add_symbol_hook)
3956         (deprecated_post_add_symbol_hook): Deprecated.
3957         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
3958         (symbol_file_add_with_addrs_or_offsets): Update references.
3959
3960 2004-06-24  Andrew Cagney  <[email protected]>
3961
3962         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3963         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3964         * wince.c (ui_loop_hook): Delete extern declaration.
3965         * win32-nat.c (ui_loop_hook): Delete extern declaration..
3966         * v850ice.c (ui_loop_hook): Delete extern declaration..
3967         * ser-unix.c (ui_loop_hook): Delete extern declaration..
3968         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3969         * remote-sim.c (ui_loop_hook): Delete extern declaration..
3970         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3971         ui_loop_hook declaration.
3972
3973 2004-06-24  Andrew Cagney  <[email protected]>
3974
3975         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3976         entry_func_highpc fields.
3977         * objfiles.c (init_entry_point_info): Do not clear
3978         entry_func_lowpc and entry_func_highpc.
3979         (objfile_relocate): Do not relocate entry_func_lowpc and
3980         entry_func_highpc.
3981         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3982         entry_func_highpc.
3983         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3984         entry_func_highpc.
3985         * blockframe.c (legacy_frame_chain_valid): Replace tests against
3986         entry_func_lowpc and entry_func_highpc with call to
3987         inside_entry_func.
3988
3989 2004-06-24  Mark Kettenis  <[email protected]>
3990
3991         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3992         quad-precision floating point arguments in registers.
3993
3994 2004-06-24  Mark Kettenis  <[email protected]>
3995
3996         From Michael Mueller <[email protected]>:
3997         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3998         account.
3999
4000 2004-06-22  Jeff Johnston  <[email protected]>
4001
4002         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4003         to -1.
4004         * breakpoint.c (bpstat_stop_status): Move check for ignoring
4005         untriggered watchpoints to a separate if clause.  Update function
4006         comment regarding STOPPED_BY_WATCHPOINT argument.
4007
4008 2004-06-22  Jim Blandy  <[email protected]>
4009
4010         * gdbarch.sh: Doc fix.
4011
4012 2004-06-21  Martin Hunt  <[email protected]>
4013         Kevin Buettner <[email protected]>
4014
4015         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4016         * mips-tdep.h (MIPS_SP_REGNUM): Define.
4017         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4018         to set_gdbarch_sp_regnum().  Use cooked register number.
4019         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4020
4021 2004-06-21  Andrew Cagney  <[email protected]>
4022
4023         * gdbarch.sh: When the macro field is empty, do not generate a
4024         macro definition.  When the macro field is "=", generate the macro
4025         name from the upper-case function name.
4026         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4027         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4028         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4029         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4030         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4031         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4032         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4033         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4034         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4035         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4036         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4037         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4038         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4039         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4040         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4041         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4042         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4043         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4044         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4045         (DEPRECATED_USE_STRUCT_CONVENTION)
4046         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4047         (DEPRECATED_FRAME_INIT_SAVED_REGS)
4048         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4049         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4050         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4051         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4052         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4053         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4054         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4055         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4056         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4057         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4058         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4059         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4060         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4061         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4062         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4063         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4064
4065 2004-06-21  Andrew Cagney  <[email protected]>
4066
4067         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4068         macro name, and the function rather than macro value.  Only wrap
4069         macro print statements in #ifdef.  Move format logic to where it
4070         is needed.
4071         * gdbarch.c: Re-generate.
4072         
4073         * gdbarch.sh (read): Delete "print_p" and "description", add
4074         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
4075         Delete references to print_p.
4076         (TARGET_ARCHITECTURE): Delete print predicate.
4077         * gdbarch.c: Re-generate.
4078         
4079         * gdbarch.sh: Check that multi-arch methods do not provide a
4080         macro.
4081         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4082         (print_registers_info, print_float_info, print_vector_info)
4083         (adjust_breakpoint_address, remote_translate_xfer_address)
4084         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4085         (address_class_type_flags_to_name, unwind_sp): Remove the macro
4086         name from the multi-arch definition.
4087         
4088 2004-06-20  Andrew Cagney  <[email protected]>
4089
4090         * gdbarch.sh: Sort by the function, instead of macro name.
4091         * gdbarch.c: Re-generate.
4092         
4093 2004-06-20  Andrew Cagney  <[email protected]>
4094
4095         * gdbarch.sh: Use the function, instead of macro name in
4096         errors and the log file.
4097         (return_value): Remove stray ":" in spec.
4098
4099         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4100         * gdbarch.h, gdbarch.c: Re-generate.
4101         * Makefile.in (arch-utils.o): Update dependencies.
4102         * values.c (using_struct_return): Move code calling
4103         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4104         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4105         to legacy_return_value, simplify.
4106         * infcmd.c (print_return_value): Move code calling
4107         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4108         to legacy_return_value, simplify.
4109         * infcall.c (call_function_by_hand): Move code calling
4110         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4111         * arch-utils.c: Update copyright.  Include "gdbcore.h".
4112         (legacy_return_value): New function.
4113         * arch-utils.h: Update copyright.
4114         (legacy_return_value): Declare.
4115         
4116 2004-06-20  Andrew Cagney  <[email protected]>
4117
4118         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4119         * gdbarch.h, gdbarch.c: Re-generate.
4120         * values.c (using_struct_return): Update call.
4121         * mcore-tdep.c: Update comment.
4122         * infcall.c (call_function_by_hand): Update comment.
4123         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4124         * arch-utils.h (always_use_struct_convention): Update.
4125         * v850-tdep.c (v850_gdbarch_init): Update.
4126         * sh64-tdep.c (sh64_gdbarch_init): Update.
4127         * sh-tdep.c (sh_gdbarch_init): Update.
4128         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4129         * mips-tdep.c (mips_gdbarch_init): Update.
4130         * mcore-tdep.c (mcore_gdbarch_init): Update.
4131         * m32r-tdep.c (m32r_gdbarch_init): Update.
4132         * ia64-tdep.c (ia64_gdbarch_init): Update.
4133         * h8300-tdep.c (h8300_gdbarch_init): Update.
4134         * frv-tdep.c (frv_gdbarch_init): Update.
4135         * cris-tdep.c (cris_gdbarch_init): Update.
4136         * arm-tdep.c (arm_gdbarch_init): Update.
4137         * alpha-tdep.c (alpha_gdbarch_init): Update.
4138
4139 2004-06-18  Michael Chastain  <[email protected]>
4140
4141         * PROBLEMS: Add more specific information, and a work-around,
4142         for PR gdb/1458.
4143
4144 2004-06-18  Andrew Cagney  <[email protected]>
4145
4146         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4147         * gdbarch.h, gdbarch.c: Re-generate.
4148         * ada-lang.c (ada_finish_decode_line_1): Update.
4149         * infrun.c (handle_inferior_event): Update.
4150         * infcall.c (find_function_addr): Update.
4151         * linespec.c (minsym_found): Update.
4152         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4153         Update.
4154         * blockframe.c (legacy_frameless_look_for_prologue): Update.
4155         * cli/cli-cmds.c (disassemble_command): Update.
4156         * vax-tdep.c (vax_gdbarch_init): Update.
4157
4158 2004-06-18  Mark Kettenis  <[email protected]>
4159
4160         * i386-tdep.c (i386_collect_fpregset): Fix comment.
4161
4162 2004-06-17  Andrew Cagney  <[email protected]>
4163
4164         GDB 6.1.1 released from the GDB 6.1 branch.
4165         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4166         * PROBLEMS: Ditto.
4167
4168 2004-06-16  Daniel Jacobowitz  <[email protected]>
4169
4170         PR gdb/1658
4171         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4172         operation as a uleb128.  Found by Michael Coulter.
4173
4174 2004-06-16  Paul N. Hilfinger  <[email protected]>
4175         
4176         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4177         make it non-static.
4178         * ada-lang.h (task_control_block): declaration moved from ada-task.c
4179         to ada-lang.h; this is needed to be able to implement the kill command
4180         in multi-task mode.
4181         (task_ptid): Ditto.
4182         (task_entry): Ditto.
4183         (task_list): Ditto.
4184         (ada_build_task_list): Ditto.
4185         
4186         * ada-lang.c: Conditionalize routines and data structures related 
4187         to breakpoints, exceptions, completion, and symbol caching on 
4188         GNAT_GDB, since these are not yet used in the submitted public sources.
4189         (ada_main_name): Editorial: Move definition out of exception-related 
4190         code.
4191
4192 2004-06-15  Andrew Cagney  <[email protected]>
4193
4194         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4195         deprecated_pc_in_call_dummy.
4196
4197 2004-06-15  Alan Modra  <[email protected]>
4198
4199         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4200         bfd_get_section_size_before_reloc or _raw_size.
4201         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4202         * dwarf2read.c (dwarf2_locate_sections): Likewise.
4203         (dwarf2_read_section): Likewise.
4204         * elfread.c (elf_locate_sections): Likewise.
4205         * gcore.c (derive_heap_segment): Likewise.
4206         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4207         * remote-e7000.c (e7000_load): Likewise.
4208         * remote-m32r-sdi.c (m32r_load): Likewise.
4209         * remote-mips.c (mips_load_srec): Likewise.
4210         (pmon_load_fast): Likewise.
4211         * remote.c (compare_sections_command): Likewise.
4212         * symfile.c (add_section_size_callback): Likewise.
4213         (load_section_callback): Likewise.
4214         (pc_in_unmapped_range): Likewise.
4215         (pc_in_mapped_range): Likewise.
4216         (sections_overlap): Likewise.
4217         (list_overlays_command): Likewise.
4218         (simple_overlay_update_1): Likewise.
4219         (simple_overlay_update): Likewise.
4220         * tracepoint.c (remote_set_transparent_ranges): Likewise.
4221         * win32-nat.c (core_section_load_dll_symbols): Likewise.
4222
4223 2004-06-14  Randolph Chung  <[email protected]>
4224
4225         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4226         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
4227         static.
4228         (hppa_hpux_inferior_created): New function.
4229         (hppa_hpux_init_abi): Register observer.
4230         * symfile.c (hp_cxx_exception_support_initialized)
4231         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4232         (symbol_file_add_main_1, symbol_file_clear): Likewise.
4233
4234 2004-06-14  Randolph Chung  <[email protected]>
4235
4236         * MAINTAINERS (Write After Approval): Alphabetize my entry
4237         correctly.
4238
4239 2004-06-14  Andrew Cagney  <[email protected]>
4240
4241         * MAINTAINERS (testsuite): List Michael Chastain as the lead
4242         testsuite maintainer.
4243
4244 2004-06-13  Andrew Cagney  <[email protected]>
4245
4246         * infcmd.c (print_return_value): Fix logic, allow
4247         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4248
4249         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4250         defining any macros.
4251         * gdbarch.h: Re-generate.
4252
4253         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
4254         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4255         * gdbarch.h: Re-generate.
4256
4257         * values.c (generic_use_struct_convention): Don't check gcc_p.
4258
4259         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4260         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4261         * gdbarch.h, gdbarch.c: Regenerate.
4262         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
4263         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4264         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4265         deprecated_max_register_raw_size and
4266         deprecated_max_register_virtual_size.
4267         * v850-tdep.c (v850_gdbarch_init): Ditto.
4268         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4269         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4270         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4271         * cris-tdep.c (cris_gdbarch_init): Ditto.
4272
4273         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4274         * gdbarch.h, gdbarch.c: Re-generate.
4275         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4276         (m68hc11_use_struct_convention): Delete function.
4277         (m68hc11_extract_struct_value_address): Delete function.
4278         (m68hc11_return_value): New function.
4279         (m68hc11_gdbarch_init): Instead of store_return_value,
4280         extract_return_value, return_value_on_stack,
4281         deprecated_extract_struct_value_address and use_struct_convention,
4282         set return_value.
4283         * values.c (using_struct_return): Do not call
4284         RETURN_VALUE_ON_STACK.
4285         * arch-utils.h (generic_return_value_on_stack_not): Delete
4286         declaration.
4287         * arch-utils.c (generic_return_value_on_stack_not): Delete
4288         function.
4289         
4290 2004-06-12  Andrew Cagney  <[email protected]>
4291
4292         * values.c (register_value_being_returned): Delete function.
4293         * infcmd.c (legacy_return_value): Delete function.
4294         * infcall.c (call_function_by_hand): Inline
4295         "register_value_being_returned", simplify.
4296         * values.c (using_struct_return): Update comment, refer to
4297         print_return_value instead of register_value_being_returned.
4298         * infcmd.c (print_return_value): Inline calls to
4299         register_value_being_returned and legacy_return_value.  Simplify.
4300
4301 2004-06-11  Randolph Chung  <[email protected]>
4302
4303         * somread.c (som_symtab_read): Exclude gcc local symbols.
4304
4305 2004-06-11  Randolph Chung  <[email protected]>
4306
4307         * infrun.c (handle_inferior_event): Handle the case when a
4308         trampoline ends up in the runtime resolver, and if the trampoline
4309         has no name.  Rearrange the code so that all the trampoline
4310         processing happens before other step-out-of-range handling.
4311
4312 2004-06-11  Martin Hunt  <[email protected]>
4313
4314         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4315         has no fpu.
4316
4317 2004-06-10  Andrew Cagney  <[email protected]>
4318
4319         * blockframe.c (legacy_inside_entry_func): Delete.
4320         (legacy_frame_chain_valid): Inline call to
4321         legacy_inside_entry_func, simplify.
4322
4323 2004-06-10  Bob Rossi  <[email protected]>
4324
4325         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4326         * dwarf2read.c (partial_die_info): Add dirname field.
4327         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4328         (read_partial_die): Save away DW_AT_comp_dir.
4329         * defs.h (symtab_to_filename): Removed.
4330         * source.c (find_and_open_source): Added.
4331         (open_source_file): Just calls find_and_open_source.
4332         (symtab_to_filename): Removed.
4333         (symtab_to_fullname, psymtab_to_fullname): Added.
4334         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4335         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4336         symtab_to_filename.
4337         * symtab.h (partial_symtab): Add dirname field.
4338         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4339         (mi_cmd_file_list_exec_source_file): Call new function
4340         symtab_to_fullname to find fullname.
4341         (mi_cmd_file_list_exec_source_files): Added.
4342         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4343         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4344
4345 2004-06-10  Andrew Cagney  <[email protected]>
4346
4347         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4348         to generic_use_struct_convention, the default value.
4349
4350         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4351         of abort.
4352
4353         * ns32k-tdep.c (ns32k_push_arguments): New function.
4354         (ns32k_gdbarch_init): Set deprecated_push_arguments.
4355         * infcall.c (call_function_by_hand): Call error instead of
4356         legacy_push_arguments.
4357         * value.h (legacy_push_arguments): Delete declaration.
4358         * valops.c (legacy_push_arguments): Delete function.
4359         (value_push): Delete function.
4360
4361 2004-06-10  Brian Ford  <[email protected]>
4362
4363         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4364         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
4365         info.
4366         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4367
4368 2004-06-10  Andrew Cagney  <[email protected]>
4369
4370         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4371         * gdbarch.h, gdbarch.c: Re-generate.
4372         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4373         parameters.
4374         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4375         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4376         deprecated_pc_in_call_dummy instead of
4377         DEPRECATED_PC_IN_CALL_DUMMY.
4378         (arm_skip_prologue): Ditto.
4379         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4380         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4381         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4382         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4383         Ditto.
4384         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
4385         (sh64_init_extra_frame_info, sh64_get_saved_register) 
4386         (sh64_pop_frame): Ditto.
4387         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4388         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
4389         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4390         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
4391         (h8300_pop_frame): Ditto.
4392         * blockframe.c (legacy_inside_entry_func) 
4393         (legacy_frame_chain_valid): Ditto.
4394         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4395         to deprecated_pc_in_call_dummy.
4396         
4397 2004-06-09  Andrew Cagney  <[email protected]>
4398
4399         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4400         provide a default value.
4401         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4402         * gdbarch.h, gdbarch.c: Re-generate.
4403         * arch-utils.c (generic_convert_register_p): Rename
4404         legacy_convert_register_p
4405         (legacy_register_to_value, legacy_value_to_register): Delete
4406         functions.
4407         * arch-utils.h (generic_convert_register_p): Rename
4408         legacy_convert_register_p.
4409         (legacy_register_to_value, legacy_value_to_register): Delete
4410         declarations.
4411
4412         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4413         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4414         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4415         * gdbarch.h, gdbarch.c: Re-generate.
4416         * infcmd.c (default_print_registers_info): Simplify.
4417         * findvar.c (value_of_register): Simplify.
4418         * mi/mi-main.c (get_register): Simplify.
4419         * arch-utils.c (legacy_convert_register_p): Always return 0.
4420         (legacy_register_to_value, legacy_value_to_register): Always call
4421         internal_error.
4422
4423         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4424         #ifdef CLEAR_INSN_CACHE code.
4425         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4426         Delete #ifdef CLEAR_DEFERRED_STORES code.
4427
4428         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4429
4430         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4431         copyright.
4432         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4433
4434         * config/mips/mipsv4.mh: Delete file.
4435
4436         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4437         unreferenced macro.
4438         (hpread_adjust_stack_address): Delete declaration.
4439
4440 2004-06-08  Andrew Cagney  <[email protected]>
4441
4442         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4443         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4444         PTRACE_ATTACH / PTRACE_DETACH available call error.
4445         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4446         * infttrace.c (update_thread_state_after_attach, attach, detach):
4447         Remove #ifdef wrappers.
4448         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4449         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4450         * config/nm-bsd.h (ATTACH_DETACH): Delete.
4451         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4452         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4453         * config/nm-linux.h (ATTACH_DETACH): Delete.
4454         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4455         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4456         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4457         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4458         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4459
4460 2004-06-08  Corinna Vinschen  <[email protected]>
4461
4462         * configure.in: Set $configdir to the right OS specific value.
4463         Use value when setting $tcldir and $tkdir.
4464         * configure: Regenerate.
4465
4466 2004-06-06  Paul Brook  <[email protected]>
4467
4468         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4469         records.
4470
4471 2004-06-08  Paul N. Hilfinger  <[email protected]>
4472
4473         * ada-lang.c (lookup_symbol_in_language): New function to allow
4474         re-use of another language's symbol lookup code.  (Placed here
4475         temporarily while Ada support is being integrated into the public
4476         tree).  
4477         (restore_language): New auxiliary function for 
4478         lookup_symbol_in_language.
4479         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4480         temporarily while Ada support is being integrated into the public
4481         tree).
4482         
4483 2004-06-08  Alexandre Oliva  <[email protected]>
4484
4485         * Makefile.in (check//%): New.
4486
4487         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4488         (mn10300_store_return_value): Rewrite.
4489         (mn10300_type_align): New.
4490         (mn10300_use_struct_convention): Rewrite.
4491         (mn10300_return_value): New, using all of the above.
4492         (mn10300_pop_frame_regular): Add saved_regs_size.
4493         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4494
4495         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4496         regs if PC is on movm.
4497
4498 2004-06-07  Jim Blandy  <[email protected]>
4499
4500         Add native Linux support for the PowerPC E500.
4501         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4502         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4503         all architectures except the E500.
4504         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4505         #definitions.
4506         (struct gdb_evrregset_t): New type.
4507         (have_ptrace_getsetevrregs): New variable.
4508         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
4509         fetch_spe_registers): New functions.
4510         (fetch_register): Call fetch_spe_register as appropriate.
4511         Assert that we're only passed raw register numbers.
4512         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4513         Don't fetch gprs if they're pseudoregisters.
4514         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4515         store_spe_registers): New functions.
4516         (store_register): Call store_spe_register as appropriate.
4517         Assert that we're only passed raw register numbers.
4518         (store_ppc_registers): Call store_spe_registers as appropriate.
4519         Don't store gprs if they're pseudoregisters.
4520         
4521 2004-06-07  Jeff Johnston  <[email protected]>
4522
4523         * thread-db.c (thread_get_info_callback): Fill in the thread_info
4524         struct if one exists, even if we are dealing with a zombie thread.
4525
4526 2004-06-07  Andrew Cagney  <[email protected]>
4527
4528         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4529         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4530         Rename PC_REQUIRES_RUN_BEFORE_USE.
4531         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
4532         #ifdef.
4533
4534 2004-06-07  Randolph Chung  <[email protected]>
4535
4536         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4537         unwinding after sp has been saved to the stack but before the end
4538         of the prologue, and after the fp has been modified but before it has
4539         been saved to the stack.
4540         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
4541         Remove superfluous definitions.
4542         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4543
4544 2004-06-07  Guy Martin  <[email protected]>
4545
4546         Committed by Randolph Chung.
4547         * hppa-linux-nat.c: Include the correct version of the header file
4548         depending on the kernel version.
4549
4550 2004-06-06  Randolph Chung  <[email protected]>
4551
4552         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4553         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4554
4555 2004-06-06  Randolph Chung  <[email protected]>
4556
4557         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
4558         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4559         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4560         * hppa-tdep.c (hppa_symbol_address): New function definition.
4561         * hppa-tdep.h (hppa_symbol_address): New function declaration.
4562
4563 2004-06-06  Randolph Chung  <[email protected]>
4564
4565         * hppa-tdep.h (struct value): Forward declaration.
4566         (gdbarch_tdep): Define tdep find_global_pointer method.
4567         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4568         associated with the function we are trying to call, and write it
4569         to the gp register.
4570         (hppa32_convert_from_funct_ptr_addr): New function.
4571         (hppa_find_global_pointer): New function.
4572         (hppa_gdbarch_init): Set default find_global_pointer method; set
4573         convert_from_func_ptr_addr method.
4574         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4575         (hppa_linux_init_abi): Set find_global_pointer method.
4576         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4577
4578 2004-06-06  Randolph Chung  <[email protected]>
4579
4580         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4581         to struct value *function.
4582         * gdbarch.c: Regenerate.
4583         * gdbarch.h: Likewise.
4584         * infcall.c (call_function_by_hand): Pass entire function value
4585         to push_dummy_call.
4586
4587         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4588         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4589         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4590         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4591         * arm-tdep.c (arm_push_dummy_call): Likewise.
4592         * avr-tdep.c (avr_push_dummy_call): Likewise.
4593         * cris-tdep.c (cris_push_dummy_call): Likewise.
4594         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4595         * frv-tdep.c (frv_push_dummy_call): Likewise.
4596         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4597         * hppa-tdep.c (hppa32_push_dummy_call)
4598         (hppa64_push_dummy_call): Likewise.
4599         * i386-tdep.c (i386_push_dummy_call): Likewise.
4600         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4601         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4602         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4603         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4604         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4605         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4606         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4607         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4608         (ppc64_sysv_abi_push_dummy_call): Likewise.
4609         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4610         (ppc64_sysv_abi_push_dummy_call): Likewise.
4611         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4612         * s390-tdep.c (s390_push_dummy_call): Likewise.
4613         * sh-tdep.c (sh_push_dummy_call_fpu)
4614         (sh_push_dummy_call_nofpu): Likewise.
4615         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4616         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4617         * vax-tdep.c (vax_push_dummy_call): Likewise.
4618
4619 2004-06-04  Jim Blandy  <[email protected]>
4620
4621         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4622         gdbarch argument to register_size.
4623
4624         * rs6000-tdep.c (rs6000_store_return_value): Use
4625         regcache_cooked_write_part instead of
4626         deprecated_write_register_bytes.
4627         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4628         not gdbarch_deprecated_store_return_value.
4629
4630         * ppc-linux-nat.c (store_register, fetch_register): Remove
4631         incorrect assertions.  Simplify and generalize handling of
4632         transfers whose sizes are not multiples of, or less than, sizeof
4633         (PTRACE_XFER_TYPE).
4634
4635 2004-06-04  Jeff Johnston  <[email protected]>
4636
4637         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4638         as a new thread event.
4639         * thread-db.c (thread_get_info_callback): If the thread is a
4640         zombie, return TD_THR_ZOMBIE.
4641         (thread_from_lwp): If thread_get_info_callback returns
4642         TD_THR_ZOMBIE, check if the thread is still on the thread list
4643         and return a -1 ptid if not found.
4644         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4645         change the status to TARGET_WAITKIND_SPURIOUS.
4646
4647 2004-06-03  Corinna Vinschen  <[email protected]>
4648
4649         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4650         double values in little endian mode.
4651
4652 2004-06-02  Albert Chin-A-Young  <[email protected]>
4653
4654         Committed by Andrew Cagney.
4655         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4656         after last enum constant to avoid error from IBM C
4657         compiler.
4658
4659 2004-06-02  Jim Blandy  <[email protected]>
4660
4661         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4662         to 'message', and make it local to the lone block that uses it.
4663
4664         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4665
4666 2004-06-02  Paul N. Hilfinger  <[email protected]>
4667
4668         * ada-exp.y: Update copyright notice.
4669         Include block.h.
4670         
4671         Replace REGNAME, LAST, INTERNAL_VARIABLE with
4672         SPECIAL_VARIABLE and unify the treatment of these cases.
4673
4674         (write_attribute_call0): Remove.
4675         (write_attribute_call1): Remove.
4676         (write_attribute_calln): Remove.
4677         (save_qualifier): Add missing semicolon.
4678
4679         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
4680         temporarily disabled to allow compilation with FSF head version.
4681
4682         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
4683         use individual operators (OP_*) for all attributes.
4684         (exp syntax): Use write_int.
4685         Handle STRING literals with OP_STRING.
4686         (variable syntax): Add limit parameter to calls to 
4687         write_object_renaming.  
4688
4689         (temp_parse_space): New definition to hold entities that need
4690         only live until the next call to ada_parse.
4691         (string_to_operator): Rename fields of ada_opname_table entries.
4692
4693         (write_var_from_sym): Record block.
4694         (write_var_from_name): Minor reformatting.
4695         Make sure saved name is properly encoded in the case of multiple 
4696         matches, and set its language to Ada.
4697         Update comment.
4698         Modify to indicate unresolved name as symbol in the UNRESOLVED 
4699         namespace, allocated in temp_parse_space.
4700         (write_int): New function.
4701
4702         (write_object_renaming): Add max_depth parameter to limit
4703         chains of object renamings.
4704         Handle case where root of renaming expression is itself a renaming.
4705         Use temp_parse_space for temporary name buffer.
4706         Handle renamings to dereferenced pointers (___XEXA suffices).
4707         
4708         (ada_parse, yyerror, string_to_operator, 
4709         write_var_from_sym, write_var_from_name, write_attribute_call0, 
4710         write_attribute_call1, write_attribute_calln, 
4711         write_object_renaming): Protoize.
4712
4713         (_initialize_ada_exp): New function.
4714         
4715         * ada-lang.c: Update copyright notice.
4716         General terminology change to conform to GNAT compiler usage:
4717         mangle => encode, demangle => decode
4718         Include gdb_obstack.h.
4719         Include gdb_regex.h
4720         Include frame.h
4721         Include hashtab.h
4722         Include completer.h
4723         Include gdb_stat.h
4724         Include block.h
4725         Include infcall.h
4726         
4727         (ADA_RETAIN_DOTS): Make sure this is defined.
4728         (TRUNCATION_TOWARDS_ZERO): Define.
4729         (struct string_vector): Define.
4730         (unresolved_names): Remove definition.
4731         (xnew_string_vector): New function.
4732         (string_vector_append): New function.
4733         (extract_string): Make static.
4734         (ada_unqualified_name): New function.
4735         (add_angle_brackets): New function.
4736         (function_name_from_pc): New function.
4737         (place_on_stack): Rename to ensure_lval.
4738
4739         (ensure_lval): Renamed from place_on_stack.
4740         Make identity on lvals.
4741         Update comment.
4742         (is_nonfunction): New interface.
4743         Only symbols in LOC_CONST class can be enumerals.
4744         (fill_in_ada_prototype): Remove; now independent of language.
4745         (add_defn_to_vec): Add obstack and symtab arguments.
4746         Use obstack to hold collected definitions.
4747         (num_defns_collected): New function.
4748         (defns_collected): New function.
4749         (ada_resolve_subexp): Rename to resolve_subexp.
4750         (resolve_subexp): Renamed from ada_resolve_subexp.
4751         (ada_op_name): Return non-const result.
4752         (ada_decoded_op_name): Renamed from ada_op_name, now used for
4753         other purposes.
4754
4755         (to_fixed_array_type): Add declaration.
4756         (coerce_unspec_val_to_type): Remove offset parameter.
4757         (find_sal_from_funcs_and_line): New interface.
4758         (find_line_in_linetable): Ditto.
4759
4760         (all_sals_for_line): Rename to ada_sals_for_line and make
4761         global.
4762         Add new parameter. When set, do not ask the user to choose the 
4763         instance, but use the first one found instead.
4764         Use given line number in returned sals.
4765         Fix comment. 
4766         Skip the prologue if funfirstline is set.
4767         Correct for memory leak when 0 lines found.
4768
4769         (value_pos_atr): Use pos_atr.
4770         (pos_atr): New function.
4771         (standard_lookup): Add block parameter.
4772
4773         (makeTimeStart): Remove declaration and uses.
4774         (makeTimeStop): Remove declaration and uses.
4775
4776         (ada_completer_word_break_characters): Allow for VMS.
4777         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4778         (raise_sym_name): New constant.
4779         (raise_unhandled_sym_name): New constant.
4780         (raise_assert_sym_name): New constant.
4781         (process_raise_exception_name): New constant.
4782         (longest_exception_template): New constant.
4783         (warning_limit): New variable to limit warnings during expression
4784         evaluation.
4785         (warnings_issued): New variable to keep track of warnings issued.
4786         (known_runtime_file_name_patterns): New constant.
4787         (known_auxiliary_function_name_patterns): New constant.
4788         (symbol_list_obstack): New variable.
4789         
4790         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4791         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4792         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4793         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
4794         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
4795         ada_variant_discrim_name, field_alignment, dynamic_template_type,
4796         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
4797         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
4798         and strcmp. 
4799
4800         (ada_get_field_index): New function.
4801         (lim_warning): New function.
4802         (ada_translate_error_message): New function.
4803         (MAX_OF_SIZE): New function.
4804         (MIN_OF_SIZE): New function.
4805         (UMAX_OF_SIZE): New function.
4806         (UMIN_OF_SIZE): New function.
4807         (discrete_type_high_bound): New function.
4808         (discrete_type_low_bound): New function.
4809         (base_type): New function.
4810         (do_command): Remove.
4811         
4812         (ada_update_initial_language): Use language_ada, not language_unknown.
4813         (ada_encode): Renamed from ada_mangle.
4814         Obey ADA_RETAIN_DOTS.
4815         (ada_decode): Renamed from ada_demangle.
4816         Update coding conventions.
4817         (decoded_names_store): New hash table.
4818         (ada_decode_symbol): New function.
4819         (ada_la_decode): New function.
4820         
4821         (modify_general_field): Correct computations of offset and bit 
4822         position.
4823         (desc_base_type): Handle ref types, too.
4824         (ada_is_direct_array_type): New function.
4825
4826         (ada_is_simple_array): Rename to ada_is_simple_array_type.
4827         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4828         (ada_is_bogus_array_descriptor,ada_type_of_array,
4829         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4830         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
4831         ada_is_array_descriptor_type.
4832         
4833         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4834         (ada_is_packed_array_type): Handle pointers or 
4835         references to packed arrays as well.
4836         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4837         (decode_packed_array_type): Search for the packed array type 
4838         symbol in the currently selected block and associated 
4839         superblocks too.
4840         Use lookup_symbol again.
4841
4842         (decode_packed_array): Handle pointers and references.
4843         Update call to coerce_unspec_val_to_type.
4844         (decode_packed_array_type,value_subscript_packed): Limit warnings.
4845         (ada_value_primitive_packed_val): Improve comment.
4846         
4847         (ada_index_type): Substitute int type for "undefined".
4848         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4849         ada_array_langth, ada_is_string_type): Use renamed 
4850         ada_is_simple_array_type.
4851         (empty_array): New function.
4852
4853         (ada_resolve):  Rename to resolve.
4854         (resolve): Make static.
4855         Call renamed resolve_subexp.
4856         Update comment.
4857         (ada_resolve_subexp): Rename to resolve_subexp.
4858         (resolve_subexp): Update comment.
4859         Decomment disabled code.
4860         Add LOC_COMPUTED* cases.
4861         Modify to use temporary struct symbols (marked as being in 
4862         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
4863         OP_UNRESOLVED_VALUE.
4864         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
4865         Add OP_STRING case.
4866         Remove OP_ARRAY.
4867         Use SYMBOL_PRINT_NAME instead of ada_demangle.
4868         Use new ada_lookup_symbol_list interface.
4869         Use new ada_resolve_function interface.
4870         Remove OP_TYPE case.
4871
4872         (ada_args_match): Idiot proof against null actuals.
4873         Use intermediate variables to clarify.
4874         (ada_resolve_function): Update comment and interface.
4875         (mangled_ordered_before): Rename to encoded_ordered_before and
4876         update comment.
4877         (sort_choices): Update comment and interface.
4878         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4879         (user_select_syms): New interface.
4880         Use new sort_choices interface.
4881         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4882         (possible_user_operator_p): Idiot-proof against null values.
4883         (ada_simple_renamed_entity): Don't make cleanup; rely on 
4884         caller to free result string.
4885         Remove const from return type.
4886         (make_array_descriptor): Rename uses of place_on_stack to 
4887         ensure_lval.
4888         Make sure that arrays are on stack.
4889         
4890         (HASH_SIZE): Define.
4891         (struct cache_entry): Define.
4892         (cache_space): Define.
4893         (cache): Define.
4894         (clear_ada_sym_cache): New function.
4895         (find_entry): New function.
4896         (lookup_cached_symbol): New function.
4897         (defn_vector_size): Define.
4898         (cache_symbol): New function.
4899         (defn_symbols): Remove.
4900         
4901         (standard_lookup): Use lookup_symbol_in_language to get effect of
4902         C lookup.
4903         Cache results.
4904         
4905         (symbol_completion_match): New function.
4906         (symbol_completion_add): New function.
4907         (ada_make_symbol_completion_list): New function.
4908
4909         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
4910         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
4911         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
4912         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4913         
4914         (ada_lookup_simple_minsym): New function.
4915         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4916
4917         (add_symbols_from_enclosing_procs): New interface.
4918         Conditionalize more helpfully.
4919         Don't bother if program isn't running.
4920         Use new interface to get_frame_block.
4921         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4922         
4923         (remove_extra_symbols): New interface.
4924         (xget_renaming_scope): New function.
4925         (is_package_name): New function.
4926         (renaming_is_visible): New function.
4927         (remove_out_of_scope_renamings): New function.
4928
4929         (ada_lookup_symbol_list): New interface.
4930         Properly reinitialize the symbol list obstack.
4931         Don't call add_symbols_from_enclosing_procs if we start from a
4932         static or global block.
4933         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
4934         add_symbols_from_enclosing_procs.
4935         Add symtab data to cached entries.
4936         Handle symbols prefixed with
4937         "standard__" specially; strip prefix and don't look in local symbols.
4938         Do not include out of scope renaming symbols in list of 
4939         symbols returned.
4940         Add const to block parameter.
4941         Move check for non-local, non-global symbols earlier.  
4942         Remove timing stuff.
4943         (ada_lookup_symbol): New interface.
4944         Find symtab as well.
4945         (ada_lookup_symbol_nonlocal): New function.
4946
4947         (is_name_suffix): Enhance suffix detection to recognize
4948         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4949         (is_dot_digits_suffix): New function.
4950         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4951         
4952         (ada_add_block_symbols): New interface.  Use obstack to return results
4953         in a vector of struct ada_symbol_infos.  Add symtab argument.
4954         Use new interface to add_defn_to_vec.
4955         Remove calls to fill_in_ada_prototype.
4956         Use BLOCK_BUCKETS, BLOCK_BUCKET.
4957         
4958         (ada_finish_decode_line_1): Add const qualification to local to fix
4959         warning.
4960         Start looking in static block for functions to avoid attempts 
4961         to search frame chain for up-level variables.
4962         Adapt to new ada_sals_for_line interface.
4963         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4964         Handle quoting of the function name inside the spec string.
4965         Skip prologue when funfirstline is set and update the 
4966         function documentation to that effect.
4967
4968         (debug_print_lines, debug_print_block, debug_print_blocks, 
4969         debug_print_symtab): Remove.
4970
4971         (ada_main_name): New function.  
4972         (ada_exception_breakpoint_type): New function.
4973         (is_known_support_routine): New function.
4974         (ada_find_printable_frame): Renamed from find_printable_frame and made
4975         global.
4976         Remove level parameter.
4977         Use new interface to select_frame.
4978
4979         (begin_command): Remove.
4980         (ada_adjust_exception_stop): New function.
4981         (ada_print_exception_stop): New function.
4982         (exception_name_from_cond): New function.
4983         (ada_report_exception_break): Replace disabled code with 
4984         conditionalization on GNAT_GDB.
4985         Get the exception name from the condition string.
4986         Remove and move functionality into new functions 
4987         ada_print_exception_breakpoint_task and 
4988         ada_print_exception_breakpoint_nontask.
4989         (error_breakpoint_runtime_sym_not_found): New function.
4990         (is_runtime_sym_defined): New function.
4991         (ada_breakpoint_rewrite): Uncomment suppressed code.
4992         Use symbolic error-message and runtime-symbol names.
4993         Surround runtime symbol names in quotes.
4994         Allow non-specific breakpoints on exceptions and assertions before
4995         program starts.
4996         
4997         (ada_is_tagged_type): Add parameter.
4998         (ada_is_tag_type): New function.
4999         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5000         (ada_variant_discrim_type): Ditto.
5001         (value_tag_from_contents_and_address): New function.
5002         (type_from_tag): New function.
5003         (struct tag_args): New structure used to communicate with
5004         ada_tag_name_1.
5005         (ada_tag_name_1): New function.
5006         (ada_tag_name): New function.
5007
5008         (ada_scan_number): Update comment.
5009         (find_struct_field): New function.
5010         (ada_search_struct_field): Make static.
5011         (ada_value_struct_elt): New version that returns references when
5012         given pointers or references to structs.
5013         (ada_lookup_struct_elt_type): Add 'refok' parameter.
5014         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5015         interface.
5016         (ada_value_ind): Use new ada_to_fixed_value interface.
5017         (ada_coerce_ref): Ditto.
5018         (field_offset): Remove.
5019
5020         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5021         (ada_find_renaming_symbol): New function.
5022         (ada_prefer_type): Prefer named types over unnamed ones.
5023         (variant_field_index): New function.
5024         (contains_variant_part): Removed: subsumed by variant_field_index.
5025         (ada_template_to_fixed_record_type): New function, mostly from
5026         template_to_fixed_record_type.
5027         (template_to_fixed_record_type): 
5028         Do not scan the type fields beyond the last one; prevents a 
5029         potential SEGV.
5030         Handle case where variant field is listed BEFORE discriminant it 
5031         depends on.
5032         Fix calculation of record length when bit length is 
5033         not evenly divisible by char length.
5034         Move code to ada_template_to_fixed_record_type and call it.
5035
5036         (template_to_static_fixed_type): Revise comment.  
5037         Modify to work on ordinary record types as well as templates, 
5038         so as to handle fields that use ___XVE or ___XVU encodings. 
5039         (to_record_with_fixed_variant_part): Fill out comment.
5040         Initialize C++ stuff in right type.
5041         Allow case where DVAL is null.
5042         Handle case where variant field is not last.
5043         Fix typo concerning record length.
5044         (to_fixed_record_type): Decomment disabled code.
5045         (to_fixed_record_type): Use variant_field_index instead of 
5046         contains_variant_part.
5047         (to_fixed_variant_branch_type): Ditto.
5048         (to_fixed_array_type): Decomment disabled code.
5049         (ada_to_fixed_type): Convert tagged types to the specific type.
5050         Deactivate the size-check for array types in order to avoid 
5051         some false size alarms.
5052         (to_static_fixed_type): Decomment disabled code.
5053         Modify to call template_to_static_fixed_type
5054         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5055         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5056         Remove valaddr argument, as it is never really used.
5057         (ada_to_fixed_value): Change interface to act on single struct value*
5058         operand.
5059         (adjust_pc_past_prologue): New function.
5060         (ada_attribute_name): Modify to take enum exp_opcode argument.
5061                 
5062         (ada_enum_name): Recognize new homonym-distinguishing convention.
5063         Adjust local variable's type to remove compiler warning.
5064         Fix a small problem in the part that unqualifies the enumeration name.
5065         (ada_value_binop): New function.
5066         (ada_value_equal): New function.
5067
5068         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5069         Don't give error message when not doing normal evaluation 
5070         and a tagged type doesn't seem to contain a structure member.
5071         Give error message for packed arrays.
5072         For indexing arrays, handle pointers to packed arrays correctly.
5073         Handle case of 'first and 'last attributes of bare integral type 
5074         without encoded subtype info.  
5075         Remove some unnecessary casts.
5076         Fix uninitialized value of type in computing 'first, 'last, or 'length
5077         of array object.  
5078         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5079         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5080         calls.
5081         Attributes are now exp_opcode values.
5082         Correct treatment of 'modulus.
5083         Better error message for taking 'length of wrong kind of type; 
5084         improve comment.
5085         Change EVAL_NORMAL to noside for consistency.
5086         Use ada_value_binop for DIV, MOD, REM.
5087         Make special case out of array of length 0, since an argument 
5088         of 0 upsets some platforms' malloc.
5089         Use OP_STRING instead of OP_ARRAY.
5090         For slice, add check that we have an array type before extracting 
5091         a slice out of it.  Avoids a SEGV.
5092         When evaluating an array slice, if the array type is a reference to 
5093         an aligner type, then replace the aligner type by the actual type.
5094         Decomment disabled code.
5095         Remove some dead code.
5096         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
5097         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5098         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
5099         and UNOP_MBR to UNOP_IN_RANGE.
5100         If an array type has a parallel ___XVE type, then use it.
5101         Turn arrays into pointers for lvalue arrays.
5102         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5103         bounds error and handle 0-length slices.
5104         Use lim_warning.
5105         When selecting fields, apply ada_to_fixed_value (because the fields 
5106         might have ___XVU or ___XVE encodings even if not dynamic.)
5107         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5108         (ada_is_system_address_type): New function.
5109
5110         (get_var_value): Use new interface to ada_lookup_symbol_list.
5111         (get_int_var_value): New interface.
5112         (to_fixed_range_type): Allow unknown bound, with warning.
5113         (ada_is_modular_type): Decomment disabled code.
5114         (ADA_OPERATORS): New definition.
5115         (ada_operator_length): New function.
5116         (ada_expr_op_name): New function.
5117         (ada_forward_operator_length): New function.
5118         (ada_dump_subexp_body): New function.
5119         (ada_print_subexp): New function.
5120         (ada_exp_descriptor): New constant.
5121         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
5122         (ada_language_defn): Add ada_exp_descriptor entry.
5123         Change ada_parse => parse.
5124         Add post-parser entry.
5125         Use ada-specific non-local symbol lookup.
5126         Don't use C-style arrays. 
5127         String lower-bound is 1.
5128         Decomment disabled code.        
5129         (parse): New function.
5130         New fields ada_translate_error_message, ada_lookup_symbol, 
5131         ada_lookup_minimal_symbol.
5132         
5133         * ada-lang.h: Update copyright dates.
5134         Replace the mangle/demangle terminology throughout by the
5135         more appropriate encode/decode one. 
5136         Include breakpoint.h.
5137         Forward declare struct partial_symbol, struct block.
5138         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5139         (EXTRACT_ADDRESS): Remove.
5140         (EXTRACT_INT): Remove.
5141         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5142         (MAX_ENCLOSING_FRAME_LEVELS): Define.
5143         (MAX_RENAMING_CHAIN_LENGTH): Define.
5144         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5145
5146         (enum task_states): Remove.
5147         ada_task_states: Remove.
5148         (fat_string): Remove.
5149         (struct entry_call): Remove.
5150         (struct task_fields): Remove.
5151         (struct task_entry): Remove.
5152
5153         (struct ada_symbol_info): Define.
5154         (enum ada_attribute): Remove.
5155         (enum ada_operator): Define.
5156         
5157         (ada_get_field_index): Declare.
5158         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5159         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5160         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5161         (ada_lookup_symbol_list): New interface.
5162         (ada_decode_symbol): Declare.
5163         (ada_decode): Declare.
5164         (ada_lookup_symbol): New interface.
5165         (ada_update_initial_language): Declare.
5166         (ada_lookup_simple_minsym): Declare.
5167         (user_select_syms): New interface.
5168         (ada_sals_for_line): Declare.
5169         (ada_is_tagged_type): New interface.
5170         (ada_tag_name): Declare.
5171         (ada_lookup_struct_elt_type): Remove declaration.
5172         (ada_search_struct_field): Remove declaration.
5173         (ada_attribute_name): New interface.
5174         (ada_is_system_address_type): Declare.
5175         (ada_to_fixed_value): Remove declaration.
5176         (ada_template_to_fixed_record_type_1): Declare.
5177         (get_int_var_value): New interface.
5178         (ada_find_any_symbol): Declare.
5179         (ada_find_renaming_symbol): Declare.
5180         (ada_mangle): Rename to ada_encode.
5181         (ada_simple_renamed_entity): Remove const.
5182         (ada_main_name): Declare.
5183         (get_current_task): Rename to ada_get_current_task.
5184         (get_entry_number): Remove declaration.
5185         (ada_report_exception_break): Remove declaration.
5186         (ada_print_exception_breakpoint_nontask): Declare.
5187         (ada_print_exception_breakpoint_task): Declare.
5188         (ada_find_printable_frame): Declare.
5189
5190         * ada-lex.l: Update copyright notices.
5191         Use xmalloc and xfree instead of malloc and free.
5192         Use new interface to name_lookup.
5193         Use new interface to 
5194         ada_mangle=>ada_encode.
5195         Redo handling of '$...' variable to parallel current treatment 
5196         in c-exp.y.  
5197         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5198         digit_to_int, strtoulst, processInt, processReal, processId, 
5199         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5200         yywrap): Protoize.
5201         
5202         (processInt): Use cast to remove harmless warning.
5203         (processReal): Modify to get rid of compiler warning on scan formats.
5204
5205         (processId): Replace xmalloc with obstack_alloc for name and remove
5206         call to ada_name_string_cleanup.
5207         Remove obsolete disabled code.
5208         (name_lookup): Ditto. 
5209         New interface.
5210         Use obsavestring on temp_parse_space instead of savestring 
5211         on name, and remove call to ada_name_string_cleanup.  
5212         Free string returned from ada_simple_renamed_entity.
5213         Use new interface to ada_lookup_symbol_list.
5214         Decomment disabled code.
5215         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
5216         not types.
5217         When a type name lookup succeeds as a result of 
5218         lookup_primitive_typename, check for regular type entry that has not 
5219         yet been read in.
5220         Limit length of chain of renamed symbols we are willing to follow.  
5221         Do not break names beginning with "standard__" into segments.  
5222         (block_lookup): Use new interface to ada_lookup_symbol_list.
5223         
5224         * ada-typeprint.c: Update copyright notice.
5225         (demangled_type_name): Rename to decoded_type_name.
5226         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5227         (print_range_bound):  Correct handling of negative
5228         bounds that make the index type looked unsigned under STABS.  
5229         (print_dynamic_range_bound): Use new interface to get_int_var_value.
5230         (print_range_type_named):  Use the builtin int type if no type 
5231         corresponding to the given type name could be found.
5232         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5233         Add some bullet-proofing.
5234         (print_variant_clauses): Allow for variant branches with ___XVU 
5235         encodings that are not dynamic fields.  
5236         Use new interface to ada_is_tagged_type.
5237         (print_record_type): Allow for fields with ___XVE encodings that 
5238         are not dynamic fields. 
5239         Use new interface to ada_is_tagged_type.
5240         (ada_print_type): ada_is_array_descriptor => 
5241         ada_is_array_descriptor_type.
5242
5243         * ada-valprint.c: Update copyright notice.
5244         Include gdb_string.h
5245         Include infcall.h
5246         (ui_memcpy): New function.
5247         (ada_print_floating): New function.
5248         (ada_print_str): Order arguments correctly.
5249         Correct handling of empty arrays and arrays of 0-length items. 
5250         ada_is_array_descriptor => ada_is_array_descriptor_type 
5251         Print values of type System.Address in hexadecimal format.
5252         Use ada_print_floating to print floating-point numbers in Ada format.
5253         Print class tag values with type names.  
5254         No longer print the address of reference values. Avoids 
5255         a potential confusion.  
5256         (ada_value_print): Stop printing the object type for reference
5257         values, but preserve that behavior for access types. Avoids
5258         a potential confusion.
5259         Simplify one conditional expression, as the first part is now
5260         necessarily true.
5261         ada_is_array_descriptor => ada_is_array_descriptor_type 
5262         Add check for arrays for null records, and print them by hand.
5263         
5264 2004-06-01  Jim Blandy  <[email protected]>
5265
5266         * ppc-tdep.h: Delete unused 'regoff' member.
5267         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5268
5269 2004-06-01  Michael Chastain  <[email protected]>
5270
5271         Fix PR symtab/1661.
5272         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5273         (hpread_read_struct_type): Likewise.
5274
5275 2004-06-01  Andrew Cagney  <[email protected]>
5276
5277         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5278         instead of xasprintf.
5279         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
5280         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
5281         (mi_cmd_data_list_register_names) 
5282         (mi_cmd_data_list_changed_registers) 
5283         (mi_cmd_data_list_register_values) 
5284         (get_register, mi_cmd_data_write_register_values) 
5285         (mi_cmd_data_write_register_values) 
5286         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
5287         (mi_cmd_target_download, mi_cmd_target_select) 
5288         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
5289         (mi_execute_cli_command, mi_execute_async_cli_command) 
5290         (mi_execute_async_cli_command): Ditto.
5291         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5292         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5293
5294         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5295         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5296         error_last_message instead of mi_error_last_message.
5297         * mi/mi-main.c (mi_error_last_message): Delete function.
5298
5299         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5300         "invalid number of columns" error.  Delete redundant "out of
5301         memory" check.
5302
5303 2004-05-31  Mark Kettenis  <[email protected]>
5304
5305         * i386bsd-nat.c: Don't include <sys/procfs.h>.
5306         (gregset_t, fpregset_t): Remove typedefs.
5307         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5308         (REG_OFFSET): Rename argument.
5309         (i386bsd_r_reg_offset): Rename from reg_offset.
5310         (REG_ADDR): Remove macro.
5311         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5312         functions.
5313         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5314         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5315         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
5316         instead of supply_gregset.
5317         (store_inferior_registers): Use `struct reg' and `struct fpreg'
5318         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
5319         instead of fill_gregset.
5320         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5321
5322         * i386bsd-nat.c: Don't include "gregset.h".
5323         (supply_gregset, fill_gregset): Make static.
5324         (supply_fpregset, fill_fpregset): Remove.
5325         * Makefile.in (i386bsd-nat.o): Update dependencies.
5326
5327 2004-05-30  Mark Kettenis  <[email protected]>
5328
5329         * fbsd-proc.c: Include "regcache.h", "regset.h" and
5330         "gdb_assert.h".  Con't include "gregset.h".
5331         (fbsd_make_corefile_notes): Use regset-based core file support
5332         instead off fill_gregset and fill_fpregset.
5333         * Makefile.in (fbsd-proc.o): Update dependencies.
5334
5335         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5336         instructions.
5337         (m88k_frame_prev_register): Simplify code a bit.
5338
5339         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5340         (amd64_collect_fpregset): New function.
5341         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5342
5343         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5344
5345         * i386-tdep.c (i386_supply_gregset): Adjust comment.
5346         (i386_collect_gregset): New function.
5347         (i386_supply_fpregset): Adjust comment.
5348         (i386_collect_fpregset): New function.
5349         (i386_regset_from_core_section): Use i386_collect_gregset and
5350         i386_collect_fpregset.
5351
5352         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5353         handle VALUEP being null.
5354
5355         * regset.h (collect_regset_ftype): Unconstify fourth argument.
5356
5357 2004-05-29  Mark Kettenis  <[email protected]>
5358
5359         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
5360
5361         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5362         assembler in OpenBSD 3.5-current.
5363         (amd64obsd_sigcontext_addr): Likewise.
5364
5365 2004-05-28  Jim Blandy  <[email protected]>
5366
5367         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5368         register set, so our regcache isn't declared "legacy" and our E500
5369         pseudoregister read and write functions aren't ignored.
5370         (rs6000_register_byte, rs6000_register_raw_size,
5371         rs6000_register_virtual_type, rs6000_register_convertible,
5372         rs6000_register_convert_to_virtual,
5373         rs6000_register_convert_to_raw): Deleted.
5374         (rs6000_register_type, rs6000_convert_register_p,
5375         rs6000_register_to_value, rs6000_value_to_register): New
5376         functions.
5377         (rs6000_gdbarch_init): Don't register
5378         gdbarch_deprecated_register_size,
5379         gdbarch_deprecated_register_bytes,
5380         gdbarch_deprecated_register_byte,
5381         gdbarch_deprecated_register_raw_size,
5382         gdbarch_deprecated_register_virtual_type,
5383         gdbarch_deprecated_register_convertible,
5384         gdbarch_deprecated_register_convert_to_virtual, or
5385         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
5386         register gdbarch_register_type, gdbarch_convert_register_p,
5387         gdbarch_register_to_value, and gdbarch_value_to_register methods.
5388
5389 2004-05-26  Jim Blandy  <[email protected]>
5390
5391         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5392         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5393         functions, updated to match the register numberings used in GCC.
5394         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5395         rs6000_dwarf2_reg_to_regnum as register number conversions
5396         functions for STABS and Dwarf2.
5397
5398 2004-05-26  Randolph Chung  <[email protected]>
5399
5400         * infttrace.h (target_waitkind): Forward declare type instead of pulling
5401         in header file.
5402
5403 2004-05-25  Joel Brobecker  <[email protected]>
5404
5405         * NEWS: Document new "start" command.
5406
5407 2004-05-25  Randolph Chung  <[email protected]>
5408
5409         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5410         hppa-linux.
5411
5412 2004-05-25  Randolph Chung  <[email protected]>
5413
5414         * hppa-hpux-tdep.c (offsetof): Define.
5415         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5416         (hppa32_hpux_frame_base_before_sigtramp)
5417         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5418         (hppa64_hpux_frame_saved_pc_in_sigtramp)
5419         (hppa64_hpux_frame_base_before_sigtramp)
5420         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
5421         functions.
5422         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5423         (hppa_hpux_sigtramp_frame_unwind_cache)
5424         (hppa_hpux_sigtramp_frame_this_id)
5425         (hppa_hpux_sigtramp_frame_prev_register)
5426         (hppa_hpux_sigtramp_frame_unwind)
5427         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5428         (hppa_hpux_init_abi): Register sigtramp unwinder.
5429         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5430
5431 2004-05-25  Randolph Chung  <[email protected]>
5432
5433         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5434         and multiple stack unwinds.
5435         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5436
5437 2004-05-25  Andrew Cagney  <[email protected]>
5438
5439         * symfile.h (symbol_file_add_from_memory): Delete declaration.
5440         * symfile-mem.h: Delete file.
5441         * symfile-mem.c: Do not include "symfile-mem.h".
5442         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5443         "struct bfd_section".  When an error do not bother returning NULL.
5444         (add_symbol_file_from_memory_command): Use "struct bfd" and
5445         "struct bfd_section".
5446         * Makefile.in (symfile_mem_h): Delete.
5447         (symfile-mem.o): Update dependencies.
5448
5449 2004-05-25  Nick Roberts  <[email protected]>
5450
5451         * gdb-mi.el: New file.
5452
5453 2004-05-25  Andrew Cagney  <[email protected]>
5454
5455         * inftarg.c: Include "observer.h".
5456         (child_attach, child_create_inferior): Notify inferior_created.
5457         * corelow.c: Include "observer.h".
5458         (core_open): Notify inferior_created.
5459         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5460
5461 2004-05-25  Andrew Cagney  <[email protected]>
5462
5463         * target.h (struct target_ops): Add from_tty to
5464         to_create_inferior.
5465         (target_create_inferior, find_default_create_inferior): Update.
5466         * infcmd.c (run_command): Update.
5467         * wince.c (child_create_inferior): Update.
5468         * win32-nat.c (child_create_inferior): Update.
5469         * uw-thread.c (uw_thread_create_inferior): Update.
5470         * thread-db.c (thread_db_create_inferior): Update.
5471         * target.c (debug_to_create_inferior) 
5472         (find_default_create_inferior): Update.
5473         (maybe_kill_then_create_inferior): Update.
5474         * sol-thread.c (sol_thread_create_inferior): Update.
5475         * remote.c (extended_remote_async_create_inferior) 
5476         (extended_remote_create_inferior): Update.
5477         * remote-vx.c (vx_create_inferior): Update.
5478         * remote-st.c (st2000_create_inferior): Update.
5479         * remote-sim.c (gdbsim_create_inferior): Update.
5480         * remote-sds.c (sds_create_inferior): Update.
5481         * remote-rdp.c (remote_rdp_create_inferior): Update.
5482         * remote-rdi.c (arm_rdi_create_inferior): Update.
5483         * remote-m32r-sdi.c (m32r_create_inferior): Update.
5484         * remote-e7000.c (e7000_create_inferior): Update.
5485         * procfs.c (procfs_create_inferior): Update.
5486         * ocd.c (ocd_create_inferior): Update.
5487         * ocd.h (ocd_create_inferior): Update.
5488         * nto-procfs.c (procfs_create_inferior): Update.
5489         * monitor.c (monitor_create_inferior): Update.
5490         * lin-lwp.c (lin_lwp_create_inferior): Update.
5491         * inftarg.c (child_create_inferior): Update.
5492         * hpux-thread.c (hpux_thread_create_inferior): Update.
5493         * gnu-nat.c (gnu_create_inferior): Update.
5494
5495 2004-05-25  Andrew Cagney  <[email protected]>
5496
5497         * MAINTAINERS: Update e-mail address.
5498
5499 2004-05-24  Randolph Chung  <[email protected]>
5500
5501         * thread.c (info_threads_command, thread_apply_all_command)
5502         (thread_apply_command, thread_command, do_captured_thread_select):
5503         Remove HPUXHPPA-specific code.
5504
5505 2004-05-24  Randolph Chung  <[email protected]>
5506
5507         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5508         unused symbols.
5509         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5510         references.
5511
5512 2004-05-24  Joel Brobecker  <[email protected]>
5513
5514         * infcmd.c (kill_if_already_running): New function, extracted
5515         from run_command().
5516         (run_command): Replace extracted code by call to
5517         kill_if_already_running().
5518         (start_command): New function.
5519         (_initialize_infcmd): Add "start" command.
5520
5521 2004-05-24  Mark Kettenis  <[email protected]>
5522
5523         Add OpenBSD/m88k support.
5524         * NEWS (New native configurations): Mention OpenBSD/m88k.
5525         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5526         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5527         * Makefile.in (m88k_tdep_h): New variable.
5528         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5529         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5530         * configure.host: Add m88*-*-openbsd*.
5531         * configure.tgt: Add m88*-*-openbsd*.
5532
5533 2004-05-24  Jim Blandy  <[email protected]>
5534
5535         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5536         to approve changes.
5537
5538 2004-05-24  Kevin Buettner  <[email protected]>
5539
5540         * symtab.c (fixup_section): Search section table when lookup by
5541         name fails.
5542
5543 2004-05-24  Randolph Chung  <[email protected]>
5544
5545         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
5546         be "small_struct".
5547
5548 2004-05-24  Mark Kettenis  <[email protected]>
5549
5550         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5551         register number in regcache_raw_collect call.
5552         (m68kbsd_collect_fpregset): Likewise.
5553         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5554
5555         * regset.h (struct regset): Add back `regset' member.
5556
5557 2004-05-23  Mark Kettenis  <[email protected]>
5558
5559         * configure.in: Check for td_pcb in `struct thread'.
5560         * configure, config.in: Regenerated.
5561
5562         * dpx2-nat.c: Remove file.
5563         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5564         (dpx2-nat.o): Remove dependencies.
5565
5566         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5567         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5568         (amd64obsd_supply_pcb): New function.
5569         (_initialize_amd64obsd_nat): Enable libkvm interface.
5570         * Makefile.in (amd64obsd-nat.o): Update dependencies.
5571         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5572         (LOADLIBES): New variable.
5573
5574         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5575         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5576         (sparc32nbsd_supply_pcb): New function.
5577         (_initialize_sparcnbsd_nat): Enable libkvm interface.
5578         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5579         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5580         (LOADLIBES): New variable.
5581
5582 2004-05-22  Mark Kettenis  <[email protected]>
5583
5584         * bsd-kvm.c, bsd-kvm.h: New files.
5585         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5586         "bsd-kvm.h".
5587         (i386fbsd_supply_pcb): New function.
5588         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5589         (i386fbsd-nat.o): Update dependencies.
5590         (bsd_kvm_h): New variable.
5591         (bsd-kvm.o): New dependency.
5592         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5593         (LOADLIBES): New variable.
5594
5595         * regset.c: Tweak comment.
5596         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
5597         macro.
5598         * regset.h: Update copyright year.
5599         (struct regset): Remove `descr' member, add `gdbarch' member.
5600         (regset_alloc): Adjust prototype and comment.
5601         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5602         (i386_supply_fpregset): Likewise.
5603         (i386_regset_from_core_section): Update call to regset_alloc.
5604         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5605         REGSET->arch.
5606         (i386obsd_aout_regset_from_core_section): Update call to
5607         regset_alloc.
5608         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5609         REGSET->arch.
5610         (i386nbsd_aout_regset_from_core_section): Update call to
5611         regset_alloc.
5612         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5613         REGSET->arch.
5614         (amd64_regset_from_core_section): Update call to regset_alloc.
5615         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5616         REGSET->arch.
5617         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5618         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5619         &sparc32nbsd_gregset in sparc32_supply_gregset call.
5620         (sparc32nbsd_init_abi): Update call to regset_alloc.
5621         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5622         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5623         (sparc64obsd_init_abi): Update call to regset_alloc.
5624         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5625         &sparc64nbsd_gregset in sparc64_supply_gregset call.
5626         (sparc64nbsd_init_abi): Update call to regset_alloc.
5627         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5628         &sparc64fbsd_gregset in sparc64_supply_gregset call.
5629         (sparc64fbsd_init_abi): Update call to regset_alloc.
5630
5631 2004-05-22  Jim Blandy  <[email protected]>
5632
5633         * ppc-tdep.h (spe_register_p): New declaration.
5634         (struct gdbarch_tdep): New members: ppc_acc_regnum and
5635         ppc_spefscr_regnum.
5636         * rs6000-tdep.c (spe_register_p): New function.
5637         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5638         spefscr.
5639         (rs6000_gdbarch_init): Initialize the new members of the tdep
5640         structure.
5641
5642 2004-05-21  Jim Blandy  <[email protected]>
5643
5644         * ppc-linux-nat.c (fetch_register): Move code back to be next
5645         to the comment that describes it.  (Moved code, instead of
5646         comment, for symmetry with store_register.)
5647
5648         Allocate regset structures in the gdbarch's obstack, not using
5649         xmalloc.
5650         * regset.c (regset_alloc): Renamed from regset_xmalloc.
5651         Add 'arch' argument.  Allocate the regset on arch's obstack, not
5652         using xmalloc.
5653         * regset.h (regset_alloc): Update declaration.
5654         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5655         gdbarch argument.
5656         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5657         * i386-tdep.c (i386_regset_from_core_section): Same.
5658         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5659         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5660         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5661         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5662         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5663         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5664
5665 2004-05-21  Joel Brobecker  <[email protected]>
5666
5667         * config/djgpp/fnchange.lst: Undo previous change, was useless.
5668
5669 2004-05-21  Jim Blandy  <[email protected]>
5670
5671         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5672         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
5673
5674 2004-05-20  Jim Blandy  <[email protected]>
5675
5676         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5677
5678 2004-05-20  Mark Kettenis  <[email protected]>
5679
5680         * regset.h: Make prototype const-correct.
5681         * regset.c (regset_xmalloc): Make const-correct.
5682
5683 2004-05-20  Paul N. Hilfinger  <[email protected]>
5684
5685         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5686         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5687         (symbol_search_name): Declare.
5688         
5689         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5690         (iter_name_next_hashed): Ditto.
5691         (iter_name_next_linear): Ditto.
5692         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5693
5694         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
5695         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5696         (symbol_search_name): New function.
5697         
5698         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5699         
5700         * minsyms.c (build_minimal_symbol_hash_tables): Change
5701         test for adding to demangled hash table to check for difference
5702         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5703         
5704 2004-05-19  Jim Blandy  <[email protected]>
5705
5706         Use a constructor function to create regset structures.
5707         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5708         (struct regset): Use supply_regset_ftype.  Add new
5709         'collect_regset' member.
5710         (regset_xmalloc): New declaration.
5711         * regset.c: New file.
5712         * am64-tdep.c (amd64_regset_from_core_section): Use
5713         regset_xmalloc to construct regset structures.
5714         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5715         * i386-tdep.c (i386_regset_from_core_section): Same.
5716         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5717         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5718         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5719         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5720         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5721         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5722         * Makefile.in (COMMON_OBS): Add regset.o.
5723         (regset.o): New rule.
5724
5725 2004-05-19  Joel Brobecker  <[email protected]>
5726
5727         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5728         and pthread_cond_wait.c.
5729
5730 2004-05-18  Jim Blandy  <[email protected]>
5731
5732         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5733         before the mach-specific switch, and then let the individual cases
5734         override the defaults, rather than leaving them uninitialized
5735         until the switch and then setting them in each case.
5736
5737 2004-05-18  Randolph Chung  <[email protected]>
5738
5739         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5740         millicode functions.
5741
5742 2004-05-18  Randolph Chung  <[email protected]>
5743
5744         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5745         references to dld_flags_buffer consistent.
5746
5747 2004-05-18  Randolph Chung  <[email protected]>
5748
5749         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5750         it for unwinding the stack.
5751
5752 2004-05-18  Randolph Chung  <[email protected]>
5753
5754         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5755         Undefine these so we can overide them using gdbarch.
5756
5757 2004-05-18  Randolph Chung <[email protected]>
5758
5759         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5760         handling for 64-bit HPUX (elf).
5761
5762 2004-05-18  Daniel Jacobowitz  <[email protected]>
5763
5764         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5765         constants.
5766         * amd64-tdep.c (amd64_skip_prologue): Likewise.
5767         * ia64-tdep.c (examine_prologue): Likewise.
5768         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5769         * v850-tdep.c (v850_fix_call_dummy): Likewise.
5770
5771 2004-05-18  Mark Kettenis  <[email protected]>
5772
5773         * vax-tdep.c (vax_return_value): Implement
5774         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5775
5776 2004-05-17  Mark Kettenis  <[email protected]>
5777
5778         * vax-tdep.c (vax_return_value): Fix typo.
5779
5780 2004-05-17  Andrew Cagney  <[email protected]>
5781
5782         * MAINTAINERS: Mark Salter was also responsible for
5783         testsuite/config/
5784
5785         * NEWS: Mention signal fixes.
5786
5787 2004-05-17  Randolph Chung  <[email protected]>
5788
5789         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5790         check to see if we are unwinding an export stub.  Export stubs clobber
5791         the %rp in the call path and stores the original rp in a stack slot.
5792
5793 2004-05-17  Jim Blandy  <[email protected]>
5794
5795         * MAINTAINERS: Update address for J.T. Conklin.
5796
5797 2004-05-17  Randolph Chung  <[email protected]>
5798
5799         * hppa-tdep.c: Remove superfluous #include's.
5800         * Makefile.in (hppa-tdep.o): Update dependencies.
5801
5802 2004-05-17  Randolph Chung  <[email protected]>
5803
5804         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5805         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5806         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5807         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5808         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5809         Remove static function declarations.
5810
5811 2004-05-17  Mark Kettenis  <[email protected]>
5812
5813         * alphabsd-nat.c: Update copyright year.
5814         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5815
5816         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5817         and M68K_A2_REGNUM.
5818
5819         * m68k-tdep.c (m68k_svr4_return_value): Implement
5820         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5821
5822 2004-05-16  Mark Kettenis  <[email protected]>
5823
5824         * sol-thread.c Update copyright year.  Fix various coding
5825         standards violations.  Tweak a few comments.
5826         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5827         Delete prototypes.
5828
5829 2004-05-15  Randolph Chung  <[email protected]>
5830
5831         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5832         as pointer instead of array reference since HPUX compiler does
5833         not accept unsized array arguments.
5834         * somsolib.c (dld_flags_buffer): Use constant array size.
5835
5836 2004-05-15  Mark Kettenis  <[email protected]>
5837
5838         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5839         offset with decimal offset.
5840         (amd64obsd_sigcontext_addr): Return correct address for entire
5841         signal trampoline.
5842
5843         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5844         instead of get_frame_base.
5845
5846         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5847         (fill_gregset): Use regcache_raw_collect.
5848
5849         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5850         ppcobsd-tdep.c.
5851
5852         * config/sparc/tm-nbsd64.h: Remove file.
5853         * config/tm-sunos.h: Remove file.
5854
5855 2004-05-15  Joel Brobecker  <[email protected]>
5856
5857         * rs6000-tdep.c (store_param_on_stack_p): New function,
5858         an improved version of some code extracted from skip_prologue().
5859         (skip_prologue): Use store_param_on_stack_p() to detect
5860         instructions saving a parameter on the stack. Detect when r0
5861         is used to save a parameter.
5862         Do not mark "li rx, SIMM" instructions as part of the prologue,
5863         unless the following instruction is also part of the prologue.
5864
5865 2004-05-14  Andrew Cagney  <[email protected]>
5866
5867         * infrun.c (handle_inferior_event): Simplify
5868         STEP_OVER_UNDEBUGGABLE.
5869
5870         * infrun.c (handle_step_into_function): Delete function.
5871         (handle_inferior_event): Inline calls to
5872         handle_step_into_function.
5873
5874 2004-05-14  Jerome Guitton  <[email protected]>
5875
5876         * rs6000-nat.c: Fix a comment.
5877
5878 2004-05-12  David Anderson <[email protected]>
5879
5880         Committed by Jim Blandy <[email protected]>:
5881         * regcache.c (struct regcache_descr): fix comment spelling.
5882
5883 2004-05-13  J. Brobecker  <[email protected]>
5884
5885         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5886         Fixes a link link failure.
5887
5888 2004-05-13  J. Brobecker  <[email protected]>
5889
5890         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5891         error that was causing the build to fail.
5892
5893 2004-05-13  J. Brobecker  <[email protected]>
5894
5895         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5896         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5897
5898 2004-05-13  Andrew Cagney  <[email protected]>
5899
5900         * infrun.c (handle_inferior_event): Check for
5901         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5902         calls.  Update comments.
5903
5904 2004-05-13  Jim Blandy  <[email protected]>
5905
5906         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5907         (fetch_regs_user_thread, fetch_regs_kernel_thread)
5908         (store_regs_user_thread, store_regs_kernel_thread): Use
5909         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5910         * ppc-linux-nat.c (fill_gregset): Same.
5911         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
5912         (ppc_linux_sigtramp_cache): Same.
5913         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
5914         (ppcnbsd_sigtramp_cache_init): Same.
5915         * rs6000-nat.c (fetch_core_registers): Same.
5916         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
5917         (rs6000_frame_cache): Same.
5918
5919         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5920         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5921         of assuming that the gprs are numbered starting with zero.
5922         * ppc-linux-nat.c (fill_gregset): Same.
5923         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5924         * ppcnbsd-nat.c (getregs_supplies): Same.
5925         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5926         * rs6000-nat.c (fetch_core_registers): Same.
5927         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5928
5929 2004-05-07  Michael Snyder  <[email protected]>
5930
5931         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5932         LOC_COMPUTED_ARG, and LOC_INDIRECT.
5933
5934 2004-05-13  Andrew Cagney  <[email protected]>
5935
5936         * infrun.c (handle_inferior_event): Use frame_unwind_id.
5937
5938 2004-05-13  Bryce McKinlay  <[email protected]>
5939
5940         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5941         base_address for shared libraries.
5942
5943 2004-05-13  Bryce McKinlay  <[email protected]>
5944
5945         * MAINTAINERS (write after approval): Add myself.       
5946
5947 2004-05-13  Ulrich Weigand  <[email protected]>
5948
5949         * breakpoint.c (bpstat_stop_status): Add new argument
5950         STOPPED_BY_WATCHPOINT.  Use it instead of testing
5951         target_stopped_data_address agaist 0 to check whether
5952         or not we stopped due to a hardware watchpoint.
5953         * breakpoint.h (bpstat_stop_status): Adapt prototype.
5954         * infrun.c (handle_inferior_event): Call bpstat_stop_status
5955         with new argument.
5956
5957 2004-05-12  Jim Blandy  <[email protected]>
5958
5959         * configure.in: When checking whether we should use the -bbigtoc
5960         option, don't forget to restore the original value of LDFLAGS.
5961         * configure: Regenerated.
5962
5963 2004-05-12  Andrew Cagney  <[email protected]>
5964
5965         * thread.c (load_infrun_state): Delete step_sp.
5966         * infrun.c (context_switch): Ditto.
5967         * inferior.h (step_sp): Ditto.
5968         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5969         * gdbthread.h (struct thread_info, save_infrun_state)
5970         (restore_infrun_state): Ditto.
5971
5972 2004-05-12  Ulrich Weigand  <[email protected]>
5973
5974         * MAINTAINERS (write after approval): Add myself.
5975
5976 2004-05-12  Andrew Cagney  <[email protected]>
5977
5978         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5979         eliminate reference to step_sp.
5980         (struct execution_control_state, init_execution_control_state)
5981         (handle_inferior_event, keep_going): Delete update_step_sp and
5982         step_sp.
5983         * infcmd.c (step_sp): Note that variable is unused.
5984
5985 2004-05-11  Andrew Cagney  <[email protected]>
5986
5987         * infrun.c (step_over_function): Delete function.
5988         (handle_step_into_function): Use insert_step_resume_breakpoint.
5989         (insert_step_resume_breakpoint): Fix assertion.
5990
5991 2004-05-11  Nick Roberts  <[email protected]>
5992
5993         * utils.c (defaulted_query): Just use the normal query input type
5994         when printing the annotations.
5995
5996 2004-05-11  Andrew Cagney  <[email protected]>
5997
5998         * infrun.c (handle_inferior_event): Simplify code handling
5999         step-into or return-from a signal trampoline.
6000
6001 2004-05-11  Andrew Cagney  <[email protected]>
6002
6003         * ppcnbsd-tdep.c: Include "gdb_assert.h".
6004         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6005
6006 2004-05-10  Jim Blandy  <[email protected]>
6007
6008         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6009         with a call to internal_error.
6010
6011         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6012         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6013         processor variant lacks those registers.
6014         (ppc_floating_point_unit_p): Change description to make it clear
6015         that this returns info about the ISA, not the ABI.
6016         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6017         return true or false by checking tdep->ppc_fp0_regnum and
6018         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
6019         arch/mach switching done in rs6000_gdbarch_init; it's better to
6020         keep that logic there, and just check the results here.
6021         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6022         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6023         floating-point registers.
6024         (ppc_supply_fpregset, ppc_collect_fpregset)
6025         (rs6000_push_dummy_call, rs6000_extract_return_value)
6026         (rs6000_store_return_value): Assert that we have floating-point
6027         registers.
6028         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6029         (rs6000_frame_cache): Don't note the locations at which
6030         floating-point registers were saved if we have no fprs.
6031         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6032         registers.
6033         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6034         (store_regs_user_thread, store_regs_kernel_thread): Only call
6035         supply_fprs / fill_fprs if we actually have floating-point
6036         registers.
6037         (special_register_p): Check ppc_fpscr_regnum before matching
6038         against it.
6039         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6040         supply / collect fpscr if we don't have it.
6041         * ppc-bdm.c: #include "gdb_assert.h".
6042         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6043         have floating-point registers, since I can't test this code on
6044         FP-free systems to adapt it.
6045         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6046         fpscr and floating point register numbers if they don't exist.
6047         (fetch_register): Assert that we have floating-point registers
6048         before we reach the code that handles them.
6049         (store_register): Same.  And use tdep instead of calling
6050         gdbarch_tdep again.
6051         (fill_fpregset): Don't try to collect FP registers and fpscr if we
6052         don't have them.
6053         (ppc_linux_sigtramp_cache): Don't record the saved locations of
6054         fprs and fpscr if we don't have them.
6055         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6056         don't have them.
6057         * ppcnbsd-nat.c: #include "gdb_assert.h".
6058         (getfpregs_supplies): Assert that we have floating-point registers.
6059         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6060         * ppcobsd-tdep.c: #include "gdb_assert.h".
6061         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6062         have floating-point registers.
6063         * rs6000-nat.c (regmap): Don't match against the fpscr and
6064         floating point register numbers if they don't exist.
6065         (fetch_inferior_registers, store_inferior_registers,
6066         fetch_core_registers): Only fetch / store / supply the
6067         floating-point registers and the fpscr if we have them.
6068         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6069         (ppcobsd-tdep.o): Update dependencies.
6070         
6071 2004-05-10  Andrew Cagney  <[email protected]>
6072
6073         * infrun.c (through_sigtramp_breakpoint): Delete variable.
6074         (context_switch): Do not switch through_sigtramp_breakpoint.
6075         * gdbthread.h (save_infrun_state, load_infrun_state)
6076         (struct thread_info): Delete through_sigtramp_breakpoint parameter
6077         and structure member.
6078         * thread.c (load_infrun_state, save_infrun_state): Update.
6079
6080 2004-05-10  Mark Kettenis  <[email protected]>
6081
6082         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6083
6084 2004-05-10  Maciej W. Rozycki  <[email protected]>
6085
6086         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
6087         throughout.
6088         * aclocal.m4: Regenerate.
6089
6090 2004-05-10  Nathan J. Williams  <[email protected]>
6091
6092         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6093
6094 2004-05-10  Andrew Cagney  <[email protected]>
6095
6096         * infrun.c (check_sigtramp2): Delete function.
6097         (handle_inferior_event): When single stepping, and taking a
6098         signal, set a breakpoint at the signal return address.  Delete
6099         redundant calls to check_sigtramp2.
6100         (insert_step_resume_breakpoint): New function.
6101         (through_sigtramp_breakpoint, handle_inferior_event)
6102         (follow_exec, wait_for_inferior, fetch_inferior_event)
6103         (currently_stepping, keep_going): Delete most uses of
6104         through_sigtramp_breakpoint, not that it should be deleted.
6105         (delete_breakpoint_current_contents): Delete function.
6106
6107 2004-05-10  Randolph Chung  <[email protected]>
6108
6109         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6110         target.
6111         * config/pa/tm-linux.h: New file.
6112
6113 2004-05-10  Daniel Jacobowitz  <[email protected]>
6114
6115         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6116         of prefixes.  Don't print the prefix twice in the CLI.
6117
6118 2004-05-10  Jim Blandy  <[email protected]>
6119
6120         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6121         collect all the gprs.
6122
6123         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6124         loop collecting gprs.
6125
6126 2004-05-09  Andrew Cagney  <[email protected]>
6127
6128         * remote-vx.c (net_step): Delete step-range code.
6129         * remote.c (remote_resume, init_all_packet_configs)
6130         (set_remote_protocol_E_packet_cmd)
6131         (show_remote_protocol_E_packet_cmd)
6132         (remote_protocol_E, show_remote_cmd, _initialize_remote)
6133         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6134         (show_remote_protocol_e_packet_cmd): Ditto.
6135
6136 2004-05-09  Mark Kettenis  <[email protected]>
6137
6138         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6139
6140         * hppa-tdep.h: Update copyright year.
6141         (struct trad_frame_saved_reg): Add opaque declaration.
6142
6143         * amd64-tdep.c (amd64_return_value): Implement
6144         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6145
6146         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6147         (m68k_value_to_register): New functions.
6148         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6149         value_to_register.
6150
6151         * defs.h (enum return_value_convention): Add
6152         RETURN_VALUE_ABI_RETURNS_ADDRESS and
6153         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6154         * infcmd.c (legacy_return_value): New function.
6155         (print_return_value): Rwerite to implement
6156         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6157         * values.c (using_struct_return): Check for inequality to
6158         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6159         RETURN_VALUE_STRUCT_CONVENTION.
6160         * i386-tdep.c (i386_return_value): Implement
6161         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6162
6163         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
6164         include "symtab.h", "opcode/vax.h" and "inferior.h".
6165         (vax_skip_prologue): Replace calls to read_memory_integer by calls
6166         to read_memory_unsigned_integer.
6167         (vax_gdbarch_init): Reorder.
6168         (_initialize_vax_tdep): Spell out prototype.
6169         * Makefile.in (vax-tdep.o): Update dependencies.
6170
6171 2004-05-08  Andrew Cagney  <[email protected]>
6172
6173         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6174         * target.c (target_detach, target_disconnect): Ditto.
6175
6176         * infcall.c (call_function_by_hand): When no
6177         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6178         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6179         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6180         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6181         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6182         
6183         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6184         * gdbarch.h, gdbarch.c: Re-generate.
6185         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6186         deprecated_fix_call_dummy.
6187         * v850-tdep.c (v850_gdbarch_init): Ditto.
6188         * infcall.c (call_function_by_hand): Do not call
6189         DEPRECATED_FIX_CALL_DUMMY.
6190
6191         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6192         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6193         * gdbarch.h, gdbarch.c: Re-generate.
6194         * arm-linux-tdep.c (arm_linux_call_dummy_words)
6195         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6196         deprecated_sizeof_call_dummy_words.
6197         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6198         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6199         * v850-tdep.c (v850_gdbarch_init): Ditto.
6200         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6201         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6202         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6203         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6204         * arch-utils.h (legacy_call_dummy_words)
6205         (legacy_sizeof_call_dummy_words): Delete declarations.
6206         * arch-utils.c (legacy_call_dummy_words)
6207         (legacy_sizeof_call_dummy_words): Delete variables.
6208
6209         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6210         * gdbarch.h, gdbarch.c: Re-generate.
6211         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6212         * infcall.c (call_function_by_hand): Eliminate call to
6213         DEPRECATED_PUSH_DUMMY_FRAME.
6214         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6215         push_dummy_frame.
6216         (ns32k_push_dummy_frame): Delete function.
6217
6218         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6219         deprecated_call_dummy_breakpoint_offset or
6220         deprecated_call_dummy_start_offset.
6221         * dummy-frame.c, arm-tdep.c: Update comments.
6222         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6223         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6224         * gdbarch.h, gdbarch.c: Re-generate.
6225         
6226         * infcall.c (legacy_push_dummy_code): Delete function.
6227         (push_dummy_code): Delete call.
6228
6229         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6230         * gdbarch.h, gdbarch.c: Re-generate.
6231         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6232         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6233         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6234         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6235
6236         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6237         (struct frame_info): Delete opaque declaration.
6238         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6239         * frame.c (get_frame_type): Delete call.
6240
6241         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6242         pc_in_call_dummy.
6243         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6244         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6245
6246 2004-05-08  Mark Kettenis  <[email protected]>
6247
6248         * alphanbsd-tdep.c: Include "gdb_string.h".
6249         * armnbsd-tdep.c: Update copyright year.
6250         Include "gdb_string.h".
6251         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6252         dependencies.
6253
6254         * delta68-nat.c: Remove file.
6255         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6256         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6257         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6258         (delta68-nat.o): Remove dependency.
6259
6260         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6261         function.
6262         (m68k_gdbarch_init): Don't set
6263         deprecated_frameless_function_invocation.
6264
6265 2004-05-07  Randolph Chung  <[email protected]>
6266
6267         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
6268         read_memory_nobpt for code reading when doing frame unwinding.
6269         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6270
6271 2004-05-07  Randolph Chung  <[email protected]>
6272
6273         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6274         instead of sp, handle sigaltstack case.
6275         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
6276         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6277         signal handler and not that of the caller.
6278         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6279         hppa_linux_sigtramp_find_sigcontext.
6280
6281 2004-05-07  Randolph Chung  <[email protected]>
6282
6283         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6284         hppa-linux-nat.c.
6285         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6286         * hppa-linux-nat.c (fetch_register, store_register): Define.
6287         (fetch_inferior_registers, store_inferior_registers): Define.
6288         (supply_gregset): Add comment and clean up some unneeded code.
6289         (fill_gregset): Add comment and fix so that it saves registers in
6290         the right place in the gregset.
6291         (fill_fpregset): Fix buffer overrun problem.
6292         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6293
6294 2004-05-07  Randolph Chung  <[email protected]>
6295
6296         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
6297         do common handling of the pcoqt register.
6298         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6299         to use helper function.
6300         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6301         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6302         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6303         generic fallback unwinder when all else fails.
6304         (hppa_gdbarch_init): Add fallback sniffer.
6305         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6306         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6307         to use helper function.
6308
6309 2004-05-08  Joel Brobecker  <[email protected]>
6310
6311         * config/djgpp/fnchange.lst: Add translation rules for
6312         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6313
6314 2004-05-08  Mark Kettenis  <[email protected]>
6315
6316         * frame.c (get_prev_frame_1): Work around GCC bug.
6317         * frame.h: Add comment about GCC bug.
6318
6319 2004-05-07  Andrew Cagney  <[email protected]>
6320
6321         * observer.c: Include "commands.h" and "gdbcmd.h".
6322         (observer_debug, _initialize_observer): Add the
6323         command "set/show debug observer".
6324         * observer.sh: When observer debugging, log notify calls.
6325         * Makefile.in (observer.o): Update dependencies.
6326
6327 2004-05-07  Jason Molenda  ([email protected])
6328
6329         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6330
6331 2004-05-07  Jim Blandy  <[email protected]>
6332
6333         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6334         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6335         to recognize gpr regnums, instead of assuming that
6336         tdep->ppc_fp0_regnum marks the end of the general-purpose
6337         registers.
6338
6339         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6340         the given architecture has floating-point registers. 
6341
6342 2004-05-07  Andrew Cagney  <[email protected]>
6343
6344         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6345         macro defined to 1.
6346         * gdbarch.h, gdbarch.c: Re-generate.
6347         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6348         deprecated_use_generic_dummy_frames.
6349
6350 2004-05-07  Brian Ford  <[email protected]>
6351
6352         * NEWS: Mention Cygwin DWARF 2 support.
6353
6354 2004-05-07  Andrew Cagney  <[email protected]>
6355
6356         * objfiles.h (struct entry_info): Delete unused fields
6357         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6358         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6359         * mipsread.c (mipscoff_symfile_read): Update.
6360         * mdebugread.c (parse_partial_symbols): Update.
6361         * dwarfread.c (read_file_scope): Update.
6362         * dwarf2read.c (read_file_scope): Update.
6363         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6364         * coffread.c (complete_symtab): Update.
6365
6366 2004-05-07  Mark Kettenis  <[email protected]>
6367
6368         * infcall.c (_initialize_infcall): Fix typo.
6369
6370 2004-05-07  Andrew Cagney  <[email protected]>
6371
6372         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6373         * command.h (add_setshow_zinteger_cmd): Declare.
6374
6375 2004-05-06  Randolph Chung  <[email protected]>
6376
6377         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6378         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6379         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6380         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6381         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6382         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6383         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
6384         definitions ...
6385         * hppa-tdep.h: ... to here, with HPPA_ prefix.
6386         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6387         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6388         (hppa64_hpux_frame_find_saved_regs_in_sig)
6389         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6390         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6391         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6392         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6393         (hppa_linux_sigtramp_frame_prev_register): Likewise.
6394         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6395         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6396         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6397         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6398         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6399         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6400         (hppa32_register_type, hppa_cannot_store_register)
6401         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6402         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6403         * hpread.c (hpread_process_one_debug_symbol): Likewise.
6404         * pa64solib.c (pa64_solib_have_load_event)
6405         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6406         (pa64_solib_unloaded_library_pathname): Likewise.
6407         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6408         (som_solib_library_pathname): Likewise.
6409
6410 2004-05-05  Jim Ingham  <[email protected]>
6411         
6412         * breakpoint.c (create_breakpoints): Copy the ignore count and
6413         thread id over from the pended breakpoint to the actual
6414         breakpoint.
6415         
6416 2004-05-05  Andrew Cagney  <[email protected]>
6417
6418         * gdbarch.sh (PARM_BOUNDARY): Delete.
6419         gdbarch.h, gdbarch.c: Re-generate.
6420         * valops.c (PARM_BOUNDARY): Delete macro.
6421         (value_push): Delete PARM_BOUNDARY code.
6422         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6423
6424 2004-05-04  Jim Blandy  <[email protected]>
6425
6426         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6427         Don't assume that the gprs, fprs, and UISA sprs are
6428         contiguous, start at register number zero, and end with fpscr.
6429         Instead, use the numbers from the tdep structure.
6430
6431         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6432         should no longer be used in code specific to the RS6000 and its
6433         derivatives.
6434         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6435         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6436         tdep->ppc_fp0_regnum.
6437         (ppc_supply_fpregset, ppc_collect_fpregset)
6438         (rs6000_push_dummy_call, rs6000_extract_return_value)
6439         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6440         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6441         FP0_REGNUM. 
6442         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6443         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6444         Same.
6445         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6446         bdm_ppc_store_registers): Same.
6447         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
6448         (store_register, fill_fpregset): Same.
6449         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
6450         (ppc_linux_supply_fpregset): Same.
6451         * ppcnbsd-nat.c (getfpregs_supplies): Same.
6452         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6453         Same.
6454         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6455         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6456         ppc64_sysv_abi_return_value): Same.
6457         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6458         (store_inferior_registers, fetch_core_registers): Same.
6459
6460 2004-05-01  Mark Kettenis  <[email protected]>
6461
6462         * m68knbsd-nat.c: Remove file.
6463         * m68knbsd-tdep.c: Remove file.
6464         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6465         dependencies.
6466         * configure.host: Add m68k-*-netbsdelf*.
6467         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6468         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6469         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
6470         (XM_FILE): Remove.
6471         * config/m68k/nbsdelf.mh: New file.
6472         * config/m68k/nbsd.mt: New file.
6473         * config/m68k/nbsdaout.mt: Remove file.
6474         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6475         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
6476         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6477         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6478         (use_struct_convention): Remove prototype.
6479         (USE_STRUCT_CONVENTION): Remove define.
6480         * config/m68k/xm-nbsd.h: Remove file.
6481
6482 2004-05-04  Michael Snyder  <[email protected]>
6483
6484         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
6485         reg_struct_return method (as gcc usually does for cross targets).
6486
6487 2004-05-04  Ulrich Weigand <[email protected]>
6488
6489         Committed by Andrew Cagney.
6490         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6491         alignment padding when accessing ucontext struct members.
6492
6493 2004-05-04  Jim Blandy  <[email protected]>
6494
6495         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6496         'ppc_gplast_regnum' member.
6497         (ppc_num_gprs): New enum constant.
6498         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6499         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6500         * rs6000-nat.c (regmap, fetch_inferior_registers,
6501         store_inferior_registers): Same.
6502         * rs6000-tdep.c (e500_pseudo_register_read)
6503         (e500_pseudo_register_write): Same.
6504         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6505
6506         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6507         * ppc-tdep.h (ppc_num_fprs): New enum constant.
6508         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6509         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6510         FPLAST_REGNUM.
6511         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6512         Same.
6513         * ppc-linux-nat.c (ppc_register_u_addr): Same.
6514         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6515         (store_inferior_registers): Same.
6516
6517         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6518         with FPLAST_REGNUM.
6519
6520 2004-05-03  Joel Brobecker  <[email protected]>
6521
6522         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6523         failure detected by recent versions of GCC.
6524         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6525         to be consistent with the usage in dwarf2_create_include_psymtab.
6526
6527 2004-05-03  Michael Snyder  <[email protected]>
6528
6529         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6530         (heuristic_proc_start): Whitespace cleanup.
6531
6532 2004-05-04  Mark Kettenis  <[email protected]>
6533
6534         * sun3-nat.c: Remove file.
6535         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6536         dependencies.
6537         (ALLDEPFILES): Remove sun3-nat.c.
6538         (sun3-nat.o): Remove dependencies.
6539
6540         * i386-interix-nat.c, i386-interix-tdep.c,
6541         config/i386/nm-interix.h, config/i386/interix.mh,
6542         config/i386/interix.mt: Remove files.
6543         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6544         dependencies.
6545
6546 2004-05-03  Mark Kettenis  <[email protected]>
6547
6548         * m68k-tdep.h (struct gdbarch_tdep): Add member
6549         struct_value_regnum.
6550         (m68k_svr4_init_abi): New prototype.
6551         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
6552         different calling conventions.
6553         (m68k_extract_return_value): Remove code dealing with single-field
6554         structs.
6555         (m68k_store_return_value): Remove code dealing with single-field
6556         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
6557         (m68k_extract_struct_value_address): Remove function.
6558         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6559         (m68k_reg_struct_return_p, m68k_return_value)
6560         (m68k_svr4_return_value): New functions.
6561         (m68k_use_struct_convention): Remove function.
6562         (m68k_push_dummy_call): Use new struct_value_regnum member of
6563         `struct gdbarch_tdep' instead of hardcoded register number to
6564         store STRUCT_ADDR.
6565         (m68k_svr4_init_abi): New function.
6566         (m68k_gdbarch_init): Don't set extract_return_value,
6567         store_return_values, deprecated_extract_struct_value_address and
6568         use_struct_convention.  Set return_value instead.  Initialize new
6569         struct_value_regnum member of `struct gdbarch_tdep'.
6570         * m68klinux-tdep.c: Update copyright year.
6571         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6572         (m68k_linux_extract_struct_value_address): Remove function.
6573         (m68k_linux_init_abi): Don't set extract_return_value,
6574         store_return_values, deprecated_extract_struct_value_address and
6575         use_struct_convention.  Call m68k_svr4_init_abi but override the
6576         new struct_value_regnum member of `struct gdbarch_tdep'.
6577         * Makefile.in (m68k-tdep.o): Update dependencies.
6578
6579 2004-05-03  J. Brobecker  <[email protected]>
6580
6581         * dwarf2read.c (line_header): Add new included_p field in
6582         field file_names.
6583         (partial_die_info): New field has_stmt_list. New field line_offset.
6584         (dwarf2_create_include_psymtab): New function.
6585         (dwarf2_build_include_psymtabs): New function.
6586         (add_file_name): Add forward declaration. Initialize new field.
6587         (dwarf_decode_lines): Add new parameter. Enhance this procedure
6588         to be able to determine the list of files included by the
6589         given unit, and build their associated psymtabs.
6590         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6591         files as well.
6592         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6593         (read_file_scope): Update call to dwarf_decode_lines.
6594         (read_partial_die): Handle DW_AT_stmt_list attributes.
6595
6596 2004-05-02  Michael Chastain  <[email protected]>
6597
6598         Unfix PR gdb/1626.
6599         * configure.in: Revert special case for osf5.*.
6600         * configure: Regenerate.
6601
6602 2004-05-02  Jim Blandy  <[email protected]>
6603
6604         Move the symbol-file-from-memory functions into their own file.
6605         * symfile-mem.c, symfile-mem.h: New files.
6606         * symfile.c (symbol_file_add_from_bfd): New function.
6607         (symbol_file_add): Call symbol_file_add_from_bfd.
6608         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6609         Moved to symfile-mem.c.
6610         (_initialize_symfile): Move definition of
6611         add-symbol-file-from-memory command to symfile-mem.c.
6612         * symfile.h (symbol_file_add_from_bfd): New declaration.
6613         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6614         * config/powerpc/linux.mt (TDEPFILES): Same.
6615         * Makefile.in (SFILES): Add symfile-mem.c.
6616         (symfile_mem_h): New variable.
6617         (HFILES_NO_SRCDIR): Add symfile-mem.h.
6618         (symfile-mem.o): New rule.
6619
6620 2004-05-01  Andrew Cagney  <[email protected]>
6621
6622         * breakpoint.c (insert_bp_location): Use get_frame_id, and
6623         frame_find_by_id instead of frame_relative_level.
6624         (do_enable_breakpoint): Ditto.
6625         * thread.c: Update copyright.
6626         (info_threads_command): Ditto, simplify.
6627
6628         * frame.c (deprecated_generic_get_saved_register): Delete
6629         function, moved to "xstormy16-tdep.c".
6630         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6631         deprecated_generic_get_saved_register from "frame.c".
6632         (xstormy16_frame_saved_register): Call
6633         xstormy16_get_saved_register.
6634         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6635         static.
6636         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6637         * frame.h (deprecated_generic_get_saved_register): Delete.
6638
6639 2004-05-01  Michael Chastain  <[email protected]>
6640
6641         * dwarfread.c: Update documentation on the state of dwarf-1.
6642
6643 2004-05-01  Andrew Cagney  <[email protected]>
6644
6645         * stack.c (select_frame_command): Delete call to
6646         frame_relative_level.
6647         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6648         Delete #if0 code.
6649         (frame_info): Do not print FRAMELESS.
6650         (print_block_frame_labels): Replace DEPRECATED_STREQ.
6651         (catch_info): Delete #if0 code.
6652
6653         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6654         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6655         of frame_relative_level.
6656         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6657         to SENTINEL_FRAME.
6658         * frame.h (enum frame_type): Add SENTINEL_FRAME.
6659         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6660         frame_relative_level.
6661
6662         * frame.h (deprecated_set_frame_type): Delete declaration.
6663         * frame.c (deprecated_set_frame_type): Delete function, update
6664         comments.
6665
6666         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6667         * gdbarch.h, gdbarch.c: Re-generate.
6668         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6669         (shnbsd_pc_in_sigtramp): Delete.
6670         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6671         pc_in_sigtramp.
6672         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6673         pc_in_sigtramp.
6674         * frame.h: Update comments.
6675         * ppc-linux-tdep.c: Update comments.
6676         * breakpoint.c (bpstat_what): Update comments.
6677
6678         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6679         m68klinux-tdep.o's dependencies, were previously added to
6680         m68klinux-nat.o.
6681
6682         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6683         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6684         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6685         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6686         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6687
6688         * Makefile.in (m68klinux-nat.o): Update dependencies.
6689         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6690         (m68k_linux_sigtramp_frame_cache)
6691         (m68k_linux_sigtramp_frame_this_id)
6692         (m68k_linux_sigtramp_frame_prev_register)
6693         (m68k_linux_sigtramp_frame_unwind)
6694         (m68k_linux_sigtramp_frame_sniffer)
6695         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6696         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6697         names, use trad-frame.h.
6698         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6699         (struct m68k_sigtramp_info): Delete.
6700         * m68k-tdep.c (m68k_sigtramp_frame_cache)
6701         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6702         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6703         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6704         "m68klinux-tdep.c".
6705
6706         * infrun.c (check_sigtramp2): Delete check for
6707         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6708
6709 2004-05-01  Mark Kettenis  <[email protected]>
6710
6711         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6712
6713 2004-05-01  Andrew Cagney  <[email protected]>
6714
6715         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6716         (frv_linux_sigtramp_frame_cache)
6717         (frv_linux_sigtramp_frame_this_id)
6718         (frv_linux_sigtramp_frame_prev_register)
6719         (frv_linux_sigtramp_frame_unwind)
6720         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6721         include "linux" in function and variable names, directly call
6722         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6723         the latest trad-frame code.
6724         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6725         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6726         * Makefile.in (frv-linux-tdep.o): Update dependencies.
6727         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6728         * frv-tdep.c (frv_sigtramp_frame_cache)
6729         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6730         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6731         frv-linux-tdep.c.
6732         (frv_gdbarch_init): Do not append a sigtramp sniffer.
6733         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6734         (frv_set_sigcontext_reg_addr): Delete function.
6735
6736         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6737         (DEPRECATED_SIGTRAMP_END): Delete.
6738         * gdbarch.h, gdbarch.c: Re-generate.
6739         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6740         * config/vax/tm-vaxbsd.h: Update copyright.
6741         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6742         (DEPRECATED_IN_SIGTRAMP): Define.
6743         * config/m68k/tm-nbsd.h: Update copyright.
6744         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6745         (DEPRECATED_IN_SIGTRAMP): Define.
6746
6747 2004-05-01  Mark Kettenis  <[email protected]>
6748
6749         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6750         encondings.  Fixes PR gdb/1628.
6751
6752         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6753         DW_CFA_restore state without a matching DW_CFA_remember_state
6754         instead of aborting.  Fixes PR backtrace/1589.
6755
6756 2004-04-30  Joel Brobecker  <[email protected]>
6757
6758         * MAINTAINERS: Add self as AIX maintainer.
6759         Update my e-mail address in write-after-approval section.
6760
6761 2004-04-30  Andrew Cagney  <[email protected]>
6762
6763         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6764         (legacy_get_prev_frame): Ditto.
6765
6766         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6767         (mips_gdbarch_init): Do not set pc_in_sigtramp.
6768         * mipsread.c (sigtramp_address): Delete extern variable.
6769         (mipscoff_new_init): Delete reference.
6770         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6771         (fixup_sigtramp): Delete function.
6772         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6773         (fixup_sigtramp): Delete declarations.
6774
6775         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6776         deprecated_pc_in_sigtramp.
6777         (ppcnbsd_pc_in_sigtramp): Delete function.
6778
6779 2004-05-01  Mark Kettenis  <[email protected]>
6780
6781         * config/m68k/nm-nbsd.h: Tweak comments.
6782         * config/m68k/nm-nbsdaout.h: Likewise.
6783
6784 2004-04-30  Andrew Cagney  <[email protected]>
6785
6786         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6787         legacy_pc_in_sigtramp.
6788         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6789
6790 2004-05-01  Mark Kettenis  <[email protected]>
6791
6792         Add OpenBSD/m68k support.
6793         * NEWS (New native configurations): Mention OpenBSD/m68k.
6794         * m68kbsd-tdep.c: New file.
6795         * m68kbsd-nat.c: New file.
6796         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6797         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6798         * configure.host: Add m68k-*-openbsd.
6799         * configure.tgt: Add m68k-*-openbsd.
6800         * config/m68k/tm-obsd.h: New file.
6801         * config/m68k/obsd.mt: New file.
6802         * config/m68k/obsd.mh: New file.
6803         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6804         m68kbsd-tdep.c.
6805
6806 2004-04-30  Andrew Cagney  <[email protected]>
6807
6808         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6809         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6810
6811 2004-04-30  Mark Kettenis  <[email protected]>
6812
6813         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6814         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6815
6816 2004-04-30  Brian Ford  <[email protected]>
6817
6818         Revert 2004-04-16 change.
6819         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6820         (i386_coff_init_abi): Remove.
6821         * i386-tdep.h (i386_coff_init_abi): Remove.
6822         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6823
6824 2004-04-30  Andrew Cagney  <[email protected]>
6825
6826         * blockframe.c (find_pc_partial_function): Delete use of
6827         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6828         DEPRECATED_SIGTRAMP_END.
6829
6830         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6831         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6832         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6833         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6834         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6835
6836         * defs.h (deprecated_inside_entry_file): Delete declaration.
6837         * blockframe.c (deprecated_inside_entry_file): Delete function.
6838         (legacy_frame_chain_valid): Delete call.
6839         * sh64-tdep.c (sh64_frame_chain): Delete call.
6840         * objfiles.h: Update comments.
6841         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6842         call.
6843         * frame.c (get_prev_frame): Delete call, update comments.
6844
6845 2004-04-30  Brian Ford  <[email protected]>
6846
6847         * MAINTAINERS (Write After Approval): Add myself.
6848
6849 2004-04-30  Andrew Cagney  <[email protected]>
6850
6851         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6852         * gdbarch.h, gdbarch.c: Re-generate.
6853         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6854         code.
6855
6856 2004-04-30  Andrew Cagney  <[email protected]>
6857
6858         * gdb-events.sh (selected_thread_changed)
6859         (selected_frame_level_changed, target_changed): Delete.
6860         * gdb-events.h, gdb-events.c: Re-generate.
6861         * valops.c (value_assign): Update.
6862         * stack.c (select_frame_command, up_silently_base)
6863         (down_silently_base): Update.
6864
6865 2004-04-29  Andrew Cagney  <[email protected]>
6866
6867         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6868         registers correctly.
6869         (print_gp_register_row, mips32_heuristic_proc_desc)
6870         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6871         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6872         references to mips_isa_regsize.
6873
6874 2004-04-29  Andrew Cagney  <[email protected]>
6875
6876         * mips-tdep.c (struct gdbarch_tdep): Delete
6877         mips_fp_register_double.
6878         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6879         mips_abi_regsize.
6880         (mips_gdbarch_init): Do not set mips_fp_register_double.
6881         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6882
6883 2004-04-29  Joel Brobecker  <[email protected]>
6884
6885         Committed by Andrew Cagney.
6886         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6887         function calls.
6888
6889 2004-04-29  Andrew Cagney  <[email protected]>
6890
6891         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6892         gdbarch, use mips_abi, update callers.
6893         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6894         mips_abi_regsize, update callers.
6895         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6896         mips_default_abi_regsize.
6897         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6898         mips_default_abi_regsize.
6899
6900 2004-04-29  Andrew Cagney  <[email protected]>
6901
6902         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6903         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6904         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6905         mips_default_abi_regsize.
6906         (mips_isa_regsize): Rename mips_regisze.
6907         * mipsnbsd-tdep.c: Update.
6908         * mips-linux-tdep.c: Update.
6909         * irix5-nat.c: Update.
6910         * mips-tdep.h (mips_isa_regsize): Update.
6911
6912         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6913         Delete all disabled code.
6914         * gdb-events.h, gdb-events.c: Re-generate.
6915         
6916 2004-04-19  Jerome Guitton  <[email protected]>
6917             Mark Kettenis  <[email protected]>
6918
6919         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6920         the function begins with a branch instruction.
6921
6922 2004-04-29  Mark Kettenis  <[email protected]>
6923
6924         * i386-tdep.c: Fix spelling mistakes.
6925
6926 2004-04-28  Rainer Orth  <[email protected]>
6927             Andrew Cagney  <[email protected]>
6928
6929         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6930         <sys/proc.h>.
6931         * acconfig.h: Provide default _KMEMUSER value.
6932         * config.in, configure: Re-generate.
6933         * NEWS: Mention fix.
6934
6935 2004-04-24  Randolph Chung  <[email protected]>
6936
6937         * configure.host (hppa*-*-linux*): New target.
6938         * configure.tgt (hppa*-*-linux*): Likewise.
6939         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6940         gdbarch_init_osabi() call earlier so that osabi-specific frame
6941         unwinders can be registered first.
6942         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6943         hppa-linux-nat.c.
6944         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6945         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6946         * config/pa/linux.mh: New file.
6947         * config/pa/linux.mt: New file.
6948         * config/pa/nm-linux.h: New file.
6949         * config/pa/xm-linux.h: New file.
6950         * hppa-linux-nat.c: New file.
6951         * hppa-linux-tdep.c: New file.
6952
6953 2004-04-28  Randolph Chung  <[email protected]>
6954
6955         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6956         return values.
6957         (hppa32_push_dummy_call): Fix small struct and floating point argument 
6958         passing, and make sure the stack frame is properly aligned.
6959
6960 2004-04-28  Andrew Cagney  <[email protected]>
6961
6962         * stack.c (print_stack_frame): Fix description.
6963
6964         * NEWS: Mention gdb/gdbserver/configure execute permission
6965         changed.  PR server/519.
6966
6967 2004-04-28  Andrew Cagney  <[email protected]>
6968
6969         * stack.c (print_stack_frame_stub): Delete declaration.
6970         (struct print_stack_frame_args, print_stack_frame)
6971         (print_frame_info, print_frame): Replace "source" with print what.
6972         Replace "print" with "print_level".  Replace "args" with
6973         "print_args".
6974         * frame.h (show_and_print_stack_frame, print_stack_frame)
6975         (print_frame_info): Update declarations.
6976         * stack.c (select_and_print_frame, frame_command)
6977         (current_frame_command, up_command, down_command): Update calls -
6978         use get_selected_frame, pass "enum print_what" for source, do not
6979         call frame_relative_level.
6980         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6981         * remote-rdp.c (remote_rdp_open): Ditto.
6982         * remote-mips.c (common_open): Ditto.
6983         * remote-e7000.c (e7000_start_remote): Ditto.
6984         * ocd.c (ocd_start_remote): Ditto.
6985         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6986         * infrun.c (normal_stop): Ditto.
6987         * inflow.c (kill_command): Ditto.
6988         * infcmd.c (finish_command): Ditto.
6989         * corelow.c (core_open): Ditto.
6990         * tracepoint.c (finish_tfind_command): Ditto.
6991         * thread.c (info_threads_command, info_threads_command) 
6992         (restore_current_thread, do_captured_thread_select): Ditto.
6993         * ada-tasks.c (task_command): Ditto.
6994
6995 2004-04-26  Orjan Friberg <[email protected]>
6996
6997         * frame.c: Include "observer.h".
6998         (frame_observer_target_changed): New function.
6999         (_initialize_frame): Attach target_changed observer.
7000         * regcache.c: Include "observer.h".
7001         (regcache_observer_target_changed): New function.
7002         (_initialize_regcache): Attach target_changed observer.
7003         * valops.c: Include "observer.h".
7004         (value_assign): Notify target_changed event when modifying register.
7005         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7006
7007 2004-04-26  Orjan Friberg <[email protected]>
7008
7009         From Paul Koning <[email protected]>:
7010         * breakpoint.c (free_valchain): New function.
7011         (insert_bp_location, delete_breakpoint): Use free_valchain.
7012         (remove_breakpoint): Do not remove the valchain.
7013         (bpstat_stop_status): If not stopped by watchpoint, skip
7014         watchpoints when generating stop status list.
7015         * infrun.c (handle_inferior_event): Make
7016         stepped_after_stopped_by_watchpoint a global variable.
7017         * remote.c (remote_stopped_data_address): Return watch data
7018         address rather than zero if stepped_after_stopped_by_watchpoint is
7019         set.
7020
7021 2004-04-25  Michael Chastain  <[email protected]>
7022
7023         Fix PR gdb/1626.
7024         * configure.in: Check for curses after termcap.
7025         On osf5.*, do not check for ncurses.
7026         * configure: Regenerate.
7027
7028 2004-04-25  Mark Kettenis  <[email protected]>
7029
7030         * ppcobsd-nat.c: Include "ppc-tdep.h".
7031         * Makefile.in (ppcobsd-nat.o): Update dependencies.
7032
7033         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7034         Fixes PR tdep/1623 and PR tdep/1624.
7035
7036 2004-04-24  Michael Chastain  <[email protected]>
7037
7038         * xmodem.h, xmodem.c: Remove files.
7039         * Makefile.in: Remove references to xmodem.h, xmodem.c.
7040
7041 2004-04-23  Randolph Chung  <[email protected]>
7042
7043         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7044         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7045         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7046         for handling stackless frames.
7047         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
7048
7049 2004-04-23  Randolph Chung  <[email protected]>
7050
7051         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7052         starts at a pc before the frame is created.
7053
7054 2004-04-23  Joel Brobecker  <[email protected]>
7055
7056         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7057
7058 2004-04-23  Jerome Guitton  <[email protected]>
7059
7060         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7061         use convert_typed_floating to get the appropriate format.
7062
7063 2004-04-22  Randolph Chung  <[email protected]>
7064
7065         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7066         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7067         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7068         (hppa_sign_extend): Add prototype.
7069         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7070         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7071         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
7072         hppa targets will also use these functions.
7073         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7074         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7075         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7076         (hppa_gdbarch_init): Remove gdbarch setting of 
7077         skip_trampoline_code, in_solib_call_trampoline and
7078         in_solib_return_trampoline.
7079         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7080         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7081         hppa_in_solib_call_trampoline.
7082         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7083         Moved from hppa-tdep.c.
7084         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
7085         in_solib_call_trampoline and in_solib_return_trampoline.
7086
7087 2004-04-22  Randolph Chung  <[email protected]>
7088
7089         * hppa-tdep.c (hppa_debug): New variable.
7090         (find_unwind_entry, hppa_frame_cache): Add debug output.
7091         (_initialize_hppa_tdep): Add command to set debug flag.
7092
7093 2004-04-22  Andrew Cagney  <[email protected]>
7094
7095         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
7096         "trad-frame.h".
7097         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7098         signal trampoline unwinder.
7099         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7100
7101 2004-04-22  Mark Kettenis  <[email protected]>
7102
7103         Add OpenBSD/powerpc support.
7104         * NEWS (New native configurations): Mention OpenBSD/powerpc.
7105         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7106         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7107         (ppc_collect_fpregset): New prototypes.
7108         * ppcobsd-nat.c: New file.
7109         * ppcobsd-tdep.c: New file.
7110         * ppcobsd-tdep.h: New file.
7111         * rs6000-tdep.c: Include "regset.h".
7112         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7113         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7114         New functions.
7115         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7116         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7117         (rs6000-tdep.o): Update dependencies.
7118         * configure.host: Add powerpc-*-openbsd.
7119         * configure.tgt: Add powerpc-*-openbsd.
7120         * config/powerpc/obsd.mh: New file.
7121         * config/powerpc/nm-obsd.h: New file.
7122         * config/powerpc/obsd.mt: New file.
7123
7124 2004-04-22  Andrew Cagney  <[email protected]>
7125
7126         * frame.h (show_frame_info): Delete declaration.
7127
7128         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7129         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7130         * m32r-tdep.c (m32r_frame_this_id): Ditto.
7131         * frv-tdep.c (frv_frame_this_id): Ditto.
7132         * avr-tdep.c (avr_frame_this_id): Ditto.
7133
7134 2004-04-22  Elena Zannoni  <[email protected]>
7135
7136         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7137
7138 2004-04-22  Jim Blandy  <[email protected]>
7139
7140         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7141         register number zero.
7142
7143 2004-04-21  Michael Snyder  <[email protected]>
7144
7145         * mips-tdep.c (heuristic_proc_start): 
7146         Warning() already prefixes "Warning: ".
7147
7148 2004-04-21  Andrew Cagney  <[email protected]>
7149
7150         * annotate.h (deprecated_annotate_starting_hook)
7151         (deprecated_annotate_stopped_hook)
7152         (deprecated_annotate_exited_hook)
7153         (deprecated_annotate_signal_hook)
7154         (deprecated_annotate_signalled_hook): Deprecate.
7155         * tracepoint.h (deprecated_create_tracepoint_hook)
7156         (deprecated_delete_tracepoint_hook)
7157         (deprecated_modify_tracepoint_hook)
7158         (deprecated_trace_find_hook)
7159         (deprecated_trace_start_stop_hook): Deprecate.
7160         * target.h (deprecated_target_new_objfile_hook): Deprecate.
7161         * remote.h (deprecated_target_resume_hook)
7162         (deprecated_target_wait_loop_hook): Deprecate.
7163         * gdbcore.h (deprecated_exec_file_display_hook)
7164         (deprecated_file_changed_hook): Deprecate.
7165         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7166         * defs.h (deprecated_modify_breakpoint_hook)
7167         (deprecated_command_loop_hook, deprecated_show_load_progress)
7168         (deprecated_print_frame_info_listing_hook)
7169         (deprecated_query_hook, deprecated_warning_hook)
7170         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7171         (deprecated_delete_breakpoint_hook)
7172         (deprecated_interactive_hook, deprecated_registers_changed_hook)
7173         (deprecated_readline_begin_hook, deprecated_readline_hook)
7174         (deprecated_readline_end_hook, deprecated_register_changed_hook)
7175         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7176         (deprecated_context_hook, deprecated_target_wait_hook)
7177         (deprecated_attach_hook, deprecated_detach_hook)
7178         (deprecated_call_command_hook, deprecated_set_hook)
7179         (deprecated_error_hook, deprecated_error_begin_hook)
7180         (deprecated_ui_load_progress_hook): Deprecate.
7181         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7182         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7183         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7184         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7185         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7186         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7187         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7188         * annotate.c, aix-thread.c: Update.
7189
7190 2004-04-21  Andrew Cagney  <[email protected]>
7191
7192         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7193         * vaxnbsd-tdep.c: Include "gdb_string.h".
7194
7195         * symfile.c (symbol_file_add_from_memory): #if 0 function.
7196         (add_symbol_file_from_memory_command): #if 0 function body, call
7197         error instead.
7198
7199 2004-04-21  Andrew Cagney  <[email protected]>
7200
7201         * gdbcore.h: Update copyright.
7202         (deprecated_add_core_fns): Rename add_core_fns.
7203         * win32-nat.c (_initialize_core_win32): Update.
7204         * sun3-nat.c (_initialize_core_sun3): Update.
7205         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7206         * rs6000-nat.c (_initialize_core_rs6000): Update.
7207         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7208         * nto-tdep.c (_initialize_nto_tdep): Update.
7209         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7210         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7211         * mips-nat.c (_initialize_core_mips): Update.
7212         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7213         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7214         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7215         * lynx-nat.c (_initialize_core_lynx): Update.
7216         * irix5-nat.c (_initialize_core_irix5): Update.
7217         * i386-interix-nat.c (_initialize_core_interix): Update.
7218         * cris-tdep.c (_initialize_cris_tdep): Update.
7219         * corelow.c (deprecated_add_core_fns): Update.
7220         * core-regset.c (_initialize_core_regset): Update.
7221         * core-aout.c (_initialize_core_aout): Update.
7222         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7223         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7224         * alpha-nat.c (_initialize_core_alpha): Update.
7225
7226 2004-04-21  Jim Blandy  <[email protected]>
7227
7228         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7229
7230 2004-04-19  Daniel Jacobowitz  <[email protected]>
7231
7232         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7233         Delete.
7234         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
7235         (read_attribute_value): Update calls to dwarf_alloc_block.
7236         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7237         dwarf2_tmp_obstack.
7238         (psymtab_to_symtab_1): Likewise.  Clean up using
7239         free_stack_comp_unit.
7240         (add_to_cu_func_list): Use the comp_unit_obstack.
7241
7242 2004-04-19  Joel Brobecker  <[email protected]>
7243
7244         * dwarf2read.c (dwarf2_flag_true_p): New function.
7245         (die_is_declaration): Use the function above. Add some comments.
7246
7247 2004-04-19  Mark Kettenis  <[email protected]>
7248
7249         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7250         architecture when registering sparcnbsd_core_osabi_sniffer.
7251         Adjust comment.
7252
7253 2004-04-18  Mark Kettenis  <[email protected]>
7254
7255         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7256         return value.
7257
7258         Based on a patch from Brian Ford <[email protected]>:
7259         * i386-tdep.c: Correct register numbering scheme comments
7260         throughout.
7261         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7262         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7263         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7264         (i386_gdb_arch_init): Likewise.
7265
7266         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7267         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7268         ppcnbsd-tdep.o.
7269
7270         * m68k-tdep.h: Tweak comments.
7271         * m68k-tdep.c: Tweak comment.
7272
7273 2004-04-17  Randolph Chung  <[email protected]>
7274
7275         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7276         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7277         (hppa_hpux_som_init_abi): Set is_elf to 0.
7278         (hppa_hpux_elf_init_abi): Set is_elf to 1.
7279         * hppa-tdep.c (low_text_segment_address): Remove global.
7280         (record_text_segment_lowaddr): Pass in low address as parameter. Use
7281         section offset to calculate segment address.
7282         (internalize_unwinds): Define low_text_segment_address as local and
7283         pass to record_text_segment_lowaddr for ELF targets.
7284         (hppa_gdbarch_init): Zero fill tdep structure.
7285         (hppa_dump_tdep): Print tdep structure.
7286         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7287
7288 2004-04-17  Randolph Chung  <[email protected]>
7289
7290         * hppa-tdep.c (hppa_pseudo_register_read): Define.
7291         (hppa_gdbarch_init): Set pseudo_register_read.
7292         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7293         * regcache.c (supply_register): Remove check for
7294         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7295
7296 2004-04-17  Randolph Chung  <[email protected]>
7297
7298         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7299         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7300         (hpread_adjust_stack_address): Move to hpread.c.
7301         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7302         obj_private_struct): Move from tm-hppa.h.
7303         * hpread.c (hppa-tdep.h): Include.
7304         (hpread_adjust_stack_address): Move from hppa-tdep.c.
7305         (hpread_read_function_type, hpread_read_doc_function_type)
7306         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
7307         directly.
7308         * pa64solib.c (hppa-tdep.h): Include.
7309         * somsolib.c (hppa-tdep.h): Include.
7310         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7311         inferior_status): Remove unused forward declarations.
7312         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7313         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
7314         obj_private_struct): Move to hppa-tdep.h.
7315         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7316
7317 2004-04-17  Randolph Chung  <[email protected]>
7318
7319         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7320         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7321         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7322         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7323         Remove forward declaration and make static.
7324         (hppa_reg_struct_has_addr): Remove.
7325
7326 2004-04-16  Joel Brobecker  <[email protected]>
7327
7328         * observer.sh: Move comments in sed command to first column.
7329
7330 2004-04-16  Jason Molenda  ([email protected])
7331
7332         * frame.c: Minor typeo corrections in comments.
7333
7334 2004-04-16  Joel Brobecker  <[email protected]>
7335
7336         * observer.c (observer_test_first_notification_function): Update
7337         function profile.
7338         (observer_test_second_notification_function): Likewise.
7339         (observer_test_third_notification_function): Likewise.
7340
7341 2004-04-16  Mark Kettenis  <[email protected]>
7342
7343         From Brian Ford <[email protected]>:
7344         * i386-tdep.c (i386_coff_init_abi): New function.
7345         * i386-tdep.h (i386_coff_init_abi): New prototype.      
7346         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
7347         register number translation functions for DWARF and DWARF 2.
7348
7349 2004-04-16  Joel Brobecker  <[email protected]>
7350
7351         * dwarf2read.c: Back out my previous change, it was incorrect.
7352
7353 2004-04-16  Daniel Jacobowitz  <[email protected]>
7354
7355         * dwarf2read.c: Include "hashtab.h".
7356         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7357         has_namespace_info.
7358         (struct partial_die_info): Add comments.  Use bitfields to reduce
7359         memory footprint.  Add scope, scope_set, has_specification,
7360         spec_offset, die_parent, die_child, and die_sibling.
7361         (peek_die_abbrev): Add prototype.
7362         (partial_read_comp_unit_head): New function, broken out from
7363         dwarf2_build_psymtabs_hard.
7364         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7365         Use partial_read_comp_unit_head.  Initialize the CU and
7366         comp_unit_obstack.  Update calls to read_partial_die and
7367         scan_partial_symbols.  Use free_stack_comp_unit and
7368         load_partial_dies.
7369         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
7370         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
7371         Update calls to helper functions.  Remove NAMESPACE argument.
7372         Update comments.
7373         (partial_die_parent_scope, partial_die_full_name): New functions.
7374         (add_partial_symbol): Remove namespace argument.  Update call to
7375         pdi_needs_namespace.  Use partial_die_full_name.  Handle
7376         DW_TAG_namespace.  Check has_namespace_info flag.
7377         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
7378         tag.  Handle namespaces.
7379         (add_partial_namespace, add_partial_enumeration): Simplify.
7380         (guess_structure_name): New function, derived from
7381         add_partial_structure.
7382         (add_partial_structure): Remove.
7383         (determine_class_name): Update comment.
7384         (dwarf2_read_abbrevs): Set has_namespace_info flag.
7385         (is_type_tag_for_partial, load_partial_dies): New functions.
7386         (read_partial_die): Pass abbrev and abbrev_len as arguments.
7387         Record specifications instead of following them immediately.
7388         (find_partial_die_in_comp_unit, find_partial_die)
7389         (fixup_partial_die, free_stack_comp_unit)
7390         (hashtab_obstack_allocate, dummy_obstack_deallocate)
7391         (partial_die_hash, partial_die_eq): New functions.
7392         * Makefile.in (hashtab_h): Define.
7393         (dwarf2read.o): Update dependencies.
7394         (observer_inc, observer_h): Move to the correct section.
7395
7396 2004-04-15  Joel Brobecker  <[email protected]>
7397
7398         * dwarf2read.c (dwarf2_attribute_true_p): New function.
7399         (die_is_declaration): Use the function above. Add comment.
7400
7401 2004-04-15  Joel Brobecker  <[email protected]>
7402
7403         * dwarf2read.c (read_structure_scope): Identify stub types
7404         using die_is_declaration() only.
7405
7406 2004-04-15  Roland McGrath  <[email protected]>
7407
7408         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7409         argument instead of NAME.
7410         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7411         in call to symbol_file_add_with_addrs_or_offsets.
7412         (build_addr_info): New function, helper for ...
7413         (symbol_file_add_from_memory): New function.
7414         (add_symbol_file_from_memory_command): New function using that.
7415         (_initialize_symfile): Register it for add-symbol-file-from-memory.
7416         (pre_add_symbol_hook): Add const to argument type.
7417         * symfile.h (symbol_file_add_from_memory): Declare it.
7418
7419 2004-04-15  Mark Kettenis  <[email protected]>
7420
7421         * NEWS (New native configurations): Mention OpenBSD/vax.
7422         * configure.host: Add vax-*-openbsd*.
7423         * config/vax/obsd.mh: New file.
7424         * config/vax/nm-obsd.h: New file.
7425
7426         * vax-tdep.c: Include "regset.h".
7427         (vax_supply_gregset): New function.
7428         (vax_gregset): New variable.
7429         (vax_regset_from_core_section): New function.
7430         (vax_gdbarch_init): Set regset_from_core_section.
7431         * Makefile.in (vax-tdep.o): Update dependencies.
7432
7433 2004-04-15  Andrew Cagney  <[email protected]>
7434
7435         * observer.c (normal_stop_subject, observer_notify_normal_stop)
7436         (observer_normal_stop_notification_stub)
7437         (observer_attach_normal_stop, observer_detach_normal_stop):
7438         Delete, replaced by #include "observer.inc".
7439         * infrun.c (normal_stop): Pass "stop_bpstat" to
7440         observer_notify_normal_stop.
7441         * Makefile.in (observer_inc): Define.
7442         (observer.o): Update dependencies.
7443         (observer.h, observer.inc): New rules.
7444         * observer.h: Delete file.
7445         * observer.sh: New file.
7446
7447 2004-04-15  Mark Kettenis  <[email protected]>
7448
7449         * vax-tdep.c (vax_frame_cache): Fix typo.
7450
7451 2004-04-14  Mark Kettenis  <[email protected]>
7452
7453         * NEWS (New native configurations): Mention NetBSD/vax.
7454         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7455         * config/vax/nbsdelf.mh: New file.
7456         * config/vax/nbsdaout.mh: New file.
7457         * config/vax/nm-nbsd.h: New file.
7458         * config/vax/nm-nbsdaout.h: New file.
7459
7460         * vaxnbsd-tdep.c: New file.
7461         * Makefile.in (vaxnbsd-tdep.o): New dependency.
7462         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7463         * config/vax/nbsd.mt: New file.
7464         * config/vax/tm-nbsd.h: New file.
7465
7466         * Makefile.in (vaxbsd-nat.o): New dependency.
7467
7468         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7469         * vax-tdep.c (vax_store_arguments): Remove struct_return and
7470         struct_addr arguments.  Don't push return value address.
7471         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7472         arguments to vax_store_arguments.  Store return value address in
7473         R1.
7474         (vax_store_struct_return, vax_extract_return_value)
7475         (vax_store_return_value): Remove functions.
7476         (vax_return_value): New function.
7477         (vax_gdbarch_init): Set return value.  Don't set
7478         deprecated_store_struct_return, deprecated_extract_struct_return
7479         and deprecated_store_return_value.
7480
7481 2004-04-14  Andreas Schwab  <[email protected]>
7482
7483         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7484         value buffer.
7485         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7486
7487 2004-04-14  Mark Kettenis  <[email protected]>
7488
7489         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7490         (vax_unwind_dummy_id): New functions.
7491         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7492         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7493         variables.
7494         (vax_fix_call_dummy): Remove function.
7495         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7496         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7497         call_dummy_location, deprecated_call_dummy_words,
7498         deprecated_sizeof_call_dummy_words,
7499         deprecated_call_dummy_breakpoint_offset,
7500         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7501         and deprecated_dummy_write_sp.
7502
7503 2004-04-13  David Carlton  <[email protected]>
7504
7505         * MAINTAINERS: Move myself to "paper trail" section.
7506
7507 2004-04-12  Mark Kettenis  <[email protected]>
7508
7509         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7510         "trad-frame.h".
7511         (vax_frame_init_saved_regs): Remove function.
7512         (vax_sigtramp_saved_pc): Remove function.
7513         (vax_frame_saved_pc): Remove function.
7514         (vax_frame_args_address): Remove function.
7515         (vax_frame_num_args): Rewrite.
7516         (vax_frame_chain): Remove function.
7517         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7518         VAX_FP_REGNUM.
7519         (vax_pop_frame): Likewise.
7520         (vax_saved_pc_after_call): Remove function.
7521         (struct vax_frame_cache): New structure.
7522         (vax_frame_cache): New function.
7523         (vax_frame_this_id): New function.
7524         (vax_frame_prev_register): New function.
7525         (vax_frame_unwind): New variable.
7526         (vax_frame_sniffer): New function.
7527         (vax_frame_base_address): New function.
7528         (vax_frame_args_address): New function.
7529         (vax_frame_base): New variable.
7530         (vax_unwind_pc): New function.
7531         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7532         deprecated_fp_regnum, deprecated_saved_pc_after_call,
7533         deprecated_frame_chain, deprecated_frame_saved_pc,
7534         deprecated_frame_args_address and
7535         deprecated_frame_init_saved_regs.
7536         * Makefile.in (vax-tdep.o): Update dependencies.
7537
7538         * vaxbsd-nat.c: New file.
7539
7540         * vax-tdep.h: Update copyright year.  Adjust comments.
7541         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7542         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7543         (vax_regnum): New enum.  Replacing...
7544         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7545         (VAX_PS_REGNUM): ... these removed macros.
7546         * vax-tdep.c (vax_register_name): Remove prototype.
7547         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
7548         (vax_register_byte, vax_register_raw_size,
7549         vax_register_virtual_size, vax_register_virtual_type): Remove
7550         functions.
7551         (vax_register_type): New function.
7552         (vax_breakpoint_from_pc): Reorganize.
7553         (vax_gdbarch_init): Set register_type.  Don't set
7554         deprecated_register_size, deprecated_register_bytes,
7555         deprecated_register_byte, deprecated_register_raw_size,
7556         deprecated_max_register_raw_size,
7557         deprecated_register_virtual_size,
7558         deprecated_max_register_virtual_size and
7559         deprecated_register_virtual_type.  Add comment on stack direction.
7560
7561 2004-04-11  Mark Kettenis  <[email protected]>
7562
7563         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7564         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7565         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7566
7567 2004-04-10  Randolph Chung  <[email protected]>
7568
7569         * MAINTAINERS (write after approval): Add myself.
7570
7571 2004-04-07  Randolph Chung  <[email protected]>
7572
7573         * hppa-tdep.c (hppa_inner_than): Remove.
7574         (is_pa_2): Remove unused static variable.
7575         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7576
7577 2004-03-10  Paul N. Hilfinger  <[email protected]>
7578
7579         * language.h (language_defn): Add new la_post_parser field.
7580         * parser-defs.h (null_post_parser): New declaration (default for
7581         la_post_parser).
7582
7583         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7584         insert call to that function.
7585         (parse_exp_in_context): New function, including code formerly in
7586         parse_exp_1.  Calls language-dependent post-parser after
7587         prefixification.
7588         (parse_expression_in_context): New exported function.
7589         (null_post_parser): New definition.
7590         * expression.h (parse_expression_in_context): Add declaration.
7591
7592         * p-lang.c (pascal_language_defn): Add trivial post-parser.
7593         * c-lang.c (c_language_defn): Ditto.
7594         (cplus_language_defn): Ditto.
7595         (asm_language_defn): Ditto.
7596         (minimal_language_defn): Ditto.
7597         * f-lang.c (f_language_defn): Ditto.
7598         * jv-lang.c (java_language_defn): Ditto.
7599         * language.c (unknown_language_defn): Ditto.
7600         (auto_language_defn): Ditto.
7601         (local_language_defn): Ditto.
7602         * m2-lang.c (m2_language_defn): Ditto.
7603         * scm-lang.c (scm_language_defn): Ditto.
7604         * obj-lang.c (objc_language_defn): Ditto.
7605
7606 2004-04-10  Mark Kettenis  <[email protected]>
7607
7608         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7609         (amd64nbsd_mcontext_addr): New function.
7610         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7611         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
7612         with amd64nbsd_r_reg_offset, instead of building it on the fly.
7613
7614         * corelow.c (core_xfer_partial): Fix coding standards violation.
7615         Add support for TARGET_OBJECT_WCOOKIE.
7616
7617         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7618         deprecated_pc_in_sigtramp.
7619         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7620         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7621         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7622         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7623         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7624         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7625         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7626
7627         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7628         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7629         Fix typo.
7630
7631         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7632         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7633         (amd64_collect_fxsave): Likewise.
7634
7635         * i386-sol2-tdep.c: Include "gdb_string.h".
7636         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7637         name.
7638         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7639
7640 2004-04-10  Mark Kettenis  <[email protected]>
7641
7642         * i386-sol2-tdep.c: Include "solib-svr4.h".
7643         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7644         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7645         * config/i386/tm-i386sol2.h: Include :solib.h".
7646         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7647         solib-svr4.o and solib-legacy.o.
7648         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7649         solib-svr4.o.
7650
7651 2004-04-09  Mark Kettenis  <[email protected]>
7652
7653         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7654         whether a register is supplied by PTRACE_GETFPREGS.
7655         (store_inferior_registers): Likewise.
7656         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7657         whether a register is supplied by PT_GETFPREGS.
7658         (store_inferior_registers): Likewise.
7659
7660         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7661         * config/i386/linux64.mt (TDEPFILES): Likewise.
7662
7663         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
7664
7665         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7666         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7667         the program counter is in the range specified by `struct
7668         gdbarch_tdep'.
7669         * amd64-linux-tdep.c: Include "symtab.h".
7670         (amd64_linux_pc_in_sigtramp): Remove function.
7671         (amd64_linux_sigtramp_p): New function.
7672         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7673         deprecated_pc_in_sigtramp.
7674         * amd64nbsd-tdep.c: Include "symtab.h".
7675         (amd64nbsd_sigtramp_p): New function.
7676         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7677         deprecated_pc_in_sigtramp.
7678         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
7679         few comments.
7680         (amd64obsd_pc_in_sigtramp): Remove function.
7681         (amd64obsd_sigtramp_p): New function.
7682         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7683         deprecated_pc_in_sigtramp.
7684         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7685         (i386bsd_pc_ins_sigtramp): Remove prototype.
7686         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7687         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7688         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7689         the program counter is in the range specified by `struct
7690         gdbarch_tdep'.
7691         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7692         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7693         (i386_go32_pc_in_sigtramp): Remove function.
7694         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7695         Initialize TDEP->sigtramp_p.
7696         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7697         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
7698         deprecated_pc_in_sigtramp.
7699         * i386-linux-tdep.c: Adjust comments.
7700         (i386_linux_pc_in_sigtramp): Remove function.
7701         (i386_linux_sigtramp_p): New function.
7702         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7703         deprecated_pc_in_sigtramp.
7704         * i386-nto-tdep.c: Update copyright year.
7705         (i386nto_pc_in_sigtramp): Remove function.
7706         (i386nto_sigtramp_p): New function.
7707         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7708         SP_REGNUM.
7709         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7710         deprecated_pc_in_sigtramp.
7711         * i386-sol2-tdep.c: Update copyright year.
7712         (i386_sol2_pc_in_sigtramp): Remove function.
7713         (i386_sol2_sigtramp_p): New function.
7714         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7715         deprecated_pc_in_sigtramp.
7716         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7717         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7718         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7719         deprecated_sigtramp_start and deprecated_sigtramp_end.
7720         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7721         (i386nbsd_pc_in_sigtramp): Remove function.
7722         (i386nbsd_sigtramp_p): New function.
7723         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7724         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7725         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7726         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7727         (i386obsd_pc_in_sigtramp): Remove function.
7728         (i386obsd_sigtramp_p): New function.
7729         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7730         functions.
7731         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7732         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7733         TDEP->sigtramp_p.
7734         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7735         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7736         dependencies.
7737
7738         * config/i386/i386aout.mt: Remove file.
7739
7740         * configure.tgt: Remove i[34567]86-*-go32*,
7741         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7742         and i[34567]86-*-isc*.  Set gdb_target to i386 for
7743         i[34567]86-*-netware* and i[34567]86-*-*.
7744         * config/i386/i386.mt: New file.
7745         * config/i386/embed.mt: Remove file.
7746         * config/i386/go32.mt: Remove file.
7747         * config/i386/i386nw.mt: Remove file.
7748         * config/i386/i386v.mt: Remove file.
7749         * config/i386/tm-go32.h: Remove file.
7750
7751         * tui/tui-hooks.c: Include "readline/readline.h" after
7752         "gdb_curses.h" instead of before.
7753         * tui/tui-io.c: Likewise.
7754
7755         * tui/tui.c: Fix typo in comment.
7756
7757         * sparc64-tdep.c (sparc_address_from_register): Remove function.
7758
7759 2004-04-08  Andrew Cagney  <[email protected]>
7760
7761         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7762         (deprecated_exception_support_initialized): Declare.
7763         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7764         (initialize_hp_cxx_exception_support)
7765         (child_enable_exception_callback): Update.
7766         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7767         (deprecated_exception_support_initialized): Rename
7768         deprecated_exception_catchpoints_are_fragile and
7769         deprecated_exception_support_initialized.
7770         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7771
7772         * symtab.c (deprecated_hp_som_som_object_present): Rename
7773         hp_som_som_object_present.
7774         * symtab.h (deprecated_hp_som_som_object_present): Declare.
7775         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7776         Update.  Delete extern declaration.
7777         * valops.c (hp_som_som_object_present): Ditto.
7778         * parse.c (deprecated_hp_som_som_object_present)
7779         (parse_nested_classes_for_hpacc): Ditto.
7780         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7781         * hppa-hpux-tdep.c (hp_som_som_object_present)
7782         (initialize_hp_cxx_exception_support): Ditto.
7783         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7784         * cp-valprint.c (hp_som_som_object_present)
7785         (cp_print_class_method): Ditto.
7786         * c-typeprint.c (hp_som_som_object_present):
7787         (c_type_print_base): Ditto.
7788         * c-exp.y (hp_som_som_object_present): Ditto.
7789
7790 2004-04-08  Andrew Cagney  <[email protected]>
7791
7792         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7793         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7794         (frame_unwind_find_by_frame): Re-implement the unwind code so
7795         that it can both prepend and append sniffers.  Replace
7796         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7797         * tramp-frame.c (tramp_frame_append): Use
7798         frame_unwind_prepend_unwinder.
7799         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7800         frame_unwind_register_unwinder.
7801         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7802         tramp_frame_append.
7803         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7804         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7805         (mips_linux_init_abi): Update.
7806
7807 2004-04-08  Kevin Buettner  <[email protected]>
7808
7809         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7810         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
7811         file support.
7812
7813 2004-04-07  Kevin Buettner  <[email protected]>
7814
7815         * ia64-tdep.c (elf.h): Don't include.
7816         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7817
7818 2004-04-07  Jason Molenda  ([email protected])
7819
7820         * frame.h: Typeo corrections in comments.
7821
7822 2004-04-07  Jim Blandy  <[email protected]>
7823
7824         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7825         %esp and %ebp
7826
7827 2004-04-07  Mark Kettenis  <[email protected]>
7828
7829         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7830         * config/sparc/linux64.mt (TDEPFILES): Likewise.
7831         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7832         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7833         and solib-legacy.o.
7834         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7835         solib-svr4.o.
7836         * config/sparc/tm-sol2.h: Update copyright year.  Include
7837         "solib.h".
7838
7839         * sparc-sol2-tdep.c: Update copyright year.  Include
7840         "solib-svr4.h".
7841         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7842         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7843         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7844         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7845         dependencies.
7846
7847 2004-04-06  Andrew Cagney  <[email protected]>
7848
7849         * infttrace.c: Include "infttrace.h".
7850         * infttrace.h: Include "target.h".
7851         * Makefile.in (infttrace_h): Update.
7852         (infttrace.o): Update.
7853
7854 2004-04-06  Andrew Cagney  <[email protected]>
7855
7856         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7857         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7858         move extern declarations from here ...
7859         * infttrace.h: ... to here.
7860         * Makefile.in (hppah-nat.o): Update dependencies.
7861
7862         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7863         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7864         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7865         (hppa_breakpoint_from_pc): Delete.
7866
7867         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7868
7869 2004-04-05  Andrew Cagney  <[email protected]>
7870
7871         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7872         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7873         <sys/file.h>.
7874
7875 2004-04-06  Randolph Chung  <[email protected]>
7876
7877         Committed by Andrew Cagney (mechanical change).
7878         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7879         exception_catchpoints_are_fragile, find_stub_with_shl_get,
7880         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7881         child_enable_exception_callback, current_ex_event,
7882         null_symtab_and_line, child_get_current_exception_event,
7883         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7884         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7885         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7886         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7887         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7888         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7889         Move hpux-specific definitions ...
7890         * hppa-hpux-tdep.c: ... to here.
7891
7892 2004-04-05  Andrew Cagney  <[email protected]>
7893
7894         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7895         skip_prologue_using_sal.
7896
7897 2004-04-05  Andrew Cagney  <[email protected]>
7898
7899         * config/i386/tm-i386.h: Delete file.
7900         * config/i386/tm-vxworks.h: Update copyright, do not include
7901         "tm-i386.h".
7902         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7903         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7904         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7905         * config/i386/ncr3000.mt (TM_FILE): Delete.
7906         * config/i386/interix.mt (TM_FILE): Delete.
7907         * config/i386/i386v.mt (TM_FILE): Delete.
7908         * config/i386/i386nw.mt (TM_FILE): Delete.
7909         * config/i386/i386gnu.mt (TM_FILE): Delete.
7910         * config/i386/i386aout.mt (TM_FILE): Delete.
7911         * config/i386/embed.mt (TM_FILE): Delete.
7912
7913 2004-04-05  Kevin Buettner  <[email protected]>
7914
7915         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7916         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7917         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7918         (accg7_regnum): New constants.
7919         (last_spr_regnum, last_pseudo_regnum): Update.
7920         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7921         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7922         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7923         for accg registers.
7924         (frv_register_sim_regno): Update spr_map[].
7925
7926 2004-04-04  Andrew Cagney  <[email protected]>
7927
7928         * config/mips/xm-riscos.h: Delete.
7929         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7930         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7931         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7932         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7933         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7934         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7935         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7936         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7937         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7938         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7939         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7940         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7941         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7942         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7943         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7944         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7945         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7946         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7947         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7948         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7949         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7950         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7951         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7952         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7953         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7954         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7955
7956         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7957         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7958         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7959         * configure.host: Remove m680[01]0-sun-sunos3*,
7960         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7961         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7962         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7963         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7964         mips-*-riscos*.
7965         * NEWS: Mention removed systems.
7966
7967 2004-04-04  Andrew Cagney  <[email protected]>
7968
7969         GDB 6.1 release created from 6.1 branch.
7970
7971 2004-04-04  Andrew Cagney  <[email protected]>
7972
7973         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7974         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7975         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7976
7977         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7978         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7979         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7980
7981 2004-04-03  Jim Blandy  <[email protected]>
7982
7983         * MAINTAINERS: Chris Faylor has changed employers; add him to
7984         "paper trail" section, and update his E-mail address.
7985
7986 2004-04-03  Andrew Cagney  <[email protected]>
7987
7988         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7989         generic dummy frames.
7990         * dummy-frame.c: Update copyright.
7991         (dummy_frame_sniffer): Delete check for generic dummy frames.
7992
7993         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7994         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7995         (REG_PARM_STACK_SPACE): Delete.
7996         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7997         Inline reference to REG_PARM_STACK_SPACE.
7998
7999         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8000         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8001         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8002         (FRAME_BASE_BEFORE_SIGTRAMP)
8003         (hppa32_hpux_frame_base_before_sigtramp)
8004         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8005         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8006         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8007         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8008         (FRAME_BASE_BEFORE_SIGTRAMP)
8009         (hppa64_hpux_frame_base_before_sigtramp)
8010         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8011
8012 2004-04-03  Andrew Cagney  <[email protected]>
8013
8014         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8015
8016 2004-04-02  Andrew Cagney  <[email protected]>
8017
8018         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8019         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8020         * dummy-frame.h: Delete out-of-date comments.
8021         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8022         * gdbarch.h, gdbarch.c: Re-generate.
8023
8024 2004-04-02  Joel Brobecker  <[email protected]>
8025
8026         Committed by Andrew Cagney <[email protected]>.
8027         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8028         into account an instruction saving a register if we have already
8029         seen an earlier instruction saving that same register.
8030
8031 2004-04-02  Andrew Cagney  <[email protected]>
8032
8033         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8034         * gdbarch.h, gdbarch.c: Re-generate.
8035         * frame.c (legacy_get_prev_frame): Delete references to
8036         DEPRECATED_INIT_FRAME_PC_FIRST.
8037
8038         * infrun.c (pc_in_sigtramp): Delete function.
8039         (check_sigtramp2): Inline call to pc_in_sigtramp, use
8040         get_frame_type.
8041
8042 2004-04-02  Andrew Cagney  <[email protected]>
8043
8044         * infrun.c (handle_step_into_function): Delete code conditional on
8045         legacy_frame_p.
8046         (handle_inferior_event, step_over_function): Ditto.
8047
8048 2004-04-02  Andrew Cagney  <[email protected]>
8049
8050         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8051         "previous frame inner to this frame" test.
8052
8053 2004-04-02  Andrew Cagney  <[email protected]>
8054
8055         * frame.c (safe_frame_unwind_memory): New function.
8056         * frame.h (safe_frame_unwind_memory): Declare.  Update description
8057         of /safe_/ methods.
8058         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8059         "next_frame".  Use safe_frame_unwind_memory.
8060         (tramp_frame_sniffer): Update call to tramp_frame_start.
8061
8062 2004-04-01  Daniel Jacobowitz  <[email protected]>
8063
8064         * dwarf2read.c (dwarf2_objfile_data_key): New.
8065         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8066         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8067         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8068         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8069         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8070         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8071         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8072         Remove variables.
8073         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
8074         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8075         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8076         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8077         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8078         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8079         Remove macros.
8080         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
8081         data.
8082         (dwarf2_locate_sections, dwarf2_build_psymtabs)
8083         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8084         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8085         (read_partial_die, read_full_die, read_indirect_string)
8086         (dwarf_decode_line_header, dwarf_decode_macros)
8087         (dwarf2_symbol_mark_computed): Remove use of removed macros.
8088         Update uses of removed variables.
8089         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
8090         of removed macros.
8091         (_initialize_dwarf2_read): New function.
8092         * symfile.h (dwarf2_has_info): Update prototype.
8093         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8094         * elfread.c (elf_symfile_read): Likewise.
8095
8096 2004-04-01  Jim Blandy  <[email protected]>
8097
8098         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8099         function for register numbers on all the rs6000-derived targets.
8100         (rs6000_gdbarch_init): Don't register a separate
8101         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
8102         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8103         variants.
8104
8105         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8106         numbering.
8107
8108 2004-04-01  Paul N. Hilfinger  <[email protected]>
8109
8110         * valarith.c: Update copyright notice.
8111         (value_add): Handle range types.
8112         (value_sub): Ditto.
8113         (value_equal): Ditto.
8114         (value_less): Ditto.
8115         (value_neg): Ditto.
8116         (value_complement): Ditto.
8117         (value_binop): Simplify slightly by using is_integral_type and
8118         eliminiating unnecessary COERCE_ENUMs.
8119
8120 2004-03-31  Andrew Cagney  <[email protected]>
8121
8122         * frame.h (frame_unwind_id): Declare.
8123         * frame.c (frame_unwind_id): New function.
8124         (get_prev_frame_1): New function.
8125         (frame_debug_got_null_frame): New function.
8126         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
8127         code proper to prev_frame, update description.
8128         * infrun.c (step_over_function): Use frame_unwind_id.
8129
8130 2004-04-31  J. Brobecker  <[email protected]>
8131
8132         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8133         (hppa64_push_dummy_call): Likewise.
8134
8135 2004-03-30  Jim Blandy  <[email protected]>
8136
8137         From Ulrich Weigand:
8138         * utils.c (query): Do not use a va_list variable multiple times.
8139
8140 2004-03-29  Daniel Jacobowitz  <[email protected]>
8141
8142         * Makefile.in (linux_nat_h): Update dependencies.
8143         * configure.in: Check for <gnu/libc-version.h>.
8144         * configure: Regenerate.
8145         * config.in: Regenerate.
8146         * linux-nat.h: Include "target.h".  Add waitstatus field to
8147         struct lwp_info.
8148         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8149         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8150         to.
8151         (lin_lwp_handle_extended): New function.  Handle clone events.
8152         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
8153         thread exit events.
8154         (child_wait): Handle clone events.
8155         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8156         * linux-nat.c (linux_enable_event_reporting): Turn on
8157         PTRACE_O_TRACECLONE.
8158         (linux_handle_extended_wait): Handle clone events.
8159         * thread-db.c: Include <gnu/libc-version.h>.
8160         (struct private_thread_info): Add dying flag.
8161         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8162         higher.
8163         (attach_thread): Update comments.  Handle dying threads.
8164         (detach_thread): Set the dying flag.
8165         (check_event): Always call attach_thread.
8166
8167 2004-03-29  Daniel Jacobowitz  <[email protected]>
8168
8169         * mips-tdep.c (mips_pdr_data): New.
8170         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8171         (_initialize_mips_tdep): Initialize mips_pdr_data.
8172
8173 2004-03-29  Corinna Vinschen  <[email protected]>
8174
8175         * minsyms.c (install_minimal_symbols): Move dropping leading
8176         char from linkage name from here...
8177         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
8178         test for "__gnu_compiled*" symbols.
8179
8180 2004-03-28  Jim Blandy  <[email protected]>
8181
8182         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8183         registers to temp register r0 and byte stores as prologue
8184         instructions.
8185
8186 2004-03-28  Andrew Cagney  <[email protected]>
8187
8188         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
8189         arm*-*-*.
8190
8191 2004-03-28  Stephane Carrez  <[email protected]>
8192
8193         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8194         and switch the layout to force a display of register window.
8195
8196 2004-02-26  J. Brobecker  <[email protected]>
8197
8198         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8199         of the INTEGER class.
8200
8201 2004-03-26  Jim Blandy  <[email protected]>
8202
8203         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8204         bytes long on PPC GNU/Linux.
8205
8206 2004-03-26  David Carlton  <[email protected]>
8207
8208         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8209
8210 2004-03-25  Andrew Cagney  <[email protected]>
8211
8212         * PROBLEMS: Add general section titles, remove references to
8213         specific releases.
8214
8215 2004-03-25  Daniel Jacobowitz  <[email protected]>
8216
8217         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8218         INT_REGISTER_SIZE.
8219         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8220         FP_REGISTER_VIRTUAL_SIZE.
8221         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8222         of DEPRECATED_REGISTER_RAW_SIZE.
8223         (arm_register_type): Add gdbarch argument.
8224         (arm_register_raw_size, arm_register_virtual_size): Delete.
8225         (arm_register_byte, arm_extract_return_value)
8226         (arm_store_return_value, arm_get_longjmp_target): Update references
8227         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8228         (arm_gdbarch_init): Likewise.  Don't set
8229         deprecated_register_raw_size, deprecated_register_virtual_size,
8230         deprecated_max_register_raw_size,
8231         deprecated_max_register_virtual_size, or
8232         deprecated_max_register_virtual_type.  Do set register_type.
8233         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8234         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8235         (FP_REGISTER_VIRTUAL_SIZE): Delete.
8236         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8237         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8238         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8239         INT_REGISTER_SIZE.
8240         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8241         (remote_rdp_store_register): Likewise.
8242
8243 2004-03-24  Daniel Jacobowitz  <[email protected]>
8244
8245         * Makefile.in (mips-linux-tdep.o): Update dependencies.
8246         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8247         to after osabi initialization.
8248         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8249         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8250         functions.
8251         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8252         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8253         variables.
8254         (mips_linux_init_abi): Append signal trampoline unwinders.
8255
8256 2004-03-24  Andrew Cagney  <[email protected]>
8257
8258         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8259         * tramp-frame.c: Include "gdb_assert.h".
8260         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
8261         correct sizeof.
8262         (tramp_frame_append): Validate the tramp frame's instructions.
8263         * Makefile.in (tramp-frame.o): Update dependencies.
8264
8265 2004-03-23  Andrew Cagney  <[email protected]>
8266
8267         * trad-frame.h (trad_frame_set_reg_addr): Declare.
8268
8269 2004-03-23  Andrew Cagney  <[email protected]>
8270
8271         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8272         Nasser as past testsuite/lib/ (and other) maintainers.
8273
8274 2004-03-23  Daniel Jacobowitz  <[email protected]>
8275
8276         * infcmd.c (attach_command): Reread symbols if we already have
8277         an exec file.
8278
8279 2004-03-23  Andrew Cagney  <[email protected]>
8280
8281         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8282
8283 2004-03-23  Andrew Cagney  <[email protected]>
8284
8285         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8286         * gdbarch.h, gdbarch.c: Re-generate.
8287         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8288         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8289         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8290         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8291         (DEPRECATED_SIGTRAMP_START): Update.
8292         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8293         (DEPRECATED_SIGTRAMP_START): Update.
8294         * blockframe.c (find_pc_sect_partial_function): Update.
8295         * arch-utils.c (legacy_pc_in_sigtramp): Update.
8296
8297 2004-03-23  Daniel Jacobowitz  <[email protected]>
8298
8299         * remote.c (remote_open_1): Reopen the exec file and reread symbols
8300         if necessary.
8301
8302 2004-03-23  Andrew Cagney  <[email protected]>
8303
8304         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8305         predicate, deprecate.
8306         * gdbarch.h, gdbarch.c: Re-generate.
8307         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8308         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8309         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8310         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8311         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8312         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8313         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8314         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8315         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8316         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8317         * blockframe.c (find_pc_partial_function): Update.
8318         * breakpoint.c (bpstat_what): Update.
8319         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8320         * frv-linux-tdep.c (frv_linux_init_abi): Update.
8321         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8322         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8323         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8324         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8325         * i386-nto-tdep.c (i386nto_init_abi): Update.
8326         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8327         * i386-tdep.c (i386_sigtramp_frame_sniffer)
8328         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8329         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8330         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8331         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8332         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8333         * infrun.c (pc_in_sigtramp): Update.
8334         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8335         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8336         * mips-tdep.c (mips_gdbarch_init): Update.
8337         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8338         * ppc-linux-tdep.c: Update comment.
8339         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8340         * shnbsd-tdep.c (shnbsd_init_abi): Update.
8341         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8342         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8343         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8344         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8345         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8346         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8347         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8348         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8349
8350 2004-03-23  Andrew Cagney  <[email protected]>
8351
8352         * tramp-frame.h, tramp-frame.h: New files.
8353         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8354         Update rules to include "tramp-frame.h" and "tramp-frame.c".
8355
8356         * Makefile.in: Update all dependencies.
8357
8358 2004-03-23  Andrew Cagney  <[email protected]>
8359
8360         * Makefile.in (trad_frame_h): Add $(frame_h).
8361         * trad-frame.h: Update copyright.  Include "frame.h".
8362         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8363         (trad_frame_set_id, trad_frame_get_id): Declare.
8364         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8365         * trad-frame.c: Update copyright.
8366         (struct trad_frame_cache): Define.
8367         (trad_frame_cache_zalloc): New function.
8368         (trad_frame_set_id, trad_frame_get_id): New functions.
8369         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8370
8371 2004-03-22  Andrew Cagney  <[email protected]>
8372
8373         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8374         s390_pltstub_unwind_cache.
8375         (s390_stub_frame_unwind_cache): Rename
8376         s390_pltstub_frame_unwind_cache.
8377         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8378         (s390_stub_frame_prev_register): Rename
8379         s390_pltstub_frame_prev_register.
8380         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8381         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8382
8383         From Ulrich Weigand:
8384         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8385         pointer calls like PLT calls.
8386
8387 2004-03-22  Daniel Jacobowitz  <[email protected]>
8388
8389         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8390         PC rather than the partial function start address.  Use the start
8391         address to sanity check the found PDR.
8392
8393 2004-03-22  Daniel Jacobowitz  <[email protected]>
8394
8395         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8396         linux_handle_extended_wait.
8397
8398 2004-03-22  Andrew Cagney  <[email protected]>
8399
8400         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8401         function.
8402
8403         * frame.h (generic_pop_current_frame): Delete declaration.
8404         (deprecate_pop_dummy_frame): Deprecate
8405         generic_pop_dummy_frame.
8406         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8407         (generic_pop_current_frame): Delete function.
8408         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8409         generic_pop_current_frame.
8410         * v850-tdep.c (v850_pop_frame): Update.
8411         * mcore-tdep.c (mcore_pop_frame): Update.
8412         * sh64-tdep.c (sh64_pop_frame): Update.
8413         * h8300-tdep.c (h8300_pop_frame): Update.
8414
8415 2004-03-22  Andrew Cagney  <[email protected]>
8416
8417         * frame.h (deprecated_pc_in_call_dummy): Rename
8418         generic_pc_in_call_dummy.
8419         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8420         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8421         generic_pc_in_call_dummy.
8422         (pc_in_dummy_frame): Make static.
8423         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8424         * gdbarch.h, gdbarch.c: Re-generate.
8425         * dummy-frame.c (dummy_frame_sniffer): Simplify.
8426         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8427         (legacy_get_prev_frame): Ditto.
8428         * inferior.h: Delete reference to generic_pc_in_call_dummy in
8429         comment.
8430
8431 2004-03-21  Andrew Cagney  <[email protected]>
8432
8433         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8434         declaration and out-of-date comment.
8435         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8436         Delete function.
8437         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8438         deprecated_pc_in_call_dummy.
8439
8440         * infrun.c (handle_inferior_event): For non legacy frames, use the
8441         frame ID and frame type to identify a signal trampoline.  Update
8442         comments.
8443
8444 2004-03-21  Nathan J. Williams  <[email protected]>
8445
8446         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8447         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8448
8449 2004-03-21  Andrew Cagney  <[email protected]>
8450
8451         * frame-unwind.h: Update copyright.
8452         (struct frame_data): Add opaque declaration.
8453         (frame_sniffer_ftype): Declare.
8454         (struct frame_unwind): Add "unwind_data" and "sniffer".
8455         (frame_unwind_register_unwinder): Declare.
8456         (frame_unwind_find_by_frame): Add parameter "this_cache".
8457         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8458         (legacy_get_prev_frame, legacy_get_prev_frame)
8459         (get_frame_type): Pass the prologue_cache to
8460         frame_unwind_find_by_frame.
8461         * frame-unwind.c (struct frame_unwind_table_entry): Add field
8462         "unwinder".
8463         (frame_unwind_register_unwinder): New function.
8464         (frame_unwind_find_by_frame): Handle an unwind sniffer.
8465
8466 2004-03-20  Paul Hilfinger  <[email protected]>
8467
8468         * bcache.c (print_percentage): Use floating point to avoid
8469         incorrect results when portion*100 overflows.
8470
8471 2004-03-19  Kevin Buettner  <[email protected]>
8472
8473         * ppc_tdep.h (ppc_linux_frame_saved_pc)
8474         (ppc_linux_init_extra_frame_info)
8475         (ppc_linux_frameless_function_invocation)
8476         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8477         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8478         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8479         (rs6000_frame_chain): Delete declarations.
8480         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8481         (ppc_linux_init_extra_frame_info)
8482         (ppc_linux_frameless_function_invocation)
8483         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8484         (ppc_linux_init_abi): Remove registration of above deleted functions.
8485         * rs6000-tdep.c (rs6000_init_extra_frame_info)
8486         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8487         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8488         (rs6000_pop_frame, rs6000_frameless_function_invocation)
8489         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8490         (rs6000_gdbarch_init): Remove registration of above deleted functions.
8491         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8492         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8493         frame management for all OSABIs.
8494
8495 2004-03-19  Andrew Cagney  <[email protected]>
8496
8497         Committed by Kevin Buettner <[email protected]>.
8498
8499         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8500         Update copyright.
8501         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8502         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8503         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8504         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8505         unwinders.  #ifdef legacy frame code.
8506         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8507         "frame-base.h".
8508         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8509         (struct rs6000_frame_cache, rs6000_frame_cache)
8510         (rs6000_frame_this_id, rs6000_frame_prev_register)
8511         (rs6000_frame_sniffer, rs6000_frame_unwind)
8512         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8513         (rs6000_frame_base): Implement a traditional frame unwinder.
8514         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8515         frame unwinder.
8516
8517 2004-03-19  Kevin Buettner  <[email protected]>
8518
8519         * breakpoint.c (adjust_breakpoint_address): Don't adjust
8520         breakpoint address for watchpoints or the catch eventpoints.
8521         Add new paramter ``bptype''.  Adjust all callers.
8522
8523 2004-03-19  Andrew Cagney  <[email protected]>
8524
8525         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8526
8527         * PROBLEMS: Delete note that ARM does not use frame code, problem
8528         fixed.
8529
8530 2004-03-18  Andrew Cagney  <[email protected]>
8531
8532         * stack.c (return_command): Delete code wrapped in #ifdef
8533         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8534
8535         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8536
8537 2004-03-18  Andrew Cagney  <[email protected]>
8538
8539         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8540         DEPRECATED_IN_SIGTRAMP.
8541         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8542         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8543         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8544         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8545         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8546         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8547         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8548         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8549         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8550         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8551
8552 2004-03-18  Andrew Cagney  <[email protected]>
8553
8554         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
8555         (struct frame_base_table_entry): Define.
8556         (struct frame_base_table): Re-implement as a linked list.
8557         (frame_base_init): Re-implement.
8558         (frame_base_table): Delete function.
8559         (append_predicate): Delete function.
8560         (frame_base_append_sniffer): Update.
8561         (frame_base_set_default): Update.
8562         (frame_base_find_by_frame): Update.
8563         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8564         * Makefile.in (frame-base.o): Update dependencies.
8565
8566 2004-03-17  Andrew Cagney  <[email protected]>
8567
8568         * frame.c (legacy_get_prev_frame): Pass correct frame to
8569         frame_unwind_find_by_frame.
8570
8571 2004-03-17  David Carlton  <[email protected]>
8572
8573         * NEWS: Mention C++ nested types and namespaces
8574
8575 2004-03-16  Michael Chastain  <[email protected]>
8576
8577         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8578         and "Regressions since gdb 5.3.".  Add known regressions since
8579         gdb 6.0.
8580
8581 2004-03-16  David Carlton  <[email protected]>
8582
8583         * dwarf2read.c (process_structure_scope): Process children even
8584         when we're a declaration.
8585
8586 2004-03-16  Andrew Cagney  <[email protected]>
8587
8588         * symtab.h (find_pc_sect_partial_function): Delete declaration.
8589         * blockframe.c (find_pc_partial_function)
8590         (find_pc_sect_partial_function): Merge into a single
8591         find_pc_partial_function.
8592
8593 2004-03-16  Mark Kettenis  <[email protected]>
8594
8595         * i386bsd-nat.c: s/regno/regnum/g.
8596         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8597         FP0_REGNUM.
8598         (store_inferior_registers): Likewise.
8599
8600 2004-03-16  Mark Kettenis  <[email protected]>
8601
8602         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8603         of i387_fill_fsave.
8604         (store_inferior_registers): Call i387_collect_fsave and
8605         i387_collect_fxsave instead of i387_fill_fsave and
8606         i387_fill_fxsave.
8607
8608 2004-03-15  Andrew Cagney  <[email protected]>
8609
8610         * Makefile.in (frame-unwind.o): Update dependencies.
8611         * frame-unwind.c: Include "gdb_obstack.h".
8612         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8613         parameter.
8614         (append_predicate): Delete function.
8615         (struct frame_unwind_table_entry): New structure.
8616         (struct frame_unwind_table): Replace "sniffer" with "head" and
8617         "tail".
8618         (frame_unwind_append_sniffer): Update.
8619         (frame_unwind_find_by_frame): Update.
8620         (_initialize_frame_unwind): Registe frame_unwind_init using
8621         gdbarch_data_register_pre_init.
8622
8623 2004-03-15  Mark Kettenis  <[email protected]>
8624
8625         * i386bsd-nat.c: Update copyright year.
8626         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8627         define unconditionally.
8628
8629 2004-03-15  Mark Kettenis  <[email protected]>
8630
8631         * i387-tdep.h (i387_collect_fsave): New prototype.
8632         * i387-tdep.c (i387_collect_fsave): New function containing most
8633         of the code from i387_fill_fsave.
8634         (i387_fill_fsave): Call i387_collect_fsave.
8635
8636 2004-03-15  Mark Kettenis  <[email protected]>
8637
8638         * i386-linux-tdep.c: Update copyright year.
8639         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8640         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8641         svr4_ilp32_link_map_offsets instead of
8642         i386_linux_svr4_fetch_link_map_offsets.
8643
8644 2004-03-15  David Carlton  <[email protected]>
8645
8646         Fix for PR c++/1553:
8647         * dwarf2read.c (read_structure_type): Determine type name by
8648         calling determine_class_name.
8649         (determine_class_name): New.
8650         (determine_prefix): Look at TYPE_TAG_NAME and call
8651         determine_class_name when appropriate.
8652         (determine_prefix_aux, class_name): Delete.
8653         (read_namespace): Set die->type.
8654
8655 2004-03-15  Kevin Buettner  <[email protected]>
8656
8657         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8658         unused macro definition.  The definition in target.h (or perhaps
8659         elsewhere) takes precedence.
8660
8661 2004-03-15  Andrew Cagney  <[email protected]>
8662
8663         * ppc-tdep.h: Update copyright.
8664         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8665         function signatures to match "regsets.h".
8666         * ppc-linux-tdep.c: Include "regset.h".
8667         (ELF_GREGSET_SIZE): Delete.
8668         (right_supply_register): New function.
8669         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8670         using right_supply_register.
8671         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8672         functions.
8673         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8674         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8675         (_initialize_ppc_linux_tdep): Do not register
8676         ppc_linux_regset_core_fns.
8677         (ppc_linux_regset_from_core_section): Replace
8678         fetch_core_registers.
8679         (ppc_linux_regset_core_fns): Delete.
8680         * ppc-linux-nat.c: (right_fill_reg): New function.
8681         (supply_gregset): Update call to ppc_linux_supply_gregset.
8682         (fill_gregset): Clear the register set, use right_fill_reg.
8683         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8684         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8685
8686         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8687         unsigned.
8688
8689 2004-03-15  Andrew Cagney  <[email protected]>
8690
8691         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8692         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8693         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8694         and register_gdbarch_data.
8695         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8696         (struct gdbarch_data): Replace "init" by "pre_init" and
8697         "post_init".
8698         * gdbarch.h, gdbarch.c: Re-generate.
8699         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8700         with"obstack", use OBSTACK_ZALLOC.
8701         (dwarf2_frame_ops): Delete.
8702         (dwarf2_frame_set_init_reg): Use gdbarch_data.
8703         (dwarf2_frame_init_reg): Use gdbarch_data.
8704         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8705         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8706         (_initialize_svr4_solib): Update.
8707         * user-regs.c (_initialize_user_regs): Update.
8708         * reggroups.c (_initialize_reggroup): Update.
8709         * regcache.c (_initialize_regcache): Update.
8710         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8711         * libunwind-frame.c (_initialize_libunwind_frame): Update.
8712         * gnu-v3-abi.c (init_gnuv3_ops): Update.
8713         * frame-unwind.c (_initialize_frame_unwind): Update.
8714         * frame-base.c (_initialize_frame_base): Update.
8715         * user-regs.c (user_reg_add): Update.
8716         * reggroups.c (reggroup_add): Update.
8717         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8718         * libunwind-frame.c (libunwind_frame_set_descr): Update.
8719         * frame-unwind.c (frame_unwind_append_sniffer): Update.
8720         * frame-base.c (frame_base_table): Update.
8721         * remote.c (_initialize_remote): Update.
8722         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8723
8724 2004-03-15  Andrew Cagney  <[email protected]>
8725
8726         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8727
8728 2004-03-15  Kevin Buettner  <[email protected]>
8729
8730         * Makefile.in (frv-linux-tdep.o): Add dependencies.
8731         * frv-linux-tdep.c: New file.
8732         * frv-tdep.c (struct gdbarch_tdep): Add new field
8733         ``sigcontext_reg_addr''.
8734         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8735         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8736         (frv_sigramp_frame_sniffer): New functions.
8737         (frv_sigtramp_frame_unwind): New static global.
8738         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
8739         sniffers.
8740         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8741         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8742
8743 2004-03-15  Kevin Buettner  <[email protected]>
8744
8745         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8746         but not via a call to error(), when unable to read memory.
8747
8748 2004-03-15  Kevin Buettner  <[email protected]>
8749
8750         * frv-tdep.c (frv_call_dummy_words): Delete.
8751         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8752
8753 2004-03-15  Andrew Cagney  <[email protected]>
8754
8755         * infrun.c (handle_step_into_function, step_over_function): Only
8756         update and use STEP_FRAME_ID when the system is using legacy
8757         frames.  Update comments.
8758
8759 2004-03-14  Mark Kettenis  <[email protected]>
8760
8761         * amd64-linux-tdep.h: Remove file.
8762         * amd64-linux-tdep.c: Don't include "inferior.h" and
8763         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
8764         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8765         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8766         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8767         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8768         macros.
8769         (user_to_gdb_regmap): Remove variable.
8770         (amd64_linux_gregset_reg_offset): New variable.
8771         (amd64_core_fns): Remove variable.
8772         (fetch_core_registers): Remove function.
8773         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8774         functions.
8775         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8776         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8777         * Makefile.in (amd64_linux_tdep_h): Remove.
8778         (amd64-linux-nat.o): Update dependencies.
8779         (amd64-linux-tdep.o): Update dependencies.
8780
8781         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8782         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8783         functions.
8784         (fetch_inferior_registers, store_inferior_registers): Rewrite.
8785
8786         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8787         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8788
8789 2004-03-14  Daniel Jacobowitz  <[email protected]>
8790
8791         * dwarf2read.c (read_structure_type): Rename from
8792         read_structure_scope.  Don't create a symbol or call process_die.
8793         Return immediately if die->type is set.  Call read_type_die before
8794         dwarf2_add_member_fn.
8795         (process_structure_scope): New function.
8796         (read_enumeration_type, process_enumeration_scope): New functions,
8797         broken out from read_enumeration.  Don't create the enumeration
8798         type if it has already been created.
8799         (read_enumeration): Removed.
8800         (process_die): Call read_structure_type, process_structure_scope,
8801         read_enumeration_type, and process_enumeration_scope.  Just call
8802         new_symbol for base and subrange types.  Add a comment about other
8803         type dies.
8804         (read_type_die): Call read_enumeration_type.
8805         (add_partial_structure, new_symbol): Update comments.
8806
8807 2004-03-13  Stephane Carrez  <[email protected]>
8808
8809         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8810
8811 2004-03-13  Stephane Carrez  <[email protected]>
8812
8813         * tui/tui-win.h (tui_get_cmd_list): Declare.
8814         * tui/tui-win.c (tui_command): New function.
8815         (tui_get_cmd_list): New function.
8816         (_initialize_tui_win): Moved initialization of tui command in
8817         tui_get_cmd_list.
8818
8819         * tui/tui-data.c (init_content_element): Setup new data members.
8820         (init_win_info): Likewise.
8821         (free_content_elements): Free it.
8822         * tui/tui-data.h (struct tui_data_element): Store the register
8823         content to print.
8824         (struct tui_data_info): Keep the current register group.
8825
8826         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8827
8828         * tui/tui-regs.h (tui_show_registers): Update prototype.
8829         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8830         (tui_resize_all): No need to calculate anything for register window.
8831         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8832         (tui_set_register_element, tui_set_general_regs_content): Remove.
8833         (tui_set_special_regs_content): Remove.
8834         (tui_set_general_and_special_regs_content): Remove.
8835         (tui_set_float_regs_content): Remove.
8836         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8837         (tui_set_regs_content): Remove.
8838         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8839         (tui_v_show_registers_command_support): Remove.
8840         (tui_show_registers): Use a reggroup to specify the registers to show.
8841         (tui_show_register_group): New function.
8842         (tui_display_registers_from): Compute the layout of register window
8843         and refresh with new API; be sure to delete old register windows.
8844         (tui_check_register_values): Update to use tui_get_register and
8845         tui_display_data.
8846         (tui_display_register): Just refresh the register window part.
8847         (tui_register_format): Format registers and save in tui_data_element.
8848         (tui_get_register): New to combine tui_reg_value_has_changed and
8849         tui_get_register_raw_value; fix to use the new gdb API.
8850         (tui_show_float_command): Renamed tui_reg_float_command.
8851         (tui_show_general_command): Renamed tui_reg_general_command.
8852         (tui_show_special_command): Renamed tui_reg_system_command.
8853         (_initialize_tui_regs): Remove unused commands.
8854
8855 2004-03-13  Mark Kettenis  <[email protected]>
8856
8857         * NEWS (New native configurations): Mention OpenBSD/amd64.
8858
8859         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8860         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8861         Remove defines.
8862         * config/i386/nm-fbsd64.h: Likewise.
8863         * config/i386/nm-obsd.h: Likewise.
8864         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
8865         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
8866
8867 2004-03-12  Kevin Buettner  <[email protected]>
8868
8869         * frv-tdep.c (set_variant_scratch_registers): New function.
8870         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8871         New constants.
8872
8873         From Richard Sandiford  <[email protected]>:
8874         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8875
8876 2004-03-12  Kevin Buettner  <[email protected]>
8877
8878         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
8879         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8880         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8881         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8882         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8883         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8884         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8885         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8886         definitions from frv-tdep.c to frv-tdep.h.
8887
8888 2004-03-12  Kevin Buettner  <[email protected]>
8889
8890         Add shared library support for FR-V FDPIC ABI:
8891         * Makefile.in (solib-frv.o): Add dependencies.
8892         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8893         New functions.
8894         (frv_push_dummy_call): Add support for FDPIC ABI.
8895         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8896         for FDPIC ABI.
8897         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8898         (frv_fdpic_find_canonical_descriptor): Declare.
8899         * solib-frv.c: New file.
8900         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8901         * config/frv/tm-frv.h (solib.h): Include.
8902
8903 2004-03-12  Kevin Buettner  <[email protected]>
8904
8905         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8906         (frv-tdep.o): Update dependencies.
8907         * frv-tdep.h: New file.
8908         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8909         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8910         constants.
8911         (struct gdbarch_tdep): Add new member ``frv_abi''.
8912         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8913         functions.
8914         (new_variant): Set ``frv_abi'' field.
8915         (gdb_arch_init): Detect FDPIC executables.
8916
8917 2004-03-12  Mark Kettenis  <[email protected]>
8918
8919         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8920         wrapper.
8921
8922 2004-03-11  Andrew Cagney  <[email protected]>
8923
8924         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8925
8926 2004-03-11  Kevin Buettner  <[email protected]>
8927
8928         * solist.h (master_so_list): New function.
8929         * solib.c (master_so_list): Likewise.
8930         * solib-svr4.c (enable_break): Iterate over so_list entries
8931         obtained from master list instead of entries obtained directly
8932         via svr4_current_sos().
8933
8934 2004-03-10  Ben Elliston  <[email protected]>
8935
8936         * MAINTAINERS: Update my mail address.
8937
8938 2004-03-10  Kei Sakamoto  <[email protected]>
8939
8940         * remote-m32r-sdi.c: Support hardware watchpoint.
8941
8942 2004-03-09  Daniel Jacobowitz  <[email protected]>
8943
8944         * user-regs.c: Update copyright years.
8945         (struct user_regs): Rename to gdb_user_regs.
8946         (append_user_reg, builtin_user_regs, user_regs_init)
8947         (user_reg_add, user_reg_map_name_to_regnum)
8948         (usernum_to_user_reg): Update.
8949
8950 2004-03-09  Daniel Jacobowitz  <[email protected]>
8951
8952         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8953         (skip_children): New functions.
8954         (locate_pdi_sibling): Call skip_children.
8955
8956 2004-03-09  Daniel Jacobowitz  <[email protected]>
8957
8958         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8959         * gdbtypes.c (check_typedef): Update comments.
8960
8961 2004-03-09  Daniel Jacobowitz  <[email protected]>
8962
8963         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8964         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8965         pointer.  Update comment about comp_unit_head.
8966         (struct abbrev_info): Shorten two int flags.
8967         (dwarf_alloc_abbrev): Take a CU argument.
8968         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8969         each time through the loop.  Update cleanup argument.
8970         (psymtab_to_symtab_1): Update cleanup call.
8971         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8972         abbrev_obstack.
8973         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8974         Just call obstack_free and clear the pointer.
8975
8976 2004-03-09  Daniel Jacobowitz  <[email protected]>
8977
8978         * infrun.c (handle_inferior_event): Remove short-circuit code for
8979         events in a different thread.
8980
8981 2004-03-09  Daniel Jacobowitz  <[email protected]>
8982
8983         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8984         print the whole transfer.
8985         (initialize_targets): Update description of "set debug target".
8986
8987 2004-03-09  Daniel Jacobowitz  <[email protected]>
8988
8989         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8990
8991 2004-03-08  Nathan J. Williams  <[email protected]>
8992
8993         * MAINTAINERS (write after approval): Add myself.
8994
8995 2004-03-08  Corinna Vinschen  <[email protected]>
8996
8997         * sh-tdep.c (sh_print_registers_info): Use for loop.
8998         Don't skip multiple registers when a float register is encountered.
8999
9000 2004-03-08  Corinna Vinschen  <[email protected]>
9001
9002         Fix PR tdep/1291.
9003         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9004         to official SH documentation.
9005
9006 2004-03-07  Andrew Cagney  <[email protected]>
9007
9008         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9009         unused function.
9010
9011 2004-03-07  Daniel Jacobowitz  <[email protected]>
9012
9013         * arm-tdep.c (thumb_get_next_pc): Handle BX.
9014         (arm_get_next_pc): Handle BX and BLX.
9015
9016 2004-03-07  Andrew Cagney  <[email protected]>
9017
9018         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9019         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9020         HPPA_SP_REGNUM.
9021         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9022         (hppa_target_read_fp): Delete.
9023         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9024         register_virtual_size, max_register_raw_size,
9025         max_register_virtual_size, register_byte, register_size,
9026         target_read_fp, fp_regnum, and register_bytes.  Set register_type
9027         instead of register_virtual_type.
9028         (hppa32_register_type, hppa64_register_type): Replace
9029         hppa32_register_virtual_type and hppa64_register_virtual_type.
9030         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9031         (HPPA_FP_REGNUM): Define.
9032
9033         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9034
9035         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9036         (pa_do_registers_info): Delete.
9037         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9038         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9039         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9040
9041         * infcall.c (legacy_push_dummy_code): Delete #ifdef
9042         GDB_TARGET_IS_HPPA code.
9043         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9044         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9045         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9046         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9047         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9048         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9049         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9050         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9051         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9052         (hppa_frameless_function_invocation, hppa64_store_return_value)
9053         (hppa_store_struct_return, hppa64_extract_return_value)
9054         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9055         (hppa32_call_dummy_length, hppa64_call_dummy_length)
9056         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9057         (find_proc_framesize, deposit_21, restore_pc_queue)
9058         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9059         (rp_saved, pc_in_linker_stub): Delete.
9060
9061         Unconditionally enable 64-bit frame and ABI code.
9062         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9063         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9064         push_dummy_frame, fix_call_dummy, push_arguments,
9065         call_dummy_location, extract_return_value, use_struct_convention,
9066         store_return_value, store_struct_return, saved_pc_after_call,
9067         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9068         frame_chain, frame_chain_valid, frameless_function_invocation,
9069         frame_saved_pc, and pop_frame.
9070
9071         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9072         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9073         (hppa_gdbarch_init): Do not set PC_REGNUM.
9074
9075 2004-03-06  Mark Kettenis  <[email protected]>
9076
9077         * config/alpha/tm-fbsd.h: Remove file.
9078         * config/alpha/fbsd.mt: Tweak comment.
9079         (TM_FILE): Set to tm-alpha.h.
9080
9081 2004-03-05  Andrew Cagney  <[email protected]>
9082
9083         * infrun.c (step_over_function): When non-legacy code, and no
9084         step_frame_id, use the unwinder to get the caller's frame ID.
9085
9086 2004-03-05  Mark Kettenis  <[email protected]>
9087
9088         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9089         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9090         bfd_arch_unknown.  Adjust comment.
9091
9092         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
9093         * i386obsd-tdep.c: Correct spelling in comment.
9094         * i386nbsd-tdep.c: Correct spelling in comment.
9095         * sparc-tdep.c: Correct spelling in comments.
9096
9097 2004-03-05  David Carlton  <[email protected]>
9098
9099         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9100         bug.
9101
9102 2004-03-05  Mark Kettenis  <[email protected]>
9103
9104         * sparc-tdep.c: Fix typo in comment.
9105
9106 2004-03-04  J. Brobecker  <[email protected]>
9107
9108         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9109
9110 2004-03-04  Daniel Jacobowitz  <[email protected]>
9111
9112         * dwarf2read.c: Add comment describing memory lifetimes.
9113         (struct dwarf2_pinfo): Update comment.
9114         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9115         (read_enumeration, new_symbol): Don't use obsavestring.
9116
9117 2004-03-04  Mark Kettenis  <[email protected]>
9118
9119         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9120         instead of amd64_fill_fxsave.
9121         * amd64bsd-nat.c (store_inferior_registers): Likewise.
9122         * amd64fbsd-nat.c (fill_fpregset): Likewise.
9123
9124         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9125         Reorganize code a bit.
9126
9127 2004-03-04  Orjan Friberg  <[email protected]>
9128
9129         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9130         when the frame pointer is pushed.  Don't set the frame pointer's
9131         address on the stack unless it's actually located there.
9132         Set the SRP's address on the stack correctly when the PC is still in
9133         the prologue.
9134         (cris_return_value): New function.
9135         (cris_gdbarch_init): Clear deprecated store_return_value,
9136         extract_return_value.
9137
9138 2004-03-02  Jim Blandy  <[email protected]>
9139
9140         * stabsread.c (reg_value_complaint): The maximum register number
9141         is one less than the number of registers.
9142
9143 2004-03-02  Andrew Cagney  <[email protected]>
9144
9145         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9146         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
9147         trailing comma and redundant assignment of I386_ST0_REGNUM.
9148         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9149         32-bit segment registers.
9150
9151 2004-03-01  Andrew Cagney  <[email protected]>
9152
9153         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9154         use frame_relative_level and get_next_frame.
9155
9156 2004-02-29  Andrew Cagney  <[email protected]>
9157
9158         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9159         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9160         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9161         Delete macro.
9162
9163 2004-02-29  Daniel Jacobowitz  <[email protected]>
9164
9165         * inflow.c (terminal_inferior): Don't give up the terminal if we
9166         previously couldn't get the inferior's terminal state.
9167
9168 2004-02-29  Daniel Jacobowitz  <[email protected]>
9169
9170         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9171         PC_REGNUM.
9172
9173 2004-02-28  Andrew Cagney  <[email protected]>
9174
9175         * NEWS: Refer to GDB 6.1.
9176         * README: Refer to GDB 6.1.
9177         * PROBLEMS: Refer to GDB 6.1.
9178
9179 2004-02-28  Daniel Jacobowitz  <[email protected]>
9180
9181         * thread-db.c (disable_thread_signals): Remove unused function.
9182
9183 2004-02-28  Mark Kettenis  <[email protected]>
9184
9185         * amd64-nat.c: Include "gdb_string.h".
9186         (amd64_collect_native_gregset): Zero-extend the 32-bit
9187         general-purpose registers and %eip.
9188
9189         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9190         * amd64-tdep.c (amd64_collect_fxsave): New function.
9191         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9192
9193         * i387-tdep.h: Update copyright year.
9194         (i387_collect_fxsave): New prototype.
9195         * i387-tdep.c: Update copyright year.
9196         (i387_collect_fxsave): New function containing most of the code
9197         from i387_fill_fxsave.
9198         (i387_fill_fxsave): Call i387_collect_fxsave.
9199
9200 2004-02-28  Andrew Cagney  <[email protected]>
9201
9202         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9203         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
9204
9205 2004-02-28  Mark Kettenis  <[email protected]>
9206
9207         * amd64-tdep.c (amd64_frame_cache): Fix comment.
9208
9209 2004-02-28  Andrew Cagney  <[email protected]>
9210
9211         * utils.c: Use "", instead of <>, to include readline.
9212         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9213         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9214         * source.c, solib.c, exec.c, event-top.c: Ditto.
9215         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9216         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9217         * Makefile.in: Update all dependencies.
9218         (readline_tilde_h, readline_history_h): Define.
9219         (readline_headers): Delete.
9220
9221 2004-02-28  Mark Kettenis  <[email protected]>
9222
9223         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9224         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9225         "config/i386/tm-lx64.h".
9226
9227         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9228         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
9229         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9230
9231 2004-02-28  Andrew Cagney  <[email protected]>
9232
9233         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9234
9235         * breakpoint.c (_initialize_breakpoint): Use
9236         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
9237         Add help to show command.
9238
9239 2004-02-28  Mark Kettenis  <[email protected]>
9240
9241         * i386-nat.c: Reformat to be closer to coding standards.
9242         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9243         `retval'.  Make variables `align' and `size' local to while-loop.
9244         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9245         (_initialize_i386_nat): New prototype.
9246
9247         * tui/tui.c: Include <readline/readline.h> instead of
9248         "readline/readline.h".  Include it after <term.h> and
9249         "gdb_curses.h".
9250
9251 2004-02-27  Andrew Cagney  <[email protected]>
9252
9253         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9254         the new frame unwind code.
9255         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9256         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9257         PCOQ_HEAD_REGNUM.
9258
9259         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9260         "return_value" and "push_dummy_call".
9261         (hppa32_use_struct_convention): Delete unused function.
9262         (hppa32_store_return_value): Delete unused function.
9263         (hppa32_extract_return_value): Delete unused function.
9264         (hppa32_stack_align): Delete function.
9265
9266 2004-02-27  Eli Zaretskii  <[email protected]>
9267
9268         * coffread.c (enter_linenos): Don't let rawptr reference memory
9269         outside linetab[]'s limits.
9270
9271 2004-02-27  Andrew Cagney  <[email protected]>
9272
9273         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9274         inferior stack space - the stack needs to grow upwards.
9275         (hppa32_frame_align): New function.
9276         (hppa64_frame_align): Replace hppa_frame_align.
9277         (hppa_gdbarch_init): Update.
9278
9279 2004-02-26  Orjan Friberg  <[email protected]>
9280
9281         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9282         (dwarf2-frame.h): Include.
9283         (enum cris_regnums): New enum CRIS_FP_REGNUM.
9284         Remove static variables related to ABI setting.
9285         (struct gdbarch_tdep): Remove cris_abi member.
9286         (struct frame_extra_info): Remove.
9287         (cris_unwind_cache, stack_item): New structs.
9288         (cris_frame_unwind, cris_frame_base): New variables.
9289         (push_stack_item, pop_stack_item)
9290         (cris_frame_unwind_cache, cris_frame_this_id)
9291         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9292         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9293         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9294         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9295         (cris_reg_struct_has_addr): New functions.
9296         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9297         (cris_frame_saved_pc, cris_saved_pc_after_call,
9298         (cris_store_struct_return, cris_frameless_function_invocation)
9299         (cris_pop_frame, cris_skip_prologue_main)
9300         (cris_abi_original_store_return_value)
9301         (cris_abi_v2_store_return_value)
9302         (cris_abi_original_extract_return_value)
9303         (cris_abi_v2_extract_return_value)
9304         (cris_abi_original_reg_struct_has_addr)
9305         (cris_abi_v2_reg_struct_has_addr)
9306         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9307         (cris_push_return_address, cris_abi_update): Remove.
9308         (_initialize_cris_tdep): Remove ABI command.
9309         (cris_dump_tdep): Ditto.
9310         (cris_gdbarch_init): Remove ABI command.
9311         Set store_return_value, extract_return_value, push_dummy_code,
9312         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9313         frame_unwind_append_sniffer, frame_base_set_default.
9314         Clear deprecated init_frame_pc, push_arguments, store_return_value,
9315         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9316         sizeof_call_dummy_words, get_saved_register, push_return_address,
9317         pop_frame, store_struct_return, frame_init_saved_regs,
9318         init_extra_frame_info, frameless_function_invocation, frame_chain,
9319         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9320         dummy_write_sp.
9321
9322 2004-02-26  Jeff Johnston  <[email protected]>
9323
9324         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9325         * valprint.c (print_hex_chars): Change from static to external.
9326         (print_char_chars): New function.
9327         * printcmd.c (print_scalar_formatted): For integer and enum types
9328         that are longer than LONGEST, perform processing via appropriate
9329         print_*_chars routines.
9330
9331 2004-02-26  Andrew Cagney  <[email protected]>
9332
9333         * Makefile.in: Update dependencies.
9334         Changes from Ulrich Weigand,
9335         * s390-tdep.c: Include "dwarf2-frame.h".
9336         (s390_dwarf2_frame_init_reg): New function.
9337         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9338         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
9339
9340 2004-02-26  Jeff Johnston  <[email protected]>
9341
9342         * breakpoint.c (pending_break_support): New setting variable.
9343         (break_command_1): Account for pending_break_support setting
9344         when creating pending breakpoints.
9345         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9346         (_initialize_breakpoint): Add "set breakpoint pending" and
9347         "show breakpoint pending" commands.
9348
9349 2004-02-26  Andrew Cagney  <[email protected]>
9350
9351         Fix PR i18n/1570.
9352         * charset.c (backslashable, backslashed, represented): Remove 'e'
9353         from list of escaped characters, not part of ISO-C.
9354
9355 2004-02-25  J. Brobecker  <[email protected]>
9356
9357         From Peter Schauer <[email protected]>:
9358         * tui/tui.c: Move system header includes after local includes.
9359         Fixes a build failure on solaris systems.
9360
9361 2004-02-25  J. Brobecker  <[email protected]>
9362
9363         * configure.in: Refine the previous change.
9364         * configure: Regenerate.
9365
9366 2004-02-25  Mark Kettenis  <[email protected]>
9367
9368         * amd64-tdep.h: Renamed from x86-64-tdep.h.
9369         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
9370         "amd64-tdep.h" instead of "x86-64-tdep.h".
9371         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9372         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9373         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
9374         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9375         and "x86-64-tdep.c".
9376         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
9377         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9378         and "x86-64-tdep.c".
9379         * amd64bsd-nat.c: Update copyright year.
9380         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9381         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9382         "x86-64-tdep.h".
9383         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9384         "x86-64-tdep.h".
9385         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9386         "x86-64-tdep.h".
9387         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9388         "x86-64-tdep.h".
9389         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9390         "x86-64-tdep.h".
9391         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9392         "x86-64-tdep.h".
9393         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9394         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9395         * Makefile.in (amd64_linux_tdep_h): Renamed from
9396         x86_64_linux_tdep_h.
9397         (amd64_tdep_h): Renamed from x86_64_tdep_h.
9398         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9399         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9400         (amd64obsd-tdep.o): Update dependencies.
9401         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9402         dependencies.
9403         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9404         dependencies.
9405         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9406         amd64-linux-nat.c amd64-linux-tdep.c.
9407         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9408         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9409         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9410         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9411         amd64-tdep.o and amd64-linux-tdep.o.
9412         (TM_FILE): Set to tm-linux64.h.
9413         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9414         (NAT_FILE): Set to nm-linux64.h.
9415         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9416         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9417         amd64-tdep.o.
9418         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9419         amd64-tdep.o.
9420         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9421         amd64-tdep.o.
9422
9423 2004-02-25  Roland McGrath  <[email protected]>
9424
9425         * remote.c (remote_protocol_qPart_auxv): New variable.
9426         (init_all_packet_configs): Initialize it.
9427         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9428         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9429         (show_remote_cmd): Call it.
9430         (_initialize_remote): Initialize commands.
9431         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9432         service TARGET_OBJECT_AUXV requests.
9433
9434 2004-02-25  J. Brobecker  <[email protected]>
9435
9436         * configure.in: Make sure that the wborder function is available.
9437         Otherwise, search for it in the cur_colr library.
9438         * configure: Regenerate.
9439
9440 2004-02-25  Andrew Cagney  <[email protected]>
9441
9442         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9443
9444 2004-02-25  Mark Kettenis  <[email protected]>
9445
9446         * config/i386/tm-x86-64linux.h: Tweak comments.
9447
9448 2004-02-25  Richard Sandiford  <[email protected]>
9449
9450         * MAINTAINERS: Add self to write-after-approval list.
9451
9452 2004-02-25  Andrew Cagney  <[email protected]>
9453
9454         PR cli/1566.  Problem found, and fix suggested by David Allan.
9455         * cli/cli-script.c (execute_control_command): Unconditionally
9456         install a cleanup.  Default "ret" to "invalid_control".  Use
9457         "break" instead of "return" to escape from the switch.
9458
9459 2004-02-24  J. Brobecker  <[email protected]>
9460
9461         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9462         with the lines macro defined in term.h on AiX.
9463         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9464         a collision with the label_width macro defined in term.h on AiX.
9465
9466 2004-02-23  David Mosberger  <[email protected]>
9467
9468         Committed by Kevin Buettner <[email protected]>.
9469
9470         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9471         * ia64-tdep.c (ia64_write_pc): Make it a global function.
9472         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9473         instead of ia64_write_pc().
9474         * ia64-linux-tdep.c (regcache.h): Include.
9475         (ia64_linux_write_pc): New function.
9476
9477 2004-02-23  Roland McGrath  <[email protected]>
9478
9479         * auxv.c (info_auxv_command): Fix typos in error messages.
9480
9481 2004-02-23  Mark Kettenis  <[email protected]>
9482
9483         * x86-64-tdep.h: Tweak comment.
9484         (enum amd64_regnum): New.
9485         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9486         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9487         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9488         (X86_64_XMM1_REGNUM): Removed.
9489         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9490         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9491         prototypes for renamed functions.
9492         * x86-64-tdep.c: Fix typo.
9493         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9494         register numbers.
9495         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9496         Use constants from `enum amd64_regnum' for register numbers.
9497         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9498         (amd64_analyze_prologue, amd64_frame_cache,
9499         amd64_sigtramp_frame_cache): Use constants from `enum
9500         amd64_regnum' for register numbers.
9501         (amd64_supply_fpregset): Adjust for renamed functions.
9502         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
9503         `enum amd64_regnum' for register numbers.
9504         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9505         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9506         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9507         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9508         (amd64_linux_fill_gregset): Adjust for renamed macros.
9509         (fetch_core_registers): Adjust for renamed functions.
9510         (amd64_linux_init_abi): Adjust for renamed functions.
9511         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9512         renamed functions.
9513         * amd64-nat.c: Adjust for renamed macros.
9514         * amd64bsd-nat.c (fetch_inferior_registers)
9515         (store_inferior_registers): Use constants from `enum amd64_regnum'
9516         for register numbers.  Adjust for renamed variables.
9517         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9518         renamed variables.
9519         (_initialize_amd64fbsd_nat): Use constants from `enum
9520         amd64_regnum' for register numbers.
9521         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9522         `enum amd64_regnum' for register numbers.
9523         (amd64fbsd_init_abi): Adjust for renamed functions.
9524         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9525         `enum amd64_regnum' for register numbers.
9526         (amd64nbsd_init_abi): Adjust for renamed functions.
9527         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9528         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9529         `enum amd64_regnum' for register numbers.
9530         (amd64obsd_init_abi): Adjust for renamed functions.
9531         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9532
9533 2004-02-23  Jeff Johnston  <[email protected]>
9534
9535         * breakpoint.c (print_one_breakpoint): Do not output spaces
9536         after printing <PENDING> for a pending breakpoint.
9537
9538 2004-02-23  Jeff Johnston  <[email protected]>
9539
9540         * printcmd.c (print_scalar_formatted): Initialize val_long
9541         to remove compiler warning message.
9542
9543 2004-02-23  Jeff Johnston  <[email protected]>
9544
9545         * defs.h (nquery, yquery): New prototypes.
9546         * breakpoint.c (break_command_1): Use new nquery interface.
9547         * utils.c (defaulted_query, nquery, yquery): New functions.
9548
9549 2004-02-23  Andrew Cagney  <[email protected]>
9550
9551         * hppa-tdep.c (hppa_frame_align): New function.
9552         (hppa32_push_dummy_call): New function.
9553         (hppa64_push_dummy_call): New function.
9554         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9555         disabled.
9556
9557         * infcall.c (legacy_push_dummy_code): Don't call deprecated
9558         FIX_CALL_DUMMY when push_dummy_call is available.
9559         (call_function_by_hand, push_dummy_code): Ditto.
9560
9561 2004-02-22  Andrew Cagney  <[email protected]>
9562
9563         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9564         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9565         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9566         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9567         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9568         call_dummy_location to ON_STACK.
9569
9570 2004-02-22  Mark Kettenis  <[email protected]>
9571
9572         * x86-64-linux-tdep.c: Tweak comment.
9573         (amd64_linux_supply_gregset): Renamed from
9574         x86_64_linux_supply_gresget.
9575         (amd64_linux_fill_gregset): Renamed from
9576         x86_64_linux_fill_gregset.
9577         (fetch_core_registers): Adjust for renamed functions.
9578         (amd64_core_fns): Renamed from x86_64_core_fns.
9579         (amd64_linux_sigtramp_start): Renamed from
9580         x86_64_linux_sigtramp_start.
9581         (amd64_linux_pc_in_sigtramp): Renamed from
9582         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
9583         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9584         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9585         (amd64_linux_sigcontext_addr): Renamed from
9586         x86_64_linux_sigcontext_addr.
9587         (amd64_linux_sc_reg_offset): Renamed from
9588         x86_64_linux_sc_reg_offset.
9589         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9590         Adjust for renamed functions and variables.
9591         (_initialize_amd64_linux_tdep): Renamed from
9592         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
9593         variables.
9594         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
9595         Adjust for renamed functions.
9596
9597         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9598         from x86_64_linux_gregset64_reg_offset.
9599         (amd64_linux_gregset32_reg_offset): Rename from
9600         x86_64_linux_gregset64_reg_offset.
9601         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9602         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9603         (amd64_linux_dr_set_control): Renamed from
9604         x86_64_linux_dr_set_control.  Adjust for renamed functions.
9605         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9606         Adjust for renamed functions.
9607         (amd64_linux_dr_reset_addr): Renamed from
9608         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9609         (amd64_linux_dr_get_status): Renamed from
9610         x86_64_linux_dr_get_status.  Adjust for renamed functions.
9611         (_initialize_amd64_linux_nat): Renamed from
9612         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
9613         functions.
9614         * config/i386/nm-x86-64linux.h: Update copyright year.
9615         Adjust for renamed functions.
9616
9617         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9618         amd64fbsd_sigtramp_start.
9619         (amd64fbsd_sigtramp_end_addr): Renamed from
9620         amd64fbsd_sigtramp_end.
9621         (amd64fbsd_init_abi): Adjust for renamed variables.
9622         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9623         variables.
9624         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9625         amd64fbsd_sigtramp_start.
9626         (amd64fbsd_sigtramp_end_addr): Renamed from
9627         amd64fbsd_sigtramp_end.
9628
9629 2004-02-22  Andrew Cagney  <[email protected]>
9630
9631         * hppa-tdep.c (hppa32_return_value): New function.
9632         (hppa64_return_value): New function.
9633         (hppa_gdbarch_init): Set return_value; keep disabled.
9634
9635         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9636         struct-return and inferior function call methods.
9637
9638         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9639         "frame-base.h".
9640         (struct hppa_frame_cache): Define.
9641         (hppa_frame_cache, hppa_frame_this_id): New functions.
9642         (hppa_frame_prev_register): New function.
9643         (hppa_frame_unwind, hppa_frame_base): New variables.
9644         (hppa_frame_unwind_sniffer): New function.
9645         (hppa_frame_base_address, hppa_unwind_pc): New function.
9646         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9647         sniffer, and frame base sniffer; keep disabled.
9648         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9649         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9650
9651         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9652         to predicates for "seriously old code".
9653
9654         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9655         runtime if(0).
9656
9657         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9658         unsigned.
9659         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9660
9661         * config/pa/tm-hppa.h: Update copyright.
9662         (DEPRECATED_INIT_FRAME_PC): Delete macro.
9663         (deprecated_init_frame_pc_default): Delete declaration.
9664         (hppa_frame_init_saved_regs): Delete declaration.
9665         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9666         * hppa-tdep.c: Include "arch-utils.h".
9667         (hppa_gdbarch_init): Set deprecated init_frame_pc
9668         and deprecated frame_init_saved_regs.
9669         (hppa_frame_init_saved_regs): Make static.
9670
9671 2004-02-22  Mark Kettenis  <[email protected]>
9672
9673         Remove old 386BSD support.
9674         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9675         * configure.host: Remove i[34567]86-*-bsd*.
9676         * configure.tgt: Remove i[34567]86-*-bsd*.
9677         * i386b-nat.c: Removed.
9678         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9679         (i386b-nat.o): Remove dependencies.
9680
9681         * config/i386/i386bsd.mh: Removed.
9682         * config/i386/i386bsd.mt: Removed.
9683         * config/i386/nm-i386bsd.h: Removed.
9684         * config/i386/tm-i386bsd.h: Removed.
9685         * config/i386/xm-i386bsd.h: Removed.
9686
9687         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9688
9689         * amd64fbsd-tdep.c: Include "solib-svr4.h".
9690         (amd64fbsd_init_abi): Set link map offsets.
9691         * amd64nbsd-tdep.c: Include "slib-svr4.h".
9692         (amd64nbsd_init_abi): Set link map offsets.
9693         * amd64obsd-tdep.c: Include "solib-svr4.h".
9694         (amd64obsd_init_abi): Set link map offsets.
9695         * i386fbsd-tdep.c: Include "solib-svr4.h".
9696         (i386fbsd_init_abi): Set link map offsets.
9697         * i386nbsd-tdep.c: Include "solib-svr4.h".
9698         (i386nbsdelf_init_abi): Set link map offsets.
9699         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9700         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9701         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9702         solib-legacy.o and core-aout.o. Reformat.
9703         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9704         solib-svr4.o, solib-legacy.o.  Reformat.
9705         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
9706         * config/i386/nbsdelf.mh: Reformat.
9707         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9708         solib-svr4.o, solib-legacy.o and corelow.o.
9709         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9710         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9711         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
9712         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9713         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9714         (TM_FILE): Set to tm-fbsd.h.
9715         * config/i386/nbsd.mt (TDEPFILES): Reformat.
9716         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9717         solib-svr4.o.
9718         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9719         solib-svr4.o.
9720         (TM_FILE): Set to nm-nbsd.h.
9721         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
9722         Simplify shared library support.  Don't include "elf/common.h".
9723         (SVR4_SHARED_LIBS): Don't define.
9724         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
9725         "solib.h".
9726         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9727         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
9728         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
9729         Don't include "i386/tm-i386.h".  Include "solib.h".
9730         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
9731         Don't include "i386/tm-i386.h".
9732         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
9733         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
9734         Include "i386/xm-i386.h".
9735         (HOST_LONG_DOUBLE_FORMAT): Remove.
9736
9737         Fix OpenBSD/i386 sigtramp recognition.
9738         * i386-tdep.h: Update copyright year.
9739         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9740         (i386bsd_sigtramp_end): New prototypes.
9741         (i386fbsd_sigtramp_start_addr): Renamed from
9742         i386fbsd_sigtramp_start.
9743         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9744         (i386obsd_sigtramp_start_addr): Renamed from
9745         i386obsd_sigtramp_start.
9746         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9747         * i386bsd-tdep.c: Update copyright year.
9748         (i386bsd_pc_in_sigtramp): Make public.
9749         * i386fbsd-nat.c: Update copyright year.
9750         (_initialize_i386fbsd_nat): Adjust for renamed variables.
9751         * i386fbsd-tdep.c: Update copyright year.
9752         (i386fbsd_sigtramp_start_addr): Renamed from
9753         i386fbsd_sigtramp_start.
9754         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9755         (i386fbsdaout_init_abi): Adjust for renamed variables.
9756         * i386obsd-nat.c: Update copyright year.
9757         (_initialize_i386obsd_nat): Adjust for renamed variables.
9758         * i386obsd-tdep.c: Include "target.h".
9759         (i386obsd_page_size): New variable.
9760         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9761         (i386obsd_sigtramp_end): New functions.
9762         (i386obsd_sigtramp_start_addr): Renamed from
9763         i386obsd_sigtramp_start.
9764         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9765         (i386obsd_init_abi): Adjust for renamed variables.  Set
9766         pc_in_sigtramp, sigtramp_start and sigtramp_end.
9767         * Makefile.in (i386obsd-tdep.o): Update dependencies.
9768
9769         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9770         trampoline change in OpenBSD kernel.
9771
9772         * amd64-nat.c: Update copyright year.
9773         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9774         architecture from REGCACHE.
9775
9776         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9777         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9778
9779 2004-02-21  Mark Kettenis  <[email protected]>
9780
9781         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9782         i[34567]86-*-openbsd3.[0-3].
9783         * config/i386/obsdaout.mh: New file.
9784
9785         * config/i386/obsd.mh (MH_FLAGS): Remove.
9786
9787         Fix PR build/1549.
9788         * i386obsd-tdep.c: Update copyright years.  Include
9789         "solib-svr4.h".
9790         (i386obsd_init_abi): Don't set regset_from_core_section here.
9791         (i386obsd_aout_init_abi): New function.  Set
9792         regset_from_core_section here.
9793         (i386obsd_elf_init_abi): New function.
9794         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9795         * Makefile.in (i386obsd-tdep.o): Update dependecies.
9796         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9797         (TM_FILE): Set to tm-nbsd.h.
9798
9799         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9800         solib-sunos.o.
9801
9802         * solib-svr4.h: Update copyright year.
9803         (svr4_ilp32_fetch_link_map_offsets)
9804         (svr4_lp64_fetch_link_map_offsets): New prototype.
9805         * solib-svr4.c: Update copyright year.
9806         (svr4_ilp32_fetch_link_map_offsets)
9807         (svr4_lp64_fetch_link_map_offsets): New function.
9808
9809 2004-02-20  Daniel Jacobowitz  <[email protected]>
9810
9811         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9812         to the partial symbol table.
9813
9814 2004-02-20  J. brobecker  <[email protected]>
9815
9816         * PROBLEMS: Add description of problem documented under gdb/1560.
9817
9818 2004-02-20  Mark Kettenis  <[email protected]>
9819
9820         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
9821         comments.
9822         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9823         functions.
9824         (amd64obsd_init_abi): Reorder initializations.  Use
9825         amd64obsd_r_reg_offset to initialize the general-purpose register
9826         set details.  Set regset_from_core_section.
9827         (_initialize_amd64obsd_tdep): Rename from
9828         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
9829         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9830         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9831
9832         * NEWS (New native configurations): Mention OpenBSD/alpha.
9833         * configure.tgt: Add alpha*-*-openbsd*.
9834         * configure.host: Add alpha*-*-openbsd*.
9835         * alphanbsd-tdep.c: Update copyright year.
9836         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9837
9838 2004-02-20  Andrew Cagney  <[email protected]>
9839
9840         Fix PR tdep/1372.
9841         * configure.tgt: Delete target "none-*-*".
9842         * configure.host: Delete host "none-*-*".
9843         * config/none/none.mh: Delete file.
9844         * config/none/none.mt: Delete file.
9845         * config/none/xm-none.h: Delete file.
9846         * config/none/tm-none.h: Delete file.
9847         * config/none/nm-none.h: Delete file.
9848
9849 2004-02-19  Fred Fish  <[email protected]>
9850
9851         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9852         cache->uses_fp prior to setting it.
9853
9854 2004-02-19  Fred Fish  <[email protected]>
9855
9856         Fix for PR breakpoint/1558.
9857         * sh-tdep.c (IS_JSR): New macro.
9858         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9859
9860 2004-02-19  Jim Blandy  <[email protected]>
9861
9862         * findvar.c (value_from_register): Doc fix.
9863
9864 2004-02-19  Jeff Johnston  <[email protected]>
9865
9866         * printcmd.c (print_scalar_formatted): Do not check for sizeof
9867         type being greater than sizeof of host's LONGEST.  Always use
9868         unpack_long() unless format 'f' chosen.
9869
9870 2004-02-19  Joel Brobecker  <[email protected]>
9871
9872         Committed by Elena Zannoni  <[email protected]>
9873
9874         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9875         contains a symbol wich is the best, non-exact match for the given
9876         pc.  Update comments.
9877
9878 2004-02-19  Elena Zannoni  <[email protected]>
9879
9880         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9881         macro, which was part of the now removed Mach 3 port.
9882         * utils.c (request_quit): Ditto.
9883
9884 2004-02-18  Mark Kettenis  <[email protected]>
9885
9886         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9887         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9888
9889 2004-02-18  Ulrich Weigand <[email protected]>
9890
9891         Committed by Mark Kettenis  <[email protected]>.
9892
9893         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9894         Define.
9895
9896 2004-02-18  Andrew Cagney  <[email protected]>
9897
9898         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9899         CONFIG_INSTALL and CONFIG_UNINSTALL.
9900         * configure: Re-generate.
9901         * interps.h (INTERP_TUI): Define.
9902         * Makefile.in: Update dependencies.
9903         (TUI): New macro.
9904         (tui-main.o): Specify dependencies.
9905         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9906         * tui/tui-main.c: New file.
9907
9908 2004-02-18  Mark Kettenis  <[email protected]>
9909
9910         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9911         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9912         dependencies.
9913         * configure.host: Add x86_64-*-openbsd*.
9914         * configure.tgt: Add x86_64-*-openbsd*.
9915         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9916
9917         * tui/tui.c: Don't include <malloc.h>.
9918
9919         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9920         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9921         amd64nbsd-tdep.c.
9922
9923         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9924         static.  Remove extraneous whitespace.
9925         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9926         static.
9927
9928 2004-02-17  Jim Blandy  <[email protected]>
9929
9930         * findvar.c (value_from_register): Doc fix.
9931
9932 2004-02-17  Ulrich Weigand <[email protected]>
9933
9934         Committed by Jim Blandy  <[email protected]>.
9935
9936         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9937         CORE_ADDR as type for selectors.  Correct types for GNU run time
9938         message lookup function to use double indirection.
9939         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9940         * objc-lang.h (lookup_child_selector): Adapt prototype.
9941
9942         * s390-nat.c (SUBOFF): New macro.
9943         (supply_gregset, fill_gregset): Use it to handle debugging
9944         of 32-bit exectuables running under a 64-bit kernel.
9945         * s390-tdep.c: Include "solib-svr4.h".
9946         (s390_svr4_fetch_link_map_offset): New function.
9947         (s390x_svr_fetch_link_map_offset): Likewise.
9948         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9949         * Makefile.in (s390-tdep.o): Update dependencies.
9950
9951         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9952         "frame-unwind.h".
9953         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
9954         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9955         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9956         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9957         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9958         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9959         S390_SIGNAL_FRAMESIZE,
9960         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9961         (struct frame_extra_info): Remove.
9962         (s390_memset_extra_info): Remove.
9963         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9964         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9965         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9966         (is_rse): Renamed to ...
9967         (is_rsy): ... this.  Support long displacements.
9968         (is_rxe): Renamed to ...
9969         (is_rxy): ... this.  Support long displacements.
9970         (compute_x_addr): Support long displacements.
9971         (struct s390_prologue_data): New data type.
9972         (s390_on_stack): Change API to use struct s390_prologue_data.
9973         (s390_store): Reimplement.
9974         (s390_load): New function.
9975         (s390_get_signal_frame_info): Remove.
9976         (s390_get_frame_info): Remove, replace by ...
9977         (s390_analyze_prolog): ... this new function.
9978         (s390_check_function_end): Remove.
9979         (s390_function_start): Remove.
9980         (s390_frameless_function_invokation): Remove.
9981         (s390_is_sigreturn): Remove.
9982         (s390_init_frame_pc_first): Remove.
9983         (s390_init_frame_extra_info): Remove.
9984         (s390_frame_init_saved_regs): Remove.
9985         (s390_frame_saved_pc_nofix): Remove.
9986         (s390_frame_saved_pc): Remove.
9987         (s390_frame_chain): Remove.
9988         (s390_fp_regnum, s390_read_fp): Remove.
9989         (s390_pop_frame_regular, s390_pop_frame): Remove.
9990         (s390_saved_pc_after_call): Remove.
9991         (s390_skip_prologue): Reimplement.
9992         (s390_in_function_epilogue_p): Support long displacements.
9993         (struct s390_unwind_cache): New data structure.
9994         (s390_frame_unwind_cache): New function.
9995         (s390_prologue_frame_unwind_cache): Likewise.
9996         (s390_backchain_frame_unwind_cache): Likewise.
9997         (s390_frame_this_id, s390_frame_prev_register): Likewise.
9998         (s390_frame_unwind): Define.
9999         (s390_frame_sniffer): New function.
10000         (struct s390_pltstub_unwind_cache): New data structure.
10001         (s390_pltstub_frame_unwind_cache): New function.
10002         (s390_pltstub_frame_this_id): Likewise.
10003         (s390_pltstub_frame_prev_register): Likewise.
10004         (s390_pltstub_frame_unwind): Define.
10005         (s390_pltstub_frame_sniffer): New function.
10006         (struct s390_sigtramp_unwind_cache): New data structure.
10007         (s390_sigtramp_frame_unwind_cache): New function.
10008         (s390_sigtramp_frame_this_id): Likewise.
10009         (s390_sigtramp_frame_prev_register): Likewise.
10010         (s390_sigtramp_frame_unwind): Define.
10011         (s390_sigtramp_frame_sniffer): New function.
10012         (s390_frame_base_address, s390_local_base_address): New functions.
10013         (s390_frame_base): Define.
10014         (s390_unwind_pc, s390_unwind_sp): New function.
10015         (s390_push_dummy_call): Use new frame base location.
10016         (s390_unwind_dummy_id): Likewise.
10017         (s390_gdbarch_init): Remove calls to:
10018         set_gdbarch_frameless_function_invocation,
10019         set_gdbarch_deprecated_init_frame_pc,
10020         set_gdbarch_deprecated_frame_chain,
10021         set_gdbarch_deprecated_frame_init_saved_regs,
10022         set_gdbarch_deprecated_pop_frame,
10023         set_gdbarch_deprecated_init_extra_frame_info,
10024         set_gdbarch_deprecated_init_frame_pc_first,
10025         set_gdbarch_deprecated_target_read_fp,
10026         set_gdbarch_deprecated_frame_saved_pc,
10027         set_gdbarch_deprecated_saved_pc_after_call,
10028         set_gdbarch_deprecated_fp_regnum.
10029         Add calls to:
10030         set_gdbarch_in_solib_call_trampoline,
10031         frame_unwind_append_sniffer,
10032         frame_base_set_default,
10033         set_gdbarch_unwind_pc,
10034         set_gdbarch_unwind_sp.
10035         * Makefile.in (s390-tdep.o): Update dependencies.
10036
10037         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10038         (S390_STACK_FRAME_OVERHEAD): Remove.
10039         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10040         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10041         (s390_promote_integer_argument): Remove.
10042         (s390_cannot_extract_struct_value_address): Remove.
10043         (s390_use_struct_convention, s390_store_struct_return): Remove.
10044         (s390_extract_return_value, s390_store_return_value): Remove.
10045         (s390_return_value_convention, s390_return_value): New functions.
10046         (is_float_singleton): Handle typedefs.
10047         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10048         Remove, replace by ...
10049         (s390_function_arg_pass_by_reference, s390_function_arg_float,
10050         s390_function_arg_integer): ... these new functions.
10051         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10052         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10053         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10054         Fill in tdep->abi.
10055         Remove calls to:
10056         set_gdbarch_deprecated_store_struct_return,
10057         set_gdbarch_deprecated_extract_return_value,
10058         set_gdbarch_deprecated_store_return_value,
10059         set_gdbarch_use_struct_convention,
10060         set_gdbarch_extract_struct_value_address,
10061         set_gdbarch_deprecated_pc_in_call_dummy,
10062         set_gdbarch_deprecated_push_arguments,
10063         set_gdbarch_deprecated_save_dummy_frame_tos,
10064         set_gdbarch_deprecated_push_return_address,
10065         set_gdbarch_deprecated_sizeof_call_dummy_words,
10066         set_gdbarch_deprecated_call_dummy_words,
10067         set_gdbarch_deprecated_dummy_write_sp.
10068         Add calls to:
10069         set_gdbarch_push_dummy_call,
10070         set_gdbarch_unwind_dummy_id,
10071         set_gdbarch_return_value.
10072
10073         * config/s390/nm-linux.h: Update comments.
10074         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10075         (STOPPED_BY_WATCHPOINT): Redefine.
10076         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10077         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10078         (s390_stopped_by_watchpoint): Likewise.
10079         (watch_area_cnt): Remove.
10080         * s390-nat.c: Update comments.
10081         (watch_area): Remove typedef.
10082         Global replace watch_area by struct watch_area.
10083         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10084         (s390_stopped_by_watchpoint): Remove pid argument,
10085         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
10086         (s390_fix_watch_points): Remove pid argument,
10087         use s390_inferior_tid.  Recompute area spanned by watchpoints.
10088         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10089         argument.  Reimplement.
10090
10091         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
10092         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10093         (FETCH_INFERIOR_REGISTERS): Define.
10094         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10095         core-regset.o.
10096         * config/s390/s390x.mt: Remove.
10097         * config/s390/tm-s390.h: Remove.
10098         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10099         (TARGET_ELF64): Remove.
10100         (SKIP_TRAMPOLINE_CODE): Do not undefine.
10101         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10102         s390*-*-* case; always set gdb_target to s390.
10103         * regformats/reg-s390.dat: Remove control registers.
10104         * regformats/reg-s390x.dat: Likewise.
10105         * s390-tdep.h: New file.
10106         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10107         Include "inferior.h" and "s390-tdep.h".
10108         Remove private definition of offsetof.
10109         (s390_register_u_addr): Remove.
10110         (regmap_gregset, regmap_fpregset): Define.
10111         (supply_gregset, fill_gregset): Reimplement.
10112         (supply_fpregset, fill_fpregset): Likewise.
10113         (s390_inferior_tid): New function.
10114         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10115         (fetch_inferior_registers, store_inferior_registers): Likewise.
10116         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
10117         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
10118         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10119         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10120         (struct gdbarch_tdep): Define.
10121         (struct s390_register_info): Define.
10122         (s390_register_info): New variable.
10123         (s390_register_name): Reimplement.
10124         (s390_register_type): New function.
10125         (s390_register_raw_size, s390x_register_raw_size): Remove.
10126         (s390_cannot_fetch_register): Remove.
10127         (s390_register_byte): Remove.
10128         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10129         (s390_dwarf_regmap): New variable.
10130         (s390_dwarf_reg_to_regnum): New function.
10131         (s390_stab_reg_to_regnum): Remove.
10132         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10133         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10134         (s390_convert_register_p): Likewise.
10135         (s390_register_to_value, s390_value_to_register): Likewise.
10136         (s390_register_reggroup_p): Likewise.
10137         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10138         s390_gregset, s390x_gregset, s390_fpregset): New variables.
10139         (s390_supply_regset, s390_regset_from_core_section): New functions.
10140         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10141         (S390_FPR_SIZE): Likewise.
10142         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
10143         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10144         (S390_NUM_GPRS): Move here from tm-s390.h.
10145         (S390_NUM_FPRS): Likewise.
10146         (s390_in_function_epilogue_p): New function.
10147         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10148         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10149         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10150         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10151         Replace S390_FP_REGNUM by S390_SP_REGNUM.
10152         Remove calls to:
10153         set_gdbarch_deprecated_max_register_raw_size,
10154         set_gdbarch_deprecated_max_register_virtual_size,
10155         set_gdbarch_deprecated_register_byte,
10156         set_gdbarch_cannot_fetch_register,
10157         set_gdbarch_cannot_store_register,
10158         set_gdbarch_deprecated_register_size,
10159         set_gdbarch_deprecated_register_raw_size,
10160         set_gdbarch_deprecated_register_virtual_size,
10161         set_gdbarch_deprecated_register_virtual_type,
10162         set_gdbarch_deprecated_register_bytes.
10163         Add calls to:
10164         set_gdbarch_num_pseudo_regs,
10165         set_gdbarch_register_type,
10166         set_gdbarch_convert_register_p,
10167         set_gdbarch_register_to_value,
10168         set_gdbarch_value_to_register,
10169         set_gdbarch_register_reggroup_p,
10170         set_gdbarch_regset_from_core_section,
10171         set_gdbarch_pseudo_register_read,
10172         set_gdbarch_pseudo_register_write,
10173         set_gdbarch_in_function_epilogue_p.
10174         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10175         (s390_tdep_h): New variable.
10176
10177 2004-02-17  Jim Blandy  <[email protected]>
10178
10179         * findvar.c (value_from_register): If the type has no length, just
10180         return an acceptable value --- don't report an internal error.
10181
10182         * stabsread.c (read_type): If we find any type numbers that are
10183         forward references, complain if the references aren't resolved by
10184         the time we're finished reading.
10185         (cleanup_undefined_types): Make error message more appropriate for
10186         a complaint.
10187
10188 2004-02-17  Elena Zannoni  <[email protected]>
10189
10190         * Makefile.in (defs_h): Remove dependency on progress_h.
10191         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10192         progress.h.
10193         * main.c (captured_main): Delete use of START_PROGRESS and
10194         END_PROGRESS.
10195
10196 2004-02-17  Elena Zannoni  <[email protected]>
10197
10198         * objfiles.c (terminate_minimal_symbol_table): Add back
10199         initialization of MSYMBOL_TYPE.
10200
10201 2004-02-17  David Mosberger  <[email protected]>
10202
10203         Committed by Andrew Cagney.
10204         * Makefile.in (ia64_tdep_h): New macro.
10205         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10206         (ia64-tdep.o): Likewise.
10207         * ia64-tdep.h: New file.
10208         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
10209         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10210         (ia64_aix_sigcontext_register_address): Likewise.
10211         (ia64_linux_getunwind_table): Delete declaration.
10212         * ia64-linux-tdep.c: Likewise.
10213
10214 2004-02-17  Corinna Vinschen  <[email protected]>
10215
10216         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10217         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10218         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10219
10220 2004-02-17  Andrew Cagney  <[email protected]>
10221
10222         * symtab.c (skip_prologue_using_sal): New function.
10223         * symtab.h (skip_prologue_using_sal): Declare.
10224         * frv-tdep.c: Include "symtab.h".
10225         (skip_prologue_using_sal): Delete function.
10226         * mips-tdep.c (skip_prologue_using_sal): Delete function.
10227         * rs6000-tdep.c (refine_prologue_limit): Mention
10228         skip_prologue_using_sal.
10229         * ia64-tdep.c (refine_prologue_limit): Ditto.
10230         * Makefile.in: Update dependencies.
10231
10232 2004-02-16  Andrew Cagney  <[email protected]>
10233
10234         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10235         START_INFERIOR_TRAPS_EXPECTED.
10236         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10237         START_INFERIOR_TRAPS_EXPECTED.
10238         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10239         Delete macro.
10240         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10241         macro, moved to "nm-osf.h".  Update copyright.
10242         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10243         update copyright.
10244
10245         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10246         and function replacing FRAMELESS_FUNCTION_INVOCATION.
10247         * blockframe.c (legacy_frameless_look_for_prologue): Rename
10248         frameless_look_for_prologue.
10249         * frame.h (legacy_frameless_look_for_prologue): Rename
10250         frameless_look_for_prologue.
10251         * gdbarch.h, gdbarch.c: Re-generate.
10252         * sh64-tdep.c (sh64_gdbarch_init): Update.
10253         * sh-tdep.c (sh_gdbarch_init): Update.
10254         * s390-tdep.c (s390_gdbarch_init): Update.
10255         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10256         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10257         * m68k-tdep.c (m68k_gdbarch_init): Update.
10258         (delta68_frame_args_address): Update.
10259         * m32r-tdep.c (m32r_gdbarch_init): Update.
10260         * hppa-tdep.c (hppa_gdbarch_init): Update.
10261         * h8300-tdep.c (h8300_gdbarch_init): Update.
10262         * frv-tdep.c (frv_gdbarch_init): Update.
10263         (frv_frameless_function_invocation): Update.
10264         * cris-tdep.c (cris_gdbarch_init): Update.
10265         (cris_frameless_function_invocation): Update.
10266         * avr-tdep.c (avr_gdbarch_init): Update.
10267         * arm-tdep.c (arm_gdbarch_init): Update.
10268         * stack.c (frame_info): Update, call predicate.
10269         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10270         * frame.c (legacy_get_prev_frame): Update, call predicate..
10271         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10272         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10273         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10274         invocation.
10275         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10276         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10277         * vax-tdep.c (vax_gdbarch_init): Ditto.
10278
10279         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10280         function.
10281
10282 2004-02-16  Daniel Jacobowitz  <[email protected]>
10283
10284         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10285         initializations.
10286
10287 2004-02-16  Andrew Cagney  <[email protected]>
10288
10289         * tui/tui-windata.c: Include "gdb_string.h".
10290         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10291         * tui/tui-layout.c, tui/tui-command.c: Ditto.
10292         * Makefile.in: Update dependencies.
10293
10294 2004-02-16  Daniel Jacobowitz  <[email protected]>
10295
10296         * Makefile.in (infrun.o): Add $(gdb_assert_h).
10297         * infrun.c: Include "gdb_assert.h".
10298         (singlestep_ptid, saved_singlestep_ptid)
10299         (stepping_past_singlestep_breakpoint): New variables.
10300         (resume): Set singlestep_ptid.  Check for singlestep thread
10301         hop.
10302         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10303         (handle_inferior_event): Handle singlestep thread hop.
10304
10305 2004-02-16  Andrew Cagney  <[email protected]>
10306
10307         * dwarf2-frame.c (dwarf2_frame_ops): New function.
10308         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10309         (dwarf2_frame_init_reg): Ditto.
10310
10311         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
10312         suggested by Joshua Neuheisel
10313
10314         * configure.in: Always check for curses, including pdcurses.
10315         Warn, instead of error, when no curses are found.  Enable TUI when
10316         curses is available.
10317         * configure: Re-generate.
10318
10319 2004-02-16  Corinna Vinschen  <[email protected]>
10320
10321         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10322         sh_sh4_register_convert_to_virtual.
10323         (sh_register_convert_to_raw): Rename from
10324         sh_sh4_register_convert_to_raw.
10325         (sh_pseudo_register_read): Accomodate above name change.
10326         (sh_pseudo_register_write): Ditto.
10327
10328 2004-02-16  Corinna Vinschen  <[email protected]>
10329
10330         * sh-tdep.c (sh_generic_register_name): Remove.
10331         (sh_gdbarch_init): Use sh_sh_register_name in default case.
10332
10333 2004-02-15  Andrew Cagney  <[email protected]>
10334
10335         * configure.in (build_warnings): Add -Wunused-function.
10336         * configure: Re-generate.
10337
10338         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10339         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10340
10341         * procfs.c (procfs_init_inferior): Assume that
10342         START_INFERIOR_TRAPS_EXPECTED is defined.
10343         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10344         * config/ns32k/tm-nbsd.h: Delete file,
10345         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10346
10347         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10348         * config/vax/tm-vax.h: Delete file.
10349
10350         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10351         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10352         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10353         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10354         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10355         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10356         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10357
10358 2004-02-15  Mark Kettenis  <[email protected]>
10359
10360         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10361         * dwarf2-frame.c (dwarf2_frame_data): New variable.
10362         (struct dwarf2_frame_ops): New.
10363         (dwarf2_frame_default_init_reg): New function, based on
10364         dwarf2_frame_init_reg.
10365         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10366         (dwarf2_frame_init_reg): Call architecture-specific function.
10367         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10368         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10369         instead of dwarf2_frame_data.
10370         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10371         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10372
10373 2004-02-15  Andrew Cagney  <[email protected]>
10374
10375         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10376         register_gdbarch_swap.
10377         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10378         * f-lang.c (_initialize_f_language): Update, use
10379         DEPRECATED_REGISTER_GDBARCH_SWAP.
10380         * remote.c (_initialize_remote): Ditto.
10381         * regcache.c (_initialize_regcache): Ditto.
10382         * parse.c (_initialize_parse): Ditto.
10383         * infrun.c (_initialize_infrun): Ditto.
10384         * mi/mi-main.c (_initialize_mi_main): Ditto.
10385         * gdbtypes.c (_initialize_gdbtypes): Ditto.
10386
10387         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10388         poking .cacheable directly.
10389         * symfile.c (symfile_bfd_open): Ditto.
10390
10391         * Makefile.in: Update all dependencies.
10392
10393         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10394         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
10395         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
10396         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10397         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10398
10399 2004-02-14  Andrew Cagney  <[email protected]>
10400
10401         * arch-utils.c (legacy_convert_register_p): Check
10402         DEPRECATED_REGISTER_CONVERTIBLE_P.
10403         * findvar.c (value_of_register): Ditto.
10404
10405         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10406         * gdbarch.h, gdbarch.c: Re-generate.
10407         * arch-utils.c (deprecated_register_convertible_not): Delete.
10408         * arch-utils.h (deprecated_register_convertible_not): Delete.
10409         * mi/mi-main.c (get_register): Update.  Update copyright.
10410         * infcmd.c (default_print_registers_info): Update.
10411
10412         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10413         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10414         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10415         * gdbarch.h, gdbarch.c: Re-generate.
10416         * frame.c (deprecated_get_next_frame_hack): Delete function.
10417         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10418         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10419         Update.
10420         * infcall.c (call_function_by_hand): Update.
10421
10422 2004-02-14  Elena Zannoni  <[email protected]>
10423
10424         * symfile.c (init_entry_point_info, entry_point_address): Move
10425         from here...
10426         * objfiles.c (init_entry_point_info, entry_point_address):..to
10427         here.
10428         * symfile.h (init_entry_point_info, entry_point_address): Remove
10429         prototypes.
10430         * objfiles.h (init_entry_point_info, entry_point_address):Add
10431         prototypes.
10432         * cris-tdep.c: Remove include of symfile.h. Add include of
10433         objfiles.h.
10434         * infcall.c: Ditto.
10435         * mcore-tdep.c: Ditto.
10436         * mn10300-tdep.c: Ditto.
10437         * sh64-tdep.c: Ditto.
10438         * v850-tdep.c: Ditto.
10439         * arm-tdep.c: Remove include of symfile.h.
10440         * blockframe.c: Ditto.
10441         * coffread.c: Ditto.
10442         * dbxread.c: Ditto.
10443         * dwarf2read.c: Ditto.
10444         * dwarfread.c: Ditto.
10445         * frv-tdep.c: Ditto.
10446         * ia64-tdep.c: Ditto.
10447         * mdebugread.c: Ditto.
10448         * mipsread.c: Ditto.
10449         * rs6000-tdep.c: Ditto.
10450         * s390-tdep.c: Ditto.
10451         * sh-tdep.c: Ditto.
10452         * xstormy16-tdep.c: Ditto.
10453         * gdbarch.sh: Remove include of symfile.h.
10454         * gdbarch.c: Regenerate.
10455         * solib-irix.c (enable_break): Use entry_point_address().
10456         Add comment about include file.
10457         * xcoffread.c: Add comment about include file.
10458         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10459         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10460         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10461         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10462         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10463
10464 2004-02-13  Andrew Cagney  <[email protected]>
10465
10466         * corelow.c (core_xfer_partial): Use "struct bfd_section".
10467         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10468         copyright.
10469         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10470
10471 2004-02-12  Fred Fish  <[email protected]>
10472
10473         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10474          set_gdbarch_store_return_value.
10475
10476 2004-02-12  Andrew Cagney  <[email protected]>
10477
10478         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10479         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10480         (interrupt_query): Ditto.
10481         (ofunc): Delete unused variable.
10482         * cris-tdep.c (cris_abi): Delete unused function.
10483         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10484         (cris_get_wide_opcode, cris_get_short_size): Ditto.
10485         (cris_get_asr_quick_shift_steps): Ditto.
10486         (cris_skip_prologue_frameless_p): Ditto.
10487         * arm-tdep.c (arm_push_return_address): Delete unused function.
10488         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10489         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10490         * s390-tdep.c (s390_function_start): Delete unused function.
10491
10492 2004-02-12  Andrew Cagney  <[email protected]>
10493
10494         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10495         gdbarch.h, gdbarch.c: Re-generate.
10496         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10497         to generic_prologue_frameless_p.
10498         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10499         * arch-utils.c (generic_prologue_frameless_p): Delete function.
10500
10501 2004-02-11  Daniel Jacobowitz  <[email protected]>
10502
10503         * mips-linux-tdep.c: Include "frame.h".
10504         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10505         (mips_linux_skip_resolver): New functions.
10506         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10507         and set_gdbarch_in_solib_call_trampoline.
10508         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10509         to after set_gdbarch_in_solib_return_trampoline.  Only set the
10510         solib hooks to mips16 functions if the OS ABI is unknown.
10511         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10512         including "config/tm-linux.h".
10513         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10514         * Makefile.in (mips-linux-tdep.o): Update.
10515
10516 2004-02-11  David Carlton  <[email protected]>
10517
10518         * linespec.c (decode_compound): Only look for a class symbol when
10519         considering all but the rightmost component.
10520
10521 2004-02-11  Andrew Cagney  <[email protected]>
10522
10523         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10524         abi code are are separatly grouped.
10525
10526 2004-02-11  Andrew Cagney  <[email protected]>
10527
10528         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10529         * gdbarch.h, gdbarch.c: Re-generate.
10530         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10531         * v850-tdep.c (v850_gdbarch_init): Update.
10532         * sh64-tdep.c (sh64_gdbarch_init): Update.
10533         * sh-tdep.c (sh_gdbarch_init): Update.
10534         * s390-tdep.c (s390_gdbarch_init): Update.
10535         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10536         * mips-tdep.c (mips_gdbarch_init): Update.
10537         * mcore-tdep.c (mcore_gdbarch_init): Update.
10538         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10539         * m32r-tdep.c (m32r_gdbarch_init): Update.
10540         * ia64-tdep.c (ia64_gdbarch_init): Update.
10541         * hppa-tdep.c (hppa_gdbarch_init): Update.
10542         * h8300-tdep.c (h8300_gdbarch_init): Update.
10543         * frv-tdep.c (frv_gdbarch_init): Update.
10544         * d10v-tdep.c (d10v_gdbarch_init): Update.
10545         * cris-tdep.c (cris_gdbarch_init): Update.
10546         * avr-tdep.c (avr_gdbarch_init): Update.
10547         * arm-tdep.c (arm_gdbarch_init): Update.
10548         * alpha-tdep.c (alpha_gdbarch_init): Update.
10549
10550 2004-02-11  Corinna Vinschen  <[email protected]>
10551
10552         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10553         comma.
10554         (sh_sh4al_dsp_register_name): Ditto.
10555
10556 2004-02-10  Andrew Cagney  <[email protected]>
10557
10558         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10559         (mips_init_frame_pc_first): Delete function.
10560         (mips_frame_saved_pc): Delete function.
10561         (mips_frame_chain): Delete function.
10562         (mips_init_extra_frame_info): Delete function.
10563         (mips_xfer_register): Delete unused variable "reg".
10564         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10565         (mips_n32n64_return_value): Delete unused variable "reg".
10566         (mips_n32n64_return_value): Delete unused variable "pos".
10567         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10568         (mips_o32_return_value): Delete unused variable "pos".
10569         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10570         (mips_print_fp_register): Delete unused variable "namelen"
10571         (mips_print_fp_register): Delete unused variable "flt2"
10572         (get_frame_pointer): Delete function.
10573         (cached_proc_desc): Delete static variable.
10574         (mips_pop_frame): Delete function.
10575         (mips_find_saved_regs): Delete function.
10576         (mips_get_saved_register): Delete function.
10577         (mips_saved_pc_after_call): Delete function.
10578         (SIGFRAME_BASE): Delete macro.
10579         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10580         (SIGFRAME_PC_OFF): Delete macro.
10581         (SIGFRAME_REGSAVE_OFF): Delete macro.
10582         (mips_dump_tdep): Do not print deleted macro definitions.
10583
10584 2004-02-10  Andrew Cagney  <[email protected]>
10585
10586         * Makefile.in (SFILES): Remove explictly listed tui files.
10587         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10588
10589 2004-02-10  Jeff Johnston  <[email protected]>
10590
10591         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10592         to use paddr functions to format ia64 addresses and long values.
10593         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10594         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10595         (get_kernel_table, ia64_find_proc_info_x): Ditto.
10596         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10597         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10598
10599 2004-02-10  Andrew Cagney  <[email protected]>
10600
10601         * defs.h: Do not include "tui.h".
10602         * gdb_curses.h: New file.
10603         * tui/tui-hooks.h: New file.
10604         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10605         (tui_install_hooks, tui_remove_hooks): Delete declarations.
10606         (tui_initialize_io): Delete declaration.
10607         (tui_initialize_readline: Delete redundant declaration.
10608         (struct tui_point): Delete definition.
10609         * tui/tui-data.h (struct tui_point): Define.
10610         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10611         * utils.c: Include "tui/tui.h".
10612         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10613         * printcmd.c [TUI]: Include "tui/tui.h".
10614         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10615         * tui/tui-command.c: Include "gdb_curses.h".
10616         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10617         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10618         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10619         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10620         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10621         * Makefile.in: Update all dependencies.
10622         (tui_hooks_h, gdb_curses_h): Define.
10623         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10624
10625 2004-02-10  Elena Zannoni  <[email protected]>
10626
10627         * objfiles.h (struct objfile): Remove unused fields auxf1 and
10628         auxf2. Add comments about some other rarely used fields.
10629
10630 2004-02-10  Andrew Cagney  <[email protected]>
10631
10632         * Makefile.in (init.c): Fix script removing duplicates. Problem
10633         reported by Peter Schauer.
10634
10635 2004-02-09  Elena Zannoni  <[email protected]>
10636
10637         * bcache.c (bcache_xmalloc): Use obstack_init instead of
10638         obstack_specify_allocation.
10639         * objfiles.c (allocate_objfile): Ditto.
10640         * solib-sunos.c (solib_add_common_symbols)
10641         (allocate_rt_common_objfile): Ditto.
10642         * symfile.c (reread_symbols): Ditto.
10643         * gdb_obstack.h: Add comment.
10644
10645 2004-02-09  Elena Zannoni  <[email protected]>
10646
10647         * linespec.c (decode_line_1, locate_first_half)
10648         (decode_compound, lookup_prefix_sym): Update comments. Delete old
10649         commented out code.
10650
10651 2004-02-09  Daniel Jacobowitz  <[email protected]>
10652
10653         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10654         obstack_free.
10655
10656 2004-02-09  Andrew Cagney  <[email protected]>
10657
10658         * blockframe.c (find_pc_partial_function): If find_pc_overlay
10659         fails, try find_pc_section.  Fix PR c++/1267.
10660         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10661         instead of find_pc_mapped_section.
10662         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10663         not default to the section containing PC.  Fix PR symtab/1519.
10664
10665 2004-02-09  Andrew Cagney  <[email protected]>
10666
10667         * Makefile.in (mips-tdep.o): Update dependencies.
10668         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10669         "trad-frame.h".
10670         (mips_unwind_pc): Return the pseudo PC register.
10671         (mips_unwind_dummy_id): New function.
10672         (mips16_fetch_instruction): New function.
10673         (mips32_fetch_instruction): New function.
10674         (struct mips_frame_cache): Define.
10675         (mips_mdebug_frame_cache): New function.
10676         (mips_mdebug_frame_this_id): New function.
10677         (mips_mdebug_frame_prev_register): New function.
10678         (mips_mdebug_frame_unwind): Define.
10679         (mips_mdebug_frame_sniffer): New function.
10680         (mips_mdebug_frame_base_address): New function.
10681         (mips_mdebug_frame_base): Define.
10682         (mips_mdebug_frame_base_sniffer): New function.
10683         (mips_gdbarch_init): Append unwind and base sniffers.  Set
10684         unwind_dummy_id.
10685
10686 2004-02-08  Andrew Cagney  <[email protected]>
10687
10688         * frame.c: Print both the register number and name.
10689
10690         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
10691         and a sed into a single sed.  Make .c and .o patterns more robust.
10692         (OBS): Delete.
10693         (INIT_FILES): Replace OBS with COMMON_OBS.
10694         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10695
10696 2004-02-08  Mark Kettenis  <[email protected]>
10697
10698         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10699         the PT_WCOOKIE request.
10700
10701 2004-02-08  Andrew Cagney  <[email protected]>
10702
10703         * mips-tdep.c (mips_unwind_pc): New function.
10704         (mips_gdbarch_init): Set mips_unwind_pc.
10705
10706         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10707         (get_frame_id): Allow the UNKNOWN_FRAME.
10708         (frame_register_unwind, get_frame_type): Ditto.
10709
10710         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10711         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
10712         unwind_dummy_id indicates a legacy frame.
10713
10714         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10715         * configure: Re-generate.
10716
10717         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10718         methods.
10719
10720 2004-02-08  Andrew Cagney  <[email protected]>
10721
10722         * configure.in (CONFIG_ALL): Set to Makefile target, and not
10723         makefile macro.
10724         * configure: Re-generate.
10725         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10726         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10727         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10728         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10729         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10730         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10731         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10732         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10733         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10734         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10735
10736 2004-02-07  Andrew Cagney  <[email protected]>
10737
10738         * Makefile.in: Update all dependencies.
10739
10740         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10741         * configure: Re-generate.
10742         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10743         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10744         (COMMON_OBS): Add "main.o" and "annotate.o".
10745         (ANNOTATE_OBS): Delete.
10746         (OBS): Remove ANNOTATE_OBS.
10747         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10748         CONFIG_INITS.
10749         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10750         against CONFIG_OBS and "main.o".
10751         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10752         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10753
10754         * tui/tui-command.c: Include "gdb_string.h", delete register
10755         attribute, use ISO-C function signatures.
10756         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10757         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10758         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10759         * tui/tui.c: Ditto.
10760
10761         * tui/tui-command.c: Change variable and function names to lower
10762         case.
10763         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10764         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10765         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10766         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10767         * tui/tui-winsource.c, tui/tui.c: Ditto.
10768
10769 2004-02-07  Elena Zannoni  <[email protected]>
10770
10771         * buildsym.c (free_pending_blocks, finish_block)
10772         (record_pending_block, make_blockvector, end_symtab): Replace
10773         symbol_obstack with objfile_obstack.
10774         * coffread.c (process_coff_symbol, coff_read_struct_type)
10775         (coff_read_enum_type): Ditto.
10776         * cp-namespace.c (initialize_namespace_symtab)
10777         (check_one_possible_namespace_symbol): Ditto.
10778         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10779         (dwarf2_symbol_mark_computed): Ditto.
10780         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10781         * elfread.c (elf_symtab_read): Ditto.
10782         * hpread.c (hpread_symfile_init, hpread_symfile_init)
10783         (hpread_read_enum_type, hpread_read_function_type)
10784         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10785         Ditto.
10786         * jv-lang.c (get_java_class_symtab, add_class_symbol)
10787         (java_link_class_type): Ditto.
10788         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10789         (new_symbol): Ditto.
10790         * minsyms.c (install_minimal_symbols): Ditto.
10791         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10792         (terminate_minimal_symbol_table): Replace symbol_obstack with
10793         objfile_obstack.
10794         (free_objfile): Remove freeing of symbol_obstack.
10795         * objfiles.h: Remove symbol_obstack field.
10796         * pa64solib.c (add_to_solist): Replace symbol_obstack with
10797         objfile_obstack.
10798         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10799         symbol_obstack.
10800         (solib_add_common_symbols): Replace symbol_obstack with
10801         objfile_obstack.
10802         * somsolib.c (som_solib_add): Ditto.
10803         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10804         (common_block_start, common_block_end): Ditto.
10805         * symfile.c (reread_symbols): Remove freeing and init of
10806         symbol_obstack.
10807         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10808         * symfile.h: Update comment.
10809         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10810         stats printing.
10811         * symtab.c (symbol_set_names): Replace symbol_obstack with
10812         objfile_obstack.
10813         * symtab.h (struct general_symbol_info, struct minimal_symbol):
10814         Update comments.
10815         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10816         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10817         objfile_obstack.
10818
10819 2004-02-07  Andrew Cagney  <[email protected]>
10820
10821         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10822         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
10823         fields and variables.
10824         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10825         (m_beInvisible): Delete macro.
10826         * tui/tui-data.h: Fix case case fields and variables.
10827         (m_genWinPtrIsNull): Delete macro.
10828         (tui_win_list): Rename winList.
10829         (TUI_SRC_WIN): Rename srcWin.
10830         (TUI_DISASM_WIN): Rename disassemWin.
10831         (TUI_DATA_WIN): Rename dataWin.
10832         (TUI_CMD_WIN): Rename cmdWin.
10833         (m_genWinPtrNotNull): Delete macro.
10834         (m_winPtrIsNull): Delete macro.
10835         (m_winPtrNotNull): Delete macro.
10836         (tui_win_is_source_type): Replace m_winIsSourceType
10837         (tui_win_is_auxillary): Replace m_winIsAuzillary.
10838         (tui_win_has_locator): Replace m_hasLocator.
10839         (tui_set_win_highlight): Replace m_setWinHighlightOn and
10840         m_setWinHighlightOff.
10841         * tui/tui-data.c: Update references.
10842         (tui_win_is_source_type, tui_set_win_highlight): New functions.
10843         (tui_win_has_locator, tui_win_is_auxillary): New functions.
10844         * tui/tui-command.c, tui/tui-disasm.c: Update references.
10845         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10846         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10847         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10848         * tui/tui-winsource.c, tui/tui.c: Ditto.
10849
10850 2004-02-07  Mark Kettenis  <[email protected]>
10851
10852         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10853         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10854         StackGhost.
10855
10856         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10857         variable `i6' to `i7'.
10858         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10859
10860 2004-02-07  Andrew Cagney  <[email protected]>
10861
10862         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10863         (TuiPoint, TuiPointPtr): Ditto.
10864         (TuiStatus, TuiStatusPtr): Ditto.
10865         (TuiWinType, TuiWinTypePtr): Ditto.
10866         (struct tui_point): Rename _TuiPoint.
10867         (tui_get_low_disassembly_address): Rename
10868         tuiGetLowDisassemblyAddress.
10869         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10870         (tuiFree): Delete declaration.
10871         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10872         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10873         * tui/tui.c (tuiFree): Delete function.
10874         * cli/cli-cmds.c (disassemble_command): Update references.
10875         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10876         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10877         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10878         * tui/tui-winsource.c: Ditto.
10879
10880 2004-02-07  Elena Zannoni  <[email protected]>
10881
10882         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10883         coffstab_build_psymtabs, elfstab_build_psymtabs)
10884         (stabsect_build_psymtabs): Replace psymbol_obstack with
10885         objfile_obstack.
10886         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10887         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10888         Ditto.
10889         * dwarfread.c (scan_compilation_units): Ditto.
10890         * elfread.c (elfstab_offset_sections): Ditto.
10891         * hppa-tdep.c (read_unwind_info): Ditto.
10892         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10893         (hpread_end_psymtab): Ditto.
10894         * mdebugread.c (mdebug_build_psymtabs, add_pending)
10895         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10896         Ditto.
10897         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10898         * objfiles.c (add_to_objfile_sections)
10899         (build_objfile_section_table): Ditto.
10900         (allocate_objfile): Remove init of psymbol_obstack.
10901         (free_objfile): Remove freeing of psymbol_obstack.
10902         * objfiles.h (struct objfile): Remove field
10903         psymbol_obstack. Update comments.
10904         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10905         psymbol_obstack with objfile_obstack.
10906         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10907         psymbol_obstack.
10908         * somread.c (som_symfile_offsets, init_import_symbols)
10909         (init_export_symbols): Replace psymbol_obstack with
10910         objfile_obstack.
10911         * somsolib.c (som_solib_add_solib_objfile): Ditto.
10912         * symfile.c (default_symfile_offsets, syms_from_objfile)
10913         (reread_symbols): Remove freeing and init of psymbol_obstack.
10914         (cashier_psymtab): Update comment.
10915         * symmisc.c (print_objfile_statistics): Don't report stats for
10916         psymbol obstack.
10917         * symtab.h (struct general_symbol_info, struct partial_symtab):
10918         Update comments.
10919         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10920         (xcoff_symfile_offsets): Replace psymbol_obstack with
10921         objfile_obstack.
10922
10923 2004-02-07  Elena Zannoni  <[email protected]>
10924
10925         * objfiles.h (struct objfile): Add objfile_obstack field.
10926         Remove type_obstack field.
10927
10928         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10929         read_structure_scope read_enumeration, new_symbol): Replace
10930         type_obstack with objfile_obstack.
10931         * dwarfread.c (struct_type, enum_type): Ditto.
10932         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10933         (lookup_fundamental_type): Ditto.
10934         * gdbtypes.h (TYPE_ALLOC): Ditto.
10935         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10936         (hpread_read_doc_function_type, hpread_read_struct_type)
10937         (fix_static_member_physnames, hpread_read_array_type)
10938         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10939         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10940         (java_link_class_type): Ditto.
10941         * mdebugread.c (parse_type): Ditto.
10942         * objfiles.c (allocate_objfile, free_objfile): Ditto.
10943         * solib-sunos.c (solib_add_common_symbols): Ditto.
10944         * stabsread.c (define_symbol, read_type, read_member_functions,
10945         read_cpp_abbrev, read_one_struct_field): Ditto.
10946         * symfile.c (reread_symbols): Ditto.
10947         * symmisc.c (print_objfile_statistics): Ditto.
10948
10949 2004-02-07  Andrew Cagney  <[email protected]>
10950
10951         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10952         (tui_exec_info_content): Rename TuiExecInfoContent.
10953         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10954         (TuiWinInfo, TuiWinInfoPtr): Ditto.
10955         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10956         (TuiList, TuiListPtr): Ditto.
10957         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10958         (TuiDataType, TuiDataTypePtr): Ditto.
10959         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10960         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10961         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10962         (TuiSourceElement, TuiSourceElementPtr): Ditto.
10963         (TuiDataElement, TuiDataElementPtr): Ditto.
10964         (TuiWinElement, TuiWinElementPtr): Ditto.
10965         (TuiDataInfo, TuiDataInfoPtr): Ditto.
10966         (TuiCommandElement, TuiCommandElementPtr): Ditto.
10967         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10968         (TuiWhichElement, TuiWhichElementPtr): Ditto.
10969         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10970         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10971         * tui/tui-command.c, tui/tui-data.c: Update references.
10972         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10973         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10974         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10975         * tui/tui-winsource.c, tui/tui.c: Ditto.
10976
10977 2004-02-07  Mark Kettenis  <[email protected]>
10978
10979         * dwarf2-frame.h: Update copyright.
10980         (enum dwarf2_frame_reg_rule): New.
10981         (struct dwarf2_frame_state_reg): New.
10982         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10983         * dwarf2-frame.c: Update copyright.
10984         (enum dwarf2_reg_rule): Remove.
10985         (struct dwarf2_frame_state): Remove defenition of `struct
10986         dwarf2_frame_state_reg'.
10987         (read_reg): Call get_frame_arch to get the architecture instead of
10988         using CURRENT_GDBARCH.
10989         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10990         DWARF2_FRAME_.
10991         (dwarf2_frame_init_reg): New function.
10992         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10993         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
10994         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
10995         tags with DWARF2_FRAME_.
10996         (dwarf2_frame_prev_register): Call get_frame_arch to get the
10997         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
10998         dwarf2_reg_rule' tags with DWARF2_FRAME_.
10999
11000 2004-02-06  Andrew Cagney  <[email protected]>
11001
11002         * tui/tui-data.h (struct tui_list): Rename _TuiList.
11003         (enum tui_data_type): Rename _TuiDataType.
11004         (struct tui_layout_def): Rename _TuiLayoutDef.
11005         (struct tui_source_element): Rename _TuiSourceElement.
11006         (struct tui_data_element): Rename _TuiDataElement.
11007         (struct tui_command_element): Rename _TuiCommandElement.
11008         (struct tui_locator_element): Rename _TuiLocatorElement.
11009         (union tui_which_element): Define.
11010         (struct tui_win_element): Rename _TuiWinElement.
11011         (struct tui_data_info): Rename _TuiDataInfo.
11012         (struct tui_source_info): Rename _TuiSourceInfo.
11013         (struct tui_command_info): Rename _TuiCommandInfo.
11014         (tui_initialize_static_data): Rename initializeStaticData.
11015         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11016         (tui_alloc_win_info): Rename allocWinInfo.
11017         (tui_init_generic_part): Rename initGenericPart.
11018         (tui_init_win_info): Rename initWinInfo.
11019         (tui_alloc_content): Rename allocContent.
11020         (tui_add_content_elements): Rename addContentElements.
11021         (tui_init_content_element): Rename initContentElement.
11022         (tui_free_window): Rename freeWindow.
11023         (tui_free_win_content): Rename freeWinContent.
11024         (tui_free_data_content): Rename freeDataContent.
11025         (tui_free_all_source_wins_content): Rename
11026         freeAllSourceWinsContent.
11027         (tui_del_window): Rename tuiDelWindow.
11028         (tui_del_data_windows): Rename tuiDelDataWindows.
11029         (tui_partial_win_by_name): Rename partialWinByName.
11030         (tui_win_name): Rename winName.
11031         (tui_current_layout): Rename currentLayout.
11032         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11033         (tui_term_height): Rename termHeight.
11034         (tui_set_term_height_to): Rename setTermHeightTo.
11035         (tui_term_width): Rename termWidth.
11036         (tui_set_term_width_to): Rename setTermWidthTo.
11037         (tui_set_gen_win_origin): Rename setGenWinOrigin.
11038         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11039         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11040         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11041         (tui_source_windows): Rename sourceWindows.
11042         (tui_clear_source_windows): Rename clearSourceWindows.
11043         (tui_clear_source_windows_detail): Rename
11044         clearSourceWindowsDetail.
11045         (tui_clear_win_detail): Rename clearWinDetail.
11046         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11047         (tui_default_tab_len): Rename tuiDefaultTabLen.
11048         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11049         (tui_win_with_focus): Rename tuiWinWithFocus.
11050         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11051         (tui_layout_def): Rename tuiLayoutDef.
11052         (tui_win_resized): Rename tuiWinResized.
11053         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11054         (tui_next_win): Rename tuiNextWin.
11055         (tui_prev_win): Rename tuiPrevWin.
11056         (tui_add_to_source_windows): Rename addToSourceWindows.
11057         * tui/tui-winsource.c, tui/tui-win.c: Update references.
11058         * tui/tui-layout.c, tui/tui-source.c: Ditto.
11059         * tui/tui-stack.c, tui/tui-io.c: Ditto.
11060         * tui/tui.c, tui/tui-data.c: Ditto.
11061         * tui/tui-interp.c, tui/tui-data.c: Ditto.
11062         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11063
11064         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
11065         (struct symtab): Declare.
11066         (tui_set_source_content): Rename tuiSetSourceContent.
11067         (tui_show_symtab_source): Rename tuiShowSource.
11068         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11069         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11070         * tui/tui-source.c: Update copyright.  Update references.
11071         * tui/tui-win.c, tui/tui-winsource.c: Update references.
11072         * tui/tui-stack.c: Update references.
11073
11074         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
11075         (struct tui_win_info): Declare.
11076         (tui_scroll_forward): Rename tuiScrollForward.
11077         (tui_scroll_backward): Rename tuiScrollBackward.
11078         (tui_scroll_left): Rename tuiScrollLeft.
11079         (tui_scroll_right): Rename tuiScrollRight.
11080         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11081         (tui_resize_all): Rename tuiResizeAll.
11082         (tui_refresh_all_win): Rename tuiRefreshAll.
11083         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11084         * tui/tui-layout.c, * tui/tui-io.c: Update references.
11085         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11086         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11087
11088         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
11089         (tui_erase_data_content): Rename tuiEraseDataContent.
11090         (tui_display_all_data): Rename tuiDisplayAllData.
11091         (tui_check_data_values): Rename tuiCheckDataValues.
11092         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11093         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11094         (tui_first_data_element_no_in_line): Rename
11095         tuiFirstDataElementNoInLine.
11096         (tui_delete_data_content_windows): Rename
11097         tuiDeleteDataContentWindows.
11098         (tui_refresh_data_win): Rename tuiRefreshDataWin.
11099         (tui_display_data_from): Rename tuiDisplayDataFrom.
11100         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11101         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11102         * tui/tui-win.c, tui/tui-regs.c: Update references.
11103         * tui/tui-layout.c, tui/tui.c: Update references.
11104
11105         * tui/tui-wingeneral.h: Update copyright.
11106         (m_allBeVisible): Delete macro.
11107         (m_allBeInvisible): Delete macro.
11108         (struct tui_gen_win_info): Declare.
11109         (struct tui_win_info): Declare.
11110         (tui_unhighlight_win): Rename unhighlightWin.
11111         (tui_make_visible, tui_make_invisible): Replace makeVisible.
11112         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11113         (tui_make_window): Rename makeWindow.
11114         (tui_copy_win): Rename copyWin.
11115         (tui_box_win): Rename boxWin.
11116         (tui_highlight_win): Rename highlightWin.
11117         (tui_check_and_display_highlight_if_needed): Rename
11118         checkAndDisplayHighlightIfNeeded.
11119         (tui_refresh_all): Rename refreshAll.
11120         (tui_delete_win): Rename tuiDelwin.
11121         (tui_refresh_win): Rename tuiRefreshWin.
11122         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11123         (tui_make_visible, tui_make_invisible): New functions.
11124         (tui_make_all_visible, tui_make_all_invisible): New functions.
11125         (make_all_visible): Rename makeAllVisible.
11126         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11127         * tui/tui-data.c, tui/tui-winsource.c: Update references.
11128         * tui/tui-windata.c, tui/tui-win.c: Update references.
11129         * tui/tui-regs.c, tui/tui-layout.c: Update references.
11130         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11131
11132 2004-02-06  Mark Kettenis  <[email protected]>
11133
11134         * proc-api.c (write_with_trace): Initialize local variable to
11135         silence compiler warning.
11136
11137 2004-02-06  Andrew Cagney  <[email protected]>
11138
11139         * tui/tui-source.h: Do not include "defs.h".
11140         (struct tui_win_info): Declare.
11141         (tui_set_source_content_nil): Declare.
11142         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11143         (union tui_line_or_address): Rename _TuiLineOrAddress.
11144         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
11145         (tui_update_source_window): Rename tuiUpdateSourceWindow.
11146         (tui_update_source_window_as_is): Rename
11147         tuiUpdateSourceWindowAsIs.
11148         (tui_update_source_windows_with_addr): Rename
11149         tuiUpdateSourceWindowsWithAddr.
11150         (tui_update_source_windows_with_line): Rename
11151         tuiUpdateSourceWindowsWithLine.
11152         (tui_clear_source_content): Rename tuiClearSourceContent.
11153         (tui_erase_source_content): Rename tuiEraseSourceContent.
11154         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11155         (tui_show_source_content): Rename tuiShowSourceContent.
11156         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11157         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11158         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11159         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11160         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11161         (tui_update_exec_info): Rename tuiUpdateExecInfo.
11162         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11163         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11164         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11165         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11166         (struct tui_win_info): Declare.
11167         * tui/tui-stack.c: Update references.
11168         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11169         * tui/tui-win.c, tui/tui-source.c: Ditto.
11170         * tui/tui.c, tui/tui-disasm.c: Ditto.
11171
11172 2004-02-06  Mark Kettenis  <[email protected]>
11173
11174         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11175         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
11176
11177 2004-02-05  Mark Kettenis  <[email protected]>
11178
11179         * infrun.c (handle_inferior_event): Allow for breakpoint
11180         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11181         and SIGEMT.  Update comments.
11182         * NEWS (Revised SPARC target): Mention support for non-executable
11183         stack.
11184
11185 2004-02-04  Mark Kettenis  <[email protected]>
11186
11187         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11188         * inftarg.c: Update copyright year.
11189         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11190         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11191         (sparc_xfer_wcookie): New function.
11192         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11193         * Makefile.in (sparc-nat.o): Update dependencies.
11194         * config/sparc/nm-nbsd.h: Include "target.h".
11195         (NATIVE_XFER_WCOOKIE): New define.
11196         (sparc_xfer_wcookie): New prototype.
11197
11198 2004-02-04  Andrew Cagney  <[email protected]>
11199
11200         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11201         SYSCALL_TRAP function.
11202         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11203
11204 2004-02-04  Andrew Cagney  <[email protected]>
11205             Daniel Jacobowitz  <[email protected]>
11206
11207         * objfiles.h: Delete comments refering to inside_entry_func and
11208         DEPRECATED_FRAME_CHAIN_VALID.
11209         * defs.h (inside_entry_func): Update prototype..
11210         * blockframe.c (inside_entry_func): Rename to
11211         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
11212         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11213
11214 2004-02-03  Jeff Johnston  <[email protected]>
11215
11216         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
11217         outside of #ifdef SOLIB_ADD region.
11218         (do_restore_lang_radix_cleanup): Ditto.
11219         (resolve_pending_breakpoint): Ditto.
11220
11221 2004-02-03  Andrew Cagney  <[email protected]>
11222
11223         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11224         (process_note_abi_tag_sections): Delete unused function.
11225         (ia64_read_fp): Delete unused function.
11226         (gdbarch_extract_struct_value_address): Delete declaration.
11227
11228 2004-02-02  Andrew Cagney  <[email protected]>
11229
11230         * vax-tdep.c (vax_frame_chain): Delete call to
11231         deprecated_inside_entry_file.
11232         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11233
11234 2004-02-02  Mark Kettenis  <[email protected]>
11235
11236         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11237         column that's "empty" or "same value" when eliminating REG_RA
11238         rules.
11239
11240 2004-02-02  Jeff Johnston  <[email protected]>
11241
11242         * NEWS: Add information about new pending breakpoint support.
11243
11244 2004-02-02  Jeff Johnston  <[email protected]>
11245
11246         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11247         and pending fields for pending breakpoint support.
11248         * breakpoint.c (breakpoint_enabled): Add check for not pending.
11249         (condition_command): Only parse condition if not a pending
11250         breakpoint.
11251         (print_one_breakpoint): Add support for pending breakpoints.
11252         (describe_other_breakpoints): Add checks to verify we are not
11253         dealing with pending breakpoints.
11254         (check_duplicates): Don't check pending breakpoints.
11255         (set_raw_breakpoint): Initialize pending flag.
11256         (do_restore_lang_radix_cleanup): New cleanup routine.
11257         (resolve_pending_breakpoint): New function.
11258         (re_enable_breakpoints_in_shlibs): Try and resolve any
11259         pending breakpoints via resolve_pending_breakpoint.
11260         (mention): Add pending breakpoint support.
11261         (parse_breakpoint_sals): Add new parameter to pass to
11262         decode_line_1 to indicate silent errors when files or functions
11263         are not found.  Change all callers.
11264         (do_captured_parse_breakpoint): New function.
11265         (break_command_1): Change prototype to return an rc value and to
11266         take an optional pending breakpoint pointer.  Support creating
11267         a pending breakpoint if a "not found" form of error occurs when
11268         parsing the breakpoint.  Also support resolving an existing pending
11269         breakpoint and be silent if the resolution fails.
11270         (create_breakpoints): Change prototype to take pending breakpoint
11271         pointer.  When resolving a pending breakpoint, use the new pointer
11272         to provide a conditional or commands added by the end-user.
11273         (delete_breakpoint): Add appropriate check for pending.
11274         (breakpoint_re_set_one): Ditto.
11275         (do_enable_breakpoint): Ditto.
11276
11277 2004-02-02  David Carlton  <[email protected]>
11278
11279         * valops.c (enum oload_classification): New.
11280         (find_overload_match): Break implementation into separate
11281         functions; delete #if 0'd code; look for symbols within
11282         namespaces.
11283         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11284         (find_oload_champ,oload_method_static,classify_oload_match): New.
11285         * cp-support.h: Add declaration for cp_func_name; update
11286         declaration for make_symbol_overload_list.
11287         * cp-support.c (cp_func_name): New.
11288         (overload_list_add_symbol): Fix comment, use
11289         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11290         (make_symbol_overload_list): Take a function name and a namespace
11291         instead of a symbol; change implementation.
11292         (make_symbol_overload_list_using): New.
11293         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11294
11295 2004-02-02  Fred Fish  <[email protected]>
11296
11297         * main.c (gdb_stdtarg): Move definition to group with other
11298         gdb_stdtarg definitions and update copyright years.
11299         * remote-sim.c (gdb_os_write_stderr): Write output to
11300         gdb_stdtargerr stream instead of gdb_stdtarg stream.
11301         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11302         gdb_stderr stream and update copyright years.
11303
11304 2004-02-01  Daniel Jacobowitz  <[email protected]>
11305
11306         * Makefile.in (mips-linux-nat.o): Update dependencies.
11307         * mips-linux-nat.c: Include mips-tdep.h.
11308
11309 2004-02-01  Roland McGrath  <[email protected]>
11310
11311         * sol-thread.c (sol_thread_xfer_partial): New function.
11312         (init_sol_thread_ops): Use that for to_xfer_partial hook.
11313         (init_sol_core_ops): Likewise.
11314
11315         * procfs.c (procfs_xfer_partial): New function.
11316         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11317         * Makefile.in (procfs.o): Add $(auxv_h) dep.
11318
11319         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11320         procfs_xfer_auxv function.
11321
11322         * procfs.c (procfs_make_note_section): If we can read
11323         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11324         * linux-proc.c (linux_make_note_section): Likewise.
11325
11326         * auxv.h: New file.
11327         * auxv.c: New file.
11328         * Makefile.in (auxv_h): New variable.
11329         (COMMON_OBS): Add auxv.o here.
11330         (auxv.o): New target.
11331
11332         * corelow.c (core_xfer_partial): New function.
11333         (init_core_ops): Use it for core_ops.to_xfer_partial.
11334
11335         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11336         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11337         macro if that is defined.
11338
11339 2004-02-01  Daniel Jacobowitz  <[email protected]>
11340
11341         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11342         and check the specified thread for each breakpoint.
11343         * breakpoint.h (bpstat_stop_status): Update prototype.
11344         * infrun.c (handle_inferior_event): Update calls to
11345         bpstat_stop_status.
11346
11347 2004-02-01  Daniel Jacobowitz  <[email protected]>
11348
11349         * Makefile.in (cli-cmds.o): Add $(readline_h).
11350
11351 2004-02-01  Daniel Jacobowitz  <[email protected]>
11352
11353         * cli/cli-cmds.c: Include readline.h.
11354         (complete_command): Pass the start of the last word to
11355         complete_line.
11356
11357 2004-01-31  Daniel Jacobowitz  <[email protected]>
11358
11359         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11360         argument, and change first argument to a CORE_ADDR.
11361         * breakpoint.h (bpstat_stop_status): Update prototype.
11362         * infrun.c (adjust_pc_after_break): Add a new comment.
11363         (handle_inferior_event): Update calls to bpstat_stop_status.
11364
11365 2004-01-31  Daniel Jacobowitz  <[email protected]>
11366
11367         * breakpoint.h: Update copyright years.
11368
11369 2004-01-31  Daniel Jacobowitz  <[email protected]>
11370
11371         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11372         (bpstat_stop_status): Don't decrement PC.
11373         * breakpoint.h (software_breakpoint_inserted_here_p): Add
11374         prototype.
11375         * infrun.c (adjust_pc_after_break): New function.
11376         (handle_inferior_event): Call it, early.  Remove later references
11377         to DECR_PC_AFTER_BREAK.
11378         (normal_stop): Add commentary.
11379
11380 2004-01-31  Daniel Jacobowitz  <[email protected]>
11381
11382         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11383         2004-01-27 double-free fix.
11384
11385 2004-01-31  Mark Kettenis  <[email protected]>
11386
11387         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11388         (sparc32_frame_prev_register): Handle StackGhost.
11389         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11390
11391 2004-01-29  Roland McGrath  <[email protected]>
11392
11393         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11394         * configure: Regenerated.
11395
11396         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11397         * Makefile.in (procfs.o): Add dep.
11398
11399 2004-01-28  Andrew Cagney  <[email protected]>
11400
11401         * tui/tui-stack.h: Update copyright.
11402         (struct frame_info): Add opaque declaration.
11403         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11404         (tui_show_locator_content): Rename tuiShowLocatorContent.
11405         (tui_show_frame_info): Rename tuiShowFrameInfo.
11406         * tui/tui-stack.c: Update copyright.  Update references.
11407         * tui/tui-winsource.c: Update references.
11408         * tui/tui-win.c: Update references.
11409         * tui/tui-layout.c: Update references.
11410         * tui/tui-hooks.c: Update copyright, update references.
11411         * tui/tui.c: Update copyright, update references.
11412         * tui/tui-disasm.c: Update references.
11413
11414 2004-01-28  David Carlton  <[email protected]>
11415
11416         * dwarf2read.c (add_partial_structure): Use demangled name if
11417         namespace equals "".
11418
11419 2004-01-27  Jim Blandy  <[email protected]>
11420
11421         Clean up misapplied patch:
11422         * dwarf2read.c (determine_prefix): Change one of the two forward
11423         declarations for 'determine_prefix_aux' to a declaration for this.
11424         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
11425         argument to 'die_specification'.
11426
11427         * dwarf2read.c (read_func_scope): Re-indent comment.
11428
11429 2004-01-27  Paul N. Hilfinger  <[email protected]>
11430
11431         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11432         b->exp to NULL after freeing so that error during re-parsing or
11433         evaluation of expressions associated with breakpoint don't
11434         eventually lead to re-freeing of storage.
11435         Committed by Andrew Cagney.
11436
11437 2004-01-27  Andrew Cagney  <[email protected]>
11438
11439         * source.c (ambiguous_line_spec): Delete undefined declaration.
11440         * m32r-rom.c (m32r_set_board_address): Delete unused function.
11441         (m32r_set_server_address, m32r_set_download_path): Ditto.
11442         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11443
11444 2004-01-27  Daniel Jacobowitz  <[email protected]>
11445
11446         * dwarf2read.c: Update calls to changed and renamed functions, and
11447         references to moved variables.
11448
11449         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11450         language, language_defn, list_in_scope, and ftypes members.
11451         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11452         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11453         (baseaddr): Remove globals.
11454
11455         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
11456         (set_cu_language, die_is_declaration, die_specification)
11457         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11458         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11459         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11460         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11461
11462         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
11463         cu.list_in_scope.  Don't initialize cu_header_offset.
11464         (add_partial_symbol): Add local baseaddr.
11465         (psymtab_to_symtab_1): Add local baseaddr.  Use
11466         objfile->section_offsets for consistency.  Don't initialize
11467         cu_header_offset; do initialize cu.header.offset and
11468         cu.list_in_scope.
11469         (read_file_scope, read_func_scope, read_lexical_block_scope)
11470         (dwarf_decode_lines, new_symbol): Add local baseaddr.
11471
11472 2004-01-27  Michael Chastain  <[email protected]>
11473
11474         * PROBLEMS: Add gdb/1516.
11475
11476 2003-12-29  Robert Millan  <[email protected]>
11477
11478         Patch committed by Andrw Cagney.
11479         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11480         * configure.tgt: Match knetbsd*-gnu.
11481
11482 2004-01-26  Andrew Cagney  <[email protected]>
11483
11484         * breakpoint.c (catch_command_1): Delete #ifdef code.
11485         (catch_fork_command_1): Delete #ifdef wrapper.
11486         (catch_exec_command_1): Ditto.
11487         (catch_load_command_1): Ditto.
11488         (catch_unload_command_1): Ditto.
11489
11490         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11491         (catch_breakpoint): Delete #if0ed function.
11492         (disable_catch_breakpoint): Ditto.
11493         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11494         (disable_catch, enable_catch, delete_catch): Ditto.
11495
11496 2004-01-26  Andrew Cagney  <[email protected]>
11497
11498         * remote.c (echo_check, quit_flag): Delete variables.
11499         (cisco_kernel_mode): Delete variable.
11500         (minitelnet_return, tty_input, escape_count): Delete variables.
11501         (remote_cisco_mode): Delete variable.
11502         (remote_cisco_open, remote_cisco_close): Delete function.
11503         (remote_cisco_mourn, remote_cisco_wait): Delete function.
11504         (init_remote_cisco_ops): Delete function.
11505         (_initialize_remote): Do not install "remote cisco" code.
11506         (read_frame): Delete cisco specific code.
11507         (remote_info_process): Delete function.
11508         (remote_wait): Delete cisco specific code.
11509         (remote_cisco_section_offsets): Delete function.
11510         (remote_cisco_objfile_relocate): Delete function.
11511         (remote_async_wait): Delete cisco specific code.
11512         (minitelnet, readtty, readsocket): Delete function.
11513
11514 2004-01-26  Andrew Cagney  <[email protected]>
11515
11516         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
11517         comments mentioning extract_returned_value_address.
11518         * infcmd.c (print_return_value): Update.  Add comments on
11519         extract_returned_value_address.
11520         * stack.c (return_command): Add comments on
11521         extract_returned_value_address.
11522         * values.c: Update comment.
11523         * m32r-tdep.c: Update comment.
11524         * sparc-tdep.c: Update comment.
11525         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11526         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11527         * sh64-tdep.c (sh64_gdbarch_init): Update.
11528         * sh-tdep.c (sh_gdbarch_init): Update.
11529         * s390-tdep.c (s390_gdbarch_init): Update.
11530         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11531         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11532         * m68k-tdep.c (m68k_gdbarch_init): Update.
11533         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11534         * m32r-tdep.c (m32r_gdbarch_init): Update.
11535         * ia64-tdep.c (ia64_gdbarch_init): Update.
11536         * h8300-tdep.c (h8300_gdbarch_init): Update.
11537         * frv-tdep.c (frv_gdbarch_init): Update.
11538         * arm-tdep.c (arm_gdbarch_init): Update.
11539         * alpha-tdep.c (alpha_gdbarch_init): Update.
11540
11541 2004-01-26  Andrew Cagney  <[email protected]>
11542
11543         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11544         SYMBOL_LOCATION_FUNCS
11545         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11546         "struct symbol_ops".
11547         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11548         type to "struct symbol_ops".
11549         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11550         (struct symbol): Replace ".aux_value.loc.funcs" and
11551         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11552         (SYMBOL_OBJFILE): Delete macro.
11553         (SYMBOL_LOCATION_FUNCS): Delete macro.
11554         (SYMBOL_LOCATION_BATON): Update.
11555         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11556         intead of SYMBOL_LOCATION_FUNCS.
11557         * ax-gdb.c (gen_var_ref): Ditto.
11558         * printcmd.c (address_info): Ditto.
11559         * findvar.c (read_var_value): Ditto.
11560         (symbol_read_needs_frame): Ditto.
11561
11562 2004-01-26  Andrew Cagney  <[email protected]>
11563
11564         * dwarf2read.c (read_func_scope): Document frame-base hack.
11565
11566 2004-01-25  Mark Kettenis  <[email protected]>
11567
11568         * infcmd.c (print_return_value): Plug memory leak; delete
11569         ui_stream object.  Rename argument `structure_return' to
11570         `struct_return'.
11571
11572 2004-01-25  Mark Kettenis  <[email protected]>
11573
11574         * infcmd.c (print_return_value): Wrap long lines.
11575         (finish_command_continuation, finish_command): Remove unused
11576         variable `funcaddr'.  Fix some coding-standards problems.
11577
11578         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11579         SECT_SIZE is large enough, not whether it's exactly the right size.
11580         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11581         TDEP->fpregset to zero.
11582
11583         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11584         floating-point registers for traditional NetBSD core files.
11585         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11586         TDEP->sizeof_fpregset here.
11587
11588 2004-01-25  Mark Kettenis  <[email protected]>
11589
11590         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11591         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11592         function with code split out from
11593         sparc32nbsd_sigcontext_frame_cache.
11594         (sparc32nbsd_sigcontext_frame_cache): Use
11595         sparc32nbsd_sigcontext_saved_regs.
11596         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11597         OpenBSD.
11598         * sparcobsd-tdep.c: New file.
11599         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11600         (sparcobsd-tdep.o): New dependency.
11601         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11602         * config/sparc/obsd.mt: New file.
11603
11604         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11605         TDEP->fpregset to be initialized to enable core file register
11606         sets.
11607
11608 2004-01-24  Mark Kettenis  <[email protected]>
11609
11610         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11611         Add opaque declarations.
11612         (sparc64nbsd_sigcontext_saved_regs): New prototype.
11613         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11614         function with code split out from
11615         sparc64nbsd_sigcontext_frame_cache.
11616         (sparc64nbsd_sigcontext_frame_cache): Use
11617         sparc64nbsd_sigcontext_saved_regs.
11618         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11619         OpenBSD.
11620         * sparc64obsd-tdep.c: New file.
11621         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11622         (sparc64obsd-tdep.o): New dependency.
11623         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11624         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11625         * config/sparc/obsd64.mt: New file.
11626
11627         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11628         read the instruction at PC.
11629
11630         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11631         value of GDB_OSABI_DEFAULT.
11632         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11633         instead of GDB_OSABI_NETBSD_AOUT.
11634
11635 2004-01-24  Nick Roberts  <[email protected]>
11636
11637         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11638         copyright.
11639
11640 2004-01-23  Andrew Cagney  <[email protected]>
11641
11642         * printcmd.c (display_command): Replace tui_set_display call with
11643         tui_set_layout_for_display_command.
11644         * tui/tui.h (enum tui_win_type): Define.
11645         (tui_set_layout): Delete declaration.
11646         (tui_set_layout_for_display_command): Rename set_tui_layout.
11647         * tui/tui-data.h (enum tui_layout_type): Define.
11648         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
11649         "tui.h".
11650         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11651         (tui_default_win_height): Rename tuiDefaultWinHeight.
11652         (tui_default_win_viewport_height): Rename
11653         tuiDefaultWinViewportHeight.
11654         (tui_set_layout): RenametuiSetLayout.
11655         * tui/tui-layout.c: Update references.
11656         * tui/tui.c: Update references.
11657         * tui/tui-disasm.c: Update references.
11658
11659 2004-01-23  David Carlton  <[email protected]>
11660
11661         Partial workaround for PR c++/1511:
11662         * cp-namespace.c: Include frame.h.
11663         (cp_lookup_transparent_type): New
11664         (cp_lookup_transparent_type_loop): New.
11665         * cp-support.h: Declare cp_lookup_transparent_type.
11666         * symtab.c (basic_lookup_transparent_type): Renamed from
11667         lookup_transparent_type.
11668         (lookup_transparent_type): Replace old body by a call to
11669         current_language->la_lookup_transparent_type.
11670         * symtab.h: Update copyright.  Declare
11671         basic_lookup_transparent_type.
11672         * language.h: Update copyright.
11673         (struct language_defn): Add la_lookup_transparent_type.
11674         * language.c: Update copyright.
11675         (unknown_language_defn): Add basic_lookup_transparent_type.
11676         (auto_language_defn): Add basic_lookup_transparent_type.
11677         (local_language_defn): Add basic_lookup_transparent_type.
11678         * ada-lang.c: Update copyright.
11679         (ada_language_defn): Add basic_lookup_transparent_type.
11680         * c-lang.c: Update copyright.
11681         (c_language_defn): Add basic_lookup_transparent_type.
11682         (cplus_language_defn): Add basic_lookup_transparent_type.
11683         (asm_language_defn): Add basic_lookup_transparent_type.
11684         (minimal_language_defn): Add basic_lookup_transparent_type.
11685         * f-lang.c: Update copyright.
11686         (f_language_defn): Add basic_lookup_transparent_type.
11687         * jv-lang.c: Update copyright.
11688         (java_language_defn): Add basic_lookup_transparent_type.
11689         * m2-lang.c: Update copyright.
11690         (m2_language_defn): Add basic_lookup_transparent_type.
11691         * objc-lang.c: Update copyright.
11692         (objc_language_defn): Add basic_lookup_transparent_type.
11693         * p-lang.c: Update copyright.
11694         (p_language_defn): Add basic_lookup_transparent_type.
11695         * scm-lang.c: Update copyright.
11696         (scm_language_defn): Add basic_lookup_transparent_type.
11697         * Makefile.in (cp-namespace.o): Depend on frame.h.
11698
11699 2004-01-23  David Carlton  <[email protected]>
11700
11701         Patch for PR c++/1520:
11702         * dwarf2read.c (read_func_scope): Set processing_current_prefix
11703         properly if we have a specification die.
11704         (determine_prefix_aux): Rename from determine_prefix.
11705         (determine_prefix): Like the old determine_prefix, but never
11706         returns NULL.
11707
11708 2004-01-23  Theodore A. Roth  <[email protected]>
11709
11710         * avr-tdep.c: Update copyright.
11711         (avr_iaddr_p): Delete unused function.
11712         (avr_saddr_p): Delete unused function.
11713
11714 2004-01-23  David Carlton  <[email protected]>
11715
11716         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11717         Fix for PR symtab/1534.
11718
11719 2004-01-23  Mark Kettenis  <[email protected]>
11720
11721         * NEWS (New native configurations): Mention OpenBSD/sparc and
11722         OpenBSD/sparc64.
11723         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11724         * configure.host: Likewise.
11725         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11726         handler for OpenBSD.
11727         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11728
11729 2004-01-22  Mark Kettenis  <[email protected]>
11730
11731         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11732         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11733
11734         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11735         * cli/cli-cmds.c (shell_escape): Likewise.
11736
11737         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11738         OpenBSD .note.openbsd.ident sections.
11739
11740 2004-01-22  David Carlton  <[email protected]>
11741
11742         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11743         get_scope_pc_bounds.
11744         (read_file_scope): Ditto.
11745         (get_scope_pc_bounds): New function, produced by extracting code
11746         from the above two functions, consolidating it, and adding support
11747         for DW_TAG_namespace.
11748
11749 2004-01-22  Mark Kettenis  <[email protected]>
11750
11751         * osabi.c (MAX_NOTESZ): New define.
11752         (check_note): New function.
11753         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11754         check_note.
11755
11756 2004-01-21  Roland McGrath  <[email protected]>
11757
11758         * MAINTAINERS (write after approval): Add myself.
11759
11760 2004-01-21  Eli Zaretskii  <[email protected]>
11761
11762         * utils.c (init_page_info): Move declarations of `rows' and
11763         `cols' before the __GO32__-specific code.  Move the closing brace
11764         outside the #ifdef __GO32__..#endif block.
11765         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11766
11767 2004-01-21  Paul Brook  <[email protected]>
11768
11769         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11770         BPSTAT_WHAT_CHECK_SHLIBS.
11771
11772 2004-01-21  Paul Brook  <[email protected]>
11773
11774         * MAINTAINERS: Add myself to write-after-approval.
11775
11776 2004-01-20  Andrew Cagney  <[email protected]>
11777
11778         * ax-gdb.c (print_axs_value): Delete unused function.
11779         * jv-lang.c (java_lookup_type): Delete unused function.
11780         * cli/cli-dump.c (dump_filetype): Delete unused function.
11781         * remote-mips.c (remote_mips_insert_hw_breakpoint)
11782         (remote_mips_remove_hw_breakpoint): Delete unused functions.
11783         (mips_getstring): Delete unused function.
11784         (pmon_insert_breakpoint): Delete #if0ed function.
11785         (PMON_MAX_BP): Delete #if0ed MACRO.
11786         (mips_pmon_bp_info): Delete #if0ed variable.
11787         (pmon_remove_breakpoint): Delete #if0ed function.
11788         * monitor.c (monitor_write_even_block): Delete unused function.
11789         (monitor_write_memory_block): Delete #if0ed code.
11790         * dink32-rom.c (dink32_load): Delete unused function.
11791         (_initialize_dink32_rom): Delete #if0ed code.
11792         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11793
11794         * tui/tui-command.c: Update references.
11795         * tui/tui-io.c: Update references.
11796         * tui/tui-command.h: Update copyright.
11797         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11798
11799         * source.c (ambiguous_line_spec): Delete never-defined function.
11800         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11801         * gdbtypes.c (add_name, add_mangled_type): Ditto.
11802         * cli/cli-cmds.c (validate_comname): Ditto.
11803
11804         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
11805         "tui-data.h".
11806         (tui_set_disassem_content): Rename tuiSetDisassemContent.
11807         (tui_show_disassem): Rename tuiShowDisassem.
11808         (tui_show_disassem_and_update_source): Rename
11809         tuiVerticalDisassemScroll.
11810         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11811         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11812         * tui/tui.h: Update copyright.
11813         (enum tui_status): Define.
11814         * tui/tui-data.h (enum tui_scroll_direction): Define.
11815         * tui/tui-disasm.c: Update copyright.  Update references.
11816         * tui/tui-winsource.c:  Update copyright.  Update references.
11817         * tui/tui-win.c: Update references.
11818         * tui/tui-layout.c: Update references.
11819
11820 2004-01-20  Andrew Cagney  <[email protected]>
11821
11822         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11823         sym2 to start of block.
11824
11825 2004-01-19  Michael Chastain  <[email protected]>
11826
11827         * MAINTAINERS: Delete mmalloc.
11828         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11829         * NEWS: Mention removal of --with-malloc.
11830         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11831         * config.in: Regenerate.
11832         * configure: Regenerate.
11833         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11834         USE_MMALLOC, MMCHECK_FORCE.
11835         * gdbinit.in: Remove mmalloc.
11836         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11837         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11838         * config/i386/go32.mh: Likewise.
11839         * config/i386/interix.mh: Likewise.
11840         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11841
11842 2004-01-19  Jeff Johnston  <[email protected]>
11843
11844         * linespec.c (decode_variable, symtab_from_filename):  Call
11845         error_silent with error message instead of throwing an exception
11846         directly.
11847         * defs.h (error_silent, error_output_message): Add prototypes.
11848         (catch_exceptions_with_msg): Ditto.
11849         * utils.c (error_silent, error_output_message): New functions.
11850         * top.c (catch_exceptions_with_msg): New function.
11851
11852 2004-01-20  Nick Roberts  <[email protected]>
11853
11854         * mi/mi-cmds.h (enum print_values): Add definition.
11855
11856         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11857         type and value for simple data types and just the name and type
11858         for complex ones, if required.
11859
11860         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11861         children, if required.
11862
11863 2004-01-19  Kevin Buettner  <[email protected]>
11864
11865         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11866         unused declarations.
11867
11868 2004-01-19  Andrew Cagney  <[email protected]>
11869
11870         * top.h (mapped_symbol_files): Delete declaration.
11871         * main.c (captured_main): Delete option "m" and "mapped".
11872         * objfiles.c (mapped_symbol_files): Delete variable.
11873         * symfile.c (symbol_file_command): Delete mmap code.
11874         (symbol_file_add_with_addrs_or_offsets): Ditto.
11875         (add_symbol_file_command, reread_separate_symbols): Ditto.
11876         * objfiles.h (OBJF_MAPPED): Delete.
11877         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11878         (free_objfile) [USE_MMALLOC]: Ditto.
11879         (open_existing_mapped_file): Delete function.
11880         (open_mapped_file): Delete function.
11881         (map_to_file): Delete function.
11882
11883 2004-01-19  Kevin Buettner  <[email protected]>
11884
11885         * infrun.c (step_into_function): Account for possible breakpoint
11886         adjustment when computing ``stop_func_start''.
11887
11888 2004-01-19  Kevin Buettner  <[email protected]>
11889
11890         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11891         the region size against the size of a pointer, not the size of
11892         a register as given by DEPRECATED_REGISTER_SIZE.
11893
11894 2004-01-19  Andrew Cagney  <[email protected]>
11895
11896         * tui/tui-regs.h: Include "tui-data.h".
11897         (tuiFirstRegElementNoInLine): Delete declaration.
11898         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11899         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11900         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11901         (tui_calculate_regs_column_count): Rename
11902         tuiCalculateRegsColumnCount.
11903         (tui_check_register_values): Rename tuiCheckRegisterValues.
11904         (tui_show_registers): Rename tuiShowRegisters.
11905         (tui_display_registers_from_line): Rename
11906         tuiDisplayRegistersFromLine.
11907         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11908         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11909         (tui_first_reg_element_no_inline): Rename
11910         tuiFirstRegElementNoInLine.
11911         * tui/tui-data.h: Update copyright.
11912         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11913         * tui/tui-windata.c: Update copyright, update references.
11914         * tui/tui-regs.c: Update copyright, update references.
11915         * tui/tui-win.c: Update copyright, update references.
11916         * tui/tui-layout.c: Update copyright, update references.
11917
11918 2004-01-18  Andrew Cagney  <[email protected]>
11919
11920         * tui/tui-io.c: Update copyright.
11921         (key_is_end_sequence, key_is_backspace): New functions.
11922         (key_is_command_char, key_is_start_sequence): New function.
11923         (tui_getc): Update references.
11924         * tui/tui-io.h: Update copyright.
11925         (m_tuiStartNewLine): Delete macro.
11926         (m_isBackspace, m_isDeleteChar): Delete macros.
11927         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11928         (m_isNextPage, m_isPrevPage): Delete macros.
11929         (m_isLeftArrow, m_isRightArrow): Delete macros.
11930         (m_isXdbStyleCommandChar): Delete macro.
11931         (key_is_start_sequence): Declare, replace m_isStartSequence.
11932         (key_is_end_sequence): Declare, replace m_isEndSequence.
11933         (key_is_backspace): Declare ,replace m_isBackspace.
11934         (key_is_command_char): Declare, replace m_isCommandChar.
11935         * tui/tui-command.c: Update copyright.
11936         (tuiDispatchCtrlChar): Update references.
11937
11938         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11939         tuiSourceWin.h.
11940
11941         * tui/tui-command.c: Rename tui/tuiCommand.c.
11942         * tui/tui-command.h: Rename tui/tuiCommand.h.
11943         * tui/tui-data.c: Rename tui/tuiData.c.
11944         * tui/tui-data.h: Rename tui/tuiData.h.
11945         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11946         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11947         * tui/tui-io.c: Rename tui/tuiIO.c.
11948         * tui/tui-io.h: Rename tui/tuiIO.h.
11949         * tui/tui-layout.c: Rename tui/tuiLayout.c.
11950         * tui/tui-layout.h: Rename tui/tuiLayout.h.
11951         * tui/tui-regs.c: Rename tui/tuiRegs.c.
11952         * tui/tui-regs.h: Rename tui/tuiRegs.h.
11953         * tui/tui-source.c: Rename tui/tuiSource.c.
11954         * tui/tui-source.h: Rename tui/tuiSource.h.
11955         * tui/tui-stack.c: Rename tui/tuiStack.c.
11956         * tui/tui-stack.h: Rename tui/tuiStack.h.
11957         * tui/tui-win.c: Rename tui/tuiWin.c.
11958         * tui/tui-win.h: Rename tui/tuiWin.h.
11959         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11960         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11961         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11962         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11963         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11964         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11965         * tui/tui-file.c: Update includes.
11966         * tui/tui-hooks.c: Update includes.
11967         * tui/tui-interp.c: Update includes.
11968         * tui/tui.c: Update includes.
11969         * Makefile.in: Update all tui/ dependencies.
11970         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11971
11972         * Makefile.in: Update copyright.  Update dependencies.
11973
11974         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11975         problem.
11976
11977 2004-01-18  Andrew Cagney  <[email protected]>
11978
11979         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11980         instead of register_gdbarch_init.
11981
11982         * remote-sds.c (tohex): Delete unused function.  Update copyright.
11983         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11984         * v850-tdep.c (v850_register_virtual_size): Ditto.
11985         * target.c (normal_target_post_startup_inferior): Ditto.
11986         * source.c (ambiguous_line_spec): Ditto.
11987         * remote.c (adapt_remote_get_threadinfo): Ditto.
11988         * mi/mi-out.c (out_field_fmt): Ditto.
11989         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11990         (output_control_change_notification): Ditto.
11991         * m68k-tdep.c (m68k_register_byte): Ditto.
11992         (m68k_remote_breakpoint_from_pc): Ditto.
11993         * ui-out.c (init_ui_out_state): Delete unused declaration.
11994         * stabsread.c (search_value): Ditto.
11995         * mi/mi-cmd-env.c (env_cli_command): Ditto.
11996         * maint.c (print_section_table): Ditto.
11997         * infrun.c (set_follow_fork_mode_command): Ditto.
11998
11999 2004-01-18  Mark Kettenis  <[email protected]>
12000
12001         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12002         DW_CFA_def_cfa_exporession.  Add support for
12003         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12004         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
12005
12006 2004-01-18  Andrew Cagney  <[email protected]>
12007
12008         * ocd.c: Update copyright.
12009         (bdm_read_register_command): Delete unused function.
12010         (_initialize_remote_ocd): Delete commented out reference.
12011         (get_quoted_char, reset_packet): Delete #if0ed function.
12012         (output_packet, put_quoted_char): Delete #if0ed function.
12013         (stu_put_packet, stu_get_packet): Delete #if0ed function.
12014         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12015         (BDM_BREAKPOINT): Delete #if0ed macro.
12016         (remote_timeout): Delete #if0ed variable.
12017
12018 2004-01-18  Mark Kettenis  <[email protected]>
12019
12020         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12021         (core-sol2.o): Remove dependency.
12022         * core-sol2.c: Remove file.
12023
12024 2004-01-17  Andrew Cagney  <[email protected]>
12025
12026         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12027         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12028         enums.
12029
12030 2004-01-17  Daniel Jacobowitz  <[email protected]>
12031
12032         * remote.c: Update copyright years.
12033
12034 2004-01-17  Daniel Jacobowitz  <[email protected]>
12035
12036         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12037
12038 2004-01-17  Andrew Cagney  <[email protected]>
12039
12040         * mdebugread.c: Update copyright.
12041         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12042         (parse_type, parse_procedure): Ditto.
12043         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12044
12045         * cris-tdep.c (cris_store_struct_return): Put back accidently
12046         deleted function.
12047
12048         * gdbarch.sh: Update copyright year.
12049         * gdbarch.h, gdbarch.c: Re-generate.
12050
12051 2004-01-17  Daniel Jacobowitz  <[email protected]>
12052
12053         Suggested by George Anzinger.
12054         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12055         correct stack offset.  Include unknown opcode numbers in the error
12056         message.
12057
12058 2004-01-17  Andrew Cagney  <[email protected]>
12059
12060         * x86-64-tdep.c (x86_64_init_abi): No need to clear
12061         extract_struct_value_address, i386 does not set it.
12062         * sparc64-tdep.c (sparc64_init_abi): Do not set
12063         extract_struct_value_address, never called.
12064         (sparc64_extract_struct_value_address): Delete function.
12065         * m68hc11-tdep.c: Update copyright.
12066         (m68hc11_gdbarch_init): Delete redundant assignment of
12067         extract_struct_value_address.
12068         * i386-tdep.c: Update copyright.
12069         (i386_gdbarch_init): Do not set extract_struct_value_address,
12070         never called.
12071         (i386_extract_struct_value_address): Delete function.
12072         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12073         extract_struct_value_address, never called.
12074         (sparc32_extract_struct_value_address): #if 0 function.  Add
12075         comments explaining its future.
12076
12077 2004-01-17  Daniel Jacobowitz  <[email protected]>
12078
12079         * arm-tdep.c (arm_write_pc): New function.
12080         (arm_gdbarch_init): Call set_gdbarch_write_pc.
12081
12082 2004-01-17  Daniel Jacobowitz  <[email protected]>
12083
12084         * breakpoint.c (must_shift_inst_regs): Delete.
12085         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12086         and SHIFT_INST_REGS.
12087         * infcmd.c (step_1, step_1_continuation): Delete references to
12088         SHIFT_INST_REGS.
12089         * infrun.c (keep_going): Likewise.
12090         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12091         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12092
12093 2004-01-17  Andrew Cagney  <[email protected]>
12094
12095         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12096         * gdbarch.h, gdbarch.c: Re-generate.
12097         * infcmd.c (print_return_value): Delete reference to
12098         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12099
12100         * cris-tdep.c (cris_gdbarch_init): Do not set
12101         deprecated_extract_struct_value_address.
12102
12103         * xstormy16-tdep.c: Update copyright.
12104         (xstormy16_extract_struct_value_address): Update to current
12105         extract struct value address interface.
12106         (xstormy16_gdbarch_init): Set extract_struct_value_address.
12107         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12108         current extract struct value address interface.
12109         (sh64_gdbarch_init): Set extract_struct_value_address.
12110
12111         * cris-tdep.c: Update copyright.
12112         (cris_extract_struct_value_address): Delete function.
12113         (struct_return_address): Delete variable.
12114         (cris_store_struct_return): Do not set struct_return_address.
12115
12116         * mcore-tdep.c: Update copyright.
12117         (mcore_extract_struct_value_address): Delete function.  Update
12118         comments.
12119         (mcore_gdbarch_init): Update.
12120         * mn10300-tdep.c: Update copyright.
12121         (mn10300_extract_struct_value_address): Delete function.
12122         (mn10300_gdbarch_init): Update.
12123         * v850-tdep.c: Update copyright.
12124         (v850_extract_struct_value_address): Delete.
12125         (v850_gdbarch_init): Update.
12126         * ns32k-tdep.c: Update copyright.
12127         (ns32k_extract_struct_value_address): Delete.
12128         (ns32k_gdbarch_init): Update.
12129         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12130         (hppa_gdbarch_init): Update.
12131         * vax-tdep.c: Update copyright.
12132         (vax_extract_struct_value_address): Delete.
12133         (vax_gdbarch_init): Update.
12134
12135         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12136         * gdbarch.h, gdbarch.c: Re-generate.
12137         * procfs.c (procfs_fetch_registers): Delete reference to
12138         DEPRECATED_NPC_REGNUM.
12139         (procfs_store_registers): Ditto.
12140         * regcache.c (generic_target_write_pc): Simplify.
12141         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
12142
12143         * core-sol2.c (fetch_core_registers): Replace
12144         DEPRECATED_NPC_REGNUM with equivalent tdep value.
12145
12146         * hppa-tdep.c: Update copyright year.
12147         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12148         NPC_REGNUM.
12149         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12150
12151         * mips-tdep.c (mips_write_pc): New function.
12152         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12153         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12154         (mips_find_saved_regs, mips_software_single_step: Ditto.
12155         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12156         mips_init_extra_frame_info, mips_pop_frame): Ditto.
12157
12158 2004-01-17  Andrew Cagney  <[email protected]>
12159
12160         * mips-tdep.c: Re-indent.  Group functions by ABI.
12161
12162 2004-01-17  Andrew Cagney  <[email protected]>
12163
12164         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12165         * gdbarch.c: Re-generate.
12166         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12167         DECR_PC_AFTER_BREAK to zero.
12168         * vax-tdep.c (vax_gdbarch_init): Ditto.
12169         * v850-tdep.c (v850_gdbarch_init): Ditto.
12170         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12171         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12172         * sh-tdep.c (sh_gdbarch_init): Ditto.
12173         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12174         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12175         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12176         * mips-tdep.c (mips_gdbarch_init): Ditto.
12177         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12178         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12179         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12180         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12181         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12182         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12183         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12184         * frv-tdep.c (frv_gdbarch_init): Ditto.
12185         * cris-tdep.c (cris_gdbarch_init): Ditto.
12186         * avr-tdep.c (avr_gdbarch_init): Ditto.
12187         * arm-tdep.c (arm_gdbarch_init): Ditto.
12188         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12189
12190 2004-01-17  J. Brobecker  <[email protected]>
12191
12192         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12193         Delete, no longer used.
12194         (read_subrange_type): New function, mostly extracted from
12195         read_array_type().
12196         (read_array_type): Replace extracted code by call to
12197         read_subrange_type().
12198         (dwarf2_get_attr_constant_value): New function.
12199         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12200         (add_partial_symbol): Likewise.
12201         (process_die): Likewise.
12202         (new_symbol): Likewise.
12203         (read_type_die): Likewise.
12204
12205 2004-01-16  Andrew Cagney  <[email protected]>
12206
12207         * symfile.c: Update copyright year.
12208         (compare_symbols): Delete unused function.
12209         * stabsread.c: Update copyright year.
12210         (lrs_general_complaint): Delete unused function.
12211         (ref_search_value): Ditto.
12212         (get_substring): Delete declaration.
12213         * sh64-tdep.c: Update copyright year.
12214         (sh64_get_gdb_regnum): Delete unused function.
12215         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12216         Delete unused function.
12217
12218 2004-01-17  Mark Kettenis  <[email protected]>
12219
12220         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12221         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12222
12223 2004-01-16  Andrew Cagney  <[email protected]>
12224
12225         Changes from Peter Schauer.
12226         * rs6000-tdep.c: Update copyright year.
12227         (rs6000_push_dummy_call): Update the stack pointer before
12228         accessing the corresponding stack region.
12229         * rs6000-nat.c: Update copyright year.
12230         (set_host_arch): Set "info.abfd" to "exec_bfd".
12231
12232 2004-01-15  Mark Kettenis  <[email protected]>
12233
12234         * blockframe.c: Update copyright year.
12235         (inside_entry_func): Don't treat a zero PC specially.
12236
12237 2004-01-14  Elena Zannoni  <[email protected]>
12238
12239         * gcore.c (gcore_copy_callback): Use paddr_d to print size
12240         variable.
12241         (gcore_create_callback): Ditto.  Skip any memory segment that has
12242         no permissions set.
12243
12244 2004-01-14  David Carlton  <[email protected]>
12245
12246         Change symbols for C++ nested types to contain the fully qualified
12247         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
12248         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12249         c++/895.
12250         * c-exp.y (qualified_type): Handle types nested within classes.
12251         * cp-namespace.c: Update comments.
12252         (cp_set_block_scope): Delete #if 0.
12253         (cp_lookup_nested_type): Handle types nested within classes.
12254         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12255         when appropriate.
12256         (add_partial_symbol): Add the name of the enclosing namespace to
12257         types.
12258         (pdi_needs_namespace): New.
12259         (add_partial_namespace): Tweak comment.
12260         (add_partial_structure): New.
12261         (psymtab_to_symtab_1): Initialize processing_current_prefix
12262         here...
12263         (process_die): instead of here.
12264         (read_structure_scope): Try to figure out the name of the class or
12265         namespace that the structure might be defined within.
12266         (read_enumeration): Generate fully-qualified names, if possible.
12267         (read_namespace): Don't set name to NULL.
12268         (die_specification): New.
12269         (new_symbol): Generate fully-qualified names for types.
12270         (read_type_die): Determine appropriate prefix.
12271         (determine_prefix): New.
12272         (typename_concat): New.
12273         (class_name): New.
12274         * valops.c (value_aggregate_elt): Pass NOSIDE to
12275         value_struct_elt_for_reference.
12276         (value_struct_elt_for_reference): Make static, add NOSIDE
12277         parameter, call value_maybe_namespace_elt as a last resort.
12278         (value_namespace_elt): Break out code into
12279         value_maybe_namespace_elt.
12280         (value_maybe_namespace_elt): New.
12281
12282 2004-01-12  Andrew Cagney  <[email protected]>
12283
12284         * mips-tdep.c (mips_convert_register_p): Handle both raw and
12285         cooked floating-point registers.
12286         (mips_gdbarch_init): Set convert_register_p, register_to_value,
12287         and value_to_register.
12288
12289 2004-01-13  Andrew Cagney  <[email protected]>
12290
12291         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12292         * gdbarch.c: Re-generate.
12293         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12294         FUNCTION_START_OFFSET.
12295         * v850-tdep.c (v850_gdbarch_init): Ditto.
12296         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12297         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12298         * sh-tdep.c (sh_gdbarch_init): Ditto.
12299         * s390-tdep.c (s390_gdbarch_init): Ditto.
12300         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12301         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12302         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12303         * mips-tdep.c (mips_gdbarch_init): Ditto.
12304         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12305         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12306         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12307         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12308         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12309         * i386-tdep.c (i386_gdbarch_init): Ditto.
12310         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12311         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12312         * frv-tdep.c (frv_gdbarch_init): Ditto.
12313         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12314         * cris-tdep.c (cris_gdbarch_init): Ditto.
12315         * avr-tdep.c (avr_gdbarch_init): Ditto.
12316         * arm-tdep.c (arm_gdbarch_init): Ditto.
12317         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12318
12319 2004-01-13  Daniel Jacobowitz  <[email protected]>
12320
12321         * infrun.c (follow_fork_mode_ask): Remove.
12322         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12323         (follow_fork): Simplify and remove internal error for
12324         follow_fork_mode_ask.
12325         (_initialize_infrun): Update "set follow-fork-mode" help text.
12326
12327 2004-01-13  Andrew Cagney  <[email protected]>
12328
12329         * configure.in: Update copyright year.
12330         (build_warnings): Add -Wunused-label.
12331         * configure: Re-generate.
12332
12333 2004-01-12  Andrew Cagney  <[email protected]>
12334
12335         * exec.h (exec_ops): Make "extern".
12336
12337         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12338         the function is void.
12339         (mips_pseudo_register_write): Ditto.
12340
12341 2004-01-12  Andrew Cagney  <[email protected]>
12342
12343         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12344         call.  Never defined.
12345         * sparc-tdep.h (struct frame_info): Add opaque declaration.
12346         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12347         (struct sparc_gregset, struct regcache): Ditto.
12348         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
12349
12350 2004-01-12  Andrew Cagney  <[email protected]>
12351
12352         * mi/ChangeLog: Delete file.  Renamed to ...
12353         * mi/ChangeLog-1999-2003: New file.
12354         * tui/ChangeLog: Delete file.  Renamed to ...
12355         * tui/ChangeLog-1998-2003: New file.
12356
12357 2004-01-11  Mark Kettenis  <[email protected]>
12358
12359         * sparc64nbsd-tdep.c: Include "regset.h".
12360         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12361         Remove variables.
12362         (fetch_core_registers): Remove function.
12363         (sparc64nbsd_core_fns): Remove variable.
12364         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12365         functions.
12366         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12367         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12368         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12369
12370         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12371         sparc_extract_struct_value_address.
12372         (sparc32_gdbarch_init): Set extract_struct_value_address.
12373         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12374         function.
12375         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
12376         return_value_on_stack.
12377
12378         * NEWS: Mention that %cs and %ss have been added to the AMD64
12379         configurations
12380
12381         * frame.c: Update copyright year.
12382         (get_prev_frame): Improve comment.
12383
12384         * sparc64fbsd-tdep.c: Include "regset.h".
12385         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12386         Remove variables.
12387         (fetch_core_registers): Remove function.
12388         (sparc64fbsd_core_fns): Remove variable.
12389         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12390         functions.
12391         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12392         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12393         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12394
12395         * sparcnbsd-tdep.c: Include "regset.h".
12396         (fetch_core_registers): Remove function.
12397         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12398         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12399         functions.
12400         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12401         TDEP->fpregset.
12402         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12403
12404         * sparc-tdep.h (struct regset): Provide opaque declaration.
12405         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12406         fpregset and sizeof_fpregset members.
12407         * sparc-tdep.c (struct regset): Provide opaque declaration.
12408         (sparc_regset_from_core_section): New function.
12409         (sparc32_gdbarch_init): Initialize TDEP->gregset,
12410         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12411         Set regset_from_core_section when appropriate.
12412
12413 2004-01-10  Mark Kettenis  <[email protected]>
12414
12415         * x86-64-tdep.c (amd64_non_pod_p): New function.
12416         (amd64_classify_aggregate): Return class memory for non-POD
12417         C++ structure types.
12418
12419         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12420         argument.  Use it to reserve a register if necessary.
12421         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12422         amd64_push_arguments.
12423
12424         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12425
12426         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
12427         register numbers in comments.
12428         * x86-64-tdep.h: Update copyright year.
12429         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12430         Adjust for addition of %cs and %ss.
12431         * amd64fbsd-nat.c: Update copyright year.
12432         (reg_offset): Add register offsets for %cs and %ss.
12433         * amd64fbsd-tdep.c: Update copyright year.
12434         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12435         (amd64fbsd_sc_reg_offset): Likewise.
12436         * x86-64-linux-nat.c: Update copyright year.
12437         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12438         and %ss.
12439         * amd64nbsd-nat.c: Update copyright year.
12440         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12441         * amd64nbsd-tdep.c: Update copyright year.
12442         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12443         * x86-64-linux-tdep.c: Update copyright year.
12444         (user_to_gdb_regmap): Add mapping for %cs and %ss.
12445         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12446         * regformats/reg-x86-64.dat: Add %cs and %ss.
12447
12448         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
12449         variables to prevent long lines.  Update comments to reflect
12450         reality.
12451
12452 2004-01-09  David Carlton  <[email protected]>
12453
12454         Checked in by Elena Zannoni  <[email protected]>.
12455         * dwarf2read.c (read_namespace): Pull out name-generating code
12456         into namespace_name. Rename previous_namespace to previous_prefix
12457         and processing_current_namespace to processing_current_prefix..
12458         (namespace_name): New function.
12459         (add_partial_symbol): Substitute uses of pdi->name with
12460         actual_name.
12461         * cp-support.h: Rename processing_current_namespace to
12462         processing_current_prefix.
12463         Update copyright year.
12464         * cp-namespace.c: Rename processing_current_namespace to
12465         processing_current_prefix.
12466         Update copyright year.
12467
12468 2004-01-09  Andrew Cagney  <[email protected]>
12469
12470         * jv-valprint.c, ser-unix.c: Add missing copyright years.
12471
12472 2004-01-09  Mark Kettenis  <[email protected]>
12473
12474         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12475         complaining.
12476         (process_one_symbol): Deal with N_PATCH stabs.
12477
12478 2004-01-09  Elena Zannoni  <[email protected]>
12479
12480         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12481         ifdeffed code.
12482         Update copyright year.
12483
12484 2004-01-08  Michael Chastain  <[email protected]>
12485
12486         * config/pa/tm-hppa.h: Update extern declarations for
12487         hppa32_hpux_frame_saved_pc_in_sigtramp,
12488         hppa32_hpux_frame_base_before_sigtramp, and
12489         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12490
12491 2004-01-08  Michael Chastain  <[email protected]>
12492
12493         * config/pa/tm-hppah.h: Update copyright years.
12494
12495 2004-01-08  Andrew Cagney  <[email protected]>
12496
12497         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12498         (mips_o32_reg_struct_has_addr): Delete function.
12499         (mips_gdbarch_init): Update.
12500         (mips_extract_struct_value_address): Delete function.
12501
12502 2004-01-08  David Mosberger  <[email protected]>
12503
12504         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12505         reality.
12506
12507 2004-01-07  Andrew Cagney  <[email protected]>
12508
12509         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12510         architecture's elf flags (when available).
12511
12512         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12513         FPU to the start, check the MIPS FPU when looking for an old
12514         architecture.
12515         (set_mipsfpu_single_command): Update the architecture.
12516         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12517
12518         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12519         (mips_mask_address_p): Add "tdep" parameter.
12520         (show_mask_address, mips_addr_bits_remove): Update.
12521         (mips_dump_tdep): Update.
12522         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12523         (MIPS_STACK_ARGSIZE): Delete macro.
12524         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12525         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12526         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12527         (mips_dump_tdep): Update.
12528         (MIPS_SAVED_REGSIZE): Delete macro.
12529         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12530         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12531         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12532         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12533         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12534         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12535         (mips_pop_frame, return_value_location): Update.
12536         (mips_n32n64_return_value, mips_dump_tdep): Update.
12537
12538         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12539         MIPS ABI.
12540
12541         * mips-tdep.c: Update copyright.
12542         (mips_gdbarch_init): Merge two code blocks handling the register
12543         name and number layout.
12544
12545 2004-01-02  Pawel Ostrowski  <[email protected]>
12546
12547         * tracepoint.c (validate_actionline): Fix segv at EOF
12548
12549 2004-01-07  Michael Chastain  <[email protected]>
12550
12551         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12552         properly for static fields.
12553
12554 2004-01-06  Jeff Johnston  <[email protected]>
12555             Jason Molenda  <[email protected]>
12556
12557         * disasm.c: Update copyright to include 2004.
12558         (do_mixed_source_and_assembly): For uiout asm list
12559         and tuple cleanups, initialize to null_cleanup instead of
12560         NULL and do so prior to loop.  Only reset when we close off
12561         the tuple/list.  Move check for whether to close off the
12562         asm tuple/list to after dump_insns call where it will be run
12563         on each loop iteration.
12564
12565 2004-01-05  Andrew Cagney  <[email protected]>
12566
12567         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12568         should be a switch case and not a label.
12569         * mips-tdep.c (mips32_next_pc): Delete unused labels
12570         "greater_equal_branch" and "less_zero_branch".
12571         * jv-valprint.c (java_print_value_fields): Delete unused label
12572         "flush_it".
12573
12574         * target.c (unpush_target): Only close a target that is in the
12575         target stack.
12576
12577 2004-01-05  Mark Kettenis  <[email protected]>
12578
12579         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12580         address from [sp + 64] instead of %o2.
12581
12582         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
12583         fixes PR backtrace/1476.
12584
12585 2004-01-05  Andrew Cagney  <[email protected]>
12586
12587         * libunwind-frame.h (struct frame_id): Add opaque declaration,
12588         move to start of file.
12589         * i386-tdep.h (struct regcache): Add opaque declaration.
12590         * config/ia64/nm-linux.h (struct target_ops): Add opaque
12591         declaration.
12592         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12593         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12594         * win32-nat.c (fake_create_process): Use ISO C style definition.
12595         * stabsread.c (define_symbol): Delete #ifndef
12596         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12597         stabs_argument_has_addr call, macro never defined.
12598
12599 2004-01-04  Michael Chastain  <[email protected]>
12600
12601         * op50-rom.c: Delete.
12602         * w89k-rom.c: Delete.
12603         * Makefile.in: Remove references.
12604
12605 2004-01-04  Mark Kettenis  <[email protected]>
12606
12607         * x86-64-tdep.c: Update copyright year.
12608         (struct amd64_register_info): Rename from x86_64_register_info.
12609         (amd64_register_info): Rename from x86_64_register_info.
12610         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12611         (amd64_register_name): Rename from x86_64_register_name.
12612         (amd64_register_type): Rename from x86_64_register_type.
12613         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12614         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12615         (amd64_dwarf_reg_to_regnum): Rename from
12616         x86_64_dwarf_reg_to_regnum.
12617         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12618         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12619         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12620         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12621         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12622         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12623         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12624         (amd64_frame_cache): Rename from x86_64_frame_cache.
12625         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12626         (amd64_frame_prev_register): Rename from
12627         x86_64_frame_prev_register.
12628         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12629         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12630         (amd64_sigtramp_frame_cache): Rename from
12631         x86_64_sigtramp_frame_cache.
12632         (amd64_sigtramp_frame_prev_register): Rename from
12633         x86_64_sigtramp_frame_prev_register.
12634         (amd64_sigtramp_frame_unwind): Rename from
12635         x86_64_sigtramp_frame_unwind.
12636         (amd64_sigtramp_frame_sniffer): Rename from
12637         x86_64_sigtramp_frame_sniffer.
12638         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12639         (amd64_frame_base): Rename from x86_64_frame_base.
12640         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12641         (amd64_frame_align): Rename from x86_64_frame_align.
12642         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12643         (amd64_regset_from_core_section): Rename from
12644         x86_64_regset_from_core_section.
12645         (x86_64_init_abi): Update comments.
12646
12647 2004-01-04  Nick Roberts  <[email protected]>
12648
12649         * MAINTAINERS (write after approval): Add myself.
12650
12651 2004-01-04  Mark Kettenis  <[email protected]>
12652
12653         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12654         `float' arguments.
12655
12656 2004-01-04  Mark Kettenis  <[email protected]>
12657
12658         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12659         such that it mentions a specific version of GCC that exhibits this
12660         bug.
12661
12662 2004-01-03  Mark Kettenis  <[email protected]>
12663
12664         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12665         structure that has a single `float' member, store it in %f1 in
12666         addition to %f0.
12667
12668         * sparc-sol2-nat.c: Add missing '\'.
12669
12670         * sparc-tdep.c (sparc32_return_value): New function.
12671          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12672         Remove functions.
12673         (sparc32_gdbarch_init): Set return_value, don't set
12674         extract_return_value, store_return_value, use_struct_convention
12675         and return_value_on_stack.
12676
12677         * sparc-sol2-nat.c: Add missing ')'.
12678
12679 2004-01-03  J. Brobecker  <[email protected]>
12680
12681         * infrun.c (handle_step_into_function): New function.
12682         (handle_inferior_event): Extract out some code into the new
12683         function above.
12684
12685 2004-01-03  J. Brobecker  <[email protected]>
12686
12687         * infrun.c (handle_inferior_event): Move the declaration of
12688         real_stop_pc inside the if blocks where it is used.
12689
12690 2004-01-03  Mark Kettenis  <[email protected]>
12691
12692         * sparc64-tdep.c (sparc64_16_byte_align_p)
12693         (sparc64_store_floating_fields, sparc64_store_floating_fields):
12694         Use check_typedef to get subtypes of structures and unions.
12695         (sparc64_store_return_value): Fix calculation of the appropriate
12696         offset into VALBUF when storing a structure or union.
12697         (sparc64_return_value): New function.
12698         (sparc64_use_struct_convention): Remove function.
12699         (sparc64_init_abi): Set return_value, don't set
12700         extract_return_value, store_return_value and
12701         use_struct_convention.
12702
12703 2004-01-03  Eli Zaretskii  <[email protected]>
12704
12705         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12706         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12707         gdb/config/alpha/xm-alphaosf.h,
12708         gdb/config/powerpc/tm-ppcle-eabi.h,
12709         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12710         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12711         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12712         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12713         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12714         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12715         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12716         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12717         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12718         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12719         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12720         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12721         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12722         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12723         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12724         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12725         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12726         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12727         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12728         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12729         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12730         Remove lines for .cvsignore files.
12731
12732 2004-01-03  J. Brobecker  <[email protected]>
12733
12734         * infrun.c: Back out the previous change.
12735
12736 2004-01-03  Mark Kettenis  <[email protected]>
12737
12738         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
12739         sparc-*-sunos4* to the list of REMOVED configurations.
12740
12741         * configure.tgt: Add back sparc-*-vxworks*.
12742         * remote-vxsparc.c: Remove all includes except for "defs.h",
12743         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12744         Include "sparc-tdep.h".
12745         (SPARC_R_G1): New define.
12746         (vxsparc_gregset): New variable.
12747         (ext_format_sparc): Remove extern declaration.
12748         (vx_read_register): Rewrite to use sparc32_supply_gregset and
12749         sparc32_supply_fpregset.
12750         (vx_write_register): Rewrite to use sparc32_collect_gregset,
12751         sparc_collect_rwindow and sparc32_collect_fpregset.
12752         * config/sparc/tm-vxworks.h: New file, based on recently removed
12753         tm-vxsparc.h.
12754         * config/sparc/vxworks.mt: New file, based on recently removed
12755         vxworks.mt.
12756
12757 2004-01-03  J. Brobecker  <[email protected]>
12758
12759         * infrun.c (handle_step_into_function): New function.
12760         (handle_inferior_event): Extract out some code into the new
12761         function above.
12762
12763 2004-01-02  Mark Kettenis  <[email protected]>
12764
12765         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12766         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12767         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12768         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12769         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12770         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12771         (sparc_nat_h): New variable.
12772         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12773         (tm-sun4os4.h): Remove dependency.
12774         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12775         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12776         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12777         sparc-tdep.o): Update dependencies.
12778         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12779         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12780         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12781         dependencies.
12782         * configure.host: Remove existing sparc-*-lynxos*,
12783         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12784         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12785         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
12786         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12787         triplets.
12788         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12789         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12790         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12791         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
12792         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12793         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12794         sparc64-*-solaris2* and sparc64-*-* triplets.
12795         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
12796         "symtab.h" and "objfiles.h".
12797         (BIAS): Remove define.
12798         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12799         (X_DISP19): Remove macros.
12800         (sparc_fetch_instruction): Remove function.
12801         (struct gdbarch_tdep): Remove definition.
12802         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12803         (sparc_breakpoint_from_pc): Remove function.
12804         (struct sparc64_frame_cache): Remove definition.
12805         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12806         sparc64_unwind_pc): Remove functions.
12807         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12808         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
12809         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
12810         (sparc64_frame_cache): Change return type to `struct
12811         sparc_frame_cache *'.  Simply call sparc_frame_cache.
12812         (sparc64_frame_this_id, sparc64_frame_prev_register,
12813         sparc64_frame_base_address): Use `struct sparc_frame_cache'
12814         instead of `struct sparc64_frame_cache.
12815         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12816         sparc_analyze_control_transfer, sparc_software_single_step,
12817         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12818         _initialize_sparc64_tdep): Remove functions.
12819         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12820         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12821         macros.
12822         (sparc64_supply_gregset, sparc64_collect_gregset,
12823         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12824         (sparc64_init_abi): New function.
12825         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
12826         inclusion guard.  Include "sparc-tdep.h".
12827         (BIAS): Define.
12828         (r_tstate_offset, r_fprs_offset): New defines.
12829         (enum sparc_regnum): Remove defenition.
12830         (enum sparc64_regnum): Reformat.
12831         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12832         (sparc64_init_abi, sparc64_supply_gregset,
12833         sparc64_collect_gregset, sparc64_supply_fpregset,
12834         sparc64_collect_fpregset): New prototypes.
12835         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12836         Add extern declarations.
12837         (sparc64_sol2_init_abi): New prototype.
12838         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12839         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12840         prototypes.
12841         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12842         "sparnbsd-nat.h".
12843         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12844         functions.
12845         (_initialize_sparc64fbsd_nat): Remove initialization of
12846         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12847         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12848         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
12849         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
12850         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12851         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12852         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12853         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12854         (sparc64fbsd_r_y_offset): Remove variables.
12855         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12856         Make static and const.
12857         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12858         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12859         functions.
12860         (sparc64fbsd_gregset): New variable.
12861         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12862         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12863         and sparc64_supply_fpregset.
12864         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12865         (sparc64fbsd_sigtramp_frame_this_id)
12866         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12867         (sparc64fbsd_sigtramp_frame_unwind): New variable.
12868         (sparc64fbsd_sigtramp_frame_sniffer): New function.
12869         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12870         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
12871         * sparcnbsd-tdep.c: Update copyright year.  Include
12872         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12873         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12874         "value.h" and "sparcnbsd-tdep.h".
12875         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12876         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12877         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12878         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12879         defines.
12880         (sparcnbsd_gregset): New variable.
12881         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12882         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12883         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12884         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12885         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12886         variables.
12887         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12888         (sparc32nbsd_sigcontext_frame_this_id)
12889         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12890         (sparc32nbsd_sigcontext_frame_unwind): New variable.
12891         (sparc32nbsd_sigtramp_frame_sniffer): New function.
12892         (sparcnbsd_get_longjmp_target_32,
12893         sparcnbsd_get_longjmp_target_64): Remove functions.
12894         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12895         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12896         sparcnbsd_init_elf): Remove.
12897         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12898         (sparcnbsd_elf_init_abi): New functions.
12899         (_initialize_sparcnbsd_tdep): New prototype.
12900         (_initialize_sparnbsd_tdep): Update.
12901         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12902         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
12903         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12904         * config/sparc/linux.mh: Update comment.
12905         (XM_FILE, HOST_IPC): Remove variables.
12906         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
12907         sparc-linux-nat.o.
12908         * config/sparc/linux.mt: Update comment.
12909         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12910         * config/sparc/nbsd.mt: Reformat.
12911         * config/sparc/nbsd64.mh: Update comment.
12912         (NATDEPFILES): Add sparc-nat.o.
12913         * config/sparc/nbsd64.mt: Update comment.
12914         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12915         (TM_FILE): Set to tm-nbsd.h.
12916         * config/sparc/nbsdelf.mh: Update comment.
12917         (NATDEPFILES): Add sparc-nat.o.
12918         (XM_FILE): Delete.
12919         * config/sparc/nbsdaout.mh: Update comment.
12920         (NATDEPFILES): Add sparc-nat.o
12921         (XM_FILE): Delete.
12922         * config/sparc/nm-linux.h: Update copyright year.  Don't include
12923         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
12924         inclusion.
12925         (KERNEL_U_SIZE): Remove define.
12926         (kernel_u_size): Remove prototype.
12927         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12928         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
12929         "regcache.h".
12930         (CHILD_PREPARE_TO_STORE): Remove define.
12931         * config/sparc/nm-nbsdaout.h: Tweak some comments.
12932         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12933         sparcnbsd-nat.c: Rewrite files.
12934         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12935         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12936         sparcnbsd-tdep.h: Remove files.
12937         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12938         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12939         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12940         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12941         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12942         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12943         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12944         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12945         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12946         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12947         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12948         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12949         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12950         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12951         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12952         * config/sparc/linux64.mh, config/sparc/linux64.mt,
12953         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12954         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12955         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12956
12957 2004-01-02  Andrew Cagney  <[email protected]>
12958
12959         From 2003-12-18 Kazuhiro Inaoka:
12960         * configure.host: Add m32r-linux target.
12961
12962 2004-01-02  Michael Chastain  <[email protected]>
12963
12964         * top.c (print_gdb_version): Update year to 2004.
12965
12966 2004-01-02  Mark Mitchell  <[email protected]>
12967
12968         * MAINTAINERS: Add myself to the write-after-approval category.
12969
12970 2004-01-02  Daniel Jacobowitz  <[email protected]>
12971
12972         From Bernardo Innocenti <[email protected]>:
12973         * configure.tgt: Add uClinux target.
12974
12975 2004-01-02  Andrew Cagney  <[email protected]>
12976
12977         * utils.c (do_my_cleanups): Make static, add forward declaration.
12978         * defs.h (do_my_cleanups): Delete declaration.
12979
12980 2004-01-02  Eli Zaretskii  <[email protected]>
12981
12982         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12983         bfd/ChangeLog-0203.
12984
12985 2004-01-02  Mark Kettenis  <[email protected]>
12986
12987         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
12988         in <machine/reg.h>.
12989         * configure, config.in: Regenerate.
12990
12991 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12992 tui/ChangeLog-1998-2003.
12993 \f
12994 Local Variables:
12995 mode: change-log
12996 left-margin: 8
12997 fill-column: 74
12998 version-control: never
12999 End:
This page took 0.75732 seconds and 4 git commands to generate.