* i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
[external/binutils.git] / gdb / ChangeLog
1 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2
3         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
4
5         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
6         FDOFF_REGNUM.
7
8 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
9
10         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
11         * dummy-frame.c (find_dummy_frame): Rename
12         generic_find_dummy_frame, make static.  Return the dummy frame
13         instead of the regcache.
14         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
15         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
16         (dummy_frame_register_unwind): Rename
17         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
18         * dummy-frame.h (dummy_frame_register_unwind): Rename
19         generic_call_dummy_register_unwind.
20
21 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
22
23         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
24         except the inclusion of "i386/tm-i386.h", to...
25         * config/i386/nm-i386v42mp.h: ...here.
26         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
27
28 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
29
30         * Makefile.in (frame.o): Update dependencies.
31         * blockframe.c (current_frame, frame_obstack_alloc)
32         (frame_saved_regs_zalloc, get_current_frame)
33         (set_current_frame, create_new_frame)
34         (set_unwind_by_pc, get_next_frame)
35         (flush_cached_frames, reinit_frame_cache)
36         (frame_saved_regs_register_unwind)
37         (deprecated_generic_get_saved_register)
38         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
39         (_initialize_blockframe): Move frame code from here...
40         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
41         "annotate.h" and "dummy-frame.h".
42         (_initialize_frame): New function.
43
44 2002-11-08  Jim Blandy  <jimb@redhat.com>
45
46         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
47         when we finish a function a context.
48         * buildsym.h (outermost_context_p): New macro.
49         (Bug analyzed by David Edelsohn.)
50
51 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
52
53         * blockframe.c: Include "dummy-frame.h".
54         (struct dummy_frame, dummy_frame_stack)
55         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
56         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
57         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
58         (generic_save_call_dummy_addr, generic_pop_current_frame)
59         (generic_pop_dummy_frame, generic_fix_call_dummy)
60         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
61         dummy frame code from here...
62         * dummy-frame.c: ...to here.  New file.
63         * dummy-frame.h: New file.
64         (generic_call_dummy_register_unwind): Declare.
65         (generic_find_dummy_frame): Declare.
66         * Makefile.in (SFILES): Add dummy-frame.c.
67         (dummy-frame.o): Specify dependencies.
68         (dummy_frame_h): Define.
69         (COMMON_OBS): Add dummy-frame.o.
70         (blockframe.o): Update dependencies.
71
72 2002-11-08  Jim Blandy  <jimb@redhat.com>
73
74         * dwarf2read.c (read_func_scope): Restore local_symbols and
75         param_symbols after we finish the function context.  (Based on a
76         patch from David Edelsohn.)
77
78 2002-11-08  David Carlton  <carlton@math.stanford.edu>
79
80         * linespec.c (symbol_found): New function.
81         (minsym_found): New function.
82         (decode_line_1): Separate out some code into separate functions.
83
84 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
85
86         * i386-tdep.c (i386_frameless_signal_p): Make non static for
87         the benefit of the interix target.
88         * i386-tdep.h (i386_frameless_signal_p): Declare.
89
90 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
91
92         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
93         declaration that snuck in from change below.
94
95 2002-11-06  Andrew Cagney  <cagney@redhat.com>
96
97         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
98         all callers.
99         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
100         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
101         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
102         (i386_mxcsr_regnum_p): new function.  Use instead of
103         MXCSR_REGNUM_P.
104         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
105         (i386_sse_regnum_p): Declare.
106         (i386_mxcsr_regnum_p): Declare.
107         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
108         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
109         (IS_FP_REGNUM): Update definition.
110         (IS_FPU_CTRL_REGNUM): Update definition..
111         (IS_SSE_REGNUM): Update definition..
112         * i386v-nat.c (register_u_addr): Update.
113         * go32-nat.c (fetch_register): Update.
114         (store_register): Update.
115
116 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
117
118         Preparation work to convert the hppa targets to multiarch partial.
119
120         * hppa-tdep.c: Add new functions replacing macro bodies from
121         config/pa/tm-hppa.h. These function will be used to initialize
122         the gdbarch structure. Import some comments from tm-hppa.h,
123         and place them where appropriate, to avoid loosing them when
124         we cleanup this file.
125         (hppa_reg_struct_has_addr): New function.
126         (hppa_inner_than): New function.
127         (hppa_stack_align): New function.
128         (hppa_pc_requires_run_before_use): New function.
129         (hppa_instruction_nullified): New function.
130         (hppa_register_byte): New function.
131         (hppa_register_virtual_type): New function.
132         (hppa_store_struct_return): New function.
133         (hppa_cannot_store_register): New function.
134         (hppa_frame_args_address): New function.
135         (hppa_frame_locals_address): New function.
136         (hppa_smash_text_address): New function.
137         (hppa_coerce_float_to_double): New function. Requires the inclusion
138         of "language.h".
139
140         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
141
142         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
143         gdbarch-eligible macro to a call to the new associated function
144         created in hppa-tdep.c.
145         (INNER_THAN): Likewise.
146         (STACK_ALIGN): Likewise.
147         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
148         (INSTRUCTION_NULLIFIED): Likewise.
149         (REGISTER_BYTE): Likewise.
150         (REGISTER_VIRTUAL_TYPE): Likewise.
151         (STORE_STRUCT_RETURN): Likewise.
152         (CANNOT_STORE_REGISTER): Likewise.
153         (FRAME_ARGS_ADDRESS): Likewise.
154         (FRAME_LOCALS_ADDRESS): Likewise.
155         (SMASH_TEXT_ADDRESS): Likewise.
156         (COERCE_FLOAT_TO_DOUBLE): Likewise.
157         (ABOUT_TO_RETURN): Delete, as no longer used.
158
159 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
160
161         * printcmd.c (disassemble_command): Remove obsolete function.
162         (_initialize_printcmd): Do not create disassemble command here.
163         * cli/cli-cmds.c (disassemble_command): New function.  Implements
164         disassemble command.
165         (init_cli_cmds): Create disassemble command here instead.
166
167 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
168
169         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
170
171 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
172
173         * regcache.h (regcache_cooked_read_using_offset_hack)
174         (regcache_cooked_write_using_offset_hack): Delete declarations.
175         (register_changed): Delete declaration.
176         * regcache.c (regcache_cooked_read_using_offset_hack)
177         (regcache_cooked_write_using_offset_hack): Delete functions.
178         (cooked_xfer_using_offset_hack): Delete function.
179         (register_changed): Delete function.
180
181 2002-11-07  Jim Blandy  <jimb@redhat.com>
182
183         * macroscope.c: #include "complaints.h".
184         (sal_macro_scope): Cope with filenames that appear in the symtabs,
185         but not in the macro table.
186         * Makefile.in (macroscope.o): Record dependency.
187
188 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
189
190         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
191
192 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
193
194         * regcache.c (deprecated_registers_fetched): Update.
195         * regcache.h (deprecated_registers_fetched): Rename
196         registers_fetched.
197         * remote-vxsparc.c (vx_read_register): Update.
198         * remote-vxmips.c (vx_read_register): Update.
199         * remote-vx68.c (vx_read_register): Update.
200         * irix5-nat.c (fetch_core_registers): Update.
201         * mipsm3-nat.c (fetch_inferior_registers): Update.
202         * sun3-nat.c (fetch_inferior_registers): Update.
203         * symm-nat.c (fetch_inferior_registers): Update.
204         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
205         (fetch_core_registers): Update.
206         (fetch_kcore_registers): Update.
207         * mips-nat.c (fetch_inferior_registers): Update.
208         * corelow.c (get_core_registers): Update.
209         * a68v-nat.c (fetch_inferior_registers): Update.
210
211 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
212
213         Put in place the framework necessary for multiarching the hppa targets.
214         * hppa-tdep.c (hppa_gdbarch_init): New function.
215         (hppa_dump_tdep): New function.
216         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
217         tdep structure dumper.
218         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
219         until the multi-arching conversion has partially been completed.
220
221 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
222
223         * valops.c (value_assign): Merge lval_register case into
224         lval_reg_frame_relative.  Use frame_register and
225         regcache_cooked_write instead of get_saved_register and
226         write_register_bytes.  After flushing the register cache, try to
227         re-select the selected frame.
228
229 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
230
231         * regcache.h (deprecated_register_valid): Rename register_valid.
232         * regcache.c: Update.
233         * ia64-aix-nat.c: Update.
234         * i386gnu-nat.c: Update.
235         * alpha-nat.c: Update.
236         * sparc-nat.c: Update.
237         * lynx-nat.c: Update.
238         * remote-mips.c: Update.
239
240 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
241
242         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
243         to end of file, to be more consistent with the pratice followed
244         by other targets.
245
246 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
247
248         * infcmd.c: Include "reggroups.h" and <ctype.h>.
249         (print_float_info): Print registers in float_reggroup.
250         (print_vector_info): Print registers in vector_reggroup.
251         (default_print_registers_info): When all, print registers in
252         all_reggroup.  Otherwize, print registers in general_reggroup.
253         (registers_info): Rewrite.  Add support for register groups.
254         Eliminate a goto.
255
256 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
257
258         * symtab.c (methods_info): Delete. It has been ifdeffed out for
259         ages.
260         (symtab_symbol_info): Remove eons old ifdeffed out code.
261         (_initialize_symtab): Remove prehistoric disabled 'info methods'
262         command.
263
264 2002-11-06  Theodore A. Roth  <troth@openavr.org>
265
266         * c-exp.y: Add missing semi-colons.
267         * f-exp.y: Add missing semi-colons.
268         * m2-exp.y: Add missing semi-colons.
269         * p-exp.y: Add missing semi-colons.
270         Add empty action to start rule to avoid a type clash error when
271         building with bison >= 1.50.
272
273 2002-11-06  Jim Blandy  <jimb@redhat.com>
274
275         * macrotab.h (struct macro_source_file): Doc fix.
276
277 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
278
279         * varobj.c (child_exists, cplus_number_of_children): Change
280         STREQ macro references to strcmp.
281         (cplus_name_of_child): Change code to handle the fact that
282         fields are not necessarily contiguous with regards to their 
283         access control. This is a fix for PR gdb/792.
284
285 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
286
287         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
288         * gdbarch.h, gdbarch.c: Regnerate.
289         * frame.h (frame_register): Declare.
290         * frame.c (frame_register): New function.
291         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
292         GET_SAVED_REGISTER, otherwize call
293         generic_unwind_get_saved_register.
294         (frame_register_read): Use frame_register instead of
295         get_saved_register.
296
297 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
298         
299         From Jim Ingham  <jingham@apple.com>:
300         * event-top.c (gdb_disable_readline): New function.
301         (_initialize_event_loop): Move comment.
302
303 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
304
305         * event-loop.c (start_event_loop): Add comment.
306         Update copyright.
307
308 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
309
310         * infcmd.c (default_print_registers_info): Do not call
311         PRINT_REGISTER_HOOK.
312
313 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
314
315         * sparc-tdep.c (sparc_print_register_hook): Make static.
316         (sparc_print_registers_info): New function.
317         (sparc_do_registers_info): New function.
318         (sparclet_print_registers_info): New function.
319         (sparclet_do_registers_info): New function.
320         (do_sparc_print_registers_info): New function.
321         (sparc_print_registers): New static function, clone of infcmd.c's
322         default_print_registers_info.
323         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
324         (sparclet_do_registers_info): Declare.
325         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
326         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
327         Re-define.
328         (sparc_do_registers_info): Declare.
329         (PRINT_REGISTER_HOOK): Delete macro.
330         (sparc_print_register_hook): Delete declaration.
331
332 2002-11-05  David Carlton  <carlton@math.stanford.edu>
333
334         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
335         functions.
336         (lookup_symbol_aux_local): New function.
337         (lookup_symbol_aux_symtabs): New function.
338         (lookup_symbol_aux_psymtabs): New function.
339
340 2002-11-05  David Carlton  <carlton@math.stanford.edu>
341
342         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
343         previous values of 'objfile' and 'block'.
344
345 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
346
347         * values.c (value_change_enclosing_type): Set 
348         enclosing_type field correctly also for the case where 
349         more memory needs to be allocated.
350
351 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
352
353         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
354         of puts_filtered.
355
356         * i387-tdep.c (i387_print_float_info): Replace calls to
357         register_read and deprecated_read_register_gen with calls to
358         frame_register_read, and make the necessary adjustments to the
359         surrounding code.
360
361 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
362
363         * gdbarch.sh (register_reggroup_p): Allow default value.
364         * gdbarch.h, gdbarch.c: Regenerate.
365
366 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
367
368         * regcache.h: Add coment indicating replacements for deprecated
369         functions.
370
371 2002-11-02  Andrew Cagney  <cagney@redhat.com>
372
373         * reggroups.h, reggroups.c: New files.
374         * regcache.c: Include "reggroups.h".
375         (enum regcache_dump_what): Add `regcache_dump_groups'.
376         (regcache_dump): Contract size of the "Type" column.  When
377         specified, dump the register's groups.
378         (maintenance_print_register_groups): New function.
379         (_initialize_regcache): Add command `maint print register-groups'.
380         * Makefile.in (COMMON_OBS): Add reggroups.o
381         (SFILES): Add reggroups.c.
382         (reggroups_h): Define.
383         (regcache.o, gdbarch.o): Update dependencies.
384         (reggroups.o): Specify dependencies.
385         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
386         Add opaque declaration for `struct reggroup' in generated .h file.
387         Include "reggroups.h" in generated .c file.
388         gdbarch.h, gdbarch.c: Re-generate.
389
390 2002-11-02  Andrew Cagney  <cagney@redhat.com>
391
392         * regcache.h (deprecated_read_register_gen): Rename
393         read_register_gen.
394         (deprecated_write_register_gen): Rename write_register_gen.
395         * i387-tdep.c: Update.
396         * x86-64-linux-nat.c: Update
397         * wince.c: Update.
398         * thread-db.c: Update.
399         * win32-nat.c: Update.
400         * mips-tdep.c: Update.
401         * d10v-tdep.c: Update.
402         * cris-tdep.c: Update.
403         * remote-sim.c: Update.
404         * remote-rdi.c: Update.
405         * remote-rdp.c: Update.
406         * frame.c: Update.
407         * target.c: Update.
408         * blockframe.c: Update.
409         * x86-64-tdep.c: Update.
410         * xstormy16-tdep.c: Update.
411         * sh-tdep.c: Update.
412         * s390-tdep.c: Update.
413         * rs6000-tdep.c: Update.
414         * sparc-tdep.c: Update.
415         * i386-tdep.c: Update.
416         * dwarf2cfi.c: Update.
417         * regcache.c: Update.
418
419 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
420
421         New interix-specific files:
422         * config/i386/nm-interix.h: New file.
423         * config/i386/interix.mh: New file.
424         * config/i386/interix.mt: New file.
425         * i386-interix-nat.c: New file.
426         * i386-interix-tdep.c: New file.
427
428 2002-11-01  Andrew Cagney  <cagney@redhat.com>
429
430         * frame.h (deprecated_generic_get_saved_register): Rename
431         generic_get_saved_register.
432         * blockframe.c (deprecated_generic_get_saved_register): Update.
433         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
434         (xstormy16_frame_saved_register): Update.
435         * sh-tdep.c (sh_gdbarch_init): Update.
436         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
437         * ia64-tdep.c (ia64_get_saved_register): Update.
438         * cris-tdep.c (cris_gdbarch_init): Update.
439         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
440         * arm-tdep.c (arm_gdbarch_init): Update.
441
442 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
443
444         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
445
446 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
447
448         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
449         trampolines in sigaction.
450
451 2002-10-31  Andrew Cagney  <cagney@redhat.com>
452
453         * h8300-tdep.c: Include "gdb_assert.h".
454         (h8300_print_register): Add gdbarch, file and frame parameters.
455         Use frame_read_unsigned_register to read the register's value.
456         Use fprintf_filtered to display output.
457         (h8300_print_registers_info): Replace h8300_do_registers_info.
458         (h8300_gdbarch_init): Set print_registers_info.
459
460 2002-10-31  Andrew Cagney  <cagney@redhat.com>
461
462         * frame.c (frame_read_unsigned_register): New function.
463         (frame_read_signed_register): New function.
464         * frame.h (frame_read_unsigned_register): Declare.
465         (frame_read_signed_register): Declare.
466
467 2002-10-31  Andrew Cagney  <cagney@redhat.com>
468
469         * h8500-tdep.c (h8500_print_registers_info): New static function,
470         clone of infcmd.c's default_print_registers_info.
471         (h8500_do_registers_info): New funtion.
472         (h8500_print_register_hook): Rename print_register_hook, make
473         static.
474
475         * config/h8500/tm-h8500.h: Update copyright.
476         (DEPRECATED_DO_REGISTERS_INFO): Define.
477         (h8500_do_registers_info: Declare.
478         (PRINT_REGISTER_HOOK): Delete macro.
479         (print_register_hook): Delete function.
480
481 2002-10-31  Andrew Cagney  <cagney@redhat.com>
482
483         * z8k-tdep.c (z8k_print_register_hook): Make static.
484         (z8k_print_registers_info): New static function, clone of
485         infcmd.c's default_print_registers_info.
486         (z8k_do_registers_info): New function.  Wrap
487         z8k_print_registers_info.
488         * config/z8k/tm-z8k.h: Update copyright.
489         (PRINT_REGISTER_HOOK): Delete macro.
490         (z8k_print_register_hook): Delete declaration.
491         (DEPRECATED_DO_REGISTERS_INFO): Define.
492         (z8k_do_registers_info): Declare.
493
494 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
495
496         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
497         as this is already provided by value.h, and was actually causing
498         a compilation error because of a conflict in parameter type
499         declaration due to a missing const keyword.
500         (low_text_segment_addres): Fix a compilation warning.
501
502 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
503
504         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
505         registers without a name.
506         (mips_linux_cannot_store_register): Don't store registers without
507         a name.
508
509 2002-10-28  David Carlton  <carlton@math.stanford.edu>
510
511         * symtab.c (find_addr_symbol): Delete.  (It was already commented
512         out.)
513         * symtab.h: Delete prototype for find_addr_symbol.
514
515 2002-10-26  Andrew Cagney  <cagney@redhat.com>
516
517         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
518         DO_REGISTERS_INFO.
519         gdbarch.h, gdbarch.c: Re-generate.
520         * infcmd.c (default_print_registers_info): Update reference.
521         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
522         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
523         * sh-tdep.c (sh_gdbarch_init): Ditto.
524         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
525         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
526
527 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
528
529         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
530         cfi_init_extra_frame_info.
531         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
532         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
533
534         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
535         target where necessary.  Add more comments and remove the ones
536         that don't provide any useful information.
537
538         * i386-tdep.c (i386_frame_saved_pc): Replace call to
539         deprecated_read_register_dummy with
540         frame_unwind_unsigned_register.
541
542         * i386-tdep.c (i386_extract_struct_value_address): Use
543         regcache_raw_read_unsigned instead of
544         regcache_cooked_read_unsigned since we know that the register
545         we're reading isn't a pseudo register.  Rename variable 'val' into
546         the more descriptive 'addr'.
547
548         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
549         (x86_64_push_return_address): Add comment.
550         (x86_64_pop_frame): Make static.
551         (examine_argument): Clarify comment.
552         (x86_64_skip_prologue): Make prolog_expact variable static.
553
554         * dwarf2cfi.c: Fix some formatting problems.
555         (context_cpy, read_encoded_pointer): Clarify comments.
556
557         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
558         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
559         i386 target back into x86_64_gdbarch_init.  Add some comments and
560         remove meaningless ones.
561
562 2002-10-25  Andrew Cagney  <cagney@redhat.com>
563
564         * complaints.h (struct deprecated_complaint): Rename `struct
565         complaint'.
566         * complaints.c (complain): Update.
567         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
568         incorrect comment indicating that "symfile.h" was being included
569         for the `struct complaint' definition.
570         * remote-vx.c: Update.
571         * objc-lang.c: Update.
572         * xcoffread.c: Update.
573         * hpread.c: Update.
574         * mdebugread.c: Update.
575         * stabsread.c: Update.
576         * dwarf2read.c: Update.
577         * dwarfread.c: Update.
578         * elfread.c: Update.
579         * coffread.c: Update.
580         * stabsread.h: Update.
581         * dbxread.c: Update.
582         * buildsym.c: Update.
583         * gdbtypes.c: Update.
584         * macrotab.c: Update.
585
586 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
587
588         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
589         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
590         (x86_64_init_abi): ...new function.
591
592         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
593         * i386v-nat.c: Include "i386-tdep.h".
594
595 2002-10-25  Andrew Cagney  <cagney@redhat.com>
596
597         * gdbtypes.c (address_space_name_to_int): Update.
598         (address_space_int_to_name): Update.
599         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
600         multi-arch predicate.
601         (address_class_name_to_type_flags): Ditto.
602         * gdbarch.h, gdbarch.c: Re-generate.
603         
604         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
605
606 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
607
608         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
609
610 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
611
612         * symtab.h (INIT_SAL): Delete macro.
613         (init_sal): Export.
614         * symtab.c (init_sal): New function.
615
616         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
617         to init_sal function call.
618         (find_sal_from_funcs_and_line): Ditto.
619         (all_sals_for_line): Ditto. 
620         * breakpoint.c (create_internal_breakpoint): Ditto. 
621         (create_fork_vfork_event_catchpoint): Ditto. 
622         (create_exec_event_catchpoint): Ditto. 
623         (parse_breakpoint_sals): Ditto. 
624         (watch_command_1): Ditto. 
625         (handle_gnu_4_16_catch_command): Ditto.
626         (clear_command): Ditto. 
627         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
628         * infcmd.c (run_stack_dummy): Ditto. 
629         * infrun.c (process_event_stop_test): Ditto.
630         (check_sigtramp2): Ditto.
631         (step_over_function): Ditto. 
632         * linespec.c (decode_line_2): Ditto. 
633         (decode_line_1): Ditto. 
634         * source.c (line_info): Ditto. 
635         * symtab.c (find_pc_sect_line): Ditto.
636
637 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
638
639         * dwarf2cfi.c (struct context)
640         (struct context_reg): Moved to dwarf2cfi.h
641         (context_alloc, frame_state_alloc, context_cpy):
642         Made extern instead of static, removed prototypes.
643         * dwarf2cfi.h (struct context)
644         (struct context_reg): New, moved from dwarf2cfi.c
645         (context_alloc, frame_state_alloc, context_cpy):
646         New prototypes.
647         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
648         Changed from static to extern.
649         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
650         (LINUX_SIGCONTEXT_FP_OFFSET)
651         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
652         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
653         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
654         * x86-64-tdep.c (x86_64_gdbarch_init): Several
655         set_gdbarch_*() calls now use x86-64 specific functions 
656         instead of DWARF2 CFI ones.
657         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
658         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
659         (x86_64_init_extra_frame_info): New prototypes.
660         
661 2002-10-23  David Carlton  <carlton@math.stanford.edu>
662
663         * linespec.c: #include "parser-defs.h".
664         Delete prototype for find_template_name_end.
665         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
666
667 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
668
669         * NEWS: add recent mi fixes.
670         * varobj.c (struct varobj): Add new "updated" flag.
671         (new_variable): Default "updated" flag to 0.
672         (varobj_set_value): Set "updated" flag to 1 if value
673         changes.
674         (varobj_update): Check varobj "updated" flag before
675         comparing old and refreshed values.  Fix for
676         PR gdb/702.
677
678 2002-10-23  David Carlton  <carlton@math.stanford.edu>
679
680         * parse.c (parse_exp_1): Use BLOCK_START.
681         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
682         SYMBOL_BLOCK_VALUE.
683         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
684
685 2002-10-23  David Carlton  <carlton@math.stanford.edu>
686
687         * symtab.c: Delete cplusplus_hint.
688         Delete prototype for find_template_name_end.
689
690 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
691
692         * symtab.h: Update comment.
693
694 2002-10-23  Michael Snyder  <msnyder@redhat.com>
695
696         * printcmd.c (address_info): Restore quotes in output.
697         * valops.c (value_of_local): Restore quotes in error message.
698
699 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
700
701         * symtab.c (symbol_demangled_name): New function.
702         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
703         turning most of it into a function.
704         (symbol_demangled_name): Export.
705
706 2002-10-23  Michael Snyder  <msnyder@redhat.com>
707
708         * valops.c (value_of_local): Restore quotes in error message.
709
710 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
711
712         * symtab.c (symbol_init_language_specific): New function.
713         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
714         turning most of it into a function.
715         (symbol_init_language_specific): Export.
716
717 2002-10-23  David Carlton  <carlton@math.stanford.edu>
718
719         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
720         (dwarf_attr_name): Ditto.
721         (dwarf_type_encoding_name): Ditto.
722         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
723         (process_die): Handle DW_TAG_namespace,
724         DW_TAG_imported_declaration, DW_TAG_imported_module.
725         (read_namespace): New function.
726
727 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
728
729         * configure.in: Define NEW_PROC_API on Interix too.
730         * configure: Regenerate.
731
732 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
733
734         * configure: Regenerate using the proper version of autoconf.
735
736 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
737
738         * findvar.c (read_var_value): Temporarily disable TLS code, until
739         complete TLS support is added.
740
741 2002-10-21  Jim Blandy  <jimb@redhat.com>
742             Elena Zannoni  <ezannoni@redhat.com>
743
744         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
745         for thread local storage locations.
746         (struct symbol): Add objfile field.
747         (SYMBOL_OBJFILE): Define.
748         * dwarf2read.c (is_thread_local): New static variable.
749         (new_symbol): If variable is in thread local fill in address class
750         and objfile appropriately.
751         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
752         stack operation.
753         * printcmd.c (address_info): Print the information for thread
754         local storage variable.
755         * findvar.c (read_var_value): In case of thread local variable,
756         defer to the target vector code to compute address.
757
758 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
759
760         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
761         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
762
763 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
764
765         * symtab.h (address_class):  Rename
766         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
767         * hpread.c (hpread_process_one_debug_symbol): Ditto.
768         * printcmd.c (address_info): Ditto.
769         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
770
771 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
772
773         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
774         DBREG_DRX macro to acces debug registers.
775
776         * Makefile.in (i386obsd-tdep.o): New target.
777
778         * solib-sunos.c: Include "bcache.h" and "regcache.h".
779         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
780
781         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
782         * config/i386/obsd.mt: New file.
783         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
784         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
785         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
786         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
787         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
788         * i386obsd-tdep.c: New file.
789
790 2002-10-19  Adam Fedor  <fedor@gnu.org>
791
792         * objc-exp.y (name_not_typename): Fix invalid comment.  
793
794 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
795
796         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
797         to allocate partial syms and macro byte caches.
798
799 2002-10-18  David Carlton  <carlton@math.stanford.edu>
800
801         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
802
803 2002-10-18  Adam Fedor  <fedor@gnu.org>
804
805         * stabsread.c (find_name_end): New function.
806         (define_symbol): Use it.
807
808 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
809
810         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
811         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
812         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
813         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
814
815 2002-10-17  David Carlton  <carlton@math.stanford.edu>
816
817         * symfile.h: Add opaque declaration for struct obstack.
818         Declare obsavestring to take a const char *.
819         * symfile.c (obsavestring): Make first argument a const char *.
820
821 2002-10-16  Adam Fedor  <fedor@gnu.org>
822
823         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
824         names when matching breakpoints in current file.
825
826 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
827
828         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
829         (read_tag_pointer_type): Add address class support.
830         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
831         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
832         New methods.
833         * gdbarch.h, gdbarch.c: Regenerate.
834         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
835         (make_type_with_address_space, recursive_type_dump): Add address
836         class support.
837         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
838         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
839         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
840
841 2002-10-16  Klee Dienes  <kdienes@apple.com>
842
843         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
844         to get the last character of a char[] buffer, not
845         name[sizeof(vptr_name)-1].
846
847 2002-10-14  Adam Fedor  <fedor@gnu.org>
848
849         * symtab.h: New objc_specific struct.
850         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
851         (SYMBOL_DEMANGLED_NAME): Likewise.
852
853 2002-10-14  Adam Fedor  <fedor@gnu.org>
854
855         * symfile.c (init_filename_language_table): Add ObjC file extension.
856
857 2002-10-14  Adam Fedor  <fedor@gnu.org>
858
859         * utils.c (puts_filtered_tabular): New function.
860         (fprintf_symbol_filtered): Get ObjC demangled name.
861         * defs.h (puts_filtered_tabular): Declared.
862
863 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
864
865         * c-lang.h (c_type_print_varspec_prefix): Delete.
866         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
867         ``need_post_space'' parameter.  Adjust all callers.
868
869 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
870  
871         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
872         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
873         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
874         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
875
876 2002-10-13  Adam Fedor  <fedor@gnu.org>
877
878         * source.c (print_source_lines): Update comments.
879
880 2002-10-13  Adam Fedor  <fedor@gnu.org>
881
882         * valops.c (value_of_local): New function.
883         (value_of_this): Use it.
884         * value.h (value_of_local): Declared.
885
886 2002-10-13  Adam Fedor  <fedor@gnu.org>
887
888         * parse.c: (length_of_subexp, prefixify_subexp): Handle
889         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
890
891 2002-10-12  Adam Fedor  <fedor@gnu.org>
892
893         * language.c (binop_result_type): Add language_objc to case.
894         (integral_type): Likewise.
895         (character_type): Likewise.
896         (string_type): Likewise.
897         (boolean_type): Likewise.
898         (structured_type): Likewise.
899         (binop_type_check): Likewise.
900
901 2002-10-11  Adam Fedor  <fedor@gnu.org>
902
903         * printcmd.c (address_info): Print 'self' for ObjC.
904
905 2002-10-11  Adam Fedor  <fedor@gnu.org>
906
907         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
908         OP_SELF.
909
910 2002-10-11  Adam Fedor  <fedor@gnu.org>
911
912         * language.h (CAST_IS_CONVERSION): Add language_objc.
913
914 2002-10-11  Adam Fedor  <fedor@gnu.org>
915
916         * defs.h (enum language): Add language_objc.
917
918 2002-10-11  Klee Dienes  <kdienes@apple.com>
919
920         * corefile.c (read_memory_typed_address): New function.
921         * gdbcore.h (read_memory_typed_address): Add prototype.
922         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
923         to read a value destined for a CORE_ADDR, not read_memory_integer.
924         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
925         (f77_get_dynamic_lowerbound): Ditto.
926
927 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
928
929         * utils.c (string_to_core_addr): After turning string into
930         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
931         which will do necessary sign-extension, etc.
932
933 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
934
935         * c-exp.y (THIS): Delete token and grammar rule.
936         (yylex): Don't return THIS.
937         * cp-valprint.c (vtbl_ptr_name_old): Delete.
938         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
939         * demangle.c (cplus_markers): Update comment.  Put '$'
940         first.  Remove CPLUS_MARKER.
941         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
942         * jv-exp.y (THIS): Delete token and grammar rule.
943         (yylex): Don't return THIS.
944         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
945         * objc-exp.y (THIS): Delete token and grammar rule.
946         (yylex): Don't return THIS.
947         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
948         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
949         (read_member_functions): Likewise for opname.
950         (read_tilde_fields): Use is_cplus_marker.
951
952         * defs.h (CPLUS_MARKER): Don't define.
953         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
954         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
955         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
956         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
957         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
958
959         * config/i386/tm-i386v4.h: Delete file.
960         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
961         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
962         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
963         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
964         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
965         * config/i386/i386sco5.mt (TM_FILE): Likewise.
966         * config/i386/i386v4.mt (TM_FILE): Likewise.
967         * config/i386/ncr3000.mt (TM_FILE): Likewise.
968
969 2002-10-10  Marko Mlinar  <markom@opencores.org>
970
971         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
972         accidentially not commited 2002-10-09
973         * gdbarch.h, gdbarch.c: Re-generate.
974
975 2002-10-09  Marko Mlinar  <markom@opencores.org>
976
977         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
978         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
979         * gdbarch.h, gdbarch.c: Re-generate.
980
981 2002-10-08  Petr Sorfa <petrs@caldera.com>
982
983         Revised and re-submitted by John Wolfe <jlw@caldera.com>
984
985         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
986         so we can work on more than one compilation unit at a time.  This
987         helps prepare GDB to handle inter-CU die references.
988         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
989         the code to be defined before struct comp_unit_head.
990         (comp_unit_head): Added new members - offset, cu_head,
991         begin_die, next and dwarf2_abbrevs.
992         (dwarf2_abbrevs): Removed single static var; now member of
993         struct comp_unit_head.
994         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
995         members.
996         (psymtab_to_symtab_1): Changed to work with the new
997         struct comp_unit_head.
998         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
999         constructs the dwarf2_abbrevs[] inside the cu_header.
1000         (dwarf2_empty_abbrev_table): Now expects a ptr to a
1001         dwarf2_abbrev table to clean up.
1002         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1003         handling of dwarf2_abbrevs inside the cu_header.
1004         (read_partial_die): Now supports the call to the new
1005         dwarf2_lookup_abbrev.
1006         (read_full_die): Now supports the call to the new
1007         dwarf2_lookup_abbrev.
1008
1009 2002-10-06  Christopher Faylor  <cgf@redhat.com>
1010
1011         * Makefile.in (install-gdbtk): Add missing continuation backslash to
1012         insure that shell variables, such as "transformed_name" are propagated
1013         to later shell statements in rule.
1014
1015 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
1016
1017         * config/i386/nm-i386sco.h: Add protection against
1018         multiple-inclusion.  Include "i386/nm-i386v.h".
1019         (REGISTER_U_ADDR): Remove define.
1020         (i386_register_u_addr): Remove prototype.
1021
1022 2002-10-04  Michael Snyder  <msnyder@redhat.com>
1023
1024         * m32r-stub.c (handle_exception): Make sure exception is "trap"
1025         before treating it as a single-step event.
1026
1027 2002-10-03  Adam Fedor  <fedor@gnu.org>
1028
1029         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
1030         (objc_demangle): Remove assignment in if statements, Replace
1031         free with xfree.
1032         (add_msglist): Likewise.
1033         (end_msglist): Likewise.
1034         (complare_selectors): Likewise.
1035         (selectors_info): Likewise.
1036         (compare_classes): Likewise.
1037         (classes_info): Likewise.
1038         (print_object_command): Likewise.
1039         (find_objc_msgcall_submethod): Replace PTR with void *.
1040         * objc-lang.h: Remove check for __STDC__.
1041
1042 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1043
1044         * ui-out.h (ui_out_field_fmt_int): New prototype.
1045         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1046         of field width and alignment.
1047         * stack.c (print_frame_info_base): When printing frame level, use
1048         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
1049         PR gdb/192
1050
1051 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1052
1053         * MAINTAINERS: Add self to Write After Approval list.
1054
1055 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1056
1057         * infcmd.c (interrupt_target_command_wrapper): Delete.
1058         (interrupt_target_command): Make non static.
1059         (nofp_registers_info): Make static.
1060         * stack.c (return_command_wrapper): Delete.
1061         (return_command): Make non static.
1062
1063 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1064
1065         * event-top.c (gdb_setup_readline): New function. Code moved from
1066         _initialize_event_loop().
1067         (_initialize_event_loop): Call gdb_setup_readline().
1068
1069 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1070
1071         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1072         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1073         * gdbarch.h, gdbarch.c: Re-generate.
1074
1075 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
1076
1077         Fix PR gdb/778
1078         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1079         before recursing.
1080         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1081         of fill_in_vptr_fieldno.
1082
1083 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1084
1085         * inferior.h (registers_info, stepi_command, nexti_command,
1086         continue_command, interrupt_target_command): Export from infcmd.c.
1087         * frame.h (args_info, selected_frame_level_changed_hook,
1088         return_command): Export from stack.c.
1089         * v850ice.c (stepi_command, nexti_command, continue_command): use
1090         prototypes from inferior.h.
1091         * tracepoint.c (registers_info, args_info, locals_info): Use
1092         prototypes from frame.h and inferior.h.
1093         * Makefile.in (mi-main.o): Add dependency on frame.h.
1094
1095 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1096
1097         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1098         value in register 3 adjusted by ppc_gp0_regnum.
1099
1100         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1101
1102 2002-10-02  Marko Mlinar <markom@opencores.org>
1103
1104         * MAINTAINERS: Add myself to the Write After Approval list.
1105
1106 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
1107
1108         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1109         of the section for the N64 ABI, fixed.
1110
1111         * config/mips/tm-irix6.h: Include solib.h.
1112
1113 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
1114
1115         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1116         GNU operators.
1117
1118 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1119
1120         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1121         and that "mi0" syntax has been removed.
1122
1123 2002-09-30  David Carlton  <carlton@math.stanford.edu>
1124
1125         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1126         * ppc-sysv-tdep.c: #include "gdb_string.h".
1127         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1128         pacify GCC.
1129
1130 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1131
1132         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1133         "vrsave"'s register number.
1134
1135 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1136
1137         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1138         use frame_unwind_signed_register to obtain the PC.
1139         (mips_frame_chain): Handle a generic dummy frame.
1140         (mips_init_extra_frame_info): When a generic dummy frame, don't
1141         re-compute the frame base.
1142         (mips_pop_frame): Handle generic dummy frames.
1143         (mips_gdbarch_init): When generic dummy frames, set
1144         use_generic_dummy_frames, push_dummy_frame to
1145         generic_push_dummy_frame, pc_in_call_dummy to
1146         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1147         generic_save_dummy_frame_tos.
1148
1149 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1150
1151         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
1152         against TOP when TOP was explictly set.
1153         (generic_push_dummy_frame): Set TOP to zero.
1154
1155 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
1156
1157         * event-loop.c (start_event_loop): Rename variable 'result' to
1158         'gdb_result', to avoid conflicts with upcoming intepreters changes.
1159
1160 2002-09-30  Keith Seitz  <keiths@redhat.com>
1161
1162         * gdb-events.sh (selected_thread_changed): New event.
1163         * gdb-events.c: Regenerated.
1164         * gdb-events.h: Regenerated.
1165
1166 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1167
1168         * MAINTAINERS: Add self to Write After Approval list.
1169
1170 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
1171
1172         * disasm.c: New file.  
1173         * disasm.h: New file.  
1174         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1175         (compare_lines): Ditto.
1176         (dump_insns): Ditto.
1177         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1178         argument.
1179         (do_assembly_only): Ditto.
1180         (do_disassembly): Renamed to gdb_disassembly and moved to
1181         disasm.c.  Sdded uiout argument.
1182         * Makefile.in: Add new files.  Reorder SFILES list. Update
1183         dependencies.  Include libgdb.a later in the insight executable.
1184
1185 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1186
1187         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1188         bfd/elf64-alpha-fbsd.c.
1189
1190 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1191
1192         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1193         i386gnu-tdep.c.
1194
1195 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1196
1197         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1198         __FUNCTION__.
1199         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1200         function name.
1201         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1202         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1203         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1204         (S_msg_sig_post_reply): Ditto.
1205         
1206 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
1207
1208         * sh-tdep.c (sh_use_struct_convention): Use definition according
1209         to ABI.
1210         (sh_push_arguments): Store in register with correct endianess.
1211         (sh_default_store_return_value): Ditto.
1212         (sh_gdbarch_init): Set sizeof long double to 8.
1213
1214 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
1215
1216         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1217         Fix some whitespace problems.
1218
1219 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1220
1221         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1222         (mcore-tdep.o): Ditto.
1223         (ns32k-tdep.o): Ditto.
1224         (ns32knbsd-tdep.o): Ditto.
1225         (sh3-rom.o): Ditto.
1226         (vax-tdep.o): Ditto.
1227         * cris-tdep.c: #include "gdb_string.h"
1228         * mcore-tdep.c: Ditto.
1229         * ns32k-tdep.c: Ditto.
1230         * ns32knbsd-tdep.c: Ditto.
1231         * sh3-rom.c: Ditto.
1232         * vax-tdep.c: Ditto.
1233
1234 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1235
1236         * config/djgpp/fnchange.lst: Add entries for
1237         gdb/testsuite/gdb.c++/m-static files.
1238
1239 2002-09-27  Jim Wilson  <wilson@redhat.com>
1240
1241         * MAINTAINERS: Add myself to the Write After Approval list.
1242
1243 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
1244
1245         * mips-tdep.c (find_proc_desc): Initialize startaddr.
1246
1247
1248 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1249
1250         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1251         frame.
1252
1253 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1254
1255         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1256         (rs6000_struct_return_address): Delete variable.
1257         (rs6000_store_struct_return): Update.
1258         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1259         deprecated_extract_struct_value_address.
1260         (rs6000_frame_align): New function.
1261         (rs6000_gdbarch_init): Set frame_align.
1262
1263 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1264
1265         From Grace Sainsbury <graces@redhat.com>:
1266         * Makefile.in (gdbtk-main.o): New target.
1267         (gdb.o): New target.
1268         (main_h): Define.
1269         (main.o): Update dependencies.
1270         (gdb$(EXEEXT)): Add gdb.o.
1271         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1272         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1273         (SUBDIR_GDBTK_CLEAN): Set.
1274         (install-gdbtk): Install the insight binary.
1275         (uninstall-gdbtk): New target.
1276         (all-gdbtk, clean-gdbtk): New rule.
1277         * top.c (use_windows): Default to zero.
1278         * main.c: Include "main.h".
1279         (main): Delete.
1280         (struct captured_main_args): Delete.
1281         (gdb_main): New function.
1282         * main.h: New file.
1283         * gdb.c: New File.
1284
1285 2002-09-25  Andrew Cagney  <cagney@redhat.com>
1286
1287         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1288         (frame_map_regnum_to_name): New function.
1289         (frame_map_name_to_regnum): New function.
1290         * frame.h (frame_map_name_to_regnum): Declare.
1291         (frame_map_regnum_to_name): Declare.
1292         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1293         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1294         * parse.c: Do not include "builtin-regs.h".
1295         (target_map_name_to_register): Delete function.
1296         (write_dollar_variable): Use frame_map_name_to_regnum.
1297         * parser-defs.h (target_map_name_to_register): Delete declaration.
1298         * expprint.c: Include "frame.h".
1299         (print_subexp): Use frame_map_regnum_to_name.
1300         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1301         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1302
1303 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
1304
1305         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1306         wasn't saved, and the next innermost frame is a dummy, return the
1307         dummy frame's link register.
1308
1309 2002-09-24  Jim Blandy  <jimb@redhat.com>
1310
1311         Fix from Paul Breed:
1312         * main.c (captured_main): Add a `break' after the case for 'b'.
1313
1314 2002-09-24  Keith Seitz  <keiths@redhat.com>
1315
1316         * varobj.c (c_type_of_child): Use get_target_type instead
1317         of TYPE_TARGET_TYPE.
1318
1319 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1320
1321         * source.c (get_current_or_default_source_symtab_and_line): Remove
1322         function.
1323         (set_default_source_symtab_and_line): New function. Attempts to
1324         determine a source file to list lines from if one is not currently
1325         defined.
1326         (get_current_source_symtab_and_line): Initialize sal.pc and
1327         sal.end fields.
1328         (set_current_source_symtab_and_line): Mark argument as const.
1329         * source.h: Update declarations and comments.
1330         * linespec.c (decode_line_1): Replace call to removed routine above.
1331         * stack.c (print_frame_info_base): Ditto.
1332         * cli/cli-cmds.c (edit_command): Ditto.
1333         (list_command): Ditto.
1334
1335 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1336
1337         * source.c (get_current_or_default_source_symtab_and_line): Initialize
1338         sal.pc and sal.end fields.
1339         (get_current_or_default_source_symtab_and_line): Ditto.
1340         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1341         so we do not cause a new source symtab to be searched for (reverting an
1342         unintentional change from the 2002-09-20 patch).
1343         * scm-lang.c (scm_unpac): Ditto.
1344
1345 2002-09-21  Andrew Cagney  <cagney@redhat.com>
1346
1347         * complaints.c (symfile_explanations): Remove new-line from
1348         ``isolated_message''.
1349         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1350         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1351
1352 2002-09-20  Nick Clifton  <nickc@redhat.com>
1353         
1354         * NEWS: Announce that V850EA ISA is no longer supported.
1355         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1356
1357 2002-09-20  David Carlton  <carlton@math.stanford.edu>
1358
1359         * Makefile.in (c-lang.o): Correct dependencies.
1360         (utils.o): Gather dependencies.
1361         (charset.o): Move.
1362         * c-lang.c: #include "gdb_string.h"
1363
1364 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1365
1366         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
1367         * cli/cli-cmds.c (list_command): New function.  Implements the new
1368         cli edit command.
1369         (_init_cli_cmds): Add new command definition.
1370         * gdb.1: Document edit command.
1371         * doc/gdb.texinfo: Document edit command.
1372
1373 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1374
1375         * source.c: Make global variables current_source_symtab and
1376         current_source_line static.
1377         (list_command): Moved to cli/cli-cmds.c.
1378         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1379         (get_first_line_listed): New accessor function.
1380         (get_lines_to_list): New accessor function.
1381         (get_current_source_symtab_and_line): New function. Retrieves the
1382         position in the source code that we consider current.
1383         (get_current_or_default_source_symtab_and_line): New function.
1384         Like the above but attempts to determine a default position if one
1385         is not currently defined.
1386         (set_current_source_symtab_and_line): New function. Sets the source
1387         code position considered current and returns the previously set one.
1388         (clear_current_source_symtab_and_line): Reset stored information about
1389         a current source line.
1390         (_initialize_source): Remove registration for the "list" command and
1391         its alias.
1392         * source.h: Add declarations for the new functions above.
1393         * symtab.h: Remove declarations for the global variables mentioned
1394         above.
1395         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1396         obtain current source line.
1397         * linespec.c (decode_line_1): Ditto.
1398         * macroscope.c (default_macro_scope): Ditto.
1399         * scm-lang.c (scm_unpac): Ditto.
1400         * stack.c (print_frame_info_base): Ditto.
1401         * symfile.c (clear_symtab_users): Ditto.
1402         * symtab.c (decode_line_spec): Ditto.
1403         * cli/cli-cmds.c (list_command): Moved here from source.c.
1404         (ambiguous_line_spec): Moved here from source.c.
1405         (_init_cli_cmds): Add definition for "list" and its alias.
1406         * Makefile.in: Update dependencies.
1407
1408 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1409
1410         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1411         with what gcc thinks is correct.
1412
1413 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1414
1415         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1416         multiple register push instruction.
1417
1418 2002-09-19  Jim Blandy  <jimb@redhat.com>
1419
1420         Add support for distinct host and target character sets.
1421         * charset.c, charset.h: New files.
1422         * c-exp.y: #include "charset.h".
1423         (yylex): Convert character and string literals to the target
1424         character set, before returning them as the semantic value of the
1425         token.
1426         * c-lang.c: #include "charset.h".
1427         (c_emit_char): Use charset-specific methods to recognize
1428         characters with backslash escape forms, to decide which characters
1429         to print literally and which to print using numeric escape
1430         sequences, and to convert target characters to host characters
1431         before printing.
1432         * utils.c: #include "charset.h".
1433         (no_control_char_error): New function.
1434         (parse_escape): Use charset-specific methods to recognize
1435         backslash escapes, parse `control character' notation, and convert
1436         characters from the host character set to the target character set.
1437         * configure.in: Set the default host character set.
1438         Check where to find iconv, and what its argument types might be.
1439         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1440         * Makefile.in (SFILES): List charset.c.
1441         (COMMON_OBS): List charset.o.   
1442         (charset.o): New rule.
1443         (charset_h): New header dependency variable.
1444         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1445         (LIBICONV): New variable, set by configure.
1446         (CLIBS): Include $(LIBICONV) here.
1447         * aclocal.m4, config.in, configure: Regenerated.
1448
1449 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1450
1451         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1452         bison 1.35 warning.
1453
1454 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1455
1456         * gdb_mbuild.sh: New file.
1457
1458 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1459
1460         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1461
1462 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1463
1464         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1465         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1466         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1467         valops.c, value.h: Revert previous change.
1468         
1469 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1470
1471         Preliminary support for Objective-C:
1472         * defs.h (language_objc): New enum value.
1473         (puts_filtered_tabular): Declaration only, exported from utils.c.
1474         (skip_quoted): Delete, declared in completer.h.
1475         * c-exp.y: Include completer.h.
1476         * p-exp.y: Ditto.
1477         * jv-exp.y: Ditto.
1478         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1479         New operator enum values.
1480         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1481         * language.c (binop_result_type): Handle language_objc case.
1482         (integral_type, character_type, string_type, boolean_type,
1483         structured_type, binop_type_check): Ditto.
1484         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1485         (struct objc_specific): Add to general_symbol_info.
1486         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1487         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1488         * parser-defs.h (struct objc_class_str): New struct type.
1489         (start_msglist, end_msglist, add_msglist): Declaration only,
1490         exported from objc-lang.c.
1491         * value.h (value_of_local, value_nsstring, 
1492         call_function_by_hand_expecting_type): Exported from valops.c.
1493         * valops.c (find_function_addr): Export.
1494         (call_function_by_hand_expecting_type): New function.
1495         (value_of_local): New function.
1496         * symfile.c (init_filename_language_table): Add ".m" extension
1497         for Objective-C.
1498         * utils.c (puts_filtered_tabular): New function.
1499         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1500         (set/show demangle): Extend help-string to refer to ObjC.
1501         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1502         * stabsread.c (symbol_reference_defined): Objective-C symbols
1503         may contain colons: make allowances when scanning stabs strings
1504         for colons.
1505         (objc_find_colon): New function.
1506         * printcmd.c (address_info): If language == objc then print
1507         "self" instead of "this".
1508         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1509         OP_NSSTRING, and OP_SELF.
1510         (prefixify_subexp): Ditto.
1511         * source.c (print_source_lines): Mention objc in comment.
1512         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1513         method names.
1514
1515 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1516
1517         * complaints.h: Update copyright.
1518         (struct complaints): Declare.
1519         (struct complaint): Make `message' constant.
1520         (internal_complaint): Declare.
1521         (complaint): Declare.
1522         (complaint_root): Delete declaration.
1523         (symfile_complaints): Delete declaration.
1524         (struct complaints): Add opaque declaration.
1525         (clear_complaints): Add a complaints parameter.
1526         * complaints.c: Update copyright.
1527         (enum complaint_series): Define.
1528         (complaint_root): Delete.
1529         (struct complaints): Define.
1530         (complaint_sentinel, symfile_complaint_book): New variables.
1531         (symfile_explanations, symfile_complaints): New variables.
1532         New variables.
1533         (get_complaints): New function.
1534         (vcomplaint): New function.
1535         (complaint): New function.
1536         (internal_complaint): New function.
1537         (complain): Call vcomplain with symfile_complaint.
1538         (clear_complaints): Rewrite.
1539         (_initialize_complaints): Use add_setshow_command.
1540         * Makefile.in (complaints.o): Update dependencies.
1541         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1542         to call to clear_complaints.
1543         (new_symfile_objfile, reread_symbols): Ditto.
1544         (oldsyms_complaint): Delete.
1545         (empty_symtab_complaint, unknown_option_complaint): Delete.
1546         (free_named_symtabs): Use complaint instead of complain.
1547
1548 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1549
1550         Contributed by Apple Computer, Inc.  Merged with current sources
1551         by Adam Fedor <fedor@doc.com> [cagney].
1552         
1553         * objc-lang.c: First clean-up round: comments, indentation.
1554         * objc-lang.h: Ditto.
1555         * objc-lang.y: Ditto.
1556
1557 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1558
1559         * maint.c (maintenance_internal_error): Print the parameter as the
1560         error message.
1561         (maintenance_internal_warning): New function.
1562         (_initialize_maint_cmds): Add command `maint internal-warning'.
1563
1564         * defs.h (internal_warning, internal_vwarning): Declare.
1565         * utils.c (struct internal_problem): Define.
1566         (internal_vproblem): New function.
1567         (internal_warning): New function.
1568         (internal_vwarning): New function.
1569         (internal_warning_problem, internal_error_problem): New variables.
1570         (internal_verror): Just call internal_vproblem.
1571
1572 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1573
1574         * objc-lang.c: New file, support for Objective-C.
1575         Preliminary check-in, not yet integrated into gdb.
1576         * objc-lang.h: New file.
1577         * objc-exp.y:  New file.
1578
1579 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1580
1581         * infrun.c (signal_stop_update): Convert definition to ISO C.
1582         (signal_print_update): Ditto.
1583         (signal_pass_update): Ditto.
1584         * inflow.c (terminal_save_ours): Ditto.
1585
1586         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1587         comments.
1588         
1589         * config/djgpp/fnchange.lst: Handle name clashes between
1590         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1591         bfd/coff-tic80.c.
1592
1593         * i386-linux-tdep.h: Fix tipo.
1594
1595 2002-09-18  Adam Fedor  <fedor@gnu.org>
1596
1597         * MAINTAINERS: Add myself to the Write After Approval list.
1598
1599 2002-09-18  Jim Blandy  <jimb@redhat.com>
1600
1601         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1602         texthigh and textlow to reader-specific structs caused
1603         objfile_relocate to miss them.  This is fixable, but the work that
1604         the change was supposed to prepare GDB for never got done anyway.
1605
1606 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1607
1608         * MAINTAINERS: Alphabetize Write After Approval list.
1609
1610 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1611
1612         Fix PR gdb/709
1613         * values.c (value_static_field): Call read_var_value.
1614
1615 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1616
1617         * valops.c (hand_function_call): Align the initial stack pointer
1618         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1619         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1620         return value.
1621         * mips-tdep.c (mips_frame_align): New function.
1622         (mips_gdbarch_init): Set frame_align.
1623         * gdbarch.sh (FRAME_ALIGN): New method.
1624         * gdbarch.h, gdbarch.c: Re-generate.
1625
1626 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1627
1628         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1629         registers.
1630
1631 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1632
1633         * NEWS: Mention that MIPS $fp behavior changed.
1634         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1635         reference to FP_REGNUM.
1636         (mipsnbsd_cannot_store_register): Ditto.
1637         * mips-linux-nat.c: Update copyright.
1638         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1639         (mips_linux_cannot_store_register): Ditto.
1640         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1641         * config/mips/tm-mips.h: Update copyright.
1642         (FP_REGNUM): Delete macro.
1643         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1644         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1645         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1646         (mips_r3041_reg_names, mips_r3051_reg_names)
1647         (mips_r3081_reg_names): Replace "fp" with "".
1648         Fix PR gdb/480.
1649
1650 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1651
1652         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1653         generic_read_register_dummy() (PR gdb/703).
1654         (avr_push_return_address): #if 0 out unused vars.
1655         (avr_gdbarch_init): Enable use of avr_push_return_address().
1656
1657 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1658
1659         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1660         RTE will take care of it.
1661
1662 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1663
1664         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1665         invalid, return SP_REGNUM.
1666
1667 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1668
1669         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1670         point registers without sign extension.
1671
1672 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1673
1674         * blockframe.c (deprecated_read_register_dummy): Rename
1675         generic_read_register_dummy.
1676         * frame.c (frame_unwind_signed_register): New function.
1677         (frame_unwind_unsigned_register): New function.
1678         * frame.h (frame_unwind_signed_register): Declare.
1679         (frame_unwind_unsigned_register): Declare.
1680         (deprecated_read_register_dummy): Rename
1681         generic_read_register_dummy.
1682
1683         * h8300-tdep.c (h8300_frame_chain): Update.
1684         (h8300_frame_saved_pc): Update.
1685         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1686         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1687         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1688         (s390_frame_chain): Update.
1689         * v850-tdep.c (v850_find_callers_reg): Update.
1690         (v850_frame_saved_pc): Update.
1691         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1692         (m32r_find_callers_reg): Update.
1693         (m32r_frame_saved_pc): Update.
1694         * sh-tdep.c (sh_find_callers_reg): Update.
1695         (sh64_get_saved_pr): Update.
1696         (sh_init_extra_frame_info): Update.
1697         (sh_init_extra_frame_info): Update.
1698         (sh64_init_extra_frame_info): Update.
1699         (sh64_init_extra_frame_info): Update.
1700         * mcore-tdep.c (mcore_find_callers_reg): Update.
1701         (mcore_frame_saved_pc): Update.
1702         (mcore_init_extra_frame_info): Update.
1703         * i386-tdep.c (i386_frame_saved_pc): Update.
1704         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1705         (ia64_init_extra_frame_info): Update.
1706         (ia64_init_extra_frame_info): Update.
1707         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1708         * cris-tdep.c (cris_init_extra_frame_info): Update.
1709         * avr-tdep.c (avr_frame_chain): Update.
1710         (avr_init_extra_frame_info): Update.
1711         (avr_frame_saved_pc): Update.
1712         * arm-tdep.c (arm_find_callers_reg): Update.
1713         (arm_init_extra_frame_info): Update.
1714         (arm_frame_saved_pc): Update.
1715
1716 2002-09-17  Tom Tromey  <tromey@redhat.com>
1717
1718         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1719         is "'".
1720
1721 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1722
1723         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1724         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1725         NEXT_PROLOGUE_INSN.
1726         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1727         NEXT_PROLOGUE_INSN.
1728
1729 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1730
1731         * osfsolib.c: Remove file, replaced by solib-osf.c.
1732         * Makefile.in: Remove compilation rules for osfsolib.c.
1733
1734 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1735
1736         * cp-valprint.c (cp_print_class_method): Correct args to
1737         check_stub_method_group.
1738
1739 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1740
1741         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1742         `set architecture'.  Unify naming convention of functions.
1743         (h8300_skip_prologue): Improve prologue analysis.
1744         (h8300_push_arguments): Rewritten to more closely match GCC's
1745         bizarre argument-passing behavior, along with the comment describing
1746         said behavior.
1747         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1748         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1749         sim, remote-e7000.c, remote-hms.c and remote.c
1750
1751 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1752
1753         * i386-tdep.c (gdb_print_insn_i386): Removed.
1754         (i386_print_insn): New function.
1755         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1756         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1757         tm_print_insn_info.
1758
1759 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1760
1761         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1762         zero.
1763
1764 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1765
1766         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1767         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1768         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1769
1770 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1771
1772         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1773
1774 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1775
1776         * gdbtypes.c (check_stub_method): Make static.
1777         (check_stub_method_group): New function.
1778         * gdbtypes.h: Update prototypes.
1779         * cp-support.c: New file.
1780         * cp-support.h: New file.
1781
1782         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1783         (update_method_name_from_physname): New function.
1784         (read_member_functions): Correct method names for operators
1785         and v3 constructors/destructors.  Separate v2 constructors and
1786         destructors.
1787         * Makefile.in (stabsread.o): Update dependencies.
1788         (SFILES): Add cp-support.c.
1789         (COMMON_OBS): Add cp-support.o.
1790         (cp_support_h, cp-support.o): Add.
1791
1792         * cp-valprint.c (cp_print_class_method): Call
1793         check_stub_method_group instead of check_stub_method.  Remove
1794         extraneous QUITs.
1795         * p-valprint.c (pascal_object_print_class_method): Likewise.
1796         * valops.c (search_struct_method): Likewise.
1797         (find_method_list, value_struct_elt_for_reference): Likewise.
1798
1799 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1800
1801         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1802         * gdbarch.h, gdbarch.c: Regenerate.
1803
1804 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1805
1806         * frame.c (find_saved_register): Delete function.
1807         * frame.h (find_saved_register): Delete declaration.
1808         Fix PR gdb/631.
1809
1810 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1811
1812         * mips-tdep.c (read_next_frame_reg): Re-hack using
1813         frame_register_unwind.
1814
1815 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1816
1817         * mips-tdep.c (mips_get_saved_register): Re-hack using
1818         frame_register_unwind.
1819
1820 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1821
1822         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1823         vector. Will be useful for Interix.  
1824         * gdbarch.h, gdbarch.c: Regenerate.
1825
1826         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1827         name of the malloc function by NAME_OF_MALLOC.
1828
1829 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1830
1831         * value.h (find_function_in_inferior): Add const keyword to
1832         one of the parameters. Allows us to invoke this function with
1833         a const char *.
1834         * valops.c (find_function_in_inferior): Likewise.
1835
1836 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1837
1838         * exec.c (xfer_memory): Fix compilation warning with old versions
1839         of GCC.
1840         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1841
1842 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1843
1844         * symtab.h: Run through gdb_indent.h.
1845         Add 2002 to Copyright year list.
1846
1847 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1848
1849         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1850         mach constants.
1851         * MAINTAINERS: Add myself to write after approval list.
1852
1853 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1854
1855         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1856
1857 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1858
1859         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1860         Interix.
1861
1862 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1863
1864         * procfs.c (do_detach): Clear current signal, not just fault.
1865         Corrects problem with breakpoint trap signal leaking to detached
1866         process on Tru64.
1867
1868 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1869
1870         * buildsym.c (finish_block): Protect against null pointer.
1871
1872 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1873
1874         * infcmd.c (default_print_registers_info): Send all output to
1875         ``file'' instead of ``gdb_stdout''.
1876
1877 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1878
1879         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1880         LONGEST, and use signed register read (addresses are sign-
1881         extended for mips).
1882
1883 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1884
1885         * event-loop.c (gdb_do_one_event): Make public.
1886         * event-loop.h (gdb_do_one_event): Declare.
1887
1888 2002-09-10  Jeff Law  <law@redhat.com>
1889
1890         * infttrace.c (child_resume): Simplify and rework to avoid
1891         TT_PROC_CONTINUE.
1892
1893 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1894
1895         * printcmd.c (print_scalar_formatted): "len" is the number of
1896         target bytes, NOT the number of target bits.
1897
1898 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1899
1900         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1901         * top.c (init_main): Set rl_terminal_name.
1902
1903 2002-09-08  Aidan Skinner <aidan@velvet.net>
1904
1905         * ada-lang.c (ada_array_bound, ada_type_match,
1906         _initialize_ada_language): Fix K&R definitions.
1907         * ada-tasks.c (get_current_task): Fix K&R definitions.
1908         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1909                         
1910 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1911
1912         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1913         Add XP.
1914
1915 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1916
1917         * i386-tdep.c (i386_register_virtual_type,
1918         i386_register_convertible, i386_register_convert_to_virtual,
1919         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1920         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1921         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1922         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1923         Don't set push_arguments twice.
1924
1925         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1926         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1927         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1928         sigtramp_end to NULL.
1929         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1930         defines.
1931         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1932
1933         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1934         whitespace.
1935
1936         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1937         * gdbarch.h, gdbarch.c: Re-generate.
1938         * blockframe.c (find_pc_sect_partial_function): Convert to use
1939         SIGTRAMP_START_P predicate.
1940
1941 2002-09-05  Michael Snyder  <msnyder@redhat.com>
1942
1943         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1944         generic_dummy_frame method and old method.  Also distinguish
1945         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1946         (arm_extract_return_value): Use new regcache method.
1947
1948         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1949         adjustment that doesn't conform to the ABI.
1950         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1951         saved regcache, not from current regcache.
1952
1953 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
1954
1955         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
1956         * README: Update.
1957
1958 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1959
1960         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1961         if arm_apcs_32 is false.
1962
1963 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
1964
1965         GDB 5.3 branch created.
1966
1967 2002-09-03  Theodore A. Roth  <troth@verinet.com>
1968
1969         * gdb/avr-tdep.c (avr_gdbarch_init): Use
1970         generic_unwind_get_saved_register.
1971
1972 2002-09-03  David Carlton  <carlton@math.stanford.edu>
1973
1974         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1975         argument (PR gdb/653).  Update call to smash_to_method_type.
1976         (read_structure_scope): Update call to dwarf2_add_member_fn.
1977
1978 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
1979
1980         * x86-64-linux-tdep.c: Include gdb_string.h
1981         * x86-64-linux-nat.c: Ditto.
1982
1983 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1984
1985         * ada-exp.y (yyname, yyrule): Remap global variables that appear
1986         when YYDEBUG is set to 1.  
1987         * c-exp.y: Likewise.
1988         * f-exp.y: Likewise.
1989         * jv-exp.y: Likewise.
1990         * m2-exp.y: Likewise.
1991         * p-exp.y: Likewise.
1992
1993 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1994
1995         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1996         dependency list.
1997         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1998         solib_svr4_fetch_link_map_offsets to
1999         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2000         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2001         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2002         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2003         solib-svr4.o, and solib-legacy.o.
2004         * config/i386/tm-nbsd.h: Include solib.h.
2005
2006 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2007
2008         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
2009         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
2010         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
2011         comment noting that this needs its own target configuration.
2012         * config/i386/nbsd.mt: New file.
2013         * config/i386/nbsdaout.mt: Remove.
2014         * config/i386/nbsdelf.mt: Ditto.
2015         * config/i386/tm-nbsdaout.h: Ditto. 
2016
2017 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2018
2019         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
2020         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
2021         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2022         tdep->sigtramp_end.
2023         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
2024         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2025         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2026
2027 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2028
2029         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2030         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2031         * i386-tdep.h (i386bsd_init_abi): New prototype.
2032         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2033         function declaration.
2034         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2035         for NetBSD-a.out or NetBSD-ELF.
2036         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2037         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2038         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2039         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
2040         and nbsd-tdep.h.
2041         (i386nbsd_pc_in_sigtramp): New function.
2042         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2043         i386nbsd_pc_in_sigtramp.
2044         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2045         and i386nbsdelf_init_abi OS ABI handlers.
2046         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2047         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2048
2049 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
2050
2051         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2052         registers if the target really has them.
2053
2054 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2055
2056         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2057         than nbsd-tdep.h.
2058
2059 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2060
2061         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2062         list.
2063         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2064         (alphanbsd_skip_sigtramp_frame): New functions. 
2065         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2066         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
2067         to alphanbsd_sigcontext_addr. 
2068
2069 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2070
2071         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2072         list.
2073         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
2074         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2075         nbsd_pc_in_sigtramp. 
2076         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2077         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2078         * nbsd-tdep.c: Include gdb_string.h.
2079         (nbsd_pc_in_sigtramp): New function. 
2080         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
2081         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2082         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2083         ppcnbsd_pc_in_sigtramp. 
2084         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2085         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2086         shnbsd_pc_in_sigtramp. 
2087         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2088         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
2089         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2090
2091 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
2092
2093         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2094         watchpoints to NULL.
2095         (insert_breakpoints): set val field of watchpoints if NULL.
2096
2097
2098 2002-08-29  Jim Blandy  <jimb@redhat.com>
2099
2100         * symtab.c (lookup_symbol_aux): In the cases where we find a
2101         minimal symbol of an appropriate name and use its address to
2102         select a symtab to read and search, use `name' (as passed to us)
2103         as the demangled name when searching the symtab's global and
2104         static blocks, not the minsym's name.
2105
2106 2002-08-29  Keith Seitz  <keiths@redhat.com>
2107
2108         * stack.c (print_frame_info_base): Always set current_source_symtab
2109         and current_source_line.
2110
2111 2002-08-29  Donn Terry  <donnte@microsoft.com>
2112
2113         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2114
2115 2002-08-28  Keith Seitz  <keiths@redhat.com>
2116
2117         * stack.c (select_frame): Add FIXME concerning selected-frame
2118         events.
2119         (select_frame_command): Send selected-frame-level-changed
2120         event notification, but only if the level actually changed.
2121         (up_silently_base): Add selected-frame-level-changed event
2122         notification.
2123         (down_silently_base): Likewise.
2124
2125 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
2126
2127         * Makefile.in: Update dependencies for all gdb/*.c files.
2128
2129 2002-08-27  Tom Tromey  <tromey@redhat.com>
2130
2131         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2132         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2133         Update dependencies.
2134         * i387-tdep.c: Include gdb_string.h.
2135         * osabi.c: Likewise.
2136         * i386-linux-nat.c: Likewise.
2137         * lin-lwp.c: Likewise.
2138         * ax-gdb.c: Likewise.
2139         * signals/signals.c: Likewise.
2140         * jv-valprint.c: Likewise.
2141         * p-lang.c: Likewise.
2142         * c-valprint.c: Likewise.
2143         * cp-abi.c: Likewise.
2144
2145 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
2146
2147         * cli/cli-script.h (copy_command_lines): Export.
2148         * breakpoint.c: Include cli/cli-script.h.
2149         * Makefile.in (breakpoint.o): Update dependencies.
2150
2151 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2152
2153         * breakpoint.c (insert_breakpoints): Protect all references
2154         to 'process_warning'.  Shorten long lines.
2155
2156 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2157
2158         * cli/cli-script.c (copy_command_lines): New function.
2159         * defs.h (copy_command_lines): Export.
2160         * testsuite/gdb.base/commands.exp: New tests for commands
2161         attached to a temporary breakpoint, and for commands that
2162         delete the breakpoint they are attached to.
2163         
2164 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2165
2166         * breakpoint.c (bpstat_stop_status): Instead of copying the 
2167         pointer to the breakpoint commands struct, make a new copy
2168         of the struct and point to that.
2169         (bpstat_clear): Free the commands struct.
2170         (bpstat_clear_actions): Free the commands struct.
2171         (bpstat_do_actions): Free the command actions.  Also execute
2172         the local cleanups, instead of deleting them.
2173         (delete_breakpoint): Leave the commands field of the bpstat
2174         chain alone -- it will be freed later.
2175
2176 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
2177
2178         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2179         deleted in 2002-08-20 commit.  This function is still used by
2180         ppc-linux-nat.c.
2181
2182 2002-08-26  Keith Seitz  <keiths@redhat.com>
2183
2184         * gdb-events.sh: Add selected-frame-level-changed event.
2185         * gdb-events.c: Regenerated.
2186         * gdb-events.h: Regenerated.
2187         
2188 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
2189
2190         Fix PR gdb/393:
2191         * inflow.c (terminal_save_ours): New function to save terminal
2192         settings.
2193         * inferior.h (terminal_save_ours): Declare.
2194         * target.c (debug_to_terminal_save_ours): New function.
2195         (cleanup_target): Defaults to_terminal_save_ours.
2196         (update_current_target): Inherit to_terminal_save_ours.
2197         (setup_target_debug): Set to_terminal_save_ours.
2198         * target.h (target_terminal_save_ours): New to save terminal settings.
2199         (target_ops): New member to_terminal_save_ours.
2200         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2201         * hpux-thread.c (init_hpux_thread_ops): Likewise.
2202         * inftarg.c (init_child_ops): Likewise.
2203         * m3-nat.c (init_m3_ops): Likewise.
2204         * procfs.c (init_procfs_ops): Likewise.
2205         * wince.c (init_child_ops): Likewise.
2206         * win32-nat.c (init_child_ops): Likewise.
2207         * sol-thread.c (init_sol_thread_ops): Likewise.
2208
2209 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
2210
2211         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
2212         use regcache_* functions.
2213         (i386_gdbarch_init): Set store_return_value instead of
2214         deprecated_store_return_value.
2215
2216         * regcache.c (regcache_raw_write_signed,
2217         regcache_raw_write_unsigned): New functions.
2218         * regcache.h (regcache_raw_write_signed,
2219         regcache_raw_write_unsigned): New prototypes.
2220
2221 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2222
2223         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2224         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2225         source file dependencies.  Cleanup corresponding generator rules.
2226
2227 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2228
2229         * regcache.h (register_offset_hack): Declare.
2230         (regcache_cooked_read_using_offset_hack): Declare.
2231         (regcache_cooked_write_using_offset_hack): Declare.
2232
2233         * regcache.c (register_offset_hack): New function.
2234         (regcache_cooked_read_using_offset_hack): New function.
2235         (regcache_cooked_write_using_offset_hack): New function.
2236         (regcache_dump): Check that the registers, according to their
2237         offset, are packed hard against each other.
2238         (cooked_xfer_using_offset_hack): New function.
2239
2240 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2241
2242         * regcache.c (struct regcache_descr): Add field register_type.
2243         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2244         in as a parameter
2245         (init_regcache_descr): Initialize register_type.  Pass the descr
2246         to init_legacy_regcache_descr.  Use register_type instead of
2247         REGISTER_VIRTUAL_TYPE.
2248         (register_type): New function.
2249         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2250         * regcache.h (register_type): Declare.
2251
2252 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2253
2254         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2255         instead of deprecated_store_return_value.  Fix fallout from
2256         2002-08-23 Andrew Cagney <cagney@redhat.com>.
2257
2258 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2259
2260         * regcache.c (max_register_size): New function.
2261         (init_legacy_regcache_descr): Ensure that max_register_size is
2262         large enough for REGISTER_VIRTUAL_SIZE.
2263         * regcache.h (max_register_size): Declare.
2264
2265 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
2266
2267         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2268         store_return_value.
2269         (e500_extract_return_value): Change type of valbuf pointer to
2270         void.
2271
2272 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2273
2274         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2275         workaround.
2276
2277         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2278         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2279         long long) to prevent compiler warning on 64-bit systems.
2280
2281 2002-08-23  Andrew Cagney  <cagney@redhat.com>
2282
2283         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2284         (DEPRECATED_STORE_RETURN_VALUE): New method.
2285         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2286         * gdbarch.h, gdbarch.c: Re-generate.
2287
2288         * values.c (set_return_value): Pass current_regcache to
2289         STORE_RETURN_VALUE.
2290         * arch-utils.h (legacy_store_return_value): Declare.
2291         * arch-utils.c (legacy_store_return_value): New function.
2292         (legacy_extract_return_value): Update parameters.
2293
2294         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2295         STORE_RETURN_VALUE.
2296         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2297         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2298         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2299         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2300         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2301         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2302         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2303         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2304         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2305         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2306
2307         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2308         * i386-tdep.c (i386_extract_return_value): Update.
2309         * arch-utils.c (legacy_extract_return_value): Update.
2310         * frv-tdep.c (frv_gdbarch_init): Update.
2311         * cris-tdep.c (cris_gdbarch_init): Update.
2312         * d10v-tdep.c (d10v_gdbarch_init): Update.
2313         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2314         * m68k-tdep.c (m68k_gdbarch_init): Update.
2315         * mcore-tdep.c (mcore_gdbarch_init): Update.
2316         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2317         * s390-tdep.c (s390_gdbarch_init): Update.
2318         * sparc-tdep.c (sparc_gdbarch_init): Update.
2319         * sh-tdep.c (sh_gdbarch_init): Update.
2320         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2321         * v850-tdep.c (v850_gdbarch_init): Update.
2322         * avr-tdep.c (avr_gdbarch_init): Update.
2323         * ia64-tdep.c (ia64_gdbarch_init): Update.
2324         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2325         * vax-tdep.c (vax_gdbarch_init): Update.
2326         * alpha-tdep.c (alpha_gdbarch_init): Update.
2327         * arm-tdep.c (arm_gdbarch_init): Update.
2328         * mips-tdep.c (mips_gdbarch_init): Update.
2329         * i386-tdep.c (i386_gdbarch_init): Update.
2330
2331 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
2332
2333         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2334         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2335
2336 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2337
2338         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
2339         problems.
2340
2341 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2342
2343         * infrun.c (handle_inferior_event): Move a comment outside of a
2344         function call, in order to avoid indent reformatting this part
2345         of the code in an unreadable way.
2346
2347 2002-08-23  Grace Sainsbury  <graces@redhat.com>
2348
2349         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2350         when breakpoints fail. Move general breakpoint error messages to
2351         insert_breakpoints.  
2352         * breakpoint.c (insert_breakpoints): Change warnings when
2353         breakpoints are nto inserted to specify the type. Remove call to
2354         memory_error when hardware breakpoints can't be inserted. Remove
2355         multiple calls to warning so all messages are sent to the user at
2356         once.
2357         (delete_breakpoints): Make insert error messsages more explicit.
2358
2359 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
2360
2361         * ChangeLog: Move gdbserver entries after GDB 5.2 to
2362         gdbserver/ChangeLog.
2363
2364 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
2365
2366         * i386-tdep.c: Include "objfiles.h".
2367         (i386_svr4_init_abi): Set in_solib_call_trampoline and
2368         skip_trampoline_code.
2369         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2370         (CPLUS_MARKER): Define to '.'.
2371
2372         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2373         member.
2374         (linux_corefile_thread_callback): Increase args->num_notes.
2375         (linux_make_note_section): Initialize thread_args.num_notes, and
2376         use it to determine whether notes for any threads were created.
2377
2378 2002-08-23  Donn Terry  <donnte@microsoft.com>
2379
2380         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2381         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2382         and PCUNKILL.
2383         (write_with_trace): Conditionalize out the switch branch handling
2384         PCSHOLD if the corresponding macro is not defined. Likewise for
2385         PRSABORT and PRSTOP.
2386         This change will be needed by the Interix port.
2387
2388 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2389
2390         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2391         write_register wherever possible instead of manipulating the
2392         register bytes directly.
2393         Assign VALUE_CONTENTS to a variable and use that.
2394         The GPR numbers are now dependent on the architecture.
2395         
2396 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2397
2398         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2399         ev_offset fields.
2400         (skip_prologue): Add support for BookE/e500 instructions.
2401         (e500_extract_return_value): New function.
2402         (frame_get_saved_regs): Add support for saving ev registers and
2403         pseudo gpr's.
2404         (e500_store_return_value): New function.
2405         (rs6000_gdbarch_init): Move up default intializations of
2406         deprecated_extract_return_value and store_return_value.  Overwrite
2407         init of store_return_value with e500 specific version.
2408         Set extract_return_value for e500.
2409         
2410 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2411
2412         * blockframe.c (generic_call_dummy_register_unwind): Use
2413         regcache_cooked_read to catch cases in which the variable is
2414         stored in a pseudo register.
2415
2416 2002-08-22  Andrew Cagney  <cagney@redhat.com>
2417
2418         * NEWS: Mention that the i960 has been made obsolete.
2419         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2420         i960-tdep.c
2421         (remote-nrom.o): Obsolete target.
2422         (remote-nindy.o, i960-tdep.o): Ditto.
2423         * remote-nrom.c: Make file obsolete.
2424         * remote-nindy.c, remote-vx960.c: Ditto.
2425         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2426         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2427         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2428         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2429         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2430         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2431         i960-*-vxworks* obsolete.
2432         * MAINTAINERS: Note that the i960 is obsolete.
2433
2434 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
2435
2436         * aix-thread.c (aix_thread_detach): Disable thread debugging on
2437         detach to allow reinitialization.
2438
2439 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
2440
2441         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2442         attempt).
2443
2444 2002-08-22  Jim Blandy  <jimb@redhat.com>
2445
2446         * coffread.c (coff_symfile_read): Don't try to read the line
2447         number table from disk if the image file doesn't have a symbol
2448         table; we'll never actually look at the info anyway, and Windows
2449         ships DLL's with bogus file offsets for the line number data.
2450
2451 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2452
2453         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2454         an e500 executable.
2455
2456 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2457
2458         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2459         (MSYMBOL_SIZE): Replace macro with function.
2460         (DEFAULT_MIPS_TYPE): Delete unused macro.
2461         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2462         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2463
2464 2002-08-21  Jim Blandy  <jimb@redhat.com>
2465
2466         * valops.c (value_cast): Simplify and correct logic for doing a
2467         static cast from a pointer to a base class to a pointer to a
2468         derived class.
2469
2470 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2471
2472         * infcmd.c (default_print_registers_info): Replace
2473         do_registers_info.
2474         (registers_info): Use gdbarch_print_registers_info instead of
2475         DO_REGISTERS_INFO.
2476         * inferior.h (default_print_registers_info): Replace
2477         do_registers_info.
2478         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2479         (DO_REGISTERS_INFO): Change to a predicate function.
2480         * gdbarch.h, gdbarch.c: Regenerate.
2481         
2482 2002-08-21  Keith Seitz  <keiths@redhat.com>
2483
2484         * gdb-events.sh: Add target-changed event.
2485         * gdb-events.c: Regenerated.
2486         * gdb-events.c: Regenerated.
2487         * valops.c (value_assign): Add target-changed event notification
2488         to inlval_register, lval_memory, and lval_reg_frame_relative.
2489
2490 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2491
2492         * NEWS: Add an entry regarding the improvement of the next/step
2493         operation on Alpha Tru64 multi-processor machines.
2494
2495 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2496
2497         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2498         directores.
2499         * Makefile.in: Update all _h macro definitions.
2500         * Makefile.in (install-gdbtk): Move to install section.
2501         (rdi-share/libangsd.a): Move to end of file.
2502
2503 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2504
2505         * frame.c (frame_register_unwind): When a register, set addrp to
2506         the register's byte.
2507
2508 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2509
2510         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2511         used locally, so move them from the target machine header to here.
2512         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2513         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2514         Make static.
2515         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2516
2517 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2518
2519         * NEWS: Mention that the Apollo line was made obsolete.
2520         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2521         m68*-hp-hpux* obsolete.
2522         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2523         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2524         * buildsym.c (make_blockvector): Make static.
2525         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2526         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2527         (ALLDEPFILES): Remove dstread.c.
2528         (dstread.o): Obsolete make rule.
2529         * dstread.c: Makefile obsolete.
2530         * dst.h: Ditto.
2531         * config/m68k/hp300hpux.mt: Ditto.
2532         * config/m68k/hp300hpux.mh: Ditto.
2533         * config/m68k/hp300bsd.mt: Ditto.
2534         * config/m68k/hp300bsd.mh: Ditto.
2535         * config/m68k/apollo68b.mt: Ditto.
2536         * config/m68k/apollo68v.mh: Ditto.
2537         * config/m68k/apollo68b.mh: Ditto.
2538
2539 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2540
2541         * mips-tdep.c (mips_in_return_stub): Make static.
2542         (mips_gdbarch_init): Set in_solib_return_trampoline.
2543         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2544
2545 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2546
2547         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2548         * gdbarch.c, gdbarch.h: Regenerate.
2549         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2550         Add.
2551         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2552
2553 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2554
2555         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2556         (mips_gdbarch_init): Set skip_trampoline_code, 
2557         in_solib_call_trampoline.
2558         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2559         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2560
2561 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2562
2563         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2564
2565         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2566         vector type for ev registers.
2567         (e500_pseudo_register_read): New function.
2568         (e500_pseudo_register_write): New function.
2569         (e500_dwarf2_reg_to_regnum): New function.
2570         (PPC_UISA_NOFP_SPRS): New macro.
2571         (PPC_EV_REGS): New macro.
2572         (PPC_GPRS_PSEUDO_REGS): New macro.
2573         (registers_e500): New register set for e500.
2574         (variants): Add e500 variant.
2575         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2576         before setting architectural dependent variations.  Initialize ev
2577         registers numbers.  Add case for e500 architecture.  Set the
2578         number of pseudo registers.
2579
2580 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2581
2582         * rs6000-tdep.c: Clean up comments.
2583
2584 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2585
2586         * h8300-tdep.c: Re-indent file.
2587
2588 2002-08-20  Jim Blandy  <jimb@redhat.com>
2589
2590         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2591         default for this.
2592
2593 2002-08-20  Keith Seitz  <keiths@redhat.com>
2594
2595         * breakpoints.c (watch_command_1): Use internal breakpoint
2596         when setting a watchpoint_scope breakpoint.
2597
2598 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2599
2600         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2601         (build_builtin_type_vec64i): Ditto.
2602         (build_builtin_type_vec128): Ditto.
2603         (build_builtin_type_vec128i): Ditto.
2604
2605 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2606
2607         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2608         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2609         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2610         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2611         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2612         CALL_DUMMY_ADDRESS): Delete.
2613         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2614         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2615         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2616         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2617         push_return_address.
2618         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2619         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2620         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2621         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2622         mips_n32n64_push_arguments, mips_push_return_address,
2623         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2624         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2625
2626 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2627
2628         * mips-tdep.c (mips_frame_num_args): New function.
2629         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2630         frame_saved_pc, frame_args_address, frame_locals_address, 
2631         frame_num_args, and frame_args_skip.
2632         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2633         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2634         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2635         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2636
2637 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2638
2639         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2640         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2641         * mips-tdep.c (mips_store_struct_return): New function.
2642         (mips_extract_struct_value_address): New function.
2643         (mips_gdbarch_init): Set store_struct_return and
2644         extract_struct_value_address.
2645
2646 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2647
2648         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2649         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2650         (read_file_scope): Check that line_header is nonzero before
2651         decoding macro information.
2652
2653 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2654
2655         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2656         flag the general-purpose registers as floating-point on targets
2657         that don't support the floating-point registers.
2658
2659 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2660
2661         * rs6000-tdep.c (altivec_register_p): Delete.
2662         (rs6000_do_altivec_registers): Delete.
2663         (rs6000_altivec_registers_info): Delete.
2664         (rs6000_do_registers_info): Delete.
2665         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2666         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2667
2668 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2669
2670         * infcmd.c (do_registers_info): Print vector registers in hex
2671         format only.
2672         (print_vector_info): Check that printing registers
2673         makes sense.
2674         (print_float_info): Ditto.
2675
2676 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2677
2678         * mips-tdep.c (mips_gdbarch_init): Update.
2679         (mips_o32_extract_return_value): Rewrite.
2680         (mips_o32_store_return_value): Rewrite.
2681         (mips_o32_xfer_return_value): New function.
2682         (mips_xfer_register): Tweak debug print message.  Allow for
2683         buf_offset when dumping the value transfered.
2684
2685 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2686
2687         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2688         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2689         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2690         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2691         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2692
2693 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2694
2695         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2696
2697 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2698
2699         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2700         register.
2701         (P): New macro to define a register as a pseudo register.
2702         (R, R4, R8, R16, FR32, R64, R0): Updated.
2703         (struct variant): Add new fields for number of pseudo registers
2704         and number of total registers.
2705         (tot_num_registers): New macro replacing....
2706         (num_registers): ...deleted macro.
2707         (num_registers): New function.
2708         (num_pseudo_registers): New function.
2709         (variants): Update all variants to intialize new fields correctly.
2710         Postpone initialization of number of pseudo regs and real regs.
2711         (init_variants): New function.
2712         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2713         registers offsets.
2714
2715 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2716
2717         * valops.c (search_struct_field): Change error message to treat
2718         return value of 0 from value_static_field as meaning that field is
2719         optimized out.
2720         (value_struct_elt_for_reference): Ditto.
2721         * values.c (value_static_field): Treat an unresolved location the
2722         same as a nonexistent symbol.  Fix PR gdb/635.
2723         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2724         enclosed.  Fix PR gdb/574.
2725         * MAINTAINERS: Add self to Write After Approval list.
2726
2727 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2728
2729         * mips-tdep.c (mips_xfer_register): New function.
2730         (mips_n32n64_extract_return_value): Rewrite.
2731         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2732         instead of deprecated_extract_return_value.
2733
2734 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2735
2736         * rs6000-tdep.c (TDEP): Delete macro.
2737         (branch_dest): Replace use of TDEP macro with its body.
2738         (rs6000_pop_frame): Ditto.
2739         (rs6000_push_arguments): Ditto.
2740         (rs6000_skip_trampoline_code): Ditto.
2741         (rs6000_frame_saved_pc): Ditto.
2742         (rs6000_frame_chain): Ditto.
2743         (rs6000_register_name): Ditto.
2744         (rs6000_register_byte): Ditto.
2745         (rs6000_register_raw_size): Ditto.
2746         (rs6000_register_virtual_type): Ditto.
2747         (rs6000_register_convertible): Ditto.
2748         (rs6000_convert_from_func_ptr_addr): Ditto.
2749
2750 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2751
2752         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2753         conditionally.
2754         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2755         MIPS_LINUX_JB_ELEMENT_SIZE.
2756         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2757         for MAX_REGISTER_RAW_SIZE arrays.
2758         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2759         MIPS_LINUX_JB_ELEMENT_SIZE.
2760
2761 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2762
2763         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2764
2765 2002-08-19  Aidan Skinner <aidan@velvet.net>
2766
2767         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2768         ada-valprint.c ada-tasks.c.
2769         (YYFILES): Add ada-exp.y.
2770         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2771         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2772         (ada-exp.tab.o): New target.
2773                 
2774 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2775
2776         * regcache.c (regcache_xfer_part): New function.
2777         (regcache_raw_read_part): New function.
2778         (regcache_raw_write_part): New function.
2779         (regcache_cooked_read_part): New function.
2780         (regcache_cooked_write_part): New function.
2781         * regcache.h (regcache_raw_read_part): Declare.
2782         (regcache_raw_write_part): Declare.
2783         (regcache_cooked_read_part): Declare.
2784         (regcache_cooked_write_part): Declare.
2785
2786 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2787
2788         * remote.c (remote_open_1): Add async_p.
2789         (remote_async_open_1): Delete.
2790         (open_remote_target): Delete.
2791         (remote_open, extended_remote_open): Update calls to remote_open_1.
2792         (remote_async_open, extended_remote_async_open): Call
2793         remote_open_1 instead of remote_async_open_1.
2794
2795 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2796
2797         * blockframe.c: Fix a few coding standard violations.
2798
2799 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2800
2801         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2802         here from ...
2803         * config/i386/tm-i386sco5.h: ... here.  File removed.
2804         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2805
2806         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2807         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2808         (TM_FILE): Set to tm-i386.h.
2809         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2810         * config/i386/tm-i386v.h: Remove file.
2811         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2812         instead of "i386/tm-i386v.h".
2813         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2814         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2815         "i386/tm-i386v.h".
2816         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2817         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2818         "i386/tm-i386.h".
2819
2820 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2821
2822         * config/i386/nm-i386v.h: Add protection against
2823         multiple-inclusion.
2824         (i386_register_u_addr): Remove prototype.
2825         (register_u_addr): New prototype.
2826         (REGISTER_U_ADDR): Redefine accordingly.
2827         * i386v-nat.c: Improve several comments.
2828         (i386_register_u_addr): Change signature and rename to
2829         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2830         ubase variable.
2831
2832 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2833
2834         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2835         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2836         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2837         deprecated_extract_return_value.
2838         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2839         rename mips_o32o64_push_arguments.
2840         (mips_gdbarch_init): Update.
2841         (mips_extract_return_value): Delete.
2842         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2843         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2844         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2845         (mips_n32n64_extract_return_value): Clone
2846         mips_extract_return_value.
2847         (mips_store_return_value): Delete.
2848         (mips_o32_store_return_value): Clone mips_store_return_value.
2849         (mips_o64_store_return_value): Clone mips_store_return_value.
2850         (mips_eabi_store_return_value): Clone mips_store_return_value.
2851         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2852
2853 2002-08-18  Aidan Skinner <aidan@velvet.net>
2854
2855         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2856         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2857                 
2858 2002-08-18  Aidan Skinner <aidan@velvet.net>
2859
2860         * ada-lang.c: Run through gdb_indent.sh.
2861         * ada-lang.h: Run through gdb_indent.sh.
2862         * ada-tasks.c: Run through gdb_indent.sh.
2863         * ada-typeprint.c: Run through gdb_indent.sh.
2864         * ada-valprint.c: Run through gdb_indent.sh.
2865
2866 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2867
2868         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2869         ABI.
2870
2871 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2872
2873         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2874
2875         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2876         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2877
2878         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2879         write_register_gen instead of write_register_bytes.
2880
2881         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2882         i[3456]-*-osf1mk* configurations have been made obsolete.
2883         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2884         i[3456]86-*-osf1mk* hosts obsolete.
2885         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2886         targets obsolete.
2887         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2888         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2889         config/i386/i386m3.mt, config/i386/nm-m3.h,
2890         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2891         config/i386/i386mk.mh, config/i386/i386mk.mt,
2892         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2893         obsolete.
2894         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2895         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2896         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2897
2898 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2899
2900         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2901         (hppa_value_returned_from_stack): Declare.
2902         (hppa_extract_return_value): Declare.
2903         * config/pa/hppa.mt: New file.
2904         * configure.tgt: Recognize hppa*-*-*.
2905         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2906
2907 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2908
2909         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2910         comment.
2911
2912 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2913
2914         * top.c (gdb_rl_operate_and_get_next): Make sure
2915         operate-and-get-next functions correctly even when the history
2916         list is completely filled.
2917
2918 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2919
2920         * MAINTAINERS (Target Instruction Set Architectures): Rename
2921         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2922         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2923         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2924         already listed under Host/Native.
2925
2926         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2927         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2928         mips*-*-*.
2929
2930 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2931
2932         * config/ia64/ia64.mt: New file.
2933         * config/alpha/alpha.mt: New file.
2934         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2935         ia64-linux-gnu.  Mention that ia64-elf is broken.
2936         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2937
2938 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
2939
2940         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2941         generic_func_frame_valid instead of func_frame_valid.
2942
2943 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2944
2945         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2946         procfs appears to be broken when debugging on multi-processor
2947         machines. So enable software single stepping in order to avoid
2948         using the procfs interface to do next/step operations, using
2949         internal breakpoints instead.
2950
2951         * infrun.c (handle_inferior_event): Readjust the stop_pc by
2952         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2953         make this pc address equal to the value it would have if the
2954         system stepping capability was used. Also set a new flag used
2955         to ensure that we don't readjust the PC one more time later.
2956
2957         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2958         address by DECR_PC_AFTER_BREAK when software single step is
2959         in use for this architecture, as this has already been taken
2960         care of in handle_inferior_event().
2961
2962 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2963
2964         * infrun.c (handle_inferior_event): Minor reformatting, to make
2965         a rather long condition expression easier to read.
2966
2967 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2968
2969         * Makefile.in (gdbtk.o): Move to end of file.
2970         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2971         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2972         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2973         (gdbtk-wrapper.o, gdbres.o): Ditto.
2974
2975 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2976
2977         * Makefile.in (copying.o): Separate out compile rule.
2978         (hpux-thread.o, procfs.o, signals.o): Ditto.
2979         (v850ice.o, z8k-tdep.o): Ditto.
2980         (tui-file.o): Move to TUI section.
2981         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2982         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2983
2984 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2985
2986         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2987         skip_trampoline_code, for better namespace-proofing.   
2988
2989         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2990
2991 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2992
2993         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2994
2995 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2996
2997         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2998         signal, check whether we hit a breakpoint before checking for a
2999         single step breakpoint. Otherwise, GDB fails to notice that a
3000         breakpoint has been hit when stepping onto a breakpoint.
3001
3002 2002-08-16  Keith Seitz  <keiths@redhat.com>
3003
3004         * gdb-events.sh (clear_gdb_event_hooks): New function.
3005         * gdb-events.c: Regenerate.
3006         * gdb-events.h: Regenerate.
3007
3008 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3009
3010         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3011         not_a_sw_breakpoint.
3012         * breakpoint.h (bpstat_stop_status): Add parameter names.
3013
3014 2002-08-16  Grace Sainsbury  <graces@redhat.com>
3015
3016         * remote.c (remote_insert_hw_breakpoint)
3017         (remote_remove_hw_breakpoint): Fix calculation of length field
3018         for Z-packet.
3019
3020 2002-08-15  Michael Snyder  <msnyder@redhat.com>
3021
3022         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3023         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3024         (supply_fpregset): Ditto.
3025         
3026         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
3027         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
3028         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3029         (TARGET_READ_SP): Delete.
3030         (DO_REGISTERS_INFO): Delete.
3031         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3032         Delete.
3033         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3034         from macros to functions.
3035
3036         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3037         (mips_register_convertible, mips_register_convert_to_virtual,
3038         mips_register_convert_to_raw): Make static.
3039         (mips_read_sp): New function.
3040         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3041         (mips_do_registers_info): Make static.
3042         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3043         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3044         (mips_register_convert_from_type, mips_register_convert_to_type):
3045         New functions.
3046         (mips_gdbarch_init): Set up function_start_offset, 
3047         register_virtual_size, pc_in_sigtramp.
3048
3049 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3050
3051         * infcmd.c (vector_info): New function.
3052         (_initialize_infcmd): Add command "info vector".
3053         (print_vector_info): New function.
3054
3055         * gdbarch.sh (PRINT_VECTOR_INFO): New method
3056         * gdbarch.h, gdbarch.c: Regenerate.
3057
3058 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3059
3060         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3061         ``print_all''.  Only print vector registers when ``print_all''.
3062
3063 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3064
3065         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3066         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3067
3068         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3069         Add `args' parameter.
3070         * gdbarch.h, gdbarch.c: Regenerate.
3071         
3072         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3073         
3074         * infcmd.c (float_info): Call print_float_info.
3075         (print_float_info): New function.  By default, print the
3076         floating-point registers.
3077
3078         * arch-utils.h (default_print_float_info): Delete declaration.
3079         * arch-utils.c (default_print_float_info): Delete function.
3080         
3081 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
3082
3083         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3084         out define.
3085
3086         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3087         FRAME.
3088
3089         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3090         * configure.host: Make i[3456]86-*-aix host obsolete.
3091         * configure.tgt: Make i[3456]86-*-aix target obsolete.
3092         * config/i386/i386aix.mh, config/i386/i386aix.mt,
3093         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3094         config/i386/xm-i386aix.h: Make files obsolete.
3095         * i386aix-nat.c: Make file obsolete.
3096         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3097         (i386aix-nat.o): Make target obsolete.
3098
3099         * config/i386/nm-gnu.h: Removed.
3100         * config/i386/nm-i386gnu.h: New file.
3101         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3102         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3103         Moved here from ...
3104         * config/i386/tm-i386gnu.h: ... here.  Removed.
3105         * config/i386/xm-i386gnu.h: Removed.
3106         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3107         (NAT_FILE): Set to nm-i386gnu.h.
3108         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3109         * i386-tdep.c: New file.
3110         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3111         (i386gnu-tdep.o): Specify dependencies.
3112
3113 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
3114
3115         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3116         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3117         Adjust a few comments to reflect reality a bit closer.
3118         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3119         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3120         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3121         target_insert_watchpoint, target_remove_watchpoint):
3122         Move defines to ...
3123         * config/i386/nm-i386sco5.h: ... here.
3124         (kernel_u_size): Add prototype.  Improve a few comments and add
3125         protection against multiple inclusion.
3126         
3127         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3128         out define.
3129
3130         * uw-thread.c (SP_ARG0): Define if not already defined.
3131         * config/i386/tm-i386.h (SO_ARG0): Remove define.
3132
3133         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3134
3135         * config/i386/tm-i386.h: Don't include "regcache.h".
3136
3137         * i387-tdep.h (i387_print_float_info): New prototype.
3138         * i387-tdep.c (print_i387_value, print_i387_ext,
3139         print_i387_status_word, print_i387_control_word): Add `struct
3140         ui_file *' argument and use it for output.
3141         (i387_print_float_info): Renamed from i387_float_info.  Add
3142         `struct gdbarch *' and `struct ui_file *' arguments and use the
3143         latter for output.
3144         * i386-tdep.c: Include "i387-tdep.h".
3145         (i386_gdbarch_init): Set print_float_info.
3146         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3147         (FLOAT_INFO): Remove define.
3148
3149 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3150
3151         * mips-tdep.c (mips_push_arguments): Rename to
3152         mips_eabi_push_arguments, and tune for EABI.
3153         (MIPS_REGS_HAVE_HOME_P): Delete.
3154         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3155         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3156         Delete references to mips_regs_have_home_p.
3157
3158 2002-08-14  Keith Seitz  <keiths@redhat.com>
3159
3160         * Makefile.in (install-gdbtk): Create insight plugin directory.
3161         Install plugins.tcl file.
3162
3163 2002-08-14  Keith Seitz  <keiths@redhat.com>
3164
3165         * configure.in: Move SUBDIRS to near top of the file so that
3166         --enable options may add things to it.
3167         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3168         * configure: Regenerate.
3169
3170 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3171
3172         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
3173         cloned from mips_push_arguments, tuned for o32/o64 ABI.
3174         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3175
3176 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
3177
3178         * vax-tdep.c (vax_get_saved_register): Delete function.
3179         (vax_gdbarch_init): Update.
3180         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3181         (ns32k_gdbarch_init): Update.
3182         * alpha-tdep.c (alpha_get_saved_register): Delete function.
3183         (alpha_gdbarch_init): Update.
3184
3185 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3186
3187         * regcache.c (init_regcache_descr): Overallocate the
3188         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3189         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3190         nr_raw_registers.
3191         (set_register_cached): Add range checking assertions.  Use
3192         current_regcache.
3193
3194 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
3195
3196         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3197         numbers for MMX registers.
3198
3199 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3200
3201         * i386-tdep.c (i386_gdbarch_init): Use
3202         generic_unwind_get_saved_register.
3203
3204 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
3205
3206         * procfs.c (procfs_can_use_hw_breakpoint): New function.
3207         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3208         target vector.
3209         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3210         Delete.  Add comment regarding this now-deleted target method.
3211
3212 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3213
3214         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3215         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3216         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3217         real PC and the page number (if it's within the memory bank window).
3218         (m68hc11_pseudo_register_write): Likewise when saving.
3219         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3220         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3221         (m68hc11_register_raw_size): And use 32-bit for it.
3222         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3223         16K memory bank is used by the prog; also use the virtual pc.
3224
3225 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3226
3227         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3228         (m68hc11_gdbarch_init): Install it in gdbarch.
3229         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3230         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3231         (MSYMBOL_SIZE): New for documentation.
3232         (insn_return_kind): Enum to specify how a function returns.
3233         (frame_extra_info): Cleanup and record the return mode.
3234         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
3235         register in address computation.
3236         (m68hc11_get_return_insn): New to obtain the return instruction used
3237         by the function.
3238         (m68hc11_frame_init_saved_regs): Take into account the return
3239         instruction used by the function for far and interrupt functions.
3240         (m68hc11_init_extra_frame_info): Take into account page register.
3241         (m68hc11_frame_args_address): Adjust according to the return mode.
3242         (show_regs): Print page register only when it's used.
3243
3244 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3245
3246         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3247         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3248         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3249         registers.
3250         (m68hc11_register_raw_size): Likewise.
3251
3252 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3253
3254         * i386-tdep.c (i386_register_name): Handle mmx registers.
3255         (mmx_regnum_p): New function.
3256         (i386_mmx_names): New array.
3257         (mmx_num_regs): New variable.
3258         (i386_pseudo_register_read): New function.
3259         (i386_pseudo_register_write): New function.
3260         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3261
3262         * regcache.c (regcache_raw_read_unsigned): New function.
3263         (regcache_raw_read_signed): New function.
3264         * regcache.h (regcache_raw_read_unsigned): Declare.
3265         (regcache_raw_read_signed): Declare.
3266
3267 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3268
3269         * regcache.c (regcache_raw_read_as_address): Delete function.
3270         (regcache_cooked_read_signed): New function.
3271         (regcache_cooked_read_unsigned): New function.
3272         * regcache.h (regcache_cooked_read_signed): Declare.
3273         (regcache_cooked_read_unsigned): Declare.
3274         (regcache_raw_read_as_address): Delete declaration.
3275
3276         * blockframe.c (generic_read_register_dummy): Use
3277         regcache_cooked_read_unsigned.
3278         * i386-tdep.c (i386_extract_struct_value_address): Use
3279         regcache_cooked_read_unsigned.
3280
3281 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3282
3283         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3284         double sizes according to ELF ABI flags.
3285         (gdbarch_tdep): Record elf_flags.
3286
3287 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3288
3289         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3290         (m6812_prolog): They can appear in 68HC12 function prologue.
3291         (m68hc11_frame_chain): Cleanup.
3292
3293 2002-08-12  Andrew Cagney  <cagney@redhat.com>
3294
3295         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3296         declarations.
3297         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3298         (i386_linux_register_raw_size): Delete function.
3299         (i386_linux_init_abi): Update.
3300         * i386-tdep.c (i386_register_raw_size): Delete function.
3301         (i386_register_byte): Delete function.
3302         (i386_gdbarch_init): Update.
3303         (i386_register_size): Delete array.
3304         (i386_register_offset): Delete array.
3305
3306         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3307         (REGISTER_RAW_SIZE): Delete macro.
3308         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3309         (REGISTER_BYTE): Delete macro.
3310
3311 2002-08-11  Aidan Skinner <aidan@velvet.net>
3312
3313         * ada-lang.c (ada_lookup_partial_symbol)
3314         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3315         prototype names so that grep ^func works properly.
3316
3317         * ada-lang.c (ada_array_element_type)
3318         (ada_lookup_partial_symbol): Fix typos in parameter list.
3319
3320         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3321         Fix prototype names so that grep ^func works properly.
3322         
3323 2002-08-10  Andrew Cagney  <cagney@redhat.com>
3324             Elena Zannoni  <ezannoni@redhat.com>
3325             Martin M. Hunt  <hunt@redhat.com>
3326
3327         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3328         (build_builtin_type_vec128i): Set the vector bit.
3329         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3330         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3331         (build_builtin_type_vec64): New function.
3332         (build_builtin_type_vec64i): New function.
3333         (build_gdbtypes): Initialize builtin_type_vec64 and
3334         builtin_type_vec64i.
3335
3336 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3337
3338         * regcache.c (regcache_dump): Compare the register offset
3339         with REGISTER_BYTE.
3340         * arch-utils.c (generic_register_byte): New function.
3341         * arch-utils.h (generic_register_byte): Declare.
3342         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3343         * gdbarch.h, gdbarch.c: Regenerate.
3344
3345 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3346
3347         * regcache.c: Include "gdbcmd.h"
3348         (_initialize_regcache): Add commands "maintenance print
3349         registers", "maintenance print raw-registers" and "maintenance
3350         print cooked-registers".
3351         (enum regcache_dump_what): Define.
3352         (dump_endian_bytes): New function.
3353         (regcache_dump): New function.
3354         (regcache_print): New function.
3355         (maintenance_print_registers): New function.
3356         (maintenance_print_raw_registers): New function.
3357         (maintenance_print_cooked_registers): New function.
3358         * Makefile.in (regcache.o): Update dependencies.
3359
3360 2002-08-09  Michael Snyder  <msnyder@redhat.com>
3361
3362         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3363         (mips_push_arguments): Correct some comments.  Use paddr_nz
3364         for printing addresses in debug output.  Replace static
3365         allocation using MAX_REGISTER_RAW_SIZE with alloca.
3366         (mips_n32n64_push_arguments): New function, cloned from
3367         mips_push_arguments and tuned for the n32/n64 ABI.
3368         (mips_push_register): Buffer needs dynamic allocation.
3369         (mips_print_register): Ditto.
3370         (do_gp_register_row): Ditto.
3371         (mips_store_return_value): Ditto.
3372         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3373
3374 2002-08-09  Don Howard  <dhoward@redhat.com>
3375
3376         * memattr.c (mem_info_command): Print special case of upper bound
3377         as max CORE_ADDR + 1.
3378
3379 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3380
3381         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
3382         returns structs by ref if they're too big to fit in two registers.
3383
3384 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3385
3386         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3387         saved regs value.
3388         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3389         mips_find_saved_regs().
3390         (mips_pop_frame): Likewise.
3391
3392 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3393
3394         * blockframe.c (frame_saved_regs_register_unwind): Revise
3395         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3396         frames are in use.
3397
3398 2002-08-09  Grace Sainsbury  <graces@redhat.com>
3399         
3400         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3401         T-packets; the 'a' is not taken as a register number.
3402         (remote_check_watch_resources, remote_stopped_by_watchpoint)
3403         (remote_stopped_data_address): New functions; add to target
3404         vector.
3405         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3406         prototypes to match other implementations of this
3407         function. replace integer argument with pointer -- the length
3408         field in the Z-packet is the length of what is pointed to or 1 if
3409         pointer is null. Add to target vector.
3410         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3411         target vector.
3412
3413         From Mark Salter:
3414         * remote.c (remote_wait): Add support to extract optional
3415         watchpoint information from T-packet. Ignore unrecognized
3416         optional info in T-packet.
3417         (remote_async_wait): Ditto.
3418
3419 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
3420
3421         * cli/cli-dump.c: Change fopen modes to use binary open modes
3422         as defined in include/fopen-bin.h throughout.
3423
3424 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3425
3426         * mips-tdep.c: Minor whitespace and indentation clean-ups.
3427
3428 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3429
3430         * doublest.c (store_floating): Avoid floatformat_from_doublest()
3431         assertion failure by returning early after a warning.
3432
3433 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3434
3435         * mips-tdep.c (mips_find_saved_regs): Make static.
3436         (mips_frame_init_saved_regs): New function.
3437         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3438         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3439         (mips_find_saved_regs): Delete declaration.
3440
3441 2002-08-08  Grace Sainsbury  <graces@redhat.com>
3442
3443         * remote.c (remote_wait, remote_async_wait): Change
3444         thread_num from int to ULONGEST.
3445         (unpack_varlen_hex): Change result parameter from
3446         int * to ULONGEST *.
3447
3448 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
3449
3450         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3451         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3452         powerpc*-*-*.
3453         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3454
3455 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3456
3457         * gcore.c (override_derive_stack_segment): Delete variable.
3458         (preempt_derive_stack_segment): Delete function.
3459         (derive_stack_segment): Delete function.
3460         (default_derive_stack_segment): Renamed to derive_stack_segment.
3461         (override_derive_heap_segment): Delete variable.
3462         (preempt_derive_heap_segment): Delete function.
3463         (derive_heap_segment): Delete function.
3464         (default_derive_heap_segment): Rename to derive_heap_segment.
3465
3466 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3467
3468         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3469         * mips-tdep.c (mips_EABI_use_struct_convention, 
3470         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3471         New functions.  (mips_use_struct_convention): Delete.
3472         (mips_gdbarch_init): set use_gdbarch_convention.
3473
3474 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3475
3476         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3477         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3478         mips_o32_reg_struct_has_addr): New functions.
3479         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3480
3481 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3482
3483         * regcache.c (pseudo_register): Delete function.
3484         (fetch_register): Delete function.
3485         (store_register): Delete function.
3486         (regcache_raw_read, legacy_read_register_gen): Use
3487         target_fetch_registers instead of fetch_register.
3488         (legacy_write_register_gen, regcache_raw_write): Use
3489         target_store_register instead of store_register.
3490         (write_register_bytes): Ditto.
3491
3492         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3493         (STORE_PSEUDO_REGISTER): Delete.
3494         * gdbarch.h, gdbarch.c: Regenerate.
3495
3496 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3497
3498         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3499         write dump file binary.
3500
3501 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3502
3503         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3504         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3505         (mips_gdbarch_init): Set N32 target to be mips64.
3506
3507 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3508
3509         * frame.c (find_saved_register): Break out of loop once saved
3510         register address is found.  Don't mention sparc in loop comment
3511         anymore.
3512
3513 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3514
3515         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3516         mips_default_saved_regsize to 8.
3517
3518 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3519
3520         * gcore.c: Do not include <sys/procfs.h>.
3521         * Makefile.in (gcore.o): Update dependencies.
3522
3523 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3524
3525         * configure.tgt: Make arc-*-* obsolete.
3526         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3527         * MAINTAINERS: Make arc-elf obsolete.
3528         * arc-tdep.c: Make file obsolete.
3529         * config/arc/arc.mt: Ditto.
3530         * config/arc/tm-arc.h: Ditto.
3531
3532 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3533
3534         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3535
3536 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3537
3538         * mcore-tdep.c (mcore_gdbarch_init): Use
3539         generic_unwind_get_saved_register instead of
3540         generic_get_saved_register.
3541         * v850-tdep.c (v850_gdbarch_init): Ditto.
3542         * frv-tdep.c (frv_gdbarch_init): Ditto.
3543         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3544         * s390-tdep.c (s390_gdbarch_init): Ditto.
3545         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3546         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3547         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3548
3549 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3550
3551         * objfiles.h: Add missing #include "symfile.h"
3552
3553         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3554
3555 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3556
3557         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3558         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3559         of FIELD_BITSIZE.
3560
3561 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3562
3563         * NEWS: Cleanup and nitpick.
3564
3565 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3566
3567         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3568
3569 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3570
3571         * Makefile.in (gdbtk-bp.o): Update dependencies.
3572         (gdbtk-register.o): Ditto.
3573         (gdbtk-varobj.o): Ditto.
3574
3575 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3576
3577         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3578         m68hc11_fetch_pseudo_register.
3579         (m68hc11_pseudo_register_write): Replace
3580         m68hc11_store_pseudo_register.
3581         (m68hc11_gdbarch_init): Update.
3582
3583 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3584
3585         * gdbarch.sh: Include "gdb_string.h".
3586         * gdbarch.c: Regenerate.
3587
3588         * regcache.c: Include "gdb_string.h".
3589         * ax-general.c: Ditto.
3590         * varobj.c: Ditto.
3591         * std-regs.c: Ditto.
3592         * fbsd-proc.c: Ditto.
3593         * thread.c: Ditto.
3594
3595         * Makefile.in (regcache.o): Update dependencies.
3596         (thread.o, gdbarch.o): Ditto.
3597         (ax-general.o, gdbarch.o): Ditto.
3598         (varobj.o, std-regs.o): Ditto.
3599         (fbsd-proc.o): Specify dependencies.
3600
3601 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3602
3603         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3604         regnum.
3605         (regcache_cooked_write): Ditto.
3606
3607 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3608
3609         * regcache.c (regcache_cooked_read): New function.
3610         (regcache_cooked_write): New function.
3611         (read_register_gen): Rewrite using regcache_cooked_read.
3612         (write_register_gen): Rewrite using regcache_cooked_write.
3613
3614         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3615         Declare.
3616
3617 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3618
3619         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3620         Replace the architecture methods register_read and register_write.
3621         * gdbarch.h, gdbarch.c: Regenerate.
3622         * regcache.c (init_regcache_descr): Update.
3623         (read_register_gen): Update.
3624         (write_register_gen): Update.
3625         (supply_register): Update comment.
3626
3627         * sh-tdep.c (sh_gdbarch_init): Update.
3628         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3629         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3630         pointer.  Update code.
3631         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3632         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3633         void pointer.  Update code.
3634         (sh64_register_write): Delete.
3635         (sh4_register_read): Delete.
3636         (sh64_register_read): Delete.
3637         (sh4_register_write): Delete.
3638         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3639         void pointer, `to' parameter a void pointer.
3640         (sh_sh64_register_convert_to_raw): Ditto.
3641
3642 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3643
3644         * mips-tdep.c (mips_register_virtual_type): Use architecture
3645         invariant return values.
3646
3647 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3648
3649         * linux-proc.c: Include "gdb_string.h".
3650         * Makefile.in (linux-proc.o): Update dependency list.
3651
3652 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3653
3654         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3655         comment.
3656
3657 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3658
3659         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3660         to_insert_watchpoint, to_remove_watchpoint,
3661         to_stopped_by_watchpoint, to_stopped_data_address,
3662         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3663         target vecctor. Define their corresponding macros so they call
3664         them.
3665         
3666         * target.c: Add default and debug versions of for
3667         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3668         to_insert_watchpoint, to_remove_watchpoint,
3669         to_stopped_by_watchpoint, to_stopped_data_address,
3670         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3671
3672 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3673
3674         * mips-tdep.c (mips_register_virtual_type): New function.
3675         (mips_gdbarch_init): Register mips_register_virtual_type()
3676         with gdbarch machinery.
3677         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3678         this file instead of tm-bigmips.h.
3679         (MIPS_REGSIZE): Delete this macro.
3680         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3681         multiarch version in mips-tdep.c will be found.
3682
3683 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3684
3685         * NEWS: Menion that CHILL has been made obsolete.
3686
3687         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3688         * stabsread.c (read_range_type): Ditto.
3689         * gdbtypes.h: Ditto.
3690         * language.c (binop_type_check): Ditto.
3691         (binop_result_type): Ditto.
3692         (integral_type): Ditto.
3693         (character_type): Ditto.
3694         (string_type): Ditto.
3695         (boolean_type): Ditto.
3696         (structured_type): Ditto.
3697         (lang_bool_type): Ditto.
3698         (binop_type_check): Ditto.
3699         * language.h (_LANG_chill): Ditto.
3700         * dwarfread.c (set_cu_language): Ditto.
3701         * dwarfread.c (CHILL_PRODUCER): Ditto.
3702         * dwarfread.c (handle_producer): Ditto.
3703         * expression.h (enum exp_opcode): Ditto.
3704         * eval.c: Ditto for comments.
3705         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3706         * expprint.c (print_subexp): Ditto.
3707         (print_subexp): Ditto.
3708         * valops.c (value_cast): Ditto.
3709         (search_struct_field): Ditto.
3710         * value.h (COERCE_VARYING_ARRAY): Ditto.
3711         * symfile.c (init_filename_language_table): Ditto.
3712         (add_psymbol_with_dem_name_to_list): Ditto.
3713         * valarith.c (value_binop): Ditto.
3714         (value_neg): Ditto.
3715         * valops.c (value_slice): Ditto.
3716         * symtab.h (union language_specific): Ditto.
3717         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3718         (SYMBOL_DEMANGLED_NAME): Ditto.
3719         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3720         * defs.h (enum language): Ditto.
3721         * symtab.c (got_symtab): Ditto.
3722         * utils.c (fprintf_symbol_filtered): Ditto.
3723
3724         * ch-typeprint.c: Make file obsolete.
3725         * ch-valprint.c: Make file obsolete.
3726         * ch-lang.h: Make file obsolete.
3727         * ch-exp.c: Make file obsolete.
3728         * ch-lang.c: Make file obsolete.
3729
3730         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3731         CHILL_LIB.
3732         (TARGET_FLAGS_TO_PASS): Ditto.
3733         (CHILLFLAGS): Obsolete.
3734         (CHILL): Obsolete.
3735         (CHILL_FOR_TARGET): Obsolete.
3736         (CHILL_LIB): Obsolete.
3737         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3738         ch-valprint.c.
3739         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3740         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3741         ch-lang.o.
3742         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3743         targets.
3744
3745 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3746
3747         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3748         This does not change anything at the moment, but will be helpful
3749         later when full Ada support is integrated.
3750
3751 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3752
3753         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3754         help message.
3755
3756 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3757
3758         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3759         and save it in a local variable.  Use variable in later test.
3760
3761 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3762
3763         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3764         test.  (Thanks to Daniel Jacobowitz.)
3765         
3766 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3767
3768         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3769         (mips_abi_strings): Add "n64".
3770         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3771
3772 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3773
3774         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3775         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3776
3777 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3778
3779         * utils.c (host_pointer_to_address, address_to_host_pointer):
3780         Use gdb_assert() instead of explicit call to internal_error().
3781
3782 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3783
3784         * Makefile.in (rs6000-nat.o): Update dependencies.
3785
3786         From Nicholas Duffek:
3787         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3788         (aix-thread.o): New rule.
3789         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3790         * config/powerpc/aix432.mh: New file.
3791
3792 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3793
3794         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3795         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3796         (fetch_core_registers, ppc_linux_supply_gregset)
3797         (ppc_linux_supply_fpregset): New functions.
3798         (ppc_linux_regset_core_fns): New.
3799         (_initialize_ppc_linux_tdep): Call add_core_fns.
3800         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3801         and ppc_linux_supply_gregset.
3802         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3803         (supply_fpregset): Call ppc_linux_supply_fpregset.
3804         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3805         corelow.o.
3806         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3807
3808 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3809
3810         * symtab.c (lookup_symbol): Demangle before lowercasing.
3811
3812 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3813
3814         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3815         declaration.
3816         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3817         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3818         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3819         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3820         "gdb_string.h".
3821         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3822         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3823         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3824         (avr-tdep.o, mon960-rom.o): Ditto.
3825         (aout_stabs_gnu_h): Define.
3826         (symtab_h): Remove $(gdb_obstack_h).
3827
3828 2002-07-30  Jim Blandy  <jimb@redhat.com>
3829
3830         Patch from David Carlton <carlton@math.stanford.edu>:
3831         * gdbinit.in: Move the `dir' commands that add GDB's own source
3832         directory to the search path to the end, so that the `gdb' source
3833         directory will be searched first.
3834
3835 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3836
3837         * gdb_obstack.h: New file.
3838         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3839         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3840         * objfiles.h: Include "gdb_obstack.h".
3841         * Makefile.in (gdb_obstack_h): Define.
3842         (symtab_h): Add $(gdb_obstack_h).
3843         (objfiles_h): Add $(gdb_obstack_h).
3844         
3845         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3846         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3847         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3848         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3849         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3850         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3851         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3852         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3853
3854         * Makefile.in (bcache.o): Update dependencies.
3855         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3856         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3857         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3858         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3859         (stabsread.o, symfile.o, symmisc.o): Ditto.
3860         (symtab.o, typeprint.o, macroexp.o): Ditto.
3861         (macrotab.o, mdebugread.o): Ditto.
3862         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3863         (coff_ecoff_h, aout_aout64_h): Define.
3864         (aout_stabs_gnu_h, libaout_h): Define.
3865
3866 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3867
3868         * regcache.c (struct regcache_descr): Rename nr_registers to
3869         nr_cooked_registers.  Revise comments describing the structure
3870         member fields.
3871         (init_regcache_descr): Update.
3872         (init_legacy_regcache_descr): Update.
3873         (read_register_gen, write_register_gen): When a cooked register in
3874         the raw register range, directly access the value from the raw
3875         register cache.
3876
3877 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3878
3879         * z8k-tdep.c: Do not include "obstack.h".
3880         * h8300-tdep.c, h8500-tdep.c: Ditto.
3881         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3882         * valprint.c, v850-tdep.c: Ditto.
3883         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3884         * mn10200-tdep.c: Ditto.
3885
3886         * Makefile.in (z8k-tdep.o): Update dependencies.
3887         (m68hc11-tdep.o, valprint.o): Ditto.
3888         (v850-tdep.o, d10v-tdep.o): Ditto.
3889         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3890         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3891         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3892         (sh_opc_h, gdb_sim_sh_h): Define.
3893         (elf_sh_h, elf_bfd_h): Define.
3894         (opcode_m68hc11_h): Define.
3895         (OPCODES_SRC, OPCODES_DIR): define.
3896         (OPCODES): Use $(OPCODES_DIR).
3897         (gdb_sim_d10v_h): Rename sim_d10v_h.
3898         (gdb_sim_arm_h): Rename sim_arm_h.
3899
3900 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3901
3902         * utils.c (host_pointer_to_address, address_to_host_pointer):
3903         Change internal_error() message to indicate function responsible
3904         for the error.
3905
3906 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3907
3908         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3909         calls to local_hex_string_custom().
3910
3911 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3912
3913         * irix5-nat.c: Move IRIX shared library support from here...
3914         * solib-irix.c: ...to here.  Revised substantially to work with
3915         generic solib framework.
3916
3917         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3918         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3919         * mips-irix-tdep.c: New file.
3920
3921         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3922         (mips-irix-tdep.o, solib-irix.o): New rules.
3923         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3924         solib-irix.o.
3925         * config/mips/irix6.mt (TDEPFILES): Likewise.
3926         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3927
3928 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3929
3930         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3931         disabled (via ``#if 0'') includes.
3932
3933 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3934
3935         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3936         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3937         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3938         Add support for the fpscr register.
3939         * rs6000-nat.c (regmap, fetch_inferior_registers)
3940         (store_inferior_registers, fetch_core_registers): Likewise.
3941
3942 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3943
3944         * rs6000-nat.c (language.h): Include.
3945         (special_regs): Delete this array.
3946         (regmap): New function.
3947         (fetch_register, store_register):  Use regmap() to map gdb
3948         register numbers to ptrace register numbers.  Also, use
3949         outputs from regmap() to make decisions regarding type of
3950         ptrace() call to make.  In particular, don't compare against
3951         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3952         (fetch_inferior_registers, store_inferior_registers): Where
3953         possible, obtain register numbers from tdep struct.  Don't
3954         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3955         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3956         (LAST_UISA_SP_REGNUM): Delete.
3957         
3958 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
3959
3960         * rs6000-nat.c (ppc-tdep.h): Include.
3961         (fetch_registers, store_register, fetch_core_registers): Don't
3962         access registers[] directly.  Instead, use supply_register() or
3963         regcache_collect() as appropriate.
3964         (find_toc_address): Format hex address with local_hex_string().
3965
3966 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
3967
3968         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3969         bfd/elf32-frv.c.
3970
3971 2002-07-24  Tom Tromey  <tromey@redhat.com>
3972
3973         * jv-exp.y: Marked all strings with _().
3974         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3975         internal_error.
3976         (MethodInvocation, CastExpression, parse_number, yyerror,
3977         java_type_from_name, push_expression_name, yylex): Typo fixes.
3978
3979 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
3980
3981         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3982         (tee_file_flush, tee_file_write, tee_file_fputs)
3983         (tee_file_isatty): New.
3984         * ui-file.h (tee_file_new): Add prototype.
3985
3986 2002-07-24  Aidan Skinner <aidan@velvet.net>
3987
3988         * ada-lang.c: Change k&r style function definitions to prototyped
3989         form.
3990         * ada-typeprint.c: Change k&r style function definitions to prototyped
3991         form.
3992         * ada-valprint.c: Change k&r style function definitions to prototyped
3993         form.
3994         
3995 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3996
3997         * README: Remove reference to remote-bug.
3998         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3999         remote-bug.c.
4000         (m88k-nat.o): Delete rule.
4001         (m88k-tdep.o): Delete rule.
4002         (remote-bug.o): Delete rule.
4003         * MAINTAINERS: Mark as obsolete.
4004         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4005         * m88k-tdep.c: Make file obsolete.
4006         * config/m88k/m88k.mh: Ditto.
4007         * config/m88k/delta88v4.mh: Ditto.
4008         * config/m88k/delta88v4.mt: Ditto.
4009         * config/m88k/delta88.mt: Ditto.
4010         * config/m88k/delta88.mh: Ditto.
4011         * remote-bug.c: Ditto.
4012         * config/m88k/tm-delta88.h: Ditto.
4013         * config/m88k/nm-delta88v4.h: Ditto.
4014         * config/m88k/xm-delta88.h: Ditto.
4015         * config/m88k/xm-dgux.h: Ditto.
4016         * config/m88k/tm-m88k.h: Ditto.
4017         * config/m88k/nm-m88k.h: Ditto.
4018         * config/m88k/tm-delta88v4.h: Ditto.
4019         * m88k-nat.c: Ditto.
4020         * cxux-nat.c: Ditto.
4021         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4022         and m88*-*-* obsolete.
4023         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4024         m88*-*-* obsolete.
4025
4026 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4027
4028         * findvar.c (extract_unsigned_integer): Make `addr' parameter
4029         constant.  Same for local pointer variables.
4030         (extract_signed_integer): Ditto.
4031         * defs.h (extract_unsigned_integer): Update.
4032         (extract_signed_integer): Update.
4033
4034 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4035
4036         * regcache.c (regcache_raw_write): Change buf parameter to a
4037         constant void pointer.
4038         (regcache_raw_read): Change buf parameter to a void pointer.
4039         (legacy_write_register_gen): Change myaddr parameter a constant
4040         void pointer.
4041         (supply_register): Change val parameter to a const void pointer.
4042         * regcache.h (regcache_raw_write): Update declaration.
4043         (regcache_raw_read): Update declaration.
4044         (supply_register): Update declaration.
4045
4046 2002-07-24  Tom Tromey  <tromey@redhat.com>
4047
4048         * defs.h (gdb_readline_wrapper): Declare.
4049         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4050         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4051         * top.c (gdb_readline_wrapper): New function.
4052         (command_line_input): Use it.
4053
4054 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4055
4056         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4057         regcache_read and regcache_write.
4058         (regcache_raw_read_as_address): Replace regcache_read_as_address.
4059         * regcache.c: Update.
4060         * sh-tdep.c (sh64_push_arguments): Update comment.
4061         (sh_pseudo_register_read): Update.
4062         (sh_pseudo_register_write): Update.
4063         (sh4_register_read): Update.
4064         (sh4_register_write): Update.
4065         (sh64_pseudo_register_read): Update.
4066         (sh64_pseudo_register_write): Update.
4067         (sh64_register_read): Update.
4068         (sh64_register_write): Update.
4069         * i386-tdep.c (i386_extract_return_value): Update.
4070         (i386_extract_struct_value_address): Update.
4071         (i386_extract_return_value): Update.
4072         * blockframe.c (generic_read_register_dummy): Update.
4073         (generic_call_dummy_register_unwind): Update
4074         * infrun.c (write_inferior_status_register): Update.
4075
4076 2002-07-23  Jim Blandy  <jimb@redhat.com>
4077
4078         * parser-defs.h (expression_context_pc): Make this extern.
4079         (Thanks to Michael Snyder.)
4080
4081 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
4082
4083         GDB 5.2.1 released from 5.2 branch.
4084         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4085         * README: Update to mention 5.2.1.
4086
4087 2002-07-23  Mark Salter  <msalter@redhat.com>
4088
4089         * remote.c (remote_read_bytes): Fix check for error.
4090
4091 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4092
4093         * aix-thread.c (language.h): Include.
4094         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4095         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4096         Print newlines at end of debug messages.
4097         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4098         (pdc_write_data): Use local_hex_string() instead of %llx formats.
4099
4100 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4101
4102         * aix-thread.c (ppc-tdep.h): Include.
4103         (special_register_p): New function.
4104         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4105         (store_regs_user_thread): Use register number information from
4106         gdbarch_tdep struct instead of hardcoded offsets relative to
4107         FIRST_UISA_SP_REGNUM.
4108         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
4109         special_register_p() instead of using FPLAST_REGNUM and
4110         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4111         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
4112         will be MQ's register number.
4113
4114 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4115
4116         * aix-thread.c (ops): Rename to aix_thread_ops.
4117         (base_ops): Rename to base_target.
4118         (ops_attach): Rename to aix_thread_attach.
4119         (ops_detach): Rename to aix_thread_detach.
4120         (ops_resume): Rename to aix_thread_detach.
4121         (ops_wait):   Rename to aix_thread_wait.
4122         (ops_kill):   Rename to aix_thread_kill.
4123         (init_ops):   Rename to init_aix_thread_ops.
4124         (ops_fetch_register): Rename to aix_thread_fetch_register.
4125         (ops_store_register): Rename to aix_thread_store_register.
4126         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4127         (ops_thread_alive):   Rename to aix_thread_thread_alive.
4128         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4129         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
4130         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4131         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
4132         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4133         (store_regs_lib):  Rename to store_regs_user_thread.
4134         (store_regs_kern): Rename to store_regs_kernel_thread.
4135
4136 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4137
4138         * aix-thread.c (ops_prepare_to_store): Eliminate.
4139         (init_ops): Don't initialize ops.prepare_to_store.
4140         (store_regs_kern): Pre-fetch register buffers from child, 
4141         because some registers may not be in the cache.  Copy
4142         regs from register cache only if they are cached.
4143         (store_regs_lib): Copy regs from register cache only
4144         if they are cached.
4145         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4146         fill_gprs64): Ditto.
4147
4148 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4149
4150         * aix-thread.c (gdb_assert.h): Include.
4151         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4152         register sizes (from register cache) match size of buffer holding
4153         register data.
4154         (fill_sprs32): Change parameter types to match those in the ptrace()
4155         buffer.
4156         (store_regs_lib): Likewise, but for 32-bit temporary variables.
4157         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4158
4159 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4160
4161         * aix-thread.c (supply_sprs64): Cosmetic change.
4162         (supply_sprs32): Cosmetic change.
4163         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4164         (fill_sprs64): Use regcache_collect instead of read_register.
4165         (store_regs_lib): Use regcache_collect instead of 
4166         read_register.  Use fill_sprs32 instead of fill_sprs64,
4167         if debugging a 32-bit architecture.
4168         (store_regs_kern): Use fill_gprs64 etc. to pull the values
4169         out of the register cache, instead of passing a pointer into
4170         the register cache directly to ptrace.  Use regcache_collect
4171         insteaad of read_register.
4172         (ops_prepare_to_store): Use target_read_registers instead
4173         of read_register_bytes.
4174
4175 2002-07-20  Aidan Skinner <aidan@velvet.net>
4176
4177         * MAINTAINERS: Add self under write after approval. 
4178                 
4179 2002-07-20  Aidan Skinner <aidan@velvet.net>
4180
4181         * ada-tasks.c: Change k&r style function definitions to prototyped
4182         form.
4183                 
4184 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
4185
4186         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4187         * x86-64-tdep.c: Include "objfiles.h".
4188         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4189         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4190
4191 2002-07-17  Michal Ludvig  <michal@suse.cz>
4192
4193         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4194         (update_context): Initialise cfa variable.
4195
4196 2002-07-17  Michael Snyder  <msnyder@redhat.com>
4197
4198         * aix-thread.c: Shorten some long lines.  
4199         Bring comments into line with code spec.
4200
4201 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4202
4203         * infrun.c: Re-indent using gdb_indent.sh.
4204
4205 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4206
4207         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4208         Leave the indentation temporarily untouched, to minimize the diffs.
4209
4210 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
4211
4212         * stabsread.c: Make os9k sections of the code obsolete,
4213         for real this time.
4214         * stabsread.h: Make os9k sections of the code obsolete.
4215
4216 2002-07-18  Michal Ludvig <mludvig@suse.cz>
4217
4218         * linux-low.c (regsets_store_inferior_registers): Add free()
4219         at the end of a loop to prevent memory leak.
4220         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4221         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4222         * config/sparc/tm-sp64linux.h: Make the rest of #endif
4223         line a comment.
4224         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4225
4226 2002-07-17  Jim Blandy  <jimb@redhat.com>
4227
4228         * macrocmd.c (info_macro_command): Remove newline from error
4229         message.
4230
4231 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
4232
4233         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4234         (sh_gdbarch_init): Use it for sh-dsp.
4235
4236 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
4237
4238         * dwarf2read.c (read_initial_length): Handle older, non-standard,
4239         64-bit DWARF2 format.
4240
4241 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
4242
4243         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4244         <sys/proc.h> when not available.
4245
4246 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4247
4248         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4249         * stabsread.c: Make os9k sections of the code obsolete.
4250         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4251         * config/i386/i386os9k.mt: Make file obsolete.
4252         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4253         (COMMON_OBS): Remove os9kread.o
4254         (SFILES): Remove os9kread.c.
4255         (os9kread.o, remote-os9k.o): Make target obsolete.
4256         * remote-os9k.c: Make file obsolete.
4257         * os9kread.c: Make file obsolete.
4258         * Makefile.in
4259
4260 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4261
4262         * NEWS: Mention that the FR30 has been made obsolete.
4263         * fr30-tdep.c: Make file obsolete.
4264         * config/fr30/tm-fr30.h: Ditto.
4265         * config/fr30/fr30.mt: Ditto.
4266         * configure.tgt: Make fr30-*-elf obsolete.
4267         * MAINTAINERS: Make fr30-elf obsolete.
4268
4269 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4270
4271         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4272         found is not inside a section.
4273
4274 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4275
4276         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4277         strerror().
4278         (pdc_realloc): Use xrealloc() instead of realloc().
4279
4280 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4281
4282         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4283         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4284         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4285         macros.
4286
4287 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4288
4289         * aix-thread.c (ptrace_check): Eliminate goto.
4290         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
4291         problem.
4292
4293 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4294
4295         * aix-thread.c (gdbcmd.h): Include.
4296         (DEBUG, DBG, DBG2, dbg): Eliminate.
4297         (debug_aix_thread): New static global.
4298         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4299         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4300         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4301         invocations to DBG and DBG2 macros to test against
4302         ``debug_aix_thread'' and call fprintf_unfiltered().
4303         (_initialize_aix_thread): Add new command "set debug aix-thread".
4304
4305 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4306
4307         From Gerhard Tonn <TON@de.ibm.com>:
4308         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4309         instead of supply_register.
4310
4311 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4312
4313         * dwarf2cfi.c: Include "gdb_assert.h".
4314         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4315         non-NULL.
4316         (update_context): Do not use __func__.  Add missing ``break''.
4317         (update_context): Do not use __func__.
4318
4319 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
4320
4321         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4322         and its setting.  Set gdbarch instruction printing functions
4323         directly.  For non-rs6000 case use new function
4324         gdb_print_insn_powerpc.
4325         (gdb_print_insn_powerpc): New function.
4326
4327 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
4328
4329         * NEWS: Mention that the d30v has been marked obsolete.
4330         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4331         * configure.tgt: Mark d30v-*-* as obsolete.
4332         * d30v-tdep.c: Mark file as obsolete.
4333         * config/d30v/d30v.mt: Ditto.
4334         * config/d30v/tm-d30v.h: Ditto.
4335
4336 2002-07-13  Aidan Skinner <aidan@velvet.net>
4337
4338         * ada-tasks.c (add_task_entry): replace calls to
4339         malloc() with xmalloc
4340         * ada-tasks.c (init_task_list): replace calls to free with xfree()
4341         
4342         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4343         ada_finish_decode_line_1, all_sals_for_line
4344         ada_breakpoint_rewrite): replace calls to free() with xfree()
4345                 
4346 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4347
4348         From Nicholas Duffek (with minor changes by Martin Hunt, 
4349         Louis Hamilton, and Kevin Buettner):
4350         * aix-thread.c: New file.
4351
4352 2002-07-12  Petr Sorfa <petrs@caldera.com>
4353
4354         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
4355         complaint for invalid attribute class or form.
4356         (read_func_scope): DW_AT_frame_base
4357         better handling of DW_AT_block*.
4358         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4359         better handling of DW_AT_block*.
4360         (read_common_block): DW_AT_location
4361         better handling of DW_AT_block*.
4362         (read_partial_die): DW_AT_location better handling
4363         of DW_AT_block*.
4364         (new_symbol): DW_AT_external better handling of
4365         DW_AT_block*. Proper initialization of variable
4366         "addr".
4367         (attr_form_is_block): New function that returns true
4368         if the attribute's form is of DW_FORM_block*.
4369
4370 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4371
4372         * valops.c (find_method_list): Remove comment about
4373         removed STATIC_MEMFUNCP argument.
4374         (value_find_oload_method_list): Likewise.
4375
4376 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4377
4378         From Nicholas Duffek:
4379         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4380         target_new_objfile_hook.
4381
4382 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4383
4384         From Nicholas Duffek:
4385         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4386         csect.
4387
4388 2002-07-12  Andrew Cagney  <cagney@redhat.com>
4389
4390         * MAINTAINERS: Mention --enable-sim-build-warnings.
4391         (m68hc11-elf): Disable sim build warnings.
4392         (m32r-elf): Mark as broken obsolete candidate.
4393         (x86_64-linux-gnu): Mark as buildable with -Werror.
4394         (arm-elf): Change -w to ``,'' which enables warnings but not
4395         -Werror.
4396
4397 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
4398
4399         * bcache.h: Update copyright.
4400         (struct bstring, struct bcache): Move definition to "bcache.c".
4401         Replaced by opaque declaration.
4402         (bcache_xfree): Replace free_bcache.
4403         (bcache_xmalloc, bcache_memory_used): Declare.
4404         
4405         * bcache.c: Update copyright.
4406         (struct bstring, struct bcache): Moved to here from "bcache.h".
4407         Update comments.
4408         (bcache_xmalloc, bcache_memory_used): New functions.
4409         (bcache_xfree): Replace function free_bcache.
4410         
4411         * Makefile.in (objfiles.o): Add $(bcache_h).
4412         (objfiles_h): Remove $(bcache_h).
4413         (symfile.o): Add $(bcache_h).
4414
4415         * symmisc.c: Update copyright.
4416         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4417         (print_objfile_statistics): Use bcache_memory_used.
4418
4419         * symfile.c: Include "bcache.h".
4420         (reread_symbols): Use bcache_xfree.
4421         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4422         (add_psymbol_to_list): Pass psymbol_cache by value.
4423         (add_psymbol_with_dem_name_to_list): Ditto.
4424
4425         * objfiles.h: Update copyright.
4426         (struct bcache): Declare opaque.  Do not include "bcache.h".
4427         (struct objfile): Change psymbol_cache and macro_cache to ``struct
4428         bcache'' pointers.
4429         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4430
4431         * objfiles.c: Include "bcache.h".  Update copyright.
4432         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4433         macro_cache.
4434         (free_objfile): Use bcache_xfree.
4435
4436 2002-07-11  Grace Sainsbury  <graces@redhat.com>
4437
4438         * monitor.c (monitor_fetch_register): Make name a constant.
4439         (monitor_store_register): Same.
4440
4441 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
4442
4443         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4444         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4445         (finish_block) For non-function blocks, hash the symbol table.  For
4446         function blocks, mark the symbol table as unhashed.
4447         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4448         (msymbol_hash_iw): Likewise.
4449         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4450         value.
4451         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4452         (lookup_minimal_symbol): Likewise for both.
4453         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4454         hashtable.
4455         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4456         (ALL_BLOCK_SYMBOLS): Update.
4457         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4458         (struct symbol): Add `hash_next' pointer.
4459         * symtab.c (lookup_block_symbol): Search using the hash table when
4460         possible.
4461         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4462         (search_symbols, find_addr_symbol): Likewise.
4463
4464         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4465         (read_dst_symtab): Likewise.
4466         * jv-lang.c (get_java_class_symtab): Likewise.
4467         * mdebugread.c: Include "gdb_assert.h".
4468         (shrink_block): Assert that the block being modified is not hashed.
4469         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4470         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4471         symbols.
4472         (dump_symtab): Recognize hashed blocks.
4473         * printcmd.c (print_frame_args):  Assert that function blocks do not
4474         have hashed symbol tables.
4475         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4476         (fill_in_ada_prototype, debug_print_block): Likewise.
4477         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4478
4479 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4480
4481         * stack.c (print_frame): Use result of frame_address_in_block()
4482         instead of fi->pc when evaluating symbols.
4483         (backtrace_command_1): Ditto.
4484
4485 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4486
4487         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4488         Make static.
4489
4490         * arm-tdep.c (arm_register_name): Make return type constant.
4491
4492 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4493
4494         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4495         prototype.
4496         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4497         * s390-tdep.c (s390_fp_regnum): Ditto.
4498         (s390_read_fp): Ditto.
4499         (s390_pop_frame): Ditto.
4500         (_initialize_s390_tdep): Ditto.
4501         * remote.c (get_remote_state): Ditto.
4502         * procfs.c (mappingflags): Ditto.
4503         * memattr.c (_initialize_mem): Ditto.
4504         * mcore-tdep.c (mcore_pop_frame): Ditto.
4505         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4506         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4507         * language.c (set_case_str): Ditto.
4508         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4509         * frv-tdep.c (new_variant): Ditto.
4510         (frv_stopped_data_address): Ditto.
4511         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4512         (context_alloc): Ditto.
4513         (frame_state_alloc): Ditto.
4514         (unwind_tmp_obstack_init): Ditto.
4515         (unwind_tmp_obstack_free): Ditto.
4516         (cfi_read_fp): Ditto.
4517         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4518         (cris_pop_frame): Ditto.
4519         * c-lang.c (scanning_macro_expansion): Ditto.
4520         (finished_macro_expansion): Ditto.
4521         (c_preprocess_and_parse): Ditto.
4522         * gdbarch.sh: Ditto.
4523         * gdbarch.h, gdbarch.c: Regenerate.
4524         * config/mn10200/tm-mn10200.h: Adjust indentation.
4525         * target.c: Adjust indentation.
4526         * symtab.h: Adjust indentation.
4527         * stabsread.h: Adjust indentation.
4528         * remote-es.c: Adjust indentation.
4529         * os9kread.c: Adjust indentation.
4530
4531 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4532         
4533         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4534         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4535
4536 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4537         
4538         * NEWS: Mention m68k, mcore multi-arching.  
4539         * MAINTAINERS: Change status of m68k, mcore to reflect
4540         multi-arching.
4541
4542 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4543
4544         * valops.c (find_overload_match): Free oload_syms.
4545
4546 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4547
4548         Define HAVE_SYS_PROC_H if sys/proc.h exists
4549         * configure.in: Add check for sys/proc.h
4550         * config.in: Regenerate.
4551         * configure: Regenerate.
4552
4553 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4554
4555         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4556         #if !GDB_MULTI_ARCH. 
4557
4558 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4559
4560         * config.in, configure: Regenerate.
4561
4562 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4563
4564         * dwarf2cfi.c: Include "gcore.h".
4565         (execute_stack_op): Fix implementation of the
4566         DW_OP_deref and DW_OP_deref_size operators by letting do their
4567         lookup in the target.
4568
4569 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4570
4571         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4572         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4573         tdep->sc_sp_offset.
4574
4575 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4576
4577         Fix PR gdb/595, gdb/602
4578         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4579         Don't call value_cast, just read the vtable pointer; update comments
4580         to match.
4581
4582 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4583
4584         * config/mcore/tm-mcore.h: Remove file.
4585         * config/mcore/mcore.mt: Remove definition of TM_FILE
4586         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4587
4588 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4589
4590         * i386bsd-tdep.c: Include "gdb_string.h".
4591
4592 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4593
4594         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4595         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4596         mcore-tdep.
4597         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4598         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4599         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4600         (RETVAL_REGNUM): Move macros from tm-mcore.h
4601         (mcore_reg_struct_has_addr): New function.
4602         (mcore_gdbarch_init): Added initializations for the macros removed
4603         from tm-mcore.h.
4604
4605 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4606
4607         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4608         traditonal string branding within the ELF header.
4609
4610 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4611
4612         * symtab.c (remove_params): New function.
4613         (make_symbol_overload_list): Use it instead of cplus_demangle.
4614         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4615
4616 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4617
4618         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4619
4620         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4621         New variables.
4622         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4623         and tdep->sigtramp_end.
4624         * i386obsd-nat.c: New file.
4625         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4626
4627         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4628         Don't call get_current_frame().
4629
4630 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4631
4632         * i386-nat.c (child_post_startup_inferior): New function
4633         calling i386_cleanup_dregs if
4634         I386_USE_GENERIC_WATCHPOINTS is defined.
4635         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4636         conditional to acknowledge that i386-nat.c has its
4637         own child_post_startup_inferior function.
4638
4639 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4640
4641         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4642         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4643         instead of MAX_REGISTER_RAW_SIZE.
4644         (i386_extract_return_value, i386_extract_struct_value_address):
4645         Convert to use regcache.
4646         (i386_gdbarch_init): Set max_register_raw_size and
4647         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4648         Set extract_return_value and extract_struct_value_address instead
4649         of their deprecated variants.
4650
4651         Convert i386 target to generic dummy frames.
4652         * i386-tdep.c: Include "symfile.h".
4653         (i386_frameless_signal_p): Consider a function to be frameless if
4654         the pc points at the first instruction of the function.
4655         (i386_frame_chain): Handle (generic) call dummies.
4656         (i386_frame_saved_pc): Likewise.
4657         (i386_frame_init_saved_regs): Remove code dealing with call
4658         dummies on the stack.
4659         (i386_push_dummy_frame): Removed.
4660         (i386_call_dummy_words): Removed.
4661         (i386_fix_call_dummy): Removed.
4662         (i386_push_return_address): New function.
4663         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4664         parameter, and don't call get_current_frame.
4665         (i386_pop_frame): New function.
4666         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4667         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4668         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4669         call_dummy_length to 0, set call_dummy_words to NULL, set
4670         sizeof_call_dummy_words to 0, set fix_call_dummy to
4671         generic_fix_call_dummy, set pc_in_call_dummy to
4672         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4673         generic_push_dummy_frame, set push_return_address to
4674         i386_push_return_address and set frame_chain_valid to
4675         generic_file_frame_chain_valid.
4676
4677 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4678
4679         * gdbarch.sh (struct regcache): Add opaque declaration.
4680         (EXTRACT_RETURN_VALUE): New architecture method.
4681         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4682         * gdbarch.h, gdbarch.c: Regenerate.
4683         * arch-utils.c (legacy_extract_return_value): New function.
4684         * arch-utils.h (legacy_extract_return_value): Declare.
4685         * values.c (value_being_returned): Re-enable code handling
4686         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4687         deprecated_grub_regcache_for_registers call to block handling
4688         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4689         (EXTRACT_RETURN_VALUE): Do not define.
4690
4691 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4692
4693         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4694         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4695         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4696         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4697         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4698         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4699         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4700         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4701         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4702         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4703         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4704         argument so the function fits the prototype in the architecture
4705         vector.
4706         (mcore_pop_frame): Remove argument so the function fits the
4707         prototype. Use get_current_frame instead of the argument.
4708         (mcore_push_arguments): Change type of struct_return so the
4709         function can be used in the architecture vector.
4710         (mcore_store_struct_return): Add.
4711         (mcore_frame_init_saved_regs): Add.
4712         (mcore_gdbarch_init): Add function calls to replace the macros
4713         removed from tm-mcore.h
4714
4715 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4716
4717         * infcmd.c (print_return_value): Remove compatibility code calling
4718         deprecated_grub_regcache_for_registers.
4719         
4720         * values.c: Include "regcache.h".
4721         (value_being_returned): Update.  Use
4722         deprecated_grub_regcache_for_registers to extract the register
4723         buffer address.  
4724         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4725         ``struct regcache''.
4726         * Makefile.in (values.o): Add dependency on $(regcache_h).
4727
4728         * inferior.h (run_stack_dummy): Change type of second parameter to
4729         a ``struct regcache''.
4730         * valops.c (hand_function_call): Change type of retbuf to ``struct
4731         regcache''.  Allocate using regcache_xmalloc, clean using
4732         make_cleanup_regcache_xfree.
4733         * infcmd.c (run_stack_dummy): Update.  Use
4734         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4735
4736         * regcache.c (do_regcache_xfree): New function.
4737         (make_cleanup_regcache_xfree): New function.
4738         * regcache.h (make_cleanup_regcache_xfree): Declare.
4739
4740 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4741
4742         * event-top.c (command_line_handler): Don't read past
4743         beginning of buffer.
4744
4745 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4746         
4747         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4748         struct frame_id. 
4749         (varobj_create): Store frame_id for root.
4750         (varobj_gen_name): Use xasprintf.
4751         (varobj_update): Save and restore frame using get_frame_id() and
4752         frame_find_by_id().
4753         (create_child): Use xasprintf.
4754         (new_root_variable): Initialize frame_id.
4755         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4756         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4757         to prevent memory leak.
4758
4759 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4760
4761         * valops.c (hand_function_call): Move declaration of retbuf to
4762         start of function, allocate using malloc, add a cleanup but before
4763         the inf_status cleanup, cleanup the buffer.  Rename local variable
4764         old_chain to inf_status_cleanup.
4765
4766 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4767
4768         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4769
4770         * cli/cli-decode.c (cmd_func_p): New function.
4771         (cmd_func): New function.
4772
4773         * command.h: Add cmd_func() and cmd_func_p().   
4774         
4775 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4776
4777         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4778         (REGISTER_SIZE): Remove.
4779         (MAX_REGISTER_RAW_SIZE): Remove.
4780         (REGISTER_VIRTUAL_TYPE): Remove.
4781         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4782         (REGISTER_NAME): Remove.
4783         (USE_GENERIC_DUMMY_FRAMES): Remove.
4784         (CALL_DUMMY): Remove.
4785         (CALL_DUMMY_START_OFFSET): Remove.
4786         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4787         (CALL_DUMMY_LOCATION): Remove.
4788         (FIX_CALL_DUMMY): Remove.
4789         (CALL_DUMMY_ADDRESS): Remove.
4790         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4791         (SAVE_DUMMY_FRAME_TOS): Remove.
4792         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4793         (mcore_register_virtual_type): New function.
4794         (mcore_register_byte): New function.
4795         (mcore_register_size): New function.
4796         (mcore_register_name): New function.
4797         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4798         macros removed from tm-mcore.h.
4799         (mcore_dump_tdep): Add.
4800         (_initialize_mcore_tdep): Add gdbarch_register call.
4801
4802 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4803
4804         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4805         frameless_look_for_prologue, such that we actually call this
4806         function.
4807
4808 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4809
4810         * frame.h (frame_address_in_block): New function.
4811
4812         * blockframe.c (frame_address_in_block): New function extracted
4813         from get_frame_block().
4814         (get_frame_block): Use frame_address_in_block().
4815         (block_innermost_frame): Use frame_address_in_block() to match
4816         the frame pc address against the block boundaries rather than
4817         the frame pc directly. This prevents a failure when a frame pc
4818         is actually a return-address pointing immediately after the end
4819         of the given block. 
4820
4821 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4822
4823         * MAINTAINERS: Add self under write after approval. 
4824
4825 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4826
4827         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4828         used in architecture vector. The default is
4829         m68k_local_breakpoint_from_pc.
4830         (m68k_local_breakpoint_from_pc): Add.
4831         (enum): Add register numbers from tm-m68k.h.
4832         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4833         vector.  
4834         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4835         GDB_MULTI_ARCH_PARTIAL.
4836         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4837         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4838         m68k-tdep.c.
4839         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4840         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4841         to enum in m68k-tdep.c
4842
4843 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4844
4845         * solib-osf.c (open_map): Compute the list of shared libraries
4846         loaded by the inferior, rather than the list of libraries loaded
4847         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4848         the wrong shared libraries...
4849
4850 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4851
4852         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4853         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4854         macros.
4855         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4856         Remove functions.
4857         (FRAMELESS_SIGNAL): Remove function.
4858         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4859         i386_linux_saved_pc_after_call): Removed.
4860         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4861         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4862         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4863
4864         * i386-tdep.c (i386_frameless_signal_p): New function.
4865         (i386_frame_chain): Deal with frameless signals.
4866         (i386_sigtramp_saved_sp): New function.
4867         (i386_frame_saved_pc): Deal with frameless signals.
4868         (i386_saved_pc_after_call): Make sure the correct value is
4869         returned just after entry into a sigtramp.
4870         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4871         i386fbsd4_sc_sp_offset): New variables.
4872         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4873         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4874         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4875         similiar to what we already did for sc_pc_offset.
4876         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4877         tdep->sc_sp_offset.
4878
4879         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4880
4881 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4882
4883         * config/i386/tm-x86-64linux.h: New.
4884         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4885         definitions.
4886         * config/i386/nm-x86-64.h: Rename to ...
4887         * config/i386/nm-x86-64linux.h: ... this one.
4888         * config/i386/x86-64linux.mh: Reflect the above change.
4889         
4890 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4891
4892         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4893         with sigcontext_addr.  Add sc_sp_offset.
4894         (i386bsd_sigtramp_saved_pc): Remove prototype.
4895         (i386bsd_sicontext_addr): Add prototype.
4896         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4897         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4898         (i386_svr4_sigtramp_saved_pc): Removed.
4899         (i386_svr4_sigcontext_addr): New function.
4900         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4901         Initialize tdep->sigcontext_addr instead.  Initialize
4902         tdep->sc_pc_offset and tdep->sc_sp_offset.
4903         (i386_gdbarch_init): Likewise.
4904         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4905         any more.
4906         (i386bsd_sigtramp_saved_pc): Remove function.
4907         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4908         Initialize tdep->sigcontext_addr instead.  Initialize
4909         tdep->sc_pc_offset.
4910         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4911         of tdep->sigtramp_saved_pc.
4912         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4913         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4914         instead.
4915
4916         * i386-tdep.c (i386_frameless_function_invocation,
4917         i386_frame_num_args, i386_frame_init_saved_regs,
4918         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4919         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4920         i386_extract_return_value, i386_store_return_value,
4921         i386_extract_struct_value_address, i386_register_virtual_type,
4922         i386_register_convertible, i386_register_convert_to_virtual,
4923         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4924         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4925         static.
4926
4927 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4928
4929         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4930
4931         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4932         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4933         this macro.  Include "value.h".
4934
4935 2002-06-30  Aidan Skinner  <aidan@velvet.net>
4936
4937         * ada-exp.tab.c: remove as it's a generated file
4938         * ada-lex.c: remove as it's a generated file
4939                 
4940 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
4941
4942         * config/i386/tm-i386.h (struct frame_info, struct
4943         frame_saved_regs, struct value, struct type): Remove forward
4944         declarations.
4945
4946         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4947         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4948         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4949         (FILL_FPXREGSET): Define.
4950
4951         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4952
4953         * configure.tgt (i[3456]86-*-openbsd*): Fold into
4954         i[3456]86-*-netbsd* case.
4955         * config/i386/tm-obsd.h: Removed.
4956         * config/i386/obsd.mt: Removed.
4957         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4958         core-aout.o.
4959         (MH_CFLAGS): Add -DYYDEBUG=0.
4960
4961         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4962         i386nbsd_sc_pc_offset on OpenBSD too.
4963
4964         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4965         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4966         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4967         define.
4968         * i386bsd-tdep.c: Include "arch-utils.h".
4969         (i386bsd_aout_in_solib_call_trampoline): New function.
4970         (i386bsd_init_abi): Set in_solib_call_trampoline to
4971         i386bsd_aout_in_solib_call_trampoline.
4972         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4973         in_solib_call_trampoline to generic_in_solib_call_trampoline.
4974
4975 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4976
4977         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4978         (struct obstack, struct bcache): Add opaque declarations.
4979         * Makefile.in (macrotab_h): Update
4980
4981 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4982
4983         * blockframe.c (generic_find_dummy_frame): Change return type to
4984         ``struct regcache''.
4985         (struct dummy_frame): Replace field ``registers'' with regcache, a
4986         struct regcache object.
4987         (generic_find_dummy_frame): Update.
4988         (generic_push_dummy_frame): Update.  Use regcache_xfree,
4989         regcache_xmalloc and regcache_cpy.
4990         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
4991         regcache_xfree.
4992         (deprecated_generic_find_dummy_frame): Update.
4993         (generic_read_register_dummy): Update.  Use
4994         regcache_read_as_address.
4995         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
4996         (generic_get_saved_register): Update.  Use regcache_read.
4997
4998 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4999
5000         * Makefile.in (objfiles_h): Add $(bcache_h).
5001         * objfiles.h: Include "bcache.h".
5002
5003         * Makefile.in (symtab_h): Remove $(bcache_h).
5004         * symtab.h: Do not include "bcache.h".
5005
5006 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5007
5008         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5009         generic_func_frame_chain_valid.
5010
5011 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
5012
5013         * config/i386/nm-fbsd.h: Include <sys/param.h>.
5014         * config/i386/tm-fbsd.h: Likewise.
5015
5016 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5017
5018         * rs6000-tdep.c (rs6000_gdbarch_init): Use
5019         generic_unwind_get_saved_register.
5020
5021 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5022
5023         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5024         * regcache.c (supply_register): Add missing argument to
5025         register_buffer call.
5026
5027 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5028
5029         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
5030         Solaris /bin/grep does not not like it.  From Peter Schauer.
5031
5032 2002-06-26  Tom Tromey  <tromey@redhat.com>
5033
5034         * command.h (add_setshow_cmd): Declare.
5035         (add_setshow_cmd_full): Declare.
5036         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
5037         returns void.  Use add_setshow_cmd_full.
5038         (add_setshow_cmd_full): New function.
5039         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5040         (add_setshow_boolean_cmd): Likewise.
5041
5042 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5043
5044         * config/vax/tm-vax.h: Protect from multiple inclusion.
5045         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5046         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5047         * config/vax/tm-vaxbsd.h: ...here.  New file.
5048         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5049
5050 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5051
5052         * config/vax/tm-vax.h (BREAKPOINT): Remove.
5053         (BELIEVE_PCC_PROMOTION): Remove.
5054         (AP_REGNUM): Move to...
5055         * config/vax/nm-vax.h: ...here.
5056         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5057         (vax_breakpoint_from_pc): New function.
5058         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5059         and gdbarch_believe_pcc_promotion.
5060
5061 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5062
5063         * Makefile.in (vax_tdep_h): Define.  
5064         (vax-tdep.o): Use $(vax_tdep_h).
5065         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5066         (vax_dump_tdep): New function. 
5067         (_initialize_vax_tdep): Register vax_dump_tdep.
5068         * vax-tdep.h: Include osabi.h.     
5069         (struct gdbarch_tdep): New. 
5070
5071 2002-06-26  Andrew Cagney  <cagney@redhat.com>
5072
5073         * frame.h (deprecated_generic_find_dummy_frame): Rename
5074         generic_find_dummy_frame.
5075         * blockframe.c (generic_find_dummy_frame): Make static.
5076         (deprecated_generic_find_dummy_frame): New function.
5077         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5078         generic_find_dummy_frame with deprecated_find_dummy_frame.
5079         (sh64_nofp_frame_init_saved_regs): Ditto.
5080         (sh_fp_frame_init_saved_regs): Ditto.
5081         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5082         (s390_frame_chain): Ditto.
5083         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5084
5085 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5086
5087         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5088         gdbarch vector are at the top.
5089         (NUM_REGS): Remove.
5090         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5091         (FRAME_ARGS_ADDRESS): Remove.
5092         (FRAME_LOCALS_ADDRESS): Remove.
5093         (FRAME_NUM_ARGS): Remove.
5094         (FRAME_ARGS_SKIP): Remove.  
5095         * m68k-tdep.c (enum): Add eumeration of special register numbers.
5096         (m68k_gdbarch_init): Add gdbarch initializations for macros
5097         undefined in tm-m68k.h
5098
5099 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5100
5101         * monitor.h: Add the function regname to monitor_ops
5102         structure. This way NUM_REGS does not have to be a constant.
5103         * monitor.c (monitor_fetch_register): Added support for regname
5104         function. The function is called if the array regnames is NULL.
5105         (monitor_store_register): Same.
5106         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5107         regnames array.
5108         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5109         cpu32bug_cmds.regname to point to new function.
5110         * abug-rom.c (abug_regname): Same as above.
5111         (init_abug_cmds): Same.
5112         * dbug-rom.c (dbug_regname): Same as above.
5113         (init_dbug_cmds): Same.
5114         * remote-est.c (est_regname): Same. 
5115         (init_est_cmds): Same.
5116         * rom68k-rom.c (rom68k_regname): Same. 
5117         (init_rom68k_cmds): Same.
5118
5119 2002-06-25  Tom Tromey  <tromey@redhat.com>
5120
5121         * breakpoint.c (delete_command): Don't repeat `delete' commands.
5122
5123 2002-06-25  Andrew Cagney  <cagney@redhat.com>
5124
5125         * infrun.c (stop_registers): Change variable's type to ``struct
5126         regcache'''.
5127         (xmalloc_inferior_status): Delete function.
5128         (free_inferior_status): Delete function.
5129         (normal_stop): Use regcache_cpy.
5130         (struct inferior_status): Change type of fields ``stop_registers''
5131         and ``registers'' to ``struct regcache''.
5132         (write_inferior_status_register): Use regcache_write.
5133         (save_inferior_status): Instead of calling
5134         xmalloc_inferior_status, allocate the inf_status buffer directly.
5135         Use regcache_dup_no_passthrough and regcache_dup to save the
5136         buffers.
5137         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5138         Replace the stop_registers regcache instead of overriding it.  Use
5139         regcache_xfree.  Instead of calling free_inferior_status, xfree
5140         the buffer directly.
5141         (discard_inferior_status): Use regcache_xfree.  Instead of calling
5142         free_inferior_status, xfree the buffer directly.
5143         (build_infrun): Use regcache_xmalloc.
5144         (_initialize_infrun): Delete redundant call to build_infrun.
5145
5146         * Makefile.in (infcmd.o): Add $(regcache_h).
5147
5148         * infcmd.c: Include "regcache.h".
5149         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5150         obtain the address of `stop_registers' register buffer.
5151         (print_return_value): Ditto.
5152
5153         * inferior.h (struct regcache): Add opaque declaration.
5154         (stop_registers): Change variable's declared type to ``struct
5155         regcache''.
5156
5157 2002-06-24  Tom Tromey  <tromey@redhat.com>
5158
5159         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5160         * target.c (initialize_targets): Fixed typo in
5161         trust-readonly-sections `show' documentation.
5162
5163         * main.c: Marked all strings with _().
5164
5165 2002-06-24  Don Howard  <dhoward@redhat.com>
5166
5167         * memattr.c (create_mem_region): Treat hi == 0 as a special case
5168         that means max CORE_ADDR+1.
5169         (lookup_mem_region): Ditto.
5170         (mem_info_command): Ditto.
5171
5172 2002-06-24  Grace Sainsbury  <graces@redhat.com>
5173
5174         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5175         (REGISTER_BYTES_OK): Remove.
5176         (REGISTER_BYTES): Remove.
5177         (STORE_STRUCT_RETURN): Remove.
5178         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5179         (STORE_RETURN_VALUE): Remove.
5180         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5181         (FRAME_CHAIN): Remove.
5182         (FRAMELESS_FUNCTION_INVOCATION): Remove.
5183         (FRAME_SAVED_PC): Remove.  
5184         * m68k-tdep.c (m68k_register_bytes_ok):Add.
5185         (m68k_store_struct_return): Add.
5186         (m68k_deprecated_extract_return_value): Add.
5187         (m68k_deprecated_extract_struct_value_address): Add.
5188         (m68k_store_return_value): Add.
5189         (m68k_frame_chain): Add.
5190         (m68k_frameless_function_invocation): Add.
5191         (m68k_frame_saved_pc): Add.
5192         (m68k_gdbarch_init): added set_gdbarch calls for new 
5193         functions and deleted macros.
5194
5195 2002-06-23  Tom Tromey  <tromey@redhat.com>
5196
5197         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5198         (ALLDEPFILES): Likewise.
5199         (udiheaders): Removed.
5200         (udip2soc.o): Likewise.
5201         (udi2go32.o): Likewise.
5202         (udr.o): Likewise.
5203         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5204
5205 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
5206
5207         * infrun.c (_initialize_infrun): Delete unnecessary call to
5208         build_infrun.
5209
5210         * regcache.h: Update comments describing the regcache_cpy family
5211         of functions.
5212         (regcache_save, regcache_restore): Delete declaration.
5213         (regcache_save_no_passthrough): Delete declaration.
5214         (regcache_restore_no_passthrough): Delete declaration.
5215         * regcache.c (regcache_save): Delete function.
5216         (regcache_save_no_passthrough): Delete function.
5217         (regcache_restore): Delete function.
5218         (regcache_restore_no_passthrough): Delete function.
5219
5220 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
5221
5222         * config/m68k/tm-m68k.h: Fix typo.
5223         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5224         (m68k_frame_init_saved_regs): Declare.
5225
5226 2002-06-21  Jim Blandy  <jimb@redhat.com>
5227
5228         Remove some vestiges of Harris 88k support.
5229         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5230         register numbering quirk.
5231         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5232         odd symbols occurring in Harris 88k ELF targets.
5233
5234 2002-06-21  Tom Tromey  <tromey@redhat.com>
5235
5236         * gdb_locale.h: New file.
5237         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5238         (defs_h): Added gdb_locale.h.
5239         * configure, config.in: Rebuilt.
5240         * configure.in (PACKAGE): Define.
5241         * defs.h: Include gdb_locale.h.
5242         * main.c (captured_main): Call setlocale, bindtextdomain,
5243         textdomain.
5244
5245 2002-06-21  Dave Brolley  <brolley@redhat.com>
5246
5247         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5248         * config/frv/frv.mt: New file.
5249         * config/frv/tm-frv.h: New file.
5250         * configure.tgt: Support frv-*-*.
5251         * Makefile.in (frv-tdep.o): New target.
5252         * frv-tdep.c: New file.
5253         * NEWS: Mention frv.
5254
5255 2002-06-21  Dave Brolley  <brolley@redhat.com>
5256
5257         * MAINTAINERS: Add self to "Write After Approval" list.
5258
5259 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5260
5261         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5262         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5263         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5264         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5265         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5266
5267         * m68k-tdep.c: Include arch-utils.h
5268         (m68k_register_raw_size): Add.
5269         (m68k_register_virtual_size): Add.
5270         (m68k_register_virtual_type): Add.
5271         (m68k_register_name): Add.
5272         (m68k_stack_align): Add.
5273         (m68k_register_byte): Add.
5274         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5275         tm-m68k.h.
5276
5277 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5278
5279         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5280         m68k_find_saved_regs.
5281         (m68k_pop_frame): Removed saved_regs structure, and replaced
5282         references to it with frame->saved_regs.
5283         (m68k_gdbarch_init): Added function calls to initialize the
5284         gdbarch structure.
5285         (m68k_fix_call_dummy): Add. 
5286         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5287         (CALL_DUMMY): Remove.
5288         (CALL_DUMMY_LENGTH): Remove.
5289         (CALL_DUMMY_START_OFFSET): Remove.
5290         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5291         (FIX_CALL_DUMMY): Remove.
5292         (PUSH_DUMMY_FRAME): Remove.
5293         (POP_FRAME): Remove.
5294
5295 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5296
5297         * parse.c (parse_fprintf): New function used to avoid calls to
5298         fprintf in bison parser generated debug code.
5299         * parser-defs.h: Declaration of new parse_fprintf function.
5300         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5301         Set YYDEBUG to 1 by default.
5302         Set YYFPRINTF as parse_fprintf.
5303
5304 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
5305
5306         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
5307         encoding anymore.
5308         (pointer_encoding, enum ptr_encoding): New.
5309         (execute_cfa_program): Take care about pointer encoding.        
5310         (dwarf2_build_frame_info): Only call parse_frame_info for 
5311         .debug_frame and .eh_frame.
5312         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5313         fixed augmentation handling, added relative addressing, 
5314         ignore duplicate FDEs. Added comments.
5315         * dwarf2cfi.c: Reindented.
5316         
5317 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
5318
5319         * event-top.c (command_handler): Don't use space_at_cmd_start
5320         unless there is sbrk() on the host. Assign time and space data
5321         to union fields of the appropriate length.
5322
5323 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
5324
5325         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
5326         x86_64_register_name. Return type changed to 'const char *'.
5327         (x86_64_register_name2nr): Rename to x86_64_register_number.
5328         (x86_64_gdbarch_init): Update to reflect the change.
5329         * x86-64-tdep.h: Ditto.
5330         * x86-64-linux-nat.c (x86_64_fxsave_offset)
5331         (supply_fpregset): Ditto.
5332
5333 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5334
5335         * regcache.h: Update copyright.
5336         (struct regcache, struct gdbarch): Add opaque declarations.
5337         (current_regcache): Declare global variable.
5338         (regcache_read, regcache_write): Add gdbarch parameter.
5339         (regcache_save, regcache_save_no_passthrough)
5340         (regcache_restore, regcache_restore_no_passthrough)
5341         (regcache_dup, regcache_dup_no_passthrough)
5342         (regcache_cpy, regcache_cpy_no_passthrough)
5343         (deprecated_grub_regcache_for_registers)
5344         (deprecated_grub_regcache_for_register_valid)
5345         (regcache_valid_p): Add function declarations.
5346         
5347         * regcache.c: Update copyright.
5348         (regcache_descr_handle): New global variable.
5349         (struct regcache_descr): Define.
5350         (init_legacy_regcache_descr, init_regcache_descr): New functions.
5351         (regcache_descr, xfree_regcache_descr): New functions.
5352         (struct regcache): Define.
5353         (regcache_xmalloc, regcache_xfree): New functions.
5354         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5355         (regcache_dup, regcache_dup_no_passthrough): New functions.
5356         (regcache_valid_p, regcache_read_as_address): New functions.
5357         (deprecated_grub_regcache_for_registers): New function.
5358         (deprecated_grub_regcache_for_register_valid): New function.
5359         (current_regcache): New global variable.
5360         (register_buffer): Add regcache parameter.  Update calls.
5361         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
5362         (read_register_gen, write_register_gen): Update register_buffer
5363         call.  Test for legacy_p instead of gdbarch_register_read_p or
5364         gdbarch_register_write_p.
5365         (regcache_collect): Update register_buffer call.
5366         (build_regcache): Rewrite.  Use deprecated grub functions.
5367         (regcache_save, regcache_save_no_passthrough): New functions.
5368         (regcache_restore, regcache_restore_no_passthrough): New
5369         functions.
5370         (_initialize_regcache): Create the regcache_data_handle. Swap
5371         current_regcache global variable.
5372         
5373         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5374         parameter to regcache_read and regcache_write calls.
5375         (sh4_register_read): Ditto.
5376         (sh64_pseudo_register_read): Ditto.
5377         (sh64_register_read): Ditto.
5378         (sh_pseudo_register_write): Ditto.
5379         (sh4_register_write): Ditto.
5380         (sh64_pseudo_register_write): Ditto.
5381         (sh64_register_write): Ditto.
5382
5383         * defs.h (XCALLOC): Define.
5384
5385 2002-06-19  Grace Sainsbury  <graces@redhat.com>
5386
5387         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5388         * m68k-tdep.c (m68k_gdbarch_init): Added.
5389         (m68k_dump_tdep): Added.
5390
5391 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5392
5393         * ada-lang.c (fill_in_ada_prototype): Update comment.
5394
5395 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5396
5397         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
5398         MIPS_ABI_LAST.
5399         (mips_abi_string, mips_abi_strings): New.
5400         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5401         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
5402         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
5403         O32 if no ABI is found.
5404         (mips_dump_tdep): Use mips_abi_strings.
5405         (mips_abi_update): New function.
5406         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
5407         ``set mips abi'' and ``show mips abi''.  Check the size of
5408         mips_abi_strings.
5409
5410 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5411
5412         * i386-linux-tdep.c (i386_linux_register_name): Make return type
5413         constant.
5414
5415 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
5416
5417         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
5418         current frame using only the first stack size adjustment. All
5419         subsequent size adjustments are not considered to be part of
5420         the "static" part of the current frame.
5421         Compute the address of the saved registers relative to the
5422         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5423         in use in this frame.
5424
5425 2002-06-18  Don Howard  <dhoward@redhat.com>
5426  
5427         * valops.c (value_ind): Use value_at_lazy() when dereferencing
5428         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
5429         suggesting this solution.
5430
5431 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
5432
5433         * config/romp/xm-rtbsd.h: Delete file.
5434         * config/romp/rtbsd.mh: Delete file.
5435
5436 2002-06-18  Keith Seitz  <keiths@redhat.com>
5437
5438         * breakpoint.c (condition_command): Post breakpoint_modify
5439         when a condition is added to an existing breakpoint.
5440         (commands_command): Likewise for commands.
5441         (set_ignore_count): Likewise for ignore counts.
5442         If no tty, do not simply return, still need to send event
5443         notification.
5444         (ignore_command): Only print a newline if the command came
5445         from a tty.
5446         Don't call breakpoints_changed, since this is now properly
5447         handled by set_ignore_count.
5448
5449 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5450
5451         * MAINTAINERS: Note that cris-elf target can be compiled with
5452         -Werror.
5453         * cris-tdep.c (cris_register_name): Make return type constant.
5454         (cris_breakpoint_from_pc): Ditto.
5455
5456 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5457
5458         * frame.h (struct frame_info): Change type of context to 
5459         'struct context'.
5460
5461 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5462
5463         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5464         pointer.
5465         * gdbarch.h, gdbarch.c: Regenerate.
5466         * config/mips/tm-mips.h (mips_register_name): Update.
5467         * i386-tdep.h (i386_register_name): Update.
5468         * mips-tdep.c (mips_register_name): Update
5469         * alpha-tdep.c (alpha_register_name): Update.
5470         * arch-utils.c (legacy_register_name): Update.
5471         * arch-utils.h (legacy_register_name): Update.
5472         * avr-tdep.c (avr_register_name): Update.
5473         * ia64-tdep.c (ia64_register_name): Update.
5474         * i386-tdep.c (i386_register_name): Update.
5475         * sparc-tdep.c (sparc32_register_name): Update.
5476         (sparc64_register_name): Update.
5477         (sparclite_register_name): Update.
5478         (sparclet_register_name): Update.
5479         * sh-tdep.c (sh_generic_register_name): Update.
5480         (sh_sh_register_name): Update.
5481         (sh_sh3_register_name): Update.
5482         (sh_sh3e_register_name): Update.
5483         (sh_sh_dsp_register_name): Update.
5484         (sh_sh3_dsp_register_name): Update.
5485         (sh_sh4_register_name): Update.
5486         (sh_sh64_register_name): Update.
5487         * s390-tdep.c (s390_register_name): Update.
5488         * rs6000-tdep.c (rs6000_register_name): Update.
5489         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5490         (ns32k_register_name_32382): Update.
5491         * d10v-tdep.c (d10v_ts2_register_name): Update.
5492         (d10v_ts3_register_name): Update.
5493         * xstormy16-tdep.c (xstormy16_register_name): Update.
5494         * vax-tdep.c (vax_register_name): Update.
5495         * v850-tdep.c (v850_register_name): Update.
5496         * m68hc11-tdep.c (m68hc11_register_name): Update.
5497         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5498         (am33_register_name): Update.
5499
5500 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5501
5502         * m68k-tdep.c: Reindented.
5503
5504 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5505
5506         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5507         list of predefined types.
5508
5509 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5510
5511         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5512         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5513         REGISTER_CONVERT_TO_RAW): Remove defines.
5514         (i386_register_virtual_type, i386_register_convertible,
5515         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5516         Remove prototypes.
5517         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5518         macros mentioned above.
5519
5520         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5521         (i386lynx_saved_pc_after_call): Remove prototype.
5522         * i386ly-tdep.c: Include "i386-tdep.h".
5523         (i386lynx_saved_pc_after_call): Make static.  Use
5524         read_memory_nobpt instead of read_memory.  Use
5525         read_memory_unsigned_integer instead of read_memory_integer.
5526         (i386lynx_init_abi): New function.
5527         (i386lynx_coff_osabi_sniffer): New function.
5528         (_initialize_i386bsd_tdep): New function.
5529
5530         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5531         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5532         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5533         (i386_fix_call_dummy): Remove prototype.
5534         * i386-tdep.c (i386_call_dummy_words): New variable.
5535         (i386_gdbarch_init): Adjust for removal of the
5536         macros mentioned above.
5537
5538 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5539
5540         * command.h (add_setshow_auto_boolean_cmd): Replace
5541         add_set_auto_boolean_cmd.
5542         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5543         add_set_auto_boolean_cmd.
5544         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5545         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5546         mask-address'' command.
5547         (show_mask_address): Add cmd parameter.
5548         * remote.c (add_packet_config_cmd): Update.  Change type of
5549         set_func and show_func to cmd_sfunc_ftype.
5550         (_initialize_remote): Update `set remote Z-packet'
5551         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5552         (show_remote_protocol_e_packet_cmd): Ditto.
5553         (show_remote_protocol_E_packet_cmd): Ditto.
5554         (show_remote_protocol_P_packet_cmd): Ditto.
5555         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5556         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5557         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5558         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5559         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5560         (show_remote_protocol_Z_packet_cmd): Ditto.
5561         (show_remote_protocol_binary_download_cmd): Ditto.
5562         (show_remote_cmd): Pass NULL to all of above.
5563
5564 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5565
5566         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5567         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5568         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5569         POP_FRAME): Remove defines.
5570         (i386_push_arguments, i386_store_struct_return,
5571         i386_extract_return_value, i386_store_return_value,
5572         i386_extract_struct_value_address, i386_push_dummy_frame,
5573         i386_pop_frame): Renove prototypes.
5574         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5575         macros mentioned above.
5576
5577 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5578
5579         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5580         add_set_boolean_cmd.
5581         (add_setshow_cmd): New function.
5582         * command.h (add_setshow_boolean_cmd): Replace
5583         add_set_boolean_cmd.
5584         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5585         and ``set rdiromatzero''.
5586         * maint.c (_initialize_maint_cmds): Update commented out code.
5587         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5588         * target.c (initialize_targets): Update `set
5589         trust-readonly-sections'.
5590         * remote.c (_initialize_remote): Update `set remotebreak'.
5591
5592 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5593
5594         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5595         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5596         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5597         fit into multi-arch framework.
5598         (i386_breakpoint_from_pc): New function.
5599         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5600         above.
5601
5602         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5603         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5604         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5605         (i386_frameless_function_invocation, i386_frame_num_args,
5606         i386_frame_init_saved_regs): Remove prototypes.
5607         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5608         macros mentioned above.
5609
5610 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5611
5612         * cli/cli-decode.c (set_cmd_cfunc): Update.
5613         (set_cmd_sfunc): Update.
5614         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5615         (set_cmd_sfunc, set_cmd_cfunc): Update.
5616         * cli/cli-decode.h: Update.
5617
5618 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5619
5620         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5621         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5622
5623 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5624
5625         * defs.h (auto_boolean): Declare enum.
5626         * command.h (cmd_auto_boolean): Delete enum.
5627         * mips-tdep.c (mask_address_var): Update.
5628         (mips_mask_address_p): Update.
5629         (show_mask_address): Update.
5630         * remote.c (struct packet_config): Update.
5631         (update_packet_config): Update.
5632         (show_packet_config_cmd): Update.
5633         (packet_ok): Update.
5634         (add_packet_config_cmd): Update.
5635         (_initialize_remote): 
5636         * command.h: Update.
5637         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5638         (do_setshow_command): Update.
5639         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5640         * cli/cli-decode.h: Update.
5641
5642 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5643
5644         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5645         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5646         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5647         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5648         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5649         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5650
5651         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5652         list of DJGPP COFF targets.
5653
5654         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5655         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5656         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5657         (FP0_REGNUM): Remove define.
5658         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5659         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5660         (i386_register_virtual_size): Remove protoype.
5661         * i386-tdep.c (i386_register_virtual_size): Removed.
5662         (i386_extract_return_value, i386_store_return_value): Use
5663         FP0_REGNUM instead of NUM_FREGS to determine whether the
5664         floating-point registers are available.
5665         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5666         Adjust for removal of macros mentioned above.
5667
5668 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5669
5670         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5671         comments.
5672         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5673         Remove prototypes.
5674         (supply_gregset, fill_gregset): Remove use of register keyword and
5675         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5676         NUM_REGS and NUM_FREGS.
5677         (FPREGSET_FSAVE_OFFSET): Remove.
5678         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5679         NUM_FREGS to determine whether the floating-point registers are
5680         available.
5681
5682         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5683         gnu_store_registers): Replace usage of NUM_GREGS with
5684         I386_NUM_GREGS.
5685
5686         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5687         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5688         usage of NUM_GREGS with I386_NUM_GREGS.
5689
5690         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5691
5692         * i386bsd-nat.c: Include "i386-tdep.h".
5693         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5694         I386_NUM_GREGS.
5695
5696         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5697         and associated comment.  They no longer make any sense, since we
5698         don't use this file anymore on Linux.
5699
5700         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5701         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5702         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5703         elements in these arrays.
5704         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5705         MAX_NUM_REGS.
5706
5707 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5708
5709         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5710         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5711
5712 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5713
5714         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5715         EXTRACT_RETURN_VALUE.
5716         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5717         EXTRACT_STRUCT_VALUE_ADDRESS.
5718         * gdbarch.h, gdbarch.c: Regenerate.
5719         
5720         * values.c (value_being_returned): Handle
5721         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5722         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5723
5724         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5725         * arm-tdep.c (arm_gdbarch_init): Update.
5726         * avr-tdep.c (avr_gdbarch_init): Update.
5727         * cris-tdep.c (cris_gdbarch_init): Update.
5728         * d10v-tdep.c (d10v_gdbarch_init): Update.
5729         * ia64-tdep.c (ia64_gdbarch_init): Update.
5730         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5731         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5732         * s390-tdep.c (s390_gdbarch_init): Update.
5733         * sh-tdep.c (sh_gdbarch_init): Update.
5734         * s390-tdep.c (s390_gdbarch_init): Update.
5735         * sparc-tdep.c (sparc_gdbarch_init): Update.
5736         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5737         * v850-tdep.c (v850_gdbarch_init): Update.
5738         * vax-tdep.c (vax_gdbarch_init): Update.
5739         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5740         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5741
5742         * config/arc/tm-arc.h: Update.
5743         * config/d30v/tm-d30v.h: Update.
5744         * config/fr30/tm-fr30.h: Update.
5745         * config/h8300/tm-h8300.h: Update.
5746         * config/h8500/tm-h8500.h: Update.
5747         * config/i386/tm-i386.h: Update.
5748         * config/i386/tm-ptx.h: Update.
5749         * config/i386/tm-symmetry.h: Update.
5750         * config/i960/tm-i960.h: Update.
5751         * config/m32r/tm-m32r.h: Update.
5752         * config/m68k/tm-delta68.h: Update.
5753         * config/m68k/tm-linux.h: Update.
5754         * config/m68k/tm-m68k.h: Update.
5755         * config/m88k/tm-m88k.h: Update.
5756         * config/mcore/tm-mcore.h: Update.
5757         * config/mips/tm-mips.h: Update.
5758         * config/mn10200/tm-mn10200.h: Update.
5759         * config/pa/tm-hppa.h: Update.
5760         * config/pa/tm-hppa64.h: Update.
5761         * config/sparc/tm-sp64.h: Update.
5762         * config/sparc/tm-sparc.h: Update.
5763         * config/sparc/tm-sparclet.h: Update.
5764         * config/z8k/tm-z8k.h: Update.
5765
5766 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5767
5768         * Makefile.in (i386_linux_tdep_h): Define.
5769         (i386_tdep_h, i387_tdep_h): Define.
5770         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5771         $(i386_tdep_h) and $(i387_tdep_h).
5772         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5773
5774 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5775
5776         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5777         Already covered by the default.
5778
5779         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5780         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5781         (i386_gdbarch_init): Initialize long_double_format and long_double
5782         bit.
5783
5784         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5785         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5786         Move these to ...
5787         * config/i386/i386sol2.mh: ... here.
5788         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5789         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5790         (SIGCONTEXT_PC_OFFSET): Remove define.
5791         (IN_SIGTRAMP): Remove define.
5792         * i386-sol2-tdep.c: New file.
5793         
5794         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5795         * config/i386/tm-i386nw.h: Removed.
5796
5797         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5798         USE_STRUCT_CONVENTION): Remove defines.
5799         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5800         (get_longjmp_target): Remove prototype.
5801         (IN_SIGTRAMP): Remove define.
5802         (i386bsd_in_sigtramp): Remove prototype.
5803         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5804         function.  Update comment accordingly
5805         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5806         (FRAME_SAVED_PC): Remove define.
5807         (i386bsd_frame_saved_pc): Remove prototype.
5808         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5809         GET_LONGJMP_TARGET): Remove defines.
5810         (get_longjmp_target): Remove prototype.
5811         (IN_SIGTRAMP): Remove define.
5812         (i386bsd_in_sigtramp): Remove prototype.
5813         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5814         function.  Update comment accordingly
5815         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5816         (FRAME_SAVED_PC): Remove define.
5817         (i386bsd_frame_saved_pc): Remove prototype.
5818         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5819         Remove prototype.
5820         (USE_STRUCT_CONVENTION): Remove prototype.
5821         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5822         declaration.
5823         (_initialize_i386bsd_nat): Revise logic to determine some
5824         constants at compile time when compiling a native GDB.  Warn if
5825         things don't match up with what we expect.
5826         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5827         Remove variables.
5828         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5829         to use date stored in `struct gdbarch_tdep'.
5830         (i386bsd_sigcontext_offset): Remove varaible.
5831         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5832         stored in `struct gdbarch_tdep'.
5833         (i386bsd_frame_saved_pc): Make static.
5834         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5835         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5836         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5837         i386fbsd4_sc_pc_offset): New variables.
5838         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5839         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5840         functions.
5841         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5842         functions.
5843         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5844         Modify the value of i386fbsd_sigtramp_start and
5845         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5846         i386fbsd_sigtramp_end.
5847         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5848         function.
5849
5850         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5851         define to i386-linux-tdep.h.
5852         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5853         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5854         defines.
5855         (i386_linux_register_name, i386_linux_register_byte,
5856         i386_linux_register_raw_size): Remove prototypes.
5857         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5858         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5859         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5860         TARGET_WRITE_PC): Remove defines.
5861         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5862         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5863         i386_linux_write_pc): Remove prototypes.
5864         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5865         (get_longjmp_target): Remove prototype.
5866         * i386-linux-tdep.h: New file.
5867         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5868         * i386-linux-tdep.c: Include "i386-tdep.h" and
5869         "i386-linux-tdep.h".
5870         (i386_linux_register_name, i386_linux_register_byte,
5871         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5872         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5873         Make static.
5874         (i386_linux_init_abi): New function.
5875         (_initialize_i386_linux_tdep): New function.
5876
5877         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5878         (i386_saved_pc_after_call): Remove prototype.
5879         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5880         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5881         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5882         (i386_register_name, i386_stab_reg_to_regnum,
5883         i386_dwarf_reg_to_regnum): Remove prototypes.
5884         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5885         SIZEOF_SSE_REGS): Remove defines.
5886         (REGISTER_BYTES): Remove define.
5887         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5888         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5889         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5890         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5891         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5892         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5893         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5894         (get_longjmp_target): Remove prototype.
5895         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5896         (sigtramp_saved_pc): Remove define.
5897         (i386v4_sigtramp_saved_pc): Remove prototype.
5898         * config/i386/tm-go32.h (FRAME_CHAIN,
5899         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5900         (i386go32_frame_saved_pc): Remove prototype.
5901         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5902         (get_longjmp_target): Remove prototype.
5903         * i386-tdep.h: Include "osabi.h".
5904         (enum i386_abi): Removed.
5905         (enum struct_return): New enum.
5906         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5907         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5908         sc_pc_offset members.
5909         (i386_gdbarch_register_os_abi): Remove prototype.
5910         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5911         I386_SSE_NUM_REGS): New defines.
5912         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5913         I386_SSE_SIZEOF_REGS): New defines.
5914         (i386_register_name, i386_register_byte, i386_register_raw_size):
5915         New prototypes.
5916         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5917         (i386bsd_sigtramp_saved_pc): New prototype.
5918         * i386-tdep.c: Don't include "elf-bfd.h".
5919         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5920         i386_frame_chain, i386_saved_pc_after_call): Make static.
5921         (i386_frame_saved_pc): Rewrite to call architecture dependent
5922         function to deal with signal handlers.  Make static.
5923         (i386go32_frame_saved_pc): Removed.
5924         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5925         Removed.
5926         (i386_get_longjmp_target): New function.
5927         (default_struct_convention, pcc_struct_convention,
5928         reg_struct_convention, valid_conventions, struct_convention): New
5929         variables.
5930         (i386_use_struct_convention): New function.
5931         (i386v4_sigtramp_saved_pc): Renamed to
5932         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5933         (i386_pc_in_sigtramp): New function.
5934         (i386_abi_names): Removed.
5935         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5936         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5937         Removed.
5938         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5939         i386_gdbarch_register_os_abi): Removed.
5940         (struct i386_abi_handler): Removed.
5941         (i386_abi_handler_list): Removed.
5942         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5943         functions.
5944         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5945         i386_nw_init_abi): New functions.
5946         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5947         Use set_gdbarch_xxx() calls instead of relying on macros for a
5948         number of calls.
5949         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5950         (_initialize_i386_tdep): Add new 'struct-convcention' command.
5951         Register the various architecture variants defined in this file.
5952
5953 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5954
5955         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5956         (struct main_type): Remove arg_types member.  Update comments for
5957         struct field.
5958         (TYPE_ARG_TYPES): Remove.
5959         (TYPE_FN_FIELD_ARGS): Update.
5960         (smash_to_method_type): Update prototype.
5961
5962         * c-typeprint.c (cp_type_print_method_args): Take method type
5963         instead of argument list.  Use new argument layout.  Simplify.
5964         (c_type_print_args): Use new argument layout.  Simplify.
5965         (c_type_print_base): Update call to cp_type_print_method_args.
5966         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5967         argument; use die->type instead.  Update call to
5968         smash_to_method_type.
5969         (read_structure_scope): Update call to dwarf2_add_member_fn.
5970         * gdbtypes.c (allocate_stub_method): Update comment.
5971         (smash_to_method_type): Take new NARGS and VARARGS arguments.
5972         Use new argument layout.
5973         (check_stub_method): Use new argument layout.  Don't count
5974         void as an argument.
5975         (print_arg_types): Update comments.  Use new argument layout.
5976         (recursive_dump_type): Don't print arg_types member.
5977         * hpread.c (hpread_read_struct_type): Use new argument layout.
5978         (fixup_class_method_type): Likewise.
5979         (hpread_type_lookup): Likewise.
5980         * stabsread.c (read_type): Update calls to read_args and
5981         smash_to_method_type.
5982         (read_args): Use new argument layout.  Simplify.
5983         * valops.c (typecmp): Use new argument layout.  Update parameters
5984         and comments.  Simplify.
5985         (hand_function_call): Use new argument layout.
5986         (search_struct_method): Update call to typecmp.
5987         (find_overload_match): Use new argument layout.
5988
5989 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5990
5991         * NEWS: Mention multithreaded debug support for gdbserver.
5992
5993 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5994
5995         * MAINTAINERS: Mention NEWS.
5996
5997 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5998
5999         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6000         (struct mips_objfile_private, compare_pdr_entries): New.
6001         (non_heuristic_proc_desc): Read the ".pdr" section if it
6002         is present.
6003
6004 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6005
6006         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6007         (arm_debug): New static variable.
6008         (_initialize_arm_tdep): Add ``set debug arm'' command.
6009
6010 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6011
6012         * Makefile.in (sim_arm_h): Define.
6013         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6014         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6015         (arm_register_sim_regno): New function, map an internal REGNUM
6016         onto a simulator register number.
6017         (arm_gdbarch_init): Set register_sim_regno.
6018
6019 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
6020
6021         * MAINTAINERS: Add self.
6022
6023 2002-06-11  Jim Blandy  <jimb@redhat.com>
6024
6025         * source.c (source_info): Mention whether the symtab has
6026         information about preprocessor macros.
6027
6028         Call the command `info macro', not `show macro'.
6029         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6030         Fix error message.
6031         (_initialize_macrocmd): Register `info_macro_command' in
6032         `infolist', not `showlist'.
6033
6034 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
6035
6036         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6037         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6038         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6039         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6040         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
6041         unconditionally.
6042         (set_mipsfpu_single_command, set_mipsfpu_double_command)
6043         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6044         (_initialize_mips_tdep): Remove dead code.
6045         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6046         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6047         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6048         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6049         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6050         MIPS_LAST_FP_ARG_REGNUM): Remove.
6051
6052 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6053
6054         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6055         (unwind_tmp_obstack_free, parse_frame_info)
6056         (update_context, cfi_read_fp, cfi_write_fp)
6057         (cfi_frame_chain, cfi_init_extra_frame_info)
6058         (cfi_virtual_frame_pointer): Use the above function.
6059         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6060
6061 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
6062
6063         * v850-tdep.c (v850_type_is_scalar): New function.
6064         (v850_use_struct_convention): Match current gcc implementation
6065         as close as possible.
6066         (v850_push_arguments): Fix stack_offset handling.  Don't write
6067         struct_addr into register.  This is done by v850_store_struct_return.
6068         (v850_extract_return_value): Care for structs.
6069         (v850_store_return_value): Ditto.
6070         (v850_store_struct_return): Actually write address.
6071
6072 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6073
6074         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6075         without debug information too.
6076
6077 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6078
6079         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6080         Make multi-arch pure.
6081         * gdbarch.h, gdbarch.c: Re-generate.
6082         * arm-tdep.c (arm_print_float_info): Update.
6083         * arch-utils.h (default_print_float_info): Update.
6084         * arch-utils.c (default_print_float_info): Update.
6085         * infcmd.c (float_info): Update call.
6086
6087 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6088
6089         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6090         the front of the initialize list.
6091
6092 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6093
6094         * infrun.c (struct inferior_status): Replace fields
6095         selected_frame_address and selected_level with field
6096         selected_frame_id.
6097         (save_inferior_status): Update.  Use get_frame_id.
6098         (struct restore_selected_frame_args): Delete.
6099         (restore_selected_frame): Update.  Use frame_find_by_id.
6100         (restore_inferior_status): Update.
6101
6102         * breakpoint.h (struct breakpoint): Change type of
6103         watchpoint_frame to frame_id.
6104         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
6105         call to get_current_frame.
6106         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
6107         get_current_frame.
6108         (watchpoint_check): Use frame_find_by_id.
6109
6110         * frame.h (record_selected_frame): Delete declaration.
6111         * stack.c (record_selected_frame): Delete function.
6112         
6113         * frame.h (struct frame_id): Define.
6114         (get_frame_id): Declare.
6115         (frame_find_by_id): Declare.
6116         * frame.c (frame_find_by_id): New function.
6117         (get_frame_id): New function.
6118
6119 2002-06-10  Andrey Volkov <avolkov@transas.com>
6120
6121         * ser-e7kpc.c: Fix duplicated define and call of 
6122         _initialize_ser_e7000pc
6123             
6124 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6125
6126         * signals/signals.c (target_signal_from_host): Fix #ifdef
6127         SIGRTMIN case.
6128         (do_target_signal_to_host): Likewise.
6129
6130 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6131
6132         * mips-tdep.c (mips_find_abi_section): New function.
6133         (mips_gdbarch_init): Call it.
6134
6135 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6136
6137         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6138         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
6139         after Andrew's 2002-06-08 gdbarch change.
6140
6141 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6142
6143         * i386-linux-nat.c (suppy_gregset): Don't supply
6144         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6145         register cache.
6146         (fill_gregset): Don't fetch it under the same circumstances.
6147
6148 2002-06-09  Andrew Cagney  <cagney@redhat.com>
6149
6150         * Makefile.in (callback_h): Define.
6151         (remote_sim_h): Update path to remote-sim.h.
6152         (remote-rdp.o): Add $(callback_h).
6153         (remote-sim.o): Use $(callback_h).
6154         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6155         * remote-rdp.c: Include "gdb/callback.h".
6156
6157 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6158
6159         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6160         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6161
6162 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6163
6164         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6165         * rdi-share/serpardr.c: Ditto.
6166         * rdi-share/unixcomm.c: Ditto.
6167         * rdi-share/serdrv.c: Ditto.
6168         * rdi-share/hostchan.h: Ditto.
6169         * rdi-share/hostchan.c: Ditto.
6170         * rdi-share/host.h: Ditto.
6171         * rdi-share/devsw.c: Ditto.
6172
6173         * objfiles.h: Change type of obj_private to void pointer.
6174         * pa64solib.c: Update copyright.  Don't include "assert.h", use
6175         strcmp instead of STREQ, use LONGEST, do not use PTR
6176         * somsolib.c: Ditto.
6177
6178         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6179         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6180         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6181
6182 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6183
6184         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6185         (default_get_saved_register): Delete function.
6186         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6187         generic_unwind_get_saved_register.
6188         * gdbarch.h, gdbarch.c: Re-generate.
6189         
6190 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6191
6192         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6193         generic_func_frame_chain_valid.
6194         * gdbarch.h, gdbarch.c: Re-generate.
6195         * blockframe.c (generic_func_frame_chain_valid): Only check
6196         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
6197         passing FP to PC_IN_CALL_DUMMY.
6198         Fix PR gdb/360.
6199
6200 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6201
6202         * gdbarch.sh (struct gdbarch_data): Add field init_p.
6203         (register_gdbarch_data): Initialize init_p.
6204         (gdbarch_data): Initialize data pointer using the init function.
6205         (init_gdbarch_data): Delete function.
6206         (gdbarch_update_p): Update.
6207         (initialize_non_multiarch): Update.
6208         (struct gdbarch): Add field initialized_p.
6209         * gdbarch.h, gdbarch.c: Re-generate.
6210
6211 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
6212
6213         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6214         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6215         better do the things actually here.
6216         * x86-64-tdep.c (x86_64_register_name2nr): New.
6217         (x86_64_register_name): Renamed to x86_64_register_nr2name.
6218         (x86_64_gdbarch_init): Respect the above change.
6219         * x86-64-tdep.h (x86_64_register_name2nr)
6220         (x86_64_register_nr2name): Add prototypes.
6221         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6222
6223 2002-06-06  Michael Snyder  <msnyder@redhat.com>
6224
6225         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6226         Delete extra braces and re-indent.
6227         (d10v_store_return_value): Char return values
6228         must be shifted over by one byte in R0.
6229         (d10v_extract_return_value): Delete extra braces, re-indent.
6230
6231 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6232
6233         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6234         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6235         (d10v_integer_to_address): Rewrite.
6236         (d10v_frame_init_saved_regs): When reading fp and sp registers use
6237         the d10v specific functions which take care of converting to the
6238         correct space.
6239
6240 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6241
6242         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6243         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6244
6245 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6246
6247         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6248         includes.
6249         * config/tm-linux.h: Ditto.
6250         * config/alpha/tm-alphalinux.h: Ditto.
6251         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6252         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6253         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6254         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6255         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6256         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6257         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6258         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6259         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6260         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6261         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6262         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6263         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6264         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6265         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6266         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6267         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6268         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6269         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6270         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6271         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6272         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6273         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6274         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6275         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6276         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6277         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6278         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6279         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6280         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6281         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6282         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6283         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6284         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6285         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6286         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6287         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6288
6289 2002-05-04  Aidan Skinner <aidan@velvet.net>
6290
6291         * ada-exp.tab.c: New file
6292         * ada-exp.y: New file
6293         * ada-lang.c: New file
6294         * ada-lang.h: New file
6295         * ada-lex.c: New file
6296         * ada-lex.l: New file
6297         * ada-tasks.c: New file
6298         * ada-typeprint.c: New file
6299         * ada-valprint.c: New file
6300         
6301 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6302
6303         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6304         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6305
6306 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6307
6308         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6309         insetead of ppc-linux-tdep.o.
6310         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6311         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6312
6313 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6314
6315         2002-05-07 Christian Groessler <chris@groessler.org>
6316         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6317         bit register contents for little endian hosts.
6318
6319 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6320
6321         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6322         any maintainer.
6323
6324 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6325
6326         * gdbarch.h: Regenerate.
6327
6328 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6329
6330         * MAINTAINERS: Add everyone to write-after-approval list.
6331
6332 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6333
6334         * stack.c (frame_info): Use frame_register_unwind instead of
6335         saved_regs.  Mention when the SP is on the stack or in a register.
6336
6337         * frame.h (frame_register_unwind_ftype): Define.  Document.
6338         (struct frame_info): Add field register_unwind and
6339         register_unwind_cache.
6340         (frame_register_unwind): Declare.
6341         (generic_unwind_get_saved_register): Declare.
6342
6343         * frame.c (frame_register_unwind): New function.
6344         (generic_unwind_get_saved_register): New function.
6345
6346         * blockframe.c (generic_call_dummy_register_unwind): New function.
6347         (frame_saved_regs_register_unwind): New function.
6348         (set_unwind_by_pc): New function.
6349         (create_new_frame): New function.
6350         (get_prev_frame): New function.
6351
6352 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
6353
6354         * a29k-share/: Delete directory.
6355         * remote-vx29k.c: Delete file.
6356
6357 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6358
6359         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6360         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6361
6362 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6363
6364         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6365         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6366         (sparc64nbsd-nat.o)
6367         (sparcnbsd-nat.o)
6368         (sparcnbsd-tdep.o): New dependency lists.
6369         * NEWS: Note new UltraSPARC NetBSD native configuration.
6370         * configure.host (sparc64-*-netbsd*): New host.
6371         * configure.tgt (sparc-*-netbsdelf*)
6372         (sparc-*-netbsd*): Set gdb_target to nbsd.
6373         (sparc64-*-netbsd*): New target.
6374         * sparc64nbsd-nat.c: New file.
6375         * sparcnbsd-nat.c: New file.
6376         * sparcnbsd-tdep.c: New file.
6377         * sparcnbsd-tdep.h: New file.
6378         * config/sparc/nbsd.mt: New file.
6379         * config/sparc/nbsd64.mh: New file.
6380         * config/sparc/nbsd64.mt: New file.
6381         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6382         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6383         (HOST_IPC): Remove.
6384         * config/sparc/nbsdaout.mt: Remove.
6385         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6386         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6387         (HOST_IPC): Remove.
6388         * config/sparc/nbsdelf.mt: Remove.
6389         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
6390         sparc-nat.c compatiblity defines.
6391         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
6392         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6393         * config/sparc/tm-nbsd64.h: New file.
6394         * config/sparc/tm-nbsdaout.h: Remove.
6395         * config/sparc/xm-nbsd.h: Remove.
6396
6397 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6398
6399         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6400         * sparc-tdep.c: Include osabi.h.
6401         (gdbarch_tdep): Add osabi member.
6402         (_initialize_sparc_tdep): Use gdbarch_register.
6403         (sparc_gdbarch_init): Use generic OS ABI framework.
6404         (sparc_dump_tdep): New function.
6405
6406 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
6407
6408         * corefile.c (do_captured_read_memory_integer): Return non-zero
6409         result.
6410         (safe_read_memory_integer): Copy result of memory read when
6411         status is non-zero.  Also, add comments.
6412
6413 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
6414
6415         * Makefile.in (ppc_tdep_h): Define.
6416         (ppc-linux-nat.o)
6417         (ppc-linux-tdep.o)
6418         (rs6000-tdep.o): Use $(ppc_tdep_h).
6419         (ppc-sysv-tdep.o)
6420         (ppcnbsd-nat.o)
6421         (ppcnbsd-tdep.o): New dependency lists.
6422         * ppc-tdep.h: Use generic OS ABI framework.
6423         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6424         (ppc_linux_init_abi): New functions.
6425         (ppc_sysv_abi_broken_use_struct_convention)
6426         (ppc_sysv_abi_use_struct_convention)
6427         (ppc_sysv_abi_push_arguments): Move to...
6428         * ppc-sysv-tdep.c: ...here.
6429         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6430         * rs6000-tdep.c (process_note_abi_tag_sections)
6431         (get_elfosabi): Remove.
6432         (rs6000_gdbarch_init): Use generic OS ABI framework.
6433         (rs6000_dump_tdep): New function.
6434         (_initialize_rs6000_tdep): Use gdbarch_register.
6435         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6436         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6437         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6438         of ppc-linux-tdep.o.
6439         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6440         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6441         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6442         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6443         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6444         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6445
6446 2002-05-29  Jim Blandy  <jimb@redhat.com>
6447
6448         * macroscope.c (default_macro_scope): Put `void' in empty argument
6449         list.
6450
6451 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6452
6453         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6454         * arch-utils.c: Include "sim-regno.h".
6455         * gdbarch.sh: Don't include "sim-regno.h".
6456         * gdbarch.h, gdbarch.c: Regenerate.
6457         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6458         here.
6459         * arch-utils.h (legacy_register_sim_regno): To here.
6460         * remote-sim.c (legacy_register_sim_regno): Move function from
6461         here.
6462         * arch-utils.c (legacy_register_sim_regno): To here.
6463
6464 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6465
6466         * sim-regno.h: New file.
6467         * Makefile.in (sim_regno_h): Define.
6468         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6469         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6470         (legacy_register_sim_regno): New function.
6471         (one2one_register_sim_regno): New function.
6472         (gdbsim_fetch_register): Rewrite.
6473         (gdbsim_store_register): Only store a register when
6474         REGISTER_SIM_REGNO is valid.
6475         * d10v-tdep.c: Include "sim-regno.h".
6476         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6477         (d10v_ts3_register_sim_regno): Ditto.
6478         * gdbarch.sh: Include "sim-regno.h".
6479         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6480         * gdbarch.h, gdbarch.c: Regenerate.
6481         * arch-utils.h (default_register_sim_regno): Delete declaration.
6482         * arch-utils.c (default_register_sim_regno): Delete function.
6483
6484 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6485
6486         * ppcnbsd-nat.c: Rewrite.
6487         * ppcnbsd-tdep.c: New file.
6488         * ppcnbsd-tdep.h: New file.
6489         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6490         solib.o, and solib-svr4.o.
6491         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6492         nbsd-tdep.o, and corelow.o.
6493
6494 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6495
6496         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6497         `tr' and `sed'.  Mention that `broken' targets are not expected to
6498         build.
6499
6500 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6501
6502         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6503         Let PC point right after the prologue before looking up symbols.
6504         
6505 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6506
6507         * i386-tdep.c (i386_register_virtual_type): Return 
6508         builtin_type_vec128i for SSE registers.
6509
6510         * gdbtypes.h (builtin_type_vec128i): Declare.
6511
6512         * gdbtypes.c (build_builtin_type_vec128i): New function.
6513         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6514         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6515         (build_gdbtypes): Initialize new builtin vector types.
6516         (_initialize_gdbtypes): Register new vector types with gdbarch.
6517
6518 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6519
6520         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6521         since it has been multi-arch'd.
6522         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6523         Move Alpha and VAX multi-arch news entries to same section
6524         as other multi-arch news.
6525
6526 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6527
6528         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6529         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6530         static.  Rename some register numbers to put them in ns32k-tdep
6531         private namespace.
6532         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6533         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6534         functions.
6535         (_initialize_ns32k_tdep): Use gdbarch_register.
6536         * ns32k-tdep.h: New file.
6537         * ns32knbsd-tdep.c: New file.
6538         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6539         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6540         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6541         REGISTER_BYTES, REGISTER_BYTE): Remove.
6542         * config/ns32k/tm-ns32k.h: New file.
6543         * config/ns32k/tm-umax.h: Remove.
6544
6545 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6546
6547         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6548         ns32k_store_struct_return, ns32k_extract_return_value,
6549         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6550         functions.
6551         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6552         ns32k_saved_pc_after_call.
6553         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6554         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6555         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6556         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6557         ns32k_extract_struct_value_address.
6558
6559 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6560
6561         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6562         ns32k_fix_call_dummy): New.
6563         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6564         ns32k_call_dummy_words.
6565         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6566         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6567         CALL_DUMMY_NARGS): Remove.
6568         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6569
6570 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6571
6572         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6573         ns32k_frame_saved_pc, ns32k_frame_args_address,
6574         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6575         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6576         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6577         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6578         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6579         (BREAKPOINT): Remove..
6580         (FRAME_CHAIN): Define as ns32k_frame_chain.
6581         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6582         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6583         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6584         (FRAME_FIND_SAVED_REGS): Remove.
6585         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6586         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6587         (POP_FRAME): Define as ns32k_pop_frame.
6588
6589 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6590
6591         * ns32k-tdep.c (ns32k_register_byte_32082,
6592         ns32k_register_byte_32382, ns32k_register_raw_size,
6593         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6594         functions.
6595         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6596         ns32k_register_byte_32382.
6597         * config/ns32k/tm-umax.h: Update copyright years.
6598         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6599         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6600         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6601         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6602         (ns32k_get_enter_addr): Fix prototype.
6603
6604 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6605
6606         * ns32k-tdep.c: Update copyright years.
6607         (ns32k_register_name_32082): New function.
6608         (ns32k_register_name_32382): Ditto.
6609         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6610         (REGISTER_NAME): Define as ns32k_register_name_32382.
6611         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6612         (REGISTER_NAME): Define as ns32k_register_name_32082.
6613
6614 2002-05-24  Jim Blandy  <jimb@redhat.com>
6615
6616         * dwarf2read.c (free_line_header): Use xfree, not free.
6617
6618 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6619
6620         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6621         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6622
6623 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6624
6625         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6626
6627 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6628
6629         From Ross Alexander at NEC Europe:
6630         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6631
6632 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6633
6634         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6635         for input, rather than parse_and_eval_address.  
6636
6637 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6638
6639         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6640         * Makefile.in (sim_d10v_h): Update definition.
6641
6642 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6643
6644         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6645         change `2002-05-22 Michael Snyder' below.
6646         (d10v_push_arguments): Ditto.
6647         (d10v_extract_return_value): Ditto.
6648
6649 2002-05-23  Jim Blandy  <jimb@redhat.com>
6650
6651         * macrotab.c (check_for_redefinition): Don't complain if the new
6652         definition is the same as the previous one.  Take more arguments
6653         to allow the comparison.
6654         (macro_define_object, macro_define_function): Pass more arguments
6655         to check_for_redefinition.
6656
6657 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6658
6659         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6660         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6661         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6662         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6663         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6664         Add a temp variable to save a call (and a memory read).
6665         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6666         if possible (so that PC_IN_CALL_DUMMY will work).
6667
6668 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6669
6670         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6671
6672 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6673
6674         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6675         fde->cie_ptr.
6676         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6677         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6678         so that frames of shared libraries are mapped correctly.
6679         (execute_stack_op): Change type of 'result' from ULONGEST to
6680         CORE_ADDR.
6681         
6682 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6683
6684         * config/alpha/tm-nbsd.h: Include solib.h.
6685
6686 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6687
6688         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6689         assumptions about the host's byte order.
6690
6691 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6692
6693         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6694         to dependency list.
6695         * alphanbsd-tdep.c: Include solib-svr4.h.
6696         * shnbsd-tdep.c: Ditto.
6697
6698 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6699
6700         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6701         nbsd-tdep.h to dependency list.
6702         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6703         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6704         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6705         nbsdaout.mh and nbsdelf.mh consistently.
6706         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6707         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6708         nbsdaout.mt and nbsdelf.mh consistently.
6709         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6710         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6711         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6712         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6713         a.out shared library stuff from here...
6714         * config/nm-nbsdaout.h: ...to here.
6715         * config/tm-nbsd.h: Remove.
6716         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6717         * config/arm/nbsd.mh: Remove.
6718         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6719         nbsd-tdep.o.
6720         * config/arm/nbsdaout.mh: New file. 
6721         * config/arm/nbsdelf.mh: New file.
6722         * config/arm/nm-nbsdaout.h: New file.
6723         * config/i386/nbsd.mh: Remove.
6724         * config/i386/nbsd.mt: Remove.
6725         * config/i386/nbsdaout.mh: New file.
6726         * config/i386/nbsdaout.mt: New file.
6727         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6728         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6729         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6730         i386_register_u_addr): Remove.
6731         * config/i386/nm-nbsdaout.h: New file.
6732         * config/i386/nm-nbsdelf.h: Remove.
6733         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6734         (USE_STRUCT_CONVENTION): Remove.
6735         * config/i386/tm-nbsdaout.h: New file.
6736         * config/i386/tm-nbsdelf.h: Remove.
6737         * config/m68k/nbsd.mh: Remove.
6738         * config/m68k/nbsd.mt: Remove.
6739         * config/m68k/nbsdaout.mh: New file.
6740         * config/m68k/nbsdaout.mt: New file. 
6741         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6742         * config/m68k/nm-nbsdaout.h: New file.
6743         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6744         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6745         * config/ns32k/nbsd.mh: Remove.
6746         * config/ns32k/nbsd.mt: Remove. 
6747         * config/ns32k/nbsdaout.mh: New file.
6748         * config/ns32k/nbsdaout.mt: New file.
6749         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6750         * config/ns32k/nm-nbsdaout.h: New file.
6751         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6752         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6753         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6754         (SVR4_SHARED_LIBS): Remove.
6755         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6756         * config/sparc/nbsd.mh: Remove.
6757         * config/sparc/nbsd.mt: Remove.
6758         * config/sparc/nbsdaout.mh: New file.
6759         * config/sparc/nbsdaout.mt: New file.
6760         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6761         * config/sparc/nbsdelf.mt: New file.
6762         * config/sparc/nm-nbsdaout.h: New file.   
6763         * config/sparc/nm-nbsdelf.h: Remove.
6764         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6765         * config/sparc/tm-nbsdaout.h: New file.
6766
6767 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6768
6769         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6770         mipsnbsd-tdep.c
6771         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6772
6773 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6774
6775         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6776         shnbsd-nat.c.
6777         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6778
6779 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6780
6781         * NEWS: Note new MIPS NetBSD native configuration. 
6782         * configure.host (mips*-*-netbsd*): New host. 
6783         * configure.tgt (mips*-*-netbsd*): New target. 
6784         * mipsnbsd-nat.c: New file.
6785         * mipsnbsd-tdep.c: New file.
6786         * mipsnbsd-tdep.h: New file.
6787         * config/mips/nbsd.mh: New file.
6788         * config/mips/nbsd.mt: New file.
6789         * config/mips/nm-nbsd.h: New file.
6790         * config/mips/tm-nbsd.h: New file.
6791
6792 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6793
6794         * Makefile.in (SFILES): Add osabi.c.
6795         (COMMON_OBS): Add osabi.o.
6796         (osabi.o): New dependency list.
6797         * osabi.c: New file.
6798         * osabi.h: New file.
6799         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6800
6801         * Makefile.in (alpha_tdep_h): Define and use instead of
6802         alpha-tdep.h.
6803         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6804         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6805         Remove.
6806         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6807         * alpha-tdep.h: Include osabi.h.
6808         (alpha_abi): Remove.
6809         (gdbarch_tdep): Use generic OS ABI framework.
6810         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6811         gdbarch_register_osabi.
6812         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6813         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6814         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6815
6816         * Makefile.in (sh_tdep_h): Add osabi.h.
6817         * sh-tdep.h (sh_osabi): Remove.
6818         (gdbarch_tdep): Use generic OS ABI framework.
6819         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6820         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6821         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6822         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6823
6824         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6825         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6826         gdbarch_register_osabi.
6827         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6828         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6829         (get_elfosabi): Rename to...
6830         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6831         ABI framework support routines.
6832         (arm_gdbarch_init): Use generic OS ABI framework.
6833         (arm_dump_tdep): Likewise.
6834         (_initialize_arm_tdep): Likewise.
6835         * arm-tdep.h: Include osabi.h.
6836         (arm_abi): Remove.
6837         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6838         osabi member.
6839         (arm_gdbarch_register_os_abi): Remove prototype.
6840         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6841         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6842
6843         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6844         * mips-tdep.c: Include osabi.h.
6845         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6846         OS ABI framework.
6847
6848 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6849
6850         * h8300-tdep.c: Fix formatting.
6851
6852 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6853
6854         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6855         printing vector registers.
6856
6857 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6858
6859         From Fernando Nasser:
6860         * remote.c (remote_async_open_1): Re-throw the exception when the
6861         connection fails.
6862         (remote_cisco_open): Ditto.
6863         (remote_open_1): Ditto.
6864
6865 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6866
6867         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6868         (remote_start_remote): Add uiout parameter.  Pass through to
6869         remote_start_remote_dummy.
6870         (remote_open_1): Use catch_exception instead of catch_errors.
6871         (remote_async_open_1): Ditto.
6872         (remote_cisco_open): Ditto.
6873
6874 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6875
6876         * remote.c (remote_start_remote): Replace PTR with void pointer.
6877         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6878         static.
6879
6880 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6881
6882         * gdb_indent.sh: Allow the script to be run in the sim directory.
6883
6884 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6885
6886         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6887         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6888
6889         * corelow.c (core_open): Only call set_gdbarch_from_file if
6890         exec_bfd is NULL.
6891
6892 2002-05-17  Andrey Volkov <avolkov@transas.com>
6893
6894         * h8300-tdep.c: Add support of EXR register
6895         * config/h8300/tm-h8300.h: Ditto. 
6896         
6897 2002-05-17  Andrey Volkov <avolkov@transas.com>
6898
6899         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6900         
6901 2002-05-17  Andrey Volkov <avolkov@transas.com>
6902
6903         * h8300-tdep.c: Change literal regnums to REGNO.
6904         
6905 2002-05-17  Jim Blandy  <jimb@redhat.com>
6906
6907         * NEWS: Note addition of macro support.
6908
6909         Expand preprocessor macros in C expressions.
6910         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6911         (scan_macro_expansion, scanning_macro_expansion,
6912         finished_macro_expansion): New function declarations.
6913         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6914         variable declarations.
6915         * parser-defs.h (expression_context_pc): New declaration.
6916         * parse.c (expression_context_pc): New variable.
6917         (parse_exp_1): Set expression_context_pc, as well as
6918         expression_context_block.
6919         * c-exp.y (yylex): If we're not already reading the result of a
6920         macro expansion, try to macro-expand the next token.  When we're
6921         done scanning a macro expansion, switch back to the mainline text.
6922         Commas and `if's in a macro's expansion don't terminate the input.
6923         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6924         (macro_original_text, macro_expanded_text,
6925         expression_macro_lookup_func, expression_macro_lookup_baton): New
6926         variables.
6927         (scan_macro_expansion, scanning_macro_expansion,
6928         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6929         c_preprocess_and_parse): New functions.
6930         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6931         c_preprocess_and_parse, instead of c_parse.
6932         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6933         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6934
6935 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
6936
6937         * sh-tdep.c (gdb_print_insn_sh64): Delete.
6938         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6939         (sh_gdbarch_init): Always use gdb_print_insn_sh.
6940
6941 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
6942
6943         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
6944
6945 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6946
6947         * Makefile.in (sh_tdep_h): Define and use.
6948         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6949         register enum): Move to...
6950         * * sh-tdep.h: ...here.
6951         * sh-tdep.c: Include sh-tdep.h.
6952         * sh3-rom.c: Likewise.
6953         * shnbsd-tdep.c: Likewise.
6954
6955 2002-05-16  Michael Snyder  <msnyder@redhat.com>
6956
6957         * arm-tdep.c: Spelling fix in comment.
6958
6959 2002-05-16  Jim Blandy  <jimb@redhat.com>
6960
6961         Add commands for manually expanding macros and showing their
6962         definitions.
6963         * macrocmd.c, macroscope.c, macroscope.h: New files.
6964         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6965         (macroscope_h): New variable.
6966         (HFILES_NO_SRCDIR): Add macroscope.h.
6967         (COMMON_OBS): Add macrocmd.o, macroscope.o.
6968         (macroscope.o, macrocmd.o): New rules.
6969
6970         Teach the Dwarf 2 reader to read macro information.
6971         * dwarf2read.c: #include "macrotab.h".
6972         (dwarf_macinfo_buffer): New variable.
6973         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6974         dwarf_macinfo_size.
6975         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6976         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6977         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6978         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6979         dwarf2_macro_spaces_in_definition): New complaints.
6980         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6981         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6982         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6983         the partial symbol table.
6984         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6985         from what's recorded in the partial symbol table.
6986         (read_file_scope): If the compilation unit has a
6987         `DW_AT_macro_info' attribute, read its macro information.
6988         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6989
6990 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
6991
6992         Fix PR gdb/546
6993         * ser-tcp.c: Don't include <netinet/udp.h>.
6994
6995 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
6996
6997         * MAINTAINERS: Update my email address.
6998
6999 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
7000
7001         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7002         include file of the same name.
7003
7004 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7005
7006         * configure.tgt: Mark v850 as multi-arched.
7007         * config/v850/tm-v850.h: Remove file.
7008         * config/v850/v850.mt: Eliminate TM_FILE.
7009
7010 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7011
7012         * v850-tdep.c: Full multi-arch.
7013         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7014         Define GDB_MULTI_ARCH to 2.
7015
7016 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7017
7018         * p-exp.y (current_type): New static variable.
7019         Carries the type of the expression at the position that is parsed.
7020         (push_current_type, pop_current_type): Two new functions. Used
7021         to store/restore current_type in expression on specific tokens.
7022         (search_field): New static variable. Set to one after parsing a point
7023         as at that point only a FIELDNAME token should be searched.
7024         (FIELDNAME): New token. After a point only a token belonging to 
7025         current_type type definition is allowed.
7026         (all over token rules): reset and change current_type according
7027         to rules.
7028         (exp '[' rule): insert implicit array index field if
7029         exp is a pascal string type.
7030
7031 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7032
7033         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
7034         frame info.  Use frame_info's saved_regs instead of matching member
7035         in extra_frame_info throughout.
7036         (v850_frame_init_saved_regs): New function.
7037         (v850_init_extra_frame_info): Move most functionality into
7038         v850_frame_init_saved_regs().
7039         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7040         (v850_frame_find_saved_regs): Remove declaration.
7041         (FRAME_FIND_SAVED_REGS): Remove definition.
7042         (v850_frame_init_saved_regs): Add declaration.
7043         (FRAME_INIT_SAVED_REGS): Add definition.
7044
7045 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7046
7047         * v850-tdep.c: Begin multi-arch'ing v850.
7048         (v850_target_architecture_hook): Remove function.
7049         (v850_gdbarch_init): New function.  Add code previously in
7050         v850_target_architecture_hook().
7051         (_initialize_v850_tdep): Don't  set target_architecture_hook.
7052         Call register_gdbarch_init() instead.
7053
7054 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
7055
7056         * gdbtypes.h (struct cplus_struct_type): Remove args field.
7057         * hpread.c (hpread_read_struct_type): Remove assignments to args.
7058         (fixup_class_method_type): Likewise.
7059
7060 2002-05-15  Jim Blandy  <jimb@redhat.com>
7061
7062         Add macro structures to GDB's symbol tables.  Nobody puts anything
7063         in them yet.
7064         * symtab.h (struct symtab): New member: `macro_table'.
7065         * buildsym.h (pending_macros): New global variable.
7066         * buildsym.c: #include "macrotab.h".
7067         (buildsym_init): Initialize `pending_macros'.
7068         (end_symtab): If we found macro information while reading a CU's
7069         debugging info, do build a symtab structure for it.  Make the
7070         symtab point to the macro information, and clear the
7071         `pending_macros' pointer which held it while we were reading the
7072         debug info.
7073         (really_free_pendings): Free any pending macro table.
7074         * objfiles.h (struct objfile): New member: `macro_cache'.
7075         * objfiles.c (allocate_objfile): Set allocate and free functions
7076         for the macro cache's objstack.
7077         (free_objfile): Empty the macro cache's obstack.
7078         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7079         set new allocate and free functions for it.
7080         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7081         free functions for the macro cache's objstack.  (Why is this
7082         function building its own objfile?)
7083         * symmisc.c (print_objfile_statistics): Print statistics on the
7084         macro bcache.
7085         * Makefile.in: Note that buildsym.o depends on macrotab.h.
7086
7087 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7088
7089         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7090         (REGISTER_U_ADDR): Delete definition.
7091         (arm_register_u_addr): Delete declaration.
7092
7093 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7094
7095         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7096         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7097
7098 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
7099
7100         * regcache.c (register_valid): Revise comments refering to "Not
7101         available" and "unavailable".
7102         * frame.c (frame_register_read): Ditto.
7103         * findvar.c (value_of_register): Ditto.
7104
7105 2002-05-15  Andrew Cagney  <cagney@redhat.com>
7106
7107         * Makefile.in (remote_sim_h): Replace remote-sim_h.
7108         (remote-sim.o): Update dependencies.
7109         (d10v-tdep.o): Specify dependencies.
7110         (sim_d10v_h): Define.
7111
7112 2002-05-14  Jim Blandy  <jimb@redhat.com>
7113
7114         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7115         * macrotab.c (macro_lookup_inclusion, find_definition,
7116         new_macro_table): Same.
7117         
7118         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7119         not `! strcmp ()'.  This is a dubious improvement.
7120         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7121
7122         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7123         although it's not necessary, to avoid a warning.
7124
7125 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7126
7127         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7128         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7129         TYPE_INSTANCE_FLAGS.
7130         (struct main_type): New.
7131         (struct type): Move most members to struct main_type.  Change
7132         cv_type and as_type to new type_chain member.  Add instance_flags.
7133         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7134         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7135         (finish_cv_type): Remove prototype.
7136         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
7137         Set TYPE_CHAIN.
7138         (alloc_type_instance): New function.
7139         (smash_type): New function.
7140         (make_pointer_type, make_reference_type, make_function_type)
7141         (smash_to_member_type, smash_to_method_type): Call smash_type.
7142         (make_qualified_type): New function.
7143         (make_type_with_address_space): Call make_qualified_type.
7144         (make_cv_type): Likewise.
7145         (finish_cv_type): Remove unnecessary function.
7146         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
7147         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7148         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7149         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7150         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7151         * hpread.c (hpread_read_struct_type): Likewise.
7152         * stabsread.c (read_struct_type): Likewise.
7153
7154 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
7155
7156         * configure.tgt: Add a catch all sh* target, for cases like
7157         sh[2,3,4]-elf and sh-hms.
7158
7159 2002-05-14  Keith Seitz  <keiths@redhat.com>
7160
7161         * event-loop.c (create_file_handler): Don't do anything but
7162         update data when we are given a fd which we are already
7163         monitoring.
7164
7165 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
7166
7167         * dwarf2cfi.c (context_cpy): Copy registers correctly.
7168         (update_context): Use __func__ in warnings.
7169         
7170 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7171
7172         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
7173         and tcp_close to net_open and net_close.
7174         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
7175         using UDP if requested.  Don't try to disable Nagle on UDP
7176         sockets.
7177         * remote.c (remote_serial_open): New function.  Warn about UDP.
7178         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7179
7180 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7181
7182         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7183
7184 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7185
7186         * configure.tgt: Remove sh-hms target.
7187         * MAINTAINERS: Don't list sh-hms as a separate target.
7188
7189 2002-05-13  Jim Blandy  <jimb@redhat.com>
7190
7191         Add first preprocessor macro-expansion files.
7192         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7193         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7194         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7195         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7196         (COMMON_OBS): Add macrotab.o, macroexp.o.
7197         (macroexp.o, macrotab.o): New rules.
7198
7199 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
7200
7201         * config/m88k/tm-m88k.h: Update copyright.
7202         (m88k_target_write_pc): Declare
7203         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7204         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7205         (SHIFT_INST_REGS): Update definition.
7206         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
7207         using old definition of TARGET_WRITE_PC.
7208         * regcache.c (generic_target_write_pc): Delete code handling
7209         NNPC_REGNUM.
7210         * gdbarch.sh (NNPC_REGNUM): Delete.
7211         * gdbarch.h, gdbarch.c: Regenerate.
7212
7213 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
7214
7215         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7216         builtin reg number.
7217
7218 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
7219
7220         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7221         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7222         (gen_address_of, gen_struct_ref, gen_repeat): Use type
7223         access macros.
7224         * c-typeprint.c (cp_type_print_method_args): Likewise.
7225         (c_type_print_args): Likewise.
7226         * d10v-tdep.c (d10v_push_arguments): Likewise.
7227         (d10v_extract_return_value): Likewise.
7228         * expprint.c (print_subexp): Likewise.
7229         * gdbtypes.c (lookup_primitive_typename): Likewise.
7230         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7231         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7232         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7233         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7234         (TYPE_VECTOR): Likewise.
7235         * hpread.c (hpread_read_struct_type)
7236         (fix_static_member_physnames, fixup_class_method_type)
7237         (hpread_type_lookup): Likewise.
7238         * mdebugread.c (parse_symbol, parse_type): Likewise.
7239         * p-lang.c (is_pascal_string_type): Likewise.
7240         * valops.c (hand_function_call): Likewise.
7241         * x86-64-tdep.c (classify_argument): Likewise.
7242
7243         * hpread.c (hpread_read_function_type)
7244         (hpread_read_doc_function_type): Call replace_type.
7245         * dstread.c (create_new_type): Delete.
7246         (decode_dst_structure, process_dst_function): Call alloc_type.
7247         Use type access macros.
7248
7249 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7250
7251         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7252         the're not supported by the current architecture.
7253         (i387_fill_fxsave): Likewise.
7254
7255 2002-05-12  Fred Fish  <fnf@redhat.com>
7256
7257         * symfile.c (default_symfile_offsets): Arrange for uninitialized
7258         sect_index_xxx members to index the first slot in section_offsets
7259         if all of the section_offsets are zero.
7260
7261 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7262
7263         * configure.tgt (sparc-*openbsd): Remove entry accidentially
7264         checked in with last change.
7265
7266 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7267
7268         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7269         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
7270         config.sub.
7271
7272 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
7273
7274         * Makefile.in: Update dependencies.
7275
7276 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7277
7278         * language.c (local_hex_string_custom): Simplify.  Do not depend
7279         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7280
7281         * memattr.c (mem_info_command): Replace calls to
7282         longest_local_hex_string and longest_local_hex_string_custom.
7283         * buildsym.c (make_blockvector): Ditto.
7284         * solib.c (info_sharedlibrary_command): Ditto.
7285         * tracepoint.c (tracepoints_info): Ditto.
7286         * symtab.c (print_msymbol_info): Ditto.
7287
7288         * language.c (local_hex_string): Delete.
7289         (local_hex_string_custom): Delete.
7290         (longest_local_hex_string): Rename to local_hex_string.
7291         (longest_local_hex_string_custom): Rename to
7292         local_hex_string_custom.
7293         * language.h (local_hex_string): Change parameter type to LONGEST.
7294         (local_hex_string_custom): Ditto.
7295         (longest_local_hex_string): Delete declaration.
7296         (longest_local_hex_string_custom): Ditto.
7297
7298         * solib.c: Update copyright.
7299         * memattr.c: Update copyright.
7300         
7301 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7302
7303         * arch-utils.h (legacy_register_to_value): Declare.
7304         (legacy_value_to_register): Declare.
7305         (legacy_convert_register_p): Declare.
7306         * arch-utils.c (legacy_register_to_value): New function.
7307         (legacy_value_to_register): New function.
7308         (legacy_convert_register_p): New function.
7309
7310         * gdbarch.sh (REGISTER_TO_VALUE): Define.
7311         (VALUE_TO_REGISTER): Define.
7312         (CONVERT_REGISTER_P): Define.
7313         * gdbarch.h, gdbarch.c: Regenerate.
7314
7315         * valops.c (value_assign): Use CONVERT_REGISTER_P and
7316         VALUE_TO_REGISTER.
7317         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7318         CONVERT_REGISTER_P.
7319
7320 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
7321             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7322
7323         * Makefile.in: Update dependencies for valops.c.
7324         * valops.c: Include "gdb_assert.h".
7325         (typecmp): Skip THIS parameter to methods.
7326         (find_method_list): Remove static_memfuncp argument,
7327         update callers.  Check for stub methods.
7328         (find_value_oload_method_list): Don't set *static_memfuncp.
7329         (find_overload_match): Don't check for stub methods.  Assert
7330         that methods are not stubbed.  Handle static methods.
7331         (value_find_oload_method_list): Remove static_memfuncp argument.
7332         * gdbtypes.c (check_stub_method): Do not add THIS pointer
7333         to the argument list for static stub methods.
7334         * value.h (value_find_oload_method_list): Update prototype.
7335
7336 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7337
7338         * arch-utils.h (generic_register_size): Declare.
7339         (generic_register_raw_size, generic_register_virtual_size): Delete
7340         declarations.
7341         * arch-utils.c (generic_register_raw_size): Delete.
7342         (generic_register_size): New function.
7343         (generic_register_virtual_size): Delete.
7344
7345         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7346         default generic_register_size.
7347         * gdbarch.h, gdbarch.c: Re-generate.
7348         
7349         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7350         register_virtual_size.
7351         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7352         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7353
7354 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7355
7356         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7357         * gdbarch.h, gdbarch.c: Regenerate.
7358         * gnu-v3-abi.c: Update copyright.
7359         (vtable_address_point_offset): Update.
7360         (gnuv3_rtti_type): Update.
7361         (gnuv3_baseclass_offset): Update.
7362         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7363         (init_fetch_link_map_offsets): Update.
7364         * remote.c (get_remote_state): Update.
7365         
7366 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
7367
7368         * TODO: Remove value_headof/value_from_vtable_info comment.
7369         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7370         * values.c (value_headof, value_from_vtable_info): Delete.
7371         * value.h (value_from_vtable_info): Delete prototype.
7372
7373 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7374
7375         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7376         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7377         $(gdb_regex_h).
7378         (gdb_assert_h): Define.
7379         (gdb_wait_h): Define.
7380         (gdb_regex_h): Define.
7381
7382 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
7383
7384         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7385         * linespec.c (find_methods): Handle GCC 3.x template constructors.
7386
7387 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7388
7389         * nbsd-tdep.c: Fix comment.
7390
7391 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7392
7393         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7394         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7395         (nbsd-tdep.o): New dependency list.
7396         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
7397         nbsd-tdep.h.
7398         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7399         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7400         * nbsd-tdep.c: New file.
7401         * nbsd-tdep.h: New file.
7402         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
7403         nbsd-tdep.h.
7404         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7405         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7406         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7407         * config/sh/nbsd.mt (TDEPFILES): Ditto.
7408
7409 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7410
7411         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7412         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7413         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7414         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7415         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7416         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7417
7418 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7419
7420         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7421         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7422         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7423         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7424         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7425         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7426         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7427
7428 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7429
7430         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
7431         fetch_elfcore_registers to...
7432         * i386nbsd-tdep.c: ...here.
7433         (i386nbsd_use_struct_convention): Rename to...
7434         (i386nbsd_aout_use_struct_convention): ...this.
7435         (i386nbsd_supply_reg): New function.
7436         (i386nbsd_fill_reg): New function.
7437         (fetch_core_registers): Use i386nbsd_supply_reg.
7438         (fetch_elfcore_registers): Likewise.
7439         (_initialize_i386nbsd_tdep): New function.
7440         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7441         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7442         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7443         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7444         (i386nbsd_aout_use_struct_convention): ...this.
7445
7446 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7447
7448         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7449         (store_inferior_registers): Use shnbsd_fill_reg.
7450         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7451         sh_nbsd_supply_register): Collapse into...
7452         (shnbsd_supply_reg): ...this.
7453         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7454         (shnbsd_fill_reg): ...this.
7455         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7456         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7457         (fetch_core_registers): Use shnbsd_supply_reg.
7458         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7459         (sh_nbsd_core_fns): Rename to...
7460         (shnbsd_core_fns): ...this.
7461         (sh_nbsd_elfcore_fns): Rename to...
7462         (shnbsd_elfcore_fns): ...this.
7463         (sh_nbsd_init_abi): Rename to...
7464         (shnbsd_init_abi): ...this.
7465         (_initialize_sh_nbsd_tdep): Rename to...
7466         (_initialize_shnbsd_tdep): ...this.
7467         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7468         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7469         sh_nbsd_fill_register): Remove prototypes.
7470         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7471
7472 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7473
7474         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7475         (i387-nat.o): Delete dependency list.
7476         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7477         (x86-64-linux-nat.o): Likewise.
7478         * i387-nat.c: Delete file, moving contents to...
7479         * i387-tdep.c: ...here.
7480         * i387-nat.h: Rename...
7481         * i387-tdep.h: ...to this.
7482         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7483         * i386-linux-nat.c: Likewise.
7484         * i386bsd-nat.c: Likewise.
7485         * i386gnu-nat.c: Likewise.
7486         * i386nbsd-nat.c: Likewise.
7487         * i386v4-nat.c: Likewise.
7488         * x86-64-linux-nat.c: Likewise.
7489         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7490         * config/i386/go32.mh (NATDEPFILES): Likewise.
7491         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7492         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7493         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7494         * config/i386/linux.mh (NATDEPFILES): Likewise.
7495         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7496         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7497         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7498         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7499
7500 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7501
7502         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7503         (alphanbsd-nat.o): Remove dependency list.
7504         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7505         * alphanbsd-nat.c: Delete.  Contents moved to...
7506         * alphanbsd-tdep.c: ...here.
7507         (_initialize_alphanbsd_tdep): Register core functions.
7508         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7509
7510 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7511
7512         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7513         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7514         (alphanbsd-nat.o): Likewise.
7515         (alphabsd-tdep.o): New dependency list.
7516         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7517         (fill_gregset): Use alphabsd_fill_reg.
7518         (supply_fpregset): Use alphabsd_supply_fpreg.
7519         (fill_fpregset): Use alphabsd_fill_fpreg.
7520         (fetch_inferior_registers): Use struct reg and struct fpreg
7521         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7522         and alphabsd_supply_fpreg.
7523         (store_inferior_registers): Use struct reg and struct fpreg
7524         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7525         and alphabsd_fill_fpreg.
7526         * alphabsd-tdep.c: New file.
7527         * alphabsd-tdep.h: New file.
7528         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7529         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7530         alphabsd_supply_fpreg.
7531         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7532         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7533
7534 2002-05-11  Eric Christopher  <echristo@redhat.com>
7535
7536         * mips-tdep.c (mips_double_register_type): Fix thinko.
7537         (mips_single_register_type): Ditto.
7538         * MAINTAINERS: Add self.
7539
7540 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7541
7542         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7543         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7544         right thing on architectures with different endianness and/or
7545         integer sizes.
7546
7547 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7548
7549         From Christian Limpach <chris@Pin.LU>
7550         * configure.in: Change sed expression which comments out
7551         NATDEPFILES to also comment out continuation lines.
7552         * configure: Regenerate.
7553
7554 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7555
7556         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7557         big patch.
7558
7559 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7560
7561         * sh-tdep.c: Include correct file.
7562
7563 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7564
7565         New support for sh64-elf (sh5) target.
7566
7567         * configure.tgt: For sh64-elf target, default to sh-elf.
7568
7569         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7570         (struct gdbarch_tdep): Add new fields for new registers and ABI
7571         info.
7572
7573         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7574         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7575         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7576         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7577         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7578         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7579         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7580         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7581         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7582         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7583         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7584         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7585         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7586         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7587         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7588         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7589         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7590         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7591         sign_extend, sh64_nofp_frame_init_saved_regs,
7592         sh64_init_extra_frame_info, sh64_get_saved_register,
7593         sh64_extract_struct_value_address, sh64_pop_frame,
7594         sh64_push_arguments, sh64_extract_return_value,
7595         sh64_store_return_value, sh64_show_media_regs,
7596         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7597         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7598         sh_sh64_register_virtual_type,
7599         sh_sh64_register_convert_to_virtual,
7600         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7601         sh64_register_read, sh64_pseudo_register_write,
7602         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7603         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7604         sh64_do_pseudo_register, sh_compact_do_registers_info,
7605         sh64_do_registers_info, sh_gdbarch_init): New functions.
7606
7607 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7608
7609         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7610
7611 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7612
7613         * linespec.c (decode_line_1): Check for a double quote after
7614         a filename correctly.
7615
7616 2002-05-10  Jim Blandy  <jimb@redhat.com>
7617
7618         Properly track the size of the current objfile's .debug_line section.
7619         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7620         (DWARF_LINE_SIZE): New macro.
7621         (dwarf2_build_psymtabs_hard): Record the line section's size in
7622         the partial symbol table.
7623         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7624         symbol table.
7625
7626 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7627
7628         * ia64-tdep.c: Handle breakpoints on L instruction type
7629         in MLX instruction bundle by moving the breakpoint to
7630         the third slot (X instruction type) as L holds only data.
7631
7632 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7633
7634         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7635         (process_one_symbol): Complain about discarding local symbols
7636         due to a misplaced N_LBRAC entry.
7637
7638 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7639
7640         From Daniel Berlin <dan@cgsoftware.com>
7641         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7642         decrease the depth we are at, in the case of templates.
7643
7644 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7645
7646         * mips-tdep.c (mips_float_register_type): New function.
7647         (mips_double_register_type): New function.
7648         (mips_print_register): Use them.
7649         (do_fp_register_row): Likewise.
7650
7651 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7652
7653         * signals/signals.c (signals): Remove conditional compilation around
7654         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7655         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7656
7657 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7658
7659         * remote-rdp.c (remote_rdp_can_run): Remove.
7660
7661 2002-05-09  Tom Tromey  <tromey@redhat.com>
7662
7663         * jv-valprint.c (java_val_print): Handle `char' as a special case
7664         of TYPE_CODE_INT.
7665
7666 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7667
7668         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7669         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7670         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7671         str r(0123),[sp,#nn].
7672         (arm_skip_prologue): Ditto.  Also make disassembly
7673         order-independent by placing it in a loop.
7674
7675 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7676
7677         * stabsread.c (read_type): Add recognition for new attribute:
7678         "@V;" means that an array type is actually a vector.
7679         This is analogous to the vector flag that's been added to dwarf2.
7680
7681 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7682
7683         * i386-tdep.h (i386_abi): New enum.
7684         (struct gdbarch_tdep): Replace os_ident member with abi.
7685         (i386_gdbarch_register_os_abi): New prototype.
7686         * i386-tdep.c (i386_abi_names): New array.
7687         (process_note_abi_tag_sections): Removed.
7688         (process_note_sections): New function.
7689         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7690         (struct i386_abi_handler): New struct.
7691         (i386_abi_handler_list): New variable.
7692         (i386_gdbarch_register_os_abi): New function.
7693         (i386_gdbarch_init): Adapt for the changes given above.
7694
7695 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7696
7697         * gregset.h: Say "GNU/Linux".
7698
7699 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7700
7701         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7702         (build_gdbtypes): Build builtin_type_v2_float.
7703         (_initialize_gdbtypes): Register new builtin type.
7704
7705 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7706
7707         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7708         (clear_gdbarch_swap): New function.
7709         (initialize_non_multiarch): Call.
7710         (gdbarch_update_p): Before calling init(), swap out and clear the
7711         existing architecture.
7712         * gdbarch.c: Regenerate.
7713
7714 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7715
7716         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7717         alphanbsd-tdep.c.
7718
7719 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7720
7721         * sh-nbsd-nat.c: Rename to...
7722         * shnbsd-nat.c: ...this.
7723         * sh-nbsd-tdep.c: Rename to...
7724         * shnbsd-tdep.c: ...this.
7725         * sh-nbsd-tdep.h: Rename to...
7726         * shnbsd-tdep.h: ...this.
7727         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7728         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7729
7730 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7731
7732         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7733         concatenation for command help messages.
7734
7735 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7736
7737         * NEWS: Note new sh*-*-netbsdelf* configuration.
7738         * configure.host: Set gdb_host_cpu to sh for all sh*.
7739         (sh*-*-netbsdelf*): New host.
7740         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7741         (sh*-*-netbsdelf*): New target.
7742         * sh-nbsd-nat.c: New file.
7743         * sh-nbsd-tdep.c: New file.
7744         * sh-nbsd-tdep.h: New file.
7745         * config/sh/nbsd.mh: New file.
7746         * config/sh/nbsd.mt: New file.
7747         * config/sh/nm-nbsd.h: New file.
7748         * config/sh/tm-nbsd.h: New file.
7749
7750 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7751
7752         * sh-tdep.c (sh_osabi_names): Declare.
7753         (process_note_abi_tag_sections): New function.
7754         (get_elfosabi): Ditto.
7755         (sh_gdbarch_register_os_abi): Ditto.
7756         (sh_dump_tdep): Ditto.
7757         _initialize_sh_tdep): Use gdbarch_register to register
7758         sh_gdbarch_init and sh_dump_tdep.
7759         * config/sh/tm-sh.h (sh_osabi): Declare.
7760         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7761
7762 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7763
7764         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7765         (thumb_scan_prologue): Ditto.
7766         (arm_find_callers_reg): Ditto.
7767         (arm_frame_chain): Ditto.
7768         (arm_init_extra_frame_info): Ditto.
7769         (arm_frame_saved_pc): Ditto.
7770         (arm_pop_frame): Ditto.
7771         (arm_push_return_address): New function.
7772         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7773         call_dummy_location, call_dummy_breakpoint_offset_p,
7774         call_dummy_breakpoint_offset, call_dummy_p,
7775         call_dummy_stack_adjust_p, call_dummy_words,
7776         sizeof_call_dummy_words, call_dummy_start_offset,
7777         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7778         call_dummy_address, push_return_address and push_dummy_frame for
7779         generic dummy frames.
7780
7781 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7782
7783         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7784         size computation for alloca.
7785         (sh_fp_frame_init_saved_regs): Likewise.
7786
7787 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7788
7789         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7790         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7791         * arm-tdep.c (arm_store_return_value): Use them.
7792         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7793         * remote-rdp.c (remote_rdp_fetch_register): Use
7794         ARM_MAX_REGISTER_RAW_SIZE.
7795         (remote_rdp_store_register): Likewise.
7796
7797 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7798
7799         * dwarf2cfi.c: Code cleanup, removed unused variables,
7800         added default labels to switch {} statements.
7801         * x86-64-tdep.c: Ditto.
7802         * x86-64-linux-nat.c: Ditto.
7803
7804 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7805
7806         * solib.h: Protect against multiple inclusion.
7807
7808 2002-05-06  Jim Blandy  <jimb@redhat.com>
7809
7810         Add first preprocessor macro-expansion files.
7811         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7812         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7813         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7814         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7815         (COMMON_OBS): Add macrotab.o, macroexp.o.
7816         (macroexp.o, macrotab.o): New rules.
7817
7818         Separate the job of reading the line number info statement program
7819         header (...expialidocious) out into its own function.
7820         * dwarf2read.c (struct line_head, struct filenames, struct
7821         directories): Replace with...
7822         (struct line_header): New structure, containing the full
7823         contents of the statement program header, including the
7824         include directory and file name tables.
7825         (read_file_scope): If we have line number info, instead of just
7826         calling dwarf_decode_lines to do all the work, call
7827         dwarf_decode_line_header first to get a `struct line_header'
7828         containing the data in the statement program header, and then
7829         pass that to dwarf_decode_lines, which will pick up where that
7830         left off.  Be sure to clean up the `struct line_header' object.
7831         (dwarf_decode_line_header, free_line_header, add_include_dir,
7832         add_file_name): New functions.
7833         (dwarf_decode_lines): Move all the code to read the statement
7834         program header into dwarf_decode_line_header.  Take the line
7835         header it built as the first argument, instead of the offset to
7836         the compilation unit's line number info.  Use the new `struct
7837         line_header' type instead of the old structures.  No need to do
7838         cleanups here now, since we don't allocate anything.
7839         (dwarf2_statement_list_fits_in_line_number_section,
7840         dwarf2_line_header_too_long): New complaints.
7841
7842 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7843
7844         * gdbtypes.c (init_vector_type): New function.
7845         (build_builtin_type_vec128): Simplify the representation of SIMD
7846         registers.
7847         (build_gdbtypes): Initialize new builtin vector types.
7848         (_initialize_gdbtypes): Register new vector types with gdbarch.
7849         (builtin_type_v4_float, builtin_type_v4_int32,
7850         builtin_type_v8_int16, builtin_type_v16_int8,
7851         builtin_type_v2_int32, builtin_type_v4_int16,
7852         builtin_type_v8_int8): New (renamed) SIMD types.
7853
7854 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7855
7856         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7857         (i387_fill_fxsave): Likewise.
7858
7859 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7860
7861         * alpha-tdep.c (alpha_extract_return_value): Don't use
7862         non-constant array size in prototype.
7863
7864 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7865
7866         From Brian Taylor <briant at model dot com>:
7867         * ui-out.c (ui_out_field_core_addr): Use the function
7868         longest_local_hex_string_custom'to format addresses > 32 bits
7869         wide.
7870
7871         * ui-out.c (ui_out_field_core_addr): Update comment.
7872
7873 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7874
7875         * stack.c (select_and_print_frame): Make static.  Delete the
7876         parameter `level'.
7877         (func_command): Update call.
7878         (select_frame_command): Delete code computing the frame level.
7879         * frame.h (select_and_print_frame): Delete declaration.
7880
7881 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7882
7883         * sparc-tdep.c (sparc_get_saved_register): Comment why
7884         get_prev_frame call is safe.
7885
7886 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7887
7888         * frame.h (select_frame): Delete level parameter.
7889         * stack.c (select_frame): Update.  Use frame_relative_level to
7890         obtain the frame's level.
7891         (select_and_print_frame): Update call.
7892         (select_frame_command): Ditto.
7893         (up_silently_base): Ditto.
7894         (down_silently_base): Ditto.
7895         * ocd.c (ocd_start_remote): Ditto.
7896         * remote-rdp.c (remote_rdp_open): Ditto.
7897         * remote-mips.c (mips_initialize): Ditto.
7898         (common_open): Ditto.
7899         * remote-e7000.c (e7000_start_remote): Ditto.
7900         * m3-nat.c (select_thread): Ditto.
7901         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7902         (child_get_current_exception_event): Ditto.
7903         * varobj.c (varobj_create): Ditto.
7904         (varobj_update): Ditto.
7905         (c_value_of_root): Ditto.
7906         * tracepoint.c (finish_tfind_command): Ditto.
7907         * corelow.c (core_open): Ditto.
7908         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7909         * thread.c (info_threads_command): Ditto.
7910         (switch_to_thread): Ditto.
7911         * infrun.c (normal_stop): Ditto.
7912         (restore_selected_frame): Ditto.
7913         (restore_inferior_status): Ditto.
7914         * breakpoint.c (insert_breakpoints): Ditto.
7915         (watchpoint_check): Ditto.
7916         (bpstat_stop_status): Ditto.
7917         (do_enable_breakpoint): Ditto.
7918         * blockframe.c (flush_cached_frames): Ditto.
7919         (reinit_frame_cache): Ditto.
7920
7921 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7922
7923         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7924         maintainer.
7925
7926 2002-05-04  Jim Blandy  <jimb@redhat.com>
7927
7928         * gdbtypes.c (replace_type): Doc fix.
7929
7930 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7931
7932         * valprint.c (strcat_longest): Delete commented out function.
7933         Update copyright.
7934
7935 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7936
7937         * MAINTAINERS: Mark a29k as deleted.
7938         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
7939         Move new configurations to the top.
7940         * configure.tgt: Remove a29k.
7941         * config/a29k/tm-vx29k.h: Delete.
7942         * config/a29k/vx29k.mt: Delete.
7943         * config/a29k/tm-a29k.h: Delete.
7944         * config/a29k/a29k-udi.mt: Delete.
7945         * config/a29k/a29k.mt: Delete.
7946         * a29k-tdep.c: Delete.
7947         * remote-udi.c: Delete.
7948         * remote-mm.c: Delete.
7949         * remote-eb.c: Delete.
7950         * remote-adapt.c: Delete.
7951         * Makefile.in: Remove obsolete code.
7952         * config/s390/s390x.mt: Ditto.
7953         * config/s390/s390.mt: Ditto.
7954         * config/sparc/sparclynx.mh: Ditto.
7955         * config/sparc/linux.mh: Ditto.
7956         * config/pa/hppaosf.mh: Ditto.
7957         * config/pa/hppabsd.mh: Ditto.
7958         * config/ns32k/nbsd.mt: Ditto.
7959         * config/mips/vr5000.mt: Ditto.
7960         * config/m68k/sun3os4.mh: Ditto.
7961         * config/m68k/nbsd.mt: Ditto.
7962         * config/m68k/m68klynx.mh: Ditto.
7963         * config/m32r/m32r.mt: Ditto.
7964         * config/i386/x86-64linux.mt: Ditto.
7965         * config/i386/nbsdelf.mt: Ditto.
7966         * config/i386/nbsd.mt: Ditto.
7967         * config/i386/i386lynx.mh: Ditto.
7968
7969 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7970
7971         * target.c (debug_print_register): New function.  Handle oversize
7972         registers.
7973         (debug_to_fetch_registers): Call.
7974         (debug_to_store_registers): Call.
7975
7976 2002-05-03  Jim Blandy  <jimb@redhat.com>
7977
7978         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7979         (read_type): Doc fix.
7980         * gdbtypes.c (replace_type): Doc fix.
7981
7982         * stabsread.c (multiply_defined_struct): New complaint.
7983         (read_struct_type): If the type we were passed isn't empty, or
7984         incomplete, don't read the new struct type into it; complain,
7985         and return the original type unchanged.  Take a new `type_code'
7986         argument, which is the type code for the new type.
7987         (read_type): Rather than storing the type's type code here, pass
7988         it as an argument to read_struct_type, and let that take care of
7989         storing it.  That way, we don't overwrite the original type code,
7990         so read_struct_type can use it to decide whether we're overwriting
7991         something we shouldn't.
7992         (complain_about_struct_wipeout): New function.
7993
7994 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
7995
7996         * gdbarch.sh: Assert that gdbarch is non-NULL.
7997         * gdbarch.c: Regenerate.
7998
7999 2002-05-03  Jason Merrill  <jason@redhat.com>
8000
8001         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8002         and return NULL.
8003
8004 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
8005
8006         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8007         (x86_64_dwarf2gdb_regno_map_length),
8008         (x86_64_dwarf2_reg_to_regnum): Added.
8009         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8010         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8011         (_initialize_x86_64_tdep): Synced with the change above.
8012         (x86_64_skip_prologue): Reformulated message.
8013
8014 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
8015
8016         * f-exp.y: Also use new prev_lexptr variable
8017         to improve error reporting. Based on Michael Snyder
8018         2002-04-24 dated patch to c-exp.y.
8019         * jv-exp.y: Likewise.
8020         * m2-exp.y: Likewise.
8021
8022 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
8023
8024         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8025         we are dealing with vectors.
8026
8027 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8028
8029         * config/m68k/tm-nbsd.h: Obvious fix,
8030         correct machine name.
8031
8032 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8033
8034         * p-typeprint.c (pascal_type_print_base): Add support
8035         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8036
8037 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8038
8039         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8040         for fondamental pascal 'char' type.
8041
8042 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8043
8044         * p-lang.h (is_pascal_string_type): Declaration changed,
8045         new sixth argument of type char ** added.
8046         * p-lang.c (is_pascal_string_type): Implementation
8047         changed. Args length_pos, length_size, string_pos, char_size
8048         can now be NULL. New argument arrayname set to the field
8049         name of the char array. Return value set to char array
8050         field index plus one.
8051         * p-valprint.c (pascal_val_print): Adapt to new declaration of
8052         is_pascal_string_type function.
8053
8054 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8055
8056         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8057         <cagney@redhat.com> change.
8058         * gdbarch.c: Regenerate.
8059
8060 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8061
8062         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8063         before probing for a new one.  Detect errorenous gdbarch_init
8064         functions.
8065         * gdbarch.c: Regenerate.
8066
8067 2002-05-01  Andrew Cagney  <cagney@redhat.com>
8068
8069         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8070         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
8071         * config/v850/tm-v850.h: Ditto.  Update copyright.
8072
8073 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
8074
8075         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8076         current_gdbarch.
8077
8078 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8079
8080         * arm-tdep.c: Whitespace clean-ups.
8081         (arm_skip_prologue): Fix thinko; two lines
8082         should have been removed as part of 4/24 change.
8083
8084 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
8085
8086         * rs6000-tdep.c: Added comment describing how fpscr register
8087         numbers were chosen.
8088
8089 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8090
8091         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8092
8093 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8094
8095         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8096         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8097         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8098
8099 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
8100
8101         From Louis Hamilton <hamilton@redhat.com>:
8102         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8103         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8104         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8105         not bfd-private xcoff data, to determine wordsize.
8106         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8107
8108 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
8109
8110         GDB 5.2 released from 5.2 branch.
8111
8112 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
8113
8114         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8115         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8116         (x86_64_register_info_table): Added comments with register numbers.
8117
8118 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8119
8120         * rs6000-tdep.c (rs6000_extract_return_value,
8121         rs6000_store_return_value): Handle returning vectors.
8122         (rs6000_gdbarch_init): Use
8123         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8124         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8125         New function.
8126         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8127         vectors.
8128         (ppc_sysv_abi_push_arguments): Handle vector parameters.
8129         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8130
8131 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8132
8133         * hpread.c (hpread_psymtab_to_symtab_1,
8134         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8135         with fprintf_unfiltered (gdb_stderr,...).
8136
8137 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8138
8139         * remote-array.c (printf_monitor, write_monitor,
8140         array_insert_breakpoint, array_remove_breakpoint ):
8141         Replace fprintf (stderr,...
8142         with fprintf_unfiltered (gdb_stderr,....
8143         * remote-es.c: Likewise.
8144         * remote-os9k.c: Likewise.
8145         * remote-st.c: Likewise.
8146
8147 2002-04-28  Andreas Schwab  <schwab@suse.de>
8148
8149         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8150         linux-proc.o and gcore.o.
8151
8152 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
8153
8154         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8155         code without frame pointers.
8156
8157 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8158
8159         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8160         ON_STACK is needed.
8161
8162 2002-04-26  Ben Elliston  <bje@redhat.com>
8163
8164         * target.c (do_xfer_memory): Correct reference to the new option
8165         "trust-readonly-sections".
8166
8167 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
8168
8169         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8170         * gdbtypes.c (recursive_dump_type): Output the vector flag.
8171         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8172         vectors.
8173         (read_array_type): Record the fact that this array type is really a
8174         vector (i.e. are passed in by value).
8175
8176 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
8177
8178         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8179         * alpha-tdep.c (alpha_sigcontext_addr): New function.
8180         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8181         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8182         * alpha-linux-tdep.c: Include frame.h.
8183         (alpha_linux_sigcontext_addr): New function.
8184         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8185         alpha_linux_sigcontext_addr.
8186         * alpha-osf1-tdep.c: Include gdbcore.h.
8187         (alpha_osf1_sigcontext_addr): New function.
8188         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8189         alpha_osf1_sigcontext_addr.
8190         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8191         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8192
8193 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8194
8195         * stack.c (selected_frame_level):
8196         (select_frame): Do not set selected_frame_level.
8197         * frame.h (selected_frame_level): Delete declaration.
8198
8199 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8200
8201         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8202         convert_from_func_ptr-addr when AIX / PowerOpen.
8203
8204 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8205
8206         * valops.c (hand_function_call): Call
8207         generic_save_call_dummy_addr.
8208         * frame.h (generic_save_call_dummy_addr): Declare.
8209         * blockframe.c (struct dummy_frame): Add fields call_lo and
8210         call_hi.
8211         (generic_find_dummy_frame): Check for PC in range call_lo to
8212         call_hi instead of entry_point_address.
8213         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8214         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
8215         (generic_save_call_dummy_addr): New function.
8216
8217 2002-04-24  David S. Miller  <davem@redhat.com>
8218
8219         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8220         sparc_skip_prologue.
8221         (sparc_skip_prologue): Kill frameless_p arg, and use line number
8222         information to find prologue when possible.
8223         (sparc_prologue_frameless_p): Call examine_prologue directly.
8224         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8225         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8226         second argument.
8227         (SKIP_PROLOGUE): Likewise.
8228
8229 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8230
8231         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8232         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8233         indicate that the condition it was testing is always true.
8234         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8235         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8236         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8237
8238 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8239
8240         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8241         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8242         tdep->jb_pc and tdep->jb_elt_size.
8243         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8244         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8245         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8246         * alpha-nat.c (get_longjmp_target): Remove.
8247         (JB_ELEMENT_SIZE): Ditto.
8248         (JB_PC): Ditto.
8249         * alpha-tdep.c (alpha_get_longjmp_target): New function.
8250         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
8251         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8252         to alpha_get_longjmp_target.
8253         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8254         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8255         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8256
8257 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8258
8259         * README: Update to GDB 5.2.
8260
8261 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8262
8263         * gdbarch.sh (LC_ALL): Set to `c'.
8264
8265 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8266
8267         * avr-tdep.c: Ran through gdb_indent.sh.
8268
8269 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8270
8271         * MAINTAINERS: Add myself as AVR maintainer.
8272         * NEWS: Note new target avr.
8273
8274 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8275
8276         * Makefile.in: Add support for AVR target.
8277         * configure.tgt: Add support for AVR target.
8278         * avr-tdep.c: New file
8279         * config/avr/avr.mt: New file.
8280
8281 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8282
8283         * MAINTAINERS: Add myself to write-after-approval.
8284
8285 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8286
8287         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8288         with fprintf_unfiltered (gdb_stderr,....
8289
8290 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8291
8292         Fix PR gdb/508.
8293         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8294
8295 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8296
8297         * p-exp.y: Also use new prev_lexptr variable
8298         to improve error reporting. Based on Michael Snyder
8299         2002-04-24 dated patch to c-exp.y.
8300
8301 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8302
8303         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8304         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8305         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
8306         to 0.
8307         * config/alpha/tm-alpha.h: Remove forward decls of struct type
8308         and struct value.
8309         (FUNCTION_START_OFFSET): Remove.
8310         (BREAKPOINT): Ditto.
8311
8312 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8313
8314         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8315         * NEWS: Ditto.
8316
8317 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8318
8319         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8320         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8321         alpha_linux_pc_in_sigtramp.
8322         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8323         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8324         alpha_osf1_pc_in_sigtramp.
8325         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8326         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8327         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8328         alphafbsd_pc_in_sigtramp.
8329         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8330         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8331         alphanbsd_pc_in_sigtramp.
8332         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8333         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8334
8335 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8336
8337         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8338
8339 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8340
8341         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8342         alphanbsd-tdep.c.
8343         (alphanbsd-nat.o): New dependency list.
8344         (alphanbsd-tdep.o): Ditto.
8345         * NEWS: Note new native NetBSD/alpha configuration.
8346         * alphanbsd-nat.c: New file.
8347         * alphanbsd-tdep.c: Ditto.
8348         * configure.host (alpha*-*-netbsd*): New host.
8349         * configure.tgt (alpha*-*-netbsd*): New target.
8350         * config/alpha/nbsd.mh: New file.
8351         * config/alpha/nbsd.mt: Ditto.
8352         * config/alpha/nm-nbsd.h: Ditto.
8353         * config/alpha/tm-nbsd.h: Ditto.
8354
8355 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8356
8357         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8358         (alpha-osf1-tdep.o): New dependency list.
8359         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8360         and skip_sigtramp_frame members.
8361         * alpha-linux-tdep.c: Include gdbcore.h.
8362         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8363         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8364         * alpha-osf1-tdep.c: New file.
8365         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8366         alpha-osf1-dep.c.
8367         (alpha_frame_past_sigtramp_frame): New function.
8368         (alpha_dynamic_sigtramp_offset): Ditto.
8369         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8370         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8371         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8372         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8373         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8374         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8375         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8376         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8377         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8378         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8379         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
8380         to find_solib_trampoline_target.
8381         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8382         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8383         (SKIP_TRAMPOLINE_CODE): Remove.
8384         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8385         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8386         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8387         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8388         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8389         (PROC_SIGTRAMP_MAGIC): Ditto.
8390         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8391         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8392         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8393         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8394         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8395
8396 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8397
8398         * NEWS: Note that Alpha targets are now multi-arch.
8399
8400 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8401
8402         * parser-defs.h (prev_lexptr): New external variable.
8403         * parse.c (parse_exp_1): Set prev_lexptr to null before
8404         calling the language-specific parser.
8405         * c-exp.y (yylex): Set prev_lexptr to start of current token.
8406         (yyerror): Use prev_lexptr in error reporting.
8407
8408 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
8409
8410         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8411         * gregset.h: If FILL_FPXREGSET is defined, provide
8412         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8413         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8414         is defined, call fill_fpxregset.
8415
8416 2002-04-24  Roland McGrath  <roland@frob.com>
8417
8418         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8419         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8420         (supply_gregset, supply_fpregset): New functions.
8421
8422         * gnu-nat.c (gnu_find_memory_regions): New function.
8423         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8424         (gnu_xfer_memory): Add a cast.
8425
8426 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8427
8428         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8429         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
8430         of argument regs ("str r(0123), [r11, #-nn"]).
8431         (arm_skip_prologue): Better handling for frameless functions.
8432         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
8433         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8434
8435 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
8436
8437         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8438         NUM_PSEUDO_REGS can be used.
8439
8440 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
8441
8442         * arch-utils.h: Update copyright.
8443
8444         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8445         * gdbarch.h, gdbarch.c: Re-generate.
8446
8447         * inferior.h (IN_SIGTRAMP): Delete definition.
8448         * arch-utils.c (legacy_pc_in_sigtramp): New function.
8449         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8450
8451         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8452         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8453         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8454         (find_proc_framesize): Ditto.
8455         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8456         (alpha_init_extra_frame_info): Ditto.
8457         * infrun.c (handle_inferior_event): Ditto.
8458         (handle_inferior_event): Ditto.
8459         (check_sigtramp2): Ditto.
8460         * blockframe.c (create_new_frame): Ditto.
8461         (get_prev_frame): Ditto.
8462         * ppc-linux-tdep.c: Update comments.
8463         * i386-linux-tdep.c: Update comments.
8464         * breakpoint.c (bpstat_what): Update comment.
8465
8466 2002-04-24  David S. Miller  <davem@redhat.com>
8467
8468         * i960-tdep.c (register_in_window_p): New function.
8469         (i960_find_saved_register): Use it instead of
8470         REGISTER_IN_WINDOW_P.
8471         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8472
8473         * symtab.h (find_stab_function_addr): Kill extern.
8474         * minsyms.c (find_stab_function_addr): Remove from here...
8475         * dbxread.c: ... to here, and mark it static.
8476
8477 2002-04-20  David S. Miller  <davem@redhat.com>
8478
8479         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8480         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8481
8482 2002-04-21  David S. Miller  <davem@redhat.com>
8483
8484         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8485         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8486         (vx_write_register): Likewise.
8487
8488 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8489
8490         * source.c (is_regular_file): New function.
8491         (openp): Check wether file to open is a regular file
8492         to avoid opening directories.
8493
8494 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8495
8496         * findvar.c (extract_signed_integer): Cast printf argument
8497         to suppress format warning.
8498         (extract_unsigned_integer): Likewise.
8499         * infcmd.c (registers_info): Likewise.
8500         * top.c (get_prompt_1): Likewise.
8501         * valops.c (value_assign): Likewise.
8502         * valprint.c (print_decimal): Likewise.
8503
8504 2002-04-22  H.J. Lu  (hjl@gnu.org)
8505
8506         * c-exp.y (typebase): Support
8507
8508         [long|long long|short] [signed|unsigned] [int|]
8509
8510         and
8511
8512         signed [long|long long|short] int
8513
8514 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8515
8516         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8517         and vax-tdep.h.
8518         * vax-tdep.h: New file.
8519         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8520         Make several routines static.
8521         (vax_get_saved_register): New function.
8522         (vax_gdbarch_init): New function.
8523         (_initialize_vax_tdep): Register vax_gdbarch_init.
8524         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8525         Remove macros now under the control of gdbarch.
8526
8527 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8528
8529         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8530         Some whitespace and coding standards tweaks.
8531
8532 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8533
8534         * vax-tdep.c: Include regcache.h.
8535         (vax_call_dummy_words): New.
8536         (sizeof_vax_call_dummy_words): New.
8537         (vax_fix_call_dummy): New function.
8538         (vax_saved_pc_after_call): Ditto.
8539         * config/vax/tm-vax.h: Don't include regcache.h.
8540         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8541         (CALL_DUMMY): Remove.
8542         (CALL_DUMMY_WORDS): Define.
8543         (SIZEOF_CALL_DUMMY_WORDS): Define.
8544         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8545
8546 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8547
8548         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8549
8550 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8551
8552         * vax-tdep.c (vax_frame_chain): New function.
8553         (vax_push_dummy_frame): Ditto.
8554         (vax_pop_frame): Ditto.
8555         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8556         (FRAMELESS_FUNCTION_INVOCATION): Use
8557         generic_frameless_function_invocation_not.
8558         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8559         (POP_FRAME): Use vax_pop_frame.
8560
8561 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8562
8563         * vax-tdep.c (vax_store_struct_return): New function.
8564         (vax_extract_return_value): Ditto.
8565         (vax_store_return_value): Ditto.
8566         (vax_extract_struct_value_address): Ditto.
8567         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8568         vax_store_struct_return.
8569         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8570         (STORE_RETURN_VALUE): Use vax_store_return_value.
8571         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8572
8573 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8574
8575         * vax-tdep.c (vax_frame_saved_pc): New function.
8576         (vax_frame_args_address_correct): Ditto.
8577         (vax_frame_args_address): Ditto.
8578         (vax_frame_locals_address): Ditto.
8579         (vax_frame_num_args): Move code to be in proximity to
8580         other frame-related functions.
8581         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8582         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8583         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8584         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8585         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8586
8587 2002-04-22  H.J. Lu  (hjl@gnu.org)
8588
8589         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8590         includedir.
8591
8592 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8593
8594         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8595         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8596         (FRAME_INIT_SAVED_REGS): New macro.
8597
8598 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8599
8600         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8601
8602 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8603
8604         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8605         where needed.
8606         (fetch_osf_core_registers): Likewise.
8607         (supply_gregset): Likewise.
8608
8609 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8610
8611         * symfile.h (get_section_index): Define.
8612         * symfile.c (get_section_index): New function.
8613         * mdebugread.c (SC_IS_SBSS): New macro.
8614         (SC_IS_BSS): Return true for the scBss storage class only, as
8615         the scSBss storage class refers to the .sbss section.
8616         (parse_partial_symbols): Discard the symbols which associated
8617         section does not exist.
8618         Make sure to use the .sbss section index for symbols which
8619         storage class is scBss, rather than using the .bss section index.
8620
8621 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8622
8623         * vax-tdep.c: Update copyright years.
8624         (vax_register_name): New function.
8625         (vax_register_byte): Ditto.
8626         (vax_register_raw_size): Ditto.
8627         (vax_register_virtual_size): Ditto.
8628         (vax_register_virtual_type): Ditto.
8629         * config/vax/tm-vax.h: Update copyright years.
8630         (REGISTER_NAMES): Remove.
8631         (REGISTER_NAME): Define.
8632         (REGISTER_BYTE): Use vax_register_byte.
8633         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8634         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8635         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8636
8637 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8638
8639         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8640         declaration
8641         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8642
8643 2002-04-21  David S. Miller  <davem@redhat.com>
8644
8645         * arch-utils.c (generic_prologue_frameless_p): Kill
8646         SKIP_PROLOGUE_FRAMELESS_P code.
8647         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8648         references.
8649         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8650         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8651         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8652         references.
8653         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8654         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8655         (sparc_gdbarch_init): Pass it to
8656         set_gdbarch_prologue_frameless_p.
8657
8658 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8659
8660         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8661         (alphabsd-nat.o): New dependency list.
8662
8663 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8664
8665         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8666         alphafbsd-tdep.c.
8667         (alpha-linux-tdep.o): New dependency list.
8668         (alphafbsd-tdep.o): Likewise.
8669
8670 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8671
8672         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8673         to here...
8674         * alpha-tdep.c: ...from here.
8675         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8676
8677 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8678
8679         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8680         prototype from here...
8681         * alpha-tdep.h: ...to here.
8682
8683 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8684
8685         * frame.h (selected_frame_level): Document as deprecated.
8686         (frame_relative_level): Declare.
8687         * stack.c (frame_relative_level): New function.
8688         (selected_frame_level): Document as deprecated.
8689         (select_frame): Do not set the selected_frame_level.
8690
8691         * stack.c (frame_info, record_selected_frame): Update.
8692         (frame_command, current_frame_command): Update.
8693         (up_silently_base, up_command, down_silently_base): Update.
8694         (down_command): Update.
8695         * inflow.c (kill_command): Update.
8696         * tracepoint.c (finish_tfind_command): Update.
8697         * corelow.c (core_open): Update.
8698         * thread.c (info_threads_command): Update.
8699         (do_captured_thread_select): Update.
8700         * infcmd.c (finish_command): Update.
8701         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8702
8703 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8704
8705         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8706
8707 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8708
8709         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8710         type const.
8711
8712 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8713
8714         * alphafbsd-tdep.c: Update copyright years.  Include
8715         alpha-tdep.h.
8716         (alphafbsd_use_struct_convention): Make static.
8717         (alphafbsd_init_abi): New function.
8718         (_initialize_alphafbsd_tdep): New function.
8719         * config/alpha/tm-fbsd.h: Update copyright years.
8720         (USE_STRUCT_CONVENTION): Remove.
8721
8722 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8723
8724         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8725         an Alpha ABI variant.
8726         (alpha_abi_handler_list): Declare.
8727         (alpha_gdbarch_register_os_abi): New function.
8728         (alpha_gdbarch_init): Give registered ABI variant handlers a
8729         chance to tweak the gdbarch once we have set up defaults.
8730         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8731
8732 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8733
8734         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8735         to standard_coerce_float_to_double.
8736         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8737
8738 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8739
8740         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8741         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8742         from gdbarch_tdep rather than a constant.
8743         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8744         the default text address for all Alpha Unix ABIs.
8745         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8746         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8747
8748 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8749
8750         * alpha-tdep.h: New file.  Includes several Alpha target constants
8751         taken from...
8752         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8753         let gdbarch deal with.
8754         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8755         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8756         to dependency list.
8757         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8758         Alpha target register names.
8759         * alphabsd-nat.c: Likewise.
8760         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8761         Alpha target register names.  Make serveral routines static.
8762         (alpha_get_saved_register): New function.
8763         (alpha_abi_names): New.
8764         (process_note_abi_tag_sections): New function.
8765         (get_elfosabi): New function.
8766         (alpha_gdbarch_init): New function.
8767         (alpha_dump_tdep): New function.
8768         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8769
8770 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8771
8772         * frame.c (find_saved_register): Delete #ifdef
8773         HAVE_REGISTER_WINDOWS code.
8774         * config/sparc/tm-sparc.h: Update comments.
8775         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8776
8777 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8778
8779         * i960-tdep.c (i960_find_saved_register): New function.
8780         (i960_get_saved_register): New function.
8781         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8782         (i960_get_saved_register): Declare.
8783         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8784
8785 2002-04-20  David S. Miller  <davem@redhat.com>
8786
8787         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8788
8789 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8790
8791         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8792         instead of NUM_PSEUDO_REGS.
8793
8794 2002-04-20  David S. Miller  <davem@redhat.com>
8795
8796         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8797         GDB_MULTI_ARCH_PARTIAL
8798         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8799         define, let tm-sp64.h do it.
8800
8801 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8802
8803         * frame.c (find_saved_register): Avoid a NULL pointer
8804         dereference and actually walk the frame list.
8805
8806 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8807
8808         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8809         sorted in most most-recent-used order.  Document.
8810         * gdbarch.h, gdbarch.c: Regenerate.
8811
8812 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8813
8814         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8815         instead of ->prev.
8816         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8817         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8818         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8819         instead of ->prev.
8820
8821 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8822
8823         Fix PR gdb/471.
8824         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8825         (build_builtin_type_vec128): Ditto.
8826         (append_composite_type_field): Fix calculation of type length in
8827         union case.
8828
8829 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8830
8831         * config/djgpp/README: Update.
8832
8833         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8834         compiler warnings.
8835
8836 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8837
8838         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8839         (alpha_setup_arbitrary_frame): ...to this.
8840         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8841         for alpha_setup_arbitrary_frame.
8842
8843 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8844
8845         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8846         * gdbarch.h, gdbarch.c: Regenerate.
8847
8848         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8849         * target.h (memory_breakpoint_from_pc): Update declaration.
8850         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8851
8852         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8853         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8854         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8855         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8856         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8857         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8858         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8859         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8860         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8861         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8862         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8863         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8864
8865         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8866         const pointer.
8867         * monitor.c (monitor_insert_breakpoint): Ditto.
8868         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8869
8870         * config/mcore/tm-mcore.h: Update copyright.
8871         * mem-break.c: Ditto.
8872         * xstormy16-tdep.c: Ditto.
8873
8874 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8875
8876         * p-exp.y: Add precedence rule for '^' token.
8877         This removes the shift/reduce conflicts.
8878         Remove the comment concerning these shift/reduce conflicts.
8879
8880 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8881
8882         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8883         (registers_powerpc_nofp): New register set for processors
8884         without floating point unit.
8885
8886 2002-04-18  David S. Miller  <davem@redhat.com>
8887
8888         * MAINTAINERS: Add myself to write-after-approval.
8889
8890 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8891
8892         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8893
8894 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8895
8896         * rs6000-tdep.c (frame_initial_stack_address): Use
8897         frame_register_read to read the alloca_reg.
8898
8899 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8900
8901         * frame.c (find_saved_register): Find saved registers in the next
8902         not prev frame.
8903         Fix PR gdb/365.
8904
8905 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8906
8907         * gdbarch.sh (LANG): Set to ``c''.
8908
8909 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8910
8911         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8912
8913 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8914
8915         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8916         Update copyright.
8917
8918         * hpread.c (hpread_get_lntt): Add declaration.
8919         Also fix PR gdb/391.
8920
8921 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8922
8923         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8924         * aclocal.m4, configure: Re-generate.
8925         Fix PR gdb/391.
8926
8927 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8928
8929         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8930         instead of tm_print_insn.
8931
8932 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8933
8934         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8935
8936 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8937
8938         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8939         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8940         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8941
8942 2002-04-12  Don Howard  <dhoward@redhat.com>
8943
8944         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8945         max_user_call_depth.
8946         (init_cmd_lists): Initialize the new value;
8947         * cli/cli-script.c (execute_user_command): Limit the call depth of
8948         user defined commands.  This avoids a core-dump when user commands
8949         are infinitly recursive.
8950
8951 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8952
8953         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8954         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8955         from tdep struct instead of DEFAULT_LR_SAVE.
8956         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8957         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8958         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8959
8960 2002-04-12  Michael Snyder  <msnyder@redhat.com>
8961
8962         * Remote.c: Spelling fix.
8963         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8964         If no symbol found for "sbrk", try "_sbrk".
8965         (make_output_phdrs): Use bfd_section_name.
8966         (gcore_copy_callback): Use bfd_section_name.
8967         * eval.c: Indentation fix-ups.
8968         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8969         in case it gets applied to an address that is already
8970         in the instruction space.
8971         * cli/cli-decode.c (help_list): Allow long lines to wrap.
8972         * symfile.c: Fix indentation, long lines.
8973         * source.c: White space fix-up.
8974
8975 2002-04-12  Andrew Cagney  <cagney@redhat.com>
8976
8977         * defs.h (read_relative_register_raw_bytes): Delete declaration.
8978         * frame.c (frame_register_read): New function.  Return non-zero on
8979         success.
8980         (read_relative_register_raw_bytes_for_frame): Delete.
8981         (read_relative_register_raw_bytes): Delete.
8982         * frame.h (frame_register_read): Declare.
8983         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
8984         * sh-tdep.c: Ditto.
8985         * infcmd.c (do_registers_info): Ditto.
8986         * hppa-tdep.c: Ditto.
8987         * rs6000-tdep.c: Ditto.
8988         * h8500-tdep.c: Ditto.
8989         * mips-tdep.c: Ditto.
8990         * h8300-tdep.c: Ditto.
8991         * z8k-tdep.c: Ditto.
8992
8993 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8994
8995         From Jimi X <jimix@watson.ibm.com>:
8996         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8997         64-bit SysV ABI.
8998
8999 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9000
9001         From Jimi X <jimix@watson.ibm.com>:
9002         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9003         bfd info.
9004
9005 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9006
9007         From Jimi X <jimix@watson.ibm.com>:
9008         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9009         register sets for these processor variants.
9010
9011 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
9012
9013         * regformats/reg-ppc.dat: Support FPSCR.
9014
9015 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
9016
9017         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9018         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9019         Add fpscr as an invalid/unfetchable register.
9020         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9021         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9022         (fill_fpregset): Add support for register fpscr.
9023         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9024         (fill_gregset): Account for the fact that register ``mq'' might
9025         not exist.
9026         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9027         (registers_power): Add fpscr to register set at slot 71.
9028         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9029         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
9030
9031 2002-04-11  Michael Snyder  <msnyder@redhat.com>
9032
9033         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9034         * configure: Regenerate.
9035         * config.in: Regenerate.
9036         * acconfig.h: Add define for _SYSCALL32.
9037         * core-sol2.c: Remove #define _SYSCALL32.
9038         * solib-legacy.c: Remove #define _SYSCALL32.
9039
9040 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9041
9042         * stack.c (select_frame): Cleanup internal error message, do not
9043         use %p.
9044
9045 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9046
9047         * stack.c (select_frame): Check that selected_frame and the
9048         specified level are as expected.
9049         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9050         Update copyright.
9051         * frame.h (struct frame_info): Add field `level'.  Update
9052         copyright.
9053         Work-in-progress PR gdb/464.
9054
9055 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9056
9057         * maint.c (maint_print_section_info): Rename print_section_info.
9058         (print_bfd_section_info, print_objfile_section_info): Update.
9059         * inferior.h (struct gdbarch): Add opaque declaration.
9060         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9061         * gdbarch.h: Regenerate.
9062
9063 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
9064
9065         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9066         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9067         (kernel_u_size): Added.
9068         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9069         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9070
9071 2002-04-04  Jim Ingham  <jingham@apple.com>
9072
9073        * valarith.c (find_size_for_pointer_math): New function, either returns
9074        the size for a pointer's target, returns 1 for void *, or errors for
9075        incomplete types.
9076        (value_add, value_sub): use find_size_for_pointer_math.
9077
9078 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9079
9080         * linux-low.c (linux_look_up_symbols): New hook.
9081         (linux_target_ops): Add linux_look_up_symbols.
9082         * remote-utils.c (decode_address): New function.
9083         (look_up_one_symbol): New function.
9084         * server.c (handle_query): Call target look_up_symbols hook.
9085         * server.h (look_up_one_symbol): Add prototype.
9086         * target.h (struct target_ops): Add look_up_symbols hook.
9087
9088 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
9089
9090         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9091         override FP_REGNUM with frame->fp.  Update copyright.
9092         * parse.c (num_std_regs, std_regs): Delete.
9093         (target_map_name_to_register): Do not search std_regs.  Update
9094         function description.
9095         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9096         declarations.  Update copyright.
9097         Fix PR gdb/251.
9098
9099 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9100
9101         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9102         after the last symbol in a block.
9103
9104 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9105
9106         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9107         is non zero as a found symbol.
9108
9109 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9110
9111         * findvar.c: Include "builtin-regs.h".
9112         (value_of_register): Call value_of_builtin_reg when applicable.
9113         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9114         (target_map_name_to_register): Call
9115         builtin_reg_map_name_to_regnum.
9116         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9117         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9118         (builtin_regs_h): Define.
9119         (builtin-regs.o): New target.
9120         (findvar.o): Add $(builtin_regs_h).
9121         * builtin-regs.c, builtin-regs.h: New files.
9122         * std-regs.c: New file.
9123         Partial fix for PR gdb/251.
9124
9125 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9126
9127         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9128         it's no longer required.
9129
9130 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9131
9132         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9133
9134 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9135
9136         From Jimi X <jimix@watson.ibm.com>:
9137         * rs6000-tdep.c (rs6000_software_single_step): Use
9138         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9139         and size.  Use target_insert_breakpoint() and
9140         target_remove_breakpoint() to insert and remove breakpoints
9141         instead of explicit memory reads and writes.
9142
9143 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9144
9145         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9146         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9147         ELF_OBJECT_FORMAT ifdef.
9148
9149 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9150
9151         From Jimi X <jimix@watson.ibm.com>:
9152         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9153
9154 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9155
9156         From Jimi X <jimix@watson.ibm.com>:
9157         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9158         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9159
9160 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
9161
9162         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9163         s/asprintf/xasprintf/.
9164         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9165
9166 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9167
9168         I believe Jeff Law denies responsability for this one:
9169         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9170         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9171         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9172         Work-around for PR gdb/366.
9173
9174 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9175
9176         * remote-e7000.c (write_small, e7000_read_inferior_memory,
9177         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9178         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9179
9180 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9181
9182         * sh-tdep.c (sh_fp_frame_init_saved_regs,
9183         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9184         information.
9185
9186 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9187
9188         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9189         maintainer.
9190
9191 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9192
9193         * README (Reporting Bugs in GDB): Document the bug web page as the
9194         prefered way of submitting bugs.
9195         Fix PR gdb/402.
9196
9197 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9198
9199         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9200         -1.  Update comment.
9201         * gdbarch.h, gdbarch.c: Re-generate.
9202
9203 2002-04-07  Andreas Schwab  <schwab@suse.de>
9204
9205         * m68klinux-nat.c (fill_fpregset): Properly pass address of
9206         buffer to regcache_collect.
9207
9208 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
9211         * gdbarch.c, gdbarch.h: Re-generate.
9212
9213 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9214
9215         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9216         declaration.  Fix -Werror.
9217
9218 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
9219
9220         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9221         * gdbarch.c: Regenerate.
9222
9223 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9224
9225         * breakpoint.c (clear_command): Rewrite middle section to
9226         combine two loops with identical control conditions.
9227         Add a cleanup to eliminate a memory leak.
9228         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9229
9230 2002-04-05  H.J. Lu  (hjl@gnu.org)
9231
9232         * solib-svr4.c (bkpt_names): Add "__start".
9233
9234 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9235
9236         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9237         as test for 64 bit target.
9238
9239 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
9240
9241         * h8500-tdep.c (h8500_write_fp): Delete function.
9242         * dwarf2cfi.c (cfi_write_fp): Document as not used.
9243         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9244         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9245         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9246         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9247         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9248         (s390_write_fp):
9249         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9250         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9251         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9252         (d10v_write_fp): Delete function.
9253         * inferior.h (write_fp, generic_target_write_fp): Delete
9254         declarations.
9255         * regcache.c (generic_target_write_fp): Delete function.
9256         (write_fp): Delete function.
9257         * gdbarch.sh (TARGET_WRITE_FP): Delete.
9258         * gdbarch.h, gdbarch.c: Regenerate.
9259         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9260         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9261         (sparc64_write_fp): Delete declaration.
9262         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9263         (h8500_write_fp): Delete declaration.
9264
9265 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9266
9267         * sparc-tdep.c (sparc64_write_fp): Delete.
9268         (sparc_push_dummy_frame): Replace write_fp call with code to store
9269         the FP directly.
9270         (sparc_gdbarch_init): Do not initialize write_fp.
9271
9272 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
9273
9274         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9275         clause.
9276
9277 2002-03-29  Jim Blandy  <jimb@redhat.com>
9278
9279         * stack.c (get_selected_block): Add new argument `addr_in_block',
9280         used to return the exact code address we used to select the block,
9281         not just the block.
9282         * blockframe.c (get_frame_block, get_current_block): Same.
9283         * frame.h (get_frame_block, get_current_block,
9284         get_selected_block): Update declarations.
9285         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9286         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9287
9288 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9289
9290         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9291         warning message.
9292
9293 2002-04-05  J. Brobecker  <brobecker@gnat.com>
9294
9295         * utils.c (xfullpath): New function.
9296         * defs.h (xfullpath): Add declaration.
9297         * source.c (openp): Use xfullpath in place of gdb_realpath to
9298         avoid resolving the basename part of filenames when the
9299         associated file is a symbolic link. This fixes a potential
9300         inconsistency between the filenames known to GDB and the
9301         filenames it prints in the annotations.
9302         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9303         to be able to match a filename with either the real filename, or
9304         the name of any symbolic link to this file.
9305         (lookup_partial_symtab): Ditto.
9306
9307 2002-04-04  Michael Snyder  <msnyder@redhat.com>
9308
9309         * breakpoint.c: Add support for hardware breakpoints in overlays.
9310         (overlay_events_enabled): New state variable.
9311         (insert_breakpoints): Use overlay_events_enabled to decide
9312         whether to attempt to set a breakpoint at the overlay load addr.
9313         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9314         (remove_breakpoint): Use overlay_events_enabled to decide
9315         whether breakpoints need to be removed from overlay load addr.
9316         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9317         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9318         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9319         disable_overlay_breakpoints): Update overlay_events_enabled.
9320
9321 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
9322
9323         * dwarf2read.c (struct function_range): New.
9324         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9325         (check_cu_functions): New.
9326         (read_file_scope): Initialize global function lists.
9327         Call dwarf_decode_line after processing children.
9328         (read_func_scope): Add to global function list.
9329         (dwarf_decode_lines): Call check_cu_functions everywhere
9330         record_line is called.  Call record_line with a linenumber
9331         of 0 to mark sequence ends.
9332
9333 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
9334
9335         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9336         change sync with glibc.
9337
9338 2002-04-03  Jim Blandy  <jimb@redhat.com>
9339
9340         * configure.in: Call AC_C_INLINE.
9341         * configure: Regenerated.
9342
9343 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
9344
9345         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9346         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9347
9348 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
9349
9350         * NEWS: Mention gcore support on FreeBSD/i386.
9351
9352         * fbsd-proc.c: New file.
9353         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9354         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9355
9356         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9357         while statement.
9358
9359 2002-03-29  Jim Blandy  <jimb@redhat.com>
9360
9361         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9362         unescaped newlines in string literals, but newer ones don't.  So
9363         escape them.
9364
9365 2002-03-26  Michael Snyder  <msnyder@redhat.com>
9366             Andrew Cagney <cagney@redhat.com>
9367
9368         * cli/cli-dump.c: New file.  Dump memory to file,
9369         restore file to memory.
9370         * cli/cli-dump.h: New file.
9371         * Makefile.in: Add rules, dependencies for cli-dump.o.
9372         * NEWS: Mention new commands.
9373
9374 2002-03-28  Michael Snyder  <msnyder@redhat.com>
9375
9376         * symfile.c (symbol_file_add): Move test for null symbols to later.
9377
9378 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9379
9380         From veksler at il.ibm.com:
9381         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9382         the xstrduped original path.
9383         Fix PR gdb/417.
9384
9385 2002-03-27  Michael Snyder  <msnyder@redhat.com>
9386
9387         * breakpoint.c (_initialize_breakpoint): Clean up help string.
9388         * infcmd.c (_initialize_infcmd): Ditto.
9389         * language.c (_initialize_language): Ditto.
9390         * symfile.c (_initialize_symfile): Ditto.
9391         * top.c (_init_main): Ditto.
9392         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9393
9394 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
9395
9396         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9397         vector registers handling.
9398         (skip_prologue): Handle new AltiVec instructions.  Fill in new
9399         fields of frame data.
9400         (frame_get_saved_regs): Fill in information for AltiVec registers.
9401
9402 2002-03-27  Jim Blandy  <jimb@redhat.com>
9403
9404         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9405         a function; leave this macro here to invoke that function.
9406         (symbol_init_mangled_name): Declaration for that function.
9407         * symtab.c (symbol_init_mangled_name): New function.
9408
9409 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9410
9411         * valarith.c: Replace strerror with safe_strerror.
9412         * tracepoint.c: Ditto.
9413         * lin-lwp.c: Ditto.
9414         * go32-nat.c: Ditto.
9415         * inflow.c: Ditto.
9416         * gnu-nat.c: Ditto.
9417
9418 2002-03-27  Andreas Schwab  <schwab@suse.de>
9419
9420         * event-top.c (command_line_handler): Remove useless if.
9421
9422 2002-03-27  Andreas Jaeger  <aj@suse.de>
9423
9424         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9425         comment.
9426
9427 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
9428
9429         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9430         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9431         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9432         (x86_64_linux_dr_get_status, supply_gregset),
9433         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9434         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9435         (x86_64_register_info_table): Add.
9436         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9437         (x86_64_register_raw_size, x86_64_register_virtual_type),
9438         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9439         general x86_64_register_info_table.
9440         (i386_gdbarch_init): gdbarch_register_bytes is now set
9441         dynamicaly during initialization.
9442         * regformats/reg-x86-64.dat: Synced with changes to registers above.
9443         * gdbserver/linux-x86-64-low.c: Ditto.
9444
9445 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9446
9447         * gdbserver/server.c (main): Call target_signal_to_host_p
9448         and target_signal_to_host on signals received from the remote.
9449         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9450         target_signal_from_host on signals sent to the remote.
9451         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9452         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9453
9454 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9455
9456         * signals/signals.c: Include "server.h" in gdbserver build.
9457         (target_signal_from_name): Don't use STREQ.
9458         (_initialize_signals): Likewise.  Don't include function in
9459         gdbserver build.
9460
9461 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9462
9463         * signals.c: Moved to...
9464         * signals/signals.c: Here.
9465         * Makefile (signals.o): Update.
9466
9467 2002-03-26  Jeff Law (law@redhat.com)
9468
9469         * somread.c (som_symtab_read): Remove some commented out code and
9470         updated related comments.  Do not set the minimal symbol table to
9471         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9472         in a dynamic executable.
9473         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9474         where we are unable to find the minimal symbol for the given
9475         PC value.
9476
9477 2002-03-25  Jeff Law (law@redhat.com)
9478
9479         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9480
9481 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9482
9483         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9484
9485 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9486
9487         * command.h: Update copyright.
9488         (struct cmd_list_element): Replace definition with opaque
9489         declaration.
9490         (enum cmd_types): Document that it will eventually be moved to
9491         cli/cli-decode.h
9492         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9493         (MALLOCED_REPLACEMENT): Delete macro.
9494         * Makefile.in (cli_decode_h): Add $(command_h).
9495         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9496         * top.c: Include "cli/cli-decode.h".
9497         * completer.c: Include "cli/cli-decode.h".
9498         * maint.c: Include "cli/cli-decode.h".
9499         * cli/cli-decode.h: Include "command.h".
9500         (enum command_class): Delete.
9501         (enum cmd_types): Comment out.
9502         (enum cmd_auto_boolean): Delete.
9503         (enum var_types): Delete.
9504
9505 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9506
9507         * cli/cli-decode.c: Include "gdb_assert.h".
9508         (add_set_or_show_cmd): New static function.
9509         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9510         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9511         all fields, such as func, from the set command.
9512
9513 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9514
9515         * MAINTAINERS (sh-elf): Change warning flag to -w.
9516
9517 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9518
9519         * defs.h (error): Add printf format attribute.
9520         * thread-db.c (thread_from_lwp): Fix error format string.
9521         * stack.c (parse_frame_specification): Ditto.
9522         * cli/cli-decode.c (undef_cmd_error): Ditto.
9523         * scm-lang.c (scm_lookup_name): Ditto.
9524         * tracepoint.c (trace_error): Ditto.
9525         * remote-utils.c (usage): Ditto.
9526         * remote.c (compare_sections_command): Ditto.
9527         Fix PR gdb/328.
9528
9529 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9530
9531         * gdbtypes.c (append_composite_type_field): New function.
9532         (init_composite_type): New function.
9533         * gdbtypes.h (append_composite_type_field): Declare.
9534         (init_composite_type): Ditto.
9535
9536 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9537
9538         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9539         function.
9540         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9541         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9542         structure returning convention for SYSV ABI case, but not
9543         for GNU/Linux, FreeBSD, or NetBSD.
9544
9545 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9546
9547         * symtab.h (lookup_block_symbol): Add mangled_name argument
9548         to prototype.
9549
9550         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9551         with new mangled_name argument.
9552         * linespec.c (decode_line_1): Likewise.
9553         * valops (value_of_this): Likewise.
9554         * symtab.c (lookup_transparent_type): Likewise.
9555         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9556         (lookup_symbol): If we are given a mangled name, pass it down
9557         to lookup_symbol_aux.
9558         (lookup_block_symbol): If we are given a mangled name to check
9559         against, only return symbols which match it.
9560
9561 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9562
9563         * win32-nat.c (child_create_inferior): Check for proper shell to use
9564         here, in case the user changes it on the fly.
9565         (_initialize_inftarg): Remove shell path considerations.
9566
9567 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9568
9569         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9570         for gdbarch_max_register_raw_size and max_register_virtual_size.
9571         Adjust copyright year.
9572
9573 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9574
9575          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9576          in a function to cover the entire beginning of the function
9577          as well if it does not already.
9578
9579 2002-03-21  Tom Rix  <trix@redhat.com>
9580
9581         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9582         (rs6000_ptrace64): Renamed from ptrace64.
9583
9584 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9585
9586         * gdbserver/remote-utils.c (remote_open): Don't call
9587         getprotobyname, we're all using TCP here so just use
9588         IPPROTO_TCP.
9589         * gdbserver/gdbreplay.c (remote_open): Ditto.
9590
9591 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9592
9593         * regcache.c (_initialize_regcache): No need to call
9594         build_regcache() at this time; it gets called whenever
9595         the gdbarch changes.
9596
9597 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9598
9599         * sparc-nat.c:  Include sys/param.h where possible.
9600
9601 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9602
9603         Fix PR gdb/422.
9604         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9605         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9606         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9607         complex types.
9608         * stabsread.c (rs6000_builtin_type): Likewise.
9609         (read_sun_floating_type): Likewise.
9610
9611 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9612
9613         * stabsread.c (read_member_functions): Remove skip code for duplicate
9614         constructor/destructor methods.  Use standard parsing for these
9615         methods and just do not chain them to the list of methods after
9616         parsing.
9617
9618 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9619
9620         * coffread.c: Remove redundant static declarations.  Replace
9621         occurrences of `PTR' with `void *'.
9622         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9623         * top.h (quit_cover): Likewise.
9624         * defs.h (catch_errors): Likewise.
9625
9626 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9627
9628         * defs.h (XMALLOC): Define.
9629         * gdb-events.sh (XMALLOC): Delete macro.
9630         * gdb-events.c, gdb-events.h: Regenerate.
9631         * gdbarch.sh (XMALLOC): Delete macro.
9632         * gdbarch.c: Regenerate.
9633         * serial.c (XMALLOC): Delete macro.
9634         * ui-file.c (XMALLOC): Ditto.
9635         * ser-unix.h (XMALLOC): Ditto.
9636         * sh-tdep.c (XMALLOC): Ditto.
9637         * ui-out.c (XMALLOC): Ditto.
9638         * utils.c (XMALLOC): Ditto.
9639         * i386-tdep.c (XMALLOC): Ditto.
9640         * gdb-events.c (XMALLOC): Ditto.
9641         * d10v-tdep.c (XMALLOC): Ditto.
9642         * cli-out.c (XMALLOC): Ditto.
9643
9644         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9645         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9646         * ui-file.c, ui-out.c: Ditto.
9647
9648 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9649
9650         * command.h (struct cmd_list_element): Add field context.
9651         (set_cmd_context, get_cmd_context): Declare.
9652         * cli/cli-decode.h: Ditto.
9653         * cli/cli-decode.c (get_cmd_context): New function.
9654         (set_cmd_context): New function.
9655         (add_cmd): Initialize context.
9656         Part of fixing PR gdb/145 and PR gdb/146.
9657
9658 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9659
9660         * cli/cli-decode.c (cmd_type): New function.
9661         * command.h (cmd_type): Declare.
9662         * infrun.c (set_schedlock_func): Call function cmd_type.
9663         * kod.c (kod_set_os): Call cmd_type.
9664         * cris-tdep.c (cris_version_update): Use function cmd_type.
9665         (cris_mode_update, cris_abi_update): Ditto.
9666
9667         * command.h: (execute_cmd_post_hook): Declare.
9668         (execute_cmd_pre_hook): Declare.
9669         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9670         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9671         functions. Execute pre/post hook while ensuring that afterwords
9672         hook_in is cleared.
9673         * top.c (execute_command): Use execute_cmd_post_hook, and
9674         execute_cmd_pre_hook to execute pre/post commands.
9675         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9676         hook_stop_stub.
9677         (hook_stop_stub): Call execute_cmd_pre_hook.
9678
9679 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9680
9681         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9682         set'' and this leads to a core dump.  Move xstrdup of
9683         operating_system to after check that it is not NULL.
9684
9685 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9686
9687         * kod.c (kod_set_os): Remove unnecessary check that
9688         ``command->type'' is set_cmd.
9689
9690         * valprint.c (set_input_radix): Use input_radix.
9691         (set_output_radix): Use output_radix.
9692         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9693         isn't reverted.
9694
9695 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9696
9697         * value.h (struct value): Delete field ``substring_addr''.  Change
9698         aligner fields to force_doublest_align, force_longest_align,
9699         force_core_addr_align and force_pointer_aligh.
9700
9701         * value.h (struct value): Fix typo in above change.
9702
9703 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9704
9705         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9706         to fix internal_error from ``maintenance print architecture''.
9707
9708 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9709
9710         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9711         for gcc versions after gcc-2.8.1.
9712
9713 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9714
9715         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9716         for method resolution.  Restore adjustment of ``this'' pointer after
9717         calling value_struct_elt, which was accidentally removed during the
9718         HP merge.
9719
9720 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9721
9722         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9723         value_of_register.
9724         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9725         get_saved_register.
9726         * value.h (value_of_register): Update.
9727
9728 2002-03-14  Richard Henderson  <rth@redhat.com>
9729
9730         * configure.in: Detect declaration for canonicalize_file_name.
9731         * utils.c (canonicalize_file_name): Declare, if needed.
9732         (gdb_realpath): Prefer realpath if available and usable.
9733         * config.in, configure: Rebuild.
9734
9735 2002-03-14  Richard Henderson  <rth@redhat.com>
9736
9737         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9738         a constant array bound.
9739
9740         * MAINTAINERS: Add myself to write-after-approval.
9741
9742 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9743
9744         * symfile.c (syms_from_objfile): Return immediately if no syms.
9745         (symbol_file_add): Return immediately if no syms.
9746         (find_sym_fns): Return immediately if no syms.
9747
9748 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9749
9750         * gdbserver/remote-util.c (remote_open): Print remote-side's
9751         IP address when remote debugging over the network.
9752
9753 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9754
9755         * config/sparc/fbsd.mh: Fix copyright.
9756         * config/sparc/fbsd.mt: Likewise.
9757
9758 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9759
9760         * MAINTAINERS: Fix typo in name of gdb warnings option.
9761         (x86-64): Fix formating so that this can be parsed by awk.
9762
9763 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9764
9765         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9766         * defs.h: Include "gdb/signals.h".
9767         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9768
9769 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9770
9771         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9772         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9773         from x86-64-tdep.h
9774
9775 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9776             Don Howard <dhoward@redhat.com>
9777
9778         * mips-tdep.c (ST0_FR): Define.
9779         (mips2_fp_compat): New function, temporarily disabled.
9780         (mips_read_fp_register_single): New function.
9781         (mips_read_fp_register_double): New function.
9782         (mips_print_register): Use them.
9783         (do_fp_register_row): Likewise.
9784
9785 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9786
9787         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9788         approval''.
9789
9790 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9791
9792         * stabsread.c (read_member_functions): Fix is_stub test for
9793         static member functions, improve comment.
9794
9795 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9796
9797         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9798         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9799         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9800         commands that set boolean values.
9801         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9802         (arm_rdi_resume): Always initialize PC.
9803         (arm_rdi_open): Don't use rslt as a boolean.
9804         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9805         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9806         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9807         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9808
9809 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9810
9811         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9812         * configure: Rebuilt.
9813
9814 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9815
9816         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9817         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9818
9819 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9820
9821         * cli/cli-decode.c (set_cmd_completer): New function.
9822         * command.h (set_cmd_completer): Declare.
9823         * cli/cli-decode.h (set_cmd_completer): Ditto.
9824
9825         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9826         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9827         * win32-nat.c (_initialize_inftarg): Ditto.
9828         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9829         * proc-api.c (_initialize_proc_api): Ditto.
9830         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9831         * source.c (_initialize_source): Ditto.
9832         * exec.c (_initialize_exec): Ditto.
9833         * solib.c (_initialize_solib): Ditto.
9834         * top.c (init_main): Ditto.
9835         * tracepoint.c (_initialize_tracepoint): Ditto.
9836         * symfile.c (_initialize_symfile): Ditto.
9837         * printcmd.c (_initialize_printcmd): Ditto.
9838         * infcmd.c (_initialize_infcmd): Ditto.
9839         * corefile.c (_initialize_core): Ditto.
9840
9841 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9842
9843         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9844
9845 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9846
9847         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9848
9849 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9850
9851         * NEWS: Update headings, 5.2 has branched.
9852
9853 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9854
9855         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9856         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9857         (register_addr, REGISTER_RAW_SIZE): Likewise.
9858         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9859         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9860
9861 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9862
9863         * MAINTAINERS (x86-64): Add myself.
9864         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9865         changed value_ptr -> struct value *
9866
9867 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9868
9869         * configure.host (sparc64-*-freebsd): Add.
9870         * configure.tgt: Likewise.
9871         * config/sparc/fbsd.mh: New file.
9872         * config/sparc/fbsd.mt: Likewise.
9873         * config/sparc/nm-fbsd.h: Likewise.
9874         * config/sparc/tm-fbsd.h: Likewise.
9875
9876 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9877
9878         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9879         regformats/reg-s390x.dat.
9880
9881 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9882
9883         * utils.c: Add FIXME explaining true/false problem.
9884
9885 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9886
9887         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9888
9889 2002-02-28  Michael Chastain  <mec@shout.net>
9890
9891         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9892
9893 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9894
9895         * gdbserver/linux-s390-low.c: New file.
9896         * regformats/reg-s390.dat: New file.
9897         * regformats/reg-s390x.dat: New file.
9898         * gdbserver/configure.srv: Add S/390.
9899         * gdbserver/Makefile.in: Add S/390.
9900         * configure.tgt: Enable gdbserver for S/390.
9901
9902 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9903
9904         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9905         first line of the doc string for "info dos", except at the end of
9906         the sentence, since the short help stops at the first period.
9907
9908 2002-02-28  Jason Merrill  <jason@redhat.com>
9909
9910         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9911
9912 2002-02-27  Fred Fish  <fnf@redhat.com>
9913
9914         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9915         comment (dumy -> dummy).
9916
9917 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9918
9919         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9920
9921 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9922
9923       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9924
9925 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9926
9927         * gdbserver/acconfig.h: New file.
9928         * gdbserver/i387-fp.c: New file.
9929         * gdbserver/i387-fp.h: New file.
9930         * gdbserver/linux-x86-64.c: New file.
9931         * regformats/reg-x86-64.dat: New file.
9932         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9933         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9934         * gdbserver/configure.in: Add support for regsets.
9935         * gdbserver/config.in: Regenerate.
9936         * gdbserver/configure: Regenerate.
9937         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
9938         * gdbserver/linux-low.h: New file.
9939         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
9940         for regsets.
9941         * gdbserver/linux-arm-low.c: Include "linux-low.h".
9942         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9943         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9944         * gdbserver/linux-mips-low.c: Include "linux-low.h".
9945         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9946         * gdbserver/linux-sh-low.c: Include "linux-low.h".
9947         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
9948         "i387-fp.h".  Add PTRACE_GETREGS and friends.
9949         * gdbserver/regcache.c (supply_register): New function.
9950         (supply_register_by_name): New function.
9951         (collect_register): New function.
9952         (collect_register_by_name): New function.
9953
9954 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9955
9956         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9957         (config.status): Add configure.srv dependency.
9958         (server_h): Add config.h dependency.
9959
9960 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9961
9962         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9963         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9964         * gdbserver/configure.srv: Change i386-*-linux* to use
9965         reg-i386-linux.o.
9966
9967 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9968
9969         * x86-64-tdep.c: Re-indent.  Update copyright date.
9970
9971 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9972
9973         From Michal Ludvig <mludvig@suse.cz>:
9974         * x86-64-tdep.c (value.h): Delete.
9975         (gdb_assert.h): Include.
9976         (x86_64_register_convert_to_virtual,
9977         x86_64_register_convert_to_raw ): Add check which lets only
9978         floating-point values to be converted.
9979         (value_push): Delete.
9980         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9981         (i386_gdbarch_init): Number of register_bytes fixed.
9982
9983 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9984
9985         * MAINTAINERS: Add x86-64 target.
9986
9987 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9988
9989         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9990         * osfsolib.c (solib_map_sections): Ditto.
9991         * irix5-nat.c (solib_map_sections): Ditto.
9992         * corelow.c (gdb_check_format): Ditto.
9993         * symfile.c (symfile_bfd_open): Ditto.
9994         * solib.c (solib_map_sections): Ditto.
9995         Fix PR gdb/354.
9996
9997 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9998
9999         * remote.c (_initialize_remote): By default, disable ``e'' and
10000         ``E'' step out-of-range packets.
10001
10002 2002-02-26  Andreas Schwab  <schwab@suse.de>
10003
10004         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10005         m68k_linux_frame_saved_pc.
10006         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10007         in_sigtramp.
10008         (SIGCONTEXT_PC_OFFSET): Remove.
10009         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10010         m68k_linux_sigtramp_saved_pc): New functions.
10011         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10012         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10013         (UCONTEXT_PC_OFFSET): Define.
10014         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10015         non-RT and RT signal trampolines.
10016
10017 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
10018
10019         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10020         (TARGET_NBPG, STACK_END_ADDR): Delete
10021         (VARIABLES_INSIDE_BLOCK): Delete.
10022
10023 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
10024
10025         * utils.c (perror_with_name): Make string parameter constant.
10026         (print_sys_errmsg): Ditto.
10027         (query): Ditto.
10028         * defs.h (perror_with_name): Update.
10029         (print_sys_errmsg): Update.
10030         (query): Update.
10031
10032 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
10033
10034         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10035         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10036
10037 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10038
10039         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10040         if it already matches the current architecture from the exec file.
10041         Include arch-utils.h for gdbarch_info_init prototype.
10042         * Makefile.in (rs6000-nat.o): Update dependencies.
10043
10044 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
10045
10046         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10047          list of exported variables.
10048
10049 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
10050
10051         * gdbserver/configure.srv: New file.
10052         * gdbserver/configure.in: Use configure.srv instead
10053         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
10054         from it.
10055         * gdbserver/configure: Regenerated.
10056         * gdbserver/terminal.h: New file.
10057         * gdbserver/Makefile.in: Update for configure changes.  Remove
10058         more unneeded include paths.
10059
10060 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10061
10062         From wiz at danbala:
10063         * config/sparc/tm-sp64.h: Fix grammar and typos.
10064         Fix PR gdb/287.
10065
10066 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10067
10068         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10069         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
10070         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10071         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10072         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10073         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10074         * s390-tdep.c: Ditto.
10075         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10076         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10077         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10078         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10079         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10080         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10081         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10082         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10083         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10084         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10085         Fix PR gdb/378.
10086
10087 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10088
10089         * lin-thread.c: Delete file.
10090         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10091         to gdb_proc_service.h.
10092         * configure: Re-generate.
10093
10094         * ocd.c (ocd_open): Do not try to open the "ocd" device.
10095         * serial.c (serial_open): Delete check for "ocd".
10096         Fix PR gdb/349.
10097
10098         * Makefile.in (linux-thread.o): Delete target.
10099         * linux-thread.c: Delete file.
10100
10101         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
10102         renamed SH files to be consistent.
10103
10104         * symtab.c (sort_search_symbols): Use xfree.
10105
10106 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10107
10108         * arm-linux-tdep.c (arm_linux_init_abi): Register
10109         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10110         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10111         definition with undef, since we don't want the sysvr4 definition.
10112         (SKIP_TRAMPOLINE_CODE): Likewise.
10113
10114 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10115
10116         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10117
10118         * configure.in: (AC_CHECK_FUNCS) Added test for
10119         canonicalize_file_name Regenerated.
10120         * config.in, configure: Regenerated.
10121         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10122         defined use canonicalize_file_name.
10123
10124 2002-02-23  Michael Chastain  <mec@shout.net>
10125
10126         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10127
10128 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10129
10130         * README: Remove references to cygnus.com.
10131         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10132         dot com'' form.  Remove references to cygnus.com and sourceware.
10133
10134 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10135
10136         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10137         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10138         1003.1-2001 no longer allows "head -1".
10139         * gdb/Makefile.in (version.c): Likewise.
10140         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10141         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10142         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
10143
10144 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10145
10146         * cli/cli-decode.c (cmd_cfunc_eq): New function.
10147         * command.h (cmd_cfunc_eq): Declare.
10148         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10149
10150         * cli/cli-cmds.h (is_complete_command): Change parameter to a
10151         ``struct cmd_list_element *''.
10152         * cli/cli-cmds.c (is_complete_command): Update.  Use
10153         cmd_cfunc_eq.
10154         * top.c (execute_command): Pass the command to
10155         is_complete_command.
10156         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10157
10158 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10159
10160         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10161         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10162         architecture defines.
10163         * s390-tdep.c (s390_gdbarch_init): Likewise.
10164
10165 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10166
10167         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10168         (arm_linux_push_arguments): Likewise.
10169         (arm_linux_init_abi): Register them.  Also register linux-specific
10170         call_dummy_words.
10171         (find_minsym_and_objfile): Use strcmp, not STREQ.
10172         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10173         (arm_linux_call_dummy_words): Delete declaration.
10174         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10175         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10176         declarations.
10177         (LOWEST_PC): Delete.
10178
10179 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10180
10181         * maint.c (print_section_info): Do not prepend `0x' to filepos
10182         output, it will be handled by local_hex_string_custom.
10183
10184 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10185
10186         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10187         (store_newfpe_double, store_newfpe_extended, store_fpregister)
10188         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10189
10190 2002-02-22  Jim Blandy  <jimb@redhat.com>
10191
10192         Indicate that the bcache functions don't change the strings
10193         they're passed.
10194         * bcache.h (bcache, hash): Add `const' keywords to declarations.
10195         * bcache.c (bcache, hash): Add `const' keywords to definitions.
10196
10197 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
10198
10199         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10200
10201 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10202
10203         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10204         find the complete path to a loaded DLL.
10205
10206 2002-02-21  Fred Fish  <fnf@redhat.com>
10207
10208         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10209         that marks the end of the range of a function, enter a line number
10210         entry that has a line number of zero and a PC offset that matches
10211         the end of the function.  This starts a range of PC's for which no
10212         line number information is known.
10213         * symtab.c (find_pc_sect_line): If our best fit is in a range of
10214         PC's for which no line number info is found (line number is zero)
10215         then we didn't find any valid line information.
10216         * symtab.h: Document use of zero line number entry.
10217
10218 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
10219
10220         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10221         (have_ptrace_getvrregs): Define for run time checks.
10222         (gdb_vrregset_t): New type for Altivec register handling.
10223         (fetch_register, store_register): Fetch/store altivec register
10224         when needed.
10225         (fetch_altivec_register, store_altivec_register): New functions.
10226         (supply_vrregset, fill_vrregset): New functions.
10227         (fetch_altivec_registers, store_altivec_registers): New functions.
10228         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10229         registers as well.
10230
10231 2002-02-21  Jiri Smid  <smid@suse.cz>
10232
10233         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10234
10235 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10236
10237         * Makefile.in (armnbsd-nat.o): Update dependencies.
10238         * armnbsd-nat.c (supply_gregset): New function.  Common code to
10239         supply the integer register set.
10240         (supply_fparegset): New function.  Similar for FPA registers.
10241         (fetch_regs, fetch_fp_regs): Use them.
10242         (fetch_core_registers): Likewise.
10243         (fetch_elfcore_registers): New function.
10244         (arm_netbsd_elfcore_fns): New core-file type specification.
10245         (_initialize_arm_netbsd_nat): Register it.
10246
10247 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10248
10249         * armnbsd-nat.c: Include gdbcore.h.
10250         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10251         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10252         'void' to declaration, to shut up ARI.
10253         (fetch_core_registers): Make static.  Rewrite using supply_register.
10254         (arm_netbsd_core_fns): New core-file type specification.
10255         (_initialize_arm_netbsd_nat): New function.
10256
10257 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10258
10259         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10260         value.
10261
10262 2002-02-20  Christopher Faylor  <cgf@redhat.com>
10263
10264         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10265         fails.
10266
10267 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10268
10269         * jv-exp.y (parse_number): Change type of implicit longs
10270         to builtin_type_uint64.
10271
10272 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10273
10274         * gdbserver/linux-low.c (mywait): Change argument to waitpid
10275         to be an integer instead of a `union wait'.
10276
10277 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10278
10279         * mips-linux-nat.c: Call the operating system GNU/Linux.
10280         * mips-linux-tdep.c: Likewise.
10281         * mips-tdep.c: Likewise.
10282
10283 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10284
10285         Fix PR gdb/265.
10286         * jv-exp.y (parse_number): Handle 64-bit integers.
10287
10288 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10289
10290         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
10291         AC_STDC_HEADERS to AC_HEADER_STDC.
10292         * gdbserver/configure: Regenerated.
10293
10294 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10295
10296         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10297         is defined.
10298         * sparc-tdep.c (get_longjmp_target): Likewise.
10299
10300 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10301
10302         * News: Add news about ARM and Multi-arch.  Mention the new target
10303         arm*-*-netbsd*.
10304
10305 2002-02-19  Jim Blandy  <jimb@redhat.com>
10306
10307         * stabsread.c (error_type_complaint): Improve error message.
10308
10309 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
10310
10311         * gdbserver/README: Update documentation.
10312         * gdbserver/configure.in: Update configury to match documentation.
10313         * gdbserver/Makefile.in: Likewise.
10314         * gdbserver/configure: Regenerated.
10315         * gdbserver/aclocal.m4: New file, generated by aclocal.
10316         * gdbserver/config.in: New file, generated by autoheader.
10317
10318 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10319
10320         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10321         armnbsd-nat.c.
10322
10323 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10324
10325         * arm-tdep.h (enum arm_float_model): New enum.
10326         (struct gdbarch_tdep): Add fp_model.
10327         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
10328         up floating-point conversions until we know the floating-point model
10329         in use by the inferior.  Don't complain about being unable to
10330         determine the ABI of the inferior when we don't have one.
10331         (arm_extract_return_value): Support different floating-point models.
10332         (arm_store_return_value): Likewise.
10333         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10334         ARM_FLOAT_SOFT.
10335         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10336
10337 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10338
10339         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10340         of ``current_gdbarch''.
10341
10342 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10343
10344         * armnbsd-nat.c : ANSIfy all function declarations.
10345         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10346         (fetch_inferior_registers): Re-implement in terms of above.
10347         (store_register, store_regs, store_fp_register, store_fp_regs): New.
10348         (store_inferior_registers): Re-implement in terms of above.
10349
10350 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10351
10352         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10353         kernel.
10354         * arm-linux-tdep.c: Likewise.
10355         * config/arm/tm-linux.h: Likewise.
10356
10357 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10358
10359         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10360         * config/arm/nbsd.mt (TM_FILE): Delete.
10361         * config/arm/tm-nbsd.h: Delete.
10362
10363 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10364
10365         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10366         Initialize CALL_DUMMY_LENGTH.
10367
10368 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10369
10370         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10371         function.
10372         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10373         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10374         defines one thing and that is incorrect for this port.
10375         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10376
10377 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10378
10379         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10380
10381 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10382
10383         * win32-nat.c (display_selector): New function. Displays information
10384         about the information returned by GetThreadSelectorEntry API function.
10385         (display_selectors): New function. Displays the infomation of
10386         the selector given as argument, or of CS, DS ans FS selectors
10387         if no argument is given.
10388         ( _initialize_inftarg): Add "w32" as info prefix command.
10389         Add "info w32 selector" as command calling display_selectors.
10390
10391 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
10392
10393         * i386-tdep.c (get_longjmp_target): Fix compilation failure
10394         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10395         if not defined.
10396
10397 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10398
10399         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10400
10401 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10402
10403         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10404         (arm_fix_call_dummy): Call it.
10405         (arm_call_dummy_breakpoint_offset): Delete.
10406         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10407         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10408
10409 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
10410
10411         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10412         Default to func_frame_chain_valid.
10413         * gdbarch.h, gdbarch.c: Re-generate.
10414         * frame.h (FRAME_CHAIN_VALID): Delete definition.
10415
10416 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
10417
10418         * ppc-linux-nat.c: Update copyright.
10419         (fetch_register, store_register): Add tid parameter, don't compute
10420         tid here.
10421         (fetch_ppc_registers, store_ppc_registers): Add tid
10422         parameter. Pass it along to callees.
10423         (fetch_inferior_registers, store_inferior_registers): Compute tid
10424         here, and pass it to calleed functions.
10425         (fill_gregset, supply_fpregset): Clean up formatting.
10426
10427 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10428
10429         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10430         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10431
10432 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10433
10434         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10435         * gdbarch.c gdbarch.h: Regenerate.
10436         * breakpoint.c (create_longjmp_breakpoint): Always compile this
10437         function.
10438         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10439         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10440         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10441
10442         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10443         * arm-tdep.c (arm_get_longjmp_target): New function.
10444         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
10445         this to a positive value register arm_get_longjmp_target as the
10446         longjmp handler.
10447         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10448         (arm_linux_init_abi): Set up longjmp description in tdep.
10449         * armnbsd-nat.c (get_longjmp_target): Delete.
10450         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10451         description in tdep.
10452         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10453         (get_longjmp_target): Delete declaration.
10454         (GET_LONGJMP_TARGET): Delete.
10455         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10456         (GET_LONGJMP_TARGET): Delete.
10457
10458 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10459
10460         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10461         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10462         of ``current_gdbarch''.
10463
10464 2002-02-17  Tom Tromey  <tromey@redhat.com>
10465
10466         * cli/cli-cmds.c (compare_strings): New function.
10467         (complete_command): Only print each unique item once.
10468         * completer.h (complete_line): Declare.
10469         * completer.c (complete_line): New function.
10470         (line_completion_function): Use it.
10471
10472 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10473
10474         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10475         * gdbarch.h, gdbarch.c: Re-generate.
10476
10477 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10478
10479         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10480
10481 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10482
10483         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10484         * valops.c (value_arg_coerce): Don't take the address of a reference
10485         to convert an argument to a reference.
10486
10487 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10488
10489         * win32-nat.c (get_image_name): New function.
10490         (handle_load_dll): Use get_image_name function.
10491         (get_child_debug_event): Avoid registering debug events until possibly
10492         execed process is started.
10493         (child_create_inferior): Allow invocation via shell so that command
10494         line redirection, etc.  works ok.
10495         (_initialize_inftarg): Add new command: "set shell" to control whether
10496         a shell is used to start a process.
10497
10498 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10499
10500         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10501         instead of find_register_by_number.
10502         (cannot_store_register): Likewise.
10503
10504 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10505
10506         * dwarf2read.c: Replace fprintf (stderr, ...) by
10507         fprintf_unfiltered (gdb_stderr, ...).
10508
10509 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10510
10511         * gdbserver/gdbserver.1: Document --attach.
10512
10513 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10514
10515         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10516         descriptions.
10517         * arm-tdep.c (arm_default_arm_le_breakpoint)
10518         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10519         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10520         traditional breakpoint defines.
10521         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10522         (arm_gdbarch_init): Initialize new breakpoint variables.
10523         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10524         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10525         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10526         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10527         code out to ...
10528         (arm_netbsd_init_abi_common): ... here; new function.
10529         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10530         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10531         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10532         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10533
10534 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10535
10536         * arm-tdep.h (enum arm_abi): New enum.
10537         (struct gdbarch_tdep): New structure.
10538         (LOWEST_PC): Provide a default.
10539         (arm_gdbarch_register_os_abi): Declare new function.
10540         * arm-tdep.c (arm_abi_names): New array.
10541         (process_note_abi_tag_sections): New function.
10542         (get_elfosabi): New function.
10543         (arm_gdbarch_register_os_abi): New function.
10544         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10545         support for that ABI has been built in, then call the appropriate
10546         configuration routine.  Use gdbarch_num_regs() to get the number
10547         of registers.
10548         (arm_dump_tdep): New function.
10549         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10550         place-holder functions.
10551         (_initialize_arm_tdep): Register them.
10552         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10553
10554         * armnbsd-tdep.c: New file.
10555         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10556         * config/arm/nbsd.mt (TDEPFILES): Add it.
10557         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10558
10559         * armnbsd-nat.c: Include regcache.h.
10560         * Makefile.in (armnbsd-nat.o): Update dependency list.
10561
10562         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10563
10564 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10565
10566         * gdbserver/Makefile.in: Fix typos in target rules.
10567
10568 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10569
10570         Fix part of PR gdb/267.
10571         * linespec.c (find_methods): Handle constructors specially for now.
10572
10573 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10574
10575         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10576         handling.
10577         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10578         standard_coerce_float_to_double().
10579
10580 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10581
10582         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10583         GDBINIT_FILENAME.
10584
10585 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10586
10587         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10588         find_variant_by_name, because it confuses the multiarch
10589         framework. Return NULL if there isn't an architecture with the
10590         user supplied name, instead of forcing a different one without
10591         recording the change with the multiarch machinery.
10592         (find_variant_by_name): Delete.
10593
10594 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10595
10596         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10597         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10598
10599 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10600
10601         * stack.c (print_frame_info_base): When calling
10602         print_frame_info_listing_hook, set current_source_symtab.
10603
10604 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10605
10606         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10607         and remove unused $(INCLUDE_DIR).
10608         Add regcache.c to OBS.
10609         Add generated register protocol files to clean target.
10610         Update dependencies for new objects, obsolete old target code.
10611
10612         * gdbserver/linux-low.c: Remove all platform-specific code to
10613         new files.  Remove various dead code.  Update to use regcache
10614         functionality.
10615         * gdbserver/remote-utils.c (fromhex): Add return statement
10616         to quiet warning.
10617         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10618         constant.
10619         (input_interrupt): Add integer parameter to match prototype
10620         of a signal handler.
10621         (outreg): Use register_data ().
10622         (prepare_resume_reply): Use gdbserver_expedite_regs.
10623         * gdbserver/server.c (main): Dynamically allocate own_buf because
10624         PBUFSIZ is no longer constant.  Use registers_to_string () and
10625         registers_from_string ().
10626         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10627         for error (), fatal (), and warning ().  Update definition of
10628         PBUFSIZ to use regcache functionality.  Add include guard.
10629         * gdbserver/utils.c (fatal): Add missing ``const''.
10630         (warning): New function.
10631
10632         * regformats/regdat.sh: Include "regcache.h" in generated files.
10633         Provide init_registers () function.
10634         * regformats/regdef.h: Add prototype for set_register_cache ().
10635         Add include guard.
10636
10637         * gdbserver/linux-arm-low.c: New file.
10638         * gdbserver/linux-i386-low.c: New file.
10639         * gdbserver/linux-ia64-low.c: New file.
10640         * gdbserver/linux-m68k-low.c: New file.
10641         * gdbserver/linux-mips-low.c: New file.
10642         * gdbserver/linux-ppc-low.c: New file.
10643         * gdbserver/linux-sh-low.c: New file.
10644
10645         * gdbserver/regcache.c: New file.
10646         * gdbserver/regcache.h: New file.
10647
10648         * gdbserver/low-linux.c: Removed obsolete file.
10649
10650 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10651
10652         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10653         * config/i386/linux.mt: Likewise.
10654         * config/ia64/linux.mt: Likewise.
10655         * config/m68k/linux.mh: Likewise.
10656         * config/powerpc/linux.mh: Likewise.
10657         * config/mips/linux.mt: Likewise.
10658
10659         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10660
10661         * config/i386/i386lynx.mh: Mark gdbserver variables
10662         as (currently) obsolete for this target.
10663         * config/i386/nbsd.mt: Likewise.
10664         * config/i386/nbsdelf.mt: Likewise.
10665         * config/m32r/m32r.mt: Likewise.
10666         * config/m68k/m68klynx.mh: Likewise.
10667         * config/m68k/nbsd.mt: Likewise.
10668         * config/m68k/sun3os4.mh: Likewise.
10669         * config/mips/vr5000.mt: Likewise.
10670         * config/ns32k/nbsd.mt: Likewise.
10671         * config/pa/hppabsd.mh: Likewise.
10672         * config/pa/hppaosf.mh: Likewise.
10673         * config/powerpc/nbsd.mt: Likewise.
10674         * config/rs6000/rs6000lynx.mh: Likewise.
10675         * config/s390/s390.mt: Likewise.
10676         * config/s390/s390x.mt: Likewise.
10677         * config/sparc/sparclynx.mh: Likewise.
10678         * config/sparc/sun4os4.mh: Likewise.
10679         * config/i386/x86-64linux.mt: Likewise.
10680         * config/sparc/linux.mh: Likewise.
10681
10682 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10683
10684         * configure.tgt: Configure gdbserver only for known working
10685         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10686         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10687         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10688         * configure: Regenerated.
10689
10690 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10691
10692         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10693
10694         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10695         (default_gcore_mach): Just return 0, work around a problem in bfd.
10696         (default_gcore_target): OK to return NULL if exec_bfd is null.
10697         (make_mem_sec): Use a cast, avoid a warning.
10698
10699         * procfs.c (find_memory_regions_callback): Use a cast instead of
10700         calling host_pointer_to_address (which complains if
10701         sizeof (host pointer) != sizeof (target pointer)).
10702         (procfs_make_note_section): Avoid overflow in psargs string.
10703
10704         * procfs.c (procfs_make_note_section): Make the default
10705         implementation return an error.
10706
10707 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10708
10709         * procfs.c (procfs_make_note_section): Provide a default definition
10710         (for alpha-dec-osf4.0f). Fix typos.
10711
10712 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10713
10714         * linux-proc.c: Add include of regcache.h.
10715         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10716
10717 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10718
10719         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10720         * memattr.c (create_mem_region): Disallow useless empty region.
10721         Regions are half-open intervals, so allow [A..B) [B..C) as
10722         non-overlapping.
10723
10724 2002-02-13  Michael Chastain <mec@shout.net>
10725
10726         * defs.h: Kill CONST_PTR.
10727         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10728         * c-lang.c (c_builtin_types): Likewise.
10729         * ch-lang.c (ch_builtin_types): Likewise.
10730         * f-lang.c (f_builtin_types): Likewise.
10731         * language.c (unknown_builtin_types): Likewise.
10732         * m2-lang.c (m2_builtin_types): Likewise.
10733         * p-lang.c (pascal_builtin_types): Likewise.
10734         * scm-lang.c (c_builtin_types): Likewise.
10735
10736 2002-02-13  Keith Seitz  <keiths@redhat.com>
10737
10738         * arm-tdep.h (arm_get_next_pc): Add declaration.
10739
10740 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10741
10742         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10743         with other related struct-returning functions.
10744         (arm_extract_struct_value_address): New function.
10745         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10746         initialize float_format, double_format and long_double_format as
10747         appropriate to the endianness of the target.
10748         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10749         (arm_use_struct_convention): Delete declaration.
10750         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10751
10752 2002-02-13  Keith Seitz  <keiths@redhat.com>
10753
10754         * defs.h (core_addr_to_string_nz): New function.
10755
10756 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10757
10758         Apply missing bits of 2002-01-15 patch.
10759         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10760         (fill_fpregset): Use i387_fill_fsave.
10761
10762 2002-02-12  Keith Seitz  <keiths@redhat.com>
10763
10764         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10765         (core_addr_to_string_nz): New function.
10766
10767 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10768
10769         * arm-linux-nat.c: Really include arm-tdep.h.
10770         * config/arm/tm-linux.h (struct type, struct value): Declare.
10771
10772 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10773
10774         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10775         (gcore section): Ifdef for Solaris and Unixware only.
10776         (procfs_do_thread_registers): Unixware needs one lwpstatus
10777         per thread (not one prstatus or pstatus).
10778         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10779         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10780         once before iterating over threads.
10781
10782 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10783
10784         * arm-tdep.h: New file.
10785         * arm-tdep.c: Include arm-tdep.h.
10786         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10787         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10788         (arm_print_float_info, arm_register_type, convert_to_extended)
10789         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10790         (arm_extract_return_value, arm_register_name): Make static.
10791         (arm_software_single_step): Similarly.  Fix types in declaration.
10792         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10793         (arm_store_return_value, arm_store_struct_return): New functions.
10794         (arm_gdbarch_init): Register the above functions.  Also register
10795         call_dummy_start_offset, sizeof_call_dummy_words,
10796         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10797         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10798         max_register_virtual_size, register_size.  Set up
10799         prologue_cache.saved_regs here, rather than ...
10800         (_initialize_arm_tdep): ... here.
10801         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10802         declarations.
10803         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10804         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10805         (arm_print_float_info, arm_register_type, convert_to_extended)
10806         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10807         (arm_extract_return_value, arm_register_name): Delete declarations.
10808         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10809         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10810         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10811         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10812         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10813         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10814         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10815         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10816         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10817         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10818         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10819         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10820         interface.
10821         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10822         * remote-rdi.c remote-rdp.c: Likewise.
10823         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10824         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10825         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10826         definition.
10827
10828         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10829         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10830         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10831         from non-ARM_ prefixed definitions.
10832         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10833         all uses of above.
10834         * remote-rdi.c remote-rdp.c: Likewise.
10835         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10836
10837 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10838
10839         * arm-tdep.c (arm_frameless_function_invocation)
10840         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10841         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10842         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10843         (arm_pop_frame, arm_get_next_pc): Make static.
10844         (arm_gdbarch_init): Register above in gdbarch structure.
10845         (arm_read_fp): Renamed from arm_target_read_fp.
10846         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10847         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10848         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10849         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10850         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10851         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10852         (arm_pc_is_thumb_dummy): Delete declarations.
10853         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10854         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10855         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10856         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10857
10858 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10859
10860         * symtab.c (compare_search_syms): New function.
10861         (sort_search_symbols): New function.
10862         (search_symbols): Sort symbols after searching rather than
10863         before.
10864
10865 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10866
10867         * NEWS: Linux -> GNU/Linux.
10868
10869 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10870
10871         * gdbarch.sh: For for level one methods, disallow a definition
10872         when partially multi-arched.  Add comments explaining rationale.
10873         * gdbarch.h: Re-generate.
10874
10875 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10876
10877         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10878         multi-arch partial.
10879
10880 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10881
10882         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10883         field.  Use diff -u.
10884         * gdbarch.c: Re-generate.
10885
10886 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10887
10888         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10889         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10890         partial.
10891
10892 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10893
10894         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10895         multi-arch partial.
10896         (PUSH_ARGUMENTS): Switch to using predefault.
10897         * gdbarch.c: Regenerate.
10898
10899 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10900
10901         * valops.c (PUSH_ARGUMENTS): Delete definition.
10902         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10903         partial.  Default to default_push_arguments.
10904         * gdbarch.h, gdbarch.c: Regenerate.
10905
10906 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10907
10908         * defs.h (throw_exception): Rename return_to_top_level.  Update
10909         comments.
10910         * utils.c (error_stream, internal_verror, quit): Ditto.
10911         * top.c (throw_exception, catcher): Ditto.
10912         * sparclet-rom.c (sparclet_load): Ditto.
10913         * remote.c (interrupt_query, minitelnet): Ditto.
10914         * remote-sds.c (interrupt_query): Ditto.
10915         * remote-mips.c (mips_error, mips_kill): Ditto.
10916         * ocd.c (interrupt_query): Ditto.
10917         * monitor.c (monitor_interrupt_query): Ditto.
10918         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10919         * target.h: Update comment.
10920
10921         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10922
10923 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10924
10925         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10926         default_double_format.
10927         * gdbarch.h, gdbarch.c: Re-generate.
10928         * findvar.c (floatformat_unknown): Delete variable definition.
10929         * doublest.h (floatformat_unknown): Delete variable declaration.
10930
10931 2002-02-09  Jim Blandy  <jimb@redhat.com>
10932
10933         * stabsread.c (read_type): Add code to parse Sun's syntax for
10934         prototyped function types.
10935
10936 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10937
10938         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10939         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10940
10941 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10942
10943         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10944         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
10945         now _initialize_xcoffsolib gets called again and overrides the
10946         commands from solib.c in a native configuration.
10947
10948 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
10949
10950         * doublest.c (store_typed_floating): Don't try to return a value.
10951         Fixes PR gdb/290.
10952
10953 2002-02-08  Jim Blandy  <jimb@redhat.com>
10954
10955         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10956         is prototyped and has no arguments, print its argument list as
10957         `(void)'.
10958
10959 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10960
10961         * MAINTAINERS (write-after-approval): Add myself.
10962         (paper-trail): I've escaped!
10963
10964 2002-02-08  Christopher Faylor  <cgf@redhat.com>
10965
10966         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10967         changes.
10968         (_initialize_check_for_gdb_ini): Ditto.
10969
10970 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
10971
10972         * win32-nat.c (cygwin_pid_to_str): Fix typo.
10973         xaprintf -> xasprintf.
10974
10975 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
10976
10977         * win32-nat.c: Remove use of printf and sprintf functions.
10978
10979 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
10980
10981         * arm-tdep.c (arm_frame_chain_valid): Make static.
10982         (arm_push_arguments): Likewise.
10983         (arm_gdbarch_init): New function.
10984         (_initialize_arm_tdep): Call it.
10985         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10986         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10987         (FRAME_CHAIN_VALID): Delete.
10988         (arm_frame_chain_valid): Delete declaration.
10989         (PUSH_ARGUMENTS): Delete.
10990         (arm_push_arguments): Delete declaration.
10991         (CALL_DUMMY_P): Delete.
10992
10993 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
10994             Corinna Vinschen  <vinschen@redhat.com>
10995
10996         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10997         on builtin float types.
10998
10999 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
11000
11001         * utils.c: Include <curses.h> before "bfd.h".
11002         * tui/tui-hooks.c: Likewise.
11003         * tui/tui.c: Likewise.
11004         * tui/tuiCommand.c: Likewise.
11005         * tui/tuiData.c: Likewise.
11006         * tui/tuiDataWin.c: Likewise.
11007         * tui/tuiDisassem.c: Likewise.
11008         * tui/tuiGeneralWin.c: Likewise.
11009         * tui/tuiIO.c: Likewise.
11010         * tui/tuiLayout.c: Likewise.
11011         * tui/tuiRegs.c: Likewise.
11012         * tui/tuiSource.c: Likewise.
11013         * tui/tuiSourceWin.c: Likewise.
11014         * tui/tuiStack.c: Likewise.
11015         * tui/tuiWin.c: Likewise.
11016
11017 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
11018
11019         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11020         to include space for pseudoregs as well. Update loops accordingly.
11021         (sh_fp_frame_init_saved_regs): Ditto.
11022         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11023
11024 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11025
11026         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11027         Add Richard Earnshaw to Arm maintainers.
11028
11029 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11030
11031         * defs.h (warning_begin): Delete declaration.
11032
11033         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11034         Delete macro.
11035
11036 2002-02-07  Michael Snyder  <msnyder@redhat.com>
11037
11038         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11039         Logic bug, remove misplaced else.
11040
11041 2002-02-07  Klee Dienes  <klee@apple.com>
11042
11043         * fork-inferior.c (fork_inferior): Add '!' to the list of
11044         characters that need to be quoted when building a string for the
11045         shell.  Quote '!' specifically with a backslash, since CSH chokes
11046         when trying to evaluate "str!str".
11047
11048 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11049
11050         * rdi-share/host.h: Only provide a typedef for bool if it is not
11051         defined.
11052
11053 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11054
11055         * breakpoint.h (enum bptype): Add new overlay event bp type.
11056         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11057
11058         * breakpoint.c (create_internal_breakpoint): New function.
11059         (internal_breakpoint_number): Moved into create_internal_breakpoint.
11060         (create_longjmp_breakpoint): Use create_internal_breakpoint.
11061         (create_thread_event_breakpoint): Ditto.
11062         (create_solib_event_breakpoint): Ditto.
11063         (create_overlay_event_breakpoint): New function.
11064         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11065         (update_breakpoints_after_exec): Delete and re-initialize
11066         overlay event breakpoints after an exec.  Add FIXME comment
11067         about longjmp breakpoint.
11068         (print_it_typical): Ignore overlay event breakpoints.
11069         (print_one_breakpoint): Ditto.
11070         (mention): Ditto.
11071         (bpstat_what): Do not stop for overlay event breakpoints.
11072         (delete_breakpoint): Don't delete overlay event breakpoints.
11073         (breakpoint_re_set_one): Delete the overlay event breakpoint.
11074         (breakpoint_re_set): Re-create overlay event breakpoint.
11075
11076         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11077         (overlay_manual_command): Disable overlay breakpoints.
11078         (overlay_off_command): Disable overlay breakpoints.
11079
11080 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11081
11082         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11083         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11084         to here from config/tm-arm.h.
11085         (coff_sym_is_thumb): Make static.
11086         (arm_elf_make_msymbol_special): New function.
11087         (arm_coff_make_msymbol_special): New function.
11088         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11089         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11090         (coff_sym_is_thumb): Delete declaration.
11091         (arm_elf_make_msymbol_special): Declare.
11092         (arm_coff_make_msymbol_special): Declare.
11093         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11094         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11095
11096 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11097
11098         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11099
11100 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11101
11102         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11103         * gdbarch.c gdbarch.h: Regenerate.
11104         * arch-utils.c (default_print_float_info): New function.
11105         * arch-utils.h (default_print_float_info): Prototype it.
11106         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11107         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11108         (PRINT_FLOAT_INFO): Document it.
11109
11110         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11111         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11112         (PRINT_FLOAT_INFO): Define.
11113
11114 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11115
11116         * win32-nat.c (_initialize_check_for_gdb_ini):
11117         Add typecast to sprintf argument to suppress a warning.
11118
11119 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
11120
11121         * win32-nat.c (last_sig): Changed type of variable to target_signal,
11122         to allow easier handling of pass state.
11123         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11124         that gives exception name and address.
11125         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11126         and set last_sig value to ourstatus->value.sig. Some missing
11127         exceptions added.
11128         (child_continue): Correctly report continue_status.
11129         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11130         TARGET_SIGNAL_0 (new default value).
11131         (child_resume): consider sig argument passed to decide if
11132         the exception should be passed to debuggee or not.
11133
11134 2002-02-05  Michael Snyder  <msnyder@redhat.com>
11135
11136         * regcache.c (fetch_register): Call target_fetch_register
11137         only if we don't call FETCH_PSEUDO_REGISTER.
11138         (store_register): Call target_store_register only if we
11139         don't call STORE_PSEUDO_REGISTER.
11140
11141 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
11142
11143         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11144         ELF_MAKE_MSYMBOL_SPECIAL.
11145         * gdbarch.c, gdbarch.h: Regenerate.
11146         * arch-utils.c (default_make_msymbol_special): New function.
11147         * arch-utils.h (default_make_msymbol_special): Export.
11148         * elfread.c (elf_symtab_read): Compile use of
11149         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11150         multiarched.
11151         * coffread.c (coff_symtab_read): Ditto, for
11152         COFF_MAKE_MSYMBOL_SPECIAL.
11153
11154 2002-02-05  Jim Blandy  <jimb@redhat.com>
11155
11156         * solib-svr4.c (svr4_truncate_ptr): New function.
11157         (svr4_relocate_section_addresses): Do the address arithmetic with
11158         the appropriate truncation for target addresses, even when
11159         CORE_ADDR is larger than a target address.
11160
11161 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11162
11163         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11164         to (int *).
11165
11166 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11167
11168         * gdbserver/linux-low.c (kill_inferior): Remove commented out
11169         code.
11170
11171 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11172
11173         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11174
11175 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11176
11177         * gdbserver/linux-low.c: Remove unused include files.
11178
11179 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11180
11181         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11182         (read_inferior_memory): Use it.
11183         (write_inferior_memory): Likewise.
11184
11185 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11186
11187         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11188         grubbing through sys_errlist.
11189
11190 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11191
11192         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11193
11194 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11195         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11196
11197 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
11198
11199         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11200         (do_sfunc, set_cmd_sfunc): New functions.
11201
11202         * command.h (struct cmd_list_element): Add field func.
11203         * cli/cli-decode.h (struct cmd_list_element): Ditto.
11204         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11205         * cli/cli-decode.h: Ditto.
11206
11207         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11208         (help_all, help_cmd_list): Ditto.
11209         (find_cmd, complete_on_cmdlist): Ditto.
11210         * top.c (execute_command): Ditto.
11211
11212         * cli/cli-setshow.c (do_setshow_command): Call func instead of
11213         function.sfunc.
11214
11215         * infcmd.c (notice_args_read): Fix function signature.
11216
11217         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11218         * cli/cli-decode.c (add_set_cmd): Ditto.
11219         * utils.c (initialize_utils): Ditto.
11220         * maint.c (_initialize_maint_cmds): Ditto.
11221         * infrun.c (_initialize_infrun): Ditto.
11222         * demangle.c (_initialize_demangler): Ditto.
11223         * remote.c (add_packet_config_cmd): Ditto.
11224         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11225         * cris-tdep.c (_initialize_cris_tdep): Ditto.
11226         * proc-api.c (_initialize_proc_api): Ditto.
11227         * kod.c (_initialize_kod): Ditto.
11228         * valprint.c (_initialize_valprint): Ditto.
11229         * top.c (init_main): Ditto.
11230         * infcmd.c (_initialize_infcmd): Ditto.
11231         * corefile.c (_initialize_core): Ditto.
11232         * arm-tdep.c (_initialize_arm_tdep): Ditto.
11233         * arch-utils.c (initialize_current_architecture): Ditto.
11234         (_initialize_gdbarch_utils): Ditto.
11235         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11236
11237         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11238         * wince.c (_initialize_inftarg): Ditto.
11239         * symfile.c (_initialize_symfile): Ditto.
11240         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11241         * language.c (_initialize_language): Ditto.
11242         * arc-tdep.c (_initialize_arc_tdep): Ditto.
11243
11244 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11245
11246         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11247
11248 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11249
11250         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11251         Add rules for building the register data files.
11252
11253 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11254
11255         * regformats/regdat.sh: Add braces to the definition of
11256         expedite_regs_${arch}.
11257
11258 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11259
11260         * regformats/regdef.h (struct reg): Add comment describing the
11261         requirements for offset and size fields.
11262
11263 2002-02-04  Andreas Schwab  <schwab@suse.de>
11264
11265         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11266         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11267
11268 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
11269
11270         * gdbarch.sh (copyright): Update years in generated header.
11271         (SMASH_TEXT_ADDRESS): Add rule.
11272         * gdbarch.h, gdbarch.c: Re-generate.
11273         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11274         * dbxread.c: Likewise.
11275         * dwarfread.c: Likewise.
11276         * elfread.c: Likewise.
11277         * somread.c: Likewise.
11278
11279         * arm-tdep.c (arm_smash_text_address): New function.
11280         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11281
11282 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11283
11284         Add support for hardware watchpoints on win32 native.
11285         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11286         CONTEXT_DEBUG_REGISTERS.
11287         (dr variable): New variable. Static array containing a local copy
11288         of debug registers.
11289         (debug_registers_changed): New variable.  Reflects when debug registers
11290         are changed and need to be written to inferior.
11291         (debug_registers_used): New variable. Reflects when any debug register
11292         was set, used when new threads are created.
11293         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11294         i386-nat code.
11295         (thread_rec): Set dr array if id is the thread of current_event .
11296         (child_continue, child_resume): Change the debug registers for all
11297         threads if debug_registers_changed.
11298         (child_add_thread): Change the debug registers if debug_registers_used.
11299         * config/i386/cygwin.mh: Add use of i386-nat.o file.
11300         Link nm.h to new nm-cygwin.h file.
11301         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11302         of hardware registers.
11303
11304 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
11305
11306         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11307         Restore behavour broken by 2002-01-20 Andrew Cagney
11308         <ac131313@redhat.com> IEEE_FLOAT removal.
11309
11310 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11311
11312         * c-valprint.c (c_val_print): Pass a proper valaddr to
11313         cp_print_class_method.
11314         * valops.c (search_struct_method): If there is only one method
11315         and args is NULL, return that method.
11316
11317 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11318
11319         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11320         accessing tag_name directly.
11321
11322 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11323
11324         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11325         of accessing tag_name directly.
11326
11327 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11328
11329         PR gdb/280
11330         * gdbtypes.c (replace_type): New function.
11331         * gdbtypes.h (replace_type): Add prototype.
11332         * stabsread.c (read_type): Use replace_type.
11333
11334 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
11335
11336         * Makefile.in (memattr.o): Add missing dependencies rule.
11337
11338 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11339
11340         * breakpoint.c (break_at_finish_command): Really export.
11341         (break_at_finish_at_depth_command): Ditto.
11342         (tbreak_at_finish_command): Ditto.
11343         * hppa-tdep.c: Include completer.h.
11344         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11345         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11346
11347 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11348
11349         * utils.c (do_write): New function.
11350         (error_stream): Rewrite combining the code from error_begin and
11351         verror.
11352         (verror): Rewrite using error_stream.
11353         (error_begin): Delete function.
11354
11355 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11356
11357         * utils.c (error_begin): Make static.
11358         * defs.h (error_begin): Delete declaration.
11359
11360         * linespec.c (cplusplus_error): Replace cplusplus_hint.
11361         (decode_line_1): Use cplusplus_error instead of error_begin,
11362         cplusplus_hint and return_to_top_level.
11363         * coffread.c (coff_symfile_read): Use error instead of error_begin
11364         and return_to_top_level.
11365         * infrun.c (default_skip_permanent_breakpoint): Ditto.
11366
11367 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11368
11369         * language.h (type_error, range_error): Make string parameter
11370         constant.
11371         * language.c (warning_pre_print): Delete extern declaration.
11372         * dwarfread.c (warning_pre_print): Ditto.
11373         * language.c (type_error, range_error): Rewrite to use verror and
11374         vwarning instead of warning_begin.
11375
11376 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11377
11378         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11379         (set_ignore_count): Move misplaced comment back where it belongs.
11380
11381 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11382
11383         * command.h (NO_FUNCTION): Delete macro.
11384         * cli/cli-decode.h (NO_FUNCTION): Ditto.
11385         * top.c (execute_command): Replace NO_FUNCTION with NULL.
11386         * tracepoint.c (_initialize_tracepoint): Ditto.
11387         * cli/cli-decode.c (add_set_cmd): Ditto.
11388         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11389
11390 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11391
11392         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11393         Update ``this'' pointer when calling virtual functions.
11394
11395 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11396
11397         * breakpoint.c (create_temp_exception_breakpoint): Delete.
11398         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11399
11400 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11401
11402         * regformats/reg-arm.dat: New file.
11403         * regformats/reg-i386.dat: New file.
11404         * regformats/reg-ia64.dat: New file.
11405         * regformats/reg-m68k.dat: New file.
11406         * regformats/reg-mips.dat: New file.
11407         * regformats/reg-ppc.dat: New file.
11408         * regformats/reg-sh.dat: New file.
11409         * regformats/regdef.h: New file.
11410         * regformats/regdat.sh: New file.
11411
11412 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
11413
11414         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11415         (arm_frame_args_address, arm_frame_locals_address): New functions.
11416         (arm_frame_num_args): New function.
11417         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11418         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11419         (FRMA_NUM_ARGS): Call arm_frame_num_args.
11420
11421 2002-01-31  Michael Snyder  <msnyder@redhat.com>
11422
11423         * breakpoint.c (break_at_finish_command): Export.
11424         (break_at_finish_at_depth_command): Export.
11425         (tbreak_at_finish_command): Export.
11426         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11427         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11428         "txbreak" commands, which are HPPA specific.
11429
11430         * printcmd.c (disassemble_command): Remove an ancient
11431         artifact of an old merge.
11432
11433         * symfile.h (enum overlay_debugging_state):
11434         Define enum constant values for overlay mode.
11435         * symfile.c (overlay_debugging): Use enums instead of literals.
11436         (overlay_is_mapped, overlay_auto_command,
11437         overlay_manual_command): Ditto.
11438
11439         * breakpoint.c (insert_breakpoints, remove_breakpoint,
11440         breakpoint_here_p, breakpoint_inserted_here_p,
11441         breakpoint_thread_match, bpstat_stop_status,
11442         describe_other_breakpoints, check_duplicates, clear_command):
11443         Coding standard fixes.
11444
11445         * target.c (target_xfer_memory): Add spaces, coding standard.
11446         (do_xfer_memory): Add missing line to trust-readonly
11447         code: check bfd SEC_READONLY flag for section.
11448
11449 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11450
11451         * PROBLEMS: Fix typo, 5.1->5.1.1.
11452
11453 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11454
11455         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11456         data symbols, since we search based on textlow and texthigh.
11457         (find_pc_sect_symtab): Likewise.
11458
11459 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11460
11461         * defs.h (vwarning): Declare.
11462         * utils.c (vwarning): New function.
11463         (warning): Call vwarning.
11464         (warning_begin): Delete function.
11465
11466         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11467         the warning message.
11468         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11469         warning_begin.
11470
11471 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11472
11473         * NEWS: Mention "set trust-readonly-sections" command.
11474         Mention generate-core-file command.
11475
11476 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11477
11478         * target.c: New command, "set trust-readonly-sections on".
11479         (do_xfer_memory): Honor the suggestion to trust readonly sections
11480         by reading them from the object file instead of from the target.
11481         (initialize_targets): Register command "set trust-readonly-sections".
11482
11483 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11484
11485         * parse.c (target_map_name_to_register): Simplify, search regs and
11486         pseudo-regs using a single loop.
11487
11488 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11489
11490         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11491
11492 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11493
11494         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11495         * config/i386/i386v42mp.mh: Add i387-nat.o .
11496         * i386v4-nat.c: Include i387-nat.h.
11497         (supply_fpregset): Use i387_supply_fsave.
11498         (fill_fpregset): Use i387_fill_fsave.
11499
11500 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11501
11502         * arm-tdep.c (arm_call_dummy_words): Define.
11503         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11504         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11505         (CALL_DUMMY_WORDS): Define.
11506         (arm_call_dummy_words): Declare.
11507         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11508         (arm_linux_call_dummy_words): Declare.
11509
11510 2002-01-30  Andreas Schwab  <schwab@suse.de>
11511
11512         * m68klinux-nat.c: Fix last change to use regcache_collect
11513         instead of referencing registers[] directly.
11514
11515 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11516
11517         * parse.c (target_map_name_to_register): Delete code wrapped in
11518         #ifdef REGISTER_NAME_ALIAS_HOOK.
11519
11520 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11521
11522         * regcache.c (legacy_read_register_gen): Need to be able to
11523         read pseudo-register as well as real register.
11524         (legacy_write_register_gen): Ditto.
11525
11526 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11527
11528         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11529         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11530         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11531         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11532         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11533         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11534         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11535         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11536         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11537         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11538         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11539         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11540         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11541         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11542         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11543         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11544         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11545         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11546         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11547         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11548
11549 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11550
11551         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11552         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11553         (initialize_current_architecture): Update target_byte_order using
11554         information from BFD.
11555         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11556         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11557
11558 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11559
11560         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11561         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11562
11563         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11564         #ifdef INVALID_FLOAT.
11565         * infcmd.c (do_registers_info): Ditto.
11566         * values.c (unpack_double): Ditto.  Add comment.
11567
11568         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11569         already commented out.
11570
11571 2002-01-26  Andreas Schwab  <schwab@suse.de>
11572
11573         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11574         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11575         registers and add support for PTRACE_GETREGS.
11576
11577 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11578
11579         GDB 5.1.1 released from 5.1 branch.
11580         * NEWS: Add 5.1.1 news.
11581         * README: Sync with 5.1 branch.
11582
11583 2002-01-23  Fred Fish  <fnf@redhat.com>
11584
11585         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11586         stabstring on initial malloc.  Reallocing will copy it for us,
11587         if necessary.
11588
11589 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11590
11591         * Makefile.in (hpread_h): Delete.
11592         (HFILES_NO_SRCDIR): Remove hpread.h.
11593         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11594         (hpread.o): Update dependencies.
11595         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11596
11597         * hp-psymtab-read.c: Remove file.
11598         * hp-symtab-read.c: Remove file.
11599         * hpread.h: Remove file.
11600
11601         * hpread.c: Merge all contents of hp-psymtab-read.c,
11602         hp-symtab-read.c and hpread.h into this file, as it was prior to
11603         January 1999.
11604
11605         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11606         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11607         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11608         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11609
11610 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11611
11612         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11613         fill_gregset): Call gdbarch_tdep() just once, assign result to
11614         variable and use that, instead of calling the function several
11615         times.
11616
11617 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11618
11619         * configure.host: Accept sparcv9 as alias for sparc64.
11620         * configure.tgt: Likewise.
11621
11622 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11623
11624         * solib-aix5.c (build_so_list_from_mapfile)
11625         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11626         arguments is not reversed.
11627         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11628         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11629
11630 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11631
11632         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11633         modified version of obsolete sh_fetch_pseudo_register.
11634         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11635         (sh4_register_read): New function.
11636         (sh_pseudo_register_write): New function. Renamed and modified
11637         version of obsolete sh_store_pseudo_register.
11638         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11639         (sh4_register_write): New function.
11640         (sh_gdbarch_init): Remove setting of gdbarch function
11641         fetch_pseudo_register and store_pseudo_register. Remove setting of
11642         register_convert_to_raw, register_convert_to_virtual,
11643         register_convertible.
11644         (sh_sh4_register_convertible): Delete. No longer needed. All is
11645         taken care by architecture specific functions
11646         register_read/register_write.
11647         (sh_sh4_register_convert_to_virtual): Make static.
11648         (sh_sh4_register_convert_to_raw): Ditto.
11649
11650 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11651
11652         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11653         (floatformat_is_nan, floatformat_mantissa): Ditto.
11654
11655         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11656         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11657         builtin_type_ieee_double_little,
11658         builtin_type_ieee_double_littlebyte_bigword,
11659         builtin_type_m68881_ext, builtin_type_i960_ext,
11660         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11661         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11662         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11663         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11664
11665 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11666
11667         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11668         parameter.  Set frameless flag if it exists and depended of
11669         whether the scanned function is frameless or not.
11670         (xstormy16_skip_prologue): If function is frameless, return
11671         result of xstormy16_scan_prologue().
11672         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11673         call.
11674
11675 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11676
11677         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11678         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11679         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11680         sh_sh4_register_byte, sh_sh4_register_raw_size,
11681         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11682         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11683         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11684         sh_store_pseudo_register, sh_do_pseudo_register): Call
11685         gdbarch_tdep() just once, assign result to variable and use that,
11686         instead of calling the function several times.
11687
11688 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11689
11690         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11691         macros instead of LAST_FPU_CTRL_REGNUM.
11692         (store_register): Likewise.
11693
11694 2002-01-21  Jim Blandy  <jimb@redhat.com>
11695
11696         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11697         is up-to-date before running the program, not just when a program
11698         exits.
11699
11700 2002-01-21  Fred Fish  <fnf@redhat.com>
11701
11702         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11703         when we have found all instructions we are looking for.
11704
11705 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11706
11707         * arm-tdep.c (arm_register_name): New function.
11708         (arm_registers_names): Make static.
11709         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11710         (arm_register_name): Declare.
11711         (REGISTER_NAME): Use it.
11712
11713 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11714             Kevin Buettner  <kevinb@redhat.com>
11715
11716         Convert arm targets to new FRAME interface.
11717         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11718         (arm_frame_find_save_regs): Delete.
11719         (arm_frame_init_saved_regs): New.
11720         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11721         Allocate extra_info as required.  Convert all uses of fsr.regs
11722         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11723         to use extra_info.
11724         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11725         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11726         (check_prologue_cache, save_prologue_cache): Likewise.
11727         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11728         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11729         (FRAME_FIND_SAVED_REGS): Delete.
11730         (arm_frame_find_saved_regs): Delete prototype.
11731         (arm_frame_init_saved_regs): New prototype.
11732         (FRAME_INIT_SAVED_REGS): Define.
11733
11734 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11735
11736         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11737
11738 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11739
11740         From Jeff Law <law@redhat.com>:
11741         * infttrace.c: Include <sys/pstat.h>.
11742         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11743         exec file if the ttrace equivalent fails.
11744
11745 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11746
11747         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11748         (closeLogFile): Ditto.
11749
11750 2002-01-20  Michael Chastain  <mec@shout.net>
11751
11752         * top.c (print_gdb_version): Bump copyright year to 2002.
11753
11754 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11755
11756         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11757         Zannoni and Eli Zaretskii.
11758
11759 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11760
11761         * buildsym.c: Update copyright years.
11762         * c-typeprint.c: Likewise.
11763         * dwarf2read.c: Likewise.
11764         * f-typeprint.c: Likewise.
11765         * gdbtypes.c: Likewise.
11766         * gdbtypes.h: Likewise.
11767         * hp-symtab-read.c: Likewise.
11768         * hpread.c: Likewise.
11769         * mdebugread.c: Likewise.
11770         * p-typeprint.c: Likewise.
11771
11772 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11773
11774         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11775         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11776         byte-order selectable.
11777         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11778         * arch-utils.c: Ditto.
11779         (set_endian): Ditto.
11780         (set_endian_from_file): Ditto.
11781         * gdbserver/low-sim.c (create_inferior): Ditto.
11782         * gdbarch.sh: Ditto.
11783         * gdbarch.h: Re-generate.
11784         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11785         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11786         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11787         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11788         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11789         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11790         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11791         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11792         macro definition.
11793         * config/mips/tm-wince.h: Remove #undef of macro
11794         TARGET_BYTE_ORDER_SELECTABLE.
11795         * config/sh/tm-wince.h: Ditto.
11796
11797 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11798
11799         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11800         member function fields.  Add accessor macro
11801         TYPE_FN_FIELD_ARTIFICIAL.
11802         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11803         * c-typeprint.c (c_type_print_base): Skip artificial member
11804         functions.
11805
11806 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11807
11808         * f-typeprint.c: Delete unused function f_type_print_args.
11809         * p-typeprint.c: Delete unused function pascal_type_print_args.
11810
11811 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11812
11813         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11814         comment.  Add ``artificial'' to ``union field_location''.
11815
11816         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11817
11818         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11819         * mdebugread.c (parse_symbol): Likewise.
11820         * stabsread.c (define_symbol): Likewise.
11821         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11822         initializing TYPE_FIELD_BITPOS to n (obsolete).
11823         (hpread_doc_function_type): Likewise.
11824         * hpread.c (hpread_function_type): Likewise.
11825
11826 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11827
11828         * configure.in (host_makefile_frag): Only require a host makefile
11829         fragment when a native build.
11830         * configure: Re-generate.
11831
11832 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11833
11834         * doublest.h (floatformat_from_type): Declare.
11835         * doublest.c (floatformat_from_type): New function.
11836         (convert_typed_floating): Use.
11837
11838         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11839         call to function floatformat_from_type.
11840
11841         * gdbarch.sh (IEEE_FLOAT): Delete.
11842         * gdbarch.h, gdbarch.c: Re-generate.
11843         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11844         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11845         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11846         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11847         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11848         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11849         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11850         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11851         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11852         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11853         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11854         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11855
11856         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11857         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11858         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11859         * sh-tdep.c (sh_gdbarch_init): Ditto.
11860         * mips-tdep.c (mips_gdbarch_init): Ditto.
11861         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11862         * cris-tdep.c (cris_gdbarch_init): Ditto.
11863
11864 2002-01-20  Jiri Smid  <smid@suse.cz>
11865
11866         * configure.host, configure.tgt: Support x86-64.
11867         * NEWS: Note new target x86-64.
11868
11869         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11870         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11871         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11872         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11873         x86-64-linux-nat.o): Fix dependencies.
11874
11875 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11876
11877         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11878         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11879         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11880         * config/sparc/xm-sun4os4.h: Delete file.
11881         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11882
11883 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11884
11885         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11886         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11887         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11888         * config/i386/i386lynx.mh (XM_FILE): Delete.
11889         * config/rs6000/xm-rs6000ly.h: Delete file.
11890         * config/sparc/xm-sparclynx.h: Delete file.
11891         * config/m68k/xm-m68klynx.h: Delete file.
11892         * config/i386/xm-i386lynx.h: Delete file.
11893         * config/xm-lynx.h: Delete file.
11894         * config/djgpp/fnchange.lst: Update.
11895
11896 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11897
11898         * alpha-tdep.c (alpha_register_byte): New function.
11899         (alpha_register_raw_size): Ditto.
11900         (alpha_register_virtual_size): Ditto.
11901         (alpha_skip_prologue_internal): Renamed from
11902         alpha_skip_prologue.
11903         (alpha_skip_prologue): New version that calls
11904         alpha_skip_prologue_internal.
11905         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11906         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11907         second argument from alpha_skip_prologue.
11908         (REGISTER_BYTE): Use alpha_register_byte.
11909         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11910         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11911         (FRAMELESS_FUNCTION_INVOCATION): Use
11912         generic_frameless_function_invocation_not.
11913         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11914         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11915
11916 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11917
11918         * config/mips/xm-news-mips.h: Delete file.
11919         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11920
11921         * config/m88k/xm-m88k.h: Delete file.
11922         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11923         * config/m88k/xm-delta88v4.h: Ditto.
11924         * config/m88k/xm-delta88.h: Ditto.
11925
11926         * config/alpha/xm-fbsd.h: Delete file.
11927         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11928
11929         * config/sparc/xm-sparc.h: Delete file.
11930         * Makefile.in (xm-sun4os4.h): Delete dependency.
11931         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11932         * config/sparc/xm-sun4os4.h: Ditto.
11933         * config/sparc/xm-linux.h: Ditto.
11934
11935         * config/i386/xm-windows.h: Delete file.
11936
11937 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11938
11939         * utils.c: Include <sys/param.h> for MAXPATHLEN.
11940         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11941
11942 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11943
11944         * alpha-tdep.c (alpha_call_dummy_words): New.
11945         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11946         (CALL_DUMMY_P): Define.
11947         (CALL_DUMMY_WORDS): Define.
11948         (SIZEOF_CALL_DUMMY_WORDS): Define.
11949
11950 2002-01-19  Per Bothner  <per@bothner.com>
11951
11952         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
11953         isn't NULL, which can happen with some gcj-3.x-produced code.
11954
11955 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11956
11957         * alpha-tdep.c (alpha_register_virtual_type): New function.
11958         (alpha_init_frame_pc_first): Ditto.
11959         (alpha_fix_call_dummy): Ditto.
11960         (alpha_store_struct_return): Ditto.
11961         (alpha_extract_struct_value_address): Ditto.
11962         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11963         alpha_register_virtual_type.
11964         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11965         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11966         alpha_extract_struct_value_address.
11967         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11968         (INIT_FRAME_PC): Use init_frame_pc_noop.
11969         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11970
11971 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
11972
11973         * i386gnu-nat.c: Include "i386-tdep.h".
11974         (fetch_fpregs): Simplify code dealing with uninitialized floating
11975         point states such that it doesn't require FP7_REGNUM.
11976
11977 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11978
11979         * alpha-tdep.c (frame_extra_info): New.
11980         (alpha_find_saved_regs): Make static.  Use
11981         frame->extra_info.
11982         (alpha_frame_init_saved_regs): New function.
11983         (alpha_frame_saved_pc): Use frame->extra_info.
11984         (temp_saved_regs): Don't declare as struct frame_saved_regs.
11985         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11986         (init_extra_frame_info): Rename to...
11987         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
11988         (alpha_print_extra_frame_info): New function.
11989         (alpha_frame_locals_address): Ditto.
11990         (alpha_frame_args_address): Ditto.
11991         (alpha_pop_frame): Use frame->extra_info.
11992         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11993         alpha_frame_args_address.
11994         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11995         (alpha_find_saved_regs): Remove prototype.
11996         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11997         (EXTRA_FRAME_INFO): Remove.
11998         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11999         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12000
12001 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12002
12003         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12004         (alpha_cannot_fetch_register): Ditto.
12005         (alpha_cannot_store_register): Ditto.
12006         (alpha_register_convertible): Ditto.
12007         (alpha_use_struct_convention): Ditto.
12008         * config/alpha/tm-alpha.h: Update copyright years.
12009         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12010         (INNER_THAN): Use core_addr_lessthan.
12011         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12012         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12013         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12014         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12015         (FRAME_CHAIN): Remove unnecessary cast.
12016
12017 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12018
12019         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12020         obsolete.
12021
12022 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12023
12024         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
12025         * monitor.c, remote-array.c, remote-bug.c: Ditto.
12026         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12027         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12028         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12029         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12030         * x86-64-linux-nat.c: Ditto.
12031
12032 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12033
12034         * alpha-tdep.c (alpha_register_name): New function.
12035         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12036         (REGISTER_NAME): Define.
12037
12038 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12039
12040         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12041
12042 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12043
12044         * alpha-tdep.c: Update copyright years.
12045         (alpha_next_pc): New function.
12046         (alpha_software_single_step): Ditto.
12047         * config/alpha/tm-alpha.h: Add prototype for
12048         alpha_software_single_step.
12049
12050 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12051
12052         * alphabsd-nat.c: Update copyright years.
12053         (fill_gregset): Use regcache_collect.
12054         (fill_fpregset): Likewise.
12055         (fetch_inferior_registers): Only fetch integer registers
12056         if requested to do so.
12057         (store_inferior_registers): Only store integer registers
12058         if requested to do so.
12059
12060 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12061
12062         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12063         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12064         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12065         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12066         * config/alpha/fbsd.mh (XDEPFILES): Delete.
12067         * config/arm/linux.mh (XDEPFILES): Delete.
12068         * config/arm/nbsd.mh (XDEPFILES): Delete.
12069         * config/i386/i386dgux.mh (XDEPFILES): Delete.
12070         * config/i386/i386sol2.mh (XDEPFILES): Delete.
12071         * config/i386/i386m3.mh (XDEPFILES): Delete.
12072         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12073         * config/i386/i386gnu.mh (XDEPFILES): Delete.
12074         * config/i386/fbsd.mh (XDEPFILES): Delete.
12075         * config/i386/i386bsd.mh (XDEPFILES): Delete.
12076         * config/i386/i386sco5.mh (XDEPFILES): Delete.
12077         * config/i386/i386v4.mh (XDEPFILES): Delete.
12078         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12079         * config/i386/i386sco4.mh (XDEPFILES): Delete.
12080         * config/i386/i386aix.mh (XDEPFILES): Delete.
12081         * config/i386/go32.mh (XDEPFILES): Delete.
12082         * config/i386/cygwin.mh (XDEPFILES): Delete.
12083         * config/i386/i386lynx.mh (XDEPFILES): Delete.
12084         * config/i386/i386mach.mh (XDEPFILES): Delete.
12085         * config/i386/i386v32.mh (XDEPFILES): Delete.
12086         * config/i386/linux.mh (XDEPFILES): Delete.
12087         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12088         * config/i386/ncr3000.mh (XDEPFILES): Delete.
12089         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12090         * config/i386/i386sco.mh (XDEPFILES): Delete.
12091         * config/i386/i386v.mh (XDEPFILES): Delete.
12092         * config/i386/nbsd.mh (XDEPFILES): Delete.
12093         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12094         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12095         * config/i386/symmetry.mh (XDEPFILES): Delete.
12096         * config/i386/obsd.mh (XDEPFILES): Delete.
12097         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12098         * config/ia64/linux.mh (XDEPFILES): Delete.
12099         * config/ia64/aix.mh (XDEPFILES): Delete.
12100         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12101         * config/m68k/dpx2.mh (XDEPFILES): Delete.
12102         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12103         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12104         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12105         * config/m68k/linux.mh (XDEPFILES): Delete.
12106         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12107         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12108         * config/m68k/nbsd.mh (XDEPFILES): Delete.
12109         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12110         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12111         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12112         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12113         * config/m88k/delta88.mh (XDEPFILES): Delete.
12114         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12115         * config/m88k/m88k.mh (XDEPFILES): Delete.
12116         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12117         * config/mips/linux.mh (XDEPFILES): Delete.
12118         * config/mips/irix6.mh (XDEPFILES): Delete.
12119         * config/mips/irix5.mh (XDEPFILES): Delete.
12120         * config/mips/irix4.mh (XDEPFILES): Delete.
12121         * config/mips/irix3.mh (XDEPFILES): Delete.
12122         * config/mips/decstation.mh (XDEPFILES): Delete.
12123         * config/mips/mipsm3.mh (XDEPFILES): Delete.
12124         (NATDEPFILES): Move core-aout.o to here.
12125         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12126         * config/pa/hpux1020.mh (XDEPFILES): Delete.
12127         * config/pa/hppabsd.mh (XDEPFILES): Delete.
12128         * config/pa/hppahpux.mh (XDEPFILES): Delete.
12129         * config/pa/hpux11w.mh (XDEPFILES): Delete.
12130         * config/pa/hppaosf.mh (XDEPFILES): Delete.
12131         * config/pa/hpux11.mh (XDEPFILES): Delete.
12132         * config/powerpc/aix.mh (XDEPFILES): Delete.
12133         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12134         * config/powerpc/linux.mh (XDEPFILES): Delete.
12135         * config/romp/rtbsd.mh: Rename XDEPFILES.
12136         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12137         * config/rs6000/aix4.mh (XDEPFILES): Delete.
12138         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12139         * config/s390/s390.mh (XDEPFILES): Delete.
12140         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12141         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12142         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12143         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12144         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12145         * config/sparc/nbsd.mh (XDEPFILES): Delete.
12146         * config/sparc/linux.mh (XDEPFILES): Delete.
12147         * config/vax/vaxult.mh (XDEPFILES): Delete.
12148         * config/vax/vaxult2.mh (XDEPFILES): Delete.
12149         * Makefile.in (DEPFILES): Remove XDEPFILES.
12150
12151 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12152
12153         * utils.c (internal_verror): Fix comments, default is yes not no.
12154         Update queries to match.  Default to quit and dump core.
12155
12156 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12157
12158         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
12159         copyright.
12160         * defs.h, event-top.c, gdbcmd.h: Ditto.
12161         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12162         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12163         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12164         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12165         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12166         * mi/mi-main.c:Ditto.
12167
12168         * stack.c, symfile.c: Update copyright.
12169
12170 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12171
12172         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12173         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12174         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12175         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12176
12177 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12178
12179         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12180         * gdbserver/low-lynx.c (myattach): Likewise.
12181         * gdbserver/low-nbsd.c (myattach): Likewise.
12182         * gdbserver/low-sim.c (myattach): Likewise.
12183         * gdbserver/low-sparc.c (myattach): Likewise.
12184         * gdbserver/low-sun3.c (myattach): Likewise.
12185
12186         * gdbserver/low-linux.c (myattach): New function.
12187
12188         * gdbserver/server.c (attach_inferior): New function.
12189         (main): Handle "--attach".
12190
12191 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
12192
12193         * MAINTAINERS (language support): Daniel Jacobwitz is C++
12194         maintainer.
12195
12196 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
12197
12198         * c-typeprint.c (is_type_conversion_operator): Add additional
12199         check for non-conversion operators.
12200
12201 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12202
12203         * linux-proc.c: Add "info proc" command, a la procfs.c.
12204         (read_mapping): New function, abstract and re-use code.
12205         (linux_find_memory_regions): Use new func read_mapping.
12206         (linux_info_proc_cmd): New function, implement "info proc".
12207         (_initialize_linux_proc): Add new command "info proc".
12208
12209 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12210
12211         * symfile.c (generic_load): Use bfd_map_over_sections method
12212         instead of manipulating bfd structure members directly.
12213         (add_section_size_callback): New function, bfd sections callback
12214         used by generic_load.
12215         (load_sections_callback): New function, bfd sections callback
12216         used by generic_load.
12217
12218 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
12219
12220         [Based on work by Jim Blandy]
12221         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12222         (builtin_type_vec128): Export.
12223         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12224         types.
12225         (builtin_type_vec128): New builtin type for 128 bit vector
12226         registers.
12227         (build_gdbtypes): Initialize builtin_type_v16qi and
12228         builtin_type_v8hi. Create the vec128 register builtin type
12229         structure.
12230         (build_builtin_type_vec128): New function.
12231         (_initialize_gdbtypes): Register builtin_type_v16qi and
12232         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12233         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12234         AltiVec register to new builtin type.
12235
12236 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
12237
12238         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12239         to make_cv_type.
12240
12241 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12242
12243         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12244         CLEAN_UP_REGISTER_VALUE.
12245         * regcache.c (supply_register): Update only call.
12246
12247 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12248
12249         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12250         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12251         a29k-*-vxworks* targets as obsolete.
12252
12253 2002-01-14  Michael Snyder  <msnyder@redhat.com>
12254
12255         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12256         until we can resolve portability issues.
12257         * gregset.h: Remove references to fpxregs.
12258         * gcore.c (gcore_command): Initialize note_sec to NULL.
12259
12260 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12261
12262         * signals.c (target_signal_to_name): Rewrite.  Only use
12263         signals[].name when in bounds and non-NULL.
12264
12265 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12266
12267         From Petr Ledvina <ledvinap@kae.zcu.cz>:
12268         * signals.c (target_signal_to_name): Verify that SIG is within the
12269         bounds of the signals array.
12270
12271 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12272
12273         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12274
12275 2002-01-13  Keith Seitz  <keiths@redhat.com>
12276
12277         * stack.c (print_frame_info_base): Print the frame's pc
12278         only if when print_frame_info_listing_hook is not defined.
12279
12280 2002-01-13  Keith Seitz  <keiths@redhat.com>
12281
12282         * varobj.c (varobj_set_value): Make sure that there were no
12283         errors evaluating the object before attempting to set its
12284         value.
12285         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12286         so this offset adjustment is no longer necessary.
12287         (create_child): Don't set the error flag if the child is
12288         a CPLUS_FAKE_CHILD.
12289         (value_of_child): If value_fetch_lazy fails, return NULL
12290         so that callers will be notified that an error occurred.
12291         (c_value_of_variable): Delay check of variable's validity
12292         until later. We actually want all structs and unions to have
12293         the value "{...}".
12294         Do not return "???" for variables which could not be evaluated.
12295         This error condition must be returned to the caller so that it
12296         can get the error condition from gdb.
12297         (cplus_name_of_child): Adjust index for vptr before figuring
12298         out the name of the child.
12299         (cplus_value_of_child): If a child's (real) parent is not valid,
12300         don't even bother trying to give a value for it. Just return
12301         an error. Change all instances in this function.
12302         (cplus_type_of_child): If our parent is one of the "fake"
12303         parents, we need to get at the type of the real parent, and
12304         derive the child's true type using this information.
12305
12306 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12307
12308         From 2002-01-09 John Marshall <johnm@falch.net>:
12309         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12310         sources.redhat.com, and tweak some related URLs which had
12311         suffered from linkrot.
12312
12313 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12314
12315         From Jeff law:
12316         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12317         structures passed in registers.
12318
12319 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
12320
12321         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12322         white space which prevented compilation.  Reported by DSK
12323         <dsk@student.unsw.edu.au>.
12324
12325 2002-01-11  Michael Snyder  <msnyder@redhat.com>
12326
12327         * symfile.c (build_section_addr_info_from_section_tab):
12328         Use bfd access method instead of manipulating bfd directly.
12329         (syms_from_objfile): Ditto.
12330         (simple_overlay_update_1): Ditto.
12331         (simple_overlay_update): Ditto.
12332         (generic_load): Ditto.
12333         (overlay_unmapped_address): FIXME comment, bfd access methods.
12334         (sections_overlap): FIXME comment, bfd access methods.
12335         (pc_in_mapped_range): FIXME comment, bfd access methods.
12336         (pc_in_unmapped_range): FIXME comment, bfd access methods.
12337         (section_is_mapped): FIXME comment, bfd access methods.
12338         (section_is_overlay): FIXME comment, bfd access methods.
12339
12340         * symfile.c (generic_load): Whitespace and long line cleanups.
12341         Remove duplicate variable, change several local variables to
12342         more appropriate data types.
12343         (print_transfer_performance): Use %lu instead of %ld for ulongs.
12344
12345 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12346
12347         From Peter Schauer:
12348         * language.c (longest_local_hex_string_custom): Use phex_nz to
12349         convert NUM to a hex string.
12350
12351 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
12352
12353         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12354         the function.
12355         Update Copyright year.
12356
12357 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12358
12359         * language.c (longest_raw_hex_string): Delete unused function.
12360
12361 2002-01-11  Petr Sorfa  <petrs@caldera.com>
12362
12363         * MAINTAINERS (write-after-approval): Add myself.
12364         * dwarf2read.c (read_tag_string_type): Handling of
12365         DW_AT_byte_size.
12366         (read_tag_string_type): FORTRAN fix to prevent propagation of
12367         first string size.
12368         (set_cu_language): Handling of DW_LANG_Fortran95
12369
12370 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
12371
12372         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12373         GETPID(inferior_ptid).
12374         (store_inferior_registers): Likewise.
12375
12376 2002-01-10  Jason Merrill  <jason@redhat.com>
12377
12378         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12379         Fix DW_OP_minus.
12380
12381 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
12382
12383         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12384         and bfd/elf32-sh-nbsd.c.
12385
12386 2002-01-10  Michael Snyder  <msnyder@redhat.com>
12387
12388         * NEWS: Mention --pid and corefile/proc-id behavior change.
12389
12390         * Makefile.in: Add rules for gcore.o and linux-proc.o.
12391         * gcore.c: Include cli/cli-decode.h instead of command.h.
12392
12393         * main.c (captured_main): Add new command line option "--pid".
12394         If the second command line argument (following the symbol-file)
12395         begins with a digit, try to attach to it before trying to open
12396         it as a corefile.
12397         (print_gdb_help): Document the "--pid" argument.
12398
12399 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
12400
12401         * completer.c (command_completer): New function.
12402
12403         * completer.h <command_completer>: Add prototype.
12404
12405         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12406         completer for the "help" command.
12407
12408 2002-01-09  Jason Merrill  <jason@redhat.com>
12409
12410         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12411
12412 2002-01-09  Michael Snyder  <msnyder@redhat.com>
12413
12414         * i386-linux-nat.c (fill_fpxregset): Make global.
12415         (store_fpxregset): Ditto.
12416
12417         * gregset.h (gdb_fpxregset_t): Define.
12418         (supply_fpxregset): Prototype.
12419         (fill_fpxregset): Prototype.
12420
12421         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12422
12423 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12424
12425         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12426         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12427         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12428
12429 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
12430
12431         * MAINTAINERS: Update target maintainer rules so that any
12432         Maintainer can approve a tested patch for a maintenance-only
12433         target.
12434
12435 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12436
12437         * MAINTAINERS (write-after-approval): Add myself.
12438
12439         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12440         IN_SIGTRAMP.
12441
12442 2002-01-08  Michael Snyder  <msnyder@redhat.com>
12443
12444         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12445         real name of the executable, rather than the /proc name.
12446
12447 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12448
12449         Implement a "generate-core-file" command in gdb, save target state.
12450         * gcore.c: New file.  Implement new command 'generate-core-file'.
12451         Save a corefile image of the current state of the inferior.
12452         * linux-proc.c: Add linux-specific code for saving corefiles.
12453         * target.h (struct target_ops): Add new target vectors for saving
12454         corefiles; to_find_memory_regions and to_make_corefile_notes.
12455         (target_find_memory_regions): New macro.
12456         (target_make_corefile_notes): New macro.
12457         * target.c (update_current_target): Inherit new target methods.
12458         (dummy_find_memory_regions): New place-holder method.
12459         (dummy_make_corefile_notes): New place-holder method.
12460         (init_dummy_target): Initialize new dummy target vectors.
12461         * exec.c (exec_set_find_memory_regions): New function.
12462         Allow the exec_ops vector for memory regions to be taken over.
12463         (exec_make_note_section): New function, target vector method.
12464         * defs.h (exec_set_find_memory_regions): Export prototype.
12465         * procfs.c (proc_find_memory_regions): New function, corefile method.
12466         (procfs_make_note_section): New function, corefile method.
12467         (init_procfs_ops): Set new target vector pointers.
12468         (find_memory_regions_callback): New function.
12469         (procfs_do_thread_registers): New function.
12470         (procfs_corefile_thread_callback): New function.
12471         * sol-thread.c (sol_find_memory_regions): New function.
12472         (sol_make_note_section): New function.
12473         (init_sol_thread_ops): Initialize new target vectors.
12474         * inftarg.c (inftarg_set_find_memory_regions): New function.
12475         Allow to_find_memory_regions vector to be taken over.
12476         (inftarg_set_make_corefile_notes): New function.
12477         Allow to_make_corefile_notes vector to be taken over.
12478         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12479         interface layer if not target_has_execution (may be a corefile).
12480         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12481         * config/sparc/sun4sol2.mh: Ditto.
12482         * config/alpha/alpha-linux.mh: Ditto.
12483         * config/arm/linux.mh: Ditto.
12484         * config/i386/x86-64linux.mh: Ditto.
12485         * config/ia64/linux.mh: Ditto.
12486         * config/m68k/linux.mh: Ditto.
12487         * config/mips/linux.mh: Ditto.
12488         * config/powerpc/linux.mh: Ditto.
12489         * config/sparc/linux.mh: Ditto.
12490
12491 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12492
12493         * arm-linux-nat.c: Remove references to regcache.c internal data
12494         (registers[] and register_valid[]).
12495
12496 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12497
12498         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12499         so that attaching to a pid will automatically read the process's
12500         symbol file and shlibs.
12501         * Makefile.in: Add rule for linux-proc.o.
12502         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12503         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12504         * config/arm/linux.mh: Ditto.
12505         * config/i386/linux.mh: Ditto.
12506         * config/i386/x86-64linux.mh: Ditto.
12507         * config/ia64/linux.mh: Ditto.
12508         * config/m68k/linux.mh: Ditto.
12509         * config/mips/linux.mh: Ditto.
12510         * config/powerpc/linux.mh: Ditto.
12511         * config/sparc/linux.mh: Ditto.
12512
12513 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12514
12515         * win32-nat.c: Add i386-tdep.h dependency.
12516
12517 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12518
12519         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12520         instead of bfd_get_arch_size.  Don't bail out just because
12521         there's no exec_bfd.
12522
12523         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12524         * p-valprint.c (pascal_object_print_value): Ditto.
12525         * somread.c (som_symtab_read): Ditto.
12526         * symfile.c (simple_free_overlay_region_table): Ditto.
12527         * valops.c (value_assign): Ditto.
12528
12529         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12530         use tilde_expand and strerror for opening save-tracepoints file.
12531
12532         * thread-db.c (thread_db_new_objfile): Indendation fix.
12533
12534         * infptrace.c (GDB_MAX_ALLOCA): New define.
12535         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12536         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12537         can be overridden with whatever value is appropriate to the host).
12538         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12539         alloca to allocate potentially large buffer.
12540         * rs6000-nat.c (child_xfer_memory): Ditto.
12541         * symm-nat.c (child_xfer_memory): Ditto.
12542         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12543
12544 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12545
12546         From Nick Clifton  <nickc@redhat.com>
12547         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12548
12549 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12550
12551         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12552         Don't use exec_bfd if it's NULL.
12553
12554 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12555
12556         * valops.c (value_arg_coerce): Fix formatting.
12557
12558 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12559
12560         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12561         * gnu-nat.c: Ditto.
12562
12563 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12564
12565         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12566         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12567         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12568         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12569         z8k-coff have not been multi-arched.  Update z8k-coff build
12570         status.
12571
12572 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12573
12574         * MAINTAINERS: Mark a29k target as obsolete.
12575         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12576         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12577         comments.
12578         * NEWS: Note that a29k targets are obsolete.
12579         * a29k-tdep.c: Mark as obsolete.
12580         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12581         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12582         a29k-*-vxworks* targets as obsolete.
12583         * remote-adapt.c: Obsolete.
12584         * remote-eb.c: Obsolete.
12585         * remote-mm.c: Obsolete.
12586         * remote-udi.c: Obsolete.
12587         * config/a29k/a29k-udi.mt: Obsolete.
12588         * config/a29k/a29k.mt: Obsolete.
12589         * config/a29k/tm-a29k.h: Obsolete.
12590         * config/a29k/tm-vx29k.h: Obsolete.
12591         * config/a29k/vx29k.mt: Obsolete.
12592
12593 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12594
12595         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12596         with BFD_ENDIAN_BIG.
12597
12598 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12599
12600         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12601         * configure, config.in: Re-generate.
12602         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12603         * defs.h: Do not include <endian.h>.
12604
12605 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12606
12607         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12608         * config.in: Regenerate.
12609         * configure.in: Update copyright years.
12610         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12611         * configure: Regenerate.
12612         * i386bsd-nat.c: Update copyright years.
12613         (fill_gregset): Use regcache_collect.
12614         (fetch_inferior_registers): Only fetch integer registers
12615         if requested to do so.  Add support for XMM registers
12616         using PT_GETXMMREGS.
12617         (store_inferior_registers): Only store integer registers
12618         if requested to do so.  Add support for XMM registers
12619         using PT_SETXMMREGS.
12620         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12621         (store_inferior_registers): Remove.
12622         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12623         (fetch_elfcore_registers): New function.
12624         (i386nbsd_elfcore_fns): New.
12625         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12626         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12627         i386bsd-nat.o.
12628         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12629         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12630         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12631         * config/i386/tm-nbsd.h: Update copyright years.
12632         (HAVE_SSE_REGS): Define.
12633         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12634         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12635         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12636         (SIGCONTEXT_PC_OFFSET): Remove.
12637         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12638
12639 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12640
12641         * configure.tgt: Remove powerpc-*-macos* target.
12642         * config/m68k/xm-mpw.h: Delete file.
12643         * config/xm-mpw.h: Delete file.
12644         * ser-mac.c: Delete file.
12645         * mpw-make.sed: Delete file.
12646         * mpw-config.in: Delete file.
12647         * mac-xdep.c: Delete file.
12648         * mac-gdb.r: Delete file.
12649         * mac-defs.h: Delete file.
12650         * mac-nat.c: Delete file.
12651         * config/powerpc/macos.mh: Delete file.
12652         * config/powerpc/macos.mt: Delete file.
12653         * config/powerpc/nm-macos.h: Delete file.
12654         * config/powerpc/tm-macos.h: Delete file.
12655         * source.c (openp, open_source_file): Remove obsolete code.
12656         * top.c (gdb_readline): Ditto.
12657         * utils.c (query): Ditto.
12658         * event-top.c (display_gdb_prompt): Ditto.
12659         * Makefile.in (ser-mac.o): Delete obsolete target.
12660         * NEWS: Update.
12661
12662 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12663
12664         * defs.h (BIG_ENDIAN): Delete macro definition.
12665         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12666         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12667         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12668         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12669         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12670         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12671         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12672         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12673         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12674         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12675         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12676         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12677         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12678         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12679         * gdbarch.c: Re-generate.
12680
12681 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12682
12683         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12684         for core files.
12685
12686 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12687
12688         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12689
12690 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12691
12692         * value.h (value_ptr): Delete typedef.
12693
12694 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12695
12696         * i386nbsd-nat.c: Update copyright years.
12697         Include i386-tdep.h.
12698
12699 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12700
12701         * stabsread.c: Update copyright years.
12702
12703         From Debashis Mahata <debashis.mahata@wipro.com>:
12704         (read_struct_fields): Deal with Sun C compiler erroneous stab
12705         output for structs and unions.
12706         Fix PR gdb/269.
12707
12708 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12709
12710         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12711         prototype.
12712
12713 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12714
12715         * cp-abi.c: Fix whitespace.
12716         (baseclass_offset): New wrapper function.
12717         * cp-abi.h (baseclass_offset): Add prototype.
12718         (struct cp_abi_ops): Add baseclass_offset pointer.
12719
12720         * valops.c (vb_match): Move to...
12721         * gnu-v2-abi.c (vb_match): here.
12722         * valops.c (baseclass_offset): Move to...
12723         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12724
12725         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12726
12727         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12728         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12729         * hpacc-abi.c (init_hpacc_ops): Likewise.
12730
12731 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12732
12733         * valops.c (find_overload_match): Accept obj as a
12734         reference parameter.  Update it before returning.
12735         * value.h (find_overload_match): Update prototype.
12736         * eval.c (evaluate_subexp_standard): Pass object to
12737         find_overload_match by reference.
12738
12739 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12740
12741         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12742         register attribute from value declarations.
12743         * valops.c: Ditto.
12744         * value.h: Ditto.
12745         * scm-lang.c (scm_lookup_name): Ditto.
12746
12747 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12748
12749         Abstract the functionality of iterating over mapped memory
12750         regions into a general purpose iterator function.
12751         * procfs.c (iterate_over_mappings): New function, general purpose
12752         iterator for memory sections.
12753         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12754         (solib_mappings_callback): New function, callback for above.
12755         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12756         (info_mappings_callback): New function, callback for above.
12757
12758         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12759
12760 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12761
12762         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12763         * i386-tdep.c: Include "elf-bfd.h".
12764         (process_note_abi_tag_sections): New function.
12765         (i386_gdbarch_init): Add code to recognize various OS/ABI
12766         combinations.
12767
12768         * maint.c (_initialize_maint_cmds): Add missing \ in
12769         string-literal.
12770
12771 For older changes see ChangeLog-2001
12772 \f
12773 Local Variables:
12774 mode: change-log
12775 left-margin: 8
12776 fill-column: 74
12777 version-control: never
12778 End: