* i386-tdep.c (i386_frameless_signal_p): Make non static for
[external/binutils.git] / gdb / ChangeLog
1 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
2
3         * i386-tdep.c (i386_frameless_signal_p): Make non static for
4         the benefit of the interix target.
5         * i386-tdep.h (i386_frameless_signal_p): Declare.
6
7 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
8
9         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
10         declaration that snuck in from change below.
11
12 2002-11-06  Andrew Cagney  <cagney@redhat.com>
13
14         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
15         all callers.
16         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
17         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
18         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
19         (i386_mxcsr_regnum_p): new function.  Use instead of
20         MXCSR_REGNUM_P.
21         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
22         (i386_sse_regnum_p): Declare.
23         (i386_mxcsr_regnum_p): Declare.
24         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
25         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
26         (IS_FP_REGNUM): Update definition.
27         (IS_FPU_CTRL_REGNUM): Update definition..
28         (IS_SSE_REGNUM): Update definition..
29         * i386v-nat.c (register_u_addr): Update.
30         * go32-nat.c (fetch_register): Update.
31         (store_register): Update.
32
33 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
34
35         Preparation work to convert the hppa targets to multiarch partial.
36
37         * hppa-tdep.c: Add new functions replacing macro bodies from
38         config/pa/tm-hppa.h. These function will be used to initialize
39         the gdbarch structure. Import some comments from tm-hppa.h,
40         and place them where appropriate, to avoid loosing them when
41         we cleanup this file.
42         (hppa_reg_struct_has_addr): New function.
43         (hppa_inner_than): New function.
44         (hppa_stack_align): New function.
45         (hppa_pc_requires_run_before_use): New function.
46         (hppa_instruction_nullified): New function.
47         (hppa_register_byte): New function.
48         (hppa_register_virtual_type): New function.
49         (hppa_store_struct_return): New function.
50         (hppa_cannot_store_register): New function.
51         (hppa_frame_args_address): New function.
52         (hppa_frame_locals_address): New function.
53         (hppa_smash_text_address): New function.
54         (hppa_coerce_float_to_double): New function. Requires the inclusion
55         of "language.h".
56
57         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
58
59         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
60         gdbarch-eligible macro to a call to the new associated function
61         created in hppa-tdep.c.
62         (INNER_THAN): Likewise.
63         (STACK_ALIGN): Likewise.
64         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
65         (INSTRUCTION_NULLIFIED): Likewise.
66         (REGISTER_BYTE): Likewise.
67         (REGISTER_VIRTUAL_TYPE): Likewise.
68         (STORE_STRUCT_RETURN): Likewise.
69         (CANNOT_STORE_REGISTER): Likewise.
70         (FRAME_ARGS_ADDRESS): Likewise.
71         (FRAME_LOCALS_ADDRESS): Likewise.
72         (SMASH_TEXT_ADDRESS): Likewise.
73         (COERCE_FLOAT_TO_DOUBLE): Likewise.
74         (ABOUT_TO_RETURN): Delete, as no longer used.
75
76 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
77
78         * printcmd.c (disassemble_command): Remove obsolete function.
79         (_initialize_printcmd): Do not create disassemble command here.
80         * cli/cli-cmds.c (disassemble_command): New function.  Implements
81         disassemble command.
82         (init_cli_cmds): Create disassemble command here instead.
83
84 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
85
86         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
87
88 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
89
90         * regcache.h (regcache_cooked_read_using_offset_hack)
91         (regcache_cooked_write_using_offset_hack): Delete declarations.
92         (register_changed): Delete declaration.
93         * regcache.c (regcache_cooked_read_using_offset_hack)
94         (regcache_cooked_write_using_offset_hack): Delete functions.
95         (cooked_xfer_using_offset_hack): Delete function.
96         (register_changed): Delete function.
97
98 2002-11-07  Jim Blandy  <jimb@redhat.com>
99
100         * macroscope.c: #include "complaints.h".
101         (sal_macro_scope): Cope with filenames that appear in the symtabs,
102         but not in the macro table.
103         * Makefile.in (macroscope.o): Record dependency.
104
105 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
106
107         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
108
109 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
110
111         * regcache.c (deprecated_registers_fetched): Update.
112         * regcache.h (deprecated_registers_fetched): Rename
113         registers_fetched.
114         * remote-vxsparc.c (vx_read_register): Update.
115         * remote-vxmips.c (vx_read_register): Update.
116         * remote-vx68.c (vx_read_register): Update.
117         * irix5-nat.c (fetch_core_registers): Update.
118         * mipsm3-nat.c (fetch_inferior_registers): Update.
119         * sun3-nat.c (fetch_inferior_registers): Update.
120         * symm-nat.c (fetch_inferior_registers): Update.
121         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
122         (fetch_core_registers): Update.
123         (fetch_kcore_registers): Update.
124         * mips-nat.c (fetch_inferior_registers): Update.
125         * corelow.c (get_core_registers): Update.
126         * a68v-nat.c (fetch_inferior_registers): Update.
127
128 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
129
130         Put in place the framework necessary for multiarching the hppa targets.
131         * hppa-tdep.c (hppa_gdbarch_init): New function.
132         (hppa_dump_tdep): New function.
133         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
134         tdep structure dumper.
135         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
136         until the multi-arching conversion has partially been completed.
137
138 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
139
140         * valops.c (value_assign): Merge lval_register case into
141         lval_reg_frame_relative.  Use frame_register and
142         regcache_cooked_write instead of get_saved_register and
143         write_register_bytes.  After flushing the register cache, try to
144         re-select the selected frame.
145
146 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
147
148         * regcache.h (deprecated_register_valid): Rename register_valid.
149         * regcache.c: Update.
150         * ia64-aix-nat.c: Update.
151         * i386gnu-nat.c: Update.
152         * alpha-nat.c: Update.
153         * sparc-nat.c: Update.
154         * lynx-nat.c: Update.
155         * remote-mips.c: Update.
156
157 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
158
159         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
160         to end of file, to be more consistent with the pratice followed
161         by other targets.
162
163 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
164
165         * infcmd.c: Include "reggroups.h" and <ctype.h>.
166         (print_float_info): Print registers in float_reggroup.
167         (print_vector_info): Print registers in vector_reggroup.
168         (default_print_registers_info): When all, print registers in
169         all_reggroup.  Otherwize, print registers in general_reggroup.
170         (registers_info): Rewrite.  Add support for register groups.
171         Eliminate a goto.
172
173 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
174
175         * symtab.c (methods_info): Delete. It has been ifdeffed out for
176         ages.
177         (symtab_symbol_info): Remove eons old ifdeffed out code.
178         (_initialize_symtab): Remove prehistoric disabled 'info methods'
179         command.
180
181 2002-11-06  Theodore A. Roth  <troth@openavr.org>
182
183         * c-exp.y: Add missing semi-colons.
184         * f-exp.y: Add missing semi-colons.
185         * m2-exp.y: Add missing semi-colons.
186         * p-exp.y: Add missing semi-colons.
187         Add empty action to start rule to avoid a type clash error when
188         building with bison >= 1.50.
189
190 2002-11-06  Jim Blandy  <jimb@redhat.com>
191
192         * macrotab.h (struct macro_source_file): Doc fix.
193
194 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
195
196         * varobj.c (child_exists, cplus_number_of_children): Change
197         STREQ macro references to strcmp.
198         (cplus_name_of_child): Change code to handle the fact that
199         fields are not necessarily contiguous with regards to their 
200         access control. This is a fix for PR gdb/792.
201
202 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
203
204         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
205         * gdbarch.h, gdbarch.c: Regnerate.
206         * frame.h (frame_register): Declare.
207         * frame.c (frame_register): New function.
208         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
209         GET_SAVED_REGISTER, otherwize call
210         generic_unwind_get_saved_register.
211         (frame_register_read): Use frame_register instead of
212         get_saved_register.
213
214 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
215         
216         From Jim Ingham  <jingham@apple.com>:
217         * event-top.c (gdb_disable_readline): New function.
218         (_initialize_event_loop): Move comment.
219
220 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
221
222         * event-loop.c (start_event_loop): Add comment.
223         Update copyright.
224
225 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
226
227         * infcmd.c (default_print_registers_info): Do not call
228         PRINT_REGISTER_HOOK.
229
230 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
231
232         * sparc-tdep.c (sparc_print_register_hook): Make static.
233         (sparc_print_registers_info): New function.
234         (sparc_do_registers_info): New function.
235         (sparclet_print_registers_info): New function.
236         (sparclet_do_registers_info): New function.
237         (do_sparc_print_registers_info): New function.
238         (sparc_print_registers): New static function, clone of infcmd.c's
239         default_print_registers_info.
240         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
241         (sparclet_do_registers_info): Declare.
242         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
243         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
244         Re-define.
245         (sparc_do_registers_info): Declare.
246         (PRINT_REGISTER_HOOK): Delete macro.
247         (sparc_print_register_hook): Delete declaration.
248
249 2002-11-05  David Carlton  <carlton@math.stanford.edu>
250
251         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
252         functions.
253         (lookup_symbol_aux_local): New function.
254         (lookup_symbol_aux_symtabs): New function.
255         (lookup_symbol_aux_psymtabs): New function.
256
257 2002-11-05  David Carlton  <carlton@math.stanford.edu>
258
259         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
260         previous values of 'objfile' and 'block'.
261
262 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
263
264         * values.c (value_change_enclosing_type): Set 
265         enclosing_type field correctly also for the case where 
266         more memory needs to be allocated.
267
268 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
269
270         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
271         of puts_filtered.
272
273         * i387-tdep.c (i387_print_float_info): Replace calls to
274         register_read and deprecated_read_register_gen with calls to
275         frame_register_read, and make the necessary adjustments to the
276         surrounding code.
277
278 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
279
280         * gdbarch.sh (register_reggroup_p): Allow default value.
281         * gdbarch.h, gdbarch.c: Regenerate.
282
283 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
284
285         * regcache.h: Add coment indicating replacements for deprecated
286         functions.
287
288 2002-11-02  Andrew Cagney  <cagney@redhat.com>
289
290         * reggroups.h, reggroups.c: New files.
291         * regcache.c: Include "reggroups.h".
292         (enum regcache_dump_what): Add `regcache_dump_groups'.
293         (regcache_dump): Contract size of the "Type" column.  When
294         specified, dump the register's groups.
295         (maintenance_print_register_groups): New function.
296         (_initialize_regcache): Add command `maint print register-groups'.
297         * Makefile.in (COMMON_OBS): Add reggroups.o
298         (SFILES): Add reggroups.c.
299         (reggroups_h): Define.
300         (regcache.o, gdbarch.o): Update dependencies.
301         (reggroups.o): Specify dependencies.
302         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
303         Add opaque declaration for `struct reggroup' in generated .h file.
304         Include "reggroups.h" in generated .c file.
305         gdbarch.h, gdbarch.c: Re-generate.
306
307 2002-11-02  Andrew Cagney  <cagney@redhat.com>
308
309         * regcache.h (deprecated_read_register_gen): Rename
310         read_register_gen.
311         (deprecated_write_register_gen): Rename write_register_gen.
312         * i387-tdep.c: Update.
313         * x86-64-linux-nat.c: Update
314         * wince.c: Update.
315         * thread-db.c: Update.
316         * win32-nat.c: Update.
317         * mips-tdep.c: Update.
318         * d10v-tdep.c: Update.
319         * cris-tdep.c: Update.
320         * remote-sim.c: Update.
321         * remote-rdi.c: Update.
322         * remote-rdp.c: Update.
323         * frame.c: Update.
324         * target.c: Update.
325         * blockframe.c: Update.
326         * x86-64-tdep.c: Update.
327         * xstormy16-tdep.c: Update.
328         * sh-tdep.c: Update.
329         * s390-tdep.c: Update.
330         * rs6000-tdep.c: Update.
331         * sparc-tdep.c: Update.
332         * i386-tdep.c: Update.
333         * dwarf2cfi.c: Update.
334         * regcache.c: Update.
335
336 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
337
338         New interix-specific files:
339         * config/i386/nm-interix.h: New file.
340         * config/i386/interix.mh: New file.
341         * config/i386/interix.mt: New file.
342         * i386-interix-nat.c: New file.
343         * i386-interix-tdep.c: New file.
344
345 2002-11-01  Andrew Cagney  <cagney@redhat.com>
346
347         * frame.h (deprecated_generic_get_saved_register): Rename
348         generic_get_saved_register.
349         * blockframe.c (deprecated_generic_get_saved_register): Update.
350         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
351         (xstormy16_frame_saved_register): Update.
352         * sh-tdep.c (sh_gdbarch_init): Update.
353         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
354         * ia64-tdep.c (ia64_get_saved_register): Update.
355         * cris-tdep.c (cris_gdbarch_init): Update.
356         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
357         * arm-tdep.c (arm_gdbarch_init): Update.
358
359 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
360
361         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
362
363 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
364
365         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
366         trampolines in sigaction.
367
368 2002-10-31  Andrew Cagney  <cagney@redhat.com>
369
370         * h8300-tdep.c: Include "gdb_assert.h".
371         (h8300_print_register): Add gdbarch, file and frame parameters.
372         Use frame_read_unsigned_register to read the register's value.
373         Use fprintf_filtered to display output.
374         (h8300_print_registers_info): Replace h8300_do_registers_info.
375         (h8300_gdbarch_init): Set print_registers_info.
376
377 2002-10-31  Andrew Cagney  <cagney@redhat.com>
378
379         * frame.c (frame_read_unsigned_register): New function.
380         (frame_read_signed_register): New function.
381         * frame.h (frame_read_unsigned_register): Declare.
382         (frame_read_signed_register): Declare.
383
384 2002-10-31  Andrew Cagney  <cagney@redhat.com>
385
386         * h8500-tdep.c (h8500_print_registers_info): New static function,
387         clone of infcmd.c's default_print_registers_info.
388         (h8500_do_registers_info): New funtion.
389         (h8500_print_register_hook): Rename print_register_hook, make
390         static.
391
392         * config/h8500/tm-h8500.h: Update copyright.
393         (DEPRECATED_DO_REGISTERS_INFO): Define.
394         (h8500_do_registers_info: Declare.
395         (PRINT_REGISTER_HOOK): Delete macro.
396         (print_register_hook): Delete function.
397
398 2002-10-31  Andrew Cagney  <cagney@redhat.com>
399
400         * z8k-tdep.c (z8k_print_register_hook): Make static.
401         (z8k_print_registers_info): New static function, clone of
402         infcmd.c's default_print_registers_info.
403         (z8k_do_registers_info): New function.  Wrap
404         z8k_print_registers_info.
405         * config/z8k/tm-z8k.h: Update copyright.
406         (PRINT_REGISTER_HOOK): Delete macro.
407         (z8k_print_register_hook): Delete declaration.
408         (DEPRECATED_DO_REGISTERS_INFO): Define.
409         (z8k_do_registers_info): Declare.
410
411 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
412
413         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
414         as this is already provided by value.h, and was actually causing
415         a compilation error because of a conflict in parameter type
416         declaration due to a missing const keyword.
417         (low_text_segment_addres): Fix a compilation warning.
418
419 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
420
421         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
422         registers without a name.
423         (mips_linux_cannot_store_register): Don't store registers without
424         a name.
425
426 2002-10-28  David Carlton  <carlton@math.stanford.edu>
427
428         * symtab.c (find_addr_symbol): Delete.  (It was already commented
429         out.)
430         * symtab.h: Delete prototype for find_addr_symbol.
431
432 2002-10-26  Andrew Cagney  <cagney@redhat.com>
433
434         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
435         DO_REGISTERS_INFO.
436         gdbarch.h, gdbarch.c: Re-generate.
437         * infcmd.c (default_print_registers_info): Update reference.
438         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
439         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
440         * sh-tdep.c (sh_gdbarch_init): Ditto.
441         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
442         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
443
444 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
445
446         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
447         cfi_init_extra_frame_info.
448         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
449         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
450
451         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
452         target where necessary.  Add more comments and remove the ones
453         that don't provide any useful information.
454
455         * i386-tdep.c (i386_frame_saved_pc): Replace call to
456         deprecated_read_register_dummy with
457         frame_unwind_unsigned_register.
458
459         * i386-tdep.c (i386_extract_struct_value_address): Use
460         regcache_raw_read_unsigned instead of
461         regcache_cooked_read_unsigned since we know that the register
462         we're reading isn't a pseudo register.  Rename variable 'val' into
463         the more descriptive 'addr'.
464
465         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
466         (x86_64_push_return_address): Add comment.
467         (x86_64_pop_frame): Make static.
468         (examine_argument): Clarify comment.
469         (x86_64_skip_prologue): Make prolog_expact variable static.
470
471         * dwarf2cfi.c: Fix some formatting problems.
472         (context_cpy, read_encoded_pointer): Clarify comments.
473
474         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
475         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
476         i386 target back into x86_64_gdbarch_init.  Add some comments and
477         remove meaningless ones.
478
479 2002-10-25  Andrew Cagney  <cagney@redhat.com>
480
481         * complaints.h (struct deprecated_complaint): Rename `struct
482         complaint'.
483         * complaints.c (complain): Update.
484         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
485         incorrect comment indicating that "symfile.h" was being included
486         for the `struct complaint' definition.
487         * remote-vx.c: Update.
488         * objc-lang.c: Update.
489         * xcoffread.c: Update.
490         * hpread.c: Update.
491         * mdebugread.c: Update.
492         * stabsread.c: Update.
493         * dwarf2read.c: Update.
494         * dwarfread.c: Update.
495         * elfread.c: Update.
496         * coffread.c: Update.
497         * stabsread.h: Update.
498         * dbxread.c: Update.
499         * buildsym.c: Update.
500         * gdbtypes.c: Update.
501         * macrotab.c: Update.
502
503 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
504
505         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
506         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
507         (x86_64_init_abi): ...new function.
508
509         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
510         * i386v-nat.c: Include "i386-tdep.h".
511
512 2002-10-25  Andrew Cagney  <cagney@redhat.com>
513
514         * gdbtypes.c (address_space_name_to_int): Update.
515         (address_space_int_to_name): Update.
516         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
517         multi-arch predicate.
518         (address_class_name_to_type_flags): Ditto.
519         * gdbarch.h, gdbarch.c: Re-generate.
520         
521         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
522
523 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
524
525         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
526
527 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
528
529         * symtab.h (INIT_SAL): Delete macro.
530         (init_sal): Export.
531         * symtab.c (init_sal): New function.
532
533         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
534         to init_sal function call.
535         (find_sal_from_funcs_and_line): Ditto.
536         (all_sals_for_line): Ditto. 
537         * breakpoint.c (create_internal_breakpoint): Ditto. 
538         (create_fork_vfork_event_catchpoint): Ditto. 
539         (create_exec_event_catchpoint): Ditto. 
540         (parse_breakpoint_sals): Ditto. 
541         (watch_command_1): Ditto. 
542         (handle_gnu_4_16_catch_command): Ditto.
543         (clear_command): Ditto. 
544         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
545         * infcmd.c (run_stack_dummy): Ditto. 
546         * infrun.c (process_event_stop_test): Ditto.
547         (check_sigtramp2): Ditto.
548         (step_over_function): Ditto. 
549         * linespec.c (decode_line_2): Ditto. 
550         (decode_line_1): Ditto. 
551         * source.c (line_info): Ditto. 
552         * symtab.c (find_pc_sect_line): Ditto.
553
554 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
555
556         * dwarf2cfi.c (struct context)
557         (struct context_reg): Moved to dwarf2cfi.h
558         (context_alloc, frame_state_alloc, context_cpy):
559         Made extern instead of static, removed prototypes.
560         * dwarf2cfi.h (struct context)
561         (struct context_reg): New, moved from dwarf2cfi.c
562         (context_alloc, frame_state_alloc, context_cpy):
563         New prototypes.
564         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
565         Changed from static to extern.
566         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
567         (LINUX_SIGCONTEXT_FP_OFFSET)
568         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
569         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
570         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
571         * x86-64-tdep.c (x86_64_gdbarch_init): Several
572         set_gdbarch_*() calls now use x86-64 specific functions 
573         instead of DWARF2 CFI ones.
574         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
575         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
576         (x86_64_init_extra_frame_info): New prototypes.
577         
578 2002-10-23  David Carlton  <carlton@math.stanford.edu>
579
580         * linespec.c: #include "parser-defs.h".
581         Delete prototype for find_template_name_end.
582         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
583
584 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
585
586         * NEWS: add recent mi fixes.
587         * varobj.c (struct varobj): Add new "updated" flag.
588         (new_variable): Default "updated" flag to 0.
589         (varobj_set_value): Set "updated" flag to 1 if value
590         changes.
591         (varobj_update): Check varobj "updated" flag before
592         comparing old and refreshed values.  Fix for
593         PR gdb/702.
594
595 2002-10-23  David Carlton  <carlton@math.stanford.edu>
596
597         * parse.c (parse_exp_1): Use BLOCK_START.
598         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
599         SYMBOL_BLOCK_VALUE.
600         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
601
602 2002-10-23  David Carlton  <carlton@math.stanford.edu>
603
604         * symtab.c: Delete cplusplus_hint.
605         Delete prototype for find_template_name_end.
606
607 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
608
609         * symtab.h: Update comment.
610
611 2002-10-23  Michael Snyder  <msnyder@redhat.com>
612
613         * printcmd.c (address_info): Restore quotes in output.
614         * valops.c (value_of_local): Restore quotes in error message.
615
616 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
617
618         * symtab.c (symbol_demangled_name): New function.
619         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
620         turning most of it into a function.
621         (symbol_demangled_name): Export.
622
623 2002-10-23  Michael Snyder  <msnyder@redhat.com>
624
625         * valops.c (value_of_local): Restore quotes in error message.
626
627 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
628
629         * symtab.c (symbol_init_language_specific): New function.
630         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
631         turning most of it into a function.
632         (symbol_init_language_specific): Export.
633
634 2002-10-23  David Carlton  <carlton@math.stanford.edu>
635
636         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
637         (dwarf_attr_name): Ditto.
638         (dwarf_type_encoding_name): Ditto.
639         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
640         (process_die): Handle DW_TAG_namespace,
641         DW_TAG_imported_declaration, DW_TAG_imported_module.
642         (read_namespace): New function.
643
644 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
645
646         * configure.in: Define NEW_PROC_API on Interix too.
647         * configure: Regenerate.
648
649 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
650
651         * configure: Regenerate using the proper version of autoconf.
652
653 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
654
655         * findvar.c (read_var_value): Temporarily disable TLS code, until
656         complete TLS support is added.
657
658 2002-10-21  Jim Blandy  <jimb@redhat.com>
659             Elena Zannoni  <ezannoni@redhat.com>
660
661         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
662         for thread local storage locations.
663         (struct symbol): Add objfile field.
664         (SYMBOL_OBJFILE): Define.
665         * dwarf2read.c (is_thread_local): New static variable.
666         (new_symbol): If variable is in thread local fill in address class
667         and objfile appropriately.
668         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
669         stack operation.
670         * printcmd.c (address_info): Print the information for thread
671         local storage variable.
672         * findvar.c (read_var_value): In case of thread local variable,
673         defer to the target vector code to compute address.
674
675 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
676
677         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
678         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
679
680 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
681
682         * symtab.h (address_class):  Rename
683         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
684         * hpread.c (hpread_process_one_debug_symbol): Ditto.
685         * printcmd.c (address_info): Ditto.
686         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
687
688 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
689
690         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
691         DBREG_DRX macro to acces debug registers.
692
693         * Makefile.in (i386obsd-tdep.o): New target.
694
695         * solib-sunos.c: Include "bcache.h" and "regcache.h".
696         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
697
698         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
699         * config/i386/obsd.mt: New file.
700         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
701         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
702         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
703         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
704         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
705         * i386obsd-tdep.c: New file.
706
707 2002-10-19  Adam Fedor  <fedor@gnu.org>
708
709         * objc-exp.y (name_not_typename): Fix invalid comment.  
710
711 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
712
713         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
714         to allocate partial syms and macro byte caches.
715
716 2002-10-18  David Carlton  <carlton@math.stanford.edu>
717
718         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
719
720 2002-10-18  Adam Fedor  <fedor@gnu.org>
721
722         * stabsread.c (find_name_end): New function.
723         (define_symbol): Use it.
724
725 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
726
727         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
728         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
729         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
730         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
731
732 2002-10-17  David Carlton  <carlton@math.stanford.edu>
733
734         * symfile.h: Add opaque declaration for struct obstack.
735         Declare obsavestring to take a const char *.
736         * symfile.c (obsavestring): Make first argument a const char *.
737
738 2002-10-16  Adam Fedor  <fedor@gnu.org>
739
740         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
741         names when matching breakpoints in current file.
742
743 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
744
745         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
746         (read_tag_pointer_type): Add address class support.
747         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
748         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
749         New methods.
750         * gdbarch.h, gdbarch.c: Regenerate.
751         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
752         (make_type_with_address_space, recursive_type_dump): Add address
753         class support.
754         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
755         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
756         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
757
758 2002-10-16  Klee Dienes  <kdienes@apple.com>
759
760         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
761         to get the last character of a char[] buffer, not
762         name[sizeof(vptr_name)-1].
763
764 2002-10-14  Adam Fedor  <fedor@gnu.org>
765
766         * symtab.h: New objc_specific struct.
767         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
768         (SYMBOL_DEMANGLED_NAME): Likewise.
769
770 2002-10-14  Adam Fedor  <fedor@gnu.org>
771
772         * symfile.c (init_filename_language_table): Add ObjC file extension.
773
774 2002-10-14  Adam Fedor  <fedor@gnu.org>
775
776         * utils.c (puts_filtered_tabular): New function.
777         (fprintf_symbol_filtered): Get ObjC demangled name.
778         * defs.h (puts_filtered_tabular): Declared.
779
780 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
781
782         * c-lang.h (c_type_print_varspec_prefix): Delete.
783         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
784         ``need_post_space'' parameter.  Adjust all callers.
785
786 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
787  
788         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
789         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
790         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
791         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
792
793 2002-10-13  Adam Fedor  <fedor@gnu.org>
794
795         * source.c (print_source_lines): Update comments.
796
797 2002-10-13  Adam Fedor  <fedor@gnu.org>
798
799         * valops.c (value_of_local): New function.
800         (value_of_this): Use it.
801         * value.h (value_of_local): Declared.
802
803 2002-10-13  Adam Fedor  <fedor@gnu.org>
804
805         * parse.c: (length_of_subexp, prefixify_subexp): Handle
806         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
807
808 2002-10-12  Adam Fedor  <fedor@gnu.org>
809
810         * language.c (binop_result_type): Add language_objc to case.
811         (integral_type): Likewise.
812         (character_type): Likewise.
813         (string_type): Likewise.
814         (boolean_type): Likewise.
815         (structured_type): Likewise.
816         (binop_type_check): Likewise.
817
818 2002-10-11  Adam Fedor  <fedor@gnu.org>
819
820         * printcmd.c (address_info): Print 'self' for ObjC.
821
822 2002-10-11  Adam Fedor  <fedor@gnu.org>
823
824         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
825         OP_SELF.
826
827 2002-10-11  Adam Fedor  <fedor@gnu.org>
828
829         * language.h (CAST_IS_CONVERSION): Add language_objc.
830
831 2002-10-11  Adam Fedor  <fedor@gnu.org>
832
833         * defs.h (enum language): Add language_objc.
834
835 2002-10-11  Klee Dienes  <kdienes@apple.com>
836
837         * corefile.c (read_memory_typed_address): New function.
838         * gdbcore.h (read_memory_typed_address): Add prototype.
839         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
840         to read a value destined for a CORE_ADDR, not read_memory_integer.
841         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
842         (f77_get_dynamic_lowerbound): Ditto.
843
844 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
845
846         * utils.c (string_to_core_addr): After turning string into
847         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
848         which will do necessary sign-extension, etc.
849
850 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
851
852         * c-exp.y (THIS): Delete token and grammar rule.
853         (yylex): Don't return THIS.
854         * cp-valprint.c (vtbl_ptr_name_old): Delete.
855         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
856         * demangle.c (cplus_markers): Update comment.  Put '$'
857         first.  Remove CPLUS_MARKER.
858         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
859         * jv-exp.y (THIS): Delete token and grammar rule.
860         (yylex): Don't return THIS.
861         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
862         * objc-exp.y (THIS): Delete token and grammar rule.
863         (yylex): Don't return THIS.
864         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
865         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
866         (read_member_functions): Likewise for opname.
867         (read_tilde_fields): Use is_cplus_marker.
868
869         * defs.h (CPLUS_MARKER): Don't define.
870         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
871         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
872         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
873         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
874         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
875
876         * config/i386/tm-i386v4.h: Delete file.
877         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
878         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
879         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
880         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
881         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
882         * config/i386/i386sco5.mt (TM_FILE): Likewise.
883         * config/i386/i386v4.mt (TM_FILE): Likewise.
884         * config/i386/ncr3000.mt (TM_FILE): Likewise.
885
886 2002-10-10  Marko Mlinar  <markom@opencores.org>
887
888         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
889         accidentially not commited 2002-10-09
890         * gdbarch.h, gdbarch.c: Re-generate.
891
892 2002-10-09  Marko Mlinar  <markom@opencores.org>
893
894         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
895         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
896         * gdbarch.h, gdbarch.c: Re-generate.
897
898 2002-10-08  Petr Sorfa <petrs@caldera.com>
899
900         Revised and re-submitted by John Wolfe <jlw@caldera.com>
901
902         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
903         so we can work on more than one compilation unit at a time.  This
904         helps prepare GDB to handle inter-CU die references.
905         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
906         the code to be defined before struct comp_unit_head.
907         (comp_unit_head): Added new members - offset, cu_head,
908         begin_die, next and dwarf2_abbrevs.
909         (dwarf2_abbrevs): Removed single static var; now member of
910         struct comp_unit_head.
911         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
912         members.
913         (psymtab_to_symtab_1): Changed to work with the new
914         struct comp_unit_head.
915         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
916         constructs the dwarf2_abbrevs[] inside the cu_header.
917         (dwarf2_empty_abbrev_table): Now expects a ptr to a
918         dwarf2_abbrev table to clean up.
919         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
920         handling of dwarf2_abbrevs inside the cu_header.
921         (read_partial_die): Now supports the call to the new
922         dwarf2_lookup_abbrev.
923         (read_full_die): Now supports the call to the new
924         dwarf2_lookup_abbrev.
925
926 2002-10-06  Christopher Faylor  <cgf@redhat.com>
927
928         * Makefile.in (install-gdbtk): Add missing continuation backslash to
929         insure that shell variables, such as "transformed_name" are propagated
930         to later shell statements in rule.
931
932 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
933
934         * config/i386/nm-i386sco.h: Add protection against
935         multiple-inclusion.  Include "i386/nm-i386v.h".
936         (REGISTER_U_ADDR): Remove define.
937         (i386_register_u_addr): Remove prototype.
938
939 2002-10-04  Michael Snyder  <msnyder@redhat.com>
940
941         * m32r-stub.c (handle_exception): Make sure exception is "trap"
942         before treating it as a single-step event.
943
944 2002-10-03  Adam Fedor  <fedor@gnu.org>
945
946         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
947         (objc_demangle): Remove assignment in if statements, Replace
948         free with xfree.
949         (add_msglist): Likewise.
950         (end_msglist): Likewise.
951         (complare_selectors): Likewise.
952         (selectors_info): Likewise.
953         (compare_classes): Likewise.
954         (classes_info): Likewise.
955         (print_object_command): Likewise.
956         (find_objc_msgcall_submethod): Replace PTR with void *.
957         * objc-lang.h: Remove check for __STDC__.
958
959 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
960
961         * ui-out.h (ui_out_field_fmt_int): New prototype.
962         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
963         of field width and alignment.
964         * stack.c (print_frame_info_base): When printing frame level, use
965         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
966         PR gdb/192
967
968 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
969
970         * MAINTAINERS: Add self to Write After Approval list.
971
972 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
973
974         * infcmd.c (interrupt_target_command_wrapper): Delete.
975         (interrupt_target_command): Make non static.
976         (nofp_registers_info): Make static.
977         * stack.c (return_command_wrapper): Delete.
978         (return_command): Make non static.
979
980 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
981
982         * event-top.c (gdb_setup_readline): New function. Code moved from
983         _initialize_event_loop().
984         (_initialize_event_loop): Call gdb_setup_readline().
985
986 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
987
988         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
989         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
990         * gdbarch.h, gdbarch.c: Re-generate.
991
992 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
993
994         Fix PR gdb/778
995         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
996         before recursing.
997         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
998         of fill_in_vptr_fieldno.
999
1000 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1001
1002         * inferior.h (registers_info, stepi_command, nexti_command,
1003         continue_command, interrupt_target_command): Export from infcmd.c.
1004         * frame.h (args_info, selected_frame_level_changed_hook,
1005         return_command): Export from stack.c.
1006         * v850ice.c (stepi_command, nexti_command, continue_command): use
1007         prototypes from inferior.h.
1008         * tracepoint.c (registers_info, args_info, locals_info): Use
1009         prototypes from frame.h and inferior.h.
1010         * Makefile.in (mi-main.o): Add dependency on frame.h.
1011
1012 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1013
1014         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1015         value in register 3 adjusted by ppc_gp0_regnum.
1016
1017         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1018
1019 2002-10-02  Marko Mlinar <markom@opencores.org>
1020
1021         * MAINTAINERS: Add myself to the Write After Approval list.
1022
1023 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
1024
1025         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1026         of the section for the N64 ABI, fixed.
1027
1028         * config/mips/tm-irix6.h: Include solib.h.
1029
1030 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
1031
1032         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1033         GNU operators.
1034
1035 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1036
1037         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1038         and that "mi0" syntax has been removed.
1039
1040 2002-09-30  David Carlton  <carlton@math.stanford.edu>
1041
1042         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1043         * ppc-sysv-tdep.c: #include "gdb_string.h".
1044         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1045         pacify GCC.
1046
1047 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1048
1049         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1050         "vrsave"'s register number.
1051
1052 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1053
1054         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1055         use frame_unwind_signed_register to obtain the PC.
1056         (mips_frame_chain): Handle a generic dummy frame.
1057         (mips_init_extra_frame_info): When a generic dummy frame, don't
1058         re-compute the frame base.
1059         (mips_pop_frame): Handle generic dummy frames.
1060         (mips_gdbarch_init): When generic dummy frames, set
1061         use_generic_dummy_frames, push_dummy_frame to
1062         generic_push_dummy_frame, pc_in_call_dummy to
1063         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1064         generic_save_dummy_frame_tos.
1065
1066 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1067
1068         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
1069         against TOP when TOP was explictly set.
1070         (generic_push_dummy_frame): Set TOP to zero.
1071
1072 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
1073
1074         * event-loop.c (start_event_loop): Rename variable 'result' to
1075         'gdb_result', to avoid conflicts with upcoming intepreters changes.
1076
1077 2002-09-30  Keith Seitz  <keiths@redhat.com>
1078
1079         * gdb-events.sh (selected_thread_changed): New event.
1080         * gdb-events.c: Regenerated.
1081         * gdb-events.h: Regenerated.
1082
1083 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1084
1085         * MAINTAINERS: Add self to Write After Approval list.
1086
1087 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
1088
1089         * disasm.c: New file.  
1090         * disasm.h: New file.  
1091         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1092         (compare_lines): Ditto.
1093         (dump_insns): Ditto.
1094         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1095         argument.
1096         (do_assembly_only): Ditto.
1097         (do_disassembly): Renamed to gdb_disassembly and moved to
1098         disasm.c.  Sdded uiout argument.
1099         * Makefile.in: Add new files.  Reorder SFILES list. Update
1100         dependencies.  Include libgdb.a later in the insight executable.
1101
1102 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1103
1104         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1105         bfd/elf64-alpha-fbsd.c.
1106
1107 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1108
1109         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1110         i386gnu-tdep.c.
1111
1112 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1113
1114         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1115         __FUNCTION__.
1116         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1117         function name.
1118         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1119         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1120         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1121         (S_msg_sig_post_reply): Ditto.
1122         
1123 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
1124
1125         * sh-tdep.c (sh_use_struct_convention): Use definition according
1126         to ABI.
1127         (sh_push_arguments): Store in register with correct endianess.
1128         (sh_default_store_return_value): Ditto.
1129         (sh_gdbarch_init): Set sizeof long double to 8.
1130
1131 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
1132
1133         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1134         Fix some whitespace problems.
1135
1136 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1137
1138         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1139         (mcore-tdep.o): Ditto.
1140         (ns32k-tdep.o): Ditto.
1141         (ns32knbsd-tdep.o): Ditto.
1142         (sh3-rom.o): Ditto.
1143         (vax-tdep.o): Ditto.
1144         * cris-tdep.c: #include "gdb_string.h"
1145         * mcore-tdep.c: Ditto.
1146         * ns32k-tdep.c: Ditto.
1147         * ns32knbsd-tdep.c: Ditto.
1148         * sh3-rom.c: Ditto.
1149         * vax-tdep.c: Ditto.
1150
1151 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1152
1153         * config/djgpp/fnchange.lst: Add entries for
1154         gdb/testsuite/gdb.c++/m-static files.
1155
1156 2002-09-27  Jim Wilson  <wilson@redhat.com>
1157
1158         * MAINTAINERS: Add myself to the Write After Approval list.
1159
1160 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
1161
1162         * mips-tdep.c (find_proc_desc): Initialize startaddr.
1163
1164
1165 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1166
1167         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1168         frame.
1169
1170 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1171
1172         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1173         (rs6000_struct_return_address): Delete variable.
1174         (rs6000_store_struct_return): Update.
1175         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1176         deprecated_extract_struct_value_address.
1177         (rs6000_frame_align): New function.
1178         (rs6000_gdbarch_init): Set frame_align.
1179
1180 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1181
1182         From Grace Sainsbury <graces@redhat.com>:
1183         * Makefile.in (gdbtk-main.o): New target.
1184         (gdb.o): New target.
1185         (main_h): Define.
1186         (main.o): Update dependencies.
1187         (gdb$(EXEEXT)): Add gdb.o.
1188         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1189         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1190         (SUBDIR_GDBTK_CLEAN): Set.
1191         (install-gdbtk): Install the insight binary.
1192         (uninstall-gdbtk): New target.
1193         (all-gdbtk, clean-gdbtk): New rule.
1194         * top.c (use_windows): Default to zero.
1195         * main.c: Include "main.h".
1196         (main): Delete.
1197         (struct captured_main_args): Delete.
1198         (gdb_main): New function.
1199         * main.h: New file.
1200         * gdb.c: New File.
1201
1202 2002-09-25  Andrew Cagney  <cagney@redhat.com>
1203
1204         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1205         (frame_map_regnum_to_name): New function.
1206         (frame_map_name_to_regnum): New function.
1207         * frame.h (frame_map_name_to_regnum): Declare.
1208         (frame_map_regnum_to_name): Declare.
1209         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1210         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1211         * parse.c: Do not include "builtin-regs.h".
1212         (target_map_name_to_register): Delete function.
1213         (write_dollar_variable): Use frame_map_name_to_regnum.
1214         * parser-defs.h (target_map_name_to_register): Delete declaration.
1215         * expprint.c: Include "frame.h".
1216         (print_subexp): Use frame_map_regnum_to_name.
1217         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1218         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1219
1220 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
1221
1222         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1223         wasn't saved, and the next innermost frame is a dummy, return the
1224         dummy frame's link register.
1225
1226 2002-09-24  Jim Blandy  <jimb@redhat.com>
1227
1228         Fix from Paul Breed:
1229         * main.c (captured_main): Add a `break' after the case for 'b'.
1230
1231 2002-09-24  Keith Seitz  <keiths@redhat.com>
1232
1233         * varobj.c (c_type_of_child): Use get_target_type instead
1234         of TYPE_TARGET_TYPE.
1235
1236 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1237
1238         * source.c (get_current_or_default_source_symtab_and_line): Remove
1239         function.
1240         (set_default_source_symtab_and_line): New function. Attempts to
1241         determine a source file to list lines from if one is not currently
1242         defined.
1243         (get_current_source_symtab_and_line): Initialize sal.pc and
1244         sal.end fields.
1245         (set_current_source_symtab_and_line): Mark argument as const.
1246         * source.h: Update declarations and comments.
1247         * linespec.c (decode_line_1): Replace call to removed routine above.
1248         * stack.c (print_frame_info_base): Ditto.
1249         * cli/cli-cmds.c (edit_command): Ditto.
1250         (list_command): Ditto.
1251
1252 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1253
1254         * source.c (get_current_or_default_source_symtab_and_line): Initialize
1255         sal.pc and sal.end fields.
1256         (get_current_or_default_source_symtab_and_line): Ditto.
1257         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1258         so we do not cause a new source symtab to be searched for (reverting an
1259         unintentional change from the 2002-09-20 patch).
1260         * scm-lang.c (scm_unpac): Ditto.
1261
1262 2002-09-21  Andrew Cagney  <cagney@redhat.com>
1263
1264         * complaints.c (symfile_explanations): Remove new-line from
1265         ``isolated_message''.
1266         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1267         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1268
1269 2002-09-20  Nick Clifton  <nickc@redhat.com>
1270         
1271         * NEWS: Announce that V850EA ISA is no longer supported.
1272         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1273
1274 2002-09-20  David Carlton  <carlton@math.stanford.edu>
1275
1276         * Makefile.in (c-lang.o): Correct dependencies.
1277         (utils.o): Gather dependencies.
1278         (charset.o): Move.
1279         * c-lang.c: #include "gdb_string.h"
1280
1281 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1282
1283         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
1284         * cli/cli-cmds.c (list_command): New function.  Implements the new
1285         cli edit command.
1286         (_init_cli_cmds): Add new command definition.
1287         * gdb.1: Document edit command.
1288         * doc/gdb.texinfo: Document edit command.
1289
1290 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1291
1292         * source.c: Make global variables current_source_symtab and
1293         current_source_line static.
1294         (list_command): Moved to cli/cli-cmds.c.
1295         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1296         (get_first_line_listed): New accessor function.
1297         (get_lines_to_list): New accessor function.
1298         (get_current_source_symtab_and_line): New function. Retrieves the
1299         position in the source code that we consider current.
1300         (get_current_or_default_source_symtab_and_line): New function.
1301         Like the above but attempts to determine a default position if one
1302         is not currently defined.
1303         (set_current_source_symtab_and_line): New function. Sets the source
1304         code position considered current and returns the previously set one.
1305         (clear_current_source_symtab_and_line): Reset stored information about
1306         a current source line.
1307         (_initialize_source): Remove registration for the "list" command and
1308         its alias.
1309         * source.h: Add declarations for the new functions above.
1310         * symtab.h: Remove declarations for the global variables mentioned
1311         above.
1312         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1313         obtain current source line.
1314         * linespec.c (decode_line_1): Ditto.
1315         * macroscope.c (default_macro_scope): Ditto.
1316         * scm-lang.c (scm_unpac): Ditto.
1317         * stack.c (print_frame_info_base): Ditto.
1318         * symfile.c (clear_symtab_users): Ditto.
1319         * symtab.c (decode_line_spec): Ditto.
1320         * cli/cli-cmds.c (list_command): Moved here from source.c.
1321         (ambiguous_line_spec): Moved here from source.c.
1322         (_init_cli_cmds): Add definition for "list" and its alias.
1323         * Makefile.in: Update dependencies.
1324
1325 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1326
1327         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1328         with what gcc thinks is correct.
1329
1330 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1331
1332         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1333         multiple register push instruction.
1334
1335 2002-09-19  Jim Blandy  <jimb@redhat.com>
1336
1337         Add support for distinct host and target character sets.
1338         * charset.c, charset.h: New files.
1339         * c-exp.y: #include "charset.h".
1340         (yylex): Convert character and string literals to the target
1341         character set, before returning them as the semantic value of the
1342         token.
1343         * c-lang.c: #include "charset.h".
1344         (c_emit_char): Use charset-specific methods to recognize
1345         characters with backslash escape forms, to decide which characters
1346         to print literally and which to print using numeric escape
1347         sequences, and to convert target characters to host characters
1348         before printing.
1349         * utils.c: #include "charset.h".
1350         (no_control_char_error): New function.
1351         (parse_escape): Use charset-specific methods to recognize
1352         backslash escapes, parse `control character' notation, and convert
1353         characters from the host character set to the target character set.
1354         * configure.in: Set the default host character set.
1355         Check where to find iconv, and what its argument types might be.
1356         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1357         * Makefile.in (SFILES): List charset.c.
1358         (COMMON_OBS): List charset.o.   
1359         (charset.o): New rule.
1360         (charset_h): New header dependency variable.
1361         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1362         (LIBICONV): New variable, set by configure.
1363         (CLIBS): Include $(LIBICONV) here.
1364         * aclocal.m4, config.in, configure: Regenerated.
1365
1366 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1367
1368         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1369         bison 1.35 warning.
1370
1371 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1372
1373         * gdb_mbuild.sh: New file.
1374
1375 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1376
1377         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1378
1379 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1380
1381         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1382         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1383         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1384         valops.c, value.h: Revert previous change.
1385         
1386 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1387
1388         Preliminary support for Objective-C:
1389         * defs.h (language_objc): New enum value.
1390         (puts_filtered_tabular): Declaration only, exported from utils.c.
1391         (skip_quoted): Delete, declared in completer.h.
1392         * c-exp.y: Include completer.h.
1393         * p-exp.y: Ditto.
1394         * jv-exp.y: Ditto.
1395         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1396         New operator enum values.
1397         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1398         * language.c (binop_result_type): Handle language_objc case.
1399         (integral_type, character_type, string_type, boolean_type,
1400         structured_type, binop_type_check): Ditto.
1401         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1402         (struct objc_specific): Add to general_symbol_info.
1403         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1404         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1405         * parser-defs.h (struct objc_class_str): New struct type.
1406         (start_msglist, end_msglist, add_msglist): Declaration only,
1407         exported from objc-lang.c.
1408         * value.h (value_of_local, value_nsstring, 
1409         call_function_by_hand_expecting_type): Exported from valops.c.
1410         * valops.c (find_function_addr): Export.
1411         (call_function_by_hand_expecting_type): New function.
1412         (value_of_local): New function.
1413         * symfile.c (init_filename_language_table): Add ".m" extension
1414         for Objective-C.
1415         * utils.c (puts_filtered_tabular): New function.
1416         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1417         (set/show demangle): Extend help-string to refer to ObjC.
1418         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1419         * stabsread.c (symbol_reference_defined): Objective-C symbols
1420         may contain colons: make allowances when scanning stabs strings
1421         for colons.
1422         (objc_find_colon): New function.
1423         * printcmd.c (address_info): If language == objc then print
1424         "self" instead of "this".
1425         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1426         OP_NSSTRING, and OP_SELF.
1427         (prefixify_subexp): Ditto.
1428         * source.c (print_source_lines): Mention objc in comment.
1429         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1430         method names.
1431
1432 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1433
1434         * complaints.h: Update copyright.
1435         (struct complaints): Declare.
1436         (struct complaint): Make `message' constant.
1437         (internal_complaint): Declare.
1438         (complaint): Declare.
1439         (complaint_root): Delete declaration.
1440         (symfile_complaints): Delete declaration.
1441         (struct complaints): Add opaque declaration.
1442         (clear_complaints): Add a complaints parameter.
1443         * complaints.c: Update copyright.
1444         (enum complaint_series): Define.
1445         (complaint_root): Delete.
1446         (struct complaints): Define.
1447         (complaint_sentinel, symfile_complaint_book): New variables.
1448         (symfile_explanations, symfile_complaints): New variables.
1449         New variables.
1450         (get_complaints): New function.
1451         (vcomplaint): New function.
1452         (complaint): New function.
1453         (internal_complaint): New function.
1454         (complain): Call vcomplain with symfile_complaint.
1455         (clear_complaints): Rewrite.
1456         (_initialize_complaints): Use add_setshow_command.
1457         * Makefile.in (complaints.o): Update dependencies.
1458         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1459         to call to clear_complaints.
1460         (new_symfile_objfile, reread_symbols): Ditto.
1461         (oldsyms_complaint): Delete.
1462         (empty_symtab_complaint, unknown_option_complaint): Delete.
1463         (free_named_symtabs): Use complaint instead of complain.
1464
1465 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1466
1467         Contributed by Apple Computer, Inc.  Merged with current sources
1468         by Adam Fedor <fedor@doc.com> [cagney].
1469         
1470         * objc-lang.c: First clean-up round: comments, indentation.
1471         * objc-lang.h: Ditto.
1472         * objc-lang.y: Ditto.
1473
1474 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1475
1476         * maint.c (maintenance_internal_error): Print the parameter as the
1477         error message.
1478         (maintenance_internal_warning): New function.
1479         (_initialize_maint_cmds): Add command `maint internal-warning'.
1480
1481         * defs.h (internal_warning, internal_vwarning): Declare.
1482         * utils.c (struct internal_problem): Define.
1483         (internal_vproblem): New function.
1484         (internal_warning): New function.
1485         (internal_vwarning): New function.
1486         (internal_warning_problem, internal_error_problem): New variables.
1487         (internal_verror): Just call internal_vproblem.
1488
1489 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1490
1491         * objc-lang.c: New file, support for Objective-C.
1492         Preliminary check-in, not yet integrated into gdb.
1493         * objc-lang.h: New file.
1494         * objc-exp.y:  New file.
1495
1496 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1497
1498         * infrun.c (signal_stop_update): Convert definition to ISO C.
1499         (signal_print_update): Ditto.
1500         (signal_pass_update): Ditto.
1501         * inflow.c (terminal_save_ours): Ditto.
1502
1503         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1504         comments.
1505         
1506         * config/djgpp/fnchange.lst: Handle name clashes between
1507         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1508         bfd/coff-tic80.c.
1509
1510         * i386-linux-tdep.h: Fix tipo.
1511
1512 2002-09-18  Adam Fedor  <fedor@gnu.org>
1513
1514         * MAINTAINERS: Add myself to the Write After Approval list.
1515
1516 2002-09-18  Jim Blandy  <jimb@redhat.com>
1517
1518         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1519         texthigh and textlow to reader-specific structs caused
1520         objfile_relocate to miss them.  This is fixable, but the work that
1521         the change was supposed to prepare GDB for never got done anyway.
1522
1523 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1524
1525         * MAINTAINERS: Alphabetize Write After Approval list.
1526
1527 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1528
1529         Fix PR gdb/709
1530         * values.c (value_static_field): Call read_var_value.
1531
1532 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1533
1534         * valops.c (hand_function_call): Align the initial stack pointer
1535         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1536         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1537         return value.
1538         * mips-tdep.c (mips_frame_align): New function.
1539         (mips_gdbarch_init): Set frame_align.
1540         * gdbarch.sh (FRAME_ALIGN): New method.
1541         * gdbarch.h, gdbarch.c: Re-generate.
1542
1543 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1544
1545         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1546         registers.
1547
1548 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1549
1550         * NEWS: Mention that MIPS $fp behavior changed.
1551         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1552         reference to FP_REGNUM.
1553         (mipsnbsd_cannot_store_register): Ditto.
1554         * mips-linux-nat.c: Update copyright.
1555         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1556         (mips_linux_cannot_store_register): Ditto.
1557         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1558         * config/mips/tm-mips.h: Update copyright.
1559         (FP_REGNUM): Delete macro.
1560         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1561         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1562         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1563         (mips_r3041_reg_names, mips_r3051_reg_names)
1564         (mips_r3081_reg_names): Replace "fp" with "".
1565         Fix PR gdb/480.
1566
1567 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1568
1569         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1570         generic_read_register_dummy() (PR gdb/703).
1571         (avr_push_return_address): #if 0 out unused vars.
1572         (avr_gdbarch_init): Enable use of avr_push_return_address().
1573
1574 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1575
1576         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1577         RTE will take care of it.
1578
1579 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1580
1581         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1582         invalid, return SP_REGNUM.
1583
1584 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1585
1586         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1587         point registers without sign extension.
1588
1589 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1590
1591         * blockframe.c (deprecated_read_register_dummy): Rename
1592         generic_read_register_dummy.
1593         * frame.c (frame_unwind_signed_register): New function.
1594         (frame_unwind_unsigned_register): New function.
1595         * frame.h (frame_unwind_signed_register): Declare.
1596         (frame_unwind_unsigned_register): Declare.
1597         (deprecated_read_register_dummy): Rename
1598         generic_read_register_dummy.
1599
1600         * h8300-tdep.c (h8300_frame_chain): Update.
1601         (h8300_frame_saved_pc): Update.
1602         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1603         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1604         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1605         (s390_frame_chain): Update.
1606         * v850-tdep.c (v850_find_callers_reg): Update.
1607         (v850_frame_saved_pc): Update.
1608         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1609         (m32r_find_callers_reg): Update.
1610         (m32r_frame_saved_pc): Update.
1611         * sh-tdep.c (sh_find_callers_reg): Update.
1612         (sh64_get_saved_pr): Update.
1613         (sh_init_extra_frame_info): Update.
1614         (sh_init_extra_frame_info): Update.
1615         (sh64_init_extra_frame_info): Update.
1616         (sh64_init_extra_frame_info): Update.
1617         * mcore-tdep.c (mcore_find_callers_reg): Update.
1618         (mcore_frame_saved_pc): Update.
1619         (mcore_init_extra_frame_info): Update.
1620         * i386-tdep.c (i386_frame_saved_pc): Update.
1621         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1622         (ia64_init_extra_frame_info): Update.
1623         (ia64_init_extra_frame_info): Update.
1624         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1625         * cris-tdep.c (cris_init_extra_frame_info): Update.
1626         * avr-tdep.c (avr_frame_chain): Update.
1627         (avr_init_extra_frame_info): Update.
1628         (avr_frame_saved_pc): Update.
1629         * arm-tdep.c (arm_find_callers_reg): Update.
1630         (arm_init_extra_frame_info): Update.
1631         (arm_frame_saved_pc): Update.
1632
1633 2002-09-17  Tom Tromey  <tromey@redhat.com>
1634
1635         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1636         is "'".
1637
1638 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1639
1640         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1641         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1642         NEXT_PROLOGUE_INSN.
1643         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1644         NEXT_PROLOGUE_INSN.
1645
1646 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1647
1648         * osfsolib.c: Remove file, replaced by solib-osf.c.
1649         * Makefile.in: Remove compilation rules for osfsolib.c.
1650
1651 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1652
1653         * cp-valprint.c (cp_print_class_method): Correct args to
1654         check_stub_method_group.
1655
1656 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1657
1658         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1659         `set architecture'.  Unify naming convention of functions.
1660         (h8300_skip_prologue): Improve prologue analysis.
1661         (h8300_push_arguments): Rewritten to more closely match GCC's
1662         bizarre argument-passing behavior, along with the comment describing
1663         said behavior.
1664         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1665         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1666         sim, remote-e7000.c, remote-hms.c and remote.c
1667
1668 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1669
1670         * i386-tdep.c (gdb_print_insn_i386): Removed.
1671         (i386_print_insn): New function.
1672         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1673         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1674         tm_print_insn_info.
1675
1676 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1677
1678         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1679         zero.
1680
1681 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1682
1683         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1684         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1685         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1686
1687 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1688
1689         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1690
1691 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1692
1693         * gdbtypes.c (check_stub_method): Make static.
1694         (check_stub_method_group): New function.
1695         * gdbtypes.h: Update prototypes.
1696         * cp-support.c: New file.
1697         * cp-support.h: New file.
1698
1699         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1700         (update_method_name_from_physname): New function.
1701         (read_member_functions): Correct method names for operators
1702         and v3 constructors/destructors.  Separate v2 constructors and
1703         destructors.
1704         * Makefile.in (stabsread.o): Update dependencies.
1705         (SFILES): Add cp-support.c.
1706         (COMMON_OBS): Add cp-support.o.
1707         (cp_support_h, cp-support.o): Add.
1708
1709         * cp-valprint.c (cp_print_class_method): Call
1710         check_stub_method_group instead of check_stub_method.  Remove
1711         extraneous QUITs.
1712         * p-valprint.c (pascal_object_print_class_method): Likewise.
1713         * valops.c (search_struct_method): Likewise.
1714         (find_method_list, value_struct_elt_for_reference): Likewise.
1715
1716 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1717
1718         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1719         * gdbarch.h, gdbarch.c: Regenerate.
1720
1721 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1722
1723         * frame.c (find_saved_register): Delete function.
1724         * frame.h (find_saved_register): Delete declaration.
1725         Fix PR gdb/631.
1726
1727 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1728
1729         * mips-tdep.c (read_next_frame_reg): Re-hack using
1730         frame_register_unwind.
1731
1732 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1733
1734         * mips-tdep.c (mips_get_saved_register): Re-hack using
1735         frame_register_unwind.
1736
1737 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1738
1739         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1740         vector. Will be useful for Interix.  
1741         * gdbarch.h, gdbarch.c: Regenerate.
1742
1743         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1744         name of the malloc function by NAME_OF_MALLOC.
1745
1746 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1747
1748         * value.h (find_function_in_inferior): Add const keyword to
1749         one of the parameters. Allows us to invoke this function with
1750         a const char *.
1751         * valops.c (find_function_in_inferior): Likewise.
1752
1753 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1754
1755         * exec.c (xfer_memory): Fix compilation warning with old versions
1756         of GCC.
1757         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1758
1759 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1760
1761         * symtab.h: Run through gdb_indent.h.
1762         Add 2002 to Copyright year list.
1763
1764 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1765
1766         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1767         mach constants.
1768         * MAINTAINERS: Add myself to write after approval list.
1769
1770 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1771
1772         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1773
1774 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1775
1776         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1777         Interix.
1778
1779 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1780
1781         * procfs.c (do_detach): Clear current signal, not just fault.
1782         Corrects problem with breakpoint trap signal leaking to detached
1783         process on Tru64.
1784
1785 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1786
1787         * buildsym.c (finish_block): Protect against null pointer.
1788
1789 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1790
1791         * infcmd.c (default_print_registers_info): Send all output to
1792         ``file'' instead of ``gdb_stdout''.
1793
1794 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1795
1796         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1797         LONGEST, and use signed register read (addresses are sign-
1798         extended for mips).
1799
1800 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1801
1802         * event-loop.c (gdb_do_one_event): Make public.
1803         * event-loop.h (gdb_do_one_event): Declare.
1804
1805 2002-09-10  Jeff Law  <law@redhat.com>
1806
1807         * infttrace.c (child_resume): Simplify and rework to avoid
1808         TT_PROC_CONTINUE.
1809
1810 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1811
1812         * printcmd.c (print_scalar_formatted): "len" is the number of
1813         target bytes, NOT the number of target bits.
1814
1815 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1816
1817         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1818         * top.c (init_main): Set rl_terminal_name.
1819
1820 2002-09-08  Aidan Skinner <aidan@velvet.net>
1821
1822         * ada-lang.c (ada_array_bound, ada_type_match,
1823         _initialize_ada_language): Fix K&R definitions.
1824         * ada-tasks.c (get_current_task): Fix K&R definitions.
1825         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1826                         
1827 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1828
1829         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1830         Add XP.
1831
1832 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1833
1834         * i386-tdep.c (i386_register_virtual_type,
1835         i386_register_convertible, i386_register_convert_to_virtual,
1836         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1837         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1838         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1839         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1840         Don't set push_arguments twice.
1841
1842         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1843         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1844         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1845         sigtramp_end to NULL.
1846         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1847         defines.
1848         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1849
1850         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1851         whitespace.
1852
1853         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1854         * gdbarch.h, gdbarch.c: Re-generate.
1855         * blockframe.c (find_pc_sect_partial_function): Convert to use
1856         SIGTRAMP_START_P predicate.
1857
1858 2002-09-05  Michael Snyder  <msnyder@redhat.com>
1859
1860         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1861         generic_dummy_frame method and old method.  Also distinguish
1862         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1863         (arm_extract_return_value): Use new regcache method.
1864
1865         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1866         adjustment that doesn't conform to the ABI.
1867         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1868         saved regcache, not from current regcache.
1869
1870 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
1871
1872         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
1873         * README: Update.
1874
1875 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1876
1877         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1878         if arm_apcs_32 is false.
1879
1880 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
1881
1882         GDB 5.3 branch created.
1883
1884 2002-09-03  Theodore A. Roth  <troth@verinet.com>
1885
1886         * gdb/avr-tdep.c (avr_gdbarch_init): Use
1887         generic_unwind_get_saved_register.
1888
1889 2002-09-03  David Carlton  <carlton@math.stanford.edu>
1890
1891         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1892         argument (PR gdb/653).  Update call to smash_to_method_type.
1893         (read_structure_scope): Update call to dwarf2_add_member_fn.
1894
1895 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
1896
1897         * x86-64-linux-tdep.c: Include gdb_string.h
1898         * x86-64-linux-nat.c: Ditto.
1899
1900 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1901
1902         * ada-exp.y (yyname, yyrule): Remap global variables that appear
1903         when YYDEBUG is set to 1.  
1904         * c-exp.y: Likewise.
1905         * f-exp.y: Likewise.
1906         * jv-exp.y: Likewise.
1907         * m2-exp.y: Likewise.
1908         * p-exp.y: Likewise.
1909
1910 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1911
1912         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1913         dependency list.
1914         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1915         solib_svr4_fetch_link_map_offsets to
1916         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1917         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1918         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1919         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1920         solib-svr4.o, and solib-legacy.o.
1921         * config/i386/tm-nbsd.h: Include solib.h.
1922
1923 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1924
1925         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
1926         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
1927         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
1928         comment noting that this needs its own target configuration.
1929         * config/i386/nbsd.mt: New file.
1930         * config/i386/nbsdaout.mt: Remove.
1931         * config/i386/nbsdelf.mt: Ditto.
1932         * config/i386/tm-nbsdaout.h: Ditto. 
1933
1934 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1935
1936         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
1937         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
1938         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1939         tdep->sigtramp_end.
1940         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
1941         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1942         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1943
1944 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1945
1946         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1947         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1948         * i386-tdep.h (i386bsd_init_abi): New prototype.
1949         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1950         function declaration.
1951         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1952         for NetBSD-a.out or NetBSD-ELF.
1953         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1954         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1955         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1956         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
1957         and nbsd-tdep.h.
1958         (i386nbsd_pc_in_sigtramp): New function.
1959         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1960         i386nbsd_pc_in_sigtramp.
1961         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1962         and i386nbsdelf_init_abi OS ABI handlers.
1963         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1964         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1965
1966 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
1967
1968         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1969         registers if the target really has them.
1970
1971 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1972
1973         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1974         than nbsd-tdep.h.
1975
1976 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1977
1978         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1979         list.
1980         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1981         (alphanbsd_skip_sigtramp_frame): New functions. 
1982         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1983         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
1984         to alphanbsd_sigcontext_addr. 
1985
1986 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
1987
1988         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1989         list.
1990         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
1991         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1992         nbsd_pc_in_sigtramp. 
1993         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1994         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1995         * nbsd-tdep.c: Include gdb_string.h.
1996         (nbsd_pc_in_sigtramp): New function. 
1997         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
1998         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1999         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2000         ppcnbsd_pc_in_sigtramp. 
2001         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2002         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2003         shnbsd_pc_in_sigtramp. 
2004         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2005         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
2006         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2007
2008 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
2009
2010         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2011         watchpoints to NULL.
2012         (insert_breakpoints): set val field of watchpoints if NULL.
2013
2014
2015 2002-08-29  Jim Blandy  <jimb@redhat.com>
2016
2017         * symtab.c (lookup_symbol_aux): In the cases where we find a
2018         minimal symbol of an appropriate name and use its address to
2019         select a symtab to read and search, use `name' (as passed to us)
2020         as the demangled name when searching the symtab's global and
2021         static blocks, not the minsym's name.
2022
2023 2002-08-29  Keith Seitz  <keiths@redhat.com>
2024
2025         * stack.c (print_frame_info_base): Always set current_source_symtab
2026         and current_source_line.
2027
2028 2002-08-29  Donn Terry  <donnte@microsoft.com>
2029
2030         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2031
2032 2002-08-28  Keith Seitz  <keiths@redhat.com>
2033
2034         * stack.c (select_frame): Add FIXME concerning selected-frame
2035         events.
2036         (select_frame_command): Send selected-frame-level-changed
2037         event notification, but only if the level actually changed.
2038         (up_silently_base): Add selected-frame-level-changed event
2039         notification.
2040         (down_silently_base): Likewise.
2041
2042 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
2043
2044         * Makefile.in: Update dependencies for all gdb/*.c files.
2045
2046 2002-08-27  Tom Tromey  <tromey@redhat.com>
2047
2048         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2049         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2050         Update dependencies.
2051         * i387-tdep.c: Include gdb_string.h.
2052         * osabi.c: Likewise.
2053         * i386-linux-nat.c: Likewise.
2054         * lin-lwp.c: Likewise.
2055         * ax-gdb.c: Likewise.
2056         * signals/signals.c: Likewise.
2057         * jv-valprint.c: Likewise.
2058         * p-lang.c: Likewise.
2059         * c-valprint.c: Likewise.
2060         * cp-abi.c: Likewise.
2061
2062 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
2063
2064         * cli/cli-script.h (copy_command_lines): Export.
2065         * breakpoint.c: Include cli/cli-script.h.
2066         * Makefile.in (breakpoint.o): Update dependencies.
2067
2068 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2069
2070         * breakpoint.c (insert_breakpoints): Protect all references
2071         to 'process_warning'.  Shorten long lines.
2072
2073 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2074
2075         * cli/cli-script.c (copy_command_lines): New function.
2076         * defs.h (copy_command_lines): Export.
2077         * testsuite/gdb.base/commands.exp: New tests for commands
2078         attached to a temporary breakpoint, and for commands that
2079         delete the breakpoint they are attached to.
2080         
2081 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2082
2083         * breakpoint.c (bpstat_stop_status): Instead of copying the 
2084         pointer to the breakpoint commands struct, make a new copy
2085         of the struct and point to that.
2086         (bpstat_clear): Free the commands struct.
2087         (bpstat_clear_actions): Free the commands struct.
2088         (bpstat_do_actions): Free the command actions.  Also execute
2089         the local cleanups, instead of deleting them.
2090         (delete_breakpoint): Leave the commands field of the bpstat
2091         chain alone -- it will be freed later.
2092
2093 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
2094
2095         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2096         deleted in 2002-08-20 commit.  This function is still used by
2097         ppc-linux-nat.c.
2098
2099 2002-08-26  Keith Seitz  <keiths@redhat.com>
2100
2101         * gdb-events.sh: Add selected-frame-level-changed event.
2102         * gdb-events.c: Regenerated.
2103         * gdb-events.h: Regenerated.
2104         
2105 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
2106
2107         Fix PR gdb/393:
2108         * inflow.c (terminal_save_ours): New function to save terminal
2109         settings.
2110         * inferior.h (terminal_save_ours): Declare.
2111         * target.c (debug_to_terminal_save_ours): New function.
2112         (cleanup_target): Defaults to_terminal_save_ours.
2113         (update_current_target): Inherit to_terminal_save_ours.
2114         (setup_target_debug): Set to_terminal_save_ours.
2115         * target.h (target_terminal_save_ours): New to save terminal settings.
2116         (target_ops): New member to_terminal_save_ours.
2117         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2118         * hpux-thread.c (init_hpux_thread_ops): Likewise.
2119         * inftarg.c (init_child_ops): Likewise.
2120         * m3-nat.c (init_m3_ops): Likewise.
2121         * procfs.c (init_procfs_ops): Likewise.
2122         * wince.c (init_child_ops): Likewise.
2123         * win32-nat.c (init_child_ops): Likewise.
2124         * sol-thread.c (init_sol_thread_ops): Likewise.
2125
2126 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
2127
2128         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
2129         use regcache_* functions.
2130         (i386_gdbarch_init): Set store_return_value instead of
2131         deprecated_store_return_value.
2132
2133         * regcache.c (regcache_raw_write_signed,
2134         regcache_raw_write_unsigned): New functions.
2135         * regcache.h (regcache_raw_write_signed,
2136         regcache_raw_write_unsigned): New prototypes.
2137
2138 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2139
2140         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2141         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2142         source file dependencies.  Cleanup corresponding generator rules.
2143
2144 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2145
2146         * regcache.h (register_offset_hack): Declare.
2147         (regcache_cooked_read_using_offset_hack): Declare.
2148         (regcache_cooked_write_using_offset_hack): Declare.
2149
2150         * regcache.c (register_offset_hack): New function.
2151         (regcache_cooked_read_using_offset_hack): New function.
2152         (regcache_cooked_write_using_offset_hack): New function.
2153         (regcache_dump): Check that the registers, according to their
2154         offset, are packed hard against each other.
2155         (cooked_xfer_using_offset_hack): New function.
2156
2157 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2158
2159         * regcache.c (struct regcache_descr): Add field register_type.
2160         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2161         in as a parameter
2162         (init_regcache_descr): Initialize register_type.  Pass the descr
2163         to init_legacy_regcache_descr.  Use register_type instead of
2164         REGISTER_VIRTUAL_TYPE.
2165         (register_type): New function.
2166         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2167         * regcache.h (register_type): Declare.
2168
2169 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2170
2171         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2172         instead of deprecated_store_return_value.  Fix fallout from
2173         2002-08-23 Andrew Cagney <cagney@redhat.com>.
2174
2175 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2176
2177         * regcache.c (max_register_size): New function.
2178         (init_legacy_regcache_descr): Ensure that max_register_size is
2179         large enough for REGISTER_VIRTUAL_SIZE.
2180         * regcache.h (max_register_size): Declare.
2181
2182 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
2183
2184         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2185         store_return_value.
2186         (e500_extract_return_value): Change type of valbuf pointer to
2187         void.
2188
2189 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2190
2191         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2192         workaround.
2193
2194         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2195         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2196         long long) to prevent compiler warning on 64-bit systems.
2197
2198 2002-08-23  Andrew Cagney  <cagney@redhat.com>
2199
2200         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2201         (DEPRECATED_STORE_RETURN_VALUE): New method.
2202         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2203         * gdbarch.h, gdbarch.c: Re-generate.
2204
2205         * values.c (set_return_value): Pass current_regcache to
2206         STORE_RETURN_VALUE.
2207         * arch-utils.h (legacy_store_return_value): Declare.
2208         * arch-utils.c (legacy_store_return_value): New function.
2209         (legacy_extract_return_value): Update parameters.
2210
2211         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2212         STORE_RETURN_VALUE.
2213         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2214         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2215         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2216         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2217         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2218         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2219         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2220         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2221         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2222         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2223
2224         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2225         * i386-tdep.c (i386_extract_return_value): Update.
2226         * arch-utils.c (legacy_extract_return_value): Update.
2227         * frv-tdep.c (frv_gdbarch_init): Update.
2228         * cris-tdep.c (cris_gdbarch_init): Update.
2229         * d10v-tdep.c (d10v_gdbarch_init): Update.
2230         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2231         * m68k-tdep.c (m68k_gdbarch_init): Update.
2232         * mcore-tdep.c (mcore_gdbarch_init): Update.
2233         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2234         * s390-tdep.c (s390_gdbarch_init): Update.
2235         * sparc-tdep.c (sparc_gdbarch_init): Update.
2236         * sh-tdep.c (sh_gdbarch_init): Update.
2237         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2238         * v850-tdep.c (v850_gdbarch_init): Update.
2239         * avr-tdep.c (avr_gdbarch_init): Update.
2240         * ia64-tdep.c (ia64_gdbarch_init): Update.
2241         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2242         * vax-tdep.c (vax_gdbarch_init): Update.
2243         * alpha-tdep.c (alpha_gdbarch_init): Update.
2244         * arm-tdep.c (arm_gdbarch_init): Update.
2245         * mips-tdep.c (mips_gdbarch_init): Update.
2246         * i386-tdep.c (i386_gdbarch_init): Update.
2247
2248 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
2249
2250         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2251         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2252
2253 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2254
2255         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
2256         problems.
2257
2258 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2259
2260         * infrun.c (handle_inferior_event): Move a comment outside of a
2261         function call, in order to avoid indent reformatting this part
2262         of the code in an unreadable way.
2263
2264 2002-08-23  Grace Sainsbury  <graces@redhat.com>
2265
2266         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2267         when breakpoints fail. Move general breakpoint error messages to
2268         insert_breakpoints.  
2269         * breakpoint.c (insert_breakpoints): Change warnings when
2270         breakpoints are nto inserted to specify the type. Remove call to
2271         memory_error when hardware breakpoints can't be inserted. Remove
2272         multiple calls to warning so all messages are sent to the user at
2273         once.
2274         (delete_breakpoints): Make insert error messsages more explicit.
2275
2276 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
2277
2278         * ChangeLog: Move gdbserver entries after GDB 5.2 to
2279         gdbserver/ChangeLog.
2280
2281 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
2282
2283         * i386-tdep.c: Include "objfiles.h".
2284         (i386_svr4_init_abi): Set in_solib_call_trampoline and
2285         skip_trampoline_code.
2286         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2287         (CPLUS_MARKER): Define to '.'.
2288
2289         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2290         member.
2291         (linux_corefile_thread_callback): Increase args->num_notes.
2292         (linux_make_note_section): Initialize thread_args.num_notes, and
2293         use it to determine whether notes for any threads were created.
2294
2295 2002-08-23  Donn Terry  <donnte@microsoft.com>
2296
2297         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2298         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2299         and PCUNKILL.
2300         (write_with_trace): Conditionalize out the switch branch handling
2301         PCSHOLD if the corresponding macro is not defined. Likewise for
2302         PRSABORT and PRSTOP.
2303         This change will be needed by the Interix port.
2304
2305 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2306
2307         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2308         write_register wherever possible instead of manipulating the
2309         register bytes directly.
2310         Assign VALUE_CONTENTS to a variable and use that.
2311         The GPR numbers are now dependent on the architecture.
2312         
2313 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2314
2315         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2316         ev_offset fields.
2317         (skip_prologue): Add support for BookE/e500 instructions.
2318         (e500_extract_return_value): New function.
2319         (frame_get_saved_regs): Add support for saving ev registers and
2320         pseudo gpr's.
2321         (e500_store_return_value): New function.
2322         (rs6000_gdbarch_init): Move up default intializations of
2323         deprecated_extract_return_value and store_return_value.  Overwrite
2324         init of store_return_value with e500 specific version.
2325         Set extract_return_value for e500.
2326         
2327 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2328
2329         * blockframe.c (generic_call_dummy_register_unwind): Use
2330         regcache_cooked_read to catch cases in which the variable is
2331         stored in a pseudo register.
2332
2333 2002-08-22  Andrew Cagney  <cagney@redhat.com>
2334
2335         * NEWS: Mention that the i960 has been made obsolete.
2336         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2337         i960-tdep.c
2338         (remote-nrom.o): Obsolete target.
2339         (remote-nindy.o, i960-tdep.o): Ditto.
2340         * remote-nrom.c: Make file obsolete.
2341         * remote-nindy.c, remote-vx960.c: Ditto.
2342         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2343         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2344         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2345         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2346         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2347         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2348         i960-*-vxworks* obsolete.
2349         * MAINTAINERS: Note that the i960 is obsolete.
2350
2351 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
2352
2353         * aix-thread.c (aix_thread_detach): Disable thread debugging on
2354         detach to allow reinitialization.
2355
2356 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
2357
2358         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2359         attempt).
2360
2361 2002-08-22  Jim Blandy  <jimb@redhat.com>
2362
2363         * coffread.c (coff_symfile_read): Don't try to read the line
2364         number table from disk if the image file doesn't have a symbol
2365         table; we'll never actually look at the info anyway, and Windows
2366         ships DLL's with bogus file offsets for the line number data.
2367
2368 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2369
2370         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2371         an e500 executable.
2372
2373 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2374
2375         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2376         (MSYMBOL_SIZE): Replace macro with function.
2377         (DEFAULT_MIPS_TYPE): Delete unused macro.
2378         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2379         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2380
2381 2002-08-21  Jim Blandy  <jimb@redhat.com>
2382
2383         * valops.c (value_cast): Simplify and correct logic for doing a
2384         static cast from a pointer to a base class to a pointer to a
2385         derived class.
2386
2387 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2388
2389         * infcmd.c (default_print_registers_info): Replace
2390         do_registers_info.
2391         (registers_info): Use gdbarch_print_registers_info instead of
2392         DO_REGISTERS_INFO.
2393         * inferior.h (default_print_registers_info): Replace
2394         do_registers_info.
2395         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2396         (DO_REGISTERS_INFO): Change to a predicate function.
2397         * gdbarch.h, gdbarch.c: Regenerate.
2398         
2399 2002-08-21  Keith Seitz  <keiths@redhat.com>
2400
2401         * gdb-events.sh: Add target-changed event.
2402         * gdb-events.c: Regenerated.
2403         * gdb-events.c: Regenerated.
2404         * valops.c (value_assign): Add target-changed event notification
2405         to inlval_register, lval_memory, and lval_reg_frame_relative.
2406
2407 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2408
2409         * NEWS: Add an entry regarding the improvement of the next/step
2410         operation on Alpha Tru64 multi-processor machines.
2411
2412 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2413
2414         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2415         directores.
2416         * Makefile.in: Update all _h macro definitions.
2417         * Makefile.in (install-gdbtk): Move to install section.
2418         (rdi-share/libangsd.a): Move to end of file.
2419
2420 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2421
2422         * frame.c (frame_register_unwind): When a register, set addrp to
2423         the register's byte.
2424
2425 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2426
2427         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2428         used locally, so move them from the target machine header to here.
2429         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2430         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2431         Make static.
2432         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2433
2434 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2435
2436         * NEWS: Mention that the Apollo line was made obsolete.
2437         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2438         m68*-hp-hpux* obsolete.
2439         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2440         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2441         * buildsym.c (make_blockvector): Make static.
2442         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2443         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2444         (ALLDEPFILES): Remove dstread.c.
2445         (dstread.o): Obsolete make rule.
2446         * dstread.c: Makefile obsolete.
2447         * dst.h: Ditto.
2448         * config/m68k/hp300hpux.mt: Ditto.
2449         * config/m68k/hp300hpux.mh: Ditto.
2450         * config/m68k/hp300bsd.mt: Ditto.
2451         * config/m68k/hp300bsd.mh: Ditto.
2452         * config/m68k/apollo68b.mt: Ditto.
2453         * config/m68k/apollo68v.mh: Ditto.
2454         * config/m68k/apollo68b.mh: Ditto.
2455
2456 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2457
2458         * mips-tdep.c (mips_in_return_stub): Make static.
2459         (mips_gdbarch_init): Set in_solib_return_trampoline.
2460         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2461
2462 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2463
2464         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2465         * gdbarch.c, gdbarch.h: Regenerate.
2466         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2467         Add.
2468         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2469
2470 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2471
2472         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2473         (mips_gdbarch_init): Set skip_trampoline_code, 
2474         in_solib_call_trampoline.
2475         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2476         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2477
2478 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2479
2480         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2481
2482         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2483         vector type for ev registers.
2484         (e500_pseudo_register_read): New function.
2485         (e500_pseudo_register_write): New function.
2486         (e500_dwarf2_reg_to_regnum): New function.
2487         (PPC_UISA_NOFP_SPRS): New macro.
2488         (PPC_EV_REGS): New macro.
2489         (PPC_GPRS_PSEUDO_REGS): New macro.
2490         (registers_e500): New register set for e500.
2491         (variants): Add e500 variant.
2492         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2493         before setting architectural dependent variations.  Initialize ev
2494         registers numbers.  Add case for e500 architecture.  Set the
2495         number of pseudo registers.
2496
2497 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2498
2499         * rs6000-tdep.c: Clean up comments.
2500
2501 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2502
2503         * h8300-tdep.c: Re-indent file.
2504
2505 2002-08-20  Jim Blandy  <jimb@redhat.com>
2506
2507         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2508         default for this.
2509
2510 2002-08-20  Keith Seitz  <keiths@redhat.com>
2511
2512         * breakpoints.c (watch_command_1): Use internal breakpoint
2513         when setting a watchpoint_scope breakpoint.
2514
2515 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2516
2517         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2518         (build_builtin_type_vec64i): Ditto.
2519         (build_builtin_type_vec128): Ditto.
2520         (build_builtin_type_vec128i): Ditto.
2521
2522 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2523
2524         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2525         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2526         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2527         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2528         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2529         CALL_DUMMY_ADDRESS): Delete.
2530         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2531         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2532         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2533         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2534         push_return_address.
2535         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2536         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2537         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2538         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2539         mips_n32n64_push_arguments, mips_push_return_address,
2540         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2541         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2542
2543 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2544
2545         * mips-tdep.c (mips_frame_num_args): New function.
2546         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2547         frame_saved_pc, frame_args_address, frame_locals_address, 
2548         frame_num_args, and frame_args_skip.
2549         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2550         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2551         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2552         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2553
2554 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2555
2556         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2557         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2558         * mips-tdep.c (mips_store_struct_return): New function.
2559         (mips_extract_struct_value_address): New function.
2560         (mips_gdbarch_init): Set store_struct_return and
2561         extract_struct_value_address.
2562
2563 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2564
2565         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2566         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2567         (read_file_scope): Check that line_header is nonzero before
2568         decoding macro information.
2569
2570 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2571
2572         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2573         flag the general-purpose registers as floating-point on targets
2574         that don't support the floating-point registers.
2575
2576 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2577
2578         * rs6000-tdep.c (altivec_register_p): Delete.
2579         (rs6000_do_altivec_registers): Delete.
2580         (rs6000_altivec_registers_info): Delete.
2581         (rs6000_do_registers_info): Delete.
2582         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2583         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2584
2585 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2586
2587         * infcmd.c (do_registers_info): Print vector registers in hex
2588         format only.
2589         (print_vector_info): Check that printing registers
2590         makes sense.
2591         (print_float_info): Ditto.
2592
2593 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2594
2595         * mips-tdep.c (mips_gdbarch_init): Update.
2596         (mips_o32_extract_return_value): Rewrite.
2597         (mips_o32_store_return_value): Rewrite.
2598         (mips_o32_xfer_return_value): New function.
2599         (mips_xfer_register): Tweak debug print message.  Allow for
2600         buf_offset when dumping the value transfered.
2601
2602 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2603
2604         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2605         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2606         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2607         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2608         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2609
2610 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2611
2612         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2613
2614 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2615
2616         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2617         register.
2618         (P): New macro to define a register as a pseudo register.
2619         (R, R4, R8, R16, FR32, R64, R0): Updated.
2620         (struct variant): Add new fields for number of pseudo registers
2621         and number of total registers.
2622         (tot_num_registers): New macro replacing....
2623         (num_registers): ...deleted macro.
2624         (num_registers): New function.
2625         (num_pseudo_registers): New function.
2626         (variants): Update all variants to intialize new fields correctly.
2627         Postpone initialization of number of pseudo regs and real regs.
2628         (init_variants): New function.
2629         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2630         registers offsets.
2631
2632 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2633
2634         * valops.c (search_struct_field): Change error message to treat
2635         return value of 0 from value_static_field as meaning that field is
2636         optimized out.
2637         (value_struct_elt_for_reference): Ditto.
2638         * values.c (value_static_field): Treat an unresolved location the
2639         same as a nonexistent symbol.  Fix PR gdb/635.
2640         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2641         enclosed.  Fix PR gdb/574.
2642         * MAINTAINERS: Add self to Write After Approval list.
2643
2644 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2645
2646         * mips-tdep.c (mips_xfer_register): New function.
2647         (mips_n32n64_extract_return_value): Rewrite.
2648         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2649         instead of deprecated_extract_return_value.
2650
2651 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2652
2653         * rs6000-tdep.c (TDEP): Delete macro.
2654         (branch_dest): Replace use of TDEP macro with its body.
2655         (rs6000_pop_frame): Ditto.
2656         (rs6000_push_arguments): Ditto.
2657         (rs6000_skip_trampoline_code): Ditto.
2658         (rs6000_frame_saved_pc): Ditto.
2659         (rs6000_frame_chain): Ditto.
2660         (rs6000_register_name): Ditto.
2661         (rs6000_register_byte): Ditto.
2662         (rs6000_register_raw_size): Ditto.
2663         (rs6000_register_virtual_type): Ditto.
2664         (rs6000_register_convertible): Ditto.
2665         (rs6000_convert_from_func_ptr_addr): Ditto.
2666
2667 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2668
2669         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2670         conditionally.
2671         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2672         MIPS_LINUX_JB_ELEMENT_SIZE.
2673         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2674         for MAX_REGISTER_RAW_SIZE arrays.
2675         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2676         MIPS_LINUX_JB_ELEMENT_SIZE.
2677
2678 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2679
2680         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2681
2682 2002-08-19  Aidan Skinner <aidan@velvet.net>
2683
2684         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2685         ada-valprint.c ada-tasks.c.
2686         (YYFILES): Add ada-exp.y.
2687         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2688         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2689         (ada-exp.tab.o): New target.
2690                 
2691 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2692
2693         * regcache.c (regcache_xfer_part): New function.
2694         (regcache_raw_read_part): New function.
2695         (regcache_raw_write_part): New function.
2696         (regcache_cooked_read_part): New function.
2697         (regcache_cooked_write_part): New function.
2698         * regcache.h (regcache_raw_read_part): Declare.
2699         (regcache_raw_write_part): Declare.
2700         (regcache_cooked_read_part): Declare.
2701         (regcache_cooked_write_part): Declare.
2702
2703 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2704
2705         * remote.c (remote_open_1): Add async_p.
2706         (remote_async_open_1): Delete.
2707         (open_remote_target): Delete.
2708         (remote_open, extended_remote_open): Update calls to remote_open_1.
2709         (remote_async_open, extended_remote_async_open): Call
2710         remote_open_1 instead of remote_async_open_1.
2711
2712 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2713
2714         * blockframe.c: Fix a few coding standard violations.
2715
2716 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2717
2718         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2719         here from ...
2720         * config/i386/tm-i386sco5.h: ... here.  File removed.
2721         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2722
2723         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2724         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2725         (TM_FILE): Set to tm-i386.h.
2726         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2727         * config/i386/tm-i386v.h: Remove file.
2728         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2729         instead of "i386/tm-i386v.h".
2730         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2731         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2732         "i386/tm-i386v.h".
2733         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2734         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2735         "i386/tm-i386.h".
2736
2737 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2738
2739         * config/i386/nm-i386v.h: Add protection against
2740         multiple-inclusion.
2741         (i386_register_u_addr): Remove prototype.
2742         (register_u_addr): New prototype.
2743         (REGISTER_U_ADDR): Redefine accordingly.
2744         * i386v-nat.c: Improve several comments.
2745         (i386_register_u_addr): Change signature and rename to
2746         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2747         ubase variable.
2748
2749 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2750
2751         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2752         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2753         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2754         deprecated_extract_return_value.
2755         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2756         rename mips_o32o64_push_arguments.
2757         (mips_gdbarch_init): Update.
2758         (mips_extract_return_value): Delete.
2759         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2760         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2761         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2762         (mips_n32n64_extract_return_value): Clone
2763         mips_extract_return_value.
2764         (mips_store_return_value): Delete.
2765         (mips_o32_store_return_value): Clone mips_store_return_value.
2766         (mips_o64_store_return_value): Clone mips_store_return_value.
2767         (mips_eabi_store_return_value): Clone mips_store_return_value.
2768         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2769
2770 2002-08-18  Aidan Skinner <aidan@velvet.net>
2771
2772         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2773         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2774                 
2775 2002-08-18  Aidan Skinner <aidan@velvet.net>
2776
2777         * ada-lang.c: Run through gdb_indent.sh.
2778         * ada-lang.h: Run through gdb_indent.sh.
2779         * ada-tasks.c: Run through gdb_indent.sh.
2780         * ada-typeprint.c: Run through gdb_indent.sh.
2781         * ada-valprint.c: Run through gdb_indent.sh.
2782
2783 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2784
2785         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2786         ABI.
2787
2788 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2789
2790         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2791
2792         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2793         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2794
2795         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2796         write_register_gen instead of write_register_bytes.
2797
2798         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2799         i[3456]-*-osf1mk* configurations have been made obsolete.
2800         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2801         i[3456]86-*-osf1mk* hosts obsolete.
2802         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2803         targets obsolete.
2804         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2805         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2806         config/i386/i386m3.mt, config/i386/nm-m3.h,
2807         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2808         config/i386/i386mk.mh, config/i386/i386mk.mt,
2809         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2810         obsolete.
2811         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2812         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2813         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2814
2815 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2816
2817         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2818         (hppa_value_returned_from_stack): Declare.
2819         (hppa_extract_return_value): Declare.
2820         * config/pa/hppa.mt: New file.
2821         * configure.tgt: Recognize hppa*-*-*.
2822         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2823
2824 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2825
2826         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2827         comment.
2828
2829 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2830
2831         * top.c (gdb_rl_operate_and_get_next): Make sure
2832         operate-and-get-next functions correctly even when the history
2833         list is completely filled.
2834
2835 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2836
2837         * MAINTAINERS (Target Instruction Set Architectures): Rename
2838         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2839         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2840         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2841         already listed under Host/Native.
2842
2843         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2844         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2845         mips*-*-*.
2846
2847 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2848
2849         * config/ia64/ia64.mt: New file.
2850         * config/alpha/alpha.mt: New file.
2851         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2852         ia64-linux-gnu.  Mention that ia64-elf is broken.
2853         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2854
2855 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
2856
2857         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2858         generic_func_frame_valid instead of func_frame_valid.
2859
2860 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2861
2862         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2863         procfs appears to be broken when debugging on multi-processor
2864         machines. So enable software single stepping in order to avoid
2865         using the procfs interface to do next/step operations, using
2866         internal breakpoints instead.
2867
2868         * infrun.c (handle_inferior_event): Readjust the stop_pc by
2869         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2870         make this pc address equal to the value it would have if the
2871         system stepping capability was used. Also set a new flag used
2872         to ensure that we don't readjust the PC one more time later.
2873
2874         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2875         address by DECR_PC_AFTER_BREAK when software single step is
2876         in use for this architecture, as this has already been taken
2877         care of in handle_inferior_event().
2878
2879 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2880
2881         * infrun.c (handle_inferior_event): Minor reformatting, to make
2882         a rather long condition expression easier to read.
2883
2884 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2885
2886         * Makefile.in (gdbtk.o): Move to end of file.
2887         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2888         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2889         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2890         (gdbtk-wrapper.o, gdbres.o): Ditto.
2891
2892 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2893
2894         * Makefile.in (copying.o): Separate out compile rule.
2895         (hpux-thread.o, procfs.o, signals.o): Ditto.
2896         (v850ice.o, z8k-tdep.o): Ditto.
2897         (tui-file.o): Move to TUI section.
2898         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2899         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2900
2901 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2902
2903         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2904         skip_trampoline_code, for better namespace-proofing.   
2905
2906         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2907
2908 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2909
2910         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2911
2912 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2913
2914         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2915         signal, check whether we hit a breakpoint before checking for a
2916         single step breakpoint. Otherwise, GDB fails to notice that a
2917         breakpoint has been hit when stepping onto a breakpoint.
2918
2919 2002-08-16  Keith Seitz  <keiths@redhat.com>
2920
2921         * gdb-events.sh (clear_gdb_event_hooks): New function.
2922         * gdb-events.c: Regenerate.
2923         * gdb-events.h: Regenerate.
2924
2925 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2926
2927         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2928         not_a_sw_breakpoint.
2929         * breakpoint.h (bpstat_stop_status): Add parameter names.
2930
2931 2002-08-16  Grace Sainsbury  <graces@redhat.com>
2932
2933         * remote.c (remote_insert_hw_breakpoint)
2934         (remote_remove_hw_breakpoint): Fix calculation of length field
2935         for Z-packet.
2936
2937 2002-08-15  Michael Snyder  <msnyder@redhat.com>
2938
2939         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2940         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2941         (supply_fpregset): Ditto.
2942         
2943         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
2944         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
2945         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2946         (TARGET_READ_SP): Delete.
2947         (DO_REGISTERS_INFO): Delete.
2948         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2949         Delete.
2950         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2951         from macros to functions.
2952
2953         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2954         (mips_register_convertible, mips_register_convert_to_virtual,
2955         mips_register_convert_to_raw): Make static.
2956         (mips_read_sp): New function.
2957         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2958         (mips_do_registers_info): Make static.
2959         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2960         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2961         (mips_register_convert_from_type, mips_register_convert_to_type):
2962         New functions.
2963         (mips_gdbarch_init): Set up function_start_offset, 
2964         register_virtual_size, pc_in_sigtramp.
2965
2966 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2967
2968         * infcmd.c (vector_info): New function.
2969         (_initialize_infcmd): Add command "info vector".
2970         (print_vector_info): New function.
2971
2972         * gdbarch.sh (PRINT_VECTOR_INFO): New method
2973         * gdbarch.h, gdbarch.c: Regenerate.
2974
2975 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2976
2977         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2978         ``print_all''.  Only print vector registers when ``print_all''.
2979
2980 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
2981
2982         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2983         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2984
2985         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2986         Add `args' parameter.
2987         * gdbarch.h, gdbarch.c: Regenerate.
2988         
2989         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2990         
2991         * infcmd.c (float_info): Call print_float_info.
2992         (print_float_info): New function.  By default, print the
2993         floating-point registers.
2994
2995         * arch-utils.h (default_print_float_info): Delete declaration.
2996         * arch-utils.c (default_print_float_info): Delete function.
2997         
2998 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
2999
3000         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3001         out define.
3002
3003         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3004         FRAME.
3005
3006         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3007         * configure.host: Make i[3456]86-*-aix host obsolete.
3008         * configure.tgt: Make i[3456]86-*-aix target obsolete.
3009         * config/i386/i386aix.mh, config/i386/i386aix.mt,
3010         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3011         config/i386/xm-i386aix.h: Make files obsolete.
3012         * i386aix-nat.c: Make file obsolete.
3013         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3014         (i386aix-nat.o): Make target obsolete.
3015
3016         * config/i386/nm-gnu.h: Removed.
3017         * config/i386/nm-i386gnu.h: New file.
3018         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3019         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3020         Moved here from ...
3021         * config/i386/tm-i386gnu.h: ... here.  Removed.
3022         * config/i386/xm-i386gnu.h: Removed.
3023         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3024         (NAT_FILE): Set to nm-i386gnu.h.
3025         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3026         * i386-tdep.c: New file.
3027         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3028         (i386gnu-tdep.o): Specify dependencies.
3029
3030 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
3031
3032         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3033         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3034         Adjust a few comments to reflect reality a bit closer.
3035         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3036         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3037         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3038         target_insert_watchpoint, target_remove_watchpoint):
3039         Move defines to ...
3040         * config/i386/nm-i386sco5.h: ... here.
3041         (kernel_u_size): Add prototype.  Improve a few comments and add
3042         protection against multiple inclusion.
3043         
3044         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3045         out define.
3046
3047         * uw-thread.c (SP_ARG0): Define if not already defined.
3048         * config/i386/tm-i386.h (SO_ARG0): Remove define.
3049
3050         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3051
3052         * config/i386/tm-i386.h: Don't include "regcache.h".
3053
3054         * i387-tdep.h (i387_print_float_info): New prototype.
3055         * i387-tdep.c (print_i387_value, print_i387_ext,
3056         print_i387_status_word, print_i387_control_word): Add `struct
3057         ui_file *' argument and use it for output.
3058         (i387_print_float_info): Renamed from i387_float_info.  Add
3059         `struct gdbarch *' and `struct ui_file *' arguments and use the
3060         latter for output.
3061         * i386-tdep.c: Include "i387-tdep.h".
3062         (i386_gdbarch_init): Set print_float_info.
3063         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3064         (FLOAT_INFO): Remove define.
3065
3066 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3067
3068         * mips-tdep.c (mips_push_arguments): Rename to
3069         mips_eabi_push_arguments, and tune for EABI.
3070         (MIPS_REGS_HAVE_HOME_P): Delete.
3071         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3072         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3073         Delete references to mips_regs_have_home_p.
3074
3075 2002-08-14  Keith Seitz  <keiths@redhat.com>
3076
3077         * Makefile.in (install-gdbtk): Create insight plugin directory.
3078         Install plugins.tcl file.
3079
3080 2002-08-14  Keith Seitz  <keiths@redhat.com>
3081
3082         * configure.in: Move SUBDIRS to near top of the file so that
3083         --enable options may add things to it.
3084         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3085         * configure: Regenerate.
3086
3087 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3088
3089         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
3090         cloned from mips_push_arguments, tuned for o32/o64 ABI.
3091         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3092
3093 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
3094
3095         * vax-tdep.c (vax_get_saved_register): Delete function.
3096         (vax_gdbarch_init): Update.
3097         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3098         (ns32k_gdbarch_init): Update.
3099         * alpha-tdep.c (alpha_get_saved_register): Delete function.
3100         (alpha_gdbarch_init): Update.
3101
3102 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3103
3104         * regcache.c (init_regcache_descr): Overallocate the
3105         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3106         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3107         nr_raw_registers.
3108         (set_register_cached): Add range checking assertions.  Use
3109         current_regcache.
3110
3111 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
3112
3113         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3114         numbers for MMX registers.
3115
3116 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3117
3118         * i386-tdep.c (i386_gdbarch_init): Use
3119         generic_unwind_get_saved_register.
3120
3121 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
3122
3123         * procfs.c (procfs_can_use_hw_breakpoint): New function.
3124         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3125         target vector.
3126         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3127         Delete.  Add comment regarding this now-deleted target method.
3128
3129 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3130
3131         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3132         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3133         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3134         real PC and the page number (if it's within the memory bank window).
3135         (m68hc11_pseudo_register_write): Likewise when saving.
3136         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3137         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3138         (m68hc11_register_raw_size): And use 32-bit for it.
3139         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3140         16K memory bank is used by the prog; also use the virtual pc.
3141
3142 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3143
3144         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3145         (m68hc11_gdbarch_init): Install it in gdbarch.
3146         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3147         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3148         (MSYMBOL_SIZE): New for documentation.
3149         (insn_return_kind): Enum to specify how a function returns.
3150         (frame_extra_info): Cleanup and record the return mode.
3151         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
3152         register in address computation.
3153         (m68hc11_get_return_insn): New to obtain the return instruction used
3154         by the function.
3155         (m68hc11_frame_init_saved_regs): Take into account the return
3156         instruction used by the function for far and interrupt functions.
3157         (m68hc11_init_extra_frame_info): Take into account page register.
3158         (m68hc11_frame_args_address): Adjust according to the return mode.
3159         (show_regs): Print page register only when it's used.
3160
3161 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3162
3163         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3164         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3165         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3166         registers.
3167         (m68hc11_register_raw_size): Likewise.
3168
3169 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3170
3171         * i386-tdep.c (i386_register_name): Handle mmx registers.
3172         (mmx_regnum_p): New function.
3173         (i386_mmx_names): New array.
3174         (mmx_num_regs): New variable.
3175         (i386_pseudo_register_read): New function.
3176         (i386_pseudo_register_write): New function.
3177         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3178
3179         * regcache.c (regcache_raw_read_unsigned): New function.
3180         (regcache_raw_read_signed): New function.
3181         * regcache.h (regcache_raw_read_unsigned): Declare.
3182         (regcache_raw_read_signed): Declare.
3183
3184 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3185
3186         * regcache.c (regcache_raw_read_as_address): Delete function.
3187         (regcache_cooked_read_signed): New function.
3188         (regcache_cooked_read_unsigned): New function.
3189         * regcache.h (regcache_cooked_read_signed): Declare.
3190         (regcache_cooked_read_unsigned): Declare.
3191         (regcache_raw_read_as_address): Delete declaration.
3192
3193         * blockframe.c (generic_read_register_dummy): Use
3194         regcache_cooked_read_unsigned.
3195         * i386-tdep.c (i386_extract_struct_value_address): Use
3196         regcache_cooked_read_unsigned.
3197
3198 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3199
3200         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3201         double sizes according to ELF ABI flags.
3202         (gdbarch_tdep): Record elf_flags.
3203
3204 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3205
3206         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3207         (m6812_prolog): They can appear in 68HC12 function prologue.
3208         (m68hc11_frame_chain): Cleanup.
3209
3210 2002-08-12  Andrew Cagney  <cagney@redhat.com>
3211
3212         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3213         declarations.
3214         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3215         (i386_linux_register_raw_size): Delete function.
3216         (i386_linux_init_abi): Update.
3217         * i386-tdep.c (i386_register_raw_size): Delete function.
3218         (i386_register_byte): Delete function.
3219         (i386_gdbarch_init): Update.
3220         (i386_register_size): Delete array.
3221         (i386_register_offset): Delete array.
3222
3223         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3224         (REGISTER_RAW_SIZE): Delete macro.
3225         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3226         (REGISTER_BYTE): Delete macro.
3227
3228 2002-08-11  Aidan Skinner <aidan@velvet.net>
3229
3230         * ada-lang.c (ada_lookup_partial_symbol)
3231         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3232         prototype names so that grep ^func works properly.
3233
3234         * ada-lang.c (ada_array_element_type)
3235         (ada_lookup_partial_symbol): Fix typos in parameter list.
3236
3237         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3238         Fix prototype names so that grep ^func works properly.
3239         
3240 2002-08-10  Andrew Cagney  <cagney@redhat.com>
3241             Elena Zannoni  <ezannoni@redhat.com>
3242             Martin M. Hunt  <hunt@redhat.com>
3243
3244         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3245         (build_builtin_type_vec128i): Set the vector bit.
3246         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3247         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3248         (build_builtin_type_vec64): New function.
3249         (build_builtin_type_vec64i): New function.
3250         (build_gdbtypes): Initialize builtin_type_vec64 and
3251         builtin_type_vec64i.
3252
3253 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3254
3255         * regcache.c (regcache_dump): Compare the register offset
3256         with REGISTER_BYTE.
3257         * arch-utils.c (generic_register_byte): New function.
3258         * arch-utils.h (generic_register_byte): Declare.
3259         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3260         * gdbarch.h, gdbarch.c: Regenerate.
3261
3262 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3263
3264         * regcache.c: Include "gdbcmd.h"
3265         (_initialize_regcache): Add commands "maintenance print
3266         registers", "maintenance print raw-registers" and "maintenance
3267         print cooked-registers".
3268         (enum regcache_dump_what): Define.
3269         (dump_endian_bytes): New function.
3270         (regcache_dump): New function.
3271         (regcache_print): New function.
3272         (maintenance_print_registers): New function.
3273         (maintenance_print_raw_registers): New function.
3274         (maintenance_print_cooked_registers): New function.
3275         * Makefile.in (regcache.o): Update dependencies.
3276
3277 2002-08-09  Michael Snyder  <msnyder@redhat.com>
3278
3279         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3280         (mips_push_arguments): Correct some comments.  Use paddr_nz
3281         for printing addresses in debug output.  Replace static
3282         allocation using MAX_REGISTER_RAW_SIZE with alloca.
3283         (mips_n32n64_push_arguments): New function, cloned from
3284         mips_push_arguments and tuned for the n32/n64 ABI.
3285         (mips_push_register): Buffer needs dynamic allocation.
3286         (mips_print_register): Ditto.
3287         (do_gp_register_row): Ditto.
3288         (mips_store_return_value): Ditto.
3289         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3290
3291 2002-08-09  Don Howard  <dhoward@redhat.com>
3292
3293         * memattr.c (mem_info_command): Print special case of upper bound
3294         as max CORE_ADDR + 1.
3295
3296 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3297
3298         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
3299         returns structs by ref if they're too big to fit in two registers.
3300
3301 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3302
3303         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3304         saved regs value.
3305         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3306         mips_find_saved_regs().
3307         (mips_pop_frame): Likewise.
3308
3309 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3310
3311         * blockframe.c (frame_saved_regs_register_unwind): Revise
3312         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3313         frames are in use.
3314
3315 2002-08-09  Grace Sainsbury  <graces@redhat.com>
3316         
3317         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3318         T-packets; the 'a' is not taken as a register number.
3319         (remote_check_watch_resources, remote_stopped_by_watchpoint)
3320         (remote_stopped_data_address): New functions; add to target
3321         vector.
3322         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3323         prototypes to match other implementations of this
3324         function. replace integer argument with pointer -- the length
3325         field in the Z-packet is the length of what is pointed to or 1 if
3326         pointer is null. Add to target vector.
3327         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3328         target vector.
3329
3330         From Mark Salter:
3331         * remote.c (remote_wait): Add support to extract optional
3332         watchpoint information from T-packet. Ignore unrecognized
3333         optional info in T-packet.
3334         (remote_async_wait): Ditto.
3335
3336 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
3337
3338         * cli/cli-dump.c: Change fopen modes to use binary open modes
3339         as defined in include/fopen-bin.h throughout.
3340
3341 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3342
3343         * mips-tdep.c: Minor whitespace and indentation clean-ups.
3344
3345 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3346
3347         * doublest.c (store_floating): Avoid floatformat_from_doublest()
3348         assertion failure by returning early after a warning.
3349
3350 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3351
3352         * mips-tdep.c (mips_find_saved_regs): Make static.
3353         (mips_frame_init_saved_regs): New function.
3354         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3355         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3356         (mips_find_saved_regs): Delete declaration.
3357
3358 2002-08-08  Grace Sainsbury  <graces@redhat.com>
3359
3360         * remote.c (remote_wait, remote_async_wait): Change
3361         thread_num from int to ULONGEST.
3362         (unpack_varlen_hex): Change result parameter from
3363         int * to ULONGEST *.
3364
3365 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
3366
3367         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3368         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3369         powerpc*-*-*.
3370         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3371
3372 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3373
3374         * gcore.c (override_derive_stack_segment): Delete variable.
3375         (preempt_derive_stack_segment): Delete function.
3376         (derive_stack_segment): Delete function.
3377         (default_derive_stack_segment): Renamed to derive_stack_segment.
3378         (override_derive_heap_segment): Delete variable.
3379         (preempt_derive_heap_segment): Delete function.
3380         (derive_heap_segment): Delete function.
3381         (default_derive_heap_segment): Rename to derive_heap_segment.
3382
3383 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3384
3385         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3386         * mips-tdep.c (mips_EABI_use_struct_convention, 
3387         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3388         New functions.  (mips_use_struct_convention): Delete.
3389         (mips_gdbarch_init): set use_gdbarch_convention.
3390
3391 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3392
3393         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3394         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3395         mips_o32_reg_struct_has_addr): New functions.
3396         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3397
3398 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3399
3400         * regcache.c (pseudo_register): Delete function.
3401         (fetch_register): Delete function.
3402         (store_register): Delete function.
3403         (regcache_raw_read, legacy_read_register_gen): Use
3404         target_fetch_registers instead of fetch_register.
3405         (legacy_write_register_gen, regcache_raw_write): Use
3406         target_store_register instead of store_register.
3407         (write_register_bytes): Ditto.
3408
3409         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3410         (STORE_PSEUDO_REGISTER): Delete.
3411         * gdbarch.h, gdbarch.c: Regenerate.
3412
3413 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3414
3415         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3416         write dump file binary.
3417
3418 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3419
3420         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3421         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3422         (mips_gdbarch_init): Set N32 target to be mips64.
3423
3424 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3425
3426         * frame.c (find_saved_register): Break out of loop once saved
3427         register address is found.  Don't mention sparc in loop comment
3428         anymore.
3429
3430 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3431
3432         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3433         mips_default_saved_regsize to 8.
3434
3435 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3436
3437         * gcore.c: Do not include <sys/procfs.h>.
3438         * Makefile.in (gcore.o): Update dependencies.
3439
3440 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3441
3442         * configure.tgt: Make arc-*-* obsolete.
3443         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3444         * MAINTAINERS: Make arc-elf obsolete.
3445         * arc-tdep.c: Make file obsolete.
3446         * config/arc/arc.mt: Ditto.
3447         * config/arc/tm-arc.h: Ditto.
3448
3449 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3450
3451         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3452
3453 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3454
3455         * mcore-tdep.c (mcore_gdbarch_init): Use
3456         generic_unwind_get_saved_register instead of
3457         generic_get_saved_register.
3458         * v850-tdep.c (v850_gdbarch_init): Ditto.
3459         * frv-tdep.c (frv_gdbarch_init): Ditto.
3460         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3461         * s390-tdep.c (s390_gdbarch_init): Ditto.
3462         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3463         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3464         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3465
3466 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3467
3468         * objfiles.h: Add missing #include "symfile.h"
3469
3470         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3471
3472 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3473
3474         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3475         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3476         of FIELD_BITSIZE.
3477
3478 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3479
3480         * NEWS: Cleanup and nitpick.
3481
3482 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3483
3484         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3485
3486 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3487
3488         * Makefile.in (gdbtk-bp.o): Update dependencies.
3489         (gdbtk-register.o): Ditto.
3490         (gdbtk-varobj.o): Ditto.
3491
3492 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3493
3494         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3495         m68hc11_fetch_pseudo_register.
3496         (m68hc11_pseudo_register_write): Replace
3497         m68hc11_store_pseudo_register.
3498         (m68hc11_gdbarch_init): Update.
3499
3500 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3501
3502         * gdbarch.sh: Include "gdb_string.h".
3503         * gdbarch.c: Regenerate.
3504
3505         * regcache.c: Include "gdb_string.h".
3506         * ax-general.c: Ditto.
3507         * varobj.c: Ditto.
3508         * std-regs.c: Ditto.
3509         * fbsd-proc.c: Ditto.
3510         * thread.c: Ditto.
3511
3512         * Makefile.in (regcache.o): Update dependencies.
3513         (thread.o, gdbarch.o): Ditto.
3514         (ax-general.o, gdbarch.o): Ditto.
3515         (varobj.o, std-regs.o): Ditto.
3516         (fbsd-proc.o): Specify dependencies.
3517
3518 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3519
3520         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3521         regnum.
3522         (regcache_cooked_write): Ditto.
3523
3524 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3525
3526         * regcache.c (regcache_cooked_read): New function.
3527         (regcache_cooked_write): New function.
3528         (read_register_gen): Rewrite using regcache_cooked_read.
3529         (write_register_gen): Rewrite using regcache_cooked_write.
3530
3531         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3532         Declare.
3533
3534 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3535
3536         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3537         Replace the architecture methods register_read and register_write.
3538         * gdbarch.h, gdbarch.c: Regenerate.
3539         * regcache.c (init_regcache_descr): Update.
3540         (read_register_gen): Update.
3541         (write_register_gen): Update.
3542         (supply_register): Update comment.
3543
3544         * sh-tdep.c (sh_gdbarch_init): Update.
3545         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3546         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3547         pointer.  Update code.
3548         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3549         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3550         void pointer.  Update code.
3551         (sh64_register_write): Delete.
3552         (sh4_register_read): Delete.
3553         (sh64_register_read): Delete.
3554         (sh4_register_write): Delete.
3555         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3556         void pointer, `to' parameter a void pointer.
3557         (sh_sh64_register_convert_to_raw): Ditto.
3558
3559 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3560
3561         * mips-tdep.c (mips_register_virtual_type): Use architecture
3562         invariant return values.
3563
3564 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3565
3566         * linux-proc.c: Include "gdb_string.h".
3567         * Makefile.in (linux-proc.o): Update dependency list.
3568
3569 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3570
3571         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3572         comment.
3573
3574 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3575
3576         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3577         to_insert_watchpoint, to_remove_watchpoint,
3578         to_stopped_by_watchpoint, to_stopped_data_address,
3579         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3580         target vecctor. Define their corresponding macros so they call
3581         them.
3582         
3583         * target.c: Add default and debug versions of for
3584         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3585         to_insert_watchpoint, to_remove_watchpoint,
3586         to_stopped_by_watchpoint, to_stopped_data_address,
3587         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3588
3589 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3590
3591         * mips-tdep.c (mips_register_virtual_type): New function.
3592         (mips_gdbarch_init): Register mips_register_virtual_type()
3593         with gdbarch machinery.
3594         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3595         this file instead of tm-bigmips.h.
3596         (MIPS_REGSIZE): Delete this macro.
3597         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3598         multiarch version in mips-tdep.c will be found.
3599
3600 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3601
3602         * NEWS: Menion that CHILL has been made obsolete.
3603
3604         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3605         * stabsread.c (read_range_type): Ditto.
3606         * gdbtypes.h: Ditto.
3607         * language.c (binop_type_check): Ditto.
3608         (binop_result_type): Ditto.
3609         (integral_type): Ditto.
3610         (character_type): Ditto.
3611         (string_type): Ditto.
3612         (boolean_type): Ditto.
3613         (structured_type): Ditto.
3614         (lang_bool_type): Ditto.
3615         (binop_type_check): Ditto.
3616         * language.h (_LANG_chill): Ditto.
3617         * dwarfread.c (set_cu_language): Ditto.
3618         * dwarfread.c (CHILL_PRODUCER): Ditto.
3619         * dwarfread.c (handle_producer): Ditto.
3620         * expression.h (enum exp_opcode): Ditto.
3621         * eval.c: Ditto for comments.
3622         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3623         * expprint.c (print_subexp): Ditto.
3624         (print_subexp): Ditto.
3625         * valops.c (value_cast): Ditto.
3626         (search_struct_field): Ditto.
3627         * value.h (COERCE_VARYING_ARRAY): Ditto.
3628         * symfile.c (init_filename_language_table): Ditto.
3629         (add_psymbol_with_dem_name_to_list): Ditto.
3630         * valarith.c (value_binop): Ditto.
3631         (value_neg): Ditto.
3632         * valops.c (value_slice): Ditto.
3633         * symtab.h (union language_specific): Ditto.
3634         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3635         (SYMBOL_DEMANGLED_NAME): Ditto.
3636         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3637         * defs.h (enum language): Ditto.
3638         * symtab.c (got_symtab): Ditto.
3639         * utils.c (fprintf_symbol_filtered): Ditto.
3640
3641         * ch-typeprint.c: Make file obsolete.
3642         * ch-valprint.c: Make file obsolete.
3643         * ch-lang.h: Make file obsolete.
3644         * ch-exp.c: Make file obsolete.
3645         * ch-lang.c: Make file obsolete.
3646
3647         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3648         CHILL_LIB.
3649         (TARGET_FLAGS_TO_PASS): Ditto.
3650         (CHILLFLAGS): Obsolete.
3651         (CHILL): Obsolete.
3652         (CHILL_FOR_TARGET): Obsolete.
3653         (CHILL_LIB): Obsolete.
3654         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3655         ch-valprint.c.
3656         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3657         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3658         ch-lang.o.
3659         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3660         targets.
3661
3662 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3663
3664         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3665         This does not change anything at the moment, but will be helpful
3666         later when full Ada support is integrated.
3667
3668 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3669
3670         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3671         help message.
3672
3673 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3674
3675         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3676         and save it in a local variable.  Use variable in later test.
3677
3678 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3679
3680         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3681         test.  (Thanks to Daniel Jacobowitz.)
3682         
3683 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3684
3685         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3686         (mips_abi_strings): Add "n64".
3687         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3688
3689 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3690
3691         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3692         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3693
3694 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3695
3696         * utils.c (host_pointer_to_address, address_to_host_pointer):
3697         Use gdb_assert() instead of explicit call to internal_error().
3698
3699 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3700
3701         * Makefile.in (rs6000-nat.o): Update dependencies.
3702
3703         From Nicholas Duffek:
3704         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3705         (aix-thread.o): New rule.
3706         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3707         * config/powerpc/aix432.mh: New file.
3708
3709 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3710
3711         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3712         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3713         (fetch_core_registers, ppc_linux_supply_gregset)
3714         (ppc_linux_supply_fpregset): New functions.
3715         (ppc_linux_regset_core_fns): New.
3716         (_initialize_ppc_linux_tdep): Call add_core_fns.
3717         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3718         and ppc_linux_supply_gregset.
3719         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3720         (supply_fpregset): Call ppc_linux_supply_fpregset.
3721         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3722         corelow.o.
3723         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3724
3725 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3726
3727         * symtab.c (lookup_symbol): Demangle before lowercasing.
3728
3729 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3730
3731         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3732         declaration.
3733         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3734         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3735         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3736         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3737         "gdb_string.h".
3738         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3739         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3740         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3741         (avr-tdep.o, mon960-rom.o): Ditto.
3742         (aout_stabs_gnu_h): Define.
3743         (symtab_h): Remove $(gdb_obstack_h).
3744
3745 2002-07-30  Jim Blandy  <jimb@redhat.com>
3746
3747         Patch from David Carlton <carlton@math.stanford.edu>:
3748         * gdbinit.in: Move the `dir' commands that add GDB's own source
3749         directory to the search path to the end, so that the `gdb' source
3750         directory will be searched first.
3751
3752 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3753
3754         * gdb_obstack.h: New file.
3755         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3756         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3757         * objfiles.h: Include "gdb_obstack.h".
3758         * Makefile.in (gdb_obstack_h): Define.
3759         (symtab_h): Add $(gdb_obstack_h).
3760         (objfiles_h): Add $(gdb_obstack_h).
3761         
3762         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3763         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3764         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3765         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3766         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3767         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3768         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3769         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3770
3771         * Makefile.in (bcache.o): Update dependencies.
3772         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3773         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3774         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3775         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3776         (stabsread.o, symfile.o, symmisc.o): Ditto.
3777         (symtab.o, typeprint.o, macroexp.o): Ditto.
3778         (macrotab.o, mdebugread.o): Ditto.
3779         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3780         (coff_ecoff_h, aout_aout64_h): Define.
3781         (aout_stabs_gnu_h, libaout_h): Define.
3782
3783 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3784
3785         * regcache.c (struct regcache_descr): Rename nr_registers to
3786         nr_cooked_registers.  Revise comments describing the structure
3787         member fields.
3788         (init_regcache_descr): Update.
3789         (init_legacy_regcache_descr): Update.
3790         (read_register_gen, write_register_gen): When a cooked register in
3791         the raw register range, directly access the value from the raw
3792         register cache.
3793
3794 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3795
3796         * z8k-tdep.c: Do not include "obstack.h".
3797         * h8300-tdep.c, h8500-tdep.c: Ditto.
3798         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3799         * valprint.c, v850-tdep.c: Ditto.
3800         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3801         * mn10200-tdep.c: Ditto.
3802
3803         * Makefile.in (z8k-tdep.o): Update dependencies.
3804         (m68hc11-tdep.o, valprint.o): Ditto.
3805         (v850-tdep.o, d10v-tdep.o): Ditto.
3806         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3807         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3808         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3809         (sh_opc_h, gdb_sim_sh_h): Define.
3810         (elf_sh_h, elf_bfd_h): Define.
3811         (opcode_m68hc11_h): Define.
3812         (OPCODES_SRC, OPCODES_DIR): define.
3813         (OPCODES): Use $(OPCODES_DIR).
3814         (gdb_sim_d10v_h): Rename sim_d10v_h.
3815         (gdb_sim_arm_h): Rename sim_arm_h.
3816
3817 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3818
3819         * utils.c (host_pointer_to_address, address_to_host_pointer):
3820         Change internal_error() message to indicate function responsible
3821         for the error.
3822
3823 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3824
3825         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3826         calls to local_hex_string_custom().
3827
3828 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3829
3830         * irix5-nat.c: Move IRIX shared library support from here...
3831         * solib-irix.c: ...to here.  Revised substantially to work with
3832         generic solib framework.
3833
3834         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3835         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3836         * mips-irix-tdep.c: New file.
3837
3838         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3839         (mips-irix-tdep.o, solib-irix.o): New rules.
3840         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3841         solib-irix.o.
3842         * config/mips/irix6.mt (TDEPFILES): Likewise.
3843         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3844
3845 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3846
3847         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3848         disabled (via ``#if 0'') includes.
3849
3850 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3851
3852         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3853         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3854         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3855         Add support for the fpscr register.
3856         * rs6000-nat.c (regmap, fetch_inferior_registers)
3857         (store_inferior_registers, fetch_core_registers): Likewise.
3858
3859 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3860
3861         * rs6000-nat.c (language.h): Include.
3862         (special_regs): Delete this array.
3863         (regmap): New function.
3864         (fetch_register, store_register):  Use regmap() to map gdb
3865         register numbers to ptrace register numbers.  Also, use
3866         outputs from regmap() to make decisions regarding type of
3867         ptrace() call to make.  In particular, don't compare against
3868         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3869         (fetch_inferior_registers, store_inferior_registers): Where
3870         possible, obtain register numbers from tdep struct.  Don't
3871         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3872         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3873         (LAST_UISA_SP_REGNUM): Delete.
3874         
3875 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
3876
3877         * rs6000-nat.c (ppc-tdep.h): Include.
3878         (fetch_registers, store_register, fetch_core_registers): Don't
3879         access registers[] directly.  Instead, use supply_register() or
3880         regcache_collect() as appropriate.
3881         (find_toc_address): Format hex address with local_hex_string().
3882
3883 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
3884
3885         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3886         bfd/elf32-frv.c.
3887
3888 2002-07-24  Tom Tromey  <tromey@redhat.com>
3889
3890         * jv-exp.y: Marked all strings with _().
3891         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3892         internal_error.
3893         (MethodInvocation, CastExpression, parse_number, yyerror,
3894         java_type_from_name, push_expression_name, yylex): Typo fixes.
3895
3896 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
3897
3898         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3899         (tee_file_flush, tee_file_write, tee_file_fputs)
3900         (tee_file_isatty): New.
3901         * ui-file.h (tee_file_new): Add prototype.
3902
3903 2002-07-24  Aidan Skinner <aidan@velvet.net>
3904
3905         * ada-lang.c: Change k&r style function definitions to prototyped
3906         form.
3907         * ada-typeprint.c: Change k&r style function definitions to prototyped
3908         form.
3909         * ada-valprint.c: Change k&r style function definitions to prototyped
3910         form.
3911         
3912 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3913
3914         * README: Remove reference to remote-bug.
3915         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3916         remote-bug.c.
3917         (m88k-nat.o): Delete rule.
3918         (m88k-tdep.o): Delete rule.
3919         (remote-bug.o): Delete rule.
3920         * MAINTAINERS: Mark as obsolete.
3921         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3922         * m88k-tdep.c: Make file obsolete.
3923         * config/m88k/m88k.mh: Ditto.
3924         * config/m88k/delta88v4.mh: Ditto.
3925         * config/m88k/delta88v4.mt: Ditto.
3926         * config/m88k/delta88.mt: Ditto.
3927         * config/m88k/delta88.mh: Ditto.
3928         * remote-bug.c: Ditto.
3929         * config/m88k/tm-delta88.h: Ditto.
3930         * config/m88k/nm-delta88v4.h: Ditto.
3931         * config/m88k/xm-delta88.h: Ditto.
3932         * config/m88k/xm-dgux.h: Ditto.
3933         * config/m88k/tm-m88k.h: Ditto.
3934         * config/m88k/nm-m88k.h: Ditto.
3935         * config/m88k/tm-delta88v4.h: Ditto.
3936         * m88k-nat.c: Ditto.
3937         * cxux-nat.c: Ditto.
3938         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3939         and m88*-*-* obsolete.
3940         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3941         m88*-*-* obsolete.
3942
3943 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3944
3945         * findvar.c (extract_unsigned_integer): Make `addr' parameter
3946         constant.  Same for local pointer variables.
3947         (extract_signed_integer): Ditto.
3948         * defs.h (extract_unsigned_integer): Update.
3949         (extract_signed_integer): Update.
3950
3951 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3952
3953         * regcache.c (regcache_raw_write): Change buf parameter to a
3954         constant void pointer.
3955         (regcache_raw_read): Change buf parameter to a void pointer.
3956         (legacy_write_register_gen): Change myaddr parameter a constant
3957         void pointer.
3958         (supply_register): Change val parameter to a const void pointer.
3959         * regcache.h (regcache_raw_write): Update declaration.
3960         (regcache_raw_read): Update declaration.
3961         (supply_register): Update declaration.
3962
3963 2002-07-24  Tom Tromey  <tromey@redhat.com>
3964
3965         * defs.h (gdb_readline_wrapper): Declare.
3966         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3967         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3968         * top.c (gdb_readline_wrapper): New function.
3969         (command_line_input): Use it.
3970
3971 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3972
3973         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3974         regcache_read and regcache_write.
3975         (regcache_raw_read_as_address): Replace regcache_read_as_address.
3976         * regcache.c: Update.
3977         * sh-tdep.c (sh64_push_arguments): Update comment.
3978         (sh_pseudo_register_read): Update.
3979         (sh_pseudo_register_write): Update.
3980         (sh4_register_read): Update.
3981         (sh4_register_write): Update.
3982         (sh64_pseudo_register_read): Update.
3983         (sh64_pseudo_register_write): Update.
3984         (sh64_register_read): Update.
3985         (sh64_register_write): Update.
3986         * i386-tdep.c (i386_extract_return_value): Update.
3987         (i386_extract_struct_value_address): Update.
3988         (i386_extract_return_value): Update.
3989         * blockframe.c (generic_read_register_dummy): Update.
3990         (generic_call_dummy_register_unwind): Update
3991         * infrun.c (write_inferior_status_register): Update.
3992
3993 2002-07-23  Jim Blandy  <jimb@redhat.com>
3994
3995         * parser-defs.h (expression_context_pc): Make this extern.
3996         (Thanks to Michael Snyder.)
3997
3998 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
3999
4000         GDB 5.2.1 released from 5.2 branch.
4001         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4002         * README: Update to mention 5.2.1.
4003
4004 2002-07-23  Mark Salter  <msalter@redhat.com>
4005
4006         * remote.c (remote_read_bytes): Fix check for error.
4007
4008 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4009
4010         * aix-thread.c (language.h): Include.
4011         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4012         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4013         Print newlines at end of debug messages.
4014         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4015         (pdc_write_data): Use local_hex_string() instead of %llx formats.
4016
4017 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4018
4019         * aix-thread.c (ppc-tdep.h): Include.
4020         (special_register_p): New function.
4021         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4022         (store_regs_user_thread): Use register number information from
4023         gdbarch_tdep struct instead of hardcoded offsets relative to
4024         FIRST_UISA_SP_REGNUM.
4025         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
4026         special_register_p() instead of using FPLAST_REGNUM and
4027         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4028         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
4029         will be MQ's register number.
4030
4031 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4032
4033         * aix-thread.c (ops): Rename to aix_thread_ops.
4034         (base_ops): Rename to base_target.
4035         (ops_attach): Rename to aix_thread_attach.
4036         (ops_detach): Rename to aix_thread_detach.
4037         (ops_resume): Rename to aix_thread_detach.
4038         (ops_wait):   Rename to aix_thread_wait.
4039         (ops_kill):   Rename to aix_thread_kill.
4040         (init_ops):   Rename to init_aix_thread_ops.
4041         (ops_fetch_register): Rename to aix_thread_fetch_register.
4042         (ops_store_register): Rename to aix_thread_store_register.
4043         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4044         (ops_thread_alive):   Rename to aix_thread_thread_alive.
4045         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4046         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
4047         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4048         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
4049         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4050         (store_regs_lib):  Rename to store_regs_user_thread.
4051         (store_regs_kern): Rename to store_regs_kernel_thread.
4052
4053 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4054
4055         * aix-thread.c (ops_prepare_to_store): Eliminate.
4056         (init_ops): Don't initialize ops.prepare_to_store.
4057         (store_regs_kern): Pre-fetch register buffers from child, 
4058         because some registers may not be in the cache.  Copy
4059         regs from register cache only if they are cached.
4060         (store_regs_lib): Copy regs from register cache only
4061         if they are cached.
4062         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4063         fill_gprs64): Ditto.
4064
4065 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4066
4067         * aix-thread.c (gdb_assert.h): Include.
4068         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4069         register sizes (from register cache) match size of buffer holding
4070         register data.
4071         (fill_sprs32): Change parameter types to match those in the ptrace()
4072         buffer.
4073         (store_regs_lib): Likewise, but for 32-bit temporary variables.
4074         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4075
4076 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4077
4078         * aix-thread.c (supply_sprs64): Cosmetic change.
4079         (supply_sprs32): Cosmetic change.
4080         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4081         (fill_sprs64): Use regcache_collect instead of read_register.
4082         (store_regs_lib): Use regcache_collect instead of 
4083         read_register.  Use fill_sprs32 instead of fill_sprs64,
4084         if debugging a 32-bit architecture.
4085         (store_regs_kern): Use fill_gprs64 etc. to pull the values
4086         out of the register cache, instead of passing a pointer into
4087         the register cache directly to ptrace.  Use regcache_collect
4088         insteaad of read_register.
4089         (ops_prepare_to_store): Use target_read_registers instead
4090         of read_register_bytes.
4091
4092 2002-07-20  Aidan Skinner <aidan@velvet.net>
4093
4094         * MAINTAINERS: Add self under write after approval. 
4095                 
4096 2002-07-20  Aidan Skinner <aidan@velvet.net>
4097
4098         * ada-tasks.c: Change k&r style function definitions to prototyped
4099         form.
4100                 
4101 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
4102
4103         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4104         * x86-64-tdep.c: Include "objfiles.h".
4105         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4106         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4107
4108 2002-07-17  Michal Ludvig  <michal@suse.cz>
4109
4110         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4111         (update_context): Initialise cfa variable.
4112
4113 2002-07-17  Michael Snyder  <msnyder@redhat.com>
4114
4115         * aix-thread.c: Shorten some long lines.  
4116         Bring comments into line with code spec.
4117
4118 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4119
4120         * infrun.c: Re-indent using gdb_indent.sh.
4121
4122 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4123
4124         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4125         Leave the indentation temporarily untouched, to minimize the diffs.
4126
4127 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
4128
4129         * stabsread.c: Make os9k sections of the code obsolete,
4130         for real this time.
4131         * stabsread.h: Make os9k sections of the code obsolete.
4132
4133 2002-07-18  Michal Ludvig <mludvig@suse.cz>
4134
4135         * linux-low.c (regsets_store_inferior_registers): Add free()
4136         at the end of a loop to prevent memory leak.
4137         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4138         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4139         * config/sparc/tm-sp64linux.h: Make the rest of #endif
4140         line a comment.
4141         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4142
4143 2002-07-17  Jim Blandy  <jimb@redhat.com>
4144
4145         * macrocmd.c (info_macro_command): Remove newline from error
4146         message.
4147
4148 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
4149
4150         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4151         (sh_gdbarch_init): Use it for sh-dsp.
4152
4153 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
4154
4155         * dwarf2read.c (read_initial_length): Handle older, non-standard,
4156         64-bit DWARF2 format.
4157
4158 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
4159
4160         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4161         <sys/proc.h> when not available.
4162
4163 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4164
4165         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4166         * stabsread.c: Make os9k sections of the code obsolete.
4167         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4168         * config/i386/i386os9k.mt: Make file obsolete.
4169         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4170         (COMMON_OBS): Remove os9kread.o
4171         (SFILES): Remove os9kread.c.
4172         (os9kread.o, remote-os9k.o): Make target obsolete.
4173         * remote-os9k.c: Make file obsolete.
4174         * os9kread.c: Make file obsolete.
4175         * Makefile.in
4176
4177 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4178
4179         * NEWS: Mention that the FR30 has been made obsolete.
4180         * fr30-tdep.c: Make file obsolete.
4181         * config/fr30/tm-fr30.h: Ditto.
4182         * config/fr30/fr30.mt: Ditto.
4183         * configure.tgt: Make fr30-*-elf obsolete.
4184         * MAINTAINERS: Make fr30-elf obsolete.
4185
4186 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4187
4188         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4189         found is not inside a section.
4190
4191 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4192
4193         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4194         strerror().
4195         (pdc_realloc): Use xrealloc() instead of realloc().
4196
4197 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4198
4199         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4200         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4201         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4202         macros.
4203
4204 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4205
4206         * aix-thread.c (ptrace_check): Eliminate goto.
4207         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
4208         problem.
4209
4210 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4211
4212         * aix-thread.c (gdbcmd.h): Include.
4213         (DEBUG, DBG, DBG2, dbg): Eliminate.
4214         (debug_aix_thread): New static global.
4215         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4216         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4217         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4218         invocations to DBG and DBG2 macros to test against
4219         ``debug_aix_thread'' and call fprintf_unfiltered().
4220         (_initialize_aix_thread): Add new command "set debug aix-thread".
4221
4222 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4223
4224         From Gerhard Tonn <TON@de.ibm.com>:
4225         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4226         instead of supply_register.
4227
4228 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4229
4230         * dwarf2cfi.c: Include "gdb_assert.h".
4231         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4232         non-NULL.
4233         (update_context): Do not use __func__.  Add missing ``break''.
4234         (update_context): Do not use __func__.
4235
4236 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
4237
4238         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4239         and its setting.  Set gdbarch instruction printing functions
4240         directly.  For non-rs6000 case use new function
4241         gdb_print_insn_powerpc.
4242         (gdb_print_insn_powerpc): New function.
4243
4244 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
4245
4246         * NEWS: Mention that the d30v has been marked obsolete.
4247         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4248         * configure.tgt: Mark d30v-*-* as obsolete.
4249         * d30v-tdep.c: Mark file as obsolete.
4250         * config/d30v/d30v.mt: Ditto.
4251         * config/d30v/tm-d30v.h: Ditto.
4252
4253 2002-07-13  Aidan Skinner <aidan@velvet.net>
4254
4255         * ada-tasks.c (add_task_entry): replace calls to
4256         malloc() with xmalloc
4257         * ada-tasks.c (init_task_list): replace calls to free with xfree()
4258         
4259         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4260         ada_finish_decode_line_1, all_sals_for_line
4261         ada_breakpoint_rewrite): replace calls to free() with xfree()
4262                 
4263 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4264
4265         From Nicholas Duffek (with minor changes by Martin Hunt, 
4266         Louis Hamilton, and Kevin Buettner):
4267         * aix-thread.c: New file.
4268
4269 2002-07-12  Petr Sorfa <petrs@caldera.com>
4270
4271         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
4272         complaint for invalid attribute class or form.
4273         (read_func_scope): DW_AT_frame_base
4274         better handling of DW_AT_block*.
4275         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4276         better handling of DW_AT_block*.
4277         (read_common_block): DW_AT_location
4278         better handling of DW_AT_block*.
4279         (read_partial_die): DW_AT_location better handling
4280         of DW_AT_block*.
4281         (new_symbol): DW_AT_external better handling of
4282         DW_AT_block*. Proper initialization of variable
4283         "addr".
4284         (attr_form_is_block): New function that returns true
4285         if the attribute's form is of DW_FORM_block*.
4286
4287 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4288
4289         * valops.c (find_method_list): Remove comment about
4290         removed STATIC_MEMFUNCP argument.
4291         (value_find_oload_method_list): Likewise.
4292
4293 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4294
4295         From Nicholas Duffek:
4296         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4297         target_new_objfile_hook.
4298
4299 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4300
4301         From Nicholas Duffek:
4302         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4303         csect.
4304
4305 2002-07-12  Andrew Cagney  <cagney@redhat.com>
4306
4307         * MAINTAINERS: Mention --enable-sim-build-warnings.
4308         (m68hc11-elf): Disable sim build warnings.
4309         (m32r-elf): Mark as broken obsolete candidate.
4310         (x86_64-linux-gnu): Mark as buildable with -Werror.
4311         (arm-elf): Change -w to ``,'' which enables warnings but not
4312         -Werror.
4313
4314 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
4315
4316         * bcache.h: Update copyright.
4317         (struct bstring, struct bcache): Move definition to "bcache.c".
4318         Replaced by opaque declaration.
4319         (bcache_xfree): Replace free_bcache.
4320         (bcache_xmalloc, bcache_memory_used): Declare.
4321         
4322         * bcache.c: Update copyright.
4323         (struct bstring, struct bcache): Moved to here from "bcache.h".
4324         Update comments.
4325         (bcache_xmalloc, bcache_memory_used): New functions.
4326         (bcache_xfree): Replace function free_bcache.
4327         
4328         * Makefile.in (objfiles.o): Add $(bcache_h).
4329         (objfiles_h): Remove $(bcache_h).
4330         (symfile.o): Add $(bcache_h).
4331
4332         * symmisc.c: Update copyright.
4333         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4334         (print_objfile_statistics): Use bcache_memory_used.
4335
4336         * symfile.c: Include "bcache.h".
4337         (reread_symbols): Use bcache_xfree.
4338         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4339         (add_psymbol_to_list): Pass psymbol_cache by value.
4340         (add_psymbol_with_dem_name_to_list): Ditto.
4341
4342         * objfiles.h: Update copyright.
4343         (struct bcache): Declare opaque.  Do not include "bcache.h".
4344         (struct objfile): Change psymbol_cache and macro_cache to ``struct
4345         bcache'' pointers.
4346         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4347
4348         * objfiles.c: Include "bcache.h".  Update copyright.
4349         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4350         macro_cache.
4351         (free_objfile): Use bcache_xfree.
4352
4353 2002-07-11  Grace Sainsbury  <graces@redhat.com>
4354
4355         * monitor.c (monitor_fetch_register): Make name a constant.
4356         (monitor_store_register): Same.
4357
4358 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
4359
4360         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4361         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4362         (finish_block) For non-function blocks, hash the symbol table.  For
4363         function blocks, mark the symbol table as unhashed.
4364         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4365         (msymbol_hash_iw): Likewise.
4366         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4367         value.
4368         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4369         (lookup_minimal_symbol): Likewise for both.
4370         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4371         hashtable.
4372         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4373         (ALL_BLOCK_SYMBOLS): Update.
4374         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4375         (struct symbol): Add `hash_next' pointer.
4376         * symtab.c (lookup_block_symbol): Search using the hash table when
4377         possible.
4378         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4379         (search_symbols, find_addr_symbol): Likewise.
4380
4381         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4382         (read_dst_symtab): Likewise.
4383         * jv-lang.c (get_java_class_symtab): Likewise.
4384         * mdebugread.c: Include "gdb_assert.h".
4385         (shrink_block): Assert that the block being modified is not hashed.
4386         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4387         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4388         symbols.
4389         (dump_symtab): Recognize hashed blocks.
4390         * printcmd.c (print_frame_args):  Assert that function blocks do not
4391         have hashed symbol tables.
4392         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4393         (fill_in_ada_prototype, debug_print_block): Likewise.
4394         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4395
4396 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4397
4398         * stack.c (print_frame): Use result of frame_address_in_block()
4399         instead of fi->pc when evaluating symbols.
4400         (backtrace_command_1): Ditto.
4401
4402 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4403
4404         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4405         Make static.
4406
4407         * arm-tdep.c (arm_register_name): Make return type constant.
4408
4409 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4410
4411         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4412         prototype.
4413         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4414         * s390-tdep.c (s390_fp_regnum): Ditto.
4415         (s390_read_fp): Ditto.
4416         (s390_pop_frame): Ditto.
4417         (_initialize_s390_tdep): Ditto.
4418         * remote.c (get_remote_state): Ditto.
4419         * procfs.c (mappingflags): Ditto.
4420         * memattr.c (_initialize_mem): Ditto.
4421         * mcore-tdep.c (mcore_pop_frame): Ditto.
4422         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4423         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4424         * language.c (set_case_str): Ditto.
4425         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4426         * frv-tdep.c (new_variant): Ditto.
4427         (frv_stopped_data_address): Ditto.
4428         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4429         (context_alloc): Ditto.
4430         (frame_state_alloc): Ditto.
4431         (unwind_tmp_obstack_init): Ditto.
4432         (unwind_tmp_obstack_free): Ditto.
4433         (cfi_read_fp): Ditto.
4434         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4435         (cris_pop_frame): Ditto.
4436         * c-lang.c (scanning_macro_expansion): Ditto.
4437         (finished_macro_expansion): Ditto.
4438         (c_preprocess_and_parse): Ditto.
4439         * gdbarch.sh: Ditto.
4440         * gdbarch.h, gdbarch.c: Regenerate.
4441         * config/mn10200/tm-mn10200.h: Adjust indentation.
4442         * target.c: Adjust indentation.
4443         * symtab.h: Adjust indentation.
4444         * stabsread.h: Adjust indentation.
4445         * remote-es.c: Adjust indentation.
4446         * os9kread.c: Adjust indentation.
4447
4448 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4449         
4450         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4451         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4452
4453 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4454         
4455         * NEWS: Mention m68k, mcore multi-arching.  
4456         * MAINTAINERS: Change status of m68k, mcore to reflect
4457         multi-arching.
4458
4459 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4460
4461         * valops.c (find_overload_match): Free oload_syms.
4462
4463 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4464
4465         Define HAVE_SYS_PROC_H if sys/proc.h exists
4466         * configure.in: Add check for sys/proc.h
4467         * config.in: Regenerate.
4468         * configure: Regenerate.
4469
4470 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4471
4472         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4473         #if !GDB_MULTI_ARCH. 
4474
4475 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4476
4477         * config.in, configure: Regenerate.
4478
4479 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4480
4481         * dwarf2cfi.c: Include "gcore.h".
4482         (execute_stack_op): Fix implementation of the
4483         DW_OP_deref and DW_OP_deref_size operators by letting do their
4484         lookup in the target.
4485
4486 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4487
4488         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4489         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4490         tdep->sc_sp_offset.
4491
4492 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4493
4494         Fix PR gdb/595, gdb/602
4495         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4496         Don't call value_cast, just read the vtable pointer; update comments
4497         to match.
4498
4499 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4500
4501         * config/mcore/tm-mcore.h: Remove file.
4502         * config/mcore/mcore.mt: Remove definition of TM_FILE
4503         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4504
4505 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4506
4507         * i386bsd-tdep.c: Include "gdb_string.h".
4508
4509 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4510
4511         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4512         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4513         mcore-tdep.
4514         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4515         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4516         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4517         (RETVAL_REGNUM): Move macros from tm-mcore.h
4518         (mcore_reg_struct_has_addr): New function.
4519         (mcore_gdbarch_init): Added initializations for the macros removed
4520         from tm-mcore.h.
4521
4522 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4523
4524         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4525         traditonal string branding within the ELF header.
4526
4527 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4528
4529         * symtab.c (remove_params): New function.
4530         (make_symbol_overload_list): Use it instead of cplus_demangle.
4531         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4532
4533 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4534
4535         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4536
4537         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4538         New variables.
4539         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4540         and tdep->sigtramp_end.
4541         * i386obsd-nat.c: New file.
4542         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4543
4544         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4545         Don't call get_current_frame().
4546
4547 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4548
4549         * i386-nat.c (child_post_startup_inferior): New function
4550         calling i386_cleanup_dregs if
4551         I386_USE_GENERIC_WATCHPOINTS is defined.
4552         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4553         conditional to acknowledge that i386-nat.c has its
4554         own child_post_startup_inferior function.
4555
4556 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4557
4558         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4559         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4560         instead of MAX_REGISTER_RAW_SIZE.
4561         (i386_extract_return_value, i386_extract_struct_value_address):
4562         Convert to use regcache.
4563         (i386_gdbarch_init): Set max_register_raw_size and
4564         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4565         Set extract_return_value and extract_struct_value_address instead
4566         of their deprecated variants.
4567
4568         Convert i386 target to generic dummy frames.
4569         * i386-tdep.c: Include "symfile.h".
4570         (i386_frameless_signal_p): Consider a function to be frameless if
4571         the pc points at the first instruction of the function.
4572         (i386_frame_chain): Handle (generic) call dummies.
4573         (i386_frame_saved_pc): Likewise.
4574         (i386_frame_init_saved_regs): Remove code dealing with call
4575         dummies on the stack.
4576         (i386_push_dummy_frame): Removed.
4577         (i386_call_dummy_words): Removed.
4578         (i386_fix_call_dummy): Removed.
4579         (i386_push_return_address): New function.
4580         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4581         parameter, and don't call get_current_frame.
4582         (i386_pop_frame): New function.
4583         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4584         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4585         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4586         call_dummy_length to 0, set call_dummy_words to NULL, set
4587         sizeof_call_dummy_words to 0, set fix_call_dummy to
4588         generic_fix_call_dummy, set pc_in_call_dummy to
4589         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4590         generic_push_dummy_frame, set push_return_address to
4591         i386_push_return_address and set frame_chain_valid to
4592         generic_file_frame_chain_valid.
4593
4594 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4595
4596         * gdbarch.sh (struct regcache): Add opaque declaration.
4597         (EXTRACT_RETURN_VALUE): New architecture method.
4598         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4599         * gdbarch.h, gdbarch.c: Regenerate.
4600         * arch-utils.c (legacy_extract_return_value): New function.
4601         * arch-utils.h (legacy_extract_return_value): Declare.
4602         * values.c (value_being_returned): Re-enable code handling
4603         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4604         deprecated_grub_regcache_for_registers call to block handling
4605         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4606         (EXTRACT_RETURN_VALUE): Do not define.
4607
4608 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4609
4610         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4611         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4612         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4613         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4614         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4615         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4616         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4617         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4618         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4619         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4620         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4621         argument so the function fits the prototype in the architecture
4622         vector.
4623         (mcore_pop_frame): Remove argument so the function fits the
4624         prototype. Use get_current_frame instead of the argument.
4625         (mcore_push_arguments): Change type of struct_return so the
4626         function can be used in the architecture vector.
4627         (mcore_store_struct_return): Add.
4628         (mcore_frame_init_saved_regs): Add.
4629         (mcore_gdbarch_init): Add function calls to replace the macros
4630         removed from tm-mcore.h
4631
4632 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4633
4634         * infcmd.c (print_return_value): Remove compatibility code calling
4635         deprecated_grub_regcache_for_registers.
4636         
4637         * values.c: Include "regcache.h".
4638         (value_being_returned): Update.  Use
4639         deprecated_grub_regcache_for_registers to extract the register
4640         buffer address.  
4641         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4642         ``struct regcache''.
4643         * Makefile.in (values.o): Add dependency on $(regcache_h).
4644
4645         * inferior.h (run_stack_dummy): Change type of second parameter to
4646         a ``struct regcache''.
4647         * valops.c (hand_function_call): Change type of retbuf to ``struct
4648         regcache''.  Allocate using regcache_xmalloc, clean using
4649         make_cleanup_regcache_xfree.
4650         * infcmd.c (run_stack_dummy): Update.  Use
4651         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4652
4653         * regcache.c (do_regcache_xfree): New function.
4654         (make_cleanup_regcache_xfree): New function.
4655         * regcache.h (make_cleanup_regcache_xfree): Declare.
4656
4657 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4658
4659         * event-top.c (command_line_handler): Don't read past
4660         beginning of buffer.
4661
4662 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4663         
4664         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4665         struct frame_id. 
4666         (varobj_create): Store frame_id for root.
4667         (varobj_gen_name): Use xasprintf.
4668         (varobj_update): Save and restore frame using get_frame_id() and
4669         frame_find_by_id().
4670         (create_child): Use xasprintf.
4671         (new_root_variable): Initialize frame_id.
4672         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4673         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4674         to prevent memory leak.
4675
4676 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4677
4678         * valops.c (hand_function_call): Move declaration of retbuf to
4679         start of function, allocate using malloc, add a cleanup but before
4680         the inf_status cleanup, cleanup the buffer.  Rename local variable
4681         old_chain to inf_status_cleanup.
4682
4683 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4684
4685         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4686
4687         * cli/cli-decode.c (cmd_func_p): New function.
4688         (cmd_func): New function.
4689
4690         * command.h: Add cmd_func() and cmd_func_p().   
4691         
4692 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4693
4694         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4695         (REGISTER_SIZE): Remove.
4696         (MAX_REGISTER_RAW_SIZE): Remove.
4697         (REGISTER_VIRTUAL_TYPE): Remove.
4698         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4699         (REGISTER_NAME): Remove.
4700         (USE_GENERIC_DUMMY_FRAMES): Remove.
4701         (CALL_DUMMY): Remove.
4702         (CALL_DUMMY_START_OFFSET): Remove.
4703         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4704         (CALL_DUMMY_LOCATION): Remove.
4705         (FIX_CALL_DUMMY): Remove.
4706         (CALL_DUMMY_ADDRESS): Remove.
4707         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4708         (SAVE_DUMMY_FRAME_TOS): Remove.
4709         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4710         (mcore_register_virtual_type): New function.
4711         (mcore_register_byte): New function.
4712         (mcore_register_size): New function.
4713         (mcore_register_name): New function.
4714         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4715         macros removed from tm-mcore.h.
4716         (mcore_dump_tdep): Add.
4717         (_initialize_mcore_tdep): Add gdbarch_register call.
4718
4719 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4720
4721         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4722         frameless_look_for_prologue, such that we actually call this
4723         function.
4724
4725 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4726
4727         * frame.h (frame_address_in_block): New function.
4728
4729         * blockframe.c (frame_address_in_block): New function extracted
4730         from get_frame_block().
4731         (get_frame_block): Use frame_address_in_block().
4732         (block_innermost_frame): Use frame_address_in_block() to match
4733         the frame pc address against the block boundaries rather than
4734         the frame pc directly. This prevents a failure when a frame pc
4735         is actually a return-address pointing immediately after the end
4736         of the given block. 
4737
4738 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4739
4740         * MAINTAINERS: Add self under write after approval. 
4741
4742 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4743
4744         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4745         used in architecture vector. The default is
4746         m68k_local_breakpoint_from_pc.
4747         (m68k_local_breakpoint_from_pc): Add.
4748         (enum): Add register numbers from tm-m68k.h.
4749         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4750         vector.  
4751         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4752         GDB_MULTI_ARCH_PARTIAL.
4753         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4754         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4755         m68k-tdep.c.
4756         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4757         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4758         to enum in m68k-tdep.c
4759
4760 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4761
4762         * solib-osf.c (open_map): Compute the list of shared libraries
4763         loaded by the inferior, rather than the list of libraries loaded
4764         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4765         the wrong shared libraries...
4766
4767 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4768
4769         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4770         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4771         macros.
4772         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4773         Remove functions.
4774         (FRAMELESS_SIGNAL): Remove function.
4775         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4776         i386_linux_saved_pc_after_call): Removed.
4777         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4778         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4779         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4780
4781         * i386-tdep.c (i386_frameless_signal_p): New function.
4782         (i386_frame_chain): Deal with frameless signals.
4783         (i386_sigtramp_saved_sp): New function.
4784         (i386_frame_saved_pc): Deal with frameless signals.
4785         (i386_saved_pc_after_call): Make sure the correct value is
4786         returned just after entry into a sigtramp.
4787         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4788         i386fbsd4_sc_sp_offset): New variables.
4789         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4790         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4791         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4792         similiar to what we already did for sc_pc_offset.
4793         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4794         tdep->sc_sp_offset.
4795
4796         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4797
4798 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4799
4800         * config/i386/tm-x86-64linux.h: New.
4801         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4802         definitions.
4803         * config/i386/nm-x86-64.h: Rename to ...
4804         * config/i386/nm-x86-64linux.h: ... this one.
4805         * config/i386/x86-64linux.mh: Reflect the above change.
4806         
4807 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4808
4809         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4810         with sigcontext_addr.  Add sc_sp_offset.
4811         (i386bsd_sigtramp_saved_pc): Remove prototype.
4812         (i386bsd_sicontext_addr): Add prototype.
4813         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4814         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4815         (i386_svr4_sigtramp_saved_pc): Removed.
4816         (i386_svr4_sigcontext_addr): New function.
4817         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4818         Initialize tdep->sigcontext_addr instead.  Initialize
4819         tdep->sc_pc_offset and tdep->sc_sp_offset.
4820         (i386_gdbarch_init): Likewise.
4821         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4822         any more.
4823         (i386bsd_sigtramp_saved_pc): Remove function.
4824         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4825         Initialize tdep->sigcontext_addr instead.  Initialize
4826         tdep->sc_pc_offset.
4827         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4828         of tdep->sigtramp_saved_pc.
4829         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4830         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4831         instead.
4832
4833         * i386-tdep.c (i386_frameless_function_invocation,
4834         i386_frame_num_args, i386_frame_init_saved_regs,
4835         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4836         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4837         i386_extract_return_value, i386_store_return_value,
4838         i386_extract_struct_value_address, i386_register_virtual_type,
4839         i386_register_convertible, i386_register_convert_to_virtual,
4840         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4841         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4842         static.
4843
4844 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4845
4846         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4847
4848         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4849         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4850         this macro.  Include "value.h".
4851
4852 2002-06-30  Aidan Skinner  <aidan@velvet.net>
4853
4854         * ada-exp.tab.c: remove as it's a generated file
4855         * ada-lex.c: remove as it's a generated file
4856                 
4857 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
4858
4859         * config/i386/tm-i386.h (struct frame_info, struct
4860         frame_saved_regs, struct value, struct type): Remove forward
4861         declarations.
4862
4863         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4864         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4865         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4866         (FILL_FPXREGSET): Define.
4867
4868         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4869
4870         * configure.tgt (i[3456]86-*-openbsd*): Fold into
4871         i[3456]86-*-netbsd* case.
4872         * config/i386/tm-obsd.h: Removed.
4873         * config/i386/obsd.mt: Removed.
4874         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4875         core-aout.o.
4876         (MH_CFLAGS): Add -DYYDEBUG=0.
4877
4878         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4879         i386nbsd_sc_pc_offset on OpenBSD too.
4880
4881         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4882         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4883         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4884         define.
4885         * i386bsd-tdep.c: Include "arch-utils.h".
4886         (i386bsd_aout_in_solib_call_trampoline): New function.
4887         (i386bsd_init_abi): Set in_solib_call_trampoline to
4888         i386bsd_aout_in_solib_call_trampoline.
4889         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4890         in_solib_call_trampoline to generic_in_solib_call_trampoline.
4891
4892 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4893
4894         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4895         (struct obstack, struct bcache): Add opaque declarations.
4896         * Makefile.in (macrotab_h): Update
4897
4898 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4899
4900         * blockframe.c (generic_find_dummy_frame): Change return type to
4901         ``struct regcache''.
4902         (struct dummy_frame): Replace field ``registers'' with regcache, a
4903         struct regcache object.
4904         (generic_find_dummy_frame): Update.
4905         (generic_push_dummy_frame): Update.  Use regcache_xfree,
4906         regcache_xmalloc and regcache_cpy.
4907         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
4908         regcache_xfree.
4909         (deprecated_generic_find_dummy_frame): Update.
4910         (generic_read_register_dummy): Update.  Use
4911         regcache_read_as_address.
4912         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
4913         (generic_get_saved_register): Update.  Use regcache_read.
4914
4915 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4916
4917         * Makefile.in (objfiles_h): Add $(bcache_h).
4918         * objfiles.h: Include "bcache.h".
4919
4920         * Makefile.in (symtab_h): Remove $(bcache_h).
4921         * symtab.h: Do not include "bcache.h".
4922
4923 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4924
4925         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4926         generic_func_frame_chain_valid.
4927
4928 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
4929
4930         * config/i386/nm-fbsd.h: Include <sys/param.h>.
4931         * config/i386/tm-fbsd.h: Likewise.
4932
4933 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4934
4935         * rs6000-tdep.c (rs6000_gdbarch_init): Use
4936         generic_unwind_get_saved_register.
4937
4938 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4939
4940         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4941         * regcache.c (supply_register): Add missing argument to
4942         register_buffer call.
4943
4944 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4945
4946         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
4947         Solaris /bin/grep does not not like it.  From Peter Schauer.
4948
4949 2002-06-26  Tom Tromey  <tromey@redhat.com>
4950
4951         * command.h (add_setshow_cmd): Declare.
4952         (add_setshow_cmd_full): Declare.
4953         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
4954         returns void.  Use add_setshow_cmd_full.
4955         (add_setshow_cmd_full): New function.
4956         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4957         (add_setshow_boolean_cmd): Likewise.
4958
4959 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4960
4961         * config/vax/tm-vax.h: Protect from multiple inclusion.
4962         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4963         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4964         * config/vax/tm-vaxbsd.h: ...here.  New file.
4965         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4966
4967 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4968
4969         * config/vax/tm-vax.h (BREAKPOINT): Remove.
4970         (BELIEVE_PCC_PROMOTION): Remove.
4971         (AP_REGNUM): Move to...
4972         * config/vax/nm-vax.h: ...here.
4973         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4974         (vax_breakpoint_from_pc): New function.
4975         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4976         and gdbarch_believe_pcc_promotion.
4977
4978 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
4979
4980         * Makefile.in (vax_tdep_h): Define.  
4981         (vax-tdep.o): Use $(vax_tdep_h).
4982         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4983         (vax_dump_tdep): New function. 
4984         (_initialize_vax_tdep): Register vax_dump_tdep.
4985         * vax-tdep.h: Include osabi.h.     
4986         (struct gdbarch_tdep): New. 
4987
4988 2002-06-26  Andrew Cagney  <cagney@redhat.com>
4989
4990         * frame.h (deprecated_generic_find_dummy_frame): Rename
4991         generic_find_dummy_frame.
4992         * blockframe.c (generic_find_dummy_frame): Make static.
4993         (deprecated_generic_find_dummy_frame): New function.
4994         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4995         generic_find_dummy_frame with deprecated_find_dummy_frame.
4996         (sh64_nofp_frame_init_saved_regs): Ditto.
4997         (sh_fp_frame_init_saved_regs): Ditto.
4998         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4999         (s390_frame_chain): Ditto.
5000         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5001
5002 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5003
5004         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5005         gdbarch vector are at the top.
5006         (NUM_REGS): Remove.
5007         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5008         (FRAME_ARGS_ADDRESS): Remove.
5009         (FRAME_LOCALS_ADDRESS): Remove.
5010         (FRAME_NUM_ARGS): Remove.
5011         (FRAME_ARGS_SKIP): Remove.  
5012         * m68k-tdep.c (enum): Add eumeration of special register numbers.
5013         (m68k_gdbarch_init): Add gdbarch initializations for macros
5014         undefined in tm-m68k.h
5015
5016 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5017
5018         * monitor.h: Add the function regname to monitor_ops
5019         structure. This way NUM_REGS does not have to be a constant.
5020         * monitor.c (monitor_fetch_register): Added support for regname
5021         function. The function is called if the array regnames is NULL.
5022         (monitor_store_register): Same.
5023         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5024         regnames array.
5025         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5026         cpu32bug_cmds.regname to point to new function.
5027         * abug-rom.c (abug_regname): Same as above.
5028         (init_abug_cmds): Same.
5029         * dbug-rom.c (dbug_regname): Same as above.
5030         (init_dbug_cmds): Same.
5031         * remote-est.c (est_regname): Same. 
5032         (init_est_cmds): Same.
5033         * rom68k-rom.c (rom68k_regname): Same. 
5034         (init_rom68k_cmds): Same.
5035
5036 2002-06-25  Tom Tromey  <tromey@redhat.com>
5037
5038         * breakpoint.c (delete_command): Don't repeat `delete' commands.
5039
5040 2002-06-25  Andrew Cagney  <cagney@redhat.com>
5041
5042         * infrun.c (stop_registers): Change variable's type to ``struct
5043         regcache'''.
5044         (xmalloc_inferior_status): Delete function.
5045         (free_inferior_status): Delete function.
5046         (normal_stop): Use regcache_cpy.
5047         (struct inferior_status): Change type of fields ``stop_registers''
5048         and ``registers'' to ``struct regcache''.
5049         (write_inferior_status_register): Use regcache_write.
5050         (save_inferior_status): Instead of calling
5051         xmalloc_inferior_status, allocate the inf_status buffer directly.
5052         Use regcache_dup_no_passthrough and regcache_dup to save the
5053         buffers.
5054         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5055         Replace the stop_registers regcache instead of overriding it.  Use
5056         regcache_xfree.  Instead of calling free_inferior_status, xfree
5057         the buffer directly.
5058         (discard_inferior_status): Use regcache_xfree.  Instead of calling
5059         free_inferior_status, xfree the buffer directly.
5060         (build_infrun): Use regcache_xmalloc.
5061         (_initialize_infrun): Delete redundant call to build_infrun.
5062
5063         * Makefile.in (infcmd.o): Add $(regcache_h).
5064
5065         * infcmd.c: Include "regcache.h".
5066         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5067         obtain the address of `stop_registers' register buffer.
5068         (print_return_value): Ditto.
5069
5070         * inferior.h (struct regcache): Add opaque declaration.
5071         (stop_registers): Change variable's declared type to ``struct
5072         regcache''.
5073
5074 2002-06-24  Tom Tromey  <tromey@redhat.com>
5075
5076         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5077         * target.c (initialize_targets): Fixed typo in
5078         trust-readonly-sections `show' documentation.
5079
5080         * main.c: Marked all strings with _().
5081
5082 2002-06-24  Don Howard  <dhoward@redhat.com>
5083
5084         * memattr.c (create_mem_region): Treat hi == 0 as a special case
5085         that means max CORE_ADDR+1.
5086         (lookup_mem_region): Ditto.
5087         (mem_info_command): Ditto.
5088
5089 2002-06-24  Grace Sainsbury  <graces@redhat.com>
5090
5091         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5092         (REGISTER_BYTES_OK): Remove.
5093         (REGISTER_BYTES): Remove.
5094         (STORE_STRUCT_RETURN): Remove.
5095         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5096         (STORE_RETURN_VALUE): Remove.
5097         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5098         (FRAME_CHAIN): Remove.
5099         (FRAMELESS_FUNCTION_INVOCATION): Remove.
5100         (FRAME_SAVED_PC): Remove.  
5101         * m68k-tdep.c (m68k_register_bytes_ok):Add.
5102         (m68k_store_struct_return): Add.
5103         (m68k_deprecated_extract_return_value): Add.
5104         (m68k_deprecated_extract_struct_value_address): Add.
5105         (m68k_store_return_value): Add.
5106         (m68k_frame_chain): Add.
5107         (m68k_frameless_function_invocation): Add.
5108         (m68k_frame_saved_pc): Add.
5109         (m68k_gdbarch_init): added set_gdbarch calls for new 
5110         functions and deleted macros.
5111
5112 2002-06-23  Tom Tromey  <tromey@redhat.com>
5113
5114         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5115         (ALLDEPFILES): Likewise.
5116         (udiheaders): Removed.
5117         (udip2soc.o): Likewise.
5118         (udi2go32.o): Likewise.
5119         (udr.o): Likewise.
5120         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5121
5122 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
5123
5124         * infrun.c (_initialize_infrun): Delete unnecessary call to
5125         build_infrun.
5126
5127         * regcache.h: Update comments describing the regcache_cpy family
5128         of functions.
5129         (regcache_save, regcache_restore): Delete declaration.
5130         (regcache_save_no_passthrough): Delete declaration.
5131         (regcache_restore_no_passthrough): Delete declaration.
5132         * regcache.c (regcache_save): Delete function.
5133         (regcache_save_no_passthrough): Delete function.
5134         (regcache_restore): Delete function.
5135         (regcache_restore_no_passthrough): Delete function.
5136
5137 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
5138
5139         * config/m68k/tm-m68k.h: Fix typo.
5140         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5141         (m68k_frame_init_saved_regs): Declare.
5142
5143 2002-06-21  Jim Blandy  <jimb@redhat.com>
5144
5145         Remove some vestiges of Harris 88k support.
5146         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5147         register numbering quirk.
5148         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5149         odd symbols occurring in Harris 88k ELF targets.
5150
5151 2002-06-21  Tom Tromey  <tromey@redhat.com>
5152
5153         * gdb_locale.h: New file.
5154         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5155         (defs_h): Added gdb_locale.h.
5156         * configure, config.in: Rebuilt.
5157         * configure.in (PACKAGE): Define.
5158         * defs.h: Include gdb_locale.h.
5159         * main.c (captured_main): Call setlocale, bindtextdomain,
5160         textdomain.
5161
5162 2002-06-21  Dave Brolley  <brolley@redhat.com>
5163
5164         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5165         * config/frv/frv.mt: New file.
5166         * config/frv/tm-frv.h: New file.
5167         * configure.tgt: Support frv-*-*.
5168         * Makefile.in (frv-tdep.o): New target.
5169         * frv-tdep.c: New file.
5170         * NEWS: Mention frv.
5171
5172 2002-06-21  Dave Brolley  <brolley@redhat.com>
5173
5174         * MAINTAINERS: Add self to "Write After Approval" list.
5175
5176 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5177
5178         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5179         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5180         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5181         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5182         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5183
5184         * m68k-tdep.c: Include arch-utils.h
5185         (m68k_register_raw_size): Add.
5186         (m68k_register_virtual_size): Add.
5187         (m68k_register_virtual_type): Add.
5188         (m68k_register_name): Add.
5189         (m68k_stack_align): Add.
5190         (m68k_register_byte): Add.
5191         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5192         tm-m68k.h.
5193
5194 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5195
5196         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5197         m68k_find_saved_regs.
5198         (m68k_pop_frame): Removed saved_regs structure, and replaced
5199         references to it with frame->saved_regs.
5200         (m68k_gdbarch_init): Added function calls to initialize the
5201         gdbarch structure.
5202         (m68k_fix_call_dummy): Add. 
5203         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5204         (CALL_DUMMY): Remove.
5205         (CALL_DUMMY_LENGTH): Remove.
5206         (CALL_DUMMY_START_OFFSET): Remove.
5207         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5208         (FIX_CALL_DUMMY): Remove.
5209         (PUSH_DUMMY_FRAME): Remove.
5210         (POP_FRAME): Remove.
5211
5212 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5213
5214         * parse.c (parse_fprintf): New function used to avoid calls to
5215         fprintf in bison parser generated debug code.
5216         * parser-defs.h: Declaration of new parse_fprintf function.
5217         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5218         Set YYDEBUG to 1 by default.
5219         Set YYFPRINTF as parse_fprintf.
5220
5221 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
5222
5223         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
5224         encoding anymore.
5225         (pointer_encoding, enum ptr_encoding): New.
5226         (execute_cfa_program): Take care about pointer encoding.        
5227         (dwarf2_build_frame_info): Only call parse_frame_info for 
5228         .debug_frame and .eh_frame.
5229         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5230         fixed augmentation handling, added relative addressing, 
5231         ignore duplicate FDEs. Added comments.
5232         * dwarf2cfi.c: Reindented.
5233         
5234 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
5235
5236         * event-top.c (command_handler): Don't use space_at_cmd_start
5237         unless there is sbrk() on the host. Assign time and space data
5238         to union fields of the appropriate length.
5239
5240 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
5241
5242         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
5243         x86_64_register_name. Return type changed to 'const char *'.
5244         (x86_64_register_name2nr): Rename to x86_64_register_number.
5245         (x86_64_gdbarch_init): Update to reflect the change.
5246         * x86-64-tdep.h: Ditto.
5247         * x86-64-linux-nat.c (x86_64_fxsave_offset)
5248         (supply_fpregset): Ditto.
5249
5250 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5251
5252         * regcache.h: Update copyright.
5253         (struct regcache, struct gdbarch): Add opaque declarations.
5254         (current_regcache): Declare global variable.
5255         (regcache_read, regcache_write): Add gdbarch parameter.
5256         (regcache_save, regcache_save_no_passthrough)
5257         (regcache_restore, regcache_restore_no_passthrough)
5258         (regcache_dup, regcache_dup_no_passthrough)
5259         (regcache_cpy, regcache_cpy_no_passthrough)
5260         (deprecated_grub_regcache_for_registers)
5261         (deprecated_grub_regcache_for_register_valid)
5262         (regcache_valid_p): Add function declarations.
5263         
5264         * regcache.c: Update copyright.
5265         (regcache_descr_handle): New global variable.
5266         (struct regcache_descr): Define.
5267         (init_legacy_regcache_descr, init_regcache_descr): New functions.
5268         (regcache_descr, xfree_regcache_descr): New functions.
5269         (struct regcache): Define.
5270         (regcache_xmalloc, regcache_xfree): New functions.
5271         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5272         (regcache_dup, regcache_dup_no_passthrough): New functions.
5273         (regcache_valid_p, regcache_read_as_address): New functions.
5274         (deprecated_grub_regcache_for_registers): New function.
5275         (deprecated_grub_regcache_for_register_valid): New function.
5276         (current_regcache): New global variable.
5277         (register_buffer): Add regcache parameter.  Update calls.
5278         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
5279         (read_register_gen, write_register_gen): Update register_buffer
5280         call.  Test for legacy_p instead of gdbarch_register_read_p or
5281         gdbarch_register_write_p.
5282         (regcache_collect): Update register_buffer call.
5283         (build_regcache): Rewrite.  Use deprecated grub functions.
5284         (regcache_save, regcache_save_no_passthrough): New functions.
5285         (regcache_restore, regcache_restore_no_passthrough): New
5286         functions.
5287         (_initialize_regcache): Create the regcache_data_handle. Swap
5288         current_regcache global variable.
5289         
5290         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5291         parameter to regcache_read and regcache_write calls.
5292         (sh4_register_read): Ditto.
5293         (sh64_pseudo_register_read): Ditto.
5294         (sh64_register_read): Ditto.
5295         (sh_pseudo_register_write): Ditto.
5296         (sh4_register_write): Ditto.
5297         (sh64_pseudo_register_write): Ditto.
5298         (sh64_register_write): Ditto.
5299
5300         * defs.h (XCALLOC): Define.
5301
5302 2002-06-19  Grace Sainsbury  <graces@redhat.com>
5303
5304         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5305         * m68k-tdep.c (m68k_gdbarch_init): Added.
5306         (m68k_dump_tdep): Added.
5307
5308 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5309
5310         * ada-lang.c (fill_in_ada_prototype): Update comment.
5311
5312 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5313
5314         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
5315         MIPS_ABI_LAST.
5316         (mips_abi_string, mips_abi_strings): New.
5317         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5318         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
5319         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
5320         O32 if no ABI is found.
5321         (mips_dump_tdep): Use mips_abi_strings.
5322         (mips_abi_update): New function.
5323         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
5324         ``set mips abi'' and ``show mips abi''.  Check the size of
5325         mips_abi_strings.
5326
5327 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5328
5329         * i386-linux-tdep.c (i386_linux_register_name): Make return type
5330         constant.
5331
5332 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
5333
5334         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
5335         current frame using only the first stack size adjustment. All
5336         subsequent size adjustments are not considered to be part of
5337         the "static" part of the current frame.
5338         Compute the address of the saved registers relative to the
5339         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5340         in use in this frame.
5341
5342 2002-06-18  Don Howard  <dhoward@redhat.com>
5343  
5344         * valops.c (value_ind): Use value_at_lazy() when dereferencing
5345         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
5346         suggesting this solution.
5347
5348 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
5349
5350         * config/romp/xm-rtbsd.h: Delete file.
5351         * config/romp/rtbsd.mh: Delete file.
5352
5353 2002-06-18  Keith Seitz  <keiths@redhat.com>
5354
5355         * breakpoint.c (condition_command): Post breakpoint_modify
5356         when a condition is added to an existing breakpoint.
5357         (commands_command): Likewise for commands.
5358         (set_ignore_count): Likewise for ignore counts.
5359         If no tty, do not simply return, still need to send event
5360         notification.
5361         (ignore_command): Only print a newline if the command came
5362         from a tty.
5363         Don't call breakpoints_changed, since this is now properly
5364         handled by set_ignore_count.
5365
5366 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5367
5368         * MAINTAINERS: Note that cris-elf target can be compiled with
5369         -Werror.
5370         * cris-tdep.c (cris_register_name): Make return type constant.
5371         (cris_breakpoint_from_pc): Ditto.
5372
5373 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5374
5375         * frame.h (struct frame_info): Change type of context to 
5376         'struct context'.
5377
5378 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5379
5380         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5381         pointer.
5382         * gdbarch.h, gdbarch.c: Regenerate.
5383         * config/mips/tm-mips.h (mips_register_name): Update.
5384         * i386-tdep.h (i386_register_name): Update.
5385         * mips-tdep.c (mips_register_name): Update
5386         * alpha-tdep.c (alpha_register_name): Update.
5387         * arch-utils.c (legacy_register_name): Update.
5388         * arch-utils.h (legacy_register_name): Update.
5389         * avr-tdep.c (avr_register_name): Update.
5390         * ia64-tdep.c (ia64_register_name): Update.
5391         * i386-tdep.c (i386_register_name): Update.
5392         * sparc-tdep.c (sparc32_register_name): Update.
5393         (sparc64_register_name): Update.
5394         (sparclite_register_name): Update.
5395         (sparclet_register_name): Update.
5396         * sh-tdep.c (sh_generic_register_name): Update.
5397         (sh_sh_register_name): Update.
5398         (sh_sh3_register_name): Update.
5399         (sh_sh3e_register_name): Update.
5400         (sh_sh_dsp_register_name): Update.
5401         (sh_sh3_dsp_register_name): Update.
5402         (sh_sh4_register_name): Update.
5403         (sh_sh64_register_name): Update.
5404         * s390-tdep.c (s390_register_name): Update.
5405         * rs6000-tdep.c (rs6000_register_name): Update.
5406         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5407         (ns32k_register_name_32382): Update.
5408         * d10v-tdep.c (d10v_ts2_register_name): Update.
5409         (d10v_ts3_register_name): Update.
5410         * xstormy16-tdep.c (xstormy16_register_name): Update.
5411         * vax-tdep.c (vax_register_name): Update.
5412         * v850-tdep.c (v850_register_name): Update.
5413         * m68hc11-tdep.c (m68hc11_register_name): Update.
5414         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5415         (am33_register_name): Update.
5416
5417 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5418
5419         * m68k-tdep.c: Reindented.
5420
5421 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5422
5423         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5424         list of predefined types.
5425
5426 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5427
5428         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5429         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5430         REGISTER_CONVERT_TO_RAW): Remove defines.
5431         (i386_register_virtual_type, i386_register_convertible,
5432         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5433         Remove prototypes.
5434         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5435         macros mentioned above.
5436
5437         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5438         (i386lynx_saved_pc_after_call): Remove prototype.
5439         * i386ly-tdep.c: Include "i386-tdep.h".
5440         (i386lynx_saved_pc_after_call): Make static.  Use
5441         read_memory_nobpt instead of read_memory.  Use
5442         read_memory_unsigned_integer instead of read_memory_integer.
5443         (i386lynx_init_abi): New function.
5444         (i386lynx_coff_osabi_sniffer): New function.
5445         (_initialize_i386bsd_tdep): New function.
5446
5447         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5448         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5449         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5450         (i386_fix_call_dummy): Remove prototype.
5451         * i386-tdep.c (i386_call_dummy_words): New variable.
5452         (i386_gdbarch_init): Adjust for removal of the
5453         macros mentioned above.
5454
5455 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5456
5457         * command.h (add_setshow_auto_boolean_cmd): Replace
5458         add_set_auto_boolean_cmd.
5459         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5460         add_set_auto_boolean_cmd.
5461         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5462         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5463         mask-address'' command.
5464         (show_mask_address): Add cmd parameter.
5465         * remote.c (add_packet_config_cmd): Update.  Change type of
5466         set_func and show_func to cmd_sfunc_ftype.
5467         (_initialize_remote): Update `set remote Z-packet'
5468         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5469         (show_remote_protocol_e_packet_cmd): Ditto.
5470         (show_remote_protocol_E_packet_cmd): Ditto.
5471         (show_remote_protocol_P_packet_cmd): Ditto.
5472         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5473         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5474         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5475         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5476         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5477         (show_remote_protocol_Z_packet_cmd): Ditto.
5478         (show_remote_protocol_binary_download_cmd): Ditto.
5479         (show_remote_cmd): Pass NULL to all of above.
5480
5481 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5482
5483         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5484         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5485         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5486         POP_FRAME): Remove defines.
5487         (i386_push_arguments, i386_store_struct_return,
5488         i386_extract_return_value, i386_store_return_value,
5489         i386_extract_struct_value_address, i386_push_dummy_frame,
5490         i386_pop_frame): Renove prototypes.
5491         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5492         macros mentioned above.
5493
5494 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5495
5496         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5497         add_set_boolean_cmd.
5498         (add_setshow_cmd): New function.
5499         * command.h (add_setshow_boolean_cmd): Replace
5500         add_set_boolean_cmd.
5501         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5502         and ``set rdiromatzero''.
5503         * maint.c (_initialize_maint_cmds): Update commented out code.
5504         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5505         * target.c (initialize_targets): Update `set
5506         trust-readonly-sections'.
5507         * remote.c (_initialize_remote): Update `set remotebreak'.
5508
5509 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5510
5511         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5512         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5513         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5514         fit into multi-arch framework.
5515         (i386_breakpoint_from_pc): New function.
5516         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5517         above.
5518
5519         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5520         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5521         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5522         (i386_frameless_function_invocation, i386_frame_num_args,
5523         i386_frame_init_saved_regs): Remove prototypes.
5524         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5525         macros mentioned above.
5526
5527 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5528
5529         * cli/cli-decode.c (set_cmd_cfunc): Update.
5530         (set_cmd_sfunc): Update.
5531         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5532         (set_cmd_sfunc, set_cmd_cfunc): Update.
5533         * cli/cli-decode.h: Update.
5534
5535 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5536
5537         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5538         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5539
5540 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5541
5542         * defs.h (auto_boolean): Declare enum.
5543         * command.h (cmd_auto_boolean): Delete enum.
5544         * mips-tdep.c (mask_address_var): Update.
5545         (mips_mask_address_p): Update.
5546         (show_mask_address): Update.
5547         * remote.c (struct packet_config): Update.
5548         (update_packet_config): Update.
5549         (show_packet_config_cmd): Update.
5550         (packet_ok): Update.
5551         (add_packet_config_cmd): Update.
5552         (_initialize_remote): 
5553         * command.h: Update.
5554         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5555         (do_setshow_command): Update.
5556         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5557         * cli/cli-decode.h: Update.
5558
5559 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5560
5561         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5562         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5563         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5564         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5565         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5566         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5567
5568         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5569         list of DJGPP COFF targets.
5570
5571         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5572         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5573         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5574         (FP0_REGNUM): Remove define.
5575         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5576         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5577         (i386_register_virtual_size): Remove protoype.
5578         * i386-tdep.c (i386_register_virtual_size): Removed.
5579         (i386_extract_return_value, i386_store_return_value): Use
5580         FP0_REGNUM instead of NUM_FREGS to determine whether the
5581         floating-point registers are available.
5582         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5583         Adjust for removal of macros mentioned above.
5584
5585 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5588         comments.
5589         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5590         Remove prototypes.
5591         (supply_gregset, fill_gregset): Remove use of register keyword and
5592         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5593         NUM_REGS and NUM_FREGS.
5594         (FPREGSET_FSAVE_OFFSET): Remove.
5595         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5596         NUM_FREGS to determine whether the floating-point registers are
5597         available.
5598
5599         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5600         gnu_store_registers): Replace usage of NUM_GREGS with
5601         I386_NUM_GREGS.
5602
5603         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5604         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5605         usage of NUM_GREGS with I386_NUM_GREGS.
5606
5607         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5608
5609         * i386bsd-nat.c: Include "i386-tdep.h".
5610         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5611         I386_NUM_GREGS.
5612
5613         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5614         and associated comment.  They no longer make any sense, since we
5615         don't use this file anymore on Linux.
5616
5617         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5618         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5619         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5620         elements in these arrays.
5621         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5622         MAX_NUM_REGS.
5623
5624 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5625
5626         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5627         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5628
5629 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5630
5631         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5632         EXTRACT_RETURN_VALUE.
5633         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5634         EXTRACT_STRUCT_VALUE_ADDRESS.
5635         * gdbarch.h, gdbarch.c: Regenerate.
5636         
5637         * values.c (value_being_returned): Handle
5638         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5639         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5640
5641         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5642         * arm-tdep.c (arm_gdbarch_init): Update.
5643         * avr-tdep.c (avr_gdbarch_init): Update.
5644         * cris-tdep.c (cris_gdbarch_init): Update.
5645         * d10v-tdep.c (d10v_gdbarch_init): Update.
5646         * ia64-tdep.c (ia64_gdbarch_init): Update.
5647         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5648         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5649         * s390-tdep.c (s390_gdbarch_init): Update.
5650         * sh-tdep.c (sh_gdbarch_init): Update.
5651         * s390-tdep.c (s390_gdbarch_init): Update.
5652         * sparc-tdep.c (sparc_gdbarch_init): Update.
5653         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5654         * v850-tdep.c (v850_gdbarch_init): Update.
5655         * vax-tdep.c (vax_gdbarch_init): Update.
5656         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5657         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5658
5659         * config/arc/tm-arc.h: Update.
5660         * config/d30v/tm-d30v.h: Update.
5661         * config/fr30/tm-fr30.h: Update.
5662         * config/h8300/tm-h8300.h: Update.
5663         * config/h8500/tm-h8500.h: Update.
5664         * config/i386/tm-i386.h: Update.
5665         * config/i386/tm-ptx.h: Update.
5666         * config/i386/tm-symmetry.h: Update.
5667         * config/i960/tm-i960.h: Update.
5668         * config/m32r/tm-m32r.h: Update.
5669         * config/m68k/tm-delta68.h: Update.
5670         * config/m68k/tm-linux.h: Update.
5671         * config/m68k/tm-m68k.h: Update.
5672         * config/m88k/tm-m88k.h: Update.
5673         * config/mcore/tm-mcore.h: Update.
5674         * config/mips/tm-mips.h: Update.
5675         * config/mn10200/tm-mn10200.h: Update.
5676         * config/pa/tm-hppa.h: Update.
5677         * config/pa/tm-hppa64.h: Update.
5678         * config/sparc/tm-sp64.h: Update.
5679         * config/sparc/tm-sparc.h: Update.
5680         * config/sparc/tm-sparclet.h: Update.
5681         * config/z8k/tm-z8k.h: Update.
5682
5683 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5684
5685         * Makefile.in (i386_linux_tdep_h): Define.
5686         (i386_tdep_h, i387_tdep_h): Define.
5687         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5688         $(i386_tdep_h) and $(i387_tdep_h).
5689         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5690
5691 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5692
5693         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5694         Already covered by the default.
5695
5696         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5697         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5698         (i386_gdbarch_init): Initialize long_double_format and long_double
5699         bit.
5700
5701         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5702         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5703         Move these to ...
5704         * config/i386/i386sol2.mh: ... here.
5705         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5706         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5707         (SIGCONTEXT_PC_OFFSET): Remove define.
5708         (IN_SIGTRAMP): Remove define.
5709         * i386-sol2-tdep.c: New file.
5710         
5711         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5712         * config/i386/tm-i386nw.h: Removed.
5713
5714         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5715         USE_STRUCT_CONVENTION): Remove defines.
5716         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5717         (get_longjmp_target): Remove prototype.
5718         (IN_SIGTRAMP): Remove define.
5719         (i386bsd_in_sigtramp): Remove prototype.
5720         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5721         function.  Update comment accordingly
5722         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5723         (FRAME_SAVED_PC): Remove define.
5724         (i386bsd_frame_saved_pc): Remove prototype.
5725         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5726         GET_LONGJMP_TARGET): Remove defines.
5727         (get_longjmp_target): Remove prototype.
5728         (IN_SIGTRAMP): Remove define.
5729         (i386bsd_in_sigtramp): Remove prototype.
5730         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5731         function.  Update comment accordingly
5732         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5733         (FRAME_SAVED_PC): Remove define.
5734         (i386bsd_frame_saved_pc): Remove prototype.
5735         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5736         Remove prototype.
5737         (USE_STRUCT_CONVENTION): Remove prototype.
5738         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5739         declaration.
5740         (_initialize_i386bsd_nat): Revise logic to determine some
5741         constants at compile time when compiling a native GDB.  Warn if
5742         things don't match up with what we expect.
5743         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5744         Remove variables.
5745         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5746         to use date stored in `struct gdbarch_tdep'.
5747         (i386bsd_sigcontext_offset): Remove varaible.
5748         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5749         stored in `struct gdbarch_tdep'.
5750         (i386bsd_frame_saved_pc): Make static.
5751         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5752         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5753         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5754         i386fbsd4_sc_pc_offset): New variables.
5755         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5756         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5757         functions.
5758         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5759         functions.
5760         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5761         Modify the value of i386fbsd_sigtramp_start and
5762         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5763         i386fbsd_sigtramp_end.
5764         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5765         function.
5766
5767         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5768         define to i386-linux-tdep.h.
5769         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5770         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5771         defines.
5772         (i386_linux_register_name, i386_linux_register_byte,
5773         i386_linux_register_raw_size): Remove prototypes.
5774         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5775         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5776         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5777         TARGET_WRITE_PC): Remove defines.
5778         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5779         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5780         i386_linux_write_pc): Remove prototypes.
5781         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5782         (get_longjmp_target): Remove prototype.
5783         * i386-linux-tdep.h: New file.
5784         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5785         * i386-linux-tdep.c: Include "i386-tdep.h" and
5786         "i386-linux-tdep.h".
5787         (i386_linux_register_name, i386_linux_register_byte,
5788         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5789         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5790         Make static.
5791         (i386_linux_init_abi): New function.
5792         (_initialize_i386_linux_tdep): New function.
5793
5794         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5795         (i386_saved_pc_after_call): Remove prototype.
5796         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5797         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5798         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5799         (i386_register_name, i386_stab_reg_to_regnum,
5800         i386_dwarf_reg_to_regnum): Remove prototypes.
5801         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5802         SIZEOF_SSE_REGS): Remove defines.
5803         (REGISTER_BYTES): Remove define.
5804         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5805         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5806         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5807         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5808         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5809         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5810         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5811         (get_longjmp_target): Remove prototype.
5812         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5813         (sigtramp_saved_pc): Remove define.
5814         (i386v4_sigtramp_saved_pc): Remove prototype.
5815         * config/i386/tm-go32.h (FRAME_CHAIN,
5816         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5817         (i386go32_frame_saved_pc): Remove prototype.
5818         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5819         (get_longjmp_target): Remove prototype.
5820         * i386-tdep.h: Include "osabi.h".
5821         (enum i386_abi): Removed.
5822         (enum struct_return): New enum.
5823         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5824         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5825         sc_pc_offset members.
5826         (i386_gdbarch_register_os_abi): Remove prototype.
5827         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5828         I386_SSE_NUM_REGS): New defines.
5829         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5830         I386_SSE_SIZEOF_REGS): New defines.
5831         (i386_register_name, i386_register_byte, i386_register_raw_size):
5832         New prototypes.
5833         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5834         (i386bsd_sigtramp_saved_pc): New prototype.
5835         * i386-tdep.c: Don't include "elf-bfd.h".
5836         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5837         i386_frame_chain, i386_saved_pc_after_call): Make static.
5838         (i386_frame_saved_pc): Rewrite to call architecture dependent
5839         function to deal with signal handlers.  Make static.
5840         (i386go32_frame_saved_pc): Removed.
5841         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5842         Removed.
5843         (i386_get_longjmp_target): New function.
5844         (default_struct_convention, pcc_struct_convention,
5845         reg_struct_convention, valid_conventions, struct_convention): New
5846         variables.
5847         (i386_use_struct_convention): New function.
5848         (i386v4_sigtramp_saved_pc): Renamed to
5849         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5850         (i386_pc_in_sigtramp): New function.
5851         (i386_abi_names): Removed.
5852         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5853         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5854         Removed.
5855         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5856         i386_gdbarch_register_os_abi): Removed.
5857         (struct i386_abi_handler): Removed.
5858         (i386_abi_handler_list): Removed.
5859         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5860         functions.
5861         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5862         i386_nw_init_abi): New functions.
5863         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5864         Use set_gdbarch_xxx() calls instead of relying on macros for a
5865         number of calls.
5866         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5867         (_initialize_i386_tdep): Add new 'struct-convcention' command.
5868         Register the various architecture variants defined in this file.
5869
5870 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5871
5872         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5873         (struct main_type): Remove arg_types member.  Update comments for
5874         struct field.
5875         (TYPE_ARG_TYPES): Remove.
5876         (TYPE_FN_FIELD_ARGS): Update.
5877         (smash_to_method_type): Update prototype.
5878
5879         * c-typeprint.c (cp_type_print_method_args): Take method type
5880         instead of argument list.  Use new argument layout.  Simplify.
5881         (c_type_print_args): Use new argument layout.  Simplify.
5882         (c_type_print_base): Update call to cp_type_print_method_args.
5883         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5884         argument; use die->type instead.  Update call to
5885         smash_to_method_type.
5886         (read_structure_scope): Update call to dwarf2_add_member_fn.
5887         * gdbtypes.c (allocate_stub_method): Update comment.
5888         (smash_to_method_type): Take new NARGS and VARARGS arguments.
5889         Use new argument layout.
5890         (check_stub_method): Use new argument layout.  Don't count
5891         void as an argument.
5892         (print_arg_types): Update comments.  Use new argument layout.
5893         (recursive_dump_type): Don't print arg_types member.
5894         * hpread.c (hpread_read_struct_type): Use new argument layout.
5895         (fixup_class_method_type): Likewise.
5896         (hpread_type_lookup): Likewise.
5897         * stabsread.c (read_type): Update calls to read_args and
5898         smash_to_method_type.
5899         (read_args): Use new argument layout.  Simplify.
5900         * valops.c (typecmp): Use new argument layout.  Update parameters
5901         and comments.  Simplify.
5902         (hand_function_call): Use new argument layout.
5903         (search_struct_method): Update call to typecmp.
5904         (find_overload_match): Use new argument layout.
5905
5906 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5907
5908         * NEWS: Mention multithreaded debug support for gdbserver.
5909
5910 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5911
5912         * MAINTAINERS: Mention NEWS.
5913
5914 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5915
5916         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5917         (struct mips_objfile_private, compare_pdr_entries): New.
5918         (non_heuristic_proc_desc): Read the ".pdr" section if it
5919         is present.
5920
5921 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5922
5923         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5924         (arm_debug): New static variable.
5925         (_initialize_arm_tdep): Add ``set debug arm'' command.
5926
5927 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5928
5929         * Makefile.in (sim_arm_h): Define.
5930         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5931         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5932         (arm_register_sim_regno): New function, map an internal REGNUM
5933         onto a simulator register number.
5934         (arm_gdbarch_init): Set register_sim_regno.
5935
5936 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
5937
5938         * MAINTAINERS: Add self.
5939
5940 2002-06-11  Jim Blandy  <jimb@redhat.com>
5941
5942         * source.c (source_info): Mention whether the symtab has
5943         information about preprocessor macros.
5944
5945         Call the command `info macro', not `show macro'.
5946         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5947         Fix error message.
5948         (_initialize_macrocmd): Register `info_macro_command' in
5949         `infolist', not `showlist'.
5950
5951 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
5952
5953         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5954         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5955         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5956         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5957         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
5958         unconditionally.
5959         (set_mipsfpu_single_command, set_mipsfpu_double_command)
5960         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5961         (_initialize_mips_tdep): Remove dead code.
5962         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5963         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5964         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5965         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5966         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5967         MIPS_LAST_FP_ARG_REGNUM): Remove.
5968
5969 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5970
5971         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5972         (unwind_tmp_obstack_free, parse_frame_info)
5973         (update_context, cfi_read_fp, cfi_write_fp)
5974         (cfi_frame_chain, cfi_init_extra_frame_info)
5975         (cfi_virtual_frame_pointer): Use the above function.
5976         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5977
5978 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
5979
5980         * v850-tdep.c (v850_type_is_scalar): New function.
5981         (v850_use_struct_convention): Match current gcc implementation
5982         as close as possible.
5983         (v850_push_arguments): Fix stack_offset handling.  Don't write
5984         struct_addr into register.  This is done by v850_store_struct_return.
5985         (v850_extract_return_value): Care for structs.
5986         (v850_store_return_value): Ditto.
5987         (v850_store_struct_return): Actually write address.
5988
5989 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
5990
5991         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5992         without debug information too.
5993
5994 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
5995
5996         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5997         Make multi-arch pure.
5998         * gdbarch.h, gdbarch.c: Re-generate.
5999         * arm-tdep.c (arm_print_float_info): Update.
6000         * arch-utils.h (default_print_float_info): Update.
6001         * arch-utils.c (default_print_float_info): Update.
6002         * infcmd.c (float_info): Update call.
6003
6004 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6005
6006         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6007         the front of the initialize list.
6008
6009 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6010
6011         * infrun.c (struct inferior_status): Replace fields
6012         selected_frame_address and selected_level with field
6013         selected_frame_id.
6014         (save_inferior_status): Update.  Use get_frame_id.
6015         (struct restore_selected_frame_args): Delete.
6016         (restore_selected_frame): Update.  Use frame_find_by_id.
6017         (restore_inferior_status): Update.
6018
6019         * breakpoint.h (struct breakpoint): Change type of
6020         watchpoint_frame to frame_id.
6021         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
6022         call to get_current_frame.
6023         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
6024         get_current_frame.
6025         (watchpoint_check): Use frame_find_by_id.
6026
6027         * frame.h (record_selected_frame): Delete declaration.
6028         * stack.c (record_selected_frame): Delete function.
6029         
6030         * frame.h (struct frame_id): Define.
6031         (get_frame_id): Declare.
6032         (frame_find_by_id): Declare.
6033         * frame.c (frame_find_by_id): New function.
6034         (get_frame_id): New function.
6035
6036 2002-06-10  Andrey Volkov <avolkov@transas.com>
6037
6038         * ser-e7kpc.c: Fix duplicated define and call of 
6039         _initialize_ser_e7000pc
6040             
6041 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6042
6043         * signals/signals.c (target_signal_from_host): Fix #ifdef
6044         SIGRTMIN case.
6045         (do_target_signal_to_host): Likewise.
6046
6047 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6048
6049         * mips-tdep.c (mips_find_abi_section): New function.
6050         (mips_gdbarch_init): Call it.
6051
6052 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6053
6054         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6055         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
6056         after Andrew's 2002-06-08 gdbarch change.
6057
6058 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6059
6060         * i386-linux-nat.c (suppy_gregset): Don't supply
6061         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6062         register cache.
6063         (fill_gregset): Don't fetch it under the same circumstances.
6064
6065 2002-06-09  Andrew Cagney  <cagney@redhat.com>
6066
6067         * Makefile.in (callback_h): Define.
6068         (remote_sim_h): Update path to remote-sim.h.
6069         (remote-rdp.o): Add $(callback_h).
6070         (remote-sim.o): Use $(callback_h).
6071         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6072         * remote-rdp.c: Include "gdb/callback.h".
6073
6074 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6075
6076         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6077         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6078
6079 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6080
6081         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6082         * rdi-share/serpardr.c: Ditto.
6083         * rdi-share/unixcomm.c: Ditto.
6084         * rdi-share/serdrv.c: Ditto.
6085         * rdi-share/hostchan.h: Ditto.
6086         * rdi-share/hostchan.c: Ditto.
6087         * rdi-share/host.h: Ditto.
6088         * rdi-share/devsw.c: Ditto.
6089
6090         * objfiles.h: Change type of obj_private to void pointer.
6091         * pa64solib.c: Update copyright.  Don't include "assert.h", use
6092         strcmp instead of STREQ, use LONGEST, do not use PTR
6093         * somsolib.c: Ditto.
6094
6095         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6096         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6097         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6098
6099 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6100
6101         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6102         (default_get_saved_register): Delete function.
6103         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6104         generic_unwind_get_saved_register.
6105         * gdbarch.h, gdbarch.c: Re-generate.
6106         
6107 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6108
6109         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6110         generic_func_frame_chain_valid.
6111         * gdbarch.h, gdbarch.c: Re-generate.
6112         * blockframe.c (generic_func_frame_chain_valid): Only check
6113         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
6114         passing FP to PC_IN_CALL_DUMMY.
6115         Fix PR gdb/360.
6116
6117 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6118
6119         * gdbarch.sh (struct gdbarch_data): Add field init_p.
6120         (register_gdbarch_data): Initialize init_p.
6121         (gdbarch_data): Initialize data pointer using the init function.
6122         (init_gdbarch_data): Delete function.
6123         (gdbarch_update_p): Update.
6124         (initialize_non_multiarch): Update.
6125         (struct gdbarch): Add field initialized_p.
6126         * gdbarch.h, gdbarch.c: Re-generate.
6127
6128 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
6129
6130         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6131         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6132         better do the things actually here.
6133         * x86-64-tdep.c (x86_64_register_name2nr): New.
6134         (x86_64_register_name): Renamed to x86_64_register_nr2name.
6135         (x86_64_gdbarch_init): Respect the above change.
6136         * x86-64-tdep.h (x86_64_register_name2nr)
6137         (x86_64_register_nr2name): Add prototypes.
6138         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6139
6140 2002-06-06  Michael Snyder  <msnyder@redhat.com>
6141
6142         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6143         Delete extra braces and re-indent.
6144         (d10v_store_return_value): Char return values
6145         must be shifted over by one byte in R0.
6146         (d10v_extract_return_value): Delete extra braces, re-indent.
6147
6148 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6149
6150         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6151         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6152         (d10v_integer_to_address): Rewrite.
6153         (d10v_frame_init_saved_regs): When reading fp and sp registers use
6154         the d10v specific functions which take care of converting to the
6155         correct space.
6156
6157 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6158
6159         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6160         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6161
6162 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6163
6164         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6165         includes.
6166         * config/tm-linux.h: Ditto.
6167         * config/alpha/tm-alphalinux.h: Ditto.
6168         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6169         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6170         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6171         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6172         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6173         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6174         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6175         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6176         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6177         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6178         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6179         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6180         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6181         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6182         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6183         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6184         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6185         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6186         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6187         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6188         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6189         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6190         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6191         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6192         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6193         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6194         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6195         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6196         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6197         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6198         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6199         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6200         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6201         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6202         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6203         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6204         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6205
6206 2002-05-04  Aidan Skinner <aidan@velvet.net>
6207
6208         * ada-exp.tab.c: New file
6209         * ada-exp.y: New file
6210         * ada-lang.c: New file
6211         * ada-lang.h: New file
6212         * ada-lex.c: New file
6213         * ada-lex.l: New file
6214         * ada-tasks.c: New file
6215         * ada-typeprint.c: New file
6216         * ada-valprint.c: New file
6217         
6218 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6219
6220         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6221         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6222
6223 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6224
6225         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6226         insetead of ppc-linux-tdep.o.
6227         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6228         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6229
6230 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6231
6232         2002-05-07 Christian Groessler <chris@groessler.org>
6233         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6234         bit register contents for little endian hosts.
6235
6236 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6237
6238         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6239         any maintainer.
6240
6241 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6242
6243         * gdbarch.h: Regenerate.
6244
6245 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6246
6247         * MAINTAINERS: Add everyone to write-after-approval list.
6248
6249 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6250
6251         * stack.c (frame_info): Use frame_register_unwind instead of
6252         saved_regs.  Mention when the SP is on the stack or in a register.
6253
6254         * frame.h (frame_register_unwind_ftype): Define.  Document.
6255         (struct frame_info): Add field register_unwind and
6256         register_unwind_cache.
6257         (frame_register_unwind): Declare.
6258         (generic_unwind_get_saved_register): Declare.
6259
6260         * frame.c (frame_register_unwind): New function.
6261         (generic_unwind_get_saved_register): New function.
6262
6263         * blockframe.c (generic_call_dummy_register_unwind): New function.
6264         (frame_saved_regs_register_unwind): New function.
6265         (set_unwind_by_pc): New function.
6266         (create_new_frame): New function.
6267         (get_prev_frame): New function.
6268
6269 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
6270
6271         * a29k-share/: Delete directory.
6272         * remote-vx29k.c: Delete file.
6273
6274 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6275
6276         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6277         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6278
6279 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6280
6281         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6282         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6283         (sparc64nbsd-nat.o)
6284         (sparcnbsd-nat.o)
6285         (sparcnbsd-tdep.o): New dependency lists.
6286         * NEWS: Note new UltraSPARC NetBSD native configuration.
6287         * configure.host (sparc64-*-netbsd*): New host.
6288         * configure.tgt (sparc-*-netbsdelf*)
6289         (sparc-*-netbsd*): Set gdb_target to nbsd.
6290         (sparc64-*-netbsd*): New target.
6291         * sparc64nbsd-nat.c: New file.
6292         * sparcnbsd-nat.c: New file.
6293         * sparcnbsd-tdep.c: New file.
6294         * sparcnbsd-tdep.h: New file.
6295         * config/sparc/nbsd.mt: New file.
6296         * config/sparc/nbsd64.mh: New file.
6297         * config/sparc/nbsd64.mt: New file.
6298         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6299         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6300         (HOST_IPC): Remove.
6301         * config/sparc/nbsdaout.mt: Remove.
6302         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6303         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6304         (HOST_IPC): Remove.
6305         * config/sparc/nbsdelf.mt: Remove.
6306         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
6307         sparc-nat.c compatiblity defines.
6308         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
6309         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6310         * config/sparc/tm-nbsd64.h: New file.
6311         * config/sparc/tm-nbsdaout.h: Remove.
6312         * config/sparc/xm-nbsd.h: Remove.
6313
6314 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6315
6316         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6317         * sparc-tdep.c: Include osabi.h.
6318         (gdbarch_tdep): Add osabi member.
6319         (_initialize_sparc_tdep): Use gdbarch_register.
6320         (sparc_gdbarch_init): Use generic OS ABI framework.
6321         (sparc_dump_tdep): New function.
6322
6323 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
6324
6325         * corefile.c (do_captured_read_memory_integer): Return non-zero
6326         result.
6327         (safe_read_memory_integer): Copy result of memory read when
6328         status is non-zero.  Also, add comments.
6329
6330 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
6331
6332         * Makefile.in (ppc_tdep_h): Define.
6333         (ppc-linux-nat.o)
6334         (ppc-linux-tdep.o)
6335         (rs6000-tdep.o): Use $(ppc_tdep_h).
6336         (ppc-sysv-tdep.o)
6337         (ppcnbsd-nat.o)
6338         (ppcnbsd-tdep.o): New dependency lists.
6339         * ppc-tdep.h: Use generic OS ABI framework.
6340         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6341         (ppc_linux_init_abi): New functions.
6342         (ppc_sysv_abi_broken_use_struct_convention)
6343         (ppc_sysv_abi_use_struct_convention)
6344         (ppc_sysv_abi_push_arguments): Move to...
6345         * ppc-sysv-tdep.c: ...here.
6346         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6347         * rs6000-tdep.c (process_note_abi_tag_sections)
6348         (get_elfosabi): Remove.
6349         (rs6000_gdbarch_init): Use generic OS ABI framework.
6350         (rs6000_dump_tdep): New function.
6351         (_initialize_rs6000_tdep): Use gdbarch_register.
6352         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6353         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6354         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6355         of ppc-linux-tdep.o.
6356         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6357         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6358         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6359         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6360         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6361         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6362
6363 2002-05-29  Jim Blandy  <jimb@redhat.com>
6364
6365         * macroscope.c (default_macro_scope): Put `void' in empty argument
6366         list.
6367
6368 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6369
6370         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6371         * arch-utils.c: Include "sim-regno.h".
6372         * gdbarch.sh: Don't include "sim-regno.h".
6373         * gdbarch.h, gdbarch.c: Regenerate.
6374         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6375         here.
6376         * arch-utils.h (legacy_register_sim_regno): To here.
6377         * remote-sim.c (legacy_register_sim_regno): Move function from
6378         here.
6379         * arch-utils.c (legacy_register_sim_regno): To here.
6380
6381 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6382
6383         * sim-regno.h: New file.
6384         * Makefile.in (sim_regno_h): Define.
6385         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6386         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6387         (legacy_register_sim_regno): New function.
6388         (one2one_register_sim_regno): New function.
6389         (gdbsim_fetch_register): Rewrite.
6390         (gdbsim_store_register): Only store a register when
6391         REGISTER_SIM_REGNO is valid.
6392         * d10v-tdep.c: Include "sim-regno.h".
6393         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6394         (d10v_ts3_register_sim_regno): Ditto.
6395         * gdbarch.sh: Include "sim-regno.h".
6396         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6397         * gdbarch.h, gdbarch.c: Regenerate.
6398         * arch-utils.h (default_register_sim_regno): Delete declaration.
6399         * arch-utils.c (default_register_sim_regno): Delete function.
6400
6401 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6402
6403         * ppcnbsd-nat.c: Rewrite.
6404         * ppcnbsd-tdep.c: New file.
6405         * ppcnbsd-tdep.h: New file.
6406         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6407         solib.o, and solib-svr4.o.
6408         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6409         nbsd-tdep.o, and corelow.o.
6410
6411 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6412
6413         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6414         `tr' and `sed'.  Mention that `broken' targets are not expected to
6415         build.
6416
6417 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6418
6419         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6420         Let PC point right after the prologue before looking up symbols.
6421         
6422 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6423
6424         * i386-tdep.c (i386_register_virtual_type): Return 
6425         builtin_type_vec128i for SSE registers.
6426
6427         * gdbtypes.h (builtin_type_vec128i): Declare.
6428
6429         * gdbtypes.c (build_builtin_type_vec128i): New function.
6430         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6431         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6432         (build_gdbtypes): Initialize new builtin vector types.
6433         (_initialize_gdbtypes): Register new vector types with gdbarch.
6434
6435 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6436
6437         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6438         since it has been multi-arch'd.
6439         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6440         Move Alpha and VAX multi-arch news entries to same section
6441         as other multi-arch news.
6442
6443 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6444
6445         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6446         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6447         static.  Rename some register numbers to put them in ns32k-tdep
6448         private namespace.
6449         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6450         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6451         functions.
6452         (_initialize_ns32k_tdep): Use gdbarch_register.
6453         * ns32k-tdep.h: New file.
6454         * ns32knbsd-tdep.c: New file.
6455         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6456         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6457         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6458         REGISTER_BYTES, REGISTER_BYTE): Remove.
6459         * config/ns32k/tm-ns32k.h: New file.
6460         * config/ns32k/tm-umax.h: Remove.
6461
6462 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6463
6464         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6465         ns32k_store_struct_return, ns32k_extract_return_value,
6466         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6467         functions.
6468         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6469         ns32k_saved_pc_after_call.
6470         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6471         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6472         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6473         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6474         ns32k_extract_struct_value_address.
6475
6476 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6477
6478         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6479         ns32k_fix_call_dummy): New.
6480         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6481         ns32k_call_dummy_words.
6482         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6483         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6484         CALL_DUMMY_NARGS): Remove.
6485         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6486
6487 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6488
6489         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6490         ns32k_frame_saved_pc, ns32k_frame_args_address,
6491         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6492         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6493         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6494         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6495         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6496         (BREAKPOINT): Remove..
6497         (FRAME_CHAIN): Define as ns32k_frame_chain.
6498         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6499         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6500         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6501         (FRAME_FIND_SAVED_REGS): Remove.
6502         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6503         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6504         (POP_FRAME): Define as ns32k_pop_frame.
6505
6506 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6507
6508         * ns32k-tdep.c (ns32k_register_byte_32082,
6509         ns32k_register_byte_32382, ns32k_register_raw_size,
6510         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6511         functions.
6512         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6513         ns32k_register_byte_32382.
6514         * config/ns32k/tm-umax.h: Update copyright years.
6515         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6516         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6517         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6518         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6519         (ns32k_get_enter_addr): Fix prototype.
6520
6521 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6522
6523         * ns32k-tdep.c: Update copyright years.
6524         (ns32k_register_name_32082): New function.
6525         (ns32k_register_name_32382): Ditto.
6526         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6527         (REGISTER_NAME): Define as ns32k_register_name_32382.
6528         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6529         (REGISTER_NAME): Define as ns32k_register_name_32082.
6530
6531 2002-05-24  Jim Blandy  <jimb@redhat.com>
6532
6533         * dwarf2read.c (free_line_header): Use xfree, not free.
6534
6535 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6536
6537         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6538         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6539
6540 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6541
6542         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6543
6544 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6545
6546         From Ross Alexander at NEC Europe:
6547         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6548
6549 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6550
6551         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6552         for input, rather than parse_and_eval_address.  
6553
6554 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6555
6556         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6557         * Makefile.in (sim_d10v_h): Update definition.
6558
6559 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6560
6561         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6562         change `2002-05-22 Michael Snyder' below.
6563         (d10v_push_arguments): Ditto.
6564         (d10v_extract_return_value): Ditto.
6565
6566 2002-05-23  Jim Blandy  <jimb@redhat.com>
6567
6568         * macrotab.c (check_for_redefinition): Don't complain if the new
6569         definition is the same as the previous one.  Take more arguments
6570         to allow the comparison.
6571         (macro_define_object, macro_define_function): Pass more arguments
6572         to check_for_redefinition.
6573
6574 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6575
6576         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6577         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6578         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6579         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6580         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6581         Add a temp variable to save a call (and a memory read).
6582         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6583         if possible (so that PC_IN_CALL_DUMMY will work).
6584
6585 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6586
6587         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6588
6589 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6590
6591         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6592         fde->cie_ptr.
6593         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6594         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6595         so that frames of shared libraries are mapped correctly.
6596         (execute_stack_op): Change type of 'result' from ULONGEST to
6597         CORE_ADDR.
6598         
6599 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6600
6601         * config/alpha/tm-nbsd.h: Include solib.h.
6602
6603 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6604
6605         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6606         assumptions about the host's byte order.
6607
6608 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6609
6610         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6611         to dependency list.
6612         * alphanbsd-tdep.c: Include solib-svr4.h.
6613         * shnbsd-tdep.c: Ditto.
6614
6615 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6616
6617         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6618         nbsd-tdep.h to dependency list.
6619         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6620         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6621         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6622         nbsdaout.mh and nbsdelf.mh consistently.
6623         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6624         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6625         nbsdaout.mt and nbsdelf.mh consistently.
6626         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6627         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6628         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6629         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6630         a.out shared library stuff from here...
6631         * config/nm-nbsdaout.h: ...to here.
6632         * config/tm-nbsd.h: Remove.
6633         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6634         * config/arm/nbsd.mh: Remove.
6635         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6636         nbsd-tdep.o.
6637         * config/arm/nbsdaout.mh: New file. 
6638         * config/arm/nbsdelf.mh: New file.
6639         * config/arm/nm-nbsdaout.h: New file.
6640         * config/i386/nbsd.mh: Remove.
6641         * config/i386/nbsd.mt: Remove.
6642         * config/i386/nbsdaout.mh: New file.
6643         * config/i386/nbsdaout.mt: New file.
6644         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6645         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6646         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6647         i386_register_u_addr): Remove.
6648         * config/i386/nm-nbsdaout.h: New file.
6649         * config/i386/nm-nbsdelf.h: Remove.
6650         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6651         (USE_STRUCT_CONVENTION): Remove.
6652         * config/i386/tm-nbsdaout.h: New file.
6653         * config/i386/tm-nbsdelf.h: Remove.
6654         * config/m68k/nbsd.mh: Remove.
6655         * config/m68k/nbsd.mt: Remove.
6656         * config/m68k/nbsdaout.mh: New file.
6657         * config/m68k/nbsdaout.mt: New file. 
6658         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6659         * config/m68k/nm-nbsdaout.h: New file.
6660         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6661         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6662         * config/ns32k/nbsd.mh: Remove.
6663         * config/ns32k/nbsd.mt: Remove. 
6664         * config/ns32k/nbsdaout.mh: New file.
6665         * config/ns32k/nbsdaout.mt: New file.
6666         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6667         * config/ns32k/nm-nbsdaout.h: New file.
6668         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6669         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6670         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6671         (SVR4_SHARED_LIBS): Remove.
6672         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6673         * config/sparc/nbsd.mh: Remove.
6674         * config/sparc/nbsd.mt: Remove.
6675         * config/sparc/nbsdaout.mh: New file.
6676         * config/sparc/nbsdaout.mt: New file.
6677         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6678         * config/sparc/nbsdelf.mt: New file.
6679         * config/sparc/nm-nbsdaout.h: New file.   
6680         * config/sparc/nm-nbsdelf.h: Remove.
6681         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6682         * config/sparc/tm-nbsdaout.h: New file.
6683
6684 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6685
6686         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6687         mipsnbsd-tdep.c
6688         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6689
6690 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6691
6692         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6693         shnbsd-nat.c.
6694         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6695
6696 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6697
6698         * NEWS: Note new MIPS NetBSD native configuration. 
6699         * configure.host (mips*-*-netbsd*): New host. 
6700         * configure.tgt (mips*-*-netbsd*): New target. 
6701         * mipsnbsd-nat.c: New file.
6702         * mipsnbsd-tdep.c: New file.
6703         * mipsnbsd-tdep.h: New file.
6704         * config/mips/nbsd.mh: New file.
6705         * config/mips/nbsd.mt: New file.
6706         * config/mips/nm-nbsd.h: New file.
6707         * config/mips/tm-nbsd.h: New file.
6708
6709 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6710
6711         * Makefile.in (SFILES): Add osabi.c.
6712         (COMMON_OBS): Add osabi.o.
6713         (osabi.o): New dependency list.
6714         * osabi.c: New file.
6715         * osabi.h: New file.
6716         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6717
6718         * Makefile.in (alpha_tdep_h): Define and use instead of
6719         alpha-tdep.h.
6720         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6721         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6722         Remove.
6723         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6724         * alpha-tdep.h: Include osabi.h.
6725         (alpha_abi): Remove.
6726         (gdbarch_tdep): Use generic OS ABI framework.
6727         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6728         gdbarch_register_osabi.
6729         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6730         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6731         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6732
6733         * Makefile.in (sh_tdep_h): Add osabi.h.
6734         * sh-tdep.h (sh_osabi): Remove.
6735         (gdbarch_tdep): Use generic OS ABI framework.
6736         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6737         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6738         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6739         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6740
6741         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6742         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6743         gdbarch_register_osabi.
6744         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6745         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6746         (get_elfosabi): Rename to...
6747         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6748         ABI framework support routines.
6749         (arm_gdbarch_init): Use generic OS ABI framework.
6750         (arm_dump_tdep): Likewise.
6751         (_initialize_arm_tdep): Likewise.
6752         * arm-tdep.h: Include osabi.h.
6753         (arm_abi): Remove.
6754         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6755         osabi member.
6756         (arm_gdbarch_register_os_abi): Remove prototype.
6757         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6758         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6759
6760         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6761         * mips-tdep.c: Include osabi.h.
6762         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6763         OS ABI framework.
6764
6765 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6766
6767         * h8300-tdep.c: Fix formatting.
6768
6769 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6770
6771         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6772         printing vector registers.
6773
6774 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6775
6776         From Fernando Nasser:
6777         * remote.c (remote_async_open_1): Re-throw the exception when the
6778         connection fails.
6779         (remote_cisco_open): Ditto.
6780         (remote_open_1): Ditto.
6781
6782 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6783
6784         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6785         (remote_start_remote): Add uiout parameter.  Pass through to
6786         remote_start_remote_dummy.
6787         (remote_open_1): Use catch_exception instead of catch_errors.
6788         (remote_async_open_1): Ditto.
6789         (remote_cisco_open): Ditto.
6790
6791 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6792
6793         * remote.c (remote_start_remote): Replace PTR with void pointer.
6794         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6795         static.
6796
6797 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6798
6799         * gdb_indent.sh: Allow the script to be run in the sim directory.
6800
6801 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6802
6803         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6804         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6805
6806         * corelow.c (core_open): Only call set_gdbarch_from_file if
6807         exec_bfd is NULL.
6808
6809 2002-05-17  Andrey Volkov <avolkov@transas.com>
6810
6811         * h8300-tdep.c: Add support of EXR register
6812         * config/h8300/tm-h8300.h: Ditto. 
6813         
6814 2002-05-17  Andrey Volkov <avolkov@transas.com>
6815
6816         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6817         
6818 2002-05-17  Andrey Volkov <avolkov@transas.com>
6819
6820         * h8300-tdep.c: Change literal regnums to REGNO.
6821         
6822 2002-05-17  Jim Blandy  <jimb@redhat.com>
6823
6824         * NEWS: Note addition of macro support.
6825
6826         Expand preprocessor macros in C expressions.
6827         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6828         (scan_macro_expansion, scanning_macro_expansion,
6829         finished_macro_expansion): New function declarations.
6830         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6831         variable declarations.
6832         * parser-defs.h (expression_context_pc): New declaration.
6833         * parse.c (expression_context_pc): New variable.
6834         (parse_exp_1): Set expression_context_pc, as well as
6835         expression_context_block.
6836         * c-exp.y (yylex): If we're not already reading the result of a
6837         macro expansion, try to macro-expand the next token.  When we're
6838         done scanning a macro expansion, switch back to the mainline text.
6839         Commas and `if's in a macro's expansion don't terminate the input.
6840         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6841         (macro_original_text, macro_expanded_text,
6842         expression_macro_lookup_func, expression_macro_lookup_baton): New
6843         variables.
6844         (scan_macro_expansion, scanning_macro_expansion,
6845         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6846         c_preprocess_and_parse): New functions.
6847         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6848         c_preprocess_and_parse, instead of c_parse.
6849         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6850         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6851
6852 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
6853
6854         * sh-tdep.c (gdb_print_insn_sh64): Delete.
6855         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6856         (sh_gdbarch_init): Always use gdb_print_insn_sh.
6857
6858 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
6859
6860         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
6861
6862 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6863
6864         * Makefile.in (sh_tdep_h): Define and use.
6865         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6866         register enum): Move to...
6867         * * sh-tdep.h: ...here.
6868         * sh-tdep.c: Include sh-tdep.h.
6869         * sh3-rom.c: Likewise.
6870         * shnbsd-tdep.c: Likewise.
6871
6872 2002-05-16  Michael Snyder  <msnyder@redhat.com>
6873
6874         * arm-tdep.c: Spelling fix in comment.
6875
6876 2002-05-16  Jim Blandy  <jimb@redhat.com>
6877
6878         Add commands for manually expanding macros and showing their
6879         definitions.
6880         * macrocmd.c, macroscope.c, macroscope.h: New files.
6881         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6882         (macroscope_h): New variable.
6883         (HFILES_NO_SRCDIR): Add macroscope.h.
6884         (COMMON_OBS): Add macrocmd.o, macroscope.o.
6885         (macroscope.o, macrocmd.o): New rules.
6886
6887         Teach the Dwarf 2 reader to read macro information.
6888         * dwarf2read.c: #include "macrotab.h".
6889         (dwarf_macinfo_buffer): New variable.
6890         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6891         dwarf_macinfo_size.
6892         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6893         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6894         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6895         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6896         dwarf2_macro_spaces_in_definition): New complaints.
6897         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6898         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6899         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6900         the partial symbol table.
6901         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6902         from what's recorded in the partial symbol table.
6903         (read_file_scope): If the compilation unit has a
6904         `DW_AT_macro_info' attribute, read its macro information.
6905         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6906
6907 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
6908
6909         Fix PR gdb/546
6910         * ser-tcp.c: Don't include <netinet/udp.h>.
6911
6912 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
6913
6914         * MAINTAINERS: Update my email address.
6915
6916 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
6917
6918         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6919         include file of the same name.
6920
6921 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6922
6923         * configure.tgt: Mark v850 as multi-arched.
6924         * config/v850/tm-v850.h: Remove file.
6925         * config/v850/v850.mt: Eliminate TM_FILE.
6926
6927 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6928
6929         * v850-tdep.c: Full multi-arch.
6930         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6931         Define GDB_MULTI_ARCH to 2.
6932
6933 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6934
6935         * p-exp.y (current_type): New static variable.
6936         Carries the type of the expression at the position that is parsed.
6937         (push_current_type, pop_current_type): Two new functions. Used
6938         to store/restore current_type in expression on specific tokens.
6939         (search_field): New static variable. Set to one after parsing a point
6940         as at that point only a FIELDNAME token should be searched.
6941         (FIELDNAME): New token. After a point only a token belonging to 
6942         current_type type definition is allowed.
6943         (all over token rules): reset and change current_type according
6944         to rules.
6945         (exp '[' rule): insert implicit array index field if
6946         exp is a pascal string type.
6947
6948 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6949
6950         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
6951         frame info.  Use frame_info's saved_regs instead of matching member
6952         in extra_frame_info throughout.
6953         (v850_frame_init_saved_regs): New function.
6954         (v850_init_extra_frame_info): Move most functionality into
6955         v850_frame_init_saved_regs().
6956         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6957         (v850_frame_find_saved_regs): Remove declaration.
6958         (FRAME_FIND_SAVED_REGS): Remove definition.
6959         (v850_frame_init_saved_regs): Add declaration.
6960         (FRAME_INIT_SAVED_REGS): Add definition.
6961
6962 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6963
6964         * v850-tdep.c: Begin multi-arch'ing v850.
6965         (v850_target_architecture_hook): Remove function.
6966         (v850_gdbarch_init): New function.  Add code previously in
6967         v850_target_architecture_hook().
6968         (_initialize_v850_tdep): Don't  set target_architecture_hook.
6969         Call register_gdbarch_init() instead.
6970
6971 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
6972
6973         * gdbtypes.h (struct cplus_struct_type): Remove args field.
6974         * hpread.c (hpread_read_struct_type): Remove assignments to args.
6975         (fixup_class_method_type): Likewise.
6976
6977 2002-05-15  Jim Blandy  <jimb@redhat.com>
6978
6979         Add macro structures to GDB's symbol tables.  Nobody puts anything
6980         in them yet.
6981         * symtab.h (struct symtab): New member: `macro_table'.
6982         * buildsym.h (pending_macros): New global variable.
6983         * buildsym.c: #include "macrotab.h".
6984         (buildsym_init): Initialize `pending_macros'.
6985         (end_symtab): If we found macro information while reading a CU's
6986         debugging info, do build a symtab structure for it.  Make the
6987         symtab point to the macro information, and clear the
6988         `pending_macros' pointer which held it while we were reading the
6989         debug info.
6990         (really_free_pendings): Free any pending macro table.
6991         * objfiles.h (struct objfile): New member: `macro_cache'.
6992         * objfiles.c (allocate_objfile): Set allocate and free functions
6993         for the macro cache's objstack.
6994         (free_objfile): Empty the macro cache's obstack.
6995         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6996         set new allocate and free functions for it.
6997         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6998         free functions for the macro cache's objstack.  (Why is this
6999         function building its own objfile?)
7000         * symmisc.c (print_objfile_statistics): Print statistics on the
7001         macro bcache.
7002         * Makefile.in: Note that buildsym.o depends on macrotab.h.
7003
7004 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7005
7006         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7007         (REGISTER_U_ADDR): Delete definition.
7008         (arm_register_u_addr): Delete declaration.
7009
7010 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7011
7012         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7013         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7014
7015 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
7016
7017         * regcache.c (register_valid): Revise comments refering to "Not
7018         available" and "unavailable".
7019         * frame.c (frame_register_read): Ditto.
7020         * findvar.c (value_of_register): Ditto.
7021
7022 2002-05-15  Andrew Cagney  <cagney@redhat.com>
7023
7024         * Makefile.in (remote_sim_h): Replace remote-sim_h.
7025         (remote-sim.o): Update dependencies.
7026         (d10v-tdep.o): Specify dependencies.
7027         (sim_d10v_h): Define.
7028
7029 2002-05-14  Jim Blandy  <jimb@redhat.com>
7030
7031         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7032         * macrotab.c (macro_lookup_inclusion, find_definition,
7033         new_macro_table): Same.
7034         
7035         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7036         not `! strcmp ()'.  This is a dubious improvement.
7037         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7038
7039         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7040         although it's not necessary, to avoid a warning.
7041
7042 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7043
7044         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7045         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7046         TYPE_INSTANCE_FLAGS.
7047         (struct main_type): New.
7048         (struct type): Move most members to struct main_type.  Change
7049         cv_type and as_type to new type_chain member.  Add instance_flags.
7050         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7051         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7052         (finish_cv_type): Remove prototype.
7053         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
7054         Set TYPE_CHAIN.
7055         (alloc_type_instance): New function.
7056         (smash_type): New function.
7057         (make_pointer_type, make_reference_type, make_function_type)
7058         (smash_to_member_type, smash_to_method_type): Call smash_type.
7059         (make_qualified_type): New function.
7060         (make_type_with_address_space): Call make_qualified_type.
7061         (make_cv_type): Likewise.
7062         (finish_cv_type): Remove unnecessary function.
7063         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
7064         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7065         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7066         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7067         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7068         * hpread.c (hpread_read_struct_type): Likewise.
7069         * stabsread.c (read_struct_type): Likewise.
7070
7071 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
7072
7073         * configure.tgt: Add a catch all sh* target, for cases like
7074         sh[2,3,4]-elf and sh-hms.
7075
7076 2002-05-14  Keith Seitz  <keiths@redhat.com>
7077
7078         * event-loop.c (create_file_handler): Don't do anything but
7079         update data when we are given a fd which we are already
7080         monitoring.
7081
7082 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
7083
7084         * dwarf2cfi.c (context_cpy): Copy registers correctly.
7085         (update_context): Use __func__ in warnings.
7086         
7087 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7088
7089         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
7090         and tcp_close to net_open and net_close.
7091         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
7092         using UDP if requested.  Don't try to disable Nagle on UDP
7093         sockets.
7094         * remote.c (remote_serial_open): New function.  Warn about UDP.
7095         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7096
7097 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7098
7099         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7100
7101 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7102
7103         * configure.tgt: Remove sh-hms target.
7104         * MAINTAINERS: Don't list sh-hms as a separate target.
7105
7106 2002-05-13  Jim Blandy  <jimb@redhat.com>
7107
7108         Add first preprocessor macro-expansion files.
7109         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7110         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7111         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7112         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7113         (COMMON_OBS): Add macrotab.o, macroexp.o.
7114         (macroexp.o, macrotab.o): New rules.
7115
7116 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
7117
7118         * config/m88k/tm-m88k.h: Update copyright.
7119         (m88k_target_write_pc): Declare
7120         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7121         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7122         (SHIFT_INST_REGS): Update definition.
7123         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
7124         using old definition of TARGET_WRITE_PC.
7125         * regcache.c (generic_target_write_pc): Delete code handling
7126         NNPC_REGNUM.
7127         * gdbarch.sh (NNPC_REGNUM): Delete.
7128         * gdbarch.h, gdbarch.c: Regenerate.
7129
7130 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
7131
7132         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7133         builtin reg number.
7134
7135 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
7136
7137         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7138         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7139         (gen_address_of, gen_struct_ref, gen_repeat): Use type
7140         access macros.
7141         * c-typeprint.c (cp_type_print_method_args): Likewise.
7142         (c_type_print_args): Likewise.
7143         * d10v-tdep.c (d10v_push_arguments): Likewise.
7144         (d10v_extract_return_value): Likewise.
7145         * expprint.c (print_subexp): Likewise.
7146         * gdbtypes.c (lookup_primitive_typename): Likewise.
7147         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7148         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7149         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7150         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7151         (TYPE_VECTOR): Likewise.
7152         * hpread.c (hpread_read_struct_type)
7153         (fix_static_member_physnames, fixup_class_method_type)
7154         (hpread_type_lookup): Likewise.
7155         * mdebugread.c (parse_symbol, parse_type): Likewise.
7156         * p-lang.c (is_pascal_string_type): Likewise.
7157         * valops.c (hand_function_call): Likewise.
7158         * x86-64-tdep.c (classify_argument): Likewise.
7159
7160         * hpread.c (hpread_read_function_type)
7161         (hpread_read_doc_function_type): Call replace_type.
7162         * dstread.c (create_new_type): Delete.
7163         (decode_dst_structure, process_dst_function): Call alloc_type.
7164         Use type access macros.
7165
7166 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7167
7168         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7169         the're not supported by the current architecture.
7170         (i387_fill_fxsave): Likewise.
7171
7172 2002-05-12  Fred Fish  <fnf@redhat.com>
7173
7174         * symfile.c (default_symfile_offsets): Arrange for uninitialized
7175         sect_index_xxx members to index the first slot in section_offsets
7176         if all of the section_offsets are zero.
7177
7178 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7179
7180         * configure.tgt (sparc-*openbsd): Remove entry accidentially
7181         checked in with last change.
7182
7183 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7184
7185         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7186         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
7187         config.sub.
7188
7189 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
7190
7191         * Makefile.in: Update dependencies.
7192
7193 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7194
7195         * language.c (local_hex_string_custom): Simplify.  Do not depend
7196         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7197
7198         * memattr.c (mem_info_command): Replace calls to
7199         longest_local_hex_string and longest_local_hex_string_custom.
7200         * buildsym.c (make_blockvector): Ditto.
7201         * solib.c (info_sharedlibrary_command): Ditto.
7202         * tracepoint.c (tracepoints_info): Ditto.
7203         * symtab.c (print_msymbol_info): Ditto.
7204
7205         * language.c (local_hex_string): Delete.
7206         (local_hex_string_custom): Delete.
7207         (longest_local_hex_string): Rename to local_hex_string.
7208         (longest_local_hex_string_custom): Rename to
7209         local_hex_string_custom.
7210         * language.h (local_hex_string): Change parameter type to LONGEST.
7211         (local_hex_string_custom): Ditto.
7212         (longest_local_hex_string): Delete declaration.
7213         (longest_local_hex_string_custom): Ditto.
7214
7215         * solib.c: Update copyright.
7216         * memattr.c: Update copyright.
7217         
7218 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7219
7220         * arch-utils.h (legacy_register_to_value): Declare.
7221         (legacy_value_to_register): Declare.
7222         (legacy_convert_register_p): Declare.
7223         * arch-utils.c (legacy_register_to_value): New function.
7224         (legacy_value_to_register): New function.
7225         (legacy_convert_register_p): New function.
7226
7227         * gdbarch.sh (REGISTER_TO_VALUE): Define.
7228         (VALUE_TO_REGISTER): Define.
7229         (CONVERT_REGISTER_P): Define.
7230         * gdbarch.h, gdbarch.c: Regenerate.
7231
7232         * valops.c (value_assign): Use CONVERT_REGISTER_P and
7233         VALUE_TO_REGISTER.
7234         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7235         CONVERT_REGISTER_P.
7236
7237 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
7238             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7239
7240         * Makefile.in: Update dependencies for valops.c.
7241         * valops.c: Include "gdb_assert.h".
7242         (typecmp): Skip THIS parameter to methods.
7243         (find_method_list): Remove static_memfuncp argument,
7244         update callers.  Check for stub methods.
7245         (find_value_oload_method_list): Don't set *static_memfuncp.
7246         (find_overload_match): Don't check for stub methods.  Assert
7247         that methods are not stubbed.  Handle static methods.
7248         (value_find_oload_method_list): Remove static_memfuncp argument.
7249         * gdbtypes.c (check_stub_method): Do not add THIS pointer
7250         to the argument list for static stub methods.
7251         * value.h (value_find_oload_method_list): Update prototype.
7252
7253 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7254
7255         * arch-utils.h (generic_register_size): Declare.
7256         (generic_register_raw_size, generic_register_virtual_size): Delete
7257         declarations.
7258         * arch-utils.c (generic_register_raw_size): Delete.
7259         (generic_register_size): New function.
7260         (generic_register_virtual_size): Delete.
7261
7262         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7263         default generic_register_size.
7264         * gdbarch.h, gdbarch.c: Re-generate.
7265         
7266         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7267         register_virtual_size.
7268         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7269         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7270
7271 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7272
7273         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7274         * gdbarch.h, gdbarch.c: Regenerate.
7275         * gnu-v3-abi.c: Update copyright.
7276         (vtable_address_point_offset): Update.
7277         (gnuv3_rtti_type): Update.
7278         (gnuv3_baseclass_offset): Update.
7279         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7280         (init_fetch_link_map_offsets): Update.
7281         * remote.c (get_remote_state): Update.
7282         
7283 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
7284
7285         * TODO: Remove value_headof/value_from_vtable_info comment.
7286         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7287         * values.c (value_headof, value_from_vtable_info): Delete.
7288         * value.h (value_from_vtable_info): Delete prototype.
7289
7290 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7291
7292         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7293         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7294         $(gdb_regex_h).
7295         (gdb_assert_h): Define.
7296         (gdb_wait_h): Define.
7297         (gdb_regex_h): Define.
7298
7299 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
7300
7301         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7302         * linespec.c (find_methods): Handle GCC 3.x template constructors.
7303
7304 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7305
7306         * nbsd-tdep.c: Fix comment.
7307
7308 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7309
7310         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7311         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7312         (nbsd-tdep.o): New dependency list.
7313         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
7314         nbsd-tdep.h.
7315         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7316         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7317         * nbsd-tdep.c: New file.
7318         * nbsd-tdep.h: New file.
7319         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
7320         nbsd-tdep.h.
7321         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7322         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7323         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7324         * config/sh/nbsd.mt (TDEPFILES): Ditto.
7325
7326 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7327
7328         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7329         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7330         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7331         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7332         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7333         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7334
7335 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7336
7337         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7338         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7339         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7340         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7341         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7342         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7343         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7344
7345 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7346
7347         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
7348         fetch_elfcore_registers to...
7349         * i386nbsd-tdep.c: ...here.
7350         (i386nbsd_use_struct_convention): Rename to...
7351         (i386nbsd_aout_use_struct_convention): ...this.
7352         (i386nbsd_supply_reg): New function.
7353         (i386nbsd_fill_reg): New function.
7354         (fetch_core_registers): Use i386nbsd_supply_reg.
7355         (fetch_elfcore_registers): Likewise.
7356         (_initialize_i386nbsd_tdep): New function.
7357         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7358         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7359         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7360         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7361         (i386nbsd_aout_use_struct_convention): ...this.
7362
7363 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7364
7365         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7366         (store_inferior_registers): Use shnbsd_fill_reg.
7367         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7368         sh_nbsd_supply_register): Collapse into...
7369         (shnbsd_supply_reg): ...this.
7370         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7371         (shnbsd_fill_reg): ...this.
7372         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7373         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7374         (fetch_core_registers): Use shnbsd_supply_reg.
7375         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7376         (sh_nbsd_core_fns): Rename to...
7377         (shnbsd_core_fns): ...this.
7378         (sh_nbsd_elfcore_fns): Rename to...
7379         (shnbsd_elfcore_fns): ...this.
7380         (sh_nbsd_init_abi): Rename to...
7381         (shnbsd_init_abi): ...this.
7382         (_initialize_sh_nbsd_tdep): Rename to...
7383         (_initialize_shnbsd_tdep): ...this.
7384         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7385         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7386         sh_nbsd_fill_register): Remove prototypes.
7387         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7388
7389 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7390
7391         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7392         (i387-nat.o): Delete dependency list.
7393         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7394         (x86-64-linux-nat.o): Likewise.
7395         * i387-nat.c: Delete file, moving contents to...
7396         * i387-tdep.c: ...here.
7397         * i387-nat.h: Rename...
7398         * i387-tdep.h: ...to this.
7399         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7400         * i386-linux-nat.c: Likewise.
7401         * i386bsd-nat.c: Likewise.
7402         * i386gnu-nat.c: Likewise.
7403         * i386nbsd-nat.c: Likewise.
7404         * i386v4-nat.c: Likewise.
7405         * x86-64-linux-nat.c: Likewise.
7406         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7407         * config/i386/go32.mh (NATDEPFILES): Likewise.
7408         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7409         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7410         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7411         * config/i386/linux.mh (NATDEPFILES): Likewise.
7412         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7413         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7414         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7415         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7416
7417 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7418
7419         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7420         (alphanbsd-nat.o): Remove dependency list.
7421         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7422         * alphanbsd-nat.c: Delete.  Contents moved to...
7423         * alphanbsd-tdep.c: ...here.
7424         (_initialize_alphanbsd_tdep): Register core functions.
7425         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7426
7427 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7428
7429         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7430         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7431         (alphanbsd-nat.o): Likewise.
7432         (alphabsd-tdep.o): New dependency list.
7433         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7434         (fill_gregset): Use alphabsd_fill_reg.
7435         (supply_fpregset): Use alphabsd_supply_fpreg.
7436         (fill_fpregset): Use alphabsd_fill_fpreg.
7437         (fetch_inferior_registers): Use struct reg and struct fpreg
7438         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7439         and alphabsd_supply_fpreg.
7440         (store_inferior_registers): Use struct reg and struct fpreg
7441         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7442         and alphabsd_fill_fpreg.
7443         * alphabsd-tdep.c: New file.
7444         * alphabsd-tdep.h: New file.
7445         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7446         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7447         alphabsd_supply_fpreg.
7448         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7449         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7450
7451 2002-05-11  Eric Christopher  <echristo@redhat.com>
7452
7453         * mips-tdep.c (mips_double_register_type): Fix thinko.
7454         (mips_single_register_type): Ditto.
7455         * MAINTAINERS: Add self.
7456
7457 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7458
7459         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7460         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7461         right thing on architectures with different endianness and/or
7462         integer sizes.
7463
7464 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7465
7466         From Christian Limpach <chris@Pin.LU>
7467         * configure.in: Change sed expression which comments out
7468         NATDEPFILES to also comment out continuation lines.
7469         * configure: Regenerate.
7470
7471 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7472
7473         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7474         big patch.
7475
7476 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7477
7478         * sh-tdep.c: Include correct file.
7479
7480 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7481
7482         New support for sh64-elf (sh5) target.
7483
7484         * configure.tgt: For sh64-elf target, default to sh-elf.
7485
7486         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7487         (struct gdbarch_tdep): Add new fields for new registers and ABI
7488         info.
7489
7490         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7491         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7492         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7493         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7494         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7495         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7496         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7497         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7498         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7499         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7500         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7501         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7502         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7503         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7504         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7505         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7506         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7507         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7508         sign_extend, sh64_nofp_frame_init_saved_regs,
7509         sh64_init_extra_frame_info, sh64_get_saved_register,
7510         sh64_extract_struct_value_address, sh64_pop_frame,
7511         sh64_push_arguments, sh64_extract_return_value,
7512         sh64_store_return_value, sh64_show_media_regs,
7513         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7514         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7515         sh_sh64_register_virtual_type,
7516         sh_sh64_register_convert_to_virtual,
7517         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7518         sh64_register_read, sh64_pseudo_register_write,
7519         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7520         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7521         sh64_do_pseudo_register, sh_compact_do_registers_info,
7522         sh64_do_registers_info, sh_gdbarch_init): New functions.
7523
7524 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7525
7526         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7527
7528 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7529
7530         * linespec.c (decode_line_1): Check for a double quote after
7531         a filename correctly.
7532
7533 2002-05-10  Jim Blandy  <jimb@redhat.com>
7534
7535         Properly track the size of the current objfile's .debug_line section.
7536         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7537         (DWARF_LINE_SIZE): New macro.
7538         (dwarf2_build_psymtabs_hard): Record the line section's size in
7539         the partial symbol table.
7540         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7541         symbol table.
7542
7543 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7544
7545         * ia64-tdep.c: Handle breakpoints on L instruction type
7546         in MLX instruction bundle by moving the breakpoint to
7547         the third slot (X instruction type) as L holds only data.
7548
7549 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7550
7551         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7552         (process_one_symbol): Complain about discarding local symbols
7553         due to a misplaced N_LBRAC entry.
7554
7555 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7556
7557         From Daniel Berlin <dan@cgsoftware.com>
7558         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7559         decrease the depth we are at, in the case of templates.
7560
7561 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7562
7563         * mips-tdep.c (mips_float_register_type): New function.
7564         (mips_double_register_type): New function.
7565         (mips_print_register): Use them.
7566         (do_fp_register_row): Likewise.
7567
7568 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7569
7570         * signals/signals.c (signals): Remove conditional compilation around
7571         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7572         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7573
7574 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7575
7576         * remote-rdp.c (remote_rdp_can_run): Remove.
7577
7578 2002-05-09  Tom Tromey  <tromey@redhat.com>
7579
7580         * jv-valprint.c (java_val_print): Handle `char' as a special case
7581         of TYPE_CODE_INT.
7582
7583 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7584
7585         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7586         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7587         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7588         str r(0123),[sp,#nn].
7589         (arm_skip_prologue): Ditto.  Also make disassembly
7590         order-independent by placing it in a loop.
7591
7592 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7593
7594         * stabsread.c (read_type): Add recognition for new attribute:
7595         "@V;" means that an array type is actually a vector.
7596         This is analogous to the vector flag that's been added to dwarf2.
7597
7598 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7599
7600         * i386-tdep.h (i386_abi): New enum.
7601         (struct gdbarch_tdep): Replace os_ident member with abi.
7602         (i386_gdbarch_register_os_abi): New prototype.
7603         * i386-tdep.c (i386_abi_names): New array.
7604         (process_note_abi_tag_sections): Removed.
7605         (process_note_sections): New function.
7606         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7607         (struct i386_abi_handler): New struct.
7608         (i386_abi_handler_list): New variable.
7609         (i386_gdbarch_register_os_abi): New function.
7610         (i386_gdbarch_init): Adapt for the changes given above.
7611
7612 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7613
7614         * gregset.h: Say "GNU/Linux".
7615
7616 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7617
7618         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7619         (build_gdbtypes): Build builtin_type_v2_float.
7620         (_initialize_gdbtypes): Register new builtin type.
7621
7622 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7623
7624         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7625         (clear_gdbarch_swap): New function.
7626         (initialize_non_multiarch): Call.
7627         (gdbarch_update_p): Before calling init(), swap out and clear the
7628         existing architecture.
7629         * gdbarch.c: Regenerate.
7630
7631 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7632
7633         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7634         alphanbsd-tdep.c.
7635
7636 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7637
7638         * sh-nbsd-nat.c: Rename to...
7639         * shnbsd-nat.c: ...this.
7640         * sh-nbsd-tdep.c: Rename to...
7641         * shnbsd-tdep.c: ...this.
7642         * sh-nbsd-tdep.h: Rename to...
7643         * shnbsd-tdep.h: ...this.
7644         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7645         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7646
7647 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7648
7649         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7650         concatenation for command help messages.
7651
7652 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7653
7654         * NEWS: Note new sh*-*-netbsdelf* configuration.
7655         * configure.host: Set gdb_host_cpu to sh for all sh*.
7656         (sh*-*-netbsdelf*): New host.
7657         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7658         (sh*-*-netbsdelf*): New target.
7659         * sh-nbsd-nat.c: New file.
7660         * sh-nbsd-tdep.c: New file.
7661         * sh-nbsd-tdep.h: New file.
7662         * config/sh/nbsd.mh: New file.
7663         * config/sh/nbsd.mt: New file.
7664         * config/sh/nm-nbsd.h: New file.
7665         * config/sh/tm-nbsd.h: New file.
7666
7667 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7668
7669         * sh-tdep.c (sh_osabi_names): Declare.
7670         (process_note_abi_tag_sections): New function.
7671         (get_elfosabi): Ditto.
7672         (sh_gdbarch_register_os_abi): Ditto.
7673         (sh_dump_tdep): Ditto.
7674         _initialize_sh_tdep): Use gdbarch_register to register
7675         sh_gdbarch_init and sh_dump_tdep.
7676         * config/sh/tm-sh.h (sh_osabi): Declare.
7677         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7678
7679 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7680
7681         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7682         (thumb_scan_prologue): Ditto.
7683         (arm_find_callers_reg): Ditto.
7684         (arm_frame_chain): Ditto.
7685         (arm_init_extra_frame_info): Ditto.
7686         (arm_frame_saved_pc): Ditto.
7687         (arm_pop_frame): Ditto.
7688         (arm_push_return_address): New function.
7689         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7690         call_dummy_location, call_dummy_breakpoint_offset_p,
7691         call_dummy_breakpoint_offset, call_dummy_p,
7692         call_dummy_stack_adjust_p, call_dummy_words,
7693         sizeof_call_dummy_words, call_dummy_start_offset,
7694         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7695         call_dummy_address, push_return_address and push_dummy_frame for
7696         generic dummy frames.
7697
7698 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7699
7700         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7701         size computation for alloca.
7702         (sh_fp_frame_init_saved_regs): Likewise.
7703
7704 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7705
7706         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7707         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7708         * arm-tdep.c (arm_store_return_value): Use them.
7709         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7710         * remote-rdp.c (remote_rdp_fetch_register): Use
7711         ARM_MAX_REGISTER_RAW_SIZE.
7712         (remote_rdp_store_register): Likewise.
7713
7714 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7715
7716         * dwarf2cfi.c: Code cleanup, removed unused variables,
7717         added default labels to switch {} statements.
7718         * x86-64-tdep.c: Ditto.
7719         * x86-64-linux-nat.c: Ditto.
7720
7721 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7722
7723         * solib.h: Protect against multiple inclusion.
7724
7725 2002-05-06  Jim Blandy  <jimb@redhat.com>
7726
7727         Add first preprocessor macro-expansion files.
7728         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7729         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7730         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7731         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7732         (COMMON_OBS): Add macrotab.o, macroexp.o.
7733         (macroexp.o, macrotab.o): New rules.
7734
7735         Separate the job of reading the line number info statement program
7736         header (...expialidocious) out into its own function.
7737         * dwarf2read.c (struct line_head, struct filenames, struct
7738         directories): Replace with...
7739         (struct line_header): New structure, containing the full
7740         contents of the statement program header, including the
7741         include directory and file name tables.
7742         (read_file_scope): If we have line number info, instead of just
7743         calling dwarf_decode_lines to do all the work, call
7744         dwarf_decode_line_header first to get a `struct line_header'
7745         containing the data in the statement program header, and then
7746         pass that to dwarf_decode_lines, which will pick up where that
7747         left off.  Be sure to clean up the `struct line_header' object.
7748         (dwarf_decode_line_header, free_line_header, add_include_dir,
7749         add_file_name): New functions.
7750         (dwarf_decode_lines): Move all the code to read the statement
7751         program header into dwarf_decode_line_header.  Take the line
7752         header it built as the first argument, instead of the offset to
7753         the compilation unit's line number info.  Use the new `struct
7754         line_header' type instead of the old structures.  No need to do
7755         cleanups here now, since we don't allocate anything.
7756         (dwarf2_statement_list_fits_in_line_number_section,
7757         dwarf2_line_header_too_long): New complaints.
7758
7759 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7760
7761         * gdbtypes.c (init_vector_type): New function.
7762         (build_builtin_type_vec128): Simplify the representation of SIMD
7763         registers.
7764         (build_gdbtypes): Initialize new builtin vector types.
7765         (_initialize_gdbtypes): Register new vector types with gdbarch.
7766         (builtin_type_v4_float, builtin_type_v4_int32,
7767         builtin_type_v8_int16, builtin_type_v16_int8,
7768         builtin_type_v2_int32, builtin_type_v4_int16,
7769         builtin_type_v8_int8): New (renamed) SIMD types.
7770
7771 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7772
7773         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7774         (i387_fill_fxsave): Likewise.
7775
7776 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7777
7778         * alpha-tdep.c (alpha_extract_return_value): Don't use
7779         non-constant array size in prototype.
7780
7781 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7782
7783         From Brian Taylor <briant at model dot com>:
7784         * ui-out.c (ui_out_field_core_addr): Use the function
7785         longest_local_hex_string_custom'to format addresses > 32 bits
7786         wide.
7787
7788         * ui-out.c (ui_out_field_core_addr): Update comment.
7789
7790 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7791
7792         * stack.c (select_and_print_frame): Make static.  Delete the
7793         parameter `level'.
7794         (func_command): Update call.
7795         (select_frame_command): Delete code computing the frame level.
7796         * frame.h (select_and_print_frame): Delete declaration.
7797
7798 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7799
7800         * sparc-tdep.c (sparc_get_saved_register): Comment why
7801         get_prev_frame call is safe.
7802
7803 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7804
7805         * frame.h (select_frame): Delete level parameter.
7806         * stack.c (select_frame): Update.  Use frame_relative_level to
7807         obtain the frame's level.
7808         (select_and_print_frame): Update call.
7809         (select_frame_command): Ditto.
7810         (up_silently_base): Ditto.
7811         (down_silently_base): Ditto.
7812         * ocd.c (ocd_start_remote): Ditto.
7813         * remote-rdp.c (remote_rdp_open): Ditto.
7814         * remote-mips.c (mips_initialize): Ditto.
7815         (common_open): Ditto.
7816         * remote-e7000.c (e7000_start_remote): Ditto.
7817         * m3-nat.c (select_thread): Ditto.
7818         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7819         (child_get_current_exception_event): Ditto.
7820         * varobj.c (varobj_create): Ditto.
7821         (varobj_update): Ditto.
7822         (c_value_of_root): Ditto.
7823         * tracepoint.c (finish_tfind_command): Ditto.
7824         * corelow.c (core_open): Ditto.
7825         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7826         * thread.c (info_threads_command): Ditto.
7827         (switch_to_thread): Ditto.
7828         * infrun.c (normal_stop): Ditto.
7829         (restore_selected_frame): Ditto.
7830         (restore_inferior_status): Ditto.
7831         * breakpoint.c (insert_breakpoints): Ditto.
7832         (watchpoint_check): Ditto.
7833         (bpstat_stop_status): Ditto.
7834         (do_enable_breakpoint): Ditto.
7835         * blockframe.c (flush_cached_frames): Ditto.
7836         (reinit_frame_cache): Ditto.
7837
7838 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7839
7840         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7841         maintainer.
7842
7843 2002-05-04  Jim Blandy  <jimb@redhat.com>
7844
7845         * gdbtypes.c (replace_type): Doc fix.
7846
7847 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7848
7849         * valprint.c (strcat_longest): Delete commented out function.
7850         Update copyright.
7851
7852 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7853
7854         * MAINTAINERS: Mark a29k as deleted.
7855         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
7856         Move new configurations to the top.
7857         * configure.tgt: Remove a29k.
7858         * config/a29k/tm-vx29k.h: Delete.
7859         * config/a29k/vx29k.mt: Delete.
7860         * config/a29k/tm-a29k.h: Delete.
7861         * config/a29k/a29k-udi.mt: Delete.
7862         * config/a29k/a29k.mt: Delete.
7863         * a29k-tdep.c: Delete.
7864         * remote-udi.c: Delete.
7865         * remote-mm.c: Delete.
7866         * remote-eb.c: Delete.
7867         * remote-adapt.c: Delete.
7868         * Makefile.in: Remove obsolete code.
7869         * config/s390/s390x.mt: Ditto.
7870         * config/s390/s390.mt: Ditto.
7871         * config/sparc/sparclynx.mh: Ditto.
7872         * config/sparc/linux.mh: Ditto.
7873         * config/pa/hppaosf.mh: Ditto.
7874         * config/pa/hppabsd.mh: Ditto.
7875         * config/ns32k/nbsd.mt: Ditto.
7876         * config/mips/vr5000.mt: Ditto.
7877         * config/m68k/sun3os4.mh: Ditto.
7878         * config/m68k/nbsd.mt: Ditto.
7879         * config/m68k/m68klynx.mh: Ditto.
7880         * config/m32r/m32r.mt: Ditto.
7881         * config/i386/x86-64linux.mt: Ditto.
7882         * config/i386/nbsdelf.mt: Ditto.
7883         * config/i386/nbsd.mt: Ditto.
7884         * config/i386/i386lynx.mh: Ditto.
7885
7886 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7887
7888         * target.c (debug_print_register): New function.  Handle oversize
7889         registers.
7890         (debug_to_fetch_registers): Call.
7891         (debug_to_store_registers): Call.
7892
7893 2002-05-03  Jim Blandy  <jimb@redhat.com>
7894
7895         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7896         (read_type): Doc fix.
7897         * gdbtypes.c (replace_type): Doc fix.
7898
7899         * stabsread.c (multiply_defined_struct): New complaint.
7900         (read_struct_type): If the type we were passed isn't empty, or
7901         incomplete, don't read the new struct type into it; complain,
7902         and return the original type unchanged.  Take a new `type_code'
7903         argument, which is the type code for the new type.
7904         (read_type): Rather than storing the type's type code here, pass
7905         it as an argument to read_struct_type, and let that take care of
7906         storing it.  That way, we don't overwrite the original type code,
7907         so read_struct_type can use it to decide whether we're overwriting
7908         something we shouldn't.
7909         (complain_about_struct_wipeout): New function.
7910
7911 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
7912
7913         * gdbarch.sh: Assert that gdbarch is non-NULL.
7914         * gdbarch.c: Regenerate.
7915
7916 2002-05-03  Jason Merrill  <jason@redhat.com>
7917
7918         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7919         and return NULL.
7920
7921 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
7922
7923         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7924         (x86_64_dwarf2gdb_regno_map_length),
7925         (x86_64_dwarf2_reg_to_regnum): Added.
7926         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7927         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7928         (_initialize_x86_64_tdep): Synced with the change above.
7929         (x86_64_skip_prologue): Reformulated message.
7930
7931 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7932
7933         * f-exp.y: Also use new prev_lexptr variable
7934         to improve error reporting. Based on Michael Snyder
7935         2002-04-24 dated patch to c-exp.y.
7936         * jv-exp.y: Likewise.
7937         * m2-exp.y: Likewise.
7938
7939 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
7940
7941         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7942         we are dealing with vectors.
7943
7944 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7945
7946         * config/m68k/tm-nbsd.h: Obvious fix,
7947         correct machine name.
7948
7949 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7950
7951         * p-typeprint.c (pascal_type_print_base): Add support
7952         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7953
7954 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7955
7956         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7957         for fondamental pascal 'char' type.
7958
7959 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
7960
7961         * p-lang.h (is_pascal_string_type): Declaration changed,
7962         new sixth argument of type char ** added.
7963         * p-lang.c (is_pascal_string_type): Implementation
7964         changed. Args length_pos, length_size, string_pos, char_size
7965         can now be NULL. New argument arrayname set to the field
7966         name of the char array. Return value set to char array
7967         field index plus one.
7968         * p-valprint.c (pascal_val_print): Adapt to new declaration of
7969         is_pascal_string_type function.
7970
7971 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7972
7973         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7974         <cagney@redhat.com> change.
7975         * gdbarch.c: Regenerate.
7976
7977 2002-05-02  Andrew Cagney  <cagney@redhat.com>
7978
7979         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7980         before probing for a new one.  Detect errorenous gdbarch_init
7981         functions.
7982         * gdbarch.c: Regenerate.
7983
7984 2002-05-01  Andrew Cagney  <cagney@redhat.com>
7985
7986         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7987         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
7988         * config/v850/tm-v850.h: Ditto.  Update copyright.
7989
7990 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
7991
7992         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7993         current_gdbarch.
7994
7995 2002-04-30  Michael Snyder  <msnyder@redhat.com>
7996
7997         * arm-tdep.c: Whitespace clean-ups.
7998         (arm_skip_prologue): Fix thinko; two lines
7999         should have been removed as part of 4/24 change.
8000
8001 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
8002
8003         * rs6000-tdep.c: Added comment describing how fpscr register
8004         numbers were chosen.
8005
8006 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8007
8008         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8009
8010 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8011
8012         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8013         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8014         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8015
8016 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
8017
8018         From Louis Hamilton <hamilton@redhat.com>:
8019         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8020         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8021         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8022         not bfd-private xcoff data, to determine wordsize.
8023         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8024
8025 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
8026
8027         GDB 5.2 released from 5.2 branch.
8028
8029 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
8030
8031         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8032         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8033         (x86_64_register_info_table): Added comments with register numbers.
8034
8035 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8036
8037         * rs6000-tdep.c (rs6000_extract_return_value,
8038         rs6000_store_return_value): Handle returning vectors.
8039         (rs6000_gdbarch_init): Use
8040         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8041         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8042         New function.
8043         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8044         vectors.
8045         (ppc_sysv_abi_push_arguments): Handle vector parameters.
8046         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8047
8048 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8049
8050         * hpread.c (hpread_psymtab_to_symtab_1,
8051         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8052         with fprintf_unfiltered (gdb_stderr,...).
8053
8054 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8055
8056         * remote-array.c (printf_monitor, write_monitor,
8057         array_insert_breakpoint, array_remove_breakpoint ):
8058         Replace fprintf (stderr,...
8059         with fprintf_unfiltered (gdb_stderr,....
8060         * remote-es.c: Likewise.
8061         * remote-os9k.c: Likewise.
8062         * remote-st.c: Likewise.
8063
8064 2002-04-28  Andreas Schwab  <schwab@suse.de>
8065
8066         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8067         linux-proc.o and gcore.o.
8068
8069 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
8070
8071         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8072         code without frame pointers.
8073
8074 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8075
8076         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8077         ON_STACK is needed.
8078
8079 2002-04-26  Ben Elliston  <bje@redhat.com>
8080
8081         * target.c (do_xfer_memory): Correct reference to the new option
8082         "trust-readonly-sections".
8083
8084 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
8085
8086         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8087         * gdbtypes.c (recursive_dump_type): Output the vector flag.
8088         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8089         vectors.
8090         (read_array_type): Record the fact that this array type is really a
8091         vector (i.e. are passed in by value).
8092
8093 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
8094
8095         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8096         * alpha-tdep.c (alpha_sigcontext_addr): New function.
8097         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8098         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8099         * alpha-linux-tdep.c: Include frame.h.
8100         (alpha_linux_sigcontext_addr): New function.
8101         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8102         alpha_linux_sigcontext_addr.
8103         * alpha-osf1-tdep.c: Include gdbcore.h.
8104         (alpha_osf1_sigcontext_addr): New function.
8105         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8106         alpha_osf1_sigcontext_addr.
8107         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8108         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8109
8110 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8111
8112         * stack.c (selected_frame_level):
8113         (select_frame): Do not set selected_frame_level.
8114         * frame.h (selected_frame_level): Delete declaration.
8115
8116 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8117
8118         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8119         convert_from_func_ptr-addr when AIX / PowerOpen.
8120
8121 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8122
8123         * valops.c (hand_function_call): Call
8124         generic_save_call_dummy_addr.
8125         * frame.h (generic_save_call_dummy_addr): Declare.
8126         * blockframe.c (struct dummy_frame): Add fields call_lo and
8127         call_hi.
8128         (generic_find_dummy_frame): Check for PC in range call_lo to
8129         call_hi instead of entry_point_address.
8130         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8131         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
8132         (generic_save_call_dummy_addr): New function.
8133
8134 2002-04-24  David S. Miller  <davem@redhat.com>
8135
8136         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8137         sparc_skip_prologue.
8138         (sparc_skip_prologue): Kill frameless_p arg, and use line number
8139         information to find prologue when possible.
8140         (sparc_prologue_frameless_p): Call examine_prologue directly.
8141         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8142         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8143         second argument.
8144         (SKIP_PROLOGUE): Likewise.
8145
8146 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8147
8148         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8149         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8150         indicate that the condition it was testing is always true.
8151         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8152         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8153         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8154
8155 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8156
8157         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8158         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8159         tdep->jb_pc and tdep->jb_elt_size.
8160         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8161         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8162         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8163         * alpha-nat.c (get_longjmp_target): Remove.
8164         (JB_ELEMENT_SIZE): Ditto.
8165         (JB_PC): Ditto.
8166         * alpha-tdep.c (alpha_get_longjmp_target): New function.
8167         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
8168         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8169         to alpha_get_longjmp_target.
8170         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8171         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8172         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8173
8174 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8175
8176         * README: Update to GDB 5.2.
8177
8178 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8179
8180         * gdbarch.sh (LC_ALL): Set to `c'.
8181
8182 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8183
8184         * avr-tdep.c: Ran through gdb_indent.sh.
8185
8186 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8187
8188         * MAINTAINERS: Add myself as AVR maintainer.
8189         * NEWS: Note new target avr.
8190
8191 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8192
8193         * Makefile.in: Add support for AVR target.
8194         * configure.tgt: Add support for AVR target.
8195         * avr-tdep.c: New file
8196         * config/avr/avr.mt: New file.
8197
8198 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8199
8200         * MAINTAINERS: Add myself to write-after-approval.
8201
8202 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8203
8204         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8205         with fprintf_unfiltered (gdb_stderr,....
8206
8207 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8208
8209         Fix PR gdb/508.
8210         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8211
8212 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8213
8214         * p-exp.y: Also use new prev_lexptr variable
8215         to improve error reporting. Based on Michael Snyder
8216         2002-04-24 dated patch to c-exp.y.
8217
8218 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8219
8220         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8221         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8222         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
8223         to 0.
8224         * config/alpha/tm-alpha.h: Remove forward decls of struct type
8225         and struct value.
8226         (FUNCTION_START_OFFSET): Remove.
8227         (BREAKPOINT): Ditto.
8228
8229 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8230
8231         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8232         * NEWS: Ditto.
8233
8234 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8235
8236         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8237         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8238         alpha_linux_pc_in_sigtramp.
8239         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8240         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8241         alpha_osf1_pc_in_sigtramp.
8242         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8243         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8244         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8245         alphafbsd_pc_in_sigtramp.
8246         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8247         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8248         alphanbsd_pc_in_sigtramp.
8249         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8250         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8251
8252 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8253
8254         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8255
8256 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8257
8258         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8259         alphanbsd-tdep.c.
8260         (alphanbsd-nat.o): New dependency list.
8261         (alphanbsd-tdep.o): Ditto.
8262         * NEWS: Note new native NetBSD/alpha configuration.
8263         * alphanbsd-nat.c: New file.
8264         * alphanbsd-tdep.c: Ditto.
8265         * configure.host (alpha*-*-netbsd*): New host.
8266         * configure.tgt (alpha*-*-netbsd*): New target.
8267         * config/alpha/nbsd.mh: New file.
8268         * config/alpha/nbsd.mt: Ditto.
8269         * config/alpha/nm-nbsd.h: Ditto.
8270         * config/alpha/tm-nbsd.h: Ditto.
8271
8272 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8273
8274         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8275         (alpha-osf1-tdep.o): New dependency list.
8276         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8277         and skip_sigtramp_frame members.
8278         * alpha-linux-tdep.c: Include gdbcore.h.
8279         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8280         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8281         * alpha-osf1-tdep.c: New file.
8282         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8283         alpha-osf1-dep.c.
8284         (alpha_frame_past_sigtramp_frame): New function.
8285         (alpha_dynamic_sigtramp_offset): Ditto.
8286         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8287         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8288         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8289         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8290         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8291         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8292         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8293         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8294         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8295         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8296         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
8297         to find_solib_trampoline_target.
8298         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8299         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8300         (SKIP_TRAMPOLINE_CODE): Remove.
8301         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8302         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8303         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8304         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8305         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8306         (PROC_SIGTRAMP_MAGIC): Ditto.
8307         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8308         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8309         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8310         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8311         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8312
8313 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8314
8315         * NEWS: Note that Alpha targets are now multi-arch.
8316
8317 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8318
8319         * parser-defs.h (prev_lexptr): New external variable.
8320         * parse.c (parse_exp_1): Set prev_lexptr to null before
8321         calling the language-specific parser.
8322         * c-exp.y (yylex): Set prev_lexptr to start of current token.
8323         (yyerror): Use prev_lexptr in error reporting.
8324
8325 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
8326
8327         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8328         * gregset.h: If FILL_FPXREGSET is defined, provide
8329         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8330         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8331         is defined, call fill_fpxregset.
8332
8333 2002-04-24  Roland McGrath  <roland@frob.com>
8334
8335         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8336         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8337         (supply_gregset, supply_fpregset): New functions.
8338
8339         * gnu-nat.c (gnu_find_memory_regions): New function.
8340         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8341         (gnu_xfer_memory): Add a cast.
8342
8343 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8344
8345         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8346         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
8347         of argument regs ("str r(0123), [r11, #-nn"]).
8348         (arm_skip_prologue): Better handling for frameless functions.
8349         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
8350         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8351
8352 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
8353
8354         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8355         NUM_PSEUDO_REGS can be used.
8356
8357 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
8358
8359         * arch-utils.h: Update copyright.
8360
8361         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8362         * gdbarch.h, gdbarch.c: Re-generate.
8363
8364         * inferior.h (IN_SIGTRAMP): Delete definition.
8365         * arch-utils.c (legacy_pc_in_sigtramp): New function.
8366         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8367
8368         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8369         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8370         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8371         (find_proc_framesize): Ditto.
8372         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8373         (alpha_init_extra_frame_info): Ditto.
8374         * infrun.c (handle_inferior_event): Ditto.
8375         (handle_inferior_event): Ditto.
8376         (check_sigtramp2): Ditto.
8377         * blockframe.c (create_new_frame): Ditto.
8378         (get_prev_frame): Ditto.
8379         * ppc-linux-tdep.c: Update comments.
8380         * i386-linux-tdep.c: Update comments.
8381         * breakpoint.c (bpstat_what): Update comment.
8382
8383 2002-04-24  David S. Miller  <davem@redhat.com>
8384
8385         * i960-tdep.c (register_in_window_p): New function.
8386         (i960_find_saved_register): Use it instead of
8387         REGISTER_IN_WINDOW_P.
8388         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8389
8390         * symtab.h (find_stab_function_addr): Kill extern.
8391         * minsyms.c (find_stab_function_addr): Remove from here...
8392         * dbxread.c: ... to here, and mark it static.
8393
8394 2002-04-20  David S. Miller  <davem@redhat.com>
8395
8396         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8397         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8398
8399 2002-04-21  David S. Miller  <davem@redhat.com>
8400
8401         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8402         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8403         (vx_write_register): Likewise.
8404
8405 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8406
8407         * source.c (is_regular_file): New function.
8408         (openp): Check wether file to open is a regular file
8409         to avoid opening directories.
8410
8411 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8412
8413         * findvar.c (extract_signed_integer): Cast printf argument
8414         to suppress format warning.
8415         (extract_unsigned_integer): Likewise.
8416         * infcmd.c (registers_info): Likewise.
8417         * top.c (get_prompt_1): Likewise.
8418         * valops.c (value_assign): Likewise.
8419         * valprint.c (print_decimal): Likewise.
8420
8421 2002-04-22  H.J. Lu  (hjl@gnu.org)
8422
8423         * c-exp.y (typebase): Support
8424
8425         [long|long long|short] [signed|unsigned] [int|]
8426
8427         and
8428
8429         signed [long|long long|short] int
8430
8431 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8432
8433         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8434         and vax-tdep.h.
8435         * vax-tdep.h: New file.
8436         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8437         Make several routines static.
8438         (vax_get_saved_register): New function.
8439         (vax_gdbarch_init): New function.
8440         (_initialize_vax_tdep): Register vax_gdbarch_init.
8441         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8442         Remove macros now under the control of gdbarch.
8443
8444 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8445
8446         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8447         Some whitespace and coding standards tweaks.
8448
8449 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8450
8451         * vax-tdep.c: Include regcache.h.
8452         (vax_call_dummy_words): New.
8453         (sizeof_vax_call_dummy_words): New.
8454         (vax_fix_call_dummy): New function.
8455         (vax_saved_pc_after_call): Ditto.
8456         * config/vax/tm-vax.h: Don't include regcache.h.
8457         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8458         (CALL_DUMMY): Remove.
8459         (CALL_DUMMY_WORDS): Define.
8460         (SIZEOF_CALL_DUMMY_WORDS): Define.
8461         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8462
8463 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8464
8465         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8466
8467 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8468
8469         * vax-tdep.c (vax_frame_chain): New function.
8470         (vax_push_dummy_frame): Ditto.
8471         (vax_pop_frame): Ditto.
8472         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8473         (FRAMELESS_FUNCTION_INVOCATION): Use
8474         generic_frameless_function_invocation_not.
8475         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8476         (POP_FRAME): Use vax_pop_frame.
8477
8478 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8479
8480         * vax-tdep.c (vax_store_struct_return): New function.
8481         (vax_extract_return_value): Ditto.
8482         (vax_store_return_value): Ditto.
8483         (vax_extract_struct_value_address): Ditto.
8484         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8485         vax_store_struct_return.
8486         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8487         (STORE_RETURN_VALUE): Use vax_store_return_value.
8488         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8489
8490 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8491
8492         * vax-tdep.c (vax_frame_saved_pc): New function.
8493         (vax_frame_args_address_correct): Ditto.
8494         (vax_frame_args_address): Ditto.
8495         (vax_frame_locals_address): Ditto.
8496         (vax_frame_num_args): Move code to be in proximity to
8497         other frame-related functions.
8498         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8499         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8500         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8501         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8502         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8503
8504 2002-04-22  H.J. Lu  (hjl@gnu.org)
8505
8506         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8507         includedir.
8508
8509 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8510
8511         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8512         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8513         (FRAME_INIT_SAVED_REGS): New macro.
8514
8515 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8516
8517         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8518
8519 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8520
8521         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8522         where needed.
8523         (fetch_osf_core_registers): Likewise.
8524         (supply_gregset): Likewise.
8525
8526 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8527
8528         * symfile.h (get_section_index): Define.
8529         * symfile.c (get_section_index): New function.
8530         * mdebugread.c (SC_IS_SBSS): New macro.
8531         (SC_IS_BSS): Return true for the scBss storage class only, as
8532         the scSBss storage class refers to the .sbss section.
8533         (parse_partial_symbols): Discard the symbols which associated
8534         section does not exist.
8535         Make sure to use the .sbss section index for symbols which
8536         storage class is scBss, rather than using the .bss section index.
8537
8538 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8539
8540         * vax-tdep.c: Update copyright years.
8541         (vax_register_name): New function.
8542         (vax_register_byte): Ditto.
8543         (vax_register_raw_size): Ditto.
8544         (vax_register_virtual_size): Ditto.
8545         (vax_register_virtual_type): Ditto.
8546         * config/vax/tm-vax.h: Update copyright years.
8547         (REGISTER_NAMES): Remove.
8548         (REGISTER_NAME): Define.
8549         (REGISTER_BYTE): Use vax_register_byte.
8550         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8551         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8552         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8553
8554 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8555
8556         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8557         declaration
8558         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8559
8560 2002-04-21  David S. Miller  <davem@redhat.com>
8561
8562         * arch-utils.c (generic_prologue_frameless_p): Kill
8563         SKIP_PROLOGUE_FRAMELESS_P code.
8564         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8565         references.
8566         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8567         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8568         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8569         references.
8570         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8571         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8572         (sparc_gdbarch_init): Pass it to
8573         set_gdbarch_prologue_frameless_p.
8574
8575 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8576
8577         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8578         (alphabsd-nat.o): New dependency list.
8579
8580 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8581
8582         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8583         alphafbsd-tdep.c.
8584         (alpha-linux-tdep.o): New dependency list.
8585         (alphafbsd-tdep.o): Likewise.
8586
8587 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8588
8589         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8590         to here...
8591         * alpha-tdep.c: ...from here.
8592         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8593
8594 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8595
8596         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8597         prototype from here...
8598         * alpha-tdep.h: ...to here.
8599
8600 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8601
8602         * frame.h (selected_frame_level): Document as deprecated.
8603         (frame_relative_level): Declare.
8604         * stack.c (frame_relative_level): New function.
8605         (selected_frame_level): Document as deprecated.
8606         (select_frame): Do not set the selected_frame_level.
8607
8608         * stack.c (frame_info, record_selected_frame): Update.
8609         (frame_command, current_frame_command): Update.
8610         (up_silently_base, up_command, down_silently_base): Update.
8611         (down_command): Update.
8612         * inflow.c (kill_command): Update.
8613         * tracepoint.c (finish_tfind_command): Update.
8614         * corelow.c (core_open): Update.
8615         * thread.c (info_threads_command): Update.
8616         (do_captured_thread_select): Update.
8617         * infcmd.c (finish_command): Update.
8618         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8619
8620 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8621
8622         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8623
8624 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8625
8626         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8627         type const.
8628
8629 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8630
8631         * alphafbsd-tdep.c: Update copyright years.  Include
8632         alpha-tdep.h.
8633         (alphafbsd_use_struct_convention): Make static.
8634         (alphafbsd_init_abi): New function.
8635         (_initialize_alphafbsd_tdep): New function.
8636         * config/alpha/tm-fbsd.h: Update copyright years.
8637         (USE_STRUCT_CONVENTION): Remove.
8638
8639 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8640
8641         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8642         an Alpha ABI variant.
8643         (alpha_abi_handler_list): Declare.
8644         (alpha_gdbarch_register_os_abi): New function.
8645         (alpha_gdbarch_init): Give registered ABI variant handlers a
8646         chance to tweak the gdbarch once we have set up defaults.
8647         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8648
8649 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8650
8651         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8652         to standard_coerce_float_to_double.
8653         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8654
8655 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8656
8657         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8658         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8659         from gdbarch_tdep rather than a constant.
8660         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8661         the default text address for all Alpha Unix ABIs.
8662         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8663         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8664
8665 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8666
8667         * alpha-tdep.h: New file.  Includes several Alpha target constants
8668         taken from...
8669         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8670         let gdbarch deal with.
8671         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8672         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8673         to dependency list.
8674         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8675         Alpha target register names.
8676         * alphabsd-nat.c: Likewise.
8677         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8678         Alpha target register names.  Make serveral routines static.
8679         (alpha_get_saved_register): New function.
8680         (alpha_abi_names): New.
8681         (process_note_abi_tag_sections): New function.
8682         (get_elfosabi): New function.
8683         (alpha_gdbarch_init): New function.
8684         (alpha_dump_tdep): New function.
8685         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8686
8687 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8688
8689         * frame.c (find_saved_register): Delete #ifdef
8690         HAVE_REGISTER_WINDOWS code.
8691         * config/sparc/tm-sparc.h: Update comments.
8692         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8693
8694 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8695
8696         * i960-tdep.c (i960_find_saved_register): New function.
8697         (i960_get_saved_register): New function.
8698         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8699         (i960_get_saved_register): Declare.
8700         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8701
8702 2002-04-20  David S. Miller  <davem@redhat.com>
8703
8704         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8705
8706 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8707
8708         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8709         instead of NUM_PSEUDO_REGS.
8710
8711 2002-04-20  David S. Miller  <davem@redhat.com>
8712
8713         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8714         GDB_MULTI_ARCH_PARTIAL
8715         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8716         define, let tm-sp64.h do it.
8717
8718 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8719
8720         * frame.c (find_saved_register): Avoid a NULL pointer
8721         dereference and actually walk the frame list.
8722
8723 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8724
8725         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8726         sorted in most most-recent-used order.  Document.
8727         * gdbarch.h, gdbarch.c: Regenerate.
8728
8729 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8730
8731         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8732         instead of ->prev.
8733         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8734         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8735         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8736         instead of ->prev.
8737
8738 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8739
8740         Fix PR gdb/471.
8741         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8742         (build_builtin_type_vec128): Ditto.
8743         (append_composite_type_field): Fix calculation of type length in
8744         union case.
8745
8746 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8747
8748         * config/djgpp/README: Update.
8749
8750         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8751         compiler warnings.
8752
8753 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8754
8755         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8756         (alpha_setup_arbitrary_frame): ...to this.
8757         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8758         for alpha_setup_arbitrary_frame.
8759
8760 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8761
8762         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8763         * gdbarch.h, gdbarch.c: Regenerate.
8764
8765         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8766         * target.h (memory_breakpoint_from_pc): Update declaration.
8767         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8768
8769         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8770         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8771         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8772         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8773         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8774         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8775         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8776         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8777         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8778         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8779         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8780         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8781
8782         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8783         const pointer.
8784         * monitor.c (monitor_insert_breakpoint): Ditto.
8785         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8786
8787         * config/mcore/tm-mcore.h: Update copyright.
8788         * mem-break.c: Ditto.
8789         * xstormy16-tdep.c: Ditto.
8790
8791 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8792
8793         * p-exp.y: Add precedence rule for '^' token.
8794         This removes the shift/reduce conflicts.
8795         Remove the comment concerning these shift/reduce conflicts.
8796
8797 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8798
8799         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8800         (registers_powerpc_nofp): New register set for processors
8801         without floating point unit.
8802
8803 2002-04-18  David S. Miller  <davem@redhat.com>
8804
8805         * MAINTAINERS: Add myself to write-after-approval.
8806
8807 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8808
8809         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8810
8811 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8812
8813         * rs6000-tdep.c (frame_initial_stack_address): Use
8814         frame_register_read to read the alloca_reg.
8815
8816 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8817
8818         * frame.c (find_saved_register): Find saved registers in the next
8819         not prev frame.
8820         Fix PR gdb/365.
8821
8822 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8823
8824         * gdbarch.sh (LANG): Set to ``c''.
8825
8826 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8827
8828         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8829
8830 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8831
8832         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8833         Update copyright.
8834
8835         * hpread.c (hpread_get_lntt): Add declaration.
8836         Also fix PR gdb/391.
8837
8838 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8839
8840         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8841         * aclocal.m4, configure: Re-generate.
8842         Fix PR gdb/391.
8843
8844 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8845
8846         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8847         instead of tm_print_insn.
8848
8849 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8850
8851         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8852
8853 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8854
8855         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8856         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8857         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8858
8859 2002-04-12  Don Howard  <dhoward@redhat.com>
8860
8861         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8862         max_user_call_depth.
8863         (init_cmd_lists): Initialize the new value;
8864         * cli/cli-script.c (execute_user_command): Limit the call depth of
8865         user defined commands.  This avoids a core-dump when user commands
8866         are infinitly recursive.
8867
8868 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8869
8870         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8871         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8872         from tdep struct instead of DEFAULT_LR_SAVE.
8873         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8874         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8875         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8876
8877 2002-04-12  Michael Snyder  <msnyder@redhat.com>
8878
8879         * Remote.c: Spelling fix.
8880         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8881         If no symbol found for "sbrk", try "_sbrk".
8882         (make_output_phdrs): Use bfd_section_name.
8883         (gcore_copy_callback): Use bfd_section_name.
8884         * eval.c: Indentation fix-ups.
8885         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8886         in case it gets applied to an address that is already
8887         in the instruction space.
8888         * cli/cli-decode.c (help_list): Allow long lines to wrap.
8889         * symfile.c: Fix indentation, long lines.
8890         * source.c: White space fix-up.
8891
8892 2002-04-12  Andrew Cagney  <cagney@redhat.com>
8893
8894         * defs.h (read_relative_register_raw_bytes): Delete declaration.
8895         * frame.c (frame_register_read): New function.  Return non-zero on
8896         success.
8897         (read_relative_register_raw_bytes_for_frame): Delete.
8898         (read_relative_register_raw_bytes): Delete.
8899         * frame.h (frame_register_read): Declare.
8900         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
8901         * sh-tdep.c: Ditto.
8902         * infcmd.c (do_registers_info): Ditto.
8903         * hppa-tdep.c: Ditto.
8904         * rs6000-tdep.c: Ditto.
8905         * h8500-tdep.c: Ditto.
8906         * mips-tdep.c: Ditto.
8907         * h8300-tdep.c: Ditto.
8908         * z8k-tdep.c: Ditto.
8909
8910 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8911
8912         From Jimi X <jimix@watson.ibm.com>:
8913         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8914         64-bit SysV ABI.
8915
8916 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8917
8918         From Jimi X <jimix@watson.ibm.com>:
8919         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8920         bfd info.
8921
8922 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8923
8924         From Jimi X <jimix@watson.ibm.com>:
8925         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8926         register sets for these processor variants.
8927
8928 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
8929
8930         * regformats/reg-ppc.dat: Support FPSCR.
8931
8932 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
8933
8934         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8935         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8936         Add fpscr as an invalid/unfetchable register.
8937         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8938         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8939         (fill_fpregset): Add support for register fpscr.
8940         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8941         (fill_gregset): Account for the fact that register ``mq'' might
8942         not exist.
8943         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8944         (registers_power): Add fpscr to register set at slot 71.
8945         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8946         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
8947
8948 2002-04-11  Michael Snyder  <msnyder@redhat.com>
8949
8950         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8951         * configure: Regenerate.
8952         * config.in: Regenerate.
8953         * acconfig.h: Add define for _SYSCALL32.
8954         * core-sol2.c: Remove #define _SYSCALL32.
8955         * solib-legacy.c: Remove #define _SYSCALL32.
8956
8957 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8958
8959         * stack.c (select_frame): Cleanup internal error message, do not
8960         use %p.
8961
8962 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8963
8964         * stack.c (select_frame): Check that selected_frame and the
8965         specified level are as expected.
8966         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8967         Update copyright.
8968         * frame.h (struct frame_info): Add field `level'.  Update
8969         copyright.
8970         Work-in-progress PR gdb/464.
8971
8972 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
8973
8974         * maint.c (maint_print_section_info): Rename print_section_info.
8975         (print_bfd_section_info, print_objfile_section_info): Update.
8976         * inferior.h (struct gdbarch): Add opaque declaration.
8977         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8978         * gdbarch.h: Regenerate.
8979
8980 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
8981
8982         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8983         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8984         (kernel_u_size): Added.
8985         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8986         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8987
8988 2002-04-04  Jim Ingham  <jingham@apple.com>
8989
8990        * valarith.c (find_size_for_pointer_math): New function, either returns
8991        the size for a pointer's target, returns 1 for void *, or errors for
8992        incomplete types.
8993        (value_add, value_sub): use find_size_for_pointer_math.
8994
8995 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
8996
8997         * linux-low.c (linux_look_up_symbols): New hook.
8998         (linux_target_ops): Add linux_look_up_symbols.
8999         * remote-utils.c (decode_address): New function.
9000         (look_up_one_symbol): New function.
9001         * server.c (handle_query): Call target look_up_symbols hook.
9002         * server.h (look_up_one_symbol): Add prototype.
9003         * target.h (struct target_ops): Add look_up_symbols hook.
9004
9005 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
9006
9007         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9008         override FP_REGNUM with frame->fp.  Update copyright.
9009         * parse.c (num_std_regs, std_regs): Delete.
9010         (target_map_name_to_register): Do not search std_regs.  Update
9011         function description.
9012         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9013         declarations.  Update copyright.
9014         Fix PR gdb/251.
9015
9016 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9017
9018         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9019         after the last symbol in a block.
9020
9021 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9022
9023         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9024         is non zero as a found symbol.
9025
9026 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9027
9028         * findvar.c: Include "builtin-regs.h".
9029         (value_of_register): Call value_of_builtin_reg when applicable.
9030         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9031         (target_map_name_to_register): Call
9032         builtin_reg_map_name_to_regnum.
9033         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9034         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9035         (builtin_regs_h): Define.
9036         (builtin-regs.o): New target.
9037         (findvar.o): Add $(builtin_regs_h).
9038         * builtin-regs.c, builtin-regs.h: New files.
9039         * std-regs.c: New file.
9040         Partial fix for PR gdb/251.
9041
9042 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9043
9044         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9045         it's no longer required.
9046
9047 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9048
9049         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9050
9051 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9052
9053         From Jimi X <jimix@watson.ibm.com>:
9054         * rs6000-tdep.c (rs6000_software_single_step): Use
9055         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9056         and size.  Use target_insert_breakpoint() and
9057         target_remove_breakpoint() to insert and remove breakpoints
9058         instead of explicit memory reads and writes.
9059
9060 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9061
9062         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9063         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9064         ELF_OBJECT_FORMAT ifdef.
9065
9066 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9067
9068         From Jimi X <jimix@watson.ibm.com>:
9069         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9070
9071 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9072
9073         From Jimi X <jimix@watson.ibm.com>:
9074         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9075         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9076
9077 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
9078
9079         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9080         s/asprintf/xasprintf/.
9081         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9082
9083 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9084
9085         I believe Jeff Law denies responsability for this one:
9086         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9087         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9088         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9089         Work-around for PR gdb/366.
9090
9091 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9092
9093         * remote-e7000.c (write_small, e7000_read_inferior_memory,
9094         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9095         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9096
9097 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9098
9099         * sh-tdep.c (sh_fp_frame_init_saved_regs,
9100         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9101         information.
9102
9103 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9104
9105         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9106         maintainer.
9107
9108 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9109
9110         * README (Reporting Bugs in GDB): Document the bug web page as the
9111         prefered way of submitting bugs.
9112         Fix PR gdb/402.
9113
9114 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9115
9116         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9117         -1.  Update comment.
9118         * gdbarch.h, gdbarch.c: Re-generate.
9119
9120 2002-04-07  Andreas Schwab  <schwab@suse.de>
9121
9122         * m68klinux-nat.c (fill_fpregset): Properly pass address of
9123         buffer to regcache_collect.
9124
9125 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9126
9127         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
9128         * gdbarch.c, gdbarch.h: Re-generate.
9129
9130 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9131
9132         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9133         declaration.  Fix -Werror.
9134
9135 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
9136
9137         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9138         * gdbarch.c: Regenerate.
9139
9140 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9141
9142         * breakpoint.c (clear_command): Rewrite middle section to
9143         combine two loops with identical control conditions.
9144         Add a cleanup to eliminate a memory leak.
9145         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9146
9147 2002-04-05  H.J. Lu  (hjl@gnu.org)
9148
9149         * solib-svr4.c (bkpt_names): Add "__start".
9150
9151 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9152
9153         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9154         as test for 64 bit target.
9155
9156 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
9157
9158         * h8500-tdep.c (h8500_write_fp): Delete function.
9159         * dwarf2cfi.c (cfi_write_fp): Document as not used.
9160         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9161         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9162         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9163         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9164         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9165         (s390_write_fp):
9166         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9167         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9168         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9169         (d10v_write_fp): Delete function.
9170         * inferior.h (write_fp, generic_target_write_fp): Delete
9171         declarations.
9172         * regcache.c (generic_target_write_fp): Delete function.
9173         (write_fp): Delete function.
9174         * gdbarch.sh (TARGET_WRITE_FP): Delete.
9175         * gdbarch.h, gdbarch.c: Regenerate.
9176         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9177         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9178         (sparc64_write_fp): Delete declaration.
9179         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9180         (h8500_write_fp): Delete declaration.
9181
9182 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9183
9184         * sparc-tdep.c (sparc64_write_fp): Delete.
9185         (sparc_push_dummy_frame): Replace write_fp call with code to store
9186         the FP directly.
9187         (sparc_gdbarch_init): Do not initialize write_fp.
9188
9189 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
9190
9191         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9192         clause.
9193
9194 2002-03-29  Jim Blandy  <jimb@redhat.com>
9195
9196         * stack.c (get_selected_block): Add new argument `addr_in_block',
9197         used to return the exact code address we used to select the block,
9198         not just the block.
9199         * blockframe.c (get_frame_block, get_current_block): Same.
9200         * frame.h (get_frame_block, get_current_block,
9201         get_selected_block): Update declarations.
9202         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9203         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9204
9205 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9206
9207         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9208         warning message.
9209
9210 2002-04-05  J. Brobecker  <brobecker@gnat.com>
9211
9212         * utils.c (xfullpath): New function.
9213         * defs.h (xfullpath): Add declaration.
9214         * source.c (openp): Use xfullpath in place of gdb_realpath to
9215         avoid resolving the basename part of filenames when the
9216         associated file is a symbolic link. This fixes a potential
9217         inconsistency between the filenames known to GDB and the
9218         filenames it prints in the annotations.
9219         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9220         to be able to match a filename with either the real filename, or
9221         the name of any symbolic link to this file.
9222         (lookup_partial_symtab): Ditto.
9223
9224 2002-04-04  Michael Snyder  <msnyder@redhat.com>
9225
9226         * breakpoint.c: Add support for hardware breakpoints in overlays.
9227         (overlay_events_enabled): New state variable.
9228         (insert_breakpoints): Use overlay_events_enabled to decide
9229         whether to attempt to set a breakpoint at the overlay load addr.
9230         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9231         (remove_breakpoint): Use overlay_events_enabled to decide
9232         whether breakpoints need to be removed from overlay load addr.
9233         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9234         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9235         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9236         disable_overlay_breakpoints): Update overlay_events_enabled.
9237
9238 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
9239
9240         * dwarf2read.c (struct function_range): New.
9241         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9242         (check_cu_functions): New.
9243         (read_file_scope): Initialize global function lists.
9244         Call dwarf_decode_line after processing children.
9245         (read_func_scope): Add to global function list.
9246         (dwarf_decode_lines): Call check_cu_functions everywhere
9247         record_line is called.  Call record_line with a linenumber
9248         of 0 to mark sequence ends.
9249
9250 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
9251
9252         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9253         change sync with glibc.
9254
9255 2002-04-03  Jim Blandy  <jimb@redhat.com>
9256
9257         * configure.in: Call AC_C_INLINE.
9258         * configure: Regenerated.
9259
9260 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
9261
9262         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9263         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9264
9265 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
9266
9267         * NEWS: Mention gcore support on FreeBSD/i386.
9268
9269         * fbsd-proc.c: New file.
9270         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9271         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9272
9273         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9274         while statement.
9275
9276 2002-03-29  Jim Blandy  <jimb@redhat.com>
9277
9278         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9279         unescaped newlines in string literals, but newer ones don't.  So
9280         escape them.
9281
9282 2002-03-26  Michael Snyder  <msnyder@redhat.com>
9283             Andrew Cagney <cagney@redhat.com>
9284
9285         * cli/cli-dump.c: New file.  Dump memory to file,
9286         restore file to memory.
9287         * cli/cli-dump.h: New file.
9288         * Makefile.in: Add rules, dependencies for cli-dump.o.
9289         * NEWS: Mention new commands.
9290
9291 2002-03-28  Michael Snyder  <msnyder@redhat.com>
9292
9293         * symfile.c (symbol_file_add): Move test for null symbols to later.
9294
9295 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9296
9297         From veksler at il.ibm.com:
9298         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9299         the xstrduped original path.
9300         Fix PR gdb/417.
9301
9302 2002-03-27  Michael Snyder  <msnyder@redhat.com>
9303
9304         * breakpoint.c (_initialize_breakpoint): Clean up help string.
9305         * infcmd.c (_initialize_infcmd): Ditto.
9306         * language.c (_initialize_language): Ditto.
9307         * symfile.c (_initialize_symfile): Ditto.
9308         * top.c (_init_main): Ditto.
9309         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9310
9311 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
9312
9313         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9314         vector registers handling.
9315         (skip_prologue): Handle new AltiVec instructions.  Fill in new
9316         fields of frame data.
9317         (frame_get_saved_regs): Fill in information for AltiVec registers.
9318
9319 2002-03-27  Jim Blandy  <jimb@redhat.com>
9320
9321         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9322         a function; leave this macro here to invoke that function.
9323         (symbol_init_mangled_name): Declaration for that function.
9324         * symtab.c (symbol_init_mangled_name): New function.
9325
9326 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9327
9328         * valarith.c: Replace strerror with safe_strerror.
9329         * tracepoint.c: Ditto.
9330         * lin-lwp.c: Ditto.
9331         * go32-nat.c: Ditto.
9332         * inflow.c: Ditto.
9333         * gnu-nat.c: Ditto.
9334
9335 2002-03-27  Andreas Schwab  <schwab@suse.de>
9336
9337         * event-top.c (command_line_handler): Remove useless if.
9338
9339 2002-03-27  Andreas Jaeger  <aj@suse.de>
9340
9341         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9342         comment.
9343
9344 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
9345
9346         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9347         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9348         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9349         (x86_64_linux_dr_get_status, supply_gregset),
9350         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9351         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9352         (x86_64_register_info_table): Add.
9353         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9354         (x86_64_register_raw_size, x86_64_register_virtual_type),
9355         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9356         general x86_64_register_info_table.
9357         (i386_gdbarch_init): gdbarch_register_bytes is now set
9358         dynamicaly during initialization.
9359         * regformats/reg-x86-64.dat: Synced with changes to registers above.
9360         * gdbserver/linux-x86-64-low.c: Ditto.
9361
9362 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9363
9364         * gdbserver/server.c (main): Call target_signal_to_host_p
9365         and target_signal_to_host on signals received from the remote.
9366         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9367         target_signal_from_host on signals sent to the remote.
9368         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9369         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9370
9371 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9372
9373         * signals/signals.c: Include "server.h" in gdbserver build.
9374         (target_signal_from_name): Don't use STREQ.
9375         (_initialize_signals): Likewise.  Don't include function in
9376         gdbserver build.
9377
9378 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9379
9380         * signals.c: Moved to...
9381         * signals/signals.c: Here.
9382         * Makefile (signals.o): Update.
9383
9384 2002-03-26  Jeff Law (law@redhat.com)
9385
9386         * somread.c (som_symtab_read): Remove some commented out code and
9387         updated related comments.  Do not set the minimal symbol table to
9388         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9389         in a dynamic executable.
9390         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9391         where we are unable to find the minimal symbol for the given
9392         PC value.
9393
9394 2002-03-25  Jeff Law (law@redhat.com)
9395
9396         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9397
9398 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9399
9400         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9401
9402 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9403
9404         * command.h: Update copyright.
9405         (struct cmd_list_element): Replace definition with opaque
9406         declaration.
9407         (enum cmd_types): Document that it will eventually be moved to
9408         cli/cli-decode.h
9409         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9410         (MALLOCED_REPLACEMENT): Delete macro.
9411         * Makefile.in (cli_decode_h): Add $(command_h).
9412         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9413         * top.c: Include "cli/cli-decode.h".
9414         * completer.c: Include "cli/cli-decode.h".
9415         * maint.c: Include "cli/cli-decode.h".
9416         * cli/cli-decode.h: Include "command.h".
9417         (enum command_class): Delete.
9418         (enum cmd_types): Comment out.
9419         (enum cmd_auto_boolean): Delete.
9420         (enum var_types): Delete.
9421
9422 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9423
9424         * cli/cli-decode.c: Include "gdb_assert.h".
9425         (add_set_or_show_cmd): New static function.
9426         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9427         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9428         all fields, such as func, from the set command.
9429
9430 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9431
9432         * MAINTAINERS (sh-elf): Change warning flag to -w.
9433
9434 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9435
9436         * defs.h (error): Add printf format attribute.
9437         * thread-db.c (thread_from_lwp): Fix error format string.
9438         * stack.c (parse_frame_specification): Ditto.
9439         * cli/cli-decode.c (undef_cmd_error): Ditto.
9440         * scm-lang.c (scm_lookup_name): Ditto.
9441         * tracepoint.c (trace_error): Ditto.
9442         * remote-utils.c (usage): Ditto.
9443         * remote.c (compare_sections_command): Ditto.
9444         Fix PR gdb/328.
9445
9446 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9447
9448         * gdbtypes.c (append_composite_type_field): New function.
9449         (init_composite_type): New function.
9450         * gdbtypes.h (append_composite_type_field): Declare.
9451         (init_composite_type): Ditto.
9452
9453 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9454
9455         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9456         function.
9457         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9458         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9459         structure returning convention for SYSV ABI case, but not
9460         for GNU/Linux, FreeBSD, or NetBSD.
9461
9462 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9463
9464         * symtab.h (lookup_block_symbol): Add mangled_name argument
9465         to prototype.
9466
9467         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9468         with new mangled_name argument.
9469         * linespec.c (decode_line_1): Likewise.
9470         * valops (value_of_this): Likewise.
9471         * symtab.c (lookup_transparent_type): Likewise.
9472         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9473         (lookup_symbol): If we are given a mangled name, pass it down
9474         to lookup_symbol_aux.
9475         (lookup_block_symbol): If we are given a mangled name to check
9476         against, only return symbols which match it.
9477
9478 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9479
9480         * win32-nat.c (child_create_inferior): Check for proper shell to use
9481         here, in case the user changes it on the fly.
9482         (_initialize_inftarg): Remove shell path considerations.
9483
9484 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9485
9486         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9487         for gdbarch_max_register_raw_size and max_register_virtual_size.
9488         Adjust copyright year.
9489
9490 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9491
9492          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9493          in a function to cover the entire beginning of the function
9494          as well if it does not already.
9495
9496 2002-03-21  Tom Rix  <trix@redhat.com>
9497
9498         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9499         (rs6000_ptrace64): Renamed from ptrace64.
9500
9501 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9502
9503         * gdbserver/remote-utils.c (remote_open): Don't call
9504         getprotobyname, we're all using TCP here so just use
9505         IPPROTO_TCP.
9506         * gdbserver/gdbreplay.c (remote_open): Ditto.
9507
9508 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9509
9510         * regcache.c (_initialize_regcache): No need to call
9511         build_regcache() at this time; it gets called whenever
9512         the gdbarch changes.
9513
9514 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9515
9516         * sparc-nat.c:  Include sys/param.h where possible.
9517
9518 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9519
9520         Fix PR gdb/422.
9521         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9522         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9523         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9524         complex types.
9525         * stabsread.c (rs6000_builtin_type): Likewise.
9526         (read_sun_floating_type): Likewise.
9527
9528 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9529
9530         * stabsread.c (read_member_functions): Remove skip code for duplicate
9531         constructor/destructor methods.  Use standard parsing for these
9532         methods and just do not chain them to the list of methods after
9533         parsing.
9534
9535 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9536
9537         * coffread.c: Remove redundant static declarations.  Replace
9538         occurrences of `PTR' with `void *'.
9539         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9540         * top.h (quit_cover): Likewise.
9541         * defs.h (catch_errors): Likewise.
9542
9543 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9544
9545         * defs.h (XMALLOC): Define.
9546         * gdb-events.sh (XMALLOC): Delete macro.
9547         * gdb-events.c, gdb-events.h: Regenerate.
9548         * gdbarch.sh (XMALLOC): Delete macro.
9549         * gdbarch.c: Regenerate.
9550         * serial.c (XMALLOC): Delete macro.
9551         * ui-file.c (XMALLOC): Ditto.
9552         * ser-unix.h (XMALLOC): Ditto.
9553         * sh-tdep.c (XMALLOC): Ditto.
9554         * ui-out.c (XMALLOC): Ditto.
9555         * utils.c (XMALLOC): Ditto.
9556         * i386-tdep.c (XMALLOC): Ditto.
9557         * gdb-events.c (XMALLOC): Ditto.
9558         * d10v-tdep.c (XMALLOC): Ditto.
9559         * cli-out.c (XMALLOC): Ditto.
9560
9561         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9562         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9563         * ui-file.c, ui-out.c: Ditto.
9564
9565 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9566
9567         * command.h (struct cmd_list_element): Add field context.
9568         (set_cmd_context, get_cmd_context): Declare.
9569         * cli/cli-decode.h: Ditto.
9570         * cli/cli-decode.c (get_cmd_context): New function.
9571         (set_cmd_context): New function.
9572         (add_cmd): Initialize context.
9573         Part of fixing PR gdb/145 and PR gdb/146.
9574
9575 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9576
9577         * cli/cli-decode.c (cmd_type): New function.
9578         * command.h (cmd_type): Declare.
9579         * infrun.c (set_schedlock_func): Call function cmd_type.
9580         * kod.c (kod_set_os): Call cmd_type.
9581         * cris-tdep.c (cris_version_update): Use function cmd_type.
9582         (cris_mode_update, cris_abi_update): Ditto.
9583
9584         * command.h: (execute_cmd_post_hook): Declare.
9585         (execute_cmd_pre_hook): Declare.
9586         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9587         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9588         functions. Execute pre/post hook while ensuring that afterwords
9589         hook_in is cleared.
9590         * top.c (execute_command): Use execute_cmd_post_hook, and
9591         execute_cmd_pre_hook to execute pre/post commands.
9592         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9593         hook_stop_stub.
9594         (hook_stop_stub): Call execute_cmd_pre_hook.
9595
9596 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9597
9598         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9599         set'' and this leads to a core dump.  Move xstrdup of
9600         operating_system to after check that it is not NULL.
9601
9602 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9603
9604         * kod.c (kod_set_os): Remove unnecessary check that
9605         ``command->type'' is set_cmd.
9606
9607         * valprint.c (set_input_radix): Use input_radix.
9608         (set_output_radix): Use output_radix.
9609         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9610         isn't reverted.
9611
9612 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9613
9614         * value.h (struct value): Delete field ``substring_addr''.  Change
9615         aligner fields to force_doublest_align, force_longest_align,
9616         force_core_addr_align and force_pointer_aligh.
9617
9618         * value.h (struct value): Fix typo in above change.
9619
9620 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9621
9622         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9623         to fix internal_error from ``maintenance print architecture''.
9624
9625 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9626
9627         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9628         for gcc versions after gcc-2.8.1.
9629
9630 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9631
9632         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9633         for method resolution.  Restore adjustment of ``this'' pointer after
9634         calling value_struct_elt, which was accidentally removed during the
9635         HP merge.
9636
9637 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9638
9639         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9640         value_of_register.
9641         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9642         get_saved_register.
9643         * value.h (value_of_register): Update.
9644
9645 2002-03-14  Richard Henderson  <rth@redhat.com>
9646
9647         * configure.in: Detect declaration for canonicalize_file_name.
9648         * utils.c (canonicalize_file_name): Declare, if needed.
9649         (gdb_realpath): Prefer realpath if available and usable.
9650         * config.in, configure: Rebuild.
9651
9652 2002-03-14  Richard Henderson  <rth@redhat.com>
9653
9654         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9655         a constant array bound.
9656
9657         * MAINTAINERS: Add myself to write-after-approval.
9658
9659 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9660
9661         * symfile.c (syms_from_objfile): Return immediately if no syms.
9662         (symbol_file_add): Return immediately if no syms.
9663         (find_sym_fns): Return immediately if no syms.
9664
9665 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9666
9667         * gdbserver/remote-util.c (remote_open): Print remote-side's
9668         IP address when remote debugging over the network.
9669
9670 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9671
9672         * config/sparc/fbsd.mh: Fix copyright.
9673         * config/sparc/fbsd.mt: Likewise.
9674
9675 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9676
9677         * MAINTAINERS: Fix typo in name of gdb warnings option.
9678         (x86-64): Fix formating so that this can be parsed by awk.
9679
9680 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9681
9682         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9683         * defs.h: Include "gdb/signals.h".
9684         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9685
9686 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9687
9688         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9689         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9690         from x86-64-tdep.h
9691
9692 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9693             Don Howard <dhoward@redhat.com>
9694
9695         * mips-tdep.c (ST0_FR): Define.
9696         (mips2_fp_compat): New function, temporarily disabled.
9697         (mips_read_fp_register_single): New function.
9698         (mips_read_fp_register_double): New function.
9699         (mips_print_register): Use them.
9700         (do_fp_register_row): Likewise.
9701
9702 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9703
9704         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9705         approval''.
9706
9707 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9708
9709         * stabsread.c (read_member_functions): Fix is_stub test for
9710         static member functions, improve comment.
9711
9712 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9713
9714         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9715         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9716         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9717         commands that set boolean values.
9718         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9719         (arm_rdi_resume): Always initialize PC.
9720         (arm_rdi_open): Don't use rslt as a boolean.
9721         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9722         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9723         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9724         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9725
9726 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9727
9728         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9729         * configure: Rebuilt.
9730
9731 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9732
9733         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9734         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9735
9736 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9737
9738         * cli/cli-decode.c (set_cmd_completer): New function.
9739         * command.h (set_cmd_completer): Declare.
9740         * cli/cli-decode.h (set_cmd_completer): Ditto.
9741
9742         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9743         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9744         * win32-nat.c (_initialize_inftarg): Ditto.
9745         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9746         * proc-api.c (_initialize_proc_api): Ditto.
9747         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9748         * source.c (_initialize_source): Ditto.
9749         * exec.c (_initialize_exec): Ditto.
9750         * solib.c (_initialize_solib): Ditto.
9751         * top.c (init_main): Ditto.
9752         * tracepoint.c (_initialize_tracepoint): Ditto.
9753         * symfile.c (_initialize_symfile): Ditto.
9754         * printcmd.c (_initialize_printcmd): Ditto.
9755         * infcmd.c (_initialize_infcmd): Ditto.
9756         * corefile.c (_initialize_core): Ditto.
9757
9758 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9759
9760         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9761
9762 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9763
9764         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9765
9766 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9767
9768         * NEWS: Update headings, 5.2 has branched.
9769
9770 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9771
9772         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9773         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9774         (register_addr, REGISTER_RAW_SIZE): Likewise.
9775         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9776         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9777
9778 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9779
9780         * MAINTAINERS (x86-64): Add myself.
9781         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9782         changed value_ptr -> struct value *
9783
9784 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9785
9786         * configure.host (sparc64-*-freebsd): Add.
9787         * configure.tgt: Likewise.
9788         * config/sparc/fbsd.mh: New file.
9789         * config/sparc/fbsd.mt: Likewise.
9790         * config/sparc/nm-fbsd.h: Likewise.
9791         * config/sparc/tm-fbsd.h: Likewise.
9792
9793 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9794
9795         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9796         regformats/reg-s390x.dat.
9797
9798 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9799
9800         * utils.c: Add FIXME explaining true/false problem.
9801
9802 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9803
9804         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9805
9806 2002-02-28  Michael Chastain  <mec@shout.net>
9807
9808         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9809
9810 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9811
9812         * gdbserver/linux-s390-low.c: New file.
9813         * regformats/reg-s390.dat: New file.
9814         * regformats/reg-s390x.dat: New file.
9815         * gdbserver/configure.srv: Add S/390.
9816         * gdbserver/Makefile.in: Add S/390.
9817         * configure.tgt: Enable gdbserver for S/390.
9818
9819 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9820
9821         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9822         first line of the doc string for "info dos", except at the end of
9823         the sentence, since the short help stops at the first period.
9824
9825 2002-02-28  Jason Merrill  <jason@redhat.com>
9826
9827         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9828
9829 2002-02-27  Fred Fish  <fnf@redhat.com>
9830
9831         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9832         comment (dumy -> dummy).
9833
9834 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9835
9836         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9837
9838 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9839
9840       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9841
9842 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9843
9844         * gdbserver/acconfig.h: New file.
9845         * gdbserver/i387-fp.c: New file.
9846         * gdbserver/i387-fp.h: New file.
9847         * gdbserver/linux-x86-64.c: New file.
9848         * regformats/reg-x86-64.dat: New file.
9849         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9850         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9851         * gdbserver/configure.in: Add support for regsets.
9852         * gdbserver/config.in: Regenerate.
9853         * gdbserver/configure: Regenerate.
9854         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
9855         * gdbserver/linux-low.h: New file.
9856         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
9857         for regsets.
9858         * gdbserver/linux-arm-low.c: Include "linux-low.h".
9859         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9860         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9861         * gdbserver/linux-mips-low.c: Include "linux-low.h".
9862         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9863         * gdbserver/linux-sh-low.c: Include "linux-low.h".
9864         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
9865         "i387-fp.h".  Add PTRACE_GETREGS and friends.
9866         * gdbserver/regcache.c (supply_register): New function.
9867         (supply_register_by_name): New function.
9868         (collect_register): New function.
9869         (collect_register_by_name): New function.
9870
9871 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9872
9873         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9874         (config.status): Add configure.srv dependency.
9875         (server_h): Add config.h dependency.
9876
9877 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9878
9879         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9880         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9881         * gdbserver/configure.srv: Change i386-*-linux* to use
9882         reg-i386-linux.o.
9883
9884 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9885
9886         * x86-64-tdep.c: Re-indent.  Update copyright date.
9887
9888 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9889
9890         From Michal Ludvig <mludvig@suse.cz>:
9891         * x86-64-tdep.c (value.h): Delete.
9892         (gdb_assert.h): Include.
9893         (x86_64_register_convert_to_virtual,
9894         x86_64_register_convert_to_raw ): Add check which lets only
9895         floating-point values to be converted.
9896         (value_push): Delete.
9897         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9898         (i386_gdbarch_init): Number of register_bytes fixed.
9899
9900 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9901
9902         * MAINTAINERS: Add x86-64 target.
9903
9904 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9905
9906         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9907         * osfsolib.c (solib_map_sections): Ditto.
9908         * irix5-nat.c (solib_map_sections): Ditto.
9909         * corelow.c (gdb_check_format): Ditto.
9910         * symfile.c (symfile_bfd_open): Ditto.
9911         * solib.c (solib_map_sections): Ditto.
9912         Fix PR gdb/354.
9913
9914 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9915
9916         * remote.c (_initialize_remote): By default, disable ``e'' and
9917         ``E'' step out-of-range packets.
9918
9919 2002-02-26  Andreas Schwab  <schwab@suse.de>
9920
9921         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9922         m68k_linux_frame_saved_pc.
9923         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9924         in_sigtramp.
9925         (SIGCONTEXT_PC_OFFSET): Remove.
9926         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9927         m68k_linux_sigtramp_saved_pc): New functions.
9928         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9929         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9930         (UCONTEXT_PC_OFFSET): Define.
9931         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9932         non-RT and RT signal trampolines.
9933
9934 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
9935
9936         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9937         (TARGET_NBPG, STACK_END_ADDR): Delete
9938         (VARIABLES_INSIDE_BLOCK): Delete.
9939
9940 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
9941
9942         * utils.c (perror_with_name): Make string parameter constant.
9943         (print_sys_errmsg): Ditto.
9944         (query): Ditto.
9945         * defs.h (perror_with_name): Update.
9946         (print_sys_errmsg): Update.
9947         (query): Update.
9948
9949 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
9950
9951         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9952         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9953
9954 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9955
9956         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9957         if it already matches the current architecture from the exec file.
9958         Include arch-utils.h for gdbarch_info_init prototype.
9959         * Makefile.in (rs6000-nat.o): Update dependencies.
9960
9961 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
9962
9963         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9964          list of exported variables.
9965
9966 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
9967
9968         * gdbserver/configure.srv: New file.
9969         * gdbserver/configure.in: Use configure.srv instead
9970         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
9971         from it.
9972         * gdbserver/configure: Regenerated.
9973         * gdbserver/terminal.h: New file.
9974         * gdbserver/Makefile.in: Update for configure changes.  Remove
9975         more unneeded include paths.
9976
9977 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9978
9979         From wiz at danbala:
9980         * config/sparc/tm-sp64.h: Fix grammar and typos.
9981         Fix PR gdb/287.
9982
9983 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
9984
9985         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9986         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
9987         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9988         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9989         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9990         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9991         * s390-tdep.c: Ditto.
9992         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9993         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9994         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9995         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9996         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9997         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9998         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9999         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10000         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10001         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10002         Fix PR gdb/378.
10003
10004 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10005
10006         * lin-thread.c: Delete file.
10007         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10008         to gdb_proc_service.h.
10009         * configure: Re-generate.
10010
10011         * ocd.c (ocd_open): Do not try to open the "ocd" device.
10012         * serial.c (serial_open): Delete check for "ocd".
10013         Fix PR gdb/349.
10014
10015         * Makefile.in (linux-thread.o): Delete target.
10016         * linux-thread.c: Delete file.
10017
10018         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
10019         renamed SH files to be consistent.
10020
10021         * symtab.c (sort_search_symbols): Use xfree.
10022
10023 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10024
10025         * arm-linux-tdep.c (arm_linux_init_abi): Register
10026         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10027         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10028         definition with undef, since we don't want the sysvr4 definition.
10029         (SKIP_TRAMPOLINE_CODE): Likewise.
10030
10031 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10032
10033         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10034
10035         * configure.in: (AC_CHECK_FUNCS) Added test for
10036         canonicalize_file_name Regenerated.
10037         * config.in, configure: Regenerated.
10038         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10039         defined use canonicalize_file_name.
10040
10041 2002-02-23  Michael Chastain  <mec@shout.net>
10042
10043         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10044
10045 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10046
10047         * README: Remove references to cygnus.com.
10048         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10049         dot com'' form.  Remove references to cygnus.com and sourceware.
10050
10051 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10052
10053         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10054         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10055         1003.1-2001 no longer allows "head -1".
10056         * gdb/Makefile.in (version.c): Likewise.
10057         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10058         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10059         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
10060
10061 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10062
10063         * cli/cli-decode.c (cmd_cfunc_eq): New function.
10064         * command.h (cmd_cfunc_eq): Declare.
10065         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10066
10067         * cli/cli-cmds.h (is_complete_command): Change parameter to a
10068         ``struct cmd_list_element *''.
10069         * cli/cli-cmds.c (is_complete_command): Update.  Use
10070         cmd_cfunc_eq.
10071         * top.c (execute_command): Pass the command to
10072         is_complete_command.
10073         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10074
10075 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10076
10077         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10078         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10079         architecture defines.
10080         * s390-tdep.c (s390_gdbarch_init): Likewise.
10081
10082 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10083
10084         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10085         (arm_linux_push_arguments): Likewise.
10086         (arm_linux_init_abi): Register them.  Also register linux-specific
10087         call_dummy_words.
10088         (find_minsym_and_objfile): Use strcmp, not STREQ.
10089         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10090         (arm_linux_call_dummy_words): Delete declaration.
10091         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10092         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10093         declarations.
10094         (LOWEST_PC): Delete.
10095
10096 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10097
10098         * maint.c (print_section_info): Do not prepend `0x' to filepos
10099         output, it will be handled by local_hex_string_custom.
10100
10101 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10102
10103         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10104         (store_newfpe_double, store_newfpe_extended, store_fpregister)
10105         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10106
10107 2002-02-22  Jim Blandy  <jimb@redhat.com>
10108
10109         Indicate that the bcache functions don't change the strings
10110         they're passed.
10111         * bcache.h (bcache, hash): Add `const' keywords to declarations.
10112         * bcache.c (bcache, hash): Add `const' keywords to definitions.
10113
10114 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
10115
10116         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10117
10118 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10119
10120         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10121         find the complete path to a loaded DLL.
10122
10123 2002-02-21  Fred Fish  <fnf@redhat.com>
10124
10125         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10126         that marks the end of the range of a function, enter a line number
10127         entry that has a line number of zero and a PC offset that matches
10128         the end of the function.  This starts a range of PC's for which no
10129         line number information is known.
10130         * symtab.c (find_pc_sect_line): If our best fit is in a range of
10131         PC's for which no line number info is found (line number is zero)
10132         then we didn't find any valid line information.
10133         * symtab.h: Document use of zero line number entry.
10134
10135 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
10136
10137         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10138         (have_ptrace_getvrregs): Define for run time checks.
10139         (gdb_vrregset_t): New type for Altivec register handling.
10140         (fetch_register, store_register): Fetch/store altivec register
10141         when needed.
10142         (fetch_altivec_register, store_altivec_register): New functions.
10143         (supply_vrregset, fill_vrregset): New functions.
10144         (fetch_altivec_registers, store_altivec_registers): New functions.
10145         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10146         registers as well.
10147
10148 2002-02-21  Jiri Smid  <smid@suse.cz>
10149
10150         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10151
10152 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10153
10154         * Makefile.in (armnbsd-nat.o): Update dependencies.
10155         * armnbsd-nat.c (supply_gregset): New function.  Common code to
10156         supply the integer register set.
10157         (supply_fparegset): New function.  Similar for FPA registers.
10158         (fetch_regs, fetch_fp_regs): Use them.
10159         (fetch_core_registers): Likewise.
10160         (fetch_elfcore_registers): New function.
10161         (arm_netbsd_elfcore_fns): New core-file type specification.
10162         (_initialize_arm_netbsd_nat): Register it.
10163
10164 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10165
10166         * armnbsd-nat.c: Include gdbcore.h.
10167         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10168         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10169         'void' to declaration, to shut up ARI.
10170         (fetch_core_registers): Make static.  Rewrite using supply_register.
10171         (arm_netbsd_core_fns): New core-file type specification.
10172         (_initialize_arm_netbsd_nat): New function.
10173
10174 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10175
10176         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10177         value.
10178
10179 2002-02-20  Christopher Faylor  <cgf@redhat.com>
10180
10181         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10182         fails.
10183
10184 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10185
10186         * jv-exp.y (parse_number): Change type of implicit longs
10187         to builtin_type_uint64.
10188
10189 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10190
10191         * gdbserver/linux-low.c (mywait): Change argument to waitpid
10192         to be an integer instead of a `union wait'.
10193
10194 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10195
10196         * mips-linux-nat.c: Call the operating system GNU/Linux.
10197         * mips-linux-tdep.c: Likewise.
10198         * mips-tdep.c: Likewise.
10199
10200 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10201
10202         Fix PR gdb/265.
10203         * jv-exp.y (parse_number): Handle 64-bit integers.
10204
10205 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10206
10207         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
10208         AC_STDC_HEADERS to AC_HEADER_STDC.
10209         * gdbserver/configure: Regenerated.
10210
10211 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10212
10213         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10214         is defined.
10215         * sparc-tdep.c (get_longjmp_target): Likewise.
10216
10217 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10218
10219         * News: Add news about ARM and Multi-arch.  Mention the new target
10220         arm*-*-netbsd*.
10221
10222 2002-02-19  Jim Blandy  <jimb@redhat.com>
10223
10224         * stabsread.c (error_type_complaint): Improve error message.
10225
10226 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
10227
10228         * gdbserver/README: Update documentation.
10229         * gdbserver/configure.in: Update configury to match documentation.
10230         * gdbserver/Makefile.in: Likewise.
10231         * gdbserver/configure: Regenerated.
10232         * gdbserver/aclocal.m4: New file, generated by aclocal.
10233         * gdbserver/config.in: New file, generated by autoheader.
10234
10235 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10236
10237         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10238         armnbsd-nat.c.
10239
10240 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10241
10242         * arm-tdep.h (enum arm_float_model): New enum.
10243         (struct gdbarch_tdep): Add fp_model.
10244         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
10245         up floating-point conversions until we know the floating-point model
10246         in use by the inferior.  Don't complain about being unable to
10247         determine the ABI of the inferior when we don't have one.
10248         (arm_extract_return_value): Support different floating-point models.
10249         (arm_store_return_value): Likewise.
10250         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10251         ARM_FLOAT_SOFT.
10252         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10253
10254 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10255
10256         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10257         of ``current_gdbarch''.
10258
10259 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10260
10261         * armnbsd-nat.c : ANSIfy all function declarations.
10262         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10263         (fetch_inferior_registers): Re-implement in terms of above.
10264         (store_register, store_regs, store_fp_register, store_fp_regs): New.
10265         (store_inferior_registers): Re-implement in terms of above.
10266
10267 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10268
10269         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10270         kernel.
10271         * arm-linux-tdep.c: Likewise.
10272         * config/arm/tm-linux.h: Likewise.
10273
10274 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10275
10276         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10277         * config/arm/nbsd.mt (TM_FILE): Delete.
10278         * config/arm/tm-nbsd.h: Delete.
10279
10280 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10281
10282         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10283         Initialize CALL_DUMMY_LENGTH.
10284
10285 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10286
10287         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10288         function.
10289         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10290         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10291         defines one thing and that is incorrect for this port.
10292         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10293
10294 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10295
10296         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10297
10298 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10299
10300         * win32-nat.c (display_selector): New function. Displays information
10301         about the information returned by GetThreadSelectorEntry API function.
10302         (display_selectors): New function. Displays the infomation of
10303         the selector given as argument, or of CS, DS ans FS selectors
10304         if no argument is given.
10305         ( _initialize_inftarg): Add "w32" as info prefix command.
10306         Add "info w32 selector" as command calling display_selectors.
10307
10308 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
10309
10310         * i386-tdep.c (get_longjmp_target): Fix compilation failure
10311         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10312         if not defined.
10313
10314 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10315
10316         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10317
10318 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10319
10320         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10321         (arm_fix_call_dummy): Call it.
10322         (arm_call_dummy_breakpoint_offset): Delete.
10323         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10324         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10325
10326 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
10327
10328         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10329         Default to func_frame_chain_valid.
10330         * gdbarch.h, gdbarch.c: Re-generate.
10331         * frame.h (FRAME_CHAIN_VALID): Delete definition.
10332
10333 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
10334
10335         * ppc-linux-nat.c: Update copyright.
10336         (fetch_register, store_register): Add tid parameter, don't compute
10337         tid here.
10338         (fetch_ppc_registers, store_ppc_registers): Add tid
10339         parameter. Pass it along to callees.
10340         (fetch_inferior_registers, store_inferior_registers): Compute tid
10341         here, and pass it to calleed functions.
10342         (fill_gregset, supply_fpregset): Clean up formatting.
10343
10344 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10345
10346         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10347         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10348
10349 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10350
10351         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10352         * gdbarch.c gdbarch.h: Regenerate.
10353         * breakpoint.c (create_longjmp_breakpoint): Always compile this
10354         function.
10355         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10356         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10357         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10358
10359         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10360         * arm-tdep.c (arm_get_longjmp_target): New function.
10361         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
10362         this to a positive value register arm_get_longjmp_target as the
10363         longjmp handler.
10364         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10365         (arm_linux_init_abi): Set up longjmp description in tdep.
10366         * armnbsd-nat.c (get_longjmp_target): Delete.
10367         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10368         description in tdep.
10369         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10370         (get_longjmp_target): Delete declaration.
10371         (GET_LONGJMP_TARGET): Delete.
10372         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10373         (GET_LONGJMP_TARGET): Delete.
10374
10375 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10376
10377         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10378         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10379         of ``current_gdbarch''.
10380
10381 2002-02-17  Tom Tromey  <tromey@redhat.com>
10382
10383         * cli/cli-cmds.c (compare_strings): New function.
10384         (complete_command): Only print each unique item once.
10385         * completer.h (complete_line): Declare.
10386         * completer.c (complete_line): New function.
10387         (line_completion_function): Use it.
10388
10389 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10390
10391         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10392         * gdbarch.h, gdbarch.c: Re-generate.
10393
10394 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10395
10396         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10397
10398 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10399
10400         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10401         * valops.c (value_arg_coerce): Don't take the address of a reference
10402         to convert an argument to a reference.
10403
10404 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10405
10406         * win32-nat.c (get_image_name): New function.
10407         (handle_load_dll): Use get_image_name function.
10408         (get_child_debug_event): Avoid registering debug events until possibly
10409         execed process is started.
10410         (child_create_inferior): Allow invocation via shell so that command
10411         line redirection, etc.  works ok.
10412         (_initialize_inftarg): Add new command: "set shell" to control whether
10413         a shell is used to start a process.
10414
10415 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10416
10417         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10418         instead of find_register_by_number.
10419         (cannot_store_register): Likewise.
10420
10421 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10422
10423         * dwarf2read.c: Replace fprintf (stderr, ...) by
10424         fprintf_unfiltered (gdb_stderr, ...).
10425
10426 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10427
10428         * gdbserver/gdbserver.1: Document --attach.
10429
10430 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10431
10432         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10433         descriptions.
10434         * arm-tdep.c (arm_default_arm_le_breakpoint)
10435         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10436         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10437         traditional breakpoint defines.
10438         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10439         (arm_gdbarch_init): Initialize new breakpoint variables.
10440         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10441         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10442         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10443         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10444         code out to ...
10445         (arm_netbsd_init_abi_common): ... here; new function.
10446         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10447         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10448         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10449         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10450
10451 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10452
10453         * arm-tdep.h (enum arm_abi): New enum.
10454         (struct gdbarch_tdep): New structure.
10455         (LOWEST_PC): Provide a default.
10456         (arm_gdbarch_register_os_abi): Declare new function.
10457         * arm-tdep.c (arm_abi_names): New array.
10458         (process_note_abi_tag_sections): New function.
10459         (get_elfosabi): New function.
10460         (arm_gdbarch_register_os_abi): New function.
10461         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10462         support for that ABI has been built in, then call the appropriate
10463         configuration routine.  Use gdbarch_num_regs() to get the number
10464         of registers.
10465         (arm_dump_tdep): New function.
10466         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10467         place-holder functions.
10468         (_initialize_arm_tdep): Register them.
10469         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10470
10471         * armnbsd-tdep.c: New file.
10472         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10473         * config/arm/nbsd.mt (TDEPFILES): Add it.
10474         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10475
10476         * armnbsd-nat.c: Include regcache.h.
10477         * Makefile.in (armnbsd-nat.o): Update dependency list.
10478
10479         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10480
10481 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10482
10483         * gdbserver/Makefile.in: Fix typos in target rules.
10484
10485 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10486
10487         Fix part of PR gdb/267.
10488         * linespec.c (find_methods): Handle constructors specially for now.
10489
10490 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10491
10492         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10493         handling.
10494         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10495         standard_coerce_float_to_double().
10496
10497 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10498
10499         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10500         GDBINIT_FILENAME.
10501
10502 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10503
10504         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10505         find_variant_by_name, because it confuses the multiarch
10506         framework. Return NULL if there isn't an architecture with the
10507         user supplied name, instead of forcing a different one without
10508         recording the change with the multiarch machinery.
10509         (find_variant_by_name): Delete.
10510
10511 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10512
10513         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10514         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10515
10516 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10517
10518         * stack.c (print_frame_info_base): When calling
10519         print_frame_info_listing_hook, set current_source_symtab.
10520
10521 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10522
10523         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10524         and remove unused $(INCLUDE_DIR).
10525         Add regcache.c to OBS.
10526         Add generated register protocol files to clean target.
10527         Update dependencies for new objects, obsolete old target code.
10528
10529         * gdbserver/linux-low.c: Remove all platform-specific code to
10530         new files.  Remove various dead code.  Update to use regcache
10531         functionality.
10532         * gdbserver/remote-utils.c (fromhex): Add return statement
10533         to quiet warning.
10534         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10535         constant.
10536         (input_interrupt): Add integer parameter to match prototype
10537         of a signal handler.
10538         (outreg): Use register_data ().
10539         (prepare_resume_reply): Use gdbserver_expedite_regs.
10540         * gdbserver/server.c (main): Dynamically allocate own_buf because
10541         PBUFSIZ is no longer constant.  Use registers_to_string () and
10542         registers_from_string ().
10543         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10544         for error (), fatal (), and warning ().  Update definition of
10545         PBUFSIZ to use regcache functionality.  Add include guard.
10546         * gdbserver/utils.c (fatal): Add missing ``const''.
10547         (warning): New function.
10548
10549         * regformats/regdat.sh: Include "regcache.h" in generated files.
10550         Provide init_registers () function.
10551         * regformats/regdef.h: Add prototype for set_register_cache ().
10552         Add include guard.
10553
10554         * gdbserver/linux-arm-low.c: New file.
10555         * gdbserver/linux-i386-low.c: New file.
10556         * gdbserver/linux-ia64-low.c: New file.
10557         * gdbserver/linux-m68k-low.c: New file.
10558         * gdbserver/linux-mips-low.c: New file.
10559         * gdbserver/linux-ppc-low.c: New file.
10560         * gdbserver/linux-sh-low.c: New file.
10561
10562         * gdbserver/regcache.c: New file.
10563         * gdbserver/regcache.h: New file.
10564
10565         * gdbserver/low-linux.c: Removed obsolete file.
10566
10567 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10568
10569         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10570         * config/i386/linux.mt: Likewise.
10571         * config/ia64/linux.mt: Likewise.
10572         * config/m68k/linux.mh: Likewise.
10573         * config/powerpc/linux.mh: Likewise.
10574         * config/mips/linux.mt: Likewise.
10575
10576         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10577
10578         * config/i386/i386lynx.mh: Mark gdbserver variables
10579         as (currently) obsolete for this target.
10580         * config/i386/nbsd.mt: Likewise.
10581         * config/i386/nbsdelf.mt: Likewise.
10582         * config/m32r/m32r.mt: Likewise.
10583         * config/m68k/m68klynx.mh: Likewise.
10584         * config/m68k/nbsd.mt: Likewise.
10585         * config/m68k/sun3os4.mh: Likewise.
10586         * config/mips/vr5000.mt: Likewise.
10587         * config/ns32k/nbsd.mt: Likewise.
10588         * config/pa/hppabsd.mh: Likewise.
10589         * config/pa/hppaosf.mh: Likewise.
10590         * config/powerpc/nbsd.mt: Likewise.
10591         * config/rs6000/rs6000lynx.mh: Likewise.
10592         * config/s390/s390.mt: Likewise.
10593         * config/s390/s390x.mt: Likewise.
10594         * config/sparc/sparclynx.mh: Likewise.
10595         * config/sparc/sun4os4.mh: Likewise.
10596         * config/i386/x86-64linux.mt: Likewise.
10597         * config/sparc/linux.mh: Likewise.
10598
10599 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10600
10601         * configure.tgt: Configure gdbserver only for known working
10602         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10603         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10604         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10605         * configure: Regenerated.
10606
10607 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10608
10609         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10610
10611         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10612         (default_gcore_mach): Just return 0, work around a problem in bfd.
10613         (default_gcore_target): OK to return NULL if exec_bfd is null.
10614         (make_mem_sec): Use a cast, avoid a warning.
10615
10616         * procfs.c (find_memory_regions_callback): Use a cast instead of
10617         calling host_pointer_to_address (which complains if
10618         sizeof (host pointer) != sizeof (target pointer)).
10619         (procfs_make_note_section): Avoid overflow in psargs string.
10620
10621         * procfs.c (procfs_make_note_section): Make the default
10622         implementation return an error.
10623
10624 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10625
10626         * procfs.c (procfs_make_note_section): Provide a default definition
10627         (for alpha-dec-osf4.0f). Fix typos.
10628
10629 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10630
10631         * linux-proc.c: Add include of regcache.h.
10632         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10633
10634 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10635
10636         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10637         * memattr.c (create_mem_region): Disallow useless empty region.
10638         Regions are half-open intervals, so allow [A..B) [B..C) as
10639         non-overlapping.
10640
10641 2002-02-13  Michael Chastain <mec@shout.net>
10642
10643         * defs.h: Kill CONST_PTR.
10644         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10645         * c-lang.c (c_builtin_types): Likewise.
10646         * ch-lang.c (ch_builtin_types): Likewise.
10647         * f-lang.c (f_builtin_types): Likewise.
10648         * language.c (unknown_builtin_types): Likewise.
10649         * m2-lang.c (m2_builtin_types): Likewise.
10650         * p-lang.c (pascal_builtin_types): Likewise.
10651         * scm-lang.c (c_builtin_types): Likewise.
10652
10653 2002-02-13  Keith Seitz  <keiths@redhat.com>
10654
10655         * arm-tdep.h (arm_get_next_pc): Add declaration.
10656
10657 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10658
10659         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10660         with other related struct-returning functions.
10661         (arm_extract_struct_value_address): New function.
10662         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10663         initialize float_format, double_format and long_double_format as
10664         appropriate to the endianness of the target.
10665         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10666         (arm_use_struct_convention): Delete declaration.
10667         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10668
10669 2002-02-13  Keith Seitz  <keiths@redhat.com>
10670
10671         * defs.h (core_addr_to_string_nz): New function.
10672
10673 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10674
10675         Apply missing bits of 2002-01-15 patch.
10676         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10677         (fill_fpregset): Use i387_fill_fsave.
10678
10679 2002-02-12  Keith Seitz  <keiths@redhat.com>
10680
10681         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10682         (core_addr_to_string_nz): New function.
10683
10684 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10685
10686         * arm-linux-nat.c: Really include arm-tdep.h.
10687         * config/arm/tm-linux.h (struct type, struct value): Declare.
10688
10689 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10690
10691         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10692         (gcore section): Ifdef for Solaris and Unixware only.
10693         (procfs_do_thread_registers): Unixware needs one lwpstatus
10694         per thread (not one prstatus or pstatus).
10695         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10696         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10697         once before iterating over threads.
10698
10699 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10700
10701         * arm-tdep.h: New file.
10702         * arm-tdep.c: Include arm-tdep.h.
10703         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10704         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10705         (arm_print_float_info, arm_register_type, convert_to_extended)
10706         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10707         (arm_extract_return_value, arm_register_name): Make static.
10708         (arm_software_single_step): Similarly.  Fix types in declaration.
10709         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10710         (arm_store_return_value, arm_store_struct_return): New functions.
10711         (arm_gdbarch_init): Register the above functions.  Also register
10712         call_dummy_start_offset, sizeof_call_dummy_words,
10713         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10714         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10715         max_register_virtual_size, register_size.  Set up
10716         prologue_cache.saved_regs here, rather than ...
10717         (_initialize_arm_tdep): ... here.
10718         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10719         declarations.
10720         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10721         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10722         (arm_print_float_info, arm_register_type, convert_to_extended)
10723         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10724         (arm_extract_return_value, arm_register_name): Delete declarations.
10725         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10726         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10727         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10728         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10729         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10730         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10731         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10732         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10733         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10734         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10735         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10736         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10737         interface.
10738         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10739         * remote-rdi.c remote-rdp.c: Likewise.
10740         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10741         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10742         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10743         definition.
10744
10745         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10746         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10747         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10748         from non-ARM_ prefixed definitions.
10749         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10750         all uses of above.
10751         * remote-rdi.c remote-rdp.c: Likewise.
10752         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10753
10754 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10755
10756         * arm-tdep.c (arm_frameless_function_invocation)
10757         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10758         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10759         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10760         (arm_pop_frame, arm_get_next_pc): Make static.
10761         (arm_gdbarch_init): Register above in gdbarch structure.
10762         (arm_read_fp): Renamed from arm_target_read_fp.
10763         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10764         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10765         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10766         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10767         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10768         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10769         (arm_pc_is_thumb_dummy): Delete declarations.
10770         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10771         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10772         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10773         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10774
10775 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10776
10777         * symtab.c (compare_search_syms): New function.
10778         (sort_search_symbols): New function.
10779         (search_symbols): Sort symbols after searching rather than
10780         before.
10781
10782 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10783
10784         * NEWS: Linux -> GNU/Linux.
10785
10786 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10787
10788         * gdbarch.sh: For for level one methods, disallow a definition
10789         when partially multi-arched.  Add comments explaining rationale.
10790         * gdbarch.h: Re-generate.
10791
10792 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10793
10794         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10795         multi-arch partial.
10796
10797 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10798
10799         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10800         field.  Use diff -u.
10801         * gdbarch.c: Re-generate.
10802
10803 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10804
10805         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10806         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10807         partial.
10808
10809 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10810
10811         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10812         multi-arch partial.
10813         (PUSH_ARGUMENTS): Switch to using predefault.
10814         * gdbarch.c: Regenerate.
10815
10816 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10817
10818         * valops.c (PUSH_ARGUMENTS): Delete definition.
10819         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10820         partial.  Default to default_push_arguments.
10821         * gdbarch.h, gdbarch.c: Regenerate.
10822
10823 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10824
10825         * defs.h (throw_exception): Rename return_to_top_level.  Update
10826         comments.
10827         * utils.c (error_stream, internal_verror, quit): Ditto.
10828         * top.c (throw_exception, catcher): Ditto.
10829         * sparclet-rom.c (sparclet_load): Ditto.
10830         * remote.c (interrupt_query, minitelnet): Ditto.
10831         * remote-sds.c (interrupt_query): Ditto.
10832         * remote-mips.c (mips_error, mips_kill): Ditto.
10833         * ocd.c (interrupt_query): Ditto.
10834         * monitor.c (monitor_interrupt_query): Ditto.
10835         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10836         * target.h: Update comment.
10837
10838         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10839
10840 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10841
10842         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10843         default_double_format.
10844         * gdbarch.h, gdbarch.c: Re-generate.
10845         * findvar.c (floatformat_unknown): Delete variable definition.
10846         * doublest.h (floatformat_unknown): Delete variable declaration.
10847
10848 2002-02-09  Jim Blandy  <jimb@redhat.com>
10849
10850         * stabsread.c (read_type): Add code to parse Sun's syntax for
10851         prototyped function types.
10852
10853 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10854
10855         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10856         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10857
10858 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10859
10860         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10861         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
10862         now _initialize_xcoffsolib gets called again and overrides the
10863         commands from solib.c in a native configuration.
10864
10865 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
10866
10867         * doublest.c (store_typed_floating): Don't try to return a value.
10868         Fixes PR gdb/290.
10869
10870 2002-02-08  Jim Blandy  <jimb@redhat.com>
10871
10872         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10873         is prototyped and has no arguments, print its argument list as
10874         `(void)'.
10875
10876 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10877
10878         * MAINTAINERS (write-after-approval): Add myself.
10879         (paper-trail): I've escaped!
10880
10881 2002-02-08  Christopher Faylor  <cgf@redhat.com>
10882
10883         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10884         changes.
10885         (_initialize_check_for_gdb_ini): Ditto.
10886
10887 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
10888
10889         * win32-nat.c (cygwin_pid_to_str): Fix typo.
10890         xaprintf -> xasprintf.
10891
10892 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
10893
10894         * win32-nat.c: Remove use of printf and sprintf functions.
10895
10896 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
10897
10898         * arm-tdep.c (arm_frame_chain_valid): Make static.
10899         (arm_push_arguments): Likewise.
10900         (arm_gdbarch_init): New function.
10901         (_initialize_arm_tdep): Call it.
10902         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10903         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10904         (FRAME_CHAIN_VALID): Delete.
10905         (arm_frame_chain_valid): Delete declaration.
10906         (PUSH_ARGUMENTS): Delete.
10907         (arm_push_arguments): Delete declaration.
10908         (CALL_DUMMY_P): Delete.
10909
10910 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
10911             Corinna Vinschen  <vinschen@redhat.com>
10912
10913         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10914         on builtin float types.
10915
10916 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
10917
10918         * utils.c: Include <curses.h> before "bfd.h".
10919         * tui/tui-hooks.c: Likewise.
10920         * tui/tui.c: Likewise.
10921         * tui/tuiCommand.c: Likewise.
10922         * tui/tuiData.c: Likewise.
10923         * tui/tuiDataWin.c: Likewise.
10924         * tui/tuiDisassem.c: Likewise.
10925         * tui/tuiGeneralWin.c: Likewise.
10926         * tui/tuiIO.c: Likewise.
10927         * tui/tuiLayout.c: Likewise.
10928         * tui/tuiRegs.c: Likewise.
10929         * tui/tuiSource.c: Likewise.
10930         * tui/tuiSourceWin.c: Likewise.
10931         * tui/tuiStack.c: Likewise.
10932         * tui/tuiWin.c: Likewise.
10933
10934 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
10935
10936         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10937         to include space for pseudoregs as well. Update loops accordingly.
10938         (sh_fp_frame_init_saved_regs): Ditto.
10939         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10940
10941 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10942
10943         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10944         Add Richard Earnshaw to Arm maintainers.
10945
10946 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10947
10948         * defs.h (warning_begin): Delete declaration.
10949
10950         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10951         Delete macro.
10952
10953 2002-02-07  Michael Snyder  <msnyder@redhat.com>
10954
10955         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10956         Logic bug, remove misplaced else.
10957
10958 2002-02-07  Klee Dienes  <klee@apple.com>
10959
10960         * fork-inferior.c (fork_inferior): Add '!' to the list of
10961         characters that need to be quoted when building a string for the
10962         shell.  Quote '!' specifically with a backslash, since CSH chokes
10963         when trying to evaluate "str!str".
10964
10965 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
10966
10967         * rdi-share/host.h: Only provide a typedef for bool if it is not
10968         defined.
10969
10970 2002-02-04  Michael Snyder  <msnyder@redhat.com>
10971
10972         * breakpoint.h (enum bptype): Add new overlay event bp type.
10973         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10974
10975         * breakpoint.c (create_internal_breakpoint): New function.
10976         (internal_breakpoint_number): Moved into create_internal_breakpoint.
10977         (create_longjmp_breakpoint): Use create_internal_breakpoint.
10978         (create_thread_event_breakpoint): Ditto.
10979         (create_solib_event_breakpoint): Ditto.
10980         (create_overlay_event_breakpoint): New function.
10981         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10982         (update_breakpoints_after_exec): Delete and re-initialize
10983         overlay event breakpoints after an exec.  Add FIXME comment
10984         about longjmp breakpoint.
10985         (print_it_typical): Ignore overlay event breakpoints.
10986         (print_one_breakpoint): Ditto.
10987         (mention): Ditto.
10988         (bpstat_what): Do not stop for overlay event breakpoints.
10989         (delete_breakpoint): Don't delete overlay event breakpoints.
10990         (breakpoint_re_set_one): Delete the overlay event breakpoint.
10991         (breakpoint_re_set): Re-create overlay event breakpoint.
10992
10993         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10994         (overlay_manual_command): Disable overlay breakpoints.
10995         (overlay_off_command): Disable overlay breakpoints.
10996
10997 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
10998
10999         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11000         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11001         to here from config/tm-arm.h.
11002         (coff_sym_is_thumb): Make static.
11003         (arm_elf_make_msymbol_special): New function.
11004         (arm_coff_make_msymbol_special): New function.
11005         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11006         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11007         (coff_sym_is_thumb): Delete declaration.
11008         (arm_elf_make_msymbol_special): Declare.
11009         (arm_coff_make_msymbol_special): Declare.
11010         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11011         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11012
11013 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11014
11015         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11016
11017 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11018
11019         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11020         * gdbarch.c gdbarch.h: Regenerate.
11021         * arch-utils.c (default_print_float_info): New function.
11022         * arch-utils.h (default_print_float_info): Prototype it.
11023         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11024         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11025         (PRINT_FLOAT_INFO): Document it.
11026
11027         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11028         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11029         (PRINT_FLOAT_INFO): Define.
11030
11031 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11032
11033         * win32-nat.c (_initialize_check_for_gdb_ini):
11034         Add typecast to sprintf argument to suppress a warning.
11035
11036 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
11037
11038         * win32-nat.c (last_sig): Changed type of variable to target_signal,
11039         to allow easier handling of pass state.
11040         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11041         that gives exception name and address.
11042         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11043         and set last_sig value to ourstatus->value.sig. Some missing
11044         exceptions added.
11045         (child_continue): Correctly report continue_status.
11046         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11047         TARGET_SIGNAL_0 (new default value).
11048         (child_resume): consider sig argument passed to decide if
11049         the exception should be passed to debuggee or not.
11050
11051 2002-02-05  Michael Snyder  <msnyder@redhat.com>
11052
11053         * regcache.c (fetch_register): Call target_fetch_register
11054         only if we don't call FETCH_PSEUDO_REGISTER.
11055         (store_register): Call target_store_register only if we
11056         don't call STORE_PSEUDO_REGISTER.
11057
11058 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
11059
11060         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11061         ELF_MAKE_MSYMBOL_SPECIAL.
11062         * gdbarch.c, gdbarch.h: Regenerate.
11063         * arch-utils.c (default_make_msymbol_special): New function.
11064         * arch-utils.h (default_make_msymbol_special): Export.
11065         * elfread.c (elf_symtab_read): Compile use of
11066         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11067         multiarched.
11068         * coffread.c (coff_symtab_read): Ditto, for
11069         COFF_MAKE_MSYMBOL_SPECIAL.
11070
11071 2002-02-05  Jim Blandy  <jimb@redhat.com>
11072
11073         * solib-svr4.c (svr4_truncate_ptr): New function.
11074         (svr4_relocate_section_addresses): Do the address arithmetic with
11075         the appropriate truncation for target addresses, even when
11076         CORE_ADDR is larger than a target address.
11077
11078 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11079
11080         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11081         to (int *).
11082
11083 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11084
11085         * gdbserver/linux-low.c (kill_inferior): Remove commented out
11086         code.
11087
11088 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11089
11090         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11091
11092 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11093
11094         * gdbserver/linux-low.c: Remove unused include files.
11095
11096 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11097
11098         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11099         (read_inferior_memory): Use it.
11100         (write_inferior_memory): Likewise.
11101
11102 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11103
11104         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11105         grubbing through sys_errlist.
11106
11107 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11108
11109         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11110
11111 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11112         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11113
11114 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
11115
11116         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11117         (do_sfunc, set_cmd_sfunc): New functions.
11118
11119         * command.h (struct cmd_list_element): Add field func.
11120         * cli/cli-decode.h (struct cmd_list_element): Ditto.
11121         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11122         * cli/cli-decode.h: Ditto.
11123
11124         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11125         (help_all, help_cmd_list): Ditto.
11126         (find_cmd, complete_on_cmdlist): Ditto.
11127         * top.c (execute_command): Ditto.
11128
11129         * cli/cli-setshow.c (do_setshow_command): Call func instead of
11130         function.sfunc.
11131
11132         * infcmd.c (notice_args_read): Fix function signature.
11133
11134         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11135         * cli/cli-decode.c (add_set_cmd): Ditto.
11136         * utils.c (initialize_utils): Ditto.
11137         * maint.c (_initialize_maint_cmds): Ditto.
11138         * infrun.c (_initialize_infrun): Ditto.
11139         * demangle.c (_initialize_demangler): Ditto.
11140         * remote.c (add_packet_config_cmd): Ditto.
11141         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11142         * cris-tdep.c (_initialize_cris_tdep): Ditto.
11143         * proc-api.c (_initialize_proc_api): Ditto.
11144         * kod.c (_initialize_kod): Ditto.
11145         * valprint.c (_initialize_valprint): Ditto.
11146         * top.c (init_main): Ditto.
11147         * infcmd.c (_initialize_infcmd): Ditto.
11148         * corefile.c (_initialize_core): Ditto.
11149         * arm-tdep.c (_initialize_arm_tdep): Ditto.
11150         * arch-utils.c (initialize_current_architecture): Ditto.
11151         (_initialize_gdbarch_utils): Ditto.
11152         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11153
11154         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11155         * wince.c (_initialize_inftarg): Ditto.
11156         * symfile.c (_initialize_symfile): Ditto.
11157         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11158         * language.c (_initialize_language): Ditto.
11159         * arc-tdep.c (_initialize_arc_tdep): Ditto.
11160
11161 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11162
11163         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11164
11165 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11166
11167         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11168         Add rules for building the register data files.
11169
11170 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11171
11172         * regformats/regdat.sh: Add braces to the definition of
11173         expedite_regs_${arch}.
11174
11175 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11176
11177         * regformats/regdef.h (struct reg): Add comment describing the
11178         requirements for offset and size fields.
11179
11180 2002-02-04  Andreas Schwab  <schwab@suse.de>
11181
11182         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11183         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11184
11185 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
11186
11187         * gdbarch.sh (copyright): Update years in generated header.
11188         (SMASH_TEXT_ADDRESS): Add rule.
11189         * gdbarch.h, gdbarch.c: Re-generate.
11190         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11191         * dbxread.c: Likewise.
11192         * dwarfread.c: Likewise.
11193         * elfread.c: Likewise.
11194         * somread.c: Likewise.
11195
11196         * arm-tdep.c (arm_smash_text_address): New function.
11197         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11198
11199 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11200
11201         Add support for hardware watchpoints on win32 native.
11202         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11203         CONTEXT_DEBUG_REGISTERS.
11204         (dr variable): New variable. Static array containing a local copy
11205         of debug registers.
11206         (debug_registers_changed): New variable.  Reflects when debug registers
11207         are changed and need to be written to inferior.
11208         (debug_registers_used): New variable. Reflects when any debug register
11209         was set, used when new threads are created.
11210         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11211         i386-nat code.
11212         (thread_rec): Set dr array if id is the thread of current_event .
11213         (child_continue, child_resume): Change the debug registers for all
11214         threads if debug_registers_changed.
11215         (child_add_thread): Change the debug registers if debug_registers_used.
11216         * config/i386/cygwin.mh: Add use of i386-nat.o file.
11217         Link nm.h to new nm-cygwin.h file.
11218         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11219         of hardware registers.
11220
11221 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
11222
11223         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11224         Restore behavour broken by 2002-01-20 Andrew Cagney
11225         <ac131313@redhat.com> IEEE_FLOAT removal.
11226
11227 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11228
11229         * c-valprint.c (c_val_print): Pass a proper valaddr to
11230         cp_print_class_method.
11231         * valops.c (search_struct_method): If there is only one method
11232         and args is NULL, return that method.
11233
11234 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11235
11236         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11237         accessing tag_name directly.
11238
11239 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11240
11241         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11242         of accessing tag_name directly.
11243
11244 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11245
11246         PR gdb/280
11247         * gdbtypes.c (replace_type): New function.
11248         * gdbtypes.h (replace_type): Add prototype.
11249         * stabsread.c (read_type): Use replace_type.
11250
11251 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
11252
11253         * Makefile.in (memattr.o): Add missing dependencies rule.
11254
11255 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11256
11257         * breakpoint.c (break_at_finish_command): Really export.
11258         (break_at_finish_at_depth_command): Ditto.
11259         (tbreak_at_finish_command): Ditto.
11260         * hppa-tdep.c: Include completer.h.
11261         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11262         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11263
11264 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11265
11266         * utils.c (do_write): New function.
11267         (error_stream): Rewrite combining the code from error_begin and
11268         verror.
11269         (verror): Rewrite using error_stream.
11270         (error_begin): Delete function.
11271
11272 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11273
11274         * utils.c (error_begin): Make static.
11275         * defs.h (error_begin): Delete declaration.
11276
11277         * linespec.c (cplusplus_error): Replace cplusplus_hint.
11278         (decode_line_1): Use cplusplus_error instead of error_begin,
11279         cplusplus_hint and return_to_top_level.
11280         * coffread.c (coff_symfile_read): Use error instead of error_begin
11281         and return_to_top_level.
11282         * infrun.c (default_skip_permanent_breakpoint): Ditto.
11283
11284 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11285
11286         * language.h (type_error, range_error): Make string parameter
11287         constant.
11288         * language.c (warning_pre_print): Delete extern declaration.
11289         * dwarfread.c (warning_pre_print): Ditto.
11290         * language.c (type_error, range_error): Rewrite to use verror and
11291         vwarning instead of warning_begin.
11292
11293 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11294
11295         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11296         (set_ignore_count): Move misplaced comment back where it belongs.
11297
11298 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11299
11300         * command.h (NO_FUNCTION): Delete macro.
11301         * cli/cli-decode.h (NO_FUNCTION): Ditto.
11302         * top.c (execute_command): Replace NO_FUNCTION with NULL.
11303         * tracepoint.c (_initialize_tracepoint): Ditto.
11304         * cli/cli-decode.c (add_set_cmd): Ditto.
11305         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11306
11307 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11308
11309         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11310         Update ``this'' pointer when calling virtual functions.
11311
11312 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11313
11314         * breakpoint.c (create_temp_exception_breakpoint): Delete.
11315         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11316
11317 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11318
11319         * regformats/reg-arm.dat: New file.
11320         * regformats/reg-i386.dat: New file.
11321         * regformats/reg-ia64.dat: New file.
11322         * regformats/reg-m68k.dat: New file.
11323         * regformats/reg-mips.dat: New file.
11324         * regformats/reg-ppc.dat: New file.
11325         * regformats/reg-sh.dat: New file.
11326         * regformats/regdef.h: New file.
11327         * regformats/regdat.sh: New file.
11328
11329 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
11330
11331         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11332         (arm_frame_args_address, arm_frame_locals_address): New functions.
11333         (arm_frame_num_args): New function.
11334         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11335         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11336         (FRMA_NUM_ARGS): Call arm_frame_num_args.
11337
11338 2002-01-31  Michael Snyder  <msnyder@redhat.com>
11339
11340         * breakpoint.c (break_at_finish_command): Export.
11341         (break_at_finish_at_depth_command): Export.
11342         (tbreak_at_finish_command): Export.
11343         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11344         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11345         "txbreak" commands, which are HPPA specific.
11346
11347         * printcmd.c (disassemble_command): Remove an ancient
11348         artifact of an old merge.
11349
11350         * symfile.h (enum overlay_debugging_state):
11351         Define enum constant values for overlay mode.
11352         * symfile.c (overlay_debugging): Use enums instead of literals.
11353         (overlay_is_mapped, overlay_auto_command,
11354         overlay_manual_command): Ditto.
11355
11356         * breakpoint.c (insert_breakpoints, remove_breakpoint,
11357         breakpoint_here_p, breakpoint_inserted_here_p,
11358         breakpoint_thread_match, bpstat_stop_status,
11359         describe_other_breakpoints, check_duplicates, clear_command):
11360         Coding standard fixes.
11361
11362         * target.c (target_xfer_memory): Add spaces, coding standard.
11363         (do_xfer_memory): Add missing line to trust-readonly
11364         code: check bfd SEC_READONLY flag for section.
11365
11366 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11367
11368         * PROBLEMS: Fix typo, 5.1->5.1.1.
11369
11370 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11371
11372         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11373         data symbols, since we search based on textlow and texthigh.
11374         (find_pc_sect_symtab): Likewise.
11375
11376 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11377
11378         * defs.h (vwarning): Declare.
11379         * utils.c (vwarning): New function.
11380         (warning): Call vwarning.
11381         (warning_begin): Delete function.
11382
11383         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11384         the warning message.
11385         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11386         warning_begin.
11387
11388 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11389
11390         * NEWS: Mention "set trust-readonly-sections" command.
11391         Mention generate-core-file command.
11392
11393 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11394
11395         * target.c: New command, "set trust-readonly-sections on".
11396         (do_xfer_memory): Honor the suggestion to trust readonly sections
11397         by reading them from the object file instead of from the target.
11398         (initialize_targets): Register command "set trust-readonly-sections".
11399
11400 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11401
11402         * parse.c (target_map_name_to_register): Simplify, search regs and
11403         pseudo-regs using a single loop.
11404
11405 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11406
11407         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11408
11409 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11410
11411         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11412         * config/i386/i386v42mp.mh: Add i387-nat.o .
11413         * i386v4-nat.c: Include i387-nat.h.
11414         (supply_fpregset): Use i387_supply_fsave.
11415         (fill_fpregset): Use i387_fill_fsave.
11416
11417 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11418
11419         * arm-tdep.c (arm_call_dummy_words): Define.
11420         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11421         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11422         (CALL_DUMMY_WORDS): Define.
11423         (arm_call_dummy_words): Declare.
11424         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11425         (arm_linux_call_dummy_words): Declare.
11426
11427 2002-01-30  Andreas Schwab  <schwab@suse.de>
11428
11429         * m68klinux-nat.c: Fix last change to use regcache_collect
11430         instead of referencing registers[] directly.
11431
11432 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11433
11434         * parse.c (target_map_name_to_register): Delete code wrapped in
11435         #ifdef REGISTER_NAME_ALIAS_HOOK.
11436
11437 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11438
11439         * regcache.c (legacy_read_register_gen): Need to be able to
11440         read pseudo-register as well as real register.
11441         (legacy_write_register_gen): Ditto.
11442
11443 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11444
11445         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11446         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11447         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11448         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11449         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11450         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11451         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11452         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11453         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11454         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11455         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11456         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11457         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11458         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11459         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11460         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11461         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11462         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11463         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11464         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11465
11466 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11467
11468         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11469         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11470         (initialize_current_architecture): Update target_byte_order using
11471         information from BFD.
11472         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11473         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11474
11475 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11476
11477         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11478         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11479
11480         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11481         #ifdef INVALID_FLOAT.
11482         * infcmd.c (do_registers_info): Ditto.
11483         * values.c (unpack_double): Ditto.  Add comment.
11484
11485         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11486         already commented out.
11487
11488 2002-01-26  Andreas Schwab  <schwab@suse.de>
11489
11490         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11491         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11492         registers and add support for PTRACE_GETREGS.
11493
11494 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11495
11496         GDB 5.1.1 released from 5.1 branch.
11497         * NEWS: Add 5.1.1 news.
11498         * README: Sync with 5.1 branch.
11499
11500 2002-01-23  Fred Fish  <fnf@redhat.com>
11501
11502         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11503         stabstring on initial malloc.  Reallocing will copy it for us,
11504         if necessary.
11505
11506 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11507
11508         * Makefile.in (hpread_h): Delete.
11509         (HFILES_NO_SRCDIR): Remove hpread.h.
11510         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11511         (hpread.o): Update dependencies.
11512         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11513
11514         * hp-psymtab-read.c: Remove file.
11515         * hp-symtab-read.c: Remove file.
11516         * hpread.h: Remove file.
11517
11518         * hpread.c: Merge all contents of hp-psymtab-read.c,
11519         hp-symtab-read.c and hpread.h into this file, as it was prior to
11520         January 1999.
11521
11522         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11523         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11524         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11525         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11526
11527 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11528
11529         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11530         fill_gregset): Call gdbarch_tdep() just once, assign result to
11531         variable and use that, instead of calling the function several
11532         times.
11533
11534 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11535
11536         * configure.host: Accept sparcv9 as alias for sparc64.
11537         * configure.tgt: Likewise.
11538
11539 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11540
11541         * solib-aix5.c (build_so_list_from_mapfile)
11542         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11543         arguments is not reversed.
11544         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11545         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11546
11547 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11548
11549         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11550         modified version of obsolete sh_fetch_pseudo_register.
11551         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11552         (sh4_register_read): New function.
11553         (sh_pseudo_register_write): New function. Renamed and modified
11554         version of obsolete sh_store_pseudo_register.
11555         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11556         (sh4_register_write): New function.
11557         (sh_gdbarch_init): Remove setting of gdbarch function
11558         fetch_pseudo_register and store_pseudo_register. Remove setting of
11559         register_convert_to_raw, register_convert_to_virtual,
11560         register_convertible.
11561         (sh_sh4_register_convertible): Delete. No longer needed. All is
11562         taken care by architecture specific functions
11563         register_read/register_write.
11564         (sh_sh4_register_convert_to_virtual): Make static.
11565         (sh_sh4_register_convert_to_raw): Ditto.
11566
11567 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11568
11569         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11570         (floatformat_is_nan, floatformat_mantissa): Ditto.
11571
11572         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11573         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11574         builtin_type_ieee_double_little,
11575         builtin_type_ieee_double_littlebyte_bigword,
11576         builtin_type_m68881_ext, builtin_type_i960_ext,
11577         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11578         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11579         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11580         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11581
11582 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11583
11584         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11585         parameter.  Set frameless flag if it exists and depended of
11586         whether the scanned function is frameless or not.
11587         (xstormy16_skip_prologue): If function is frameless, return
11588         result of xstormy16_scan_prologue().
11589         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11590         call.
11591
11592 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11593
11594         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11595         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11596         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11597         sh_sh4_register_byte, sh_sh4_register_raw_size,
11598         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11599         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11600         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11601         sh_store_pseudo_register, sh_do_pseudo_register): Call
11602         gdbarch_tdep() just once, assign result to variable and use that,
11603         instead of calling the function several times.
11604
11605 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11606
11607         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11608         macros instead of LAST_FPU_CTRL_REGNUM.
11609         (store_register): Likewise.
11610
11611 2002-01-21  Jim Blandy  <jimb@redhat.com>
11612
11613         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11614         is up-to-date before running the program, not just when a program
11615         exits.
11616
11617 2002-01-21  Fred Fish  <fnf@redhat.com>
11618
11619         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11620         when we have found all instructions we are looking for.
11621
11622 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11623
11624         * arm-tdep.c (arm_register_name): New function.
11625         (arm_registers_names): Make static.
11626         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11627         (arm_register_name): Declare.
11628         (REGISTER_NAME): Use it.
11629
11630 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11631             Kevin Buettner  <kevinb@redhat.com>
11632
11633         Convert arm targets to new FRAME interface.
11634         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11635         (arm_frame_find_save_regs): Delete.
11636         (arm_frame_init_saved_regs): New.
11637         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11638         Allocate extra_info as required.  Convert all uses of fsr.regs
11639         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11640         to use extra_info.
11641         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11642         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11643         (check_prologue_cache, save_prologue_cache): Likewise.
11644         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11645         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11646         (FRAME_FIND_SAVED_REGS): Delete.
11647         (arm_frame_find_saved_regs): Delete prototype.
11648         (arm_frame_init_saved_regs): New prototype.
11649         (FRAME_INIT_SAVED_REGS): Define.
11650
11651 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11652
11653         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11654
11655 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11656
11657         From Jeff Law <law@redhat.com>:
11658         * infttrace.c: Include <sys/pstat.h>.
11659         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11660         exec file if the ttrace equivalent fails.
11661
11662 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11663
11664         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11665         (closeLogFile): Ditto.
11666
11667 2002-01-20  Michael Chastain  <mec@shout.net>
11668
11669         * top.c (print_gdb_version): Bump copyright year to 2002.
11670
11671 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11672
11673         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11674         Zannoni and Eli Zaretskii.
11675
11676 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11677
11678         * buildsym.c: Update copyright years.
11679         * c-typeprint.c: Likewise.
11680         * dwarf2read.c: Likewise.
11681         * f-typeprint.c: Likewise.
11682         * gdbtypes.c: Likewise.
11683         * gdbtypes.h: Likewise.
11684         * hp-symtab-read.c: Likewise.
11685         * hpread.c: Likewise.
11686         * mdebugread.c: Likewise.
11687         * p-typeprint.c: Likewise.
11688
11689 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11690
11691         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11692         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11693         byte-order selectable.
11694         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11695         * arch-utils.c: Ditto.
11696         (set_endian): Ditto.
11697         (set_endian_from_file): Ditto.
11698         * gdbserver/low-sim.c (create_inferior): Ditto.
11699         * gdbarch.sh: Ditto.
11700         * gdbarch.h: Re-generate.
11701         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11702         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11703         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11704         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11705         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11706         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11707         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11708         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11709         macro definition.
11710         * config/mips/tm-wince.h: Remove #undef of macro
11711         TARGET_BYTE_ORDER_SELECTABLE.
11712         * config/sh/tm-wince.h: Ditto.
11713
11714 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11715
11716         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11717         member function fields.  Add accessor macro
11718         TYPE_FN_FIELD_ARTIFICIAL.
11719         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11720         * c-typeprint.c (c_type_print_base): Skip artificial member
11721         functions.
11722
11723 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11724
11725         * f-typeprint.c: Delete unused function f_type_print_args.
11726         * p-typeprint.c: Delete unused function pascal_type_print_args.
11727
11728 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11729
11730         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11731         comment.  Add ``artificial'' to ``union field_location''.
11732
11733         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11734
11735         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11736         * mdebugread.c (parse_symbol): Likewise.
11737         * stabsread.c (define_symbol): Likewise.
11738         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11739         initializing TYPE_FIELD_BITPOS to n (obsolete).
11740         (hpread_doc_function_type): Likewise.
11741         * hpread.c (hpread_function_type): Likewise.
11742
11743 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11744
11745         * configure.in (host_makefile_frag): Only require a host makefile
11746         fragment when a native build.
11747         * configure: Re-generate.
11748
11749 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11750
11751         * doublest.h (floatformat_from_type): Declare.
11752         * doublest.c (floatformat_from_type): New function.
11753         (convert_typed_floating): Use.
11754
11755         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11756         call to function floatformat_from_type.
11757
11758         * gdbarch.sh (IEEE_FLOAT): Delete.
11759         * gdbarch.h, gdbarch.c: Re-generate.
11760         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11761         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11762         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11763         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11764         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11765         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11766         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11767         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11768         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11769         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11770         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11771         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11772
11773         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11774         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11775         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11776         * sh-tdep.c (sh_gdbarch_init): Ditto.
11777         * mips-tdep.c (mips_gdbarch_init): Ditto.
11778         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11779         * cris-tdep.c (cris_gdbarch_init): Ditto.
11780
11781 2002-01-20  Jiri Smid  <smid@suse.cz>
11782
11783         * configure.host, configure.tgt: Support x86-64.
11784         * NEWS: Note new target x86-64.
11785
11786         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11787         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11788         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11789         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11790         x86-64-linux-nat.o): Fix dependencies.
11791
11792 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11793
11794         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11795         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11796         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11797         * config/sparc/xm-sun4os4.h: Delete file.
11798         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11799
11800 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11801
11802         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11803         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11804         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11805         * config/i386/i386lynx.mh (XM_FILE): Delete.
11806         * config/rs6000/xm-rs6000ly.h: Delete file.
11807         * config/sparc/xm-sparclynx.h: Delete file.
11808         * config/m68k/xm-m68klynx.h: Delete file.
11809         * config/i386/xm-i386lynx.h: Delete file.
11810         * config/xm-lynx.h: Delete file.
11811         * config/djgpp/fnchange.lst: Update.
11812
11813 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11814
11815         * alpha-tdep.c (alpha_register_byte): New function.
11816         (alpha_register_raw_size): Ditto.
11817         (alpha_register_virtual_size): Ditto.
11818         (alpha_skip_prologue_internal): Renamed from
11819         alpha_skip_prologue.
11820         (alpha_skip_prologue): New version that calls
11821         alpha_skip_prologue_internal.
11822         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11823         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11824         second argument from alpha_skip_prologue.
11825         (REGISTER_BYTE): Use alpha_register_byte.
11826         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11827         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11828         (FRAMELESS_FUNCTION_INVOCATION): Use
11829         generic_frameless_function_invocation_not.
11830         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11831         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11832
11833 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11834
11835         * config/mips/xm-news-mips.h: Delete file.
11836         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11837
11838         * config/m88k/xm-m88k.h: Delete file.
11839         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11840         * config/m88k/xm-delta88v4.h: Ditto.
11841         * config/m88k/xm-delta88.h: Ditto.
11842
11843         * config/alpha/xm-fbsd.h: Delete file.
11844         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11845
11846         * config/sparc/xm-sparc.h: Delete file.
11847         * Makefile.in (xm-sun4os4.h): Delete dependency.
11848         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11849         * config/sparc/xm-sun4os4.h: Ditto.
11850         * config/sparc/xm-linux.h: Ditto.
11851
11852         * config/i386/xm-windows.h: Delete file.
11853
11854 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11855
11856         * utils.c: Include <sys/param.h> for MAXPATHLEN.
11857         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11858
11859 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11860
11861         * alpha-tdep.c (alpha_call_dummy_words): New.
11862         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11863         (CALL_DUMMY_P): Define.
11864         (CALL_DUMMY_WORDS): Define.
11865         (SIZEOF_CALL_DUMMY_WORDS): Define.
11866
11867 2002-01-19  Per Bothner  <per@bothner.com>
11868
11869         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
11870         isn't NULL, which can happen with some gcj-3.x-produced code.
11871
11872 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11873
11874         * alpha-tdep.c (alpha_register_virtual_type): New function.
11875         (alpha_init_frame_pc_first): Ditto.
11876         (alpha_fix_call_dummy): Ditto.
11877         (alpha_store_struct_return): Ditto.
11878         (alpha_extract_struct_value_address): Ditto.
11879         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11880         alpha_register_virtual_type.
11881         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11882         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11883         alpha_extract_struct_value_address.
11884         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11885         (INIT_FRAME_PC): Use init_frame_pc_noop.
11886         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11887
11888 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
11889
11890         * i386gnu-nat.c: Include "i386-tdep.h".
11891         (fetch_fpregs): Simplify code dealing with uninitialized floating
11892         point states such that it doesn't require FP7_REGNUM.
11893
11894 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11895
11896         * alpha-tdep.c (frame_extra_info): New.
11897         (alpha_find_saved_regs): Make static.  Use
11898         frame->extra_info.
11899         (alpha_frame_init_saved_regs): New function.
11900         (alpha_frame_saved_pc): Use frame->extra_info.
11901         (temp_saved_regs): Don't declare as struct frame_saved_regs.
11902         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11903         (init_extra_frame_info): Rename to...
11904         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
11905         (alpha_print_extra_frame_info): New function.
11906         (alpha_frame_locals_address): Ditto.
11907         (alpha_frame_args_address): Ditto.
11908         (alpha_pop_frame): Use frame->extra_info.
11909         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11910         alpha_frame_args_address.
11911         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11912         (alpha_find_saved_regs): Remove prototype.
11913         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11914         (EXTRA_FRAME_INFO): Remove.
11915         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11916         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11917
11918 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11919
11920         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11921         (alpha_cannot_fetch_register): Ditto.
11922         (alpha_cannot_store_register): Ditto.
11923         (alpha_register_convertible): Ditto.
11924         (alpha_use_struct_convention): Ditto.
11925         * config/alpha/tm-alpha.h: Update copyright years.
11926         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11927         (INNER_THAN): Use core_addr_lessthan.
11928         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11929         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11930         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11931         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11932         (FRAME_CHAIN): Remove unnecessary cast.
11933
11934 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11935
11936         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11937         obsolete.
11938
11939 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11940
11941         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
11942         * monitor.c, remote-array.c, remote-bug.c: Ditto.
11943         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11944         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11945         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11946         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11947         * x86-64-linux-nat.c: Ditto.
11948
11949 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11950
11951         * alpha-tdep.c (alpha_register_name): New function.
11952         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11953         (REGISTER_NAME): Define.
11954
11955 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11956
11957         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11958
11959 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11960
11961         * alpha-tdep.c: Update copyright years.
11962         (alpha_next_pc): New function.
11963         (alpha_software_single_step): Ditto.
11964         * config/alpha/tm-alpha.h: Add prototype for
11965         alpha_software_single_step.
11966
11967 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11968
11969         * alphabsd-nat.c: Update copyright years.
11970         (fill_gregset): Use regcache_collect.
11971         (fill_fpregset): Likewise.
11972         (fetch_inferior_registers): Only fetch integer registers
11973         if requested to do so.
11974         (store_inferior_registers): Only store integer registers
11975         if requested to do so.
11976
11977 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
11978
11979         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11980         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11981         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11982         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11983         * config/alpha/fbsd.mh (XDEPFILES): Delete.
11984         * config/arm/linux.mh (XDEPFILES): Delete.
11985         * config/arm/nbsd.mh (XDEPFILES): Delete.
11986         * config/i386/i386dgux.mh (XDEPFILES): Delete.
11987         * config/i386/i386sol2.mh (XDEPFILES): Delete.
11988         * config/i386/i386m3.mh (XDEPFILES): Delete.
11989         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11990         * config/i386/i386gnu.mh (XDEPFILES): Delete.
11991         * config/i386/fbsd.mh (XDEPFILES): Delete.
11992         * config/i386/i386bsd.mh (XDEPFILES): Delete.
11993         * config/i386/i386sco5.mh (XDEPFILES): Delete.
11994         * config/i386/i386v4.mh (XDEPFILES): Delete.
11995         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11996         * config/i386/i386sco4.mh (XDEPFILES): Delete.
11997         * config/i386/i386aix.mh (XDEPFILES): Delete.
11998         * config/i386/go32.mh (XDEPFILES): Delete.
11999         * config/i386/cygwin.mh (XDEPFILES): Delete.
12000         * config/i386/i386lynx.mh (XDEPFILES): Delete.
12001         * config/i386/i386mach.mh (XDEPFILES): Delete.
12002         * config/i386/i386v32.mh (XDEPFILES): Delete.
12003         * config/i386/linux.mh (XDEPFILES): Delete.
12004         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12005         * config/i386/ncr3000.mh (XDEPFILES): Delete.
12006         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12007         * config/i386/i386sco.mh (XDEPFILES): Delete.
12008         * config/i386/i386v.mh (XDEPFILES): Delete.
12009         * config/i386/nbsd.mh (XDEPFILES): Delete.
12010         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12011         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12012         * config/i386/symmetry.mh (XDEPFILES): Delete.
12013         * config/i386/obsd.mh (XDEPFILES): Delete.
12014         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12015         * config/ia64/linux.mh (XDEPFILES): Delete.
12016         * config/ia64/aix.mh (XDEPFILES): Delete.
12017         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12018         * config/m68k/dpx2.mh (XDEPFILES): Delete.
12019         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12020         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12021         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12022         * config/m68k/linux.mh (XDEPFILES): Delete.
12023         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12024         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12025         * config/m68k/nbsd.mh (XDEPFILES): Delete.
12026         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12027         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12028         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12029         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12030         * config/m88k/delta88.mh (XDEPFILES): Delete.
12031         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12032         * config/m88k/m88k.mh (XDEPFILES): Delete.
12033         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12034         * config/mips/linux.mh (XDEPFILES): Delete.
12035         * config/mips/irix6.mh (XDEPFILES): Delete.
12036         * config/mips/irix5.mh (XDEPFILES): Delete.
12037         * config/mips/irix4.mh (XDEPFILES): Delete.
12038         * config/mips/irix3.mh (XDEPFILES): Delete.
12039         * config/mips/decstation.mh (XDEPFILES): Delete.
12040         * config/mips/mipsm3.mh (XDEPFILES): Delete.
12041         (NATDEPFILES): Move core-aout.o to here.
12042         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12043         * config/pa/hpux1020.mh (XDEPFILES): Delete.
12044         * config/pa/hppabsd.mh (XDEPFILES): Delete.
12045         * config/pa/hppahpux.mh (XDEPFILES): Delete.
12046         * config/pa/hpux11w.mh (XDEPFILES): Delete.
12047         * config/pa/hppaosf.mh (XDEPFILES): Delete.
12048         * config/pa/hpux11.mh (XDEPFILES): Delete.
12049         * config/powerpc/aix.mh (XDEPFILES): Delete.
12050         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12051         * config/powerpc/linux.mh (XDEPFILES): Delete.
12052         * config/romp/rtbsd.mh: Rename XDEPFILES.
12053         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12054         * config/rs6000/aix4.mh (XDEPFILES): Delete.
12055         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12056         * config/s390/s390.mh (XDEPFILES): Delete.
12057         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12058         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12059         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12060         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12061         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12062         * config/sparc/nbsd.mh (XDEPFILES): Delete.
12063         * config/sparc/linux.mh (XDEPFILES): Delete.
12064         * config/vax/vaxult.mh (XDEPFILES): Delete.
12065         * config/vax/vaxult2.mh (XDEPFILES): Delete.
12066         * Makefile.in (DEPFILES): Remove XDEPFILES.
12067
12068 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12069
12070         * utils.c (internal_verror): Fix comments, default is yes not no.
12071         Update queries to match.  Default to quit and dump core.
12072
12073 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12074
12075         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
12076         copyright.
12077         * defs.h, event-top.c, gdbcmd.h: Ditto.
12078         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12079         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12080         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12081         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12082         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12083         * mi/mi-main.c:Ditto.
12084
12085         * stack.c, symfile.c: Update copyright.
12086
12087 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12088
12089         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12090         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12091         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12092         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12093
12094 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12095
12096         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12097         * gdbserver/low-lynx.c (myattach): Likewise.
12098         * gdbserver/low-nbsd.c (myattach): Likewise.
12099         * gdbserver/low-sim.c (myattach): Likewise.
12100         * gdbserver/low-sparc.c (myattach): Likewise.
12101         * gdbserver/low-sun3.c (myattach): Likewise.
12102
12103         * gdbserver/low-linux.c (myattach): New function.
12104
12105         * gdbserver/server.c (attach_inferior): New function.
12106         (main): Handle "--attach".
12107
12108 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
12109
12110         * MAINTAINERS (language support): Daniel Jacobwitz is C++
12111         maintainer.
12112
12113 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
12114
12115         * c-typeprint.c (is_type_conversion_operator): Add additional
12116         check for non-conversion operators.
12117
12118 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12119
12120         * linux-proc.c: Add "info proc" command, a la procfs.c.
12121         (read_mapping): New function, abstract and re-use code.
12122         (linux_find_memory_regions): Use new func read_mapping.
12123         (linux_info_proc_cmd): New function, implement "info proc".
12124         (_initialize_linux_proc): Add new command "info proc".
12125
12126 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12127
12128         * symfile.c (generic_load): Use bfd_map_over_sections method
12129         instead of manipulating bfd structure members directly.
12130         (add_section_size_callback): New function, bfd sections callback
12131         used by generic_load.
12132         (load_sections_callback): New function, bfd sections callback
12133         used by generic_load.
12134
12135 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
12136
12137         [Based on work by Jim Blandy]
12138         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12139         (builtin_type_vec128): Export.
12140         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12141         types.
12142         (builtin_type_vec128): New builtin type for 128 bit vector
12143         registers.
12144         (build_gdbtypes): Initialize builtin_type_v16qi and
12145         builtin_type_v8hi. Create the vec128 register builtin type
12146         structure.
12147         (build_builtin_type_vec128): New function.
12148         (_initialize_gdbtypes): Register builtin_type_v16qi and
12149         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12150         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12151         AltiVec register to new builtin type.
12152
12153 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
12154
12155         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12156         to make_cv_type.
12157
12158 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12159
12160         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12161         CLEAN_UP_REGISTER_VALUE.
12162         * regcache.c (supply_register): Update only call.
12163
12164 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12165
12166         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12167         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12168         a29k-*-vxworks* targets as obsolete.
12169
12170 2002-01-14  Michael Snyder  <msnyder@redhat.com>
12171
12172         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12173         until we can resolve portability issues.
12174         * gregset.h: Remove references to fpxregs.
12175         * gcore.c (gcore_command): Initialize note_sec to NULL.
12176
12177 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12178
12179         * signals.c (target_signal_to_name): Rewrite.  Only use
12180         signals[].name when in bounds and non-NULL.
12181
12182 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12183
12184         From Petr Ledvina <ledvinap@kae.zcu.cz>:
12185         * signals.c (target_signal_to_name): Verify that SIG is within the
12186         bounds of the signals array.
12187
12188 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12189
12190         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12191
12192 2002-01-13  Keith Seitz  <keiths@redhat.com>
12193
12194         * stack.c (print_frame_info_base): Print the frame's pc
12195         only if when print_frame_info_listing_hook is not defined.
12196
12197 2002-01-13  Keith Seitz  <keiths@redhat.com>
12198
12199         * varobj.c (varobj_set_value): Make sure that there were no
12200         errors evaluating the object before attempting to set its
12201         value.
12202         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12203         so this offset adjustment is no longer necessary.
12204         (create_child): Don't set the error flag if the child is
12205         a CPLUS_FAKE_CHILD.
12206         (value_of_child): If value_fetch_lazy fails, return NULL
12207         so that callers will be notified that an error occurred.
12208         (c_value_of_variable): Delay check of variable's validity
12209         until later. We actually want all structs and unions to have
12210         the value "{...}".
12211         Do not return "???" for variables which could not be evaluated.
12212         This error condition must be returned to the caller so that it
12213         can get the error condition from gdb.
12214         (cplus_name_of_child): Adjust index for vptr before figuring
12215         out the name of the child.
12216         (cplus_value_of_child): If a child's (real) parent is not valid,
12217         don't even bother trying to give a value for it. Just return
12218         an error. Change all instances in this function.
12219         (cplus_type_of_child): If our parent is one of the "fake"
12220         parents, we need to get at the type of the real parent, and
12221         derive the child's true type using this information.
12222
12223 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12224
12225         From 2002-01-09 John Marshall <johnm@falch.net>:
12226         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12227         sources.redhat.com, and tweak some related URLs which had
12228         suffered from linkrot.
12229
12230 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12231
12232         From Jeff law:
12233         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12234         structures passed in registers.
12235
12236 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
12237
12238         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12239         white space which prevented compilation.  Reported by DSK
12240         <dsk@student.unsw.edu.au>.
12241
12242 2002-01-11  Michael Snyder  <msnyder@redhat.com>
12243
12244         * symfile.c (build_section_addr_info_from_section_tab):
12245         Use bfd access method instead of manipulating bfd directly.
12246         (syms_from_objfile): Ditto.
12247         (simple_overlay_update_1): Ditto.
12248         (simple_overlay_update): Ditto.
12249         (generic_load): Ditto.
12250         (overlay_unmapped_address): FIXME comment, bfd access methods.
12251         (sections_overlap): FIXME comment, bfd access methods.
12252         (pc_in_mapped_range): FIXME comment, bfd access methods.
12253         (pc_in_unmapped_range): FIXME comment, bfd access methods.
12254         (section_is_mapped): FIXME comment, bfd access methods.
12255         (section_is_overlay): FIXME comment, bfd access methods.
12256
12257         * symfile.c (generic_load): Whitespace and long line cleanups.
12258         Remove duplicate variable, change several local variables to
12259         more appropriate data types.
12260         (print_transfer_performance): Use %lu instead of %ld for ulongs.
12261
12262 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12263
12264         From Peter Schauer:
12265         * language.c (longest_local_hex_string_custom): Use phex_nz to
12266         convert NUM to a hex string.
12267
12268 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
12269
12270         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12271         the function.
12272         Update Copyright year.
12273
12274 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12275
12276         * language.c (longest_raw_hex_string): Delete unused function.
12277
12278 2002-01-11  Petr Sorfa  <petrs@caldera.com>
12279
12280         * MAINTAINERS (write-after-approval): Add myself.
12281         * dwarf2read.c (read_tag_string_type): Handling of
12282         DW_AT_byte_size.
12283         (read_tag_string_type): FORTRAN fix to prevent propagation of
12284         first string size.
12285         (set_cu_language): Handling of DW_LANG_Fortran95
12286
12287 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
12288
12289         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12290         GETPID(inferior_ptid).
12291         (store_inferior_registers): Likewise.
12292
12293 2002-01-10  Jason Merrill  <jason@redhat.com>
12294
12295         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12296         Fix DW_OP_minus.
12297
12298 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
12299
12300         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12301         and bfd/elf32-sh-nbsd.c.
12302
12303 2002-01-10  Michael Snyder  <msnyder@redhat.com>
12304
12305         * NEWS: Mention --pid and corefile/proc-id behavior change.
12306
12307         * Makefile.in: Add rules for gcore.o and linux-proc.o.
12308         * gcore.c: Include cli/cli-decode.h instead of command.h.
12309
12310         * main.c (captured_main): Add new command line option "--pid".
12311         If the second command line argument (following the symbol-file)
12312         begins with a digit, try to attach to it before trying to open
12313         it as a corefile.
12314         (print_gdb_help): Document the "--pid" argument.
12315
12316 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
12317
12318         * completer.c (command_completer): New function.
12319
12320         * completer.h <command_completer>: Add prototype.
12321
12322         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12323         completer for the "help" command.
12324
12325 2002-01-09  Jason Merrill  <jason@redhat.com>
12326
12327         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12328
12329 2002-01-09  Michael Snyder  <msnyder@redhat.com>
12330
12331         * i386-linux-nat.c (fill_fpxregset): Make global.
12332         (store_fpxregset): Ditto.
12333
12334         * gregset.h (gdb_fpxregset_t): Define.
12335         (supply_fpxregset): Prototype.
12336         (fill_fpxregset): Prototype.
12337
12338         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12339
12340 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12341
12342         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12343         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12344         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12345
12346 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
12347
12348         * MAINTAINERS: Update target maintainer rules so that any
12349         Maintainer can approve a tested patch for a maintenance-only
12350         target.
12351
12352 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12353
12354         * MAINTAINERS (write-after-approval): Add myself.
12355
12356         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12357         IN_SIGTRAMP.
12358
12359 2002-01-08  Michael Snyder  <msnyder@redhat.com>
12360
12361         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12362         real name of the executable, rather than the /proc name.
12363
12364 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12365
12366         Implement a "generate-core-file" command in gdb, save target state.
12367         * gcore.c: New file.  Implement new command 'generate-core-file'.
12368         Save a corefile image of the current state of the inferior.
12369         * linux-proc.c: Add linux-specific code for saving corefiles.
12370         * target.h (struct target_ops): Add new target vectors for saving
12371         corefiles; to_find_memory_regions and to_make_corefile_notes.
12372         (target_find_memory_regions): New macro.
12373         (target_make_corefile_notes): New macro.
12374         * target.c (update_current_target): Inherit new target methods.
12375         (dummy_find_memory_regions): New place-holder method.
12376         (dummy_make_corefile_notes): New place-holder method.
12377         (init_dummy_target): Initialize new dummy target vectors.
12378         * exec.c (exec_set_find_memory_regions): New function.
12379         Allow the exec_ops vector for memory regions to be taken over.
12380         (exec_make_note_section): New function, target vector method.
12381         * defs.h (exec_set_find_memory_regions): Export prototype.
12382         * procfs.c (proc_find_memory_regions): New function, corefile method.
12383         (procfs_make_note_section): New function, corefile method.
12384         (init_procfs_ops): Set new target vector pointers.
12385         (find_memory_regions_callback): New function.
12386         (procfs_do_thread_registers): New function.
12387         (procfs_corefile_thread_callback): New function.
12388         * sol-thread.c (sol_find_memory_regions): New function.
12389         (sol_make_note_section): New function.
12390         (init_sol_thread_ops): Initialize new target vectors.
12391         * inftarg.c (inftarg_set_find_memory_regions): New function.
12392         Allow to_find_memory_regions vector to be taken over.
12393         (inftarg_set_make_corefile_notes): New function.
12394         Allow to_make_corefile_notes vector to be taken over.
12395         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12396         interface layer if not target_has_execution (may be a corefile).
12397         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12398         * config/sparc/sun4sol2.mh: Ditto.
12399         * config/alpha/alpha-linux.mh: Ditto.
12400         * config/arm/linux.mh: Ditto.
12401         * config/i386/x86-64linux.mh: Ditto.
12402         * config/ia64/linux.mh: Ditto.
12403         * config/m68k/linux.mh: Ditto.
12404         * config/mips/linux.mh: Ditto.
12405         * config/powerpc/linux.mh: Ditto.
12406         * config/sparc/linux.mh: Ditto.
12407
12408 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12409
12410         * arm-linux-nat.c: Remove references to regcache.c internal data
12411         (registers[] and register_valid[]).
12412
12413 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12414
12415         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12416         so that attaching to a pid will automatically read the process's
12417         symbol file and shlibs.
12418         * Makefile.in: Add rule for linux-proc.o.
12419         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12420         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12421         * config/arm/linux.mh: Ditto.
12422         * config/i386/linux.mh: Ditto.
12423         * config/i386/x86-64linux.mh: Ditto.
12424         * config/ia64/linux.mh: Ditto.
12425         * config/m68k/linux.mh: Ditto.
12426         * config/mips/linux.mh: Ditto.
12427         * config/powerpc/linux.mh: Ditto.
12428         * config/sparc/linux.mh: Ditto.
12429
12430 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12431
12432         * win32-nat.c: Add i386-tdep.h dependency.
12433
12434 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12435
12436         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12437         instead of bfd_get_arch_size.  Don't bail out just because
12438         there's no exec_bfd.
12439
12440         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12441         * p-valprint.c (pascal_object_print_value): Ditto.
12442         * somread.c (som_symtab_read): Ditto.
12443         * symfile.c (simple_free_overlay_region_table): Ditto.
12444         * valops.c (value_assign): Ditto.
12445
12446         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12447         use tilde_expand and strerror for opening save-tracepoints file.
12448
12449         * thread-db.c (thread_db_new_objfile): Indendation fix.
12450
12451         * infptrace.c (GDB_MAX_ALLOCA): New define.
12452         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12453         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12454         can be overridden with whatever value is appropriate to the host).
12455         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12456         alloca to allocate potentially large buffer.
12457         * rs6000-nat.c (child_xfer_memory): Ditto.
12458         * symm-nat.c (child_xfer_memory): Ditto.
12459         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12460
12461 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12462
12463         From Nick Clifton  <nickc@redhat.com>
12464         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12465
12466 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12467
12468         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12469         Don't use exec_bfd if it's NULL.
12470
12471 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12472
12473         * valops.c (value_arg_coerce): Fix formatting.
12474
12475 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12476
12477         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12478         * gnu-nat.c: Ditto.
12479
12480 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12481
12482         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12483         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12484         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12485         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12486         z8k-coff have not been multi-arched.  Update z8k-coff build
12487         status.
12488
12489 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12490
12491         * MAINTAINERS: Mark a29k target as obsolete.
12492         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12493         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12494         comments.
12495         * NEWS: Note that a29k targets are obsolete.
12496         * a29k-tdep.c: Mark as obsolete.
12497         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12498         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12499         a29k-*-vxworks* targets as obsolete.
12500         * remote-adapt.c: Obsolete.
12501         * remote-eb.c: Obsolete.
12502         * remote-mm.c: Obsolete.
12503         * remote-udi.c: Obsolete.
12504         * config/a29k/a29k-udi.mt: Obsolete.
12505         * config/a29k/a29k.mt: Obsolete.
12506         * config/a29k/tm-a29k.h: Obsolete.
12507         * config/a29k/tm-vx29k.h: Obsolete.
12508         * config/a29k/vx29k.mt: Obsolete.
12509
12510 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12511
12512         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12513         with BFD_ENDIAN_BIG.
12514
12515 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12516
12517         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12518         * configure, config.in: Re-generate.
12519         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12520         * defs.h: Do not include <endian.h>.
12521
12522 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12523
12524         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12525         * config.in: Regenerate.
12526         * configure.in: Update copyright years.
12527         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12528         * configure: Regenerate.
12529         * i386bsd-nat.c: Update copyright years.
12530         (fill_gregset): Use regcache_collect.
12531         (fetch_inferior_registers): Only fetch integer registers
12532         if requested to do so.  Add support for XMM registers
12533         using PT_GETXMMREGS.
12534         (store_inferior_registers): Only store integer registers
12535         if requested to do so.  Add support for XMM registers
12536         using PT_SETXMMREGS.
12537         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12538         (store_inferior_registers): Remove.
12539         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12540         (fetch_elfcore_registers): New function.
12541         (i386nbsd_elfcore_fns): New.
12542         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12543         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12544         i386bsd-nat.o.
12545         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12546         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12547         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12548         * config/i386/tm-nbsd.h: Update copyright years.
12549         (HAVE_SSE_REGS): Define.
12550         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12551         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12552         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12553         (SIGCONTEXT_PC_OFFSET): Remove.
12554         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12555
12556 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12557
12558         * configure.tgt: Remove powerpc-*-macos* target.
12559         * config/m68k/xm-mpw.h: Delete file.
12560         * config/xm-mpw.h: Delete file.
12561         * ser-mac.c: Delete file.
12562         * mpw-make.sed: Delete file.
12563         * mpw-config.in: Delete file.
12564         * mac-xdep.c: Delete file.
12565         * mac-gdb.r: Delete file.
12566         * mac-defs.h: Delete file.
12567         * mac-nat.c: Delete file.
12568         * config/powerpc/macos.mh: Delete file.
12569         * config/powerpc/macos.mt: Delete file.
12570         * config/powerpc/nm-macos.h: Delete file.
12571         * config/powerpc/tm-macos.h: Delete file.
12572         * source.c (openp, open_source_file): Remove obsolete code.
12573         * top.c (gdb_readline): Ditto.
12574         * utils.c (query): Ditto.
12575         * event-top.c (display_gdb_prompt): Ditto.
12576         * Makefile.in (ser-mac.o): Delete obsolete target.
12577         * NEWS: Update.
12578
12579 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12580
12581         * defs.h (BIG_ENDIAN): Delete macro definition.
12582         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12583         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12584         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12585         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12586         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12587         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12588         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12589         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12590         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12591         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12592         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12593         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12594         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12595         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12596         * gdbarch.c: Re-generate.
12597
12598 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12599
12600         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12601         for core files.
12602
12603 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12604
12605         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12606
12607 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12608
12609         * value.h (value_ptr): Delete typedef.
12610
12611 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12612
12613         * i386nbsd-nat.c: Update copyright years.
12614         Include i386-tdep.h.
12615
12616 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12617
12618         * stabsread.c: Update copyright years.
12619
12620         From Debashis Mahata <debashis.mahata@wipro.com>:
12621         (read_struct_fields): Deal with Sun C compiler erroneous stab
12622         output for structs and unions.
12623         Fix PR gdb/269.
12624
12625 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12626
12627         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12628         prototype.
12629
12630 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12631
12632         * cp-abi.c: Fix whitespace.
12633         (baseclass_offset): New wrapper function.
12634         * cp-abi.h (baseclass_offset): Add prototype.
12635         (struct cp_abi_ops): Add baseclass_offset pointer.
12636
12637         * valops.c (vb_match): Move to...
12638         * gnu-v2-abi.c (vb_match): here.
12639         * valops.c (baseclass_offset): Move to...
12640         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12641
12642         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12643
12644         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12645         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12646         * hpacc-abi.c (init_hpacc_ops): Likewise.
12647
12648 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12649
12650         * valops.c (find_overload_match): Accept obj as a
12651         reference parameter.  Update it before returning.
12652         * value.h (find_overload_match): Update prototype.
12653         * eval.c (evaluate_subexp_standard): Pass object to
12654         find_overload_match by reference.
12655
12656 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12657
12658         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12659         register attribute from value declarations.
12660         * valops.c: Ditto.
12661         * value.h: Ditto.
12662         * scm-lang.c (scm_lookup_name): Ditto.
12663
12664 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12665
12666         Abstract the functionality of iterating over mapped memory
12667         regions into a general purpose iterator function.
12668         * procfs.c (iterate_over_mappings): New function, general purpose
12669         iterator for memory sections.
12670         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12671         (solib_mappings_callback): New function, callback for above.
12672         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12673         (info_mappings_callback): New function, callback for above.
12674
12675         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12676
12677 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12678
12679         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12680         * i386-tdep.c: Include "elf-bfd.h".
12681         (process_note_abi_tag_sections): New function.
12682         (i386_gdbarch_init): Add code to recognize various OS/ABI
12683         combinations.
12684
12685         * maint.c (_initialize_maint_cmds): Add missing \ in
12686         string-literal.
12687
12688 For older changes see ChangeLog-2001
12689 \f
12690 Local Variables:
12691 mode: change-log
12692 left-margin: 8
12693 fill-column: 74
12694 version-control: never
12695 End: