]> Git Repo - binutils.git/blob - gdb/ChangeLog
* mips-tdep.c (mips16_scan_prologue): Remove redundant code.
[binutils.git] / gdb / ChangeLog
1 2004-10-10  Joel Brobecker  <[email protected]>
2
3         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
4
5 2004-10-10  Joel Brobecker  <[email protected]>
6
7         * mips-tdep.c (mips16_scan_prologue): Renames
8         mips16_heuristic_proc_desc. Update comment.
9         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
10         (heuristic_proc_desc): Update calls to the 2 functions above.
11
12 2004-10-10  Joel Brobecker  <[email protected]>
13
14         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
15         Update comments. Also immediately return empty cache when the start
16         address of our function could not be found.
17         (mips_insn32_frame_cache): Likewise.
18
19 2004-10-10  Joel Brobecker  <[email protected]>
20
21         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
22         (mips_insn16_frame_cache): Pass frame cache in call to
23         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
24         Remove code that became redundant as a consequence.
25         (mips32_heuristic_proc_desc): No longer compute a fake
26         procedure descriptor. Compute the full frame cache instead.
27         Some minor comment reformatting.
28
29 2004-10-10  Jim Blandy  <[email protected]>
30
31         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
32         reader, tracing bytecode stuff): Remove self.
33
34 2004-10-10  Mark Kettenis  <[email protected]>
35
36         * sparc64-linux-tdep.c: Update copyright year.  Don't include
37         "solib-svr4.h".
38         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
39         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
40         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
41
42         * sparc-linux-tdep.c: Update copyright year.
43         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
44         to struct frame_info *.  Use safe_frame_unwind_memory instead of
45         deprecated_read_memory_nobpt.
46         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
47         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
48         changed signature of sparc_linux_sigtramp_start.
49         (sparc32_linux_pc_in_sigtramp): Remove function.
50         (sparc32_linux_sigtramp_p): New function.
51         (sparc32_linux_sigtramp_frame_sniffer): Use
52         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
53
54         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
55         Remove function.
56         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
57
58         * ada-lang.c (lim_warning): Re-implement as a varargs function.
59         (decode_packed_array_type, value_subscript_packed)
60         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
61         argument in call to lim_warning.
62
63         * configure.in: Really disable the TUI if an enhanced curses
64         library isn't found.
65         * configure: Regenerate.
66
67 2004-10-09  Mark Kettenis  <[email protected]>
68
69         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
70         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
71         * config/i386/nm-nbsdaout.h: Remove file.
72         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
73         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
74         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
75         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
76         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
77         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
78         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
79         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
80         (ldd, ld_un, ld_2): Remove defines.
81         * config/i386/nm-obsd.h: Likewise.
82
83 2004-10-09  Paul Hilfinger  <[email protected]>
84
85         * ada-lex.l: Remove useless rule whose right-context clause
86         causes unreferenced static function warning for yyrealloc.
87         (ada_flex_use): Remove the artificial reference to yyrealloc.
88
89 2004-10-08  Andrew Cagney  <[email protected]>
90
91         * target.h (struct target_ops): Rename to_xfer_memory to
92         deprecated_xfer_memory.
93         * target.c: Update.
94         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
95         * wince.c: Update.
96         * win32-nat.c: Update.
97         * v850ice.c: Update.
98         * uw-thread.c: Update.
99         * thread-db.c: Update.
100         * sol-thread.c: Update.
101         * remote.c: Update.
102         * remote-vx.c: Update.
103         * remote-st.c: Update.
104         * remote-sim.c: Update.
105         * remote-sds.c: Update.
106         * remote-rdp.c: Update.
107         * remote-rdi.c: Update.
108         * remote-mips.c: Update.
109         * remote-m32r-sdi.c: Update.
110         * remote-e7000.c: Update.
111         * procfs.c: Update.
112         * ppc-bdm.c: Update.
113         * nto-procfs.c: Update.
114         * monitor.c: Update.
115         * linux-nat.c: Update.
116         * inftarg.c: Update.
117         * hpux-thread.c: Update.
118         * go32-nat.c: Update.
119         * gnu-nat.c: Update.
120         * exec.c: Update.
121         * corelow.c: Update.
122         * bsd-kvm.c: Update.
123         * aix-thread.c: Update.
124
125 2004-10-08  Andrew Cagney  <[email protected]>
126
127         * target.c (debug_target): Move to near start of file.
128         (target_stopped_data_address_p): Re-org logic, add casts.
129
130 2004-10-02  Mark Kettenis  <[email protected]>
131
132         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
133         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
134         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
135         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
136         New defines.
137
138 2004-10-08  Jeff Johnston  <[email protected]>
139
140         * target.h (to_stopped_data_address): Change prototype to
141         take a CORE_ADDR pointer and return an int.
142         * target.c (update_current_target): Change to_stopped_data_address
143         to match new prototype.
144         (debug_to_stopped_data_address): Change appropriately.
145         * breakpoint.c (bpstat_stop_status): Change call to
146         target_stopped_data_address to use new prototype.
147         * frv-tdep.c (frv_have_stopped_data_address): New function.
148         (frv_stopped_data_address): Change to new prototype and
149         functionality.
150         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
151         prototype and functionality.
152         (ia64_stopped_by_watchpoint): New function.
153         * i386-nat.c (i386_stopped_data_address): Change to new
154         prototype and functionality.
155         (i386_stopped_by_watchpoint): New function.
156         * remote.c (remote_stopped_data_address): Change to new prototype
157         and functionality.
158         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
159         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
160         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
161         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
162         new i386_stopped_by_watchpoint function.
163         (i386_stopped_by_watchpoint): New prototype.
164         (i386_stoppped_data_address): Change to new prototype.
165         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
166         new ia64_stopped_by_watchpoint function.
167         (ia64_stopped_by_watchpoint): New prototype.
168         (ia64_stopped_data_address): Ditto.
169
170 2004-10-08  Paul Hilfinger  <[email protected]>
171
172         * ada-typeprint.c (ada_print_type): Use int_string for printing
173         modulus of modular type.
174         * ada-lang.h (ada_modulus): Change return type to unsigned.
175         * ada-lang.c (ada_language_arch_info): Correct type of 
176         string_char_type.
177         (ada_modulus): Return unsigned result.
178         (ada_lookup_symbol): Remove user disambiguation and modify comment 
179         accordingly.
180         
181 2004-10-08 Eric Botcazou  <[email protected]>     
182
183         Committed by Paul Hilfinger.
184         * ada-lang.c (decode_packed_array): On big-endian targets, 
185         left-justify the value if it comes with a modular type.
186
187 2004-10-08  Joel Brobecker  <[email protected]>        
188
189         Committed by Paul Hilfinger.
190         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
191         (is_name_suffix): Add support for "___JM" suffixes.
192         (ada_check_typedef): Renames ada_completed_type. 
193         Update all users of CHECK_TYPEDEF, check_typedef, and 
194         ada_complete_type to call ada_check_typedef.
195         * ada-typeprint.c: Likewise.
196         * ada-valprint.c: Likewise.
197
198 2004-10-08  Corinna Vinschen  <[email protected]>
199
200         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
201
202 2004-10-08  Nick Roberts  <[email protected]>
203
204         * MAINTAINERS: Update e-mail address.
205
206 2004-10-07  Daniel Jacobowitz  <[email protected]>
207
208         From Maciej W. Rozycki  <[email protected]>:
209         * mips-tdep.c (mips32_next_pc): Check the register's contents,
210         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
211
212 2004-10-07  Kei Sakamoto  <[email protected]>
213
214         * m32r-tdep.c (decode_prologue): Support functions written
215         in assembler language. Recognize trap instructions as the
216         end of prologue.
217         (m32r_frame_unwind_cache): Ditto.
218         (m32r_skip_prologue): Extend search limit. Quit analyzing
219         prologue if pc's location is not readable.
220
221 2004-10-06  Paul N. Hilfinger  <[email protected]>
222
223         * Makefile.in (.l.c): Do conversions of names of alloc and free 
224         functions that are done for .y.c files, plus special one
225         for yy_flex_realloc.  Also, correct missing-file tests here.
226         * ada-lex.l (malloc, free): Remove macros.
227         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
228         xrealloc.
229         (ada_flex_use): Dummy definition to remove warnings about unused
230         functions.
231         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
232         to suppress warning.
233         
234 2004-10-06  Corinna Vinschen  <[email protected]>
235
236         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
237         RETURN_VALUE.
238         (sh_return_value_fpu): Ditto for CPUs with FPU.
239         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
240         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
241         Install sh_return_value_nofpu resp. sh_return_value_fpu as
242         RETURN_VALUE functions.
243
244 2004-10-06  Corinna Vinschen  <[email protected]>
245
246         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
247         (sh_pseudo_register_write): Ditto.
248
249 2004-10-06  Corinna Vinschen  <[email protected]>
250
251         * sh-tdep.c (IS_MACL_STS): New define.
252         (IS_MOVI20): Ditto.
253         (IS_MACL_LDS): Ditto.
254         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
255         instructions in prologue.
256         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
257         instructions in epilogue.
258
259 2004-10-06  Corinna Vinschen  <[email protected]>
260
261         * sh-tdep.c (SH_NUM_REGS): Define as 67.
262         (sh_sh_register_name): Add eight empty register names.
263         (sh_sh3_register_name): Ditto.
264         (sh_sh3e_register_name): Ditto.
265         (sh_sh2e_register_name): Ditto.
266         (sh_sh2a_register_name): New function, defining SH2A register set.
267         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
268         in nofpu case.
269         (sh_sh_dsp_register_name): Add eight empty register names.
270         (sh_sh3_dsp_register_name): Ditto.
271         (sh_sh4_register_name): Ditto.
272         (sh_sh4_nofpu_register_name): Ditto.
273         (sh_sh4al_dsp_register_name): Ditto.
274         (sh2a_show_regs): New function.
275         (sh2a_nofpu_show_regs): New function.
276         (sh_sh2a_register_type): New function.
277         (do_bank_register_info): New function.
278         (sh_print_pseudo_register): Call do_bank_register_info.
279         Call sh_print_pseudo_register for valid "bank" register.
280         (sh_sh2a_register_sim_regno): New function.
281         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
282         Increment pseudo register count by one for all sh variants with
283         pseudo registers to accomodate pseudo bank register.
284         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
285         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
286         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
287         Increment pseudo register numbers.
288
289 2004-10-06  Corinna Vinschen  <[email protected]>
290
291         * dwarf2read.c (read_subroutine_type): Call make_function_type
292         instead of lookup_function_type.
293
294 2004-10-05  Jim Blandy  <[email protected]>
295
296         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
297         (Previous change missed some uses.)
298
299 2004-10-05  Andrew Cagney  <[email protected]>
300
301         * target.h (deprecated_child_ops): Rename child_ops.
302         * wince.c: Update copyright.  Rename child_ops.
303         * win32-nat.c: Rename child_ops.
304         * target.c: Rename child_ops.
305         * rs6000-nat.c: Rename child_ops.
306         * linux-nat.c: Rename child_ops.
307         * infttrace.c: Rename child_ops.
308         * inftarg.c: Rename child_ops.
309         * infptrace.c: Rename child_ops.
310         * hppah-nat.c: Update copyright.  Rename child_ops.
311         * hpux-thread.c: Update copyright.  Rename child_ops.
312
313 2004-10-05  Daniel Jacobowitz  <[email protected]>
314
315         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
316
317 2004-10-05  Andrew Cagney  <[email protected]>
318
319         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
320
321 2004-10-05  Daniel Jacobowitz  <[email protected]>
322
323         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
324         (die_ref_table): Remove.
325         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
326         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
327         the usage of this type.
328         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
329         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
330         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
331         (dwarf2_create_include_psymtab): Update comment.
332         (find_partial_die): Remove third argument.  Remove unreachable call
333         to error ().
334         (dwarf2_find_containing_comp_unit): Update comments.  Change one
335         assertion to an error.  Remove an unreachable error.
336         (dwarf2_find_comp_unit): Update comments.
337         (type_at_offset): Remove dead code.
338         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
339         (store_in_ref_table): Add CU argument.
340         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
341         inter-compilation-unit references.
342         (load_full_comp_unit, process_full_comp_unit): New functions, based
343         on psymtab_to_symtab_1.
344         (psymtab_to_symtab_1): Use them.
345         (dwarf2_add_dependence): New function.
346         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
347         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
348         (partial_die_parent_scope, guess_structure_name): Update for changes
349         to find_partial_die.
350         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
351         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
352         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
353         (read_die_and_children): Update call to store_in_ref_table.
354         (do_free_die_list_cleanup): Remove.
355         (fixup_partial_die): Update for changes to find_partial_die.
356         (read_full_die): Handle queueing absolute references.
357         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
358         (dwarf2_attr, die_specification, die_type)
359         (die_containing_type, dwarf2_extension): Update calls to
360         follow_die_ref.
361         (dump_die): Update DW_FORM_ref* handling.
362         (dwarf2_get_ref_die_offset): Likewise.
363         (free_one_comp_unit): Release the dies list.
364         (dwarf2_mark_helper): New function.
365         (dwarf2_mark): Use it.
366
367 2004-10-05  Mark Kettenis  <[email protected]>
368
369         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
370         when writing to memory.
371
372 2004-10-05  Kei Sakamoto  <[email protected]>
373
374         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
375         (m32r_extract_struct_value_address): Delete function.
376         (m32r_return_value): New function.
377         (m32r_gdbarch_init): Instead of store_return_value,
378         extract_return_value, deprecated_extract_struct_value_address
379         and deprecated_use_struct_convention, set return_value.
380
381 2004-10-03  Daniel Jacobowitz  <[email protected]>
382
383         * dwarf2read.c (read_subrange_type): Add comment for variable
384         sized arrays.
385
386 2004-10-03  Paul Hilfinger  <[email protected]>
387
388         * Makefile.in (.l.c): Modify rule for compatibility with recent
389         versions of flex, and remove most command-line options.
390         * ada-lex.l: Add %options line in place of -I -i and -s command-line
391         options.
392
393 2004-10-02  Paul N. Hilfinger  <[email protected]>
394
395         Turn on initial Ada support (mainly expression evaluation).
396         
397         * Makefile.in (SFILES): Remove ada-tasks.c.
398         (HFILES_NO_SRCDIR): Add ada-lang.h.
399         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
400         (YYOBJ): Add ada-exp.o.
401         (rule .l.c): Generalize to not mention ada.
402         * symtab.c: Include ada-lang.h.
403         (symbol_natural_name, symbol_demangled_name)
404         (symbol_search_name): Add Ada case.
405
406 2004-10-01  Andrew Cagney  <[email protected]>
407
408         * Makefile.in (COMMON_OBS): Add inf-child.o.
409         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
410         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
411         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
412         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
413         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
414         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
415         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
416         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
417         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
418         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
419         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
420         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
421         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
422
423         * target.c (xfer_using_stratum): Change return type to LONGEST.
424         On each iteration offset, readbuf and writebuf.
425         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
426         partial_length, and read/modify/write predicate, update comments.
427         Pass buffer.word to ptrace write.
428
429 2004-10-01  Paul N. Hilfinger  <[email protected]>
430
431         * symfile.c (init_filename_language_table): Add extensions for
432         Ada.
433         * defs.h (enum language): Add language_ada.
434         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
435         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
436         (add_symbols_from_enclosing_procs): Make a no-op for now.
437         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
438         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
439         (find_line_in_linetable, find_next_line_in_linetable)
440         (read_all_symtabs, is_plausible_func_for_line)
441         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
442         (is_runtime_sym_defined, check_size): Remove declaration.
443         (function_name_from_pc, ada_translate_error_message)
444         (ada_lookup_minimal_symbol): Remove definition.
445         (ada_add_block_symbols): Remove useless label.
446         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
447         useless declaration.
448         (ada_is_exception_sym): Likewise.
449
450 2004-09-30    Kei Sakamoto  <[email protected]>
451
452         Add m32r-linux support.
453         * configure.tgt: Add m32r*-*-linux*.
454         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
455         and m32r-linux-tdep.c.
456         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
457         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
458         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
459         m32r-linux-tdep.c.
460         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
461         config/m32r/linux.mh, config/m32r/linux.mt,
462         config/m32r/nm-linux.h: New files.
463
464 2004-09-30  Joel Brobecker  <[email protected]>
465
466         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
467         (mips32_fetch_instruction): Remove, unused.
468
469 2004-09-30  Joel Brobecker  <[email protected]>
470
471         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
472         conditions that will always be true.
473
474 2004-09-30  Mark Kettenis  <[email protected]>
475
476         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
477         (vaxbsd_fetch_inferior_registers): Rename from
478         fetch_inferior_registers.  Make static.
479         (vaxbsd_store_inferior_registers): Rename from
480         store_inferior_registers.  Make static.
481         (_initialize_vaxbsd_nat): Construct and add target vector.
482         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
483         inftarg.o.  Add inf-child.o and inf-ptrace.o.
484         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
485         inftarg.o.  Add inf-child.o and inf-ptrace.o.
486         (NAT_FILE): Remove.
487         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
488         inftarg.o.  Add inf-child.o and inf-ptrace.o.
489         (NAT_FILE): Remove.
490         * Makefile.in (vaxbsd-nat.o): Update dependencies.
491
492         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
493         (m88kbsd_fetch_inferior_registers): Rename from
494         fetch_inferior_registers.  Make static.
495         (m88kbsd_store_inferior_registers): Rename from
496         store_inferior_registers.  Make static.
497         (_initialize_m88kbsd_nat): New prototype and function.
498         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
499         inftarg.o.  Add inf-child.o and inf-ptrace.o.
500         (NAT_FILE): Remove.
501         * Makefile.in (m88kbsd-nat.o): Update dependencies.
502
503 2004-09-30  Andrew Cagney  <[email protected]>
504
505         * target.c (target_xfer_partial): New function.
506         (target_read_memory_partial, target_write_memory_partial) 
507         (default_xfer_partial, target_read_partial, target_write_partial) 
508         (xfer_using_stratum): Use.
509         (debug_to_xfer_partial): Delete function.
510         (setup_target_debug): Do not override to_xfer_partial.
511
512 2004-09-30  Mark Kettenis  <[email protected]>
513
514         * fork-child.c: Update copyright year.  Fix coding style.
515
516 2004-09-29  Mark Kettenis  <[email protected]>
517
518         * defs.h (msavestring, mstrsave): Remove prototypes.
519         * utils.c (msavestring, mstrsave): Remove functions.
520         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
521         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
522         of mstrsave.
523         * source.c (find_and_open_source): Use xstrdup instead of
524         mstrsave.
525
526 2004-09-30  Andrew Cagney  <[email protected]>
527
528         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
529         (inf_ptrace_xfer_memory): Delete.
530         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
531         (target_read_memory, target_write_memory): Use xfer_using_stratum
532         when target_xfer_partial_p.
533         (debug_target): Move to start of file.
534         (target_read_memory_partial, target_write_memory_partial): Use
535         to_xfer_partial when target_xfer_partial_p.
536
537         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
538         inf_ptrace_xfer_memory with equivalent code.
539         * inftarg.c (child_xfer_partial): When performing a write, pass
540         writebuf to child_xfer_memory.
541
542         * target.c (target_read_string): Use target_read_memory instead of
543         target_xfer_memory.
544
545 2004-09-29  Andrew Cagney  <[email protected]>
546
547         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
548         the address of status.
549
550         * infptrace.c (ptrace_wait): Mention problem with HPUX.
551         (kill_inferior): Inline ptrace_wait call.
552         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
553         * inftarg.c (child_wait): Inline ptrace_wait call.
554
555         * target.h (struct target_ops): Delete field to_post_wait.
556         (target_post_wait): Delete macro.
557         (child_post_wait): Delete declaration.
558         * target.c (update_current_target, update_current_target)
559         (debug_to_post_wait, setup_target_debug): Delete functions and
560         references.
561         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
562         * inftarg.c (child_post_wait): Delete.
563         (init_child_ops): Do not set to_post_wait.
564         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
565         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
566         * inf-child.c (inf_child_post_wait): Delete.
567         (inf_child_target): Do not set to_post_wait.
568         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
569         (inf_ptrace_target): Do not set to_post_wait.
570
571         * wince.c (child_ops): Delete.
572         * win32-nat.c (child_ops): Delete.
573
574         * inftarg.c (inftarg_set_find_memory_regions) 
575         (inftarg_set_make_corefile_notes): Delete functions.
576         (_initialize_linux_nat): Inline calls.
577
578         * target.h (child_ops): Declare.
579         * inftarg.c (child_ops): Move from here ...
580         * target.c (child_ops): ... to here.
581         * wince.c (child_ops): Delete extern declaration.
582         * win32-nat.c (child_ops): Delete extern declaration.
583         * linux-nat.c (child_ops): Delete extern declaration.
584         * hpux-thread.c (child_ops): Delete extern declaration.
585
586 2004-09-28  Mark Kettenis  <[email protected]>
587
588         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
589
590 2004-09-28  Mark Kettenis  <[email protected]>
591
592         * configure.in: Only set host_makefile_frag when building a native
593         debugger.
594         * configure: Regenerate.
595
596         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
597         for OpenBSD ELF.
598
599 2004-09-28  Andrew Cagney  <[email protected]>
600
601         Problem identified by Paul Hilfinger.
602         * Makefile.in (ada_lex_c): Define.
603         (ada-lex.o): Delete rule.
604
605         * linux-proc.c: Delete file.
606         * Makefile.in: Update.
607         * config/sparc/linux64.mh (NATDEPFILES): 
608         * config/sparc/linux.mh (NATDEPFILES): Update.
609         * config/s390/s390.mh (NATDEPFILES): Update.
610         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
611         * config/powerpc/linux.mh (NATDEPFILES): Update.
612         * config/pa/linux.mh (NATDEPFILES): Update.
613         * config/mips/linux.mh (NATDEPFILES): Update.
614         * config/m68k/linux.mh (NATDEPFILES): Update.
615         * config/ia64/linux.mh (NATDEPFILES): Update.
616         * config/i386/linux64.mh (NATDEPFILES): Update.
617         * config/i386/linux.mh (NATDEPFILES): Update.
618         * config/arm/linux.mh (NATDEPFILES): Update.
619         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
620         * linux-nat.c: Update copyright.  Include <sys/param.h>,
621         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
622         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
623         (O_LARGEFILE): Possibly define.
624         (_initialize_linux_nat, linux_proc_pending_signals)
625         (add_line_to_sigset, linux_proc_xfer_memory)
626         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
627         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
628         (struct linux_corefile_thread_data)
629         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
630         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
631
632 2004-09-16  Andrew Cagney  <[email protected]>
633
634         * lin-lwp.c: Delete file.
635         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
636         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
637         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
638         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
639         (linux_nat_attach, detach_callback, linux_nat_detach)
640         (resume_callback, resume_clear_callback, linux_nat_resume)
641         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
642         (stop_wait_callback, linux_nat_has_pending, flush_callback)
643         (status_callback, running_callback, count_events_callback)
644         (select_singlestep_lwp_callback, select_event_lwp_callback)
645         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
646         (child_wait, stop_and_resume_callback, linux_nat_wait)
647         (kill_callback, kill_wait_callback, linux_nat_kill)
648         (linux_nat_create_inferior, linux_nat_mourn_inferior)
649         (linux_nat_xfer_memory, linux_nat_thread_alive)
650         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
651         (_initialize_linux_nat): New functions.
652         * Makefile.in: Update all dependencies.
653         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
654         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
655         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
656         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
657         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
658         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
659         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
660         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
661         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
662         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
663         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
664         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
665         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
666
667 2004-09-27  Mark Kettenis  <[email protected]>
668
669         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
670         config/i386/obsd64.mh (NAT_FILE): Remove variable.
671
672         * configure.in: Don't comment out NATDEPFILES in the generated
673         Makefile if NAT_FILE is unset.
674         * configure: Regenerate.
675
676 2004-09-27  Andrew Cagney  <[email protected]>
677
678         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
679         (insert_step_resume_breakpoint): Delete.
680         (insert_step_resume_breakpoint_at_frame): New function.
681         (insert_step_resume_breakpoint_at_sal): New function.
682         (handle_inferior_event, step_into_function)
683         (insert_step_resume_breakpoint): Simplify by using same.
684
685         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
686
687 2004-09-26  Mark Kettenis  <[email protected]>
688
689         * fbsd-proc.c: Remove file.
690         * Makefile.in (fbsd-proc.o): Remove dependency.
691
692         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
693         code together.
694
695         * config/i386/nm-fbsd64.h: Remove file.
696         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
697
698 2004-09-26  Mark Kettenis  <[email protected]>
699
700         * amd64-nat.h: Update copyright year.
701         (amd64bsd_target): New prototype.
702         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
703         (amd64bsd_target): New function.
704         (amd64bsd_fetch_inferior_registers): Rename from
705         fetch_inferior_registers.  Make static.
706         (amd64bsd_store_inferior_registers): Rename from
707         store_inferior_registers.  Make static.
708         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
709         (_initialize_amd64fbsd_nat): Construct and add target vector.
710         * amd64nbsd-nat.o: Include "target.h".
711         (_initialize_amd64nbsd_nat): Construct and add target vector.
712         * amd64obsd-nat.c: Include "target.h".
713         (_initialize_amd64obsd_nat): Construct and add target vector.
714         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
715         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
716         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
717         fbsd-nat.o.
718         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
719         Remove infptrace.o and inftarg.o.  Add inf-child.o and
720         inf-ptrace.o.
721         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
722         (amd64obsd-nat.o): Update dependencies.
723
724 2004-09-25  Mark Kettenis  <[email protected]>
725
726         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
727         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
728         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
729         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
730         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
731
732         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
733         Inline attach call.
734         (inf_ptrace_detach): Inline detach call.
735
736         * configure.in: Check for waddstr instead of mvwaddstr when
737         searching for curses library.  Check for wborder.
738         * configure, config.in: Regenerate.
739         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
740         available.
741
742         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
743
744 2004-09-24  Robert Picco <[email protected]>
745
746         Committed by Andrew Cagney.
747         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
748         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
749         configuration.
750         (fetch_register_using_p): Implement 'p' packet.  Based on code by
751         Fernando Nasser.
752         (remote_fetch_registers): Call fetch_register_using_p.
753         (init_all_packet_configs, show_remote_cmd)
754         (_initialize_remote): Add p-packet.
755
756 2004-09-24  Mark Kettenis  <[email protected]>
757
758         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
759         instead of call_ptrace.  Call wait directly instead of
760         ptrace_wait.
761         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
762         (inf_ptrace_wait): Inline ptrace_wait call.
763
764 2004-09-24  Paul Hilfinger  <[email protected]>
765
766         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
767         rolled back instead.
768
769 2004-09-24  Paul Hilfinger  <[email protected]>
770
771         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
772         the new argument order.
773
774 2004-09-23  Corinna Vinschen  <[email protected]>
775
776         * MAINTAINERS: Remove "broken" from XStormy16 entry.
777         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
778         (struct gdbarch_tdep): Remove.
779         (struct xstormy16_frame_cache): New frame cache structure.
780         (xstormy16_register_byte, xstormy16_register_raw_size)
781         (xstormy16_reg_virtual_type, xstormy16_register_type)
782         (xstormy16_push_arguments, xstormy16_push_return_address)
783         (xstormy16_pop_frame, xstormy16_store_struct_return)
784         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
785         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
786         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
787         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
788         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
789         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
790         (xstormy16_use_struct_convention): Drop gcc_p parameter.
791         (xstormy16_extract_return_value, xstormy16_store_return_value):
792         Regcachify.  Drop useless struct convention handling.
793         (xstormy16_register_type, xstormy16_return_value)
794         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
795         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
796         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
797         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
798         (xstormy16_unwind_sp, xstormy16_unwind_pc)
799         (xstormy16_unwind_dummy_id) : New functions.
800         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
801         of xstormy16_scan_prologue.
802         (xstormy16_frame_unwind): New frame_unwind structure.
803         (xstormy16_frame_base): New frame_base structure.
804         (xstormy16_gdbarch_init): Accomodate all of the above changes.
805         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
806
807 2004-09-22  Mark Kettenis  <[email protected]>
808
809         * language.c (language_gdbarch_post_init): Fix off-by one error.
810
811 2004-09-21  Daniel Jacobowitz  <[email protected]>
812
813         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
814         (struct dwarf2_offset_and_type): New.
815         (set_die_type, reset_die_and_siblings_types, get_die_type)
816         (offset_and_type_hash, offset_and_type_eq): New functions.
817         (read_structure_type, read_enumeration_type, read_array_type)
818         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
819         (read_tag_reference_type, read_tag_const_type)
820         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
821         (read_typedef, read_base_type, read_subrange_type): Use
822         set_die_type.
823
824 2004-09-20  Daniel Jacobowitz  <[email protected]>
825
826         * Makefile.in (dwarf2read.o): Update dependencies.
827         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
828         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
829         and read_in_chain.
830         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
831         mark, and has_form_ref_addr.
832         (struct dwarf2_per_cu_data): New.
833         (dwarf2_max_cache_age): New.
834         (dwarf2_build_psymtabs_hard): Free cached compilation units
835         after loading.  Create and manage the list of compilation units.
836         Remove unnecessary NULL initialization.  Fix indentation.
837         (psymtab_to_symtab_1): Initialize all of CU.
838         (dwarf2_read_abbrevs): Set has_form_ref_addr.
839         (find_partial_die): Use dwarf2_find_containing_comp_unit
840         and load_comp_unit.
841         (free_stack_comp_unit): Update comments.  Clear the per-cu
842         pointer.  Handle aging.
843         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
844         (age_cached_comp_units, free_one_cached_comp_unit)
845         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
846         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
847         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
848         (show_dwarf2_cmd): New.
849         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
850         and "maint show dwarf2 max-cache-age".
851         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
852         externs.
853         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
854         global.
855
856 2004-09-20  Jeff Johnston  <[email protected]>
857
858         * dwarf2read.c (typename_concat): Change prototype to accept obstack
859         and dwarf2_cu struct pointer as arguments.  Change function to use
860         obstack if provided and use dwarf2_cu to determine language-specific
861         separator.
862         (partial_die_parent_scope): Change comment to include java.  Use
863         new version of typename_concat instead of obconcat.
864         (partial_die_full_name): Use typename_concat.
865         (read_namespace): Ditto.
866         (read_enumeration_type): Use typename_concat instead of obconcat.
867         (new_symbol): Ditto.
868         (add_partial_symbol): Enhance tests for C++ to also test for Java.
869         (guess_structure_name): Ditto.
870         (read_subroutine_type): Ditto.
871         (read_structure_type): Ditto.
872         (is_vtable_name): Add Java support.
873         (determine_class_name): Switch to new typename_concat call.
874         (determine_prefix): Switch to new typename_concat call.
875         * jv-exp.y (FuncStart): New pattern.
876         (MethodInvocation): Add support for simple function calls.  Change
877         warning message for other forms of inferior call currently not
878         supported.
879         * valarith.c (value_subscript): Treat an array with upper-bound
880         of -1 as unknown size.
881
882 2004-09-20  Daniel Jacobowitz  <[email protected]>
883
884         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
885         (lookup_partial_symtab): Use symtab_to_fullname.
886
887 2004-09-19  Jim Blandy  <[email protected]>
888
889         * minsyms.c (lookup_minimal_symbol): Doc fix.
890
891 2004-09-20  Andrew Cagney  <[email protected]>
892
893         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
894         CHILD_RESUME.
895         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
896         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
897         KILL_INFERIOR.
898         * infptrace.c: Update.
899
900 2004-09-19  Daniel Jacobowitz  <[email protected]>
901
902         * symtab.c (output_source_filename): Mark first argument as const.
903         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
904         for "info sources" output.
905
906 2004-09-20  Mark Kettenis  <[email protected]>
907
908         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
909         <machine/vmparam.h>.
910         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
911         (register_u_addr): Remove prototype.
912
913 2004-09-19  Mark Kettenis  <[email protected]>
914
915         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
916         (i386bsd_fetch_inferior_registers): Rename from
917         fetch_inferior_registers.  Make static.
918         (i386bsd_store_inferior_registers): Rename from
919         store_inferior_registers.  Make static.
920         (i386bsd_target): New function.
921         * i386bsd-nat.h: New file.
922         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
923         "i386bsd-nat.h".
924         (i386fbsd_resume): Rename from child_resume.  Make static.
925         (_initialize_i386fbsd_nat): Construct and add target vector.
926         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
927         (_initialize_i386nbsd_nat): Construct and add target vector.
928         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
929         Remove defines.
930         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
931         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
932         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
933         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
934         (LOADLIBES): New variable.
935         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
936         inf-ptrace.o.  Remove inftarg.o.
937         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
938         inf-ptrace.o. Remove inftarg.o.
939         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
940         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
941         (LOADLIBES): New variable.
942         * Makefile.in (i386bsd_nat_h): New variable.
943         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
944         dependencies.
945
946         * sparc64nbsd-tdep.c: Include "objfiles.h".
947         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
948         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
949         svr4_lp64_fetch_link_map_offsets.
950         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
951         "nbsd-tdep.h".
952         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
953         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
954         svr4_lp64_fetch_link_map_offsets.
955         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
956         dependencies.
957
958         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
959         * fbsd-nat.h: New file.
960         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
961         (fbsd_nat_h): New variable.
962         (fbsd-nat.o): New dependency.
963
964         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
965         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
966
967         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
968         comment.
969
970 2004-09-18  Paul N. Hilfinger  <[email protected]>
971         
972         * ada-exp.y (type_int): New function to add layer of abstraction
973         around references to expression types.
974         (type_long): Ditto.
975         (type_long_long): Ditto.
976         (type_float): Ditto.
977         (type_double): Ditto.
978         (type_long_double): Ditto.
979         (type_char): Ditto.
980         (type_system_address): Ditto.
981         (simple_exp): Use type_* functions in place of builtin_* 
982         variables.
983         (exp): Ditto.
984         (write_var_from_name): Ditto.
985         (write_object_renaming): Ditto.
986         * ada-lang.c (ada_create_fundamental_type): Remove redundant
987         declaration.
988         (build_ada_types): Remove, replacing with...
989         (ada_language_arch_info): New function to initialize primitive
990         type vector in language_arch_info.
991         (ada_array_length): Remove use of builtin_type_ada_int.
992         (value_pos_atr): Ditto.
993         (ada_evaluate_subexp): Ditto.
994         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
995         builtin_type_ada_long_long, builtin_type_ada_char, 
996         builtin_type_ada_float, builtin_type_ada_double, 
997         builtin_type_ada_long_double, builtin_type_ada_natural,
998         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
999         (ada_builtin_types): Remove.
1000         (ada_language_defn): Remove entries for la_builtin_type_vector and
1001         string_char_type and use ada_language_arch_info.
1002         (_initialize_ada_language): Do type-vector initialization along
1003         the lines of c-lang.c.
1004         (ada_create_fundamental_type): Break up line.
1005         (ada_dump_symtab): Remove unused function.
1006         (enum ada_primitive_types): Define.
1007         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
1008         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
1009         builtin_type_ada_float, builtin_type_ada_double, 
1010         builtin_type_ada_long_double, builtin_type_ada_natural,
1011         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1012         * ada-lex.l: Use type_* functions in place of builtin_* variables.
1013         (processInt): Ditto.
1014         (processReal): Ditto.
1015         (name_lookup): Ditto.
1016         * ada-typeprint.c (print_range): Use builtin_type_int, not
1017         builtin_type_ada_int.
1018         
1019 2004-09-18  Mark Kettenis  <[email protected]>
1020
1021         * i386-tdep.c (i386_register_name): Rename regno to regnum.
1022
1023         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1024         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1025         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1026         * configure.in: Improve checks for curses library by checking for
1027         mvwaddstr instead of initscr.  Drop HP curses in favour of
1028         standard curses on HP-UX.
1029         * configure: Regenerated.
1030
1031 2004-09-18  Paul N. Hilfinger  <[email protected]>
1032
1033         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1034         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
1035         Minor formatting changes.
1036         (empty_array): Slight rewrite for formatting.
1037         (emit_char,parse,ada_language_defn,build_ada_types,
1038         ada_is_exception_sym, _initialize_ada_language): Move 
1039         definitions around.
1040         (ada_dump_symtab): Remove unused definition.
1041         (ada_maybe_exception_partial_symbol): Remove unused definition.
1042
1043 2004-09-16  Andrew Cagney  <[email protected]>
1044
1045         * inf-child.c: Include "gdb_string.h".
1046         (inf_child_core_file_to_sym_file): Delete.
1047         (inf_child_target): Set to_fetch_registers and to_store_registers.
1048         * inf-ptrace.c: Include "gdb_string.h".
1049         * Makefile.in: Update all dependencies.
1050
1051         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1052         problem.
1053
1054 2004-09-14  Joel Brobecker  <[email protected]>
1055
1056         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1057         call to heuristic_proc_desc. Remove code that became redundant
1058         as a consequence.
1059         (read_next_frame_reg): Remove special case for SP_REGNUM.
1060         (set_reg_offset): Fix small typo.
1061         (reset_saved_regs): New procedure.
1062         (mips32_heuristic_proc_desc): No longer compute a fake
1063         procedure descriptor. Compute the full frame cache instead.
1064         Some minor comment reformatting.
1065
1066 2004-09-14  Andrew Cagney  <[email protected]>
1067
1068         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1069         maintainer.
1070
1071         * thread-db.c (thread_db_new_objfile): Assume that there is a
1072         child process.
1073
1074 2004-09-13  Jim Blandy  <[email protected]>
1075
1076         * valops.c (value_assign): Move 'buffer' to the enclosing block,
1077         so that its storage isn't referenced after its lifetime ends.
1078
1079         * valops.c (value_assign): 'use_buffer' is initialized to zero,
1080         and never assigned to.   Delete it, and the 'if (use_buffer)'
1081         clauses.  Delete 'raw_buffer', since it is now unused.
1082
1083 2004-09-13  Andrew Cagney  <[email protected]>
1084
1085         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1086         * configure: Re-generate.
1087         * nlm/Makefile.in (TAGS): Update.
1088         * Makefile.in (TAGS): Update.
1089         * config/vax/nbsd.mt (TM_FILE): Update.
1090         * config/sparc/vxworks.mt (TM_FILE): Update.
1091         * config/sparc/sol2.mt (TM_FILE): Update.
1092         * config/sparc/sol2-64.mt (TM_FILE): Update.
1093         * config/sparc/obsd64.mt (TM_FILE): Update.
1094         * config/sparc/obsd.mt (TM_FILE): Update.
1095         * config/sparc/nbsd64.mt (TM_FILE): Update.
1096         * config/sparc/nbsd.mt (TM_FILE): Update.
1097         * config/sparc/linux64.mt (TM_FILE): Update.
1098         * config/sparc/linux.mt (TM_FILE): Update.
1099         * config/sparc/fbsd.mt (TM_FILE): Update.
1100         * config/sh/wince.mt (TM_FILE): Update.
1101         * config/sh/nbsd.mt (TM_FILE): Update.
1102         * config/sh/linux.mt (TM_FILE): Update.
1103         * config/sh/embed.mt (TM_FILE): Update.
1104         * config/s390/s390.mt (TM_FILE): Update.
1105         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1106         * config/rs6000/rs6000.mt (TM_FILE): Update.
1107         * config/rs6000/aix4.mt (TM_FILE): Update.
1108         * config/powerpc/vxworks.mt (TM_FILE): Update.
1109         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1110         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1111         * config/powerpc/obsd.mt (TM_FILE): Update.
1112         * config/powerpc/nbsd.mt (TM_FILE): Update.
1113         * config/powerpc/linux.mt (TM_FILE): Update.
1114         * config/powerpc/aix.mt (TM_FILE): Update.
1115         * config/pa/obsd.mt (TM_FILE): Update.
1116         * config/pa/linux.mt (TM_FILE): Update.
1117         * config/pa/hppahpux.mt (TM_FILE): Update.
1118         * config/pa/hppa64.mt (TM_FILE): Update.
1119         * config/pa/hppa.mt (TM_FILE): Update.
1120         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1121         * config/mips/wince.mt (TM_FILE): Update.
1122         * config/mips/vxmips.mt (TM_FILE): Update.
1123         * config/mips/nbsd.mt (TM_FILE): Update.
1124         * config/mips/linux.mt (TM_FILE): Update.
1125         * config/mips/irix6.mt (TM_FILE): Update.
1126         * config/mips/irix5.mt (TM_FILE): Update.
1127         * config/mips/embed.mt (TM_FILE): Update.
1128         * config/m68k/vxworks68.mt (TM_FILE): Update.
1129         * config/m68k/st2000.mt (TM_FILE): Update.
1130         * config/m68k/os68k.mt (TM_FILE): Update.
1131         * config/m68k/obsd.mt (TM_FILE): Update.
1132         * config/m68k/nbsd.mt (TM_FILE): Update.
1133         * config/m68k/monitor.mt (TM_FILE): Update.
1134         * config/m68k/linux.mt (TM_FILE): Update.
1135         * config/m68k/cisco.mt (TM_FILE): Update.
1136         * config/ia64/linux.mt (TM_FILE): Update.
1137         * config/ia64/aix.mt (TM_FILE): Update.
1138         * config/ia64/ia64.mt (TM_FILE): Update.
1139         * config/i386/vxworks.mt (TM_FILE): Update.
1140         * config/i386/obsd64.mt (TM_FILE): Update.
1141         * config/i386/obsd.mt (TM_FILE): Update.
1142         * config/i386/nto.mt (TM_FILE): Update.
1143         * config/i386/nbsd64.mt (TM_FILE): Update.
1144         * config/i386/nbsd.mt (TM_FILE): Update.
1145         * config/i386/linux64.mt (TM_FILE): Update.
1146         * config/i386/linux.mt (TM_FILE): Update.
1147         * config/i386/i386sol2.mt (TM_FILE): Update.
1148         * config/i386/i386lynx.mt (TM_FILE): Update.
1149         * config/i386/fbsd64.mt (TM_FILE): Update.
1150         * config/i386/fbsd.mt (TM_FILE): Update.
1151         * config/i386/cygwin.mt (TM_FILE): Update.
1152         * config/h8300/h8300.mt (TM_FILE): Update.
1153         * config/frv/frv.mt (TM_FILE): Update.
1154         * config/cris/cris.mt (TM_FILE): Update.
1155         * config/arm/wince.mt (TM_FILE): Update.
1156         * config/arm/nbsd.mt (TM_FILE): Update.
1157         * config/arm/linux.mt (TM_FILE): Update.
1158         * config/arm/embed.mt (TM_FILE): Update.
1159         * config/alpha/nbsd.mt (TM_FILE): Update.
1160         * config/alpha/fbsd.mt (TM_FILE): Update.
1161         * config/alpha/alpha.mt (TM_FILE): Update.
1162         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1163         * config/alpha/alpha-linux.mt (TM_FILE): Update.
1164
1165         Eliminate event_loop_p, always has the value 1.
1166         * defs.h (event_loop_p): Delete macro.
1167         * breakpoint.c (until_break_command): Simplify.
1168         * utils.c (prompt_for_continue): Simplify.
1169         * tracepoint.c (read_actions): Simplify.
1170         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
1171         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
1172         (set_prompt, init_main): Simplify.
1173         (init_signals, disconnect): Delete, unused.
1174         * remote.c (remote_async_resume) 
1175         (extended_remote_async_create_inferior): Simplify.
1176         * mi/mi-interp.c (mi_input): Delete, unused.
1177         (mi_interpreter_resume, mi_command_loop): Simplify.
1178         * interps.c (current_interp_command_loop): Simplify.
1179         * infrun.c (proceed): Simplify.
1180         * infcmd.c (run_command, continue_command, step_1, jump_command)
1181         (until_command, advance_command, finish_command)
1182         (interrupt_target_command): Simplify.
1183         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1184
1185         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1186         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1187         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1188         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1189         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1190         * mips-tdep.c (mips_dump_tdep): Do not print same.
1191
1192 2004-09-12  Andrew Cagney  <[email protected]>
1193
1194         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
1195         const.
1196         * Makefile.in (valprint.o): Delete explict rule.
1197
1198         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
1199         reported by Dave Anderson.
1200
1201         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1202
1203         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1204
1205 2004-09-12  Salvador E. Tropea  <[email protected]>
1206             Andrew Cagney  <[email protected]>
1207
1208         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1209         (mi_cmd_data_list_register_values)
1210         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1211         the register number computation.
1212
1213 2004-09-12  Andrew Cagney  <[email protected]>
1214
1215         * ppcnbsd-nat.c: Include "inf-ptrace.h".
1216         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1217         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1218         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1219         target.
1220         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1221         inf-ptrace.o and inf-child.o.
1222         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1223         * Makefile.in: Update dependencies.
1224         
1225 2004-09-11  Andrew Cagney  <[email protected]>
1226
1227         * language.c (hex_string, hex_string_custom): Move from here ...
1228         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1229         (CELLSIZE): Increase to 50.
1230         * language.h (hex_string, hex_string_custom): Move from here ...
1231         * defs.h: ... to here.
1232         * Makefile.in: Update all dependencies.
1233         
1234 2004-09-11  Paul N. Hilfinger  <[email protected]>
1235
1236         * language.c (local_hex_format_custom): Remove.
1237         (local_hex_string): Rename to hex_string, use C format, and move to
1238         utils.c
1239         (local_hex_string_custom): Rename to hex_string_custom and change
1240         interface.  Now uses C format.  Move to utils.c
1241         (local_octal_format_custom): Remove.
1242         (local_decimal_format_custom): Remove.
1243         (unknown_language_defn): Remove language-specific number 
1244         formatting entries.
1245         (auto_language_defn): Ditto.
1246         (local_language_defn): Ditto.
1247         * language.h (struct language_format_info): Delete declaration.
1248         (struct language_defn): Remove language_format_info fields
1249         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1250         (local_binary_format): Remove macro.
1251         (local_binary_format_prefix): Remove macro.
1252         (local_binary_format_specifier): Remove macro.
1253         (local_binary_format_suffix): Remove macro.
1254         (local_octal_format): Remove macro.
1255         (local_octal_format_prefix): Remove macro.
1256         (local_octal_format_specifier): Remove macro.
1257         (local_octal_format_suffix): Remove macro.
1258         (local_decimal_format): Remove macro.
1259         (local_decimal_format_prefix): Remove macro.
1260         (local_decimal_format_specifier): Remove macro.
1261         (local_decimal_format_suffix): Remove macro.
1262         (local_hex_format): Remove macro.
1263         (local_hex_format_prefix): Remove macro.
1264         (local_hex_format_specifier): Remove macro.
1265         (local_hex_format_suffix): Remove macro.
1266         (local_decimal_format_custom): Remove.
1267         (local_octal_format_custom): Remove.
1268         (local_hex_format_custom): Remove.
1269         (local_hex_string): Rename to hex_string and move to defs.h.
1270         (local_hex_string_custom): Rename to hex_string_custom, change
1271         interface, and move to defs.h.
1272         * utils.c: (int_string): New function.
1273         (hex_string): New function (from language.c).
1274         (hex_string_custom): New function (from language.c).
1275         (octal2str): New function.
1276         (decimal2str): Add width parameter.
1277         (paddr_u): Use new decimal2str interface.
1278         (paddr_d): Ditto.
1279         * defs.h (hex_string): Declare.
1280         (hex_string_custom): Declare.
1281         (int_string): Declare.
1282         * printcmd.c (print_scalar_formatted): Remove localized binary
1283         formatting.
1284         * valprint.c (print_longest): Use int_string.
1285         (print_floating): Use C hex format.
1286         (print_hex_chars): Ditto.
1287         (print_binary_chars): Remove language-specific formatting.
1288         (print_octal_chars): Use C octal format.
1289         (print_decimal_chars): Delocalize format.
1290         (print_decimal): Remove.
1291         * ada-lang.c (ada_language_defn): Remove language-specific number 
1292         formatting entries.
1293         * p-lang.c (pascal_language_defn): Ditto.
1294         * c-lang.c (c_language_defn): Ditto.
1295         (cplus_language_defn): Ditto.
1296         (asm_language_defn): Ditto.
1297         (minimal_language_defn): Ditto.
1298         * f-lang.c (f_language_defn): Ditto.
1299         * jv-lang.c (java_language_defn): Ditto.
1300         * m2-lang.c (m2_language_defn): Ditto.
1301         * scm-lang.c (scm_language_defn): Ditto.
1302         * objc-lang.c (objc_language_defn): Ditto.
1303         * memattr.c (mem_info_command): Use renamed hex_string_custom with
1304         new interface.
1305         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1306         * ui-out.c (ui_out_field_core_addr): Ditto.
1307         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1308         * exec.c (print_section_info): Ditto.
1309         * i387-tdep.c (print_i387_status_word): Ditto.
1310         (print_i387_control_word): Ditto.
1311         (i387_print_float_info): Ditto.
1312         * maint.c (maint_print_section_info): Ditto.
1313         * solib.c (info_sharedlibrary_command): Ditto.
1314         * somsolib.c (som_sharedlibrary_info_command): Ditto.
1315         * symtab.c (print_msymbol_info): Ditto.
1316         * tracepoint.c (tracepoints_info): Ditto.
1317         * solib-frv.c (lm_base): Ditto.
1318         (frv_current_sos): Ditto.
1319         (enable_break2): Ditto.
1320         (enable_break): Ditto.
1321         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1322         (process_one_symbol): Ditto.
1323         * infcmd.c (program_info): Ditto.
1324         * mdebugread.c (parse_partial_symbols): Ditto.
1325         * symfile.c (add_symbol_file_command): Ditto.
1326         * cli/cli-cmds.c (edit_command): Ditto.
1327         (list_command): Ditto.
1328         * infcall.c (call_function_by_hand): Ditto.
1329         * remote-vx.c (vx_run_files_info): Ditto.
1330         (vx_wait): Ditto.
1331         (vx_attach): Ditto.
1332         (vx_detach): Ditto.
1333         (vx_kill): Ditto.
1334         * aix-thread.c (pdc_symbol_addrs): Ditto.
1335         (pdc_read_regs): Ditto.
1336         (pdc_write_regs): Ditto.
1337         (pdc_read_data): Ditto.
1338         (pdc_write_data): Ditto.
1339         * d10v-tdep.c (display_trace): Ditto.
1340         * rs6000-nat.c (find_toc_address): Ditto.
1341         * aix-thread.c: Don't include language.h.
1342         * buildsym.c: Ditto.
1343         * dbxread.c: Ditto.
1344         * mdebugread.c: Ditto.
1345         * rs6000-nat.c: Ditto.
1346         * buildsym.c (make_blockvector): Use renamed hex_string.
1347         
1348 2004-09-10  Jason Molenda  ([email protected])
1349
1350         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1351         chars after 'if' or 'while' commands in user-defined commands.
1352
1353 2004-09-08  Jim Blandy  <[email protected]>
1354
1355         Fix bug reported and analyzed by Olivier Crete:
1356         * symfile.c (copy_section_addr_info): New function.
1357         (symbol_file_add_with_addrs_or_offsets): Use it to save the
1358         original set of address arguments, instead of handwritten code
1359         that uses one length to allocate and a different length to
1360         initialize.  Use make_cleanup_free_section_addr_info.
1361         * symfile.h (copy_section_addr_info): New declaration.
1362         * utils.c: #include "symfile.h".
1363         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1364         New functions.
1365         * defs.h (make_cleanup_free_section_addr_info): New declaration.
1366         * Makefile.in (utils.o): Update dependencies.
1367
1368 2004-09-08  Andrew Cagney  <[email protected]>
1369
1370         * thread-db.c (keep_thread_db): Delete.
1371         (thread_db_new_objfile, thread_db_create_inferior)
1372         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1373
1374 2004-09-08  Mark Kettenis  <[email protected]>
1375
1376         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1377         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1378         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1379         (i386_frameless_signal_p): Remove prototype.
1380         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1381         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1382         I386_SSE_NUM_REGS.
1383         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1384         instead of FP0_REGNUM.
1385         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1386         of FP0_REGNUM and FPC_REGNUM.
1387
1388         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1389         (sunos_solib_create_inferior_hook): Don't call
1390         sunos_relocate_main_executable.
1391
1392         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1393         solib_svr4_fetch_link_map_offsets to
1394         svr4_ilp32_fetch_link_map_offsets.
1395         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1396         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1397         svr4_ilp32_fetch_link_map_offsets.
1398         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1399
1400 2004-09-07  Jim Blandy  <[email protected]>
1401
1402         * frame.h (frame_register): Doc fix.
1403
1404 2004-09-07  Andrew Cagney  <[email protected]>
1405
1406         * vx-share/wait.h: Delete #ifdef USG.
1407         * utils.c (request_quit): Ditto.
1408         * tui/tui.c (tui_reset): Ditto.
1409         * remote.c: Ditto.
1410         * remote-sds.c: Ditto.
1411         * remote-rdi.c: Ditto.
1412         * mdebugread.c: Ditto.
1413         * m68klinux-nat.c: Ditto.
1414         * infttrace.c: Ditto.
1415         * infptrace.c: Ditto.
1416         * i386v-nat.c: Ditto.
1417         * exec.c: Ditto.
1418         * dbxread.c: Ditto.
1419         * core-aout.c: Ditto.
1420
1421 2004-09-05  Joel Brobecker  <[email protected]>
1422
1423         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1424         heuristic_proc_desc.
1425         (mips_insn32_frame_cache): Likewise.
1426
1427 2004-09-04  Joel Brobecker  <[email protected]>
1428
1429         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1430         left behind by error.
1431
1432 2004-09-04  Joel Brobecker  <[email protected]>
1433
1434         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1435         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1436
1437 2004-09-04  Joel Brobecker  <[email protected]>
1438
1439         * config/rs6000/xm-aix4.h: Remove this file.
1440         * config/rs6000/aix4.mh (XM_FILE): Delete.
1441
1442 2004-09-04  Joel Brobecker  <[email protected]>
1443
1444         * config/rs6000/xm-rs6000.h: Remove this file.
1445         * config/rs6000/rs6000.mh (XM_FILE): Remove.
1446
1447 2004-09-03  Andrew Cagney  <[email protected]>
1448
1449         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1450         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1451         only use.
1452
1453         * mips-tdep.c (temp_saved_regs): Delete.
1454         (set_reg_offset): Replace saved_regs parameter with this_cache.
1455         (heuristic_proc_desc, mips16_heuristic_proc_desc)
1456         (mips32_heuristic_proc_desc): Add this_cache parameter.
1457         (mips_insn32_frame_cache, mips_insn16_frame_cache)
1458         (after_prologue): Pass a NULL this_cache.
1459
1460         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1461         non-kernel trap prologues.
1462
1463         * mips-tdep.c (find_proc_desc): Delete function.
1464         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1465         simplify.
1466         (mips_insn16_frame_cache): Replace find_proc_desc with code from
1467         mips_insn32_frame_cache.
1468
1469         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1470         Simplify as NEXT_FRAME is NULL.
1471         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1472
1473         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1474         local variable.
1475         (mips_skip_prologue): Update.
1476
1477         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1478         "cur_frame" parameter.
1479         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1480         (mips_insn32_frame_cache, find_proc_desc): Update
1481
1482         * config/vax/nm-obsd.h: Delete file.
1483         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1484         * config/vax/nm-nbsd.h: Delete file.
1485         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1486         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1487         * config/sh/nm-nbsd.h: Delete file.
1488         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1489         * config/rs6000/nm-rs6000ly.h: Delete file.
1490         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1491         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1492         * config/powerpc/nm-obsd.h: Delete file.
1493         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1494         * config/powerpc/nm-nbsd.h: Delete file.
1495         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1496         * config/pa/nm-obsd.h: Delete file.
1497         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1498         * config/mips/nm-nbsd.h: Delete file.
1499         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1500         * config/m88k/nm-obsd.h: Delete file.
1501         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1502         * config/m68k/nm-nbsd.h: Delete file.
1503         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1504         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1505         * config/i386/nm-nbsd.h: Delete file.
1506         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1507         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1508         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1509         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1510         * config/i386/nm-i386lynx.h: Delete file.
1511         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1512         * config/arm/nm-nbsd.h: Delete file.
1513         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1514         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1515
1516         * config/i386/tm-fbsd.h: Delete file.
1517         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1518         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1519
1520         * config/rs6000/tm-rs6000-aix4.h: Delete file.
1521         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1522         * config/rs6000/aix4.mt (TM_FILE): Set to
1523         config/rs6000/tm-rs6000.h.
1524         * config/powerpc/tm-ppc-aix.h: Delete file.
1525         * config/powerpc/aix.mt (TM_FILE): Set to
1526         config/rs6000/tm-rs6000.h.
1527         * config/m68k/tm-linux.h: Delete file.
1528         * config/m68k/linux.mt (TM_FILE): Set to solib.h
1529         * config/i386/tm-linux64.h: Delete file.
1530         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1531         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1532         
1533         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1534         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1535         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1536         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1537         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1538         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1539         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1540         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
1541         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1542
1543         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1544         gdb_host_cpu.
1545
1546 2004-09-02  Joel Brobecker  <[email protected]>
1547
1548         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1549         Minor reformatting. Some code factoring.
1550
1551 2004-09-02  Andrew Cagney  <[email protected]>
1552
1553         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1554         * config/vax/tm-nbsd.h: Delete file.
1555         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1556         * config/sparc/tm-vxworks.h: Delete file.
1557         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1558         * config/sparc/tm-nbsd.h: Delete file.
1559         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1560         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1561         * config/sparc/tm-linux.h: Delete file.
1562         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1563         * config/s390/tm-linux.h: Delete file.
1564         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1565         * config/pa/tm-bsd.h: Delete file.
1566         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1567         * config/m68k/tm-obsd.h: Delete file.
1568         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1569         * config/m68k/tm-nbsd.h: Delete file.
1570         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1571         * config/i386/tm-vxworks.h: Delete file.
1572         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1573         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1574         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1575         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1576         * config/i386/tm-nbsd.h: Delete file.
1577         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1578         * config/i386/tm-i386lynx.h: Delete file.
1579         * config/cris/cris.mt (TM_FILE): Set to solib.h.
1580         * config/cris/tm-cris.h: Delete file.
1581
1582         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1583         * configure: Re-generate.
1584         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1585         * config/arm/tm-nbsd.h: Delete file.
1586         
1587         * config/powerpc/tm-ppcle-sim.h: Delete.
1588         * config/powerpc/tm-ppcle-eabi.h: Delete.
1589         * config/powerpc/tm-nbsd.h: Delete.
1590         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1591         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1592         tm-ppcle-eabi.h.
1593
1594         * config/i386/nto.mh (NAT_FILE): Delete.
1595         * config/i386/nm-nto.h: Delete.
1596
1597         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1598         * config/m68k/tm-os68k.h: Ditto.
1599         * config/m68k/tm-monitor.h: Ditto.
1600         * config/m68k/tm-cisco.h: Ditto.
1601         * config/m68k/st2000.mt (TM_FILE): Delete.
1602         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1603         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1604         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1605         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1606
1607         * config/m68k/tm-st2000.h: Delete.
1608         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1609         * config/sparc/fbsd.mt (TM_FILE): Delete.
1610         * config/sparc/tm-fbsd.h: Delete.
1611
1612         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1613         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
1614         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1615
1616         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1617         GDB_TM_FILE and GDB_XM_FILE.
1618         * gdbarch.c: Re-generate.       
1619         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1620         quotes in macro definition.
1621         * configure.in: Re-generate.
1622
1623         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1624         validating architecture methods.
1625         * gdbarch.c: Re-generate.
1626         
1627         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1628         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
1629         GDB_MULTI_ARCH_PARTIAL.
1630         * gdbarch.h: Re-generate.
1631         
1632         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1633         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1634         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1635         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1636         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1637         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1638         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1639         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1640         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1641         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1642         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1643         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1644
1645 2004-09-01  Andrew Cagney  <[email protected]>
1646
1647         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1648         and main_func_highpc.
1649         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1650         * objfiles.c (init_entry_point_info, objfile_relocate): Update
1651         * nlmread.c (nlm_symfile_read): Update.
1652
1653 2004-09-01  Joel Brobecker  <[email protected]>
1654
1655         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1656         (mips_insn32_frame_cache): Inline call to find_proc_desc.
1657         (find_proc_desc): Remove dead code.
1658
1659 2004-09-01  Joel Brobecker  <[email protected]>
1660
1661         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1662
1663 2004-09-01  Jeff Johnston  <[email protected]>
1664
1665         * observer.sh: Add struct so_list declaration.
1666         * Makefile.in: Add dependencies on observer.h for solib.c and
1667         breakpoint.c.
1668         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1669         function.
1670         (_initialize_breakpoint): Register 
1671         disable_breakpoints_in_unloaded_shlib as an observer of the 
1672         "solib unloaded" observation event.
1673         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1674         call decode_line_1 so unfound breakpoint errors are silent.
1675         * solib.c (update_solib_list): When a solib is discovered to have
1676         been unloaded by the program, notify all observers of the
1677         "solib unloaded" observation event.
1678
1679 2004-09-01  Andrew Cagney  <[email protected]>
1680
1681         * frame.c: Include "objfiles.h".
1682         (inside_main_func): New function.
1683         (get_prev_frame): Use new inside_main_func.
1684         * Makefile.in (frame.o): Update dependencies.
1685         * defs.h (inside_main_func): Delete declaration.
1686         * blockframe.c (inside_main_func): Delete function.
1687
1688 2004-08-31  Jim Blandy  <[email protected]>
1689
1690         * dwarf2read.c (is_vtable_name): New function, based on logic from
1691         read_structure_type, but passing the correct length to strncmp,
1692         and using 'sizeof' instead of 'strlen'.
1693         (read_structure_type): Call it.
1694
1695 2004-08-31  Joel Brobecker  <[email protected]>
1696
1697         * config/powerpc/aix.mh: Add comment.
1698
1699 2004-08-31  Paul GIlliam  <[email protected]>
1700
1701         * MAINTAINERS: Add self to Write-After-Approval.
1702
1703 2004-08-30  Manoj Iyer  <[email protected]>
1704
1705         * MAINTAINERS: Add self to Write-After-Approval.
1706
1707 2004-08-30  Andrew Cagney  <[email protected]>
1708
1709         Fix PR breakpoints/1757.
1710         * infrun.c (struct execution_control_state): Replace
1711         remove_breakpoints_on_following_step with
1712         step_after_step_resume_breakpoint.
1713         (init_execution_control_state): Update.
1714         (handle_inferior_event): For signals, when stepping off a
1715         breakpoint, set step_after_step_resume_breakpoint.  When
1716         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1717         (keep_going): Delete code handling
1718         remove_breakpoints_on_following_step.
1719
1720 2004-08-29  David Lecomber  <[email protected]>
1721         
1722         Fix PR gdb/648
1723         * language.h (enum array_ordering): New enum.
1724         * language.h (struct language_defn): New la_array_ordering 
1725         attribute.
1726         * language.c (unknown_language_defn, auto_language_defn)
1727         (local_language_defn): Ditto.
1728         * ada-lang.c (ada_language_defn): Ditto.
1729         * c-lang.c (c_language_defn, cplus_language_defn)
1730         (asm_language_defn, minimal_language_defn): Ditto.
1731         * f-lang.c (f_language_defn): Ditto.
1732         * jv-lang.c (java_language_defn): Ditto.
1733         * m2-lang.c (f_language_defn): Ditto.
1734         * objc-lang.c (objc_language_defn): Ditto.
1735         * p-lang.c (pascal_language_defn): Ditto.
1736         * scm-lang.c (scm_language_defn): Ditto.
1737         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1738         oriented large to small in type structure.
1739         * dwarf2read.c (read_array_order): New function.
1740         (read_array_type): Use read_array_order to check row/column
1741         major ordering.
1742
1743 2004-08-27  Nathan J. Williams  <[email protected]>
1744
1745         * target.c (target_resize_to_sections): Check
1746         current_target.to_sections for an old value when updating.
1747
1748 2004-08-27  Joel Brobecker  <[email protected]>
1749
1750         * procfs.c (dbx_link_bpt_addr): New static global variable.
1751         (dbx_link_shadow_contents): New static global variable.
1752         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1753         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1754         if we just hit it.
1755         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1756         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1757         from run to run.
1758         (procfs_create_inferior): Remove syssgi syscall-exit notifications
1759         after the inferior has been forked.
1760         (remove_dbx_link_breakpoint): New function.
1761         (dbx_link_addr): New function.
1762         (insert_dbx_link_bpt_in_file): New function.
1763         (insert_dbx_link_bpt_in_region): New function.
1764         (insert_dbx_link_breakpoint): New function.
1765         (proc_trace_syscalls_1): New function, extracted from
1766         proc_trace_syscalls.
1767         (proc_trace_syscalls): Replace extract code by call to
1768         proc_trace_syscalls_1.
1769         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1770         is no longer valid.
1771
1772 2004-08-25  Jim Blandy  <[email protected]>
1773
1774         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1775
1776 2004-08-25  Andrew Cagney  <[email protected]>
1777
1778         * infrun.c (struct execution_control_state): Delete field
1779         "stepping_through_sigtramp".
1780         (init_execution_control_state): Do not set same.
1781         (context_switch): Do not pass same to save_infrun_state and
1782         load_infrun_state.
1783         * gdbthread.h (struct thread_info): Delete field
1784         stepping_through_sigtramp.
1785         (save_infrun_state, load_infrun_state): Delete parameter
1786         stepping_through_sigtramp.
1787         * thread.c (load_infrun_state, save_infrun_state): Update.
1788
1789         * infrun.c: Re-indent.  Move expression operators to the beginning
1790         of the line.  Remove long disabled #if 0 code.
1791
1792 2004-08-24  Andrew Cagney  <[email protected]>
1793
1794         * doublest.h (floatformat_ieee_quad): Rename
1795         floatformat_ia64_quad.
1796         * doublest.c (floatformat_ieee_quad): Rename
1797         floatformat_ia64_quad.
1798         (_initialize_doublest): Update.
1799
1800 2004-08-24  Jim Blandy  <[email protected]>
1801
1802         * dwarf2expr.h (struct dwarf_expr_context): New members
1803         'num_pieces' and 'pieces', for returning the result of an
1804         expression that uses DW_OP_piece.
1805         (struct dwarf_expr_piece): New struct type.
1806         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1807         pieces.
1808         (free_dwarf_expr_context): Free pieces, if any.
1809         (add_piece): New function.
1810         (execute_stack_op): Implement DW_OP_piece.
1811         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1812         expression is a list of pieces, print an error message.
1813         (dwarf2_loc_desc_needs_frame): If the expression yields
1814         pieces, and any piece is in a register, then we need a frame.
1815
1816         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1817         the stack until we've decided what sort of result the evaluation
1818         has produced.  Use separate variables, with more specific names.
1819
1820 2004-08-23  Richard Earnshaw  <[email protected]>
1821
1822         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1823         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1824         (arm_netbsd_init_abi_common): Register them.
1825
1826 2004-08-22  Mark Kettenis  <[email protected]>
1827
1828         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1829
1830         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1831         safe_frame_unwind_memory instead of target_read_memory.
1832
1833         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1834         Reorder includes.
1835         (fetch_register, store_register): Remove prototypes.
1836         (child_resume): Reorganize code and comments such that it is
1837         grouped a bit more logically.
1838         (attach): Explicitly compare errno against 0.
1839         (detach): Likewise.  Use perror_with_name instead of
1840         print_sys_errmsg.
1841         * Makefile.in (infptrace.o): Update dependencies.
1842
1843         * ia64-linux-nat.c: Update copyright year.
1844         (fetch_debug_register, store_debug_register)
1845         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1846         PTRACE_TYPE_ARG3.
1847         * config/ia64/nm-linux.h: Update copyright year.
1848          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1849
1850         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1851         from CORE_ADDR to struct frame_info *.  Use
1852         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1853         (amd64_linux_sigtramp_p): Adjust for changed signature of
1854         and64_linux_sigtramp_start
1855
1856         * gdb_ptrace.h: GNU/Linux.
1857
1858         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1859         Remove defines.
1860
1861         * infptrace.c: Include "gdb_assert.h".
1862         (PTRACE_XFER_TYPE): Remove define.
1863         (offsetof): Only define if U_REGS_OFFSET isn't defined.
1864         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1865         Tweak comment.
1866         (fetch_inferior_registers, store_inferior_registers): Remove
1867         redundant culry braces.  Tweak comment.  s/regno/regnum.
1868         * Makefile.in (infptrace.o): Update dependencies.
1869
1870         * configure.in: Change test for return type of ptrace to default
1871         to `long' instead of `int'.
1872         * configure: Regenerate.        
1873
1874 2004-08-21  Mark Kettenis  <[email protected]>
1875
1876         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1877
1878         * configure.in: Check for ttrace function.
1879         * configure, config.in: Regenerate.     
1880
1881         * gdb_ptrace.h: New file.
1882         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1883         <sys/ptrace.h>.
1884         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1885         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1886         (attach): Don't define PT_ATTACH.
1887         (detach): Don't define PT_DETACH.
1888         * Makefile.in (gdb_ptrace_h): New variable.
1889         (infptrace.o): Update dependencies.
1890
1891 2004-08-16  Mark Kettenis  <[email protected]>
1892
1893         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1894         instead of `int' if not already defined.
1895         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1896         PTRACE_TYPE_ARG3.
1897         * infptrace.c (call_ptrace): Revert change that replaced
1898         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1899
1900 2004-08-15  Mark Kettenis  <[email protected]>
1901
1902         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1903         Remove defines.
1904
1905         * linux-nat.c (kill_inferior): Add missing third and fourth
1906         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
1907
1908         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1909         PTRACE_TYPE_RET.
1910
1911         * proc-why.c (proc_prettyfprint_why): Fix format string.
1912
1913         * solib-osf.c (osf_current_sos): Remove unsused label.
1914
1915         * configure.in: Add <ncurses/ncurses.h> to the list of possible
1916         curses headers.
1917         * configure, config.in: Regenerate.     
1918         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1919         <ncurses/ncurses.h>.
1920
1921         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1922         * config/nm-nbsd.h: Update copyright year.
1923         (PTRACE_ARG3_TYPE): Remove define.
1924
1925         * sparc-nat.c (fetch_inferior_registers)
1926         (store_inferior_registers, sparc_xfer_wcookie): 
1927         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1928
1929         * alphabsd-nat.c (fetch_inferior_registers):
1930         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1931         PTRACE_TYPE_ARG3.
1932         * amd64bsd-nat.c (fetch_inferior_registers)
1933         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1934         PTRACE_TYPE_ARG3.
1935         * armnbsd-nat.c: Update copyright year.
1936         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1937         (store_register, store_regs, store_fp_register, store_fp_regs):
1938         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1939         * hppabsd-nat.c (fetch_inferior_registers)
1940         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1941         PTRACE_TYPE_ARG3.
1942         * i386bsd-nat.c (fetch_inferior_registers)
1943         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1944         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1945         * m68kbsd-nat.c (fetch_inferior_registers)
1946         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1947         PTRACE_TYPE_ARG3.
1948         * m88kbsd-nat.c (fetch_inferior_registers)
1949         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1950         PTRACE_TYPE_ARG3.
1951         * mipsnbsd-nat.c: Update copyright year.
1952         (fetch_inferior_registers, store_inferior_registers):
1953         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1954         * ns32knbsd-nat.c: Update copyright year.
1955         (fetch_inferior_registers, store_inferior_registers):
1956         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1957         * ppcnbsd-nat.c (fetch_inferior_registers):
1958         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1959         PTRACE_TYPE_ARG3.
1960         * ppcobsd-nat.c (fetch_inferior_registers):
1961         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1962         PTRACE_TYPE_ARG3.
1963         * shnbsd-nat.c: Update copyright year.
1964         (fetch_inferior_registers, store_inferior_registers):
1965         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1966         * vaxbsd-nat.c (fetch_inferior_registers)
1967         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1968         PTRACE_TYPE_ARG3.
1969         
1970         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1971         PTRACE_TYPE_ARG3.
1972         * infptrace.c (call_ptrace, child_resume, attach, detach)
1973         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1974         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1975         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1976         PTRACE_TYPE_ARG3.
1977
1978 2004-08-14  Mark Kettenis  <[email protected]>
1979
1980         * defs.h: Remove out-of-date comment.
1981         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1982         [!GETENV_PROVIDED] (getenv): Remove prototype.
1983
1984         * standalone.c: Remove file.
1985         * Makefile.in (standalone.o): Remove dependency.
1986
1987         * i386-linux-nat.c (dummy_sse_values): Remove function and
1988         prototype.
1989         (i386_linux_dr_get): Fix typo in comment.
1990         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1991
1992         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1993
1994         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1995         from declaration.
1996         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1997         from definition.
1998
1999 2004-08-13  Mark Kettenis  <[email protected]>
2000
2001         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2002         parenthesis in definition.
2003         * configure: Regenerated.
2004
2005 2004-08-12  Michael Chastain  <[email protected]>
2006
2007         * PROBLEMS: Mention build/1411.
2008
2009 2004-08-09  Robert Millan  <[email protected]>
2010
2011         Committed by Nathanael Nerode.
2012         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2013         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2014
2015 2004-08-12  Andrew Cagney  <[email protected]>
2016
2017         * NEWS: Mention fixes in GDB 6.2.1.
2018         * PROBLEMS: Remove mention of mips-irix.
2019
2020 2004-08-11  Joel Brobecker  <[email protected]>
2021
2022         * config/powerpc/xm-aix.h: Delete.
2023         * config/powerpc/aix.mh (MH_FILE): Remove.
2024         * config/powerpc/aix432.mh (MH_FILE): Remove.
2025
2026 2004-08-11  Joel Brobecker  <[email protected]>
2027
2028         * config/powerpc/aix.mh: Remove obsolete comment.
2029         * config/powerpc/aix432.mh: Likewise.
2030
2031 2004-08-11  Joel Brobecker  <[email protected]>
2032
2033         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2034
2035 2004-08-11  Joel Brobecker  <[email protected]>
2036
2037         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2038         this file is now empty.
2039         * config/xm-aix4.h: Remove, this file is no longer included
2040         anywhere.
2041
2042 2004-08-11  Joel Brobecker  <[email protected]>
2043
2044         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2045         that file is now empty.
2046         (termdef): Remove prototype, function no longer used.
2047
2048 2004-08-11  Joel Brobecker  <[email protected]>
2049
2050         * doc/gdbint.texinfo (Host Definition): Remove documentation
2051         for USE_O_NOCTTY, no longer used.
2052         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2053         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2054
2055 2004-08-11  Joel Brobecker  <[email protected]>
2056
2057         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2058         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2059         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2060
2061 2004-08-11  Mark Kettenis  <[email protected]>
2062
2063         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2064         instead of FIVE_ARG_PTRACE.
2065
2066         * inflow.c (O_NOCTTY): Define to zero if not already defined.
2067         (new_tty): Use O_NOCTTY unconditionally.
2068
2069 2004-08-10  Mark Kettenis  <[email protected]>
2070
2071         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
2072         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
2073         fflush on stdout.
2074
2075 2004-08-10  Joel Brobecker  <[email protected]>
2076
2077         * xcoff_symfile_finish: Replace last call to xmfree by call
2078         to xfree.
2079
2080 2004-08-10  Andrew Cagney  <[email protected]>
2081
2082         * main.c (captured_main): Delete call to init_malloc.
2083         * defs.h (init_malloc): Delete declaration.
2084         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2085         (init_malloc): Delete functions.
2086
2087         * defs.h (xmfree): Delete.
2088         * utils.c (xmfree): Delete function.
2089         (xfree): Inline calls to xmfree and mfree.
2090         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2091         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2092         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2093         * somread.c (som_symfile_finish): Ditto.
2094         * objfiles.c (allocate_objfile, free_objfile): 
2095         * nlmread.c (nlm_symfile_finish): Ditto.
2096         * hpread.c (hpread_symfile_finish): Ditto.
2097         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2098         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2099         * coffread.c (coff_symfile_finish): Ditto.
2100
2101         * defs.h (xmcalloc): Delete declaration.
2102         * utils.c (xmcalloc): Delete.
2103         (xcalloc): Inline calls to xmcalloc and mcalloc.
2104         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2105         xcalloc and xfree.
2106         * symtab.c (create_demangled_names_hash): Ditto.
2107
2108         * defs.h (xmrealloc): Delete.
2109         * utils.c (xmrealloc): Delete.
2110         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2111         * symmisc.c (extend_psymbol_list): Use xrealloc.
2112         * source.c (find_source_lines): Ditto.
2113         * hpread.c (hpread_lookup_type): Ditto.
2114         * dbxread.c (add_bincl_to_list): Ditto.
2115
2116         * utils.c (xmmalloc): Delete.
2117         (xmalloc): Inline xmmalloc and mmalloc calls.
2118         (msavestring): Use xmalloc.
2119         * defs.h (xmmalloc): Delete declaration.
2120         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2121         xmmalloc.
2122         * symmisc.c (extend_psymbol_list): Ditto.
2123         * symfile.c (init_psymbol_list): Ditto.
2124         * source.c (find_source_lines): Ditto.
2125         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2126         * elfread.c (elf_symtab_read): Ditto.
2127         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2128         * coffread.c (coff_symfile_init): Ditto.
2129
2130 2004-08-10  David Carlton  <[email protected]>
2131
2132         * MAINTAINERS: Remove David Carlton from c++ testsuite
2133         maintainers.
2134
2135 2004-08-10  Jerome Guitton  <[email protected]>
2136
2137         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2138         print a line feed before the prompt.
2139
2140 2004-08-10  Mark Kettenis  <[email protected]>
2141
2142         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2143
2144 2004-08-09  Joel Brobecker  <[email protected]>
2145
2146         General cleanup of the AIX xm include file:
2147         * config/xm-aix4.h (fd_set): Remove undefine.
2148         Remove include of <sys/select.h>.
2149         (HAVE_TERMIO): Remove define.
2150         (USG): Likewise.
2151         (NULL): Remove redefine.
2152         (alloca): Remove #pragma.
2153         (vfork): Remove define.
2154         (termdef): Remove.
2155         (SIGWINCH_HANDLER): Remove.
2156         (SIGWINCH_HANDLER_BODY): Remove.
2157
2158 2004-08-09  Mark Kettenis  <[email protected]>
2159
2160         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2161         GDB_OSABI_OPENBSD_ELF.
2162
2163 2004-08-07  Robert Millan  <[email protected]>
2164
2165         * bsd-kvm.c: Check for nlist.h before including it.
2166
2167 2004-08-09  Mark Kettenis  <[email protected]>
2168
2169         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2170         sigcontext' offset consistency checks for ancient BSD.
2171
2172         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2173
2174         * configure.in: Check for <sys/types.h>.  Check return and
2175         argument types of ptrace.
2176         * configure, config.in: Regenerate.     
2177
2178 2004-08-09  Jim Blandy  <[email protected]>
2179
2180         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2181         rs6000_register_sim_regno): Doc fixes.
2182
2183 2004-08-08  Joel Brobecker  <[email protected]>
2184
2185         * mips-tdep.c: Include "floatformat.h".
2186         (n32n64_floatformat_always_valid): New function.
2187         (floatformat_n32n64_long_double_big): New constant.
2188         (mips_gdbarch_init): Set size and format of long double
2189         for N32 and N64 ABIs.
2190         * Makefile.in (mips-tdep.o): Update dependencies.
2191
2192 2004-08-08  Andrew Cagney  <[email protected]>
2193
2194         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
2195         print.  Improve script's error messages.
2196         * gdbarch.h: Re-generate.
2197
2198         * gdbarch.sh (pformat): New function.
2199         (float_format, double_format, long_double_format): List with bit
2200         members.  Use pformat when printing.
2201         * gdbarch.c, gdbarch.h: Re-generate.
2202         
2203 2004-08-08  Nathan J. Williams  <[email protected]>
2204
2205         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2206         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2207         (ppcnbsd_supply_pcb): New function.
2208         (_initialize_ppcnbsd_nat): New prototype and function.
2209         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2210         (LOADLIBES): New variable.
2211         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2212
2213 2004-08-08  Andrew Cagney  <[email protected]>
2214
2215         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2216         (builtin_type_ieee_double, builtin_type_ia64_quad)
2217         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2218         BE/LE floating-point types.
2219         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2220         (builtin_type_ieee_double, builtin_type_ia64_quad)
2221         (builtin_type_ia64_spill): Declare.
2222         * doublest.c (_initialize_doublest, floatformat_ieee_single)
2223         (floatformat_ieee_double, floatformat_arm_ext)
2224         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2225         of LE/BE floatformats.  
2226         * doublest.h: (struct floatformat, floatformat_ieee_single)
2227         (floatformat_ieee_double, floatformat_arm_ext)
2228         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2229
2230 2004-08-08  Mark Kettenis  <[email protected]>
2231
2232         * i386gnu-nat.c (gnu_store_registers): Fix typo.
2233
2234         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2235         instead of regcache_raw_supply when storing the registers.
2236
2237         * i386gnu-nat.c: Update copyright year.
2238         (gnu_store_registers): Don't use deprecated_registers and
2239         deprecated_registers_valid.  Use regcache_valid_p and
2240         regcache_raw_supply instead.
2241
2242         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2243         frame_pc_unwind.
2244
2245         * procfs.c (procfs_pid_to_str): Remove redundant and unused
2246         variables.  Incapitalized "process".
2247
2248         * configure.in: Add cursesX to the list of possible curses libs.
2249         Add cursesX.h to the list of possible curses headers. 
2250         * configure, config.in: Regenerate.     
2251
2252 2004-08-07  Nathan J. Williams  <[email protected]>
2253
2254         * configure.in: Test for struct lwp in <sys/lwp.h>.
2255         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2256         the offset of l_addr in struct lwp.
2257
2258 2004-08-07  Nathan J. Williams  <[email protected]>
2259
2260         * bsd-kvm.c: Include "gdbcore.h"
2261         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2262
2263 2004-08-07  Andrew Cagney  <[email protected]>
2264
2265         * gdbtypes.c (build_flt, build_complex): New functions.
2266         (gdbtypes_post_init): Use.
2267
2268         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2269
2270         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2271         through to builtin_type_uint128.
2272
2273         * c-exp.y: Use builtin_type function to obtain builtin types.
2274
2275         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2276         builtin_uint128.
2277         * gdbtypes.c (gdbtypes_post_init): Update.
2278         (build_gdbtypes): Move initialization of builtin_type_int0
2279         through to builtin_type_uint128 from here ...
2280         (_initialize_gdbtypes): ... to here.
2281         * d10v-tdep.c (d10v_register_type): Update.
2282
2283         * doublest.c: Update copyright.
2284         (floatformat_from_length): Call error when floatformat is NULL.
2285         (extract_floating_by_length): Remove NULL fmt check.
2286         (store_floating_by_length): Ditto.
2287
2288 2004-08-07  Andrew Cagney  <[email protected]>
2289
2290         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2291         that the register is valid.
2292
2293 2004-08-05  Mark Kettenis  <[email protected]>
2294
2295         * i386-linux-tdep.c (i386_linux_sigtramp_start)
2296         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2297         struct frame_info *.  Use safe_frame_unwind_memory instead of
2298         deprecated_read_memory_nobpt.
2299         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2300         changed signature of i386_linux_sigtramp_start and
2301         i386_linux_rt_sigtramp_start.
2302
2303         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2304         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
2305         instead of deprecated_read_memory_nobpt.
2306         (i386nbsd_sigtramp_p): Adjust for changed signature of
2307         i386nbsd_sigtramp_offset.
2308
2309         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2310         safe_frame_unwind_memory instead of target_read_memory.
2311
2312         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2313         !NO_SYS_FILE.
2314         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2315         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2316         (_initialize_kernel_u_addr): Remove prototype and function.
2317         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2318         !NO_SYS_FILE.
2319         * xcoffread.c: Likewise.
2320
2321 2004-08-06  Mark Kettenis  <[email protected]>
2322
2323         * vax-nat.c: New file.
2324         * vaxbsd-nat.c: Tweak comment.
2325         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2326         vaxnbsd-tdep.c.
2327         (vax-nat.o): New dependency.
2328         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2329         (vax-*-ultrix2*): Remove.
2330         * config/vax/vax.mh: New file.
2331         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2332         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2333         (vax_register_u_addr): New prototype.
2334         (REGISTER_U_ADDR): Define using vax_register_u_addr.
2335         * config/vax/vaxult2.mh: Remove file.
2336         * config/vax/vaxult.mh: Remove file.
2337         * config/vax/vaxbsd.mh: Remove file.
2338         * config/vax/vax.mt (TM_FILE): Remove.
2339         * config/vax/tm-vaxbsd.h: Remove file.
2340
2341 2004-08-06  Joel Brobecker  <[email protected]>
2342
2343         * aix-thread.c (get_signaled_thread): New function.
2344         (iter_trap): Delete, no longer used.
2345         (iter_tid): New function.
2346         (pd_update): Find the thread that received the SIGTRAP signal
2347         by first locating the kernel thread, and then finding its
2348         associated thread.
2349
2350 2004-08-06  Ulrich Weigand  <[email protected]>
2351
2352         * lin-lwp.c (child_wait): Continue inferior after processing
2353         PTRACE_EVENT_CLONE event.
2354
2355 2004-08-05  Nathanael Nerode  <[email protected]>
2356
2357         * MAINTAINERS: Add self to Write-After-Approval.
2358
2359 2004-08-05  Jeff Johnston  <[email protected]>
2360
2361         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2362         libunwind-xxxx.so" where xxxx is UNW_TARGET.
2363
2364 2004-08-05  Andrew Cagney  <[email protected]>
2365
2366         * config/xm-sysv4.h: Delete file.
2367         * config/mips/xm-irix5.h: Delete file.
2368         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2369         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2370         * config/ia64/xm-aix.h: Delete file.
2371         * config/ia64/aix.mh (XM_FILE): Delete.
2372         * config/pa/xm-hppah.h: Delete file.
2373         * config/pa/hpux11w.mh (XM_FILE): Delete.
2374         * config/pa/hpux11.mh (XM_FILE): Delete.
2375         * config/pa/hpux1020.mh (XM_FILE): Delete.
2376         * config/pa/hppahpux.mh (XM_FILE): Delete.
2377
2378         * config/alpha/xm-alphalinux.h: Delete file.
2379         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2380         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2381         * config/alpha/xm-alphaosf.h: Delete file.
2382         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2383         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2384         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2385         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2386
2387         * config/i386/xm-i386v.h: Delete file.
2388         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2389         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2390         * config/i386/xm-i386sco.h: Delete file.
2391         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2392         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2393         * config/i386/xm-i386v4.h: Delete file.
2394         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2395         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2396         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2397         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2398
2399         * config/vax/xm-vax.h: Delete file.
2400         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2401         * config/vax/xm-vaxult2.h: Delete file.
2402         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2403         * config/vax/vaxult2.mh (XM_FILE): Delete.
2404         * config/vax/xm-vaxult.h: Delete file.
2405         * config/vax/vaxult.mh (XM_FILE): Delete.
2406         * config/vax/xm-vaxbsd.h: Delete file.
2407         * config/vax/vaxbsd.mh (XM_FILE): Delete.
2408
2409         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2410         * gdbarch.h, gdbarch.c: Re-generate.
2411         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2412         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2413         * frame.h: Delete deprecated_read_fp from comments.
2414         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2415         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2416
2417 2004-08-04  Mark Kettenis  <[email protected]>
2418
2419         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2420         trampoline in OpenBSD 3.5-current.
2421
2422         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2423         SSE registers.
2424
2425         * Makefile.in: Remove embedded page breaks.
2426
2427 2004-08-04  Jim Blandy  <[email protected]>
2428
2429         * regcache.c (regcache_raw_read): Assert that, after calling
2430         target_fetch_registers, the register we're reading is cached.
2431
2432         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2433         a call to 'internal_error', with a more helpful error message.
2434         * rs6000-tdep.c (e500_pseudo_register_read,
2435         e500_pseudo_register_write, rs6000_store_return_value): Same.
2436
2437 2004-08-04  Andrew Cagney  <[email protected]>
2438
2439         * Makefile.in: Update dependencies.
2440
2441 2004-08-04  Jim Blandy  <[email protected]>
2442
2443         Change the layout of the PowerPC E500 raw register cache to allow
2444         the lower 32-bit halves of the GPRS to be their own raw registers,
2445         not pseudoregisters.
2446         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2447         add ppc_ev0_upper_regnum flag.
2448         * rs6000-tdep.c: #include "reggroups.h".
2449         (spe_register_p): Recognize the ev upper half registers as SPE
2450         registers.
2451         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2452         registers.
2453         (e500_move_ev_register): New function.
2454         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2455         vector registers are the pseudo-registers now, formed by splicing
2456         together the gprs and the upper-half registers.
2457         (e500_register_reggroup_p): New function.
2458         (P): Macro deleted.
2459         (P8, A4): New macro.
2460         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2461         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2462         macros.
2463         (registers_e500): Rearrange register set so that the raw register
2464         set contains 32-bit GPRs and upper-half registers, and the SPE
2465         vector registers become pseudo-registers.
2466         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2467         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
2468         register numbers are now the same for the E500 as they are for
2469         other PowerPC variants.  Register e500_register_reggroup_p as the
2470         register group function for the E500.
2471         * Makefile.in (rs6000-tdep.o): Update dependencies.
2472
2473         Adapt PPC E500 native support to the new raw regcache layout.
2474         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2475         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2476         (fetch_spe_register, store_spe_register): Handle fetching/storing
2477         all the SPE registers at once, if regno == -1.  These now take
2478         over the job of fetch_spe_registers and store_spe_registers.
2479         (fetch_spe_registers, store_spe_registers): Deleted.
2480         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2481         unconditionally; they're always raw.  Fetch/store SPE upper half
2482         registers, if present, instead of ev registers.
2483         (fetch_register, store_register): Remove sanity checks: gprs are
2484         never pseudo-registers now, so we never need to even mention any
2485         registers that are ever pseudoregisters.
2486
2487         Use a fixed register numbering when communicating with the PowerPC
2488         simulator.
2489         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2490         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2491         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
2492         New functions.
2493         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
2494         init_sim_regno_table.
2495         * Makefile.in (gdb_sim_ppc_h): New variable.
2496         (rs6000-tdep.o): Update dependencies.
2497
2498 2004-08-02  Andrew Cagney  <[email protected]>
2499
2500         * cris-tdep.c (cris_register_size): Restore function, still used
2501         locally.
2502
2503         * gdbarch.sh (deprecated_target_read_fp)
2504         (deprecated_frame_locals_address, deprecated_frame_args_address)
2505         (deprecated_frame_chain_valid, deprecated_frame_chain)
2506         (deprecated_init_extra_frame_info, deprecated_pop_frame)
2507         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2508         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2509         * gdbarch.h, gdbarch.c: Re-generate.
2510         * regcache.c (deprecated_read_fp): Do not call
2511         DEPRECATED_TARGET_READ_FP_P.
2512         * infcmd.c (default_print_registers_info): Do not call
2513         DEPRECATED_DO_REGISTERS_INFO.
2514         * frame-base.c (default_frame_locals_address): Do not call
2515         DEPRECATED_FRAME_LOCALS_ADDRESS.
2516         (default_frame_args_address): Do not call
2517         DEPRECATED_FRAME_ARGS_ADDRESS.
2518
2519         * gdbarch.sh (deprecated_register_raw_size)
2520         (deprecated_register_virtual_size:int): Delete.
2521         * gdbarch.h, gdbarch.c: Re-generate.
2522         * cris-tdep.c (cris_register_size): Delete.
2523         (cris_gdbarch_init): Update.
2524         * alpha-tdep.c (alpha_register_raw_size)
2525         (alpha_register_virtual_size): Delete.
2526         (alpha_gdbarch_init): Update.
2527
2528         * gdbarch.sh (deprecated_register_virtual_type)
2529         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2530         (deprecated_dummy_write_sp): Delete.
2531         * gdbarch.h, gdbarch.c: Re-generate.
2532
2533         * gdbarch.sh (deprecated_register_bytes): Delete.
2534         * gdbarch.h, gdbarch.c: Re-generate.
2535         * regcache.c (deprecated_register_bytes): New function.
2536         * regcache.h (deprecated_register_bytes): Declare.
2537         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2538         * v850-tdep.c (v850_gdbarch_init): Update.
2539         * sh64-tdep.c (sh64_gdbarch_init): Update.
2540         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2541         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2542         * mcore-tdep.c (mcore_gdbarch_init): Update.
2543         * cris-tdep.c (cris_gdbarch_init): Update.
2544         * arm-tdep.c (arm_gdbarch_init): Update.
2545         * remote.c (init_remote_state): Update.
2546         * remote-vx.c (vx_prepare_to_store): Update.
2547         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2548         * irix5-nat.c (fetch_core_registers): Update.
2549         * cris-tdep.c (cris_register_bytes_ok): Update.
2550         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2551
2552         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2553         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2554         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2555         (mips_insn16_frame_base_address, mips_insn16_frame_base)
2556         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2557         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2558         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2559         (mips_insn32_frame_base_address, mips_insn32_frame_base)
2560         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2561         with mips_insn16 and mips_insn32.
2562
2563         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2564         * rs6000-tdep.c (rs6000_push_dummy_call)
2565         (rs6000_extract_return_value): Use register_size.
2566         * xstormy16-tdep.c (xstormy16_get_saved_register) 
2567         (xstormy16_extract_return_value): Ditto.
2568         * valops.c (value_assign): Ditto.
2569         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
2570         * v850-tdep.c (v850_extract_return_value): Ditto.
2571         * tracepoint.c (collect_symbol): Ditto.
2572         * target.c (debug_print_register): Ditto.
2573         * stack.c (frame_info): Ditto.
2574         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2575         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2576         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2577         (store_register_using_P): Ditto.
2578         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2579         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2580         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2581         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2582         * regcache.c (deprecated_read_register_bytes) 
2583         (deprecated_write_register_bytes, read_register) 
2584         (write_register): Ditto.
2585         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2586         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2587         * monitor.c (monitor_supply_register, monitor_fetch_register) 
2588         (monitor_store_register): Ditto.
2589         * mn10300-tdep.c (mn10300_pop_frame_regular) 
2590         (mn10300_print_register): Ditto.
2591         * mipsv4-nat.c (fill_fpregset): Ditto.
2592         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
2593         (mips64_fill_fpregset): Ditto.
2594         * mi/mi-main.c (register_changed_p, get_register)
2595         (mi_cmd_data_write_register_values): Ditto.
2596         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
2597         * irix5-nat.c (fill_gregset, fetch_core_registers): 
2598         * infrun.c (write_inferior_status_register): Ditto.
2599         * infptrace.c (fetch_register, store_register): Ditto.
2600         * infcmd.c (default_print_registers_info): Ditto.
2601         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2602         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2603         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2604         * hpux-thread.c (hpux_thread_fetch_registers)
2605         (hpux_thread_store_registers): Ditto.
2606         * hppah-nat.c (store_inferior_registers, fetch_register): 
2607         * findvar.c (value_from_register): Ditto.
2608         * dve3900-rom.c (fetch_bitmapped_register): 
2609         * cris-tdep.c (cris_gdbarch_init): Ditto.
2610         * alpha-tdep.h: Ditto.
2611         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2612
2613         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2614         DEPRECATED_REGISTER_RAW_SIZE from comments.
2615         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2616         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2617         DEPRECATED_REGISTER_RAW_SIZE.
2618         * findvar.c (value_of_register): Simplify by assuming that the
2619         registers raw and virtual sizes are identical.
2620         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2621         comment.
2622         * arch-utils.c (generic_register_size): Simplify by assuming
2623         register_type.
2624
2625         * regcache.c (legacy_read_register_gen, real_register) 
2626         (legacy_write_register_gen): Delete, not used.
2627
2628         * regcache.c (struct regcache_descr): Delete legacy_p.
2629         (init_legacy_regcache_descr): Delete function.
2630         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2631         Do not use deprecated register functions.
2632         (regcache_raw_read, deprecated_write_register_gen):
2633         (deprecated_read_register_gen, regcache_raw_write): Delete code
2634         predicated on legacy_p.
2635         (register_size): Delete check against register raw size.
2636
2637         * cris-tdep.c (cris_register_type): Replace
2638         cris_register_virtual_type.
2639         (cris_gdbarch_init): Update, set register_type.
2640
2641         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2642         * gdbarch.h, gdbarch.c: Re-generate.
2643         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
2644         (arm_gdbarch_init) Do not set frameless function invocation.
2645         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2646         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2647         * frv-tdep.c (frv_frameless_function_invocation): Delete.
2648         (frv_gdbarch_init): Do not set frameless function invocation.
2649         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2650         * sh-tdep.c (sh_gdbarch_init): Ditto.
2651         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2652         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2653         * avr-tdep.c (avr_gdbarch_init): Ditto.
2654
2655         * blockframe.c (legacy_frame_chain_valid): Delete function.
2656
2657         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2658         and pc.  Update comments.
2659         (pc_in_dummy_frame): Delete function.
2660         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2661         use the "id".
2662         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2663         call_hi, top and pc, use the id.
2664         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2665
2666         * dummy-frame.c: Include "gdb_string.h".
2667         (generic_save_call_dummy_addr, generic_push_dummy_frame)
2668         (generic_save_dummy_frame_tos): Delete.
2669         (dummy_frame_push): New function, replaces above.
2670         * dummy-frame.h: Update copyright.
2671         (dummy_frame_push): Declare.
2672         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2673         (generic_save_call_dummy_addr): Delete declarations.
2674         * infcall.c: Include "dummy-frame.h".
2675         (call_function_by_hand): Add locals caller_regcache,
2676         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
2677         with call to frame_save_as_regcache plus cleanup.  Delete calls to
2678         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2679         Move clear_proceed_status to just before the resume, add call to
2680         dummy_frame_push (discard cleanup).
2681         * Makefile.in (infcall.o): Add $(dummy_frame_h).
2682         (dummy-frame.o): Add $(gdb_string_h).
2683
2684 2004-08-01  Andrew Cagney  <[email protected]>
2685
2686         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2687         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2688         * dummy-frame.c (find_dummy_frame): Delete.
2689         (struct dummy_frame_cache, dummy_frame_sniffer)
2690         (dummy_frame_prev_register, dummy_frame_this_id)
2691         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2692         frame unwinder using a dummy_frame_cache.
2693
2694 2004-08-01  Andrew Cagney  <[email protected]>
2695
2696         * frame.h (frame_save_as_regcache): Declare.
2697         * frame.c (frame_save_as_regcache): New function.
2698         (do_frame_read_register): Replace do_frame_unwind_register.
2699         (frame_pop): Use frame_save_as_regcache.
2700         * dummy-frame.c (generic_push_dummy_frame): Use
2701         frame_save_as_regcache.
2702
2703 2004-08-01  Joel Brobecker  <[email protected]>
2704
2705         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2706         file as included until we record the first line in the linetable.
2707
2708 2004-08-01  Andrew Cagney  <[email protected]>
2709
2710         * frame.h (deprecated_pop_dummy_frame)
2711         (deprecated_read_register_dummy)
2712         (deprecated_generic_find_dummy_frame): Delete.
2713         * dummy-frame.c (deprecated_generic_find_dummy_frame)
2714         (deprecated_read_register_dummy)
2715         (deprecated_find_dummy_frame_regcache)
2716         (discard_innermost_dummy)
2717         (deprecated_pop_dummy_frame): Delete.
2718         (dummy_frame_this_id): Simplify.
2719         (struct dummy_frame): Delete "fp" and "sp".
2720         (find_dummy_frame): Simplify.
2721         (generic_push_dummy_frame): Do not set "fp" or "sp".
2722         (fprint_dummy_frames): Do not print "fp" and "sp"
2723
2724 2004-08-01  Mark Kettenis  <[email protected]>
2725
2726         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2727         (struct i386_insn): New structure.
2728         (i386_match_insn): New function.
2729         (i386_frame_setup_skip_insns): New variable.
2730         (i386_analyze_frame_setup): Change to use i386_match_insn and the
2731         array i386_frame_setup_insns of instructions that should be
2732         skipped inside the frame setup sequence.
2733
2734 2004-08-01  Andrew Cagney  <[email protected]>
2735
2736         * frame.h (deprecated_frame_xmalloc_with_cleanup)
2737         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2738         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2739         * stack.c (frame_info): Delete references to
2740         DEPRECATED_FRAME_INIT_SAVED_REGS and
2741         deprecated_get_frame_saved_regs.
2742         * frame.c (struct frame_info): Delete saved_regs and extra_info.
2743         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2744         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2745         (frame_unwind_register_signed)
2746         (frame_unwind_register_unsigned)
2747         (frame_unwind_unsigned_register): Use register_size.
2748         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2749         (deprecated_frame_xmalloc_with_cleanup)
2750         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2751         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2752
2753         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2754         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2755         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2756         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2757
2758         * infcall.c (call_function_by_hand): Do not use
2759         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2760         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2761         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2762         DEPRECATED_STACK_ALIGN.
2763
2764 2004-07-30  Ramana Radhakrishnan <[email protected]>
2765
2766         Committed by Andrew Cagney.
2767         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2768
2769 2004-08-01  Andrew Cagney  <[email protected]>
2770
2771         * mips-tdep.c (mips16_frame_cache)
2772         (mips16_frame_this_id, mips16_frame_prev_register)
2773         (mips16_frame_unwind, mips16_frame_sniffer)
2774         (mips16_frame_base_address, mips16_frame_base)
2775         (mips16_frame_base_sniffer, mips32_frame_cache)
2776         (mips32_frame_this_id, mips32_frame_prev_register)
2777         (mips32_frame_unwind, mips32_frame_sniffer)
2778         (mips32_frame_base_address, mips32_frame_base)
2779         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2780         separate heuristic mips16 and mips32 unwinders.
2781         (mips_stub_frame_cache, mips_stub_frame_this_id)
2782         (mips_stub_frame_prev_register)
2783         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2784         (mips_stub_frame_base_address, mips_stub_frame_base)
2785         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2786         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2787         match true mdebug frames.
2788         (non_heuristic_proc_desc): Add forward declaration.
2789
2790 2004-08-01  Andrew Cagney  <[email protected]>
2791
2792         * config/mips/tm-irix6.h: Delete file.
2793         * config/mips/tm-irix5.h: Delete file.
2794         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2795         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2796
2797         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2798         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2799         * config/nm-gnu.h (NO_CORE_OPS): Delete.
2800         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2801         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2802         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2803         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2804         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2805         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2806         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2807         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2808         (TARGET_SIGNAL_RAW_VALUES): Delete.
2809         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2810         Delete.
2811         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
2812         (TARGET_HW_WATCH_LIMIT): Delete.
2813         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2814         * minimon.h: Delete file.
2815
2816         * trad-frame.c (trad_frame_get_this_base)
2817         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2818         functions.
2819         * trad-frame.h (trad_frame_set_this_base)
2820         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2821
2822 2004-07-31  Andrew Cagney  <[email protected]>
2823
2824         * trad-frame.c (trad_frame_get_prev_register): Rename
2825         trad_frame_get_prev_register.
2826         * vax-tdep.c (vax_frame_prev_register): Update.
2827         * trad-frame.h: Update.
2828         * trad-frame.c (trad_frame_get_register): Update.
2829         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2830         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2831         Update.
2832         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2833         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2834         Update.
2835         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2836         Update.
2837         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2838         Update.
2839         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2840         Update.
2841         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2842         Update.
2843         * s390-tdep.c (s390_frame_prev_register) 
2844         (s390_stub_frame_prev_register) 
2845         (s390_sigtramp_frame_prev_register): Update.
2846         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2847         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2848         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2849         * m88k-tdep.c (m88k_frame_prev_register) 
2850         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
2851         * m32r-tdep.c (m32r_frame_prev_register): Update.
2852         * hppa-tdep.c (hppa_frame_prev_register_helper) 
2853         * frv-tdep.c (frv_frame_prev_register): Update.
2854         * d10v-tdep.c (d10v_frame_prev_register): Update.
2855         * cris-tdep.c (cris_frame_prev_register): Update.
2856         * avr-tdep.c (avr_frame_prev_register): Update.
2857         * arm-tdep.c (arm_prologue_prev_register) 
2858         (arm_sigtramp_prev_register): Update.
2859
2860 2004-07-31  Andrew Cagney  <[email protected]>
2861
2862         * frame.h (legacy_saved_regs_unwind)
2863         (legacy_frame_chain_valid, legacy_frame_p)
2864         (enum frame_type): Delete UNKNOWN_FRAME.
2865         * dummy-frame.c (dummy_frame_this_id): Simplify.
2866         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2867         * frame.c (struct frame_info): Delete the field "type".
2868         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2869         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2870         (legacy_saved_regs_unwind, legacy_frame_p)
2871         (frame_type_from_pc): Delete.
2872         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2873         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2874
2875 2004-07-31  Mark Kettenis  <[email protected]>
2876
2877         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2878         indentation.
2879
2880         * mips-nat.c: Remove file.
2881         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2882         (mips-nat.o): Remove dependency.
2883
2884         * infptrace.c: Update copyright year.
2885         (fetch_register): Pass NULL in regcache_raw_supply call instead of
2886         explicitly setting the buffer to all zeroes.
2887
2888         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2889         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2890
2891 2004-07-30  Andrew Cagney  <[email protected]>
2892
2893         * GDB 6.2 released from gdb_6_2-branch.
2894
2895 2004-07-30  Baurjan Ismagulov  <[email protected]>
2896
2897         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2898
2899         * exec.c (exec_file_attach):
2900         * nto-tdep.c (nto_find_and_open_solib):
2901         * pa64solib.c (pa64_solib_sizeof_symbol_table):
2902         * solib.c (solib_open):
2903         * somsolib.c (som_solib_sizeof_symbol_table):
2904         * source.c (is_regular_file, openp, open_source_file):
2905         * symfile.c (symfile_bfd_open):
2906         * wince.c (upload_to_device): Differentiate between the search for
2907         binary and source files.
2908
2909 2004-07-30  Andrew Cagney  <[email protected]>
2910
2911         * complaints.c (_initialize_complaints): Pass NULL to
2912         add_setshow_zinteger_cmd for help_doc.
2913         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2914
2915 2004-07-30  Andrew Cagney  <[email protected]>
2916
2917         Fix PR i18n/761.
2918         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2919         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2920         $(PACKAGE).pot and update-po.
2921         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2922         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2923         (update-po): New rules.
2924         (localedir): Define using autoconf.
2925         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2926         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2927         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2928         * configure.in: Generate CATALOGS and LINGUAS from contents of
2929         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
2930         * configure: Re-generate.
2931         * po/gdbtext: New file
2932         
2933 2004-07-30  Jerome Guitton  <[email protected]>
2934
2935         * MAINTAINERS: Reorder Write After Approval list in alphabetical
2936         order.
2937
2938 2004-07-30  David Lecomber  <[email protected]>
2939
2940         * dwarf2read.c (read_file_scope): Set producer if attribute 
2941         present.
2942         (struct dwarf2_cu): Added new member producer.
2943
2944 2004-07-30  Jerome Guitton  <[email protected]>
2945
2946         * inflow.c (kill_command): release file handles in BFD.
2947         * exec.c (exec_file_attach): Ditto.
2948         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2949
2950 2004-07-29  Andrew Cagney  <[email protected]>
2951
2952         * PROBLEMS (mips-irix): Note that it is broken.
2953
2954 2004-07-29  Andrew Cagney  <[email protected]>
2955
2956         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2957         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2958
2959         * config/xm-nbsd.h: Delete file.
2960         * config/arm/xm-nbsd.h: Delete file.
2961         * config/i386/xm-nbsd.h: Delete file.
2962         * config/ns32k/xm-nbsd.h: Delete file.
2963         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2964         * config/i386/nbsdelf.mh (XM_FILE): Delete.
2965         * config/i386/nbsdaout.mh (XM_FILE): Delete.
2966         * config/arm/nbsdelf.mh (XM_FILE): Delete.
2967         * config/arm/nbsdaout.mh (XM_FILE): Delete.
2968
2969         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2970         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2971         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2972         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2973         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2974         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2975
2976         * config/powerpc/xm-linux.h: Delete empty file.
2977         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2978         * config/powerpc/linux.mh (XM_FILE): Delete.
2979         * config/m68k/xm-linux.h: Delete empty file.
2980         * config/m68k/linux.mh (XM_FILE): Delete.
2981         * config/ia64/xm-linux.h: Delete empty file.
2982         * config/ia64/linux.mh (XM_FILE): Delete.
2983         * config/arm/xm-linux.h: Delete empty file.
2984         * config/arm/linux.mh (XM_FILE): Delete.
2985         
2986         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2987         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2988         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2989         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2990         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2991         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2992         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2993         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2994
2995         * config/m68k/xm-m68k.h: Delete file.
2996         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
2997         copyright.
2998         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2999         * config/pa/xm-linux.h: Delete empty file.
3000         * config/pa/linux.mh (XM_FILE): Delete.
3001         * config/i386/xm-i386.h: Delete empty file.
3002         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3003         "i386/xm-i386.h".
3004         * config/i386/obsdaout.mh (XM_FILE): Delete.
3005         * config/i386/obsd64.mh (XM_FILE): Delete.
3006         * config/i386/fbsd64.mh (XM_FILE): Delete.
3007         * config/i386/nto.mh (XM_FILE): Delete.
3008         * config/i386/obsd.mh (XM_FILE): Delete.
3009         * config/i386/linux64.mh (XM_FILE): Delete.
3010         * config/i386/linux.mh (XM_FILE): Delete.
3011         * config/i386/i386sol2.mh (XM_FILE): Delete.
3012         * config/i386/i386gnu.mh (XM_FILE): Delete.
3013         * config/i386/fbsd.mh (XM_FILE): Delete.
3014         * config/i386/nbsd64.mh (XM_FILE): Delete.
3015
3016 2004-07-29  Andrew Cagney  <[email protected]>
3017
3018         * config/pa/xm-linux.h: Do not include "floatformat.h".
3019         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3020         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3021         * config/i386/xm-i386.h: Do not include "floatformat.h".
3022         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
3023         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3024         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3025         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
3026         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3027         GDB_HOST_LONG_DOUBLE_FORMAT instead.
3028         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3029         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3030         * configure, config.in: Regenerate.     
3031         * configure.host (gdb_host_float_format, gdb_host_double_format)
3032         (gdb_host_long_double_format): Set according to the host.
3033         
3034 2004-07-29  Andrew Cagney  <[email protected]>
3035
3036         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3037
3038 2004-07-28  Andrew Cagney  <[email protected]>
3039
3040         * PROBLEMS: Mention threads/1650.
3041         * NEWS: Mention the NPTL fix.
3042
3043 2004-07-28  Andrew Cagney  <[email protected]>
3044
3045         * cli/cli-decode.c (add_setshow_cmd): Delete function.
3046         (add_setshow_cmd_full): Make static.
3047         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3048         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3049         * cli/cli-decode.c (add_setshow_filename_cmd) 
3050         (add_setshow_string_cmd): New functions.
3051         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
3052         * mips-tdep.c (_initialize_mips_tdep): Update.
3053         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
3054         * cli/cli-logging.c (_initialize_cli_logging): Update.
3055         * complaints.c (_initialize_complaints): Update.
3056         * remote.c (_initialize_remote): Update.
3057         
3058 2004-07-28  Andrew Cagney  <[email protected]>
3059
3060         * cli/cli-decode.c (add_setshow_zinteger_cmd)
3061         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3062         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3063         print parameters.  Make string parameters constant.
3064         * command.h: Update.  Update copyright.
3065         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3066         * observer.c (_initialize_observer): Ditto.
3067         * frame.c (_initialize_frame): Ditto.
3068         * complaints.c (_initialize_complaints): Ditto.
3069         * maint.c (_initialize_maint_cmds): Ditto.
3070         * target.c (initialize_targets): Ditto.
3071         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3072         * infcall.c (_initialize_infcall): Ditto.
3073         * arm-tdep.c (_initialize_arm_tdep): Ditto.
3074         * m32r-rom.c (_initialize_m32r_rom): Ditto.
3075         * remote-rdi.c (_initialize_remote_rdi): Ditto.
3076         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3077         * mips-tdep.c (_initialize_mips_tdep): Ditto.
3078
3079 2004-07-28  Andrew Cagney  <[email protected]>
3080
3081         * gdbtypes.c (lookup_primitive_typename): Delete function.
3082         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3083         * ada-lex.l: Use language_lookup_primitive_type_by_name.
3084         * gdbtypes.c (lookup_typename): Ditto.
3085         * f-exp.y (yylex): Ditto.
3086         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3087
3088         * scm-lang.c (c_builtin_types): Delete extern declaration.
3089         (scm_language_defn): Replace
3090         string_char_type and primitive_type_vector with
3091         la_language_arch_info.
3092         * jv-lang.c (java_language_defn): Replace
3093         string_char_type and primitive_type_vector with
3094         la_language_arch_info.
3095         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3096         c_builtin_types in comment.
3097         * c-lang.h (struct language_arch_info): Declare opaque.
3098         (c_language_arch_info): Declare.
3099         (c_builtin_types): Delete declaration.
3100         * c-lang.c (c_language_arch_info): Set string_char_type to
3101         builtin_char, not builtin_true_char.  Make global.
3102         (c_builtin_types): Delete array.
3103         (asm_language_defn, minimal_language_defn): Replace
3104         string_char_type and primitive_type_vector with
3105         la_language_arch_info.
3106
3107 2004-07-28  Andrew Cagney  <[email protected]>
3108
3109         * gdbtypes.h (struct builtin_type): Rename true_char to
3110         builtin_true_char.
3111         * gdbtypes.c (gdbtypes_post_init): Update.
3112         * c-lang.c (arch_info): New function.
3113         (enum c_primitive_types): New enum.
3114         (c_language_defn): Instead of string_char_type and
3115         primitive_type_vector set la_language_arch_info.
3116
3117 2004-07-28  Andrew Cagney  <[email protected]>
3118
3119         * language.h (struct language_arch_info): Fix typo
3120         s/primative/primitive/.
3121         * gdbtypes.c (lookup_primitive_typename): Ditto.
3122         * language.c (language_lookup_primitive_type_by_name)
3123         (unknown_language_arch_info): Ditto.
3124
3125 2004-07-27  Andrew Cagney  <[email protected]>
3126
3127         * defs.h (enum language): Add nr_languages.
3128         * language.h (struct language_arch_info): Define.
3129         (struct language_defn): Add la_language_arch_info.
3130         (language_lookup_primative_type_by_name): Declare.
3131         (language_string_char_type): Declare.
3132         * language.c (_initialize_language, language_gdbarch_post_init)
3133         (struct language_gdbarch, language_gdbarch_data): Implement
3134         per-architecture language information.
3135         (unknown_language_arch_info, language_string_char_type)
3136         (language_lookup_primative_type_by_name): New functions.
3137         (unknown_language_defn, auto_language_defn)
3138         (local_language_defn): Set la_language_arch_info to
3139         unknown_language_arch_info.
3140         (unknown_builtin_types): Delete.
3141         * gdbtypes.c (lookup_primitive_typename): Use
3142         language_lookup_primative_type_by_name.
3143         (create_string_type): Use language_string_char_type.
3144         * values.c (value_from_string): Use language_string_char_type.
3145         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3146         * p-lang.c (pascal_language_defn): Ditto.
3147         * m2-lang.c (m2_language_defn): Ditto.
3148         * jv-lang.c (java_language_defn): Ditto.
3149         * objc-lang.c (objc_language_defn): Ditto.
3150         * f-lang.c (f_language_defn): Ditto.
3151         * c-lang.c (c_language_defn, cplus_language_defn) 
3152         (asm_language_defn, minimal_language_defn): Ditto.
3153         
3154 2004-07-27  Andrew Cagney  <[email protected]>
3155
3156         * gdbtypes.h (struct builtin_type): Declare.
3157         (builtin_type): Declare.
3158         * d10v-tdep.c (d10v_register_type): Use builtin_type.
3159         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3160         (gdbtypes_post_init): New function.
3161         (builtin_type): New function.
3162
3163 2004-07-27  Kei Sakamoto  <[email protected]>
3164
3165         * remote-m32r-sdi.c: Fix breakpoint bug.
3166         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3167         recv_char_data, recv_long_data): New functions to replace communication
3168         sequences.
3169
3170 2004-07-26  Michael Chastain  <[email protected]>
3171
3172         Document PR threads/1650.
3173         * PROBLEMS (Threads): Document problem with many threads
3174
3175 2004-07-26  Andrew Cagney  <[email protected]>
3176
3177         * gdb-mi.el: Move from here ...
3178         * mi/gdb-mi.el: ... to here.
3179
3180 2004-07-26  Andrew Cagney  <[email protected]>
3181
3182         Problem reported by Ashley Pittman <[email protected]>.
3183         * main.c (captured_main): When in batch mode always detach.
3184
3185 2004-07-26  Andrew Cagney  <[email protected]>
3186
3187         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3188         and h8300 as broken.
3189         * NEWS: END-OF-LIFE frame compatibility module.
3190         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3191         specific comments.
3192
3193 2004-07-26  Andrew Cagney  <[email protected]>
3194
3195         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3196         * xcoffsolib.c (_initialize_xcoffsolib): Update.
3197         * wince.c (_initialize_wince): Update.
3198         * win32-nat.c (_initialize_win32_nat): Update.
3199         * varobj.c (_initialize_varobj): Update.
3200         * valops.c (_initialize_valops): Update.
3201         * utils.c (initialize_utils, initialize_utils): Update.
3202         * tui/tui-win.c (_initialize_tui_win): Update.
3203         * top.c (init_main): Update.
3204         * symfile.c (_initialize_symfile): Update.
3205         * source.c (_initialize_source): Update.
3206         * somsolib.c (_initialize_som_solib): Update.
3207         * solib.c (_initialize_solib): Update.
3208         * solib-frv.c (_initialize_frv_solib): Update.
3209         * serial.c (_initialize_serial): Update.
3210         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3211         * remote.c (_initialize_remote, _initialize_remote): Update.
3212         * remote-vx.c (_initialize_vx): Update.
3213         * remote-utils.c (_initialize_sr_support): Update.
3214         * remote-sds.c (_initialize_remote_sds): Update.
3215         * remote-mips.c (_initialize_remote_mips): Update.
3216         * remote-e7000.c (_initialize_remote_e7000): Update.
3217         * proc-api.c (_initialize_proc_api): Update.
3218         * printcmd.c: Update.
3219         * parse.c (_initialize_parse): Update.
3220         * pa64solib.c (_initialize_pa64_solib): Update.
3221         * p-valprint.c (_initialize_pascal_valprint): Update.
3222         * monitor.c (_initialize_remote_monitors): Update.
3223         * mips-tdep.c (_initialize_mips_tdep): Update.
3224         * mcore-tdep.c (_initialize_mcore_tdep): Update.
3225         * maint.c (_initialize_maint_cmds): Update.
3226         * lin-lwp.c (_initialize_lin_lwp): Update.
3227         * language.c (_initialize_language): Update.
3228         * kod.c (_initialize_kod): Update.
3229         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3230         * i386-tdep.c (_initialize_i386_tdep): Update.
3231         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3232         * gdbarch.sh: Update.
3233         * gdbarch.c: Re-generate.
3234         * gdb-events.sh: Update.
3235         * gdb-events.c: Re-generate.
3236         * frame.c (_initialize_frame): Update.
3237         * exec.c: Update.
3238         * demangle.c (_initialize_demangler): Update.
3239         * dcache.c (_initialize_dcache): Update.
3240         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3241         * cp-valprint.c (_initialize_cp_valprint): Update.
3242         * corefile.c (_initialize_core): Update.
3243         * command.h: Update.
3244         * cli/cli-decode.h: Update.
3245         * cli/cli-cmds.c (init_cli_cmds): Update.
3246         * charset.c (_initialize_charset): Update.
3247         * breakpoint.c (_initialize_breakpoint): Update.
3248         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3249         * alpha-tdep.c (_initialize_alpha_tdep): Update.
3250         * aix-thread.c (_initialize_aix_thread): Update.
3251
3252 2004-07-24  Mark Kettenis  <[email protected]>
3253
3254         Partial fix for PR backtrace/1718.
3255         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3256         that GCC migrates into the prolugue.  Don't handle any
3257         instructions that clobber %ebx.
3258
3259 2004-07-23  Andrew Cagney  <[email protected]>
3260
3261         Use regcache_raw_collect instead of regcache_collect.
3262         * regcache.h (regcache_collect): Delete declaration.
3263         * regcache.c (regcache_colect): Delete function.
3264         * win32-nat.c (do_child_store_inferior_registers): Update.
3265         * sol-thread.c (sol_thread_store_registers): Update.
3266         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3267         * rs6000-nat.c (store_register): Update.
3268         * remote.c (store_register_using_P, remote_store_registers): Update.
3269         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3270         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
3271         (fill_vrregset, store_spe_registers, fill_gregset)
3272         (fill_gregset): Update.
3273         * nto-procfs.c (procfs_store_registers): Update.
3274         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3275         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3276         * m68klinux-nat.c (store_register, fill_gregset): Update.
3277         * m68k-tdep.c (fill_gregset): Update.
3278         * infptrace.c (store_register): Update.
3279         * i386-nto-tdep.c (i386nto_regset_fill): Update.
3280         * i386-linux-nat.c (store_register, fill_gregset): Update.
3281         * hppa-linux-nat.c (fill_gregset): Update.
3282         * go32-nat.c (store_register): Update.
3283         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3284         (store_fp_regs): Update.
3285         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
3286         (store_nwfpe_extended, store_fpregister, store_fpregs) 
3287         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3288         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3289         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3290         (store_regs_user_thread, store_regs_kernel_thread): Update.
3291
3292 2004-07-24  Mark Kettenis  <[email protected]>
3293
3294         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3295         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3296         encoding.
3297         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3298         member of `struct comp_unit'.
3299
3300 2004-07-23  Andrew Cagney  <[email protected]>
3301
3302         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3303         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3304
3305 2004-07-23  Martin Hunt  <[email protected]>
3306         Kevin Buettner <[email protected]>
3307
3308         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3309         alignment was being added to the offset instead of multiplied.
3310
3311 2004-07-23  Mark Kettenis  <[email protected]>
3312
3313         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3314         changed signal trampoline in OpenBSD 3.5-current.
3315
3316         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3317         <machine/pcb.h> and "bsd-kvm.h".
3318         (sparc64nbsd_supply_pcb): New function.
3319         (_initialize_sparc64nbsd_nat): Renamed from
3320         _initialize_sparcnbsd_nat.  Enable libkvm interface.
3321         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3322         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3323         (LOADLIBES): New variable.
3324
3325         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3326
3327         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3328
3329 2004-07-21  Andrew Cagney  <[email protected]>
3330
3331         Use regcache_raw_supply instead of supply_register.
3332         * regcache.h (supply_register): Delete declaration.
3333         * regcache.c (supply_register): Delete function.
3334         * wince.c (do_child_fetch_inferior_registers): Update.
3335         * win32-nat.c (do_child_fetch_inferior_registers) 
3336         (fetch_elf_core_registers): Update.
3337         * v850ice.c (v850ice_fetch_registers): Update.
3338         * thread-db.c (thread_db_store_registers): Update.
3339         * sol-thread.c (sol_thread_store_registers): Update.
3340         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3341         * rs6000-nat.c (fetch_register): Update.
3342         * rom68k-rom.c (rom68k_supply_one_register): Update.
3343         * remote.c (remote_wait, remote_async_wait): Update.
3344         * remote-st.c (get_hex_regs): Update.
3345         * remote-sim.c (gdbsim_fetch_register): Update.
3346         * remote-sds.c (sds_fetch_registers): Update.
3347         * remote-rdp.c (remote_rdp_fetch_register): Update.
3348         * remote-rdi.c (arm_rdi_fetch_registers): Update.
3349         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3350         * remote-m32r-sdi.c (m32r_fetch_register): Update.
3351         * remote-hms.c (init_hms_cmds): Update.
3352         * remote-est.c (init_est_cmds): Update.
3353         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
3354         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3355         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3356         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
3357         (fetch_register, supply_vrregset, supply_vrregset)
3358         (fetch_spe_registers): Update.
3359         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3360         * monitor.c (monitor_supply_register): Update.
3361         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3362         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3363         (mipsnbsd_supply_fpreg): Update.
3364         * mips-nat.c (fetch_inferior_registers)
3365         (fetch_core_registers): Update.
3366         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
3367         (supply_fpregset, mips64_supply_gregset)
3368         (mips64_supply_fpregset): Update.
3369         * m68klinux-nat.c (fetch_register, supply_gregset)
3370         (supply_fpregset): Update.
3371         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3372         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3373         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3374         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3375         * infptrace.c (fetch_register): Update.
3376         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3377         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3378         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
3379         (gnu_fetch_registers, gnu_store_registers): Update.
3380         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3381         * i386-linux-nat.c (fetch_register, supply_gregset)
3382         (dummy_sse_values): Update.
3383         * hpux-thread.c (hpux_thread_fetch_registers): Update.
3384         * hppah-nat.c (fetch_register): Update.
3385         * hppa-linux-nat.c (fetch_register, supply_gregset) 
3386         (supply_fpregset): Update.
3387         * go32-nat.c (fetch_register): Update.
3388         * dve3900-rom.c (fetch_bitmapped_register)
3389         (_initialize_r3900_rom): Update.
3390         * cris-tdep.c (supply_gregset): Update.
3391         * abug-rom.c (init_abug_cmds): Update.
3392         * core-aout.c (fetch_core_registers): Update.
3393         * armnbsd-nat.c (supply_gregset, supply_fparegset)
3394         (fetch_register, fetch_fp_register): Update.
3395         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3396         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3397         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3398         * alphanbsd-tdep.c (fetch_core_registers): Update.
3399         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3400         * alpha-nat.c (fetch_osf_core_registers) 
3401         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3402         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
3403         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3404
3405 2004-07-21  Andrew Cagney  <[email protected]>
3406
3407         * PROBLEMS: Mention breakpoints/1702.
3408         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3409         that is known to work.
3410
3411 2004-07-21  Andrew Cagney  <[email protected]>
3412
3413         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3414         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3415         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3416         (handle_inferior_event): Wrap call to deprecated
3417         IGNORE_HELPER_CALL in #ifdef.
3418         * config/mips/tm-nbsd.h: Update.
3419
3420 2004-07-20  Jim Blandy  <[email protected]>
3421
3422         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3423         bfd_mach_ppc has no segment registers.
3424
3425         Include PowerPC SPR numbers for special-purpose registers.
3426         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3427         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3428         new member in initializer.
3429         (S, S4, SN4, S64): New macros for defining special-purpose
3430         registers.
3431         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3432         registers_403, registers_403GC, registers_505, registers_860,
3433         registers_601, registers_602, registers_603, registers_604,
3434         registers_750, registers_e500): Use them.
3435
3436         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3437         replace references with expression used to initialize variable.
3438
3439 2004-07-20  Andrew Cagney  <[email protected]>
3440
3441         * breakpoint.c (deprecated_read_memory_nobpt): Rename
3442         read_memory_nobpt.
3443         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3444         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3445         (s390_sigtramp_frame_sniffer): Update.
3446         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3447         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3448         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
3449         (mips32_fetch_instruction): Update.
3450         * mcore-tdep.c (get_insn): Update.
3451         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3452         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3453         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3454         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
3455         (i386_linux_rt_sigtramp_start): Update.
3456         * i386-linux-nat.c (child_resume): Update.
3457         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3458         * hppa-linux-tdep.c (insns_match_pattern): Update.
3459         * gdbcore.h: Update.
3460         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3461         * frame.c (safe_frame_unwind_memory): Update.
3462         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3463         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3464         * alpha-tdep.c (alpha_read_insn): Update.
3465
3466 2004-07-20  Andrew Cagney  <[email protected]>
3467
3468         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3469         containing both bytes and mask.  Add "frame_type".
3470         * tramp-frame.c (tramp_frame_start): Update.
3471         (tramp_frame_prepend_unwinder): Update.
3472         * mips-linux-tdep.c (mips_linux_o32_sigframe)
3473         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3474         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
3475         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3476
3477 2004-07-19  Eli Zaretskii  <[email protected]>
3478
3479         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3480         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3481         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3482         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3483
3484 2004-07-17  Andrew Cagney  <[email protected]>
3485
3486         * NEWS, PROBLEMS: Update for 6.2.
3487
3488         * README: Update to 6.2.
3489
3490         * utils.c (xvasprintf): Call xstrvprintf.
3491
3492         * parse.c: Update copyright.
3493         (null_post_parser): Eliminate ARGSUSED.
3494
3495         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3496         * tui/tui-win.c (tui_get_cmd_list): Ditto.
3497         * symfile-mem.c (_initialize_symfile_mem): Ditto.
3498         
3499         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3500         * ppc-linux-nat.c: Use "Linux kernel".
3501         * hppa-linux-tdep.c: Use GNU/Linux.
3502         * hppa-linux-nat.c: Use GNU/Linux.
3503         * dwarfread.c: Add [sic] to use of Linux.
3504
3505         * hppa-linux-nat.c: Do not include <string.h>.
3506         (supply_fpregset): Remove "register" attribute.
3507
3508         * solib-frv.c (fetch_loadmap): Use xfree, not free.
3509
3510 2004-07-17  Mark Kettenis  <[email protected]>
3511
3512         * configure.in: Define _MSE_INT_H on Solaris 9 too.
3513         * configure, config.in: Regenerated.
3514
3515         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3516         "bsd-kvm.h".
3517         (vaxbsd_supply_pcb): New function.
3518         (_initialize_vaxbsd_nat): New prototype and function.
3519         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3520         solib-sunos.o.
3521         (LOADLIBES): New variable.
3522         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3523         (LOADLIBES): New variable.
3524         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3525         (LOADLIBES): New variable.
3526         * Makefile.in (vaxbsd-nat.o): Update dependencies.
3527
3528 2004-07-16  Andrew Cagney  <[email protected]>
3529
3530         * defs.h (event_loop_p): Replace variable declaration with macro,
3531         always 1.
3532         * main.c (captured_main): Delete options "-async" and "-noasync".
3533         (event_loop_p): Delete variable.
3534         * NEWS: Mention that "-async" and "-noasync" were removed.
3535
3536 2004-07-16  Andrew Cagney  <[email protected]>
3537
3538         * remote-m32r-sdi.c: Re-indent.
3539
3540 2004-07-16  Jim Blandy  <[email protected]>
3541
3542         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3543         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3544         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3545         missing MPC823 SPRs.
3546         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3547         incorrect.  (This was corrected in GDB's register name tables on
3548         2004-07-14.)
3549
3550         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3551         should be "esasrr" ("ESA Save and Restore Register").
3552
3553 2004-07-16  Andrew Cagney  <[email protected]>
3554
3555         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3556         calls, no longer applicable.  Update comments and rename parameter
3557         "step_frame" to "return_frame".
3558
3559 2004-07-16  Andrew Cagney  <[email protected]>
3560
3561         * frame.c (fprint_field): New function.
3562         (fprint_frame_id): Use fprint_field.
3563
3564 2004-07-15  Joel Brobecker  <[email protected]>
3565
3566         * ada-lang.c (ada_language_defn): Remove commented out code.
3567
3568 2004-07-15  Jim Blandy  <[email protected]>
3569
3570         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3571         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3572
3573 2004-07-14  Jim Blandy  <[email protected]>
3574
3575         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3576
3577         * ppc-tdep.h (ppc_num_vrs): New enum constant.
3578
3579         * ppc-tdep.h (ppc_num_srs): New enum constant.
3580
3581         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3582         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3583         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3584         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3585         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3586         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3587         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3588         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3589         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3590         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3591         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3592         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3593         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3594         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3595         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3596         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3597         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3598         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3599         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3600         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3601         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3602         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3603         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3604         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3605         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3606         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3607         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3608         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3609         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3610         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3611         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3612         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3613         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3614         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3615         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3616         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3617         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3618         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3619         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3620         special-purpose register numbers.
3621
3622         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
3623         manual mentions 'md_twb', but many mention 'm_twb', and at that
3624         point in the register list.)
3625
3626 2004-07-14  Andrew Cagney  <[email protected]>
3627
3628         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3629         instead of "internal-error".
3630
3631 2004-07-10  Joel Brobecker  <[email protected]>
3632
3633         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3634         that was inserted inside a comment.
3635
3636 2004-07-10  Randolph Chung  <[email protected]>
3637
3638         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
3639         function.
3640         (hppa_hpux_push_dummy_code): New function.
3641         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3642         Set find_global_pointer method.
3643
3644 2004-07-10  Mark Kettenis  <[email protected]>
3645
3646         * NEWS: Mention BSD libkvm interface.
3647
3648 2004-07-10  Michael Snyder  <[email protected]>
3649
3650         * symfile.c (generic_load): Comment typo.
3651         * stack.c (get_selected_block): Ditto.
3652         * regcache.c (regcache_cooked_read): Ditto.
3653         * monitor.c (monitor_debug): Ditto.
3654         * mips-tdep.c (mips_read_pc): Ditto.
3655         * i386-linux-nat.c (ps_get_thread_area): Ditto.
3656         * gdb_mbuild.sh: Ditto.
3657         * gdbarch.sh: Ditto.
3658         * gdbarch.h: Ditto.
3659
3660 2004-07-09  Paul N. Hilfinger  <[email protected]>
3661
3662         * ada-tasks.c: Remove file.
3663         
3664         Remove ARI problems:
3665         
3666         * ada-exp.y (write_var_from_sym): Reformat to put operator at
3667         beginning of line.
3668
3669         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3670         Add comment.
3671         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3672         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
3673         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
3674         (UMIN_OF_SIZE): Remove.
3675         (max_of_type): New function to replace orphan macro in gdbtypes.h
3676         (min_of_type): Ditto.
3677         (discrete_type_high_bound): Use max_of_type.
3678         (discrete_type_low_bound): Use min_of_type.
3679         (possible_user_operator_p): Move operator to beginning of line.
3680         (ada_is_variant_part): Ditto.
3681         (ensure_lval): Rewrite to avoid deprecated operations.
3682         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3683         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3684         (ada_enum_name): Remove assignments in 'if' statements.
3685         (build_ada_types): Add gdbarch parameter.
3686         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3687         with gdbarch_data_register_post_init.
3688         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
3689         add_show_from_set.
3690
3691         * ada-valprint.c (inspect_it): Remove declaration.
3692         (repeat_count_threshold): Remove declaration.
3693         (ada_print_floating): Remove assignments in 'if' statements.
3694         (print_str): Move operator to beginning of line.
3695         
3696 2004-07-08  Jim Blandy  <[email protected]>
3697
3698         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3699
3700 2004-07-08  Bob Rossi  <[email protected]>
3701
3702         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3703
3704 2004-07-06  Jeff Johnston <[email protected]>
3705
3706         * language.h (struct_language_defn): Add new function pointer:
3707         la_class_name_from_physname.  Also add new prototype for
3708         language_class_name_from_physname.
3709         * language.c (language_class_name_from_physname): New function.
3710         (unk_lang_class_name): Ditto.
3711         (unknown_language_defn, auto_language_defn): Change
3712         to add unk_lang_class_name function pointer for
3713         la_class_name_from_physname.
3714         (local_language_defn): Ditto.
3715         * dwarf2read.c (guess_structure_name): Change to call
3716         language_class_name_from_physname.
3717         (determine_class_name): Ditto.
3718         * cp-support.c (class_name_from_physname): Renamed.
3719         (cp_class_name_from_physname): New name of function.
3720         * cp-support.h: Ditto.
3721         * c-lang.c (c_language_defn): Change to add NULL
3722         for class_name_from_physname function pointer.
3723         (cplus_language_defn): Change to add cp_class_name_from_physname.
3724         * jv-lang.c (java_class_name_physname): New function.
3725         (java_find_last_component): New static routine.
3726         (java_language_defn): Add java_class_name_from_physname pointer.
3727         * ada-lang.c (ada_language_defn): Change to add NULL
3728         for class_name_from_physname function pointer.
3729         * f-lang.c (f_language_defn): Ditto.
3730         * m2-lang.c (m2_language_defn): Ditto.
3731         * objc-lang.c (objc_language_defn): Ditto.
3732         * p-lang.c (pascal_language_defn): Ditto.
3733         * scm-lang.c (scm_language_defn): Ditto. 
3734
3735 2004-07-06  Andrew Cagney  <[email protected]>
3736
3737         Patch from Bart Robinson.
3738         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3739         (O_LARGEFILE): Define to 0, if not defined.
3740
3741 2004-07-03  Mark Kettenis  <[email protected]>
3742
3743         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3744         <machine/pcb.h> and "bsd-kvm.h".
3745         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3746         (m68kbsd_supply_pcb): New function.
3747         (_initialize_m68kbsd_nat): New prototype and function.
3748         * Makefile.in (m68kbsd-nat.o): Update dependencies.
3749         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3750         (LOADLIBES): New variable.
3751         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3752         (LOADLIBES): New variable.
3753
3754         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3755
3756 2004-07-03  Mark Kettenis  <[email protected]>
3757
3758         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3759         <sys/proc.h>.
3760         (bsd_kvm_cmdlist): New variable.
3761         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3762         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3763         command and "kvm proc" command.
3764         * Makefile.in (bsd-kvm.o): Update dependencies.
3765
3766 2004-07-02  Mark Kettenis  <[email protected]>
3767
3768         * osabi.c: Update copyright year.
3769         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
3770         notes if EI_OSABI is set to ELFOSABI_HPUX.
3771
3772 2004-07-01  Michael Snyder  <[email protected]>
3773
3774         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3775         that seems to have gotten whacked out of line.
3776
3777 2004-07-01  Mark Kettenis  <[email protected]>
3778
3779         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3780         code.
3781
3782 2004-07-01  Paul N. Hilfinger  <[email protected]>
3783
3784         * ada-lang.c (decode_packed_array): Minor change to comment.
3785         (ada_value_slice_ptr): New function. 
3786         (ada_value_slice): New function. 
3787         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3788         test.  Don't know why it is there.
3789         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3790         to avoid dereferencing huge arrays from which one is slicing.  
3791         (empty_array): Correct to return an array rather than
3792         a subrange value.
3793         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3794         on empty arrays (let'em use 'FIRST instead).
3795
3796 2004-07-01  Paul N. Hilfinger  <[email protected]>
3797
3798         Address complaints from gdb_ari.sh:
3799         
3800         * ada-exp.y: Include gdb_string.h rather than string.h.
3801         (convert_char_literal): Reformat declaration.
3802         * ada-lang.h: Include opaque struct declaration for struct frame_info.
3803         * ada-lex.l: Change use of free to xfree (the macro would do so
3804         anyway, but this is harmless).
3805         Include gdb_string.h rather than string.h.
3806         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3807         
3808         * ada-lang.c (parse): Remove K&Rism in parameter list.
3809         (is_name_suffix): Correct Linux => GNU/Linux in comment.
3810         
3811 2004-06-30  Mark Kettenis  <[email protected]>
3812
3813         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3814         dead code.
3815
3816 2004-06-30  Mark Kettenis  <[email protected]>
3817
3818         * alphabsd-nat.c: Update copyright year.
3819         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3820
3821 2004-06-29  Joel Brobecker  <[email protected]>
3822
3823         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3824         (i386_cygwin_in_solib_call_trampoline): New function.
3825         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3826         and skip_trampoline_code gdbarch methods.
3827
3828 2004-06-29  Jim Blandy  <[email protected]>
3829
3830         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3831         name actually used in the dependency lists.
3832
3833 2004-06-29  Randolph Chung  <[email protected]>
3834
3835         * NEWS (New native configurations): Mention GNU/Linux/hppa.
3836
3837 2004-06-29  Corinna Vinschen  <[email protected]>
3838
3839         * win32-nat.c (child_pid_to_exec_file): New function.
3840         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3841         functionality.
3842
3843 2004-06-28  Andrew Cagney  <[email protected]>
3844
3845         * defs.h (xstrvprintf): Declare.
3846         * utils.c (xstrvprintf): New function.
3847         (internal_vproblem, xstrprintf, xasprintf) 
3848         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3849         * serial.c (serial_printf): Ditto.
3850         * complaints.c (vcomplaint): Ditto.
3851
3852 2004-06-29  Corinna Vinschen  <[email protected]>
3853
3854         * infcmd.c (attach_command): Move call to target_terminal_inferior
3855         behind loading symbol table.
3856
3857 2004-06-28  Andrew Cagney  <[email protected]>
3858
3859         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3860         change - add back extern deprecated_ui_loop_hook declaration.
3861
3862 2004-06-28  Andrew Cagney  <[email protected]>
3863
3864         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3865         xstrprintf.
3866         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3867         (c_value_of_variable): Ditto.
3868         * utils.c (internal_vproblem): Ditto.
3869         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3870         * remote.c (add_packet_config_cmd): Ditto.
3871         * remote-rdp.c (rdp_set_command_line): Ditto.
3872         * regcache.c (regcache_dump): Ditto.
3873         * frv-tdep.c (new_variant, new_variant): Ditto.
3874         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3875         (fbsd_find_memory_regions): Ditto.
3876         * breakpoint.c (create_thread_event_breakpoint) 
3877         (create_breakpoints): Ditto.
3878         * aix-thread.c (aix_thread_pid_to_str): Ditto.
3879         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
3880
3881 2004-06-28  Joel Brobecker  <[email protected]>
3882
3883         * ada-lang.c: Re-indent file, with some massaging to help indent
3884         a bit when the result is otherwise really too ugly.
3885
3886 2004-06-27  Ulrich Weigand  <[email protected]>
3887
3888         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
3889         code_addr_p and special_addr_p to 'unsigned int'.
3890
3891 2004-06-27  Mark Kettenis  <[email protected]>
3892
3893         * i386v4-nat.c: Update copyright year and tweak comment.
3894         (regmap): Remove trailing comma.
3895         (supply_gregset): Rename local variable i to regnum.  Call
3896         regcache_raw_supply instead of supply_register.
3897         (fill_gregset): Rename argument regno to regnum.  Call
3898         regcache_raw_collect instead of regcache_collect.
3899
3900 2004-06-27  Ulrich Weigand  <[email protected]>
3901
3902         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3903         and special_addr_p.
3904         (frame_id_build, frame_id_build_special): Update comments.
3905         (frame_id_build_wild): New prototype.
3906         * frame.c (frame_id_build, frame_id_build_special): Fill in new
3907         struct frame_id fields.
3908         (frame_id_build_wild): New function.
3909         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3910
3911 2004-06-27  Mark Kettenis  <[email protected]>
3912
3913         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3914         hppabsd-tdep.c.
3915
3916 2004-06-27  Joel Brobecker  <[email protected]>
3917
3918         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3919
3920 2004-06-27  Joel Brobecker  <[email protected]>
3921
3922         * ada-lang.c: Re-indent file.
3923
3924 2004-06-27  Joel Brobecker  <[email protected]>
3925
3926         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3927         (no_symtab_msg): Likewise.
3928
3929 2004-06-27  Andreas Schwab  <[email protected]>
3930
3931         * source.c: Fix whitespace.
3932
3933 2004-06-27  Mark Kettenis  <[email protected]>
3934
3935         * configure.in: Include <sys/param.h> for td_pcb test.
3936         * configure: Regenerated.
3937
3938         * i386nbsd-nat.c: New file.
3939         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3940         i386obsd-nat.c and i386obsd-tdep.c.
3941         (i386nbsd-nat.o): New dependency.
3942         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3943         bsd-kvm.o.
3944         (LOADLIBES): New variable.
3945         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3946         bsd-kvm.o.
3947         (LOADLIBES): New variable.
3948
3949         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3950         (LOADLIBES): New variable.
3951
3952         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3953         fetching from BSD_KVM_PADDR.  Correctly lookup address for
3954         "_thread0".
3955
3956         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3957         "bsd-kvm.h".
3958         (amd64fbsd_supply_pcb): New funcion.
3959         (_initialize_amd64fbsd_nat): Enable libkvm interface.
3960
3961 2004-06-27    <[email protected]>
3962
3963         Partial fix for PR cli/1056.
3964         * valarith.c: Check for zero in division and remainder 
3965         evaluation.
3966
3967 2004-06-27  Mark Kettenis  <[email protected]>
3968
3969         * i387-tdep.c: Remove excessive whitespace.
3970
3971 2004-06-26  Andrew Cagney  <[email protected]>
3972
3973         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3974         * gdb-events.h, gdb-events.c: Re-generate.
3975         * tui/tui-hooks.c (tui_install_hooks): Update.
3976         (tui_remove_hooks): Update.
3977         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3978
3979 2004-06-26  Mark Kettenis  <[email protected]>
3980
3981         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3982         (gregset_t, fpregset_t): Remove typedefs.
3983         (REG_OFFSET): Rename argument.
3984         (amd64bsd_r_reg_offset): Rename from reg_offset.
3985         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3986         Remove functions.
3987         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3988         of reg_offset.
3989         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3990
3991         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3992
3993         * vax-tdep.c: Tweak comment.
3994
3995         Add OpenBSD/hppa support.
3996         * NEWS (New native configurations): Mention OpenBSD/hppa.
3997         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3998         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3999         files.
4000         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4001         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4002         * configure.host: Add hppa*-*-openbsd*.
4003         * configure.tgt: Add hppa*-*-openbsd*.
4004
4005 2004-06-25  Andrew Cagney  <[email protected]>
4006
4007         * defs.h (deprecated_ui_loop_hook): Deprecated.
4008         * wince.c (child_wait): Update.
4009         * win32-nat.c (child_wait): Update.
4010         * v850ice.c (v850ice_wait): Update.
4011         * top.c (deprecated_ui_loop_hook): Update.
4012         * serial.h: Update.
4013         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
4014         (do_unix_readchar): Update.
4015         * ser-tcp.c (net_open): Update.
4016         * remote-sim.c (gdb_os_poll_quit): Update.
4017         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4018
4019 2004-06-24  Andrew Cagney  <[email protected]>
4020
4021         * defs.h (deprecated_pre_add_symbol_hook)
4022         (deprecated_post_add_symbol_hook): Deprecated.
4023         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
4024         (symbol_file_add_with_addrs_or_offsets): Update references.
4025
4026 2004-06-24  Andrew Cagney  <[email protected]>
4027
4028         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4029         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4030         * wince.c (ui_loop_hook): Delete extern declaration.
4031         * win32-nat.c (ui_loop_hook): Delete extern declaration..
4032         * v850ice.c (ui_loop_hook): Delete extern declaration..
4033         * ser-unix.c (ui_loop_hook): Delete extern declaration..
4034         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4035         * remote-sim.c (ui_loop_hook): Delete extern declaration..
4036         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4037         ui_loop_hook declaration.
4038
4039 2004-06-24  Andrew Cagney  <[email protected]>
4040
4041         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4042         entry_func_highpc fields.
4043         * objfiles.c (init_entry_point_info): Do not clear
4044         entry_func_lowpc and entry_func_highpc.
4045         (objfile_relocate): Do not relocate entry_func_lowpc and
4046         entry_func_highpc.
4047         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4048         entry_func_highpc.
4049         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4050         entry_func_highpc.
4051         * blockframe.c (legacy_frame_chain_valid): Replace tests against
4052         entry_func_lowpc and entry_func_highpc with call to
4053         inside_entry_func.
4054
4055 2004-06-24  Mark Kettenis  <[email protected]>
4056
4057         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4058         quad-precision floating point arguments in registers.
4059
4060 2004-06-24  Mark Kettenis  <[email protected]>
4061
4062         From Michael Mueller <[email protected]>:
4063         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4064         account.
4065
4066 2004-06-22  Jeff Johnston  <[email protected]>
4067
4068         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4069         to -1.
4070         * breakpoint.c (bpstat_stop_status): Move check for ignoring
4071         untriggered watchpoints to a separate if clause.  Update function
4072         comment regarding STOPPED_BY_WATCHPOINT argument.
4073
4074 2004-06-22  Jim Blandy  <[email protected]>
4075
4076         * gdbarch.sh: Doc fix.
4077
4078 2004-06-21  Martin Hunt  <[email protected]>
4079         Kevin Buettner <[email protected]>
4080
4081         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4082         * mips-tdep.h (MIPS_SP_REGNUM): Define.
4083         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4084         to set_gdbarch_sp_regnum().  Use cooked register number.
4085         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4086
4087 2004-06-21  Andrew Cagney  <[email protected]>
4088
4089         * gdbarch.sh: When the macro field is empty, do not generate a
4090         macro definition.  When the macro field is "=", generate the macro
4091         name from the upper-case function name.
4092         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4093         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4094         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4095         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4096         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4097         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4098         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4099         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4100         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4101         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4102         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4103         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4104         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4105         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4106         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4107         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4108         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4109         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4110         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4111         (DEPRECATED_USE_STRUCT_CONVENTION)
4112         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4113         (DEPRECATED_FRAME_INIT_SAVED_REGS)
4114         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4115         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4116         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4117         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4118         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4119         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4120         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4121         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4122         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4123         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4124         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4125         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4126         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4127         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4128         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4129         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4130
4131 2004-06-21  Andrew Cagney  <[email protected]>
4132
4133         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4134         macro name, and the function rather than macro value.  Only wrap
4135         macro print statements in #ifdef.  Move format logic to where it
4136         is needed.
4137         * gdbarch.c: Re-generate.
4138         
4139         * gdbarch.sh (read): Delete "print_p" and "description", add
4140         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
4141         Delete references to print_p.
4142         (TARGET_ARCHITECTURE): Delete print predicate.
4143         * gdbarch.c: Re-generate.
4144         
4145         * gdbarch.sh: Check that multi-arch methods do not provide a
4146         macro.
4147         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4148         (print_registers_info, print_float_info, print_vector_info)
4149         (adjust_breakpoint_address, remote_translate_xfer_address)
4150         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4151         (address_class_type_flags_to_name, unwind_sp): Remove the macro
4152         name from the multi-arch definition.
4153         
4154 2004-06-20  Andrew Cagney  <[email protected]>
4155
4156         * gdbarch.sh: Sort by the function, instead of macro name.
4157         * gdbarch.c: Re-generate.
4158         
4159 2004-06-20  Andrew Cagney  <[email protected]>
4160
4161         * gdbarch.sh: Use the function, instead of macro name in
4162         errors and the log file.
4163         (return_value): Remove stray ":" in spec.
4164
4165         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4166         * gdbarch.h, gdbarch.c: Re-generate.
4167         * Makefile.in (arch-utils.o): Update dependencies.
4168         * values.c (using_struct_return): Move code calling
4169         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4170         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4171         to legacy_return_value, simplify.
4172         * infcmd.c (print_return_value): Move code calling
4173         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4174         to legacy_return_value, simplify.
4175         * infcall.c (call_function_by_hand): Move code calling
4176         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4177         * arch-utils.c: Update copyright.  Include "gdbcore.h".
4178         (legacy_return_value): New function.
4179         * arch-utils.h: Update copyright.
4180         (legacy_return_value): Declare.
4181         
4182 2004-06-20  Andrew Cagney  <[email protected]>
4183
4184         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4185         * gdbarch.h, gdbarch.c: Re-generate.
4186         * values.c (using_struct_return): Update call.
4187         * mcore-tdep.c: Update comment.
4188         * infcall.c (call_function_by_hand): Update comment.
4189         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4190         * arch-utils.h (always_use_struct_convention): Update.
4191         * v850-tdep.c (v850_gdbarch_init): Update.
4192         * sh64-tdep.c (sh64_gdbarch_init): Update.
4193         * sh-tdep.c (sh_gdbarch_init): Update.
4194         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4195         * mips-tdep.c (mips_gdbarch_init): Update.
4196         * mcore-tdep.c (mcore_gdbarch_init): Update.
4197         * m32r-tdep.c (m32r_gdbarch_init): Update.
4198         * ia64-tdep.c (ia64_gdbarch_init): Update.
4199         * h8300-tdep.c (h8300_gdbarch_init): Update.
4200         * frv-tdep.c (frv_gdbarch_init): Update.
4201         * cris-tdep.c (cris_gdbarch_init): Update.
4202         * arm-tdep.c (arm_gdbarch_init): Update.
4203         * alpha-tdep.c (alpha_gdbarch_init): Update.
4204
4205 2004-06-18  Michael Chastain  <[email protected]>
4206
4207         * PROBLEMS: Add more specific information, and a work-around,
4208         for PR gdb/1458.
4209
4210 2004-06-18  Andrew Cagney  <[email protected]>
4211
4212         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4213         * gdbarch.h, gdbarch.c: Re-generate.
4214         * ada-lang.c (ada_finish_decode_line_1): Update.
4215         * infrun.c (handle_inferior_event): Update.
4216         * infcall.c (find_function_addr): Update.
4217         * linespec.c (minsym_found): Update.
4218         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4219         Update.
4220         * blockframe.c (legacy_frameless_look_for_prologue): Update.
4221         * cli/cli-cmds.c (disassemble_command): Update.
4222         * vax-tdep.c (vax_gdbarch_init): Update.
4223
4224 2004-06-18  Mark Kettenis  <[email protected]>
4225
4226         * i386-tdep.c (i386_collect_fpregset): Fix comment.
4227
4228 2004-06-17  Andrew Cagney  <[email protected]>
4229
4230         GDB 6.1.1 released from the GDB 6.1 branch.
4231         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4232         * PROBLEMS: Ditto.
4233
4234 2004-06-16  Daniel Jacobowitz  <[email protected]>
4235
4236         PR gdb/1658
4237         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4238         operation as a uleb128.  Found by Michael Coulter.
4239
4240 2004-06-16  Paul N. Hilfinger  <[email protected]>
4241         
4242         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4243         make it non-static.
4244         * ada-lang.h (task_control_block): declaration moved from ada-task.c
4245         to ada-lang.h; this is needed to be able to implement the kill command
4246         in multi-task mode.
4247         (task_ptid): Ditto.
4248         (task_entry): Ditto.
4249         (task_list): Ditto.
4250         (ada_build_task_list): Ditto.
4251         
4252         * ada-lang.c: Conditionalize routines and data structures related 
4253         to breakpoints, exceptions, completion, and symbol caching on 
4254         GNAT_GDB, since these are not yet used in the submitted public sources.
4255         (ada_main_name): Editorial: Move definition out of exception-related 
4256         code.
4257
4258 2004-06-15  Andrew Cagney  <[email protected]>
4259
4260         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4261         deprecated_pc_in_call_dummy.
4262
4263 2004-06-15  Alan Modra  <[email protected]>
4264
4265         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4266         bfd_get_section_size_before_reloc or _raw_size.
4267         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4268         * dwarf2read.c (dwarf2_locate_sections): Likewise.
4269         (dwarf2_read_section): Likewise.
4270         * elfread.c (elf_locate_sections): Likewise.
4271         * gcore.c (derive_heap_segment): Likewise.
4272         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4273         * remote-e7000.c (e7000_load): Likewise.
4274         * remote-m32r-sdi.c (m32r_load): Likewise.
4275         * remote-mips.c (mips_load_srec): Likewise.
4276         (pmon_load_fast): Likewise.
4277         * remote.c (compare_sections_command): Likewise.
4278         * symfile.c (add_section_size_callback): Likewise.
4279         (load_section_callback): Likewise.
4280         (pc_in_unmapped_range): Likewise.
4281         (pc_in_mapped_range): Likewise.
4282         (sections_overlap): Likewise.
4283         (list_overlays_command): Likewise.
4284         (simple_overlay_update_1): Likewise.
4285         (simple_overlay_update): Likewise.
4286         * tracepoint.c (remote_set_transparent_ranges): Likewise.
4287         * win32-nat.c (core_section_load_dll_symbols): Likewise.
4288
4289 2004-06-14  Randolph Chung  <[email protected]>
4290
4291         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4292         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
4293         static.
4294         (hppa_hpux_inferior_created): New function.
4295         (hppa_hpux_init_abi): Register observer.
4296         * symfile.c (hp_cxx_exception_support_initialized)
4297         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4298         (symbol_file_add_main_1, symbol_file_clear): Likewise.
4299
4300 2004-06-14  Randolph Chung  <[email protected]>
4301
4302         * MAINTAINERS (Write After Approval): Alphabetize my entry
4303         correctly.
4304
4305 2004-06-14  Andrew Cagney  <[email protected]>
4306
4307         * MAINTAINERS (testsuite): List Michael Chastain as the lead
4308         testsuite maintainer.
4309
4310 2004-06-13  Andrew Cagney  <[email protected]>
4311
4312         * infcmd.c (print_return_value): Fix logic, allow
4313         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4314
4315         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4316         defining any macros.
4317         * gdbarch.h: Re-generate.
4318
4319         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
4320         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4321         * gdbarch.h: Re-generate.
4322
4323         * values.c (generic_use_struct_convention): Don't check gcc_p.
4324
4325         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4326         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4327         * gdbarch.h, gdbarch.c: Regenerate.
4328         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
4329         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4330         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4331         deprecated_max_register_raw_size and
4332         deprecated_max_register_virtual_size.
4333         * v850-tdep.c (v850_gdbarch_init): Ditto.
4334         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4335         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4336         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4337         * cris-tdep.c (cris_gdbarch_init): Ditto.
4338
4339         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4340         * gdbarch.h, gdbarch.c: Re-generate.
4341         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4342         (m68hc11_use_struct_convention): Delete function.
4343         (m68hc11_extract_struct_value_address): Delete function.
4344         (m68hc11_return_value): New function.
4345         (m68hc11_gdbarch_init): Instead of store_return_value,
4346         extract_return_value, return_value_on_stack,
4347         deprecated_extract_struct_value_address and use_struct_convention,
4348         set return_value.
4349         * values.c (using_struct_return): Do not call
4350         RETURN_VALUE_ON_STACK.
4351         * arch-utils.h (generic_return_value_on_stack_not): Delete
4352         declaration.
4353         * arch-utils.c (generic_return_value_on_stack_not): Delete
4354         function.
4355         
4356 2004-06-12  Andrew Cagney  <[email protected]>
4357
4358         * values.c (register_value_being_returned): Delete function.
4359         * infcmd.c (legacy_return_value): Delete function.
4360         * infcall.c (call_function_by_hand): Inline
4361         "register_value_being_returned", simplify.
4362         * values.c (using_struct_return): Update comment, refer to
4363         print_return_value instead of register_value_being_returned.
4364         * infcmd.c (print_return_value): Inline calls to
4365         register_value_being_returned and legacy_return_value.  Simplify.
4366
4367 2004-06-11  Randolph Chung  <[email protected]>
4368
4369         * somread.c (som_symtab_read): Exclude gcc local symbols.
4370
4371 2004-06-11  Randolph Chung  <[email protected]>
4372
4373         * infrun.c (handle_inferior_event): Handle the case when a
4374         trampoline ends up in the runtime resolver, and if the trampoline
4375         has no name.  Rearrange the code so that all the trampoline
4376         processing happens before other step-out-of-range handling.
4377
4378 2004-06-11  Martin Hunt  <[email protected]>
4379
4380         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4381         has no fpu.
4382
4383 2004-06-10  Andrew Cagney  <[email protected]>
4384
4385         * blockframe.c (legacy_inside_entry_func): Delete.
4386         (legacy_frame_chain_valid): Inline call to
4387         legacy_inside_entry_func, simplify.
4388
4389 2004-06-10  Bob Rossi  <[email protected]>
4390
4391         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4392         * dwarf2read.c (partial_die_info): Add dirname field.
4393         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4394         (read_partial_die): Save away DW_AT_comp_dir.
4395         * defs.h (symtab_to_filename): Removed.
4396         * source.c (find_and_open_source): Added.
4397         (open_source_file): Just calls find_and_open_source.
4398         (symtab_to_filename): Removed.
4399         (symtab_to_fullname, psymtab_to_fullname): Added.
4400         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4401         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4402         symtab_to_filename.
4403         * symtab.h (partial_symtab): Add dirname field.
4404         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4405         (mi_cmd_file_list_exec_source_file): Call new function
4406         symtab_to_fullname to find fullname.
4407         (mi_cmd_file_list_exec_source_files): Added.
4408         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4409         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4410
4411 2004-06-10  Andrew Cagney  <[email protected]>
4412
4413         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4414         to generic_use_struct_convention, the default value.
4415
4416         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4417         of abort.
4418
4419         * ns32k-tdep.c (ns32k_push_arguments): New function.
4420         (ns32k_gdbarch_init): Set deprecated_push_arguments.
4421         * infcall.c (call_function_by_hand): Call error instead of
4422         legacy_push_arguments.
4423         * value.h (legacy_push_arguments): Delete declaration.
4424         * valops.c (legacy_push_arguments): Delete function.
4425         (value_push): Delete function.
4426
4427 2004-06-10  Brian Ford  <[email protected]>
4428
4429         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4430         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
4431         info.
4432         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4433
4434 2004-06-10  Andrew Cagney  <[email protected]>
4435
4436         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4437         * gdbarch.h, gdbarch.c: Re-generate.
4438         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4439         parameters.
4440         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4441         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4442         deprecated_pc_in_call_dummy instead of
4443         DEPRECATED_PC_IN_CALL_DUMMY.
4444         (arm_skip_prologue): Ditto.
4445         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4446         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4447         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4448         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4449         Ditto.
4450         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
4451         (sh64_init_extra_frame_info, sh64_get_saved_register) 
4452         (sh64_pop_frame): Ditto.
4453         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4454         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
4455         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4456         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
4457         (h8300_pop_frame): Ditto.
4458         * blockframe.c (legacy_inside_entry_func) 
4459         (legacy_frame_chain_valid): Ditto.
4460         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4461         to deprecated_pc_in_call_dummy.
4462         
4463 2004-06-09  Andrew Cagney  <[email protected]>
4464
4465         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4466         provide a default value.
4467         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4468         * gdbarch.h, gdbarch.c: Re-generate.
4469         * arch-utils.c (generic_convert_register_p): Rename
4470         legacy_convert_register_p
4471         (legacy_register_to_value, legacy_value_to_register): Delete
4472         functions.
4473         * arch-utils.h (generic_convert_register_p): Rename
4474         legacy_convert_register_p.
4475         (legacy_register_to_value, legacy_value_to_register): Delete
4476         declarations.
4477
4478         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4479         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4480         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4481         * gdbarch.h, gdbarch.c: Re-generate.
4482         * infcmd.c (default_print_registers_info): Simplify.
4483         * findvar.c (value_of_register): Simplify.
4484         * mi/mi-main.c (get_register): Simplify.
4485         * arch-utils.c (legacy_convert_register_p): Always return 0.
4486         (legacy_register_to_value, legacy_value_to_register): Always call
4487         internal_error.
4488
4489         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4490         #ifdef CLEAR_INSN_CACHE code.
4491         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4492         Delete #ifdef CLEAR_DEFERRED_STORES code.
4493
4494         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4495
4496         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4497         copyright.
4498         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4499
4500         * config/mips/mipsv4.mh: Delete file.
4501
4502         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4503         unreferenced macro.
4504         (hpread_adjust_stack_address): Delete declaration.
4505
4506 2004-06-08  Andrew Cagney  <[email protected]>
4507
4508         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4509         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4510         PTRACE_ATTACH / PTRACE_DETACH available call error.
4511         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4512         * infttrace.c (update_thread_state_after_attach, attach, detach):
4513         Remove #ifdef wrappers.
4514         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4515         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4516         * config/nm-bsd.h (ATTACH_DETACH): Delete.
4517         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4518         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4519         * config/nm-linux.h (ATTACH_DETACH): Delete.
4520         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4521         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4522         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4523         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4524         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4525
4526 2004-06-08  Corinna Vinschen  <[email protected]>
4527
4528         * configure.in: Set $configdir to the right OS specific value.
4529         Use value when setting $tcldir and $tkdir.
4530         * configure: Regenerate.
4531
4532 2004-06-06  Paul Brook  <[email protected]>
4533
4534         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4535         records.
4536
4537 2004-06-08  Paul N. Hilfinger  <[email protected]>
4538
4539         * ada-lang.c (lookup_symbol_in_language): New function to allow
4540         re-use of another language's symbol lookup code.  (Placed here
4541         temporarily while Ada support is being integrated into the public
4542         tree).  
4543         (restore_language): New auxiliary function for 
4544         lookup_symbol_in_language.
4545         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4546         temporarily while Ada support is being integrated into the public
4547         tree).
4548         
4549 2004-06-08  Alexandre Oliva  <[email protected]>
4550
4551         * Makefile.in (check//%): New.
4552
4553         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4554         (mn10300_store_return_value): Rewrite.
4555         (mn10300_type_align): New.
4556         (mn10300_use_struct_convention): Rewrite.
4557         (mn10300_return_value): New, using all of the above.
4558         (mn10300_pop_frame_regular): Add saved_regs_size.
4559         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4560
4561         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4562         regs if PC is on movm.
4563
4564 2004-06-07  Jim Blandy  <[email protected]>
4565
4566         Add native Linux support for the PowerPC E500.
4567         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4568         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4569         all architectures except the E500.
4570         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4571         #definitions.
4572         (struct gdb_evrregset_t): New type.
4573         (have_ptrace_getsetevrregs): New variable.
4574         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
4575         fetch_spe_registers): New functions.
4576         (fetch_register): Call fetch_spe_register as appropriate.
4577         Assert that we're only passed raw register numbers.
4578         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4579         Don't fetch gprs if they're pseudoregisters.
4580         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4581         store_spe_registers): New functions.
4582         (store_register): Call store_spe_register as appropriate.
4583         Assert that we're only passed raw register numbers.
4584         (store_ppc_registers): Call store_spe_registers as appropriate.
4585         Don't store gprs if they're pseudoregisters.
4586         
4587 2004-06-07  Jeff Johnston  <[email protected]>
4588
4589         * thread-db.c (thread_get_info_callback): Fill in the thread_info
4590         struct if one exists, even if we are dealing with a zombie thread.
4591
4592 2004-06-07  Andrew Cagney  <[email protected]>
4593
4594         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4595         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4596         Rename PC_REQUIRES_RUN_BEFORE_USE.
4597         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
4598         #ifdef.
4599
4600 2004-06-07  Randolph Chung  <[email protected]>
4601
4602         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4603         unwinding after sp has been saved to the stack but before the end
4604         of the prologue, and after the fp has been modified but before it has
4605         been saved to the stack.
4606         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
4607         Remove superfluous definitions.
4608         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4609
4610 2004-06-07  Guy Martin  <[email protected]>
4611
4612         Committed by Randolph Chung.
4613         * hppa-linux-nat.c: Include the correct version of the header file
4614         depending on the kernel version.
4615
4616 2004-06-06  Randolph Chung  <[email protected]>
4617
4618         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4619         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4620
4621 2004-06-06  Randolph Chung  <[email protected]>
4622
4623         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
4624         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4625         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4626         * hppa-tdep.c (hppa_symbol_address): New function definition.
4627         * hppa-tdep.h (hppa_symbol_address): New function declaration.
4628
4629 2004-06-06  Randolph Chung  <[email protected]>
4630
4631         * hppa-tdep.h (struct value): Forward declaration.
4632         (gdbarch_tdep): Define tdep find_global_pointer method.
4633         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4634         associated with the function we are trying to call, and write it
4635         to the gp register.
4636         (hppa32_convert_from_funct_ptr_addr): New function.
4637         (hppa_find_global_pointer): New function.
4638         (hppa_gdbarch_init): Set default find_global_pointer method; set
4639         convert_from_func_ptr_addr method.
4640         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4641         (hppa_linux_init_abi): Set find_global_pointer method.
4642         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4643
4644 2004-06-06  Randolph Chung  <[email protected]>
4645
4646         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4647         to struct value *function.
4648         * gdbarch.c: Regenerate.
4649         * gdbarch.h: Likewise.
4650         * infcall.c (call_function_by_hand): Pass entire function value
4651         to push_dummy_call.
4652
4653         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4654         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4655         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4656         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4657         * arm-tdep.c (arm_push_dummy_call): Likewise.
4658         * avr-tdep.c (avr_push_dummy_call): Likewise.
4659         * cris-tdep.c (cris_push_dummy_call): Likewise.
4660         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4661         * frv-tdep.c (frv_push_dummy_call): Likewise.
4662         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4663         * hppa-tdep.c (hppa32_push_dummy_call)
4664         (hppa64_push_dummy_call): Likewise.
4665         * i386-tdep.c (i386_push_dummy_call): Likewise.
4666         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4667         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4668         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4669         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4670         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4671         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4672         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4673         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4674         (ppc64_sysv_abi_push_dummy_call): Likewise.
4675         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4676         (ppc64_sysv_abi_push_dummy_call): Likewise.
4677         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4678         * s390-tdep.c (s390_push_dummy_call): Likewise.
4679         * sh-tdep.c (sh_push_dummy_call_fpu)
4680         (sh_push_dummy_call_nofpu): Likewise.
4681         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4682         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4683         * vax-tdep.c (vax_push_dummy_call): Likewise.
4684
4685 2004-06-04  Jim Blandy  <[email protected]>
4686
4687         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4688         gdbarch argument to register_size.
4689
4690         * rs6000-tdep.c (rs6000_store_return_value): Use
4691         regcache_cooked_write_part instead of
4692         deprecated_write_register_bytes.
4693         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4694         not gdbarch_deprecated_store_return_value.
4695
4696         * ppc-linux-nat.c (store_register, fetch_register): Remove
4697         incorrect assertions.  Simplify and generalize handling of
4698         transfers whose sizes are not multiples of, or less than, sizeof
4699         (PTRACE_XFER_TYPE).
4700
4701 2004-06-04  Jeff Johnston  <[email protected]>
4702
4703         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4704         as a new thread event.
4705         * thread-db.c (thread_get_info_callback): If the thread is a
4706         zombie, return TD_THR_ZOMBIE.
4707         (thread_from_lwp): If thread_get_info_callback returns
4708         TD_THR_ZOMBIE, check if the thread is still on the thread list
4709         and return a -1 ptid if not found.
4710         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4711         change the status to TARGET_WAITKIND_SPURIOUS.
4712
4713 2004-06-03  Corinna Vinschen  <[email protected]>
4714
4715         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4716         double values in little endian mode.
4717
4718 2004-06-02  Albert Chin-A-Young  <[email protected]>
4719
4720         Committed by Andrew Cagney.
4721         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4722         after last enum constant to avoid error from IBM C
4723         compiler.
4724
4725 2004-06-02  Jim Blandy  <[email protected]>
4726
4727         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4728         to 'message', and make it local to the lone block that uses it.
4729
4730         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4731
4732 2004-06-02  Paul N. Hilfinger  <[email protected]>
4733
4734         * ada-exp.y: Update copyright notice.
4735         Include block.h.
4736         
4737         Replace REGNAME, LAST, INTERNAL_VARIABLE with
4738         SPECIAL_VARIABLE and unify the treatment of these cases.
4739
4740         (write_attribute_call0): Remove.
4741         (write_attribute_call1): Remove.
4742         (write_attribute_calln): Remove.
4743         (save_qualifier): Add missing semicolon.
4744
4745         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
4746         temporarily disabled to allow compilation with FSF head version.
4747
4748         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
4749         use individual operators (OP_*) for all attributes.
4750         (exp syntax): Use write_int.
4751         Handle STRING literals with OP_STRING.
4752         (variable syntax): Add limit parameter to calls to 
4753         write_object_renaming.  
4754
4755         (temp_parse_space): New definition to hold entities that need
4756         only live until the next call to ada_parse.
4757         (string_to_operator): Rename fields of ada_opname_table entries.
4758
4759         (write_var_from_sym): Record block.
4760         (write_var_from_name): Minor reformatting.
4761         Make sure saved name is properly encoded in the case of multiple 
4762         matches, and set its language to Ada.
4763         Update comment.
4764         Modify to indicate unresolved name as symbol in the UNRESOLVED 
4765         namespace, allocated in temp_parse_space.
4766         (write_int): New function.
4767
4768         (write_object_renaming): Add max_depth parameter to limit
4769         chains of object renamings.
4770         Handle case where root of renaming expression is itself a renaming.
4771         Use temp_parse_space for temporary name buffer.
4772         Handle renamings to dereferenced pointers (___XEXA suffices).
4773         
4774         (ada_parse, yyerror, string_to_operator, 
4775         write_var_from_sym, write_var_from_name, write_attribute_call0, 
4776         write_attribute_call1, write_attribute_calln, 
4777         write_object_renaming): Protoize.
4778
4779         (_initialize_ada_exp): New function.
4780         
4781         * ada-lang.c: Update copyright notice.
4782         General terminology change to conform to GNAT compiler usage:
4783         mangle => encode, demangle => decode
4784         Include gdb_obstack.h.
4785         Include gdb_regex.h
4786         Include frame.h
4787         Include hashtab.h
4788         Include completer.h
4789         Include gdb_stat.h
4790         Include block.h
4791         Include infcall.h
4792         
4793         (ADA_RETAIN_DOTS): Make sure this is defined.
4794         (TRUNCATION_TOWARDS_ZERO): Define.
4795         (struct string_vector): Define.
4796         (unresolved_names): Remove definition.
4797         (xnew_string_vector): New function.
4798         (string_vector_append): New function.
4799         (extract_string): Make static.
4800         (ada_unqualified_name): New function.
4801         (add_angle_brackets): New function.
4802         (function_name_from_pc): New function.
4803         (place_on_stack): Rename to ensure_lval.
4804
4805         (ensure_lval): Renamed from place_on_stack.
4806         Make identity on lvals.
4807         Update comment.
4808         (is_nonfunction): New interface.
4809         Only symbols in LOC_CONST class can be enumerals.
4810         (fill_in_ada_prototype): Remove; now independent of language.
4811         (add_defn_to_vec): Add obstack and symtab arguments.
4812         Use obstack to hold collected definitions.
4813         (num_defns_collected): New function.
4814         (defns_collected): New function.
4815         (ada_resolve_subexp): Rename to resolve_subexp.
4816         (resolve_subexp): Renamed from ada_resolve_subexp.
4817         (ada_op_name): Return non-const result.
4818         (ada_decoded_op_name): Renamed from ada_op_name, now used for
4819         other purposes.
4820
4821         (to_fixed_array_type): Add declaration.
4822         (coerce_unspec_val_to_type): Remove offset parameter.
4823         (find_sal_from_funcs_and_line): New interface.
4824         (find_line_in_linetable): Ditto.
4825
4826         (all_sals_for_line): Rename to ada_sals_for_line and make
4827         global.
4828         Add new parameter. When set, do not ask the user to choose the 
4829         instance, but use the first one found instead.
4830         Use given line number in returned sals.
4831         Fix comment. 
4832         Skip the prologue if funfirstline is set.
4833         Correct for memory leak when 0 lines found.
4834
4835         (value_pos_atr): Use pos_atr.
4836         (pos_atr): New function.
4837         (standard_lookup): Add block parameter.
4838
4839         (makeTimeStart): Remove declaration and uses.
4840         (makeTimeStop): Remove declaration and uses.
4841
4842         (ada_completer_word_break_characters): Allow for VMS.
4843         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4844         (raise_sym_name): New constant.
4845         (raise_unhandled_sym_name): New constant.
4846         (raise_assert_sym_name): New constant.
4847         (process_raise_exception_name): New constant.
4848         (longest_exception_template): New constant.
4849         (warning_limit): New variable to limit warnings during expression
4850         evaluation.
4851         (warnings_issued): New variable to keep track of warnings issued.
4852         (known_runtime_file_name_patterns): New constant.
4853         (known_auxiliary_function_name_patterns): New constant.
4854         (symbol_list_obstack): New variable.
4855         
4856         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4857         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4858         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4859         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
4860         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
4861         ada_variant_discrim_name, field_alignment, dynamic_template_type,
4862         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
4863         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
4864         and strcmp. 
4865
4866         (ada_get_field_index): New function.
4867         (lim_warning): New function.
4868         (ada_translate_error_message): New function.
4869         (MAX_OF_SIZE): New function.
4870         (MIN_OF_SIZE): New function.
4871         (UMAX_OF_SIZE): New function.
4872         (UMIN_OF_SIZE): New function.
4873         (discrete_type_high_bound): New function.
4874         (discrete_type_low_bound): New function.
4875         (base_type): New function.
4876         (do_command): Remove.
4877         
4878         (ada_update_initial_language): Use language_ada, not language_unknown.
4879         (ada_encode): Renamed from ada_mangle.
4880         Obey ADA_RETAIN_DOTS.
4881         (ada_decode): Renamed from ada_demangle.
4882         Update coding conventions.
4883         (decoded_names_store): New hash table.
4884         (ada_decode_symbol): New function.
4885         (ada_la_decode): New function.
4886         
4887         (modify_general_field): Correct computations of offset and bit 
4888         position.
4889         (desc_base_type): Handle ref types, too.
4890         (ada_is_direct_array_type): New function.
4891
4892         (ada_is_simple_array): Rename to ada_is_simple_array_type.
4893         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4894         (ada_is_bogus_array_descriptor,ada_type_of_array,
4895         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4896         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
4897         ada_is_array_descriptor_type.
4898         
4899         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4900         (ada_is_packed_array_type): Handle pointers or 
4901         references to packed arrays as well.
4902         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4903         (decode_packed_array_type): Search for the packed array type 
4904         symbol in the currently selected block and associated 
4905         superblocks too.
4906         Use lookup_symbol again.
4907
4908         (decode_packed_array): Handle pointers and references.
4909         Update call to coerce_unspec_val_to_type.
4910         (decode_packed_array_type,value_subscript_packed): Limit warnings.
4911         (ada_value_primitive_packed_val): Improve comment.
4912         
4913         (ada_index_type): Substitute int type for "undefined".
4914         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4915         ada_array_langth, ada_is_string_type): Use renamed 
4916         ada_is_simple_array_type.
4917         (empty_array): New function.
4918
4919         (ada_resolve):  Rename to resolve.
4920         (resolve): Make static.
4921         Call renamed resolve_subexp.
4922         Update comment.
4923         (ada_resolve_subexp): Rename to resolve_subexp.
4924         (resolve_subexp): Update comment.
4925         Decomment disabled code.
4926         Add LOC_COMPUTED* cases.
4927         Modify to use temporary struct symbols (marked as being in 
4928         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
4929         OP_UNRESOLVED_VALUE.
4930         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
4931         Add OP_STRING case.
4932         Remove OP_ARRAY.
4933         Use SYMBOL_PRINT_NAME instead of ada_demangle.
4934         Use new ada_lookup_symbol_list interface.
4935         Use new ada_resolve_function interface.
4936         Remove OP_TYPE case.
4937
4938         (ada_args_match): Idiot proof against null actuals.
4939         Use intermediate variables to clarify.
4940         (ada_resolve_function): Update comment and interface.
4941         (mangled_ordered_before): Rename to encoded_ordered_before and
4942         update comment.
4943         (sort_choices): Update comment and interface.
4944         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4945         (user_select_syms): New interface.
4946         Use new sort_choices interface.
4947         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4948         (possible_user_operator_p): Idiot-proof against null values.
4949         (ada_simple_renamed_entity): Don't make cleanup; rely on 
4950         caller to free result string.
4951         Remove const from return type.
4952         (make_array_descriptor): Rename uses of place_on_stack to 
4953         ensure_lval.
4954         Make sure that arrays are on stack.
4955         
4956         (HASH_SIZE): Define.
4957         (struct cache_entry): Define.
4958         (cache_space): Define.
4959         (cache): Define.
4960         (clear_ada_sym_cache): New function.
4961         (find_entry): New function.
4962         (lookup_cached_symbol): New function.
4963         (defn_vector_size): Define.
4964         (cache_symbol): New function.
4965         (defn_symbols): Remove.
4966         
4967         (standard_lookup): Use lookup_symbol_in_language to get effect of
4968         C lookup.
4969         Cache results.
4970         
4971         (symbol_completion_match): New function.
4972         (symbol_completion_add): New function.
4973         (ada_make_symbol_completion_list): New function.
4974
4975         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
4976         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
4977         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
4978         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4979         
4980         (ada_lookup_simple_minsym): New function.
4981         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4982
4983         (add_symbols_from_enclosing_procs): New interface.
4984         Conditionalize more helpfully.
4985         Don't bother if program isn't running.
4986         Use new interface to get_frame_block.
4987         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4988         
4989         (remove_extra_symbols): New interface.
4990         (xget_renaming_scope): New function.
4991         (is_package_name): New function.
4992         (renaming_is_visible): New function.
4993         (remove_out_of_scope_renamings): New function.
4994
4995         (ada_lookup_symbol_list): New interface.
4996         Properly reinitialize the symbol list obstack.
4997         Don't call add_symbols_from_enclosing_procs if we start from a
4998         static or global block.
4999         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
5000         add_symbols_from_enclosing_procs.
5001         Add symtab data to cached entries.
5002         Handle symbols prefixed with
5003         "standard__" specially; strip prefix and don't look in local symbols.
5004         Do not include out of scope renaming symbols in list of 
5005         symbols returned.
5006         Add const to block parameter.
5007         Move check for non-local, non-global symbols earlier.  
5008         Remove timing stuff.
5009         (ada_lookup_symbol): New interface.
5010         Find symtab as well.
5011         (ada_lookup_symbol_nonlocal): New function.
5012
5013         (is_name_suffix): Enhance suffix detection to recognize
5014         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5015         (is_dot_digits_suffix): New function.
5016         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5017         
5018         (ada_add_block_symbols): New interface.  Use obstack to return results
5019         in a vector of struct ada_symbol_infos.  Add symtab argument.
5020         Use new interface to add_defn_to_vec.
5021         Remove calls to fill_in_ada_prototype.
5022         Use BLOCK_BUCKETS, BLOCK_BUCKET.
5023         
5024         (ada_finish_decode_line_1): Add const qualification to local to fix
5025         warning.
5026         Start looking in static block for functions to avoid attempts 
5027         to search frame chain for up-level variables.
5028         Adapt to new ada_sals_for_line interface.
5029         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5030         Handle quoting of the function name inside the spec string.
5031         Skip prologue when funfirstline is set and update the 
5032         function documentation to that effect.
5033
5034         (debug_print_lines, debug_print_block, debug_print_blocks, 
5035         debug_print_symtab): Remove.
5036
5037         (ada_main_name): New function.  
5038         (ada_exception_breakpoint_type): New function.
5039         (is_known_support_routine): New function.
5040         (ada_find_printable_frame): Renamed from find_printable_frame and made
5041         global.
5042         Remove level parameter.
5043         Use new interface to select_frame.
5044
5045         (begin_command): Remove.
5046         (ada_adjust_exception_stop): New function.
5047         (ada_print_exception_stop): New function.
5048         (exception_name_from_cond): New function.
5049         (ada_report_exception_break): Replace disabled code with 
5050         conditionalization on GNAT_GDB.
5051         Get the exception name from the condition string.
5052         Remove and move functionality into new functions 
5053         ada_print_exception_breakpoint_task and 
5054         ada_print_exception_breakpoint_nontask.
5055         (error_breakpoint_runtime_sym_not_found): New function.
5056         (is_runtime_sym_defined): New function.
5057         (ada_breakpoint_rewrite): Uncomment suppressed code.
5058         Use symbolic error-message and runtime-symbol names.
5059         Surround runtime symbol names in quotes.
5060         Allow non-specific breakpoints on exceptions and assertions before
5061         program starts.
5062         
5063         (ada_is_tagged_type): Add parameter.
5064         (ada_is_tag_type): New function.
5065         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5066         (ada_variant_discrim_type): Ditto.
5067         (value_tag_from_contents_and_address): New function.
5068         (type_from_tag): New function.
5069         (struct tag_args): New structure used to communicate with
5070         ada_tag_name_1.
5071         (ada_tag_name_1): New function.
5072         (ada_tag_name): New function.
5073
5074         (ada_scan_number): Update comment.
5075         (find_struct_field): New function.
5076         (ada_search_struct_field): Make static.
5077         (ada_value_struct_elt): New version that returns references when
5078         given pointers or references to structs.
5079         (ada_lookup_struct_elt_type): Add 'refok' parameter.
5080         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5081         interface.
5082         (ada_value_ind): Use new ada_to_fixed_value interface.
5083         (ada_coerce_ref): Ditto.
5084         (field_offset): Remove.
5085
5086         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5087         (ada_find_renaming_symbol): New function.
5088         (ada_prefer_type): Prefer named types over unnamed ones.
5089         (variant_field_index): New function.
5090         (contains_variant_part): Removed: subsumed by variant_field_index.
5091         (ada_template_to_fixed_record_type): New function, mostly from
5092         template_to_fixed_record_type.
5093         (template_to_fixed_record_type): 
5094         Do not scan the type fields beyond the last one; prevents a 
5095         potential SEGV.
5096         Handle case where variant field is listed BEFORE discriminant it 
5097         depends on.
5098         Fix calculation of record length when bit length is 
5099         not evenly divisible by char length.
5100         Move code to ada_template_to_fixed_record_type and call it.
5101
5102         (template_to_static_fixed_type): Revise comment.  
5103         Modify to work on ordinary record types as well as templates, 
5104         so as to handle fields that use ___XVE or ___XVU encodings. 
5105         (to_record_with_fixed_variant_part): Fill out comment.
5106         Initialize C++ stuff in right type.
5107         Allow case where DVAL is null.
5108         Handle case where variant field is not last.
5109         Fix typo concerning record length.
5110         (to_fixed_record_type): Decomment disabled code.
5111         (to_fixed_record_type): Use variant_field_index instead of 
5112         contains_variant_part.
5113         (to_fixed_variant_branch_type): Ditto.
5114         (to_fixed_array_type): Decomment disabled code.
5115         (ada_to_fixed_type): Convert tagged types to the specific type.
5116         Deactivate the size-check for array types in order to avoid 
5117         some false size alarms.
5118         (to_static_fixed_type): Decomment disabled code.
5119         Modify to call template_to_static_fixed_type
5120         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5121         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5122         Remove valaddr argument, as it is never really used.
5123         (ada_to_fixed_value): Change interface to act on single struct value*
5124         operand.
5125         (adjust_pc_past_prologue): New function.
5126         (ada_attribute_name): Modify to take enum exp_opcode argument.
5127                 
5128         (ada_enum_name): Recognize new homonym-distinguishing convention.
5129         Adjust local variable's type to remove compiler warning.
5130         Fix a small problem in the part that unqualifies the enumeration name.
5131         (ada_value_binop): New function.
5132         (ada_value_equal): New function.
5133
5134         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5135         Don't give error message when not doing normal evaluation 
5136         and a tagged type doesn't seem to contain a structure member.
5137         Give error message for packed arrays.
5138         For indexing arrays, handle pointers to packed arrays correctly.
5139         Handle case of 'first and 'last attributes of bare integral type 
5140         without encoded subtype info.  
5141         Remove some unnecessary casts.
5142         Fix uninitialized value of type in computing 'first, 'last, or 'length
5143         of array object.  
5144         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5145         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5146         calls.
5147         Attributes are now exp_opcode values.
5148         Correct treatment of 'modulus.
5149         Better error message for taking 'length of wrong kind of type; 
5150         improve comment.
5151         Change EVAL_NORMAL to noside for consistency.
5152         Use ada_value_binop for DIV, MOD, REM.
5153         Make special case out of array of length 0, since an argument 
5154         of 0 upsets some platforms' malloc.
5155         Use OP_STRING instead of OP_ARRAY.
5156         For slice, add check that we have an array type before extracting 
5157         a slice out of it.  Avoids a SEGV.
5158         When evaluating an array slice, if the array type is a reference to 
5159         an aligner type, then replace the aligner type by the actual type.
5160         Decomment disabled code.
5161         Remove some dead code.
5162         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
5163         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5164         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
5165         and UNOP_MBR to UNOP_IN_RANGE.
5166         If an array type has a parallel ___XVE type, then use it.
5167         Turn arrays into pointers for lvalue arrays.
5168         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5169         bounds error and handle 0-length slices.
5170         Use lim_warning.
5171         When selecting fields, apply ada_to_fixed_value (because the fields 
5172         might have ___XVU or ___XVE encodings even if not dynamic.)
5173         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5174         (ada_is_system_address_type): New function.
5175
5176         (get_var_value): Use new interface to ada_lookup_symbol_list.
5177         (get_int_var_value): New interface.
5178         (to_fixed_range_type): Allow unknown bound, with warning.
5179         (ada_is_modular_type): Decomment disabled code.
5180         (ADA_OPERATORS): New definition.
5181         (ada_operator_length): New function.
5182         (ada_expr_op_name): New function.
5183         (ada_forward_operator_length): New function.
5184         (ada_dump_subexp_body): New function.
5185         (ada_print_subexp): New function.
5186         (ada_exp_descriptor): New constant.
5187         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
5188         (ada_language_defn): Add ada_exp_descriptor entry.
5189         Change ada_parse => parse.
5190         Add post-parser entry.
5191         Use ada-specific non-local symbol lookup.
5192         Don't use C-style arrays. 
5193         String lower-bound is 1.
5194         Decomment disabled code.        
5195         (parse): New function.
5196         New fields ada_translate_error_message, ada_lookup_symbol, 
5197         ada_lookup_minimal_symbol.
5198         
5199         * ada-lang.h: Update copyright dates.
5200         Replace the mangle/demangle terminology throughout by the
5201         more appropriate encode/decode one. 
5202         Include breakpoint.h.
5203         Forward declare struct partial_symbol, struct block.
5204         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5205         (EXTRACT_ADDRESS): Remove.
5206         (EXTRACT_INT): Remove.
5207         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5208         (MAX_ENCLOSING_FRAME_LEVELS): Define.
5209         (MAX_RENAMING_CHAIN_LENGTH): Define.
5210         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5211
5212         (enum task_states): Remove.
5213         ada_task_states: Remove.
5214         (fat_string): Remove.
5215         (struct entry_call): Remove.
5216         (struct task_fields): Remove.
5217         (struct task_entry): Remove.
5218
5219         (struct ada_symbol_info): Define.
5220         (enum ada_attribute): Remove.
5221         (enum ada_operator): Define.
5222         
5223         (ada_get_field_index): Declare.
5224         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5225         (ada_is_simple_array): Rename to ada_is_simple_array_type.
5226         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5227         (ada_lookup_symbol_list): New interface.
5228         (ada_decode_symbol): Declare.
5229         (ada_decode): Declare.
5230         (ada_lookup_symbol): New interface.
5231         (ada_update_initial_language): Declare.
5232         (ada_lookup_simple_minsym): Declare.
5233         (user_select_syms): New interface.
5234         (ada_sals_for_line): Declare.
5235         (ada_is_tagged_type): New interface.
5236         (ada_tag_name): Declare.
5237         (ada_lookup_struct_elt_type): Remove declaration.
5238         (ada_search_struct_field): Remove declaration.
5239         (ada_attribute_name): New interface.
5240         (ada_is_system_address_type): Declare.
5241         (ada_to_fixed_value): Remove declaration.
5242         (ada_template_to_fixed_record_type_1): Declare.
5243         (get_int_var_value): New interface.
5244         (ada_find_any_symbol): Declare.
5245         (ada_find_renaming_symbol): Declare.
5246         (ada_mangle): Rename to ada_encode.
5247         (ada_simple_renamed_entity): Remove const.
5248         (ada_main_name): Declare.
5249         (get_current_task): Rename to ada_get_current_task.
5250         (get_entry_number): Remove declaration.
5251         (ada_report_exception_break): Remove declaration.
5252         (ada_print_exception_breakpoint_nontask): Declare.
5253         (ada_print_exception_breakpoint_task): Declare.
5254         (ada_find_printable_frame): Declare.
5255
5256         * ada-lex.l: Update copyright notices.
5257         Use xmalloc and xfree instead of malloc and free.
5258         Use new interface to name_lookup.
5259         Use new interface to 
5260         ada_mangle=>ada_encode.
5261         Redo handling of '$...' variable to parallel current treatment 
5262         in c-exp.y.  
5263         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5264         digit_to_int, strtoulst, processInt, processReal, processId, 
5265         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5266         yywrap): Protoize.
5267         
5268         (processInt): Use cast to remove harmless warning.
5269         (processReal): Modify to get rid of compiler warning on scan formats.
5270
5271         (processId): Replace xmalloc with obstack_alloc for name and remove
5272         call to ada_name_string_cleanup.
5273         Remove obsolete disabled code.
5274         (name_lookup): Ditto. 
5275         New interface.
5276         Use obsavestring on temp_parse_space instead of savestring 
5277         on name, and remove call to ada_name_string_cleanup.  
5278         Free string returned from ada_simple_renamed_entity.
5279         Use new interface to ada_lookup_symbol_list.
5280         Decomment disabled code.
5281         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
5282         not types.
5283         When a type name lookup succeeds as a result of 
5284         lookup_primitive_typename, check for regular type entry that has not 
5285         yet been read in.
5286         Limit length of chain of renamed symbols we are willing to follow.  
5287         Do not break names beginning with "standard__" into segments.  
5288         (block_lookup): Use new interface to ada_lookup_symbol_list.
5289         
5290         * ada-typeprint.c: Update copyright notice.
5291         (demangled_type_name): Rename to decoded_type_name.
5292         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5293         (print_range_bound):  Correct handling of negative
5294         bounds that make the index type looked unsigned under STABS.  
5295         (print_dynamic_range_bound): Use new interface to get_int_var_value.
5296         (print_range_type_named):  Use the builtin int type if no type 
5297         corresponding to the given type name could be found.
5298         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5299         Add some bullet-proofing.
5300         (print_variant_clauses): Allow for variant branches with ___XVU 
5301         encodings that are not dynamic fields.  
5302         Use new interface to ada_is_tagged_type.
5303         (print_record_type): Allow for fields with ___XVE encodings that 
5304         are not dynamic fields. 
5305         Use new interface to ada_is_tagged_type.
5306         (ada_print_type): ada_is_array_descriptor => 
5307         ada_is_array_descriptor_type.
5308
5309         * ada-valprint.c: Update copyright notice.
5310         Include gdb_string.h
5311         Include infcall.h
5312         (ui_memcpy): New function.
5313         (ada_print_floating): New function.
5314         (ada_print_str): Order arguments correctly.
5315         Correct handling of empty arrays and arrays of 0-length items. 
5316         ada_is_array_descriptor => ada_is_array_descriptor_type 
5317         Print values of type System.Address in hexadecimal format.
5318         Use ada_print_floating to print floating-point numbers in Ada format.
5319         Print class tag values with type names.  
5320         No longer print the address of reference values. Avoids 
5321         a potential confusion.  
5322         (ada_value_print): Stop printing the object type for reference
5323         values, but preserve that behavior for access types. Avoids
5324         a potential confusion.
5325         Simplify one conditional expression, as the first part is now
5326         necessarily true.
5327         ada_is_array_descriptor => ada_is_array_descriptor_type 
5328         Add check for arrays for null records, and print them by hand.
5329         
5330 2004-06-01  Jim Blandy  <[email protected]>
5331
5332         * ppc-tdep.h: Delete unused 'regoff' member.
5333         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5334
5335 2004-06-01  Michael Chastain  <[email protected]>
5336
5337         Fix PR symtab/1661.
5338         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5339         (hpread_read_struct_type): Likewise.
5340
5341 2004-06-01  Andrew Cagney  <[email protected]>
5342
5343         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5344         instead of xasprintf.
5345         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
5346         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
5347         (mi_cmd_data_list_register_names) 
5348         (mi_cmd_data_list_changed_registers) 
5349         (mi_cmd_data_list_register_values) 
5350         (get_register, mi_cmd_data_write_register_values) 
5351         (mi_cmd_data_write_register_values) 
5352         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
5353         (mi_cmd_target_download, mi_cmd_target_select) 
5354         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
5355         (mi_execute_cli_command, mi_execute_async_cli_command) 
5356         (mi_execute_async_cli_command): Ditto.
5357         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5358         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5359
5360         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5361         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5362         error_last_message instead of mi_error_last_message.
5363         * mi/mi-main.c (mi_error_last_message): Delete function.
5364
5365         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5366         "invalid number of columns" error.  Delete redundant "out of
5367         memory" check.
5368
5369 2004-05-31  Mark Kettenis  <[email protected]>
5370
5371         * i386bsd-nat.c: Don't include <sys/procfs.h>.
5372         (gregset_t, fpregset_t): Remove typedefs.
5373         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5374         (REG_OFFSET): Rename argument.
5375         (i386bsd_r_reg_offset): Rename from reg_offset.
5376         (REG_ADDR): Remove macro.
5377         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5378         functions.
5379         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5380         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5381         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
5382         instead of supply_gregset.
5383         (store_inferior_registers): Use `struct reg' and `struct fpreg'
5384         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
5385         instead of fill_gregset.
5386         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5387
5388         * i386bsd-nat.c: Don't include "gregset.h".
5389         (supply_gregset, fill_gregset): Make static.
5390         (supply_fpregset, fill_fpregset): Remove.
5391         * Makefile.in (i386bsd-nat.o): Update dependencies.
5392
5393 2004-05-30  Mark Kettenis  <[email protected]>
5394
5395         * fbsd-proc.c: Include "regcache.h", "regset.h" and
5396         "gdb_assert.h".  Con't include "gregset.h".
5397         (fbsd_make_corefile_notes): Use regset-based core file support
5398         instead off fill_gregset and fill_fpregset.
5399         * Makefile.in (fbsd-proc.o): Update dependencies.
5400
5401         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5402         instructions.
5403         (m88k_frame_prev_register): Simplify code a bit.
5404
5405         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5406         (amd64_collect_fpregset): New function.
5407         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5408
5409         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5410
5411         * i386-tdep.c (i386_supply_gregset): Adjust comment.
5412         (i386_collect_gregset): New function.
5413         (i386_supply_fpregset): Adjust comment.
5414         (i386_collect_fpregset): New function.
5415         (i386_regset_from_core_section): Use i386_collect_gregset and
5416         i386_collect_fpregset.
5417
5418         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5419         handle VALUEP being null.
5420
5421         * regset.h (collect_regset_ftype): Unconstify fourth argument.
5422
5423 2004-05-29  Mark Kettenis  <[email protected]>
5424
5425         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
5426
5427         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5428         assembler in OpenBSD 3.5-current.
5429         (amd64obsd_sigcontext_addr): Likewise.
5430
5431 2004-05-28  Jim Blandy  <[email protected]>
5432
5433         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5434         register set, so our regcache isn't declared "legacy" and our E500
5435         pseudoregister read and write functions aren't ignored.
5436         (rs6000_register_byte, rs6000_register_raw_size,
5437         rs6000_register_virtual_type, rs6000_register_convertible,
5438         rs6000_register_convert_to_virtual,
5439         rs6000_register_convert_to_raw): Deleted.
5440         (rs6000_register_type, rs6000_convert_register_p,
5441         rs6000_register_to_value, rs6000_value_to_register): New
5442         functions.
5443         (rs6000_gdbarch_init): Don't register
5444         gdbarch_deprecated_register_size,
5445         gdbarch_deprecated_register_bytes,
5446         gdbarch_deprecated_register_byte,
5447         gdbarch_deprecated_register_raw_size,
5448         gdbarch_deprecated_register_virtual_type,
5449         gdbarch_deprecated_register_convertible,
5450         gdbarch_deprecated_register_convert_to_virtual, or
5451         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
5452         register gdbarch_register_type, gdbarch_convert_register_p,
5453         gdbarch_register_to_value, and gdbarch_value_to_register methods.
5454
5455 2004-05-26  Jim Blandy  <[email protected]>
5456
5457         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5458         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5459         functions, updated to match the register numberings used in GCC.
5460         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5461         rs6000_dwarf2_reg_to_regnum as register number conversions
5462         functions for STABS and Dwarf2.
5463
5464 2004-05-26  Randolph Chung  <[email protected]>
5465
5466         * infttrace.h (target_waitkind): Forward declare type instead of pulling
5467         in header file.
5468
5469 2004-05-25  Joel Brobecker  <[email protected]>
5470
5471         * NEWS: Document new "start" command.
5472
5473 2004-05-25  Randolph Chung  <[email protected]>
5474
5475         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5476         hppa-linux.
5477
5478 2004-05-25  Randolph Chung  <[email protected]>
5479
5480         * hppa-hpux-tdep.c (offsetof): Define.
5481         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5482         (hppa32_hpux_frame_base_before_sigtramp)
5483         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5484         (hppa64_hpux_frame_saved_pc_in_sigtramp)
5485         (hppa64_hpux_frame_base_before_sigtramp)
5486         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
5487         functions.
5488         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5489         (hppa_hpux_sigtramp_frame_unwind_cache)
5490         (hppa_hpux_sigtramp_frame_this_id)
5491         (hppa_hpux_sigtramp_frame_prev_register)
5492         (hppa_hpux_sigtramp_frame_unwind)
5493         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5494         (hppa_hpux_init_abi): Register sigtramp unwinder.
5495         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5496
5497 2004-05-25  Randolph Chung  <[email protected]>
5498
5499         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5500         and multiple stack unwinds.
5501         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5502
5503 2004-05-25  Andrew Cagney  <[email protected]>
5504
5505         * symfile.h (symbol_file_add_from_memory): Delete declaration.
5506         * symfile-mem.h: Delete file.
5507         * symfile-mem.c: Do not include "symfile-mem.h".
5508         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5509         "struct bfd_section".  When an error do not bother returning NULL.
5510         (add_symbol_file_from_memory_command): Use "struct bfd" and
5511         "struct bfd_section".
5512         * Makefile.in (symfile_mem_h): Delete.
5513         (symfile-mem.o): Update dependencies.
5514
5515 2004-05-25  Nick Roberts  <[email protected]>
5516
5517         * gdb-mi.el: New file.
5518
5519 2004-05-25  Andrew Cagney  <[email protected]>
5520
5521         * inftarg.c: Include "observer.h".
5522         (child_attach, child_create_inferior): Notify inferior_created.
5523         * corelow.c: Include "observer.h".
5524         (core_open): Notify inferior_created.
5525         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5526
5527 2004-05-25  Andrew Cagney  <[email protected]>
5528
5529         * target.h (struct target_ops): Add from_tty to
5530         to_create_inferior.
5531         (target_create_inferior, find_default_create_inferior): Update.
5532         * infcmd.c (run_command): Update.
5533         * wince.c (child_create_inferior): Update.
5534         * win32-nat.c (child_create_inferior): Update.
5535         * uw-thread.c (uw_thread_create_inferior): Update.
5536         * thread-db.c (thread_db_create_inferior): Update.
5537         * target.c (debug_to_create_inferior) 
5538         (find_default_create_inferior): Update.
5539         (maybe_kill_then_create_inferior): Update.
5540         * sol-thread.c (sol_thread_create_inferior): Update.
5541         * remote.c (extended_remote_async_create_inferior) 
5542         (extended_remote_create_inferior): Update.
5543         * remote-vx.c (vx_create_inferior): Update.
5544         * remote-st.c (st2000_create_inferior): Update.
5545         * remote-sim.c (gdbsim_create_inferior): Update.
5546         * remote-sds.c (sds_create_inferior): Update.
5547         * remote-rdp.c (remote_rdp_create_inferior): Update.
5548         * remote-rdi.c (arm_rdi_create_inferior): Update.
5549         * remote-m32r-sdi.c (m32r_create_inferior): Update.
5550         * remote-e7000.c (e7000_create_inferior): Update.
5551         * procfs.c (procfs_create_inferior): Update.
5552         * ocd.c (ocd_create_inferior): Update.
5553         * ocd.h (ocd_create_inferior): Update.
5554         * nto-procfs.c (procfs_create_inferior): Update.
5555         * monitor.c (monitor_create_inferior): Update.
5556         * lin-lwp.c (lin_lwp_create_inferior): Update.
5557         * inftarg.c (child_create_inferior): Update.
5558         * hpux-thread.c (hpux_thread_create_inferior): Update.
5559         * gnu-nat.c (gnu_create_inferior): Update.
5560
5561 2004-05-25  Andrew Cagney  <[email protected]>
5562
5563         * MAINTAINERS: Update e-mail address.
5564
5565 2004-05-24  Randolph Chung  <[email protected]>
5566
5567         * thread.c (info_threads_command, thread_apply_all_command)
5568         (thread_apply_command, thread_command, do_captured_thread_select):
5569         Remove HPUXHPPA-specific code.
5570
5571 2004-05-24  Randolph Chung  <[email protected]>
5572
5573         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5574         unused symbols.
5575         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5576         references.
5577
5578 2004-05-24  Joel Brobecker  <[email protected]>
5579
5580         * infcmd.c (kill_if_already_running): New function, extracted
5581         from run_command().
5582         (run_command): Replace extracted code by call to
5583         kill_if_already_running().
5584         (start_command): New function.
5585         (_initialize_infcmd): Add "start" command.
5586
5587 2004-05-24  Mark Kettenis  <[email protected]>
5588
5589         Add OpenBSD/m88k support.
5590         * NEWS (New native configurations): Mention OpenBSD/m88k.
5591         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5592         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5593         * Makefile.in (m88k_tdep_h): New variable.
5594         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5595         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5596         * configure.host: Add m88*-*-openbsd*.
5597         * configure.tgt: Add m88*-*-openbsd*.
5598
5599 2004-05-24  Jim Blandy  <[email protected]>
5600
5601         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5602         to approve changes.
5603
5604 2004-05-24  Kevin Buettner  <[email protected]>
5605
5606         * symtab.c (fixup_section): Search section table when lookup by
5607         name fails.
5608
5609 2004-05-24  Randolph Chung  <[email protected]>
5610
5611         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
5612         be "small_struct".
5613
5614 2004-05-24  Mark Kettenis  <[email protected]>
5615
5616         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5617         register number in regcache_raw_collect call.
5618         (m68kbsd_collect_fpregset): Likewise.
5619         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5620
5621         * regset.h (struct regset): Add back `regset' member.
5622
5623 2004-05-23  Mark Kettenis  <[email protected]>
5624
5625         * configure.in: Check for td_pcb in `struct thread'.
5626         * configure, config.in: Regenerated.
5627
5628         * dpx2-nat.c: Remove file.
5629         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5630         (dpx2-nat.o): Remove dependencies.
5631
5632         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5633         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5634         (amd64obsd_supply_pcb): New function.
5635         (_initialize_amd64obsd_nat): Enable libkvm interface.
5636         * Makefile.in (amd64obsd-nat.o): Update dependencies.
5637         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5638         (LOADLIBES): New variable.
5639
5640         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5641         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5642         (sparc32nbsd_supply_pcb): New function.
5643         (_initialize_sparcnbsd_nat): Enable libkvm interface.
5644         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5645         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5646         (LOADLIBES): New variable.
5647
5648 2004-05-22  Mark Kettenis  <[email protected]>
5649
5650         * bsd-kvm.c, bsd-kvm.h: New files.
5651         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5652         "bsd-kvm.h".
5653         (i386fbsd_supply_pcb): New function.
5654         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5655         (i386fbsd-nat.o): Update dependencies.
5656         (bsd_kvm_h): New variable.
5657         (bsd-kvm.o): New dependency.
5658         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5659         (LOADLIBES): New variable.
5660
5661         * regset.c: Tweak comment.
5662         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
5663         macro.
5664         * regset.h: Update copyright year.
5665         (struct regset): Remove `descr' member, add `gdbarch' member.
5666         (regset_alloc): Adjust prototype and comment.
5667         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5668         (i386_supply_fpregset): Likewise.
5669         (i386_regset_from_core_section): Update call to regset_alloc.
5670         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5671         REGSET->arch.
5672         (i386obsd_aout_regset_from_core_section): Update call to
5673         regset_alloc.
5674         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5675         REGSET->arch.
5676         (i386nbsd_aout_regset_from_core_section): Update call to
5677         regset_alloc.
5678         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5679         REGSET->arch.
5680         (amd64_regset_from_core_section): Update call to regset_alloc.
5681         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5682         REGSET->arch.
5683         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5684         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5685         &sparc32nbsd_gregset in sparc32_supply_gregset call.
5686         (sparc32nbsd_init_abi): Update call to regset_alloc.
5687         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5688         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5689         (sparc64obsd_init_abi): Update call to regset_alloc.
5690         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5691         &sparc64nbsd_gregset in sparc64_supply_gregset call.
5692         (sparc64nbsd_init_abi): Update call to regset_alloc.
5693         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5694         &sparc64fbsd_gregset in sparc64_supply_gregset call.
5695         (sparc64fbsd_init_abi): Update call to regset_alloc.
5696
5697 2004-05-22  Jim Blandy  <[email protected]>
5698
5699         * ppc-tdep.h (spe_register_p): New declaration.
5700         (struct gdbarch_tdep): New members: ppc_acc_regnum and
5701         ppc_spefscr_regnum.
5702         * rs6000-tdep.c (spe_register_p): New function.
5703         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5704         spefscr.
5705         (rs6000_gdbarch_init): Initialize the new members of the tdep
5706         structure.
5707
5708 2004-05-21  Jim Blandy  <[email protected]>
5709
5710         * ppc-linux-nat.c (fetch_register): Move code back to be next
5711         to the comment that describes it.  (Moved code, instead of
5712         comment, for symmetry with store_register.)
5713
5714         Allocate regset structures in the gdbarch's obstack, not using
5715         xmalloc.
5716         * regset.c (regset_alloc): Renamed from regset_xmalloc.
5717         Add 'arch' argument.  Allocate the regset on arch's obstack, not
5718         using xmalloc.
5719         * regset.h (regset_alloc): Update declaration.
5720         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5721         gdbarch argument.
5722         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5723         * i386-tdep.c (i386_regset_from_core_section): Same.
5724         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5725         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5726         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5727         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5728         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5729         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5730
5731 2004-05-21  Joel Brobecker  <[email protected]>
5732
5733         * config/djgpp/fnchange.lst: Undo previous change, was useless.
5734
5735 2004-05-21  Jim Blandy  <[email protected]>
5736
5737         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5738         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
5739
5740 2004-05-20  Jim Blandy  <[email protected]>
5741
5742         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5743
5744 2004-05-20  Mark Kettenis  <[email protected]>
5745
5746         * regset.h: Make prototype const-correct.
5747         * regset.c (regset_xmalloc): Make const-correct.
5748
5749 2004-05-20  Paul N. Hilfinger  <[email protected]>
5750
5751         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5752         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5753         (symbol_search_name): Declare.
5754         
5755         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5756         (iter_name_next_hashed): Ditto.
5757         (iter_name_next_linear): Ditto.
5758         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5759
5760         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
5761         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5762         (symbol_search_name): New function.
5763         
5764         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5765         
5766         * minsyms.c (build_minimal_symbol_hash_tables): Change
5767         test for adding to demangled hash table to check for difference
5768         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5769         
5770 2004-05-19  Jim Blandy  <[email protected]>
5771
5772         Use a constructor function to create regset structures.
5773         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5774         (struct regset): Use supply_regset_ftype.  Add new
5775         'collect_regset' member.
5776         (regset_xmalloc): New declaration.
5777         * regset.c: New file.
5778         * am64-tdep.c (amd64_regset_from_core_section): Use
5779         regset_xmalloc to construct regset structures.
5780         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5781         * i386-tdep.c (i386_regset_from_core_section): Same.
5782         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5783         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5784         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5785         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5786         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5787         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5788         * Makefile.in (COMMON_OBS): Add regset.o.
5789         (regset.o): New rule.
5790
5791 2004-05-19  Joel Brobecker  <[email protected]>
5792
5793         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5794         and pthread_cond_wait.c.
5795
5796 2004-05-18  Jim Blandy  <[email protected]>
5797
5798         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5799         before the mach-specific switch, and then let the individual cases
5800         override the defaults, rather than leaving them uninitialized
5801         until the switch and then setting them in each case.
5802
5803 2004-05-18  Randolph Chung  <[email protected]>
5804
5805         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5806         millicode functions.
5807
5808 2004-05-18  Randolph Chung  <[email protected]>
5809
5810         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5811         references to dld_flags_buffer consistent.
5812
5813 2004-05-18  Randolph Chung  <[email protected]>
5814
5815         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5816         it for unwinding the stack.
5817
5818 2004-05-18  Randolph Chung  <[email protected]>
5819
5820         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5821         Undefine these so we can overide them using gdbarch.
5822
5823 2004-05-18  Randolph Chung <[email protected]>
5824
5825         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5826         handling for 64-bit HPUX (elf).
5827
5828 2004-05-18  Daniel Jacobowitz  <[email protected]>
5829
5830         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5831         constants.
5832         * amd64-tdep.c (amd64_skip_prologue): Likewise.
5833         * ia64-tdep.c (examine_prologue): Likewise.
5834         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5835         * v850-tdep.c (v850_fix_call_dummy): Likewise.
5836
5837 2004-05-18  Mark Kettenis  <[email protected]>
5838
5839         * vax-tdep.c (vax_return_value): Implement
5840         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5841
5842 2004-05-17  Mark Kettenis  <[email protected]>
5843
5844         * vax-tdep.c (vax_return_value): Fix typo.
5845
5846 2004-05-17  Andrew Cagney  <[email protected]>
5847
5848         * MAINTAINERS: Mark Salter was also responsible for
5849         testsuite/config/
5850
5851         * NEWS: Mention signal fixes.
5852
5853 2004-05-17  Randolph Chung  <[email protected]>
5854
5855         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5856         check to see if we are unwinding an export stub.  Export stubs clobber
5857         the %rp in the call path and stores the original rp in a stack slot.
5858
5859 2004-05-17  Jim Blandy  <[email protected]>
5860
5861         * MAINTAINERS: Update address for J.T. Conklin.
5862
5863 2004-05-17  Randolph Chung  <[email protected]>
5864
5865         * hppa-tdep.c: Remove superfluous #include's.
5866         * Makefile.in (hppa-tdep.o): Update dependencies.
5867
5868 2004-05-17  Randolph Chung  <[email protected]>
5869
5870         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5871         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5872         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5873         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5874         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5875         Remove static function declarations.
5876
5877 2004-05-17  Mark Kettenis  <[email protected]>
5878
5879         * alphabsd-nat.c: Update copyright year.
5880         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5881
5882         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5883         and M68K_A2_REGNUM.
5884
5885         * m68k-tdep.c (m68k_svr4_return_value): Implement
5886         RETURN_VALUE_ABI_RETURNS_ADDRESS.
5887
5888 2004-05-16  Mark Kettenis  <[email protected]>
5889
5890         * sol-thread.c Update copyright year.  Fix various coding
5891         standards violations.  Tweak a few comments.
5892         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5893         Delete prototypes.
5894
5895 2004-05-15  Randolph Chung  <[email protected]>
5896
5897         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5898         as pointer instead of array reference since HPUX compiler does
5899         not accept unsized array arguments.
5900         * somsolib.c (dld_flags_buffer): Use constant array size.
5901
5902 2004-05-15  Mark Kettenis  <[email protected]>
5903
5904         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5905         offset with decimal offset.
5906         (amd64obsd_sigcontext_addr): Return correct address for entire
5907         signal trampoline.
5908
5909         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5910         instead of get_frame_base.
5911
5912         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5913         (fill_gregset): Use regcache_raw_collect.
5914
5915         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5916         ppcobsd-tdep.c.
5917
5918         * config/sparc/tm-nbsd64.h: Remove file.
5919         * config/tm-sunos.h: Remove file.
5920
5921 2004-05-15  Joel Brobecker  <[email protected]>
5922
5923         * rs6000-tdep.c (store_param_on_stack_p): New function,
5924         an improved version of some code extracted from skip_prologue().
5925         (skip_prologue): Use store_param_on_stack_p() to detect
5926         instructions saving a parameter on the stack. Detect when r0
5927         is used to save a parameter.
5928         Do not mark "li rx, SIMM" instructions as part of the prologue,
5929         unless the following instruction is also part of the prologue.
5930
5931 2004-05-14  Andrew Cagney  <[email protected]>
5932
5933         * infrun.c (handle_inferior_event): Simplify
5934         STEP_OVER_UNDEBUGGABLE.
5935
5936         * infrun.c (handle_step_into_function): Delete function.
5937         (handle_inferior_event): Inline calls to
5938         handle_step_into_function.
5939
5940 2004-05-14  Jerome Guitton  <[email protected]>
5941
5942         * rs6000-nat.c: Fix a comment.
5943
5944 2004-05-12  David Anderson <[email protected]>
5945
5946         Committed by Jim Blandy <[email protected]>:
5947         * regcache.c (struct regcache_descr): fix comment spelling.
5948
5949 2004-05-13  J. Brobecker  <[email protected]>
5950
5951         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5952         Fixes a link link failure.
5953
5954 2004-05-13  J. Brobecker  <[email protected]>
5955
5956         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5957         error that was causing the build to fail.
5958
5959 2004-05-13  J. Brobecker  <[email protected]>
5960
5961         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5962         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5963
5964 2004-05-13  Andrew Cagney  <[email protected]>
5965
5966         * infrun.c (handle_inferior_event): Check for
5967         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5968         calls.  Update comments.
5969
5970 2004-05-13  Jim Blandy  <[email protected]>
5971
5972         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5973         (fetch_regs_user_thread, fetch_regs_kernel_thread)
5974         (store_regs_user_thread, store_regs_kernel_thread): Use
5975         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5976         * ppc-linux-nat.c (fill_gregset): Same.
5977         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
5978         (ppc_linux_sigtramp_cache): Same.
5979         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
5980         (ppcnbsd_sigtramp_cache_init): Same.
5981         * rs6000-nat.c (fetch_core_registers): Same.
5982         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
5983         (rs6000_frame_cache): Same.
5984
5985         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5986         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5987         of assuming that the gprs are numbered starting with zero.
5988         * ppc-linux-nat.c (fill_gregset): Same.
5989         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5990         * ppcnbsd-nat.c (getregs_supplies): Same.
5991         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5992         * rs6000-nat.c (fetch_core_registers): Same.
5993         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5994
5995 2004-05-07  Michael Snyder  <[email protected]>
5996
5997         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5998         LOC_COMPUTED_ARG, and LOC_INDIRECT.
5999
6000 2004-05-13  Andrew Cagney  <[email protected]>
6001
6002         * infrun.c (handle_inferior_event): Use frame_unwind_id.
6003
6004 2004-05-13  Bryce McKinlay  <[email protected]>
6005
6006         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6007         base_address for shared libraries.
6008
6009 2004-05-13  Bryce McKinlay  <[email protected]>
6010
6011         * MAINTAINERS (write after approval): Add myself.       
6012
6013 2004-05-13  Ulrich Weigand  <[email protected]>
6014
6015         * breakpoint.c (bpstat_stop_status): Add new argument
6016         STOPPED_BY_WATCHPOINT.  Use it instead of testing
6017         target_stopped_data_address agaist 0 to check whether
6018         or not we stopped due to a hardware watchpoint.
6019         * breakpoint.h (bpstat_stop_status): Adapt prototype.
6020         * infrun.c (handle_inferior_event): Call bpstat_stop_status
6021         with new argument.
6022
6023 2004-05-12  Jim Blandy  <[email protected]>
6024
6025         * configure.in: When checking whether we should use the -bbigtoc
6026         option, don't forget to restore the original value of LDFLAGS.
6027         * configure: Regenerated.
6028
6029 2004-05-12  Andrew Cagney  <[email protected]>
6030
6031         * thread.c (load_infrun_state): Delete step_sp.
6032         * infrun.c (context_switch): Ditto.
6033         * inferior.h (step_sp): Ditto.
6034         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6035         * gdbthread.h (struct thread_info, save_infrun_state)
6036         (restore_infrun_state): Ditto.
6037
6038 2004-05-12  Ulrich Weigand  <[email protected]>
6039
6040         * MAINTAINERS (write after approval): Add myself.
6041
6042 2004-05-12  Andrew Cagney  <[email protected]>
6043
6044         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6045         eliminate reference to step_sp.
6046         (struct execution_control_state, init_execution_control_state)
6047         (handle_inferior_event, keep_going): Delete update_step_sp and
6048         step_sp.
6049         * infcmd.c (step_sp): Note that variable is unused.
6050
6051 2004-05-11  Andrew Cagney  <[email protected]>
6052
6053         * infrun.c (step_over_function): Delete function.
6054         (handle_step_into_function): Use insert_step_resume_breakpoint.
6055         (insert_step_resume_breakpoint): Fix assertion.
6056
6057 2004-05-11  Nick Roberts  <[email protected]>
6058
6059         * utils.c (defaulted_query): Just use the normal query input type
6060         when printing the annotations.
6061
6062 2004-05-11  Andrew Cagney  <[email protected]>
6063
6064         * infrun.c (handle_inferior_event): Simplify code handling
6065         step-into or return-from a signal trampoline.
6066
6067 2004-05-11  Andrew Cagney  <[email protected]>
6068
6069         * ppcnbsd-tdep.c: Include "gdb_assert.h".
6070         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6071
6072 2004-05-10  Jim Blandy  <[email protected]>
6073
6074         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6075         with a call to internal_error.
6076
6077         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6078         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6079         processor variant lacks those registers.
6080         (ppc_floating_point_unit_p): Change description to make it clear
6081         that this returns info about the ISA, not the ABI.
6082         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6083         return true or false by checking tdep->ppc_fp0_regnum and
6084         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
6085         arch/mach switching done in rs6000_gdbarch_init; it's better to
6086         keep that logic there, and just check the results here.
6087         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6088         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6089         floating-point registers.
6090         (ppc_supply_fpregset, ppc_collect_fpregset)
6091         (rs6000_push_dummy_call, rs6000_extract_return_value)
6092         (rs6000_store_return_value): Assert that we have floating-point
6093         registers.
6094         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6095         (rs6000_frame_cache): Don't note the locations at which
6096         floating-point registers were saved if we have no fprs.
6097         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6098         registers.
6099         (fetch_regs_user_thread, fetch_regs_kernel_thread)
6100         (store_regs_user_thread, store_regs_kernel_thread): Only call
6101         supply_fprs / fill_fprs if we actually have floating-point
6102         registers.
6103         (special_register_p): Check ppc_fpscr_regnum before matching
6104         against it.
6105         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6106         supply / collect fpscr if we don't have it.
6107         * ppc-bdm.c: #include "gdb_assert.h".
6108         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6109         have floating-point registers, since I can't test this code on
6110         FP-free systems to adapt it.
6111         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6112         fpscr and floating point register numbers if they don't exist.
6113         (fetch_register): Assert that we have floating-point registers
6114         before we reach the code that handles them.
6115         (store_register): Same.  And use tdep instead of calling
6116         gdbarch_tdep again.
6117         (fill_fpregset): Don't try to collect FP registers and fpscr if we
6118         don't have them.
6119         (ppc_linux_sigtramp_cache): Don't record the saved locations of
6120         fprs and fpscr if we don't have them.
6121         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6122         don't have them.
6123         * ppcnbsd-nat.c: #include "gdb_assert.h".
6124         (getfpregs_supplies): Assert that we have floating-point registers.
6125         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6126         * ppcobsd-tdep.c: #include "gdb_assert.h".
6127         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6128         have floating-point registers.
6129         * rs6000-nat.c (regmap): Don't match against the fpscr and
6130         floating point register numbers if they don't exist.
6131         (fetch_inferior_registers, store_inferior_registers,
6132         fetch_core_registers): Only fetch / store / supply the
6133         floating-point registers and the fpscr if we have them.
6134         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6135         (ppcobsd-tdep.o): Update dependencies.
6136         
6137 2004-05-10  Andrew Cagney  <[email protected]>
6138
6139         * infrun.c (through_sigtramp_breakpoint): Delete variable.
6140         (context_switch): Do not switch through_sigtramp_breakpoint.
6141         * gdbthread.h (save_infrun_state, load_infrun_state)
6142         (struct thread_info): Delete through_sigtramp_breakpoint parameter
6143         and structure member.
6144         * thread.c (load_infrun_state, save_infrun_state): Update.
6145
6146 2004-05-10  Mark Kettenis  <[email protected]>
6147
6148         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6149
6150 2004-05-10  Maciej W. Rozycki  <[email protected]>
6151
6152         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
6153         throughout.
6154         * aclocal.m4: Regenerate.
6155
6156 2004-05-10  Nathan J. Williams  <[email protected]>
6157
6158         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6159
6160 2004-05-10  Andrew Cagney  <[email protected]>
6161
6162         * infrun.c (check_sigtramp2): Delete function.
6163         (handle_inferior_event): When single stepping, and taking a
6164         signal, set a breakpoint at the signal return address.  Delete
6165         redundant calls to check_sigtramp2.
6166         (insert_step_resume_breakpoint): New function.
6167         (through_sigtramp_breakpoint, handle_inferior_event)
6168         (follow_exec, wait_for_inferior, fetch_inferior_event)
6169         (currently_stepping, keep_going): Delete most uses of
6170         through_sigtramp_breakpoint, not that it should be deleted.
6171         (delete_breakpoint_current_contents): Delete function.
6172
6173 2004-05-10  Randolph Chung  <[email protected]>
6174
6175         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6176         target.
6177         * config/pa/tm-linux.h: New file.
6178
6179 2004-05-10  Daniel Jacobowitz  <[email protected]>
6180
6181         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6182         of prefixes.  Don't print the prefix twice in the CLI.
6183
6184 2004-05-10  Jim Blandy  <[email protected]>
6185
6186         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6187         collect all the gprs.
6188
6189         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6190         loop collecting gprs.
6191
6192 2004-05-09  Andrew Cagney  <[email protected]>
6193
6194         * remote-vx.c (net_step): Delete step-range code.
6195         * remote.c (remote_resume, init_all_packet_configs)
6196         (set_remote_protocol_E_packet_cmd)
6197         (show_remote_protocol_E_packet_cmd)
6198         (remote_protocol_E, show_remote_cmd, _initialize_remote)
6199         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6200         (show_remote_protocol_e_packet_cmd): Ditto.
6201
6202 2004-05-09  Mark Kettenis  <[email protected]>
6203
6204         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6205
6206         * hppa-tdep.h: Update copyright year.
6207         (struct trad_frame_saved_reg): Add opaque declaration.
6208
6209         * amd64-tdep.c (amd64_return_value): Implement
6210         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6211
6212         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6213         (m68k_value_to_register): New functions.
6214         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6215         value_to_register.
6216
6217         * defs.h (enum return_value_convention): Add
6218         RETURN_VALUE_ABI_RETURNS_ADDRESS and
6219         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6220         * infcmd.c (legacy_return_value): New function.
6221         (print_return_value): Rwerite to implement
6222         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6223         * values.c (using_struct_return): Check for inequality to
6224         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6225         RETURN_VALUE_STRUCT_CONVENTION.
6226         * i386-tdep.c (i386_return_value): Implement
6227         RETURN_VALUE_ABI_RETURNS_ADDRESS.
6228
6229         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
6230         include "symtab.h", "opcode/vax.h" and "inferior.h".
6231         (vax_skip_prologue): Replace calls to read_memory_integer by calls
6232         to read_memory_unsigned_integer.
6233         (vax_gdbarch_init): Reorder.
6234         (_initialize_vax_tdep): Spell out prototype.
6235         * Makefile.in (vax-tdep.o): Update dependencies.
6236
6237 2004-05-08  Andrew Cagney  <[email protected]>
6238
6239         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6240         * target.c (target_detach, target_disconnect): Ditto.
6241
6242         * infcall.c (call_function_by_hand): When no
6243         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6244         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6245         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6246         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6247         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6248         
6249         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6250         * gdbarch.h, gdbarch.c: Re-generate.
6251         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6252         deprecated_fix_call_dummy.
6253         * v850-tdep.c (v850_gdbarch_init): Ditto.
6254         * infcall.c (call_function_by_hand): Do not call
6255         DEPRECATED_FIX_CALL_DUMMY.
6256
6257         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6258         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6259         * gdbarch.h, gdbarch.c: Re-generate.
6260         * arm-linux-tdep.c (arm_linux_call_dummy_words)
6261         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6262         deprecated_sizeof_call_dummy_words.
6263         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6264         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6265         * v850-tdep.c (v850_gdbarch_init): Ditto.
6266         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6267         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6268         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6269         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6270         * arch-utils.h (legacy_call_dummy_words)
6271         (legacy_sizeof_call_dummy_words): Delete declarations.
6272         * arch-utils.c (legacy_call_dummy_words)
6273         (legacy_sizeof_call_dummy_words): Delete variables.
6274
6275         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6276         * gdbarch.h, gdbarch.c: Re-generate.
6277         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6278         * infcall.c (call_function_by_hand): Eliminate call to
6279         DEPRECATED_PUSH_DUMMY_FRAME.
6280         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6281         push_dummy_frame.
6282         (ns32k_push_dummy_frame): Delete function.
6283
6284         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6285         deprecated_call_dummy_breakpoint_offset or
6286         deprecated_call_dummy_start_offset.
6287         * dummy-frame.c, arm-tdep.c: Update comments.
6288         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6289         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6290         * gdbarch.h, gdbarch.c: Re-generate.
6291         
6292         * infcall.c (legacy_push_dummy_code): Delete function.
6293         (push_dummy_code): Delete call.
6294
6295         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6296         * gdbarch.h, gdbarch.c: Re-generate.
6297         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6298         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6299         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6300         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6301
6302         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6303         (struct frame_info): Delete opaque declaration.
6304         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6305         * frame.c (get_frame_type): Delete call.
6306
6307         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6308         pc_in_call_dummy.
6309         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6310         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6311
6312 2004-05-08  Mark Kettenis  <[email protected]>
6313
6314         * alphanbsd-tdep.c: Include "gdb_string.h".
6315         * armnbsd-tdep.c: Update copyright year.
6316         Include "gdb_string.h".
6317         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6318         dependencies.
6319
6320         * delta68-nat.c: Remove file.
6321         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6322         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6323         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6324         (delta68-nat.o): Remove dependency.
6325
6326         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6327         function.
6328         (m68k_gdbarch_init): Don't set
6329         deprecated_frameless_function_invocation.
6330
6331 2004-05-07  Randolph Chung  <[email protected]>
6332
6333         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
6334         read_memory_nobpt for code reading when doing frame unwinding.
6335         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6336
6337 2004-05-07  Randolph Chung  <[email protected]>
6338
6339         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6340         instead of sp, handle sigaltstack case.
6341         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
6342         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6343         signal handler and not that of the caller.
6344         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6345         hppa_linux_sigtramp_find_sigcontext.
6346
6347 2004-05-07  Randolph Chung  <[email protected]>
6348
6349         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6350         hppa-linux-nat.c.
6351         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6352         * hppa-linux-nat.c (fetch_register, store_register): Define.
6353         (fetch_inferior_registers, store_inferior_registers): Define.
6354         (supply_gregset): Add comment and clean up some unneeded code.
6355         (fill_gregset): Add comment and fix so that it saves registers in
6356         the right place in the gregset.
6357         (fill_fpregset): Fix buffer overrun problem.
6358         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6359
6360 2004-05-07  Randolph Chung  <[email protected]>
6361
6362         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
6363         do common handling of the pcoqt register.
6364         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6365         to use helper function.
6366         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6367         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6368         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6369         generic fallback unwinder when all else fails.
6370         (hppa_gdbarch_init): Add fallback sniffer.
6371         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6372         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6373         to use helper function.
6374
6375 2004-05-08  Joel Brobecker  <[email protected]>
6376
6377         * config/djgpp/fnchange.lst: Add translation rules for
6378         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6379
6380 2004-05-08  Mark Kettenis  <[email protected]>
6381
6382         * frame.c (get_prev_frame_1): Work around GCC bug.
6383         * frame.h: Add comment about GCC bug.
6384
6385 2004-05-07  Andrew Cagney  <[email protected]>
6386
6387         * observer.c: Include "commands.h" and "gdbcmd.h".
6388         (observer_debug, _initialize_observer): Add the
6389         command "set/show debug observer".
6390         * observer.sh: When observer debugging, log notify calls.
6391         * Makefile.in (observer.o): Update dependencies.
6392
6393 2004-05-07  Jason Molenda  ([email protected])
6394
6395         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6396
6397 2004-05-07  Jim Blandy  <[email protected]>
6398
6399         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6400         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6401         to recognize gpr regnums, instead of assuming that
6402         tdep->ppc_fp0_regnum marks the end of the general-purpose
6403         registers.
6404
6405         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6406         the given architecture has floating-point registers. 
6407
6408 2004-05-07  Andrew Cagney  <[email protected]>
6409
6410         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6411         macro defined to 1.
6412         * gdbarch.h, gdbarch.c: Re-generate.
6413         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6414         deprecated_use_generic_dummy_frames.
6415
6416 2004-05-07  Brian Ford  <[email protected]>
6417
6418         * NEWS: Mention Cygwin DWARF 2 support.
6419
6420 2004-05-07  Andrew Cagney  <[email protected]>
6421
6422         * objfiles.h (struct entry_info): Delete unused fields
6423         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6424         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6425         * mipsread.c (mipscoff_symfile_read): Update.
6426         * mdebugread.c (parse_partial_symbols): Update.
6427         * dwarfread.c (read_file_scope): Update.
6428         * dwarf2read.c (read_file_scope): Update.
6429         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6430         * coffread.c (complete_symtab): Update.
6431
6432 2004-05-07  Mark Kettenis  <[email protected]>
6433
6434         * infcall.c (_initialize_infcall): Fix typo.
6435
6436 2004-05-07  Andrew Cagney  <[email protected]>
6437
6438         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6439         * command.h (add_setshow_zinteger_cmd): Declare.
6440
6441 2004-05-06  Randolph Chung  <[email protected]>
6442
6443         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6444         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6445         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6446         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6447         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6448         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6449         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
6450         definitions ...
6451         * hppa-tdep.h: ... to here, with HPPA_ prefix.
6452         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6453         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6454         (hppa64_hpux_frame_find_saved_regs_in_sig)
6455         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6456         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6457         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6458         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6459         (hppa_linux_sigtramp_frame_prev_register): Likewise.
6460         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6461         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6462         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6463         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6464         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6465         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6466         (hppa32_register_type, hppa_cannot_store_register)
6467         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6468         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6469         * hpread.c (hpread_process_one_debug_symbol): Likewise.
6470         * pa64solib.c (pa64_solib_have_load_event)
6471         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6472         (pa64_solib_unloaded_library_pathname): Likewise.
6473         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6474         (som_solib_library_pathname): Likewise.
6475
6476 2004-05-05  Jim Ingham  <[email protected]>
6477         
6478         * breakpoint.c (create_breakpoints): Copy the ignore count and
6479         thread id over from the pended breakpoint to the actual
6480         breakpoint.
6481         
6482 2004-05-05  Andrew Cagney  <[email protected]>
6483
6484         * gdbarch.sh (PARM_BOUNDARY): Delete.
6485         gdbarch.h, gdbarch.c: Re-generate.
6486         * valops.c (PARM_BOUNDARY): Delete macro.
6487         (value_push): Delete PARM_BOUNDARY code.
6488         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6489
6490 2004-05-04  Jim Blandy  <[email protected]>
6491
6492         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6493         Don't assume that the gprs, fprs, and UISA sprs are
6494         contiguous, start at register number zero, and end with fpscr.
6495         Instead, use the numbers from the tdep structure.
6496
6497         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6498         should no longer be used in code specific to the RS6000 and its
6499         derivatives.
6500         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6501         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6502         tdep->ppc_fp0_regnum.
6503         (ppc_supply_fpregset, ppc_collect_fpregset)
6504         (rs6000_push_dummy_call, rs6000_extract_return_value)
6505         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6506         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6507         FP0_REGNUM. 
6508         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6509         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6510         Same.
6511         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6512         bdm_ppc_store_registers): Same.
6513         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
6514         (store_register, fill_fpregset): Same.
6515         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
6516         (ppc_linux_supply_fpregset): Same.
6517         * ppcnbsd-nat.c (getfpregs_supplies): Same.
6518         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6519         Same.
6520         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6521         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6522         ppc64_sysv_abi_return_value): Same.
6523         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6524         (store_inferior_registers, fetch_core_registers): Same.
6525
6526 2004-05-01  Mark Kettenis  <[email protected]>
6527
6528         * m68knbsd-nat.c: Remove file.
6529         * m68knbsd-tdep.c: Remove file.
6530         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6531         dependencies.
6532         * configure.host: Add m68k-*-netbsdelf*.
6533         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6534         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6535         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
6536         (XM_FILE): Remove.
6537         * config/m68k/nbsdelf.mh: New file.
6538         * config/m68k/nbsd.mt: New file.
6539         * config/m68k/nbsdaout.mt: Remove file.
6540         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6541         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
6542         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6543         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6544         (use_struct_convention): Remove prototype.
6545         (USE_STRUCT_CONVENTION): Remove define.
6546         * config/m68k/xm-nbsd.h: Remove file.
6547
6548 2004-05-04  Michael Snyder  <[email protected]>
6549
6550         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
6551         reg_struct_return method (as gcc usually does for cross targets).
6552
6553 2004-05-04  Ulrich Weigand <[email protected]>
6554
6555         Committed by Andrew Cagney.
6556         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6557         alignment padding when accessing ucontext struct members.
6558
6559 2004-05-04  Jim Blandy  <[email protected]>
6560
6561         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6562         'ppc_gplast_regnum' member.
6563         (ppc_num_gprs): New enum constant.
6564         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6565         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6566         * rs6000-nat.c (regmap, fetch_inferior_registers,
6567         store_inferior_registers): Same.
6568         * rs6000-tdep.c (e500_pseudo_register_read)
6569         (e500_pseudo_register_write): Same.
6570         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6571
6572         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6573         * ppc-tdep.h (ppc_num_fprs): New enum constant.
6574         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6575         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6576         FPLAST_REGNUM.
6577         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6578         Same.
6579         * ppc-linux-nat.c (ppc_register_u_addr): Same.
6580         * rs6000-nat.c (regmap, fetch_inferior_registers) 
6581         (store_inferior_registers): Same.
6582
6583         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6584         with FPLAST_REGNUM.
6585
6586 2004-05-03  Joel Brobecker  <[email protected]>
6587
6588         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6589         failure detected by recent versions of GCC.
6590         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6591         to be consistent with the usage in dwarf2_create_include_psymtab.
6592
6593 2004-05-03  Michael Snyder  <[email protected]>
6594
6595         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6596         (heuristic_proc_start): Whitespace cleanup.
6597
6598 2004-05-04  Mark Kettenis  <[email protected]>
6599
6600         * sun3-nat.c: Remove file.
6601         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6602         dependencies.
6603         (ALLDEPFILES): Remove sun3-nat.c.
6604         (sun3-nat.o): Remove dependencies.
6605
6606         * i386-interix-nat.c, i386-interix-tdep.c,
6607         config/i386/nm-interix.h, config/i386/interix.mh,
6608         config/i386/interix.mt: Remove files.
6609         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6610         dependencies.
6611
6612 2004-05-03  Mark Kettenis  <[email protected]>
6613
6614         * m68k-tdep.h (struct gdbarch_tdep): Add member
6615         struct_value_regnum.
6616         (m68k_svr4_init_abi): New prototype.
6617         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
6618         different calling conventions.
6619         (m68k_extract_return_value): Remove code dealing with single-field
6620         structs.
6621         (m68k_store_return_value): Remove code dealing with single-field
6622         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
6623         (m68k_extract_struct_value_address): Remove function.
6624         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6625         (m68k_reg_struct_return_p, m68k_return_value)
6626         (m68k_svr4_return_value): New functions.
6627         (m68k_use_struct_convention): Remove function.
6628         (m68k_push_dummy_call): Use new struct_value_regnum member of
6629         `struct gdbarch_tdep' instead of hardcoded register number to
6630         store STRUCT_ADDR.
6631         (m68k_svr4_init_abi): New function.
6632         (m68k_gdbarch_init): Don't set extract_return_value,
6633         store_return_values, deprecated_extract_struct_value_address and
6634         use_struct_convention.  Set return_value instead.  Initialize new
6635         struct_value_regnum member of `struct gdbarch_tdep'.
6636         * m68klinux-tdep.c: Update copyright year.
6637         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6638         (m68k_linux_extract_struct_value_address): Remove function.
6639         (m68k_linux_init_abi): Don't set extract_return_value,
6640         store_return_values, deprecated_extract_struct_value_address and
6641         use_struct_convention.  Call m68k_svr4_init_abi but override the
6642         new struct_value_regnum member of `struct gdbarch_tdep'.
6643         * Makefile.in (m68k-tdep.o): Update dependencies.
6644
6645 2004-05-03  J. Brobecker  <[email protected]>
6646
6647         * dwarf2read.c (line_header): Add new included_p field in
6648         field file_names.
6649         (partial_die_info): New field has_stmt_list. New field line_offset.
6650         (dwarf2_create_include_psymtab): New function.
6651         (dwarf2_build_include_psymtabs): New function.
6652         (add_file_name): Add forward declaration. Initialize new field.
6653         (dwarf_decode_lines): Add new parameter. Enhance this procedure
6654         to be able to determine the list of files included by the
6655         given unit, and build their associated psymtabs.
6656         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6657         files as well.
6658         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6659         (read_file_scope): Update call to dwarf_decode_lines.
6660         (read_partial_die): Handle DW_AT_stmt_list attributes.
6661
6662 2004-05-02  Michael Chastain  <[email protected]>
6663
6664         Unfix PR gdb/1626.
6665         * configure.in: Revert special case for osf5.*.
6666         * configure: Regenerate.
6667
6668 2004-05-02  Jim Blandy  <[email protected]>
6669
6670         Move the symbol-file-from-memory functions into their own file.
6671         * symfile-mem.c, symfile-mem.h: New files.
6672         * symfile.c (symbol_file_add_from_bfd): New function.
6673         (symbol_file_add): Call symbol_file_add_from_bfd.
6674         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6675         Moved to symfile-mem.c.
6676         (_initialize_symfile): Move definition of
6677         add-symbol-file-from-memory command to symfile-mem.c.
6678         * symfile.h (symbol_file_add_from_bfd): New declaration.
6679         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6680         * config/powerpc/linux.mt (TDEPFILES): Same.
6681         * Makefile.in (SFILES): Add symfile-mem.c.
6682         (symfile_mem_h): New variable.
6683         (HFILES_NO_SRCDIR): Add symfile-mem.h.
6684         (symfile-mem.o): New rule.
6685
6686 2004-05-01  Andrew Cagney  <[email protected]>
6687
6688         * breakpoint.c (insert_bp_location): Use get_frame_id, and
6689         frame_find_by_id instead of frame_relative_level.
6690         (do_enable_breakpoint): Ditto.
6691         * thread.c: Update copyright.
6692         (info_threads_command): Ditto, simplify.
6693
6694         * frame.c (deprecated_generic_get_saved_register): Delete
6695         function, moved to "xstormy16-tdep.c".
6696         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6697         deprecated_generic_get_saved_register from "frame.c".
6698         (xstormy16_frame_saved_register): Call
6699         xstormy16_get_saved_register.
6700         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6701         static.
6702         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6703         * frame.h (deprecated_generic_get_saved_register): Delete.
6704
6705 2004-05-01  Michael Chastain  <[email protected]>
6706
6707         * dwarfread.c: Update documentation on the state of dwarf-1.
6708
6709 2004-05-01  Andrew Cagney  <[email protected]>
6710
6711         * stack.c (select_frame_command): Delete call to
6712         frame_relative_level.
6713         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6714         Delete #if0 code.
6715         (frame_info): Do not print FRAMELESS.
6716         (print_block_frame_labels): Replace DEPRECATED_STREQ.
6717         (catch_info): Delete #if0 code.
6718
6719         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6720         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6721         of frame_relative_level.
6722         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6723         to SENTINEL_FRAME.
6724         * frame.h (enum frame_type): Add SENTINEL_FRAME.
6725         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6726         frame_relative_level.
6727
6728         * frame.h (deprecated_set_frame_type): Delete declaration.
6729         * frame.c (deprecated_set_frame_type): Delete function, update
6730         comments.
6731
6732         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6733         * gdbarch.h, gdbarch.c: Re-generate.
6734         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6735         (shnbsd_pc_in_sigtramp): Delete.
6736         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6737         pc_in_sigtramp.
6738         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6739         pc_in_sigtramp.
6740         * frame.h: Update comments.
6741         * ppc-linux-tdep.c: Update comments.
6742         * breakpoint.c (bpstat_what): Update comments.
6743
6744         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6745         m68klinux-tdep.o's dependencies, were previously added to
6746         m68klinux-nat.o.
6747
6748         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6749         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6750         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6751         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6752         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6753
6754         * Makefile.in (m68klinux-nat.o): Update dependencies.
6755         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6756         (m68k_linux_sigtramp_frame_cache)
6757         (m68k_linux_sigtramp_frame_this_id)
6758         (m68k_linux_sigtramp_frame_prev_register)
6759         (m68k_linux_sigtramp_frame_unwind)
6760         (m68k_linux_sigtramp_frame_sniffer)
6761         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6762         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6763         names, use trad-frame.h.
6764         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6765         (struct m68k_sigtramp_info): Delete.
6766         * m68k-tdep.c (m68k_sigtramp_frame_cache)
6767         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6768         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6769         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6770         "m68klinux-tdep.c".
6771
6772         * infrun.c (check_sigtramp2): Delete check for
6773         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6774
6775 2004-05-01  Mark Kettenis  <[email protected]>
6776
6777         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6778
6779 2004-05-01  Andrew Cagney  <[email protected]>
6780
6781         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6782         (frv_linux_sigtramp_frame_cache)
6783         (frv_linux_sigtramp_frame_this_id)
6784         (frv_linux_sigtramp_frame_prev_register)
6785         (frv_linux_sigtramp_frame_unwind)
6786         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6787         include "linux" in function and variable names, directly call
6788         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6789         the latest trad-frame code.
6790         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6791         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6792         * Makefile.in (frv-linux-tdep.o): Update dependencies.
6793         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6794         * frv-tdep.c (frv_sigtramp_frame_cache)
6795         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6796         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6797         frv-linux-tdep.c.
6798         (frv_gdbarch_init): Do not append a sigtramp sniffer.
6799         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6800         (frv_set_sigcontext_reg_addr): Delete function.
6801
6802         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6803         (DEPRECATED_SIGTRAMP_END): Delete.
6804         * gdbarch.h, gdbarch.c: Re-generate.
6805         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6806         * config/vax/tm-vaxbsd.h: Update copyright.
6807         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6808         (DEPRECATED_IN_SIGTRAMP): Define.
6809         * config/m68k/tm-nbsd.h: Update copyright.
6810         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6811         (DEPRECATED_IN_SIGTRAMP): Define.
6812
6813 2004-05-01  Mark Kettenis  <[email protected]>
6814
6815         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6816         encondings.  Fixes PR gdb/1628.
6817
6818         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6819         DW_CFA_restore state without a matching DW_CFA_remember_state
6820         instead of aborting.  Fixes PR backtrace/1589.
6821
6822 2004-04-30  Joel Brobecker  <[email protected]>
6823
6824         * MAINTAINERS: Add self as AIX maintainer.
6825         Update my e-mail address in write-after-approval section.
6826
6827 2004-04-30  Andrew Cagney  <[email protected]>
6828
6829         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6830         (legacy_get_prev_frame): Ditto.
6831
6832         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6833         (mips_gdbarch_init): Do not set pc_in_sigtramp.
6834         * mipsread.c (sigtramp_address): Delete extern variable.
6835         (mipscoff_new_init): Delete reference.
6836         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6837         (fixup_sigtramp): Delete function.
6838         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6839         (fixup_sigtramp): Delete declarations.
6840
6841         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6842         deprecated_pc_in_sigtramp.
6843         (ppcnbsd_pc_in_sigtramp): Delete function.
6844
6845 2004-05-01  Mark Kettenis  <[email protected]>
6846
6847         * config/m68k/nm-nbsd.h: Tweak comments.
6848         * config/m68k/nm-nbsdaout.h: Likewise.
6849
6850 2004-04-30  Andrew Cagney  <[email protected]>
6851
6852         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6853         legacy_pc_in_sigtramp.
6854         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6855
6856 2004-05-01  Mark Kettenis  <[email protected]>
6857
6858         Add OpenBSD/m68k support.
6859         * NEWS (New native configurations): Mention OpenBSD/m68k.
6860         * m68kbsd-tdep.c: New file.
6861         * m68kbsd-nat.c: New file.
6862         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6863         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6864         * configure.host: Add m68k-*-openbsd.
6865         * configure.tgt: Add m68k-*-openbsd.
6866         * config/m68k/tm-obsd.h: New file.
6867         * config/m68k/obsd.mt: New file.
6868         * config/m68k/obsd.mh: New file.
6869         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6870         m68kbsd-tdep.c.
6871
6872 2004-04-30  Andrew Cagney  <[email protected]>
6873
6874         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6875         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6876
6877 2004-04-30  Mark Kettenis  <[email protected]>
6878
6879         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6880         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6881
6882 2004-04-30  Brian Ford  <[email protected]>
6883
6884         Revert 2004-04-16 change.
6885         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6886         (i386_coff_init_abi): Remove.
6887         * i386-tdep.h (i386_coff_init_abi): Remove.
6888         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6889
6890 2004-04-30  Andrew Cagney  <[email protected]>
6891
6892         * blockframe.c (find_pc_partial_function): Delete use of
6893         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6894         DEPRECATED_SIGTRAMP_END.
6895
6896         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6897         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6898         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6899         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6900         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6901
6902         * defs.h (deprecated_inside_entry_file): Delete declaration.
6903         * blockframe.c (deprecated_inside_entry_file): Delete function.
6904         (legacy_frame_chain_valid): Delete call.
6905         * sh64-tdep.c (sh64_frame_chain): Delete call.
6906         * objfiles.h: Update comments.
6907         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6908         call.
6909         * frame.c (get_prev_frame): Delete call, update comments.
6910
6911 2004-04-30  Brian Ford  <[email protected]>
6912
6913         * MAINTAINERS (Write After Approval): Add myself.
6914
6915 2004-04-30  Andrew Cagney  <[email protected]>
6916
6917         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6918         * gdbarch.h, gdbarch.c: Re-generate.
6919         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6920         code.
6921
6922 2004-04-30  Andrew Cagney  <[email protected]>
6923
6924         * gdb-events.sh (selected_thread_changed)
6925         (selected_frame_level_changed, target_changed): Delete.
6926         * gdb-events.h, gdb-events.c: Re-generate.
6927         * valops.c (value_assign): Update.
6928         * stack.c (select_frame_command, up_silently_base)
6929         (down_silently_base): Update.
6930
6931 2004-04-29  Andrew Cagney  <[email protected]>
6932
6933         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6934         registers correctly.
6935         (print_gp_register_row, mips32_heuristic_proc_desc)
6936         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6937         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6938         references to mips_isa_regsize.
6939
6940 2004-04-29  Andrew Cagney  <[email protected]>
6941
6942         * mips-tdep.c (struct gdbarch_tdep): Delete
6943         mips_fp_register_double.
6944         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6945         mips_abi_regsize.
6946         (mips_gdbarch_init): Do not set mips_fp_register_double.
6947         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6948
6949 2004-04-29  Joel Brobecker  <[email protected]>
6950
6951         Committed by Andrew Cagney.
6952         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6953         function calls.
6954
6955 2004-04-29  Andrew Cagney  <[email protected]>
6956
6957         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6958         gdbarch, use mips_abi, update callers.
6959         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6960         mips_abi_regsize, update callers.
6961         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6962         mips_default_abi_regsize.
6963         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6964         mips_default_abi_regsize.
6965
6966 2004-04-29  Andrew Cagney  <[email protected]>
6967
6968         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6969         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6970         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6971         mips_default_abi_regsize.
6972         (mips_isa_regsize): Rename mips_regisze.
6973         * mipsnbsd-tdep.c: Update.
6974         * mips-linux-tdep.c: Update.
6975         * irix5-nat.c: Update.
6976         * mips-tdep.h (mips_isa_regsize): Update.
6977
6978         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6979         Delete all disabled code.
6980         * gdb-events.h, gdb-events.c: Re-generate.
6981         
6982 2004-04-19  Jerome Guitton  <[email protected]>
6983             Mark Kettenis  <[email protected]>
6984
6985         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6986         the function begins with a branch instruction.
6987
6988 2004-04-29  Mark Kettenis  <[email protected]>
6989
6990         * i386-tdep.c: Fix spelling mistakes.
6991
6992 2004-04-28  Rainer Orth  <[email protected]>
6993             Andrew Cagney  <[email protected]>
6994
6995         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6996         <sys/proc.h>.
6997         * acconfig.h: Provide default _KMEMUSER value.
6998         * config.in, configure: Re-generate.
6999         * NEWS: Mention fix.
7000
7001 2004-04-24  Randolph Chung  <[email protected]>
7002
7003         * configure.host (hppa*-*-linux*): New target.
7004         * configure.tgt (hppa*-*-linux*): Likewise.
7005         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7006         gdbarch_init_osabi() call earlier so that osabi-specific frame
7007         unwinders can be registered first.
7008         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7009         hppa-linux-nat.c.
7010         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7011         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7012         * config/pa/linux.mh: New file.
7013         * config/pa/linux.mt: New file.
7014         * config/pa/nm-linux.h: New file.
7015         * config/pa/xm-linux.h: New file.
7016         * hppa-linux-nat.c: New file.
7017         * hppa-linux-tdep.c: New file.
7018
7019 2004-04-28  Randolph Chung  <[email protected]>
7020
7021         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7022         return values.
7023         (hppa32_push_dummy_call): Fix small struct and floating point argument 
7024         passing, and make sure the stack frame is properly aligned.
7025
7026 2004-04-28  Andrew Cagney  <[email protected]>
7027
7028         * stack.c (print_stack_frame): Fix description.
7029
7030         * NEWS: Mention gdb/gdbserver/configure execute permission
7031         changed.  PR server/519.
7032
7033 2004-04-28  Andrew Cagney  <[email protected]>
7034
7035         * stack.c (print_stack_frame_stub): Delete declaration.
7036         (struct print_stack_frame_args, print_stack_frame)
7037         (print_frame_info, print_frame): Replace "source" with print what.
7038         Replace "print" with "print_level".  Replace "args" with
7039         "print_args".
7040         * frame.h (show_and_print_stack_frame, print_stack_frame)
7041         (print_frame_info): Update declarations.
7042         * stack.c (select_and_print_frame, frame_command)
7043         (current_frame_command, up_command, down_command): Update calls -
7044         use get_selected_frame, pass "enum print_what" for source, do not
7045         call frame_relative_level.
7046         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7047         * remote-rdp.c (remote_rdp_open): Ditto.
7048         * remote-mips.c (common_open): Ditto.
7049         * remote-e7000.c (e7000_start_remote): Ditto.
7050         * ocd.c (ocd_start_remote): Ditto.
7051         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7052         * infrun.c (normal_stop): Ditto.
7053         * inflow.c (kill_command): Ditto.
7054         * infcmd.c (finish_command): Ditto.
7055         * corelow.c (core_open): Ditto.
7056         * tracepoint.c (finish_tfind_command): Ditto.
7057         * thread.c (info_threads_command, info_threads_command) 
7058         (restore_current_thread, do_captured_thread_select): Ditto.
7059         * ada-tasks.c (task_command): Ditto.
7060
7061 2004-04-26  Orjan Friberg <[email protected]>
7062
7063         * frame.c: Include "observer.h".
7064         (frame_observer_target_changed): New function.
7065         (_initialize_frame): Attach target_changed observer.
7066         * regcache.c: Include "observer.h".
7067         (regcache_observer_target_changed): New function.
7068         (_initialize_regcache): Attach target_changed observer.
7069         * valops.c: Include "observer.h".
7070         (value_assign): Notify target_changed event when modifying register.
7071         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7072
7073 2004-04-26  Orjan Friberg <[email protected]>
7074
7075         From Paul Koning <[email protected]>:
7076         * breakpoint.c (free_valchain): New function.
7077         (insert_bp_location, delete_breakpoint): Use free_valchain.
7078         (remove_breakpoint): Do not remove the valchain.
7079         (bpstat_stop_status): If not stopped by watchpoint, skip
7080         watchpoints when generating stop status list.
7081         * infrun.c (handle_inferior_event): Make
7082         stepped_after_stopped_by_watchpoint a global variable.
7083         * remote.c (remote_stopped_data_address): Return watch data
7084         address rather than zero if stepped_after_stopped_by_watchpoint is
7085         set.
7086
7087 2004-04-25  Michael Chastain  <[email protected]>
7088
7089         Fix PR gdb/1626.
7090         * configure.in: Check for curses after termcap.
7091         On osf5.*, do not check for ncurses.
7092         * configure: Regenerate.
7093
7094 2004-04-25  Mark Kettenis  <[email protected]>
7095
7096         * ppcobsd-nat.c: Include "ppc-tdep.h".
7097         * Makefile.in (ppcobsd-nat.o): Update dependencies.
7098
7099         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7100         Fixes PR tdep/1623 and PR tdep/1624.
7101
7102 2004-04-24  Michael Chastain  <[email protected]>
7103
7104         * xmodem.h, xmodem.c: Remove files.
7105         * Makefile.in: Remove references to xmodem.h, xmodem.c.
7106
7107 2004-04-23  Randolph Chung  <[email protected]>
7108
7109         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7110         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7111         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7112         for handling stackless frames.
7113         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
7114
7115 2004-04-23  Randolph Chung  <[email protected]>
7116
7117         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7118         starts at a pc before the frame is created.
7119
7120 2004-04-23  Joel Brobecker  <[email protected]>
7121
7122         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7123
7124 2004-04-23  Jerome Guitton  <[email protected]>
7125
7126         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7127         use convert_typed_floating to get the appropriate format.
7128
7129 2004-04-22  Randolph Chung  <[email protected]>
7130
7131         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7132         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7133         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7134         (hppa_sign_extend): Add prototype.
7135         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7136         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7137         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
7138         hppa targets will also use these functions.
7139         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7140         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7141         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7142         (hppa_gdbarch_init): Remove gdbarch setting of 
7143         skip_trampoline_code, in_solib_call_trampoline and
7144         in_solib_return_trampoline.
7145         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7146         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7147         hppa_in_solib_call_trampoline.
7148         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7149         Moved from hppa-tdep.c.
7150         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
7151         in_solib_call_trampoline and in_solib_return_trampoline.
7152
7153 2004-04-22  Randolph Chung  <[email protected]>
7154
7155         * hppa-tdep.c (hppa_debug): New variable.
7156         (find_unwind_entry, hppa_frame_cache): Add debug output.
7157         (_initialize_hppa_tdep): Add command to set debug flag.
7158
7159 2004-04-22  Andrew Cagney  <[email protected]>
7160
7161         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
7162         "trad-frame.h".
7163         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7164         signal trampoline unwinder.
7165         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7166
7167 2004-04-22  Mark Kettenis  <[email protected]>
7168
7169         Add OpenBSD/powerpc support.
7170         * NEWS (New native configurations): Mention OpenBSD/powerpc.
7171         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7172         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7173         (ppc_collect_fpregset): New prototypes.
7174         * ppcobsd-nat.c: New file.
7175         * ppcobsd-tdep.c: New file.
7176         * ppcobsd-tdep.h: New file.
7177         * rs6000-tdep.c: Include "regset.h".
7178         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7179         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7180         New functions.
7181         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7182         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7183         (rs6000-tdep.o): Update dependencies.
7184         * configure.host: Add powerpc-*-openbsd.
7185         * configure.tgt: Add powerpc-*-openbsd.
7186         * config/powerpc/obsd.mh: New file.
7187         * config/powerpc/nm-obsd.h: New file.
7188         * config/powerpc/obsd.mt: New file.
7189
7190 2004-04-22  Andrew Cagney  <[email protected]>
7191
7192         * frame.h (show_frame_info): Delete declaration.
7193
7194         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7195         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7196         * m32r-tdep.c (m32r_frame_this_id): Ditto.
7197         * frv-tdep.c (frv_frame_this_id): Ditto.
7198         * avr-tdep.c (avr_frame_this_id): Ditto.
7199
7200 2004-04-22  Elena Zannoni  <[email protected]>
7201
7202         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7203
7204 2004-04-22  Jim Blandy  <[email protected]>
7205
7206         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7207         register number zero.
7208
7209 2004-04-21  Michael Snyder  <[email protected]>
7210
7211         * mips-tdep.c (heuristic_proc_start): 
7212         Warning() already prefixes "Warning: ".
7213
7214 2004-04-21  Andrew Cagney  <[email protected]>
7215
7216         * annotate.h (deprecated_annotate_starting_hook)
7217         (deprecated_annotate_stopped_hook)
7218         (deprecated_annotate_exited_hook)
7219         (deprecated_annotate_signal_hook)
7220         (deprecated_annotate_signalled_hook): Deprecate.
7221         * tracepoint.h (deprecated_create_tracepoint_hook)
7222         (deprecated_delete_tracepoint_hook)
7223         (deprecated_modify_tracepoint_hook)
7224         (deprecated_trace_find_hook)
7225         (deprecated_trace_start_stop_hook): Deprecate.
7226         * target.h (deprecated_target_new_objfile_hook): Deprecate.
7227         * remote.h (deprecated_target_resume_hook)
7228         (deprecated_target_wait_loop_hook): Deprecate.
7229         * gdbcore.h (deprecated_exec_file_display_hook)
7230         (deprecated_file_changed_hook): Deprecate.
7231         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7232         * defs.h (deprecated_modify_breakpoint_hook)
7233         (deprecated_command_loop_hook, deprecated_show_load_progress)
7234         (deprecated_print_frame_info_listing_hook)
7235         (deprecated_query_hook, deprecated_warning_hook)
7236         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7237         (deprecated_delete_breakpoint_hook)
7238         (deprecated_interactive_hook, deprecated_registers_changed_hook)
7239         (deprecated_readline_begin_hook, deprecated_readline_hook)
7240         (deprecated_readline_end_hook, deprecated_register_changed_hook)
7241         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7242         (deprecated_context_hook, deprecated_target_wait_hook)
7243         (deprecated_attach_hook, deprecated_detach_hook)
7244         (deprecated_call_command_hook, deprecated_set_hook)
7245         (deprecated_error_hook, deprecated_error_begin_hook)
7246         (deprecated_ui_load_progress_hook): Deprecate.
7247         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7248         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7249         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7250         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7251         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7252         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7253         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7254         * annotate.c, aix-thread.c: Update.
7255
7256 2004-04-21  Andrew Cagney  <[email protected]>
7257
7258         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7259         * vaxnbsd-tdep.c: Include "gdb_string.h".
7260
7261         * symfile.c (symbol_file_add_from_memory): #if 0 function.
7262         (add_symbol_file_from_memory_command): #if 0 function body, call
7263         error instead.
7264
7265 2004-04-21  Andrew Cagney  <[email protected]>
7266
7267         * gdbcore.h: Update copyright.
7268         (deprecated_add_core_fns): Rename add_core_fns.
7269         * win32-nat.c (_initialize_core_win32): Update.
7270         * sun3-nat.c (_initialize_core_sun3): Update.
7271         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7272         * rs6000-nat.c (_initialize_core_rs6000): Update.
7273         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7274         * nto-tdep.c (_initialize_nto_tdep): Update.
7275         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7276         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7277         * mips-nat.c (_initialize_core_mips): Update.
7278         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7279         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7280         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7281         * lynx-nat.c (_initialize_core_lynx): Update.
7282         * irix5-nat.c (_initialize_core_irix5): Update.
7283         * i386-interix-nat.c (_initialize_core_interix): Update.
7284         * cris-tdep.c (_initialize_cris_tdep): Update.
7285         * corelow.c (deprecated_add_core_fns): Update.
7286         * core-regset.c (_initialize_core_regset): Update.
7287         * core-aout.c (_initialize_core_aout): Update.
7288         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7289         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7290         * alpha-nat.c (_initialize_core_alpha): Update.
7291
7292 2004-04-21  Jim Blandy  <[email protected]>
7293
7294         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7295
7296 2004-04-19  Daniel Jacobowitz  <[email protected]>
7297
7298         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7299         Delete.
7300         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
7301         (read_attribute_value): Update calls to dwarf_alloc_block.
7302         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7303         dwarf2_tmp_obstack.
7304         (psymtab_to_symtab_1): Likewise.  Clean up using
7305         free_stack_comp_unit.
7306         (add_to_cu_func_list): Use the comp_unit_obstack.
7307
7308 2004-04-19  Joel Brobecker  <[email protected]>
7309
7310         * dwarf2read.c (dwarf2_flag_true_p): New function.
7311         (die_is_declaration): Use the function above. Add some comments.
7312
7313 2004-04-19  Mark Kettenis  <[email protected]>
7314
7315         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7316         architecture when registering sparcnbsd_core_osabi_sniffer.
7317         Adjust comment.
7318
7319 2004-04-18  Mark Kettenis  <[email protected]>
7320
7321         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7322         return value.
7323
7324         Based on a patch from Brian Ford <[email protected]>:
7325         * i386-tdep.c: Correct register numbering scheme comments
7326         throughout.
7327         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7328         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7329         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7330         (i386_gdb_arch_init): Likewise.
7331
7332         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7333         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7334         ppcnbsd-tdep.o.
7335
7336         * m68k-tdep.h: Tweak comments.
7337         * m68k-tdep.c: Tweak comment.
7338
7339 2004-04-17  Randolph Chung  <[email protected]>
7340
7341         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7342         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7343         (hppa_hpux_som_init_abi): Set is_elf to 0.
7344         (hppa_hpux_elf_init_abi): Set is_elf to 1.
7345         * hppa-tdep.c (low_text_segment_address): Remove global.
7346         (record_text_segment_lowaddr): Pass in low address as parameter. Use
7347         section offset to calculate segment address.
7348         (internalize_unwinds): Define low_text_segment_address as local and
7349         pass to record_text_segment_lowaddr for ELF targets.
7350         (hppa_gdbarch_init): Zero fill tdep structure.
7351         (hppa_dump_tdep): Print tdep structure.
7352         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7353
7354 2004-04-17  Randolph Chung  <[email protected]>
7355
7356         * hppa-tdep.c (hppa_pseudo_register_read): Define.
7357         (hppa_gdbarch_init): Set pseudo_register_read.
7358         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7359         * regcache.c (supply_register): Remove check for
7360         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7361
7362 2004-04-17  Randolph Chung  <[email protected]>
7363
7364         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7365         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7366         (hpread_adjust_stack_address): Move to hpread.c.
7367         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7368         obj_private_struct): Move from tm-hppa.h.
7369         * hpread.c (hppa-tdep.h): Include.
7370         (hpread_adjust_stack_address): Move from hppa-tdep.c.
7371         (hpread_read_function_type, hpread_read_doc_function_type)
7372         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
7373         directly.
7374         * pa64solib.c (hppa-tdep.h): Include.
7375         * somsolib.c (hppa-tdep.h): Include.
7376         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7377         inferior_status): Remove unused forward declarations.
7378         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7379         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
7380         obj_private_struct): Move to hppa-tdep.h.
7381         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7382
7383 2004-04-17  Randolph Chung  <[email protected]>
7384
7385         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7386         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7387         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7388         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7389         Remove forward declaration and make static.
7390         (hppa_reg_struct_has_addr): Remove.
7391
7392 2004-04-16  Joel Brobecker  <[email protected]>
7393
7394         * observer.sh: Move comments in sed command to first column.
7395
7396 2004-04-16  Jason Molenda  ([email protected])
7397
7398         * frame.c: Minor typeo corrections in comments.
7399
7400 2004-04-16  Joel Brobecker  <[email protected]>
7401
7402         * observer.c (observer_test_first_notification_function): Update
7403         function profile.
7404         (observer_test_second_notification_function): Likewise.
7405         (observer_test_third_notification_function): Likewise.
7406
7407 2004-04-16  Mark Kettenis  <[email protected]>
7408
7409         From Brian Ford <[email protected]>:
7410         * i386-tdep.c (i386_coff_init_abi): New function.
7411         * i386-tdep.h (i386_coff_init_abi): New prototype.      
7412         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
7413         register number translation functions for DWARF and DWARF 2.
7414
7415 2004-04-16  Joel Brobecker  <[email protected]>
7416
7417         * dwarf2read.c: Back out my previous change, it was incorrect.
7418
7419 2004-04-16  Daniel Jacobowitz  <[email protected]>
7420
7421         * dwarf2read.c: Include "hashtab.h".
7422         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7423         has_namespace_info.
7424         (struct partial_die_info): Add comments.  Use bitfields to reduce
7425         memory footprint.  Add scope, scope_set, has_specification,
7426         spec_offset, die_parent, die_child, and die_sibling.
7427         (peek_die_abbrev): Add prototype.
7428         (partial_read_comp_unit_head): New function, broken out from
7429         dwarf2_build_psymtabs_hard.
7430         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7431         Use partial_read_comp_unit_head.  Initialize the CU and
7432         comp_unit_obstack.  Update calls to read_partial_die and
7433         scan_partial_symbols.  Use free_stack_comp_unit and
7434         load_partial_dies.
7435         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
7436         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
7437         Update calls to helper functions.  Remove NAMESPACE argument.
7438         Update comments.
7439         (partial_die_parent_scope, partial_die_full_name): New functions.
7440         (add_partial_symbol): Remove namespace argument.  Update call to
7441         pdi_needs_namespace.  Use partial_die_full_name.  Handle
7442         DW_TAG_namespace.  Check has_namespace_info flag.
7443         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
7444         tag.  Handle namespaces.
7445         (add_partial_namespace, add_partial_enumeration): Simplify.
7446         (guess_structure_name): New function, derived from
7447         add_partial_structure.
7448         (add_partial_structure): Remove.
7449         (determine_class_name): Update comment.
7450         (dwarf2_read_abbrevs): Set has_namespace_info flag.
7451         (is_type_tag_for_partial, load_partial_dies): New functions.
7452         (read_partial_die): Pass abbrev and abbrev_len as arguments.
7453         Record specifications instead of following them immediately.
7454         (find_partial_die_in_comp_unit, find_partial_die)
7455         (fixup_partial_die, free_stack_comp_unit)
7456         (hashtab_obstack_allocate, dummy_obstack_deallocate)
7457         (partial_die_hash, partial_die_eq): New functions.
7458         * Makefile.in (hashtab_h): Define.
7459         (dwarf2read.o): Update dependencies.
7460         (observer_inc, observer_h): Move to the correct section.
7461
7462 2004-04-15  Joel Brobecker  <[email protected]>
7463
7464         * dwarf2read.c (dwarf2_attribute_true_p): New function.
7465         (die_is_declaration): Use the function above. Add comment.
7466
7467 2004-04-15  Joel Brobecker  <[email protected]>
7468
7469         * dwarf2read.c (read_structure_scope): Identify stub types
7470         using die_is_declaration() only.
7471
7472 2004-04-15  Roland McGrath  <[email protected]>
7473
7474         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7475         argument instead of NAME.
7476         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7477         in call to symbol_file_add_with_addrs_or_offsets.
7478         (build_addr_info): New function, helper for ...
7479         (symbol_file_add_from_memory): New function.
7480         (add_symbol_file_from_memory_command): New function using that.
7481         (_initialize_symfile): Register it for add-symbol-file-from-memory.
7482         (pre_add_symbol_hook): Add const to argument type.
7483         * symfile.h (symbol_file_add_from_memory): Declare it.
7484
7485 2004-04-15  Mark Kettenis  <[email protected]>
7486
7487         * NEWS (New native configurations): Mention OpenBSD/vax.
7488         * configure.host: Add vax-*-openbsd*.
7489         * config/vax/obsd.mh: New file.
7490         * config/vax/nm-obsd.h: New file.
7491
7492         * vax-tdep.c: Include "regset.h".
7493         (vax_supply_gregset): New function.
7494         (vax_gregset): New variable.
7495         (vax_regset_from_core_section): New function.
7496         (vax_gdbarch_init): Set regset_from_core_section.
7497         * Makefile.in (vax-tdep.o): Update dependencies.
7498
7499 2004-04-15  Andrew Cagney  <[email protected]>
7500
7501         * observer.c (normal_stop_subject, observer_notify_normal_stop)
7502         (observer_normal_stop_notification_stub)
7503         (observer_attach_normal_stop, observer_detach_normal_stop):
7504         Delete, replaced by #include "observer.inc".
7505         * infrun.c (normal_stop): Pass "stop_bpstat" to
7506         observer_notify_normal_stop.
7507         * Makefile.in (observer_inc): Define.
7508         (observer.o): Update dependencies.
7509         (observer.h, observer.inc): New rules.
7510         * observer.h: Delete file.
7511         * observer.sh: New file.
7512
7513 2004-04-15  Mark Kettenis  <[email protected]>
7514
7515         * vax-tdep.c (vax_frame_cache): Fix typo.
7516
7517 2004-04-14  Mark Kettenis  <[email protected]>
7518
7519         * NEWS (New native configurations): Mention NetBSD/vax.
7520         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7521         * config/vax/nbsdelf.mh: New file.
7522         * config/vax/nbsdaout.mh: New file.
7523         * config/vax/nm-nbsd.h: New file.
7524         * config/vax/nm-nbsdaout.h: New file.
7525
7526         * vaxnbsd-tdep.c: New file.
7527         * Makefile.in (vaxnbsd-tdep.o): New dependency.
7528         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7529         * config/vax/nbsd.mt: New file.
7530         * config/vax/tm-nbsd.h: New file.
7531
7532         * Makefile.in (vaxbsd-nat.o): New dependency.
7533
7534         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7535         * vax-tdep.c (vax_store_arguments): Remove struct_return and
7536         struct_addr arguments.  Don't push return value address.
7537         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7538         arguments to vax_store_arguments.  Store return value address in
7539         R1.
7540         (vax_store_struct_return, vax_extract_return_value)
7541         (vax_store_return_value): Remove functions.
7542         (vax_return_value): New function.
7543         (vax_gdbarch_init): Set return value.  Don't set
7544         deprecated_store_struct_return, deprecated_extract_struct_return
7545         and deprecated_store_return_value.
7546
7547 2004-04-14  Andreas Schwab  <[email protected]>
7548
7549         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7550         value buffer.
7551         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7552
7553 2004-04-14  Mark Kettenis  <[email protected]>
7554
7555         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7556         (vax_unwind_dummy_id): New functions.
7557         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7558         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7559         variables.
7560         (vax_fix_call_dummy): Remove function.
7561         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7562         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7563         call_dummy_location, deprecated_call_dummy_words,
7564         deprecated_sizeof_call_dummy_words,
7565         deprecated_call_dummy_breakpoint_offset,
7566         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7567         and deprecated_dummy_write_sp.
7568
7569 2004-04-13  David Carlton  <[email protected]>
7570
7571         * MAINTAINERS: Move myself to "paper trail" section.
7572
7573 2004-04-12  Mark Kettenis  <[email protected]>
7574
7575         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7576         "trad-frame.h".
7577         (vax_frame_init_saved_regs): Remove function.
7578         (vax_sigtramp_saved_pc): Remove function.
7579         (vax_frame_saved_pc): Remove function.
7580         (vax_frame_args_address): Remove function.
7581         (vax_frame_num_args): Rewrite.
7582         (vax_frame_chain): Remove function.
7583         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7584         VAX_FP_REGNUM.
7585         (vax_pop_frame): Likewise.
7586         (vax_saved_pc_after_call): Remove function.
7587         (struct vax_frame_cache): New structure.
7588         (vax_frame_cache): New function.
7589         (vax_frame_this_id): New function.
7590         (vax_frame_prev_register): New function.
7591         (vax_frame_unwind): New variable.
7592         (vax_frame_sniffer): New function.
7593         (vax_frame_base_address): New function.
7594         (vax_frame_args_address): New function.
7595         (vax_frame_base): New variable.
7596         (vax_unwind_pc): New function.
7597         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7598         deprecated_fp_regnum, deprecated_saved_pc_after_call,
7599         deprecated_frame_chain, deprecated_frame_saved_pc,
7600         deprecated_frame_args_address and
7601         deprecated_frame_init_saved_regs.
7602         * Makefile.in (vax-tdep.o): Update dependencies.
7603
7604         * vaxbsd-nat.c: New file.
7605
7606         * vax-tdep.h: Update copyright year.  Adjust comments.
7607         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7608         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7609         (vax_regnum): New enum.  Replacing...
7610         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7611         (VAX_PS_REGNUM): ... these removed macros.
7612         * vax-tdep.c (vax_register_name): Remove prototype.
7613         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
7614         (vax_register_byte, vax_register_raw_size,
7615         vax_register_virtual_size, vax_register_virtual_type): Remove
7616         functions.
7617         (vax_register_type): New function.
7618         (vax_breakpoint_from_pc): Reorganize.
7619         (vax_gdbarch_init): Set register_type.  Don't set
7620         deprecated_register_size, deprecated_register_bytes,
7621         deprecated_register_byte, deprecated_register_raw_size,
7622         deprecated_max_register_raw_size,
7623         deprecated_register_virtual_size,
7624         deprecated_max_register_virtual_size and
7625         deprecated_register_virtual_type.  Add comment on stack direction.
7626
7627 2004-04-11  Mark Kettenis  <[email protected]>
7628
7629         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7630         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7631         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7632
7633 2004-04-10  Randolph Chung  <[email protected]>
7634
7635         * MAINTAINERS (write after approval): Add myself.
7636
7637 2004-04-07  Randolph Chung  <[email protected]>
7638
7639         * hppa-tdep.c (hppa_inner_than): Remove.
7640         (is_pa_2): Remove unused static variable.
7641         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7642
7643 2004-03-10  Paul N. Hilfinger  <[email protected]>
7644
7645         * language.h (language_defn): Add new la_post_parser field.
7646         * parser-defs.h (null_post_parser): New declaration (default for
7647         la_post_parser).
7648
7649         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7650         insert call to that function.
7651         (parse_exp_in_context): New function, including code formerly in
7652         parse_exp_1.  Calls language-dependent post-parser after
7653         prefixification.
7654         (parse_expression_in_context): New exported function.
7655         (null_post_parser): New definition.
7656         * expression.h (parse_expression_in_context): Add declaration.
7657
7658         * p-lang.c (pascal_language_defn): Add trivial post-parser.
7659         * c-lang.c (c_language_defn): Ditto.
7660         (cplus_language_defn): Ditto.
7661         (asm_language_defn): Ditto.
7662         (minimal_language_defn): Ditto.
7663         * f-lang.c (f_language_defn): Ditto.
7664         * jv-lang.c (java_language_defn): Ditto.
7665         * language.c (unknown_language_defn): Ditto.
7666         (auto_language_defn): Ditto.
7667         (local_language_defn): Ditto.
7668         * m2-lang.c (m2_language_defn): Ditto.
7669         * scm-lang.c (scm_language_defn): Ditto.
7670         * obj-lang.c (objc_language_defn): Ditto.
7671
7672 2004-04-10  Mark Kettenis  <[email protected]>
7673
7674         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7675         (amd64nbsd_mcontext_addr): New function.
7676         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7677         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
7678         with amd64nbsd_r_reg_offset, instead of building it on the fly.
7679
7680         * corelow.c (core_xfer_partial): Fix coding standards violation.
7681         Add support for TARGET_OBJECT_WCOOKIE.
7682
7683         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7684         deprecated_pc_in_sigtramp.
7685         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7686         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7687         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7688         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7689         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7690         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7691         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7692
7693         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7694         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7695         Fix typo.
7696
7697         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7698         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7699         (amd64_collect_fxsave): Likewise.
7700
7701         * i386-sol2-tdep.c: Include "gdb_string.h".
7702         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7703         name.
7704         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7705
7706 2004-04-10  Mark Kettenis  <[email protected]>
7707
7708         * i386-sol2-tdep.c: Include "solib-svr4.h".
7709         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7710         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7711         * config/i386/tm-i386sol2.h: Include :solib.h".
7712         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7713         solib-svr4.o and solib-legacy.o.
7714         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7715         solib-svr4.o.
7716
7717 2004-04-09  Mark Kettenis  <[email protected]>
7718
7719         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7720         whether a register is supplied by PTRACE_GETFPREGS.
7721         (store_inferior_registers): Likewise.
7722         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7723         whether a register is supplied by PT_GETFPREGS.
7724         (store_inferior_registers): Likewise.
7725
7726         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7727         * config/i386/linux64.mt (TDEPFILES): Likewise.
7728
7729         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
7730
7731         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7732         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7733         the program counter is in the range specified by `struct
7734         gdbarch_tdep'.
7735         * amd64-linux-tdep.c: Include "symtab.h".
7736         (amd64_linux_pc_in_sigtramp): Remove function.
7737         (amd64_linux_sigtramp_p): New function.
7738         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7739         deprecated_pc_in_sigtramp.
7740         * amd64nbsd-tdep.c: Include "symtab.h".
7741         (amd64nbsd_sigtramp_p): New function.
7742         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7743         deprecated_pc_in_sigtramp.
7744         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
7745         few comments.
7746         (amd64obsd_pc_in_sigtramp): Remove function.
7747         (amd64obsd_sigtramp_p): New function.
7748         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7749         deprecated_pc_in_sigtramp.
7750         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7751         (i386bsd_pc_ins_sigtramp): Remove prototype.
7752         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7753         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7754         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
7755         the program counter is in the range specified by `struct
7756         gdbarch_tdep'.
7757         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7758         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7759         (i386_go32_pc_in_sigtramp): Remove function.
7760         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7761         Initialize TDEP->sigtramp_p.
7762         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7763         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
7764         deprecated_pc_in_sigtramp.
7765         * i386-linux-tdep.c: Adjust comments.
7766         (i386_linux_pc_in_sigtramp): Remove function.
7767         (i386_linux_sigtramp_p): New function.
7768         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7769         deprecated_pc_in_sigtramp.
7770         * i386-nto-tdep.c: Update copyright year.
7771         (i386nto_pc_in_sigtramp): Remove function.
7772         (i386nto_sigtramp_p): New function.
7773         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7774         SP_REGNUM.
7775         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7776         deprecated_pc_in_sigtramp.
7777         * i386-sol2-tdep.c: Update copyright year.
7778         (i386_sol2_pc_in_sigtramp): Remove function.
7779         (i386_sol2_sigtramp_p): New function.
7780         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
7781         deprecated_pc_in_sigtramp.
7782         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7783         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7784         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7785         deprecated_sigtramp_start and deprecated_sigtramp_end.
7786         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7787         (i386nbsd_pc_in_sigtramp): Remove function.
7788         (i386nbsd_sigtramp_p): New function.
7789         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7790         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7791         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7792         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7793         (i386obsd_pc_in_sigtramp): Remove function.
7794         (i386obsd_sigtramp_p): New function.
7795         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7796         functions.
7797         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7798         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
7799         TDEP->sigtramp_p.
7800         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7801         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7802         dependencies.
7803
7804         * config/i386/i386aout.mt: Remove file.
7805
7806         * configure.tgt: Remove i[34567]86-*-go32*,
7807         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7808         and i[34567]86-*-isc*.  Set gdb_target to i386 for
7809         i[34567]86-*-netware* and i[34567]86-*-*.
7810         * config/i386/i386.mt: New file.
7811         * config/i386/embed.mt: Remove file.
7812         * config/i386/go32.mt: Remove file.
7813         * config/i386/i386nw.mt: Remove file.
7814         * config/i386/i386v.mt: Remove file.
7815         * config/i386/tm-go32.h: Remove file.
7816
7817         * tui/tui-hooks.c: Include "readline/readline.h" after
7818         "gdb_curses.h" instead of before.
7819         * tui/tui-io.c: Likewise.
7820
7821         * tui/tui.c: Fix typo in comment.
7822
7823         * sparc64-tdep.c (sparc_address_from_register): Remove function.
7824
7825 2004-04-08  Andrew Cagney  <[email protected]>
7826
7827         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7828         (deprecated_exception_support_initialized): Declare.
7829         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7830         (initialize_hp_cxx_exception_support)
7831         (child_enable_exception_callback): Update.
7832         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7833         (deprecated_exception_support_initialized): Rename
7834         deprecated_exception_catchpoints_are_fragile and
7835         deprecated_exception_support_initialized.
7836         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7837
7838         * symtab.c (deprecated_hp_som_som_object_present): Rename
7839         hp_som_som_object_present.
7840         * symtab.h (deprecated_hp_som_som_object_present): Declare.
7841         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7842         Update.  Delete extern declaration.
7843         * valops.c (hp_som_som_object_present): Ditto.
7844         * parse.c (deprecated_hp_som_som_object_present)
7845         (parse_nested_classes_for_hpacc): Ditto.
7846         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7847         * hppa-hpux-tdep.c (hp_som_som_object_present)
7848         (initialize_hp_cxx_exception_support): Ditto.
7849         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7850         * cp-valprint.c (hp_som_som_object_present)
7851         (cp_print_class_method): Ditto.
7852         * c-typeprint.c (hp_som_som_object_present):
7853         (c_type_print_base): Ditto.
7854         * c-exp.y (hp_som_som_object_present): Ditto.
7855
7856 2004-04-08  Andrew Cagney  <[email protected]>
7857
7858         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7859         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7860         (frame_unwind_find_by_frame): Re-implement the unwind code so
7861         that it can both prepend and append sniffers.  Replace
7862         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7863         * tramp-frame.c (tramp_frame_append): Use
7864         frame_unwind_prepend_unwinder.
7865         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7866         frame_unwind_register_unwinder.
7867         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7868         tramp_frame_append.
7869         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7870         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7871         (mips_linux_init_abi): Update.
7872
7873 2004-04-08  Kevin Buettner  <[email protected]>
7874
7875         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7876         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
7877         file support.
7878
7879 2004-04-07  Kevin Buettner  <[email protected]>
7880
7881         * ia64-tdep.c (elf.h): Don't include.
7882         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7883
7884 2004-04-07  Jason Molenda  ([email protected])
7885
7886         * frame.h: Typeo corrections in comments.
7887
7888 2004-04-07  Jim Blandy  <[email protected]>
7889
7890         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7891         %esp and %ebp
7892
7893 2004-04-07  Mark Kettenis  <[email protected]>
7894
7895         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7896         * config/sparc/linux64.mt (TDEPFILES): Likewise.
7897         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7898         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7899         and solib-legacy.o.
7900         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7901         solib-svr4.o.
7902         * config/sparc/tm-sol2.h: Update copyright year.  Include
7903         "solib.h".
7904
7905         * sparc-sol2-tdep.c: Update copyright year.  Include
7906         "solib-svr4.h".
7907         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7908         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7909         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7910         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7911         dependencies.
7912
7913 2004-04-06  Andrew Cagney  <[email protected]>
7914
7915         * infttrace.c: Include "infttrace.h".
7916         * infttrace.h: Include "target.h".
7917         * Makefile.in (infttrace_h): Update.
7918         (infttrace.o): Update.
7919
7920 2004-04-06  Andrew Cagney  <[email protected]>
7921
7922         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7923         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7924         move extern declarations from here ...
7925         * infttrace.h: ... to here.
7926         * Makefile.in (hppah-nat.o): Update dependencies.
7927
7928         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7929         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7930         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7931         (hppa_breakpoint_from_pc): Delete.
7932
7933         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7934
7935 2004-04-05  Andrew Cagney  <[email protected]>
7936
7937         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7938         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7939         <sys/file.h>.
7940
7941 2004-04-06  Randolph Chung  <[email protected]>
7942
7943         Committed by Andrew Cagney (mechanical change).
7944         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7945         exception_catchpoints_are_fragile, find_stub_with_shl_get,
7946         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7947         child_enable_exception_callback, current_ex_event,
7948         null_symtab_and_line, child_get_current_exception_event,
7949         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7950         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7951         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7952         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7953         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7954         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7955         Move hpux-specific definitions ...
7956         * hppa-hpux-tdep.c: ... to here.
7957
7958 2004-04-05  Andrew Cagney  <[email protected]>
7959
7960         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7961         skip_prologue_using_sal.
7962
7963 2004-04-05  Andrew Cagney  <[email protected]>
7964
7965         * config/i386/tm-i386.h: Delete file.
7966         * config/i386/tm-vxworks.h: Update copyright, do not include
7967         "tm-i386.h".
7968         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7969         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7970         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7971         * config/i386/ncr3000.mt (TM_FILE): Delete.
7972         * config/i386/interix.mt (TM_FILE): Delete.
7973         * config/i386/i386v.mt (TM_FILE): Delete.
7974         * config/i386/i386nw.mt (TM_FILE): Delete.
7975         * config/i386/i386gnu.mt (TM_FILE): Delete.
7976         * config/i386/i386aout.mt (TM_FILE): Delete.
7977         * config/i386/embed.mt (TM_FILE): Delete.
7978
7979 2004-04-05  Kevin Buettner  <[email protected]>
7980
7981         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7982         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7983         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7984         (accg7_regnum): New constants.
7985         (last_spr_regnum, last_pseudo_regnum): Update.
7986         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7987         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7988         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7989         for accg registers.
7990         (frv_register_sim_regno): Update spr_map[].
7991
7992 2004-04-04  Andrew Cagney  <[email protected]>
7993
7994         * config/mips/xm-riscos.h: Delete.
7995         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7996         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7997         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7998         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7999         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8000         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8001         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8002         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8003         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8004         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8005         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8006         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8007         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8008         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8009         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8010         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8011         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8012         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8013         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8014         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8015         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8016         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8017         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8018         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8019         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8020         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8021
8022         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8023         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8024         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8025         * configure.host: Remove m680[01]0-sun-sunos3*,
8026         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8027         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8028         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8029         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8030         mips-*-riscos*.
8031         * NEWS: Mention removed systems.
8032
8033 2004-04-04  Andrew Cagney  <[email protected]>
8034
8035         GDB 6.1 release created from 6.1 branch.
8036
8037 2004-04-04  Andrew Cagney  <[email protected]>
8038
8039         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8040         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8041         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8042
8043         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8044         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8045         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8046
8047 2004-04-03  Jim Blandy  <[email protected]>
8048
8049         * MAINTAINERS: Chris Faylor has changed employers; add him to
8050         "paper trail" section, and update his E-mail address.
8051
8052 2004-04-03  Andrew Cagney  <[email protected]>
8053
8054         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8055         generic dummy frames.
8056         * dummy-frame.c: Update copyright.
8057         (dummy_frame_sniffer): Delete check for generic dummy frames.
8058
8059         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8060         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8061         (REG_PARM_STACK_SPACE): Delete.
8062         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8063         Inline reference to REG_PARM_STACK_SPACE.
8064
8065         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8066         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8067         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8068         (FRAME_BASE_BEFORE_SIGTRAMP)
8069         (hppa32_hpux_frame_base_before_sigtramp)
8070         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8071         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8072         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8073         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8074         (FRAME_BASE_BEFORE_SIGTRAMP)
8075         (hppa64_hpux_frame_base_before_sigtramp)
8076         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8077
8078 2004-04-03  Andrew Cagney  <[email protected]>
8079
8080         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8081
8082 2004-04-02  Andrew Cagney  <[email protected]>
8083
8084         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8085         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8086         * dummy-frame.h: Delete out-of-date comments.
8087         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8088         * gdbarch.h, gdbarch.c: Re-generate.
8089
8090 2004-04-02  Joel Brobecker  <[email protected]>
8091
8092         Committed by Andrew Cagney <[email protected]>.
8093         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8094         into account an instruction saving a register if we have already
8095         seen an earlier instruction saving that same register.
8096
8097 2004-04-02  Andrew Cagney  <[email protected]>
8098
8099         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8100         * gdbarch.h, gdbarch.c: Re-generate.
8101         * frame.c (legacy_get_prev_frame): Delete references to
8102         DEPRECATED_INIT_FRAME_PC_FIRST.
8103
8104         * infrun.c (pc_in_sigtramp): Delete function.
8105         (check_sigtramp2): Inline call to pc_in_sigtramp, use
8106         get_frame_type.
8107
8108 2004-04-02  Andrew Cagney  <[email protected]>
8109
8110         * infrun.c (handle_step_into_function): Delete code conditional on
8111         legacy_frame_p.
8112         (handle_inferior_event, step_over_function): Ditto.
8113
8114 2004-04-02  Andrew Cagney  <[email protected]>
8115
8116         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8117         "previous frame inner to this frame" test.
8118
8119 2004-04-02  Andrew Cagney  <[email protected]>
8120
8121         * frame.c (safe_frame_unwind_memory): New function.
8122         * frame.h (safe_frame_unwind_memory): Declare.  Update description
8123         of /safe_/ methods.
8124         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8125         "next_frame".  Use safe_frame_unwind_memory.
8126         (tramp_frame_sniffer): Update call to tramp_frame_start.
8127
8128 2004-04-01  Daniel Jacobowitz  <[email protected]>
8129
8130         * dwarf2read.c (dwarf2_objfile_data_key): New.
8131         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8132         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8133         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8134         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8135         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8136         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8137         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8138         Remove variables.
8139         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
8140         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8141         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8142         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8143         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8144         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8145         Remove macros.
8146         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
8147         data.
8148         (dwarf2_locate_sections, dwarf2_build_psymtabs)
8149         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8150         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8151         (read_partial_die, read_full_die, read_indirect_string)
8152         (dwarf_decode_line_header, dwarf_decode_macros)
8153         (dwarf2_symbol_mark_computed): Remove use of removed macros.
8154         Update uses of removed variables.
8155         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
8156         of removed macros.
8157         (_initialize_dwarf2_read): New function.
8158         * symfile.h (dwarf2_has_info): Update prototype.
8159         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8160         * elfread.c (elf_symfile_read): Likewise.
8161
8162 2004-04-01  Jim Blandy  <[email protected]>
8163
8164         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8165         function for register numbers on all the rs6000-derived targets.
8166         (rs6000_gdbarch_init): Don't register a separate
8167         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
8168         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8169         variants.
8170
8171         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8172         numbering.
8173
8174 2004-04-01  Paul N. Hilfinger  <[email protected]>
8175
8176         * valarith.c: Update copyright notice.
8177         (value_add): Handle range types.
8178         (value_sub): Ditto.
8179         (value_equal): Ditto.
8180         (value_less): Ditto.
8181         (value_neg): Ditto.
8182         (value_complement): Ditto.
8183         (value_binop): Simplify slightly by using is_integral_type and
8184         eliminiating unnecessary COERCE_ENUMs.
8185
8186 2004-03-31  Andrew Cagney  <[email protected]>
8187
8188         * frame.h (frame_unwind_id): Declare.
8189         * frame.c (frame_unwind_id): New function.
8190         (get_prev_frame_1): New function.
8191         (frame_debug_got_null_frame): New function.
8192         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
8193         code proper to prev_frame, update description.
8194         * infrun.c (step_over_function): Use frame_unwind_id.
8195
8196 2004-04-31  J. Brobecker  <[email protected]>
8197
8198         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8199         (hppa64_push_dummy_call): Likewise.
8200
8201 2004-03-30  Jim Blandy  <[email protected]>
8202
8203         From Ulrich Weigand:
8204         * utils.c (query): Do not use a va_list variable multiple times.
8205
8206 2004-03-29  Daniel Jacobowitz  <[email protected]>
8207
8208         * Makefile.in (linux_nat_h): Update dependencies.
8209         * configure.in: Check for <gnu/libc-version.h>.
8210         * configure: Regenerate.
8211         * config.in: Regenerate.
8212         * linux-nat.h: Include "target.h".  Add waitstatus field to
8213         struct lwp_info.
8214         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8215         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8216         to.
8217         (lin_lwp_handle_extended): New function.  Handle clone events.
8218         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
8219         thread exit events.
8220         (child_wait): Handle clone events.
8221         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8222         * linux-nat.c (linux_enable_event_reporting): Turn on
8223         PTRACE_O_TRACECLONE.
8224         (linux_handle_extended_wait): Handle clone events.
8225         * thread-db.c: Include <gnu/libc-version.h>.
8226         (struct private_thread_info): Add dying flag.
8227         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8228         higher.
8229         (attach_thread): Update comments.  Handle dying threads.
8230         (detach_thread): Set the dying flag.
8231         (check_event): Always call attach_thread.
8232
8233 2004-03-29  Daniel Jacobowitz  <[email protected]>
8234
8235         * mips-tdep.c (mips_pdr_data): New.
8236         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8237         (_initialize_mips_tdep): Initialize mips_pdr_data.
8238
8239 2004-03-29  Corinna Vinschen  <[email protected]>
8240
8241         * minsyms.c (install_minimal_symbols): Move dropping leading
8242         char from linkage name from here...
8243         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
8244         test for "__gnu_compiled*" symbols.
8245
8246 2004-03-28  Jim Blandy  <[email protected]>
8247
8248         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8249         registers to temp register r0 and byte stores as prologue
8250         instructions.
8251
8252 2004-03-28  Andrew Cagney  <[email protected]>
8253
8254         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
8255         arm*-*-*.
8256
8257 2004-03-28  Stephane Carrez  <[email protected]>
8258
8259         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8260         and switch the layout to force a display of register window.
8261
8262 2004-02-26  J. Brobecker  <[email protected]>
8263
8264         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8265         of the INTEGER class.
8266
8267 2004-03-26  Jim Blandy  <[email protected]>
8268
8269         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8270         bytes long on PPC GNU/Linux.
8271
8272 2004-03-26  David Carlton  <[email protected]>
8273
8274         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8275
8276 2004-03-25  Andrew Cagney  <[email protected]>
8277
8278         * PROBLEMS: Add general section titles, remove references to
8279         specific releases.
8280
8281 2004-03-25  Daniel Jacobowitz  <[email protected]>
8282
8283         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8284         INT_REGISTER_SIZE.
8285         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8286         FP_REGISTER_VIRTUAL_SIZE.
8287         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8288         of DEPRECATED_REGISTER_RAW_SIZE.
8289         (arm_register_type): Add gdbarch argument.
8290         (arm_register_raw_size, arm_register_virtual_size): Delete.
8291         (arm_register_byte, arm_extract_return_value)
8292         (arm_store_return_value, arm_get_longjmp_target): Update references
8293         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8294         (arm_gdbarch_init): Likewise.  Don't set
8295         deprecated_register_raw_size, deprecated_register_virtual_size,
8296         deprecated_max_register_raw_size,
8297         deprecated_max_register_virtual_size, or
8298         deprecated_max_register_virtual_type.  Do set register_type.
8299         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8300         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8301         (FP_REGISTER_VIRTUAL_SIZE): Delete.
8302         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8303         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8304         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8305         INT_REGISTER_SIZE.
8306         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8307         (remote_rdp_store_register): Likewise.
8308
8309 2004-03-24  Daniel Jacobowitz  <[email protected]>
8310
8311         * Makefile.in (mips-linux-tdep.o): Update dependencies.
8312         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8313         to after osabi initialization.
8314         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8315         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8316         functions.
8317         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8318         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8319         variables.
8320         (mips_linux_init_abi): Append signal trampoline unwinders.
8321
8322 2004-03-24  Andrew Cagney  <[email protected]>
8323
8324         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8325         * tramp-frame.c: Include "gdb_assert.h".
8326         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
8327         correct sizeof.
8328         (tramp_frame_append): Validate the tramp frame's instructions.
8329         * Makefile.in (tramp-frame.o): Update dependencies.
8330
8331 2004-03-23  Andrew Cagney  <[email protected]>
8332
8333         * trad-frame.h (trad_frame_set_reg_addr): Declare.
8334
8335 2004-03-23  Andrew Cagney  <[email protected]>
8336
8337         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8338         Nasser as past testsuite/lib/ (and other) maintainers.
8339
8340 2004-03-23  Daniel Jacobowitz  <[email protected]>
8341
8342         * infcmd.c (attach_command): Reread symbols if we already have
8343         an exec file.
8344
8345 2004-03-23  Andrew Cagney  <[email protected]>
8346
8347         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8348
8349 2004-03-23  Andrew Cagney  <[email protected]>
8350
8351         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8352         * gdbarch.h, gdbarch.c: Re-generate.
8353         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8354         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8355         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8356         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8357         (DEPRECATED_SIGTRAMP_START): Update.
8358         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8359         (DEPRECATED_SIGTRAMP_START): Update.
8360         * blockframe.c (find_pc_sect_partial_function): Update.
8361         * arch-utils.c (legacy_pc_in_sigtramp): Update.
8362
8363 2004-03-23  Daniel Jacobowitz  <[email protected]>
8364
8365         * remote.c (remote_open_1): Reopen the exec file and reread symbols
8366         if necessary.
8367
8368 2004-03-23  Andrew Cagney  <[email protected]>
8369
8370         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8371         predicate, deprecate.
8372         * gdbarch.h, gdbarch.c: Re-generate.
8373         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8374         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8375         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8376         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8377         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8378         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8379         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8380         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8381         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8382         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8383         * blockframe.c (find_pc_partial_function): Update.
8384         * breakpoint.c (bpstat_what): Update.
8385         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8386         * frv-linux-tdep.c (frv_linux_init_abi): Update.
8387         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8388         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8389         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8390         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8391         * i386-nto-tdep.c (i386nto_init_abi): Update.
8392         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8393         * i386-tdep.c (i386_sigtramp_frame_sniffer)
8394         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8395         * i386bsd-tdep.c (i386bsd_init_abi): Update.
8396         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8397         * i386obsd-tdep.c (i386obsd_init_abi): Update.
8398         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8399         * infrun.c (pc_in_sigtramp): Update.
8400         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8401         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8402         * mips-tdep.c (mips_gdbarch_init): Update.
8403         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8404         * ppc-linux-tdep.c: Update comment.
8405         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8406         * shnbsd-tdep.c (shnbsd_init_abi): Update.
8407         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8408         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8409         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8410         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8411         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8412         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8413         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8414         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8415
8416 2004-03-23  Andrew Cagney  <[email protected]>
8417
8418         * tramp-frame.h, tramp-frame.h: New files.
8419         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8420         Update rules to include "tramp-frame.h" and "tramp-frame.c".
8421
8422         * Makefile.in: Update all dependencies.
8423
8424 2004-03-23  Andrew Cagney  <[email protected]>
8425
8426         * Makefile.in (trad_frame_h): Add $(frame_h).
8427         * trad-frame.h: Update copyright.  Include "frame.h".
8428         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8429         (trad_frame_set_id, trad_frame_get_id): Declare.
8430         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8431         * trad-frame.c: Update copyright.
8432         (struct trad_frame_cache): Define.
8433         (trad_frame_cache_zalloc): New function.
8434         (trad_frame_set_id, trad_frame_get_id): New functions.
8435         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8436
8437 2004-03-22  Andrew Cagney  <[email protected]>
8438
8439         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8440         s390_pltstub_unwind_cache.
8441         (s390_stub_frame_unwind_cache): Rename
8442         s390_pltstub_frame_unwind_cache.
8443         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8444         (s390_stub_frame_prev_register): Rename
8445         s390_pltstub_frame_prev_register.
8446         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8447         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8448
8449         From Ulrich Weigand:
8450         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8451         pointer calls like PLT calls.
8452
8453 2004-03-22  Daniel Jacobowitz  <[email protected]>
8454
8455         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8456         PC rather than the partial function start address.  Use the start
8457         address to sanity check the found PDR.
8458
8459 2004-03-22  Daniel Jacobowitz  <[email protected]>
8460
8461         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8462         linux_handle_extended_wait.
8463
8464 2004-03-22  Andrew Cagney  <[email protected]>
8465
8466         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8467         function.
8468
8469         * frame.h (generic_pop_current_frame): Delete declaration.
8470         (deprecate_pop_dummy_frame): Deprecate
8471         generic_pop_dummy_frame.
8472         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8473         (generic_pop_current_frame): Delete function.
8474         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8475         generic_pop_current_frame.
8476         * v850-tdep.c (v850_pop_frame): Update.
8477         * mcore-tdep.c (mcore_pop_frame): Update.
8478         * sh64-tdep.c (sh64_pop_frame): Update.
8479         * h8300-tdep.c (h8300_pop_frame): Update.
8480
8481 2004-03-22  Andrew Cagney  <[email protected]>
8482
8483         * frame.h (deprecated_pc_in_call_dummy): Rename
8484         generic_pc_in_call_dummy.
8485         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8486         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8487         generic_pc_in_call_dummy.
8488         (pc_in_dummy_frame): Make static.
8489         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8490         * gdbarch.h, gdbarch.c: Re-generate.
8491         * dummy-frame.c (dummy_frame_sniffer): Simplify.
8492         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8493         (legacy_get_prev_frame): Ditto.
8494         * inferior.h: Delete reference to generic_pc_in_call_dummy in
8495         comment.
8496
8497 2004-03-21  Andrew Cagney  <[email protected]>
8498
8499         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8500         declaration and out-of-date comment.
8501         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8502         Delete function.
8503         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8504         deprecated_pc_in_call_dummy.
8505
8506         * infrun.c (handle_inferior_event): For non legacy frames, use the
8507         frame ID and frame type to identify a signal trampoline.  Update
8508         comments.
8509
8510 2004-03-21  Nathan J. Williams  <[email protected]>
8511
8512         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8513         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8514
8515 2004-03-21  Andrew Cagney  <[email protected]>
8516
8517         * frame-unwind.h: Update copyright.
8518         (struct frame_data): Add opaque declaration.
8519         (frame_sniffer_ftype): Declare.
8520         (struct frame_unwind): Add "unwind_data" and "sniffer".
8521         (frame_unwind_register_unwinder): Declare.
8522         (frame_unwind_find_by_frame): Add parameter "this_cache".
8523         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8524         (legacy_get_prev_frame, legacy_get_prev_frame)
8525         (get_frame_type): Pass the prologue_cache to
8526         frame_unwind_find_by_frame.
8527         * frame-unwind.c (struct frame_unwind_table_entry): Add field
8528         "unwinder".
8529         (frame_unwind_register_unwinder): New function.
8530         (frame_unwind_find_by_frame): Handle an unwind sniffer.
8531
8532 2004-03-20  Paul Hilfinger  <[email protected]>
8533
8534         * bcache.c (print_percentage): Use floating point to avoid
8535         incorrect results when portion*100 overflows.
8536
8537 2004-03-19  Kevin Buettner  <[email protected]>
8538
8539         * ppc_tdep.h (ppc_linux_frame_saved_pc)
8540         (ppc_linux_init_extra_frame_info)
8541         (ppc_linux_frameless_function_invocation)
8542         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8543         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8544         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8545         (rs6000_frame_chain): Delete declarations.
8546         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8547         (ppc_linux_init_extra_frame_info)
8548         (ppc_linux_frameless_function_invocation)
8549         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8550         (ppc_linux_init_abi): Remove registration of above deleted functions.
8551         * rs6000-tdep.c (rs6000_init_extra_frame_info)
8552         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8553         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8554         (rs6000_pop_frame, rs6000_frameless_function_invocation)
8555         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8556         (rs6000_gdbarch_init): Remove registration of above deleted functions.
8557         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8558         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8559         frame management for all OSABIs.
8560
8561 2004-03-19  Andrew Cagney  <[email protected]>
8562
8563         Committed by Kevin Buettner <[email protected]>.
8564
8565         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8566         Update copyright.
8567         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8568         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8569         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8570         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8571         unwinders.  #ifdef legacy frame code.
8572         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8573         "frame-base.h".
8574         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8575         (struct rs6000_frame_cache, rs6000_frame_cache)
8576         (rs6000_frame_this_id, rs6000_frame_prev_register)
8577         (rs6000_frame_sniffer, rs6000_frame_unwind)
8578         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8579         (rs6000_frame_base): Implement a traditional frame unwinder.
8580         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8581         frame unwinder.
8582
8583 2004-03-19  Kevin Buettner  <[email protected]>
8584
8585         * breakpoint.c (adjust_breakpoint_address): Don't adjust
8586         breakpoint address for watchpoints or the catch eventpoints.
8587         Add new paramter ``bptype''.  Adjust all callers.
8588
8589 2004-03-19  Andrew Cagney  <[email protected]>
8590
8591         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8592
8593         * PROBLEMS: Delete note that ARM does not use frame code, problem
8594         fixed.
8595
8596 2004-03-18  Andrew Cagney  <[email protected]>
8597
8598         * stack.c (return_command): Delete code wrapped in #ifdef
8599         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8600
8601         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8602
8603 2004-03-18  Andrew Cagney  <[email protected]>
8604
8605         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8606         DEPRECATED_IN_SIGTRAMP.
8607         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8608         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8609         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8610         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8611         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8612         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8613         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8614         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8615         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8616         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8617
8618 2004-03-18  Andrew Cagney  <[email protected]>
8619
8620         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
8621         (struct frame_base_table_entry): Define.
8622         (struct frame_base_table): Re-implement as a linked list.
8623         (frame_base_init): Re-implement.
8624         (frame_base_table): Delete function.
8625         (append_predicate): Delete function.
8626         (frame_base_append_sniffer): Update.
8627         (frame_base_set_default): Update.
8628         (frame_base_find_by_frame): Update.
8629         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8630         * Makefile.in (frame-base.o): Update dependencies.
8631
8632 2004-03-17  Andrew Cagney  <[email protected]>
8633
8634         * frame.c (legacy_get_prev_frame): Pass correct frame to
8635         frame_unwind_find_by_frame.
8636
8637 2004-03-17  David Carlton  <[email protected]>
8638
8639         * NEWS: Mention C++ nested types and namespaces
8640
8641 2004-03-16  Michael Chastain  <[email protected]>
8642
8643         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8644         and "Regressions since gdb 5.3.".  Add known regressions since
8645         gdb 6.0.
8646
8647 2004-03-16  David Carlton  <[email protected]>
8648
8649         * dwarf2read.c (process_structure_scope): Process children even
8650         when we're a declaration.
8651
8652 2004-03-16  Andrew Cagney  <[email protected]>
8653
8654         * symtab.h (find_pc_sect_partial_function): Delete declaration.
8655         * blockframe.c (find_pc_partial_function)
8656         (find_pc_sect_partial_function): Merge into a single
8657         find_pc_partial_function.
8658
8659 2004-03-16  Mark Kettenis  <[email protected]>
8660
8661         * i386bsd-nat.c: s/regno/regnum/g.
8662         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8663         FP0_REGNUM.
8664         (store_inferior_registers): Likewise.
8665
8666 2004-03-16  Mark Kettenis  <[email protected]>
8667
8668         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8669         of i387_fill_fsave.
8670         (store_inferior_registers): Call i387_collect_fsave and
8671         i387_collect_fxsave instead of i387_fill_fsave and
8672         i387_fill_fxsave.
8673
8674 2004-03-15  Andrew Cagney  <[email protected]>
8675
8676         * Makefile.in (frame-unwind.o): Update dependencies.
8677         * frame-unwind.c: Include "gdb_obstack.h".
8678         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8679         parameter.
8680         (append_predicate): Delete function.
8681         (struct frame_unwind_table_entry): New structure.
8682         (struct frame_unwind_table): Replace "sniffer" with "head" and
8683         "tail".
8684         (frame_unwind_append_sniffer): Update.
8685         (frame_unwind_find_by_frame): Update.
8686         (_initialize_frame_unwind): Registe frame_unwind_init using
8687         gdbarch_data_register_pre_init.
8688
8689 2004-03-15  Mark Kettenis  <[email protected]>
8690
8691         * i386bsd-nat.c: Update copyright year.
8692         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8693         define unconditionally.
8694
8695 2004-03-15  Mark Kettenis  <[email protected]>
8696
8697         * i387-tdep.h (i387_collect_fsave): New prototype.
8698         * i387-tdep.c (i387_collect_fsave): New function containing most
8699         of the code from i387_fill_fsave.
8700         (i387_fill_fsave): Call i387_collect_fsave.
8701
8702 2004-03-15  Mark Kettenis  <[email protected]>
8703
8704         * i386-linux-tdep.c: Update copyright year.
8705         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8706         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8707         svr4_ilp32_link_map_offsets instead of
8708         i386_linux_svr4_fetch_link_map_offsets.
8709
8710 2004-03-15  David Carlton  <[email protected]>
8711
8712         Fix for PR c++/1553:
8713         * dwarf2read.c (read_structure_type): Determine type name by
8714         calling determine_class_name.
8715         (determine_class_name): New.
8716         (determine_prefix): Look at TYPE_TAG_NAME and call
8717         determine_class_name when appropriate.
8718         (determine_prefix_aux, class_name): Delete.
8719         (read_namespace): Set die->type.
8720
8721 2004-03-15  Kevin Buettner  <[email protected]>
8722
8723         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8724         unused macro definition.  The definition in target.h (or perhaps
8725         elsewhere) takes precedence.
8726
8727 2004-03-15  Andrew Cagney  <[email protected]>
8728
8729         * ppc-tdep.h: Update copyright.
8730         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8731         function signatures to match "regsets.h".
8732         * ppc-linux-tdep.c: Include "regset.h".
8733         (ELF_GREGSET_SIZE): Delete.
8734         (right_supply_register): New function.
8735         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8736         using right_supply_register.
8737         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8738         functions.
8739         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8740         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8741         (_initialize_ppc_linux_tdep): Do not register
8742         ppc_linux_regset_core_fns.
8743         (ppc_linux_regset_from_core_section): Replace
8744         fetch_core_registers.
8745         (ppc_linux_regset_core_fns): Delete.
8746         * ppc-linux-nat.c: (right_fill_reg): New function.
8747         (supply_gregset): Update call to ppc_linux_supply_gregset.
8748         (fill_gregset): Clear the register set, use right_fill_reg.
8749         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8750         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8751
8752         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8753         unsigned.
8754
8755 2004-03-15  Andrew Cagney  <[email protected]>
8756
8757         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8758         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8759         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8760         and register_gdbarch_data.
8761         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8762         (struct gdbarch_data): Replace "init" by "pre_init" and
8763         "post_init".
8764         * gdbarch.h, gdbarch.c: Re-generate.
8765         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8766         with"obstack", use OBSTACK_ZALLOC.
8767         (dwarf2_frame_ops): Delete.
8768         (dwarf2_frame_set_init_reg): Use gdbarch_data.
8769         (dwarf2_frame_init_reg): Use gdbarch_data.
8770         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8771         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8772         (_initialize_svr4_solib): Update.
8773         * user-regs.c (_initialize_user_regs): Update.
8774         * reggroups.c (_initialize_reggroup): Update.
8775         * regcache.c (_initialize_regcache): Update.
8776         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8777         * libunwind-frame.c (_initialize_libunwind_frame): Update.
8778         * gnu-v3-abi.c (init_gnuv3_ops): Update.
8779         * frame-unwind.c (_initialize_frame_unwind): Update.
8780         * frame-base.c (_initialize_frame_base): Update.
8781         * user-regs.c (user_reg_add): Update.
8782         * reggroups.c (reggroup_add): Update.
8783         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8784         * libunwind-frame.c (libunwind_frame_set_descr): Update.
8785         * frame-unwind.c (frame_unwind_append_sniffer): Update.
8786         * frame-base.c (frame_base_table): Update.
8787         * remote.c (_initialize_remote): Update.
8788         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8789
8790 2004-03-15  Andrew Cagney  <[email protected]>
8791
8792         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8793
8794 2004-03-15  Kevin Buettner  <[email protected]>
8795
8796         * Makefile.in (frv-linux-tdep.o): Add dependencies.
8797         * frv-linux-tdep.c: New file.
8798         * frv-tdep.c (struct gdbarch_tdep): Add new field
8799         ``sigcontext_reg_addr''.
8800         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8801         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8802         (frv_sigramp_frame_sniffer): New functions.
8803         (frv_sigtramp_frame_unwind): New static global.
8804         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
8805         sniffers.
8806         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8807         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8808
8809 2004-03-15  Kevin Buettner  <[email protected]>
8810
8811         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8812         but not via a call to error(), when unable to read memory.
8813
8814 2004-03-15  Kevin Buettner  <[email protected]>
8815
8816         * frv-tdep.c (frv_call_dummy_words): Delete.
8817         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8818
8819 2004-03-15  Andrew Cagney  <[email protected]>
8820
8821         * infrun.c (handle_step_into_function, step_over_function): Only
8822         update and use STEP_FRAME_ID when the system is using legacy
8823         frames.  Update comments.
8824
8825 2004-03-14  Mark Kettenis  <[email protected]>
8826
8827         * amd64-linux-tdep.h: Remove file.
8828         * amd64-linux-tdep.c: Don't include "inferior.h" and
8829         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
8830         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8831         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8832         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8833         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8834         macros.
8835         (user_to_gdb_regmap): Remove variable.
8836         (amd64_linux_gregset_reg_offset): New variable.
8837         (amd64_core_fns): Remove variable.
8838         (fetch_core_registers): Remove function.
8839         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8840         functions.
8841         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8842         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8843         * Makefile.in (amd64_linux_tdep_h): Remove.
8844         (amd64-linux-nat.o): Update dependencies.
8845         (amd64-linux-tdep.o): Update dependencies.
8846
8847         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8848         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8849         functions.
8850         (fetch_inferior_registers, store_inferior_registers): Rewrite.
8851
8852         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8853         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8854
8855 2004-03-14  Daniel Jacobowitz  <[email protected]>
8856
8857         * dwarf2read.c (read_structure_type): Rename from
8858         read_structure_scope.  Don't create a symbol or call process_die.
8859         Return immediately if die->type is set.  Call read_type_die before
8860         dwarf2_add_member_fn.
8861         (process_structure_scope): New function.
8862         (read_enumeration_type, process_enumeration_scope): New functions,
8863         broken out from read_enumeration.  Don't create the enumeration
8864         type if it has already been created.
8865         (read_enumeration): Removed.
8866         (process_die): Call read_structure_type, process_structure_scope,
8867         read_enumeration_type, and process_enumeration_scope.  Just call
8868         new_symbol for base and subrange types.  Add a comment about other
8869         type dies.
8870         (read_type_die): Call read_enumeration_type.
8871         (add_partial_structure, new_symbol): Update comments.
8872
8873 2004-03-13  Stephane Carrez  <[email protected]>
8874
8875         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8876
8877 2004-03-13  Stephane Carrez  <[email protected]>
8878
8879         * tui/tui-win.h (tui_get_cmd_list): Declare.
8880         * tui/tui-win.c (tui_command): New function.
8881         (tui_get_cmd_list): New function.
8882         (_initialize_tui_win): Moved initialization of tui command in
8883         tui_get_cmd_list.
8884
8885         * tui/tui-data.c (init_content_element): Setup new data members.
8886         (init_win_info): Likewise.
8887         (free_content_elements): Free it.
8888         * tui/tui-data.h (struct tui_data_element): Store the register
8889         content to print.
8890         (struct tui_data_info): Keep the current register group.
8891
8892         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8893
8894         * tui/tui-regs.h (tui_show_registers): Update prototype.
8895         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8896         (tui_resize_all): No need to calculate anything for register window.
8897         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8898         (tui_set_register_element, tui_set_general_regs_content): Remove.
8899         (tui_set_special_regs_content): Remove.
8900         (tui_set_general_and_special_regs_content): Remove.
8901         (tui_set_float_regs_content): Remove.
8902         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8903         (tui_set_regs_content): Remove.
8904         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8905         (tui_v_show_registers_command_support): Remove.
8906         (tui_show_registers): Use a reggroup to specify the registers to show.
8907         (tui_show_register_group): New function.
8908         (tui_display_registers_from): Compute the layout of register window
8909         and refresh with new API; be sure to delete old register windows.
8910         (tui_check_register_values): Update to use tui_get_register and
8911         tui_display_data.
8912         (tui_display_register): Just refresh the register window part.
8913         (tui_register_format): Format registers and save in tui_data_element.
8914         (tui_get_register): New to combine tui_reg_value_has_changed and
8915         tui_get_register_raw_value; fix to use the new gdb API.
8916         (tui_show_float_command): Renamed tui_reg_float_command.
8917         (tui_show_general_command): Renamed tui_reg_general_command.
8918         (tui_show_special_command): Renamed tui_reg_system_command.
8919         (_initialize_tui_regs): Remove unused commands.
8920
8921 2004-03-13  Mark Kettenis  <[email protected]>
8922
8923         * NEWS (New native configurations): Mention OpenBSD/amd64.
8924
8925         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8926         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8927         Remove defines.
8928         * config/i386/nm-fbsd64.h: Likewise.
8929         * config/i386/nm-obsd.h: Likewise.
8930         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
8931         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
8932
8933 2004-03-12  Kevin Buettner  <[email protected]>
8934
8935         * frv-tdep.c (set_variant_scratch_registers): New function.
8936         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8937         New constants.
8938
8939         From Richard Sandiford  <[email protected]>:
8940         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8941
8942 2004-03-12  Kevin Buettner  <[email protected]>
8943
8944         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
8945         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8946         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8947         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8948         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8949         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8950         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8951         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8952         definitions from frv-tdep.c to frv-tdep.h.
8953
8954 2004-03-12  Kevin Buettner  <[email protected]>
8955
8956         Add shared library support for FR-V FDPIC ABI:
8957         * Makefile.in (solib-frv.o): Add dependencies.
8958         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8959         New functions.
8960         (frv_push_dummy_call): Add support for FDPIC ABI.
8961         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8962         for FDPIC ABI.
8963         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8964         (frv_fdpic_find_canonical_descriptor): Declare.
8965         * solib-frv.c: New file.
8966         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8967         * config/frv/tm-frv.h (solib.h): Include.
8968
8969 2004-03-12  Kevin Buettner  <[email protected]>
8970
8971         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8972         (frv-tdep.o): Update dependencies.
8973         * frv-tdep.h: New file.
8974         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8975         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8976         constants.
8977         (struct gdbarch_tdep): Add new member ``frv_abi''.
8978         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8979         functions.
8980         (new_variant): Set ``frv_abi'' field.
8981         (gdb_arch_init): Detect FDPIC executables.
8982
8983 2004-03-12  Mark Kettenis  <[email protected]>
8984
8985         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8986         wrapper.
8987
8988 2004-03-11  Andrew Cagney  <[email protected]>
8989
8990         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8991
8992 2004-03-11  Kevin Buettner  <[email protected]>
8993
8994         * solist.h (master_so_list): New function.
8995         * solib.c (master_so_list): Likewise.
8996         * solib-svr4.c (enable_break): Iterate over so_list entries
8997         obtained from master list instead of entries obtained directly
8998         via svr4_current_sos().
8999
9000 2004-03-10  Ben Elliston  <[email protected]>
9001
9002         * MAINTAINERS: Update my mail address.
9003
9004 2004-03-10  Kei Sakamoto  <[email protected]>
9005
9006         * remote-m32r-sdi.c: Support hardware watchpoint.
9007
9008 2004-03-09  Daniel Jacobowitz  <[email protected]>
9009
9010         * user-regs.c: Update copyright years.
9011         (struct user_regs): Rename to gdb_user_regs.
9012         (append_user_reg, builtin_user_regs, user_regs_init)
9013         (user_reg_add, user_reg_map_name_to_regnum)
9014         (usernum_to_user_reg): Update.
9015
9016 2004-03-09  Daniel Jacobowitz  <[email protected]>
9017
9018         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9019         (skip_children): New functions.
9020         (locate_pdi_sibling): Call skip_children.
9021
9022 2004-03-09  Daniel Jacobowitz  <[email protected]>
9023
9024         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9025         * gdbtypes.c (check_typedef): Update comments.
9026
9027 2004-03-09  Daniel Jacobowitz  <[email protected]>
9028
9029         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9030         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9031         pointer.  Update comment about comp_unit_head.
9032         (struct abbrev_info): Shorten two int flags.
9033         (dwarf_alloc_abbrev): Take a CU argument.
9034         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9035         each time through the loop.  Update cleanup argument.
9036         (psymtab_to_symtab_1): Update cleanup call.
9037         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9038         abbrev_obstack.
9039         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9040         Just call obstack_free and clear the pointer.
9041
9042 2004-03-09  Daniel Jacobowitz  <[email protected]>
9043
9044         * infrun.c (handle_inferior_event): Remove short-circuit code for
9045         events in a different thread.
9046
9047 2004-03-09  Daniel Jacobowitz  <[email protected]>
9048
9049         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9050         print the whole transfer.
9051         (initialize_targets): Update description of "set debug target".
9052
9053 2004-03-09  Daniel Jacobowitz  <[email protected]>
9054
9055         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9056
9057 2004-03-08  Nathan J. Williams  <[email protected]>
9058
9059         * MAINTAINERS (write after approval): Add myself.
9060
9061 2004-03-08  Corinna Vinschen  <[email protected]>
9062
9063         * sh-tdep.c (sh_print_registers_info): Use for loop.
9064         Don't skip multiple registers when a float register is encountered.
9065
9066 2004-03-08  Corinna Vinschen  <[email protected]>
9067
9068         Fix PR tdep/1291.
9069         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9070         to official SH documentation.
9071
9072 2004-03-07  Andrew Cagney  <[email protected]>
9073
9074         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9075         unused function.
9076
9077 2004-03-07  Daniel Jacobowitz  <[email protected]>
9078
9079         * arm-tdep.c (thumb_get_next_pc): Handle BX.
9080         (arm_get_next_pc): Handle BX and BLX.
9081
9082 2004-03-07  Andrew Cagney  <[email protected]>
9083
9084         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9085         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9086         HPPA_SP_REGNUM.
9087         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9088         (hppa_target_read_fp): Delete.
9089         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9090         register_virtual_size, max_register_raw_size,
9091         max_register_virtual_size, register_byte, register_size,
9092         target_read_fp, fp_regnum, and register_bytes.  Set register_type
9093         instead of register_virtual_type.
9094         (hppa32_register_type, hppa64_register_type): Replace
9095         hppa32_register_virtual_type and hppa64_register_virtual_type.
9096         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9097         (HPPA_FP_REGNUM): Define.
9098
9099         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9100
9101         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9102         (pa_do_registers_info): Delete.
9103         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9104         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9105         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9106
9107         * infcall.c (legacy_push_dummy_code): Delete #ifdef
9108         GDB_TARGET_IS_HPPA code.
9109         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9110         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9111         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9112         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9113         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9114         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9115         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9116         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9117         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9118         (hppa_frameless_function_invocation, hppa64_store_return_value)
9119         (hppa_store_struct_return, hppa64_extract_return_value)
9120         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9121         (hppa32_call_dummy_length, hppa64_call_dummy_length)
9122         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9123         (find_proc_framesize, deposit_21, restore_pc_queue)
9124         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9125         (rp_saved, pc_in_linker_stub): Delete.
9126
9127         Unconditionally enable 64-bit frame and ABI code.
9128         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9129         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9130         push_dummy_frame, fix_call_dummy, push_arguments,
9131         call_dummy_location, extract_return_value, use_struct_convention,
9132         store_return_value, store_struct_return, saved_pc_after_call,
9133         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9134         frame_chain, frame_chain_valid, frameless_function_invocation,
9135         frame_saved_pc, and pop_frame.
9136
9137         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9138         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9139         (hppa_gdbarch_init): Do not set PC_REGNUM.
9140
9141 2004-03-06  Mark Kettenis  <[email protected]>
9142
9143         * config/alpha/tm-fbsd.h: Remove file.
9144         * config/alpha/fbsd.mt: Tweak comment.
9145         (TM_FILE): Set to tm-alpha.h.
9146
9147 2004-03-05  Andrew Cagney  <[email protected]>
9148
9149         * infrun.c (step_over_function): When non-legacy code, and no
9150         step_frame_id, use the unwinder to get the caller's frame ID.
9151
9152 2004-03-05  Mark Kettenis  <[email protected]>
9153
9154         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9155         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9156         bfd_arch_unknown.  Adjust comment.
9157
9158         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
9159         * i386obsd-tdep.c: Correct spelling in comment.
9160         * i386nbsd-tdep.c: Correct spelling in comment.
9161         * sparc-tdep.c: Correct spelling in comments.
9162
9163 2004-03-05  David Carlton  <[email protected]>
9164
9165         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9166         bug.
9167
9168 2004-03-05  Mark Kettenis  <[email protected]>
9169
9170         * sparc-tdep.c: Fix typo in comment.
9171
9172 2004-03-04  J. Brobecker  <[email protected]>
9173
9174         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9175
9176 2004-03-04  Daniel Jacobowitz  <[email protected]>
9177
9178         * dwarf2read.c: Add comment describing memory lifetimes.
9179         (struct dwarf2_pinfo): Update comment.
9180         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9181         (read_enumeration, new_symbol): Don't use obsavestring.
9182
9183 2004-03-04  Mark Kettenis  <[email protected]>
9184
9185         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9186         instead of amd64_fill_fxsave.
9187         * amd64bsd-nat.c (store_inferior_registers): Likewise.
9188         * amd64fbsd-nat.c (fill_fpregset): Likewise.
9189
9190         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9191         Reorganize code a bit.
9192
9193 2004-03-04  Orjan Friberg  <[email protected]>
9194
9195         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9196         when the frame pointer is pushed.  Don't set the frame pointer's
9197         address on the stack unless it's actually located there.
9198         Set the SRP's address on the stack correctly when the PC is still in
9199         the prologue.
9200         (cris_return_value): New function.
9201         (cris_gdbarch_init): Clear deprecated store_return_value,
9202         extract_return_value.
9203
9204 2004-03-02  Jim Blandy  <[email protected]>
9205
9206         * stabsread.c (reg_value_complaint): The maximum register number
9207         is one less than the number of registers.
9208
9209 2004-03-02  Andrew Cagney  <[email protected]>
9210
9211         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9212         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
9213         trailing comma and redundant assignment of I386_ST0_REGNUM.
9214         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9215         32-bit segment registers.
9216
9217 2004-03-01  Andrew Cagney  <[email protected]>
9218
9219         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9220         use frame_relative_level and get_next_frame.
9221
9222 2004-02-29  Andrew Cagney  <[email protected]>
9223
9224         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9225         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9226         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9227         Delete macro.
9228
9229 2004-02-29  Daniel Jacobowitz  <[email protected]>
9230
9231         * inflow.c (terminal_inferior): Don't give up the terminal if we
9232         previously couldn't get the inferior's terminal state.
9233
9234 2004-02-29  Daniel Jacobowitz  <[email protected]>
9235
9236         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9237         PC_REGNUM.
9238
9239 2004-02-28  Andrew Cagney  <[email protected]>
9240
9241         * NEWS: Refer to GDB 6.1.
9242         * README: Refer to GDB 6.1.
9243         * PROBLEMS: Refer to GDB 6.1.
9244
9245 2004-02-28  Daniel Jacobowitz  <[email protected]>
9246
9247         * thread-db.c (disable_thread_signals): Remove unused function.
9248
9249 2004-02-28  Mark Kettenis  <[email protected]>
9250
9251         * amd64-nat.c: Include "gdb_string.h".
9252         (amd64_collect_native_gregset): Zero-extend the 32-bit
9253         general-purpose registers and %eip.
9254
9255         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9256         * amd64-tdep.c (amd64_collect_fxsave): New function.
9257         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9258
9259         * i387-tdep.h: Update copyright year.
9260         (i387_collect_fxsave): New prototype.
9261         * i387-tdep.c: Update copyright year.
9262         (i387_collect_fxsave): New function containing most of the code
9263         from i387_fill_fxsave.
9264         (i387_fill_fxsave): Call i387_collect_fxsave.
9265
9266 2004-02-28  Andrew Cagney  <[email protected]>
9267
9268         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9269         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
9270
9271 2004-02-28  Mark Kettenis  <[email protected]>
9272
9273         * amd64-tdep.c (amd64_frame_cache): Fix comment.
9274
9275 2004-02-28  Andrew Cagney  <[email protected]>
9276
9277         * utils.c: Use "", instead of <>, to include readline.
9278         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9279         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9280         * source.c, solib.c, exec.c, event-top.c: Ditto.
9281         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9282         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9283         * Makefile.in: Update all dependencies.
9284         (readline_tilde_h, readline_history_h): Define.
9285         (readline_headers): Delete.
9286
9287 2004-02-28  Mark Kettenis  <[email protected]>
9288
9289         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9290         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9291         "config/i386/tm-lx64.h".
9292
9293         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9294         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
9295         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9296
9297 2004-02-28  Andrew Cagney  <[email protected]>
9298
9299         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9300
9301         * breakpoint.c (_initialize_breakpoint): Use
9302         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
9303         Add help to show command.
9304
9305 2004-02-28  Mark Kettenis  <[email protected]>
9306
9307         * i386-nat.c: Reformat to be closer to coding standards.
9308         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9309         `retval'.  Make variables `align' and `size' local to while-loop.
9310         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9311         (_initialize_i386_nat): New prototype.
9312
9313         * tui/tui.c: Include <readline/readline.h> instead of
9314         "readline/readline.h".  Include it after <term.h> and
9315         "gdb_curses.h".
9316
9317 2004-02-27  Andrew Cagney  <[email protected]>
9318
9319         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9320         the new frame unwind code.
9321         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9322         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9323         PCOQ_HEAD_REGNUM.
9324
9325         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9326         "return_value" and "push_dummy_call".
9327         (hppa32_use_struct_convention): Delete unused function.
9328         (hppa32_store_return_value): Delete unused function.
9329         (hppa32_extract_return_value): Delete unused function.
9330         (hppa32_stack_align): Delete function.
9331
9332 2004-02-27  Eli Zaretskii  <[email protected]>
9333
9334         * coffread.c (enter_linenos): Don't let rawptr reference memory
9335         outside linetab[]'s limits.
9336
9337 2004-02-27  Andrew Cagney  <[email protected]>
9338
9339         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9340         inferior stack space - the stack needs to grow upwards.
9341         (hppa32_frame_align): New function.
9342         (hppa64_frame_align): Replace hppa_frame_align.
9343         (hppa_gdbarch_init): Update.
9344
9345 2004-02-26  Orjan Friberg  <[email protected]>
9346
9347         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9348         (dwarf2-frame.h): Include.
9349         (enum cris_regnums): New enum CRIS_FP_REGNUM.
9350         Remove static variables related to ABI setting.
9351         (struct gdbarch_tdep): Remove cris_abi member.
9352         (struct frame_extra_info): Remove.
9353         (cris_unwind_cache, stack_item): New structs.
9354         (cris_frame_unwind, cris_frame_base): New variables.
9355         (push_stack_item, pop_stack_item)
9356         (cris_frame_unwind_cache, cris_frame_this_id)
9357         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9358         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9359         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9360         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9361         (cris_reg_struct_has_addr): New functions.
9362         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9363         (cris_frame_saved_pc, cris_saved_pc_after_call,
9364         (cris_store_struct_return, cris_frameless_function_invocation)
9365         (cris_pop_frame, cris_skip_prologue_main)
9366         (cris_abi_original_store_return_value)
9367         (cris_abi_v2_store_return_value)
9368         (cris_abi_original_extract_return_value)
9369         (cris_abi_v2_extract_return_value)
9370         (cris_abi_original_reg_struct_has_addr)
9371         (cris_abi_v2_reg_struct_has_addr)
9372         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9373         (cris_push_return_address, cris_abi_update): Remove.
9374         (_initialize_cris_tdep): Remove ABI command.
9375         (cris_dump_tdep): Ditto.
9376         (cris_gdbarch_init): Remove ABI command.
9377         Set store_return_value, extract_return_value, push_dummy_code,
9378         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9379         frame_unwind_append_sniffer, frame_base_set_default.
9380         Clear deprecated init_frame_pc, push_arguments, store_return_value,
9381         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9382         sizeof_call_dummy_words, get_saved_register, push_return_address,
9383         pop_frame, store_struct_return, frame_init_saved_regs,
9384         init_extra_frame_info, frameless_function_invocation, frame_chain,
9385         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9386         dummy_write_sp.
9387
9388 2004-02-26  Jeff Johnston  <[email protected]>
9389
9390         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9391         * valprint.c (print_hex_chars): Change from static to external.
9392         (print_char_chars): New function.
9393         * printcmd.c (print_scalar_formatted): For integer and enum types
9394         that are longer than LONGEST, perform processing via appropriate
9395         print_*_chars routines.
9396
9397 2004-02-26  Andrew Cagney  <[email protected]>
9398
9399         * Makefile.in: Update dependencies.
9400         Changes from Ulrich Weigand,
9401         * s390-tdep.c: Include "dwarf2-frame.h".
9402         (s390_dwarf2_frame_init_reg): New function.
9403         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9404         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
9405
9406 2004-02-26  Jeff Johnston  <[email protected]>
9407
9408         * breakpoint.c (pending_break_support): New setting variable.
9409         (break_command_1): Account for pending_break_support setting
9410         when creating pending breakpoints.
9411         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9412         (_initialize_breakpoint): Add "set breakpoint pending" and
9413         "show breakpoint pending" commands.
9414
9415 2004-02-26  Andrew Cagney  <[email protected]>
9416
9417         Fix PR i18n/1570.
9418         * charset.c (backslashable, backslashed, represented): Remove 'e'
9419         from list of escaped characters, not part of ISO-C.
9420
9421 2004-02-25  J. Brobecker  <[email protected]>
9422
9423         From Peter Schauer <[email protected]>:
9424         * tui/tui.c: Move system header includes after local includes.
9425         Fixes a build failure on solaris systems.
9426
9427 2004-02-25  J. Brobecker  <[email protected]>
9428
9429         * configure.in: Refine the previous change.
9430         * configure: Regenerate.
9431
9432 2004-02-25  Mark Kettenis  <[email protected]>
9433
9434         * amd64-tdep.h: Renamed from x86-64-tdep.h.
9435         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
9436         "amd64-tdep.h" instead of "x86-64-tdep.h".
9437         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9438         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9439         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
9440         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9441         and "x86-64-tdep.c".
9442         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
9443         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9444         and "x86-64-tdep.c".
9445         * amd64bsd-nat.c: Update copyright year.
9446         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9447         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9448         "x86-64-tdep.h".
9449         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9450         "x86-64-tdep.h".
9451         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9452         "x86-64-tdep.h".
9453         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9454         "x86-64-tdep.h".
9455         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9456         "x86-64-tdep.h".
9457         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9458         "x86-64-tdep.h".
9459         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9460         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9461         * Makefile.in (amd64_linux_tdep_h): Renamed from
9462         x86_64_linux_tdep_h.
9463         (amd64_tdep_h): Renamed from x86_64_tdep_h.
9464         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9465         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9466         (amd64obsd-tdep.o): Update dependencies.
9467         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9468         dependencies.
9469         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9470         dependencies.
9471         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9472         amd64-linux-nat.c amd64-linux-tdep.c.
9473         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9474         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9475         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9476         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9477         amd64-tdep.o and amd64-linux-tdep.o.
9478         (TM_FILE): Set to tm-linux64.h.
9479         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9480         (NAT_FILE): Set to nm-linux64.h.
9481         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9482         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9483         amd64-tdep.o.
9484         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9485         amd64-tdep.o.
9486         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9487         amd64-tdep.o.
9488
9489 2004-02-25  Roland McGrath  <[email protected]>
9490
9491         * remote.c (remote_protocol_qPart_auxv): New variable.
9492         (init_all_packet_configs): Initialize it.
9493         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9494         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9495         (show_remote_cmd): Call it.
9496         (_initialize_remote): Initialize commands.
9497         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9498         service TARGET_OBJECT_AUXV requests.
9499
9500 2004-02-25  J. Brobecker  <[email protected]>
9501
9502         * configure.in: Make sure that the wborder function is available.
9503         Otherwise, search for it in the cur_colr library.
9504         * configure: Regenerate.
9505
9506 2004-02-25  Andrew Cagney  <[email protected]>
9507
9508         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9509
9510 2004-02-25  Mark Kettenis  <[email protected]>
9511
9512         * config/i386/tm-x86-64linux.h: Tweak comments.
9513
9514 2004-02-25  Richard Sandiford  <[email protected]>
9515
9516         * MAINTAINERS: Add self to write-after-approval list.
9517
9518 2004-02-25  Andrew Cagney  <[email protected]>
9519
9520         PR cli/1566.  Problem found, and fix suggested by David Allan.
9521         * cli/cli-script.c (execute_control_command): Unconditionally
9522         install a cleanup.  Default "ret" to "invalid_control".  Use
9523         "break" instead of "return" to escape from the switch.
9524
9525 2004-02-24  J. Brobecker  <[email protected]>
9526
9527         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9528         with the lines macro defined in term.h on AiX.
9529         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9530         a collision with the label_width macro defined in term.h on AiX.
9531
9532 2004-02-23  David Mosberger  <[email protected]>
9533
9534         Committed by Kevin Buettner <[email protected]>.
9535
9536         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9537         * ia64-tdep.c (ia64_write_pc): Make it a global function.
9538         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9539         instead of ia64_write_pc().
9540         * ia64-linux-tdep.c (regcache.h): Include.
9541         (ia64_linux_write_pc): New function.
9542
9543 2004-02-23  Roland McGrath  <[email protected]>
9544
9545         * auxv.c (info_auxv_command): Fix typos in error messages.
9546
9547 2004-02-23  Mark Kettenis  <[email protected]>
9548
9549         * x86-64-tdep.h: Tweak comment.
9550         (enum amd64_regnum): New.
9551         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9552         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9553         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9554         (X86_64_XMM1_REGNUM): Removed.
9555         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9556         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9557         prototypes for renamed functions.
9558         * x86-64-tdep.c: Fix typo.
9559         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9560         register numbers.
9561         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9562         Use constants from `enum amd64_regnum' for register numbers.
9563         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9564         (amd64_analyze_prologue, amd64_frame_cache,
9565         amd64_sigtramp_frame_cache): Use constants from `enum
9566         amd64_regnum' for register numbers.
9567         (amd64_supply_fpregset): Adjust for renamed functions.
9568         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
9569         `enum amd64_regnum' for register numbers.
9570         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9571         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9572         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9573         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9574         (amd64_linux_fill_gregset): Adjust for renamed macros.
9575         (fetch_core_registers): Adjust for renamed functions.
9576         (amd64_linux_init_abi): Adjust for renamed functions.
9577         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9578         renamed functions.
9579         * amd64-nat.c: Adjust for renamed macros.
9580         * amd64bsd-nat.c (fetch_inferior_registers)
9581         (store_inferior_registers): Use constants from `enum amd64_regnum'
9582         for register numbers.  Adjust for renamed variables.
9583         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9584         renamed variables.
9585         (_initialize_amd64fbsd_nat): Use constants from `enum
9586         amd64_regnum' for register numbers.
9587         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9588         `enum amd64_regnum' for register numbers.
9589         (amd64fbsd_init_abi): Adjust for renamed functions.
9590         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9591         `enum amd64_regnum' for register numbers.
9592         (amd64nbsd_init_abi): Adjust for renamed functions.
9593         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9594         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9595         `enum amd64_regnum' for register numbers.
9596         (amd64obsd_init_abi): Adjust for renamed functions.
9597         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9598
9599 2004-02-23  Jeff Johnston  <[email protected]>
9600
9601         * breakpoint.c (print_one_breakpoint): Do not output spaces
9602         after printing <PENDING> for a pending breakpoint.
9603
9604 2004-02-23  Jeff Johnston  <[email protected]>
9605
9606         * printcmd.c (print_scalar_formatted): Initialize val_long
9607         to remove compiler warning message.
9608
9609 2004-02-23  Jeff Johnston  <[email protected]>
9610
9611         * defs.h (nquery, yquery): New prototypes.
9612         * breakpoint.c (break_command_1): Use new nquery interface.
9613         * utils.c (defaulted_query, nquery, yquery): New functions.
9614
9615 2004-02-23  Andrew Cagney  <[email protected]>
9616
9617         * hppa-tdep.c (hppa_frame_align): New function.
9618         (hppa32_push_dummy_call): New function.
9619         (hppa64_push_dummy_call): New function.
9620         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9621         disabled.
9622
9623         * infcall.c (legacy_push_dummy_code): Don't call deprecated
9624         FIX_CALL_DUMMY when push_dummy_call is available.
9625         (call_function_by_hand, push_dummy_code): Ditto.
9626
9627 2004-02-22  Andrew Cagney  <[email protected]>
9628
9629         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9630         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9631         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9632         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9633         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9634         call_dummy_location to ON_STACK.
9635
9636 2004-02-22  Mark Kettenis  <[email protected]>
9637
9638         * x86-64-linux-tdep.c: Tweak comment.
9639         (amd64_linux_supply_gregset): Renamed from
9640         x86_64_linux_supply_gresget.
9641         (amd64_linux_fill_gregset): Renamed from
9642         x86_64_linux_fill_gregset.
9643         (fetch_core_registers): Adjust for renamed functions.
9644         (amd64_core_fns): Renamed from x86_64_core_fns.
9645         (amd64_linux_sigtramp_start): Renamed from
9646         x86_64_linux_sigtramp_start.
9647         (amd64_linux_pc_in_sigtramp): Renamed from
9648         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
9649         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9650         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9651         (amd64_linux_sigcontext_addr): Renamed from
9652         x86_64_linux_sigcontext_addr.
9653         (amd64_linux_sc_reg_offset): Renamed from
9654         x86_64_linux_sc_reg_offset.
9655         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9656         Adjust for renamed functions and variables.
9657         (_initialize_amd64_linux_tdep): Renamed from
9658         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
9659         variables.
9660         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
9661         Adjust for renamed functions.
9662
9663         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9664         from x86_64_linux_gregset64_reg_offset.
9665         (amd64_linux_gregset32_reg_offset): Rename from
9666         x86_64_linux_gregset64_reg_offset.
9667         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9668         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9669         (amd64_linux_dr_set_control): Renamed from
9670         x86_64_linux_dr_set_control.  Adjust for renamed functions.
9671         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9672         Adjust for renamed functions.
9673         (amd64_linux_dr_reset_addr): Renamed from
9674         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9675         (amd64_linux_dr_get_status): Renamed from
9676         x86_64_linux_dr_get_status.  Adjust for renamed functions.
9677         (_initialize_amd64_linux_nat): Renamed from
9678         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
9679         functions.
9680         * config/i386/nm-x86-64linux.h: Update copyright year.
9681         Adjust for renamed functions.
9682
9683         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9684         amd64fbsd_sigtramp_start.
9685         (amd64fbsd_sigtramp_end_addr): Renamed from
9686         amd64fbsd_sigtramp_end.
9687         (amd64fbsd_init_abi): Adjust for renamed variables.
9688         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9689         variables.
9690         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9691         amd64fbsd_sigtramp_start.
9692         (amd64fbsd_sigtramp_end_addr): Renamed from
9693         amd64fbsd_sigtramp_end.
9694
9695 2004-02-22  Andrew Cagney  <[email protected]>
9696
9697         * hppa-tdep.c (hppa32_return_value): New function.
9698         (hppa64_return_value): New function.
9699         (hppa_gdbarch_init): Set return_value; keep disabled.
9700
9701         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9702         struct-return and inferior function call methods.
9703
9704         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9705         "frame-base.h".
9706         (struct hppa_frame_cache): Define.
9707         (hppa_frame_cache, hppa_frame_this_id): New functions.
9708         (hppa_frame_prev_register): New function.
9709         (hppa_frame_unwind, hppa_frame_base): New variables.
9710         (hppa_frame_unwind_sniffer): New function.
9711         (hppa_frame_base_address, hppa_unwind_pc): New function.
9712         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9713         sniffer, and frame base sniffer; keep disabled.
9714         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9715         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9716
9717         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9718         to predicates for "seriously old code".
9719
9720         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9721         runtime if(0).
9722
9723         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9724         unsigned.
9725         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9726
9727         * config/pa/tm-hppa.h: Update copyright.
9728         (DEPRECATED_INIT_FRAME_PC): Delete macro.
9729         (deprecated_init_frame_pc_default): Delete declaration.
9730         (hppa_frame_init_saved_regs): Delete declaration.
9731         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9732         * hppa-tdep.c: Include "arch-utils.h".
9733         (hppa_gdbarch_init): Set deprecated init_frame_pc
9734         and deprecated frame_init_saved_regs.
9735         (hppa_frame_init_saved_regs): Make static.
9736
9737 2004-02-22  Mark Kettenis  <[email protected]>
9738
9739         Remove old 386BSD support.
9740         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9741         * configure.host: Remove i[34567]86-*-bsd*.
9742         * configure.tgt: Remove i[34567]86-*-bsd*.
9743         * i386b-nat.c: Removed.
9744         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9745         (i386b-nat.o): Remove dependencies.
9746
9747         * config/i386/i386bsd.mh: Removed.
9748         * config/i386/i386bsd.mt: Removed.
9749         * config/i386/nm-i386bsd.h: Removed.
9750         * config/i386/tm-i386bsd.h: Removed.
9751         * config/i386/xm-i386bsd.h: Removed.
9752
9753         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9754
9755         * amd64fbsd-tdep.c: Include "solib-svr4.h".
9756         (amd64fbsd_init_abi): Set link map offsets.
9757         * amd64nbsd-tdep.c: Include "slib-svr4.h".
9758         (amd64nbsd_init_abi): Set link map offsets.
9759         * amd64obsd-tdep.c: Include "solib-svr4.h".
9760         (amd64obsd_init_abi): Set link map offsets.
9761         * i386fbsd-tdep.c: Include "solib-svr4.h".
9762         (i386fbsd_init_abi): Set link map offsets.
9763         * i386nbsd-tdep.c: Include "solib-svr4.h".
9764         (i386nbsdelf_init_abi): Set link map offsets.
9765         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9766         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9767         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9768         solib-legacy.o and core-aout.o. Reformat.
9769         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9770         solib-svr4.o, solib-legacy.o.  Reformat.
9771         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
9772         * config/i386/nbsdelf.mh: Reformat.
9773         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9774         solib-svr4.o, solib-legacy.o and corelow.o.
9775         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9776         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9777         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
9778         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9779         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9780         (TM_FILE): Set to tm-fbsd.h.
9781         * config/i386/nbsd.mt (TDEPFILES): Reformat.
9782         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9783         solib-svr4.o.
9784         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9785         solib-svr4.o.
9786         (TM_FILE): Set to nm-nbsd.h.
9787         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
9788         Simplify shared library support.  Don't include "elf/common.h".
9789         (SVR4_SHARED_LIBS): Don't define.
9790         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
9791         "solib.h".
9792         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9793         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
9794         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
9795         Don't include "i386/tm-i386.h".  Include "solib.h".
9796         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
9797         Don't include "i386/tm-i386.h".
9798         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
9799         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
9800         Include "i386/xm-i386.h".
9801         (HOST_LONG_DOUBLE_FORMAT): Remove.
9802
9803         Fix OpenBSD/i386 sigtramp recognition.
9804         * i386-tdep.h: Update copyright year.
9805         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9806         (i386bsd_sigtramp_end): New prototypes.
9807         (i386fbsd_sigtramp_start_addr): Renamed from
9808         i386fbsd_sigtramp_start.
9809         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9810         (i386obsd_sigtramp_start_addr): Renamed from
9811         i386obsd_sigtramp_start.
9812         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9813         * i386bsd-tdep.c: Update copyright year.
9814         (i386bsd_pc_in_sigtramp): Make public.
9815         * i386fbsd-nat.c: Update copyright year.
9816         (_initialize_i386fbsd_nat): Adjust for renamed variables.
9817         * i386fbsd-tdep.c: Update copyright year.
9818         (i386fbsd_sigtramp_start_addr): Renamed from
9819         i386fbsd_sigtramp_start.
9820         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9821         (i386fbsdaout_init_abi): Adjust for renamed variables.
9822         * i386obsd-nat.c: Update copyright year.
9823         (_initialize_i386obsd_nat): Adjust for renamed variables.
9824         * i386obsd-tdep.c: Include "target.h".
9825         (i386obsd_page_size): New variable.
9826         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9827         (i386obsd_sigtramp_end): New functions.
9828         (i386obsd_sigtramp_start_addr): Renamed from
9829         i386obsd_sigtramp_start.
9830         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9831         (i386obsd_init_abi): Adjust for renamed variables.  Set
9832         pc_in_sigtramp, sigtramp_start and sigtramp_end.
9833         * Makefile.in (i386obsd-tdep.o): Update dependencies.
9834
9835         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9836         trampoline change in OpenBSD kernel.
9837
9838         * amd64-nat.c: Update copyright year.
9839         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9840         architecture from REGCACHE.
9841
9842         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9843         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9844
9845 2004-02-21  Mark Kettenis  <[email protected]>
9846
9847         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9848         i[34567]86-*-openbsd3.[0-3].
9849         * config/i386/obsdaout.mh: New file.
9850
9851         * config/i386/obsd.mh (MH_FLAGS): Remove.
9852
9853         Fix PR build/1549.
9854         * i386obsd-tdep.c: Update copyright years.  Include
9855         "solib-svr4.h".
9856         (i386obsd_init_abi): Don't set regset_from_core_section here.
9857         (i386obsd_aout_init_abi): New function.  Set
9858         regset_from_core_section here.
9859         (i386obsd_elf_init_abi): New function.
9860         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9861         * Makefile.in (i386obsd-tdep.o): Update dependecies.
9862         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9863         (TM_FILE): Set to tm-nbsd.h.
9864
9865         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9866         solib-sunos.o.
9867
9868         * solib-svr4.h: Update copyright year.
9869         (svr4_ilp32_fetch_link_map_offsets)
9870         (svr4_lp64_fetch_link_map_offsets): New prototype.
9871         * solib-svr4.c: Update copyright year.
9872         (svr4_ilp32_fetch_link_map_offsets)
9873         (svr4_lp64_fetch_link_map_offsets): New function.
9874
9875 2004-02-20  Daniel Jacobowitz  <[email protected]>
9876
9877         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9878         to the partial symbol table.
9879
9880 2004-02-20  J. brobecker  <[email protected]>
9881
9882         * PROBLEMS: Add description of problem documented under gdb/1560.
9883
9884 2004-02-20  Mark Kettenis  <[email protected]>
9885
9886         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
9887         comments.
9888         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9889         functions.
9890         (amd64obsd_init_abi): Reorder initializations.  Use
9891         amd64obsd_r_reg_offset to initialize the general-purpose register
9892         set details.  Set regset_from_core_section.
9893         (_initialize_amd64obsd_tdep): Rename from
9894         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
9895         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9896         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9897
9898         * NEWS (New native configurations): Mention OpenBSD/alpha.
9899         * configure.tgt: Add alpha*-*-openbsd*.
9900         * configure.host: Add alpha*-*-openbsd*.
9901         * alphanbsd-tdep.c: Update copyright year.
9902         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9903
9904 2004-02-20  Andrew Cagney  <[email protected]>
9905
9906         Fix PR tdep/1372.
9907         * configure.tgt: Delete target "none-*-*".
9908         * configure.host: Delete host "none-*-*".
9909         * config/none/none.mh: Delete file.
9910         * config/none/none.mt: Delete file.
9911         * config/none/xm-none.h: Delete file.
9912         * config/none/tm-none.h: Delete file.
9913         * config/none/nm-none.h: Delete file.
9914
9915 2004-02-19  Fred Fish  <[email protected]>
9916
9917         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9918         cache->uses_fp prior to setting it.
9919
9920 2004-02-19  Fred Fish  <[email protected]>
9921
9922         Fix for PR breakpoint/1558.
9923         * sh-tdep.c (IS_JSR): New macro.
9924         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9925
9926 2004-02-19  Jim Blandy  <[email protected]>
9927
9928         * findvar.c (value_from_register): Doc fix.
9929
9930 2004-02-19  Jeff Johnston  <[email protected]>
9931
9932         * printcmd.c (print_scalar_formatted): Do not check for sizeof
9933         type being greater than sizeof of host's LONGEST.  Always use
9934         unpack_long() unless format 'f' chosen.
9935
9936 2004-02-19  Joel Brobecker  <[email protected]>
9937
9938         Committed by Elena Zannoni  <[email protected]>
9939
9940         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9941         contains a symbol wich is the best, non-exact match for the given
9942         pc.  Update comments.
9943
9944 2004-02-19  Elena Zannoni  <[email protected]>
9945
9946         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9947         macro, which was part of the now removed Mach 3 port.
9948         * utils.c (request_quit): Ditto.
9949
9950 2004-02-18  Mark Kettenis  <[email protected]>
9951
9952         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9953         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9954
9955 2004-02-18  Ulrich Weigand <[email protected]>
9956
9957         Committed by Mark Kettenis  <[email protected]>.
9958
9959         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9960         Define.
9961
9962 2004-02-18  Andrew Cagney  <[email protected]>
9963
9964         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9965         CONFIG_INSTALL and CONFIG_UNINSTALL.
9966         * configure: Re-generate.
9967         * interps.h (INTERP_TUI): Define.
9968         * Makefile.in: Update dependencies.
9969         (TUI): New macro.
9970         (tui-main.o): Specify dependencies.
9971         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9972         * tui/tui-main.c: New file.
9973
9974 2004-02-18  Mark Kettenis  <[email protected]>
9975
9976         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9977         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9978         dependencies.
9979         * configure.host: Add x86_64-*-openbsd*.
9980         * configure.tgt: Add x86_64-*-openbsd*.
9981         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9982
9983         * tui/tui.c: Don't include <malloc.h>.
9984
9985         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9986         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9987         amd64nbsd-tdep.c.
9988
9989         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9990         static.  Remove extraneous whitespace.
9991         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9992         static.
9993
9994 2004-02-17  Jim Blandy  <[email protected]>
9995
9996         * findvar.c (value_from_register): Doc fix.
9997
9998 2004-02-17  Ulrich Weigand <[email protected]>
9999
10000         Committed by Jim Blandy  <[email protected]>.
10001
10002         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10003         CORE_ADDR as type for selectors.  Correct types for GNU run time
10004         message lookup function to use double indirection.
10005         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10006         * objc-lang.h (lookup_child_selector): Adapt prototype.
10007
10008         * s390-nat.c (SUBOFF): New macro.
10009         (supply_gregset, fill_gregset): Use it to handle debugging
10010         of 32-bit exectuables running under a 64-bit kernel.
10011         * s390-tdep.c: Include "solib-svr4.h".
10012         (s390_svr4_fetch_link_map_offset): New function.
10013         (s390x_svr_fetch_link_map_offset): Likewise.
10014         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10015         * Makefile.in (s390-tdep.o): Update dependencies.
10016
10017         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10018         "frame-unwind.h".
10019         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
10020         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10021         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10022         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10023         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10024         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10025         S390_SIGNAL_FRAMESIZE,
10026         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10027         (struct frame_extra_info): Remove.
10028         (s390_memset_extra_info): Remove.
10029         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10030         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10031         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10032         (is_rse): Renamed to ...
10033         (is_rsy): ... this.  Support long displacements.
10034         (is_rxe): Renamed to ...
10035         (is_rxy): ... this.  Support long displacements.
10036         (compute_x_addr): Support long displacements.
10037         (struct s390_prologue_data): New data type.
10038         (s390_on_stack): Change API to use struct s390_prologue_data.
10039         (s390_store): Reimplement.
10040         (s390_load): New function.
10041         (s390_get_signal_frame_info): Remove.
10042         (s390_get_frame_info): Remove, replace by ...
10043         (s390_analyze_prolog): ... this new function.
10044         (s390_check_function_end): Remove.
10045         (s390_function_start): Remove.
10046         (s390_frameless_function_invokation): Remove.
10047         (s390_is_sigreturn): Remove.
10048         (s390_init_frame_pc_first): Remove.
10049         (s390_init_frame_extra_info): Remove.
10050         (s390_frame_init_saved_regs): Remove.
10051         (s390_frame_saved_pc_nofix): Remove.
10052         (s390_frame_saved_pc): Remove.
10053         (s390_frame_chain): Remove.
10054         (s390_fp_regnum, s390_read_fp): Remove.
10055         (s390_pop_frame_regular, s390_pop_frame): Remove.
10056         (s390_saved_pc_after_call): Remove.
10057         (s390_skip_prologue): Reimplement.
10058         (s390_in_function_epilogue_p): Support long displacements.
10059         (struct s390_unwind_cache): New data structure.
10060         (s390_frame_unwind_cache): New function.
10061         (s390_prologue_frame_unwind_cache): Likewise.
10062         (s390_backchain_frame_unwind_cache): Likewise.
10063         (s390_frame_this_id, s390_frame_prev_register): Likewise.
10064         (s390_frame_unwind): Define.
10065         (s390_frame_sniffer): New function.
10066         (struct s390_pltstub_unwind_cache): New data structure.
10067         (s390_pltstub_frame_unwind_cache): New function.
10068         (s390_pltstub_frame_this_id): Likewise.
10069         (s390_pltstub_frame_prev_register): Likewise.
10070         (s390_pltstub_frame_unwind): Define.
10071         (s390_pltstub_frame_sniffer): New function.
10072         (struct s390_sigtramp_unwind_cache): New data structure.
10073         (s390_sigtramp_frame_unwind_cache): New function.
10074         (s390_sigtramp_frame_this_id): Likewise.
10075         (s390_sigtramp_frame_prev_register): Likewise.
10076         (s390_sigtramp_frame_unwind): Define.
10077         (s390_sigtramp_frame_sniffer): New function.
10078         (s390_frame_base_address, s390_local_base_address): New functions.
10079         (s390_frame_base): Define.
10080         (s390_unwind_pc, s390_unwind_sp): New function.
10081         (s390_push_dummy_call): Use new frame base location.
10082         (s390_unwind_dummy_id): Likewise.
10083         (s390_gdbarch_init): Remove calls to:
10084         set_gdbarch_frameless_function_invocation,
10085         set_gdbarch_deprecated_init_frame_pc,
10086         set_gdbarch_deprecated_frame_chain,
10087         set_gdbarch_deprecated_frame_init_saved_regs,
10088         set_gdbarch_deprecated_pop_frame,
10089         set_gdbarch_deprecated_init_extra_frame_info,
10090         set_gdbarch_deprecated_init_frame_pc_first,
10091         set_gdbarch_deprecated_target_read_fp,
10092         set_gdbarch_deprecated_frame_saved_pc,
10093         set_gdbarch_deprecated_saved_pc_after_call,
10094         set_gdbarch_deprecated_fp_regnum.
10095         Add calls to:
10096         set_gdbarch_in_solib_call_trampoline,
10097         frame_unwind_append_sniffer,
10098         frame_base_set_default,
10099         set_gdbarch_unwind_pc,
10100         set_gdbarch_unwind_sp.
10101         * Makefile.in (s390-tdep.o): Update dependencies.
10102
10103         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10104         (S390_STACK_FRAME_OVERHEAD): Remove.
10105         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10106         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10107         (s390_promote_integer_argument): Remove.
10108         (s390_cannot_extract_struct_value_address): Remove.
10109         (s390_use_struct_convention, s390_store_struct_return): Remove.
10110         (s390_extract_return_value, s390_store_return_value): Remove.
10111         (s390_return_value_convention, s390_return_value): New functions.
10112         (is_float_singleton): Handle typedefs.
10113         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10114         Remove, replace by ...
10115         (s390_function_arg_pass_by_reference, s390_function_arg_float,
10116         s390_function_arg_integer): ... these new functions.
10117         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10118         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10119         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10120         Fill in tdep->abi.
10121         Remove calls to:
10122         set_gdbarch_deprecated_store_struct_return,
10123         set_gdbarch_deprecated_extract_return_value,
10124         set_gdbarch_deprecated_store_return_value,
10125         set_gdbarch_use_struct_convention,
10126         set_gdbarch_extract_struct_value_address,
10127         set_gdbarch_deprecated_pc_in_call_dummy,
10128         set_gdbarch_deprecated_push_arguments,
10129         set_gdbarch_deprecated_save_dummy_frame_tos,
10130         set_gdbarch_deprecated_push_return_address,
10131         set_gdbarch_deprecated_sizeof_call_dummy_words,
10132         set_gdbarch_deprecated_call_dummy_words,
10133         set_gdbarch_deprecated_dummy_write_sp.
10134         Add calls to:
10135         set_gdbarch_push_dummy_call,
10136         set_gdbarch_unwind_dummy_id,
10137         set_gdbarch_return_value.
10138
10139         * config/s390/nm-linux.h: Update comments.
10140         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10141         (STOPPED_BY_WATCHPOINT): Redefine.
10142         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10143         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10144         (s390_stopped_by_watchpoint): Likewise.
10145         (watch_area_cnt): Remove.
10146         * s390-nat.c: Update comments.
10147         (watch_area): Remove typedef.
10148         Global replace watch_area by struct watch_area.
10149         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10150         (s390_stopped_by_watchpoint): Remove pid argument,
10151         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
10152         (s390_fix_watch_points): Remove pid argument,
10153         use s390_inferior_tid.  Recompute area spanned by watchpoints.
10154         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10155         argument.  Reimplement.
10156
10157         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
10158         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10159         (FETCH_INFERIOR_REGISTERS): Define.
10160         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10161         core-regset.o.
10162         * config/s390/s390x.mt: Remove.
10163         * config/s390/tm-s390.h: Remove.
10164         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10165         (TARGET_ELF64): Remove.
10166         (SKIP_TRAMPOLINE_CODE): Do not undefine.
10167         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10168         s390*-*-* case; always set gdb_target to s390.
10169         * regformats/reg-s390.dat: Remove control registers.
10170         * regformats/reg-s390x.dat: Likewise.
10171         * s390-tdep.h: New file.
10172         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10173         Include "inferior.h" and "s390-tdep.h".
10174         Remove private definition of offsetof.
10175         (s390_register_u_addr): Remove.
10176         (regmap_gregset, regmap_fpregset): Define.
10177         (supply_gregset, fill_gregset): Reimplement.
10178         (supply_fpregset, fill_fpregset): Likewise.
10179         (s390_inferior_tid): New function.
10180         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10181         (fetch_inferior_registers, store_inferior_registers): Likewise.
10182         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
10183         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
10184         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10185         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10186         (struct gdbarch_tdep): Define.
10187         (struct s390_register_info): Define.
10188         (s390_register_info): New variable.
10189         (s390_register_name): Reimplement.
10190         (s390_register_type): New function.
10191         (s390_register_raw_size, s390x_register_raw_size): Remove.
10192         (s390_cannot_fetch_register): Remove.
10193         (s390_register_byte): Remove.
10194         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10195         (s390_dwarf_regmap): New variable.
10196         (s390_dwarf_reg_to_regnum): New function.
10197         (s390_stab_reg_to_regnum): Remove.
10198         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10199         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10200         (s390_convert_register_p): Likewise.
10201         (s390_register_to_value, s390_value_to_register): Likewise.
10202         (s390_register_reggroup_p): Likewise.
10203         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10204         s390_gregset, s390x_gregset, s390_fpregset): New variables.
10205         (s390_supply_regset, s390_regset_from_core_section): New functions.
10206         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10207         (S390_FPR_SIZE): Likewise.
10208         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
10209         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10210         (S390_NUM_GPRS): Move here from tm-s390.h.
10211         (S390_NUM_FPRS): Likewise.
10212         (s390_in_function_epilogue_p): New function.
10213         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10214         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10215         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10216         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10217         Replace S390_FP_REGNUM by S390_SP_REGNUM.
10218         Remove calls to:
10219         set_gdbarch_deprecated_max_register_raw_size,
10220         set_gdbarch_deprecated_max_register_virtual_size,
10221         set_gdbarch_deprecated_register_byte,
10222         set_gdbarch_cannot_fetch_register,
10223         set_gdbarch_cannot_store_register,
10224         set_gdbarch_deprecated_register_size,
10225         set_gdbarch_deprecated_register_raw_size,
10226         set_gdbarch_deprecated_register_virtual_size,
10227         set_gdbarch_deprecated_register_virtual_type,
10228         set_gdbarch_deprecated_register_bytes.
10229         Add calls to:
10230         set_gdbarch_num_pseudo_regs,
10231         set_gdbarch_register_type,
10232         set_gdbarch_convert_register_p,
10233         set_gdbarch_register_to_value,
10234         set_gdbarch_value_to_register,
10235         set_gdbarch_register_reggroup_p,
10236         set_gdbarch_regset_from_core_section,
10237         set_gdbarch_pseudo_register_read,
10238         set_gdbarch_pseudo_register_write,
10239         set_gdbarch_in_function_epilogue_p.
10240         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10241         (s390_tdep_h): New variable.
10242
10243 2004-02-17  Jim Blandy  <[email protected]>
10244
10245         * findvar.c (value_from_register): If the type has no length, just
10246         return an acceptable value --- don't report an internal error.
10247
10248         * stabsread.c (read_type): If we find any type numbers that are
10249         forward references, complain if the references aren't resolved by
10250         the time we're finished reading.
10251         (cleanup_undefined_types): Make error message more appropriate for
10252         a complaint.
10253
10254 2004-02-17  Elena Zannoni  <[email protected]>
10255
10256         * Makefile.in (defs_h): Remove dependency on progress_h.
10257         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10258         progress.h.
10259         * main.c (captured_main): Delete use of START_PROGRESS and
10260         END_PROGRESS.
10261
10262 2004-02-17  Elena Zannoni  <[email protected]>
10263
10264         * objfiles.c (terminate_minimal_symbol_table): Add back
10265         initialization of MSYMBOL_TYPE.
10266
10267 2004-02-17  David Mosberger  <[email protected]>
10268
10269         Committed by Andrew Cagney.
10270         * Makefile.in (ia64_tdep_h): New macro.
10271         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10272         (ia64-tdep.o): Likewise.
10273         * ia64-tdep.h: New file.
10274         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
10275         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10276         (ia64_aix_sigcontext_register_address): Likewise.
10277         (ia64_linux_getunwind_table): Delete declaration.
10278         * ia64-linux-tdep.c: Likewise.
10279
10280 2004-02-17  Corinna Vinschen  <[email protected]>
10281
10282         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10283         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10284         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10285
10286 2004-02-17  Andrew Cagney  <[email protected]>
10287
10288         * symtab.c (skip_prologue_using_sal): New function.
10289         * symtab.h (skip_prologue_using_sal): Declare.
10290         * frv-tdep.c: Include "symtab.h".
10291         (skip_prologue_using_sal): Delete function.
10292         * mips-tdep.c (skip_prologue_using_sal): Delete function.
10293         * rs6000-tdep.c (refine_prologue_limit): Mention
10294         skip_prologue_using_sal.
10295         * ia64-tdep.c (refine_prologue_limit): Ditto.
10296         * Makefile.in: Update dependencies.
10297
10298 2004-02-16  Andrew Cagney  <[email protected]>
10299
10300         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10301         START_INFERIOR_TRAPS_EXPECTED.
10302         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10303         START_INFERIOR_TRAPS_EXPECTED.
10304         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10305         Delete macro.
10306         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10307         macro, moved to "nm-osf.h".  Update copyright.
10308         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10309         update copyright.
10310
10311         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10312         and function replacing FRAMELESS_FUNCTION_INVOCATION.
10313         * blockframe.c (legacy_frameless_look_for_prologue): Rename
10314         frameless_look_for_prologue.
10315         * frame.h (legacy_frameless_look_for_prologue): Rename
10316         frameless_look_for_prologue.
10317         * gdbarch.h, gdbarch.c: Re-generate.
10318         * sh64-tdep.c (sh64_gdbarch_init): Update.
10319         * sh-tdep.c (sh_gdbarch_init): Update.
10320         * s390-tdep.c (s390_gdbarch_init): Update.
10321         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10322         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10323         * m68k-tdep.c (m68k_gdbarch_init): Update.
10324         (delta68_frame_args_address): Update.
10325         * m32r-tdep.c (m32r_gdbarch_init): Update.
10326         * hppa-tdep.c (hppa_gdbarch_init): Update.
10327         * h8300-tdep.c (h8300_gdbarch_init): Update.
10328         * frv-tdep.c (frv_gdbarch_init): Update.
10329         (frv_frameless_function_invocation): Update.
10330         * cris-tdep.c (cris_gdbarch_init): Update.
10331         (cris_frameless_function_invocation): Update.
10332         * avr-tdep.c (avr_gdbarch_init): Update.
10333         * arm-tdep.c (arm_gdbarch_init): Update.
10334         * stack.c (frame_info): Update, call predicate.
10335         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10336         * frame.c (legacy_get_prev_frame): Update, call predicate..
10337         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10338         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10339         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10340         invocation.
10341         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10342         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10343         * vax-tdep.c (vax_gdbarch_init): Ditto.
10344
10345         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10346         function.
10347
10348 2004-02-16  Daniel Jacobowitz  <[email protected]>
10349
10350         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10351         initializations.
10352
10353 2004-02-16  Andrew Cagney  <[email protected]>
10354
10355         * tui/tui-windata.c: Include "gdb_string.h".
10356         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10357         * tui/tui-layout.c, tui/tui-command.c: Ditto.
10358         * Makefile.in: Update dependencies.
10359
10360 2004-02-16  Daniel Jacobowitz  <[email protected]>
10361
10362         * Makefile.in (infrun.o): Add $(gdb_assert_h).
10363         * infrun.c: Include "gdb_assert.h".
10364         (singlestep_ptid, saved_singlestep_ptid)
10365         (stepping_past_singlestep_breakpoint): New variables.
10366         (resume): Set singlestep_ptid.  Check for singlestep thread
10367         hop.
10368         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10369         (handle_inferior_event): Handle singlestep thread hop.
10370
10371 2004-02-16  Andrew Cagney  <[email protected]>
10372
10373         * dwarf2-frame.c (dwarf2_frame_ops): New function.
10374         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10375         (dwarf2_frame_init_reg): Ditto.
10376
10377         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
10378         suggested by Joshua Neuheisel
10379
10380         * configure.in: Always check for curses, including pdcurses.
10381         Warn, instead of error, when no curses are found.  Enable TUI when
10382         curses is available.
10383         * configure: Re-generate.
10384
10385 2004-02-16  Corinna Vinschen  <[email protected]>
10386
10387         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10388         sh_sh4_register_convert_to_virtual.
10389         (sh_register_convert_to_raw): Rename from
10390         sh_sh4_register_convert_to_raw.
10391         (sh_pseudo_register_read): Accomodate above name change.
10392         (sh_pseudo_register_write): Ditto.
10393
10394 2004-02-16  Corinna Vinschen  <[email protected]>
10395
10396         * sh-tdep.c (sh_generic_register_name): Remove.
10397         (sh_gdbarch_init): Use sh_sh_register_name in default case.
10398
10399 2004-02-15  Andrew Cagney  <[email protected]>
10400
10401         * configure.in (build_warnings): Add -Wunused-function.
10402         * configure: Re-generate.
10403
10404         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10405         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10406
10407         * procfs.c (procfs_init_inferior): Assume that
10408         START_INFERIOR_TRAPS_EXPECTED is defined.
10409         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10410         * config/ns32k/tm-nbsd.h: Delete file,
10411         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10412
10413         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10414         * config/vax/tm-vax.h: Delete file.
10415
10416         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10417         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10418         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10419         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10420         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10421         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10422         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10423
10424 2004-02-15  Mark Kettenis  <[email protected]>
10425
10426         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10427         * dwarf2-frame.c (dwarf2_frame_data): New variable.
10428         (struct dwarf2_frame_ops): New.
10429         (dwarf2_frame_default_init_reg): New function, based on
10430         dwarf2_frame_init_reg.
10431         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10432         (dwarf2_frame_init_reg): Call architecture-specific function.
10433         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10434         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10435         instead of dwarf2_frame_data.
10436         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10437         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10438
10439 2004-02-15  Andrew Cagney  <[email protected]>
10440
10441         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10442         register_gdbarch_swap.
10443         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10444         * f-lang.c (_initialize_f_language): Update, use
10445         DEPRECATED_REGISTER_GDBARCH_SWAP.
10446         * remote.c (_initialize_remote): Ditto.
10447         * regcache.c (_initialize_regcache): Ditto.
10448         * parse.c (_initialize_parse): Ditto.
10449         * infrun.c (_initialize_infrun): Ditto.
10450         * mi/mi-main.c (_initialize_mi_main): Ditto.
10451         * gdbtypes.c (_initialize_gdbtypes): Ditto.
10452
10453         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10454         poking .cacheable directly.
10455         * symfile.c (symfile_bfd_open): Ditto.
10456
10457         * Makefile.in: Update all dependencies.
10458
10459         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10460         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
10461         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
10462         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10463         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10464
10465 2004-02-14  Andrew Cagney  <[email protected]>
10466
10467         * arch-utils.c (legacy_convert_register_p): Check
10468         DEPRECATED_REGISTER_CONVERTIBLE_P.
10469         * findvar.c (value_of_register): Ditto.
10470
10471         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10472         * gdbarch.h, gdbarch.c: Re-generate.
10473         * arch-utils.c (deprecated_register_convertible_not): Delete.
10474         * arch-utils.h (deprecated_register_convertible_not): Delete.
10475         * mi/mi-main.c (get_register): Update.  Update copyright.
10476         * infcmd.c (default_print_registers_info): Update.
10477
10478         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10479         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10480         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10481         * gdbarch.h, gdbarch.c: Re-generate.
10482         * frame.c (deprecated_get_next_frame_hack): Delete function.
10483         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10484         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10485         Update.
10486         * infcall.c (call_function_by_hand): Update.
10487
10488 2004-02-14  Elena Zannoni  <[email protected]>
10489
10490         * symfile.c (init_entry_point_info, entry_point_address): Move
10491         from here...
10492         * objfiles.c (init_entry_point_info, entry_point_address):..to
10493         here.
10494         * symfile.h (init_entry_point_info, entry_point_address): Remove
10495         prototypes.
10496         * objfiles.h (init_entry_point_info, entry_point_address):Add
10497         prototypes.
10498         * cris-tdep.c: Remove include of symfile.h. Add include of
10499         objfiles.h.
10500         * infcall.c: Ditto.
10501         * mcore-tdep.c: Ditto.
10502         * mn10300-tdep.c: Ditto.
10503         * sh64-tdep.c: Ditto.
10504         * v850-tdep.c: Ditto.
10505         * arm-tdep.c: Remove include of symfile.h.
10506         * blockframe.c: Ditto.
10507         * coffread.c: Ditto.
10508         * dbxread.c: Ditto.
10509         * dwarf2read.c: Ditto.
10510         * dwarfread.c: Ditto.
10511         * frv-tdep.c: Ditto.
10512         * ia64-tdep.c: Ditto.
10513         * mdebugread.c: Ditto.
10514         * mipsread.c: Ditto.
10515         * rs6000-tdep.c: Ditto.
10516         * s390-tdep.c: Ditto.
10517         * sh-tdep.c: Ditto.
10518         * xstormy16-tdep.c: Ditto.
10519         * gdbarch.sh: Remove include of symfile.h.
10520         * gdbarch.c: Regenerate.
10521         * solib-irix.c (enable_break): Use entry_point_address().
10522         Add comment about include file.
10523         * xcoffread.c: Add comment about include file.
10524         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10525         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10526         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10527         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10528         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10529
10530 2004-02-13  Andrew Cagney  <[email protected]>
10531
10532         * corelow.c (core_xfer_partial): Use "struct bfd_section".
10533         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10534         copyright.
10535         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10536
10537 2004-02-12  Fred Fish  <[email protected]>
10538
10539         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10540          set_gdbarch_store_return_value.
10541
10542 2004-02-12  Andrew Cagney  <[email protected]>
10543
10544         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10545         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10546         (interrupt_query): Ditto.
10547         (ofunc): Delete unused variable.
10548         * cris-tdep.c (cris_abi): Delete unused function.
10549         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10550         (cris_get_wide_opcode, cris_get_short_size): Ditto.
10551         (cris_get_asr_quick_shift_steps): Ditto.
10552         (cris_skip_prologue_frameless_p): Ditto.
10553         * arm-tdep.c (arm_push_return_address): Delete unused function.
10554         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10555         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10556         * s390-tdep.c (s390_function_start): Delete unused function.
10557
10558 2004-02-12  Andrew Cagney  <[email protected]>
10559
10560         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10561         gdbarch.h, gdbarch.c: Re-generate.
10562         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10563         to generic_prologue_frameless_p.
10564         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10565         * arch-utils.c (generic_prologue_frameless_p): Delete function.
10566
10567 2004-02-11  Daniel Jacobowitz  <[email protected]>
10568
10569         * mips-linux-tdep.c: Include "frame.h".
10570         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10571         (mips_linux_skip_resolver): New functions.
10572         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10573         and set_gdbarch_in_solib_call_trampoline.
10574         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10575         to after set_gdbarch_in_solib_return_trampoline.  Only set the
10576         solib hooks to mips16 functions if the OS ABI is unknown.
10577         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10578         including "config/tm-linux.h".
10579         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10580         * Makefile.in (mips-linux-tdep.o): Update.
10581
10582 2004-02-11  David Carlton  <[email protected]>
10583
10584         * linespec.c (decode_compound): Only look for a class symbol when
10585         considering all but the rightmost component.
10586
10587 2004-02-11  Andrew Cagney  <[email protected]>
10588
10589         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10590         abi code are are separatly grouped.
10591
10592 2004-02-11  Andrew Cagney  <[email protected]>
10593
10594         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10595         * gdbarch.h, gdbarch.c: Re-generate.
10596         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10597         * v850-tdep.c (v850_gdbarch_init): Update.
10598         * sh64-tdep.c (sh64_gdbarch_init): Update.
10599         * sh-tdep.c (sh_gdbarch_init): Update.
10600         * s390-tdep.c (s390_gdbarch_init): Update.
10601         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10602         * mips-tdep.c (mips_gdbarch_init): Update.
10603         * mcore-tdep.c (mcore_gdbarch_init): Update.
10604         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10605         * m32r-tdep.c (m32r_gdbarch_init): Update.
10606         * ia64-tdep.c (ia64_gdbarch_init): Update.
10607         * hppa-tdep.c (hppa_gdbarch_init): Update.
10608         * h8300-tdep.c (h8300_gdbarch_init): Update.
10609         * frv-tdep.c (frv_gdbarch_init): Update.
10610         * d10v-tdep.c (d10v_gdbarch_init): Update.
10611         * cris-tdep.c (cris_gdbarch_init): Update.
10612         * avr-tdep.c (avr_gdbarch_init): Update.
10613         * arm-tdep.c (arm_gdbarch_init): Update.
10614         * alpha-tdep.c (alpha_gdbarch_init): Update.
10615
10616 2004-02-11  Corinna Vinschen  <[email protected]>
10617
10618         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10619         comma.
10620         (sh_sh4al_dsp_register_name): Ditto.
10621
10622 2004-02-10  Andrew Cagney  <[email protected]>
10623
10624         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10625         (mips_init_frame_pc_first): Delete function.
10626         (mips_frame_saved_pc): Delete function.
10627         (mips_frame_chain): Delete function.
10628         (mips_init_extra_frame_info): Delete function.
10629         (mips_xfer_register): Delete unused variable "reg".
10630         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10631         (mips_n32n64_return_value): Delete unused variable "reg".
10632         (mips_n32n64_return_value): Delete unused variable "pos".
10633         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10634         (mips_o32_return_value): Delete unused variable "pos".
10635         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10636         (mips_print_fp_register): Delete unused variable "namelen"
10637         (mips_print_fp_register): Delete unused variable "flt2"
10638         (get_frame_pointer): Delete function.
10639         (cached_proc_desc): Delete static variable.
10640         (mips_pop_frame): Delete function.
10641         (mips_find_saved_regs): Delete function.
10642         (mips_get_saved_register): Delete function.
10643         (mips_saved_pc_after_call): Delete function.
10644         (SIGFRAME_BASE): Delete macro.
10645         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10646         (SIGFRAME_PC_OFF): Delete macro.
10647         (SIGFRAME_REGSAVE_OFF): Delete macro.
10648         (mips_dump_tdep): Do not print deleted macro definitions.
10649
10650 2004-02-10  Andrew Cagney  <[email protected]>
10651
10652         * Makefile.in (SFILES): Remove explictly listed tui files.
10653         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10654
10655 2004-02-10  Jeff Johnston  <[email protected]>
10656
10657         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10658         to use paddr functions to format ia64 addresses and long values.
10659         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10660         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10661         (get_kernel_table, ia64_find_proc_info_x): Ditto.
10662         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10663         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10664
10665 2004-02-10  Andrew Cagney  <[email protected]>
10666
10667         * defs.h: Do not include "tui.h".
10668         * gdb_curses.h: New file.
10669         * tui/tui-hooks.h: New file.
10670         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10671         (tui_install_hooks, tui_remove_hooks): Delete declarations.
10672         (tui_initialize_io): Delete declaration.
10673         (tui_initialize_readline: Delete redundant declaration.
10674         (struct tui_point): Delete definition.
10675         * tui/tui-data.h (struct tui_point): Define.
10676         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10677         * utils.c: Include "tui/tui.h".
10678         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10679         * printcmd.c [TUI]: Include "tui/tui.h".
10680         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10681         * tui/tui-command.c: Include "gdb_curses.h".
10682         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10683         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10684         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10685         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10686         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10687         * Makefile.in: Update all dependencies.
10688         (tui_hooks_h, gdb_curses_h): Define.
10689         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10690
10691 2004-02-10  Elena Zannoni  <[email protected]>
10692
10693         * objfiles.h (struct objfile): Remove unused fields auxf1 and
10694         auxf2. Add comments about some other rarely used fields.
10695
10696 2004-02-10  Andrew Cagney  <[email protected]>
10697
10698         * Makefile.in (init.c): Fix script removing duplicates. Problem
10699         reported by Peter Schauer.
10700
10701 2004-02-09  Elena Zannoni  <[email protected]>
10702
10703         * bcache.c (bcache_xmalloc): Use obstack_init instead of
10704         obstack_specify_allocation.
10705         * objfiles.c (allocate_objfile): Ditto.
10706         * solib-sunos.c (solib_add_common_symbols)
10707         (allocate_rt_common_objfile): Ditto.
10708         * symfile.c (reread_symbols): Ditto.
10709         * gdb_obstack.h: Add comment.
10710
10711 2004-02-09  Elena Zannoni  <[email protected]>
10712
10713         * linespec.c (decode_line_1, locate_first_half)
10714         (decode_compound, lookup_prefix_sym): Update comments. Delete old
10715         commented out code.
10716
10717 2004-02-09  Daniel Jacobowitz  <[email protected]>
10718
10719         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10720         obstack_free.
10721
10722 2004-02-09  Andrew Cagney  <[email protected]>
10723
10724         * blockframe.c (find_pc_partial_function): If find_pc_overlay
10725         fails, try find_pc_section.  Fix PR c++/1267.
10726         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10727         instead of find_pc_mapped_section.
10728         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10729         not default to the section containing PC.  Fix PR symtab/1519.
10730
10731 2004-02-09  Andrew Cagney  <[email protected]>
10732
10733         * Makefile.in (mips-tdep.o): Update dependencies.
10734         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10735         "trad-frame.h".
10736         (mips_unwind_pc): Return the pseudo PC register.
10737         (mips_unwind_dummy_id): New function.
10738         (mips16_fetch_instruction): New function.
10739         (mips32_fetch_instruction): New function.
10740         (struct mips_frame_cache): Define.
10741         (mips_mdebug_frame_cache): New function.
10742         (mips_mdebug_frame_this_id): New function.
10743         (mips_mdebug_frame_prev_register): New function.
10744         (mips_mdebug_frame_unwind): Define.
10745         (mips_mdebug_frame_sniffer): New function.
10746         (mips_mdebug_frame_base_address): New function.
10747         (mips_mdebug_frame_base): Define.
10748         (mips_mdebug_frame_base_sniffer): New function.
10749         (mips_gdbarch_init): Append unwind and base sniffers.  Set
10750         unwind_dummy_id.
10751
10752 2004-02-08  Andrew Cagney  <[email protected]>
10753
10754         * frame.c: Print both the register number and name.
10755
10756         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
10757         and a sed into a single sed.  Make .c and .o patterns more robust.
10758         (OBS): Delete.
10759         (INIT_FILES): Replace OBS with COMMON_OBS.
10760         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10761
10762 2004-02-08  Mark Kettenis  <[email protected]>
10763
10764         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10765         the PT_WCOOKIE request.
10766
10767 2004-02-08  Andrew Cagney  <[email protected]>
10768
10769         * mips-tdep.c (mips_unwind_pc): New function.
10770         (mips_gdbarch_init): Set mips_unwind_pc.
10771
10772         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10773         (get_frame_id): Allow the UNKNOWN_FRAME.
10774         (frame_register_unwind, get_frame_type): Ditto.
10775
10776         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10777         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
10778         unwind_dummy_id indicates a legacy frame.
10779
10780         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10781         * configure: Re-generate.
10782
10783         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10784         methods.
10785
10786 2004-02-08  Andrew Cagney  <[email protected]>
10787
10788         * configure.in (CONFIG_ALL): Set to Makefile target, and not
10789         makefile macro.
10790         * configure: Re-generate.
10791         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10792         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10793         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10794         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10795         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10796         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10797         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10798         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10799         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10800         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10801
10802 2004-02-07  Andrew Cagney  <[email protected]>
10803
10804         * Makefile.in: Update all dependencies.
10805
10806         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10807         * configure: Re-generate.
10808         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10809         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10810         (COMMON_OBS): Add "main.o" and "annotate.o".
10811         (ANNOTATE_OBS): Delete.
10812         (OBS): Remove ANNOTATE_OBS.
10813         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10814         CONFIG_INITS.
10815         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10816         against CONFIG_OBS and "main.o".
10817         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10818         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10819
10820         * tui/tui-command.c: Include "gdb_string.h", delete register
10821         attribute, use ISO-C function signatures.
10822         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10823         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10824         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10825         * tui/tui.c: Ditto.
10826
10827         * tui/tui-command.c: Change variable and function names to lower
10828         case.
10829         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10830         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10831         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10832         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10833         * tui/tui-winsource.c, tui/tui.c: Ditto.
10834
10835 2004-02-07  Elena Zannoni  <[email protected]>
10836
10837         * buildsym.c (free_pending_blocks, finish_block)
10838         (record_pending_block, make_blockvector, end_symtab): Replace
10839         symbol_obstack with objfile_obstack.
10840         * coffread.c (process_coff_symbol, coff_read_struct_type)
10841         (coff_read_enum_type): Ditto.
10842         * cp-namespace.c (initialize_namespace_symtab)
10843         (check_one_possible_namespace_symbol): Ditto.
10844         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10845         (dwarf2_symbol_mark_computed): Ditto.
10846         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10847         * elfread.c (elf_symtab_read): Ditto.
10848         * hpread.c (hpread_symfile_init, hpread_symfile_init)
10849         (hpread_read_enum_type, hpread_read_function_type)
10850         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10851         Ditto.
10852         * jv-lang.c (get_java_class_symtab, add_class_symbol)
10853         (java_link_class_type): Ditto.
10854         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10855         (new_symbol): Ditto.
10856         * minsyms.c (install_minimal_symbols): Ditto.
10857         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10858         (terminate_minimal_symbol_table): Replace symbol_obstack with
10859         objfile_obstack.
10860         (free_objfile): Remove freeing of symbol_obstack.
10861         * objfiles.h: Remove symbol_obstack field.
10862         * pa64solib.c (add_to_solist): Replace symbol_obstack with
10863         objfile_obstack.
10864         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10865         symbol_obstack.
10866         (solib_add_common_symbols): Replace symbol_obstack with
10867         objfile_obstack.
10868         * somsolib.c (som_solib_add): Ditto.
10869         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10870         (common_block_start, common_block_end): Ditto.
10871         * symfile.c (reread_symbols): Remove freeing and init of
10872         symbol_obstack.
10873         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10874         * symfile.h: Update comment.
10875         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10876         stats printing.
10877         * symtab.c (symbol_set_names): Replace symbol_obstack with
10878         objfile_obstack.
10879         * symtab.h (struct general_symbol_info, struct minimal_symbol):
10880         Update comments.
10881         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10882         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10883         objfile_obstack.
10884
10885 2004-02-07  Andrew Cagney  <[email protected]>
10886
10887         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10888         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
10889         fields and variables.
10890         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10891         (m_beInvisible): Delete macro.
10892         * tui/tui-data.h: Fix case case fields and variables.
10893         (m_genWinPtrIsNull): Delete macro.
10894         (tui_win_list): Rename winList.
10895         (TUI_SRC_WIN): Rename srcWin.
10896         (TUI_DISASM_WIN): Rename disassemWin.
10897         (TUI_DATA_WIN): Rename dataWin.
10898         (TUI_CMD_WIN): Rename cmdWin.
10899         (m_genWinPtrNotNull): Delete macro.
10900         (m_winPtrIsNull): Delete macro.
10901         (m_winPtrNotNull): Delete macro.
10902         (tui_win_is_source_type): Replace m_winIsSourceType
10903         (tui_win_is_auxillary): Replace m_winIsAuzillary.
10904         (tui_win_has_locator): Replace m_hasLocator.
10905         (tui_set_win_highlight): Replace m_setWinHighlightOn and
10906         m_setWinHighlightOff.
10907         * tui/tui-data.c: Update references.
10908         (tui_win_is_source_type, tui_set_win_highlight): New functions.
10909         (tui_win_has_locator, tui_win_is_auxillary): New functions.
10910         * tui/tui-command.c, tui/tui-disasm.c: Update references.
10911         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10912         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10913         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10914         * tui/tui-winsource.c, tui/tui.c: Ditto.
10915
10916 2004-02-07  Mark Kettenis  <[email protected]>
10917
10918         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10919         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10920         StackGhost.
10921
10922         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10923         variable `i6' to `i7'.
10924         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10925
10926 2004-02-07  Andrew Cagney  <[email protected]>
10927
10928         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10929         (TuiPoint, TuiPointPtr): Ditto.
10930         (TuiStatus, TuiStatusPtr): Ditto.
10931         (TuiWinType, TuiWinTypePtr): Ditto.
10932         (struct tui_point): Rename _TuiPoint.
10933         (tui_get_low_disassembly_address): Rename
10934         tuiGetLowDisassemblyAddress.
10935         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10936         (tuiFree): Delete declaration.
10937         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10938         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10939         * tui/tui.c (tuiFree): Delete function.
10940         * cli/cli-cmds.c (disassemble_command): Update references.
10941         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10942         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10943         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10944         * tui/tui-winsource.c: Ditto.
10945
10946 2004-02-07  Elena Zannoni  <[email protected]>
10947
10948         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10949         coffstab_build_psymtabs, elfstab_build_psymtabs)
10950         (stabsect_build_psymtabs): Replace psymbol_obstack with
10951         objfile_obstack.
10952         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10953         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10954         Ditto.
10955         * dwarfread.c (scan_compilation_units): Ditto.
10956         * elfread.c (elfstab_offset_sections): Ditto.
10957         * hppa-tdep.c (read_unwind_info): Ditto.
10958         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10959         (hpread_end_psymtab): Ditto.
10960         * mdebugread.c (mdebug_build_psymtabs, add_pending)
10961         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10962         Ditto.
10963         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10964         * objfiles.c (add_to_objfile_sections)
10965         (build_objfile_section_table): Ditto.
10966         (allocate_objfile): Remove init of psymbol_obstack.
10967         (free_objfile): Remove freeing of psymbol_obstack.
10968         * objfiles.h (struct objfile): Remove field
10969         psymbol_obstack. Update comments.
10970         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10971         psymbol_obstack with objfile_obstack.
10972         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10973         psymbol_obstack.
10974         * somread.c (som_symfile_offsets, init_import_symbols)
10975         (init_export_symbols): Replace psymbol_obstack with
10976         objfile_obstack.
10977         * somsolib.c (som_solib_add_solib_objfile): Ditto.
10978         * symfile.c (default_symfile_offsets, syms_from_objfile)
10979         (reread_symbols): Remove freeing and init of psymbol_obstack.
10980         (cashier_psymtab): Update comment.
10981         * symmisc.c (print_objfile_statistics): Don't report stats for
10982         psymbol obstack.
10983         * symtab.h (struct general_symbol_info, struct partial_symtab):
10984         Update comments.
10985         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10986         (xcoff_symfile_offsets): Replace psymbol_obstack with
10987         objfile_obstack.
10988
10989 2004-02-07  Elena Zannoni  <[email protected]>
10990
10991         * objfiles.h (struct objfile): Add objfile_obstack field.
10992         Remove type_obstack field.
10993
10994         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10995         read_structure_scope read_enumeration, new_symbol): Replace
10996         type_obstack with objfile_obstack.
10997         * dwarfread.c (struct_type, enum_type): Ditto.
10998         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10999         (lookup_fundamental_type): Ditto.
11000         * gdbtypes.h (TYPE_ALLOC): Ditto.
11001         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11002         (hpread_read_doc_function_type, hpread_read_struct_type)
11003         (fix_static_member_physnames, hpread_read_array_type)
11004         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11005         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11006         (java_link_class_type): Ditto.
11007         * mdebugread.c (parse_type): Ditto.
11008         * objfiles.c (allocate_objfile, free_objfile): Ditto.
11009         * solib-sunos.c (solib_add_common_symbols): Ditto.
11010         * stabsread.c (define_symbol, read_type, read_member_functions,
11011         read_cpp_abbrev, read_one_struct_field): Ditto.
11012         * symfile.c (reread_symbols): Ditto.
11013         * symmisc.c (print_objfile_statistics): Ditto.
11014
11015 2004-02-07  Andrew Cagney  <[email protected]>
11016
11017         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11018         (tui_exec_info_content): Rename TuiExecInfoContent.
11019         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11020         (TuiWinInfo, TuiWinInfoPtr): Ditto.
11021         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11022         (TuiList, TuiListPtr): Ditto.
11023         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11024         (TuiDataType, TuiDataTypePtr): Ditto.
11025         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11026         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11027         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11028         (TuiSourceElement, TuiSourceElementPtr): Ditto.
11029         (TuiDataElement, TuiDataElementPtr): Ditto.
11030         (TuiWinElement, TuiWinElementPtr): Ditto.
11031         (TuiDataInfo, TuiDataInfoPtr): Ditto.
11032         (TuiCommandElement, TuiCommandElementPtr): Ditto.
11033         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11034         (TuiWhichElement, TuiWhichElementPtr): Ditto.
11035         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11036         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11037         * tui/tui-command.c, tui/tui-data.c: Update references.
11038         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11039         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11040         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11041         * tui/tui-winsource.c, tui/tui.c: Ditto.
11042
11043 2004-02-07  Mark Kettenis  <[email protected]>
11044
11045         * dwarf2-frame.h: Update copyright.
11046         (enum dwarf2_frame_reg_rule): New.
11047         (struct dwarf2_frame_state_reg): New.
11048         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11049         * dwarf2-frame.c: Update copyright.
11050         (enum dwarf2_reg_rule): Remove.
11051         (struct dwarf2_frame_state): Remove defenition of `struct
11052         dwarf2_frame_state_reg'.
11053         (read_reg): Call get_frame_arch to get the architecture instead of
11054         using CURRENT_GDBARCH.
11055         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11056         DWARF2_FRAME_.
11057         (dwarf2_frame_init_reg): New function.
11058         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11059         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
11060         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
11061         tags with DWARF2_FRAME_.
11062         (dwarf2_frame_prev_register): Call get_frame_arch to get the
11063         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
11064         dwarf2_reg_rule' tags with DWARF2_FRAME_.
11065
11066 2004-02-06  Andrew Cagney  <[email protected]>
11067
11068         * tui/tui-data.h (struct tui_list): Rename _TuiList.
11069         (enum tui_data_type): Rename _TuiDataType.
11070         (struct tui_layout_def): Rename _TuiLayoutDef.
11071         (struct tui_source_element): Rename _TuiSourceElement.
11072         (struct tui_data_element): Rename _TuiDataElement.
11073         (struct tui_command_element): Rename _TuiCommandElement.
11074         (struct tui_locator_element): Rename _TuiLocatorElement.
11075         (union tui_which_element): Define.
11076         (struct tui_win_element): Rename _TuiWinElement.
11077         (struct tui_data_info): Rename _TuiDataInfo.
11078         (struct tui_source_info): Rename _TuiSourceInfo.
11079         (struct tui_command_info): Rename _TuiCommandInfo.
11080         (tui_initialize_static_data): Rename initializeStaticData.
11081         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11082         (tui_alloc_win_info): Rename allocWinInfo.
11083         (tui_init_generic_part): Rename initGenericPart.
11084         (tui_init_win_info): Rename initWinInfo.
11085         (tui_alloc_content): Rename allocContent.
11086         (tui_add_content_elements): Rename addContentElements.
11087         (tui_init_content_element): Rename initContentElement.
11088         (tui_free_window): Rename freeWindow.
11089         (tui_free_win_content): Rename freeWinContent.
11090         (tui_free_data_content): Rename freeDataContent.
11091         (tui_free_all_source_wins_content): Rename
11092         freeAllSourceWinsContent.
11093         (tui_del_window): Rename tuiDelWindow.
11094         (tui_del_data_windows): Rename tuiDelDataWindows.
11095         (tui_partial_win_by_name): Rename partialWinByName.
11096         (tui_win_name): Rename winName.
11097         (tui_current_layout): Rename currentLayout.
11098         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11099         (tui_term_height): Rename termHeight.
11100         (tui_set_term_height_to): Rename setTermHeightTo.
11101         (tui_term_width): Rename termWidth.
11102         (tui_set_term_width_to): Rename setTermWidthTo.
11103         (tui_set_gen_win_origin): Rename setGenWinOrigin.
11104         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11105         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11106         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11107         (tui_source_windows): Rename sourceWindows.
11108         (tui_clear_source_windows): Rename clearSourceWindows.
11109         (tui_clear_source_windows_detail): Rename
11110         clearSourceWindowsDetail.
11111         (tui_clear_win_detail): Rename clearWinDetail.
11112         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11113         (tui_default_tab_len): Rename tuiDefaultTabLen.
11114         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11115         (tui_win_with_focus): Rename tuiWinWithFocus.
11116         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11117         (tui_layout_def): Rename tuiLayoutDef.
11118         (tui_win_resized): Rename tuiWinResized.
11119         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11120         (tui_next_win): Rename tuiNextWin.
11121         (tui_prev_win): Rename tuiPrevWin.
11122         (tui_add_to_source_windows): Rename addToSourceWindows.
11123         * tui/tui-winsource.c, tui/tui-win.c: Update references.
11124         * tui/tui-layout.c, tui/tui-source.c: Ditto.
11125         * tui/tui-stack.c, tui/tui-io.c: Ditto.
11126         * tui/tui.c, tui/tui-data.c: Ditto.
11127         * tui/tui-interp.c, tui/tui-data.c: Ditto.
11128         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11129
11130         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
11131         (struct symtab): Declare.
11132         (tui_set_source_content): Rename tuiSetSourceContent.
11133         (tui_show_symtab_source): Rename tuiShowSource.
11134         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11135         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11136         * tui/tui-source.c: Update copyright.  Update references.
11137         * tui/tui-win.c, tui/tui-winsource.c: Update references.
11138         * tui/tui-stack.c: Update references.
11139
11140         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
11141         (struct tui_win_info): Declare.
11142         (tui_scroll_forward): Rename tuiScrollForward.
11143         (tui_scroll_backward): Rename tuiScrollBackward.
11144         (tui_scroll_left): Rename tuiScrollLeft.
11145         (tui_scroll_right): Rename tuiScrollRight.
11146         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11147         (tui_resize_all): Rename tuiResizeAll.
11148         (tui_refresh_all_win): Rename tuiRefreshAll.
11149         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11150         * tui/tui-layout.c, * tui/tui-io.c: Update references.
11151         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11152         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11153
11154         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
11155         (tui_erase_data_content): Rename tuiEraseDataContent.
11156         (tui_display_all_data): Rename tuiDisplayAllData.
11157         (tui_check_data_values): Rename tuiCheckDataValues.
11158         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11159         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11160         (tui_first_data_element_no_in_line): Rename
11161         tuiFirstDataElementNoInLine.
11162         (tui_delete_data_content_windows): Rename
11163         tuiDeleteDataContentWindows.
11164         (tui_refresh_data_win): Rename tuiRefreshDataWin.
11165         (tui_display_data_from): Rename tuiDisplayDataFrom.
11166         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11167         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11168         * tui/tui-win.c, tui/tui-regs.c: Update references.
11169         * tui/tui-layout.c, tui/tui.c: Update references.
11170
11171         * tui/tui-wingeneral.h: Update copyright.
11172         (m_allBeVisible): Delete macro.
11173         (m_allBeInvisible): Delete macro.
11174         (struct tui_gen_win_info): Declare.
11175         (struct tui_win_info): Declare.
11176         (tui_unhighlight_win): Rename unhighlightWin.
11177         (tui_make_visible, tui_make_invisible): Replace makeVisible.
11178         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11179         (tui_make_window): Rename makeWindow.
11180         (tui_copy_win): Rename copyWin.
11181         (tui_box_win): Rename boxWin.
11182         (tui_highlight_win): Rename highlightWin.
11183         (tui_check_and_display_highlight_if_needed): Rename
11184         checkAndDisplayHighlightIfNeeded.
11185         (tui_refresh_all): Rename refreshAll.
11186         (tui_delete_win): Rename tuiDelwin.
11187         (tui_refresh_win): Rename tuiRefreshWin.
11188         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11189         (tui_make_visible, tui_make_invisible): New functions.
11190         (tui_make_all_visible, tui_make_all_invisible): New functions.
11191         (make_all_visible): Rename makeAllVisible.
11192         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11193         * tui/tui-data.c, tui/tui-winsource.c: Update references.
11194         * tui/tui-windata.c, tui/tui-win.c: Update references.
11195         * tui/tui-regs.c, tui/tui-layout.c: Update references.
11196         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11197
11198 2004-02-06  Mark Kettenis  <[email protected]>
11199
11200         * proc-api.c (write_with_trace): Initialize local variable to
11201         silence compiler warning.
11202
11203 2004-02-06  Andrew Cagney  <[email protected]>
11204
11205         * tui/tui-source.h: Do not include "defs.h".
11206         (struct tui_win_info): Declare.
11207         (tui_set_source_content_nil): Declare.
11208         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11209         (union tui_line_or_address): Rename _TuiLineOrAddress.
11210         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
11211         (tui_update_source_window): Rename tuiUpdateSourceWindow.
11212         (tui_update_source_window_as_is): Rename
11213         tuiUpdateSourceWindowAsIs.
11214         (tui_update_source_windows_with_addr): Rename
11215         tuiUpdateSourceWindowsWithAddr.
11216         (tui_update_source_windows_with_line): Rename
11217         tuiUpdateSourceWindowsWithLine.
11218         (tui_clear_source_content): Rename tuiClearSourceContent.
11219         (tui_erase_source_content): Rename tuiEraseSourceContent.
11220         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11221         (tui_show_source_content): Rename tuiShowSourceContent.
11222         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11223         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11224         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11225         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11226         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11227         (tui_update_exec_info): Rename tuiUpdateExecInfo.
11228         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11229         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11230         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11231         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11232         (struct tui_win_info): Declare.
11233         * tui/tui-stack.c: Update references.
11234         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11235         * tui/tui-win.c, tui/tui-source.c: Ditto.
11236         * tui/tui.c, tui/tui-disasm.c: Ditto.
11237
11238 2004-02-06  Mark Kettenis  <[email protected]>
11239
11240         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11241         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
11242
11243 2004-02-05  Mark Kettenis  <[email protected]>
11244
11245         * infrun.c (handle_inferior_event): Allow for breakpoint
11246         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11247         and SIGEMT.  Update comments.
11248         * NEWS (Revised SPARC target): Mention support for non-executable
11249         stack.
11250
11251 2004-02-04  Mark Kettenis  <[email protected]>
11252
11253         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11254         * inftarg.c: Update copyright year.
11255         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11256         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11257         (sparc_xfer_wcookie): New function.
11258         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11259         * Makefile.in (sparc-nat.o): Update dependencies.
11260         * config/sparc/nm-nbsd.h: Include "target.h".
11261         (NATIVE_XFER_WCOOKIE): New define.
11262         (sparc_xfer_wcookie): New prototype.
11263
11264 2004-02-04  Andrew Cagney  <[email protected]>
11265
11266         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11267         SYSCALL_TRAP function.
11268         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11269
11270 2004-02-04  Andrew Cagney  <[email protected]>
11271             Daniel Jacobowitz  <[email protected]>
11272
11273         * objfiles.h: Delete comments refering to inside_entry_func and
11274         DEPRECATED_FRAME_CHAIN_VALID.
11275         * defs.h (inside_entry_func): Update prototype..
11276         * blockframe.c (inside_entry_func): Rename to
11277         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
11278         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11279
11280 2004-02-03  Jeff Johnston  <[email protected]>
11281
11282         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
11283         outside of #ifdef SOLIB_ADD region.
11284         (do_restore_lang_radix_cleanup): Ditto.
11285         (resolve_pending_breakpoint): Ditto.
11286
11287 2004-02-03  Andrew Cagney  <[email protected]>
11288
11289         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11290         (process_note_abi_tag_sections): Delete unused function.
11291         (ia64_read_fp): Delete unused function.
11292         (gdbarch_extract_struct_value_address): Delete declaration.
11293
11294 2004-02-02  Andrew Cagney  <[email protected]>
11295
11296         * vax-tdep.c (vax_frame_chain): Delete call to
11297         deprecated_inside_entry_file.
11298         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11299
11300 2004-02-02  Mark Kettenis  <[email protected]>
11301
11302         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11303         column that's "empty" or "same value" when eliminating REG_RA
11304         rules.
11305
11306 2004-02-02  Jeff Johnston  <[email protected]>
11307
11308         * NEWS: Add information about new pending breakpoint support.
11309
11310 2004-02-02  Jeff Johnston  <[email protected]>
11311
11312         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11313         and pending fields for pending breakpoint support.
11314         * breakpoint.c (breakpoint_enabled): Add check for not pending.
11315         (condition_command): Only parse condition if not a pending
11316         breakpoint.
11317         (print_one_breakpoint): Add support for pending breakpoints.
11318         (describe_other_breakpoints): Add checks to verify we are not
11319         dealing with pending breakpoints.
11320         (check_duplicates): Don't check pending breakpoints.
11321         (set_raw_breakpoint): Initialize pending flag.
11322         (do_restore_lang_radix_cleanup): New cleanup routine.
11323         (resolve_pending_breakpoint): New function.
11324         (re_enable_breakpoints_in_shlibs): Try and resolve any
11325         pending breakpoints via resolve_pending_breakpoint.
11326         (mention): Add pending breakpoint support.
11327         (parse_breakpoint_sals): Add new parameter to pass to
11328         decode_line_1 to indicate silent errors when files or functions
11329         are not found.  Change all callers.
11330         (do_captured_parse_breakpoint): New function.
11331         (break_command_1): Change prototype to return an rc value and to
11332         take an optional pending breakpoint pointer.  Support creating
11333         a pending breakpoint if a "not found" form of error occurs when
11334         parsing the breakpoint.  Also support resolving an existing pending
11335         breakpoint and be silent if the resolution fails.
11336         (create_breakpoints): Change prototype to take pending breakpoint
11337         pointer.  When resolving a pending breakpoint, use the new pointer
11338         to provide a conditional or commands added by the end-user.
11339         (delete_breakpoint): Add appropriate check for pending.
11340         (breakpoint_re_set_one): Ditto.
11341         (do_enable_breakpoint): Ditto.
11342
11343 2004-02-02  David Carlton  <[email protected]>
11344
11345         * valops.c (enum oload_classification): New.
11346         (find_overload_match): Break implementation into separate
11347         functions; delete #if 0'd code; look for symbols within
11348         namespaces.
11349         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11350         (find_oload_champ,oload_method_static,classify_oload_match): New.
11351         * cp-support.h: Add declaration for cp_func_name; update
11352         declaration for make_symbol_overload_list.
11353         * cp-support.c (cp_func_name): New.
11354         (overload_list_add_symbol): Fix comment, use
11355         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11356         (make_symbol_overload_list): Take a function name and a namespace
11357         instead of a symbol; change implementation.
11358         (make_symbol_overload_list_using): New.
11359         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11360
11361 2004-02-02  Fred Fish  <[email protected]>
11362
11363         * main.c (gdb_stdtarg): Move definition to group with other
11364         gdb_stdtarg definitions and update copyright years.
11365         * remote-sim.c (gdb_os_write_stderr): Write output to
11366         gdb_stdtargerr stream instead of gdb_stdtarg stream.
11367         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11368         gdb_stderr stream and update copyright years.
11369
11370 2004-02-01  Daniel Jacobowitz  <[email protected]>
11371
11372         * Makefile.in (mips-linux-nat.o): Update dependencies.
11373         * mips-linux-nat.c: Include mips-tdep.h.
11374
11375 2004-02-01  Roland McGrath  <[email protected]>
11376
11377         * sol-thread.c (sol_thread_xfer_partial): New function.
11378         (init_sol_thread_ops): Use that for to_xfer_partial hook.
11379         (init_sol_core_ops): Likewise.
11380
11381         * procfs.c (procfs_xfer_partial): New function.
11382         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11383         * Makefile.in (procfs.o): Add $(auxv_h) dep.
11384
11385         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11386         procfs_xfer_auxv function.
11387
11388         * procfs.c (procfs_make_note_section): If we can read
11389         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11390         * linux-proc.c (linux_make_note_section): Likewise.
11391
11392         * auxv.h: New file.
11393         * auxv.c: New file.
11394         * Makefile.in (auxv_h): New variable.
11395         (COMMON_OBS): Add auxv.o here.
11396         (auxv.o): New target.
11397
11398         * corelow.c (core_xfer_partial): New function.
11399         (init_core_ops): Use it for core_ops.to_xfer_partial.
11400
11401         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11402         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11403         macro if that is defined.
11404
11405 2004-02-01  Daniel Jacobowitz  <[email protected]>
11406
11407         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11408         and check the specified thread for each breakpoint.
11409         * breakpoint.h (bpstat_stop_status): Update prototype.
11410         * infrun.c (handle_inferior_event): Update calls to
11411         bpstat_stop_status.
11412
11413 2004-02-01  Daniel Jacobowitz  <[email protected]>
11414
11415         * Makefile.in (cli-cmds.o): Add $(readline_h).
11416
11417 2004-02-01  Daniel Jacobowitz  <[email protected]>
11418
11419         * cli/cli-cmds.c: Include readline.h.
11420         (complete_command): Pass the start of the last word to
11421         complete_line.
11422
11423 2004-01-31  Daniel Jacobowitz  <[email protected]>
11424
11425         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11426         argument, and change first argument to a CORE_ADDR.
11427         * breakpoint.h (bpstat_stop_status): Update prototype.
11428         * infrun.c (adjust_pc_after_break): Add a new comment.
11429         (handle_inferior_event): Update calls to bpstat_stop_status.
11430
11431 2004-01-31  Daniel Jacobowitz  <[email protected]>
11432
11433         * breakpoint.h: Update copyright years.
11434
11435 2004-01-31  Daniel Jacobowitz  <[email protected]>
11436
11437         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11438         (bpstat_stop_status): Don't decrement PC.
11439         * breakpoint.h (software_breakpoint_inserted_here_p): Add
11440         prototype.
11441         * infrun.c (adjust_pc_after_break): New function.
11442         (handle_inferior_event): Call it, early.  Remove later references
11443         to DECR_PC_AFTER_BREAK.
11444         (normal_stop): Add commentary.
11445
11446 2004-01-31  Daniel Jacobowitz  <[email protected]>
11447
11448         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11449         2004-01-27 double-free fix.
11450
11451 2004-01-31  Mark Kettenis  <[email protected]>
11452
11453         * sparc-tdep.c (sparc_fetch_wcookie): New function.
11454         (sparc32_frame_prev_register): Handle StackGhost.
11455         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11456
11457 2004-01-29  Roland McGrath  <[email protected]>
11458
11459         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11460         * configure: Regenerated.
11461
11462         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11463         * Makefile.in (procfs.o): Add dep.
11464
11465 2004-01-28  Andrew Cagney  <[email protected]>
11466
11467         * tui/tui-stack.h: Update copyright.
11468         (struct frame_info): Add opaque declaration.
11469         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11470         (tui_show_locator_content): Rename tuiShowLocatorContent.
11471         (tui_show_frame_info): Rename tuiShowFrameInfo.
11472         * tui/tui-stack.c: Update copyright.  Update references.
11473         * tui/tui-winsource.c: Update references.
11474         * tui/tui-win.c: Update references.
11475         * tui/tui-layout.c: Update references.
11476         * tui/tui-hooks.c: Update copyright, update references.
11477         * tui/tui.c: Update copyright, update references.
11478         * tui/tui-disasm.c: Update references.
11479
11480 2004-01-28  David Carlton  <[email protected]>
11481
11482         * dwarf2read.c (add_partial_structure): Use demangled name if
11483         namespace equals "".
11484
11485 2004-01-27  Jim Blandy  <[email protected]>
11486
11487         Clean up misapplied patch:
11488         * dwarf2read.c (determine_prefix): Change one of the two forward
11489         declarations for 'determine_prefix_aux' to a declaration for this.
11490         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
11491         argument to 'die_specification'.
11492
11493         * dwarf2read.c (read_func_scope): Re-indent comment.
11494
11495 2004-01-27  Paul N. Hilfinger  <[email protected]>
11496
11497         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11498         b->exp to NULL after freeing so that error during re-parsing or
11499         evaluation of expressions associated with breakpoint don't
11500         eventually lead to re-freeing of storage.
11501         Committed by Andrew Cagney.
11502
11503 2004-01-27  Andrew Cagney  <[email protected]>
11504
11505         * source.c (ambiguous_line_spec): Delete undefined declaration.
11506         * m32r-rom.c (m32r_set_board_address): Delete unused function.
11507         (m32r_set_server_address, m32r_set_download_path): Ditto.
11508         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11509
11510 2004-01-27  Daniel Jacobowitz  <[email protected]>
11511
11512         * dwarf2read.c: Update calls to changed and renamed functions, and
11513         references to moved variables.
11514
11515         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11516         language, language_defn, list_in_scope, and ftypes members.
11517         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11518         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11519         (baseaddr): Remove globals.
11520
11521         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
11522         (set_cu_language, die_is_declaration, die_specification)
11523         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11524         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11525         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11526         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11527
11528         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
11529         cu.list_in_scope.  Don't initialize cu_header_offset.
11530         (add_partial_symbol): Add local baseaddr.
11531         (psymtab_to_symtab_1): Add local baseaddr.  Use
11532         objfile->section_offsets for consistency.  Don't initialize
11533         cu_header_offset; do initialize cu.header.offset and
11534         cu.list_in_scope.
11535         (read_file_scope, read_func_scope, read_lexical_block_scope)
11536         (dwarf_decode_lines, new_symbol): Add local baseaddr.
11537
11538 2004-01-27  Michael Chastain  <[email protected]>
11539
11540         * PROBLEMS: Add gdb/1516.
11541
11542 2003-12-29  Robert Millan  <[email protected]>
11543
11544         Patch committed by Andrw Cagney.
11545         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11546         * configure.tgt: Match knetbsd*-gnu.
11547
11548 2004-01-26  Andrew Cagney  <[email protected]>
11549
11550         * breakpoint.c (catch_command_1): Delete #ifdef code.
11551         (catch_fork_command_1): Delete #ifdef wrapper.
11552         (catch_exec_command_1): Ditto.
11553         (catch_load_command_1): Ditto.
11554         (catch_unload_command_1): Ditto.
11555
11556         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11557         (catch_breakpoint): Delete #if0ed function.
11558         (disable_catch_breakpoint): Ditto.
11559         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11560         (disable_catch, enable_catch, delete_catch): Ditto.
11561
11562 2004-01-26  Andrew Cagney  <[email protected]>
11563
11564         * remote.c (echo_check, quit_flag): Delete variables.
11565         (cisco_kernel_mode): Delete variable.
11566         (minitelnet_return, tty_input, escape_count): Delete variables.
11567         (remote_cisco_mode): Delete variable.
11568         (remote_cisco_open, remote_cisco_close): Delete function.
11569         (remote_cisco_mourn, remote_cisco_wait): Delete function.
11570         (init_remote_cisco_ops): Delete function.
11571         (_initialize_remote): Do not install "remote cisco" code.
11572         (read_frame): Delete cisco specific code.
11573         (remote_info_process): Delete function.
11574         (remote_wait): Delete cisco specific code.
11575         (remote_cisco_section_offsets): Delete function.
11576         (remote_cisco_objfile_relocate): Delete function.
11577         (remote_async_wait): Delete cisco specific code.
11578         (minitelnet, readtty, readsocket): Delete function.
11579
11580 2004-01-26  Andrew Cagney  <[email protected]>
11581
11582         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
11583         comments mentioning extract_returned_value_address.
11584         * infcmd.c (print_return_value): Update.  Add comments on
11585         extract_returned_value_address.
11586         * stack.c (return_command): Add comments on
11587         extract_returned_value_address.
11588         * values.c: Update comment.
11589         * m32r-tdep.c: Update comment.
11590         * sparc-tdep.c: Update comment.
11591         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11592         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11593         * sh64-tdep.c (sh64_gdbarch_init): Update.
11594         * sh-tdep.c (sh_gdbarch_init): Update.
11595         * s390-tdep.c (s390_gdbarch_init): Update.
11596         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11597         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11598         * m68k-tdep.c (m68k_gdbarch_init): Update.
11599         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11600         * m32r-tdep.c (m32r_gdbarch_init): Update.
11601         * ia64-tdep.c (ia64_gdbarch_init): Update.
11602         * h8300-tdep.c (h8300_gdbarch_init): Update.
11603         * frv-tdep.c (frv_gdbarch_init): Update.
11604         * arm-tdep.c (arm_gdbarch_init): Update.
11605         * alpha-tdep.c (alpha_gdbarch_init): Update.
11606
11607 2004-01-26  Andrew Cagney  <[email protected]>
11608
11609         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11610         SYMBOL_LOCATION_FUNCS
11611         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11612         "struct symbol_ops".
11613         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11614         type to "struct symbol_ops".
11615         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11616         (struct symbol): Replace ".aux_value.loc.funcs" and
11617         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11618         (SYMBOL_OBJFILE): Delete macro.
11619         (SYMBOL_LOCATION_FUNCS): Delete macro.
11620         (SYMBOL_LOCATION_BATON): Update.
11621         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11622         intead of SYMBOL_LOCATION_FUNCS.
11623         * ax-gdb.c (gen_var_ref): Ditto.
11624         * printcmd.c (address_info): Ditto.
11625         * findvar.c (read_var_value): Ditto.
11626         (symbol_read_needs_frame): Ditto.
11627
11628 2004-01-26  Andrew Cagney  <[email protected]>
11629
11630         * dwarf2read.c (read_func_scope): Document frame-base hack.
11631
11632 2004-01-25  Mark Kettenis  <[email protected]>
11633
11634         * infcmd.c (print_return_value): Plug memory leak; delete
11635         ui_stream object.  Rename argument `structure_return' to
11636         `struct_return'.
11637
11638 2004-01-25  Mark Kettenis  <[email protected]>
11639
11640         * infcmd.c (print_return_value): Wrap long lines.
11641         (finish_command_continuation, finish_command): Remove unused
11642         variable `funcaddr'.  Fix some coding-standards problems.
11643
11644         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11645         SECT_SIZE is large enough, not whether it's exactly the right size.
11646         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11647         TDEP->fpregset to zero.
11648
11649         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11650         floating-point registers for traditional NetBSD core files.
11651         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11652         TDEP->sizeof_fpregset here.
11653
11654 2004-01-25  Mark Kettenis  <[email protected]>
11655
11656         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11657         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11658         function with code split out from
11659         sparc32nbsd_sigcontext_frame_cache.
11660         (sparc32nbsd_sigcontext_frame_cache): Use
11661         sparc32nbsd_sigcontext_saved_regs.
11662         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11663         OpenBSD.
11664         * sparcobsd-tdep.c: New file.
11665         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11666         (sparcobsd-tdep.o): New dependency.
11667         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11668         * config/sparc/obsd.mt: New file.
11669
11670         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11671         TDEP->fpregset to be initialized to enable core file register
11672         sets.
11673
11674 2004-01-24  Mark Kettenis  <[email protected]>
11675
11676         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11677         Add opaque declarations.
11678         (sparc64nbsd_sigcontext_saved_regs): New prototype.
11679         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11680         function with code split out from
11681         sparc64nbsd_sigcontext_frame_cache.
11682         (sparc64nbsd_sigcontext_frame_cache): Use
11683         sparc64nbsd_sigcontext_saved_regs.
11684         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11685         OpenBSD.
11686         * sparc64obsd-tdep.c: New file.
11687         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11688         (sparc64obsd-tdep.o): New dependency.
11689         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11690         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11691         * config/sparc/obsd64.mt: New file.
11692
11693         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11694         read the instruction at PC.
11695
11696         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11697         value of GDB_OSABI_DEFAULT.
11698         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11699         instead of GDB_OSABI_NETBSD_AOUT.
11700
11701 2004-01-24  Nick Roberts  <[email protected]>
11702
11703         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11704         copyright.
11705
11706 2004-01-23  Andrew Cagney  <[email protected]>
11707
11708         * printcmd.c (display_command): Replace tui_set_display call with
11709         tui_set_layout_for_display_command.
11710         * tui/tui.h (enum tui_win_type): Define.
11711         (tui_set_layout): Delete declaration.
11712         (tui_set_layout_for_display_command): Rename set_tui_layout.
11713         * tui/tui-data.h (enum tui_layout_type): Define.
11714         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
11715         "tui.h".
11716         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11717         (tui_default_win_height): Rename tuiDefaultWinHeight.
11718         (tui_default_win_viewport_height): Rename
11719         tuiDefaultWinViewportHeight.
11720         (tui_set_layout): RenametuiSetLayout.
11721         * tui/tui-layout.c: Update references.
11722         * tui/tui.c: Update references.
11723         * tui/tui-disasm.c: Update references.
11724
11725 2004-01-23  David Carlton  <[email protected]>
11726
11727         Partial workaround for PR c++/1511:
11728         * cp-namespace.c: Include frame.h.
11729         (cp_lookup_transparent_type): New
11730         (cp_lookup_transparent_type_loop): New.
11731         * cp-support.h: Declare cp_lookup_transparent_type.
11732         * symtab.c (basic_lookup_transparent_type): Renamed from
11733         lookup_transparent_type.
11734         (lookup_transparent_type): Replace old body by a call to
11735         current_language->la_lookup_transparent_type.
11736         * symtab.h: Update copyright.  Declare
11737         basic_lookup_transparent_type.
11738         * language.h: Update copyright.
11739         (struct language_defn): Add la_lookup_transparent_type.
11740         * language.c: Update copyright.
11741         (unknown_language_defn): Add basic_lookup_transparent_type.
11742         (auto_language_defn): Add basic_lookup_transparent_type.
11743         (local_language_defn): Add basic_lookup_transparent_type.
11744         * ada-lang.c: Update copyright.
11745         (ada_language_defn): Add basic_lookup_transparent_type.
11746         * c-lang.c: Update copyright.
11747         (c_language_defn): Add basic_lookup_transparent_type.
11748         (cplus_language_defn): Add basic_lookup_transparent_type.
11749         (asm_language_defn): Add basic_lookup_transparent_type.
11750         (minimal_language_defn): Add basic_lookup_transparent_type.
11751         * f-lang.c: Update copyright.
11752         (f_language_defn): Add basic_lookup_transparent_type.
11753         * jv-lang.c: Update copyright.
11754         (java_language_defn): Add basic_lookup_transparent_type.
11755         * m2-lang.c: Update copyright.
11756         (m2_language_defn): Add basic_lookup_transparent_type.
11757         * objc-lang.c: Update copyright.
11758         (objc_language_defn): Add basic_lookup_transparent_type.
11759         * p-lang.c: Update copyright.
11760         (p_language_defn): Add basic_lookup_transparent_type.
11761         * scm-lang.c: Update copyright.
11762         (scm_language_defn): Add basic_lookup_transparent_type.
11763         * Makefile.in (cp-namespace.o): Depend on frame.h.
11764
11765 2004-01-23  David Carlton  <[email protected]>
11766
11767         Patch for PR c++/1520:
11768         * dwarf2read.c (read_func_scope): Set processing_current_prefix
11769         properly if we have a specification die.
11770         (determine_prefix_aux): Rename from determine_prefix.
11771         (determine_prefix): Like the old determine_prefix, but never
11772         returns NULL.
11773
11774 2004-01-23  Theodore A. Roth  <[email protected]>
11775
11776         * avr-tdep.c: Update copyright.
11777         (avr_iaddr_p): Delete unused function.
11778         (avr_saddr_p): Delete unused function.
11779
11780 2004-01-23  David Carlton  <[email protected]>
11781
11782         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11783         Fix for PR symtab/1534.
11784
11785 2004-01-23  Mark Kettenis  <[email protected]>
11786
11787         * NEWS (New native configurations): Mention OpenBSD/sparc and
11788         OpenBSD/sparc64.
11789         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11790         * configure.host: Likewise.
11791         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11792         handler for OpenBSD.
11793         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11794
11795 2004-01-22  Mark Kettenis  <[email protected]>
11796
11797         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11798         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11799
11800         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11801         * cli/cli-cmds.c (shell_escape): Likewise.
11802
11803         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11804         OpenBSD .note.openbsd.ident sections.
11805
11806 2004-01-22  David Carlton  <[email protected]>
11807
11808         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11809         get_scope_pc_bounds.
11810         (read_file_scope): Ditto.
11811         (get_scope_pc_bounds): New function, produced by extracting code
11812         from the above two functions, consolidating it, and adding support
11813         for DW_TAG_namespace.
11814
11815 2004-01-22  Mark Kettenis  <[email protected]>
11816
11817         * osabi.c (MAX_NOTESZ): New define.
11818         (check_note): New function.
11819         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11820         check_note.
11821
11822 2004-01-21  Roland McGrath  <[email protected]>
11823
11824         * MAINTAINERS (write after approval): Add myself.
11825
11826 2004-01-21  Eli Zaretskii  <[email protected]>
11827
11828         * utils.c (init_page_info): Move declarations of `rows' and
11829         `cols' before the __GO32__-specific code.  Move the closing brace
11830         outside the #ifdef __GO32__..#endif block.
11831         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11832
11833 2004-01-21  Paul Brook  <[email protected]>
11834
11835         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11836         BPSTAT_WHAT_CHECK_SHLIBS.
11837
11838 2004-01-21  Paul Brook  <[email protected]>
11839
11840         * MAINTAINERS: Add myself to write-after-approval.
11841
11842 2004-01-20  Andrew Cagney  <[email protected]>
11843
11844         * ax-gdb.c (print_axs_value): Delete unused function.
11845         * jv-lang.c (java_lookup_type): Delete unused function.
11846         * cli/cli-dump.c (dump_filetype): Delete unused function.
11847         * remote-mips.c (remote_mips_insert_hw_breakpoint)
11848         (remote_mips_remove_hw_breakpoint): Delete unused functions.
11849         (mips_getstring): Delete unused function.
11850         (pmon_insert_breakpoint): Delete #if0ed function.
11851         (PMON_MAX_BP): Delete #if0ed MACRO.
11852         (mips_pmon_bp_info): Delete #if0ed variable.
11853         (pmon_remove_breakpoint): Delete #if0ed function.
11854         * monitor.c (monitor_write_even_block): Delete unused function.
11855         (monitor_write_memory_block): Delete #if0ed code.
11856         * dink32-rom.c (dink32_load): Delete unused function.
11857         (_initialize_dink32_rom): Delete #if0ed code.
11858         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11859
11860         * tui/tui-command.c: Update references.
11861         * tui/tui-io.c: Update references.
11862         * tui/tui-command.h: Update copyright.
11863         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11864
11865         * source.c (ambiguous_line_spec): Delete never-defined function.
11866         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11867         * gdbtypes.c (add_name, add_mangled_type): Ditto.
11868         * cli/cli-cmds.c (validate_comname): Ditto.
11869
11870         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
11871         "tui-data.h".
11872         (tui_set_disassem_content): Rename tuiSetDisassemContent.
11873         (tui_show_disassem): Rename tuiShowDisassem.
11874         (tui_show_disassem_and_update_source): Rename
11875         tuiVerticalDisassemScroll.
11876         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11877         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11878         * tui/tui.h: Update copyright.
11879         (enum tui_status): Define.
11880         * tui/tui-data.h (enum tui_scroll_direction): Define.
11881         * tui/tui-disasm.c: Update copyright.  Update references.
11882         * tui/tui-winsource.c:  Update copyright.  Update references.
11883         * tui/tui-win.c: Update references.
11884         * tui/tui-layout.c: Update references.
11885
11886 2004-01-20  Andrew Cagney  <[email protected]>
11887
11888         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11889         sym2 to start of block.
11890
11891 2004-01-19  Michael Chastain  <[email protected]>
11892
11893         * MAINTAINERS: Delete mmalloc.
11894         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11895         * NEWS: Mention removal of --with-malloc.
11896         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11897         * config.in: Regenerate.
11898         * configure: Regenerate.
11899         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11900         USE_MMALLOC, MMCHECK_FORCE.
11901         * gdbinit.in: Remove mmalloc.
11902         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11903         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11904         * config/i386/go32.mh: Likewise.
11905         * config/i386/interix.mh: Likewise.
11906         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11907
11908 2004-01-19  Jeff Johnston  <[email protected]>
11909
11910         * linespec.c (decode_variable, symtab_from_filename):  Call
11911         error_silent with error message instead of throwing an exception
11912         directly.
11913         * defs.h (error_silent, error_output_message): Add prototypes.
11914         (catch_exceptions_with_msg): Ditto.
11915         * utils.c (error_silent, error_output_message): New functions.
11916         * top.c (catch_exceptions_with_msg): New function.
11917
11918 2004-01-20  Nick Roberts  <[email protected]>
11919
11920         * mi/mi-cmds.h (enum print_values): Add definition.
11921
11922         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11923         type and value for simple data types and just the name and type
11924         for complex ones, if required.
11925
11926         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11927         children, if required.
11928
11929 2004-01-19  Kevin Buettner  <[email protected]>
11930
11931         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11932         unused declarations.
11933
11934 2004-01-19  Andrew Cagney  <[email protected]>
11935
11936         * top.h (mapped_symbol_files): Delete declaration.
11937         * main.c (captured_main): Delete option "m" and "mapped".
11938         * objfiles.c (mapped_symbol_files): Delete variable.
11939         * symfile.c (symbol_file_command): Delete mmap code.
11940         (symbol_file_add_with_addrs_or_offsets): Ditto.
11941         (add_symbol_file_command, reread_separate_symbols): Ditto.
11942         * objfiles.h (OBJF_MAPPED): Delete.
11943         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11944         (free_objfile) [USE_MMALLOC]: Ditto.
11945         (open_existing_mapped_file): Delete function.
11946         (open_mapped_file): Delete function.
11947         (map_to_file): Delete function.
11948
11949 2004-01-19  Kevin Buettner  <[email protected]>
11950
11951         * infrun.c (step_into_function): Account for possible breakpoint
11952         adjustment when computing ``stop_func_start''.
11953
11954 2004-01-19  Kevin Buettner  <[email protected]>
11955
11956         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11957         the region size against the size of a pointer, not the size of
11958         a register as given by DEPRECATED_REGISTER_SIZE.
11959
11960 2004-01-19  Andrew Cagney  <[email protected]>
11961
11962         * tui/tui-regs.h: Include "tui-data.h".
11963         (tuiFirstRegElementNoInLine): Delete declaration.
11964         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11965         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11966         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11967         (tui_calculate_regs_column_count): Rename
11968         tuiCalculateRegsColumnCount.
11969         (tui_check_register_values): Rename tuiCheckRegisterValues.
11970         (tui_show_registers): Rename tuiShowRegisters.
11971         (tui_display_registers_from_line): Rename
11972         tuiDisplayRegistersFromLine.
11973         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11974         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11975         (tui_first_reg_element_no_inline): Rename
11976         tuiFirstRegElementNoInLine.
11977         * tui/tui-data.h: Update copyright.
11978         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11979         * tui/tui-windata.c: Update copyright, update references.
11980         * tui/tui-regs.c: Update copyright, update references.
11981         * tui/tui-win.c: Update copyright, update references.
11982         * tui/tui-layout.c: Update copyright, update references.
11983
11984 2004-01-18  Andrew Cagney  <[email protected]>
11985
11986         * tui/tui-io.c: Update copyright.
11987         (key_is_end_sequence, key_is_backspace): New functions.
11988         (key_is_command_char, key_is_start_sequence): New function.
11989         (tui_getc): Update references.
11990         * tui/tui-io.h: Update copyright.
11991         (m_tuiStartNewLine): Delete macro.
11992         (m_isBackspace, m_isDeleteChar): Delete macros.
11993         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11994         (m_isNextPage, m_isPrevPage): Delete macros.
11995         (m_isLeftArrow, m_isRightArrow): Delete macros.
11996         (m_isXdbStyleCommandChar): Delete macro.
11997         (key_is_start_sequence): Declare, replace m_isStartSequence.
11998         (key_is_end_sequence): Declare, replace m_isEndSequence.
11999         (key_is_backspace): Declare ,replace m_isBackspace.
12000         (key_is_command_char): Declare, replace m_isCommandChar.
12001         * tui/tui-command.c: Update copyright.
12002         (tuiDispatchCtrlChar): Update references.
12003
12004         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12005         tuiSourceWin.h.
12006
12007         * tui/tui-command.c: Rename tui/tuiCommand.c.
12008         * tui/tui-command.h: Rename tui/tuiCommand.h.
12009         * tui/tui-data.c: Rename tui/tuiData.c.
12010         * tui/tui-data.h: Rename tui/tuiData.h.
12011         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12012         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12013         * tui/tui-io.c: Rename tui/tuiIO.c.
12014         * tui/tui-io.h: Rename tui/tuiIO.h.
12015         * tui/tui-layout.c: Rename tui/tuiLayout.c.
12016         * tui/tui-layout.h: Rename tui/tuiLayout.h.
12017         * tui/tui-regs.c: Rename tui/tuiRegs.c.
12018         * tui/tui-regs.h: Rename tui/tuiRegs.h.
12019         * tui/tui-source.c: Rename tui/tuiSource.c.
12020         * tui/tui-source.h: Rename tui/tuiSource.h.
12021         * tui/tui-stack.c: Rename tui/tuiStack.c.
12022         * tui/tui-stack.h: Rename tui/tuiStack.h.
12023         * tui/tui-win.c: Rename tui/tuiWin.c.
12024         * tui/tui-win.h: Rename tui/tuiWin.h.
12025         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12026         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12027         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12028         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12029         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12030         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12031         * tui/tui-file.c: Update includes.
12032         * tui/tui-hooks.c: Update includes.
12033         * tui/tui-interp.c: Update includes.
12034         * tui/tui.c: Update includes.
12035         * Makefile.in: Update all tui/ dependencies.
12036         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12037
12038         * Makefile.in: Update copyright.  Update dependencies.
12039
12040         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12041         problem.
12042
12043 2004-01-18  Andrew Cagney  <[email protected]>
12044
12045         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12046         instead of register_gdbarch_init.
12047
12048         * remote-sds.c (tohex): Delete unused function.  Update copyright.
12049         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12050         * v850-tdep.c (v850_register_virtual_size): Ditto.
12051         * target.c (normal_target_post_startup_inferior): Ditto.
12052         * source.c (ambiguous_line_spec): Ditto.
12053         * remote.c (adapt_remote_get_threadinfo): Ditto.
12054         * mi/mi-out.c (out_field_fmt): Ditto.
12055         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12056         (output_control_change_notification): Ditto.
12057         * m68k-tdep.c (m68k_register_byte): Ditto.
12058         (m68k_remote_breakpoint_from_pc): Ditto.
12059         * ui-out.c (init_ui_out_state): Delete unused declaration.
12060         * stabsread.c (search_value): Ditto.
12061         * mi/mi-cmd-env.c (env_cli_command): Ditto.
12062         * maint.c (print_section_table): Ditto.
12063         * infrun.c (set_follow_fork_mode_command): Ditto.
12064
12065 2004-01-18  Mark Kettenis  <[email protected]>
12066
12067         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12068         DW_CFA_def_cfa_exporession.  Add support for
12069         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12070         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
12071
12072 2004-01-18  Andrew Cagney  <[email protected]>
12073
12074         * ocd.c: Update copyright.
12075         (bdm_read_register_command): Delete unused function.
12076         (_initialize_remote_ocd): Delete commented out reference.
12077         (get_quoted_char, reset_packet): Delete #if0ed function.
12078         (output_packet, put_quoted_char): Delete #if0ed function.
12079         (stu_put_packet, stu_get_packet): Delete #if0ed function.
12080         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12081         (BDM_BREAKPOINT): Delete #if0ed macro.
12082         (remote_timeout): Delete #if0ed variable.
12083
12084 2004-01-18  Mark Kettenis  <[email protected]>
12085
12086         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12087         (core-sol2.o): Remove dependency.
12088         * core-sol2.c: Remove file.
12089
12090 2004-01-17  Andrew Cagney  <[email protected]>
12091
12092         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12093         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12094         enums.
12095
12096 2004-01-17  Daniel Jacobowitz  <[email protected]>
12097
12098         * remote.c: Update copyright years.
12099
12100 2004-01-17  Daniel Jacobowitz  <[email protected]>
12101
12102         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12103
12104 2004-01-17  Andrew Cagney  <[email protected]>
12105
12106         * mdebugread.c: Update copyright.
12107         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12108         (parse_type, parse_procedure): Ditto.
12109         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12110
12111         * cris-tdep.c (cris_store_struct_return): Put back accidently
12112         deleted function.
12113
12114         * gdbarch.sh: Update copyright year.
12115         * gdbarch.h, gdbarch.c: Re-generate.
12116
12117 2004-01-17  Daniel Jacobowitz  <[email protected]>
12118
12119         Suggested by George Anzinger.
12120         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12121         correct stack offset.  Include unknown opcode numbers in the error
12122         message.
12123
12124 2004-01-17  Andrew Cagney  <[email protected]>
12125
12126         * x86-64-tdep.c (x86_64_init_abi): No need to clear
12127         extract_struct_value_address, i386 does not set it.
12128         * sparc64-tdep.c (sparc64_init_abi): Do not set
12129         extract_struct_value_address, never called.
12130         (sparc64_extract_struct_value_address): Delete function.
12131         * m68hc11-tdep.c: Update copyright.
12132         (m68hc11_gdbarch_init): Delete redundant assignment of
12133         extract_struct_value_address.
12134         * i386-tdep.c: Update copyright.
12135         (i386_gdbarch_init): Do not set extract_struct_value_address,
12136         never called.
12137         (i386_extract_struct_value_address): Delete function.
12138         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12139         extract_struct_value_address, never called.
12140         (sparc32_extract_struct_value_address): #if 0 function.  Add
12141         comments explaining its future.
12142
12143 2004-01-17  Daniel Jacobowitz  <[email protected]>
12144
12145         * arm-tdep.c (arm_write_pc): New function.
12146         (arm_gdbarch_init): Call set_gdbarch_write_pc.
12147
12148 2004-01-17  Daniel Jacobowitz  <[email protected]>
12149
12150         * breakpoint.c (must_shift_inst_regs): Delete.
12151         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12152         and SHIFT_INST_REGS.
12153         * infcmd.c (step_1, step_1_continuation): Delete references to
12154         SHIFT_INST_REGS.
12155         * infrun.c (keep_going): Likewise.
12156         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12157         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12158
12159 2004-01-17  Andrew Cagney  <[email protected]>
12160
12161         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12162         * gdbarch.h, gdbarch.c: Re-generate.
12163         * infcmd.c (print_return_value): Delete reference to
12164         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12165
12166         * cris-tdep.c (cris_gdbarch_init): Do not set
12167         deprecated_extract_struct_value_address.
12168
12169         * xstormy16-tdep.c: Update copyright.
12170         (xstormy16_extract_struct_value_address): Update to current
12171         extract struct value address interface.
12172         (xstormy16_gdbarch_init): Set extract_struct_value_address.
12173         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12174         current extract struct value address interface.
12175         (sh64_gdbarch_init): Set extract_struct_value_address.
12176
12177         * cris-tdep.c: Update copyright.
12178         (cris_extract_struct_value_address): Delete function.
12179         (struct_return_address): Delete variable.
12180         (cris_store_struct_return): Do not set struct_return_address.
12181
12182         * mcore-tdep.c: Update copyright.
12183         (mcore_extract_struct_value_address): Delete function.  Update
12184         comments.
12185         (mcore_gdbarch_init): Update.
12186         * mn10300-tdep.c: Update copyright.
12187         (mn10300_extract_struct_value_address): Delete function.
12188         (mn10300_gdbarch_init): Update.
12189         * v850-tdep.c: Update copyright.
12190         (v850_extract_struct_value_address): Delete.
12191         (v850_gdbarch_init): Update.
12192         * ns32k-tdep.c: Update copyright.
12193         (ns32k_extract_struct_value_address): Delete.
12194         (ns32k_gdbarch_init): Update.
12195         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12196         (hppa_gdbarch_init): Update.
12197         * vax-tdep.c: Update copyright.
12198         (vax_extract_struct_value_address): Delete.
12199         (vax_gdbarch_init): Update.
12200
12201         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12202         * gdbarch.h, gdbarch.c: Re-generate.
12203         * procfs.c (procfs_fetch_registers): Delete reference to
12204         DEPRECATED_NPC_REGNUM.
12205         (procfs_store_registers): Ditto.
12206         * regcache.c (generic_target_write_pc): Simplify.
12207         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
12208
12209         * core-sol2.c (fetch_core_registers): Replace
12210         DEPRECATED_NPC_REGNUM with equivalent tdep value.
12211
12212         * hppa-tdep.c: Update copyright year.
12213         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12214         NPC_REGNUM.
12215         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12216
12217         * mips-tdep.c (mips_write_pc): New function.
12218         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12219         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12220         (mips_find_saved_regs, mips_software_single_step: Ditto.
12221         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12222         mips_init_extra_frame_info, mips_pop_frame): Ditto.
12223
12224 2004-01-17  Andrew Cagney  <[email protected]>
12225
12226         * mips-tdep.c: Re-indent.  Group functions by ABI.
12227
12228 2004-01-17  Andrew Cagney  <[email protected]>
12229
12230         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12231         * gdbarch.c: Re-generate.
12232         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12233         DECR_PC_AFTER_BREAK to zero.
12234         * vax-tdep.c (vax_gdbarch_init): Ditto.
12235         * v850-tdep.c (v850_gdbarch_init): Ditto.
12236         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12237         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12238         * sh-tdep.c (sh_gdbarch_init): Ditto.
12239         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12240         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12241         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12242         * mips-tdep.c (mips_gdbarch_init): Ditto.
12243         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12244         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12245         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12246         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12247         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12248         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12249         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12250         * frv-tdep.c (frv_gdbarch_init): Ditto.
12251         * cris-tdep.c (cris_gdbarch_init): Ditto.
12252         * avr-tdep.c (avr_gdbarch_init): Ditto.
12253         * arm-tdep.c (arm_gdbarch_init): Ditto.
12254         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12255
12256 2004-01-17  J. Brobecker  <[email protected]>
12257
12258         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12259         Delete, no longer used.
12260         (read_subrange_type): New function, mostly extracted from
12261         read_array_type().
12262         (read_array_type): Replace extracted code by call to
12263         read_subrange_type().
12264         (dwarf2_get_attr_constant_value): New function.
12265         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12266         (add_partial_symbol): Likewise.
12267         (process_die): Likewise.
12268         (new_symbol): Likewise.
12269         (read_type_die): Likewise.
12270
12271 2004-01-16  Andrew Cagney  <[email protected]>
12272
12273         * symfile.c: Update copyright year.
12274         (compare_symbols): Delete unused function.
12275         * stabsread.c: Update copyright year.
12276         (lrs_general_complaint): Delete unused function.
12277         (ref_search_value): Ditto.
12278         (get_substring): Delete declaration.
12279         * sh64-tdep.c: Update copyright year.
12280         (sh64_get_gdb_regnum): Delete unused function.
12281         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12282         Delete unused function.
12283
12284 2004-01-17  Mark Kettenis  <[email protected]>
12285
12286         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12287         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12288
12289 2004-01-16  Andrew Cagney  <[email protected]>
12290
12291         Changes from Peter Schauer.
12292         * rs6000-tdep.c: Update copyright year.
12293         (rs6000_push_dummy_call): Update the stack pointer before
12294         accessing the corresponding stack region.
12295         * rs6000-nat.c: Update copyright year.
12296         (set_host_arch): Set "info.abfd" to "exec_bfd".
12297
12298 2004-01-15  Mark Kettenis  <[email protected]>
12299
12300         * blockframe.c: Update copyright year.
12301         (inside_entry_func): Don't treat a zero PC specially.
12302
12303 2004-01-14  Elena Zannoni  <[email protected]>
12304
12305         * gcore.c (gcore_copy_callback): Use paddr_d to print size
12306         variable.
12307         (gcore_create_callback): Ditto.  Skip any memory segment that has
12308         no permissions set.
12309
12310 2004-01-14  David Carlton  <[email protected]>
12311
12312         Change symbols for C++ nested types to contain the fully qualified
12313         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
12314         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12315         c++/895.
12316         * c-exp.y (qualified_type): Handle types nested within classes.
12317         * cp-namespace.c: Update comments.
12318         (cp_set_block_scope): Delete #if 0.
12319         (cp_lookup_nested_type): Handle types nested within classes.
12320         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12321         when appropriate.
12322         (add_partial_symbol): Add the name of the enclosing namespace to
12323         types.
12324         (pdi_needs_namespace): New.
12325         (add_partial_namespace): Tweak comment.
12326         (add_partial_structure): New.
12327         (psymtab_to_symtab_1): Initialize processing_current_prefix
12328         here...
12329         (process_die): instead of here.
12330         (read_structure_scope): Try to figure out the name of the class or
12331         namespace that the structure might be defined within.
12332         (read_enumeration): Generate fully-qualified names, if possible.
12333         (read_namespace): Don't set name to NULL.
12334         (die_specification): New.
12335         (new_symbol): Generate fully-qualified names for types.
12336         (read_type_die): Determine appropriate prefix.
12337         (determine_prefix): New.
12338         (typename_concat): New.
12339         (class_name): New.
12340         * valops.c (value_aggregate_elt): Pass NOSIDE to
12341         value_struct_elt_for_reference.
12342         (value_struct_elt_for_reference): Make static, add NOSIDE
12343         parameter, call value_maybe_namespace_elt as a last resort.
12344         (value_namespace_elt): Break out code into
12345         value_maybe_namespace_elt.
12346         (value_maybe_namespace_elt): New.
12347
12348 2004-01-12  Andrew Cagney  <[email protected]>
12349
12350         * mips-tdep.c (mips_convert_register_p): Handle both raw and
12351         cooked floating-point registers.
12352         (mips_gdbarch_init): Set convert_register_p, register_to_value,
12353         and value_to_register.
12354
12355 2004-01-13  Andrew Cagney  <[email protected]>
12356
12357         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12358         * gdbarch.c: Re-generate.
12359         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12360         FUNCTION_START_OFFSET.
12361         * v850-tdep.c (v850_gdbarch_init): Ditto.
12362         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12363         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12364         * sh-tdep.c (sh_gdbarch_init): Ditto.
12365         * s390-tdep.c (s390_gdbarch_init): Ditto.
12366         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12367         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12368         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12369         * mips-tdep.c (mips_gdbarch_init): Ditto.
12370         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12371         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12372         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12373         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12374         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12375         * i386-tdep.c (i386_gdbarch_init): Ditto.
12376         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12377         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12378         * frv-tdep.c (frv_gdbarch_init): Ditto.
12379         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12380         * cris-tdep.c (cris_gdbarch_init): Ditto.
12381         * avr-tdep.c (avr_gdbarch_init): Ditto.
12382         * arm-tdep.c (arm_gdbarch_init): Ditto.
12383         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12384
12385 2004-01-13  Daniel Jacobowitz  <[email protected]>
12386
12387         * infrun.c (follow_fork_mode_ask): Remove.
12388         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12389         (follow_fork): Simplify and remove internal error for
12390         follow_fork_mode_ask.
12391         (_initialize_infrun): Update "set follow-fork-mode" help text.
12392
12393 2004-01-13  Andrew Cagney  <[email protected]>
12394
12395         * configure.in: Update copyright year.
12396         (build_warnings): Add -Wunused-label.
12397         * configure: Re-generate.
12398
12399 2004-01-12  Andrew Cagney  <[email protected]>
12400
12401         * exec.h (exec_ops): Make "extern".
12402
12403         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12404         the function is void.
12405         (mips_pseudo_register_write): Ditto.
12406
12407 2004-01-12  Andrew Cagney  <[email protected]>
12408
12409         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12410         call.  Never defined.
12411         * sparc-tdep.h (struct frame_info): Add opaque declaration.
12412         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12413         (struct sparc_gregset, struct regcache): Ditto.
12414         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
12415
12416 2004-01-12  Andrew Cagney  <[email protected]>
12417
12418         * mi/ChangeLog: Delete file.  Renamed to ...
12419         * mi/ChangeLog-1999-2003: New file.
12420         * tui/ChangeLog: Delete file.  Renamed to ...
12421         * tui/ChangeLog-1998-2003: New file.
12422
12423 2004-01-11  Mark Kettenis  <[email protected]>
12424
12425         * sparc64nbsd-tdep.c: Include "regset.h".
12426         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12427         Remove variables.
12428         (fetch_core_registers): Remove function.
12429         (sparc64nbsd_core_fns): Remove variable.
12430         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12431         functions.
12432         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12433         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12434         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12435
12436         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12437         sparc_extract_struct_value_address.
12438         (sparc32_gdbarch_init): Set extract_struct_value_address.
12439         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12440         function.
12441         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
12442         return_value_on_stack.
12443
12444         * NEWS: Mention that %cs and %ss have been added to the AMD64
12445         configurations
12446
12447         * frame.c: Update copyright year.
12448         (get_prev_frame): Improve comment.
12449
12450         * sparc64fbsd-tdep.c: Include "regset.h".
12451         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12452         Remove variables.
12453         (fetch_core_registers): Remove function.
12454         (sparc64fbsd_core_fns): Remove variable.
12455         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12456         functions.
12457         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12458         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12459         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12460
12461         * sparcnbsd-tdep.c: Include "regset.h".
12462         (fetch_core_registers): Remove function.
12463         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12464         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12465         functions.
12466         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12467         TDEP->fpregset.
12468         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12469
12470         * sparc-tdep.h (struct regset): Provide opaque declaration.
12471         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12472         fpregset and sizeof_fpregset members.
12473         * sparc-tdep.c (struct regset): Provide opaque declaration.
12474         (sparc_regset_from_core_section): New function.
12475         (sparc32_gdbarch_init): Initialize TDEP->gregset,
12476         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12477         Set regset_from_core_section when appropriate.
12478
12479 2004-01-10  Mark Kettenis  <[email protected]>
12480
12481         * x86-64-tdep.c (amd64_non_pod_p): New function.
12482         (amd64_classify_aggregate): Return class memory for non-POD
12483         C++ structure types.
12484
12485         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12486         argument.  Use it to reserve a register if necessary.
12487         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12488         amd64_push_arguments.
12489
12490         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12491
12492         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
12493         register numbers in comments.
12494         * x86-64-tdep.h: Update copyright year.
12495         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12496         Adjust for addition of %cs and %ss.
12497         * amd64fbsd-nat.c: Update copyright year.
12498         (reg_offset): Add register offsets for %cs and %ss.
12499         * amd64fbsd-tdep.c: Update copyright year.
12500         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12501         (amd64fbsd_sc_reg_offset): Likewise.
12502         * x86-64-linux-nat.c: Update copyright year.
12503         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12504         and %ss.
12505         * amd64nbsd-nat.c: Update copyright year.
12506         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12507         * amd64nbsd-tdep.c: Update copyright year.
12508         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12509         * x86-64-linux-tdep.c: Update copyright year.
12510         (user_to_gdb_regmap): Add mapping for %cs and %ss.
12511         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12512         * regformats/reg-x86-64.dat: Add %cs and %ss.
12513
12514         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
12515         variables to prevent long lines.  Update comments to reflect
12516         reality.
12517
12518 2004-01-09  David Carlton  <[email protected]>
12519
12520         Checked in by Elena Zannoni  <[email protected]>.
12521         * dwarf2read.c (read_namespace): Pull out name-generating code
12522         into namespace_name. Rename previous_namespace to previous_prefix
12523         and processing_current_namespace to processing_current_prefix..
12524         (namespace_name): New function.
12525         (add_partial_symbol): Substitute uses of pdi->name with
12526         actual_name.
12527         * cp-support.h: Rename processing_current_namespace to
12528         processing_current_prefix.
12529         Update copyright year.
12530         * cp-namespace.c: Rename processing_current_namespace to
12531         processing_current_prefix.
12532         Update copyright year.
12533
12534 2004-01-09  Andrew Cagney  <[email protected]>
12535
12536         * jv-valprint.c, ser-unix.c: Add missing copyright years.
12537
12538 2004-01-09  Mark Kettenis  <[email protected]>
12539
12540         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12541         complaining.
12542         (process_one_symbol): Deal with N_PATCH stabs.
12543
12544 2004-01-09  Elena Zannoni  <[email protected]>
12545
12546         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12547         ifdeffed code.
12548         Update copyright year.
12549
12550 2004-01-08  Michael Chastain  <[email protected]>
12551
12552         * config/pa/tm-hppa.h: Update extern declarations for
12553         hppa32_hpux_frame_saved_pc_in_sigtramp,
12554         hppa32_hpux_frame_base_before_sigtramp, and
12555         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12556
12557 2004-01-08  Michael Chastain  <[email protected]>
12558
12559         * config/pa/tm-hppah.h: Update copyright years.
12560
12561 2004-01-08  Andrew Cagney  <[email protected]>
12562
12563         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12564         (mips_o32_reg_struct_has_addr): Delete function.
12565         (mips_gdbarch_init): Update.
12566         (mips_extract_struct_value_address): Delete function.
12567
12568 2004-01-08  David Mosberger  <[email protected]>
12569
12570         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12571         reality.
12572
12573 2004-01-07  Andrew Cagney  <[email protected]>
12574
12575         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12576         architecture's elf flags (when available).
12577
12578         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12579         FPU to the start, check the MIPS FPU when looking for an old
12580         architecture.
12581         (set_mipsfpu_single_command): Update the architecture.
12582         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12583
12584         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12585         (mips_mask_address_p): Add "tdep" parameter.
12586         (show_mask_address, mips_addr_bits_remove): Update.
12587         (mips_dump_tdep): Update.
12588         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12589         (MIPS_STACK_ARGSIZE): Delete macro.
12590         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12591         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12592         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12593         (mips_dump_tdep): Update.
12594         (MIPS_SAVED_REGSIZE): Delete macro.
12595         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12596         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12597         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12598         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12599         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12600         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12601         (mips_pop_frame, return_value_location): Update.
12602         (mips_n32n64_return_value, mips_dump_tdep): Update.
12603
12604         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12605         MIPS ABI.
12606
12607         * mips-tdep.c: Update copyright.
12608         (mips_gdbarch_init): Merge two code blocks handling the register
12609         name and number layout.
12610
12611 2004-01-02  Pawel Ostrowski  <[email protected]>
12612
12613         * tracepoint.c (validate_actionline): Fix segv at EOF
12614
12615 2004-01-07  Michael Chastain  <[email protected]>
12616
12617         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12618         properly for static fields.
12619
12620 2004-01-06  Jeff Johnston  <[email protected]>
12621             Jason Molenda  <[email protected]>
12622
12623         * disasm.c: Update copyright to include 2004.
12624         (do_mixed_source_and_assembly): For uiout asm list
12625         and tuple cleanups, initialize to null_cleanup instead of
12626         NULL and do so prior to loop.  Only reset when we close off
12627         the tuple/list.  Move check for whether to close off the
12628         asm tuple/list to after dump_insns call where it will be run
12629         on each loop iteration.
12630
12631 2004-01-05  Andrew Cagney  <[email protected]>
12632
12633         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12634         should be a switch case and not a label.
12635         * mips-tdep.c (mips32_next_pc): Delete unused labels
12636         "greater_equal_branch" and "less_zero_branch".
12637         * jv-valprint.c (java_print_value_fields): Delete unused label
12638         "flush_it".
12639
12640         * target.c (unpush_target): Only close a target that is in the
12641         target stack.
12642
12643 2004-01-05  Mark Kettenis  <[email protected]>
12644
12645         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12646         address from [sp + 64] instead of %o2.
12647
12648         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
12649         fixes PR backtrace/1476.
12650
12651 2004-01-05  Andrew Cagney  <[email protected]>
12652
12653         * libunwind-frame.h (struct frame_id): Add opaque declaration,
12654         move to start of file.
12655         * i386-tdep.h (struct regcache): Add opaque declaration.
12656         * config/ia64/nm-linux.h (struct target_ops): Add opaque
12657         declaration.
12658         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12659         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12660         * win32-nat.c (fake_create_process): Use ISO C style definition.
12661         * stabsread.c (define_symbol): Delete #ifndef
12662         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12663         stabs_argument_has_addr call, macro never defined.
12664
12665 2004-01-04  Michael Chastain  <[email protected]>
12666
12667         * op50-rom.c: Delete.
12668         * w89k-rom.c: Delete.
12669         * Makefile.in: Remove references.
12670
12671 2004-01-04  Mark Kettenis  <[email protected]>
12672
12673         * x86-64-tdep.c: Update copyright year.
12674         (struct amd64_register_info): Rename from x86_64_register_info.
12675         (amd64_register_info): Rename from x86_64_register_info.
12676         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12677         (amd64_register_name): Rename from x86_64_register_name.
12678         (amd64_register_type): Rename from x86_64_register_type.
12679         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12680         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12681         (amd64_dwarf_reg_to_regnum): Rename from
12682         x86_64_dwarf_reg_to_regnum.
12683         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12684         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12685         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12686         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12687         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12688         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12689         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12690         (amd64_frame_cache): Rename from x86_64_frame_cache.
12691         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12692         (amd64_frame_prev_register): Rename from
12693         x86_64_frame_prev_register.
12694         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12695         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12696         (amd64_sigtramp_frame_cache): Rename from
12697         x86_64_sigtramp_frame_cache.
12698         (amd64_sigtramp_frame_prev_register): Rename from
12699         x86_64_sigtramp_frame_prev_register.
12700         (amd64_sigtramp_frame_unwind): Rename from
12701         x86_64_sigtramp_frame_unwind.
12702         (amd64_sigtramp_frame_sniffer): Rename from
12703         x86_64_sigtramp_frame_sniffer.
12704         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12705         (amd64_frame_base): Rename from x86_64_frame_base.
12706         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12707         (amd64_frame_align): Rename from x86_64_frame_align.
12708         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12709         (amd64_regset_from_core_section): Rename from
12710         x86_64_regset_from_core_section.
12711         (x86_64_init_abi): Update comments.
12712
12713 2004-01-04  Nick Roberts  <[email protected]>
12714
12715         * MAINTAINERS (write after approval): Add myself.
12716
12717 2004-01-04  Mark Kettenis  <[email protected]>
12718
12719         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12720         `float' arguments.
12721
12722 2004-01-04  Mark Kettenis  <[email protected]>
12723
12724         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12725         such that it mentions a specific version of GCC that exhibits this
12726         bug.
12727
12728 2004-01-03  Mark Kettenis  <[email protected]>
12729
12730         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12731         structure that has a single `float' member, store it in %f1 in
12732         addition to %f0.
12733
12734         * sparc-sol2-nat.c: Add missing '\'.
12735
12736         * sparc-tdep.c (sparc32_return_value): New function.
12737          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12738         Remove functions.
12739         (sparc32_gdbarch_init): Set return_value, don't set
12740         extract_return_value, store_return_value, use_struct_convention
12741         and return_value_on_stack.
12742
12743         * sparc-sol2-nat.c: Add missing ')'.
12744
12745 2004-01-03  J. Brobecker  <[email protected]>
12746
12747         * infrun.c (handle_step_into_function): New function.
12748         (handle_inferior_event): Extract out some code into the new
12749         function above.
12750
12751 2004-01-03  J. Brobecker  <[email protected]>
12752
12753         * infrun.c (handle_inferior_event): Move the declaration of
12754         real_stop_pc inside the if blocks where it is used.
12755
12756 2004-01-03  Mark Kettenis  <[email protected]>
12757
12758         * sparc64-tdep.c (sparc64_16_byte_align_p)
12759         (sparc64_store_floating_fields, sparc64_store_floating_fields):
12760         Use check_typedef to get subtypes of structures and unions.
12761         (sparc64_store_return_value): Fix calculation of the appropriate
12762         offset into VALBUF when storing a structure or union.
12763         (sparc64_return_value): New function.
12764         (sparc64_use_struct_convention): Remove function.
12765         (sparc64_init_abi): Set return_value, don't set
12766         extract_return_value, store_return_value and
12767         use_struct_convention.
12768
12769 2004-01-03  Eli Zaretskii  <[email protected]>
12770
12771         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12772         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12773         gdb/config/alpha/xm-alphaosf.h,
12774         gdb/config/powerpc/tm-ppcle-eabi.h,
12775         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12776         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12777         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12778         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12779         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12780         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12781         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12782         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12783         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12784         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12785         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12786         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12787         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12788         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12789         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12790         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12791         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12792         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12793         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12794         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12795         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12796         Remove lines for .cvsignore files.
12797
12798 2004-01-03  J. Brobecker  <[email protected]>
12799
12800         * infrun.c: Back out the previous change.
12801
12802 2004-01-03  Mark Kettenis  <[email protected]>
12803
12804         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
12805         sparc-*-sunos4* to the list of REMOVED configurations.
12806
12807         * configure.tgt: Add back sparc-*-vxworks*.
12808         * remote-vxsparc.c: Remove all includes except for "defs.h",
12809         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12810         Include "sparc-tdep.h".
12811         (SPARC_R_G1): New define.
12812         (vxsparc_gregset): New variable.
12813         (ext_format_sparc): Remove extern declaration.
12814         (vx_read_register): Rewrite to use sparc32_supply_gregset and
12815         sparc32_supply_fpregset.
12816         (vx_write_register): Rewrite to use sparc32_collect_gregset,
12817         sparc_collect_rwindow and sparc32_collect_fpregset.
12818         * config/sparc/tm-vxworks.h: New file, based on recently removed
12819         tm-vxsparc.h.
12820         * config/sparc/vxworks.mt: New file, based on recently removed
12821         vxworks.mt.
12822
12823 2004-01-03  J. Brobecker  <[email protected]>
12824
12825         * infrun.c (handle_step_into_function): New function.
12826         (handle_inferior_event): Extract out some code into the new
12827         function above.
12828
12829 2004-01-02  Mark Kettenis  <[email protected]>
12830
12831         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12832         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12833         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12834         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12835         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12836         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12837         (sparc_nat_h): New variable.
12838         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12839         (tm-sun4os4.h): Remove dependency.
12840         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12841         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12842         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12843         sparc-tdep.o): Update dependencies.
12844         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12845         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12846         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12847         dependencies.
12848         * configure.host: Remove existing sparc-*-lynxos*,
12849         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12850         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12851         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
12852         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12853         triplets.
12854         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12855         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12856         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12857         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
12858         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12859         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12860         sparc64-*-solaris2* and sparc64-*-* triplets.
12861         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
12862         "symtab.h" and "objfiles.h".
12863         (BIAS): Remove define.
12864         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12865         (X_DISP19): Remove macros.
12866         (sparc_fetch_instruction): Remove function.
12867         (struct gdbarch_tdep): Remove definition.
12868         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12869         (sparc_breakpoint_from_pc): Remove function.
12870         (struct sparc64_frame_cache): Remove definition.
12871         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12872         sparc64_unwind_pc): Remove functions.
12873         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12874         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
12875         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
12876         (sparc64_frame_cache): Change return type to `struct
12877         sparc_frame_cache *'.  Simply call sparc_frame_cache.
12878         (sparc64_frame_this_id, sparc64_frame_prev_register,
12879         sparc64_frame_base_address): Use `struct sparc_frame_cache'
12880         instead of `struct sparc64_frame_cache.
12881         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12882         sparc_analyze_control_transfer, sparc_software_single_step,
12883         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12884         _initialize_sparc64_tdep): Remove functions.
12885         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12886         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12887         macros.
12888         (sparc64_supply_gregset, sparc64_collect_gregset,
12889         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12890         (sparc64_init_abi): New function.
12891         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
12892         inclusion guard.  Include "sparc-tdep.h".
12893         (BIAS): Define.
12894         (r_tstate_offset, r_fprs_offset): New defines.
12895         (enum sparc_regnum): Remove defenition.
12896         (enum sparc64_regnum): Reformat.
12897         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12898         (sparc64_init_abi, sparc64_supply_gregset,
12899         sparc64_collect_gregset, sparc64_supply_fpregset,
12900         sparc64_collect_fpregset): New prototypes.
12901         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12902         Add extern declarations.
12903         (sparc64_sol2_init_abi): New prototype.
12904         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12905         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12906         prototypes.
12907         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12908         "sparnbsd-nat.h".
12909         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12910         functions.
12911         (_initialize_sparc64fbsd_nat): Remove initialization of
12912         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12913         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12914         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
12915         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
12916         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12917         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12918         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12919         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12920         (sparc64fbsd_r_y_offset): Remove variables.
12921         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12922         Make static and const.
12923         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12924         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12925         functions.
12926         (sparc64fbsd_gregset): New variable.
12927         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12928         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12929         and sparc64_supply_fpregset.
12930         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12931         (sparc64fbsd_sigtramp_frame_this_id)
12932         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12933         (sparc64fbsd_sigtramp_frame_unwind): New variable.
12934         (sparc64fbsd_sigtramp_frame_sniffer): New function.
12935         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12936         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
12937         * sparcnbsd-tdep.c: Update copyright year.  Include
12938         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12939         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12940         "value.h" and "sparcnbsd-tdep.h".
12941         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12942         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12943         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12944         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12945         defines.
12946         (sparcnbsd_gregset): New variable.
12947         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12948         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12949         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12950         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12951         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12952         variables.
12953         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12954         (sparc32nbsd_sigcontext_frame_this_id)
12955         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12956         (sparc32nbsd_sigcontext_frame_unwind): New variable.
12957         (sparc32nbsd_sigtramp_frame_sniffer): New function.
12958         (sparcnbsd_get_longjmp_target_32,
12959         sparcnbsd_get_longjmp_target_64): Remove functions.
12960         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12961         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12962         sparcnbsd_init_elf): Remove.
12963         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12964         (sparcnbsd_elf_init_abi): New functions.
12965         (_initialize_sparcnbsd_tdep): New prototype.
12966         (_initialize_sparnbsd_tdep): Update.
12967         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12968         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
12969         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12970         * config/sparc/linux.mh: Update comment.
12971         (XM_FILE, HOST_IPC): Remove variables.
12972         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
12973         sparc-linux-nat.o.
12974         * config/sparc/linux.mt: Update comment.
12975         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12976         * config/sparc/nbsd.mt: Reformat.
12977         * config/sparc/nbsd64.mh: Update comment.
12978         (NATDEPFILES): Add sparc-nat.o.
12979         * config/sparc/nbsd64.mt: Update comment.
12980         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12981         (TM_FILE): Set to tm-nbsd.h.
12982         * config/sparc/nbsdelf.mh: Update comment.
12983         (NATDEPFILES): Add sparc-nat.o.
12984         (XM_FILE): Delete.
12985         * config/sparc/nbsdaout.mh: Update comment.
12986         (NATDEPFILES): Add sparc-nat.o
12987         (XM_FILE): Delete.
12988         * config/sparc/nm-linux.h: Update copyright year.  Don't include
12989         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
12990         inclusion.
12991         (KERNEL_U_SIZE): Remove define.
12992         (kernel_u_size): Remove prototype.
12993         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12994         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
12995         "regcache.h".
12996         (CHILD_PREPARE_TO_STORE): Remove define.
12997         * config/sparc/nm-nbsdaout.h: Tweak some comments.
12998         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12999         sparcnbsd-nat.c: Rewrite files.
13000         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13001         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13002         sparcnbsd-tdep.h: Remove files.
13003         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13004         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13005         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13006         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13007         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13008         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13009         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13010         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13011         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13012         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13013         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13014         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13015         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13016         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13017         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13018         * config/sparc/linux64.mh, config/sparc/linux64.mt,
13019         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13020         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13021         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13022
13023 2004-01-02  Andrew Cagney  <[email protected]>
13024
13025         From 2003-12-18 Kazuhiro Inaoka:
13026         * configure.host: Add m32r-linux target.
13027
13028 2004-01-02  Michael Chastain  <[email protected]>
13029
13030         * top.c (print_gdb_version): Update year to 2004.
13031
13032 2004-01-02  Mark Mitchell  <[email protected]>
13033
13034         * MAINTAINERS: Add myself to the write-after-approval category.
13035
13036 2004-01-02  Daniel Jacobowitz  <[email protected]>
13037
13038         From Bernardo Innocenti <[email protected]>:
13039         * configure.tgt: Add uClinux target.
13040
13041 2004-01-02  Andrew Cagney  <[email protected]>
13042
13043         * utils.c (do_my_cleanups): Make static, add forward declaration.
13044         * defs.h (do_my_cleanups): Delete declaration.
13045
13046 2004-01-02  Eli Zaretskii  <[email protected]>
13047
13048         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13049         bfd/ChangeLog-0203.
13050
13051 2004-01-02  Mark Kettenis  <[email protected]>
13052
13053         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
13054         in <machine/reg.h>.
13055         * configure, config.in: Regenerate.
13056
13057 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13058 tui/ChangeLog-1998-2003.
13059 \f
13060 Local Variables:
13061 mode: change-log
13062 left-margin: 8
13063 fill-column: 74
13064 version-control: never
13065 End:
This page took 0.760798 seconds and 4 git commands to generate.