2002-10-31 Andrew Cagney <cagney@redhat.com>
[external/binutils.git] / gdb / ChangeLog
1 2002-10-31  Andrew Cagney  <cagney@redhat.com>
2
3         * h8300-tdep.c: Include "gdb_assert.h".
4         (h8300_print_register): Add gdbarch, file and frame parameters.
5         Use frame_read_unsigned_register to read the register's value.
6         Use fprintf_filtered to display output.
7         (h8300_print_registers_info): Replace h8300_do_registers_info.
8         (h8300_gdbarch_init): Set print_registers_info.
9
10 2002-10-31  Andrew Cagney  <cagney@redhat.com>
11
12         * frame.c (frame_read_unsigned_register): New function.
13         (frame_read_signed_register): New function.
14         * frame.h (frame_read_unsigned_register): Declare.
15         (frame_read_signed_register): Declare.
16
17 2002-10-31  Andrew Cagney  <cagney@redhat.com>
18
19         * h8500-tdep.c (h8500_print_registers_info): New static function,
20         clone of infcmd.c's default_print_registers_info.
21         (h8500_do_registers_info): New funtion.
22         (h8500_print_register_hook): Rename print_register_hook, make
23         static.
24
25         * config/h8500/tm-h8500.h: Update copyright.
26         (DEPRECATED_DO_REGISTERS_INFO): Define.
27         (h8500_do_registers_info: Declare.
28         (PRINT_REGISTER_HOOK): Delete macro.
29         (print_register_hook): Delete function.
30
31 2002-10-31  Andrew Cagney  <cagney@redhat.com>
32
33         * z8k-tdep.c (z8k_print_register_hook): Make static.
34         (z8k_print_registers_info): New static function, clone of
35         infcmd.c's default_print_registers_info.
36         (z8k_do_registers_info): New function.  Wrap
37         z8k_print_registers_info.
38         * config/z8k/tm-z8k.h: Update copyright.
39         (PRINT_REGISTER_HOOK): Delete macro.
40         (z8k_print_register_hook): Delete declaration.
41         (DEPRECATED_DO_REGISTERS_INFO): Define.
42         (z8k_do_registers_info): Declare.
43
44 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
45
46         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
47         as this is already provided by value.h, and was actually causing
48         a compilation error because of a conflict in parameter type
49         declaration due to a missing const keyword.
50         (low_text_segment_addres): Fix a compilation warning.
51
52 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
53
54         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
55         registers without a name.
56         (mips_linux_cannot_store_register): Don't store registers without
57         a name.
58
59 2002-10-28  David Carlton  <carlton@math.stanford.edu>
60
61         * symtab.c (find_addr_symbol): Delete.  (It was already commented
62         out.)
63         * symtab.h: Delete prototype for find_addr_symbol.
64
65 2002-10-26  Andrew Cagney  <cagney@redhat.com>
66
67         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
68         DO_REGISTERS_INFO.
69         gdbarch.h, gdbarch.c: Re-generate.
70         * infcmd.c (default_print_registers_info): Update reference.
71         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
72         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
73         * sh-tdep.c (sh_gdbarch_init): Ditto.
74         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
75         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
76
77 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
78
79         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
80         cfi_init_extra_frame_info.
81         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
82         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
83
84         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
85         target where necessary.  Add more comments and remove the ones
86         that don't provide any useful information.
87
88         * i386-tdep.c (i386_frame_saved_pc): Replace call to
89         deprecated_read_register_dummy with
90         frame_unwind_unsigned_register.
91
92         * i386-tdep.c (i386_extract_struct_value_address): Use
93         regcache_raw_read_unsigned instead of
94         regcache_cooked_read_unsigned since we know that the register
95         we're reading isn't a pseudo register.  Rename variable 'val' into
96         the more descriptive 'addr'.
97
98         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
99         (x86_64_push_return_address): Add comment.
100         (x86_64_pop_frame): Make static.
101         (examine_argument): Clarify comment.
102         (x86_64_skip_prologue): Make prolog_expact variable static.
103
104         * dwarf2cfi.c: Fix some formatting problems.
105         (context_cpy, read_encoded_pointer): Clarify comments.
106
107         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
108         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
109         i386 target back into x86_64_gdbarch_init.  Add some comments and
110         remove meaningless ones.
111
112 2002-10-25  Andrew Cagney  <cagney@redhat.com>
113
114         * complaints.h (struct deprecated_complaint): Rename `struct
115         complaint'.
116         * complaints.c (complain): Update.
117         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
118         incorrect comment indicating that "symfile.h" was being included
119         for the `struct complaint' definition.
120         * remote-vx.c: Update.
121         * objc-lang.c: Update.
122         * xcoffread.c: Update.
123         * hpread.c: Update.
124         * mdebugread.c: Update.
125         * stabsread.c: Update.
126         * dwarf2read.c: Update.
127         * dwarfread.c: Update.
128         * elfread.c: Update.
129         * coffread.c: Update.
130         * stabsread.h: Update.
131         * dbxread.c: Update.
132         * buildsym.c: Update.
133         * gdbtypes.c: Update.
134         * macrotab.c: Update.
135
136 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
137
138         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
139         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
140         (x86_64_init_abi): ...new function.
141
142         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
143         * i386v-nat.c: Include "i386-tdep.h".
144
145 2002-10-25  Andrew Cagney  <cagney@redhat.com>
146
147         * gdbtypes.c (address_space_name_to_int): Update.
148         (address_space_int_to_name): Update.
149         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
150         multi-arch predicate.
151         (address_class_name_to_type_flags): Ditto.
152         * gdbarch.h, gdbarch.c: Re-generate.
153         
154         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
155
156 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
157
158         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
159
160 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
161
162         * symtab.h (INIT_SAL): Delete macro.
163         (init_sal): Export.
164         * symtab.c (init_sal): New function.
165
166         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
167         to init_sal function call.
168         (find_sal_from_funcs_and_line): Ditto.
169         (all_sals_for_line): Ditto. 
170         * breakpoint.c (create_internal_breakpoint): Ditto. 
171         (create_fork_vfork_event_catchpoint): Ditto. 
172         (create_exec_event_catchpoint): Ditto. 
173         (parse_breakpoint_sals): Ditto. 
174         (watch_command_1): Ditto. 
175         (handle_gnu_4_16_catch_command): Ditto.
176         (clear_command): Ditto. 
177         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
178         * infcmd.c (run_stack_dummy): Ditto. 
179         * infrun.c (process_event_stop_test): Ditto.
180         (check_sigtramp2): Ditto.
181         (step_over_function): Ditto. 
182         * linespec.c (decode_line_2): Ditto. 
183         (decode_line_1): Ditto. 
184         * source.c (line_info): Ditto. 
185         * symtab.c (find_pc_sect_line): Ditto.
186
187 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
188
189         * dwarf2cfi.c (struct context)
190         (struct context_reg): Moved to dwarf2cfi.h
191         (context_alloc, frame_state_alloc, context_cpy):
192         Made extern instead of static, removed prototypes.
193         * dwarf2cfi.h (struct context)
194         (struct context_reg): New, moved from dwarf2cfi.c
195         (context_alloc, frame_state_alloc, context_cpy):
196         New prototypes.
197         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
198         Changed from static to extern.
199         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
200         (LINUX_SIGCONTEXT_FP_OFFSET)
201         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
202         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
203         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
204         * x86-64-tdep.c (x86_64_gdbarch_init): Several
205         set_gdbarch_*() calls now use x86-64 specific functions 
206         instead of DWARF2 CFI ones.
207         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
208         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
209         (x86_64_init_extra_frame_info): New prototypes.
210         
211 2002-10-23  David Carlton  <carlton@math.stanford.edu>
212
213         * linespec.c: #include "parser-defs.h".
214         Delete prototype for find_template_name_end.
215         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
216
217 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
218
219         * NEWS: add recent mi fixes.
220         * varobj.c (struct varobj): Add new "updated" flag.
221         (new_variable): Default "updated" flag to 0.
222         (varobj_set_value): Set "updated" flag to 1 if value
223         changes.
224         (varobj_update): Check varobj "updated" flag before
225         comparing old and refreshed values.  Fix for
226         PR gdb/702.
227
228 2002-10-23  David Carlton  <carlton@math.stanford.edu>
229
230         * parse.c (parse_exp_1): Use BLOCK_START.
231         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
232         SYMBOL_BLOCK_VALUE.
233         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
234
235 2002-10-23  David Carlton  <carlton@math.stanford.edu>
236
237         * symtab.c: Delete cplusplus_hint.
238         Delete prototype for find_template_name_end.
239
240 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
241
242         * symtab.h: Update comment.
243
244 2002-10-23  Michael Snyder  <msnyder@redhat.com>
245
246         * printcmd.c (address_info): Restore quotes in output.
247         * valops.c (value_of_local): Restore quotes in error message.
248
249 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
250
251         * symtab.c (symbol_demangled_name): New function.
252         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
253         turning most of it into a function.
254         (symbol_demangled_name): Export.
255
256 2002-10-23  Michael Snyder  <msnyder@redhat.com>
257
258         * valops.c (value_of_local): Restore quotes in error message.
259
260 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
261
262         * symtab.c (symbol_init_language_specific): New function.
263         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
264         turning most of it into a function.
265         (symbol_init_language_specific): Export.
266
267 2002-10-23  David Carlton  <carlton@math.stanford.edu>
268
269         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
270         (dwarf_attr_name): Ditto.
271         (dwarf_type_encoding_name): Ditto.
272         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
273         (process_die): Handle DW_TAG_namespace,
274         DW_TAG_imported_declaration, DW_TAG_imported_module.
275         (read_namespace): New function.
276
277 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
278
279         * configure.in: Define NEW_PROC_API on Interix too.
280         * configure: Regenerate.
281
282 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
283
284         * configure: Regenerate using the proper version of autoconf.
285
286 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
287
288         * findvar.c (read_var_value): Temporarily disable TLS code, until
289         complete TLS support is added.
290
291 2002-10-21  Jim Blandy  <jimb@redhat.com>
292             Elena Zannoni  <ezannoni@redhat.com>
293
294         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
295         for thread local storage locations.
296         (struct symbol): Add objfile field.
297         (SYMBOL_OBJFILE): Define.
298         * dwarf2read.c (is_thread_local): New static variable.
299         (new_symbol): If variable is in thread local fill in address class
300         and objfile appropriately.
301         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
302         stack operation.
303         * printcmd.c (address_info): Print the information for thread
304         local storage variable.
305         * findvar.c (read_var_value): In case of thread local variable,
306         defer to the target vector code to compute address.
307
308 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
309
310         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
311         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
312
313 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
314
315         * symtab.h (address_class):  Rename
316         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
317         * hpread.c (hpread_process_one_debug_symbol): Ditto.
318         * printcmd.c (address_info): Ditto.
319         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
320
321 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
322
323         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
324         DBREG_DRX macro to acces debug registers.
325
326         * Makefile.in (i386obsd-tdep.o): New target.
327
328         * solib-sunos.c: Include "bcache.h" and "regcache.h".
329         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
330
331         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
332         * config/i386/obsd.mt: New file.
333         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
334         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
335         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
336         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
337         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
338         * i386obsd-tdep.c: New file.
339
340 2002-10-19  Adam Fedor  <fedor@gnu.org>
341
342         * objc-exp.y (name_not_typename): Fix invalid comment.  
343
344 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
345
346         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
347         to allocate partial syms and macro byte caches.
348
349 2002-10-18  David Carlton  <carlton@math.stanford.edu>
350
351         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
352
353 2002-10-18  Adam Fedor  <fedor@gnu.org>
354
355         * stabsread.c (find_name_end): New function.
356         (define_symbol): Use it.
357
358 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
359
360         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
361         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
362         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
363         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
364
365 2002-10-17  David Carlton  <carlton@math.stanford.edu>
366
367         * symfile.h: Add opaque declaration for struct obstack.
368         Declare obsavestring to take a const char *.
369         * symfile.c (obsavestring): Make first argument a const char *.
370
371 2002-10-16  Adam Fedor  <fedor@gnu.org>
372
373         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
374         names when matching breakpoints in current file.
375
376 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
377
378         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
379         (read_tag_pointer_type): Add address class support.
380         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
381         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
382         New methods.
383         * gdbarch.h, gdbarch.c: Regenerate.
384         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
385         (make_type_with_address_space, recursive_type_dump): Add address
386         class support.
387         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
388         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
389         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
390
391 2002-10-16  Klee Dienes  <kdienes@apple.com>
392
393         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
394         to get the last character of a char[] buffer, not
395         name[sizeof(vptr_name)-1].
396
397 2002-10-14  Adam Fedor  <fedor@gnu.org>
398
399         * symtab.h: New objc_specific struct.
400         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
401         (SYMBOL_DEMANGLED_NAME): Likewise.
402
403 2002-10-14  Adam Fedor  <fedor@gnu.org>
404
405         * symfile.c (init_filename_language_table): Add ObjC file extension.
406
407 2002-10-14  Adam Fedor  <fedor@gnu.org>
408
409         * utils.c (puts_filtered_tabular): New function.
410         (fprintf_symbol_filtered): Get ObjC demangled name.
411         * defs.h (puts_filtered_tabular): Declared.
412
413 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
414
415         * c-lang.h (c_type_print_varspec_prefix): Delete.
416         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
417         ``need_post_space'' parameter.  Adjust all callers.
418
419 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
420  
421         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
422         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
423         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
424         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
425
426 2002-10-13  Adam Fedor  <fedor@gnu.org>
427
428         * source.c (print_source_lines): Update comments.
429
430 2002-10-13  Adam Fedor  <fedor@gnu.org>
431
432         * valops.c (value_of_local): New function.
433         (value_of_this): Use it.
434         * value.h (value_of_local): Declared.
435
436 2002-10-13  Adam Fedor  <fedor@gnu.org>
437
438         * parse.c: (length_of_subexp, prefixify_subexp): Handle
439         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
440
441 2002-10-12  Adam Fedor  <fedor@gnu.org>
442
443         * language.c (binop_result_type): Add language_objc to case.
444         (integral_type): Likewise.
445         (character_type): Likewise.
446         (string_type): Likewise.
447         (boolean_type): Likewise.
448         (structured_type): Likewise.
449         (binop_type_check): Likewise.
450
451 2002-10-11  Adam Fedor  <fedor@gnu.org>
452
453         * printcmd.c (address_info): Print 'self' for ObjC.
454
455 2002-10-11  Adam Fedor  <fedor@gnu.org>
456
457         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
458         OP_SELF.
459
460 2002-10-11  Adam Fedor  <fedor@gnu.org>
461
462         * language.h (CAST_IS_CONVERSION): Add language_objc.
463
464 2002-10-11  Adam Fedor  <fedor@gnu.org>
465
466         * defs.h (enum language): Add language_objc.
467
468 2002-10-11  Klee Dienes  <kdienes@apple.com>
469
470         * findvar.c (read_memory_typed_address): New function.
471         * gdbcore.h (read_memory_typed_address): Add prototype.
472         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
473         to read a value destined for a CORE_ADDR, not read_memory_integer.
474         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
475         (f77_get_dynamic_lowerbound): Ditto.
476
477 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
478
479         * utils.c (string_to_core_addr): After turning string into
480         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
481         which will do necessary sign-extension, etc.
482
483 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
484
485         * c-exp.y (THIS): Delete token and grammar rule.
486         (yylex): Don't return THIS.
487         * cp-valprint.c (vtbl_ptr_name_old): Delete.
488         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
489         * demangle.c (cplus_markers): Update comment.  Put '$'
490         first.  Remove CPLUS_MARKER.
491         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
492         * jv-exp.y (THIS): Delete token and grammar rule.
493         (yylex): Don't return THIS.
494         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
495         * objc-exp.y (THIS): Delete token and grammar rule.
496         (yylex): Don't return THIS.
497         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
498         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
499         (read_member_functions): Likewise for opname.
500         (read_tilde_fields): Use is_cplus_marker.
501
502         * defs.h (CPLUS_MARKER): Don't define.
503         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
504         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
505         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
506         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
507         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
508
509         * config/i386/tm-i386v4.h: Delete file.
510         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
511         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
512         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
513         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
514         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
515         * config/i386/i386sco5.mt (TM_FILE): Likewise.
516         * config/i386/i386v4.mt (TM_FILE): Likewise.
517         * config/i386/ncr3000.mt (TM_FILE): Likewise.
518
519 2002-10-10  Marko Mlinar  <markom@opencores.org>
520
521         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
522         accidentially not commited 2002-10-09
523         * gdbarch.h, gdbarch.c: Re-generate.
524
525 2002-10-09  Marko Mlinar  <markom@opencores.org>
526
527         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
528         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
529         * gdbarch.h, gdbarch.c: Re-generate.
530
531 2002-10-08  Petr Sorfa <petrs@caldera.com>
532
533         Revised and re-submitted by John Wolfe <jlw@caldera.com>
534
535         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
536         so we can work on more than one compilation unit at a time.  This
537         helps prepare GDB to handle inter-CU die references.
538         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
539         the code to be defined before struct comp_unit_head.
540         (comp_unit_head): Added new members - offset, cu_head,
541         begin_die, next and dwarf2_abbrevs.
542         (dwarf2_abbrevs): Removed single static var; now member of
543         struct comp_unit_head.
544         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
545         members.
546         (psymtab_to_symtab_1): Changed to work with the new
547         struct comp_unit_head.
548         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
549         constructs the dwarf2_abbrevs[] inside the cu_header.
550         (dwarf2_empty_abbrev_table): Now expects a ptr to a
551         dwarf2_abbrev table to clean up.
552         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
553         handling of dwarf2_abbrevs inside the cu_header.
554         (read_partial_die): Now supports the call to the new
555         dwarf2_lookup_abbrev.
556         (read_full_die): Now supports the call to the new
557         dwarf2_lookup_abbrev.
558
559 2002-10-06  Christopher Faylor  <cgf@redhat.com>
560
561         * Makefile.in (install-gdbtk): Add missing continuation backslash to
562         insure that shell variables, such as "transformed_name" are propagated
563         to later shell statements in rule.
564
565 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
566
567         * config/i386/nm-i386sco.h: Add protection against
568         multiple-inclusion.  Include "i386/nm-i386v.h".
569         (REGISTER_U_ADDR): Remove define.
570         (i386_register_u_addr): Remove prototype.
571
572 2002-10-04  Michael Snyder  <msnyder@redhat.com>
573
574         * m32r-stub.c (handle_exception): Make sure exception is "trap"
575         before treating it as a single-step event.
576
577 2002-10-03  Adam Fedor  <fedor@gnu.org>
578
579         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
580         (objc_demangle): Remove assignment in if statements, Replace
581         free with xfree.
582         (add_msglist): Likewise.
583         (end_msglist): Likewise.
584         (complare_selectors): Likewise.
585         (selectors_info): Likewise.
586         (compare_classes): Likewise.
587         (classes_info): Likewise.
588         (print_object_command): Likewise.
589         (find_objc_msgcall_submethod): Replace PTR with void *.
590         * objc-lang.h: Remove check for __STDC__.
591
592 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
593
594         * ui-out.h (ui_out_field_fmt_int): New prototype.
595         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
596         of field width and alignment.
597         * stack.c (print_frame_info_base): When printing frame level, use
598         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
599         PR gdb/192
600
601 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
602
603         * MAINTAINERS: Add self to Write After Approval list.
604
605 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
606
607         * infcmd.c (interrupt_target_command_wrapper): Delete.
608         (interrupt_target_command): Make non static.
609         (nofp_registers_info): Make static.
610         * stack.c (return_command_wrapper): Delete.
611         (return_command): Make non static.
612
613 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
614
615         * event-top.c (gdb_setup_readline): New function. Code moved from
616         _initialize_event_loop().
617         (_initialize_event_loop): Call gdb_setup_readline().
618
619 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
620
621         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
622         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
623         * gdbarch.h, gdbarch.c: Re-generate.
624
625 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
626
627         Fix PR gdb/778
628         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
629         before recursing.
630         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
631         of fill_in_vptr_fieldno.
632
633 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
634
635         * inferior.h (registers_info, stepi_command, nexti_command,
636         continue_command, interrupt_target_command): Export from infcmd.c.
637         * frame.h (args_info, selected_frame_level_changed_hook,
638         return_command): Export from stack.c.
639         * v850ice.c (stepi_command, nexti_command, continue_command): use
640         prototypes from inferior.h.
641         * tracepoint.c (registers_info, args_info, locals_info): Use
642         prototypes from frame.h and inferior.h.
643         * Makefile.in (mi-main.o): Add dependency on frame.h.
644
645 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
646
647         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
648         value in register 3 adjusted by ppc_gp0_regnum.
649
650         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
651
652 2002-10-02  Marko Mlinar <markom@opencores.org>
653
654         * MAINTAINERS: Add myself to the Write After Approval list.
655
656 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
657
658         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
659         of the section for the N64 ABI, fixed.
660
661         * config/mips/tm-irix6.h: Include solib.h.
662
663 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
664
665         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
666         GNU operators.
667
668 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
669
670         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
671         and that "mi0" syntax has been removed.
672
673 2002-09-30  David Carlton  <carlton@math.stanford.edu>
674
675         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
676         * ppc-sysv-tdep.c: #include "gdb_string.h".
677         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
678         pacify GCC.
679
680 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
681
682         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
683         "vrsave"'s register number.
684
685 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
686
687         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
688         use frame_unwind_signed_register to obtain the PC.
689         (mips_frame_chain): Handle a generic dummy frame.
690         (mips_init_extra_frame_info): When a generic dummy frame, don't
691         re-compute the frame base.
692         (mips_pop_frame): Handle generic dummy frames.
693         (mips_gdbarch_init): When generic dummy frames, set
694         use_generic_dummy_frames, push_dummy_frame to
695         generic_push_dummy_frame, pc_in_call_dummy to
696         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
697         generic_save_dummy_frame_tos.
698
699 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
700
701         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
702         against TOP when TOP was explictly set.
703         (generic_push_dummy_frame): Set TOP to zero.
704
705 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
706
707         * event-loop.c (start_event_loop): Rename variable 'result' to
708         'gdb_result', to avoid conflicts with upcoming intepreters changes.
709
710 2002-09-30  Keith Seitz  <keiths@redhat.com>
711
712         * gdb-events.sh (selected_thread_changed): New event.
713         * gdb-events.c: Regenerated.
714         * gdb-events.h: Regenerated.
715
716 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
717
718         * MAINTAINERS: Add self to Write After Approval list.
719
720 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
721
722         * disasm.c: New file.  
723         * disasm.h: New file.  
724         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
725         (compare_lines): Ditto.
726         (dump_insns): Ditto.
727         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
728         argument.
729         (do_assembly_only): Ditto.
730         (do_disassembly): Renamed to gdb_disassembly and moved to
731         disasm.c.  Sdded uiout argument.
732         * Makefile.in: Add new files.  Reorder SFILES list. Update
733         dependencies.  Include libgdb.a later in the insight executable.
734
735 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
736
737         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
738         bfd/elf64-alpha-fbsd.c.
739
740 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
741
742         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
743         i386gnu-tdep.c.
744
745 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
746
747         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
748         __FUNCTION__.
749         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
750         function name.
751         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
752         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
753         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
754         (S_msg_sig_post_reply): Ditto.
755         
756 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
757
758         * sh-tdep.c (sh_use_struct_convention): Use definition according
759         to ABI.
760         (sh_push_arguments): Store in register with correct endianess.
761         (sh_default_store_return_value): Ditto.
762         (sh_gdbarch_init): Set sizeof long double to 8.
763
764 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
765
766         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
767         Fix some whitespace problems.
768
769 2002-09-27  David Carlton  <carlton@math.stanford.edu>
770
771         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
772         (mcore-tdep.o): Ditto.
773         (ns32k-tdep.o): Ditto.
774         (ns32knbsd-tdep.o): Ditto.
775         (sh3-rom.o): Ditto.
776         (vax-tdep.o): Ditto.
777         * cris-tdep.c: #include "gdb_string.h"
778         * mcore-tdep.c: Ditto.
779         * ns32k-tdep.c: Ditto.
780         * ns32knbsd-tdep.c: Ditto.
781         * sh3-rom.c: Ditto.
782         * vax-tdep.c: Ditto.
783
784 2002-09-27  David Carlton  <carlton@math.stanford.edu>
785
786         * config/djgpp/fnchange.lst: Add entries for
787         gdb/testsuite/gdb.c++/m-static files.
788
789 2002-09-27  Jim Wilson  <wilson@redhat.com>
790
791         * MAINTAINERS: Add myself to the Write After Approval list.
792
793 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
794
795         * mips-tdep.c (find_proc_desc): Initialize startaddr.
796
797
798 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
799
800         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
801         frame.
802
803 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
804
805         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
806         (rs6000_struct_return_address): Delete variable.
807         (rs6000_store_struct_return): Update.
808         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
809         deprecated_extract_struct_value_address.
810         (rs6000_frame_align): New function.
811         (rs6000_gdbarch_init): Set frame_align.
812
813 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
814
815         From Grace Sainsbury <graces@redhat.com>:
816         * Makefile.in (gdbtk-main.o): New target.
817         (gdb.o): New target.
818         (main_h): Define.
819         (main.o): Update dependencies.
820         (gdb$(EXEEXT)): Add gdb.o.
821         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
822         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
823         (SUBDIR_GDBTK_CLEAN): Set.
824         (install-gdbtk): Install the insight binary.
825         (uninstall-gdbtk): New target.
826         (all-gdbtk, clean-gdbtk): New rule.
827         * top.c (use_windows): Default to zero.
828         * main.c: Include "main.h".
829         (main): Delete.
830         (struct captured_main_args): Delete.
831         (gdb_main): New function.
832         * main.h: New file.
833         * gdb.c: New File.
834
835 2002-09-25  Andrew Cagney  <cagney@redhat.com>
836
837         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
838         (frame_map_regnum_to_name): New function.
839         (frame_map_name_to_regnum): New function.
840         * frame.h (frame_map_name_to_regnum): Declare.
841         (frame_map_regnum_to_name): Declare.
842         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
843         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
844         * parse.c: Do not include "builtin-regs.h".
845         (target_map_name_to_register): Delete function.
846         (write_dollar_variable): Use frame_map_name_to_regnum.
847         * parser-defs.h (target_map_name_to_register): Delete declaration.
848         * expprint.c: Include "frame.h".
849         (print_subexp): Use frame_map_regnum_to_name.
850         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
851         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
852
853 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
854
855         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
856         wasn't saved, and the next innermost frame is a dummy, return the
857         dummy frame's link register.
858
859 2002-09-24  Jim Blandy  <jimb@redhat.com>
860
861         Fix from Paul Breed:
862         * main.c (captured_main): Add a `break' after the case for 'b'.
863
864 2002-09-24  Keith Seitz  <keiths@redhat.com>
865
866         * varobj.c (c_type_of_child): Use get_target_type instead
867         of TYPE_TARGET_TYPE.
868
869 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
870
871         * source.c (get_current_or_default_source_symtab_and_line): Remove
872         function.
873         (set_default_source_symtab_and_line): New function. Attempts to
874         determine a source file to list lines from if one is not currently
875         defined.
876         (get_current_source_symtab_and_line): Initialize sal.pc and
877         sal.end fields.
878         (set_current_source_symtab_and_line): Mark argument as const.
879         * source.h: Update declarations and comments.
880         * linespec.c (decode_line_1): Replace call to removed routine above.
881         * stack.c (print_frame_info_base): Ditto.
882         * cli/cli-cmds.c (edit_command): Ditto.
883         (list_command): Ditto.
884
885 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
886
887         * source.c (get_current_or_default_source_symtab_and_line): Initialize
888         sal.pc and sal.end fields.
889         (get_current_or_default_source_symtab_and_line): Ditto.
890         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
891         so we do not cause a new source symtab to be searched for (reverting an
892         unintentional change from the 2002-09-20 patch).
893         * scm-lang.c (scm_unpac): Ditto.
894
895 2002-09-21  Andrew Cagney  <cagney@redhat.com>
896
897         * complaints.c (symfile_explanations): Remove new-line from
898         ``isolated_message''.
899         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
900         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
901
902 2002-09-20  Nick Clifton  <nickc@redhat.com>
903         
904         * NEWS: Announce that V850EA ISA is no longer supported.
905         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
906
907 2002-09-20  David Carlton  <carlton@math.stanford.edu>
908
909         * Makefile.in (c-lang.o): Correct dependencies.
910         (utils.o): Gather dependencies.
911         (charset.o): Move.
912         * c-lang.c: #include "gdb_string.h"
913
914 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
915
916         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
917         * cli/cli-cmds.c (list_command): New function.  Implements the new
918         cli edit command.
919         (_init_cli_cmds): Add new command definition.
920         * gdb.1: Document edit command.
921         * doc/gdb.texinfo: Document edit command.
922
923 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
924
925         * source.c: Make global variables current_source_symtab and
926         current_source_line static.
927         (list_command): Moved to cli/cli-cmds.c.
928         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
929         (get_first_line_listed): New accessor function.
930         (get_lines_to_list): New accessor function.
931         (get_current_source_symtab_and_line): New function. Retrieves the
932         position in the source code that we consider current.
933         (get_current_or_default_source_symtab_and_line): New function.
934         Like the above but attempts to determine a default position if one
935         is not currently defined.
936         (set_current_source_symtab_and_line): New function. Sets the source
937         code position considered current and returns the previously set one.
938         (clear_current_source_symtab_and_line): Reset stored information about
939         a current source line.
940         (_initialize_source): Remove registration for the "list" command and
941         its alias.
942         * source.h: Add declarations for the new functions above.
943         * symtab.h: Remove declarations for the global variables mentioned
944         above.
945         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
946         obtain current source line.
947         * linespec.c (decode_line_1): Ditto.
948         * macroscope.c (default_macro_scope): Ditto.
949         * scm-lang.c (scm_unpac): Ditto.
950         * stack.c (print_frame_info_base): Ditto.
951         * symfile.c (clear_symtab_users): Ditto.
952         * symtab.c (decode_line_spec): Ditto.
953         * cli/cli-cmds.c (list_command): Moved here from source.c.
954         (ambiguous_line_spec): Moved here from source.c.
955         (_init_cli_cmds): Add definition for "list" and its alias.
956         * Makefile.in: Update dependencies.
957
958 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
959
960         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
961         with what gcc thinks is correct.
962
963 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
964
965         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
966         multiple register push instruction.
967
968 2002-09-19  Jim Blandy  <jimb@redhat.com>
969
970         Add support for distinct host and target character sets.
971         * charset.c, charset.h: New files.
972         * c-exp.y: #include "charset.h".
973         (yylex): Convert character and string literals to the target
974         character set, before returning them as the semantic value of the
975         token.
976         * c-lang.c: #include "charset.h".
977         (c_emit_char): Use charset-specific methods to recognize
978         characters with backslash escape forms, to decide which characters
979         to print literally and which to print using numeric escape
980         sequences, and to convert target characters to host characters
981         before printing.
982         * utils.c: #include "charset.h".
983         (no_control_char_error): New function.
984         (parse_escape): Use charset-specific methods to recognize
985         backslash escapes, parse `control character' notation, and convert
986         characters from the host character set to the target character set.
987         * configure.in: Set the default host character set.
988         Check where to find iconv, and what its argument types might be.
989         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
990         * Makefile.in (SFILES): List charset.c.
991         (COMMON_OBS): List charset.o.   
992         (charset.o): New rule.
993         (charset_h): New header dependency variable.
994         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
995         (LIBICONV): New variable, set by configure.
996         (CLIBS): Include $(LIBICONV) here.
997         * aclocal.m4, config.in, configure: Regenerated.
998
999 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1000
1001         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1002         bison 1.35 warning.
1003
1004 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1005
1006         * gdb_mbuild.sh: New file.
1007
1008 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1009
1010         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1011
1012 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1013
1014         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1015         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1016         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1017         valops.c, value.h: Revert previous change.
1018         
1019 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1020
1021         Preliminary support for Objective-C:
1022         * defs.h (language_objc): New enum value.
1023         (puts_filtered_tabular): Declaration only, exported from utils.c.
1024         (skip_quoted): Delete, declared in completer.h.
1025         * c-exp.y: Include completer.h.
1026         * p-exp.y: Ditto.
1027         * jv-exp.y: Ditto.
1028         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1029         New operator enum values.
1030         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1031         * language.c (binop_result_type): Handle language_objc case.
1032         (integral_type, character_type, string_type, boolean_type,
1033         structured_type, binop_type_check): Ditto.
1034         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1035         (struct objc_specific): Add to general_symbol_info.
1036         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1037         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1038         * parser-defs.h (struct objc_class_str): New struct type.
1039         (start_msglist, end_msglist, add_msglist): Declaration only,
1040         exported from objc-lang.c.
1041         * value.h (value_of_local, value_nsstring, 
1042         call_function_by_hand_expecting_type): Exported from valops.c.
1043         * valops.c (find_function_addr): Export.
1044         (call_function_by_hand_expecting_type): New function.
1045         (value_of_local): New function.
1046         * symfile.c (init_filename_language_table): Add ".m" extension
1047         for Objective-C.
1048         * utils.c (puts_filtered_tabular): New function.
1049         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1050         (set/show demangle): Extend help-string to refer to ObjC.
1051         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1052         * stabsread.c (symbol_reference_defined): Objective-C symbols
1053         may contain colons: make allowances when scanning stabs strings
1054         for colons.
1055         (objc_find_colon): New function.
1056         * printcmd.c (address_info): If language == objc then print
1057         "self" instead of "this".
1058         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1059         OP_NSSTRING, and OP_SELF.
1060         (prefixify_subexp): Ditto.
1061         * source.c (print_source_lines): Mention objc in comment.
1062         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1063         method names.
1064
1065 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1066
1067         * complaints.h: Update copyright.
1068         (struct complaints): Declare.
1069         (struct complaint): Make `message' constant.
1070         (internal_complaint): Declare.
1071         (complaint): Declare.
1072         (complaint_root): Delete declaration.
1073         (symfile_complaints): Delete declaration.
1074         (struct complaints): Add opaque declaration.
1075         (clear_complaints): Add a complaints parameter.
1076         * complaints.c: Update copyright.
1077         (enum complaint_series): Define.
1078         (complaint_root): Delete.
1079         (struct complaints): Define.
1080         (complaint_sentinel, symfile_complaint_book): New variables.
1081         (symfile_explanations, symfile_complaints): New variables.
1082         New variables.
1083         (get_complaints): New function.
1084         (vcomplaint): New function.
1085         (complaint): New function.
1086         (internal_complaint): New function.
1087         (complain): Call vcomplain with symfile_complaint.
1088         (clear_complaints): Rewrite.
1089         (_initialize_complaints): Use add_setshow_command.
1090         * Makefile.in (complaints.o): Update dependencies.
1091         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1092         to call to clear_complaints.
1093         (new_symfile_objfile, reread_symbols): Ditto.
1094         (oldsyms_complaint): Delete.
1095         (empty_symtab_complaint, unknown_option_complaint): Delete.
1096         (free_named_symtabs): Use complaint instead of complain.
1097
1098 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1099
1100         Contributed by Apple Computer, Inc.  Merged with current sources
1101         by Adam Fedor <fedor@doc.com> [cagney].
1102         
1103         * objc-lang.c: First clean-up round: comments, indentation.
1104         * objc-lang.h: Ditto.
1105         * objc-lang.y: Ditto.
1106
1107 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1108
1109         * maint.c (maintenance_internal_error): Print the parameter as the
1110         error message.
1111         (maintenance_internal_warning): New function.
1112         (_initialize_maint_cmds): Add command `maint internal-warning'.
1113
1114         * defs.h (internal_warning, internal_vwarning): Declare.
1115         * utils.c (struct internal_problem): Define.
1116         (internal_vproblem): New function.
1117         (internal_warning): New function.
1118         (internal_vwarning): New function.
1119         (internal_warning_problem, internal_error_problem): New variables.
1120         (internal_verror): Just call internal_vproblem.
1121
1122 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1123
1124         * objc-lang.c: New file, support for Objective-C.
1125         Preliminary check-in, not yet integrated into gdb.
1126         * objc-lang.h: New file.
1127         * objc-exp.y:  New file.
1128
1129 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1130
1131         * infrun.c (signal_stop_update): Convert definition to ISO C.
1132         (signal_print_update): Ditto.
1133         (signal_pass_update): Ditto.
1134         * inflow.c (terminal_save_ours): Ditto.
1135
1136         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1137         comments.
1138         
1139         * config/djgpp/fnchange.lst: Handle name clashes between
1140         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1141         bfd/coff-tic80.c.
1142
1143         * i386-linux-tdep.h: Fix tipo.
1144
1145 2002-09-18  Adam Fedor  <fedor@gnu.org>
1146
1147         * MAINTAINERS: Add myself to the Write After Approval list.
1148
1149 2002-09-18  Jim Blandy  <jimb@redhat.com>
1150
1151         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1152         texthigh and textlow to reader-specific structs caused
1153         objfile_relocate to miss them.  This is fixable, but the work that
1154         the change was supposed to prepare GDB for never got done anyway.
1155
1156 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1157
1158         * MAINTAINERS: Alphabetize Write After Approval list.
1159
1160 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1161
1162         Fix PR gdb/709
1163         * values.c (value_static_field): Call read_var_value.
1164
1165 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1166
1167         * valops.c (hand_function_call): Align the initial stack pointer
1168         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1169         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1170         return value.
1171         * mips-tdep.c (mips_frame_align): New function.
1172         (mips_gdbarch_init): Set frame_align.
1173         * gdbarch.sh (FRAME_ALIGN): New method.
1174         * gdbarch.h, gdbarch.c: Re-generate.
1175
1176 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1177
1178         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1179         registers.
1180
1181 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1182
1183         * NEWS: Mention that MIPS $fp behavior changed.
1184         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1185         reference to FP_REGNUM.
1186         (mipsnbsd_cannot_store_register): Ditto.
1187         * mips-linux-nat.c: Update copyright.
1188         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1189         (mips_linux_cannot_store_register): Ditto.
1190         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1191         * config/mips/tm-mips.h: Update copyright.
1192         (FP_REGNUM): Delete macro.
1193         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1194         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1195         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1196         (mips_r3041_reg_names, mips_r3051_reg_names)
1197         (mips_r3081_reg_names): Replace "fp" with "".
1198         Fix PR gdb/480.
1199
1200 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1201
1202         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1203         generic_read_register_dummy() (PR gdb/703).
1204         (avr_push_return_address): #if 0 out unused vars.
1205         (avr_gdbarch_init): Enable use of avr_push_return_address().
1206
1207 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1208
1209         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1210         RTE will take care of it.
1211
1212 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1213
1214         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1215         invalid, return SP_REGNUM.
1216
1217 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1218
1219         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1220         point registers without sign extension.
1221
1222 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1223
1224         * blockframe.c (deprecated_read_register_dummy): Rename
1225         generic_read_register_dummy.
1226         * frame.c (frame_unwind_signed_register): New function.
1227         (frame_unwind_unsigned_register): New function.
1228         * frame.h (frame_unwind_signed_register): Declare.
1229         (frame_unwind_unsigned_register): Declare.
1230         (deprecated_read_register_dummy): Rename
1231         generic_read_register_dummy.
1232
1233         * h8300-tdep.c (h8300_frame_chain): Update.
1234         (h8300_frame_saved_pc): Update.
1235         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1236         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1237         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1238         (s390_frame_chain): Update.
1239         * v850-tdep.c (v850_find_callers_reg): Update.
1240         (v850_frame_saved_pc): Update.
1241         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1242         (m32r_find_callers_reg): Update.
1243         (m32r_frame_saved_pc): Update.
1244         * sh-tdep.c (sh_find_callers_reg): Update.
1245         (sh64_get_saved_pr): Update.
1246         (sh_init_extra_frame_info): Update.
1247         (sh_init_extra_frame_info): Update.
1248         (sh64_init_extra_frame_info): Update.
1249         (sh64_init_extra_frame_info): Update.
1250         * mcore-tdep.c (mcore_find_callers_reg): Update.
1251         (mcore_frame_saved_pc): Update.
1252         (mcore_init_extra_frame_info): Update.
1253         * i386-tdep.c (i386_frame_saved_pc): Update.
1254         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1255         (ia64_init_extra_frame_info): Update.
1256         (ia64_init_extra_frame_info): Update.
1257         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1258         * cris-tdep.c (cris_init_extra_frame_info): Update.
1259         * avr-tdep.c (avr_frame_chain): Update.
1260         (avr_init_extra_frame_info): Update.
1261         (avr_frame_saved_pc): Update.
1262         * arm-tdep.c (arm_find_callers_reg): Update.
1263         (arm_init_extra_frame_info): Update.
1264         (arm_frame_saved_pc): Update.
1265
1266 2002-09-17  Tom Tromey  <tromey@redhat.com>
1267
1268         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1269         is "'".
1270
1271 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1272
1273         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1274         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1275         NEXT_PROLOGUE_INSN.
1276         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1277         NEXT_PROLOGUE_INSN.
1278
1279 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1280
1281         * osfsolib.c: Remove file, replaced by solib-osf.c.
1282         * Makefile.in: Remove compilation rules for osfsolib.c.
1283
1284 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1285
1286         * cp-valprint.c (cp_print_class_method): Correct args to
1287         check_stub_method_group.
1288
1289 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1290
1291         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1292         `set architecture'.  Unify naming convention of functions.
1293         (h8300_skip_prologue): Improve prologue analysis.
1294         (h8300_push_arguments): Rewritten to more closely match GCC's
1295         bizarre argument-passing behavior, along with the comment describing
1296         said behavior.
1297         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1298         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1299         sim, remote-e7000.c, remote-hms.c and remote.c
1300
1301 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1302
1303         * i386-tdep.c (gdb_print_insn_i386): Removed.
1304         (i386_print_insn): New function.
1305         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1306         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1307         tm_print_insn_info.
1308
1309 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1310
1311         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1312         zero.
1313
1314 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1315
1316         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1317         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1318         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1319
1320 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1321
1322         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1323
1324 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1325
1326         * gdbtypes.c (check_stub_method): Make static.
1327         (check_stub_method_group): New function.
1328         * gdbtypes.h: Update prototypes.
1329         * cp-support.c: New file.
1330         * cp-support.h: New file.
1331
1332         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1333         (update_method_name_from_physname): New function.
1334         (read_member_functions): Correct method names for operators
1335         and v3 constructors/destructors.  Separate v2 constructors and
1336         destructors.
1337         * Makefile.in (stabsread.o): Update dependencies.
1338         (SFILES): Add cp-support.c.
1339         (COMMON_OBS): Add cp-support.o.
1340         (cp_support_h, cp-support.o): Add.
1341
1342         * cp-valprint.c (cp_print_class_method): Call
1343         check_stub_method_group instead of check_stub_method.  Remove
1344         extraneous QUITs.
1345         * p-valprint.c (pascal_object_print_class_method): Likewise.
1346         * valops.c (search_struct_method): Likewise.
1347         (find_method_list, value_struct_elt_for_reference): Likewise.
1348
1349 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1350
1351         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1352         * gdbarch.h, gdbarch.c: Regenerate.
1353
1354 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1355
1356         * frame.c (find_saved_register): Delete function.
1357         * frame.h (find_saved_register): Delete declaration.
1358         Fix PR gdb/631.
1359
1360 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1361
1362         * mips-tdep.c (read_next_frame_reg): Re-hack using
1363         frame_register_unwind.
1364
1365 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1366
1367         * mips-tdep.c (mips_get_saved_register): Re-hack using
1368         frame_register_unwind.
1369
1370 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1371
1372         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1373         vector. Will be useful for Interix.  
1374         * gdbarch.h, gdbarch.c: Regenerate.
1375
1376         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1377         name of the malloc function by NAME_OF_MALLOC.
1378
1379 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1380
1381         * value.h (find_function_in_inferior): Add const keyword to
1382         one of the parameters. Allows us to invoke this function with
1383         a const char *.
1384         * valops.c (find_function_in_inferior): Likewise.
1385
1386 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1387
1388         * exec.c (xfer_memory): Fix compilation warning with old versions
1389         of GCC.
1390         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1391
1392 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1393
1394         * symtab.h: Run through gdb_indent.h.
1395         Add 2002 to Copyright year list.
1396
1397 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1398
1399         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1400         mach constants.
1401         * MAINTAINERS: Add myself to write after approval list.
1402
1403 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1404
1405         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1406
1407 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1408
1409         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1410         Interix.
1411
1412 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1413
1414         * procfs.c (do_detach): Clear current signal, not just fault.
1415         Corrects problem with breakpoint trap signal leaking to detached
1416         process on Tru64.
1417
1418 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1419
1420         * buildsym.c (finish_block): Protect against null pointer.
1421
1422 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1423
1424         * infcmd.c (default_print_registers_info): Send all output to
1425         ``file'' instead of ``gdb_stdout''.
1426
1427 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1428
1429         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1430         LONGEST, and use signed register read (addresses are sign-
1431         extended for mips).
1432
1433 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1434
1435         * event-loop.c (gdb_do_one_event): Make public.
1436         * event-loop.h (gdb_do_one_event): Declare.
1437
1438 2002-09-10  Jeff Law  <law@redhat.com>
1439
1440         * infttrace.c (child_resume): Simplify and rework to avoid
1441         TT_PROC_CONTINUE.
1442
1443 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1444
1445         * printcmd.c (print_scalar_formatted): "len" is the number of
1446         target bytes, NOT the number of target bits.
1447
1448 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1449
1450         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1451         * top.c (init_main): Set rl_terminal_name.
1452
1453 2002-09-08  Aidan Skinner <aidan@velvet.net>
1454
1455         * ada-lang.c (ada_array_bound, ada_type_match,
1456         _initialize_ada_language): Fix K&R definitions.
1457         * ada-tasks.c (get_current_task): Fix K&R definitions.
1458         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1459                         
1460 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1461
1462         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1463         Add XP.
1464
1465 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1466
1467         * i386-tdep.c (i386_register_virtual_type,
1468         i386_register_convertible, i386_register_convert_to_virtual,
1469         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1470         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1471         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1472         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1473         Don't set push_arguments twice.
1474
1475         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1476         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1477         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1478         sigtramp_end to NULL.
1479         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1480         defines.
1481         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1482
1483         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1484         whitespace.
1485
1486         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1487         * gdbarch.h, gdbarch.c: Re-generate.
1488         * blockframe.c (find_pc_sect_partial_function): Convert to use
1489         SIGTRAMP_START_P predicate.
1490
1491 2002-09-05  Michael Snyder  <msnyder@redhat.com>
1492
1493         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1494         generic_dummy_frame method and old method.  Also distinguish
1495         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1496         (arm_extract_return_value): Use new regcache method.
1497
1498         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1499         adjustment that doesn't conform to the ABI.
1500         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1501         saved regcache, not from current regcache.
1502
1503 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
1504
1505         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
1506         * README: Update.
1507
1508 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1509
1510         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1511         if arm_apcs_32 is false.
1512
1513 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
1514
1515         GDB 5.3 branch created.
1516
1517 2002-09-03  Theodore A. Roth  <troth@verinet.com>
1518
1519         * gdb/avr-tdep.c (avr_gdbarch_init): Use
1520         generic_unwind_get_saved_register.
1521
1522 2002-09-03  David Carlton  <carlton@math.stanford.edu>
1523
1524         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1525         argument (PR gdb/653).  Update call to smash_to_method_type.
1526         (read_structure_scope): Update call to dwarf2_add_member_fn.
1527
1528 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
1529
1530         * x86-64-linux-tdep.c: Include gdb_string.h
1531         * x86-64-linux-nat.c: Ditto.
1532
1533 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1534
1535         * ada-exp.y (yyname, yyrule): Remap global variables that appear
1536         when YYDEBUG is set to 1.  
1537         * c-exp.y: Likewise.
1538         * f-exp.y: Likewise.
1539         * jv-exp.y: Likewise.
1540         * m2-exp.y: Likewise.
1541         * p-exp.y: Likewise.
1542
1543 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1544
1545         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1546         dependency list.
1547         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1548         solib_svr4_fetch_link_map_offsets to
1549         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1550         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1551         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1552         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1553         solib-svr4.o, and solib-legacy.o.
1554         * config/i386/tm-nbsd.h: Include solib.h.
1555
1556 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1557
1558         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
1559         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
1560         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
1561         comment noting that this needs its own target configuration.
1562         * config/i386/nbsd.mt: New file.
1563         * config/i386/nbsdaout.mt: Remove.
1564         * config/i386/nbsdelf.mt: Ditto.
1565         * config/i386/tm-nbsdaout.h: Ditto. 
1566
1567 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1568
1569         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
1570         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
1571         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1572         tdep->sigtramp_end.
1573         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
1574         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1575         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1576
1577 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1578
1579         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1580         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1581         * i386-tdep.h (i386bsd_init_abi): New prototype.
1582         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1583         function declaration.
1584         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1585         for NetBSD-a.out or NetBSD-ELF.
1586         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1587         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1588         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1589         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
1590         and nbsd-tdep.h.
1591         (i386nbsd_pc_in_sigtramp): New function.
1592         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1593         i386nbsd_pc_in_sigtramp.
1594         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1595         and i386nbsdelf_init_abi OS ABI handlers.
1596         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1597         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1598
1599 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
1600
1601         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1602         registers if the target really has them.
1603
1604 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1605
1606         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1607         than nbsd-tdep.h.
1608
1609 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1610
1611         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1612         list.
1613         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1614         (alphanbsd_skip_sigtramp_frame): New functions. 
1615         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1616         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
1617         to alphanbsd_sigcontext_addr. 
1618
1619 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1620
1621         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1622         list.
1623         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
1624         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1625         nbsd_pc_in_sigtramp. 
1626         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1627         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1628         * nbsd-tdep.c: Include gdb_string.h.
1629         (nbsd_pc_in_sigtramp): New function. 
1630         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
1631         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1632         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1633         ppcnbsd_pc_in_sigtramp. 
1634         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1635         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1636         shnbsd_pc_in_sigtramp. 
1637         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1638         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
1639         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1640
1641 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
1642
1643         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1644         watchpoints to NULL.
1645         (insert_breakpoints): set val field of watchpoints if NULL.
1646
1647
1648 2002-08-29  Jim Blandy  <jimb@redhat.com>
1649
1650         * symtab.c (lookup_symbol_aux): In the cases where we find a
1651         minimal symbol of an appropriate name and use its address to
1652         select a symtab to read and search, use `name' (as passed to us)
1653         as the demangled name when searching the symtab's global and
1654         static blocks, not the minsym's name.
1655
1656 2002-08-29  Keith Seitz  <keiths@redhat.com>
1657
1658         * stack.c (print_frame_info_base): Always set current_source_symtab
1659         and current_source_line.
1660
1661 2002-08-29  Donn Terry  <donnte@microsoft.com>
1662
1663         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1664
1665 2002-08-28  Keith Seitz  <keiths@redhat.com>
1666
1667         * stack.c (select_frame): Add FIXME concerning selected-frame
1668         events.
1669         (select_frame_command): Send selected-frame-level-changed
1670         event notification, but only if the level actually changed.
1671         (up_silently_base): Add selected-frame-level-changed event
1672         notification.
1673         (down_silently_base): Likewise.
1674
1675 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
1676
1677         * Makefile.in: Update dependencies for all gdb/*.c files.
1678
1679 2002-08-27  Tom Tromey  <tromey@redhat.com>
1680
1681         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1682         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1683         Update dependencies.
1684         * i387-tdep.c: Include gdb_string.h.
1685         * osabi.c: Likewise.
1686         * i386-linux-nat.c: Likewise.
1687         * lin-lwp.c: Likewise.
1688         * ax-gdb.c: Likewise.
1689         * signals/signals.c: Likewise.
1690         * jv-valprint.c: Likewise.
1691         * p-lang.c: Likewise.
1692         * c-valprint.c: Likewise.
1693         * cp-abi.c: Likewise.
1694
1695 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
1696
1697         * cli/cli-script.h (copy_command_lines): Export.
1698         * breakpoint.c: Include cli/cli-script.h.
1699         * Makefile.in (breakpoint.o): Update dependencies.
1700
1701 2002-08-26  Michael Snyder  <msnyder@redhat.com>
1702
1703         * breakpoint.c (insert_breakpoints): Protect all references
1704         to 'process_warning'.  Shorten long lines.
1705
1706 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
1707
1708         * cli/cli-script.c (copy_command_lines): New function.
1709         * defs.h (copy_command_lines): Export.
1710         * testsuite/gdb.base/commands.exp: New tests for commands
1711         attached to a temporary breakpoint, and for commands that
1712         delete the breakpoint they are attached to.
1713         
1714 2002-08-26  Michael Snyder  <msnyder@redhat.com>
1715
1716         * breakpoint.c (bpstat_stop_status): Instead of copying the 
1717         pointer to the breakpoint commands struct, make a new copy
1718         of the struct and point to that.
1719         (bpstat_clear): Free the commands struct.
1720         (bpstat_clear_actions): Free the commands struct.
1721         (bpstat_do_actions): Free the command actions.  Also execute
1722         the local cleanups, instead of deleting them.
1723         (delete_breakpoint): Leave the commands field of the bpstat
1724         chain alone -- it will be freed later.
1725
1726 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
1727
1728         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1729         deleted in 2002-08-20 commit.  This function is still used by
1730         ppc-linux-nat.c.
1731
1732 2002-08-26  Keith Seitz  <keiths@redhat.com>
1733
1734         * gdb-events.sh: Add selected-frame-level-changed event.
1735         * gdb-events.c: Regenerated.
1736         * gdb-events.h: Regenerated.
1737         
1738 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
1739
1740         Fix PR gdb/393:
1741         * inflow.c (terminal_save_ours): New function to save terminal
1742         settings.
1743         * inferior.h (terminal_save_ours): Declare.
1744         * target.c (debug_to_terminal_save_ours): New function.
1745         (cleanup_target): Defaults to_terminal_save_ours.
1746         (update_current_target): Inherit to_terminal_save_ours.
1747         (setup_target_debug): Set to_terminal_save_ours.
1748         * target.h (target_terminal_save_ours): New to save terminal settings.
1749         (target_ops): New member to_terminal_save_ours.
1750         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1751         * hpux-thread.c (init_hpux_thread_ops): Likewise.
1752         * inftarg.c (init_child_ops): Likewise.
1753         * m3-nat.c (init_m3_ops): Likewise.
1754         * procfs.c (init_procfs_ops): Likewise.
1755         * wince.c (init_child_ops): Likewise.
1756         * win32-nat.c (init_child_ops): Likewise.
1757         * sol-thread.c (init_sol_thread_ops): Likewise.
1758
1759 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
1760
1761         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
1762         use regcache_* functions.
1763         (i386_gdbarch_init): Set store_return_value instead of
1764         deprecated_store_return_value.
1765
1766         * regcache.c (regcache_raw_write_signed,
1767         regcache_raw_write_unsigned): New functions.
1768         * regcache.h (regcache_raw_write_signed,
1769         regcache_raw_write_unsigned): New prototypes.
1770
1771 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1772
1773         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1774         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1775         source file dependencies.  Cleanup corresponding generator rules.
1776
1777 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1778
1779         * regcache.h (register_offset_hack): Declare.
1780         (regcache_cooked_read_using_offset_hack): Declare.
1781         (regcache_cooked_write_using_offset_hack): Declare.
1782
1783         * regcache.c (register_offset_hack): New function.
1784         (regcache_cooked_read_using_offset_hack): New function.
1785         (regcache_cooked_write_using_offset_hack): New function.
1786         (regcache_dump): Check that the registers, according to their
1787         offset, are packed hard against each other.
1788         (cooked_xfer_using_offset_hack): New function.
1789
1790 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1791
1792         * regcache.c (struct regcache_descr): Add field register_type.
1793         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1794         in as a parameter
1795         (init_regcache_descr): Initialize register_type.  Pass the descr
1796         to init_legacy_regcache_descr.  Use register_type instead of
1797         REGISTER_VIRTUAL_TYPE.
1798         (register_type): New function.
1799         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1800         * regcache.h (register_type): Declare.
1801
1802 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1803
1804         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1805         instead of deprecated_store_return_value.  Fix fallout from
1806         2002-08-23 Andrew Cagney <cagney@redhat.com>.
1807
1808 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
1809
1810         * regcache.c (max_register_size): New function.
1811         (init_legacy_regcache_descr): Ensure that max_register_size is
1812         large enough for REGISTER_VIRTUAL_SIZE.
1813         * regcache.h (max_register_size): Declare.
1814
1815 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
1816
1817         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1818         store_return_value.
1819         (e500_extract_return_value): Change type of valbuf pointer to
1820         void.
1821
1822 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
1823
1824         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1825         workaround.
1826
1827         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1828         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1829         long long) to prevent compiler warning on 64-bit systems.
1830
1831 2002-08-23  Andrew Cagney  <cagney@redhat.com>
1832
1833         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1834         (DEPRECATED_STORE_RETURN_VALUE): New method.
1835         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1836         * gdbarch.h, gdbarch.c: Re-generate.
1837
1838         * values.c (set_return_value): Pass current_regcache to
1839         STORE_RETURN_VALUE.
1840         * arch-utils.h (legacy_store_return_value): Declare.
1841         * arch-utils.c (legacy_store_return_value): New function.
1842         (legacy_extract_return_value): Update parameters.
1843
1844         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1845         STORE_RETURN_VALUE.
1846         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1847         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1848         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1849         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1850         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1851         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1852         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1853         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1854         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1855         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1856
1857         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1858         * i386-tdep.c (i386_extract_return_value): Update.
1859         * arch-utils.c (legacy_extract_return_value): Update.
1860         * frv-tdep.c (frv_gdbarch_init): Update.
1861         * cris-tdep.c (cris_gdbarch_init): Update.
1862         * d10v-tdep.c (d10v_gdbarch_init): Update.
1863         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1864         * m68k-tdep.c (m68k_gdbarch_init): Update.
1865         * mcore-tdep.c (mcore_gdbarch_init): Update.
1866         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1867         * s390-tdep.c (s390_gdbarch_init): Update.
1868         * sparc-tdep.c (sparc_gdbarch_init): Update.
1869         * sh-tdep.c (sh_gdbarch_init): Update.
1870         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1871         * v850-tdep.c (v850_gdbarch_init): Update.
1872         * avr-tdep.c (avr_gdbarch_init): Update.
1873         * ia64-tdep.c (ia64_gdbarch_init): Update.
1874         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1875         * vax-tdep.c (vax_gdbarch_init): Update.
1876         * alpha-tdep.c (alpha_gdbarch_init): Update.
1877         * arm-tdep.c (arm_gdbarch_init): Update.
1878         * mips-tdep.c (mips_gdbarch_init): Update.
1879         * i386-tdep.c (i386_gdbarch_init): Update.
1880
1881 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
1882
1883         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1884         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1885
1886 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
1887
1888         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
1889         problems.
1890
1891 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
1892
1893         * infrun.c (handle_inferior_event): Move a comment outside of a
1894         function call, in order to avoid indent reformatting this part
1895         of the code in an unreadable way.
1896
1897 2002-08-23  Grace Sainsbury  <graces@redhat.com>
1898
1899         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1900         when breakpoints fail. Move general breakpoint error messages to
1901         insert_breakpoints.  
1902         * breakpoint.c (insert_breakpoints): Change warnings when
1903         breakpoints are nto inserted to specify the type. Remove call to
1904         memory_error when hardware breakpoints can't be inserted. Remove
1905         multiple calls to warning so all messages are sent to the user at
1906         once.
1907         (delete_breakpoints): Make insert error messsages more explicit.
1908
1909 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
1910
1911         * ChangeLog: Move gdbserver entries after GDB 5.2 to
1912         gdbserver/ChangeLog.
1913
1914 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
1915
1916         * i386-tdep.c: Include "objfiles.h".
1917         (i386_svr4_init_abi): Set in_solib_call_trampoline and
1918         skip_trampoline_code.
1919         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1920         (CPLUS_MARKER): Define to '.'.
1921
1922         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1923         member.
1924         (linux_corefile_thread_callback): Increase args->num_notes.
1925         (linux_make_note_section): Initialize thread_args.num_notes, and
1926         use it to determine whether notes for any threads were created.
1927
1928 2002-08-23  Donn Terry  <donnte@microsoft.com>
1929
1930         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1931         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1932         and PCUNKILL.
1933         (write_with_trace): Conditionalize out the switch branch handling
1934         PCSHOLD if the corresponding macro is not defined. Likewise for
1935         PRSABORT and PRSTOP.
1936         This change will be needed by the Interix port.
1937
1938 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1939
1940         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1941         write_register wherever possible instead of manipulating the
1942         register bytes directly.
1943         Assign VALUE_CONTENTS to a variable and use that.
1944         The GPR numbers are now dependent on the architecture.
1945         
1946 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1947
1948         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1949         ev_offset fields.
1950         (skip_prologue): Add support for BookE/e500 instructions.
1951         (e500_extract_return_value): New function.
1952         (frame_get_saved_regs): Add support for saving ev registers and
1953         pseudo gpr's.
1954         (e500_store_return_value): New function.
1955         (rs6000_gdbarch_init): Move up default intializations of
1956         deprecated_extract_return_value and store_return_value.  Overwrite
1957         init of store_return_value with e500 specific version.
1958         Set extract_return_value for e500.
1959         
1960 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
1961
1962         * blockframe.c (generic_call_dummy_register_unwind): Use
1963         regcache_cooked_read to catch cases in which the variable is
1964         stored in a pseudo register.
1965
1966 2002-08-22  Andrew Cagney  <cagney@redhat.com>
1967
1968         * NEWS: Mention that the i960 has been made obsolete.
1969         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1970         i960-tdep.c
1971         (remote-nrom.o): Obsolete target.
1972         (remote-nindy.o, i960-tdep.o): Ditto.
1973         * remote-nrom.c: Make file obsolete.
1974         * remote-nindy.c, remote-vx960.c: Ditto.
1975         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1976         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1977         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1978         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1979         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1980         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1981         i960-*-vxworks* obsolete.
1982         * MAINTAINERS: Note that the i960 is obsolete.
1983
1984 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
1985
1986         * aix-thread.c (aix_thread_detach): Disable thread debugging on
1987         detach to allow reinitialization.
1988
1989 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
1990
1991         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1992         attempt).
1993
1994 2002-08-22  Jim Blandy  <jimb@redhat.com>
1995
1996         * coffread.c (coff_symfile_read): Don't try to read the line
1997         number table from disk if the image file doesn't have a symbol
1998         table; we'll never actually look at the info anyway, and Windows
1999         ships DLL's with bogus file offsets for the line number data.
2000
2001 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2002
2003         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2004         an e500 executable.
2005
2006 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2007
2008         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2009         (MSYMBOL_SIZE): Replace macro with function.
2010         (DEFAULT_MIPS_TYPE): Delete unused macro.
2011         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2012         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2013
2014 2002-08-21  Jim Blandy  <jimb@redhat.com>
2015
2016         * valops.c (value_cast): Simplify and correct logic for doing a
2017         static cast from a pointer to a base class to a pointer to a
2018         derived class.
2019
2020 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2021
2022         * infcmd.c (default_print_registers_info): Replace
2023         do_registers_info.
2024         (registers_info): Use gdbarch_print_registers_info instead of
2025         DO_REGISTERS_INFO.
2026         * inferior.h (default_print_registers_info): Replace
2027         do_registers_info.
2028         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2029         (DO_REGISTERS_INFO): Change to a predicate function.
2030         * gdbarch.h, gdbarch.c: Regenerate.
2031         
2032 2002-08-21  Keith Seitz  <keiths@redhat.com>
2033
2034         * gdb-events.sh: Add target-changed event.
2035         * gdb-events.c: Regenerated.
2036         * gdb-events.c: Regenerated.
2037         * valops.c (value_assign): Add target-changed event notification
2038         to inlval_register, lval_memory, and lval_reg_frame_relative.
2039
2040 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2041
2042         * NEWS: Add an entry regarding the improvement of the next/step
2043         operation on Alpha Tru64 multi-processor machines.
2044
2045 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2046
2047         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2048         directores.
2049         * Makefile.in: Update all _h macro definitions.
2050         * Makefile.in (install-gdbtk): Move to install section.
2051         (rdi-share/libangsd.a): Move to end of file.
2052
2053 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2054
2055         * frame.c (frame_register_unwind): When a register, set addrp to
2056         the register's byte.
2057
2058 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2059
2060         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2061         used locally, so move them from the target machine header to here.
2062         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2063         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2064         Make static.
2065         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2066
2067 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2068
2069         * NEWS: Mention that the Apollo line was made obsolete.
2070         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2071         m68*-hp-hpux* obsolete.
2072         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2073         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2074         * buildsym.c (make_blockvector): Make static.
2075         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2076         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2077         (ALLDEPFILES): Remove dstread.c.
2078         (dstread.o): Obsolete make rule.
2079         * dstread.c: Makefile obsolete.
2080         * dst.h: Ditto.
2081         * config/m68k/hp300hpux.mt: Ditto.
2082         * config/m68k/hp300hpux.mh: Ditto.
2083         * config/m68k/hp300bsd.mt: Ditto.
2084         * config/m68k/hp300bsd.mh: Ditto.
2085         * config/m68k/apollo68b.mt: Ditto.
2086         * config/m68k/apollo68v.mh: Ditto.
2087         * config/m68k/apollo68b.mh: Ditto.
2088
2089 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2090
2091         * mips-tdep.c (mips_in_return_stub): Make static.
2092         (mips_gdbarch_init): Set in_solib_return_trampoline.
2093         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2094
2095 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2096
2097         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2098         * gdbarch.c, gdbarch.h: Regenerate.
2099         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2100         Add.
2101         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2102
2103 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2104
2105         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2106         (mips_gdbarch_init): Set skip_trampoline_code, 
2107         in_solib_call_trampoline.
2108         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2109         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2110
2111 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2112
2113         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2114
2115         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2116         vector type for ev registers.
2117         (e500_pseudo_register_read): New function.
2118         (e500_pseudo_register_write): New function.
2119         (e500_dwarf2_reg_to_regnum): New function.
2120         (PPC_UISA_NOFP_SPRS): New macro.
2121         (PPC_EV_REGS): New macro.
2122         (PPC_GPRS_PSEUDO_REGS): New macro.
2123         (registers_e500): New register set for e500.
2124         (variants): Add e500 variant.
2125         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2126         before setting architectural dependent variations.  Initialize ev
2127         registers numbers.  Add case for e500 architecture.  Set the
2128         number of pseudo registers.
2129
2130 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2131
2132         * rs6000-tdep.c: Clean up comments.
2133
2134 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2135
2136         * h8300-tdep.c: Re-indent file.
2137
2138 2002-08-20  Jim Blandy  <jimb@redhat.com>
2139
2140         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2141         default for this.
2142
2143 2002-08-20  Keith Seitz  <keiths@redhat.com>
2144
2145         * breakpoints.c (watch_command_1): Use internal breakpoint
2146         when setting a watchpoint_scope breakpoint.
2147
2148 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2149
2150         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2151         (build_builtin_type_vec64i): Ditto.
2152         (build_builtin_type_vec128): Ditto.
2153         (build_builtin_type_vec128i): Ditto.
2154
2155 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2156
2157         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2158         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2159         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2160         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2161         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2162         CALL_DUMMY_ADDRESS): Delete.
2163         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2164         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2165         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2166         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2167         push_return_address.
2168         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2169         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2170         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2171         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2172         mips_n32n64_push_arguments, mips_push_return_address,
2173         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2174         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2175
2176 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2177
2178         * mips-tdep.c (mips_frame_num_args): New function.
2179         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2180         frame_saved_pc, frame_args_address, frame_locals_address, 
2181         frame_num_args, and frame_args_skip.
2182         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2183         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2184         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2185         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2186
2187 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2188
2189         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2190         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2191         * mips-tdep.c (mips_store_struct_return): New function.
2192         (mips_extract_struct_value_address): New function.
2193         (mips_gdbarch_init): Set store_struct_return and
2194         extract_struct_value_address.
2195
2196 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2197
2198         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2199         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2200         (read_file_scope): Check that line_header is nonzero before
2201         decoding macro information.
2202
2203 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2204
2205         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2206         flag the general-purpose registers as floating-point on targets
2207         that don't support the floating-point registers.
2208
2209 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2210
2211         * rs6000-tdep.c (altivec_register_p): Delete.
2212         (rs6000_do_altivec_registers): Delete.
2213         (rs6000_altivec_registers_info): Delete.
2214         (rs6000_do_registers_info): Delete.
2215         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2216         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2217
2218 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2219
2220         * infcmd.c (do_registers_info): Print vector registers in hex
2221         format only.
2222         (print_vector_info): Check that printing registers
2223         makes sense.
2224         (print_float_info): Ditto.
2225
2226 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2227
2228         * mips-tdep.c (mips_gdbarch_init): Update.
2229         (mips_o32_extract_return_value): Rewrite.
2230         (mips_o32_store_return_value): Rewrite.
2231         (mips_o32_xfer_return_value): New function.
2232         (mips_xfer_register): Tweak debug print message.  Allow for
2233         buf_offset when dumping the value transfered.
2234
2235 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2236
2237         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2238         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2239         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2240         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2241         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2242
2243 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2244
2245         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2246
2247 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2248
2249         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2250         register.
2251         (P): New macro to define a register as a pseudo register.
2252         (R, R4, R8, R16, FR32, R64, R0): Updated.
2253         (struct variant): Add new fields for number of pseudo registers
2254         and number of total registers.
2255         (tot_num_registers): New macro replacing....
2256         (num_registers): ...deleted macro.
2257         (num_registers): New function.
2258         (num_pseudo_registers): New function.
2259         (variants): Update all variants to intialize new fields correctly.
2260         Postpone initialization of number of pseudo regs and real regs.
2261         (init_variants): New function.
2262         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2263         registers offsets.
2264
2265 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2266
2267         * valops.c (search_struct_field): Change error message to treat
2268         return value of 0 from value_static_field as meaning that field is
2269         optimized out.
2270         (value_struct_elt_for_reference): Ditto.
2271         * values.c (value_static_field): Treat an unresolved location the
2272         same as a nonexistent symbol.  Fix PR gdb/635.
2273         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2274         enclosed.  Fix PR gdb/574.
2275         * MAINTAINERS: Add self to Write After Approval list.
2276
2277 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2278
2279         * mips-tdep.c (mips_xfer_register): New function.
2280         (mips_n32n64_extract_return_value): Rewrite.
2281         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2282         instead of deprecated_extract_return_value.
2283
2284 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2285
2286         * rs6000-tdep.c (TDEP): Delete macro.
2287         (branch_dest): Replace use of TDEP macro with its body.
2288         (rs6000_pop_frame): Ditto.
2289         (rs6000_push_arguments): Ditto.
2290         (rs6000_skip_trampoline_code): Ditto.
2291         (rs6000_frame_saved_pc): Ditto.
2292         (rs6000_frame_chain): Ditto.
2293         (rs6000_register_name): Ditto.
2294         (rs6000_register_byte): Ditto.
2295         (rs6000_register_raw_size): Ditto.
2296         (rs6000_register_virtual_type): Ditto.
2297         (rs6000_register_convertible): Ditto.
2298         (rs6000_convert_from_func_ptr_addr): Ditto.
2299
2300 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2301
2302         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2303         conditionally.
2304         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2305         MIPS_LINUX_JB_ELEMENT_SIZE.
2306         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2307         for MAX_REGISTER_RAW_SIZE arrays.
2308         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2309         MIPS_LINUX_JB_ELEMENT_SIZE.
2310
2311 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2312
2313         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2314
2315 2002-08-19  Aidan Skinner <aidan@velvet.net>
2316
2317         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2318         ada-valprint.c ada-tasks.c.
2319         (YYFILES): Add ada-exp.y.
2320         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2321         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2322         (ada-exp.tab.o): New target.
2323                 
2324 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2325
2326         * regcache.c (regcache_xfer_part): New function.
2327         (regcache_raw_read_part): New function.
2328         (regcache_raw_write_part): New function.
2329         (regcache_cooked_read_part): New function.
2330         (regcache_cooked_write_part): New function.
2331         * regcache.h (regcache_raw_read_part): Declare.
2332         (regcache_raw_write_part): Declare.
2333         (regcache_cooked_read_part): Declare.
2334         (regcache_cooked_write_part): Declare.
2335
2336 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2337
2338         * remote.c (remote_open_1): Add async_p.
2339         (remote_async_open_1): Delete.
2340         (open_remote_target): Delete.
2341         (remote_open, extended_remote_open): Update calls to remote_open_1.
2342         (remote_async_open, extended_remote_async_open): Call
2343         remote_open_1 instead of remote_async_open_1.
2344
2345 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2346
2347         * blockframe.c: Fix a few coding standard violations.
2348
2349 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2350
2351         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2352         here from ...
2353         * config/i386/tm-i386sco5.h: ... here.  File removed.
2354         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2355
2356         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2357         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2358         (TM_FILE): Set to tm-i386.h.
2359         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2360         * config/i386/tm-i386v.h: Remove file.
2361         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2362         instead of "i386/tm-i386v.h".
2363         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2364         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2365         "i386/tm-i386v.h".
2366         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2367         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2368         "i386/tm-i386.h".
2369
2370 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2371
2372         * config/i386/nm-i386v.h: Add protection against
2373         multiple-inclusion.
2374         (i386_register_u_addr): Remove prototype.
2375         (register_u_addr): New prototype.
2376         (REGISTER_U_ADDR): Redefine accordingly.
2377         * i386v-nat.c: Improve several comments.
2378         (i386_register_u_addr): Change signature and rename to
2379         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2380         ubase variable.
2381
2382 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2383
2384         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2385         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2386         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2387         deprecated_extract_return_value.
2388         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2389         rename mips_o32o64_push_arguments.
2390         (mips_gdbarch_init): Update.
2391         (mips_extract_return_value): Delete.
2392         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2393         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2394         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2395         (mips_n32n64_extract_return_value): Clone
2396         mips_extract_return_value.
2397         (mips_store_return_value): Delete.
2398         (mips_o32_store_return_value): Clone mips_store_return_value.
2399         (mips_o64_store_return_value): Clone mips_store_return_value.
2400         (mips_eabi_store_return_value): Clone mips_store_return_value.
2401         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2402
2403 2002-08-18  Aidan Skinner <aidan@velvet.net>
2404
2405         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2406         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2407                 
2408 2002-08-18  Aidan Skinner <aidan@velvet.net>
2409
2410         * ada-lang.c: Run through gdb_indent.sh.
2411         * ada-lang.h: Run through gdb_indent.sh.
2412         * ada-tasks.c: Run through gdb_indent.sh.
2413         * ada-typeprint.c: Run through gdb_indent.sh.
2414         * ada-valprint.c: Run through gdb_indent.sh.
2415
2416 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2417
2418         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2419         ABI.
2420
2421 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2422
2423         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2424
2425         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2426         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2427
2428         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2429         write_register_gen instead of write_register_bytes.
2430
2431         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2432         i[3456]-*-osf1mk* configurations have been made obsolete.
2433         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2434         i[3456]86-*-osf1mk* hosts obsolete.
2435         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2436         targets obsolete.
2437         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2438         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2439         config/i386/i386m3.mt, config/i386/nm-m3.h,
2440         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2441         config/i386/i386mk.mh, config/i386/i386mk.mt,
2442         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2443         obsolete.
2444         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2445         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2446         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2447
2448 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2449
2450         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2451         (hppa_value_returned_from_stack): Declare.
2452         (hppa_extract_return_value): Declare.
2453         * config/pa/hppa.mt: New file.
2454         * configure.tgt: Recognize hppa*-*-*.
2455         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2456
2457 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2458
2459         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2460         comment.
2461
2462 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2463
2464         * top.c (gdb_rl_operate_and_get_next): Make sure
2465         operate-and-get-next functions correctly even when the history
2466         list is completely filled.
2467
2468 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2469
2470         * MAINTAINERS (Target Instruction Set Architectures): Rename
2471         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2472         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2473         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2474         already listed under Host/Native.
2475
2476         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2477         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2478         mips*-*-*.
2479
2480 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2481
2482         * config/ia64/ia64.mt: New file.
2483         * config/alpha/alpha.mt: New file.
2484         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2485         ia64-linux-gnu.  Mention that ia64-elf is broken.
2486         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2487
2488 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
2489
2490         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2491         generic_func_frame_valid instead of func_frame_valid.
2492
2493 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2494
2495         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2496         procfs appears to be broken when debugging on multi-processor
2497         machines. So enable software single stepping in order to avoid
2498         using the procfs interface to do next/step operations, using
2499         internal breakpoints instead.
2500
2501         * infrun.c (handle_inferior_event): Readjust the stop_pc by
2502         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2503         make this pc address equal to the value it would have if the
2504         system stepping capability was used. Also set a new flag used
2505         to ensure that we don't readjust the PC one more time later.
2506
2507         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2508         address by DECR_PC_AFTER_BREAK when software single step is
2509         in use for this architecture, as this has already been taken
2510         care of in handle_inferior_event().
2511
2512 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2513
2514         * infrun.c (handle_inferior_event): Minor reformatting, to make
2515         a rather long condition expression easier to read.
2516
2517 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2518
2519         * Makefile.in (gdbtk.o): Move to end of file.
2520         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2521         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2522         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2523         (gdbtk-wrapper.o, gdbres.o): Ditto.
2524
2525 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2526
2527         * Makefile.in (copying.o): Separate out compile rule.
2528         (hpux-thread.o, procfs.o, signals.o): Ditto.
2529         (v850ice.o, z8k-tdep.o): Ditto.
2530         (tui-file.o): Move to TUI section.
2531         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2532         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2533
2534 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2535
2536         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2537         skip_trampoline_code, for better namespace-proofing.   
2538
2539         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2540
2541 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2542
2543         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2544
2545 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2546
2547         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2548         signal, check whether we hit a breakpoint before checking for a
2549         single step breakpoint. Otherwise, GDB fails to notice that a
2550         breakpoint has been hit when stepping onto a breakpoint.
2551
2552 2002-08-16  Keith Seitz  <keiths@redhat.com>
2553
2554         * gdb-events.sh (clear_gdb_event_hooks): New function.
2555         * gdb-events.c: Regenerate.
2556         * gdb-events.h: Regenerate.
2557
2558 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2559
2560         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2561         not_a_sw_breakpoint.
2562         * breakpoint.h (bpstat_stop_status): Add parameter names.
2563
2564 2002-08-16  Grace Sainsbury  <graces@redhat.com>
2565
2566         * remote.c (remote_insert_hw_breakpoint)
2567         (remote_remove_hw_breakpoint): Fix calculation of length field
2568         for Z-packet.
2569
2570 2002-08-15  Michael Snyder  <msnyder@redhat.com>
2571
2572         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2573         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2574         (supply_fpregset): Ditto.
2575         
2576         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
2577         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
2578         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2579         (TARGET_READ_SP): Delete.
2580         (DO_REGISTERS_INFO): Delete.
2581         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2582         Delete.
2583         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2584         from macros to functions.
2585
2586         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2587         (mips_register_convertible, mips_register_convert_to_virtual,
2588         mips_register_convert_to_raw): Make static.
2589         (mips_read_sp): New function.
2590         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2591         (mips_do_registers_info): Make static.
2592         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2593         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2594         (mips_register_convert_from_type, mips_register_convert_to_type):
2595         New functions.
2596         (mips_gdbarch_init): Set up function_start_offset, 
2597         register_virtual_size, pc_in_sigtramp.
2598
2599 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2600
2601         * infcmd.c (vector_info): New function.
2602         (_initialize_infcmd): Add command "info vector".
2603         (print_vector_info): New function.
2604
2605         * gdbarch.sh (PRINT_VECTOR_INFO): New method
2606         * gdbarch.h, gdbarch.c: Regenerate.
2607
2608 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2609
2610         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2611         ``print_all''.  Only print vector registers when ``print_all''.
2612
2613 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2614
2615         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2616         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2617
2618         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2619         Add `args' parameter.
2620         * gdbarch.h, gdbarch.c: Regenerate.
2621         
2622         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2623         
2624         * infcmd.c (float_info): Call print_float_info.
2625         (print_float_info): New function.  By default, print the
2626         floating-point registers.
2627
2628         * arch-utils.h (default_print_float_info): Delete declaration.
2629         * arch-utils.c (default_print_float_info): Delete function.
2630         
2631 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
2632
2633         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2634         out define.
2635
2636         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2637         FRAME.
2638
2639         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2640         * configure.host: Make i[3456]86-*-aix host obsolete.
2641         * configure.tgt: Make i[3456]86-*-aix target obsolete.
2642         * config/i386/i386aix.mh, config/i386/i386aix.mt,
2643         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2644         config/i386/xm-i386aix.h: Make files obsolete.
2645         * i386aix-nat.c: Make file obsolete.
2646         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2647         (i386aix-nat.o): Make target obsolete.
2648
2649         * config/i386/nm-gnu.h: Removed.
2650         * config/i386/nm-i386gnu.h: New file.
2651         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2652         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2653         Moved here from ...
2654         * config/i386/tm-i386gnu.h: ... here.  Removed.
2655         * config/i386/xm-i386gnu.h: Removed.
2656         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2657         (NAT_FILE): Set to nm-i386gnu.h.
2658         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2659         * i386-tdep.c: New file.
2660         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2661         (i386gnu-tdep.o): Specify dependencies.
2662
2663 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
2664
2665         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2666         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2667         Adjust a few comments to reflect reality a bit closer.
2668         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2669         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2670         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2671         target_insert_watchpoint, target_remove_watchpoint):
2672         Move defines to ...
2673         * config/i386/nm-i386sco5.h: ... here.
2674         (kernel_u_size): Add prototype.  Improve a few comments and add
2675         protection against multiple inclusion.
2676         
2677         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2678         out define.
2679
2680         * uw-thread.c (SP_ARG0): Define if not already defined.
2681         * config/i386/tm-i386.h (SO_ARG0): Remove define.
2682
2683         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2684
2685         * config/i386/tm-i386.h: Don't include "regcache.h".
2686
2687         * i387-tdep.h (i387_print_float_info): New prototype.
2688         * i387-tdep.c (print_i387_value, print_i387_ext,
2689         print_i387_status_word, print_i387_control_word): Add `struct
2690         ui_file *' argument and use it for output.
2691         (i387_print_float_info): Renamed from i387_float_info.  Add
2692         `struct gdbarch *' and `struct ui_file *' arguments and use the
2693         latter for output.
2694         * i386-tdep.c: Include "i387-tdep.h".
2695         (i386_gdbarch_init): Set print_float_info.
2696         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2697         (FLOAT_INFO): Remove define.
2698
2699 2002-08-13  Michael Snyder  <msnyder@redhat.com>
2700
2701         * mips-tdep.c (mips_push_arguments): Rename to
2702         mips_eabi_push_arguments, and tune for EABI.
2703         (MIPS_REGS_HAVE_HOME_P): Delete.
2704         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2705         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2706         Delete references to mips_regs_have_home_p.
2707
2708 2002-08-14  Keith Seitz  <keiths@redhat.com>
2709
2710         * Makefile.in (install-gdbtk): Create insight plugin directory.
2711         Install plugins.tcl file.
2712
2713 2002-08-14  Keith Seitz  <keiths@redhat.com>
2714
2715         * configure.in: Move SUBDIRS to near top of the file so that
2716         --enable options may add things to it.
2717         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2718         * configure: Regenerate.
2719
2720 2002-08-13  Michael Snyder  <msnyder@redhat.com>
2721
2722         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
2723         cloned from mips_push_arguments, tuned for o32/o64 ABI.
2724         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2725
2726 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
2727
2728         * vax-tdep.c (vax_get_saved_register): Delete function.
2729         (vax_gdbarch_init): Update.
2730         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2731         (ns32k_gdbarch_init): Update.
2732         * alpha-tdep.c (alpha_get_saved_register): Delete function.
2733         (alpha_gdbarch_init): Update.
2734
2735 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2736
2737         * regcache.c (init_regcache_descr): Overallocate the
2738         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2739         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2740         nr_raw_registers.
2741         (set_register_cached): Add range checking assertions.  Use
2742         current_regcache.
2743
2744 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
2745
2746         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2747         numbers for MMX registers.
2748
2749 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2750
2751         * i386-tdep.c (i386_gdbarch_init): Use
2752         generic_unwind_get_saved_register.
2753
2754 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
2755
2756         * procfs.c (procfs_can_use_hw_breakpoint): New function.
2757         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2758         target vector.
2759         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2760         Delete.  Add comment regarding this now-deleted target method.
2761
2762 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2763
2764         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2765         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2766         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2767         real PC and the page number (if it's within the memory bank window).
2768         (m68hc11_pseudo_register_write): Likewise when saving.
2769         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2770         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2771         (m68hc11_register_raw_size): And use 32-bit for it.
2772         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2773         16K memory bank is used by the prog; also use the virtual pc.
2774
2775 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2776
2777         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2778         (m68hc11_gdbarch_init): Install it in gdbarch.
2779         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2780         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2781         (MSYMBOL_SIZE): New for documentation.
2782         (insn_return_kind): Enum to specify how a function returns.
2783         (frame_extra_info): Cleanup and record the return mode.
2784         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
2785         register in address computation.
2786         (m68hc11_get_return_insn): New to obtain the return instruction used
2787         by the function.
2788         (m68hc11_frame_init_saved_regs): Take into account the return
2789         instruction used by the function for far and interrupt functions.
2790         (m68hc11_init_extra_frame_info): Take into account page register.
2791         (m68hc11_frame_args_address): Adjust according to the return mode.
2792         (show_regs): Print page register only when it's used.
2793
2794 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2795
2796         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2797         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2798         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2799         registers.
2800         (m68hc11_register_raw_size): Likewise.
2801
2802 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2803
2804         * i386-tdep.c (i386_register_name): Handle mmx registers.
2805         (mmx_regnum_p): New function.
2806         (i386_mmx_names): New array.
2807         (mmx_num_regs): New variable.
2808         (i386_pseudo_register_read): New function.
2809         (i386_pseudo_register_write): New function.
2810         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2811
2812         * regcache.c (regcache_raw_read_unsigned): New function.
2813         (regcache_raw_read_signed): New function.
2814         * regcache.h (regcache_raw_read_unsigned): Declare.
2815         (regcache_raw_read_signed): Declare.
2816
2817 2002-08-13  Andrew Cagney  <cagney@redhat.com>
2818
2819         * regcache.c (regcache_raw_read_as_address): Delete function.
2820         (regcache_cooked_read_signed): New function.
2821         (regcache_cooked_read_unsigned): New function.
2822         * regcache.h (regcache_cooked_read_signed): Declare.
2823         (regcache_cooked_read_unsigned): Declare.
2824         (regcache_raw_read_as_address): Delete declaration.
2825
2826         * blockframe.c (generic_read_register_dummy): Use
2827         regcache_cooked_read_unsigned.
2828         * i386-tdep.c (i386_extract_struct_value_address): Use
2829         regcache_cooked_read_unsigned.
2830
2831 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2832
2833         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2834         double sizes according to ELF ABI flags.
2835         (gdbarch_tdep): Record elf_flags.
2836
2837 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
2838
2839         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2840         (m6812_prolog): They can appear in 68HC12 function prologue.
2841         (m68hc11_frame_chain): Cleanup.
2842
2843 2002-08-12  Andrew Cagney  <cagney@redhat.com>
2844
2845         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2846         declarations.
2847         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2848         (i386_linux_register_raw_size): Delete function.
2849         (i386_linux_init_abi): Update.
2850         * i386-tdep.c (i386_register_raw_size): Delete function.
2851         (i386_register_byte): Delete function.
2852         (i386_gdbarch_init): Update.
2853         (i386_register_size): Delete array.
2854         (i386_register_offset): Delete array.
2855
2856         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2857         (REGISTER_RAW_SIZE): Delete macro.
2858         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2859         (REGISTER_BYTE): Delete macro.
2860
2861 2002-08-11  Aidan Skinner <aidan@velvet.net>
2862
2863         * ada-lang.c (ada_lookup_partial_symbol)
2864         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2865         prototype names so that grep ^func works properly.
2866
2867         * ada-lang.c (ada_array_element_type)
2868         (ada_lookup_partial_symbol): Fix typos in parameter list.
2869
2870         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2871         Fix prototype names so that grep ^func works properly.
2872         
2873 2002-08-10  Andrew Cagney  <cagney@redhat.com>
2874             Elena Zannoni  <ezannoni@redhat.com>
2875             Martin M. Hunt  <hunt@redhat.com>
2876
2877         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2878         (build_builtin_type_vec128i): Set the vector bit.
2879         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2880         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2881         (build_builtin_type_vec64): New function.
2882         (build_builtin_type_vec64i): New function.
2883         (build_gdbtypes): Initialize builtin_type_vec64 and
2884         builtin_type_vec64i.
2885
2886 2002-08-09  Andrew Cagney  <cagney@redhat.com>
2887
2888         * regcache.c (regcache_dump): Compare the register offset
2889         with REGISTER_BYTE.
2890         * arch-utils.c (generic_register_byte): New function.
2891         * arch-utils.h (generic_register_byte): Declare.
2892         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2893         * gdbarch.h, gdbarch.c: Regenerate.
2894
2895 2002-08-09  Andrew Cagney  <cagney@redhat.com>
2896
2897         * regcache.c: Include "gdbcmd.h"
2898         (_initialize_regcache): Add commands "maintenance print
2899         registers", "maintenance print raw-registers" and "maintenance
2900         print cooked-registers".
2901         (enum regcache_dump_what): Define.
2902         (dump_endian_bytes): New function.
2903         (regcache_dump): New function.
2904         (regcache_print): New function.
2905         (maintenance_print_registers): New function.
2906         (maintenance_print_raw_registers): New function.
2907         (maintenance_print_cooked_registers): New function.
2908         * Makefile.in (regcache.o): Update dependencies.
2909
2910 2002-08-09  Michael Snyder  <msnyder@redhat.com>
2911
2912         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2913         (mips_push_arguments): Correct some comments.  Use paddr_nz
2914         for printing addresses in debug output.  Replace static
2915         allocation using MAX_REGISTER_RAW_SIZE with alloca.
2916         (mips_n32n64_push_arguments): New function, cloned from
2917         mips_push_arguments and tuned for the n32/n64 ABI.
2918         (mips_push_register): Buffer needs dynamic allocation.
2919         (mips_print_register): Ditto.
2920         (do_gp_register_row): Ditto.
2921         (mips_store_return_value): Ditto.
2922         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2923
2924 2002-08-09  Don Howard  <dhoward@redhat.com>
2925
2926         * memattr.c (mem_info_command): Print special case of upper bound
2927         as max CORE_ADDR + 1.
2928
2929 2002-08-08  Michael Snyder  <msnyder@redhat.com>
2930
2931         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
2932         returns structs by ref if they're too big to fit in two registers.
2933
2934 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
2935
2936         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2937         saved regs value.
2938         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2939         mips_find_saved_regs().
2940         (mips_pop_frame): Likewise.
2941
2942 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
2943
2944         * blockframe.c (frame_saved_regs_register_unwind): Revise
2945         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2946         frames are in use.
2947
2948 2002-08-09  Grace Sainsbury  <graces@redhat.com>
2949         
2950         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2951         T-packets; the 'a' is not taken as a register number.
2952         (remote_check_watch_resources, remote_stopped_by_watchpoint)
2953         (remote_stopped_data_address): New functions; add to target
2954         vector.
2955         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2956         prototypes to match other implementations of this
2957         function. replace integer argument with pointer -- the length
2958         field in the Z-packet is the length of what is pointed to or 1 if
2959         pointer is null. Add to target vector.
2960         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2961         target vector.
2962
2963         From Mark Salter:
2964         * remote.c (remote_wait): Add support to extract optional
2965         watchpoint information from T-packet. Ignore unrecognized
2966         optional info in T-packet.
2967         (remote_async_wait): Ditto.
2968
2969 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
2970
2971         * cli/cli-dump.c: Change fopen modes to use binary open modes
2972         as defined in include/fopen-bin.h throughout.
2973
2974 2002-08-08  Michael Snyder  <msnyder@redhat.com>
2975
2976         * mips-tdep.c: Minor whitespace and indentation clean-ups.
2977
2978 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
2979
2980         * doublest.c (store_floating): Avoid floatformat_from_doublest()
2981         assertion failure by returning early after a warning.
2982
2983 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
2984
2985         * mips-tdep.c (mips_find_saved_regs): Make static.
2986         (mips_frame_init_saved_regs): New function.
2987         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2988         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2989         (mips_find_saved_regs): Delete declaration.
2990
2991 2002-08-08  Grace Sainsbury  <graces@redhat.com>
2992
2993         * remote.c (remote_wait, remote_async_wait): Change
2994         thread_num from int to ULONGEST.
2995         (unpack_varlen_hex): Change result parameter from
2996         int * to ULONGEST *.
2997
2998 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
2999
3000         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3001         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3002         powerpc*-*-*.
3003         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3004
3005 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3006
3007         * gcore.c (override_derive_stack_segment): Delete variable.
3008         (preempt_derive_stack_segment): Delete function.
3009         (derive_stack_segment): Delete function.
3010         (default_derive_stack_segment): Renamed to derive_stack_segment.
3011         (override_derive_heap_segment): Delete variable.
3012         (preempt_derive_heap_segment): Delete function.
3013         (derive_heap_segment): Delete function.
3014         (default_derive_heap_segment): Rename to derive_heap_segment.
3015
3016 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3017
3018         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3019         * mips-tdep.c (mips_EABI_use_struct_convention, 
3020         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3021         New functions.  (mips_use_struct_convention): Delete.
3022         (mips_gdbarch_init): set use_gdbarch_convention.
3023
3024 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3025
3026         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3027         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3028         mips_o32_reg_struct_has_addr): New functions.
3029         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3030
3031 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3032
3033         * regcache.c (pseudo_register): Delete function.
3034         (fetch_register): Delete function.
3035         (store_register): Delete function.
3036         (regcache_raw_read, legacy_read_register_gen): Use
3037         target_fetch_registers instead of fetch_register.
3038         (legacy_write_register_gen, regcache_raw_write): Use
3039         target_store_register instead of store_register.
3040         (write_register_bytes): Ditto.
3041
3042         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3043         (STORE_PSEUDO_REGISTER): Delete.
3044         * gdbarch.h, gdbarch.c: Regenerate.
3045
3046 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3047
3048         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3049         write dump file binary.
3050
3051 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3052
3053         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3054         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3055         (mips_gdbarch_init): Set N32 target to be mips64.
3056
3057 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3058
3059         * frame.c (find_saved_register): Break out of loop once saved
3060         register address is found.  Don't mention sparc in loop comment
3061         anymore.
3062
3063 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3064
3065         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3066         mips_default_saved_regsize to 8.
3067
3068 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3069
3070         * gcore.c: Do not include <sys/procfs.h>.
3071         * Makefile.in (gcore.o): Update dependencies.
3072
3073 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3074
3075         * configure.tgt: Make arc-*-* obsolete.
3076         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3077         * MAINTAINERS: Make arc-elf obsolete.
3078         * arc-tdep.c: Make file obsolete.
3079         * config/arc/arc.mt: Ditto.
3080         * config/arc/tm-arc.h: Ditto.
3081
3082 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3083
3084         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3085
3086 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3087
3088         * mcore-tdep.c (mcore_gdbarch_init): Use
3089         generic_unwind_get_saved_register instead of
3090         generic_get_saved_register.
3091         * v850-tdep.c (v850_gdbarch_init): Ditto.
3092         * frv-tdep.c (frv_gdbarch_init): Ditto.
3093         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3094         * s390-tdep.c (s390_gdbarch_init): Ditto.
3095         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3096         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3097         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3098
3099 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3100
3101         * objfiles.h: Add missing #include "symfile.h"
3102
3103         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3104
3105 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3106
3107         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3108         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3109         of FIELD_BITSIZE.
3110
3111 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3112
3113         * NEWS: Cleanup and nitpick.
3114
3115 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3116
3117         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3118
3119 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3120
3121         * Makefile.in (gdbtk-bp.o): Update dependencies.
3122         (gdbtk-register.o): Ditto.
3123         (gdbtk-varobj.o): Ditto.
3124
3125 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3126
3127         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3128         m68hc11_fetch_pseudo_register.
3129         (m68hc11_pseudo_register_write): Replace
3130         m68hc11_store_pseudo_register.
3131         (m68hc11_gdbarch_init): Update.
3132
3133 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3134
3135         * gdbarch.sh: Include "gdb_string.h".
3136         * gdbarch.c: Regenerate.
3137
3138         * regcache.c: Include "gdb_string.h".
3139         * ax-general.c: Ditto.
3140         * varobj.c: Ditto.
3141         * std-regs.c: Ditto.
3142         * fbsd-proc.c: Ditto.
3143         * thread.c: Ditto.
3144
3145         * Makefile.in (regcache.o): Update dependencies.
3146         (thread.o, gdbarch.o): Ditto.
3147         (ax-general.o, gdbarch.o): Ditto.
3148         (varobj.o, std-regs.o): Ditto.
3149         (fbsd-proc.o): Specify dependencies.
3150
3151 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3152
3153         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3154         regnum.
3155         (regcache_cooked_write): Ditto.
3156
3157 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3158
3159         * regcache.c (regcache_cooked_read): New function.
3160         (regcache_cooked_write): New function.
3161         (read_register_gen): Rewrite using regcache_cooked_read.
3162         (write_register_gen): Rewrite using regcache_cooked_write.
3163
3164         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3165         Declare.
3166
3167 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3168
3169         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3170         Replace the architecture methods register_read and register_write.
3171         * gdbarch.h, gdbarch.c: Regenerate.
3172         * regcache.c (init_regcache_descr): Update.
3173         (read_register_gen): Update.
3174         (write_register_gen): Update.
3175         (supply_register): Update comment.
3176
3177         * sh-tdep.c (sh_gdbarch_init): Update.
3178         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3179         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3180         pointer.  Update code.
3181         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3182         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3183         void pointer.  Update code.
3184         (sh64_register_write): Delete.
3185         (sh4_register_read): Delete.
3186         (sh64_register_read): Delete.
3187         (sh4_register_write): Delete.
3188         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3189         void pointer, `to' parameter a void pointer.
3190         (sh_sh64_register_convert_to_raw): Ditto.
3191
3192 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3193
3194         * mips-tdep.c (mips_register_virtual_type): Use architecture
3195         invariant return values.
3196
3197 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3198
3199         * linux-proc.c: Include "gdb_string.h".
3200         * Makefile.in (linux-proc.o): Update dependency list.
3201
3202 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3203
3204         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3205         comment.
3206
3207 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3208
3209         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3210         to_insert_watchpoint, to_remove_watchpoint,
3211         to_stopped_by_watchpoint, to_stopped_data_address,
3212         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3213         target vecctor. Define their corresponding macros so they call
3214         them.
3215         
3216         * target.c: Add default and debug versions of for
3217         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3218         to_insert_watchpoint, to_remove_watchpoint,
3219         to_stopped_by_watchpoint, to_stopped_data_address,
3220         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3221
3222 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3223
3224         * mips-tdep.c (mips_register_virtual_type): New function.
3225         (mips_gdbarch_init): Register mips_register_virtual_type()
3226         with gdbarch machinery.
3227         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3228         this file instead of tm-bigmips.h.
3229         (MIPS_REGSIZE): Delete this macro.
3230         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3231         multiarch version in mips-tdep.c will be found.
3232
3233 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3234
3235         * NEWS: Menion that CHILL has been made obsolete.
3236
3237         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3238         * stabsread.c (read_range_type): Ditto.
3239         * gdbtypes.h: Ditto.
3240         * language.c (binop_type_check): Ditto.
3241         (binop_result_type): Ditto.
3242         (integral_type): Ditto.
3243         (character_type): Ditto.
3244         (string_type): Ditto.
3245         (boolean_type): Ditto.
3246         (structured_type): Ditto.
3247         (lang_bool_type): Ditto.
3248         (binop_type_check): Ditto.
3249         * language.h (_LANG_chill): Ditto.
3250         * dwarfread.c (set_cu_language): Ditto.
3251         * dwarfread.c (CHILL_PRODUCER): Ditto.
3252         * dwarfread.c (handle_producer): Ditto.
3253         * expression.h (enum exp_opcode): Ditto.
3254         * eval.c: Ditto for comments.
3255         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3256         * expprint.c (print_subexp): Ditto.
3257         (print_subexp): Ditto.
3258         * valops.c (value_cast): Ditto.
3259         (search_struct_field): Ditto.
3260         * value.h (COERCE_VARYING_ARRAY): Ditto.
3261         * symfile.c (init_filename_language_table): Ditto.
3262         (add_psymbol_with_dem_name_to_list): Ditto.
3263         * valarith.c (value_binop): Ditto.
3264         (value_neg): Ditto.
3265         * valops.c (value_slice): Ditto.
3266         * symtab.h (union language_specific): Ditto.
3267         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3268         (SYMBOL_DEMANGLED_NAME): Ditto.
3269         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3270         * defs.h (enum language): Ditto.
3271         * symtab.c (got_symtab): Ditto.
3272         * utils.c (fprintf_symbol_filtered): Ditto.
3273
3274         * ch-typeprint.c: Make file obsolete.
3275         * ch-valprint.c: Make file obsolete.
3276         * ch-lang.h: Make file obsolete.
3277         * ch-exp.c: Make file obsolete.
3278         * ch-lang.c: Make file obsolete.
3279
3280         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3281         CHILL_LIB.
3282         (TARGET_FLAGS_TO_PASS): Ditto.
3283         (CHILLFLAGS): Obsolete.
3284         (CHILL): Obsolete.
3285         (CHILL_FOR_TARGET): Obsolete.
3286         (CHILL_LIB): Obsolete.
3287         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3288         ch-valprint.c.
3289         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3290         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3291         ch-lang.o.
3292         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3293         targets.
3294
3295 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3296
3297         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3298         This does not change anything at the moment, but will be helpful
3299         later when full Ada support is integrated.
3300
3301 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3302
3303         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3304         help message.
3305
3306 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3307
3308         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3309         and save it in a local variable.  Use variable in later test.
3310
3311 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3312
3313         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3314         test.  (Thanks to Daniel Jacobowitz.)
3315         
3316 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3317
3318         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3319         (mips_abi_strings): Add "n64".
3320         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3321
3322 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3323
3324         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3325         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3326
3327 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3328
3329         * utils.c (host_pointer_to_address, address_to_host_pointer):
3330         Use gdb_assert() instead of explicit call to internal_error().
3331
3332 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3333
3334         * Makefile.in (rs6000-nat.o): Update dependencies.
3335
3336         From Nicholas Duffek:
3337         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3338         (aix-thread.o): New rule.
3339         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3340         * config/powerpc/aix432.mh: New file.
3341
3342 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3343
3344         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3345         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3346         (fetch_core_registers, ppc_linux_supply_gregset)
3347         (ppc_linux_supply_fpregset): New functions.
3348         (ppc_linux_regset_core_fns): New.
3349         (_initialize_ppc_linux_tdep): Call add_core_fns.
3350         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3351         and ppc_linux_supply_gregset.
3352         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3353         (supply_fpregset): Call ppc_linux_supply_fpregset.
3354         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3355         corelow.o.
3356         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3357
3358 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3359
3360         * symtab.c (lookup_symbol): Demangle before lowercasing.
3361
3362 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3363
3364         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3365         declaration.
3366         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3367         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3368         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3369         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3370         "gdb_string.h".
3371         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3372         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3373         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3374         (avr-tdep.o, mon960-rom.o): Ditto.
3375         (aout_stabs_gnu_h): Define.
3376         (symtab_h): Remove $(gdb_obstack_h).
3377
3378 2002-07-30  Jim Blandy  <jimb@redhat.com>
3379
3380         Patch from David Carlton <carlton@math.stanford.edu>:
3381         * gdbinit.in: Move the `dir' commands that add GDB's own source
3382         directory to the search path to the end, so that the `gdb' source
3383         directory will be searched first.
3384
3385 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3386
3387         * gdb_obstack.h: New file.
3388         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3389         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3390         * objfiles.h: Include "gdb_obstack.h".
3391         * Makefile.in (gdb_obstack_h): Define.
3392         (symtab_h): Add $(gdb_obstack_h).
3393         (objfiles_h): Add $(gdb_obstack_h).
3394         
3395         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3396         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3397         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3398         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3399         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3400         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3401         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3402         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3403
3404         * Makefile.in (bcache.o): Update dependencies.
3405         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3406         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3407         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3408         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3409         (stabsread.o, symfile.o, symmisc.o): Ditto.
3410         (symtab.o, typeprint.o, macroexp.o): Ditto.
3411         (macrotab.o, mdebugread.o): Ditto.
3412         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3413         (coff_ecoff_h, aout_aout64_h): Define.
3414         (aout_stabs_gnu_h, libaout_h): Define.
3415
3416 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3417
3418         * regcache.c (struct regcache_descr): Rename nr_registers to
3419         nr_cooked_registers.  Revise comments describing the structure
3420         member fields.
3421         (init_regcache_descr): Update.
3422         (init_legacy_regcache_descr): Update.
3423         (read_register_gen, write_register_gen): When a cooked register in
3424         the raw register range, directly access the value from the raw
3425         register cache.
3426
3427 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3428
3429         * z8k-tdep.c: Do not include "obstack.h".
3430         * h8300-tdep.c, h8500-tdep.c: Ditto.
3431         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3432         * valprint.c, v850-tdep.c: Ditto.
3433         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3434         * mn10200-tdep.c: Ditto.
3435
3436         * Makefile.in (z8k-tdep.o): Update dependencies.
3437         (m68hc11-tdep.o, valprint.o): Ditto.
3438         (v850-tdep.o, d10v-tdep.o): Ditto.
3439         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3440         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3441         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3442         (sh_opc_h, gdb_sim_sh_h): Define.
3443         (elf_sh_h, elf_bfd_h): Define.
3444         (opcode_m68hc11_h): Define.
3445         (OPCODES_SRC, OPCODES_DIR): define.
3446         (OPCODES): Use $(OPCODES_DIR).
3447         (gdb_sim_d10v_h): Rename sim_d10v_h.
3448         (gdb_sim_arm_h): Rename sim_arm_h.
3449
3450 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3451
3452         * utils.c (host_pointer_to_address, address_to_host_pointer):
3453         Change internal_error() message to indicate function responsible
3454         for the error.
3455
3456 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3457
3458         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3459         calls to local_hex_string_custom().
3460
3461 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3462
3463         * irix5-nat.c: Move IRIX shared library support from here...
3464         * solib-irix.c: ...to here.  Revised substantially to work with
3465         generic solib framework.
3466
3467         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3468         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3469         * mips-irix-tdep.c: New file.
3470
3471         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3472         (mips-irix-tdep.o, solib-irix.o): New rules.
3473         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3474         solib-irix.o.
3475         * config/mips/irix6.mt (TDEPFILES): Likewise.
3476         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3477
3478 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3479
3480         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3481         disabled (via ``#if 0'') includes.
3482
3483 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3484
3485         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3486         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3487         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3488         Add support for the fpscr register.
3489         * rs6000-nat.c (regmap, fetch_inferior_registers)
3490         (store_inferior_registers, fetch_core_registers): Likewise.
3491
3492 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3493
3494         * rs6000-nat.c (language.h): Include.
3495         (special_regs): Delete this array.
3496         (regmap): New function.
3497         (fetch_register, store_register):  Use regmap() to map gdb
3498         register numbers to ptrace register numbers.  Also, use
3499         outputs from regmap() to make decisions regarding type of
3500         ptrace() call to make.  In particular, don't compare against
3501         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3502         (fetch_inferior_registers, store_inferior_registers): Where
3503         possible, obtain register numbers from tdep struct.  Don't
3504         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3505         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3506         (LAST_UISA_SP_REGNUM): Delete.
3507         
3508 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
3509
3510         * rs6000-nat.c (ppc-tdep.h): Include.
3511         (fetch_registers, store_register, fetch_core_registers): Don't
3512         access registers[] directly.  Instead, use supply_register() or
3513         regcache_collect() as appropriate.
3514         (find_toc_address): Format hex address with local_hex_string().
3515
3516 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
3517
3518         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3519         bfd/elf32-frv.c.
3520
3521 2002-07-24  Tom Tromey  <tromey@redhat.com>
3522
3523         * jv-exp.y: Marked all strings with _().
3524         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3525         internal_error.
3526         (MethodInvocation, CastExpression, parse_number, yyerror,
3527         java_type_from_name, push_expression_name, yylex): Typo fixes.
3528
3529 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
3530
3531         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3532         (tee_file_flush, tee_file_write, tee_file_fputs)
3533         (tee_file_isatty): New.
3534         * ui-file.h (tee_file_new): Add prototype.
3535
3536 2002-07-24  Aidan Skinner <aidan@velvet.net>
3537
3538         * ada-lang.c: Change k&r style function definitions to prototyped
3539         form.
3540         * ada-typeprint.c: Change k&r style function definitions to prototyped
3541         form.
3542         * ada-valprint.c: Change k&r style function definitions to prototyped
3543         form.
3544         
3545 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3546
3547         * README: Remove reference to remote-bug.
3548         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3549         remote-bug.c.
3550         (m88k-nat.o): Delete rule.
3551         (m88k-tdep.o): Delete rule.
3552         (remote-bug.o): Delete rule.
3553         * MAINTAINERS: Mark as obsolete.
3554         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3555         * m88k-tdep.c: Make file obsolete.
3556         * config/m88k/m88k.mh: Ditto.
3557         * config/m88k/delta88v4.mh: Ditto.
3558         * config/m88k/delta88v4.mt: Ditto.
3559         * config/m88k/delta88.mt: Ditto.
3560         * config/m88k/delta88.mh: Ditto.
3561         * remote-bug.c: Ditto.
3562         * config/m88k/tm-delta88.h: Ditto.
3563         * config/m88k/nm-delta88v4.h: Ditto.
3564         * config/m88k/xm-delta88.h: Ditto.
3565         * config/m88k/xm-dgux.h: Ditto.
3566         * config/m88k/tm-m88k.h: Ditto.
3567         * config/m88k/nm-m88k.h: Ditto.
3568         * config/m88k/tm-delta88v4.h: Ditto.
3569         * m88k-nat.c: Ditto.
3570         * cxux-nat.c: Ditto.
3571         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3572         and m88*-*-* obsolete.
3573         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3574         m88*-*-* obsolete.
3575
3576 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3577
3578         * findvar.c (extract_unsigned_integer): Make `addr' parameter
3579         constant.  Same for local pointer variables.
3580         (extract_signed_integer): Ditto.
3581         * defs.h (extract_unsigned_integer): Update.
3582         (extract_signed_integer): Update.
3583
3584 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3585
3586         * regcache.c (regcache_raw_write): Change buf parameter to a
3587         constant void pointer.
3588         (regcache_raw_read): Change buf parameter to a void pointer.
3589         (legacy_write_register_gen): Change myaddr parameter a constant
3590         void pointer.
3591         (supply_register): Change val parameter to a const void pointer.
3592         * regcache.h (regcache_raw_write): Update declaration.
3593         (regcache_raw_read): Update declaration.
3594         (supply_register): Update declaration.
3595
3596 2002-07-24  Tom Tromey  <tromey@redhat.com>
3597
3598         * defs.h (gdb_readline_wrapper): Declare.
3599         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3600         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3601         * top.c (gdb_readline_wrapper): New function.
3602         (command_line_input): Use it.
3603
3604 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3605
3606         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3607         regcache_read and regcache_write.
3608         (regcache_raw_read_as_address): Replace regcache_read_as_address.
3609         * regcache.c: Update.
3610         * sh-tdep.c (sh64_push_arguments): Update comment.
3611         (sh_pseudo_register_read): Update.
3612         (sh_pseudo_register_write): Update.
3613         (sh4_register_read): Update.
3614         (sh4_register_write): Update.
3615         (sh64_pseudo_register_read): Update.
3616         (sh64_pseudo_register_write): Update.
3617         (sh64_register_read): Update.
3618         (sh64_register_write): Update.
3619         * i386-tdep.c (i386_extract_return_value): Update.
3620         (i386_extract_struct_value_address): Update.
3621         (i386_extract_return_value): Update.
3622         * blockframe.c (generic_read_register_dummy): Update.
3623         (generic_call_dummy_register_unwind): Update
3624         * infrun.c (write_inferior_status_register): Update.
3625
3626 2002-07-23  Jim Blandy  <jimb@redhat.com>
3627
3628         * parser-defs.h (expression_context_pc): Make this extern.
3629         (Thanks to Michael Snyder.)
3630
3631 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
3632
3633         GDB 5.2.1 released from 5.2 branch.
3634         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3635         * README: Update to mention 5.2.1.
3636
3637 2002-07-23  Mark Salter  <msalter@redhat.com>
3638
3639         * remote.c (remote_read_bytes): Fix check for error.
3640
3641 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3642
3643         * aix-thread.c (language.h): Include.
3644         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3645         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3646         Print newlines at end of debug messages.
3647         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3648         (pdc_write_data): Use local_hex_string() instead of %llx formats.
3649
3650 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3651
3652         * aix-thread.c (ppc-tdep.h): Include.
3653         (special_register_p): New function.
3654         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3655         (store_regs_user_thread): Use register number information from
3656         gdbarch_tdep struct instead of hardcoded offsets relative to
3657         FIRST_UISA_SP_REGNUM.
3658         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
3659         special_register_p() instead of using FPLAST_REGNUM and
3660         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3661         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
3662         will be MQ's register number.
3663
3664 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3665
3666         * aix-thread.c (ops): Rename to aix_thread_ops.
3667         (base_ops): Rename to base_target.
3668         (ops_attach): Rename to aix_thread_attach.
3669         (ops_detach): Rename to aix_thread_detach.
3670         (ops_resume): Rename to aix_thread_detach.
3671         (ops_wait):   Rename to aix_thread_wait.
3672         (ops_kill):   Rename to aix_thread_kill.
3673         (init_ops):   Rename to init_aix_thread_ops.
3674         (ops_fetch_register): Rename to aix_thread_fetch_register.
3675         (ops_store_register): Rename to aix_thread_store_register.
3676         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3677         (ops_thread_alive):   Rename to aix_thread_thread_alive.
3678         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3679         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
3680         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3681         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
3682         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3683         (store_regs_lib):  Rename to store_regs_user_thread.
3684         (store_regs_kern): Rename to store_regs_kernel_thread.
3685
3686 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3687
3688         * aix-thread.c (ops_prepare_to_store): Eliminate.
3689         (init_ops): Don't initialize ops.prepare_to_store.
3690         (store_regs_kern): Pre-fetch register buffers from child, 
3691         because some registers may not be in the cache.  Copy
3692         regs from register cache only if they are cached.
3693         (store_regs_lib): Copy regs from register cache only
3694         if they are cached.
3695         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3696         fill_gprs64): Ditto.
3697
3698 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
3699
3700         * aix-thread.c (gdb_assert.h): Include.
3701         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3702         register sizes (from register cache) match size of buffer holding
3703         register data.
3704         (fill_sprs32): Change parameter types to match those in the ptrace()
3705         buffer.
3706         (store_regs_lib): Likewise, but for 32-bit temporary variables.
3707         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3708
3709 2002-07-22  Michael Snyder  <msnyder@redhat.com>
3710
3711         * aix-thread.c (supply_sprs64): Cosmetic change.
3712         (supply_sprs32): Cosmetic change.
3713         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3714         (fill_sprs64): Use regcache_collect instead of read_register.
3715         (store_regs_lib): Use regcache_collect instead of 
3716         read_register.  Use fill_sprs32 instead of fill_sprs64,
3717         if debugging a 32-bit architecture.
3718         (store_regs_kern): Use fill_gprs64 etc. to pull the values
3719         out of the register cache, instead of passing a pointer into
3720         the register cache directly to ptrace.  Use regcache_collect
3721         insteaad of read_register.
3722         (ops_prepare_to_store): Use target_read_registers instead
3723         of read_register_bytes.
3724
3725 2002-07-20  Aidan Skinner <aidan@velvet.net>
3726
3727         * MAINTAINERS: Add self under write after approval. 
3728                 
3729 2002-07-20  Aidan Skinner <aidan@velvet.net>
3730
3731         * ada-tasks.c: Change k&r style function definitions to prototyped
3732         form.
3733                 
3734 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
3735
3736         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3737         * x86-64-tdep.c: Include "objfiles.h".
3738         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3739         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3740
3741 2002-07-17  Michal Ludvig  <michal@suse.cz>
3742
3743         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3744         (update_context): Initialise cfa variable.
3745
3746 2002-07-17  Michael Snyder  <msnyder@redhat.com>
3747
3748         * aix-thread.c: Shorten some long lines.  
3749         Bring comments into line with code spec.
3750
3751 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
3752
3753         * infrun.c: Re-indent using gdb_indent.sh.
3754
3755 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
3756
3757         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3758         Leave the indentation temporarily untouched, to minimize the diffs.
3759
3760 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
3761
3762         * stabsread.c: Make os9k sections of the code obsolete,
3763         for real this time.
3764         * stabsread.h: Make os9k sections of the code obsolete.
3765
3766 2002-07-18  Michal Ludvig <mludvig@suse.cz>
3767
3768         * linux-low.c (regsets_store_inferior_registers): Add free()
3769         at the end of a loop to prevent memory leak.
3770         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3771         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3772         * config/sparc/tm-sp64linux.h: Make the rest of #endif
3773         line a comment.
3774         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3775
3776 2002-07-17  Jim Blandy  <jimb@redhat.com>
3777
3778         * macrocmd.c (info_macro_command): Remove newline from error
3779         message.
3780
3781 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
3782
3783         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3784         (sh_gdbarch_init): Use it for sh-dsp.
3785
3786 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
3787
3788         * dwarf2read.c (read_initial_length): Handle older, non-standard,
3789         64-bit DWARF2 format.
3790
3791 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
3792
3793         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3794         <sys/proc.h> when not available.
3795
3796 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
3797
3798         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3799         * stabsread.c: Make os9k sections of the code obsolete.
3800         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3801         * config/i386/i386os9k.mt: Make file obsolete.
3802         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3803         (COMMON_OBS): Remove os9kread.o
3804         (SFILES): Remove os9kread.c.
3805         (os9kread.o, remote-os9k.o): Make target obsolete.
3806         * remote-os9k.c: Make file obsolete.
3807         * os9kread.c: Make file obsolete.
3808         * Makefile.in
3809
3810 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
3811
3812         * NEWS: Mention that the FR30 has been made obsolete.
3813         * fr30-tdep.c: Make file obsolete.
3814         * config/fr30/tm-fr30.h: Ditto.
3815         * config/fr30/fr30.mt: Ditto.
3816         * configure.tgt: Make fr30-*-elf obsolete.
3817         * MAINTAINERS: Make fr30-elf obsolete.
3818
3819 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
3820
3821         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3822         found is not inside a section.
3823
3824 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3825
3826         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3827         strerror().
3828         (pdc_realloc): Use xrealloc() instead of realloc().
3829
3830 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3831
3832         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3833         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3834         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3835         macros.
3836
3837 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3838
3839         * aix-thread.c (ptrace_check): Eliminate goto.
3840         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
3841         problem.
3842
3843 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
3844
3845         * aix-thread.c (gdbcmd.h): Include.
3846         (DEBUG, DBG, DBG2, dbg): Eliminate.
3847         (debug_aix_thread): New static global.
3848         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3849         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3850         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3851         invocations to DBG and DBG2 macros to test against
3852         ``debug_aix_thread'' and call fprintf_unfiltered().
3853         (_initialize_aix_thread): Add new command "set debug aix-thread".
3854
3855 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
3856
3857         From Gerhard Tonn <TON@de.ibm.com>:
3858         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3859         instead of supply_register.
3860
3861 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
3862
3863         * dwarf2cfi.c: Include "gdb_assert.h".
3864         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3865         non-NULL.
3866         (update_context): Do not use __func__.  Add missing ``break''.
3867         (update_context): Do not use __func__.
3868
3869 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
3870
3871         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3872         and its setting.  Set gdbarch instruction printing functions
3873         directly.  For non-rs6000 case use new function
3874         gdb_print_insn_powerpc.
3875         (gdb_print_insn_powerpc): New function.
3876
3877 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
3878
3879         * NEWS: Mention that the d30v has been marked obsolete.
3880         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3881         * configure.tgt: Mark d30v-*-* as obsolete.
3882         * d30v-tdep.c: Mark file as obsolete.
3883         * config/d30v/d30v.mt: Ditto.
3884         * config/d30v/tm-d30v.h: Ditto.
3885
3886 2002-07-13  Aidan Skinner <aidan@velvet.net>
3887
3888         * ada-tasks.c (add_task_entry): replace calls to
3889         malloc() with xmalloc
3890         * ada-tasks.c (init_task_list): replace calls to free with xfree()
3891         
3892         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3893         ada_finish_decode_line_1, all_sals_for_line
3894         ada_breakpoint_rewrite): replace calls to free() with xfree()
3895                 
3896 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3897
3898         From Nicholas Duffek (with minor changes by Martin Hunt, 
3899         Louis Hamilton, and Kevin Buettner):
3900         * aix-thread.c: New file.
3901
3902 2002-07-12  Petr Sorfa <petrs@caldera.com>
3903
3904         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
3905         complaint for invalid attribute class or form.
3906         (read_func_scope): DW_AT_frame_base
3907         better handling of DW_AT_block*.
3908         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3909         better handling of DW_AT_block*.
3910         (read_common_block): DW_AT_location
3911         better handling of DW_AT_block*.
3912         (read_partial_die): DW_AT_location better handling
3913         of DW_AT_block*.
3914         (new_symbol): DW_AT_external better handling of
3915         DW_AT_block*. Proper initialization of variable
3916         "addr".
3917         (attr_form_is_block): New function that returns true
3918         if the attribute's form is of DW_FORM_block*.
3919
3920 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3921
3922         * valops.c (find_method_list): Remove comment about
3923         removed STATIC_MEMFUNCP argument.
3924         (value_find_oload_method_list): Likewise.
3925
3926 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3927
3928         From Nicholas Duffek:
3929         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3930         target_new_objfile_hook.
3931
3932 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
3933
3934         From Nicholas Duffek:
3935         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3936         csect.
3937
3938 2002-07-12  Andrew Cagney  <cagney@redhat.com>
3939
3940         * MAINTAINERS: Mention --enable-sim-build-warnings.
3941         (m68hc11-elf): Disable sim build warnings.
3942         (m32r-elf): Mark as broken obsolete candidate.
3943         (x86_64-linux-gnu): Mark as buildable with -Werror.
3944         (arm-elf): Change -w to ``,'' which enables warnings but not
3945         -Werror.
3946
3947 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
3948
3949         * bcache.h: Update copyright.
3950         (struct bstring, struct bcache): Move definition to "bcache.c".
3951         Replaced by opaque declaration.
3952         (bcache_xfree): Replace free_bcache.
3953         (bcache_xmalloc, bcache_memory_used): Declare.
3954         
3955         * bcache.c: Update copyright.
3956         (struct bstring, struct bcache): Moved to here from "bcache.h".
3957         Update comments.
3958         (bcache_xmalloc, bcache_memory_used): New functions.
3959         (bcache_xfree): Replace function free_bcache.
3960         
3961         * Makefile.in (objfiles.o): Add $(bcache_h).
3962         (objfiles_h): Remove $(bcache_h).
3963         (symfile.o): Add $(bcache_h).
3964
3965         * symmisc.c: Update copyright.
3966         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3967         (print_objfile_statistics): Use bcache_memory_used.
3968
3969         * symfile.c: Include "bcache.h".
3970         (reread_symbols): Use bcache_xfree.
3971         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3972         (add_psymbol_to_list): Pass psymbol_cache by value.
3973         (add_psymbol_with_dem_name_to_list): Ditto.
3974
3975         * objfiles.h: Update copyright.
3976         (struct bcache): Declare opaque.  Do not include "bcache.h".
3977         (struct objfile): Change psymbol_cache and macro_cache to ``struct
3978         bcache'' pointers.
3979         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3980
3981         * objfiles.c: Include "bcache.h".  Update copyright.
3982         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3983         macro_cache.
3984         (free_objfile): Use bcache_xfree.
3985
3986 2002-07-11  Grace Sainsbury  <graces@redhat.com>
3987
3988         * monitor.c (monitor_fetch_register): Make name a constant.
3989         (monitor_store_register): Same.
3990
3991 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
3992
3993         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3994         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3995         (finish_block) For non-function blocks, hash the symbol table.  For
3996         function blocks, mark the symbol table as unhashed.
3997         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3998         (msymbol_hash_iw): Likewise.
3999         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4000         value.
4001         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4002         (lookup_minimal_symbol): Likewise for both.
4003         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4004         hashtable.
4005         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4006         (ALL_BLOCK_SYMBOLS): Update.
4007         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4008         (struct symbol): Add `hash_next' pointer.
4009         * symtab.c (lookup_block_symbol): Search using the hash table when
4010         possible.
4011         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4012         (search_symbols, find_addr_symbol): Likewise.
4013
4014         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4015         (read_dst_symtab): Likewise.
4016         * jv-lang.c (get_java_class_symtab): Likewise.
4017         * mdebugread.c: Include "gdb_assert.h".
4018         (shrink_block): Assert that the block being modified is not hashed.
4019         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4020         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4021         symbols.
4022         (dump_symtab): Recognize hashed blocks.
4023         * printcmd.c (print_frame_args):  Assert that function blocks do not
4024         have hashed symbol tables.
4025         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4026         (fill_in_ada_prototype, debug_print_block): Likewise.
4027         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4028
4029 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4030
4031         * stack.c (print_frame): Use result of frame_address_in_block()
4032         instead of fi->pc when evaluating symbols.
4033         (backtrace_command_1): Ditto.
4034
4035 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4036
4037         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4038         Make static.
4039
4040         * arm-tdep.c (arm_register_name): Make return type constant.
4041
4042 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4043
4044         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4045         prototype.
4046         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4047         * s390-tdep.c (s390_fp_regnum): Ditto.
4048         (s390_read_fp): Ditto.
4049         (s390_pop_frame): Ditto.
4050         (_initialize_s390_tdep): Ditto.
4051         * remote.c (get_remote_state): Ditto.
4052         * procfs.c (mappingflags): Ditto.
4053         * memattr.c (_initialize_mem): Ditto.
4054         * mcore-tdep.c (mcore_pop_frame): Ditto.
4055         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4056         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4057         * language.c (set_case_str): Ditto.
4058         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4059         * frv-tdep.c (new_variant): Ditto.
4060         (frv_stopped_data_address): Ditto.
4061         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4062         (context_alloc): Ditto.
4063         (frame_state_alloc): Ditto.
4064         (unwind_tmp_obstack_init): Ditto.
4065         (unwind_tmp_obstack_free): Ditto.
4066         (cfi_read_fp): Ditto.
4067         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4068         (cris_pop_frame): Ditto.
4069         * c-lang.c (scanning_macro_expansion): Ditto.
4070         (finished_macro_expansion): Ditto.
4071         (c_preprocess_and_parse): Ditto.
4072         * gdbarch.sh: Ditto.
4073         * gdbarch.h, gdbarch.c: Regenerate.
4074         * config/mn10200/tm-mn10200.h: Adjust indentation.
4075         * target.c: Adjust indentation.
4076         * symtab.h: Adjust indentation.
4077         * stabsread.h: Adjust indentation.
4078         * remote-es.c: Adjust indentation.
4079         * os9kread.c: Adjust indentation.
4080
4081 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4082         
4083         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4084         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4085
4086 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4087         
4088         * NEWS: Mention m68k, mcore multi-arching.  
4089         * MAINTAINERS: Change status of m68k, mcore to reflect
4090         multi-arching.
4091
4092 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4093
4094         * valops.c (find_overload_match): Free oload_syms.
4095
4096 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4097
4098         Define HAVE_SYS_PROC_H if sys/proc.h exists
4099         * configure.in: Add check for sys/proc.h
4100         * config.in: Regenerate.
4101         * configure: Regenerate.
4102
4103 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4104
4105         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4106         #if !GDB_MULTI_ARCH. 
4107
4108 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4109
4110         * config.in, configure: Regenerate.
4111
4112 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4113
4114         * dwarf2cfi.c: Include "gcore.h".
4115         (execute_stack_op): Fix implementation of the
4116         DW_OP_deref and DW_OP_deref_size operators by letting do their
4117         lookup in the target.
4118
4119 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4120
4121         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4122         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4123         tdep->sc_sp_offset.
4124
4125 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4126
4127         Fix PR gdb/595, gdb/602
4128         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4129         Don't call value_cast, just read the vtable pointer; update comments
4130         to match.
4131
4132 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4133
4134         * config/mcore/tm-mcore.h: Remove file.
4135         * config/mcore/mcore.mt: Remove definition of TM_FILE
4136         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4137
4138 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4139
4140         * i386bsd-tdep.c: Include "gdb_string.h".
4141
4142 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4143
4144         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4145         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4146         mcore-tdep.
4147         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4148         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4149         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4150         (RETVAL_REGNUM): Move macros from tm-mcore.h
4151         (mcore_reg_struct_has_addr): New function.
4152         (mcore_gdbarch_init): Added initializations for the macros removed
4153         from tm-mcore.h.
4154
4155 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4156
4157         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4158         traditonal string branding within the ELF header.
4159
4160 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4161
4162         * symtab.c (remove_params): New function.
4163         (make_symbol_overload_list): Use it instead of cplus_demangle.
4164         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4165
4166 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4167
4168         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4169
4170         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4171         New variables.
4172         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4173         and tdep->sigtramp_end.
4174         * i386obsd-nat.c: New file.
4175         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4176
4177         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4178         Don't call get_current_frame().
4179
4180 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4181
4182         * i386-nat.c (child_post_startup_inferior): New function
4183         calling i386_cleanup_dregs if
4184         I386_USE_GENERIC_WATCHPOINTS is defined.
4185         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4186         conditional to acknowledge that i386-nat.c has its
4187         own child_post_startup_inferior function.
4188
4189 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4190
4191         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4192         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4193         instead of MAX_REGISTER_RAW_SIZE.
4194         (i386_extract_return_value, i386_extract_struct_value_address):
4195         Convert to use regcache.
4196         (i386_gdbarch_init): Set max_register_raw_size and
4197         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4198         Set extract_return_value and extract_struct_value_address instead
4199         of their deprecated variants.
4200
4201         Convert i386 target to generic dummy frames.
4202         * i386-tdep.c: Include "symfile.h".
4203         (i386_frameless_signal_p): Consider a function to be frameless if
4204         the pc points at the first instruction of the function.
4205         (i386_frame_chain): Handle (generic) call dummies.
4206         (i386_frame_saved_pc): Likewise.
4207         (i386_frame_init_saved_regs): Remove code dealing with call
4208         dummies on the stack.
4209         (i386_push_dummy_frame): Removed.
4210         (i386_call_dummy_words): Removed.
4211         (i386_fix_call_dummy): Removed.
4212         (i386_push_return_address): New function.
4213         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4214         parameter, and don't call get_current_frame.
4215         (i386_pop_frame): New function.
4216         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4217         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4218         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4219         call_dummy_length to 0, set call_dummy_words to NULL, set
4220         sizeof_call_dummy_words to 0, set fix_call_dummy to
4221         generic_fix_call_dummy, set pc_in_call_dummy to
4222         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4223         generic_push_dummy_frame, set push_return_address to
4224         i386_push_return_address and set frame_chain_valid to
4225         generic_file_frame_chain_valid.
4226
4227 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4228
4229         * gdbarch.sh (struct regcache): Add opaque declaration.
4230         (EXTRACT_RETURN_VALUE): New architecture method.
4231         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4232         * gdbarch.h, gdbarch.c: Regenerate.
4233         * arch-utils.c (legacy_extract_return_value): New function.
4234         * arch-utils.h (legacy_extract_return_value): Declare.
4235         * values.c (value_being_returned): Re-enable code handling
4236         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4237         deprecated_grub_regcache_for_registers call to block handling
4238         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4239         (EXTRACT_RETURN_VALUE): Do not define.
4240
4241 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4242
4243         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4244         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4245         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4246         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4247         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4248         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4249         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4250         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4251         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4252         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4253         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4254         argument so the function fits the prototype in the architecture
4255         vector.
4256         (mcore_pop_frame): Remove argument so the function fits the
4257         prototype. Use get_current_frame instead of the argument.
4258         (mcore_push_arguments): Change type of struct_return so the
4259         function can be used in the architecture vector.
4260         (mcore_store_struct_return): Add.
4261         (mcore_frame_init_saved_regs): Add.
4262         (mcore_gdbarch_init): Add function calls to replace the macros
4263         removed from tm-mcore.h
4264
4265 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4266
4267         * infcmd.c (print_return_value): Remove compatibility code calling
4268         deprecated_grub_regcache_for_registers.
4269         
4270         * values.c: Include "regcache.h".
4271         (value_being_returned): Update.  Use
4272         deprecated_grub_regcache_for_registers to extract the register
4273         buffer address.  
4274         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4275         ``struct regcache''.
4276         * Makefile.in (values.o): Add dependency on $(regcache_h).
4277
4278         * inferior.h (run_stack_dummy): Change type of second parameter to
4279         a ``struct regcache''.
4280         * valops.c (hand_function_call): Change type of retbuf to ``struct
4281         regcache''.  Allocate using regcache_xmalloc, clean using
4282         make_cleanup_regcache_xfree.
4283         * infcmd.c (run_stack_dummy): Update.  Use
4284         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4285
4286         * regcache.c (do_regcache_xfree): New function.
4287         (make_cleanup_regcache_xfree): New function.
4288         * regcache.h (make_cleanup_regcache_xfree): Declare.
4289
4290 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4291
4292         * event-top.c (command_line_handler): Don't read past
4293         beginning of buffer.
4294
4295 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4296         
4297         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4298         struct frame_id. 
4299         (varobj_create): Store frame_id for root.
4300         (varobj_gen_name): Use xasprintf.
4301         (varobj_update): Save and restore frame using get_frame_id() and
4302         frame_find_by_id().
4303         (create_child): Use xasprintf.
4304         (new_root_variable): Initialize frame_id.
4305         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4306         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4307         to prevent memory leak.
4308
4309 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4310
4311         * valops.c (hand_function_call): Move declaration of retbuf to
4312         start of function, allocate using malloc, add a cleanup but before
4313         the inf_status cleanup, cleanup the buffer.  Rename local variable
4314         old_chain to inf_status_cleanup.
4315
4316 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4317
4318         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4319
4320         * cli/cli-decode.c (cmd_func_p): New function.
4321         (cmd_func): New function.
4322
4323         * command.h: Add cmd_func() and cmd_func_p().   
4324         
4325 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4326
4327         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4328         (REGISTER_SIZE): Remove.
4329         (MAX_REGISTER_RAW_SIZE): Remove.
4330         (REGISTER_VIRTUAL_TYPE): Remove.
4331         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4332         (REGISTER_NAME): Remove.
4333         (USE_GENERIC_DUMMY_FRAMES): Remove.
4334         (CALL_DUMMY): Remove.
4335         (CALL_DUMMY_START_OFFSET): Remove.
4336         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4337         (CALL_DUMMY_LOCATION): Remove.
4338         (FIX_CALL_DUMMY): Remove.
4339         (CALL_DUMMY_ADDRESS): Remove.
4340         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4341         (SAVE_DUMMY_FRAME_TOS): Remove.
4342         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4343         (mcore_register_virtual_type): New function.
4344         (mcore_register_byte): New function.
4345         (mcore_register_size): New function.
4346         (mcore_register_name): New function.
4347         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4348         macros removed from tm-mcore.h.
4349         (mcore_dump_tdep): Add.
4350         (_initialize_mcore_tdep): Add gdbarch_register call.
4351
4352 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4353
4354         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4355         frameless_look_for_prologue, such that we actually call this
4356         function.
4357
4358 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4359
4360         * frame.h (frame_address_in_block): New function.
4361
4362         * blockframe.c (frame_address_in_block): New function extracted
4363         from get_frame_block().
4364         (get_frame_block): Use frame_address_in_block().
4365         (block_innermost_frame): Use frame_address_in_block() to match
4366         the frame pc address against the block boundaries rather than
4367         the frame pc directly. This prevents a failure when a frame pc
4368         is actually a return-address pointing immediately after the end
4369         of the given block. 
4370
4371 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4372
4373         * MAINTAINERS: Add self under write after approval. 
4374
4375 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4376
4377         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4378         used in architecture vector. The default is
4379         m68k_local_breakpoint_from_pc.
4380         (m68k_local_breakpoint_from_pc): Add.
4381         (enum): Add register numbers from tm-m68k.h.
4382         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4383         vector.  
4384         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4385         GDB_MULTI_ARCH_PARTIAL.
4386         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4387         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4388         m68k-tdep.c.
4389         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4390         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4391         to enum in m68k-tdep.c
4392
4393 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4394
4395         * solib-osf.c (open_map): Compute the list of shared libraries
4396         loaded by the inferior, rather than the list of libraries loaded
4397         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4398         the wrong shared libraries...
4399
4400 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4401
4402         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4403         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4404         macros.
4405         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4406         Remove functions.
4407         (FRAMELESS_SIGNAL): Remove function.
4408         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4409         i386_linux_saved_pc_after_call): Removed.
4410         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4411         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4412         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4413
4414         * i386-tdep.c (i386_frameless_signal_p): New function.
4415         (i386_frame_chain): Deal with frameless signals.
4416         (i386_sigtramp_saved_sp): New function.
4417         (i386_frame_saved_pc): Deal with frameless signals.
4418         (i386_saved_pc_after_call): Make sure the correct value is
4419         returned just after entry into a sigtramp.
4420         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4421         i386fbsd4_sc_sp_offset): New variables.
4422         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4423         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4424         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4425         similiar to what we already did for sc_pc_offset.
4426         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4427         tdep->sc_sp_offset.
4428
4429         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4430
4431 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4432
4433         * config/i386/tm-x86-64linux.h: New.
4434         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4435         definitions.
4436         * config/i386/nm-x86-64.h: Rename to ...
4437         * config/i386/nm-x86-64linux.h: ... this one.
4438         * config/i386/x86-64linux.mh: Reflect the above change.
4439         
4440 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4441
4442         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4443         with sigcontext_addr.  Add sc_sp_offset.
4444         (i386bsd_sigtramp_saved_pc): Remove prototype.
4445         (i386bsd_sicontext_addr): Add prototype.
4446         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4447         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4448         (i386_svr4_sigtramp_saved_pc): Removed.
4449         (i386_svr4_sigcontext_addr): New function.
4450         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4451         Initialize tdep->sigcontext_addr instead.  Initialize
4452         tdep->sc_pc_offset and tdep->sc_sp_offset.
4453         (i386_gdbarch_init): Likewise.
4454         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4455         any more.
4456         (i386bsd_sigtramp_saved_pc): Remove function.
4457         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4458         Initialize tdep->sigcontext_addr instead.  Initialize
4459         tdep->sc_pc_offset.
4460         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4461         of tdep->sigtramp_saved_pc.
4462         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4463         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4464         instead.
4465
4466         * i386-tdep.c (i386_frameless_function_invocation,
4467         i386_frame_num_args, i386_frame_init_saved_regs,
4468         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4469         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4470         i386_extract_return_value, i386_store_return_value,
4471         i386_extract_struct_value_address, i386_register_virtual_type,
4472         i386_register_convertible, i386_register_convert_to_virtual,
4473         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4474         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4475         static.
4476
4477 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4478
4479         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4480
4481         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4482         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4483         this macro.  Include "value.h".
4484
4485 2002-06-30  Aidan Skinner  <aidan@velvet.net>
4486
4487         * ada-exp.tab.c: remove as it's a generated file
4488         * ada-lex.c: remove as it's a generated file
4489                 
4490 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
4491
4492         * config/i386/tm-i386.h (struct frame_info, struct
4493         frame_saved_regs, struct value, struct type): Remove forward
4494         declarations.
4495
4496         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4497         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4498         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4499         (FILL_FPXREGSET): Define.
4500
4501         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4502
4503         * configure.tgt (i[3456]86-*-openbsd*): Fold into
4504         i[3456]86-*-netbsd* case.
4505         * config/i386/tm-obsd.h: Removed.
4506         * config/i386/obsd.mt: Removed.
4507         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4508         core-aout.o.
4509         (MH_CFLAGS): Add -DYYDEBUG=0.
4510
4511         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4512         i386nbsd_sc_pc_offset on OpenBSD too.
4513
4514         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4515         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4516         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4517         define.
4518         * i386bsd-tdep.c: Include "arch-utils.h".
4519         (i386bsd_aout_in_solib_call_trampoline): New function.
4520         (i386bsd_init_abi): Set in_solib_call_trampoline to
4521         i386bsd_aout_in_solib_call_trampoline.
4522         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4523         in_solib_call_trampoline to generic_in_solib_call_trampoline.
4524
4525 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4526
4527         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4528         (struct obstack, struct bcache): Add opaque declarations.
4529         * Makefile.in (macrotab_h): Update
4530
4531 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4532
4533         * blockframe.c (generic_find_dummy_frame): Change return type to
4534         ``struct regcache''.
4535         (struct dummy_frame): Replace field ``registers'' with regcache, a
4536         struct regcache object.
4537         (generic_find_dummy_frame): Update.
4538         (generic_push_dummy_frame): Update.  Use regcache_xfree,
4539         regcache_xmalloc and regcache_cpy.
4540         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
4541         regcache_xfree.
4542         (deprecated_generic_find_dummy_frame): Update.
4543         (generic_read_register_dummy): Update.  Use
4544         regcache_read_as_address.
4545         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
4546         (generic_get_saved_register): Update.  Use regcache_read.
4547
4548 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4549
4550         * Makefile.in (objfiles_h): Add $(bcache_h).
4551         * objfiles.h: Include "bcache.h".
4552
4553         * Makefile.in (symtab_h): Remove $(bcache_h).
4554         * symtab.h: Do not include "bcache.h".
4555
4556 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4557
4558         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4559         generic_func_frame_chain_valid.
4560
4561 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
4562
4563         * config/i386/nm-fbsd.h: Include <sys/param.h>.
4564         * config/i386/tm-fbsd.h: Likewise.
4565
4566 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4567
4568         * rs6000-tdep.c (rs6000_gdbarch_init): Use
4569         generic_unwind_get_saved_register.
4570
4571 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4572
4573         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4574         * regcache.c (supply_register): Add missing argument to
4575         register_buffer call.
4576
4577 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4578
4579         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
4580         Solaris /bin/grep does not not like it.  From Peter Schauer.
4581
4582 2002-06-26  Tom Tromey  <tromey@redhat.com>
4583
4584         * command.h (add_setshow_cmd): Declare.
4585         (add_setshow_cmd_full): Declare.
4586         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
4587         returns void.  Use add_setshow_cmd_full.
4588         (add_setshow_cmd_full): New function.
4589         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4590         (add_setshow_boolean_cmd): Likewise.
4591
4592 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4593
4594         * config/vax/tm-vax.h: Protect from multiple inclusion.
4595         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4596         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4597         * config/vax/tm-vaxbsd.h: ...here.  New file.
4598         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4599
4600 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4601
4602         * config/vax/tm-vax.h (BREAKPOINT): Remove.
4603         (BELIEVE_PCC_PROMOTION): Remove.
4604         (AP_REGNUM): Move to...
4605         * config/vax/nm-vax.h: ...here.
4606         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4607         (vax_breakpoint_from_pc): New function.
4608         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4609         and gdbarch_believe_pcc_promotion.
4610
4611 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4612
4613         * Makefile.in (vax_tdep_h): Define.  
4614         (vax-tdep.o): Use $(vax_tdep_h).
4615         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4616         (vax_dump_tdep): New function. 
4617         (_initialize_vax_tdep): Register vax_dump_tdep.
4618         * vax-tdep.h: Include osabi.h.     
4619         (struct gdbarch_tdep): New. 
4620
4621 2002-06-26  Andrew Cagney  <cagney@redhat.com>
4622
4623         * frame.h (deprecated_generic_find_dummy_frame): Rename
4624         generic_find_dummy_frame.
4625         * blockframe.c (generic_find_dummy_frame): Make static.
4626         (deprecated_generic_find_dummy_frame): New function.
4627         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4628         generic_find_dummy_frame with deprecated_find_dummy_frame.
4629         (sh64_nofp_frame_init_saved_regs): Ditto.
4630         (sh_fp_frame_init_saved_regs): Ditto.
4631         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4632         (s390_frame_chain): Ditto.
4633         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4634
4635 2002-06-26  Grace Sainsbury  <graces@redhat.com>
4636
4637         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4638         gdbarch vector are at the top.
4639         (NUM_REGS): Remove.
4640         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4641         (FRAME_ARGS_ADDRESS): Remove.
4642         (FRAME_LOCALS_ADDRESS): Remove.
4643         (FRAME_NUM_ARGS): Remove.
4644         (FRAME_ARGS_SKIP): Remove.  
4645         * m68k-tdep.c (enum): Add eumeration of special register numbers.
4646         (m68k_gdbarch_init): Add gdbarch initializations for macros
4647         undefined in tm-m68k.h
4648
4649 2002-06-26  Grace Sainsbury  <graces@redhat.com>
4650
4651         * monitor.h: Add the function regname to monitor_ops
4652         structure. This way NUM_REGS does not have to be a constant.
4653         * monitor.c (monitor_fetch_register): Added support for regname
4654         function. The function is called if the array regnames is NULL.
4655         (monitor_store_register): Same.
4656         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4657         regnames array.
4658         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4659         cpu32bug_cmds.regname to point to new function.
4660         * abug-rom.c (abug_regname): Same as above.
4661         (init_abug_cmds): Same.
4662         * dbug-rom.c (dbug_regname): Same as above.
4663         (init_dbug_cmds): Same.
4664         * remote-est.c (est_regname): Same. 
4665         (init_est_cmds): Same.
4666         * rom68k-rom.c (rom68k_regname): Same. 
4667         (init_rom68k_cmds): Same.
4668
4669 2002-06-25  Tom Tromey  <tromey@redhat.com>
4670
4671         * breakpoint.c (delete_command): Don't repeat `delete' commands.
4672
4673 2002-06-25  Andrew Cagney  <cagney@redhat.com>
4674
4675         * infrun.c (stop_registers): Change variable's type to ``struct
4676         regcache'''.
4677         (xmalloc_inferior_status): Delete function.
4678         (free_inferior_status): Delete function.
4679         (normal_stop): Use regcache_cpy.
4680         (struct inferior_status): Change type of fields ``stop_registers''
4681         and ``registers'' to ``struct regcache''.
4682         (write_inferior_status_register): Use regcache_write.
4683         (save_inferior_status): Instead of calling
4684         xmalloc_inferior_status, allocate the inf_status buffer directly.
4685         Use regcache_dup_no_passthrough and regcache_dup to save the
4686         buffers.
4687         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4688         Replace the stop_registers regcache instead of overriding it.  Use
4689         regcache_xfree.  Instead of calling free_inferior_status, xfree
4690         the buffer directly.
4691         (discard_inferior_status): Use regcache_xfree.  Instead of calling
4692         free_inferior_status, xfree the buffer directly.
4693         (build_infrun): Use regcache_xmalloc.
4694         (_initialize_infrun): Delete redundant call to build_infrun.
4695
4696         * Makefile.in (infcmd.o): Add $(regcache_h).
4697
4698         * infcmd.c: Include "regcache.h".
4699         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4700         obtain the address of `stop_registers' register buffer.
4701         (print_return_value): Ditto.
4702
4703         * inferior.h (struct regcache): Add opaque declaration.
4704         (stop_registers): Change variable's declared type to ``struct
4705         regcache''.
4706
4707 2002-06-24  Tom Tromey  <tromey@redhat.com>
4708
4709         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4710         * target.c (initialize_targets): Fixed typo in
4711         trust-readonly-sections `show' documentation.
4712
4713         * main.c: Marked all strings with _().
4714
4715 2002-06-24  Don Howard  <dhoward@redhat.com>
4716
4717         * memattr.c (create_mem_region): Treat hi == 0 as a special case
4718         that means max CORE_ADDR+1.
4719         (lookup_mem_region): Ditto.
4720         (mem_info_command): Ditto.
4721
4722 2002-06-24  Grace Sainsbury  <graces@redhat.com>
4723
4724         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4725         (REGISTER_BYTES_OK): Remove.
4726         (REGISTER_BYTES): Remove.
4727         (STORE_STRUCT_RETURN): Remove.
4728         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4729         (STORE_RETURN_VALUE): Remove.
4730         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4731         (FRAME_CHAIN): Remove.
4732         (FRAMELESS_FUNCTION_INVOCATION): Remove.
4733         (FRAME_SAVED_PC): Remove.  
4734         * m68k-tdep.c (m68k_register_bytes_ok):Add.
4735         (m68k_store_struct_return): Add.
4736         (m68k_deprecated_extract_return_value): Add.
4737         (m68k_deprecated_extract_struct_value_address): Add.
4738         (m68k_store_return_value): Add.
4739         (m68k_frame_chain): Add.
4740         (m68k_frameless_function_invocation): Add.
4741         (m68k_frame_saved_pc): Add.
4742         (m68k_gdbarch_init): added set_gdbarch calls for new 
4743         functions and deleted macros.
4744
4745 2002-06-23  Tom Tromey  <tromey@redhat.com>
4746
4747         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4748         (ALLDEPFILES): Likewise.
4749         (udiheaders): Removed.
4750         (udip2soc.o): Likewise.
4751         (udi2go32.o): Likewise.
4752         (udr.o): Likewise.
4753         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4754
4755 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
4756
4757         * infrun.c (_initialize_infrun): Delete unnecessary call to
4758         build_infrun.
4759
4760         * regcache.h: Update comments describing the regcache_cpy family
4761         of functions.
4762         (regcache_save, regcache_restore): Delete declaration.
4763         (regcache_save_no_passthrough): Delete declaration.
4764         (regcache_restore_no_passthrough): Delete declaration.
4765         * regcache.c (regcache_save): Delete function.
4766         (regcache_save_no_passthrough): Delete function.
4767         (regcache_restore): Delete function.
4768         (regcache_restore_no_passthrough): Delete function.
4769
4770 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
4771
4772         * config/m68k/tm-m68k.h: Fix typo.
4773         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4774         (m68k_frame_init_saved_regs): Declare.
4775
4776 2002-06-21  Jim Blandy  <jimb@redhat.com>
4777
4778         Remove some vestiges of Harris 88k support.
4779         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4780         register numbering quirk.
4781         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4782         odd symbols occurring in Harris 88k ELF targets.
4783
4784 2002-06-21  Tom Tromey  <tromey@redhat.com>
4785
4786         * gdb_locale.h: New file.
4787         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4788         (defs_h): Added gdb_locale.h.
4789         * configure, config.in: Rebuilt.
4790         * configure.in (PACKAGE): Define.
4791         * defs.h: Include gdb_locale.h.
4792         * main.c (captured_main): Call setlocale, bindtextdomain,
4793         textdomain.
4794
4795 2002-06-21  Dave Brolley  <brolley@redhat.com>
4796
4797         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4798         * config/frv/frv.mt: New file.
4799         * config/frv/tm-frv.h: New file.
4800         * configure.tgt: Support frv-*-*.
4801         * Makefile.in (frv-tdep.o): New target.
4802         * frv-tdep.c: New file.
4803         * NEWS: Mention frv.
4804
4805 2002-06-21  Dave Brolley  <brolley@redhat.com>
4806
4807         * MAINTAINERS: Add self to "Write After Approval" list.
4808
4809 2002-06-21  Grace Sainsbury  <graces@redhat.com>
4810
4811         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4812         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4813         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4814         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4815         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4816
4817         * m68k-tdep.c: Include arch-utils.h
4818         (m68k_register_raw_size): Add.
4819         (m68k_register_virtual_size): Add.
4820         (m68k_register_virtual_type): Add.
4821         (m68k_register_name): Add.
4822         (m68k_stack_align): Add.
4823         (m68k_register_byte): Add.
4824         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4825         tm-m68k.h.
4826
4827 2002-06-21  Grace Sainsbury  <graces@redhat.com>
4828
4829         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4830         m68k_find_saved_regs.
4831         (m68k_pop_frame): Removed saved_regs structure, and replaced
4832         references to it with frame->saved_regs.
4833         (m68k_gdbarch_init): Added function calls to initialize the
4834         gdbarch structure.
4835         (m68k_fix_call_dummy): Add. 
4836         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4837         (CALL_DUMMY): Remove.
4838         (CALL_DUMMY_LENGTH): Remove.
4839         (CALL_DUMMY_START_OFFSET): Remove.
4840         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4841         (FIX_CALL_DUMMY): Remove.
4842         (PUSH_DUMMY_FRAME): Remove.
4843         (POP_FRAME): Remove.
4844
4845 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4846
4847         * parse.c (parse_fprintf): New function used to avoid calls to
4848         fprintf in bison parser generated debug code.
4849         * parser-defs.h: Declaration of new parse_fprintf function.
4850         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4851         Set YYDEBUG to 1 by default.
4852         Set YYFPRINTF as parse_fprintf.
4853
4854 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
4855
4856         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
4857         encoding anymore.
4858         (pointer_encoding, enum ptr_encoding): New.
4859         (execute_cfa_program): Take care about pointer encoding.        
4860         (dwarf2_build_frame_info): Only call parse_frame_info for 
4861         .debug_frame and .eh_frame.
4862         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4863         fixed augmentation handling, added relative addressing, 
4864         ignore duplicate FDEs. Added comments.
4865         * dwarf2cfi.c: Reindented.
4866         
4867 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
4868
4869         * event-top.c (command_handler): Don't use space_at_cmd_start
4870         unless there is sbrk() on the host. Assign time and space data
4871         to union fields of the appropriate length.
4872
4873 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
4874
4875         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
4876         x86_64_register_name. Return type changed to 'const char *'.
4877         (x86_64_register_name2nr): Rename to x86_64_register_number.
4878         (x86_64_gdbarch_init): Update to reflect the change.
4879         * x86-64-tdep.h: Ditto.
4880         * x86-64-linux-nat.c (x86_64_fxsave_offset)
4881         (supply_fpregset): Ditto.
4882
4883 2002-06-19  Andrew Cagney  <cagney@redhat.com>
4884
4885         * regcache.h: Update copyright.
4886         (struct regcache, struct gdbarch): Add opaque declarations.
4887         (current_regcache): Declare global variable.
4888         (regcache_read, regcache_write): Add gdbarch parameter.
4889         (regcache_save, regcache_save_no_passthrough)
4890         (regcache_restore, regcache_restore_no_passthrough)
4891         (regcache_dup, regcache_dup_no_passthrough)
4892         (regcache_cpy, regcache_cpy_no_passthrough)
4893         (deprecated_grub_regcache_for_registers)
4894         (deprecated_grub_regcache_for_register_valid)
4895         (regcache_valid_p): Add function declarations.
4896         
4897         * regcache.c: Update copyright.
4898         (regcache_descr_handle): New global variable.
4899         (struct regcache_descr): Define.
4900         (init_legacy_regcache_descr, init_regcache_descr): New functions.
4901         (regcache_descr, xfree_regcache_descr): New functions.
4902         (struct regcache): Define.
4903         (regcache_xmalloc, regcache_xfree): New functions.
4904         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4905         (regcache_dup, regcache_dup_no_passthrough): New functions.
4906         (regcache_valid_p, regcache_read_as_address): New functions.
4907         (deprecated_grub_regcache_for_registers): New function.
4908         (deprecated_grub_regcache_for_register_valid): New function.
4909         (current_regcache): New global variable.
4910         (register_buffer): Add regcache parameter.  Update calls.
4911         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
4912         (read_register_gen, write_register_gen): Update register_buffer
4913         call.  Test for legacy_p instead of gdbarch_register_read_p or
4914         gdbarch_register_write_p.
4915         (regcache_collect): Update register_buffer call.
4916         (build_regcache): Rewrite.  Use deprecated grub functions.
4917         (regcache_save, regcache_save_no_passthrough): New functions.
4918         (regcache_restore, regcache_restore_no_passthrough): New
4919         functions.
4920         (_initialize_regcache): Create the regcache_data_handle. Swap
4921         current_regcache global variable.
4922         
4923         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4924         parameter to regcache_read and regcache_write calls.
4925         (sh4_register_read): Ditto.
4926         (sh64_pseudo_register_read): Ditto.
4927         (sh64_register_read): Ditto.
4928         (sh_pseudo_register_write): Ditto.
4929         (sh4_register_write): Ditto.
4930         (sh64_pseudo_register_write): Ditto.
4931         (sh64_register_write): Ditto.
4932
4933         * defs.h (XCALLOC): Define.
4934
4935 2002-06-19  Grace Sainsbury  <graces@redhat.com>
4936
4937         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4938         * m68k-tdep.c (m68k_gdbarch_init): Added.
4939         (m68k_dump_tdep): Added.
4940
4941 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
4942
4943         * ada-lang.c (fill_in_ada_prototype): Update comment.
4944
4945 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
4946
4947         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
4948         MIPS_ABI_LAST.
4949         (mips_abi_string, mips_abi_strings): New.
4950         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4951         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
4952         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
4953         O32 if no ABI is found.
4954         (mips_dump_tdep): Use mips_abi_strings.
4955         (mips_abi_update): New function.
4956         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
4957         ``set mips abi'' and ``show mips abi''.  Check the size of
4958         mips_abi_strings.
4959
4960 2002-06-19  Andrew Cagney  <cagney@redhat.com>
4961
4962         * i386-linux-tdep.c (i386_linux_register_name): Make return type
4963         constant.
4964
4965 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
4966
4967         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
4968         current frame using only the first stack size adjustment. All
4969         subsequent size adjustments are not considered to be part of
4970         the "static" part of the current frame.
4971         Compute the address of the saved registers relative to the
4972         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4973         in use in this frame.
4974
4975 2002-06-18  Don Howard  <dhoward@redhat.com>
4976  
4977         * valops.c (value_ind): Use value_at_lazy() when dereferencing
4978         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
4979         suggesting this solution.
4980
4981 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
4982
4983         * config/romp/xm-rtbsd.h: Delete file.
4984         * config/romp/rtbsd.mh: Delete file.
4985
4986 2002-06-18  Keith Seitz  <keiths@redhat.com>
4987
4988         * breakpoint.c (condition_command): Post breakpoint_modify
4989         when a condition is added to an existing breakpoint.
4990         (commands_command): Likewise for commands.
4991         (set_ignore_count): Likewise for ignore counts.
4992         If no tty, do not simply return, still need to send event
4993         notification.
4994         (ignore_command): Only print a newline if the command came
4995         from a tty.
4996         Don't call breakpoints_changed, since this is now properly
4997         handled by set_ignore_count.
4998
4999 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5000
5001         * MAINTAINERS: Note that cris-elf target can be compiled with
5002         -Werror.
5003         * cris-tdep.c (cris_register_name): Make return type constant.
5004         (cris_breakpoint_from_pc): Ditto.
5005
5006 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5007
5008         * frame.h (struct frame_info): Change type of context to 
5009         'struct context'.
5010
5011 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5012
5013         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5014         pointer.
5015         * gdbarch.h, gdbarch.c: Regenerate.
5016         * config/mips/tm-mips.h (mips_register_name): Update.
5017         * i386-tdep.h (i386_register_name): Update.
5018         * mips-tdep.c (mips_register_name): Update
5019         * alpha-tdep.c (alpha_register_name): Update.
5020         * arch-utils.c (legacy_register_name): Update.
5021         * arch-utils.h (legacy_register_name): Update.
5022         * avr-tdep.c (avr_register_name): Update.
5023         * ia64-tdep.c (ia64_register_name): Update.
5024         * i386-tdep.c (i386_register_name): Update.
5025         * sparc-tdep.c (sparc32_register_name): Update.
5026         (sparc64_register_name): Update.
5027         (sparclite_register_name): Update.
5028         (sparclet_register_name): Update.
5029         * sh-tdep.c (sh_generic_register_name): Update.
5030         (sh_sh_register_name): Update.
5031         (sh_sh3_register_name): Update.
5032         (sh_sh3e_register_name): Update.
5033         (sh_sh_dsp_register_name): Update.
5034         (sh_sh3_dsp_register_name): Update.
5035         (sh_sh4_register_name): Update.
5036         (sh_sh64_register_name): Update.
5037         * s390-tdep.c (s390_register_name): Update.
5038         * rs6000-tdep.c (rs6000_register_name): Update.
5039         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5040         (ns32k_register_name_32382): Update.
5041         * d10v-tdep.c (d10v_ts2_register_name): Update.
5042         (d10v_ts3_register_name): Update.
5043         * xstormy16-tdep.c (xstormy16_register_name): Update.
5044         * vax-tdep.c (vax_register_name): Update.
5045         * v850-tdep.c (v850_register_name): Update.
5046         * m68hc11-tdep.c (m68hc11_register_name): Update.
5047         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5048         (am33_register_name): Update.
5049
5050 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5051
5052         * m68k-tdep.c: Reindented.
5053
5054 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5055
5056         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5057         list of predefined types.
5058
5059 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5060
5061         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5062         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5063         REGISTER_CONVERT_TO_RAW): Remove defines.
5064         (i386_register_virtual_type, i386_register_convertible,
5065         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5066         Remove prototypes.
5067         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5068         macros mentioned above.
5069
5070         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5071         (i386lynx_saved_pc_after_call): Remove prototype.
5072         * i386ly-tdep.c: Include "i386-tdep.h".
5073         (i386lynx_saved_pc_after_call): Make static.  Use
5074         read_memory_nobpt instead of read_memory.  Use
5075         read_memory_unsigned_integer instead of read_memory_integer.
5076         (i386lynx_init_abi): New function.
5077         (i386lynx_coff_osabi_sniffer): New function.
5078         (_initialize_i386bsd_tdep): New function.
5079
5080         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5081         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5082         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5083         (i386_fix_call_dummy): Remove prototype.
5084         * i386-tdep.c (i386_call_dummy_words): New variable.
5085         (i386_gdbarch_init): Adjust for removal of the
5086         macros mentioned above.
5087
5088 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5089
5090         * command.h (add_setshow_auto_boolean_cmd): Replace
5091         add_set_auto_boolean_cmd.
5092         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5093         add_set_auto_boolean_cmd.
5094         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5095         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5096         mask-address'' command.
5097         (show_mask_address): Add cmd parameter.
5098         * remote.c (add_packet_config_cmd): Update.  Change type of
5099         set_func and show_func to cmd_sfunc_ftype.
5100         (_initialize_remote): Update `set remote Z-packet'
5101         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5102         (show_remote_protocol_e_packet_cmd): Ditto.
5103         (show_remote_protocol_E_packet_cmd): Ditto.
5104         (show_remote_protocol_P_packet_cmd): Ditto.
5105         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5106         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5107         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5108         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5109         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5110         (show_remote_protocol_Z_packet_cmd): Ditto.
5111         (show_remote_protocol_binary_download_cmd): Ditto.
5112         (show_remote_cmd): Pass NULL to all of above.
5113
5114 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5115
5116         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5117         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5118         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5119         POP_FRAME): Remove defines.
5120         (i386_push_arguments, i386_store_struct_return,
5121         i386_extract_return_value, i386_store_return_value,
5122         i386_extract_struct_value_address, i386_push_dummy_frame,
5123         i386_pop_frame): Renove prototypes.
5124         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5125         macros mentioned above.
5126
5127 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5128
5129         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5130         add_set_boolean_cmd.
5131         (add_setshow_cmd): New function.
5132         * command.h (add_setshow_boolean_cmd): Replace
5133         add_set_boolean_cmd.
5134         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5135         and ``set rdiromatzero''.
5136         * maint.c (_initialize_maint_cmds): Update commented out code.
5137         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5138         * target.c (initialize_targets): Update `set
5139         trust-readonly-sections'.
5140         * remote.c (_initialize_remote): Update `set remotebreak'.
5141
5142 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5143
5144         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5145         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5146         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5147         fit into multi-arch framework.
5148         (i386_breakpoint_from_pc): New function.
5149         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5150         above.
5151
5152         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5153         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5154         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5155         (i386_frameless_function_invocation, i386_frame_num_args,
5156         i386_frame_init_saved_regs): Remove prototypes.
5157         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5158         macros mentioned above.
5159
5160 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5161
5162         * cli/cli-decode.c (set_cmd_cfunc): Update.
5163         (set_cmd_sfunc): Update.
5164         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5165         (set_cmd_sfunc, set_cmd_cfunc): Update.
5166         * cli/cli-decode.h: Update.
5167
5168 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5169
5170         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5171         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5172
5173 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5174
5175         * defs.h (auto_boolean): Declare enum.
5176         * command.h (cmd_auto_boolean): Delete enum.
5177         * mips-tdep.c (mask_address_var): Update.
5178         (mips_mask_address_p): Update.
5179         (show_mask_address): Update.
5180         * remote.c (struct packet_config): Update.
5181         (update_packet_config): Update.
5182         (show_packet_config_cmd): Update.
5183         (packet_ok): Update.
5184         (add_packet_config_cmd): Update.
5185         (_initialize_remote): 
5186         * command.h: Update.
5187         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5188         (do_setshow_command): Update.
5189         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5190         * cli/cli-decode.h: Update.
5191
5192 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5193
5194         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5195         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5196         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5197         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5198         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5199         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5200
5201         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5202         list of DJGPP COFF targets.
5203
5204         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5205         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5206         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5207         (FP0_REGNUM): Remove define.
5208         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5209         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5210         (i386_register_virtual_size): Remove protoype.
5211         * i386-tdep.c (i386_register_virtual_size): Removed.
5212         (i386_extract_return_value, i386_store_return_value): Use
5213         FP0_REGNUM instead of NUM_FREGS to determine whether the
5214         floating-point registers are available.
5215         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5216         Adjust for removal of macros mentioned above.
5217
5218 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5219
5220         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5221         comments.
5222         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5223         Remove prototypes.
5224         (supply_gregset, fill_gregset): Remove use of register keyword and
5225         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5226         NUM_REGS and NUM_FREGS.
5227         (FPREGSET_FSAVE_OFFSET): Remove.
5228         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5229         NUM_FREGS to determine whether the floating-point registers are
5230         available.
5231
5232         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5233         gnu_store_registers): Replace usage of NUM_GREGS with
5234         I386_NUM_GREGS.
5235
5236         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5237         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5238         usage of NUM_GREGS with I386_NUM_GREGS.
5239
5240         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5241
5242         * i386bsd-nat.c: Include "i386-tdep.h".
5243         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5244         I386_NUM_GREGS.
5245
5246         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5247         and associated comment.  They no longer make any sense, since we
5248         don't use this file anymore on Linux.
5249
5250         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5251         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5252         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5253         elements in these arrays.
5254         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5255         MAX_NUM_REGS.
5256
5257 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5258
5259         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5260         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5261
5262 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5263
5264         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5265         EXTRACT_RETURN_VALUE.
5266         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5267         EXTRACT_STRUCT_VALUE_ADDRESS.
5268         * gdbarch.h, gdbarch.c: Regenerate.
5269         
5270         * values.c (value_being_returned): Handle
5271         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5272         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5273
5274         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5275         * arm-tdep.c (arm_gdbarch_init): Update.
5276         * avr-tdep.c (avr_gdbarch_init): Update.
5277         * cris-tdep.c (cris_gdbarch_init): Update.
5278         * d10v-tdep.c (d10v_gdbarch_init): Update.
5279         * ia64-tdep.c (ia64_gdbarch_init): Update.
5280         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5281         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5282         * s390-tdep.c (s390_gdbarch_init): Update.
5283         * sh-tdep.c (sh_gdbarch_init): Update.
5284         * s390-tdep.c (s390_gdbarch_init): Update.
5285         * sparc-tdep.c (sparc_gdbarch_init): Update.
5286         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5287         * v850-tdep.c (v850_gdbarch_init): Update.
5288         * vax-tdep.c (vax_gdbarch_init): Update.
5289         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5290         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5291
5292         * config/arc/tm-arc.h: Update.
5293         * config/d30v/tm-d30v.h: Update.
5294         * config/fr30/tm-fr30.h: Update.
5295         * config/h8300/tm-h8300.h: Update.
5296         * config/h8500/tm-h8500.h: Update.
5297         * config/i386/tm-i386.h: Update.
5298         * config/i386/tm-ptx.h: Update.
5299         * config/i386/tm-symmetry.h: Update.
5300         * config/i960/tm-i960.h: Update.
5301         * config/m32r/tm-m32r.h: Update.
5302         * config/m68k/tm-delta68.h: Update.
5303         * config/m68k/tm-linux.h: Update.
5304         * config/m68k/tm-m68k.h: Update.
5305         * config/m88k/tm-m88k.h: Update.
5306         * config/mcore/tm-mcore.h: Update.
5307         * config/mips/tm-mips.h: Update.
5308         * config/mn10200/tm-mn10200.h: Update.
5309         * config/pa/tm-hppa.h: Update.
5310         * config/pa/tm-hppa64.h: Update.
5311         * config/sparc/tm-sp64.h: Update.
5312         * config/sparc/tm-sparc.h: Update.
5313         * config/sparc/tm-sparclet.h: Update.
5314         * config/z8k/tm-z8k.h: Update.
5315
5316 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5317
5318         * Makefile.in (i386_linux_tdep_h): Define.
5319         (i386_tdep_h, i387_tdep_h): Define.
5320         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5321         $(i386_tdep_h) and $(i387_tdep_h).
5322         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5323
5324 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5325
5326         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5327         Already covered by the default.
5328
5329         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5330         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5331         (i386_gdbarch_init): Initialize long_double_format and long_double
5332         bit.
5333
5334         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5335         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5336         Move these to ...
5337         * config/i386/i386sol2.mh: ... here.
5338         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5339         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5340         (SIGCONTEXT_PC_OFFSET): Remove define.
5341         (IN_SIGTRAMP): Remove define.
5342         * i386-sol2-tdep.c: New file.
5343         
5344         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5345         * config/i386/tm-i386nw.h: Removed.
5346
5347         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5348         USE_STRUCT_CONVENTION): Remove defines.
5349         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5350         (get_longjmp_target): Remove prototype.
5351         (IN_SIGTRAMP): Remove define.
5352         (i386bsd_in_sigtramp): Remove prototype.
5353         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5354         function.  Update comment accordingly
5355         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5356         (FRAME_SAVED_PC): Remove define.
5357         (i386bsd_frame_saved_pc): Remove prototype.
5358         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5359         GET_LONGJMP_TARGET): Remove defines.
5360         (get_longjmp_target): Remove prototype.
5361         (IN_SIGTRAMP): Remove define.
5362         (i386bsd_in_sigtramp): Remove prototype.
5363         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5364         function.  Update comment accordingly
5365         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5366         (FRAME_SAVED_PC): Remove define.
5367         (i386bsd_frame_saved_pc): Remove prototype.
5368         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5369         Remove prototype.
5370         (USE_STRUCT_CONVENTION): Remove prototype.
5371         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5372         declaration.
5373         (_initialize_i386bsd_nat): Revise logic to determine some
5374         constants at compile time when compiling a native GDB.  Warn if
5375         things don't match up with what we expect.
5376         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5377         Remove variables.
5378         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5379         to use date stored in `struct gdbarch_tdep'.
5380         (i386bsd_sigcontext_offset): Remove varaible.
5381         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5382         stored in `struct gdbarch_tdep'.
5383         (i386bsd_frame_saved_pc): Make static.
5384         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5385         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5386         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5387         i386fbsd4_sc_pc_offset): New variables.
5388         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5389         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5390         functions.
5391         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5392         functions.
5393         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5394         Modify the value of i386fbsd_sigtramp_start and
5395         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5396         i386fbsd_sigtramp_end.
5397         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5398         function.
5399
5400         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5401         define to i386-linux-tdep.h.
5402         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5403         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5404         defines.
5405         (i386_linux_register_name, i386_linux_register_byte,
5406         i386_linux_register_raw_size): Remove prototypes.
5407         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5408         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5409         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5410         TARGET_WRITE_PC): Remove defines.
5411         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5412         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5413         i386_linux_write_pc): Remove prototypes.
5414         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5415         (get_longjmp_target): Remove prototype.
5416         * i386-linux-tdep.h: New file.
5417         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5418         * i386-linux-tdep.c: Include "i386-tdep.h" and
5419         "i386-linux-tdep.h".
5420         (i386_linux_register_name, i386_linux_register_byte,
5421         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5422         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5423         Make static.
5424         (i386_linux_init_abi): New function.
5425         (_initialize_i386_linux_tdep): New function.
5426
5427         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5428         (i386_saved_pc_after_call): Remove prototype.
5429         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5430         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5431         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5432         (i386_register_name, i386_stab_reg_to_regnum,
5433         i386_dwarf_reg_to_regnum): Remove prototypes.
5434         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5435         SIZEOF_SSE_REGS): Remove defines.
5436         (REGISTER_BYTES): Remove define.
5437         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5438         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5439         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5440         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5441         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5442         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5443         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5444         (get_longjmp_target): Remove prototype.
5445         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5446         (sigtramp_saved_pc): Remove define.
5447         (i386v4_sigtramp_saved_pc): Remove prototype.
5448         * config/i386/tm-go32.h (FRAME_CHAIN,
5449         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5450         (i386go32_frame_saved_pc): Remove prototype.
5451         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5452         (get_longjmp_target): Remove prototype.
5453         * i386-tdep.h: Include "osabi.h".
5454         (enum i386_abi): Removed.
5455         (enum struct_return): New enum.
5456         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5457         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5458         sc_pc_offset members.
5459         (i386_gdbarch_register_os_abi): Remove prototype.
5460         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5461         I386_SSE_NUM_REGS): New defines.
5462         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5463         I386_SSE_SIZEOF_REGS): New defines.
5464         (i386_register_name, i386_register_byte, i386_register_raw_size):
5465         New prototypes.
5466         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5467         (i386bsd_sigtramp_saved_pc): New prototype.
5468         * i386-tdep.c: Don't include "elf-bfd.h".
5469         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5470         i386_frame_chain, i386_saved_pc_after_call): Make static.
5471         (i386_frame_saved_pc): Rewrite to call architecture dependent
5472         function to deal with signal handlers.  Make static.
5473         (i386go32_frame_saved_pc): Removed.
5474         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5475         Removed.
5476         (i386_get_longjmp_target): New function.
5477         (default_struct_convention, pcc_struct_convention,
5478         reg_struct_convention, valid_conventions, struct_convention): New
5479         variables.
5480         (i386_use_struct_convention): New function.
5481         (i386v4_sigtramp_saved_pc): Renamed to
5482         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5483         (i386_pc_in_sigtramp): New function.
5484         (i386_abi_names): Removed.
5485         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5486         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5487         Removed.
5488         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5489         i386_gdbarch_register_os_abi): Removed.
5490         (struct i386_abi_handler): Removed.
5491         (i386_abi_handler_list): Removed.
5492         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5493         functions.
5494         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5495         i386_nw_init_abi): New functions.
5496         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5497         Use set_gdbarch_xxx() calls instead of relying on macros for a
5498         number of calls.
5499         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5500         (_initialize_i386_tdep): Add new 'struct-convcention' command.
5501         Register the various architecture variants defined in this file.
5502
5503 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5504
5505         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5506         (struct main_type): Remove arg_types member.  Update comments for
5507         struct field.
5508         (TYPE_ARG_TYPES): Remove.
5509         (TYPE_FN_FIELD_ARGS): Update.
5510         (smash_to_method_type): Update prototype.
5511
5512         * c-typeprint.c (cp_type_print_method_args): Take method type
5513         instead of argument list.  Use new argument layout.  Simplify.
5514         (c_type_print_args): Use new argument layout.  Simplify.
5515         (c_type_print_base): Update call to cp_type_print_method_args.
5516         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5517         argument; use die->type instead.  Update call to
5518         smash_to_method_type.
5519         (read_structure_scope): Update call to dwarf2_add_member_fn.
5520         * gdbtypes.c (allocate_stub_method): Update comment.
5521         (smash_to_method_type): Take new NARGS and VARARGS arguments.
5522         Use new argument layout.
5523         (check_stub_method): Use new argument layout.  Don't count
5524         void as an argument.
5525         (print_arg_types): Update comments.  Use new argument layout.
5526         (recursive_dump_type): Don't print arg_types member.
5527         * hpread.c (hpread_read_struct_type): Use new argument layout.
5528         (fixup_class_method_type): Likewise.
5529         (hpread_type_lookup): Likewise.
5530         * stabsread.c (read_type): Update calls to read_args and
5531         smash_to_method_type.
5532         (read_args): Use new argument layout.  Simplify.
5533         * valops.c (typecmp): Use new argument layout.  Update parameters
5534         and comments.  Simplify.
5535         (hand_function_call): Use new argument layout.
5536         (search_struct_method): Update call to typecmp.
5537         (find_overload_match): Use new argument layout.
5538
5539 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5540
5541         * NEWS: Mention multithreaded debug support for gdbserver.
5542
5543 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5544
5545         * MAINTAINERS: Mention NEWS.
5546
5547 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5548
5549         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5550         (struct mips_objfile_private, compare_pdr_entries): New.
5551         (non_heuristic_proc_desc): Read the ".pdr" section if it
5552         is present.
5553
5554 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5555
5556         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5557         (arm_debug): New static variable.
5558         (_initialize_arm_tdep): Add ``set debug arm'' command.
5559
5560 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5561
5562         * Makefile.in (sim_arm_h): Define.
5563         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5564         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5565         (arm_register_sim_regno): New function, map an internal REGNUM
5566         onto a simulator register number.
5567         (arm_gdbarch_init): Set register_sim_regno.
5568
5569 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
5570
5571         * MAINTAINERS: Add self.
5572
5573 2002-06-11  Jim Blandy  <jimb@redhat.com>
5574
5575         * source.c (source_info): Mention whether the symtab has
5576         information about preprocessor macros.
5577
5578         Call the command `info macro', not `show macro'.
5579         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5580         Fix error message.
5581         (_initialize_macrocmd): Register `info_macro_command' in
5582         `infolist', not `showlist'.
5583
5584 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
5585
5586         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5587         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5588         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5589         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5590         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
5591         unconditionally.
5592         (set_mipsfpu_single_command, set_mipsfpu_double_command)
5593         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5594         (_initialize_mips_tdep): Remove dead code.
5595         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5596         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5597         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5598         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5599         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5600         MIPS_LAST_FP_ARG_REGNUM): Remove.
5601
5602 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5603
5604         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5605         (unwind_tmp_obstack_free, parse_frame_info)
5606         (update_context, cfi_read_fp, cfi_write_fp)
5607         (cfi_frame_chain, cfi_init_extra_frame_info)
5608         (cfi_virtual_frame_pointer): Use the above function.
5609         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5610
5611 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
5612
5613         * v850-tdep.c (v850_type_is_scalar): New function.
5614         (v850_use_struct_convention): Match current gcc implementation
5615         as close as possible.
5616         (v850_push_arguments): Fix stack_offset handling.  Don't write
5617         struct_addr into register.  This is done by v850_store_struct_return.
5618         (v850_extract_return_value): Care for structs.
5619         (v850_store_return_value): Ditto.
5620         (v850_store_struct_return): Actually write address.
5621
5622 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5623
5624         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5625         without debug information too.
5626
5627 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5628
5629         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5630         Make multi-arch pure.
5631         * gdbarch.h, gdbarch.c: Re-generate.
5632         * arm-tdep.c (arm_print_float_info): Update.
5633         * arch-utils.h (default_print_float_info): Update.
5634         * arch-utils.c (default_print_float_info): Update.
5635         * infcmd.c (float_info): Update call.
5636
5637 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5638
5639         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5640         the front of the initialize list.
5641
5642 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5643
5644         * infrun.c (struct inferior_status): Replace fields
5645         selected_frame_address and selected_level with field
5646         selected_frame_id.
5647         (save_inferior_status): Update.  Use get_frame_id.
5648         (struct restore_selected_frame_args): Delete.
5649         (restore_selected_frame): Update.  Use frame_find_by_id.
5650         (restore_inferior_status): Update.
5651
5652         * breakpoint.h (struct breakpoint): Change type of
5653         watchpoint_frame to frame_id.
5654         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
5655         call to get_current_frame.
5656         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
5657         get_current_frame.
5658         (watchpoint_check): Use frame_find_by_id.
5659
5660         * frame.h (record_selected_frame): Delete declaration.
5661         * stack.c (record_selected_frame): Delete function.
5662         
5663         * frame.h (struct frame_id): Define.
5664         (get_frame_id): Declare.
5665         (frame_find_by_id): Declare.
5666         * frame.c (frame_find_by_id): New function.
5667         (get_frame_id): New function.
5668
5669 2002-06-10  Andrey Volkov <avolkov@transas.com>
5670
5671         * ser-e7kpc.c: Fix duplicated define and call of 
5672         _initialize_ser_e7000pc
5673             
5674 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
5675
5676         * signals/signals.c (target_signal_from_host): Fix #ifdef
5677         SIGRTMIN case.
5678         (do_target_signal_to_host): Likewise.
5679
5680 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
5681
5682         * mips-tdep.c (mips_find_abi_section): New function.
5683         (mips_gdbarch_init): Call it.
5684
5685 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5686
5687         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5688         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
5689         after Andrew's 2002-06-08 gdbarch change.
5690
5691 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5692
5693         * i386-linux-nat.c (suppy_gregset): Don't supply
5694         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5695         register cache.
5696         (fill_gregset): Don't fetch it under the same circumstances.
5697
5698 2002-06-09  Andrew Cagney  <cagney@redhat.com>
5699
5700         * Makefile.in (callback_h): Define.
5701         (remote_sim_h): Update path to remote-sim.h.
5702         (remote-rdp.o): Add $(callback_h).
5703         (remote-sim.o): Use $(callback_h).
5704         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5705         * remote-rdp.c: Include "gdb/callback.h".
5706
5707 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
5708
5709         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5710         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5711
5712 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5713
5714         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5715         * rdi-share/serpardr.c: Ditto.
5716         * rdi-share/unixcomm.c: Ditto.
5717         * rdi-share/serdrv.c: Ditto.
5718         * rdi-share/hostchan.h: Ditto.
5719         * rdi-share/hostchan.c: Ditto.
5720         * rdi-share/host.h: Ditto.
5721         * rdi-share/devsw.c: Ditto.
5722
5723         * objfiles.h: Change type of obj_private to void pointer.
5724         * pa64solib.c: Update copyright.  Don't include "assert.h", use
5725         strcmp instead of STREQ, use LONGEST, do not use PTR
5726         * somsolib.c: Ditto.
5727
5728         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5729         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5730         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5731
5732 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5733
5734         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5735         (default_get_saved_register): Delete function.
5736         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5737         generic_unwind_get_saved_register.
5738         * gdbarch.h, gdbarch.c: Re-generate.
5739         
5740 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5741
5742         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5743         generic_func_frame_chain_valid.
5744         * gdbarch.h, gdbarch.c: Re-generate.
5745         * blockframe.c (generic_func_frame_chain_valid): Only check
5746         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
5747         passing FP to PC_IN_CALL_DUMMY.
5748         Fix PR gdb/360.
5749
5750 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
5751
5752         * gdbarch.sh (struct gdbarch_data): Add field init_p.
5753         (register_gdbarch_data): Initialize init_p.
5754         (gdbarch_data): Initialize data pointer using the init function.
5755         (init_gdbarch_data): Delete function.
5756         (gdbarch_update_p): Update.
5757         (initialize_non_multiarch): Update.
5758         (struct gdbarch): Add field initialized_p.
5759         * gdbarch.h, gdbarch.c: Re-generate.
5760
5761 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
5762
5763         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5764         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5765         better do the things actually here.
5766         * x86-64-tdep.c (x86_64_register_name2nr): New.
5767         (x86_64_register_name): Renamed to x86_64_register_nr2name.
5768         (x86_64_gdbarch_init): Respect the above change.
5769         * x86-64-tdep.h (x86_64_register_name2nr)
5770         (x86_64_register_nr2name): Add prototypes.
5771         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5772
5773 2002-06-06  Michael Snyder  <msnyder@redhat.com>
5774
5775         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5776         Delete extra braces and re-indent.
5777         (d10v_store_return_value): Char return values
5778         must be shifted over by one byte in R0.
5779         (d10v_extract_return_value): Delete extra braces, re-indent.
5780
5781 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
5782
5783         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5784         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5785         (d10v_integer_to_address): Rewrite.
5786         (d10v_frame_init_saved_regs): When reading fp and sp registers use
5787         the d10v specific functions which take care of converting to the
5788         correct space.
5789
5790 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
5791
5792         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5793         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5794
5795 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
5796
5797         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5798         includes.
5799         * config/tm-linux.h: Ditto.
5800         * config/alpha/tm-alphalinux.h: Ditto.
5801         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5802         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5803         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5804         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5805         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5806         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5807         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5808         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5809         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5810         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5811         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5812         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5813         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5814         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5815         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5816         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5817         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5818         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5819         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5820         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5821         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5822         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5823         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5824         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5825         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5826         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5827         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5828         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5829         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5830         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5831         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5832         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5833         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5834         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5835         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5836         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5837         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5838
5839 2002-05-04  Aidan Skinner <aidan@velvet.net>
5840
5841         * ada-exp.tab.c: New file
5842         * ada-exp.y: New file
5843         * ada-lang.c: New file
5844         * ada-lang.h: New file
5845         * ada-lex.c: New file
5846         * ada-lex.l: New file
5847         * ada-tasks.c: New file
5848         * ada-typeprint.c: New file
5849         * ada-valprint.c: New file
5850         
5851 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
5852
5853         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5854         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5855
5856 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
5857
5858         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5859         insetead of ppc-linux-tdep.o.
5860         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5861         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5862
5863 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
5864
5865         2002-05-07 Christian Groessler <chris@groessler.org>
5866         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5867         bit register contents for little endian hosts.
5868
5869 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5870
5871         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5872         any maintainer.
5873
5874 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5875
5876         * gdbarch.h: Regenerate.
5877
5878 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5879
5880         * MAINTAINERS: Add everyone to write-after-approval list.
5881
5882 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
5883
5884         * stack.c (frame_info): Use frame_register_unwind instead of
5885         saved_regs.  Mention when the SP is on the stack or in a register.
5886
5887         * frame.h (frame_register_unwind_ftype): Define.  Document.
5888         (struct frame_info): Add field register_unwind and
5889         register_unwind_cache.
5890         (frame_register_unwind): Declare.
5891         (generic_unwind_get_saved_register): Declare.
5892
5893         * frame.c (frame_register_unwind): New function.
5894         (generic_unwind_get_saved_register): New function.
5895
5896         * blockframe.c (generic_call_dummy_register_unwind): New function.
5897         (frame_saved_regs_register_unwind): New function.
5898         (set_unwind_by_pc): New function.
5899         (create_new_frame): New function.
5900         (get_prev_frame): New function.
5901
5902 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
5903
5904         * a29k-share/: Delete directory.
5905         * remote-vx29k.c: Delete file.
5906
5907 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5908
5909         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5910         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5911
5912 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5913
5914         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5915         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5916         (sparc64nbsd-nat.o)
5917         (sparcnbsd-nat.o)
5918         (sparcnbsd-tdep.o): New dependency lists.
5919         * NEWS: Note new UltraSPARC NetBSD native configuration.
5920         * configure.host (sparc64-*-netbsd*): New host.
5921         * configure.tgt (sparc-*-netbsdelf*)
5922         (sparc-*-netbsd*): Set gdb_target to nbsd.
5923         (sparc64-*-netbsd*): New target.
5924         * sparc64nbsd-nat.c: New file.
5925         * sparcnbsd-nat.c: New file.
5926         * sparcnbsd-tdep.c: New file.
5927         * sparcnbsd-tdep.h: New file.
5928         * config/sparc/nbsd.mt: New file.
5929         * config/sparc/nbsd64.mh: New file.
5930         * config/sparc/nbsd64.mt: New file.
5931         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5932         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
5933         (HOST_IPC): Remove.
5934         * config/sparc/nbsdaout.mt: Remove.
5935         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5936         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
5937         (HOST_IPC): Remove.
5938         * config/sparc/nbsdelf.mt: Remove.
5939         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
5940         sparc-nat.c compatiblity defines.
5941         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
5942         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5943         * config/sparc/tm-nbsd64.h: New file.
5944         * config/sparc/tm-nbsdaout.h: Remove.
5945         * config/sparc/xm-nbsd.h: Remove.
5946
5947 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
5948
5949         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5950         * sparc-tdep.c: Include osabi.h.
5951         (gdbarch_tdep): Add osabi member.
5952         (_initialize_sparc_tdep): Use gdbarch_register.
5953         (sparc_gdbarch_init): Use generic OS ABI framework.
5954         (sparc_dump_tdep): New function.
5955
5956 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
5957
5958         * corefile.c (do_captured_read_memory_integer): Return non-zero
5959         result.
5960         (safe_read_memory_integer): Copy result of memory read when
5961         status is non-zero.  Also, add comments.
5962
5963 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
5964
5965         * Makefile.in (ppc_tdep_h): Define.
5966         (ppc-linux-nat.o)
5967         (ppc-linux-tdep.o)
5968         (rs6000-tdep.o): Use $(ppc_tdep_h).
5969         (ppc-sysv-tdep.o)
5970         (ppcnbsd-nat.o)
5971         (ppcnbsd-tdep.o): New dependency lists.
5972         * ppc-tdep.h: Use generic OS ABI framework.
5973         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5974         (ppc_linux_init_abi): New functions.
5975         (ppc_sysv_abi_broken_use_struct_convention)
5976         (ppc_sysv_abi_use_struct_convention)
5977         (ppc_sysv_abi_push_arguments): Move to...
5978         * ppc-sysv-tdep.c: ...here.
5979         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5980         * rs6000-tdep.c (process_note_abi_tag_sections)
5981         (get_elfosabi): Remove.
5982         (rs6000_gdbarch_init): Use generic OS ABI framework.
5983         (rs6000_dump_tdep): New function.
5984         (_initialize_rs6000_tdep): Use gdbarch_register.
5985         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5986         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5987         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5988         of ppc-linux-tdep.o.
5989         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5990         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5991         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5992         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5993         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5994         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5995
5996 2002-05-29  Jim Blandy  <jimb@redhat.com>
5997
5998         * macroscope.c (default_macro_scope): Put `void' in empty argument
5999         list.
6000
6001 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6002
6003         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6004         * arch-utils.c: Include "sim-regno.h".
6005         * gdbarch.sh: Don't include "sim-regno.h".
6006         * gdbarch.h, gdbarch.c: Regenerate.
6007         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6008         here.
6009         * arch-utils.h (legacy_register_sim_regno): To here.
6010         * remote-sim.c (legacy_register_sim_regno): Move function from
6011         here.
6012         * arch-utils.c (legacy_register_sim_regno): To here.
6013
6014 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6015
6016         * sim-regno.h: New file.
6017         * Makefile.in (sim_regno_h): Define.
6018         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6019         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6020         (legacy_register_sim_regno): New function.
6021         (one2one_register_sim_regno): New function.
6022         (gdbsim_fetch_register): Rewrite.
6023         (gdbsim_store_register): Only store a register when
6024         REGISTER_SIM_REGNO is valid.
6025         * d10v-tdep.c: Include "sim-regno.h".
6026         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6027         (d10v_ts3_register_sim_regno): Ditto.
6028         * gdbarch.sh: Include "sim-regno.h".
6029         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6030         * gdbarch.h, gdbarch.c: Regenerate.
6031         * arch-utils.h (default_register_sim_regno): Delete declaration.
6032         * arch-utils.c (default_register_sim_regno): Delete function.
6033
6034 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6035
6036         * ppcnbsd-nat.c: Rewrite.
6037         * ppcnbsd-tdep.c: New file.
6038         * ppcnbsd-tdep.h: New file.
6039         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6040         solib.o, and solib-svr4.o.
6041         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6042         nbsd-tdep.o, and corelow.o.
6043
6044 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6045
6046         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6047         `tr' and `sed'.  Mention that `broken' targets are not expected to
6048         build.
6049
6050 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6051
6052         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6053         Let PC point right after the prologue before looking up symbols.
6054         
6055 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6056
6057         * i386-tdep.c (i386_register_virtual_type): Return 
6058         builtin_type_vec128i for SSE registers.
6059
6060         * gdbtypes.h (builtin_type_vec128i): Declare.
6061
6062         * gdbtypes.c (build_builtin_type_vec128i): New function.
6063         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6064         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6065         (build_gdbtypes): Initialize new builtin vector types.
6066         (_initialize_gdbtypes): Register new vector types with gdbarch.
6067
6068 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6069
6070         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6071         since it has been multi-arch'd.
6072         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6073         Move Alpha and VAX multi-arch news entries to same section
6074         as other multi-arch news.
6075
6076 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6077
6078         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6079         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6080         static.  Rename some register numbers to put them in ns32k-tdep
6081         private namespace.
6082         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6083         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6084         functions.
6085         (_initialize_ns32k_tdep): Use gdbarch_register.
6086         * ns32k-tdep.h: New file.
6087         * ns32knbsd-tdep.c: New file.
6088         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6089         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6090         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6091         REGISTER_BYTES, REGISTER_BYTE): Remove.
6092         * config/ns32k/tm-ns32k.h: New file.
6093         * config/ns32k/tm-umax.h: Remove.
6094
6095 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6096
6097         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6098         ns32k_store_struct_return, ns32k_extract_return_value,
6099         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6100         functions.
6101         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6102         ns32k_saved_pc_after_call.
6103         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6104         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6105         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6106         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6107         ns32k_extract_struct_value_address.
6108
6109 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6110
6111         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6112         ns32k_fix_call_dummy): New.
6113         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6114         ns32k_call_dummy_words.
6115         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6116         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6117         CALL_DUMMY_NARGS): Remove.
6118         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6119
6120 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6121
6122         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6123         ns32k_frame_saved_pc, ns32k_frame_args_address,
6124         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6125         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6126         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6127         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6128         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6129         (BREAKPOINT): Remove..
6130         (FRAME_CHAIN): Define as ns32k_frame_chain.
6131         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6132         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6133         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6134         (FRAME_FIND_SAVED_REGS): Remove.
6135         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6136         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6137         (POP_FRAME): Define as ns32k_pop_frame.
6138
6139 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6140
6141         * ns32k-tdep.c (ns32k_register_byte_32082,
6142         ns32k_register_byte_32382, ns32k_register_raw_size,
6143         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6144         functions.
6145         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6146         ns32k_register_byte_32382.
6147         * config/ns32k/tm-umax.h: Update copyright years.
6148         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6149         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6150         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6151         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6152         (ns32k_get_enter_addr): Fix prototype.
6153
6154 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6155
6156         * ns32k-tdep.c: Update copyright years.
6157         (ns32k_register_name_32082): New function.
6158         (ns32k_register_name_32382): Ditto.
6159         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6160         (REGISTER_NAME): Define as ns32k_register_name_32382.
6161         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6162         (REGISTER_NAME): Define as ns32k_register_name_32082.
6163
6164 2002-05-24  Jim Blandy  <jimb@redhat.com>
6165
6166         * dwarf2read.c (free_line_header): Use xfree, not free.
6167
6168 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6169
6170         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6171         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6172
6173 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6174
6175         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6176
6177 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6178
6179         From Ross Alexander at NEC Europe:
6180         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6181
6182 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6183
6184         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6185         for input, rather than parse_and_eval_address.  
6186
6187 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6188
6189         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6190         * Makefile.in (sim_d10v_h): Update definition.
6191
6192 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6193
6194         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6195         change `2002-05-22 Michael Snyder' below.
6196         (d10v_push_arguments): Ditto.
6197         (d10v_extract_return_value): Ditto.
6198
6199 2002-05-23  Jim Blandy  <jimb@redhat.com>
6200
6201         * macrotab.c (check_for_redefinition): Don't complain if the new
6202         definition is the same as the previous one.  Take more arguments
6203         to allow the comparison.
6204         (macro_define_object, macro_define_function): Pass more arguments
6205         to check_for_redefinition.
6206
6207 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6208
6209         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6210         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6211         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6212         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6213         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6214         Add a temp variable to save a call (and a memory read).
6215         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6216         if possible (so that PC_IN_CALL_DUMMY will work).
6217
6218 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6219
6220         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6221
6222 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6223
6224         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6225         fde->cie_ptr.
6226         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6227         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6228         so that frames of shared libraries are mapped correctly.
6229         (execute_stack_op): Change type of 'result' from ULONGEST to
6230         CORE_ADDR.
6231         
6232 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6233
6234         * config/alpha/tm-nbsd.h: Include solib.h.
6235
6236 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6237
6238         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6239         assumptions about the host's byte order.
6240
6241 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6242
6243         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6244         to dependency list.
6245         * alphanbsd-tdep.c: Include solib-svr4.h.
6246         * shnbsd-tdep.c: Ditto.
6247
6248 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6249
6250         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6251         nbsd-tdep.h to dependency list.
6252         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6253         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6254         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6255         nbsdaout.mh and nbsdelf.mh consistently.
6256         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6257         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6258         nbsdaout.mt and nbsdelf.mh consistently.
6259         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6260         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6261         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6262         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6263         a.out shared library stuff from here...
6264         * config/nm-nbsdaout.h: ...to here.
6265         * config/tm-nbsd.h: Remove.
6266         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6267         * config/arm/nbsd.mh: Remove.
6268         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6269         nbsd-tdep.o.
6270         * config/arm/nbsdaout.mh: New file. 
6271         * config/arm/nbsdelf.mh: New file.
6272         * config/arm/nm-nbsdaout.h: New file.
6273         * config/i386/nbsd.mh: Remove.
6274         * config/i386/nbsd.mt: Remove.
6275         * config/i386/nbsdaout.mh: New file.
6276         * config/i386/nbsdaout.mt: New file.
6277         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6278         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6279         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6280         i386_register_u_addr): Remove.
6281         * config/i386/nm-nbsdaout.h: New file.
6282         * config/i386/nm-nbsdelf.h: Remove.
6283         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6284         (USE_STRUCT_CONVENTION): Remove.
6285         * config/i386/tm-nbsdaout.h: New file.
6286         * config/i386/tm-nbsdelf.h: Remove.
6287         * config/m68k/nbsd.mh: Remove.
6288         * config/m68k/nbsd.mt: Remove.
6289         * config/m68k/nbsdaout.mh: New file.
6290         * config/m68k/nbsdaout.mt: New file. 
6291         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6292         * config/m68k/nm-nbsdaout.h: New file.
6293         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6294         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6295         * config/ns32k/nbsd.mh: Remove.
6296         * config/ns32k/nbsd.mt: Remove. 
6297         * config/ns32k/nbsdaout.mh: New file.
6298         * config/ns32k/nbsdaout.mt: New file.
6299         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6300         * config/ns32k/nm-nbsdaout.h: New file.
6301         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6302         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6303         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6304         (SVR4_SHARED_LIBS): Remove.
6305         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6306         * config/sparc/nbsd.mh: Remove.
6307         * config/sparc/nbsd.mt: Remove.
6308         * config/sparc/nbsdaout.mh: New file.
6309         * config/sparc/nbsdaout.mt: New file.
6310         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6311         * config/sparc/nbsdelf.mt: New file.
6312         * config/sparc/nm-nbsdaout.h: New file.   
6313         * config/sparc/nm-nbsdelf.h: Remove.
6314         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6315         * config/sparc/tm-nbsdaout.h: New file.
6316
6317 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6318
6319         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6320         mipsnbsd-tdep.c
6321         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6322
6323 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6324
6325         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6326         shnbsd-nat.c.
6327         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6328
6329 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6330
6331         * NEWS: Note new MIPS NetBSD native configuration. 
6332         * configure.host (mips*-*-netbsd*): New host. 
6333         * configure.tgt (mips*-*-netbsd*): New target. 
6334         * mipsnbsd-nat.c: New file.
6335         * mipsnbsd-tdep.c: New file.
6336         * mipsnbsd-tdep.h: New file.
6337         * config/mips/nbsd.mh: New file.
6338         * config/mips/nbsd.mt: New file.
6339         * config/mips/nm-nbsd.h: New file.
6340         * config/mips/tm-nbsd.h: New file.
6341
6342 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6343
6344         * Makefile.in (SFILES): Add osabi.c.
6345         (COMMON_OBS): Add osabi.o.
6346         (osabi.o): New dependency list.
6347         * osabi.c: New file.
6348         * osabi.h: New file.
6349         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6350
6351         * Makefile.in (alpha_tdep_h): Define and use instead of
6352         alpha-tdep.h.
6353         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6354         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6355         Remove.
6356         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6357         * alpha-tdep.h: Include osabi.h.
6358         (alpha_abi): Remove.
6359         (gdbarch_tdep): Use generic OS ABI framework.
6360         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6361         gdbarch_register_osabi.
6362         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6363         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6364         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6365
6366         * Makefile.in (sh_tdep_h): Add osabi.h.
6367         * sh-tdep.h (sh_osabi): Remove.
6368         (gdbarch_tdep): Use generic OS ABI framework.
6369         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6370         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6371         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6372         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6373
6374         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6375         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6376         gdbarch_register_osabi.
6377         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6378         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6379         (get_elfosabi): Rename to...
6380         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6381         ABI framework support routines.
6382         (arm_gdbarch_init): Use generic OS ABI framework.
6383         (arm_dump_tdep): Likewise.
6384         (_initialize_arm_tdep): Likewise.
6385         * arm-tdep.h: Include osabi.h.
6386         (arm_abi): Remove.
6387         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6388         osabi member.
6389         (arm_gdbarch_register_os_abi): Remove prototype.
6390         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6391         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6392
6393         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6394         * mips-tdep.c: Include osabi.h.
6395         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6396         OS ABI framework.
6397
6398 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6399
6400         * h8300-tdep.c: Fix formatting.
6401
6402 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6403
6404         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6405         printing vector registers.
6406
6407 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6408
6409         From Fernando Nasser:
6410         * remote.c (remote_async_open_1): Re-throw the exception when the
6411         connection fails.
6412         (remote_cisco_open): Ditto.
6413         (remote_open_1): Ditto.
6414
6415 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6416
6417         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6418         (remote_start_remote): Add uiout parameter.  Pass through to
6419         remote_start_remote_dummy.
6420         (remote_open_1): Use catch_exception instead of catch_errors.
6421         (remote_async_open_1): Ditto.
6422         (remote_cisco_open): Ditto.
6423
6424 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6425
6426         * remote.c (remote_start_remote): Replace PTR with void pointer.
6427         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6428         static.
6429
6430 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6431
6432         * gdb_indent.sh: Allow the script to be run in the sim directory.
6433
6434 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6435
6436         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6437         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6438
6439         * corelow.c (core_open): Only call set_gdbarch_from_file if
6440         exec_bfd is NULL.
6441
6442 2002-05-17  Andrey Volkov <avolkov@transas.com>
6443
6444         * h8300-tdep.c: Add support of EXR register
6445         * config/h8300/tm-h8300.h: Ditto. 
6446         
6447 2002-05-17  Andrey Volkov <avolkov@transas.com>
6448
6449         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6450         
6451 2002-05-17  Andrey Volkov <avolkov@transas.com>
6452
6453         * h8300-tdep.c: Change literal regnums to REGNO.
6454         
6455 2002-05-17  Jim Blandy  <jimb@redhat.com>
6456
6457         * NEWS: Note addition of macro support.
6458
6459         Expand preprocessor macros in C expressions.
6460         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6461         (scan_macro_expansion, scanning_macro_expansion,
6462         finished_macro_expansion): New function declarations.
6463         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6464         variable declarations.
6465         * parser-defs.h (expression_context_pc): New declaration.
6466         * parse.c (expression_context_pc): New variable.
6467         (parse_exp_1): Set expression_context_pc, as well as
6468         expression_context_block.
6469         * c-exp.y (yylex): If we're not already reading the result of a
6470         macro expansion, try to macro-expand the next token.  When we're
6471         done scanning a macro expansion, switch back to the mainline text.
6472         Commas and `if's in a macro's expansion don't terminate the input.
6473         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6474         (macro_original_text, macro_expanded_text,
6475         expression_macro_lookup_func, expression_macro_lookup_baton): New
6476         variables.
6477         (scan_macro_expansion, scanning_macro_expansion,
6478         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6479         c_preprocess_and_parse): New functions.
6480         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6481         c_preprocess_and_parse, instead of c_parse.
6482         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6483         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6484
6485 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
6486
6487         * sh-tdep.c (gdb_print_insn_sh64): Delete.
6488         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6489         (sh_gdbarch_init): Always use gdb_print_insn_sh.
6490
6491 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
6492
6493         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
6494
6495 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6496
6497         * Makefile.in (sh_tdep_h): Define and use.
6498         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6499         register enum): Move to...
6500         * * sh-tdep.h: ...here.
6501         * sh-tdep.c: Include sh-tdep.h.
6502         * sh3-rom.c: Likewise.
6503         * shnbsd-tdep.c: Likewise.
6504
6505 2002-05-16  Michael Snyder  <msnyder@redhat.com>
6506
6507         * arm-tdep.c: Spelling fix in comment.
6508
6509 2002-05-16  Jim Blandy  <jimb@redhat.com>
6510
6511         Add commands for manually expanding macros and showing their
6512         definitions.
6513         * macrocmd.c, macroscope.c, macroscope.h: New files.
6514         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6515         (macroscope_h): New variable.
6516         (HFILES_NO_SRCDIR): Add macroscope.h.
6517         (COMMON_OBS): Add macrocmd.o, macroscope.o.
6518         (macroscope.o, macrocmd.o): New rules.
6519
6520         Teach the Dwarf 2 reader to read macro information.
6521         * dwarf2read.c: #include "macrotab.h".
6522         (dwarf_macinfo_buffer): New variable.
6523         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6524         dwarf_macinfo_size.
6525         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6526         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6527         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6528         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6529         dwarf2_macro_spaces_in_definition): New complaints.
6530         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6531         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6532         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6533         the partial symbol table.
6534         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6535         from what's recorded in the partial symbol table.
6536         (read_file_scope): If the compilation unit has a
6537         `DW_AT_macro_info' attribute, read its macro information.
6538         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6539
6540 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
6541
6542         Fix PR gdb/546
6543         * ser-tcp.c: Don't include <netinet/udp.h>.
6544
6545 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
6546
6547         * MAINTAINERS: Update my email address.
6548
6549 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
6550
6551         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6552         include file of the same name.
6553
6554 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6555
6556         * configure.tgt: Mark v850 as multi-arched.
6557         * config/v850/tm-v850.h: Remove file.
6558         * config/v850/v850.mt: Eliminate TM_FILE.
6559
6560 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6561
6562         * v850-tdep.c: Full multi-arch.
6563         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6564         Define GDB_MULTI_ARCH to 2.
6565
6566 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6567
6568         * p-exp.y (current_type): New static variable.
6569         Carries the type of the expression at the position that is parsed.
6570         (push_current_type, pop_current_type): Two new functions. Used
6571         to store/restore current_type in expression on specific tokens.
6572         (search_field): New static variable. Set to one after parsing a point
6573         as at that point only a FIELDNAME token should be searched.
6574         (FIELDNAME): New token. After a point only a token belonging to 
6575         current_type type definition is allowed.
6576         (all over token rules): reset and change current_type according
6577         to rules.
6578         (exp '[' rule): insert implicit array index field if
6579         exp is a pascal string type.
6580
6581 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6582
6583         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
6584         frame info.  Use frame_info's saved_regs instead of matching member
6585         in extra_frame_info throughout.
6586         (v850_frame_init_saved_regs): New function.
6587         (v850_init_extra_frame_info): Move most functionality into
6588         v850_frame_init_saved_regs().
6589         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6590         (v850_frame_find_saved_regs): Remove declaration.
6591         (FRAME_FIND_SAVED_REGS): Remove definition.
6592         (v850_frame_init_saved_regs): Add declaration.
6593         (FRAME_INIT_SAVED_REGS): Add definition.
6594
6595 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6596
6597         * v850-tdep.c: Begin multi-arch'ing v850.
6598         (v850_target_architecture_hook): Remove function.
6599         (v850_gdbarch_init): New function.  Add code previously in
6600         v850_target_architecture_hook().
6601         (_initialize_v850_tdep): Don't  set target_architecture_hook.
6602         Call register_gdbarch_init() instead.
6603
6604 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
6605
6606         * gdbtypes.h (struct cplus_struct_type): Remove args field.
6607         * hpread.c (hpread_read_struct_type): Remove assignments to args.
6608         (fixup_class_method_type): Likewise.
6609
6610 2002-05-15  Jim Blandy  <jimb@redhat.com>
6611
6612         Add macro structures to GDB's symbol tables.  Nobody puts anything
6613         in them yet.
6614         * symtab.h (struct symtab): New member: `macro_table'.
6615         * buildsym.h (pending_macros): New global variable.
6616         * buildsym.c: #include "macrotab.h".
6617         (buildsym_init): Initialize `pending_macros'.
6618         (end_symtab): If we found macro information while reading a CU's
6619         debugging info, do build a symtab structure for it.  Make the
6620         symtab point to the macro information, and clear the
6621         `pending_macros' pointer which held it while we were reading the
6622         debug info.
6623         (really_free_pendings): Free any pending macro table.
6624         * objfiles.h (struct objfile): New member: `macro_cache'.
6625         * objfiles.c (allocate_objfile): Set allocate and free functions
6626         for the macro cache's objstack.
6627         (free_objfile): Empty the macro cache's obstack.
6628         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6629         set new allocate and free functions for it.
6630         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6631         free functions for the macro cache's objstack.  (Why is this
6632         function building its own objfile?)
6633         * symmisc.c (print_objfile_statistics): Print statistics on the
6634         macro bcache.
6635         * Makefile.in: Note that buildsym.o depends on macrotab.h.
6636
6637 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
6638
6639         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6640         (REGISTER_U_ADDR): Delete definition.
6641         (arm_register_u_addr): Delete declaration.
6642
6643 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
6644
6645         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6646         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6647
6648 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
6649
6650         * regcache.c (register_valid): Revise comments refering to "Not
6651         available" and "unavailable".
6652         * frame.c (frame_register_read): Ditto.
6653         * findvar.c (value_of_register): Ditto.
6654
6655 2002-05-15  Andrew Cagney  <cagney@redhat.com>
6656
6657         * Makefile.in (remote_sim_h): Replace remote-sim_h.
6658         (remote-sim.o): Update dependencies.
6659         (d10v-tdep.o): Specify dependencies.
6660         (sim_d10v_h): Define.
6661
6662 2002-05-14  Jim Blandy  <jimb@redhat.com>
6663
6664         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6665         * macrotab.c (macro_lookup_inclusion, find_definition,
6666         new_macro_table): Same.
6667         
6668         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6669         not `! strcmp ()'.  This is a dubious improvement.
6670         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6671
6672         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6673         although it's not necessary, to avoid a warning.
6674
6675 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
6676
6677         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6678         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6679         TYPE_INSTANCE_FLAGS.
6680         (struct main_type): New.
6681         (struct type): Move most members to struct main_type.  Change
6682         cv_type and as_type to new type_chain member.  Add instance_flags.
6683         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6684         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6685         (finish_cv_type): Remove prototype.
6686         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
6687         Set TYPE_CHAIN.
6688         (alloc_type_instance): New function.
6689         (smash_type): New function.
6690         (make_pointer_type, make_reference_type, make_function_type)
6691         (smash_to_member_type, smash_to_method_type): Call smash_type.
6692         (make_qualified_type): New function.
6693         (make_type_with_address_space): Call make_qualified_type.
6694         (make_cv_type): Likewise.
6695         (finish_cv_type): Remove unnecessary function.
6696         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
6697         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6698         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6699         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6700         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6701         * hpread.c (hpread_read_struct_type): Likewise.
6702         * stabsread.c (read_struct_type): Likewise.
6703
6704 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
6705
6706         * configure.tgt: Add a catch all sh* target, for cases like
6707         sh[2,3,4]-elf and sh-hms.
6708
6709 2002-05-14  Keith Seitz  <keiths@redhat.com>
6710
6711         * event-loop.c (create_file_handler): Don't do anything but
6712         update data when we are given a fd which we are already
6713         monitoring.
6714
6715 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
6716
6717         * dwarf2cfi.c (context_cpy): Copy registers correctly.
6718         (update_context): Use __func__ in warnings.
6719         
6720 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
6721
6722         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
6723         and tcp_close to net_open and net_close.
6724         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
6725         using UDP if requested.  Don't try to disable Nagle on UDP
6726         sockets.
6727         * remote.c (remote_serial_open): New function.  Warn about UDP.
6728         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6729
6730 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
6731
6732         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6733
6734 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
6735
6736         * configure.tgt: Remove sh-hms target.
6737         * MAINTAINERS: Don't list sh-hms as a separate target.
6738
6739 2002-05-13  Jim Blandy  <jimb@redhat.com>
6740
6741         Add first preprocessor macro-expansion files.
6742         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6743         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6744         (splay_tree_h, macroexp_h, macrotab_h): New variable.
6745         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6746         (COMMON_OBS): Add macrotab.o, macroexp.o.
6747         (macroexp.o, macrotab.o): New rules.
6748
6749 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
6750
6751         * config/m88k/tm-m88k.h: Update copyright.
6752         (m88k_target_write_pc): Declare
6753         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6754         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6755         (SHIFT_INST_REGS): Update definition.
6756         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
6757         using old definition of TARGET_WRITE_PC.
6758         * regcache.c (generic_target_write_pc): Delete code handling
6759         NNPC_REGNUM.
6760         * gdbarch.sh (NNPC_REGNUM): Delete.
6761         * gdbarch.h, gdbarch.c: Regenerate.
6762
6763 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
6764
6765         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6766         builtin reg number.
6767
6768 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
6769
6770         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6771         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6772         (gen_address_of, gen_struct_ref, gen_repeat): Use type
6773         access macros.
6774         * c-typeprint.c (cp_type_print_method_args): Likewise.
6775         (c_type_print_args): Likewise.
6776         * d10v-tdep.c (d10v_push_arguments): Likewise.
6777         (d10v_extract_return_value): Likewise.
6778         * expprint.c (print_subexp): Likewise.
6779         * gdbtypes.c (lookup_primitive_typename): Likewise.
6780         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6781         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6782         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6783         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6784         (TYPE_VECTOR): Likewise.
6785         * hpread.c (hpread_read_struct_type)
6786         (fix_static_member_physnames, fixup_class_method_type)
6787         (hpread_type_lookup): Likewise.
6788         * mdebugread.c (parse_symbol, parse_type): Likewise.
6789         * p-lang.c (is_pascal_string_type): Likewise.
6790         * valops.c (hand_function_call): Likewise.
6791         * x86-64-tdep.c (classify_argument): Likewise.
6792
6793         * hpread.c (hpread_read_function_type)
6794         (hpread_read_doc_function_type): Call replace_type.
6795         * dstread.c (create_new_type): Delete.
6796         (decode_dst_structure, process_dst_function): Call alloc_type.
6797         Use type access macros.
6798
6799 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6800
6801         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6802         the're not supported by the current architecture.
6803         (i387_fill_fxsave): Likewise.
6804
6805 2002-05-12  Fred Fish  <fnf@redhat.com>
6806
6807         * symfile.c (default_symfile_offsets): Arrange for uninitialized
6808         sect_index_xxx members to index the first slot in section_offsets
6809         if all of the section_offsets are zero.
6810
6811 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6812
6813         * configure.tgt (sparc-*openbsd): Remove entry accidentially
6814         checked in with last change.
6815
6816 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
6817
6818         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6819         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
6820         config.sub.
6821
6822 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
6823
6824         * Makefile.in: Update dependencies.
6825
6826 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6827
6828         * language.c (local_hex_string_custom): Simplify.  Do not depend
6829         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6830
6831         * memattr.c (mem_info_command): Replace calls to
6832         longest_local_hex_string and longest_local_hex_string_custom.
6833         * buildsym.c (make_blockvector): Ditto.
6834         * solib.c (info_sharedlibrary_command): Ditto.
6835         * tracepoint.c (tracepoints_info): Ditto.
6836         * symtab.c (print_msymbol_info): Ditto.
6837
6838         * language.c (local_hex_string): Delete.
6839         (local_hex_string_custom): Delete.
6840         (longest_local_hex_string): Rename to local_hex_string.
6841         (longest_local_hex_string_custom): Rename to
6842         local_hex_string_custom.
6843         * language.h (local_hex_string): Change parameter type to LONGEST.
6844         (local_hex_string_custom): Ditto.
6845         (longest_local_hex_string): Delete declaration.
6846         (longest_local_hex_string_custom): Ditto.
6847
6848         * solib.c: Update copyright.
6849         * memattr.c: Update copyright.
6850         
6851 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6852
6853         * arch-utils.h (legacy_register_to_value): Declare.
6854         (legacy_value_to_register): Declare.
6855         (legacy_convert_register_p): Declare.
6856         * arch-utils.c (legacy_register_to_value): New function.
6857         (legacy_value_to_register): New function.
6858         (legacy_convert_register_p): New function.
6859
6860         * gdbarch.sh (REGISTER_TO_VALUE): Define.
6861         (VALUE_TO_REGISTER): Define.
6862         (CONVERT_REGISTER_P): Define.
6863         * gdbarch.h, gdbarch.c: Regenerate.
6864
6865         * valops.c (value_assign): Use CONVERT_REGISTER_P and
6866         VALUE_TO_REGISTER.
6867         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6868         CONVERT_REGISTER_P.
6869
6870 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
6871             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
6872
6873         * Makefile.in: Update dependencies for valops.c.
6874         * valops.c: Include "gdb_assert.h".
6875         (typecmp): Skip THIS parameter to methods.
6876         (find_method_list): Remove static_memfuncp argument,
6877         update callers.  Check for stub methods.
6878         (find_value_oload_method_list): Don't set *static_memfuncp.
6879         (find_overload_match): Don't check for stub methods.  Assert
6880         that methods are not stubbed.  Handle static methods.
6881         (value_find_oload_method_list): Remove static_memfuncp argument.
6882         * gdbtypes.c (check_stub_method): Do not add THIS pointer
6883         to the argument list for static stub methods.
6884         * value.h (value_find_oload_method_list): Update prototype.
6885
6886 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6887
6888         * arch-utils.h (generic_register_size): Declare.
6889         (generic_register_raw_size, generic_register_virtual_size): Delete
6890         declarations.
6891         * arch-utils.c (generic_register_raw_size): Delete.
6892         (generic_register_size): New function.
6893         (generic_register_virtual_size): Delete.
6894
6895         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6896         default generic_register_size.
6897         * gdbarch.h, gdbarch.c: Re-generate.
6898         
6899         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6900         register_virtual_size.
6901         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6902         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6903
6904 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6905
6906         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6907         * gdbarch.h, gdbarch.c: Regenerate.
6908         * gnu-v3-abi.c: Update copyright.
6909         (vtable_address_point_offset): Update.
6910         (gnuv3_rtti_type): Update.
6911         (gnuv3_baseclass_offset): Update.
6912         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6913         (init_fetch_link_map_offsets): Update.
6914         * remote.c (get_remote_state): Update.
6915         
6916 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
6917
6918         * TODO: Remove value_headof/value_from_vtable_info comment.
6919         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6920         * values.c (value_headof, value_from_vtable_info): Delete.
6921         * value.h (value_from_vtable_info): Delete prototype.
6922
6923 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
6924
6925         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6926         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6927         $(gdb_regex_h).
6928         (gdb_assert_h): Define.
6929         (gdb_wait_h): Define.
6930         (gdb_regex_h): Define.
6931
6932 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
6933
6934         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6935         * linespec.c (find_methods): Handle GCC 3.x template constructors.
6936
6937 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6938
6939         * nbsd-tdep.c: Fix comment.
6940
6941 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6942
6943         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6944         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6945         (nbsd-tdep.o): New dependency list.
6946         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
6947         nbsd-tdep.h.
6948         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6949         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6950         * nbsd-tdep.c: New file.
6951         * nbsd-tdep.h: New file.
6952         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
6953         nbsd-tdep.h.
6954         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6955         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6956         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6957         * config/sh/nbsd.mt (TDEPFILES): Ditto.
6958
6959 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6960
6961         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6962         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6963         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6964         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6965         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6966         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6967
6968 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6969
6970         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6971         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6972         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6973         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6974         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6975         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6976         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6977
6978 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6979
6980         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
6981         fetch_elfcore_registers to...
6982         * i386nbsd-tdep.c: ...here.
6983         (i386nbsd_use_struct_convention): Rename to...
6984         (i386nbsd_aout_use_struct_convention): ...this.
6985         (i386nbsd_supply_reg): New function.
6986         (i386nbsd_fill_reg): New function.
6987         (fetch_core_registers): Use i386nbsd_supply_reg.
6988         (fetch_elfcore_registers): Likewise.
6989         (_initialize_i386nbsd_tdep): New function.
6990         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6991         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6992         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6993         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6994         (i386nbsd_aout_use_struct_convention): ...this.
6995
6996 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
6997
6998         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6999         (store_inferior_registers): Use shnbsd_fill_reg.
7000         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7001         sh_nbsd_supply_register): Collapse into...
7002         (shnbsd_supply_reg): ...this.
7003         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7004         (shnbsd_fill_reg): ...this.
7005         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7006         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7007         (fetch_core_registers): Use shnbsd_supply_reg.
7008         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7009         (sh_nbsd_core_fns): Rename to...
7010         (shnbsd_core_fns): ...this.
7011         (sh_nbsd_elfcore_fns): Rename to...
7012         (shnbsd_elfcore_fns): ...this.
7013         (sh_nbsd_init_abi): Rename to...
7014         (shnbsd_init_abi): ...this.
7015         (_initialize_sh_nbsd_tdep): Rename to...
7016         (_initialize_shnbsd_tdep): ...this.
7017         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7018         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7019         sh_nbsd_fill_register): Remove prototypes.
7020         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7021
7022 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7023
7024         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7025         (i387-nat.o): Delete dependency list.
7026         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7027         (x86-64-linux-nat.o): Likewise.
7028         * i387-nat.c: Delete file, moving contents to...
7029         * i387-tdep.c: ...here.
7030         * i387-nat.h: Rename...
7031         * i387-tdep.h: ...to this.
7032         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7033         * i386-linux-nat.c: Likewise.
7034         * i386bsd-nat.c: Likewise.
7035         * i386gnu-nat.c: Likewise.
7036         * i386nbsd-nat.c: Likewise.
7037         * i386v4-nat.c: Likewise.
7038         * x86-64-linux-nat.c: Likewise.
7039         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7040         * config/i386/go32.mh (NATDEPFILES): Likewise.
7041         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7042         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7043         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7044         * config/i386/linux.mh (NATDEPFILES): Likewise.
7045         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7046         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7047         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7048         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7049
7050 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7051
7052         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7053         (alphanbsd-nat.o): Remove dependency list.
7054         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7055         * alphanbsd-nat.c: Delete.  Contents moved to...
7056         * alphanbsd-tdep.c: ...here.
7057         (_initialize_alphanbsd_tdep): Register core functions.
7058         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7059
7060 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7061
7062         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7063         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7064         (alphanbsd-nat.o): Likewise.
7065         (alphabsd-tdep.o): New dependency list.
7066         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7067         (fill_gregset): Use alphabsd_fill_reg.
7068         (supply_fpregset): Use alphabsd_supply_fpreg.
7069         (fill_fpregset): Use alphabsd_fill_fpreg.
7070         (fetch_inferior_registers): Use struct reg and struct fpreg
7071         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7072         and alphabsd_supply_fpreg.
7073         (store_inferior_registers): Use struct reg and struct fpreg
7074         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7075         and alphabsd_fill_fpreg.
7076         * alphabsd-tdep.c: New file.
7077         * alphabsd-tdep.h: New file.
7078         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7079         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7080         alphabsd_supply_fpreg.
7081         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7082         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7083
7084 2002-05-11  Eric Christopher  <echristo@redhat.com>
7085
7086         * mips-tdep.c (mips_double_register_type): Fix thinko.
7087         (mips_single_register_type): Ditto.
7088         * MAINTAINERS: Add self.
7089
7090 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7091
7092         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7093         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7094         right thing on architectures with different endianness and/or
7095         integer sizes.
7096
7097 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7098
7099         From Christian Limpach <chris@Pin.LU>
7100         * configure.in: Change sed expression which comments out
7101         NATDEPFILES to also comment out continuation lines.
7102         * configure: Regenerate.
7103
7104 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7105
7106         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7107         big patch.
7108
7109 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7110
7111         * sh-tdep.c: Include correct file.
7112
7113 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7114
7115         New support for sh64-elf (sh5) target.
7116
7117         * configure.tgt: For sh64-elf target, default to sh-elf.
7118
7119         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7120         (struct gdbarch_tdep): Add new fields for new registers and ABI
7121         info.
7122
7123         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7124         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7125         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7126         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7127         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7128         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7129         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7130         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7131         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7132         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7133         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7134         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7135         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7136         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7137         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7138         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7139         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7140         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7141         sign_extend, sh64_nofp_frame_init_saved_regs,
7142         sh64_init_extra_frame_info, sh64_get_saved_register,
7143         sh64_extract_struct_value_address, sh64_pop_frame,
7144         sh64_push_arguments, sh64_extract_return_value,
7145         sh64_store_return_value, sh64_show_media_regs,
7146         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7147         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7148         sh_sh64_register_virtual_type,
7149         sh_sh64_register_convert_to_virtual,
7150         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7151         sh64_register_read, sh64_pseudo_register_write,
7152         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7153         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7154         sh64_do_pseudo_register, sh_compact_do_registers_info,
7155         sh64_do_registers_info, sh_gdbarch_init): New functions.
7156
7157 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7158
7159         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7160
7161 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7162
7163         * linespec.c (decode_line_1): Check for a double quote after
7164         a filename correctly.
7165
7166 2002-05-10  Jim Blandy  <jimb@redhat.com>
7167
7168         Properly track the size of the current objfile's .debug_line section.
7169         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7170         (DWARF_LINE_SIZE): New macro.
7171         (dwarf2_build_psymtabs_hard): Record the line section's size in
7172         the partial symbol table.
7173         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7174         symbol table.
7175
7176 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7177
7178         * ia64-tdep.c: Handle breakpoints on L instruction type
7179         in MLX instruction bundle by moving the breakpoint to
7180         the third slot (X instruction type) as L holds only data.
7181
7182 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7183
7184         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7185         (process_one_symbol): Complain about discarding local symbols
7186         due to a misplaced N_LBRAC entry.
7187
7188 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7189
7190         From Daniel Berlin <dan@cgsoftware.com>
7191         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7192         decrease the depth we are at, in the case of templates.
7193
7194 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7195
7196         * mips-tdep.c (mips_float_register_type): New function.
7197         (mips_double_register_type): New function.
7198         (mips_print_register): Use them.
7199         (do_fp_register_row): Likewise.
7200
7201 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7202
7203         * signals/signals.c (signals): Remove conditional compilation around
7204         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7205         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7206
7207 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7208
7209         * remote-rdp.c (remote_rdp_can_run): Remove.
7210
7211 2002-05-09  Tom Tromey  <tromey@redhat.com>
7212
7213         * jv-valprint.c (java_val_print): Handle `char' as a special case
7214         of TYPE_CODE_INT.
7215
7216 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7217
7218         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7219         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7220         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7221         str r(0123),[sp,#nn].
7222         (arm_skip_prologue): Ditto.  Also make disassembly
7223         order-independent by placing it in a loop.
7224
7225 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7226
7227         * stabsread.c (read_type): Add recognition for new attribute:
7228         "@V;" means that an array type is actually a vector.
7229         This is analogous to the vector flag that's been added to dwarf2.
7230
7231 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7232
7233         * i386-tdep.h (i386_abi): New enum.
7234         (struct gdbarch_tdep): Replace os_ident member with abi.
7235         (i386_gdbarch_register_os_abi): New prototype.
7236         * i386-tdep.c (i386_abi_names): New array.
7237         (process_note_abi_tag_sections): Removed.
7238         (process_note_sections): New function.
7239         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7240         (struct i386_abi_handler): New struct.
7241         (i386_abi_handler_list): New variable.
7242         (i386_gdbarch_register_os_abi): New function.
7243         (i386_gdbarch_init): Adapt for the changes given above.
7244
7245 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7246
7247         * gregset.h: Say "GNU/Linux".
7248
7249 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7250
7251         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7252         (build_gdbtypes): Build builtin_type_v2_float.
7253         (_initialize_gdbtypes): Register new builtin type.
7254
7255 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7256
7257         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7258         (clear_gdbarch_swap): New function.
7259         (initialize_non_multiarch): Call.
7260         (gdbarch_update_p): Before calling init(), swap out and clear the
7261         existing architecture.
7262         * gdbarch.c: Regenerate.
7263
7264 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7265
7266         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7267         alphanbsd-tdep.c.
7268
7269 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7270
7271         * sh-nbsd-nat.c: Rename to...
7272         * shnbsd-nat.c: ...this.
7273         * sh-nbsd-tdep.c: Rename to...
7274         * shnbsd-tdep.c: ...this.
7275         * sh-nbsd-tdep.h: Rename to...
7276         * shnbsd-tdep.h: ...this.
7277         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7278         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7279
7280 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7281
7282         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7283         concatenation for command help messages.
7284
7285 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7286
7287         * NEWS: Note new sh*-*-netbsdelf* configuration.
7288         * configure.host: Set gdb_host_cpu to sh for all sh*.
7289         (sh*-*-netbsdelf*): New host.
7290         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7291         (sh*-*-netbsdelf*): New target.
7292         * sh-nbsd-nat.c: New file.
7293         * sh-nbsd-tdep.c: New file.
7294         * sh-nbsd-tdep.h: New file.
7295         * config/sh/nbsd.mh: New file.
7296         * config/sh/nbsd.mt: New file.
7297         * config/sh/nm-nbsd.h: New file.
7298         * config/sh/tm-nbsd.h: New file.
7299
7300 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7301
7302         * sh-tdep.c (sh_osabi_names): Declare.
7303         (process_note_abi_tag_sections): New function.
7304         (get_elfosabi): Ditto.
7305         (sh_gdbarch_register_os_abi): Ditto.
7306         (sh_dump_tdep): Ditto.
7307         _initialize_sh_tdep): Use gdbarch_register to register
7308         sh_gdbarch_init and sh_dump_tdep.
7309         * config/sh/tm-sh.h (sh_osabi): Declare.
7310         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7311
7312 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7313
7314         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7315         (thumb_scan_prologue): Ditto.
7316         (arm_find_callers_reg): Ditto.
7317         (arm_frame_chain): Ditto.
7318         (arm_init_extra_frame_info): Ditto.
7319         (arm_frame_saved_pc): Ditto.
7320         (arm_pop_frame): Ditto.
7321         (arm_push_return_address): New function.
7322         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7323         call_dummy_location, call_dummy_breakpoint_offset_p,
7324         call_dummy_breakpoint_offset, call_dummy_p,
7325         call_dummy_stack_adjust_p, call_dummy_words,
7326         sizeof_call_dummy_words, call_dummy_start_offset,
7327         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7328         call_dummy_address, push_return_address and push_dummy_frame for
7329         generic dummy frames.
7330
7331 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7332
7333         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7334         size computation for alloca.
7335         (sh_fp_frame_init_saved_regs): Likewise.
7336
7337 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7338
7339         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7340         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7341         * arm-tdep.c (arm_store_return_value): Use them.
7342         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7343         * remote-rdp.c (remote_rdp_fetch_register): Use
7344         ARM_MAX_REGISTER_RAW_SIZE.
7345         (remote_rdp_store_register): Likewise.
7346
7347 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7348
7349         * dwarf2cfi.c: Code cleanup, removed unused variables,
7350         added default labels to switch {} statements.
7351         * x86-64-tdep.c: Ditto.
7352         * x86-64-linux-nat.c: Ditto.
7353
7354 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7355
7356         * solib.h: Protect against multiple inclusion.
7357
7358 2002-05-06  Jim Blandy  <jimb@redhat.com>
7359
7360         Add first preprocessor macro-expansion files.
7361         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7362         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7363         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7364         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7365         (COMMON_OBS): Add macrotab.o, macroexp.o.
7366         (macroexp.o, macrotab.o): New rules.
7367
7368         Separate the job of reading the line number info statement program
7369         header (...expialidocious) out into its own function.
7370         * dwarf2read.c (struct line_head, struct filenames, struct
7371         directories): Replace with...
7372         (struct line_header): New structure, containing the full
7373         contents of the statement program header, including the
7374         include directory and file name tables.
7375         (read_file_scope): If we have line number info, instead of just
7376         calling dwarf_decode_lines to do all the work, call
7377         dwarf_decode_line_header first to get a `struct line_header'
7378         containing the data in the statement program header, and then
7379         pass that to dwarf_decode_lines, which will pick up where that
7380         left off.  Be sure to clean up the `struct line_header' object.
7381         (dwarf_decode_line_header, free_line_header, add_include_dir,
7382         add_file_name): New functions.
7383         (dwarf_decode_lines): Move all the code to read the statement
7384         program header into dwarf_decode_line_header.  Take the line
7385         header it built as the first argument, instead of the offset to
7386         the compilation unit's line number info.  Use the new `struct
7387         line_header' type instead of the old structures.  No need to do
7388         cleanups here now, since we don't allocate anything.
7389         (dwarf2_statement_list_fits_in_line_number_section,
7390         dwarf2_line_header_too_long): New complaints.
7391
7392 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7393
7394         * gdbtypes.c (init_vector_type): New function.
7395         (build_builtin_type_vec128): Simplify the representation of SIMD
7396         registers.
7397         (build_gdbtypes): Initialize new builtin vector types.
7398         (_initialize_gdbtypes): Register new vector types with gdbarch.
7399         (builtin_type_v4_float, builtin_type_v4_int32,
7400         builtin_type_v8_int16, builtin_type_v16_int8,
7401         builtin_type_v2_int32, builtin_type_v4_int16,
7402         builtin_type_v8_int8): New (renamed) SIMD types.
7403
7404 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7405
7406         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7407         (i387_fill_fxsave): Likewise.
7408
7409 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7410
7411         * alpha-tdep.c (alpha_extract_return_value): Don't use
7412         non-constant array size in prototype.
7413
7414 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7415
7416         From Brian Taylor <briant at model dot com>:
7417         * ui-out.c (ui_out_field_core_addr): Use the function
7418         longest_local_hex_string_custom'to format addresses > 32 bits
7419         wide.
7420
7421         * ui-out.c (ui_out_field_core_addr): Update comment.
7422
7423 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7424
7425         * stack.c (select_and_print_frame): Make static.  Delete the
7426         parameter `level'.
7427         (func_command): Update call.
7428         (select_frame_command): Delete code computing the frame level.
7429         * frame.h (select_and_print_frame): Delete declaration.
7430
7431 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7432
7433         * sparc-tdep.c (sparc_get_saved_register): Comment why
7434         get_prev_frame call is safe.
7435
7436 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7437
7438         * frame.h (select_frame): Delete level parameter.
7439         * stack.c (select_frame): Update.  Use frame_relative_level to
7440         obtain the frame's level.
7441         (select_and_print_frame): Update call.
7442         (select_frame_command): Ditto.
7443         (up_silently_base): Ditto.
7444         (down_silently_base): Ditto.
7445         * ocd.c (ocd_start_remote): Ditto.
7446         * remote-rdp.c (remote_rdp_open): Ditto.
7447         * remote-mips.c (mips_initialize): Ditto.
7448         (common_open): Ditto.
7449         * remote-e7000.c (e7000_start_remote): Ditto.
7450         * m3-nat.c (select_thread): Ditto.
7451         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7452         (child_get_current_exception_event): Ditto.
7453         * varobj.c (varobj_create): Ditto.
7454         (varobj_update): Ditto.
7455         (c_value_of_root): Ditto.
7456         * tracepoint.c (finish_tfind_command): Ditto.
7457         * corelow.c (core_open): Ditto.
7458         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7459         * thread.c (info_threads_command): Ditto.
7460         (switch_to_thread): Ditto.
7461         * infrun.c (normal_stop): Ditto.
7462         (restore_selected_frame): Ditto.
7463         (restore_inferior_status): Ditto.
7464         * breakpoint.c (insert_breakpoints): Ditto.
7465         (watchpoint_check): Ditto.
7466         (bpstat_stop_status): Ditto.
7467         (do_enable_breakpoint): Ditto.
7468         * blockframe.c (flush_cached_frames): Ditto.
7469         (reinit_frame_cache): Ditto.
7470
7471 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7472
7473         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7474         maintainer.
7475
7476 2002-05-04  Jim Blandy  <jimb@redhat.com>
7477
7478         * gdbtypes.c (replace_type): Doc fix.
7479
7480 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7481
7482         * valprint.c (strcat_longest): Delete commented out function.
7483         Update copyright.
7484
7485 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7486
7487         * MAINTAINERS: Mark a29k as deleted.
7488         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
7489         Move new configurations to the top.
7490         * configure.tgt: Remove a29k.
7491         * config/a29k/tm-vx29k.h: Delete.
7492         * config/a29k/vx29k.mt: Delete.
7493         * config/a29k/tm-a29k.h: Delete.
7494         * config/a29k/a29k-udi.mt: Delete.
7495         * config/a29k/a29k.mt: Delete.
7496         * a29k-tdep.c: Delete.
7497         * remote-udi.c: Delete.
7498         * remote-mm.c: Delete.
7499         * remote-eb.c: Delete.
7500         * remote-adapt.c: Delete.
7501         * Makefile.in: Remove obsolete code.
7502         * config/s390/s390x.mt: Ditto.
7503         * config/s390/s390.mt: Ditto.
7504         * config/sparc/sparclynx.mh: Ditto.
7505         * config/sparc/linux.mh: Ditto.
7506         * config/pa/hppaosf.mh: Ditto.
7507         * config/pa/hppabsd.mh: Ditto.
7508         * config/ns32k/nbsd.mt: Ditto.
7509         * config/mips/vr5000.mt: Ditto.
7510         * config/m68k/sun3os4.mh: Ditto.
7511         * config/m68k/nbsd.mt: Ditto.
7512         * config/m68k/m68klynx.mh: Ditto.
7513         * config/m32r/m32r.mt: Ditto.
7514         * config/i386/x86-64linux.mt: Ditto.
7515         * config/i386/nbsdelf.mt: Ditto.
7516         * config/i386/nbsd.mt: Ditto.
7517         * config/i386/i386lynx.mh: Ditto.
7518
7519 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7520
7521         * target.c (debug_print_register): New function.  Handle oversize
7522         registers.
7523         (debug_to_fetch_registers): Call.
7524         (debug_to_store_registers): Call.
7525
7526 2002-05-03  Jim Blandy  <jimb@redhat.com>
7527
7528         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7529         (read_type): Doc fix.
7530         * gdbtypes.c (replace_type): Doc fix.
7531
7532         * stabsread.c (multiply_defined_struct): New complaint.
7533         (read_struct_type): If the type we were passed isn't empty, or
7534         incomplete, don't read the new struct type into it; complain,
7535         and return the original type unchanged.  Take a new `type_code'
7536         argument, which is the type code for the new type.
7537         (read_type): Rather than storing the type's type code here, pass
7538         it as an argument to read_struct_type, and let that take care of
7539         storing it.  That way, we don't overwrite the original type code,
7540         so read_struct_type can use it to decide whether we're overwriting
7541         something we shouldn't.
7542         (complain_about_struct_wipeout): New function.
7543
7544 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
7545
7546         * gdbarch.sh: Assert that gdbarch is non-NULL.
7547         * gdbarch.c: Regenerate.
7548
7549 2002-05-03  Jason Merrill  <jason@redhat.com>
7550
7551         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7552         and return NULL.
7553
7554 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
7555
7556         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7557         (x86_64_dwarf2gdb_regno_map_length),
7558         (x86_64_dwarf2_reg_to_regnum): Added.
7559         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7560         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7561         (_initialize_x86_64_tdep): Synced with the change above.
7562         (x86_64_skip_prologue): Reformulated message.
7563
7564 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7565
7566         * f-exp.y: Also use new prev_lexptr variable
7567         to improve error reporting. Based on Michael Snyder
7568         2002-04-24 dated patch to c-exp.y.
7569         * jv-exp.y: Likewise.
7570         * m2-exp.y: Likewise.
7571
7572 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
7573
7574         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7575         we are dealing with vectors.
7576
7577 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7578
7579         * config/m68k/tm-nbsd.h: Obvious fix,
7580         correct machine name.
7581
7582 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7583
7584         * p-typeprint.c (pascal_type_print_base): Add support
7585         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7586
7587 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7588
7589         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7590         for fondamental pascal 'char' type.
7591
7592 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7593
7594         * p-lang.h (is_pascal_string_type): Declaration changed,
7595         new sixth argument of type char ** added.
7596         * p-lang.c (is_pascal_string_type): Implementation
7597         changed. Args length_pos, length_size, string_pos, char_size
7598         can now be NULL. New argument arrayname set to the field
7599         name of the char array. Return value set to char array
7600         field index plus one.
7601         * p-valprint.c (pascal_val_print): Adapt to new declaration of
7602         is_pascal_string_type function.
7603
7604 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7605
7606         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7607         <cagney@redhat.com> change.
7608         * gdbarch.c: Regenerate.
7609
7610 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7611
7612         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7613         before probing for a new one.  Detect errorenous gdbarch_init
7614         functions.
7615         * gdbarch.c: Regenerate.
7616
7617 2002-05-01  Andrew Cagney  <cagney@redhat.com>
7618
7619         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7620         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
7621         * config/v850/tm-v850.h: Ditto.  Update copyright.
7622
7623 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
7624
7625         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7626         current_gdbarch.
7627
7628 2002-04-30  Michael Snyder  <msnyder@redhat.com>
7629
7630         * arm-tdep.c: Whitespace clean-ups.
7631         (arm_skip_prologue): Fix thinko; two lines
7632         should have been removed as part of 4/24 change.
7633
7634 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
7635
7636         * rs6000-tdep.c: Added comment describing how fpscr register
7637         numbers were chosen.
7638
7639 2002-04-30  Michael Snyder  <msnyder@redhat.com>
7640
7641         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7642
7643 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
7644
7645         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7646         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7647         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7648
7649 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
7650
7651         From Louis Hamilton <hamilton@redhat.com>:
7652         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7653         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7654         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7655         not bfd-private xcoff data, to determine wordsize.
7656         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7657
7658 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
7659
7660         GDB 5.2 released from 5.2 branch.
7661
7662 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
7663
7664         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7665         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7666         (x86_64_register_info_table): Added comments with register numbers.
7667
7668 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
7669
7670         * rs6000-tdep.c (rs6000_extract_return_value,
7671         rs6000_store_return_value): Handle returning vectors.
7672         (rs6000_gdbarch_init): Use
7673         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7674         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7675         New function.
7676         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7677         vectors.
7678         (ppc_sysv_abi_push_arguments): Handle vector parameters.
7679         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7680
7681 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7682
7683         * hpread.c (hpread_psymtab_to_symtab_1,
7684         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7685         with fprintf_unfiltered (gdb_stderr,...).
7686
7687 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7688
7689         * remote-array.c (printf_monitor, write_monitor,
7690         array_insert_breakpoint, array_remove_breakpoint ):
7691         Replace fprintf (stderr,...
7692         with fprintf_unfiltered (gdb_stderr,....
7693         * remote-es.c: Likewise.
7694         * remote-os9k.c: Likewise.
7695         * remote-st.c: Likewise.
7696
7697 2002-04-28  Andreas Schwab  <schwab@suse.de>
7698
7699         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7700         linux-proc.o and gcore.o.
7701
7702 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
7703
7704         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7705         code without frame pointers.
7706
7707 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7708
7709         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7710         ON_STACK is needed.
7711
7712 2002-04-26  Ben Elliston  <bje@redhat.com>
7713
7714         * target.c (do_xfer_memory): Correct reference to the new option
7715         "trust-readonly-sections".
7716
7717 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
7718
7719         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7720         * gdbtypes.c (recursive_dump_type): Output the vector flag.
7721         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7722         vectors.
7723         (read_array_type): Record the fact that this array type is really a
7724         vector (i.e. are passed in by value).
7725
7726 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
7727
7728         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7729         * alpha-tdep.c (alpha_sigcontext_addr): New function.
7730         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7731         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7732         * alpha-linux-tdep.c: Include frame.h.
7733         (alpha_linux_sigcontext_addr): New function.
7734         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7735         alpha_linux_sigcontext_addr.
7736         * alpha-osf1-tdep.c: Include gdbcore.h.
7737         (alpha_osf1_sigcontext_addr): New function.
7738         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7739         alpha_osf1_sigcontext_addr.
7740         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7741         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7742
7743 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7744
7745         * stack.c (selected_frame_level):
7746         (select_frame): Do not set selected_frame_level.
7747         * frame.h (selected_frame_level): Delete declaration.
7748
7749 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
7750
7751         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7752         convert_from_func_ptr-addr when AIX / PowerOpen.
7753
7754 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7755
7756         * valops.c (hand_function_call): Call
7757         generic_save_call_dummy_addr.
7758         * frame.h (generic_save_call_dummy_addr): Declare.
7759         * blockframe.c (struct dummy_frame): Add fields call_lo and
7760         call_hi.
7761         (generic_find_dummy_frame): Check for PC in range call_lo to
7762         call_hi instead of entry_point_address.
7763         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7764         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
7765         (generic_save_call_dummy_addr): New function.
7766
7767 2002-04-24  David S. Miller  <davem@redhat.com>
7768
7769         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7770         sparc_skip_prologue.
7771         (sparc_skip_prologue): Kill frameless_p arg, and use line number
7772         information to find prologue when possible.
7773         (sparc_prologue_frameless_p): Call examine_prologue directly.
7774         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7775         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7776         second argument.
7777         (SKIP_PROLOGUE): Likewise.
7778
7779 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7780
7781         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7782         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7783         indicate that the condition it was testing is always true.
7784         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7785         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7786         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7787
7788 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7789
7790         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7791         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7792         tdep->jb_pc and tdep->jb_elt_size.
7793         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7794         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7795         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7796         * alpha-nat.c (get_longjmp_target): Remove.
7797         (JB_ELEMENT_SIZE): Ditto.
7798         (JB_PC): Ditto.
7799         * alpha-tdep.c (alpha_get_longjmp_target): New function.
7800         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
7801         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7802         to alpha_get_longjmp_target.
7803         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7804         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7805         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7806
7807 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7808
7809         * README: Update to GDB 5.2.
7810
7811 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
7812
7813         * gdbarch.sh (LC_ALL): Set to `c'.
7814
7815 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7816
7817         * avr-tdep.c: Ran through gdb_indent.sh.
7818
7819 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7820
7821         * MAINTAINERS: Add myself as AVR maintainer.
7822         * NEWS: Note new target avr.
7823
7824 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7825
7826         * Makefile.in: Add support for AVR target.
7827         * configure.tgt: Add support for AVR target.
7828         * avr-tdep.c: New file
7829         * config/avr/avr.mt: New file.
7830
7831 2002-04-25  Theodore A. Roth  <troth@verinet.com>
7832
7833         * MAINTAINERS: Add myself to write-after-approval.
7834
7835 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
7836
7837         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7838         with fprintf_unfiltered (gdb_stderr,....
7839
7840 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
7841
7842         Fix PR gdb/508.
7843         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7844
7845 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
7846
7847         * p-exp.y: Also use new prev_lexptr variable
7848         to improve error reporting. Based on Michael Snyder
7849         2002-04-24 dated patch to c-exp.y.
7850
7851 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7852
7853         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7854         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7855         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
7856         to 0.
7857         * config/alpha/tm-alpha.h: Remove forward decls of struct type
7858         and struct value.
7859         (FUNCTION_START_OFFSET): Remove.
7860         (BREAKPOINT): Ditto.
7861
7862 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
7863
7864         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7865         * NEWS: Ditto.
7866
7867 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7868
7869         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7870         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7871         alpha_linux_pc_in_sigtramp.
7872         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7873         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7874         alpha_osf1_pc_in_sigtramp.
7875         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7876         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7877         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7878         alphafbsd_pc_in_sigtramp.
7879         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7880         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7881         alphanbsd_pc_in_sigtramp.
7882         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7883         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7884
7885 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7886
7887         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7888
7889 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7890
7891         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7892         alphanbsd-tdep.c.
7893         (alphanbsd-nat.o): New dependency list.
7894         (alphanbsd-tdep.o): Ditto.
7895         * NEWS: Note new native NetBSD/alpha configuration.
7896         * alphanbsd-nat.c: New file.
7897         * alphanbsd-tdep.c: Ditto.
7898         * configure.host (alpha*-*-netbsd*): New host.
7899         * configure.tgt (alpha*-*-netbsd*): New target.
7900         * config/alpha/nbsd.mh: New file.
7901         * config/alpha/nbsd.mt: Ditto.
7902         * config/alpha/nm-nbsd.h: Ditto.
7903         * config/alpha/tm-nbsd.h: Ditto.
7904
7905 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7906
7907         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7908         (alpha-osf1-tdep.o): New dependency list.
7909         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7910         and skip_sigtramp_frame members.
7911         * alpha-linux-tdep.c: Include gdbcore.h.
7912         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7913         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7914         * alpha-osf1-tdep.c: New file.
7915         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7916         alpha-osf1-dep.c.
7917         (alpha_frame_past_sigtramp_frame): New function.
7918         (alpha_dynamic_sigtramp_offset): Ditto.
7919         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7920         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7921         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7922         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7923         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7924         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7925         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7926         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7927         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7928         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7929         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
7930         to find_solib_trampoline_target.
7931         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7932         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7933         (SKIP_TRAMPOLINE_CODE): Remove.
7934         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7935         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7936         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7937         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7938         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7939         (PROC_SIGTRAMP_MAGIC): Ditto.
7940         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7941         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7942         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7943         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7944         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7945
7946 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
7947
7948         * NEWS: Note that Alpha targets are now multi-arch.
7949
7950 2002-04-24  Michael Snyder  <msnyder@redhat.com>
7951
7952         * parser-defs.h (prev_lexptr): New external variable.
7953         * parse.c (parse_exp_1): Set prev_lexptr to null before
7954         calling the language-specific parser.
7955         * c-exp.y (yylex): Set prev_lexptr to start of current token.
7956         (yyerror): Use prev_lexptr in error reporting.
7957
7958 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
7959
7960         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7961         * gregset.h: If FILL_FPXREGSET is defined, provide
7962         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7963         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7964         is defined, call fill_fpxregset.
7965
7966 2002-04-24  Roland McGrath  <roland@frob.com>
7967
7968         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7969         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7970         (supply_gregset, supply_fpregset): New functions.
7971
7972         * gnu-nat.c (gnu_find_memory_regions): New function.
7973         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7974         (gnu_xfer_memory): Add a cast.
7975
7976 2002-04-24  Michael Snyder  <msnyder@redhat.com>
7977
7978         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7979         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
7980         of argument regs ("str r(0123), [r11, #-nn"]).
7981         (arm_skip_prologue): Better handling for frameless functions.
7982         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
7983         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7984
7985 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
7986
7987         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7988         NUM_PSEUDO_REGS can be used.
7989
7990 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
7991
7992         * arch-utils.h: Update copyright.
7993
7994         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7995         * gdbarch.h, gdbarch.c: Re-generate.
7996
7997         * inferior.h (IN_SIGTRAMP): Delete definition.
7998         * arch-utils.c (legacy_pc_in_sigtramp): New function.
7999         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8000
8001         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8002         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8003         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8004         (find_proc_framesize): Ditto.
8005         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8006         (alpha_init_extra_frame_info): Ditto.
8007         * infrun.c (handle_inferior_event): Ditto.
8008         (handle_inferior_event): Ditto.
8009         (check_sigtramp2): Ditto.
8010         * blockframe.c (create_new_frame): Ditto.
8011         (get_prev_frame): Ditto.
8012         * ppc-linux-tdep.c: Update comments.
8013         * i386-linux-tdep.c: Update comments.
8014         * breakpoint.c (bpstat_what): Update comment.
8015
8016 2002-04-24  David S. Miller  <davem@redhat.com>
8017
8018         * i960-tdep.c (register_in_window_p): New function.
8019         (i960_find_saved_register): Use it instead of
8020         REGISTER_IN_WINDOW_P.
8021         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8022
8023         * symtab.h (find_stab_function_addr): Kill extern.
8024         * minsyms.c (find_stab_function_addr): Remove from here...
8025         * dbxread.c: ... to here, and mark it static.
8026
8027 2002-04-20  David S. Miller  <davem@redhat.com>
8028
8029         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8030         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8031
8032 2002-04-21  David S. Miller  <davem@redhat.com>
8033
8034         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8035         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8036         (vx_write_register): Likewise.
8037
8038 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8039
8040         * source.c (is_regular_file): New function.
8041         (openp): Check wether file to open is a regular file
8042         to avoid opening directories.
8043
8044 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8045
8046         * findvar.c (extract_signed_integer): Cast printf argument
8047         to suppress format warning.
8048         (extract_unsigned_integer): Likewise.
8049         * infcmd.c (registers_info): Likewise.
8050         * top.c (get_prompt_1): Likewise.
8051         * valops.c (value_assign): Likewise.
8052         * valprint.c (print_decimal): Likewise.
8053
8054 2002-04-22  H.J. Lu  (hjl@gnu.org)
8055
8056         * c-exp.y (typebase): Support
8057
8058         [long|long long|short] [signed|unsigned] [int|]
8059
8060         and
8061
8062         signed [long|long long|short] int
8063
8064 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8065
8066         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8067         and vax-tdep.h.
8068         * vax-tdep.h: New file.
8069         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8070         Make several routines static.
8071         (vax_get_saved_register): New function.
8072         (vax_gdbarch_init): New function.
8073         (_initialize_vax_tdep): Register vax_gdbarch_init.
8074         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8075         Remove macros now under the control of gdbarch.
8076
8077 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8078
8079         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8080         Some whitespace and coding standards tweaks.
8081
8082 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8083
8084         * vax-tdep.c: Include regcache.h.
8085         (vax_call_dummy_words): New.
8086         (sizeof_vax_call_dummy_words): New.
8087         (vax_fix_call_dummy): New function.
8088         (vax_saved_pc_after_call): Ditto.
8089         * config/vax/tm-vax.h: Don't include regcache.h.
8090         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8091         (CALL_DUMMY): Remove.
8092         (CALL_DUMMY_WORDS): Define.
8093         (SIZEOF_CALL_DUMMY_WORDS): Define.
8094         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8095
8096 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8097
8098         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8099
8100 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8101
8102         * vax-tdep.c (vax_frame_chain): New function.
8103         (vax_push_dummy_frame): Ditto.
8104         (vax_pop_frame): Ditto.
8105         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8106         (FRAMELESS_FUNCTION_INVOCATION): Use
8107         generic_frameless_function_invocation_not.
8108         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8109         (POP_FRAME): Use vax_pop_frame.
8110
8111 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8112
8113         * vax-tdep.c (vax_store_struct_return): New function.
8114         (vax_extract_return_value): Ditto.
8115         (vax_store_return_value): Ditto.
8116         (vax_extract_struct_value_address): Ditto.
8117         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8118         vax_store_struct_return.
8119         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8120         (STORE_RETURN_VALUE): Use vax_store_return_value.
8121         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8122
8123 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8124
8125         * vax-tdep.c (vax_frame_saved_pc): New function.
8126         (vax_frame_args_address_correct): Ditto.
8127         (vax_frame_args_address): Ditto.
8128         (vax_frame_locals_address): Ditto.
8129         (vax_frame_num_args): Move code to be in proximity to
8130         other frame-related functions.
8131         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8132         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8133         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8134         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8135         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8136
8137 2002-04-22  H.J. Lu  (hjl@gnu.org)
8138
8139         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8140         includedir.
8141
8142 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8143
8144         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8145         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8146         (FRAME_INIT_SAVED_REGS): New macro.
8147
8148 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8149
8150         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8151
8152 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8153
8154         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8155         where needed.
8156         (fetch_osf_core_registers): Likewise.
8157         (supply_gregset): Likewise.
8158
8159 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8160
8161         * symfile.h (get_section_index): Define.
8162         * symfile.c (get_section_index): New function.
8163         * mdebugread.c (SC_IS_SBSS): New macro.
8164         (SC_IS_BSS): Return true for the scBss storage class only, as
8165         the scSBss storage class refers to the .sbss section.
8166         (parse_partial_symbols): Discard the symbols which associated
8167         section does not exist.
8168         Make sure to use the .sbss section index for symbols which
8169         storage class is scBss, rather than using the .bss section index.
8170
8171 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8172
8173         * vax-tdep.c: Update copyright years.
8174         (vax_register_name): New function.
8175         (vax_register_byte): Ditto.
8176         (vax_register_raw_size): Ditto.
8177         (vax_register_virtual_size): Ditto.
8178         (vax_register_virtual_type): Ditto.
8179         * config/vax/tm-vax.h: Update copyright years.
8180         (REGISTER_NAMES): Remove.
8181         (REGISTER_NAME): Define.
8182         (REGISTER_BYTE): Use vax_register_byte.
8183         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8184         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8185         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8186
8187 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8188
8189         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8190         declaration
8191         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8192
8193 2002-04-21  David S. Miller  <davem@redhat.com>
8194
8195         * arch-utils.c (generic_prologue_frameless_p): Kill
8196         SKIP_PROLOGUE_FRAMELESS_P code.
8197         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8198         references.
8199         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8200         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8201         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8202         references.
8203         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8204         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8205         (sparc_gdbarch_init): Pass it to
8206         set_gdbarch_prologue_frameless_p.
8207
8208 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8209
8210         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8211         (alphabsd-nat.o): New dependency list.
8212
8213 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8214
8215         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8216         alphafbsd-tdep.c.
8217         (alpha-linux-tdep.o): New dependency list.
8218         (alphafbsd-tdep.o): Likewise.
8219
8220 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8221
8222         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8223         to here...
8224         * alpha-tdep.c: ...from here.
8225         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8226
8227 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8228
8229         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8230         prototype from here...
8231         * alpha-tdep.h: ...to here.
8232
8233 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8234
8235         * frame.h (selected_frame_level): Document as deprecated.
8236         (frame_relative_level): Declare.
8237         * stack.c (frame_relative_level): New function.
8238         (selected_frame_level): Document as deprecated.
8239         (select_frame): Do not set the selected_frame_level.
8240
8241         * stack.c (frame_info, record_selected_frame): Update.
8242         (frame_command, current_frame_command): Update.
8243         (up_silently_base, up_command, down_silently_base): Update.
8244         (down_command): Update.
8245         * inflow.c (kill_command): Update.
8246         * tracepoint.c (finish_tfind_command): Update.
8247         * corelow.c (core_open): Update.
8248         * thread.c (info_threads_command): Update.
8249         (do_captured_thread_select): Update.
8250         * infcmd.c (finish_command): Update.
8251         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8252
8253 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8254
8255         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8256
8257 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8258
8259         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8260         type const.
8261
8262 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8263
8264         * alphafbsd-tdep.c: Update copyright years.  Include
8265         alpha-tdep.h.
8266         (alphafbsd_use_struct_convention): Make static.
8267         (alphafbsd_init_abi): New function.
8268         (_initialize_alphafbsd_tdep): New function.
8269         * config/alpha/tm-fbsd.h: Update copyright years.
8270         (USE_STRUCT_CONVENTION): Remove.
8271
8272 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8273
8274         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8275         an Alpha ABI variant.
8276         (alpha_abi_handler_list): Declare.
8277         (alpha_gdbarch_register_os_abi): New function.
8278         (alpha_gdbarch_init): Give registered ABI variant handlers a
8279         chance to tweak the gdbarch once we have set up defaults.
8280         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8281
8282 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8283
8284         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8285         to standard_coerce_float_to_double.
8286         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8287
8288 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8289
8290         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8291         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8292         from gdbarch_tdep rather than a constant.
8293         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8294         the default text address for all Alpha Unix ABIs.
8295         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8296         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8297
8298 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8299
8300         * alpha-tdep.h: New file.  Includes several Alpha target constants
8301         taken from...
8302         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8303         let gdbarch deal with.
8304         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8305         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8306         to dependency list.
8307         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8308         Alpha target register names.
8309         * alphabsd-nat.c: Likewise.
8310         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8311         Alpha target register names.  Make serveral routines static.
8312         (alpha_get_saved_register): New function.
8313         (alpha_abi_names): New.
8314         (process_note_abi_tag_sections): New function.
8315         (get_elfosabi): New function.
8316         (alpha_gdbarch_init): New function.
8317         (alpha_dump_tdep): New function.
8318         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8319
8320 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8321
8322         * frame.c (find_saved_register): Delete #ifdef
8323         HAVE_REGISTER_WINDOWS code.
8324         * config/sparc/tm-sparc.h: Update comments.
8325         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8326
8327 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8328
8329         * i960-tdep.c (i960_find_saved_register): New function.
8330         (i960_get_saved_register): New function.
8331         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8332         (i960_get_saved_register): Declare.
8333         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8334
8335 2002-04-20  David S. Miller  <davem@redhat.com>
8336
8337         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8338
8339 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8340
8341         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8342         instead of NUM_PSEUDO_REGS.
8343
8344 2002-04-20  David S. Miller  <davem@redhat.com>
8345
8346         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8347         GDB_MULTI_ARCH_PARTIAL
8348         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8349         define, let tm-sp64.h do it.
8350
8351 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8352
8353         * frame.c (find_saved_register): Avoid a NULL pointer
8354         dereference and actually walk the frame list.
8355
8356 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8357
8358         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8359         sorted in most most-recent-used order.  Document.
8360         * gdbarch.h, gdbarch.c: Regenerate.
8361
8362 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8363
8364         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8365         instead of ->prev.
8366         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8367         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8368         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8369         instead of ->prev.
8370
8371 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8372
8373         Fix PR gdb/471.
8374         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8375         (build_builtin_type_vec128): Ditto.
8376         (append_composite_type_field): Fix calculation of type length in
8377         union case.
8378
8379 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8380
8381         * config/djgpp/README: Update.
8382
8383         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8384         compiler warnings.
8385
8386 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8387
8388         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8389         (alpha_setup_arbitrary_frame): ...to this.
8390         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8391         for alpha_setup_arbitrary_frame.
8392
8393 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8394
8395         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8396         * gdbarch.h, gdbarch.c: Regenerate.
8397
8398         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8399         * target.h (memory_breakpoint_from_pc): Update declaration.
8400         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8401
8402         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8403         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8404         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8405         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8406         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8407         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8408         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8409         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8410         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8411         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8412         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8413         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8414
8415         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8416         const pointer.
8417         * monitor.c (monitor_insert_breakpoint): Ditto.
8418         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8419
8420         * config/mcore/tm-mcore.h: Update copyright.
8421         * mem-break.c: Ditto.
8422         * xstormy16-tdep.c: Ditto.
8423
8424 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8425
8426         * p-exp.y: Add precedence rule for '^' token.
8427         This removes the shift/reduce conflicts.
8428         Remove the comment concerning these shift/reduce conflicts.
8429
8430 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8431
8432         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8433         (registers_powerpc_nofp): New register set for processors
8434         without floating point unit.
8435
8436 2002-04-18  David S. Miller  <davem@redhat.com>
8437
8438         * MAINTAINERS: Add myself to write-after-approval.
8439
8440 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8441
8442         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8443
8444 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8445
8446         * rs6000-tdep.c (frame_initial_stack_address): Use
8447         frame_register_read to read the alloca_reg.
8448
8449 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8450
8451         * frame.c (find_saved_register): Find saved registers in the next
8452         not prev frame.
8453         Fix PR gdb/365.
8454
8455 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8456
8457         * gdbarch.sh (LANG): Set to ``c''.
8458
8459 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8460
8461         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8462
8463 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8464
8465         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8466         Update copyright.
8467
8468         * hpread.c (hpread_get_lntt): Add declaration.
8469         Also fix PR gdb/391.
8470
8471 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8472
8473         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8474         * aclocal.m4, configure: Re-generate.
8475         Fix PR gdb/391.
8476
8477 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8478
8479         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8480         instead of tm_print_insn.
8481
8482 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8483
8484         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8485
8486 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8487
8488         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8489         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8490         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8491
8492 2002-04-12  Don Howard  <dhoward@redhat.com>
8493
8494         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8495         max_user_call_depth.
8496         (init_cmd_lists): Initialize the new value;
8497         * cli/cli-script.c (execute_user_command): Limit the call depth of
8498         user defined commands.  This avoids a core-dump when user commands
8499         are infinitly recursive.
8500
8501 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8502
8503         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8504         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8505         from tdep struct instead of DEFAULT_LR_SAVE.
8506         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8507         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8508         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8509
8510 2002-04-12  Michael Snyder  <msnyder@redhat.com>
8511
8512         * Remote.c: Spelling fix.
8513         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8514         If no symbol found for "sbrk", try "_sbrk".
8515         (make_output_phdrs): Use bfd_section_name.
8516         (gcore_copy_callback): Use bfd_section_name.
8517         * eval.c: Indentation fix-ups.
8518         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8519         in case it gets applied to an address that is already
8520         in the instruction space.
8521         * cli/cli-decode.c (help_list): Allow long lines to wrap.
8522         * symfile.c: Fix indentation, long lines.
8523         * source.c: White space fix-up.
8524
8525 2002-04-12  Andrew Cagney  <cagney@redhat.com>
8526
8527         * defs.h (read_relative_register_raw_bytes): Delete declaration.
8528         * frame.c (frame_register_read): New function.  Return non-zero on
8529         success.
8530         (read_relative_register_raw_bytes_for_frame): Delete.
8531         (read_relative_register_raw_bytes): Delete.
8532         * frame.h (frame_register_read): Declare.
8533         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
8534         * sh-tdep.c: Ditto.
8535         * infcmd.c (do_registers_info): Ditto.
8536         * hppa-tdep.c: Ditto.
8537         * rs6000-tdep.c: Ditto.
8538         * h8500-tdep.c: Ditto.
8539         * mips-tdep.c: Ditto.
8540         * h8300-tdep.c: Ditto.
8541         * z8k-tdep.c: Ditto.
8542
8543 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8544
8545         From Jimi X <jimix@watson.ibm.com>:
8546         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8547         64-bit SysV ABI.
8548
8549 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8550
8551         From Jimi X <jimix@watson.ibm.com>:
8552         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8553         bfd info.
8554
8555 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8556
8557         From Jimi X <jimix@watson.ibm.com>:
8558         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8559         register sets for these processor variants.
8560
8561 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
8562
8563         * regformats/reg-ppc.dat: Support FPSCR.
8564
8565 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
8566
8567         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8568         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8569         Add fpscr as an invalid/unfetchable register.
8570         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8571         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8572         (fill_fpregset): Add support for register fpscr.
8573         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8574         (fill_gregset): Account for the fact that register ``mq'' might
8575         not exist.
8576         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8577         (registers_power): Add fpscr to register set at slot 71.
8578         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8579         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
8580
8581 2002-04-11  Michael Snyder  <msnyder@redhat.com>
8582
8583         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8584         * configure: Regenerate.
8585         * config.in: Regenerate.
8586         * acconfig.h: Add define for _SYSCALL32.
8587         * core-sol2.c: Remove #define _SYSCALL32.
8588         * solib-legacy.c: Remove #define _SYSCALL32.
8589
8590 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8591
8592         * stack.c (select_frame): Cleanup internal error message, do not
8593         use %p.
8594
8595 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8596
8597         * stack.c (select_frame): Check that selected_frame and the
8598         specified level are as expected.
8599         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8600         Update copyright.
8601         * frame.h (struct frame_info): Add field `level'.  Update
8602         copyright.
8603         Work-in-progress PR gdb/464.
8604
8605 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8606
8607         * maint.c (maint_print_section_info): Rename print_section_info.
8608         (print_bfd_section_info, print_objfile_section_info): Update.
8609         * inferior.h (struct gdbarch): Add opaque declaration.
8610         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8611         * gdbarch.h: Regenerate.
8612
8613 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
8614
8615         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8616         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8617         (kernel_u_size): Added.
8618         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8619         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8620
8621 2002-04-04  Jim Ingham  <jingham@apple.com>
8622
8623        * valarith.c (find_size_for_pointer_math): New function, either returns
8624        the size for a pointer's target, returns 1 for void *, or errors for
8625        incomplete types.
8626        (value_add, value_sub): use find_size_for_pointer_math.
8627
8628 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
8629
8630         * linux-low.c (linux_look_up_symbols): New hook.
8631         (linux_target_ops): Add linux_look_up_symbols.
8632         * remote-utils.c (decode_address): New function.
8633         (look_up_one_symbol): New function.
8634         * server.c (handle_query): Call target look_up_symbols hook.
8635         * server.h (look_up_one_symbol): Add prototype.
8636         * target.h (struct target_ops): Add look_up_symbols hook.
8637
8638 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
8639
8640         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8641         override FP_REGNUM with frame->fp.  Update copyright.
8642         * parse.c (num_std_regs, std_regs): Delete.
8643         (target_map_name_to_register): Do not search std_regs.  Update
8644         function description.
8645         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8646         declarations.  Update copyright.
8647         Fix PR gdb/251.
8648
8649 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
8650
8651         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8652         after the last symbol in a block.
8653
8654 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
8655
8656         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8657         is non zero as a found symbol.
8658
8659 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
8660
8661         * findvar.c: Include "builtin-regs.h".
8662         (value_of_register): Call value_of_builtin_reg when applicable.
8663         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8664         (target_map_name_to_register): Call
8665         builtin_reg_map_name_to_regnum.
8666         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8667         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8668         (builtin_regs_h): Define.
8669         (builtin-regs.o): New target.
8670         (findvar.o): Add $(builtin_regs_h).
8671         * builtin-regs.c, builtin-regs.h: New files.
8672         * std-regs.c: New file.
8673         Partial fix for PR gdb/251.
8674
8675 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8676
8677         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8678         it's no longer required.
8679
8680 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
8681
8682         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8683
8684 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8685
8686         From Jimi X <jimix@watson.ibm.com>:
8687         * rs6000-tdep.c (rs6000_software_single_step): Use
8688         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8689         and size.  Use target_insert_breakpoint() and
8690         target_remove_breakpoint() to insert and remove breakpoints
8691         instead of explicit memory reads and writes.
8692
8693 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8694
8695         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8696         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8697         ELF_OBJECT_FORMAT ifdef.
8698
8699 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8700
8701         From Jimi X <jimix@watson.ibm.com>:
8702         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8703
8704 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
8705
8706         From Jimi X <jimix@watson.ibm.com>:
8707         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8708         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8709
8710 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
8711
8712         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8713         s/asprintf/xasprintf/.
8714         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8715
8716 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8717
8718         I believe Jeff Law denies responsability for this one:
8719         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8720         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8721         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8722         Work-around for PR gdb/366.
8723
8724 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
8725
8726         * remote-e7000.c (write_small, e7000_read_inferior_memory,
8727         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8728         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8729
8730 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
8731
8732         * sh-tdep.c (sh_fp_frame_init_saved_regs,
8733         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8734         information.
8735
8736 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8737
8738         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8739         maintainer.
8740
8741 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
8742
8743         * README (Reporting Bugs in GDB): Document the bug web page as the
8744         prefered way of submitting bugs.
8745         Fix PR gdb/402.
8746
8747 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8748
8749         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8750         -1.  Update comment.
8751         * gdbarch.h, gdbarch.c: Re-generate.
8752
8753 2002-04-07  Andreas Schwab  <schwab@suse.de>
8754
8755         * m68klinux-nat.c (fill_fpregset): Properly pass address of
8756         buffer to regcache_collect.
8757
8758 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8759
8760         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
8761         * gdbarch.c, gdbarch.h: Re-generate.
8762
8763 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
8764
8765         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8766         declaration.  Fix -Werror.
8767
8768 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
8769
8770         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8771         * gdbarch.c: Regenerate.
8772
8773 2002-04-05  Michael Snyder  <msnyder@redhat.com>
8774
8775         * breakpoint.c (clear_command): Rewrite middle section to
8776         combine two loops with identical control conditions.
8777         Add a cleanup to eliminate a memory leak.
8778         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8779
8780 2002-04-05  H.J. Lu  (hjl@gnu.org)
8781
8782         * solib-svr4.c (bkpt_names): Add "__start".
8783
8784 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
8785
8786         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8787         as test for 64 bit target.
8788
8789 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
8790
8791         * h8500-tdep.c (h8500_write_fp): Delete function.
8792         * dwarf2cfi.c (cfi_write_fp): Document as not used.
8793         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8794         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8795         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8796         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8797         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8798         (s390_write_fp):
8799         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8800         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8801         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8802         (d10v_write_fp): Delete function.
8803         * inferior.h (write_fp, generic_target_write_fp): Delete
8804         declarations.
8805         * regcache.c (generic_target_write_fp): Delete function.
8806         (write_fp): Delete function.
8807         * gdbarch.sh (TARGET_WRITE_FP): Delete.
8808         * gdbarch.h, gdbarch.c: Regenerate.
8809         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8810         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8811         (sparc64_write_fp): Delete declaration.
8812         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8813         (h8500_write_fp): Delete declaration.
8814
8815 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
8816
8817         * sparc-tdep.c (sparc64_write_fp): Delete.
8818         (sparc_push_dummy_frame): Replace write_fp call with code to store
8819         the FP directly.
8820         (sparc_gdbarch_init): Do not initialize write_fp.
8821
8822 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
8823
8824         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8825         clause.
8826
8827 2002-03-29  Jim Blandy  <jimb@redhat.com>
8828
8829         * stack.c (get_selected_block): Add new argument `addr_in_block',
8830         used to return the exact code address we used to select the block,
8831         not just the block.
8832         * blockframe.c (get_frame_block, get_current_block): Same.
8833         * frame.h (get_frame_block, get_current_block,
8834         get_selected_block): Update declarations.
8835         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8836         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8837
8838 2002-04-05  Michael Snyder  <msnyder@redhat.com>
8839
8840         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8841         warning message.
8842
8843 2002-04-05  J. Brobecker  <brobecker@gnat.com>
8844
8845         * utils.c (xfullpath): New function.
8846         * defs.h (xfullpath): Add declaration.
8847         * source.c (openp): Use xfullpath in place of gdb_realpath to
8848         avoid resolving the basename part of filenames when the
8849         associated file is a symbolic link. This fixes a potential
8850         inconsistency between the filenames known to GDB and the
8851         filenames it prints in the annotations.
8852         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8853         to be able to match a filename with either the real filename, or
8854         the name of any symbolic link to this file.
8855         (lookup_partial_symtab): Ditto.
8856
8857 2002-04-04  Michael Snyder  <msnyder@redhat.com>
8858
8859         * breakpoint.c: Add support for hardware breakpoints in overlays.
8860         (overlay_events_enabled): New state variable.
8861         (insert_breakpoints): Use overlay_events_enabled to decide
8862         whether to attempt to set a breakpoint at the overlay load addr.
8863         Handle bp_hardware_breakpoint as well as bp_breakpoint.
8864         (remove_breakpoint): Use overlay_events_enabled to decide
8865         whether breakpoints need to be removed from overlay load addr.
8866         Handle bp_hardware_breakpoint as well as bp_breakpoint.
8867         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8868         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8869         disable_overlay_breakpoints): Update overlay_events_enabled.
8870
8871 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
8872
8873         * dwarf2read.c (struct function_range): New.
8874         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8875         (check_cu_functions): New.
8876         (read_file_scope): Initialize global function lists.
8877         Call dwarf_decode_line after processing children.
8878         (read_func_scope): Add to global function list.
8879         (dwarf_decode_lines): Call check_cu_functions everywhere
8880         record_line is called.  Call record_line with a linenumber
8881         of 0 to mark sequence ends.
8882
8883 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
8884
8885         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8886         change sync with glibc.
8887
8888 2002-04-03  Jim Blandy  <jimb@redhat.com>
8889
8890         * configure.in: Call AC_C_INLINE.
8891         * configure: Regenerated.
8892
8893 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
8894
8895         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8896         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8897
8898 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
8899
8900         * NEWS: Mention gcore support on FreeBSD/i386.
8901
8902         * fbsd-proc.c: New file.
8903         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8904         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8905
8906         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8907         while statement.
8908
8909 2002-03-29  Jim Blandy  <jimb@redhat.com>
8910
8911         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8912         unescaped newlines in string literals, but newer ones don't.  So
8913         escape them.
8914
8915 2002-03-26  Michael Snyder  <msnyder@redhat.com>
8916             Andrew Cagney <cagney@redhat.com>
8917
8918         * cli/cli-dump.c: New file.  Dump memory to file,
8919         restore file to memory.
8920         * cli/cli-dump.h: New file.
8921         * Makefile.in: Add rules, dependencies for cli-dump.o.
8922         * NEWS: Mention new commands.
8923
8924 2002-03-28  Michael Snyder  <msnyder@redhat.com>
8925
8926         * symfile.c (symbol_file_add): Move test for null symbols to later.
8927
8928 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
8929
8930         From veksler at il.ibm.com:
8931         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8932         the xstrduped original path.
8933         Fix PR gdb/417.
8934
8935 2002-03-27  Michael Snyder  <msnyder@redhat.com>
8936
8937         * breakpoint.c (_initialize_breakpoint): Clean up help string.
8938         * infcmd.c (_initialize_infcmd): Ditto.
8939         * language.c (_initialize_language): Ditto.
8940         * symfile.c (_initialize_symfile): Ditto.
8941         * top.c (_init_main): Ditto.
8942         * cli/cli-cmds.c (init_cli_cmds): Ditto.
8943
8944 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
8945
8946         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8947         vector registers handling.
8948         (skip_prologue): Handle new AltiVec instructions.  Fill in new
8949         fields of frame data.
8950         (frame_get_saved_regs): Fill in information for AltiVec registers.
8951
8952 2002-03-27  Jim Blandy  <jimb@redhat.com>
8953
8954         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8955         a function; leave this macro here to invoke that function.
8956         (symbol_init_mangled_name): Declaration for that function.
8957         * symtab.c (symbol_init_mangled_name): New function.
8958
8959 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
8960
8961         * valarith.c: Replace strerror with safe_strerror.
8962         * tracepoint.c: Ditto.
8963         * lin-lwp.c: Ditto.
8964         * go32-nat.c: Ditto.
8965         * inflow.c: Ditto.
8966         * gnu-nat.c: Ditto.
8967
8968 2002-03-27  Andreas Schwab  <schwab@suse.de>
8969
8970         * event-top.c (command_line_handler): Remove useless if.
8971
8972 2002-03-27  Andreas Jaeger  <aj@suse.de>
8973
8974         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8975         comment.
8976
8977 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
8978
8979         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8980         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8981         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8982         (x86_64_linux_dr_get_status, supply_gregset),
8983         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8984         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8985         (x86_64_register_info_table): Add.
8986         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8987         (x86_64_register_raw_size, x86_64_register_virtual_type),
8988         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8989         general x86_64_register_info_table.
8990         (i386_gdbarch_init): gdbarch_register_bytes is now set
8991         dynamicaly during initialization.
8992         * regformats/reg-x86-64.dat: Synced with changes to registers above.
8993         * gdbserver/linux-x86-64-low.c: Ditto.
8994
8995 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
8996
8997         * gdbserver/server.c (main): Call target_signal_to_host_p
8998         and target_signal_to_host on signals received from the remote.
8999         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9000         target_signal_from_host on signals sent to the remote.
9001         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9002         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9003
9004 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9005
9006         * signals/signals.c: Include "server.h" in gdbserver build.
9007         (target_signal_from_name): Don't use STREQ.
9008         (_initialize_signals): Likewise.  Don't include function in
9009         gdbserver build.
9010
9011 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9012
9013         * signals.c: Moved to...
9014         * signals/signals.c: Here.
9015         * Makefile (signals.o): Update.
9016
9017 2002-03-26  Jeff Law (law@redhat.com)
9018
9019         * somread.c (som_symtab_read): Remove some commented out code and
9020         updated related comments.  Do not set the minimal symbol table to
9021         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9022         in a dynamic executable.
9023         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9024         where we are unable to find the minimal symbol for the given
9025         PC value.
9026
9027 2002-03-25  Jeff Law (law@redhat.com)
9028
9029         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9030
9031 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9032
9033         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9034
9035 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9036
9037         * command.h: Update copyright.
9038         (struct cmd_list_element): Replace definition with opaque
9039         declaration.
9040         (enum cmd_types): Document that it will eventually be moved to
9041         cli/cli-decode.h
9042         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9043         (MALLOCED_REPLACEMENT): Delete macro.
9044         * Makefile.in (cli_decode_h): Add $(command_h).
9045         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9046         * top.c: Include "cli/cli-decode.h".
9047         * completer.c: Include "cli/cli-decode.h".
9048         * maint.c: Include "cli/cli-decode.h".
9049         * cli/cli-decode.h: Include "command.h".
9050         (enum command_class): Delete.
9051         (enum cmd_types): Comment out.
9052         (enum cmd_auto_boolean): Delete.
9053         (enum var_types): Delete.
9054
9055 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9056
9057         * cli/cli-decode.c: Include "gdb_assert.h".
9058         (add_set_or_show_cmd): New static function.
9059         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9060         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9061         all fields, such as func, from the set command.
9062
9063 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9064
9065         * MAINTAINERS (sh-elf): Change warning flag to -w.
9066
9067 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9068
9069         * defs.h (error): Add printf format attribute.
9070         * thread-db.c (thread_from_lwp): Fix error format string.
9071         * stack.c (parse_frame_specification): Ditto.
9072         * cli/cli-decode.c (undef_cmd_error): Ditto.
9073         * scm-lang.c (scm_lookup_name): Ditto.
9074         * tracepoint.c (trace_error): Ditto.
9075         * remote-utils.c (usage): Ditto.
9076         * remote.c (compare_sections_command): Ditto.
9077         Fix PR gdb/328.
9078
9079 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9080
9081         * gdbtypes.c (append_composite_type_field): New function.
9082         (init_composite_type): New function.
9083         * gdbtypes.h (append_composite_type_field): Declare.
9084         (init_composite_type): Ditto.
9085
9086 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9087
9088         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9089         function.
9090         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9091         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9092         structure returning convention for SYSV ABI case, but not
9093         for GNU/Linux, FreeBSD, or NetBSD.
9094
9095 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9096
9097         * symtab.h (lookup_block_symbol): Add mangled_name argument
9098         to prototype.
9099
9100         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9101         with new mangled_name argument.
9102         * linespec.c (decode_line_1): Likewise.
9103         * valops (value_of_this): Likewise.
9104         * symtab.c (lookup_transparent_type): Likewise.
9105         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9106         (lookup_symbol): If we are given a mangled name, pass it down
9107         to lookup_symbol_aux.
9108         (lookup_block_symbol): If we are given a mangled name to check
9109         against, only return symbols which match it.
9110
9111 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9112
9113         * win32-nat.c (child_create_inferior): Check for proper shell to use
9114         here, in case the user changes it on the fly.
9115         (_initialize_inftarg): Remove shell path considerations.
9116
9117 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9118
9119         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9120         for gdbarch_max_register_raw_size and max_register_virtual_size.
9121         Adjust copyright year.
9122
9123 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9124
9125          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9126          in a function to cover the entire beginning of the function
9127          as well if it does not already.
9128
9129 2002-03-21  Tom Rix  <trix@redhat.com>
9130
9131         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9132         (rs6000_ptrace64): Renamed from ptrace64.
9133
9134 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9135
9136         * gdbserver/remote-utils.c (remote_open): Don't call
9137         getprotobyname, we're all using TCP here so just use
9138         IPPROTO_TCP.
9139         * gdbserver/gdbreplay.c (remote_open): Ditto.
9140
9141 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9142
9143         * regcache.c (_initialize_regcache): No need to call
9144         build_regcache() at this time; it gets called whenever
9145         the gdbarch changes.
9146
9147 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9148
9149         * sparc-nat.c:  Include sys/param.h where possible.
9150
9151 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9152
9153         Fix PR gdb/422.
9154         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9155         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9156         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9157         complex types.
9158         * stabsread.c (rs6000_builtin_type): Likewise.
9159         (read_sun_floating_type): Likewise.
9160
9161 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9162
9163         * stabsread.c (read_member_functions): Remove skip code for duplicate
9164         constructor/destructor methods.  Use standard parsing for these
9165         methods and just do not chain them to the list of methods after
9166         parsing.
9167
9168 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9169
9170         * coffread.c: Remove redundant static declarations.  Replace
9171         occurrences of `PTR' with `void *'.
9172         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9173         * top.h (quit_cover): Likewise.
9174         * defs.h (catch_errors): Likewise.
9175
9176 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9177
9178         * defs.h (XMALLOC): Define.
9179         * gdb-events.sh (XMALLOC): Delete macro.
9180         * gdb-events.c, gdb-events.h: Regenerate.
9181         * gdbarch.sh (XMALLOC): Delete macro.
9182         * gdbarch.c: Regenerate.
9183         * serial.c (XMALLOC): Delete macro.
9184         * ui-file.c (XMALLOC): Ditto.
9185         * ser-unix.h (XMALLOC): Ditto.
9186         * sh-tdep.c (XMALLOC): Ditto.
9187         * ui-out.c (XMALLOC): Ditto.
9188         * utils.c (XMALLOC): Ditto.
9189         * i386-tdep.c (XMALLOC): Ditto.
9190         * gdb-events.c (XMALLOC): Ditto.
9191         * d10v-tdep.c (XMALLOC): Ditto.
9192         * cli-out.c (XMALLOC): Ditto.
9193
9194         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9195         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9196         * ui-file.c, ui-out.c: Ditto.
9197
9198 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9199
9200         * command.h (struct cmd_list_element): Add field context.
9201         (set_cmd_context, get_cmd_context): Declare.
9202         * cli/cli-decode.h: Ditto.
9203         * cli/cli-decode.c (get_cmd_context): New function.
9204         (set_cmd_context): New function.
9205         (add_cmd): Initialize context.
9206         Part of fixing PR gdb/145 and PR gdb/146.
9207
9208 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * cli/cli-decode.c (cmd_type): New function.
9211         * command.h (cmd_type): Declare.
9212         * infrun.c (set_schedlock_func): Call function cmd_type.
9213         * kod.c (kod_set_os): Call cmd_type.
9214         * cris-tdep.c (cris_version_update): Use function cmd_type.
9215         (cris_mode_update, cris_abi_update): Ditto.
9216
9217         * command.h: (execute_cmd_post_hook): Declare.
9218         (execute_cmd_pre_hook): Declare.
9219         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9220         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9221         functions. Execute pre/post hook while ensuring that afterwords
9222         hook_in is cleared.
9223         * top.c (execute_command): Use execute_cmd_post_hook, and
9224         execute_cmd_pre_hook to execute pre/post commands.
9225         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9226         hook_stop_stub.
9227         (hook_stop_stub): Call execute_cmd_pre_hook.
9228
9229 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9230
9231         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9232         set'' and this leads to a core dump.  Move xstrdup of
9233         operating_system to after check that it is not NULL.
9234
9235 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9236
9237         * kod.c (kod_set_os): Remove unnecessary check that
9238         ``command->type'' is set_cmd.
9239
9240         * valprint.c (set_input_radix): Use input_radix.
9241         (set_output_radix): Use output_radix.
9242         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9243         isn't reverted.
9244
9245 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9246
9247         * value.h (struct value): Delete field ``substring_addr''.  Change
9248         aligner fields to force_doublest_align, force_longest_align,
9249         force_core_addr_align and force_pointer_aligh.
9250
9251         * value.h (struct value): Fix typo in above change.
9252
9253 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9254
9255         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9256         to fix internal_error from ``maintenance print architecture''.
9257
9258 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9259
9260         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9261         for gcc versions after gcc-2.8.1.
9262
9263 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9264
9265         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9266         for method resolution.  Restore adjustment of ``this'' pointer after
9267         calling value_struct_elt, which was accidentally removed during the
9268         HP merge.
9269
9270 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9271
9272         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9273         value_of_register.
9274         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9275         get_saved_register.
9276         * value.h (value_of_register): Update.
9277
9278 2002-03-14  Richard Henderson  <rth@redhat.com>
9279
9280         * configure.in: Detect declaration for canonicalize_file_name.
9281         * utils.c (canonicalize_file_name): Declare, if needed.
9282         (gdb_realpath): Prefer realpath if available and usable.
9283         * config.in, configure: Rebuild.
9284
9285 2002-03-14  Richard Henderson  <rth@redhat.com>
9286
9287         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9288         a constant array bound.
9289
9290         * MAINTAINERS: Add myself to write-after-approval.
9291
9292 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9293
9294         * symfile.c (syms_from_objfile): Return immediately if no syms.
9295         (symbol_file_add): Return immediately if no syms.
9296         (find_sym_fns): Return immediately if no syms.
9297
9298 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9299
9300         * gdbserver/remote-util.c (remote_open): Print remote-side's
9301         IP address when remote debugging over the network.
9302
9303 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9304
9305         * config/sparc/fbsd.mh: Fix copyright.
9306         * config/sparc/fbsd.mt: Likewise.
9307
9308 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9309
9310         * MAINTAINERS: Fix typo in name of gdb warnings option.
9311         (x86-64): Fix formating so that this can be parsed by awk.
9312
9313 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9314
9315         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9316         * defs.h: Include "gdb/signals.h".
9317         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9318
9319 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9320
9321         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9322         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9323         from x86-64-tdep.h
9324
9325 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9326             Don Howard <dhoward@redhat.com>
9327
9328         * mips-tdep.c (ST0_FR): Define.
9329         (mips2_fp_compat): New function, temporarily disabled.
9330         (mips_read_fp_register_single): New function.
9331         (mips_read_fp_register_double): New function.
9332         (mips_print_register): Use them.
9333         (do_fp_register_row): Likewise.
9334
9335 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9336
9337         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9338         approval''.
9339
9340 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9341
9342         * stabsread.c (read_member_functions): Fix is_stub test for
9343         static member functions, improve comment.
9344
9345 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9346
9347         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9348         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9349         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9350         commands that set boolean values.
9351         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9352         (arm_rdi_resume): Always initialize PC.
9353         (arm_rdi_open): Don't use rslt as a boolean.
9354         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9355         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9356         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9357         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9358
9359 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9360
9361         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9362         * configure: Rebuilt.
9363
9364 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9365
9366         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9367         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9368
9369 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9370
9371         * cli/cli-decode.c (set_cmd_completer): New function.
9372         * command.h (set_cmd_completer): Declare.
9373         * cli/cli-decode.h (set_cmd_completer): Ditto.
9374
9375         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9376         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9377         * win32-nat.c (_initialize_inftarg): Ditto.
9378         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9379         * proc-api.c (_initialize_proc_api): Ditto.
9380         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9381         * source.c (_initialize_source): Ditto.
9382         * exec.c (_initialize_exec): Ditto.
9383         * solib.c (_initialize_solib): Ditto.
9384         * top.c (init_main): Ditto.
9385         * tracepoint.c (_initialize_tracepoint): Ditto.
9386         * symfile.c (_initialize_symfile): Ditto.
9387         * printcmd.c (_initialize_printcmd): Ditto.
9388         * infcmd.c (_initialize_infcmd): Ditto.
9389         * corefile.c (_initialize_core): Ditto.
9390
9391 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9392
9393         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9394
9395 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9396
9397         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9398
9399 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9400
9401         * NEWS: Update headings, 5.2 has branched.
9402
9403 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9404
9405         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9406         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9407         (register_addr, REGISTER_RAW_SIZE): Likewise.
9408         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9409         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9410
9411 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9412
9413         * MAINTAINERS (x86-64): Add myself.
9414         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9415         changed value_ptr -> struct value *
9416
9417 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9418
9419         * configure.host (sparc64-*-freebsd): Add.
9420         * configure.tgt: Likewise.
9421         * config/sparc/fbsd.mh: New file.
9422         * config/sparc/fbsd.mt: Likewise.
9423         * config/sparc/nm-fbsd.h: Likewise.
9424         * config/sparc/tm-fbsd.h: Likewise.
9425
9426 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9427
9428         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9429         regformats/reg-s390x.dat.
9430
9431 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9432
9433         * utils.c: Add FIXME explaining true/false problem.
9434
9435 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9436
9437         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9438
9439 2002-02-28  Michael Chastain  <mec@shout.net>
9440
9441         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9442
9443 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9444
9445         * gdbserver/linux-s390-low.c: New file.
9446         * regformats/reg-s390.dat: New file.
9447         * regformats/reg-s390x.dat: New file.
9448         * gdbserver/configure.srv: Add S/390.
9449         * gdbserver/Makefile.in: Add S/390.
9450         * configure.tgt: Enable gdbserver for S/390.
9451
9452 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9453
9454         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9455         first line of the doc string for "info dos", except at the end of
9456         the sentence, since the short help stops at the first period.
9457
9458 2002-02-28  Jason Merrill  <jason@redhat.com>
9459
9460         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9461
9462 2002-02-27  Fred Fish  <fnf@redhat.com>
9463
9464         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9465         comment (dumy -> dummy).
9466
9467 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9468
9469         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9470
9471 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9472
9473       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9474
9475 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9476
9477         * gdbserver/acconfig.h: New file.
9478         * gdbserver/i387-fp.c: New file.
9479         * gdbserver/i387-fp.h: New file.
9480         * gdbserver/linux-x86-64.c: New file.
9481         * regformats/reg-x86-64.dat: New file.
9482         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9483         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9484         * gdbserver/configure.in: Add support for regsets.
9485         * gdbserver/config.in: Regenerate.
9486         * gdbserver/configure: Regenerate.
9487         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
9488         * gdbserver/linux-low.h: New file.
9489         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
9490         for regsets.
9491         * gdbserver/linux-arm-low.c: Include "linux-low.h".
9492         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9493         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9494         * gdbserver/linux-mips-low.c: Include "linux-low.h".
9495         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9496         * gdbserver/linux-sh-low.c: Include "linux-low.h".
9497         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
9498         "i387-fp.h".  Add PTRACE_GETREGS and friends.
9499         * gdbserver/regcache.c (supply_register): New function.
9500         (supply_register_by_name): New function.
9501         (collect_register): New function.
9502         (collect_register_by_name): New function.
9503
9504 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9505
9506         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9507         (config.status): Add configure.srv dependency.
9508         (server_h): Add config.h dependency.
9509
9510 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9511
9512         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9513         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9514         * gdbserver/configure.srv: Change i386-*-linux* to use
9515         reg-i386-linux.o.
9516
9517 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9518
9519         * x86-64-tdep.c: Re-indent.  Update copyright date.
9520
9521 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9522
9523         From Michal Ludvig <mludvig@suse.cz>:
9524         * x86-64-tdep.c (value.h): Delete.
9525         (gdb_assert.h): Include.
9526         (x86_64_register_convert_to_virtual,
9527         x86_64_register_convert_to_raw ): Add check which lets only
9528         floating-point values to be converted.
9529         (value_push): Delete.
9530         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9531         (i386_gdbarch_init): Number of register_bytes fixed.
9532
9533 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9534
9535         * MAINTAINERS: Add x86-64 target.
9536
9537 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9538
9539         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9540         * osfsolib.c (solib_map_sections): Ditto.
9541         * irix5-nat.c (solib_map_sections): Ditto.
9542         * corelow.c (gdb_check_format): Ditto.
9543         * symfile.c (symfile_bfd_open): Ditto.
9544         * solib.c (solib_map_sections): Ditto.
9545         Fix PR gdb/354.
9546
9547 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9548
9549         * remote.c (_initialize_remote): By default, disable ``e'' and
9550         ``E'' step out-of-range packets.
9551
9552 2002-02-26  Andreas Schwab  <schwab@suse.de>
9553
9554         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9555         m68k_linux_frame_saved_pc.
9556         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9557         in_sigtramp.
9558         (SIGCONTEXT_PC_OFFSET): Remove.
9559         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9560         m68k_linux_sigtramp_saved_pc): New functions.
9561         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9562         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9563         (UCONTEXT_PC_OFFSET): Define.
9564         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9565         non-RT and RT signal trampolines.
9566
9567 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
9568
9569         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9570         (TARGET_NBPG, STACK_END_ADDR): Delete
9571         (VARIABLES_INSIDE_BLOCK): Delete.
9572
9573 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
9574
9575         * utils.c (perror_with_name): Make string parameter constant.
9576         (print_sys_errmsg): Ditto.
9577         (query): Ditto.
9578         * defs.h (perror_with_name): Update.
9579         (print_sys_errmsg): Update.
9580         (query): Update.
9581
9582 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
9583
9584         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9585         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9586
9587 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9588
9589         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9590         if it already matches the current architecture from the exec file.
9591         Include arch-utils.h for gdbarch_info_init prototype.
9592         * Makefile.in (rs6000-nat.o): Update dependencies.
9593
9594 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
9595
9596         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9597          list of exported variables.
9598
9599 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
9600
9601         * gdbserver/configure.srv: New file.
9602         * gdbserver/configure.in: Use configure.srv instead
9603         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
9604         from it.
9605         * gdbserver/configure: Regenerated.
9606         * gdbserver/terminal.h: New file.
9607         * gdbserver/Makefile.in: Update for configure changes.  Remove
9608         more unneeded include paths.
9609
9610 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9611
9612         From wiz at danbala:
9613         * config/sparc/tm-sp64.h: Fix grammar and typos.
9614         Fix PR gdb/287.
9615
9616 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9617
9618         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9619         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
9620         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9621         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9622         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9623         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9624         * s390-tdep.c: Ditto.
9625         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9626         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9627         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9628         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9629         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9630         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9631         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9632         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9633         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9634         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9635         Fix PR gdb/378.
9636
9637 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9638
9639         * lin-thread.c: Delete file.
9640         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9641         to gdb_proc_service.h.
9642         * configure: Re-generate.
9643
9644         * ocd.c (ocd_open): Do not try to open the "ocd" device.
9645         * serial.c (serial_open): Delete check for "ocd".
9646         Fix PR gdb/349.
9647
9648         * Makefile.in (linux-thread.o): Delete target.
9649         * linux-thread.c: Delete file.
9650
9651         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
9652         renamed SH files to be consistent.
9653
9654         * symtab.c (sort_search_symbols): Use xfree.
9655
9656 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9657
9658         * arm-linux-tdep.c (arm_linux_init_abi): Register
9659         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9660         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9661         definition with undef, since we don't want the sysvr4 definition.
9662         (SKIP_TRAMPOLINE_CODE): Likewise.
9663
9664 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9665
9666         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9667
9668         * configure.in: (AC_CHECK_FUNCS) Added test for
9669         canonicalize_file_name Regenerated.
9670         * config.in, configure: Regenerated.
9671         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9672         defined use canonicalize_file_name.
9673
9674 2002-02-23  Michael Chastain  <mec@shout.net>
9675
9676         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9677
9678 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9679
9680         * README: Remove references to cygnus.com.
9681         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9682         dot com'' form.  Remove references to cygnus.com and sourceware.
9683
9684 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9685
9686         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9687         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9688         1003.1-2001 no longer allows "head -1".
9689         * gdb/Makefile.in (version.c): Likewise.
9690         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9691         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9692         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
9693
9694 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9695
9696         * cli/cli-decode.c (cmd_cfunc_eq): New function.
9697         * command.h (cmd_cfunc_eq): Declare.
9698         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9699
9700         * cli/cli-cmds.h (is_complete_command): Change parameter to a
9701         ``struct cmd_list_element *''.
9702         * cli/cli-cmds.c (is_complete_command): Update.  Use
9703         cmd_cfunc_eq.
9704         * top.c (execute_command): Pass the command to
9705         is_complete_command.
9706         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9707
9708 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
9709
9710         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9711         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9712         architecture defines.
9713         * s390-tdep.c (s390_gdbarch_init): Likewise.
9714
9715 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9716
9717         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9718         (arm_linux_push_arguments): Likewise.
9719         (arm_linux_init_abi): Register them.  Also register linux-specific
9720         call_dummy_words.
9721         (find_minsym_and_objfile): Use strcmp, not STREQ.
9722         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9723         (arm_linux_call_dummy_words): Delete declaration.
9724         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9725         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9726         declarations.
9727         (LOWEST_PC): Delete.
9728
9729 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9730
9731         * maint.c (print_section_info): Do not prepend `0x' to filepos
9732         output, it will be handled by local_hex_string_custom.
9733
9734 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
9735
9736         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9737         (store_newfpe_double, store_newfpe_extended, store_fpregister)
9738         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9739
9740 2002-02-22  Jim Blandy  <jimb@redhat.com>
9741
9742         Indicate that the bcache functions don't change the strings
9743         they're passed.
9744         * bcache.h (bcache, hash): Add `const' keywords to declarations.
9745         * bcache.c (bcache, hash): Add `const' keywords to definitions.
9746
9747 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
9748
9749         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9750
9751 2002-02-21  Christopher Faylor  <cgf@redhat.com>
9752
9753         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9754         find the complete path to a loaded DLL.
9755
9756 2002-02-21  Fred Fish  <fnf@redhat.com>
9757
9758         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9759         that marks the end of the range of a function, enter a line number
9760         entry that has a line number of zero and a PC offset that matches
9761         the end of the function.  This starts a range of PC's for which no
9762         line number information is known.
9763         * symtab.c (find_pc_sect_line): If our best fit is in a range of
9764         PC's for which no line number info is found (line number is zero)
9765         then we didn't find any valid line information.
9766         * symtab.h: Document use of zero line number entry.
9767
9768 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
9769
9770         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9771         (have_ptrace_getvrregs): Define for run time checks.
9772         (gdb_vrregset_t): New type for Altivec register handling.
9773         (fetch_register, store_register): Fetch/store altivec register
9774         when needed.
9775         (fetch_altivec_register, store_altivec_register): New functions.
9776         (supply_vrregset, fill_vrregset): New functions.
9777         (fetch_altivec_registers, store_altivec_registers): New functions.
9778         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9779         registers as well.
9780
9781 2002-02-21  Jiri Smid  <smid@suse.cz>
9782
9783         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9784
9785 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
9786
9787         * Makefile.in (armnbsd-nat.o): Update dependencies.
9788         * armnbsd-nat.c (supply_gregset): New function.  Common code to
9789         supply the integer register set.
9790         (supply_fparegset): New function.  Similar for FPA registers.
9791         (fetch_regs, fetch_fp_regs): Use them.
9792         (fetch_core_registers): Likewise.
9793         (fetch_elfcore_registers): New function.
9794         (arm_netbsd_elfcore_fns): New core-file type specification.
9795         (_initialize_arm_netbsd_nat): Register it.
9796
9797 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
9798
9799         * armnbsd-nat.c: Include gdbcore.h.
9800         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9801         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9802         'void' to declaration, to shut up ARI.
9803         (fetch_core_registers): Make static.  Rewrite using supply_register.
9804         (arm_netbsd_core_fns): New core-file type specification.
9805         (_initialize_arm_netbsd_nat): New function.
9806
9807 2002-02-21  Christopher Faylor  <cgf@redhat.com>
9808
9809         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9810         value.
9811
9812 2002-02-20  Christopher Faylor  <cgf@redhat.com>
9813
9814         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9815         fails.
9816
9817 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9818
9819         * jv-exp.y (parse_number): Change type of implicit longs
9820         to builtin_type_uint64.
9821
9822 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9823
9824         * gdbserver/linux-low.c (mywait): Change argument to waitpid
9825         to be an integer instead of a `union wait'.
9826
9827 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9828
9829         * mips-linux-nat.c: Call the operating system GNU/Linux.
9830         * mips-linux-tdep.c: Likewise.
9831         * mips-tdep.c: Likewise.
9832
9833 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9834
9835         Fix PR gdb/265.
9836         * jv-exp.y (parse_number): Handle 64-bit integers.
9837
9838 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9839
9840         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
9841         AC_STDC_HEADERS to AC_HEADER_STDC.
9842         * gdbserver/configure: Regenerated.
9843
9844 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
9845
9846         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9847         is defined.
9848         * sparc-tdep.c (get_longjmp_target): Likewise.
9849
9850 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
9851
9852         * News: Add news about ARM and Multi-arch.  Mention the new target
9853         arm*-*-netbsd*.
9854
9855 2002-02-19  Jim Blandy  <jimb@redhat.com>
9856
9857         * stabsread.c (error_type_complaint): Improve error message.
9858
9859 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
9860
9861         * gdbserver/README: Update documentation.
9862         * gdbserver/configure.in: Update configury to match documentation.
9863         * gdbserver/Makefile.in: Likewise.
9864         * gdbserver/configure: Regenerated.
9865         * gdbserver/aclocal.m4: New file, generated by aclocal.
9866         * gdbserver/config.in: New file, generated by autoheader.
9867
9868 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9869
9870         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9871         armnbsd-nat.c.
9872
9873 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9874
9875         * arm-tdep.h (enum arm_float_model): New enum.
9876         (struct gdbarch_tdep): Add fp_model.
9877         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
9878         up floating-point conversions until we know the floating-point model
9879         in use by the inferior.  Don't complain about being unable to
9880         determine the ABI of the inferior when we don't have one.
9881         (arm_extract_return_value): Support different floating-point models.
9882         (arm_store_return_value): Likewise.
9883         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9884         ARM_FLOAT_SOFT.
9885         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9886
9887 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9888
9889         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9890         of ``current_gdbarch''.
9891
9892 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9893
9894         * armnbsd-nat.c : ANSIfy all function declarations.
9895         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9896         (fetch_inferior_registers): Re-implement in terms of above.
9897         (store_register, store_regs, store_fp_register, store_fp_regs): New.
9898         (store_inferior_registers): Re-implement in terms of above.
9899
9900 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9901
9902         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9903         kernel.
9904         * arm-linux-tdep.c: Likewise.
9905         * config/arm/tm-linux.h: Likewise.
9906
9907 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9908
9909         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9910         * config/arm/nbsd.mt (TM_FILE): Delete.
9911         * config/arm/tm-nbsd.h: Delete.
9912
9913 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9914
9915         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9916         Initialize CALL_DUMMY_LENGTH.
9917
9918 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
9919
9920         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9921         function.
9922         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9923         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9924         defines one thing and that is incorrect for this port.
9925         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9926
9927 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9928
9929         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9930
9931 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
9932
9933         * win32-nat.c (display_selector): New function. Displays information
9934         about the information returned by GetThreadSelectorEntry API function.
9935         (display_selectors): New function. Displays the infomation of
9936         the selector given as argument, or of CS, DS ans FS selectors
9937         if no argument is given.
9938         ( _initialize_inftarg): Add "w32" as info prefix command.
9939         Add "info w32 selector" as command calling display_selectors.
9940
9941 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
9942
9943         * i386-tdep.c (get_longjmp_target): Fix compilation failure
9944         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9945         if not defined.
9946
9947 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9948
9949         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9950
9951 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9952
9953         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9954         (arm_fix_call_dummy): Call it.
9955         (arm_call_dummy_breakpoint_offset): Delete.
9956         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9957         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9958
9959 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
9960
9961         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9962         Default to func_frame_chain_valid.
9963         * gdbarch.h, gdbarch.c: Re-generate.
9964         * frame.h (FRAME_CHAIN_VALID): Delete definition.
9965
9966 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
9967
9968         * ppc-linux-nat.c: Update copyright.
9969         (fetch_register, store_register): Add tid parameter, don't compute
9970         tid here.
9971         (fetch_ppc_registers, store_ppc_registers): Add tid
9972         parameter. Pass it along to callees.
9973         (fetch_inferior_registers, store_inferior_registers): Compute tid
9974         here, and pass it to calleed functions.
9975         (fill_gregset, supply_fpregset): Clean up formatting.
9976
9977 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9978
9979         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9980         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9981
9982 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
9983
9984         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9985         * gdbarch.c gdbarch.h: Regenerate.
9986         * breakpoint.c (create_longjmp_breakpoint): Always compile this
9987         function.
9988         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9989         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9990         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9991
9992         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9993         * arm-tdep.c (arm_get_longjmp_target): New function.
9994         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
9995         this to a positive value register arm_get_longjmp_target as the
9996         longjmp handler.
9997         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9998         (arm_linux_init_abi): Set up longjmp description in tdep.
9999         * armnbsd-nat.c (get_longjmp_target): Delete.
10000         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10001         description in tdep.
10002         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10003         (get_longjmp_target): Delete declaration.
10004         (GET_LONGJMP_TARGET): Delete.
10005         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10006         (GET_LONGJMP_TARGET): Delete.
10007
10008 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10009
10010         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10011         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10012         of ``current_gdbarch''.
10013
10014 2002-02-17  Tom Tromey  <tromey@redhat.com>
10015
10016         * cli/cli-cmds.c (compare_strings): New function.
10017         (complete_command): Only print each unique item once.
10018         * completer.h (complete_line): Declare.
10019         * completer.c (complete_line): New function.
10020         (line_completion_function): Use it.
10021
10022 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10023
10024         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10025         * gdbarch.h, gdbarch.c: Re-generate.
10026
10027 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10028
10029         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10030
10031 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10032
10033         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10034         * valops.c (value_arg_coerce): Don't take the address of a reference
10035         to convert an argument to a reference.
10036
10037 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10038
10039         * win32-nat.c (get_image_name): New function.
10040         (handle_load_dll): Use get_image_name function.
10041         (get_child_debug_event): Avoid registering debug events until possibly
10042         execed process is started.
10043         (child_create_inferior): Allow invocation via shell so that command
10044         line redirection, etc.  works ok.
10045         (_initialize_inftarg): Add new command: "set shell" to control whether
10046         a shell is used to start a process.
10047
10048 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10049
10050         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10051         instead of find_register_by_number.
10052         (cannot_store_register): Likewise.
10053
10054 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10055
10056         * dwarf2read.c: Replace fprintf (stderr, ...) by
10057         fprintf_unfiltered (gdb_stderr, ...).
10058
10059 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10060
10061         * gdbserver/gdbserver.1: Document --attach.
10062
10063 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10064
10065         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10066         descriptions.
10067         * arm-tdep.c (arm_default_arm_le_breakpoint)
10068         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10069         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10070         traditional breakpoint defines.
10071         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10072         (arm_gdbarch_init): Initialize new breakpoint variables.
10073         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10074         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10075         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10076         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10077         code out to ...
10078         (arm_netbsd_init_abi_common): ... here; new function.
10079         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10080         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10081         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10082         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10083
10084 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10085
10086         * arm-tdep.h (enum arm_abi): New enum.
10087         (struct gdbarch_tdep): New structure.
10088         (LOWEST_PC): Provide a default.
10089         (arm_gdbarch_register_os_abi): Declare new function.
10090         * arm-tdep.c (arm_abi_names): New array.
10091         (process_note_abi_tag_sections): New function.
10092         (get_elfosabi): New function.
10093         (arm_gdbarch_register_os_abi): New function.
10094         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10095         support for that ABI has been built in, then call the appropriate
10096         configuration routine.  Use gdbarch_num_regs() to get the number
10097         of registers.
10098         (arm_dump_tdep): New function.
10099         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10100         place-holder functions.
10101         (_initialize_arm_tdep): Register them.
10102         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10103
10104         * armnbsd-tdep.c: New file.
10105         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10106         * config/arm/nbsd.mt (TDEPFILES): Add it.
10107         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10108
10109         * armnbsd-nat.c: Include regcache.h.
10110         * Makefile.in (armnbsd-nat.o): Update dependency list.
10111
10112         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10113
10114 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10115
10116         * gdbserver/Makefile.in: Fix typos in target rules.
10117
10118 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10119
10120         Fix part of PR gdb/267.
10121         * linespec.c (find_methods): Handle constructors specially for now.
10122
10123 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10124
10125         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10126         handling.
10127         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10128         standard_coerce_float_to_double().
10129
10130 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10131
10132         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10133         GDBINIT_FILENAME.
10134
10135 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10136
10137         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10138         find_variant_by_name, because it confuses the multiarch
10139         framework. Return NULL if there isn't an architecture with the
10140         user supplied name, instead of forcing a different one without
10141         recording the change with the multiarch machinery.
10142         (find_variant_by_name): Delete.
10143
10144 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10145
10146         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10147         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10148
10149 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10150
10151         * stack.c (print_frame_info_base): When calling
10152         print_frame_info_listing_hook, set current_source_symtab.
10153
10154 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10155
10156         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10157         and remove unused $(INCLUDE_DIR).
10158         Add regcache.c to OBS.
10159         Add generated register protocol files to clean target.
10160         Update dependencies for new objects, obsolete old target code.
10161
10162         * gdbserver/linux-low.c: Remove all platform-specific code to
10163         new files.  Remove various dead code.  Update to use regcache
10164         functionality.
10165         * gdbserver/remote-utils.c (fromhex): Add return statement
10166         to quiet warning.
10167         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10168         constant.
10169         (input_interrupt): Add integer parameter to match prototype
10170         of a signal handler.
10171         (outreg): Use register_data ().
10172         (prepare_resume_reply): Use gdbserver_expedite_regs.
10173         * gdbserver/server.c (main): Dynamically allocate own_buf because
10174         PBUFSIZ is no longer constant.  Use registers_to_string () and
10175         registers_from_string ().
10176         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10177         for error (), fatal (), and warning ().  Update definition of
10178         PBUFSIZ to use regcache functionality.  Add include guard.
10179         * gdbserver/utils.c (fatal): Add missing ``const''.
10180         (warning): New function.
10181
10182         * regformats/regdat.sh: Include "regcache.h" in generated files.
10183         Provide init_registers () function.
10184         * regformats/regdef.h: Add prototype for set_register_cache ().
10185         Add include guard.
10186
10187         * gdbserver/linux-arm-low.c: New file.
10188         * gdbserver/linux-i386-low.c: New file.
10189         * gdbserver/linux-ia64-low.c: New file.
10190         * gdbserver/linux-m68k-low.c: New file.
10191         * gdbserver/linux-mips-low.c: New file.
10192         * gdbserver/linux-ppc-low.c: New file.
10193         * gdbserver/linux-sh-low.c: New file.
10194
10195         * gdbserver/regcache.c: New file.
10196         * gdbserver/regcache.h: New file.
10197
10198         * gdbserver/low-linux.c: Removed obsolete file.
10199
10200 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10201
10202         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10203         * config/i386/linux.mt: Likewise.
10204         * config/ia64/linux.mt: Likewise.
10205         * config/m68k/linux.mh: Likewise.
10206         * config/powerpc/linux.mh: Likewise.
10207         * config/mips/linux.mt: Likewise.
10208
10209         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10210
10211         * config/i386/i386lynx.mh: Mark gdbserver variables
10212         as (currently) obsolete for this target.
10213         * config/i386/nbsd.mt: Likewise.
10214         * config/i386/nbsdelf.mt: Likewise.
10215         * config/m32r/m32r.mt: Likewise.
10216         * config/m68k/m68klynx.mh: Likewise.
10217         * config/m68k/nbsd.mt: Likewise.
10218         * config/m68k/sun3os4.mh: Likewise.
10219         * config/mips/vr5000.mt: Likewise.
10220         * config/ns32k/nbsd.mt: Likewise.
10221         * config/pa/hppabsd.mh: Likewise.
10222         * config/pa/hppaosf.mh: Likewise.
10223         * config/powerpc/nbsd.mt: Likewise.
10224         * config/rs6000/rs6000lynx.mh: Likewise.
10225         * config/s390/s390.mt: Likewise.
10226         * config/s390/s390x.mt: Likewise.
10227         * config/sparc/sparclynx.mh: Likewise.
10228         * config/sparc/sun4os4.mh: Likewise.
10229         * config/i386/x86-64linux.mt: Likewise.
10230         * config/sparc/linux.mh: Likewise.
10231
10232 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10233
10234         * configure.tgt: Configure gdbserver only for known working
10235         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10236         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10237         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10238         * configure: Regenerated.
10239
10240 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10241
10242         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10243
10244         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10245         (default_gcore_mach): Just return 0, work around a problem in bfd.
10246         (default_gcore_target): OK to return NULL if exec_bfd is null.
10247         (make_mem_sec): Use a cast, avoid a warning.
10248
10249         * procfs.c (find_memory_regions_callback): Use a cast instead of
10250         calling host_pointer_to_address (which complains if
10251         sizeof (host pointer) != sizeof (target pointer)).
10252         (procfs_make_note_section): Avoid overflow in psargs string.
10253
10254         * procfs.c (procfs_make_note_section): Make the default
10255         implementation return an error.
10256
10257 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10258
10259         * procfs.c (procfs_make_note_section): Provide a default definition
10260         (for alpha-dec-osf4.0f). Fix typos.
10261
10262 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10263
10264         * linux-proc.c: Add include of regcache.h.
10265         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10266
10267 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10268
10269         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10270         * memattr.c (create_mem_region): Disallow useless empty region.
10271         Regions are half-open intervals, so allow [A..B) [B..C) as
10272         non-overlapping.
10273
10274 2002-02-13  Michael Chastain <mec@shout.net>
10275
10276         * defs.h: Kill CONST_PTR.
10277         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10278         * c-lang.c (c_builtin_types): Likewise.
10279         * ch-lang.c (ch_builtin_types): Likewise.
10280         * f-lang.c (f_builtin_types): Likewise.
10281         * language.c (unknown_builtin_types): Likewise.
10282         * m2-lang.c (m2_builtin_types): Likewise.
10283         * p-lang.c (pascal_builtin_types): Likewise.
10284         * scm-lang.c (c_builtin_types): Likewise.
10285
10286 2002-02-13  Keith Seitz  <keiths@redhat.com>
10287
10288         * arm-tdep.h (arm_get_next_pc): Add declaration.
10289
10290 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10291
10292         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10293         with other related struct-returning functions.
10294         (arm_extract_struct_value_address): New function.
10295         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10296         initialize float_format, double_format and long_double_format as
10297         appropriate to the endianness of the target.
10298         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10299         (arm_use_struct_convention): Delete declaration.
10300         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10301
10302 2002-02-13  Keith Seitz  <keiths@redhat.com>
10303
10304         * defs.h (core_addr_to_string_nz): New function.
10305
10306 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10307
10308         Apply missing bits of 2002-01-15 patch.
10309         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10310         (fill_fpregset): Use i387_fill_fsave.
10311
10312 2002-02-12  Keith Seitz  <keiths@redhat.com>
10313
10314         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10315         (core_addr_to_string_nz): New function.
10316
10317 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10318
10319         * arm-linux-nat.c: Really include arm-tdep.h.
10320         * config/arm/tm-linux.h (struct type, struct value): Declare.
10321
10322 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10323
10324         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10325         (gcore section): Ifdef for Solaris and Unixware only.
10326         (procfs_do_thread_registers): Unixware needs one lwpstatus
10327         per thread (not one prstatus or pstatus).
10328         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10329         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10330         once before iterating over threads.
10331
10332 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10333
10334         * arm-tdep.h: New file.
10335         * arm-tdep.c: Include arm-tdep.h.
10336         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10337         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10338         (arm_print_float_info, arm_register_type, convert_to_extended)
10339         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10340         (arm_extract_return_value, arm_register_name): Make static.
10341         (arm_software_single_step): Similarly.  Fix types in declaration.
10342         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10343         (arm_store_return_value, arm_store_struct_return): New functions.
10344         (arm_gdbarch_init): Register the above functions.  Also register
10345         call_dummy_start_offset, sizeof_call_dummy_words,
10346         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10347         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10348         max_register_virtual_size, register_size.  Set up
10349         prologue_cache.saved_regs here, rather than ...
10350         (_initialize_arm_tdep): ... here.
10351         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10352         declarations.
10353         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10354         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10355         (arm_print_float_info, arm_register_type, convert_to_extended)
10356         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10357         (arm_extract_return_value, arm_register_name): Delete declarations.
10358         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10359         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10360         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10361         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10362         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10363         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10364         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10365         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10366         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10367         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10368         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10369         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10370         interface.
10371         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10372         * remote-rdi.c remote-rdp.c: Likewise.
10373         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10374         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10375         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10376         definition.
10377
10378         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10379         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10380         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10381         from non-ARM_ prefixed definitions.
10382         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10383         all uses of above.
10384         * remote-rdi.c remote-rdp.c: Likewise.
10385         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10386
10387 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10388
10389         * arm-tdep.c (arm_frameless_function_invocation)
10390         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10391         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10392         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10393         (arm_pop_frame, arm_get_next_pc): Make static.
10394         (arm_gdbarch_init): Register above in gdbarch structure.
10395         (arm_read_fp): Renamed from arm_target_read_fp.
10396         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10397         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10398         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10399         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10400         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10401         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10402         (arm_pc_is_thumb_dummy): Delete declarations.
10403         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10404         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10405         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10406         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10407
10408 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10409
10410         * symtab.c (compare_search_syms): New function.
10411         (sort_search_symbols): New function.
10412         (search_symbols): Sort symbols after searching rather than
10413         before.
10414
10415 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10416
10417         * NEWS: Linux -> GNU/Linux.
10418
10419 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10420
10421         * gdbarch.sh: For for level one methods, disallow a definition
10422         when partially multi-arched.  Add comments explaining rationale.
10423         * gdbarch.h: Re-generate.
10424
10425 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10426
10427         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10428         multi-arch partial.
10429
10430 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10431
10432         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10433         field.  Use diff -u.
10434         * gdbarch.c: Re-generate.
10435
10436 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10437
10438         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10439         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10440         partial.
10441
10442 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10443
10444         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10445         multi-arch partial.
10446         (PUSH_ARGUMENTS): Switch to using predefault.
10447         * gdbarch.c: Regenerate.
10448
10449 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10450
10451         * valops.c (PUSH_ARGUMENTS): Delete definition.
10452         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10453         partial.  Default to default_push_arguments.
10454         * gdbarch.h, gdbarch.c: Regenerate.
10455
10456 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10457
10458         * defs.h (throw_exception): Rename return_to_top_level.  Update
10459         comments.
10460         * utils.c (error_stream, internal_verror, quit): Ditto.
10461         * top.c (throw_exception, catcher): Ditto.
10462         * sparclet-rom.c (sparclet_load): Ditto.
10463         * remote.c (interrupt_query, minitelnet): Ditto.
10464         * remote-sds.c (interrupt_query): Ditto.
10465         * remote-mips.c (mips_error, mips_kill): Ditto.
10466         * ocd.c (interrupt_query): Ditto.
10467         * monitor.c (monitor_interrupt_query): Ditto.
10468         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10469         * target.h: Update comment.
10470
10471         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10472
10473 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10474
10475         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10476         default_double_format.
10477         * gdbarch.h, gdbarch.c: Re-generate.
10478         * findvar.c (floatformat_unknown): Delete variable definition.
10479         * doublest.h (floatformat_unknown): Delete variable declaration.
10480
10481 2002-02-09  Jim Blandy  <jimb@redhat.com>
10482
10483         * stabsread.c (read_type): Add code to parse Sun's syntax for
10484         prototyped function types.
10485
10486 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10487
10488         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10489         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10490
10491 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10492
10493         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10494         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
10495         now _initialize_xcoffsolib gets called again and overrides the
10496         commands from solib.c in a native configuration.
10497
10498 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
10499
10500         * doublest.c (store_typed_floating): Don't try to return a value.
10501         Fixes PR gdb/290.
10502
10503 2002-02-08  Jim Blandy  <jimb@redhat.com>
10504
10505         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10506         is prototyped and has no arguments, print its argument list as
10507         `(void)'.
10508
10509 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10510
10511         * MAINTAINERS (write-after-approval): Add myself.
10512         (paper-trail): I've escaped!
10513
10514 2002-02-08  Christopher Faylor  <cgf@redhat.com>
10515
10516         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10517         changes.
10518         (_initialize_check_for_gdb_ini): Ditto.
10519
10520 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
10521
10522         * win32-nat.c (cygwin_pid_to_str): Fix typo.
10523         xaprintf -> xasprintf.
10524
10525 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
10526
10527         * win32-nat.c: Remove use of printf and sprintf functions.
10528
10529 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
10530
10531         * arm-tdep.c (arm_frame_chain_valid): Make static.
10532         (arm_push_arguments): Likewise.
10533         (arm_gdbarch_init): New function.
10534         (_initialize_arm_tdep): Call it.
10535         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10536         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10537         (FRAME_CHAIN_VALID): Delete.
10538         (arm_frame_chain_valid): Delete declaration.
10539         (PUSH_ARGUMENTS): Delete.
10540         (arm_push_arguments): Delete declaration.
10541         (CALL_DUMMY_P): Delete.
10542
10543 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
10544             Corinna Vinschen  <vinschen@redhat.com>
10545
10546         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10547         on builtin float types.
10548
10549 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
10550
10551         * utils.c: Include <curses.h> before "bfd.h".
10552         * tui/tui-hooks.c: Likewise.
10553         * tui/tui.c: Likewise.
10554         * tui/tuiCommand.c: Likewise.
10555         * tui/tuiData.c: Likewise.
10556         * tui/tuiDataWin.c: Likewise.
10557         * tui/tuiDisassem.c: Likewise.
10558         * tui/tuiGeneralWin.c: Likewise.
10559         * tui/tuiIO.c: Likewise.
10560         * tui/tuiLayout.c: Likewise.
10561         * tui/tuiRegs.c: Likewise.
10562         * tui/tuiSource.c: Likewise.
10563         * tui/tuiSourceWin.c: Likewise.
10564         * tui/tuiStack.c: Likewise.
10565         * tui/tuiWin.c: Likewise.
10566
10567 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
10568
10569         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10570         to include space for pseudoregs as well. Update loops accordingly.
10571         (sh_fp_frame_init_saved_regs): Ditto.
10572         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10573
10574 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10575
10576         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10577         Add Richard Earnshaw to Arm maintainers.
10578
10579 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10580
10581         * defs.h (warning_begin): Delete declaration.
10582
10583         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10584         Delete macro.
10585
10586 2002-02-07  Michael Snyder  <msnyder@redhat.com>
10587
10588         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10589         Logic bug, remove misplaced else.
10590
10591 2002-02-07  Klee Dienes  <klee@apple.com>
10592
10593         * fork-inferior.c (fork_inferior): Add '!' to the list of
10594         characters that need to be quoted when building a string for the
10595         shell.  Quote '!' specifically with a backslash, since CSH chokes
10596         when trying to evaluate "str!str".
10597
10598 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
10599
10600         * rdi-share/host.h: Only provide a typedef for bool if it is not
10601         defined.
10602
10603 2002-02-04  Michael Snyder  <msnyder@redhat.com>
10604
10605         * breakpoint.h (enum bptype): Add new overlay event bp type.
10606         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10607
10608         * breakpoint.c (create_internal_breakpoint): New function.
10609         (internal_breakpoint_number): Moved into create_internal_breakpoint.
10610         (create_longjmp_breakpoint): Use create_internal_breakpoint.
10611         (create_thread_event_breakpoint): Ditto.
10612         (create_solib_event_breakpoint): Ditto.
10613         (create_overlay_event_breakpoint): New function.
10614         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10615         (update_breakpoints_after_exec): Delete and re-initialize
10616         overlay event breakpoints after an exec.  Add FIXME comment
10617         about longjmp breakpoint.
10618         (print_it_typical): Ignore overlay event breakpoints.
10619         (print_one_breakpoint): Ditto.
10620         (mention): Ditto.
10621         (bpstat_what): Do not stop for overlay event breakpoints.
10622         (delete_breakpoint): Don't delete overlay event breakpoints.
10623         (breakpoint_re_set_one): Delete the overlay event breakpoint.
10624         (breakpoint_re_set): Re-create overlay event breakpoint.
10625
10626         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10627         (overlay_manual_command): Disable overlay breakpoints.
10628         (overlay_off_command): Disable overlay breakpoints.
10629
10630 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10631
10632         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10633         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10634         to here from config/tm-arm.h.
10635         (coff_sym_is_thumb): Make static.
10636         (arm_elf_make_msymbol_special): New function.
10637         (arm_coff_make_msymbol_special): New function.
10638         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10639         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10640         (coff_sym_is_thumb): Delete declaration.
10641         (arm_elf_make_msymbol_special): Declare.
10642         (arm_coff_make_msymbol_special): Declare.
10643         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10644         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10645
10646 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10647
10648         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10649
10650 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10651
10652         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10653         * gdbarch.c gdbarch.h: Regenerate.
10654         * arch-utils.c (default_print_float_info): New function.
10655         * arch-utils.h (default_print_float_info): Prototype it.
10656         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10657         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10658         (PRINT_FLOAT_INFO): Document it.
10659
10660         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10661         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10662         (PRINT_FLOAT_INFO): Define.
10663
10664 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
10665
10666         * win32-nat.c (_initialize_check_for_gdb_ini):
10667         Add typecast to sprintf argument to suppress a warning.
10668
10669 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
10670
10671         * win32-nat.c (last_sig): Changed type of variable to target_signal,
10672         to allow easier handling of pass state.
10673         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10674         that gives exception name and address.
10675         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10676         and set last_sig value to ourstatus->value.sig. Some missing
10677         exceptions added.
10678         (child_continue): Correctly report continue_status.
10679         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10680         TARGET_SIGNAL_0 (new default value).
10681         (child_resume): consider sig argument passed to decide if
10682         the exception should be passed to debuggee or not.
10683
10684 2002-02-05  Michael Snyder  <msnyder@redhat.com>
10685
10686         * regcache.c (fetch_register): Call target_fetch_register
10687         only if we don't call FETCH_PSEUDO_REGISTER.
10688         (store_register): Call target_store_register only if we
10689         don't call STORE_PSEUDO_REGISTER.
10690
10691 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
10692
10693         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10694         ELF_MAKE_MSYMBOL_SPECIAL.
10695         * gdbarch.c, gdbarch.h: Regenerate.
10696         * arch-utils.c (default_make_msymbol_special): New function.
10697         * arch-utils.h (default_make_msymbol_special): Export.
10698         * elfread.c (elf_symtab_read): Compile use of
10699         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10700         multiarched.
10701         * coffread.c (coff_symtab_read): Ditto, for
10702         COFF_MAKE_MSYMBOL_SPECIAL.
10703
10704 2002-02-05  Jim Blandy  <jimb@redhat.com>
10705
10706         * solib-svr4.c (svr4_truncate_ptr): New function.
10707         (svr4_relocate_section_addresses): Do the address arithmetic with
10708         the appropriate truncation for target addresses, even when
10709         CORE_ADDR is larger than a target address.
10710
10711 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10712
10713         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10714         to (int *).
10715
10716 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10717
10718         * gdbserver/linux-low.c (kill_inferior): Remove commented out
10719         code.
10720
10721 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10722
10723         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10724
10725 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10726
10727         * gdbserver/linux-low.c: Remove unused include files.
10728
10729 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10730
10731         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10732         (read_inferior_memory): Use it.
10733         (write_inferior_memory): Likewise.
10734
10735 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10736
10737         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10738         grubbing through sys_errlist.
10739
10740 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
10741
10742         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10743
10744 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
10745         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10746
10747 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
10748
10749         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10750         (do_sfunc, set_cmd_sfunc): New functions.
10751
10752         * command.h (struct cmd_list_element): Add field func.
10753         * cli/cli-decode.h (struct cmd_list_element): Ditto.
10754         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10755         * cli/cli-decode.h: Ditto.
10756
10757         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10758         (help_all, help_cmd_list): Ditto.
10759         (find_cmd, complete_on_cmdlist): Ditto.
10760         * top.c (execute_command): Ditto.
10761
10762         * cli/cli-setshow.c (do_setshow_command): Call func instead of
10763         function.sfunc.
10764
10765         * infcmd.c (notice_args_read): Fix function signature.
10766
10767         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10768         * cli/cli-decode.c (add_set_cmd): Ditto.
10769         * utils.c (initialize_utils): Ditto.
10770         * maint.c (_initialize_maint_cmds): Ditto.
10771         * infrun.c (_initialize_infrun): Ditto.
10772         * demangle.c (_initialize_demangler): Ditto.
10773         * remote.c (add_packet_config_cmd): Ditto.
10774         * mips-tdep.c (_initialize_mips_tdep): Ditto.
10775         * cris-tdep.c (_initialize_cris_tdep): Ditto.
10776         * proc-api.c (_initialize_proc_api): Ditto.
10777         * kod.c (_initialize_kod): Ditto.
10778         * valprint.c (_initialize_valprint): Ditto.
10779         * top.c (init_main): Ditto.
10780         * infcmd.c (_initialize_infcmd): Ditto.
10781         * corefile.c (_initialize_core): Ditto.
10782         * arm-tdep.c (_initialize_arm_tdep): Ditto.
10783         * arch-utils.c (initialize_current_architecture): Ditto.
10784         (_initialize_gdbarch_utils): Ditto.
10785         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10786
10787         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10788         * wince.c (_initialize_inftarg): Ditto.
10789         * symfile.c (_initialize_symfile): Ditto.
10790         * mips-tdep.c (_initialize_mips_tdep): Ditto.
10791         * language.c (_initialize_language): Ditto.
10792         * arc-tdep.c (_initialize_arc_tdep): Ditto.
10793
10794 2002-02-04  Michael Snyder  <msnyder@redhat.com>
10795
10796         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10797
10798 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10799
10800         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10801         Add rules for building the register data files.
10802
10803 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10804
10805         * regformats/regdat.sh: Add braces to the definition of
10806         expedite_regs_${arch}.
10807
10808 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
10809
10810         * regformats/regdef.h (struct reg): Add comment describing the
10811         requirements for offset and size fields.
10812
10813 2002-02-04  Andreas Schwab  <schwab@suse.de>
10814
10815         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10816         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10817
10818 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
10819
10820         * gdbarch.sh (copyright): Update years in generated header.
10821         (SMASH_TEXT_ADDRESS): Add rule.
10822         * gdbarch.h, gdbarch.c: Re-generate.
10823         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10824         * dbxread.c: Likewise.
10825         * dwarfread.c: Likewise.
10826         * elfread.c: Likewise.
10827         * somread.c: Likewise.
10828
10829         * arm-tdep.c (arm_smash_text_address): New function.
10830         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10831
10832 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
10833
10834         Add support for hardware watchpoints on win32 native.
10835         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10836         CONTEXT_DEBUG_REGISTERS.
10837         (dr variable): New variable. Static array containing a local copy
10838         of debug registers.
10839         (debug_registers_changed): New variable.  Reflects when debug registers
10840         are changed and need to be written to inferior.
10841         (debug_registers_used): New variable. Reflects when any debug register
10842         was set, used when new threads are created.
10843         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10844         i386-nat code.
10845         (thread_rec): Set dr array if id is the thread of current_event .
10846         (child_continue, child_resume): Change the debug registers for all
10847         threads if debug_registers_changed.
10848         (child_add_thread): Change the debug registers if debug_registers_used.
10849         * config/i386/cygwin.mh: Add use of i386-nat.o file.
10850         Link nm.h to new nm-cygwin.h file.
10851         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10852         of hardware registers.
10853
10854 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
10855
10856         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10857         Restore behavour broken by 2002-01-20 Andrew Cagney
10858         <ac131313@redhat.com> IEEE_FLOAT removal.
10859
10860 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10861
10862         * c-valprint.c (c_val_print): Pass a proper valaddr to
10863         cp_print_class_method.
10864         * valops.c (search_struct_method): If there is only one method
10865         and args is NULL, return that method.
10866
10867 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10868
10869         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10870         accessing tag_name directly.
10871
10872 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10873
10874         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10875         of accessing tag_name directly.
10876
10877 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
10878
10879         PR gdb/280
10880         * gdbtypes.c (replace_type): New function.
10881         * gdbtypes.h (replace_type): Add prototype.
10882         * stabsread.c (read_type): Use replace_type.
10883
10884 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
10885
10886         * Makefile.in (memattr.o): Add missing dependencies rule.
10887
10888 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10889
10890         * breakpoint.c (break_at_finish_command): Really export.
10891         (break_at_finish_at_depth_command): Ditto.
10892         (tbreak_at_finish_command): Ditto.
10893         * hppa-tdep.c: Include completer.h.
10894         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10895         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10896
10897 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10898
10899         * utils.c (do_write): New function.
10900         (error_stream): Rewrite combining the code from error_begin and
10901         verror.
10902         (verror): Rewrite using error_stream.
10903         (error_begin): Delete function.
10904
10905 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10906
10907         * utils.c (error_begin): Make static.
10908         * defs.h (error_begin): Delete declaration.
10909
10910         * linespec.c (cplusplus_error): Replace cplusplus_hint.
10911         (decode_line_1): Use cplusplus_error instead of error_begin,
10912         cplusplus_hint and return_to_top_level.
10913         * coffread.c (coff_symfile_read): Use error instead of error_begin
10914         and return_to_top_level.
10915         * infrun.c (default_skip_permanent_breakpoint): Ditto.
10916
10917 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10918
10919         * language.h (type_error, range_error): Make string parameter
10920         constant.
10921         * language.c (warning_pre_print): Delete extern declaration.
10922         * dwarfread.c (warning_pre_print): Ditto.
10923         * language.c (type_error, range_error): Rewrite to use verror and
10924         vwarning instead of warning_begin.
10925
10926 2002-02-01  Michael Snyder  <msnyder@redhat.com>
10927
10928         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10929         (set_ignore_count): Move misplaced comment back where it belongs.
10930
10931 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
10932
10933         * command.h (NO_FUNCTION): Delete macro.
10934         * cli/cli-decode.h (NO_FUNCTION): Ditto.
10935         * top.c (execute_command): Replace NO_FUNCTION with NULL.
10936         * tracepoint.c (_initialize_tracepoint): Ditto.
10937         * cli/cli-decode.c (add_set_cmd): Ditto.
10938         * cli/cli-cmds.c (init_cli_cmds): Ditto.
10939
10940 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
10941
10942         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10943         Update ``this'' pointer when calling virtual functions.
10944
10945 2002-02-01  Michael Snyder  <msnyder@redhat.com>
10946
10947         * breakpoint.c (create_temp_exception_breakpoint): Delete.
10948         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10949
10950 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
10951
10952         * regformats/reg-arm.dat: New file.
10953         * regformats/reg-i386.dat: New file.
10954         * regformats/reg-ia64.dat: New file.
10955         * regformats/reg-m68k.dat: New file.
10956         * regformats/reg-mips.dat: New file.
10957         * regformats/reg-ppc.dat: New file.
10958         * regformats/reg-sh.dat: New file.
10959         * regformats/regdef.h: New file.
10960         * regformats/regdat.sh: New file.
10961
10962 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
10963
10964         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10965         (arm_frame_args_address, arm_frame_locals_address): New functions.
10966         (arm_frame_num_args): New function.
10967         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10968         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10969         (FRMA_NUM_ARGS): Call arm_frame_num_args.
10970
10971 2002-01-31  Michael Snyder  <msnyder@redhat.com>
10972
10973         * breakpoint.c (break_at_finish_command): Export.
10974         (break_at_finish_at_depth_command): Export.
10975         (tbreak_at_finish_command): Export.
10976         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10977         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10978         "txbreak" commands, which are HPPA specific.
10979
10980         * printcmd.c (disassemble_command): Remove an ancient
10981         artifact of an old merge.
10982
10983         * symfile.h (enum overlay_debugging_state):
10984         Define enum constant values for overlay mode.
10985         * symfile.c (overlay_debugging): Use enums instead of literals.
10986         (overlay_is_mapped, overlay_auto_command,
10987         overlay_manual_command): Ditto.
10988
10989         * breakpoint.c (insert_breakpoints, remove_breakpoint,
10990         breakpoint_here_p, breakpoint_inserted_here_p,
10991         breakpoint_thread_match, bpstat_stop_status,
10992         describe_other_breakpoints, check_duplicates, clear_command):
10993         Coding standard fixes.
10994
10995         * target.c (target_xfer_memory): Add spaces, coding standard.
10996         (do_xfer_memory): Add missing line to trust-readonly
10997         code: check bfd SEC_READONLY flag for section.
10998
10999 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11000
11001         * PROBLEMS: Fix typo, 5.1->5.1.1.
11002
11003 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11004
11005         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11006         data symbols, since we search based on textlow and texthigh.
11007         (find_pc_sect_symtab): Likewise.
11008
11009 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11010
11011         * defs.h (vwarning): Declare.
11012         * utils.c (vwarning): New function.
11013         (warning): Call vwarning.
11014         (warning_begin): Delete function.
11015
11016         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11017         the warning message.
11018         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11019         warning_begin.
11020
11021 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11022
11023         * NEWS: Mention "set trust-readonly-sections" command.
11024         Mention generate-core-file command.
11025
11026 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11027
11028         * target.c: New command, "set trust-readonly-sections on".
11029         (do_xfer_memory): Honor the suggestion to trust readonly sections
11030         by reading them from the object file instead of from the target.
11031         (initialize_targets): Register command "set trust-readonly-sections".
11032
11033 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11034
11035         * parse.c (target_map_name_to_register): Simplify, search regs and
11036         pseudo-regs using a single loop.
11037
11038 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11039
11040         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11041
11042 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11043
11044         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11045         * config/i386/i386v42mp.mh: Add i387-nat.o .
11046         * i386v4-nat.c: Include i387-nat.h.
11047         (supply_fpregset): Use i387_supply_fsave.
11048         (fill_fpregset): Use i387_fill_fsave.
11049
11050 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11051
11052         * arm-tdep.c (arm_call_dummy_words): Define.
11053         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11054         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11055         (CALL_DUMMY_WORDS): Define.
11056         (arm_call_dummy_words): Declare.
11057         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11058         (arm_linux_call_dummy_words): Declare.
11059
11060 2002-01-30  Andreas Schwab  <schwab@suse.de>
11061
11062         * m68klinux-nat.c: Fix last change to use regcache_collect
11063         instead of referencing registers[] directly.
11064
11065 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11066
11067         * parse.c (target_map_name_to_register): Delete code wrapped in
11068         #ifdef REGISTER_NAME_ALIAS_HOOK.
11069
11070 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11071
11072         * regcache.c (legacy_read_register_gen): Need to be able to
11073         read pseudo-register as well as real register.
11074         (legacy_write_register_gen): Ditto.
11075
11076 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11077
11078         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11079         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11080         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11081         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11082         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11083         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11084         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11085         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11086         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11087         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11088         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11089         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11090         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11091         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11092         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11093         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11094         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11095         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11096         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11097         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11098
11099 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11100
11101         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11102         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11103         (initialize_current_architecture): Update target_byte_order using
11104         information from BFD.
11105         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11106         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11107
11108 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11109
11110         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11111         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11112
11113         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11114         #ifdef INVALID_FLOAT.
11115         * infcmd.c (do_registers_info): Ditto.
11116         * values.c (unpack_double): Ditto.  Add comment.
11117
11118         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11119         already commented out.
11120
11121 2002-01-26  Andreas Schwab  <schwab@suse.de>
11122
11123         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11124         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11125         registers and add support for PTRACE_GETREGS.
11126
11127 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11128
11129         GDB 5.1.1 released from 5.1 branch.
11130         * NEWS: Add 5.1.1 news.
11131         * README: Sync with 5.1 branch.
11132
11133 2002-01-23  Fred Fish  <fnf@redhat.com>
11134
11135         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11136         stabstring on initial malloc.  Reallocing will copy it for us,
11137         if necessary.
11138
11139 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11140
11141         * Makefile.in (hpread_h): Delete.
11142         (HFILES_NO_SRCDIR): Remove hpread.h.
11143         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11144         (hpread.o): Update dependencies.
11145         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11146
11147         * hp-psymtab-read.c: Remove file.
11148         * hp-symtab-read.c: Remove file.
11149         * hpread.h: Remove file.
11150
11151         * hpread.c: Merge all contents of hp-psymtab-read.c,
11152         hp-symtab-read.c and hpread.h into this file, as it was prior to
11153         January 1999.
11154
11155         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11156         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11157         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11158         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11159
11160 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11161
11162         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11163         fill_gregset): Call gdbarch_tdep() just once, assign result to
11164         variable and use that, instead of calling the function several
11165         times.
11166
11167 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11168
11169         * configure.host: Accept sparcv9 as alias for sparc64.
11170         * configure.tgt: Likewise.
11171
11172 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11173
11174         * solib-aix5.c (build_so_list_from_mapfile)
11175         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11176         arguments is not reversed.
11177         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11178         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11179
11180 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11181
11182         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11183         modified version of obsolete sh_fetch_pseudo_register.
11184         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11185         (sh4_register_read): New function.
11186         (sh_pseudo_register_write): New function. Renamed and modified
11187         version of obsolete sh_store_pseudo_register.
11188         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11189         (sh4_register_write): New function.
11190         (sh_gdbarch_init): Remove setting of gdbarch function
11191         fetch_pseudo_register and store_pseudo_register. Remove setting of
11192         register_convert_to_raw, register_convert_to_virtual,
11193         register_convertible.
11194         (sh_sh4_register_convertible): Delete. No longer needed. All is
11195         taken care by architecture specific functions
11196         register_read/register_write.
11197         (sh_sh4_register_convert_to_virtual): Make static.
11198         (sh_sh4_register_convert_to_raw): Ditto.
11199
11200 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11201
11202         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11203         (floatformat_is_nan, floatformat_mantissa): Ditto.
11204
11205         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11206         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11207         builtin_type_ieee_double_little,
11208         builtin_type_ieee_double_littlebyte_bigword,
11209         builtin_type_m68881_ext, builtin_type_i960_ext,
11210         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11211         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11212         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11213         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11214
11215 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11216
11217         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11218         parameter.  Set frameless flag if it exists and depended of
11219         whether the scanned function is frameless or not.
11220         (xstormy16_skip_prologue): If function is frameless, return
11221         result of xstormy16_scan_prologue().
11222         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11223         call.
11224
11225 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11226
11227         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11228         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11229         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11230         sh_sh4_register_byte, sh_sh4_register_raw_size,
11231         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11232         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11233         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11234         sh_store_pseudo_register, sh_do_pseudo_register): Call
11235         gdbarch_tdep() just once, assign result to variable and use that,
11236         instead of calling the function several times.
11237
11238 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11239
11240         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11241         macros instead of LAST_FPU_CTRL_REGNUM.
11242         (store_register): Likewise.
11243
11244 2002-01-21  Jim Blandy  <jimb@redhat.com>
11245
11246         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11247         is up-to-date before running the program, not just when a program
11248         exits.
11249
11250 2002-01-21  Fred Fish  <fnf@redhat.com>
11251
11252         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11253         when we have found all instructions we are looking for.
11254
11255 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11256
11257         * arm-tdep.c (arm_register_name): New function.
11258         (arm_registers_names): Make static.
11259         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11260         (arm_register_name): Declare.
11261         (REGISTER_NAME): Use it.
11262
11263 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11264             Kevin Buettner  <kevinb@redhat.com>
11265
11266         Convert arm targets to new FRAME interface.
11267         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11268         (arm_frame_find_save_regs): Delete.
11269         (arm_frame_init_saved_regs): New.
11270         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11271         Allocate extra_info as required.  Convert all uses of fsr.regs
11272         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11273         to use extra_info.
11274         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11275         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11276         (check_prologue_cache, save_prologue_cache): Likewise.
11277         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11278         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11279         (FRAME_FIND_SAVED_REGS): Delete.
11280         (arm_frame_find_saved_regs): Delete prototype.
11281         (arm_frame_init_saved_regs): New prototype.
11282         (FRAME_INIT_SAVED_REGS): Define.
11283
11284 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11285
11286         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11287
11288 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11289
11290         From Jeff Law <law@redhat.com>:
11291         * infttrace.c: Include <sys/pstat.h>.
11292         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11293         exec file if the ttrace equivalent fails.
11294
11295 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11296
11297         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11298         (closeLogFile): Ditto.
11299
11300 2002-01-20  Michael Chastain  <mec@shout.net>
11301
11302         * top.c (print_gdb_version): Bump copyright year to 2002.
11303
11304 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11305
11306         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11307         Zannoni and Eli Zaretskii.
11308
11309 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11310
11311         * buildsym.c: Update copyright years.
11312         * c-typeprint.c: Likewise.
11313         * dwarf2read.c: Likewise.
11314         * f-typeprint.c: Likewise.
11315         * gdbtypes.c: Likewise.
11316         * gdbtypes.h: Likewise.
11317         * hp-symtab-read.c: Likewise.
11318         * hpread.c: Likewise.
11319         * mdebugread.c: Likewise.
11320         * p-typeprint.c: Likewise.
11321
11322 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11323
11324         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11325         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11326         byte-order selectable.
11327         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11328         * arch-utils.c: Ditto.
11329         (set_endian): Ditto.
11330         (set_endian_from_file): Ditto.
11331         * gdbserver/low-sim.c (create_inferior): Ditto.
11332         * gdbarch.sh: Ditto.
11333         * gdbarch.h: Re-generate.
11334         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11335         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11336         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11337         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11338         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11339         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11340         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11341         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11342         macro definition.
11343         * config/mips/tm-wince.h: Remove #undef of macro
11344         TARGET_BYTE_ORDER_SELECTABLE.
11345         * config/sh/tm-wince.h: Ditto.
11346
11347 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11348
11349         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11350         member function fields.  Add accessor macro
11351         TYPE_FN_FIELD_ARTIFICIAL.
11352         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11353         * c-typeprint.c (c_type_print_base): Skip artificial member
11354         functions.
11355
11356 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11357
11358         * f-typeprint.c: Delete unused function f_type_print_args.
11359         * p-typeprint.c: Delete unused function pascal_type_print_args.
11360
11361 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11362
11363         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11364         comment.  Add ``artificial'' to ``union field_location''.
11365
11366         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11367
11368         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11369         * mdebugread.c (parse_symbol): Likewise.
11370         * stabsread.c (define_symbol): Likewise.
11371         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11372         initializing TYPE_FIELD_BITPOS to n (obsolete).
11373         (hpread_doc_function_type): Likewise.
11374         * hpread.c (hpread_function_type): Likewise.
11375
11376 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11377
11378         * configure.in (host_makefile_frag): Only require a host makefile
11379         fragment when a native build.
11380         * configure: Re-generate.
11381
11382 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11383
11384         * doublest.h (floatformat_from_type): Declare.
11385         * doublest.c (floatformat_from_type): New function.
11386         (convert_typed_floating): Use.
11387
11388         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11389         call to function floatformat_from_type.
11390
11391         * gdbarch.sh (IEEE_FLOAT): Delete.
11392         * gdbarch.h, gdbarch.c: Re-generate.
11393         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11394         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11395         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11396         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11397         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11398         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11399         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11400         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11401         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11402         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11403         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11404         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11405
11406         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11407         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11408         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11409         * sh-tdep.c (sh_gdbarch_init): Ditto.
11410         * mips-tdep.c (mips_gdbarch_init): Ditto.
11411         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11412         * cris-tdep.c (cris_gdbarch_init): Ditto.
11413
11414 2002-01-20  Jiri Smid  <smid@suse.cz>
11415
11416         * configure.host, configure.tgt: Support x86-64.
11417         * NEWS: Note new target x86-64.
11418
11419         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11420         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11421         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11422         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11423         x86-64-linux-nat.o): Fix dependencies.
11424
11425 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11426
11427         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11428         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11429         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11430         * config/sparc/xm-sun4os4.h: Delete file.
11431         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11432
11433 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11434
11435         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11436         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11437         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11438         * config/i386/i386lynx.mh (XM_FILE): Delete.
11439         * config/rs6000/xm-rs6000ly.h: Delete file.
11440         * config/sparc/xm-sparclynx.h: Delete file.
11441         * config/m68k/xm-m68klynx.h: Delete file.
11442         * config/i386/xm-i386lynx.h: Delete file.
11443         * config/xm-lynx.h: Delete file.
11444         * config/djgpp/fnchange.lst: Update.
11445
11446 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11447
11448         * alpha-tdep.c (alpha_register_byte): New function.
11449         (alpha_register_raw_size): Ditto.
11450         (alpha_register_virtual_size): Ditto.
11451         (alpha_skip_prologue_internal): Renamed from
11452         alpha_skip_prologue.
11453         (alpha_skip_prologue): New version that calls
11454         alpha_skip_prologue_internal.
11455         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11456         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11457         second argument from alpha_skip_prologue.
11458         (REGISTER_BYTE): Use alpha_register_byte.
11459         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11460         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11461         (FRAMELESS_FUNCTION_INVOCATION): Use
11462         generic_frameless_function_invocation_not.
11463         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11464         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11465
11466 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11467
11468         * config/mips/xm-news-mips.h: Delete file.
11469         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11470
11471         * config/m88k/xm-m88k.h: Delete file.
11472         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11473         * config/m88k/xm-delta88v4.h: Ditto.
11474         * config/m88k/xm-delta88.h: Ditto.
11475
11476         * config/alpha/xm-fbsd.h: Delete file.
11477         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11478
11479         * config/sparc/xm-sparc.h: Delete file.
11480         * Makefile.in (xm-sun4os4.h): Delete dependency.
11481         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11482         * config/sparc/xm-sun4os4.h: Ditto.
11483         * config/sparc/xm-linux.h: Ditto.
11484
11485         * config/i386/xm-windows.h: Delete file.
11486
11487 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11488
11489         * utils.c: Include <sys/param.h> for MAXPATHLEN.
11490         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11491
11492 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11493
11494         * alpha-tdep.c (alpha_call_dummy_words): New.
11495         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11496         (CALL_DUMMY_P): Define.
11497         (CALL_DUMMY_WORDS): Define.
11498         (SIZEOF_CALL_DUMMY_WORDS): Define.
11499
11500 2002-01-19  Per Bothner  <per@bothner.com>
11501
11502         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
11503         isn't NULL, which can happen with some gcj-3.x-produced code.
11504
11505 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11506
11507         * alpha-tdep.c (alpha_register_virtual_type): New function.
11508         (alpha_init_frame_pc_first): Ditto.
11509         (alpha_fix_call_dummy): Ditto.
11510         (alpha_store_struct_return): Ditto.
11511         (alpha_extract_struct_value_address): Ditto.
11512         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11513         alpha_register_virtual_type.
11514         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11515         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11516         alpha_extract_struct_value_address.
11517         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11518         (INIT_FRAME_PC): Use init_frame_pc_noop.
11519         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11520
11521 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
11522
11523         * i386gnu-nat.c: Include "i386-tdep.h".
11524         (fetch_fpregs): Simplify code dealing with uninitialized floating
11525         point states such that it doesn't require FP7_REGNUM.
11526
11527 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11528
11529         * alpha-tdep.c (frame_extra_info): New.
11530         (alpha_find_saved_regs): Make static.  Use
11531         frame->extra_info.
11532         (alpha_frame_init_saved_regs): New function.
11533         (alpha_frame_saved_pc): Use frame->extra_info.
11534         (temp_saved_regs): Don't declare as struct frame_saved_regs.
11535         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11536         (init_extra_frame_info): Rename to...
11537         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
11538         (alpha_print_extra_frame_info): New function.
11539         (alpha_frame_locals_address): Ditto.
11540         (alpha_frame_args_address): Ditto.
11541         (alpha_pop_frame): Use frame->extra_info.
11542         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11543         alpha_frame_args_address.
11544         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11545         (alpha_find_saved_regs): Remove prototype.
11546         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11547         (EXTRA_FRAME_INFO): Remove.
11548         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11549         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11550
11551 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11552
11553         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11554         (alpha_cannot_fetch_register): Ditto.
11555         (alpha_cannot_store_register): Ditto.
11556         (alpha_register_convertible): Ditto.
11557         (alpha_use_struct_convention): Ditto.
11558         * config/alpha/tm-alpha.h: Update copyright years.
11559         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11560         (INNER_THAN): Use core_addr_lessthan.
11561         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11562         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11563         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11564         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11565         (FRAME_CHAIN): Remove unnecessary cast.
11566
11567 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11568
11569         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11570         obsolete.
11571
11572 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11573
11574         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
11575         * monitor.c, remote-array.c, remote-bug.c: Ditto.
11576         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11577         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11578         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11579         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11580         * x86-64-linux-nat.c: Ditto.
11581
11582 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11583
11584         * alpha-tdep.c (alpha_register_name): New function.
11585         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11586         (REGISTER_NAME): Define.
11587
11588 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11589
11590         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11591
11592 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11593
11594         * alpha-tdep.c: Update copyright years.
11595         (alpha_next_pc): New function.
11596         (alpha_software_single_step): Ditto.
11597         * config/alpha/tm-alpha.h: Add prototype for
11598         alpha_software_single_step.
11599
11600 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11601
11602         * alphabsd-nat.c: Update copyright years.
11603         (fill_gregset): Use regcache_collect.
11604         (fill_fpregset): Likewise.
11605         (fetch_inferior_registers): Only fetch integer registers
11606         if requested to do so.
11607         (store_inferior_registers): Only store integer registers
11608         if requested to do so.
11609
11610 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11611
11612         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11613         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11614         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11615         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11616         * config/alpha/fbsd.mh (XDEPFILES): Delete.
11617         * config/arm/linux.mh (XDEPFILES): Delete.
11618         * config/arm/nbsd.mh (XDEPFILES): Delete.
11619         * config/i386/i386dgux.mh (XDEPFILES): Delete.
11620         * config/i386/i386sol2.mh (XDEPFILES): Delete.
11621         * config/i386/i386m3.mh (XDEPFILES): Delete.
11622         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11623         * config/i386/i386gnu.mh (XDEPFILES): Delete.
11624         * config/i386/fbsd.mh (XDEPFILES): Delete.
11625         * config/i386/i386bsd.mh (XDEPFILES): Delete.
11626         * config/i386/i386sco5.mh (XDEPFILES): Delete.
11627         * config/i386/i386v4.mh (XDEPFILES): Delete.
11628         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11629         * config/i386/i386sco4.mh (XDEPFILES): Delete.
11630         * config/i386/i386aix.mh (XDEPFILES): Delete.
11631         * config/i386/go32.mh (XDEPFILES): Delete.
11632         * config/i386/cygwin.mh (XDEPFILES): Delete.
11633         * config/i386/i386lynx.mh (XDEPFILES): Delete.
11634         * config/i386/i386mach.mh (XDEPFILES): Delete.
11635         * config/i386/i386v32.mh (XDEPFILES): Delete.
11636         * config/i386/linux.mh (XDEPFILES): Delete.
11637         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11638         * config/i386/ncr3000.mh (XDEPFILES): Delete.
11639         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11640         * config/i386/i386sco.mh (XDEPFILES): Delete.
11641         * config/i386/i386v.mh (XDEPFILES): Delete.
11642         * config/i386/nbsd.mh (XDEPFILES): Delete.
11643         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11644         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11645         * config/i386/symmetry.mh (XDEPFILES): Delete.
11646         * config/i386/obsd.mh (XDEPFILES): Delete.
11647         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11648         * config/ia64/linux.mh (XDEPFILES): Delete.
11649         * config/ia64/aix.mh (XDEPFILES): Delete.
11650         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11651         * config/m68k/dpx2.mh (XDEPFILES): Delete.
11652         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11653         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11654         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11655         * config/m68k/linux.mh (XDEPFILES): Delete.
11656         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11657         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11658         * config/m68k/nbsd.mh (XDEPFILES): Delete.
11659         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11660         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11661         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11662         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11663         * config/m88k/delta88.mh (XDEPFILES): Delete.
11664         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11665         * config/m88k/m88k.mh (XDEPFILES): Delete.
11666         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11667         * config/mips/linux.mh (XDEPFILES): Delete.
11668         * config/mips/irix6.mh (XDEPFILES): Delete.
11669         * config/mips/irix5.mh (XDEPFILES): Delete.
11670         * config/mips/irix4.mh (XDEPFILES): Delete.
11671         * config/mips/irix3.mh (XDEPFILES): Delete.
11672         * config/mips/decstation.mh (XDEPFILES): Delete.
11673         * config/mips/mipsm3.mh (XDEPFILES): Delete.
11674         (NATDEPFILES): Move core-aout.o to here.
11675         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11676         * config/pa/hpux1020.mh (XDEPFILES): Delete.
11677         * config/pa/hppabsd.mh (XDEPFILES): Delete.
11678         * config/pa/hppahpux.mh (XDEPFILES): Delete.
11679         * config/pa/hpux11w.mh (XDEPFILES): Delete.
11680         * config/pa/hppaosf.mh (XDEPFILES): Delete.
11681         * config/pa/hpux11.mh (XDEPFILES): Delete.
11682         * config/powerpc/aix.mh (XDEPFILES): Delete.
11683         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11684         * config/powerpc/linux.mh (XDEPFILES): Delete.
11685         * config/romp/rtbsd.mh: Rename XDEPFILES.
11686         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11687         * config/rs6000/aix4.mh (XDEPFILES): Delete.
11688         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11689         * config/s390/s390.mh (XDEPFILES): Delete.
11690         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11691         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11692         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11693         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11694         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11695         * config/sparc/nbsd.mh (XDEPFILES): Delete.
11696         * config/sparc/linux.mh (XDEPFILES): Delete.
11697         * config/vax/vaxult.mh (XDEPFILES): Delete.
11698         * config/vax/vaxult2.mh (XDEPFILES): Delete.
11699         * Makefile.in (DEPFILES): Remove XDEPFILES.
11700
11701 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11702
11703         * utils.c (internal_verror): Fix comments, default is yes not no.
11704         Update queries to match.  Default to quit and dump core.
11705
11706 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11707
11708         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
11709         copyright.
11710         * defs.h, event-top.c, gdbcmd.h: Ditto.
11711         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11712         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11713         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11714         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11715         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11716         * mi/mi-main.c:Ditto.
11717
11718         * stack.c, symfile.c: Update copyright.
11719
11720 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
11721
11722         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11723         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11724         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11725         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11726
11727 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
11728
11729         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11730         * gdbserver/low-lynx.c (myattach): Likewise.
11731         * gdbserver/low-nbsd.c (myattach): Likewise.
11732         * gdbserver/low-sim.c (myattach): Likewise.
11733         * gdbserver/low-sparc.c (myattach): Likewise.
11734         * gdbserver/low-sun3.c (myattach): Likewise.
11735
11736         * gdbserver/low-linux.c (myattach): New function.
11737
11738         * gdbserver/server.c (attach_inferior): New function.
11739         (main): Handle "--attach".
11740
11741 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
11742
11743         * MAINTAINERS (language support): Daniel Jacobwitz is C++
11744         maintainer.
11745
11746 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
11747
11748         * c-typeprint.c (is_type_conversion_operator): Add additional
11749         check for non-conversion operators.
11750
11751 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11752
11753         * linux-proc.c: Add "info proc" command, a la procfs.c.
11754         (read_mapping): New function, abstract and re-use code.
11755         (linux_find_memory_regions): Use new func read_mapping.
11756         (linux_info_proc_cmd): New function, implement "info proc".
11757         (_initialize_linux_proc): Add new command "info proc".
11758
11759 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11760
11761         * symfile.c (generic_load): Use bfd_map_over_sections method
11762         instead of manipulating bfd structure members directly.
11763         (add_section_size_callback): New function, bfd sections callback
11764         used by generic_load.
11765         (load_sections_callback): New function, bfd sections callback
11766         used by generic_load.
11767
11768 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
11769
11770         [Based on work by Jim Blandy]
11771         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11772         (builtin_type_vec128): Export.
11773         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11774         types.
11775         (builtin_type_vec128): New builtin type for 128 bit vector
11776         registers.
11777         (build_gdbtypes): Initialize builtin_type_v16qi and
11778         builtin_type_v8hi. Create the vec128 register builtin type
11779         structure.
11780         (build_builtin_type_vec128): New function.
11781         (_initialize_gdbtypes): Register builtin_type_v16qi and
11782         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11783         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11784         AltiVec register to new builtin type.
11785
11786 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
11787
11788         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11789         to make_cv_type.
11790
11791 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
11792
11793         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11794         CLEAN_UP_REGISTER_VALUE.
11795         * regcache.c (supply_register): Update only call.
11796
11797 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
11798
11799         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11800         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11801         a29k-*-vxworks* targets as obsolete.
11802
11803 2002-01-14  Michael Snyder  <msnyder@redhat.com>
11804
11805         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11806         until we can resolve portability issues.
11807         * gregset.h: Remove references to fpxregs.
11808         * gcore.c (gcore_command): Initialize note_sec to NULL.
11809
11810 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11811
11812         * signals.c (target_signal_to_name): Rewrite.  Only use
11813         signals[].name when in bounds and non-NULL.
11814
11815 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11816
11817         From Petr Ledvina <ledvinap@kae.zcu.cz>:
11818         * signals.c (target_signal_to_name): Verify that SIG is within the
11819         bounds of the signals array.
11820
11821 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11822
11823         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11824
11825 2002-01-13  Keith Seitz  <keiths@redhat.com>
11826
11827         * stack.c (print_frame_info_base): Print the frame's pc
11828         only if when print_frame_info_listing_hook is not defined.
11829
11830 2002-01-13  Keith Seitz  <keiths@redhat.com>
11831
11832         * varobj.c (varobj_set_value): Make sure that there were no
11833         errors evaluating the object before attempting to set its
11834         value.
11835         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11836         so this offset adjustment is no longer necessary.
11837         (create_child): Don't set the error flag if the child is
11838         a CPLUS_FAKE_CHILD.
11839         (value_of_child): If value_fetch_lazy fails, return NULL
11840         so that callers will be notified that an error occurred.
11841         (c_value_of_variable): Delay check of variable's validity
11842         until later. We actually want all structs and unions to have
11843         the value "{...}".
11844         Do not return "???" for variables which could not be evaluated.
11845         This error condition must be returned to the caller so that it
11846         can get the error condition from gdb.
11847         (cplus_name_of_child): Adjust index for vptr before figuring
11848         out the name of the child.
11849         (cplus_value_of_child): If a child's (real) parent is not valid,
11850         don't even bother trying to give a value for it. Just return
11851         an error. Change all instances in this function.
11852         (cplus_type_of_child): If our parent is one of the "fake"
11853         parents, we need to get at the type of the real parent, and
11854         derive the child's true type using this information.
11855
11856 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11857
11858         From 2002-01-09 John Marshall <johnm@falch.net>:
11859         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11860         sources.redhat.com, and tweak some related URLs which had
11861         suffered from linkrot.
11862
11863 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
11864
11865         From Jeff law:
11866         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11867         structures passed in registers.
11868
11869 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
11870
11871         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11872         white space which prevented compilation.  Reported by DSK
11873         <dsk@student.unsw.edu.au>.
11874
11875 2002-01-11  Michael Snyder  <msnyder@redhat.com>
11876
11877         * symfile.c (build_section_addr_info_from_section_tab):
11878         Use bfd access method instead of manipulating bfd directly.
11879         (syms_from_objfile): Ditto.
11880         (simple_overlay_update_1): Ditto.
11881         (simple_overlay_update): Ditto.
11882         (generic_load): Ditto.
11883         (overlay_unmapped_address): FIXME comment, bfd access methods.
11884         (sections_overlap): FIXME comment, bfd access methods.
11885         (pc_in_mapped_range): FIXME comment, bfd access methods.
11886         (pc_in_unmapped_range): FIXME comment, bfd access methods.
11887         (section_is_mapped): FIXME comment, bfd access methods.
11888         (section_is_overlay): FIXME comment, bfd access methods.
11889
11890         * symfile.c (generic_load): Whitespace and long line cleanups.
11891         Remove duplicate variable, change several local variables to
11892         more appropriate data types.
11893         (print_transfer_performance): Use %lu instead of %ld for ulongs.
11894
11895 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
11896
11897         From Peter Schauer:
11898         * language.c (longest_local_hex_string_custom): Use phex_nz to
11899         convert NUM to a hex string.
11900
11901 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
11902
11903         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11904         the function.
11905         Update Copyright year.
11906
11907 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
11908
11909         * language.c (longest_raw_hex_string): Delete unused function.
11910
11911 2002-01-11  Petr Sorfa  <petrs@caldera.com>
11912
11913         * MAINTAINERS (write-after-approval): Add myself.
11914         * dwarf2read.c (read_tag_string_type): Handling of
11915         DW_AT_byte_size.
11916         (read_tag_string_type): FORTRAN fix to prevent propagation of
11917         first string size.
11918         (set_cu_language): Handling of DW_LANG_Fortran95
11919
11920 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
11921
11922         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11923         GETPID(inferior_ptid).
11924         (store_inferior_registers): Likewise.
11925
11926 2002-01-10  Jason Merrill  <jason@redhat.com>
11927
11928         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11929         Fix DW_OP_minus.
11930
11931 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
11932
11933         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11934         and bfd/elf32-sh-nbsd.c.
11935
11936 2002-01-10  Michael Snyder  <msnyder@redhat.com>
11937
11938         * NEWS: Mention --pid and corefile/proc-id behavior change.
11939
11940         * Makefile.in: Add rules for gcore.o and linux-proc.o.
11941         * gcore.c: Include cli/cli-decode.h instead of command.h.
11942
11943         * main.c (captured_main): Add new command line option "--pid".
11944         If the second command line argument (following the symbol-file)
11945         begins with a digit, try to attach to it before trying to open
11946         it as a corefile.
11947         (print_gdb_help): Document the "--pid" argument.
11948
11949 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
11950
11951         * completer.c (command_completer): New function.
11952
11953         * completer.h <command_completer>: Add prototype.
11954
11955         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11956         completer for the "help" command.
11957
11958 2002-01-09  Jason Merrill  <jason@redhat.com>
11959
11960         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11961
11962 2002-01-09  Michael Snyder  <msnyder@redhat.com>
11963
11964         * i386-linux-nat.c (fill_fpxregset): Make global.
11965         (store_fpxregset): Ditto.
11966
11967         * gregset.h (gdb_fpxregset_t): Define.
11968         (supply_fpxregset): Prototype.
11969         (fill_fpxregset): Prototype.
11970
11971         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11972
11973 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
11974
11975         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11976         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11977         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11978
11979 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
11980
11981         * MAINTAINERS: Update target maintainer rules so that any
11982         Maintainer can approve a tested patch for a maintenance-only
11983         target.
11984
11985 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
11986
11987         * MAINTAINERS (write-after-approval): Add myself.
11988
11989         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11990         IN_SIGTRAMP.
11991
11992 2002-01-08  Michael Snyder  <msnyder@redhat.com>
11993
11994         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11995         real name of the executable, rather than the /proc name.
11996
11997 2002-01-03  Michael Snyder  <msnyder@redhat.com>
11998
11999         Implement a "generate-core-file" command in gdb, save target state.
12000         * gcore.c: New file.  Implement new command 'generate-core-file'.
12001         Save a corefile image of the current state of the inferior.
12002         * linux-proc.c: Add linux-specific code for saving corefiles.
12003         * target.h (struct target_ops): Add new target vectors for saving
12004         corefiles; to_find_memory_regions and to_make_corefile_notes.
12005         (target_find_memory_regions): New macro.
12006         (target_make_corefile_notes): New macro.
12007         * target.c (update_current_target): Inherit new target methods.
12008         (dummy_find_memory_regions): New place-holder method.
12009         (dummy_make_corefile_notes): New place-holder method.
12010         (init_dummy_target): Initialize new dummy target vectors.
12011         * exec.c (exec_set_find_memory_regions): New function.
12012         Allow the exec_ops vector for memory regions to be taken over.
12013         (exec_make_note_section): New function, target vector method.
12014         * defs.h (exec_set_find_memory_regions): Export prototype.
12015         * procfs.c (proc_find_memory_regions): New function, corefile method.
12016         (procfs_make_note_section): New function, corefile method.
12017         (init_procfs_ops): Set new target vector pointers.
12018         (find_memory_regions_callback): New function.
12019         (procfs_do_thread_registers): New function.
12020         (procfs_corefile_thread_callback): New function.
12021         * sol-thread.c (sol_find_memory_regions): New function.
12022         (sol_make_note_section): New function.
12023         (init_sol_thread_ops): Initialize new target vectors.
12024         * inftarg.c (inftarg_set_find_memory_regions): New function.
12025         Allow to_find_memory_regions vector to be taken over.
12026         (inftarg_set_make_corefile_notes): New function.
12027         Allow to_make_corefile_notes vector to be taken over.
12028         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12029         interface layer if not target_has_execution (may be a corefile).
12030         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12031         * config/sparc/sun4sol2.mh: Ditto.
12032         * config/alpha/alpha-linux.mh: Ditto.
12033         * config/arm/linux.mh: Ditto.
12034         * config/i386/x86-64linux.mh: Ditto.
12035         * config/ia64/linux.mh: Ditto.
12036         * config/m68k/linux.mh: Ditto.
12037         * config/mips/linux.mh: Ditto.
12038         * config/powerpc/linux.mh: Ditto.
12039         * config/sparc/linux.mh: Ditto.
12040
12041 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12042
12043         * arm-linux-nat.c: Remove references to regcache.c internal data
12044         (registers[] and register_valid[]).
12045
12046 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12047
12048         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12049         so that attaching to a pid will automatically read the process's
12050         symbol file and shlibs.
12051         * Makefile.in: Add rule for linux-proc.o.
12052         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12053         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12054         * config/arm/linux.mh: Ditto.
12055         * config/i386/linux.mh: Ditto.
12056         * config/i386/x86-64linux.mh: Ditto.
12057         * config/ia64/linux.mh: Ditto.
12058         * config/m68k/linux.mh: Ditto.
12059         * config/mips/linux.mh: Ditto.
12060         * config/powerpc/linux.mh: Ditto.
12061         * config/sparc/linux.mh: Ditto.
12062
12063 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12064
12065         * win32-nat.c: Add i386-tdep.h dependency.
12066
12067 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12068
12069         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12070         instead of bfd_get_arch_size.  Don't bail out just because
12071         there's no exec_bfd.
12072
12073         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12074         * p-valprint.c (pascal_object_print_value): Ditto.
12075         * somread.c (som_symtab_read): Ditto.
12076         * symfile.c (simple_free_overlay_region_table): Ditto.
12077         * valops.c (value_assign): Ditto.
12078
12079         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12080         use tilde_expand and strerror for opening save-tracepoints file.
12081
12082         * thread-db.c (thread_db_new_objfile): Indendation fix.
12083
12084         * infptrace.c (GDB_MAX_ALLOCA): New define.
12085         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12086         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12087         can be overridden with whatever value is appropriate to the host).
12088         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12089         alloca to allocate potentially large buffer.
12090         * rs6000-nat.c (child_xfer_memory): Ditto.
12091         * symm-nat.c (child_xfer_memory): Ditto.
12092         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12093
12094 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12095
12096         From Nick Clifton  <nickc@redhat.com>
12097         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12098
12099 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12100
12101         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12102         Don't use exec_bfd if it's NULL.
12103
12104 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12105
12106         * valops.c (value_arg_coerce): Fix formatting.
12107
12108 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12109
12110         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12111         * gnu-nat.c: Ditto.
12112
12113 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12114
12115         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12116         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12117         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12118         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12119         z8k-coff have not been multi-arched.  Update z8k-coff build
12120         status.
12121
12122 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12123
12124         * MAINTAINERS: Mark a29k target as obsolete.
12125         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12126         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12127         comments.
12128         * NEWS: Note that a29k targets are obsolete.
12129         * a29k-tdep.c: Mark as obsolete.
12130         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12131         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12132         a29k-*-vxworks* targets as obsolete.
12133         * remote-adapt.c: Obsolete.
12134         * remote-eb.c: Obsolete.
12135         * remote-mm.c: Obsolete.
12136         * remote-udi.c: Obsolete.
12137         * config/a29k/a29k-udi.mt: Obsolete.
12138         * config/a29k/a29k.mt: Obsolete.
12139         * config/a29k/tm-a29k.h: Obsolete.
12140         * config/a29k/tm-vx29k.h: Obsolete.
12141         * config/a29k/vx29k.mt: Obsolete.
12142
12143 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12144
12145         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12146         with BFD_ENDIAN_BIG.
12147
12148 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12149
12150         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12151         * configure, config.in: Re-generate.
12152         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12153         * defs.h: Do not include <endian.h>.
12154
12155 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12156
12157         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12158         * config.in: Regenerate.
12159         * configure.in: Update copyright years.
12160         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12161         * configure: Regenerate.
12162         * i386bsd-nat.c: Update copyright years.
12163         (fill_gregset): Use regcache_collect.
12164         (fetch_inferior_registers): Only fetch integer registers
12165         if requested to do so.  Add support for XMM registers
12166         using PT_GETXMMREGS.
12167         (store_inferior_registers): Only store integer registers
12168         if requested to do so.  Add support for XMM registers
12169         using PT_SETXMMREGS.
12170         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12171         (store_inferior_registers): Remove.
12172         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12173         (fetch_elfcore_registers): New function.
12174         (i386nbsd_elfcore_fns): New.
12175         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12176         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12177         i386bsd-nat.o.
12178         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12179         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12180         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12181         * config/i386/tm-nbsd.h: Update copyright years.
12182         (HAVE_SSE_REGS): Define.
12183         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12184         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12185         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12186         (SIGCONTEXT_PC_OFFSET): Remove.
12187         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12188
12189 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12190
12191         * configure.tgt: Remove powerpc-*-macos* target.
12192         * config/m68k/xm-mpw.h: Delete file.
12193         * config/xm-mpw.h: Delete file.
12194         * ser-mac.c: Delete file.
12195         * mpw-make.sed: Delete file.
12196         * mpw-config.in: Delete file.
12197         * mac-xdep.c: Delete file.
12198         * mac-gdb.r: Delete file.
12199         * mac-defs.h: Delete file.
12200         * mac-nat.c: Delete file.
12201         * config/powerpc/macos.mh: Delete file.
12202         * config/powerpc/macos.mt: Delete file.
12203         * config/powerpc/nm-macos.h: Delete file.
12204         * config/powerpc/tm-macos.h: Delete file.
12205         * source.c (openp, open_source_file): Remove obsolete code.
12206         * top.c (gdb_readline): Ditto.
12207         * utils.c (query): Ditto.
12208         * event-top.c (display_gdb_prompt): Ditto.
12209         * Makefile.in (ser-mac.o): Delete obsolete target.
12210         * NEWS: Update.
12211
12212 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12213
12214         * defs.h (BIG_ENDIAN): Delete macro definition.
12215         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12216         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12217         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12218         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12219         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12220         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12221         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12222         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12223         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12224         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12225         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12226         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12227         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12228         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12229         * gdbarch.c: Re-generate.
12230
12231 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12232
12233         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12234         for core files.
12235
12236 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12237
12238         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12239
12240 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12241
12242         * value.h (value_ptr): Delete typedef.
12243
12244 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12245
12246         * i386nbsd-nat.c: Update copyright years.
12247         Include i386-tdep.h.
12248
12249 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12250
12251         * stabsread.c: Update copyright years.
12252
12253         From Debashis Mahata <debashis.mahata@wipro.com>:
12254         (read_struct_fields): Deal with Sun C compiler erroneous stab
12255         output for structs and unions.
12256         Fix PR gdb/269.
12257
12258 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12259
12260         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12261         prototype.
12262
12263 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12264
12265         * cp-abi.c: Fix whitespace.
12266         (baseclass_offset): New wrapper function.
12267         * cp-abi.h (baseclass_offset): Add prototype.
12268         (struct cp_abi_ops): Add baseclass_offset pointer.
12269
12270         * valops.c (vb_match): Move to...
12271         * gnu-v2-abi.c (vb_match): here.
12272         * valops.c (baseclass_offset): Move to...
12273         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12274
12275         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12276
12277         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12278         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12279         * hpacc-abi.c (init_hpacc_ops): Likewise.
12280
12281 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12282
12283         * valops.c (find_overload_match): Accept obj as a
12284         reference parameter.  Update it before returning.
12285         * value.h (find_overload_match): Update prototype.
12286         * eval.c (evaluate_subexp_standard): Pass object to
12287         find_overload_match by reference.
12288
12289 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12290
12291         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12292         register attribute from value declarations.
12293         * valops.c: Ditto.
12294         * value.h: Ditto.
12295         * scm-lang.c (scm_lookup_name): Ditto.
12296
12297 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12298
12299         Abstract the functionality of iterating over mapped memory
12300         regions into a general purpose iterator function.
12301         * procfs.c (iterate_over_mappings): New function, general purpose
12302         iterator for memory sections.
12303         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12304         (solib_mappings_callback): New function, callback for above.
12305         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12306         (info_mappings_callback): New function, callback for above.
12307
12308         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12309
12310 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12311
12312         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12313         * i386-tdep.c: Include "elf-bfd.h".
12314         (process_note_abi_tag_sections): New function.
12315         (i386_gdbarch_init): Add code to recognize various OS/ABI
12316         combinations.
12317
12318         * maint.c (_initialize_maint_cmds): Add missing \ in
12319         string-literal.
12320
12321 For older changes see ChangeLog-2001
12322 \f
12323 Local Variables:
12324 mode: change-log
12325 left-margin: 8
12326 fill-column: 74
12327 version-control: never
12328 End: