2002-11-08 Andrew Cagney <ac131313@redhat.com>
[external/binutils.git] / gdb / ChangeLog
1 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
2
3         * Makefile.in (frame.o): Update dependencies.
4         * blockframe.c (current_frame, frame_obstack_alloc)
5         (frame_saved_regs_zalloc, get_current_frame)
6         (set_current_frame, create_new_frame)
7         (set_unwind_by_pc, get_next_frame)
8         (flush_cached_frames, reinit_frame_cache)
9         (frame_saved_regs_register_unwind)
10         (deprecated_generic_get_saved_register)
11         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
12         (_initialize_blockframe): Move frame code from here...
13         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
14         "annotate.h" and "dummy-frame.h".
15         (_initialize_frame): New function.
16
17 2002-11-08  Jim Blandy  <jimb@redhat.com>
18
19         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
20         when we finish a function a context.
21         * buildsym.h (outermost_context_p): New macro.
22         (Bug analyzed by David Edelsohn.)
23
24 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
25
26         * blockframe.c: Include "dummy-frame.h".
27         (struct dummy_frame, dummy_frame_stack)
28         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
29         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
30         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
31         (generic_save_call_dummy_addr, generic_pop_current_frame)
32         (generic_pop_dummy_frame, generic_fix_call_dummy)
33         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
34         dummy frame code from here...
35         * dummy-frame.c: ...to here.  New file.
36         * dummy-frame.h: New file.
37         (generic_call_dummy_register_unwind): Declare.
38         (generic_find_dummy_frame): Declare.
39         * Makefile.in (SFILES): Add dummy-frame.c.
40         (dummy-frame.o): Specify dependencies.
41         (dummy_frame_h): Define.
42         (COMMON_OBS): Add dummy-frame.o.
43         (blockframe.o): Update dependencies.
44
45 2002-11-08  Jim Blandy  <jimb@redhat.com>
46
47         * dwarf2read.c (read_func_scope): Restore local_symbols and
48         param_symbols after we finish the function context.  (Based on a
49         patch from David Edelsohn.)
50
51 2002-11-08  David Carlton  <carlton@math.stanford.edu>
52
53         * linespec.c (symbol_found): New function.
54         (minsym_found): New function.
55         (decode_line_1): Separate out some code into separate functions.
56
57 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
58
59         * i386-tdep.c (i386_frameless_signal_p): Make non static for
60         the benefit of the interix target.
61         * i386-tdep.h (i386_frameless_signal_p): Declare.
62
63 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
64
65         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
66         declaration that snuck in from change below.
67
68 2002-11-06  Andrew Cagney  <cagney@redhat.com>
69
70         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
71         all callers.
72         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
73         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
74         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
75         (i386_mxcsr_regnum_p): new function.  Use instead of
76         MXCSR_REGNUM_P.
77         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
78         (i386_sse_regnum_p): Declare.
79         (i386_mxcsr_regnum_p): Declare.
80         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
81         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
82         (IS_FP_REGNUM): Update definition.
83         (IS_FPU_CTRL_REGNUM): Update definition..
84         (IS_SSE_REGNUM): Update definition..
85         * i386v-nat.c (register_u_addr): Update.
86         * go32-nat.c (fetch_register): Update.
87         (store_register): Update.
88
89 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
90
91         Preparation work to convert the hppa targets to multiarch partial.
92
93         * hppa-tdep.c: Add new functions replacing macro bodies from
94         config/pa/tm-hppa.h. These function will be used to initialize
95         the gdbarch structure. Import some comments from tm-hppa.h,
96         and place them where appropriate, to avoid loosing them when
97         we cleanup this file.
98         (hppa_reg_struct_has_addr): New function.
99         (hppa_inner_than): New function.
100         (hppa_stack_align): New function.
101         (hppa_pc_requires_run_before_use): New function.
102         (hppa_instruction_nullified): New function.
103         (hppa_register_byte): New function.
104         (hppa_register_virtual_type): New function.
105         (hppa_store_struct_return): New function.
106         (hppa_cannot_store_register): New function.
107         (hppa_frame_args_address): New function.
108         (hppa_frame_locals_address): New function.
109         (hppa_smash_text_address): New function.
110         (hppa_coerce_float_to_double): New function. Requires the inclusion
111         of "language.h".
112
113         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
114
115         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
116         gdbarch-eligible macro to a call to the new associated function
117         created in hppa-tdep.c.
118         (INNER_THAN): Likewise.
119         (STACK_ALIGN): Likewise.
120         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
121         (INSTRUCTION_NULLIFIED): Likewise.
122         (REGISTER_BYTE): Likewise.
123         (REGISTER_VIRTUAL_TYPE): Likewise.
124         (STORE_STRUCT_RETURN): Likewise.
125         (CANNOT_STORE_REGISTER): Likewise.
126         (FRAME_ARGS_ADDRESS): Likewise.
127         (FRAME_LOCALS_ADDRESS): Likewise.
128         (SMASH_TEXT_ADDRESS): Likewise.
129         (COERCE_FLOAT_TO_DOUBLE): Likewise.
130         (ABOUT_TO_RETURN): Delete, as no longer used.
131
132 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
133
134         * printcmd.c (disassemble_command): Remove obsolete function.
135         (_initialize_printcmd): Do not create disassemble command here.
136         * cli/cli-cmds.c (disassemble_command): New function.  Implements
137         disassemble command.
138         (init_cli_cmds): Create disassemble command here instead.
139
140 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
141
142         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
143
144 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
145
146         * regcache.h (regcache_cooked_read_using_offset_hack)
147         (regcache_cooked_write_using_offset_hack): Delete declarations.
148         (register_changed): Delete declaration.
149         * regcache.c (regcache_cooked_read_using_offset_hack)
150         (regcache_cooked_write_using_offset_hack): Delete functions.
151         (cooked_xfer_using_offset_hack): Delete function.
152         (register_changed): Delete function.
153
154 2002-11-07  Jim Blandy  <jimb@redhat.com>
155
156         * macroscope.c: #include "complaints.h".
157         (sal_macro_scope): Cope with filenames that appear in the symtabs,
158         but not in the macro table.
159         * Makefile.in (macroscope.o): Record dependency.
160
161 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
162
163         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
164
165 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
166
167         * regcache.c (deprecated_registers_fetched): Update.
168         * regcache.h (deprecated_registers_fetched): Rename
169         registers_fetched.
170         * remote-vxsparc.c (vx_read_register): Update.
171         * remote-vxmips.c (vx_read_register): Update.
172         * remote-vx68.c (vx_read_register): Update.
173         * irix5-nat.c (fetch_core_registers): Update.
174         * mipsm3-nat.c (fetch_inferior_registers): Update.
175         * sun3-nat.c (fetch_inferior_registers): Update.
176         * symm-nat.c (fetch_inferior_registers): Update.
177         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
178         (fetch_core_registers): Update.
179         (fetch_kcore_registers): Update.
180         * mips-nat.c (fetch_inferior_registers): Update.
181         * corelow.c (get_core_registers): Update.
182         * a68v-nat.c (fetch_inferior_registers): Update.
183
184 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
185
186         Put in place the framework necessary for multiarching the hppa targets.
187         * hppa-tdep.c (hppa_gdbarch_init): New function.
188         (hppa_dump_tdep): New function.
189         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
190         tdep structure dumper.
191         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
192         until the multi-arching conversion has partially been completed.
193
194 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
195
196         * valops.c (value_assign): Merge lval_register case into
197         lval_reg_frame_relative.  Use frame_register and
198         regcache_cooked_write instead of get_saved_register and
199         write_register_bytes.  After flushing the register cache, try to
200         re-select the selected frame.
201
202 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
203
204         * regcache.h (deprecated_register_valid): Rename register_valid.
205         * regcache.c: Update.
206         * ia64-aix-nat.c: Update.
207         * i386gnu-nat.c: Update.
208         * alpha-nat.c: Update.
209         * sparc-nat.c: Update.
210         * lynx-nat.c: Update.
211         * remote-mips.c: Update.
212
213 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
214
215         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
216         to end of file, to be more consistent with the pratice followed
217         by other targets.
218
219 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
220
221         * infcmd.c: Include "reggroups.h" and <ctype.h>.
222         (print_float_info): Print registers in float_reggroup.
223         (print_vector_info): Print registers in vector_reggroup.
224         (default_print_registers_info): When all, print registers in
225         all_reggroup.  Otherwize, print registers in general_reggroup.
226         (registers_info): Rewrite.  Add support for register groups.
227         Eliminate a goto.
228
229 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
230
231         * symtab.c (methods_info): Delete. It has been ifdeffed out for
232         ages.
233         (symtab_symbol_info): Remove eons old ifdeffed out code.
234         (_initialize_symtab): Remove prehistoric disabled 'info methods'
235         command.
236
237 2002-11-06  Theodore A. Roth  <troth@openavr.org>
238
239         * c-exp.y: Add missing semi-colons.
240         * f-exp.y: Add missing semi-colons.
241         * m2-exp.y: Add missing semi-colons.
242         * p-exp.y: Add missing semi-colons.
243         Add empty action to start rule to avoid a type clash error when
244         building with bison >= 1.50.
245
246 2002-11-06  Jim Blandy  <jimb@redhat.com>
247
248         * macrotab.h (struct macro_source_file): Doc fix.
249
250 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
251
252         * varobj.c (child_exists, cplus_number_of_children): Change
253         STREQ macro references to strcmp.
254         (cplus_name_of_child): Change code to handle the fact that
255         fields are not necessarily contiguous with regards to their 
256         access control. This is a fix for PR gdb/792.
257
258 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
259
260         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
261         * gdbarch.h, gdbarch.c: Regnerate.
262         * frame.h (frame_register): Declare.
263         * frame.c (frame_register): New function.
264         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
265         GET_SAVED_REGISTER, otherwize call
266         generic_unwind_get_saved_register.
267         (frame_register_read): Use frame_register instead of
268         get_saved_register.
269
270 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
271         
272         From Jim Ingham  <jingham@apple.com>:
273         * event-top.c (gdb_disable_readline): New function.
274         (_initialize_event_loop): Move comment.
275
276 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
277
278         * event-loop.c (start_event_loop): Add comment.
279         Update copyright.
280
281 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
282
283         * infcmd.c (default_print_registers_info): Do not call
284         PRINT_REGISTER_HOOK.
285
286 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
287
288         * sparc-tdep.c (sparc_print_register_hook): Make static.
289         (sparc_print_registers_info): New function.
290         (sparc_do_registers_info): New function.
291         (sparclet_print_registers_info): New function.
292         (sparclet_do_registers_info): New function.
293         (do_sparc_print_registers_info): New function.
294         (sparc_print_registers): New static function, clone of infcmd.c's
295         default_print_registers_info.
296         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
297         (sparclet_do_registers_info): Declare.
298         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
299         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
300         Re-define.
301         (sparc_do_registers_info): Declare.
302         (PRINT_REGISTER_HOOK): Delete macro.
303         (sparc_print_register_hook): Delete declaration.
304
305 2002-11-05  David Carlton  <carlton@math.stanford.edu>
306
307         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
308         functions.
309         (lookup_symbol_aux_local): New function.
310         (lookup_symbol_aux_symtabs): New function.
311         (lookup_symbol_aux_psymtabs): New function.
312
313 2002-11-05  David Carlton  <carlton@math.stanford.edu>
314
315         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
316         previous values of 'objfile' and 'block'.
317
318 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
319
320         * values.c (value_change_enclosing_type): Set 
321         enclosing_type field correctly also for the case where 
322         more memory needs to be allocated.
323
324 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
325
326         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
327         of puts_filtered.
328
329         * i387-tdep.c (i387_print_float_info): Replace calls to
330         register_read and deprecated_read_register_gen with calls to
331         frame_register_read, and make the necessary adjustments to the
332         surrounding code.
333
334 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
335
336         * gdbarch.sh (register_reggroup_p): Allow default value.
337         * gdbarch.h, gdbarch.c: Regenerate.
338
339 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
340
341         * regcache.h: Add coment indicating replacements for deprecated
342         functions.
343
344 2002-11-02  Andrew Cagney  <cagney@redhat.com>
345
346         * reggroups.h, reggroups.c: New files.
347         * regcache.c: Include "reggroups.h".
348         (enum regcache_dump_what): Add `regcache_dump_groups'.
349         (regcache_dump): Contract size of the "Type" column.  When
350         specified, dump the register's groups.
351         (maintenance_print_register_groups): New function.
352         (_initialize_regcache): Add command `maint print register-groups'.
353         * Makefile.in (COMMON_OBS): Add reggroups.o
354         (SFILES): Add reggroups.c.
355         (reggroups_h): Define.
356         (regcache.o, gdbarch.o): Update dependencies.
357         (reggroups.o): Specify dependencies.
358         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
359         Add opaque declaration for `struct reggroup' in generated .h file.
360         Include "reggroups.h" in generated .c file.
361         gdbarch.h, gdbarch.c: Re-generate.
362
363 2002-11-02  Andrew Cagney  <cagney@redhat.com>
364
365         * regcache.h (deprecated_read_register_gen): Rename
366         read_register_gen.
367         (deprecated_write_register_gen): Rename write_register_gen.
368         * i387-tdep.c: Update.
369         * x86-64-linux-nat.c: Update
370         * wince.c: Update.
371         * thread-db.c: Update.
372         * win32-nat.c: Update.
373         * mips-tdep.c: Update.
374         * d10v-tdep.c: Update.
375         * cris-tdep.c: Update.
376         * remote-sim.c: Update.
377         * remote-rdi.c: Update.
378         * remote-rdp.c: Update.
379         * frame.c: Update.
380         * target.c: Update.
381         * blockframe.c: Update.
382         * x86-64-tdep.c: Update.
383         * xstormy16-tdep.c: Update.
384         * sh-tdep.c: Update.
385         * s390-tdep.c: Update.
386         * rs6000-tdep.c: Update.
387         * sparc-tdep.c: Update.
388         * i386-tdep.c: Update.
389         * dwarf2cfi.c: Update.
390         * regcache.c: Update.
391
392 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
393
394         New interix-specific files:
395         * config/i386/nm-interix.h: New file.
396         * config/i386/interix.mh: New file.
397         * config/i386/interix.mt: New file.
398         * i386-interix-nat.c: New file.
399         * i386-interix-tdep.c: New file.
400
401 2002-11-01  Andrew Cagney  <cagney@redhat.com>
402
403         * frame.h (deprecated_generic_get_saved_register): Rename
404         generic_get_saved_register.
405         * blockframe.c (deprecated_generic_get_saved_register): Update.
406         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
407         (xstormy16_frame_saved_register): Update.
408         * sh-tdep.c (sh_gdbarch_init): Update.
409         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
410         * ia64-tdep.c (ia64_get_saved_register): Update.
411         * cris-tdep.c (cris_gdbarch_init): Update.
412         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
413         * arm-tdep.c (arm_gdbarch_init): Update.
414
415 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
416
417         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
418
419 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
420
421         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
422         trampolines in sigaction.
423
424 2002-10-31  Andrew Cagney  <cagney@redhat.com>
425
426         * h8300-tdep.c: Include "gdb_assert.h".
427         (h8300_print_register): Add gdbarch, file and frame parameters.
428         Use frame_read_unsigned_register to read the register's value.
429         Use fprintf_filtered to display output.
430         (h8300_print_registers_info): Replace h8300_do_registers_info.
431         (h8300_gdbarch_init): Set print_registers_info.
432
433 2002-10-31  Andrew Cagney  <cagney@redhat.com>
434
435         * frame.c (frame_read_unsigned_register): New function.
436         (frame_read_signed_register): New function.
437         * frame.h (frame_read_unsigned_register): Declare.
438         (frame_read_signed_register): Declare.
439
440 2002-10-31  Andrew Cagney  <cagney@redhat.com>
441
442         * h8500-tdep.c (h8500_print_registers_info): New static function,
443         clone of infcmd.c's default_print_registers_info.
444         (h8500_do_registers_info): New funtion.
445         (h8500_print_register_hook): Rename print_register_hook, make
446         static.
447
448         * config/h8500/tm-h8500.h: Update copyright.
449         (DEPRECATED_DO_REGISTERS_INFO): Define.
450         (h8500_do_registers_info: Declare.
451         (PRINT_REGISTER_HOOK): Delete macro.
452         (print_register_hook): Delete function.
453
454 2002-10-31  Andrew Cagney  <cagney@redhat.com>
455
456         * z8k-tdep.c (z8k_print_register_hook): Make static.
457         (z8k_print_registers_info): New static function, clone of
458         infcmd.c's default_print_registers_info.
459         (z8k_do_registers_info): New function.  Wrap
460         z8k_print_registers_info.
461         * config/z8k/tm-z8k.h: Update copyright.
462         (PRINT_REGISTER_HOOK): Delete macro.
463         (z8k_print_register_hook): Delete declaration.
464         (DEPRECATED_DO_REGISTERS_INFO): Define.
465         (z8k_do_registers_info): Declare.
466
467 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
468
469         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
470         as this is already provided by value.h, and was actually causing
471         a compilation error because of a conflict in parameter type
472         declaration due to a missing const keyword.
473         (low_text_segment_addres): Fix a compilation warning.
474
475 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
476
477         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
478         registers without a name.
479         (mips_linux_cannot_store_register): Don't store registers without
480         a name.
481
482 2002-10-28  David Carlton  <carlton@math.stanford.edu>
483
484         * symtab.c (find_addr_symbol): Delete.  (It was already commented
485         out.)
486         * symtab.h: Delete prototype for find_addr_symbol.
487
488 2002-10-26  Andrew Cagney  <cagney@redhat.com>
489
490         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
491         DO_REGISTERS_INFO.
492         gdbarch.h, gdbarch.c: Re-generate.
493         * infcmd.c (default_print_registers_info): Update reference.
494         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
495         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
496         * sh-tdep.c (sh_gdbarch_init): Ditto.
497         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
498         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
499
500 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
501
502         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
503         cfi_init_extra_frame_info.
504         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
505         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
506
507         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
508         target where necessary.  Add more comments and remove the ones
509         that don't provide any useful information.
510
511         * i386-tdep.c (i386_frame_saved_pc): Replace call to
512         deprecated_read_register_dummy with
513         frame_unwind_unsigned_register.
514
515         * i386-tdep.c (i386_extract_struct_value_address): Use
516         regcache_raw_read_unsigned instead of
517         regcache_cooked_read_unsigned since we know that the register
518         we're reading isn't a pseudo register.  Rename variable 'val' into
519         the more descriptive 'addr'.
520
521         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
522         (x86_64_push_return_address): Add comment.
523         (x86_64_pop_frame): Make static.
524         (examine_argument): Clarify comment.
525         (x86_64_skip_prologue): Make prolog_expact variable static.
526
527         * dwarf2cfi.c: Fix some formatting problems.
528         (context_cpy, read_encoded_pointer): Clarify comments.
529
530         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
531         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
532         i386 target back into x86_64_gdbarch_init.  Add some comments and
533         remove meaningless ones.
534
535 2002-10-25  Andrew Cagney  <cagney@redhat.com>
536
537         * complaints.h (struct deprecated_complaint): Rename `struct
538         complaint'.
539         * complaints.c (complain): Update.
540         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
541         incorrect comment indicating that "symfile.h" was being included
542         for the `struct complaint' definition.
543         * remote-vx.c: Update.
544         * objc-lang.c: Update.
545         * xcoffread.c: Update.
546         * hpread.c: Update.
547         * mdebugread.c: Update.
548         * stabsread.c: Update.
549         * dwarf2read.c: Update.
550         * dwarfread.c: Update.
551         * elfread.c: Update.
552         * coffread.c: Update.
553         * stabsread.h: Update.
554         * dbxread.c: Update.
555         * buildsym.c: Update.
556         * gdbtypes.c: Update.
557         * macrotab.c: Update.
558
559 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
560
561         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
562         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
563         (x86_64_init_abi): ...new function.
564
565         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
566         * i386v-nat.c: Include "i386-tdep.h".
567
568 2002-10-25  Andrew Cagney  <cagney@redhat.com>
569
570         * gdbtypes.c (address_space_name_to_int): Update.
571         (address_space_int_to_name): Update.
572         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
573         multi-arch predicate.
574         (address_class_name_to_type_flags): Ditto.
575         * gdbarch.h, gdbarch.c: Re-generate.
576         
577         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
578
579 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
580
581         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
582
583 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
584
585         * symtab.h (INIT_SAL): Delete macro.
586         (init_sal): Export.
587         * symtab.c (init_sal): New function.
588
589         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
590         to init_sal function call.
591         (find_sal_from_funcs_and_line): Ditto.
592         (all_sals_for_line): Ditto. 
593         * breakpoint.c (create_internal_breakpoint): Ditto. 
594         (create_fork_vfork_event_catchpoint): Ditto. 
595         (create_exec_event_catchpoint): Ditto. 
596         (parse_breakpoint_sals): Ditto. 
597         (watch_command_1): Ditto. 
598         (handle_gnu_4_16_catch_command): Ditto.
599         (clear_command): Ditto. 
600         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
601         * infcmd.c (run_stack_dummy): Ditto. 
602         * infrun.c (process_event_stop_test): Ditto.
603         (check_sigtramp2): Ditto.
604         (step_over_function): Ditto. 
605         * linespec.c (decode_line_2): Ditto. 
606         (decode_line_1): Ditto. 
607         * source.c (line_info): Ditto. 
608         * symtab.c (find_pc_sect_line): Ditto.
609
610 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
611
612         * dwarf2cfi.c (struct context)
613         (struct context_reg): Moved to dwarf2cfi.h
614         (context_alloc, frame_state_alloc, context_cpy):
615         Made extern instead of static, removed prototypes.
616         * dwarf2cfi.h (struct context)
617         (struct context_reg): New, moved from dwarf2cfi.c
618         (context_alloc, frame_state_alloc, context_cpy):
619         New prototypes.
620         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
621         Changed from static to extern.
622         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
623         (LINUX_SIGCONTEXT_FP_OFFSET)
624         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
625         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
626         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
627         * x86-64-tdep.c (x86_64_gdbarch_init): Several
628         set_gdbarch_*() calls now use x86-64 specific functions 
629         instead of DWARF2 CFI ones.
630         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
631         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
632         (x86_64_init_extra_frame_info): New prototypes.
633         
634 2002-10-23  David Carlton  <carlton@math.stanford.edu>
635
636         * linespec.c: #include "parser-defs.h".
637         Delete prototype for find_template_name_end.
638         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
639
640 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
641
642         * NEWS: add recent mi fixes.
643         * varobj.c (struct varobj): Add new "updated" flag.
644         (new_variable): Default "updated" flag to 0.
645         (varobj_set_value): Set "updated" flag to 1 if value
646         changes.
647         (varobj_update): Check varobj "updated" flag before
648         comparing old and refreshed values.  Fix for
649         PR gdb/702.
650
651 2002-10-23  David Carlton  <carlton@math.stanford.edu>
652
653         * parse.c (parse_exp_1): Use BLOCK_START.
654         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
655         SYMBOL_BLOCK_VALUE.
656         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
657
658 2002-10-23  David Carlton  <carlton@math.stanford.edu>
659
660         * symtab.c: Delete cplusplus_hint.
661         Delete prototype for find_template_name_end.
662
663 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
664
665         * symtab.h: Update comment.
666
667 2002-10-23  Michael Snyder  <msnyder@redhat.com>
668
669         * printcmd.c (address_info): Restore quotes in output.
670         * valops.c (value_of_local): Restore quotes in error message.
671
672 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
673
674         * symtab.c (symbol_demangled_name): New function.
675         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
676         turning most of it into a function.
677         (symbol_demangled_name): Export.
678
679 2002-10-23  Michael Snyder  <msnyder@redhat.com>
680
681         * valops.c (value_of_local): Restore quotes in error message.
682
683 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
684
685         * symtab.c (symbol_init_language_specific): New function.
686         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
687         turning most of it into a function.
688         (symbol_init_language_specific): Export.
689
690 2002-10-23  David Carlton  <carlton@math.stanford.edu>
691
692         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
693         (dwarf_attr_name): Ditto.
694         (dwarf_type_encoding_name): Ditto.
695         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
696         (process_die): Handle DW_TAG_namespace,
697         DW_TAG_imported_declaration, DW_TAG_imported_module.
698         (read_namespace): New function.
699
700 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
701
702         * configure.in: Define NEW_PROC_API on Interix too.
703         * configure: Regenerate.
704
705 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
706
707         * configure: Regenerate using the proper version of autoconf.
708
709 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
710
711         * findvar.c (read_var_value): Temporarily disable TLS code, until
712         complete TLS support is added.
713
714 2002-10-21  Jim Blandy  <jimb@redhat.com>
715             Elena Zannoni  <ezannoni@redhat.com>
716
717         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
718         for thread local storage locations.
719         (struct symbol): Add objfile field.
720         (SYMBOL_OBJFILE): Define.
721         * dwarf2read.c (is_thread_local): New static variable.
722         (new_symbol): If variable is in thread local fill in address class
723         and objfile appropriately.
724         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
725         stack operation.
726         * printcmd.c (address_info): Print the information for thread
727         local storage variable.
728         * findvar.c (read_var_value): In case of thread local variable,
729         defer to the target vector code to compute address.
730
731 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
732
733         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
734         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
735
736 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
737
738         * symtab.h (address_class):  Rename
739         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
740         * hpread.c (hpread_process_one_debug_symbol): Ditto.
741         * printcmd.c (address_info): Ditto.
742         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
743
744 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
745
746         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
747         DBREG_DRX macro to acces debug registers.
748
749         * Makefile.in (i386obsd-tdep.o): New target.
750
751         * solib-sunos.c: Include "bcache.h" and "regcache.h".
752         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
753
754         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
755         * config/i386/obsd.mt: New file.
756         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
757         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
758         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
759         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
760         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
761         * i386obsd-tdep.c: New file.
762
763 2002-10-19  Adam Fedor  <fedor@gnu.org>
764
765         * objc-exp.y (name_not_typename): Fix invalid comment.  
766
767 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
768
769         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
770         to allocate partial syms and macro byte caches.
771
772 2002-10-18  David Carlton  <carlton@math.stanford.edu>
773
774         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
775
776 2002-10-18  Adam Fedor  <fedor@gnu.org>
777
778         * stabsread.c (find_name_end): New function.
779         (define_symbol): Use it.
780
781 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
782
783         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
784         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
785         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
786         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
787
788 2002-10-17  David Carlton  <carlton@math.stanford.edu>
789
790         * symfile.h: Add opaque declaration for struct obstack.
791         Declare obsavestring to take a const char *.
792         * symfile.c (obsavestring): Make first argument a const char *.
793
794 2002-10-16  Adam Fedor  <fedor@gnu.org>
795
796         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
797         names when matching breakpoints in current file.
798
799 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
800
801         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
802         (read_tag_pointer_type): Add address class support.
803         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
804         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
805         New methods.
806         * gdbarch.h, gdbarch.c: Regenerate.
807         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
808         (make_type_with_address_space, recursive_type_dump): Add address
809         class support.
810         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
811         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
812         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
813
814 2002-10-16  Klee Dienes  <kdienes@apple.com>
815
816         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
817         to get the last character of a char[] buffer, not
818         name[sizeof(vptr_name)-1].
819
820 2002-10-14  Adam Fedor  <fedor@gnu.org>
821
822         * symtab.h: New objc_specific struct.
823         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
824         (SYMBOL_DEMANGLED_NAME): Likewise.
825
826 2002-10-14  Adam Fedor  <fedor@gnu.org>
827
828         * symfile.c (init_filename_language_table): Add ObjC file extension.
829
830 2002-10-14  Adam Fedor  <fedor@gnu.org>
831
832         * utils.c (puts_filtered_tabular): New function.
833         (fprintf_symbol_filtered): Get ObjC demangled name.
834         * defs.h (puts_filtered_tabular): Declared.
835
836 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
837
838         * c-lang.h (c_type_print_varspec_prefix): Delete.
839         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
840         ``need_post_space'' parameter.  Adjust all callers.
841
842 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
843  
844         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
845         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
846         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
847         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
848
849 2002-10-13  Adam Fedor  <fedor@gnu.org>
850
851         * source.c (print_source_lines): Update comments.
852
853 2002-10-13  Adam Fedor  <fedor@gnu.org>
854
855         * valops.c (value_of_local): New function.
856         (value_of_this): Use it.
857         * value.h (value_of_local): Declared.
858
859 2002-10-13  Adam Fedor  <fedor@gnu.org>
860
861         * parse.c: (length_of_subexp, prefixify_subexp): Handle
862         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
863
864 2002-10-12  Adam Fedor  <fedor@gnu.org>
865
866         * language.c (binop_result_type): Add language_objc to case.
867         (integral_type): Likewise.
868         (character_type): Likewise.
869         (string_type): Likewise.
870         (boolean_type): Likewise.
871         (structured_type): Likewise.
872         (binop_type_check): Likewise.
873
874 2002-10-11  Adam Fedor  <fedor@gnu.org>
875
876         * printcmd.c (address_info): Print 'self' for ObjC.
877
878 2002-10-11  Adam Fedor  <fedor@gnu.org>
879
880         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
881         OP_SELF.
882
883 2002-10-11  Adam Fedor  <fedor@gnu.org>
884
885         * language.h (CAST_IS_CONVERSION): Add language_objc.
886
887 2002-10-11  Adam Fedor  <fedor@gnu.org>
888
889         * defs.h (enum language): Add language_objc.
890
891 2002-10-11  Klee Dienes  <kdienes@apple.com>
892
893         * corefile.c (read_memory_typed_address): New function.
894         * gdbcore.h (read_memory_typed_address): Add prototype.
895         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
896         to read a value destined for a CORE_ADDR, not read_memory_integer.
897         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
898         (f77_get_dynamic_lowerbound): Ditto.
899
900 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
901
902         * utils.c (string_to_core_addr): After turning string into
903         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
904         which will do necessary sign-extension, etc.
905
906 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
907
908         * c-exp.y (THIS): Delete token and grammar rule.
909         (yylex): Don't return THIS.
910         * cp-valprint.c (vtbl_ptr_name_old): Delete.
911         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
912         * demangle.c (cplus_markers): Update comment.  Put '$'
913         first.  Remove CPLUS_MARKER.
914         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
915         * jv-exp.y (THIS): Delete token and grammar rule.
916         (yylex): Don't return THIS.
917         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
918         * objc-exp.y (THIS): Delete token and grammar rule.
919         (yylex): Don't return THIS.
920         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
921         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
922         (read_member_functions): Likewise for opname.
923         (read_tilde_fields): Use is_cplus_marker.
924
925         * defs.h (CPLUS_MARKER): Don't define.
926         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
927         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
928         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
929         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
930         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
931
932         * config/i386/tm-i386v4.h: Delete file.
933         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
934         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
935         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
936         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
937         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
938         * config/i386/i386sco5.mt (TM_FILE): Likewise.
939         * config/i386/i386v4.mt (TM_FILE): Likewise.
940         * config/i386/ncr3000.mt (TM_FILE): Likewise.
941
942 2002-10-10  Marko Mlinar  <markom@opencores.org>
943
944         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
945         accidentially not commited 2002-10-09
946         * gdbarch.h, gdbarch.c: Re-generate.
947
948 2002-10-09  Marko Mlinar  <markom@opencores.org>
949
950         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
951         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
952         * gdbarch.h, gdbarch.c: Re-generate.
953
954 2002-10-08  Petr Sorfa <petrs@caldera.com>
955
956         Revised and re-submitted by John Wolfe <jlw@caldera.com>
957
958         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
959         so we can work on more than one compilation unit at a time.  This
960         helps prepare GDB to handle inter-CU die references.
961         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
962         the code to be defined before struct comp_unit_head.
963         (comp_unit_head): Added new members - offset, cu_head,
964         begin_die, next and dwarf2_abbrevs.
965         (dwarf2_abbrevs): Removed single static var; now member of
966         struct comp_unit_head.
967         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
968         members.
969         (psymtab_to_symtab_1): Changed to work with the new
970         struct comp_unit_head.
971         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
972         constructs the dwarf2_abbrevs[] inside the cu_header.
973         (dwarf2_empty_abbrev_table): Now expects a ptr to a
974         dwarf2_abbrev table to clean up.
975         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
976         handling of dwarf2_abbrevs inside the cu_header.
977         (read_partial_die): Now supports the call to the new
978         dwarf2_lookup_abbrev.
979         (read_full_die): Now supports the call to the new
980         dwarf2_lookup_abbrev.
981
982 2002-10-06  Christopher Faylor  <cgf@redhat.com>
983
984         * Makefile.in (install-gdbtk): Add missing continuation backslash to
985         insure that shell variables, such as "transformed_name" are propagated
986         to later shell statements in rule.
987
988 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
989
990         * config/i386/nm-i386sco.h: Add protection against
991         multiple-inclusion.  Include "i386/nm-i386v.h".
992         (REGISTER_U_ADDR): Remove define.
993         (i386_register_u_addr): Remove prototype.
994
995 2002-10-04  Michael Snyder  <msnyder@redhat.com>
996
997         * m32r-stub.c (handle_exception): Make sure exception is "trap"
998         before treating it as a single-step event.
999
1000 2002-10-03  Adam Fedor  <fedor@gnu.org>
1001
1002         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
1003         (objc_demangle): Remove assignment in if statements, Replace
1004         free with xfree.
1005         (add_msglist): Likewise.
1006         (end_msglist): Likewise.
1007         (complare_selectors): Likewise.
1008         (selectors_info): Likewise.
1009         (compare_classes): Likewise.
1010         (classes_info): Likewise.
1011         (print_object_command): Likewise.
1012         (find_objc_msgcall_submethod): Replace PTR with void *.
1013         * objc-lang.h: Remove check for __STDC__.
1014
1015 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1016
1017         * ui-out.h (ui_out_field_fmt_int): New prototype.
1018         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1019         of field width and alignment.
1020         * stack.c (print_frame_info_base): When printing frame level, use
1021         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
1022         PR gdb/192
1023
1024 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1025
1026         * MAINTAINERS: Add self to Write After Approval list.
1027
1028 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1029
1030         * infcmd.c (interrupt_target_command_wrapper): Delete.
1031         (interrupt_target_command): Make non static.
1032         (nofp_registers_info): Make static.
1033         * stack.c (return_command_wrapper): Delete.
1034         (return_command): Make non static.
1035
1036 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1037
1038         * event-top.c (gdb_setup_readline): New function. Code moved from
1039         _initialize_event_loop().
1040         (_initialize_event_loop): Call gdb_setup_readline().
1041
1042 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1043
1044         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1045         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1046         * gdbarch.h, gdbarch.c: Re-generate.
1047
1048 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
1049
1050         Fix PR gdb/778
1051         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1052         before recursing.
1053         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1054         of fill_in_vptr_fieldno.
1055
1056 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1057
1058         * inferior.h (registers_info, stepi_command, nexti_command,
1059         continue_command, interrupt_target_command): Export from infcmd.c.
1060         * frame.h (args_info, selected_frame_level_changed_hook,
1061         return_command): Export from stack.c.
1062         * v850ice.c (stepi_command, nexti_command, continue_command): use
1063         prototypes from inferior.h.
1064         * tracepoint.c (registers_info, args_info, locals_info): Use
1065         prototypes from frame.h and inferior.h.
1066         * Makefile.in (mi-main.o): Add dependency on frame.h.
1067
1068 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1069
1070         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1071         value in register 3 adjusted by ppc_gp0_regnum.
1072
1073         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1074
1075 2002-10-02  Marko Mlinar <markom@opencores.org>
1076
1077         * MAINTAINERS: Add myself to the Write After Approval list.
1078
1079 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
1080
1081         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1082         of the section for the N64 ABI, fixed.
1083
1084         * config/mips/tm-irix6.h: Include solib.h.
1085
1086 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
1087
1088         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1089         GNU operators.
1090
1091 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1092
1093         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1094         and that "mi0" syntax has been removed.
1095
1096 2002-09-30  David Carlton  <carlton@math.stanford.edu>
1097
1098         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1099         * ppc-sysv-tdep.c: #include "gdb_string.h".
1100         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1101         pacify GCC.
1102
1103 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1104
1105         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1106         "vrsave"'s register number.
1107
1108 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1109
1110         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1111         use frame_unwind_signed_register to obtain the PC.
1112         (mips_frame_chain): Handle a generic dummy frame.
1113         (mips_init_extra_frame_info): When a generic dummy frame, don't
1114         re-compute the frame base.
1115         (mips_pop_frame): Handle generic dummy frames.
1116         (mips_gdbarch_init): When generic dummy frames, set
1117         use_generic_dummy_frames, push_dummy_frame to
1118         generic_push_dummy_frame, pc_in_call_dummy to
1119         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1120         generic_save_dummy_frame_tos.
1121
1122 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1123
1124         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
1125         against TOP when TOP was explictly set.
1126         (generic_push_dummy_frame): Set TOP to zero.
1127
1128 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
1129
1130         * event-loop.c (start_event_loop): Rename variable 'result' to
1131         'gdb_result', to avoid conflicts with upcoming intepreters changes.
1132
1133 2002-09-30  Keith Seitz  <keiths@redhat.com>
1134
1135         * gdb-events.sh (selected_thread_changed): New event.
1136         * gdb-events.c: Regenerated.
1137         * gdb-events.h: Regenerated.
1138
1139 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1140
1141         * MAINTAINERS: Add self to Write After Approval list.
1142
1143 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
1144
1145         * disasm.c: New file.  
1146         * disasm.h: New file.  
1147         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1148         (compare_lines): Ditto.
1149         (dump_insns): Ditto.
1150         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1151         argument.
1152         (do_assembly_only): Ditto.
1153         (do_disassembly): Renamed to gdb_disassembly and moved to
1154         disasm.c.  Sdded uiout argument.
1155         * Makefile.in: Add new files.  Reorder SFILES list. Update
1156         dependencies.  Include libgdb.a later in the insight executable.
1157
1158 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1159
1160         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1161         bfd/elf64-alpha-fbsd.c.
1162
1163 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1164
1165         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1166         i386gnu-tdep.c.
1167
1168 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1169
1170         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1171         __FUNCTION__.
1172         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1173         function name.
1174         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1175         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1176         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1177         (S_msg_sig_post_reply): Ditto.
1178         
1179 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
1180
1181         * sh-tdep.c (sh_use_struct_convention): Use definition according
1182         to ABI.
1183         (sh_push_arguments): Store in register with correct endianess.
1184         (sh_default_store_return_value): Ditto.
1185         (sh_gdbarch_init): Set sizeof long double to 8.
1186
1187 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
1188
1189         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1190         Fix some whitespace problems.
1191
1192 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1193
1194         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1195         (mcore-tdep.o): Ditto.
1196         (ns32k-tdep.o): Ditto.
1197         (ns32knbsd-tdep.o): Ditto.
1198         (sh3-rom.o): Ditto.
1199         (vax-tdep.o): Ditto.
1200         * cris-tdep.c: #include "gdb_string.h"
1201         * mcore-tdep.c: Ditto.
1202         * ns32k-tdep.c: Ditto.
1203         * ns32knbsd-tdep.c: Ditto.
1204         * sh3-rom.c: Ditto.
1205         * vax-tdep.c: Ditto.
1206
1207 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1208
1209         * config/djgpp/fnchange.lst: Add entries for
1210         gdb/testsuite/gdb.c++/m-static files.
1211
1212 2002-09-27  Jim Wilson  <wilson@redhat.com>
1213
1214         * MAINTAINERS: Add myself to the Write After Approval list.
1215
1216 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
1217
1218         * mips-tdep.c (find_proc_desc): Initialize startaddr.
1219
1220
1221 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1222
1223         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1224         frame.
1225
1226 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1227
1228         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1229         (rs6000_struct_return_address): Delete variable.
1230         (rs6000_store_struct_return): Update.
1231         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1232         deprecated_extract_struct_value_address.
1233         (rs6000_frame_align): New function.
1234         (rs6000_gdbarch_init): Set frame_align.
1235
1236 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1237
1238         From Grace Sainsbury <graces@redhat.com>:
1239         * Makefile.in (gdbtk-main.o): New target.
1240         (gdb.o): New target.
1241         (main_h): Define.
1242         (main.o): Update dependencies.
1243         (gdb$(EXEEXT)): Add gdb.o.
1244         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1245         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1246         (SUBDIR_GDBTK_CLEAN): Set.
1247         (install-gdbtk): Install the insight binary.
1248         (uninstall-gdbtk): New target.
1249         (all-gdbtk, clean-gdbtk): New rule.
1250         * top.c (use_windows): Default to zero.
1251         * main.c: Include "main.h".
1252         (main): Delete.
1253         (struct captured_main_args): Delete.
1254         (gdb_main): New function.
1255         * main.h: New file.
1256         * gdb.c: New File.
1257
1258 2002-09-25  Andrew Cagney  <cagney@redhat.com>
1259
1260         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1261         (frame_map_regnum_to_name): New function.
1262         (frame_map_name_to_regnum): New function.
1263         * frame.h (frame_map_name_to_regnum): Declare.
1264         (frame_map_regnum_to_name): Declare.
1265         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1266         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1267         * parse.c: Do not include "builtin-regs.h".
1268         (target_map_name_to_register): Delete function.
1269         (write_dollar_variable): Use frame_map_name_to_regnum.
1270         * parser-defs.h (target_map_name_to_register): Delete declaration.
1271         * expprint.c: Include "frame.h".
1272         (print_subexp): Use frame_map_regnum_to_name.
1273         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1274         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1275
1276 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
1277
1278         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1279         wasn't saved, and the next innermost frame is a dummy, return the
1280         dummy frame's link register.
1281
1282 2002-09-24  Jim Blandy  <jimb@redhat.com>
1283
1284         Fix from Paul Breed:
1285         * main.c (captured_main): Add a `break' after the case for 'b'.
1286
1287 2002-09-24  Keith Seitz  <keiths@redhat.com>
1288
1289         * varobj.c (c_type_of_child): Use get_target_type instead
1290         of TYPE_TARGET_TYPE.
1291
1292 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1293
1294         * source.c (get_current_or_default_source_symtab_and_line): Remove
1295         function.
1296         (set_default_source_symtab_and_line): New function. Attempts to
1297         determine a source file to list lines from if one is not currently
1298         defined.
1299         (get_current_source_symtab_and_line): Initialize sal.pc and
1300         sal.end fields.
1301         (set_current_source_symtab_and_line): Mark argument as const.
1302         * source.h: Update declarations and comments.
1303         * linespec.c (decode_line_1): Replace call to removed routine above.
1304         * stack.c (print_frame_info_base): Ditto.
1305         * cli/cli-cmds.c (edit_command): Ditto.
1306         (list_command): Ditto.
1307
1308 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1309
1310         * source.c (get_current_or_default_source_symtab_and_line): Initialize
1311         sal.pc and sal.end fields.
1312         (get_current_or_default_source_symtab_and_line): Ditto.
1313         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1314         so we do not cause a new source symtab to be searched for (reverting an
1315         unintentional change from the 2002-09-20 patch).
1316         * scm-lang.c (scm_unpac): Ditto.
1317
1318 2002-09-21  Andrew Cagney  <cagney@redhat.com>
1319
1320         * complaints.c (symfile_explanations): Remove new-line from
1321         ``isolated_message''.
1322         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1323         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1324
1325 2002-09-20  Nick Clifton  <nickc@redhat.com>
1326         
1327         * NEWS: Announce that V850EA ISA is no longer supported.
1328         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1329
1330 2002-09-20  David Carlton  <carlton@math.stanford.edu>
1331
1332         * Makefile.in (c-lang.o): Correct dependencies.
1333         (utils.o): Gather dependencies.
1334         (charset.o): Move.
1335         * c-lang.c: #include "gdb_string.h"
1336
1337 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1338
1339         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
1340         * cli/cli-cmds.c (list_command): New function.  Implements the new
1341         cli edit command.
1342         (_init_cli_cmds): Add new command definition.
1343         * gdb.1: Document edit command.
1344         * doc/gdb.texinfo: Document edit command.
1345
1346 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1347
1348         * source.c: Make global variables current_source_symtab and
1349         current_source_line static.
1350         (list_command): Moved to cli/cli-cmds.c.
1351         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1352         (get_first_line_listed): New accessor function.
1353         (get_lines_to_list): New accessor function.
1354         (get_current_source_symtab_and_line): New function. Retrieves the
1355         position in the source code that we consider current.
1356         (get_current_or_default_source_symtab_and_line): New function.
1357         Like the above but attempts to determine a default position if one
1358         is not currently defined.
1359         (set_current_source_symtab_and_line): New function. Sets the source
1360         code position considered current and returns the previously set one.
1361         (clear_current_source_symtab_and_line): Reset stored information about
1362         a current source line.
1363         (_initialize_source): Remove registration for the "list" command and
1364         its alias.
1365         * source.h: Add declarations for the new functions above.
1366         * symtab.h: Remove declarations for the global variables mentioned
1367         above.
1368         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1369         obtain current source line.
1370         * linespec.c (decode_line_1): Ditto.
1371         * macroscope.c (default_macro_scope): Ditto.
1372         * scm-lang.c (scm_unpac): Ditto.
1373         * stack.c (print_frame_info_base): Ditto.
1374         * symfile.c (clear_symtab_users): Ditto.
1375         * symtab.c (decode_line_spec): Ditto.
1376         * cli/cli-cmds.c (list_command): Moved here from source.c.
1377         (ambiguous_line_spec): Moved here from source.c.
1378         (_init_cli_cmds): Add definition for "list" and its alias.
1379         * Makefile.in: Update dependencies.
1380
1381 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1382
1383         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1384         with what gcc thinks is correct.
1385
1386 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1387
1388         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1389         multiple register push instruction.
1390
1391 2002-09-19  Jim Blandy  <jimb@redhat.com>
1392
1393         Add support for distinct host and target character sets.
1394         * charset.c, charset.h: New files.
1395         * c-exp.y: #include "charset.h".
1396         (yylex): Convert character and string literals to the target
1397         character set, before returning them as the semantic value of the
1398         token.
1399         * c-lang.c: #include "charset.h".
1400         (c_emit_char): Use charset-specific methods to recognize
1401         characters with backslash escape forms, to decide which characters
1402         to print literally and which to print using numeric escape
1403         sequences, and to convert target characters to host characters
1404         before printing.
1405         * utils.c: #include "charset.h".
1406         (no_control_char_error): New function.
1407         (parse_escape): Use charset-specific methods to recognize
1408         backslash escapes, parse `control character' notation, and convert
1409         characters from the host character set to the target character set.
1410         * configure.in: Set the default host character set.
1411         Check where to find iconv, and what its argument types might be.
1412         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1413         * Makefile.in (SFILES): List charset.c.
1414         (COMMON_OBS): List charset.o.   
1415         (charset.o): New rule.
1416         (charset_h): New header dependency variable.
1417         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1418         (LIBICONV): New variable, set by configure.
1419         (CLIBS): Include $(LIBICONV) here.
1420         * aclocal.m4, config.in, configure: Regenerated.
1421
1422 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1423
1424         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1425         bison 1.35 warning.
1426
1427 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1428
1429         * gdb_mbuild.sh: New file.
1430
1431 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1432
1433         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1434
1435 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1436
1437         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1438         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1439         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1440         valops.c, value.h: Revert previous change.
1441         
1442 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1443
1444         Preliminary support for Objective-C:
1445         * defs.h (language_objc): New enum value.
1446         (puts_filtered_tabular): Declaration only, exported from utils.c.
1447         (skip_quoted): Delete, declared in completer.h.
1448         * c-exp.y: Include completer.h.
1449         * p-exp.y: Ditto.
1450         * jv-exp.y: Ditto.
1451         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1452         New operator enum values.
1453         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1454         * language.c (binop_result_type): Handle language_objc case.
1455         (integral_type, character_type, string_type, boolean_type,
1456         structured_type, binop_type_check): Ditto.
1457         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1458         (struct objc_specific): Add to general_symbol_info.
1459         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1460         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1461         * parser-defs.h (struct objc_class_str): New struct type.
1462         (start_msglist, end_msglist, add_msglist): Declaration only,
1463         exported from objc-lang.c.
1464         * value.h (value_of_local, value_nsstring, 
1465         call_function_by_hand_expecting_type): Exported from valops.c.
1466         * valops.c (find_function_addr): Export.
1467         (call_function_by_hand_expecting_type): New function.
1468         (value_of_local): New function.
1469         * symfile.c (init_filename_language_table): Add ".m" extension
1470         for Objective-C.
1471         * utils.c (puts_filtered_tabular): New function.
1472         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1473         (set/show demangle): Extend help-string to refer to ObjC.
1474         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1475         * stabsread.c (symbol_reference_defined): Objective-C symbols
1476         may contain colons: make allowances when scanning stabs strings
1477         for colons.
1478         (objc_find_colon): New function.
1479         * printcmd.c (address_info): If language == objc then print
1480         "self" instead of "this".
1481         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1482         OP_NSSTRING, and OP_SELF.
1483         (prefixify_subexp): Ditto.
1484         * source.c (print_source_lines): Mention objc in comment.
1485         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1486         method names.
1487
1488 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1489
1490         * complaints.h: Update copyright.
1491         (struct complaints): Declare.
1492         (struct complaint): Make `message' constant.
1493         (internal_complaint): Declare.
1494         (complaint): Declare.
1495         (complaint_root): Delete declaration.
1496         (symfile_complaints): Delete declaration.
1497         (struct complaints): Add opaque declaration.
1498         (clear_complaints): Add a complaints parameter.
1499         * complaints.c: Update copyright.
1500         (enum complaint_series): Define.
1501         (complaint_root): Delete.
1502         (struct complaints): Define.
1503         (complaint_sentinel, symfile_complaint_book): New variables.
1504         (symfile_explanations, symfile_complaints): New variables.
1505         New variables.
1506         (get_complaints): New function.
1507         (vcomplaint): New function.
1508         (complaint): New function.
1509         (internal_complaint): New function.
1510         (complain): Call vcomplain with symfile_complaint.
1511         (clear_complaints): Rewrite.
1512         (_initialize_complaints): Use add_setshow_command.
1513         * Makefile.in (complaints.o): Update dependencies.
1514         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1515         to call to clear_complaints.
1516         (new_symfile_objfile, reread_symbols): Ditto.
1517         (oldsyms_complaint): Delete.
1518         (empty_symtab_complaint, unknown_option_complaint): Delete.
1519         (free_named_symtabs): Use complaint instead of complain.
1520
1521 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1522
1523         Contributed by Apple Computer, Inc.  Merged with current sources
1524         by Adam Fedor <fedor@doc.com> [cagney].
1525         
1526         * objc-lang.c: First clean-up round: comments, indentation.
1527         * objc-lang.h: Ditto.
1528         * objc-lang.y: Ditto.
1529
1530 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1531
1532         * maint.c (maintenance_internal_error): Print the parameter as the
1533         error message.
1534         (maintenance_internal_warning): New function.
1535         (_initialize_maint_cmds): Add command `maint internal-warning'.
1536
1537         * defs.h (internal_warning, internal_vwarning): Declare.
1538         * utils.c (struct internal_problem): Define.
1539         (internal_vproblem): New function.
1540         (internal_warning): New function.
1541         (internal_vwarning): New function.
1542         (internal_warning_problem, internal_error_problem): New variables.
1543         (internal_verror): Just call internal_vproblem.
1544
1545 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1546
1547         * objc-lang.c: New file, support for Objective-C.
1548         Preliminary check-in, not yet integrated into gdb.
1549         * objc-lang.h: New file.
1550         * objc-exp.y:  New file.
1551
1552 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1553
1554         * infrun.c (signal_stop_update): Convert definition to ISO C.
1555         (signal_print_update): Ditto.
1556         (signal_pass_update): Ditto.
1557         * inflow.c (terminal_save_ours): Ditto.
1558
1559         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1560         comments.
1561         
1562         * config/djgpp/fnchange.lst: Handle name clashes between
1563         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1564         bfd/coff-tic80.c.
1565
1566         * i386-linux-tdep.h: Fix tipo.
1567
1568 2002-09-18  Adam Fedor  <fedor@gnu.org>
1569
1570         * MAINTAINERS: Add myself to the Write After Approval list.
1571
1572 2002-09-18  Jim Blandy  <jimb@redhat.com>
1573
1574         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1575         texthigh and textlow to reader-specific structs caused
1576         objfile_relocate to miss them.  This is fixable, but the work that
1577         the change was supposed to prepare GDB for never got done anyway.
1578
1579 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1580
1581         * MAINTAINERS: Alphabetize Write After Approval list.
1582
1583 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1584
1585         Fix PR gdb/709
1586         * values.c (value_static_field): Call read_var_value.
1587
1588 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1589
1590         * valops.c (hand_function_call): Align the initial stack pointer
1591         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1592         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1593         return value.
1594         * mips-tdep.c (mips_frame_align): New function.
1595         (mips_gdbarch_init): Set frame_align.
1596         * gdbarch.sh (FRAME_ALIGN): New method.
1597         * gdbarch.h, gdbarch.c: Re-generate.
1598
1599 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1600
1601         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1602         registers.
1603
1604 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1605
1606         * NEWS: Mention that MIPS $fp behavior changed.
1607         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1608         reference to FP_REGNUM.
1609         (mipsnbsd_cannot_store_register): Ditto.
1610         * mips-linux-nat.c: Update copyright.
1611         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1612         (mips_linux_cannot_store_register): Ditto.
1613         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1614         * config/mips/tm-mips.h: Update copyright.
1615         (FP_REGNUM): Delete macro.
1616         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1617         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1618         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1619         (mips_r3041_reg_names, mips_r3051_reg_names)
1620         (mips_r3081_reg_names): Replace "fp" with "".
1621         Fix PR gdb/480.
1622
1623 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1624
1625         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1626         generic_read_register_dummy() (PR gdb/703).
1627         (avr_push_return_address): #if 0 out unused vars.
1628         (avr_gdbarch_init): Enable use of avr_push_return_address().
1629
1630 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1631
1632         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1633         RTE will take care of it.
1634
1635 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1636
1637         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1638         invalid, return SP_REGNUM.
1639
1640 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1641
1642         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1643         point registers without sign extension.
1644
1645 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1646
1647         * blockframe.c (deprecated_read_register_dummy): Rename
1648         generic_read_register_dummy.
1649         * frame.c (frame_unwind_signed_register): New function.
1650         (frame_unwind_unsigned_register): New function.
1651         * frame.h (frame_unwind_signed_register): Declare.
1652         (frame_unwind_unsigned_register): Declare.
1653         (deprecated_read_register_dummy): Rename
1654         generic_read_register_dummy.
1655
1656         * h8300-tdep.c (h8300_frame_chain): Update.
1657         (h8300_frame_saved_pc): Update.
1658         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1659         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1660         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1661         (s390_frame_chain): Update.
1662         * v850-tdep.c (v850_find_callers_reg): Update.
1663         (v850_frame_saved_pc): Update.
1664         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1665         (m32r_find_callers_reg): Update.
1666         (m32r_frame_saved_pc): Update.
1667         * sh-tdep.c (sh_find_callers_reg): Update.
1668         (sh64_get_saved_pr): Update.
1669         (sh_init_extra_frame_info): Update.
1670         (sh_init_extra_frame_info): Update.
1671         (sh64_init_extra_frame_info): Update.
1672         (sh64_init_extra_frame_info): Update.
1673         * mcore-tdep.c (mcore_find_callers_reg): Update.
1674         (mcore_frame_saved_pc): Update.
1675         (mcore_init_extra_frame_info): Update.
1676         * i386-tdep.c (i386_frame_saved_pc): Update.
1677         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1678         (ia64_init_extra_frame_info): Update.
1679         (ia64_init_extra_frame_info): Update.
1680         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1681         * cris-tdep.c (cris_init_extra_frame_info): Update.
1682         * avr-tdep.c (avr_frame_chain): Update.
1683         (avr_init_extra_frame_info): Update.
1684         (avr_frame_saved_pc): Update.
1685         * arm-tdep.c (arm_find_callers_reg): Update.
1686         (arm_init_extra_frame_info): Update.
1687         (arm_frame_saved_pc): Update.
1688
1689 2002-09-17  Tom Tromey  <tromey@redhat.com>
1690
1691         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1692         is "'".
1693
1694 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1695
1696         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1697         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1698         NEXT_PROLOGUE_INSN.
1699         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1700         NEXT_PROLOGUE_INSN.
1701
1702 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1703
1704         * osfsolib.c: Remove file, replaced by solib-osf.c.
1705         * Makefile.in: Remove compilation rules for osfsolib.c.
1706
1707 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1708
1709         * cp-valprint.c (cp_print_class_method): Correct args to
1710         check_stub_method_group.
1711
1712 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1713
1714         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1715         `set architecture'.  Unify naming convention of functions.
1716         (h8300_skip_prologue): Improve prologue analysis.
1717         (h8300_push_arguments): Rewritten to more closely match GCC's
1718         bizarre argument-passing behavior, along with the comment describing
1719         said behavior.
1720         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1721         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1722         sim, remote-e7000.c, remote-hms.c and remote.c
1723
1724 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1725
1726         * i386-tdep.c (gdb_print_insn_i386): Removed.
1727         (i386_print_insn): New function.
1728         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1729         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1730         tm_print_insn_info.
1731
1732 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1733
1734         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1735         zero.
1736
1737 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1738
1739         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1740         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1741         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1742
1743 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1744
1745         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1746
1747 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1748
1749         * gdbtypes.c (check_stub_method): Make static.
1750         (check_stub_method_group): New function.
1751         * gdbtypes.h: Update prototypes.
1752         * cp-support.c: New file.
1753         * cp-support.h: New file.
1754
1755         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1756         (update_method_name_from_physname): New function.
1757         (read_member_functions): Correct method names for operators
1758         and v3 constructors/destructors.  Separate v2 constructors and
1759         destructors.
1760         * Makefile.in (stabsread.o): Update dependencies.
1761         (SFILES): Add cp-support.c.
1762         (COMMON_OBS): Add cp-support.o.
1763         (cp_support_h, cp-support.o): Add.
1764
1765         * cp-valprint.c (cp_print_class_method): Call
1766         check_stub_method_group instead of check_stub_method.  Remove
1767         extraneous QUITs.
1768         * p-valprint.c (pascal_object_print_class_method): Likewise.
1769         * valops.c (search_struct_method): Likewise.
1770         (find_method_list, value_struct_elt_for_reference): Likewise.
1771
1772 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1773
1774         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1775         * gdbarch.h, gdbarch.c: Regenerate.
1776
1777 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1778
1779         * frame.c (find_saved_register): Delete function.
1780         * frame.h (find_saved_register): Delete declaration.
1781         Fix PR gdb/631.
1782
1783 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1784
1785         * mips-tdep.c (read_next_frame_reg): Re-hack using
1786         frame_register_unwind.
1787
1788 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1789
1790         * mips-tdep.c (mips_get_saved_register): Re-hack using
1791         frame_register_unwind.
1792
1793 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1794
1795         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1796         vector. Will be useful for Interix.  
1797         * gdbarch.h, gdbarch.c: Regenerate.
1798
1799         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1800         name of the malloc function by NAME_OF_MALLOC.
1801
1802 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1803
1804         * value.h (find_function_in_inferior): Add const keyword to
1805         one of the parameters. Allows us to invoke this function with
1806         a const char *.
1807         * valops.c (find_function_in_inferior): Likewise.
1808
1809 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1810
1811         * exec.c (xfer_memory): Fix compilation warning with old versions
1812         of GCC.
1813         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1814
1815 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1816
1817         * symtab.h: Run through gdb_indent.h.
1818         Add 2002 to Copyright year list.
1819
1820 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1821
1822         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1823         mach constants.
1824         * MAINTAINERS: Add myself to write after approval list.
1825
1826 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1827
1828         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1829
1830 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1831
1832         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1833         Interix.
1834
1835 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1836
1837         * procfs.c (do_detach): Clear current signal, not just fault.
1838         Corrects problem with breakpoint trap signal leaking to detached
1839         process on Tru64.
1840
1841 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1842
1843         * buildsym.c (finish_block): Protect against null pointer.
1844
1845 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1846
1847         * infcmd.c (default_print_registers_info): Send all output to
1848         ``file'' instead of ``gdb_stdout''.
1849
1850 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1851
1852         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1853         LONGEST, and use signed register read (addresses are sign-
1854         extended for mips).
1855
1856 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1857
1858         * event-loop.c (gdb_do_one_event): Make public.
1859         * event-loop.h (gdb_do_one_event): Declare.
1860
1861 2002-09-10  Jeff Law  <law@redhat.com>
1862
1863         * infttrace.c (child_resume): Simplify and rework to avoid
1864         TT_PROC_CONTINUE.
1865
1866 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1867
1868         * printcmd.c (print_scalar_formatted): "len" is the number of
1869         target bytes, NOT the number of target bits.
1870
1871 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1872
1873         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1874         * top.c (init_main): Set rl_terminal_name.
1875
1876 2002-09-08  Aidan Skinner <aidan@velvet.net>
1877
1878         * ada-lang.c (ada_array_bound, ada_type_match,
1879         _initialize_ada_language): Fix K&R definitions.
1880         * ada-tasks.c (get_current_task): Fix K&R definitions.
1881         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1882                         
1883 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1884
1885         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1886         Add XP.
1887
1888 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1889
1890         * i386-tdep.c (i386_register_virtual_type,
1891         i386_register_convertible, i386_register_convert_to_virtual,
1892         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1893         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1894         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1895         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1896         Don't set push_arguments twice.
1897
1898         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1899         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1900         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1901         sigtramp_end to NULL.
1902         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1903         defines.
1904         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1905
1906         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1907         whitespace.
1908
1909         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1910         * gdbarch.h, gdbarch.c: Re-generate.
1911         * blockframe.c (find_pc_sect_partial_function): Convert to use
1912         SIGTRAMP_START_P predicate.
1913
1914 2002-09-05  Michael Snyder  <msnyder@redhat.com>
1915
1916         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1917         generic_dummy_frame method and old method.  Also distinguish
1918         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1919         (arm_extract_return_value): Use new regcache method.
1920
1921         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1922         adjustment that doesn't conform to the ABI.
1923         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1924         saved regcache, not from current regcache.
1925
1926 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
1927
1928         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
1929         * README: Update.
1930
1931 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1932
1933         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1934         if arm_apcs_32 is false.
1935
1936 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
1937
1938         GDB 5.3 branch created.
1939
1940 2002-09-03  Theodore A. Roth  <troth@verinet.com>
1941
1942         * gdb/avr-tdep.c (avr_gdbarch_init): Use
1943         generic_unwind_get_saved_register.
1944
1945 2002-09-03  David Carlton  <carlton@math.stanford.edu>
1946
1947         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1948         argument (PR gdb/653).  Update call to smash_to_method_type.
1949         (read_structure_scope): Update call to dwarf2_add_member_fn.
1950
1951 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
1952
1953         * x86-64-linux-tdep.c: Include gdb_string.h
1954         * x86-64-linux-nat.c: Ditto.
1955
1956 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1957
1958         * ada-exp.y (yyname, yyrule): Remap global variables that appear
1959         when YYDEBUG is set to 1.  
1960         * c-exp.y: Likewise.
1961         * f-exp.y: Likewise.
1962         * jv-exp.y: Likewise.
1963         * m2-exp.y: Likewise.
1964         * p-exp.y: Likewise.
1965
1966 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1967
1968         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1969         dependency list.
1970         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1971         solib_svr4_fetch_link_map_offsets to
1972         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1973         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1974         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1975         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1976         solib-svr4.o, and solib-legacy.o.
1977         * config/i386/tm-nbsd.h: Include solib.h.
1978
1979 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1980
1981         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
1982         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
1983         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
1984         comment noting that this needs its own target configuration.
1985         * config/i386/nbsd.mt: New file.
1986         * config/i386/nbsdaout.mt: Remove.
1987         * config/i386/nbsdelf.mt: Ditto.
1988         * config/i386/tm-nbsdaout.h: Ditto. 
1989
1990 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1991
1992         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
1993         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
1994         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1995         tdep->sigtramp_end.
1996         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
1997         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1998         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1999
2000 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2001
2002         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2003         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2004         * i386-tdep.h (i386bsd_init_abi): New prototype.
2005         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2006         function declaration.
2007         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2008         for NetBSD-a.out or NetBSD-ELF.
2009         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2010         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2011         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2012         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
2013         and nbsd-tdep.h.
2014         (i386nbsd_pc_in_sigtramp): New function.
2015         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2016         i386nbsd_pc_in_sigtramp.
2017         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2018         and i386nbsdelf_init_abi OS ABI handlers.
2019         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2020         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2021
2022 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
2023
2024         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2025         registers if the target really has them.
2026
2027 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2028
2029         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2030         than nbsd-tdep.h.
2031
2032 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2033
2034         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2035         list.
2036         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2037         (alphanbsd_skip_sigtramp_frame): New functions. 
2038         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2039         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
2040         to alphanbsd_sigcontext_addr. 
2041
2042 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2043
2044         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2045         list.
2046         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
2047         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2048         nbsd_pc_in_sigtramp. 
2049         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2050         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2051         * nbsd-tdep.c: Include gdb_string.h.
2052         (nbsd_pc_in_sigtramp): New function. 
2053         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
2054         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2055         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2056         ppcnbsd_pc_in_sigtramp. 
2057         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2058         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2059         shnbsd_pc_in_sigtramp. 
2060         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2061         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
2062         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2063
2064 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
2065
2066         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2067         watchpoints to NULL.
2068         (insert_breakpoints): set val field of watchpoints if NULL.
2069
2070
2071 2002-08-29  Jim Blandy  <jimb@redhat.com>
2072
2073         * symtab.c (lookup_symbol_aux): In the cases where we find a
2074         minimal symbol of an appropriate name and use its address to
2075         select a symtab to read and search, use `name' (as passed to us)
2076         as the demangled name when searching the symtab's global and
2077         static blocks, not the minsym's name.
2078
2079 2002-08-29  Keith Seitz  <keiths@redhat.com>
2080
2081         * stack.c (print_frame_info_base): Always set current_source_symtab
2082         and current_source_line.
2083
2084 2002-08-29  Donn Terry  <donnte@microsoft.com>
2085
2086         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2087
2088 2002-08-28  Keith Seitz  <keiths@redhat.com>
2089
2090         * stack.c (select_frame): Add FIXME concerning selected-frame
2091         events.
2092         (select_frame_command): Send selected-frame-level-changed
2093         event notification, but only if the level actually changed.
2094         (up_silently_base): Add selected-frame-level-changed event
2095         notification.
2096         (down_silently_base): Likewise.
2097
2098 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
2099
2100         * Makefile.in: Update dependencies for all gdb/*.c files.
2101
2102 2002-08-27  Tom Tromey  <tromey@redhat.com>
2103
2104         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2105         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2106         Update dependencies.
2107         * i387-tdep.c: Include gdb_string.h.
2108         * osabi.c: Likewise.
2109         * i386-linux-nat.c: Likewise.
2110         * lin-lwp.c: Likewise.
2111         * ax-gdb.c: Likewise.
2112         * signals/signals.c: Likewise.
2113         * jv-valprint.c: Likewise.
2114         * p-lang.c: Likewise.
2115         * c-valprint.c: Likewise.
2116         * cp-abi.c: Likewise.
2117
2118 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
2119
2120         * cli/cli-script.h (copy_command_lines): Export.
2121         * breakpoint.c: Include cli/cli-script.h.
2122         * Makefile.in (breakpoint.o): Update dependencies.
2123
2124 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2125
2126         * breakpoint.c (insert_breakpoints): Protect all references
2127         to 'process_warning'.  Shorten long lines.
2128
2129 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2130
2131         * cli/cli-script.c (copy_command_lines): New function.
2132         * defs.h (copy_command_lines): Export.
2133         * testsuite/gdb.base/commands.exp: New tests for commands
2134         attached to a temporary breakpoint, and for commands that
2135         delete the breakpoint they are attached to.
2136         
2137 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2138
2139         * breakpoint.c (bpstat_stop_status): Instead of copying the 
2140         pointer to the breakpoint commands struct, make a new copy
2141         of the struct and point to that.
2142         (bpstat_clear): Free the commands struct.
2143         (bpstat_clear_actions): Free the commands struct.
2144         (bpstat_do_actions): Free the command actions.  Also execute
2145         the local cleanups, instead of deleting them.
2146         (delete_breakpoint): Leave the commands field of the bpstat
2147         chain alone -- it will be freed later.
2148
2149 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
2150
2151         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2152         deleted in 2002-08-20 commit.  This function is still used by
2153         ppc-linux-nat.c.
2154
2155 2002-08-26  Keith Seitz  <keiths@redhat.com>
2156
2157         * gdb-events.sh: Add selected-frame-level-changed event.
2158         * gdb-events.c: Regenerated.
2159         * gdb-events.h: Regenerated.
2160         
2161 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
2162
2163         Fix PR gdb/393:
2164         * inflow.c (terminal_save_ours): New function to save terminal
2165         settings.
2166         * inferior.h (terminal_save_ours): Declare.
2167         * target.c (debug_to_terminal_save_ours): New function.
2168         (cleanup_target): Defaults to_terminal_save_ours.
2169         (update_current_target): Inherit to_terminal_save_ours.
2170         (setup_target_debug): Set to_terminal_save_ours.
2171         * target.h (target_terminal_save_ours): New to save terminal settings.
2172         (target_ops): New member to_terminal_save_ours.
2173         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2174         * hpux-thread.c (init_hpux_thread_ops): Likewise.
2175         * inftarg.c (init_child_ops): Likewise.
2176         * m3-nat.c (init_m3_ops): Likewise.
2177         * procfs.c (init_procfs_ops): Likewise.
2178         * wince.c (init_child_ops): Likewise.
2179         * win32-nat.c (init_child_ops): Likewise.
2180         * sol-thread.c (init_sol_thread_ops): Likewise.
2181
2182 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
2183
2184         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
2185         use regcache_* functions.
2186         (i386_gdbarch_init): Set store_return_value instead of
2187         deprecated_store_return_value.
2188
2189         * regcache.c (regcache_raw_write_signed,
2190         regcache_raw_write_unsigned): New functions.
2191         * regcache.h (regcache_raw_write_signed,
2192         regcache_raw_write_unsigned): New prototypes.
2193
2194 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2195
2196         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2197         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2198         source file dependencies.  Cleanup corresponding generator rules.
2199
2200 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2201
2202         * regcache.h (register_offset_hack): Declare.
2203         (regcache_cooked_read_using_offset_hack): Declare.
2204         (regcache_cooked_write_using_offset_hack): Declare.
2205
2206         * regcache.c (register_offset_hack): New function.
2207         (regcache_cooked_read_using_offset_hack): New function.
2208         (regcache_cooked_write_using_offset_hack): New function.
2209         (regcache_dump): Check that the registers, according to their
2210         offset, are packed hard against each other.
2211         (cooked_xfer_using_offset_hack): New function.
2212
2213 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2214
2215         * regcache.c (struct regcache_descr): Add field register_type.
2216         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2217         in as a parameter
2218         (init_regcache_descr): Initialize register_type.  Pass the descr
2219         to init_legacy_regcache_descr.  Use register_type instead of
2220         REGISTER_VIRTUAL_TYPE.
2221         (register_type): New function.
2222         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2223         * regcache.h (register_type): Declare.
2224
2225 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2226
2227         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2228         instead of deprecated_store_return_value.  Fix fallout from
2229         2002-08-23 Andrew Cagney <cagney@redhat.com>.
2230
2231 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2232
2233         * regcache.c (max_register_size): New function.
2234         (init_legacy_regcache_descr): Ensure that max_register_size is
2235         large enough for REGISTER_VIRTUAL_SIZE.
2236         * regcache.h (max_register_size): Declare.
2237
2238 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
2239
2240         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2241         store_return_value.
2242         (e500_extract_return_value): Change type of valbuf pointer to
2243         void.
2244
2245 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2246
2247         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2248         workaround.
2249
2250         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2251         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2252         long long) to prevent compiler warning on 64-bit systems.
2253
2254 2002-08-23  Andrew Cagney  <cagney@redhat.com>
2255
2256         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2257         (DEPRECATED_STORE_RETURN_VALUE): New method.
2258         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2259         * gdbarch.h, gdbarch.c: Re-generate.
2260
2261         * values.c (set_return_value): Pass current_regcache to
2262         STORE_RETURN_VALUE.
2263         * arch-utils.h (legacy_store_return_value): Declare.
2264         * arch-utils.c (legacy_store_return_value): New function.
2265         (legacy_extract_return_value): Update parameters.
2266
2267         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2268         STORE_RETURN_VALUE.
2269         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2270         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2271         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2272         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2273         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2274         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2275         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2276         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2277         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2278         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2279
2280         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2281         * i386-tdep.c (i386_extract_return_value): Update.
2282         * arch-utils.c (legacy_extract_return_value): Update.
2283         * frv-tdep.c (frv_gdbarch_init): Update.
2284         * cris-tdep.c (cris_gdbarch_init): Update.
2285         * d10v-tdep.c (d10v_gdbarch_init): Update.
2286         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2287         * m68k-tdep.c (m68k_gdbarch_init): Update.
2288         * mcore-tdep.c (mcore_gdbarch_init): Update.
2289         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2290         * s390-tdep.c (s390_gdbarch_init): Update.
2291         * sparc-tdep.c (sparc_gdbarch_init): Update.
2292         * sh-tdep.c (sh_gdbarch_init): Update.
2293         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2294         * v850-tdep.c (v850_gdbarch_init): Update.
2295         * avr-tdep.c (avr_gdbarch_init): Update.
2296         * ia64-tdep.c (ia64_gdbarch_init): Update.
2297         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2298         * vax-tdep.c (vax_gdbarch_init): Update.
2299         * alpha-tdep.c (alpha_gdbarch_init): Update.
2300         * arm-tdep.c (arm_gdbarch_init): Update.
2301         * mips-tdep.c (mips_gdbarch_init): Update.
2302         * i386-tdep.c (i386_gdbarch_init): Update.
2303
2304 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
2305
2306         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2307         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2308
2309 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2310
2311         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
2312         problems.
2313
2314 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2315
2316         * infrun.c (handle_inferior_event): Move a comment outside of a
2317         function call, in order to avoid indent reformatting this part
2318         of the code in an unreadable way.
2319
2320 2002-08-23  Grace Sainsbury  <graces@redhat.com>
2321
2322         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2323         when breakpoints fail. Move general breakpoint error messages to
2324         insert_breakpoints.  
2325         * breakpoint.c (insert_breakpoints): Change warnings when
2326         breakpoints are nto inserted to specify the type. Remove call to
2327         memory_error when hardware breakpoints can't be inserted. Remove
2328         multiple calls to warning so all messages are sent to the user at
2329         once.
2330         (delete_breakpoints): Make insert error messsages more explicit.
2331
2332 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
2333
2334         * ChangeLog: Move gdbserver entries after GDB 5.2 to
2335         gdbserver/ChangeLog.
2336
2337 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
2338
2339         * i386-tdep.c: Include "objfiles.h".
2340         (i386_svr4_init_abi): Set in_solib_call_trampoline and
2341         skip_trampoline_code.
2342         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2343         (CPLUS_MARKER): Define to '.'.
2344
2345         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2346         member.
2347         (linux_corefile_thread_callback): Increase args->num_notes.
2348         (linux_make_note_section): Initialize thread_args.num_notes, and
2349         use it to determine whether notes for any threads were created.
2350
2351 2002-08-23  Donn Terry  <donnte@microsoft.com>
2352
2353         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2354         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2355         and PCUNKILL.
2356         (write_with_trace): Conditionalize out the switch branch handling
2357         PCSHOLD if the corresponding macro is not defined. Likewise for
2358         PRSABORT and PRSTOP.
2359         This change will be needed by the Interix port.
2360
2361 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2362
2363         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2364         write_register wherever possible instead of manipulating the
2365         register bytes directly.
2366         Assign VALUE_CONTENTS to a variable and use that.
2367         The GPR numbers are now dependent on the architecture.
2368         
2369 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2370
2371         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2372         ev_offset fields.
2373         (skip_prologue): Add support for BookE/e500 instructions.
2374         (e500_extract_return_value): New function.
2375         (frame_get_saved_regs): Add support for saving ev registers and
2376         pseudo gpr's.
2377         (e500_store_return_value): New function.
2378         (rs6000_gdbarch_init): Move up default intializations of
2379         deprecated_extract_return_value and store_return_value.  Overwrite
2380         init of store_return_value with e500 specific version.
2381         Set extract_return_value for e500.
2382         
2383 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2384
2385         * blockframe.c (generic_call_dummy_register_unwind): Use
2386         regcache_cooked_read to catch cases in which the variable is
2387         stored in a pseudo register.
2388
2389 2002-08-22  Andrew Cagney  <cagney@redhat.com>
2390
2391         * NEWS: Mention that the i960 has been made obsolete.
2392         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2393         i960-tdep.c
2394         (remote-nrom.o): Obsolete target.
2395         (remote-nindy.o, i960-tdep.o): Ditto.
2396         * remote-nrom.c: Make file obsolete.
2397         * remote-nindy.c, remote-vx960.c: Ditto.
2398         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2399         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2400         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2401         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2402         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2403         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2404         i960-*-vxworks* obsolete.
2405         * MAINTAINERS: Note that the i960 is obsolete.
2406
2407 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
2408
2409         * aix-thread.c (aix_thread_detach): Disable thread debugging on
2410         detach to allow reinitialization.
2411
2412 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
2413
2414         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2415         attempt).
2416
2417 2002-08-22  Jim Blandy  <jimb@redhat.com>
2418
2419         * coffread.c (coff_symfile_read): Don't try to read the line
2420         number table from disk if the image file doesn't have a symbol
2421         table; we'll never actually look at the info anyway, and Windows
2422         ships DLL's with bogus file offsets for the line number data.
2423
2424 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2425
2426         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2427         an e500 executable.
2428
2429 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2430
2431         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2432         (MSYMBOL_SIZE): Replace macro with function.
2433         (DEFAULT_MIPS_TYPE): Delete unused macro.
2434         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2435         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2436
2437 2002-08-21  Jim Blandy  <jimb@redhat.com>
2438
2439         * valops.c (value_cast): Simplify and correct logic for doing a
2440         static cast from a pointer to a base class to a pointer to a
2441         derived class.
2442
2443 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2444
2445         * infcmd.c (default_print_registers_info): Replace
2446         do_registers_info.
2447         (registers_info): Use gdbarch_print_registers_info instead of
2448         DO_REGISTERS_INFO.
2449         * inferior.h (default_print_registers_info): Replace
2450         do_registers_info.
2451         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2452         (DO_REGISTERS_INFO): Change to a predicate function.
2453         * gdbarch.h, gdbarch.c: Regenerate.
2454         
2455 2002-08-21  Keith Seitz  <keiths@redhat.com>
2456
2457         * gdb-events.sh: Add target-changed event.
2458         * gdb-events.c: Regenerated.
2459         * gdb-events.c: Regenerated.
2460         * valops.c (value_assign): Add target-changed event notification
2461         to inlval_register, lval_memory, and lval_reg_frame_relative.
2462
2463 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2464
2465         * NEWS: Add an entry regarding the improvement of the next/step
2466         operation on Alpha Tru64 multi-processor machines.
2467
2468 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2469
2470         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2471         directores.
2472         * Makefile.in: Update all _h macro definitions.
2473         * Makefile.in (install-gdbtk): Move to install section.
2474         (rdi-share/libangsd.a): Move to end of file.
2475
2476 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2477
2478         * frame.c (frame_register_unwind): When a register, set addrp to
2479         the register's byte.
2480
2481 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2482
2483         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2484         used locally, so move them from the target machine header to here.
2485         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2486         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2487         Make static.
2488         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2489
2490 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2491
2492         * NEWS: Mention that the Apollo line was made obsolete.
2493         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2494         m68*-hp-hpux* obsolete.
2495         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2496         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2497         * buildsym.c (make_blockvector): Make static.
2498         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2499         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2500         (ALLDEPFILES): Remove dstread.c.
2501         (dstread.o): Obsolete make rule.
2502         * dstread.c: Makefile obsolete.
2503         * dst.h: Ditto.
2504         * config/m68k/hp300hpux.mt: Ditto.
2505         * config/m68k/hp300hpux.mh: Ditto.
2506         * config/m68k/hp300bsd.mt: Ditto.
2507         * config/m68k/hp300bsd.mh: Ditto.
2508         * config/m68k/apollo68b.mt: Ditto.
2509         * config/m68k/apollo68v.mh: Ditto.
2510         * config/m68k/apollo68b.mh: Ditto.
2511
2512 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2513
2514         * mips-tdep.c (mips_in_return_stub): Make static.
2515         (mips_gdbarch_init): Set in_solib_return_trampoline.
2516         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2517
2518 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2519
2520         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2521         * gdbarch.c, gdbarch.h: Regenerate.
2522         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2523         Add.
2524         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2525
2526 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2527
2528         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2529         (mips_gdbarch_init): Set skip_trampoline_code, 
2530         in_solib_call_trampoline.
2531         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2532         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2533
2534 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2535
2536         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2537
2538         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2539         vector type for ev registers.
2540         (e500_pseudo_register_read): New function.
2541         (e500_pseudo_register_write): New function.
2542         (e500_dwarf2_reg_to_regnum): New function.
2543         (PPC_UISA_NOFP_SPRS): New macro.
2544         (PPC_EV_REGS): New macro.
2545         (PPC_GPRS_PSEUDO_REGS): New macro.
2546         (registers_e500): New register set for e500.
2547         (variants): Add e500 variant.
2548         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2549         before setting architectural dependent variations.  Initialize ev
2550         registers numbers.  Add case for e500 architecture.  Set the
2551         number of pseudo registers.
2552
2553 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2554
2555         * rs6000-tdep.c: Clean up comments.
2556
2557 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2558
2559         * h8300-tdep.c: Re-indent file.
2560
2561 2002-08-20  Jim Blandy  <jimb@redhat.com>
2562
2563         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2564         default for this.
2565
2566 2002-08-20  Keith Seitz  <keiths@redhat.com>
2567
2568         * breakpoints.c (watch_command_1): Use internal breakpoint
2569         when setting a watchpoint_scope breakpoint.
2570
2571 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2572
2573         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2574         (build_builtin_type_vec64i): Ditto.
2575         (build_builtin_type_vec128): Ditto.
2576         (build_builtin_type_vec128i): Ditto.
2577
2578 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2579
2580         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2581         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2582         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2583         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2584         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2585         CALL_DUMMY_ADDRESS): Delete.
2586         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2587         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2588         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2589         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2590         push_return_address.
2591         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2592         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2593         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2594         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2595         mips_n32n64_push_arguments, mips_push_return_address,
2596         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2597         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2598
2599 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2600
2601         * mips-tdep.c (mips_frame_num_args): New function.
2602         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2603         frame_saved_pc, frame_args_address, frame_locals_address, 
2604         frame_num_args, and frame_args_skip.
2605         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2606         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2607         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2608         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2609
2610 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2611
2612         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2613         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2614         * mips-tdep.c (mips_store_struct_return): New function.
2615         (mips_extract_struct_value_address): New function.
2616         (mips_gdbarch_init): Set store_struct_return and
2617         extract_struct_value_address.
2618
2619 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2620
2621         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2622         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2623         (read_file_scope): Check that line_header is nonzero before
2624         decoding macro information.
2625
2626 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2627
2628         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2629         flag the general-purpose registers as floating-point on targets
2630         that don't support the floating-point registers.
2631
2632 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2633
2634         * rs6000-tdep.c (altivec_register_p): Delete.
2635         (rs6000_do_altivec_registers): Delete.
2636         (rs6000_altivec_registers_info): Delete.
2637         (rs6000_do_registers_info): Delete.
2638         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2639         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2640
2641 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2642
2643         * infcmd.c (do_registers_info): Print vector registers in hex
2644         format only.
2645         (print_vector_info): Check that printing registers
2646         makes sense.
2647         (print_float_info): Ditto.
2648
2649 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2650
2651         * mips-tdep.c (mips_gdbarch_init): Update.
2652         (mips_o32_extract_return_value): Rewrite.
2653         (mips_o32_store_return_value): Rewrite.
2654         (mips_o32_xfer_return_value): New function.
2655         (mips_xfer_register): Tweak debug print message.  Allow for
2656         buf_offset when dumping the value transfered.
2657
2658 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2659
2660         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2661         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2662         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2663         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2664         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2665
2666 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2667
2668         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2669
2670 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2671
2672         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2673         register.
2674         (P): New macro to define a register as a pseudo register.
2675         (R, R4, R8, R16, FR32, R64, R0): Updated.
2676         (struct variant): Add new fields for number of pseudo registers
2677         and number of total registers.
2678         (tot_num_registers): New macro replacing....
2679         (num_registers): ...deleted macro.
2680         (num_registers): New function.
2681         (num_pseudo_registers): New function.
2682         (variants): Update all variants to intialize new fields correctly.
2683         Postpone initialization of number of pseudo regs and real regs.
2684         (init_variants): New function.
2685         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2686         registers offsets.
2687
2688 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2689
2690         * valops.c (search_struct_field): Change error message to treat
2691         return value of 0 from value_static_field as meaning that field is
2692         optimized out.
2693         (value_struct_elt_for_reference): Ditto.
2694         * values.c (value_static_field): Treat an unresolved location the
2695         same as a nonexistent symbol.  Fix PR gdb/635.
2696         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2697         enclosed.  Fix PR gdb/574.
2698         * MAINTAINERS: Add self to Write After Approval list.
2699
2700 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2701
2702         * mips-tdep.c (mips_xfer_register): New function.
2703         (mips_n32n64_extract_return_value): Rewrite.
2704         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2705         instead of deprecated_extract_return_value.
2706
2707 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2708
2709         * rs6000-tdep.c (TDEP): Delete macro.
2710         (branch_dest): Replace use of TDEP macro with its body.
2711         (rs6000_pop_frame): Ditto.
2712         (rs6000_push_arguments): Ditto.
2713         (rs6000_skip_trampoline_code): Ditto.
2714         (rs6000_frame_saved_pc): Ditto.
2715         (rs6000_frame_chain): Ditto.
2716         (rs6000_register_name): Ditto.
2717         (rs6000_register_byte): Ditto.
2718         (rs6000_register_raw_size): Ditto.
2719         (rs6000_register_virtual_type): Ditto.
2720         (rs6000_register_convertible): Ditto.
2721         (rs6000_convert_from_func_ptr_addr): Ditto.
2722
2723 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2724
2725         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2726         conditionally.
2727         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2728         MIPS_LINUX_JB_ELEMENT_SIZE.
2729         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2730         for MAX_REGISTER_RAW_SIZE arrays.
2731         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2732         MIPS_LINUX_JB_ELEMENT_SIZE.
2733
2734 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2735
2736         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2737
2738 2002-08-19  Aidan Skinner <aidan@velvet.net>
2739
2740         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2741         ada-valprint.c ada-tasks.c.
2742         (YYFILES): Add ada-exp.y.
2743         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2744         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2745         (ada-exp.tab.o): New target.
2746                 
2747 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2748
2749         * regcache.c (regcache_xfer_part): New function.
2750         (regcache_raw_read_part): New function.
2751         (regcache_raw_write_part): New function.
2752         (regcache_cooked_read_part): New function.
2753         (regcache_cooked_write_part): New function.
2754         * regcache.h (regcache_raw_read_part): Declare.
2755         (regcache_raw_write_part): Declare.
2756         (regcache_cooked_read_part): Declare.
2757         (regcache_cooked_write_part): Declare.
2758
2759 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2760
2761         * remote.c (remote_open_1): Add async_p.
2762         (remote_async_open_1): Delete.
2763         (open_remote_target): Delete.
2764         (remote_open, extended_remote_open): Update calls to remote_open_1.
2765         (remote_async_open, extended_remote_async_open): Call
2766         remote_open_1 instead of remote_async_open_1.
2767
2768 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2769
2770         * blockframe.c: Fix a few coding standard violations.
2771
2772 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2773
2774         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2775         here from ...
2776         * config/i386/tm-i386sco5.h: ... here.  File removed.
2777         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2778
2779         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2780         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2781         (TM_FILE): Set to tm-i386.h.
2782         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2783         * config/i386/tm-i386v.h: Remove file.
2784         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2785         instead of "i386/tm-i386v.h".
2786         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2787         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2788         "i386/tm-i386v.h".
2789         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2790         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2791         "i386/tm-i386.h".
2792
2793 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2794
2795         * config/i386/nm-i386v.h: Add protection against
2796         multiple-inclusion.
2797         (i386_register_u_addr): Remove prototype.
2798         (register_u_addr): New prototype.
2799         (REGISTER_U_ADDR): Redefine accordingly.
2800         * i386v-nat.c: Improve several comments.
2801         (i386_register_u_addr): Change signature and rename to
2802         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2803         ubase variable.
2804
2805 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2806
2807         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2808         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2809         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2810         deprecated_extract_return_value.
2811         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2812         rename mips_o32o64_push_arguments.
2813         (mips_gdbarch_init): Update.
2814         (mips_extract_return_value): Delete.
2815         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2816         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2817         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2818         (mips_n32n64_extract_return_value): Clone
2819         mips_extract_return_value.
2820         (mips_store_return_value): Delete.
2821         (mips_o32_store_return_value): Clone mips_store_return_value.
2822         (mips_o64_store_return_value): Clone mips_store_return_value.
2823         (mips_eabi_store_return_value): Clone mips_store_return_value.
2824         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2825
2826 2002-08-18  Aidan Skinner <aidan@velvet.net>
2827
2828         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2829         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2830                 
2831 2002-08-18  Aidan Skinner <aidan@velvet.net>
2832
2833         * ada-lang.c: Run through gdb_indent.sh.
2834         * ada-lang.h: Run through gdb_indent.sh.
2835         * ada-tasks.c: Run through gdb_indent.sh.
2836         * ada-typeprint.c: Run through gdb_indent.sh.
2837         * ada-valprint.c: Run through gdb_indent.sh.
2838
2839 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2840
2841         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2842         ABI.
2843
2844 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2845
2846         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2847
2848         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2849         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2850
2851         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2852         write_register_gen instead of write_register_bytes.
2853
2854         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2855         i[3456]-*-osf1mk* configurations have been made obsolete.
2856         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2857         i[3456]86-*-osf1mk* hosts obsolete.
2858         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2859         targets obsolete.
2860         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2861         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2862         config/i386/i386m3.mt, config/i386/nm-m3.h,
2863         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2864         config/i386/i386mk.mh, config/i386/i386mk.mt,
2865         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2866         obsolete.
2867         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2868         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2869         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2870
2871 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2872
2873         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2874         (hppa_value_returned_from_stack): Declare.
2875         (hppa_extract_return_value): Declare.
2876         * config/pa/hppa.mt: New file.
2877         * configure.tgt: Recognize hppa*-*-*.
2878         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2879
2880 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2881
2882         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2883         comment.
2884
2885 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2886
2887         * top.c (gdb_rl_operate_and_get_next): Make sure
2888         operate-and-get-next functions correctly even when the history
2889         list is completely filled.
2890
2891 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2892
2893         * MAINTAINERS (Target Instruction Set Architectures): Rename
2894         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2895         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2896         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2897         already listed under Host/Native.
2898
2899         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2900         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2901         mips*-*-*.
2902
2903 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2904
2905         * config/ia64/ia64.mt: New file.
2906         * config/alpha/alpha.mt: New file.
2907         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2908         ia64-linux-gnu.  Mention that ia64-elf is broken.
2909         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2910
2911 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
2912
2913         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2914         generic_func_frame_valid instead of func_frame_valid.
2915
2916 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2917
2918         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2919         procfs appears to be broken when debugging on multi-processor
2920         machines. So enable software single stepping in order to avoid
2921         using the procfs interface to do next/step operations, using
2922         internal breakpoints instead.
2923
2924         * infrun.c (handle_inferior_event): Readjust the stop_pc by
2925         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2926         make this pc address equal to the value it would have if the
2927         system stepping capability was used. Also set a new flag used
2928         to ensure that we don't readjust the PC one more time later.
2929
2930         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2931         address by DECR_PC_AFTER_BREAK when software single step is
2932         in use for this architecture, as this has already been taken
2933         care of in handle_inferior_event().
2934
2935 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2936
2937         * infrun.c (handle_inferior_event): Minor reformatting, to make
2938         a rather long condition expression easier to read.
2939
2940 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2941
2942         * Makefile.in (gdbtk.o): Move to end of file.
2943         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2944         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2945         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2946         (gdbtk-wrapper.o, gdbres.o): Ditto.
2947
2948 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2949
2950         * Makefile.in (copying.o): Separate out compile rule.
2951         (hpux-thread.o, procfs.o, signals.o): Ditto.
2952         (v850ice.o, z8k-tdep.o): Ditto.
2953         (tui-file.o): Move to TUI section.
2954         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2955         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2956
2957 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2958
2959         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2960         skip_trampoline_code, for better namespace-proofing.   
2961
2962         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2963
2964 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2965
2966         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2967
2968 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2969
2970         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2971         signal, check whether we hit a breakpoint before checking for a
2972         single step breakpoint. Otherwise, GDB fails to notice that a
2973         breakpoint has been hit when stepping onto a breakpoint.
2974
2975 2002-08-16  Keith Seitz  <keiths@redhat.com>
2976
2977         * gdb-events.sh (clear_gdb_event_hooks): New function.
2978         * gdb-events.c: Regenerate.
2979         * gdb-events.h: Regenerate.
2980
2981 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2982
2983         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2984         not_a_sw_breakpoint.
2985         * breakpoint.h (bpstat_stop_status): Add parameter names.
2986
2987 2002-08-16  Grace Sainsbury  <graces@redhat.com>
2988
2989         * remote.c (remote_insert_hw_breakpoint)
2990         (remote_remove_hw_breakpoint): Fix calculation of length field
2991         for Z-packet.
2992
2993 2002-08-15  Michael Snyder  <msnyder@redhat.com>
2994
2995         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2996         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2997         (supply_fpregset): Ditto.
2998         
2999         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
3000         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
3001         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3002         (TARGET_READ_SP): Delete.
3003         (DO_REGISTERS_INFO): Delete.
3004         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3005         Delete.
3006         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3007         from macros to functions.
3008
3009         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3010         (mips_register_convertible, mips_register_convert_to_virtual,
3011         mips_register_convert_to_raw): Make static.
3012         (mips_read_sp): New function.
3013         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3014         (mips_do_registers_info): Make static.
3015         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3016         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3017         (mips_register_convert_from_type, mips_register_convert_to_type):
3018         New functions.
3019         (mips_gdbarch_init): Set up function_start_offset, 
3020         register_virtual_size, pc_in_sigtramp.
3021
3022 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3023
3024         * infcmd.c (vector_info): New function.
3025         (_initialize_infcmd): Add command "info vector".
3026         (print_vector_info): New function.
3027
3028         * gdbarch.sh (PRINT_VECTOR_INFO): New method
3029         * gdbarch.h, gdbarch.c: Regenerate.
3030
3031 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3032
3033         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3034         ``print_all''.  Only print vector registers when ``print_all''.
3035
3036 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3037
3038         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3039         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3040
3041         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3042         Add `args' parameter.
3043         * gdbarch.h, gdbarch.c: Regenerate.
3044         
3045         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3046         
3047         * infcmd.c (float_info): Call print_float_info.
3048         (print_float_info): New function.  By default, print the
3049         floating-point registers.
3050
3051         * arch-utils.h (default_print_float_info): Delete declaration.
3052         * arch-utils.c (default_print_float_info): Delete function.
3053         
3054 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
3055
3056         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3057         out define.
3058
3059         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3060         FRAME.
3061
3062         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3063         * configure.host: Make i[3456]86-*-aix host obsolete.
3064         * configure.tgt: Make i[3456]86-*-aix target obsolete.
3065         * config/i386/i386aix.mh, config/i386/i386aix.mt,
3066         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3067         config/i386/xm-i386aix.h: Make files obsolete.
3068         * i386aix-nat.c: Make file obsolete.
3069         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3070         (i386aix-nat.o): Make target obsolete.
3071
3072         * config/i386/nm-gnu.h: Removed.
3073         * config/i386/nm-i386gnu.h: New file.
3074         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3075         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3076         Moved here from ...
3077         * config/i386/tm-i386gnu.h: ... here.  Removed.
3078         * config/i386/xm-i386gnu.h: Removed.
3079         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3080         (NAT_FILE): Set to nm-i386gnu.h.
3081         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3082         * i386-tdep.c: New file.
3083         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3084         (i386gnu-tdep.o): Specify dependencies.
3085
3086 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
3087
3088         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3089         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3090         Adjust a few comments to reflect reality a bit closer.
3091         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3092         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3093         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3094         target_insert_watchpoint, target_remove_watchpoint):
3095         Move defines to ...
3096         * config/i386/nm-i386sco5.h: ... here.
3097         (kernel_u_size): Add prototype.  Improve a few comments and add
3098         protection against multiple inclusion.
3099         
3100         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3101         out define.
3102
3103         * uw-thread.c (SP_ARG0): Define if not already defined.
3104         * config/i386/tm-i386.h (SO_ARG0): Remove define.
3105
3106         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3107
3108         * config/i386/tm-i386.h: Don't include "regcache.h".
3109
3110         * i387-tdep.h (i387_print_float_info): New prototype.
3111         * i387-tdep.c (print_i387_value, print_i387_ext,
3112         print_i387_status_word, print_i387_control_word): Add `struct
3113         ui_file *' argument and use it for output.
3114         (i387_print_float_info): Renamed from i387_float_info.  Add
3115         `struct gdbarch *' and `struct ui_file *' arguments and use the
3116         latter for output.
3117         * i386-tdep.c: Include "i387-tdep.h".
3118         (i386_gdbarch_init): Set print_float_info.
3119         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3120         (FLOAT_INFO): Remove define.
3121
3122 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3123
3124         * mips-tdep.c (mips_push_arguments): Rename to
3125         mips_eabi_push_arguments, and tune for EABI.
3126         (MIPS_REGS_HAVE_HOME_P): Delete.
3127         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3128         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3129         Delete references to mips_regs_have_home_p.
3130
3131 2002-08-14  Keith Seitz  <keiths@redhat.com>
3132
3133         * Makefile.in (install-gdbtk): Create insight plugin directory.
3134         Install plugins.tcl file.
3135
3136 2002-08-14  Keith Seitz  <keiths@redhat.com>
3137
3138         * configure.in: Move SUBDIRS to near top of the file so that
3139         --enable options may add things to it.
3140         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3141         * configure: Regenerate.
3142
3143 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3144
3145         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
3146         cloned from mips_push_arguments, tuned for o32/o64 ABI.
3147         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3148
3149 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
3150
3151         * vax-tdep.c (vax_get_saved_register): Delete function.
3152         (vax_gdbarch_init): Update.
3153         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3154         (ns32k_gdbarch_init): Update.
3155         * alpha-tdep.c (alpha_get_saved_register): Delete function.
3156         (alpha_gdbarch_init): Update.
3157
3158 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3159
3160         * regcache.c (init_regcache_descr): Overallocate the
3161         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3162         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3163         nr_raw_registers.
3164         (set_register_cached): Add range checking assertions.  Use
3165         current_regcache.
3166
3167 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
3168
3169         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3170         numbers for MMX registers.
3171
3172 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3173
3174         * i386-tdep.c (i386_gdbarch_init): Use
3175         generic_unwind_get_saved_register.
3176
3177 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
3178
3179         * procfs.c (procfs_can_use_hw_breakpoint): New function.
3180         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3181         target vector.
3182         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3183         Delete.  Add comment regarding this now-deleted target method.
3184
3185 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3186
3187         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3188         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3189         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3190         real PC and the page number (if it's within the memory bank window).
3191         (m68hc11_pseudo_register_write): Likewise when saving.
3192         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3193         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3194         (m68hc11_register_raw_size): And use 32-bit for it.
3195         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3196         16K memory bank is used by the prog; also use the virtual pc.
3197
3198 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3199
3200         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3201         (m68hc11_gdbarch_init): Install it in gdbarch.
3202         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3203         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3204         (MSYMBOL_SIZE): New for documentation.
3205         (insn_return_kind): Enum to specify how a function returns.
3206         (frame_extra_info): Cleanup and record the return mode.
3207         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
3208         register in address computation.
3209         (m68hc11_get_return_insn): New to obtain the return instruction used
3210         by the function.
3211         (m68hc11_frame_init_saved_regs): Take into account the return
3212         instruction used by the function for far and interrupt functions.
3213         (m68hc11_init_extra_frame_info): Take into account page register.
3214         (m68hc11_frame_args_address): Adjust according to the return mode.
3215         (show_regs): Print page register only when it's used.
3216
3217 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3218
3219         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3220         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3221         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3222         registers.
3223         (m68hc11_register_raw_size): Likewise.
3224
3225 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3226
3227         * i386-tdep.c (i386_register_name): Handle mmx registers.
3228         (mmx_regnum_p): New function.
3229         (i386_mmx_names): New array.
3230         (mmx_num_regs): New variable.
3231         (i386_pseudo_register_read): New function.
3232         (i386_pseudo_register_write): New function.
3233         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3234
3235         * regcache.c (regcache_raw_read_unsigned): New function.
3236         (regcache_raw_read_signed): New function.
3237         * regcache.h (regcache_raw_read_unsigned): Declare.
3238         (regcache_raw_read_signed): Declare.
3239
3240 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3241
3242         * regcache.c (regcache_raw_read_as_address): Delete function.
3243         (regcache_cooked_read_signed): New function.
3244         (regcache_cooked_read_unsigned): New function.
3245         * regcache.h (regcache_cooked_read_signed): Declare.
3246         (regcache_cooked_read_unsigned): Declare.
3247         (regcache_raw_read_as_address): Delete declaration.
3248
3249         * blockframe.c (generic_read_register_dummy): Use
3250         regcache_cooked_read_unsigned.
3251         * i386-tdep.c (i386_extract_struct_value_address): Use
3252         regcache_cooked_read_unsigned.
3253
3254 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3255
3256         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3257         double sizes according to ELF ABI flags.
3258         (gdbarch_tdep): Record elf_flags.
3259
3260 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3261
3262         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3263         (m6812_prolog): They can appear in 68HC12 function prologue.
3264         (m68hc11_frame_chain): Cleanup.
3265
3266 2002-08-12  Andrew Cagney  <cagney@redhat.com>
3267
3268         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3269         declarations.
3270         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3271         (i386_linux_register_raw_size): Delete function.
3272         (i386_linux_init_abi): Update.
3273         * i386-tdep.c (i386_register_raw_size): Delete function.
3274         (i386_register_byte): Delete function.
3275         (i386_gdbarch_init): Update.
3276         (i386_register_size): Delete array.
3277         (i386_register_offset): Delete array.
3278
3279         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3280         (REGISTER_RAW_SIZE): Delete macro.
3281         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3282         (REGISTER_BYTE): Delete macro.
3283
3284 2002-08-11  Aidan Skinner <aidan@velvet.net>
3285
3286         * ada-lang.c (ada_lookup_partial_symbol)
3287         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3288         prototype names so that grep ^func works properly.
3289
3290         * ada-lang.c (ada_array_element_type)
3291         (ada_lookup_partial_symbol): Fix typos in parameter list.
3292
3293         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3294         Fix prototype names so that grep ^func works properly.
3295         
3296 2002-08-10  Andrew Cagney  <cagney@redhat.com>
3297             Elena Zannoni  <ezannoni@redhat.com>
3298             Martin M. Hunt  <hunt@redhat.com>
3299
3300         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3301         (build_builtin_type_vec128i): Set the vector bit.
3302         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3303         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3304         (build_builtin_type_vec64): New function.
3305         (build_builtin_type_vec64i): New function.
3306         (build_gdbtypes): Initialize builtin_type_vec64 and
3307         builtin_type_vec64i.
3308
3309 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3310
3311         * regcache.c (regcache_dump): Compare the register offset
3312         with REGISTER_BYTE.
3313         * arch-utils.c (generic_register_byte): New function.
3314         * arch-utils.h (generic_register_byte): Declare.
3315         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3316         * gdbarch.h, gdbarch.c: Regenerate.
3317
3318 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3319
3320         * regcache.c: Include "gdbcmd.h"
3321         (_initialize_regcache): Add commands "maintenance print
3322         registers", "maintenance print raw-registers" and "maintenance
3323         print cooked-registers".
3324         (enum regcache_dump_what): Define.
3325         (dump_endian_bytes): New function.
3326         (regcache_dump): New function.
3327         (regcache_print): New function.
3328         (maintenance_print_registers): New function.
3329         (maintenance_print_raw_registers): New function.
3330         (maintenance_print_cooked_registers): New function.
3331         * Makefile.in (regcache.o): Update dependencies.
3332
3333 2002-08-09  Michael Snyder  <msnyder@redhat.com>
3334
3335         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3336         (mips_push_arguments): Correct some comments.  Use paddr_nz
3337         for printing addresses in debug output.  Replace static
3338         allocation using MAX_REGISTER_RAW_SIZE with alloca.
3339         (mips_n32n64_push_arguments): New function, cloned from
3340         mips_push_arguments and tuned for the n32/n64 ABI.
3341         (mips_push_register): Buffer needs dynamic allocation.
3342         (mips_print_register): Ditto.
3343         (do_gp_register_row): Ditto.
3344         (mips_store_return_value): Ditto.
3345         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3346
3347 2002-08-09  Don Howard  <dhoward@redhat.com>
3348
3349         * memattr.c (mem_info_command): Print special case of upper bound
3350         as max CORE_ADDR + 1.
3351
3352 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3353
3354         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
3355         returns structs by ref if they're too big to fit in two registers.
3356
3357 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3358
3359         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3360         saved regs value.
3361         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3362         mips_find_saved_regs().
3363         (mips_pop_frame): Likewise.
3364
3365 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3366
3367         * blockframe.c (frame_saved_regs_register_unwind): Revise
3368         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3369         frames are in use.
3370
3371 2002-08-09  Grace Sainsbury  <graces@redhat.com>
3372         
3373         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3374         T-packets; the 'a' is not taken as a register number.
3375         (remote_check_watch_resources, remote_stopped_by_watchpoint)
3376         (remote_stopped_data_address): New functions; add to target
3377         vector.
3378         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3379         prototypes to match other implementations of this
3380         function. replace integer argument with pointer -- the length
3381         field in the Z-packet is the length of what is pointed to or 1 if
3382         pointer is null. Add to target vector.
3383         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3384         target vector.
3385
3386         From Mark Salter:
3387         * remote.c (remote_wait): Add support to extract optional
3388         watchpoint information from T-packet. Ignore unrecognized
3389         optional info in T-packet.
3390         (remote_async_wait): Ditto.
3391
3392 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
3393
3394         * cli/cli-dump.c: Change fopen modes to use binary open modes
3395         as defined in include/fopen-bin.h throughout.
3396
3397 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3398
3399         * mips-tdep.c: Minor whitespace and indentation clean-ups.
3400
3401 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3402
3403         * doublest.c (store_floating): Avoid floatformat_from_doublest()
3404         assertion failure by returning early after a warning.
3405
3406 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3407
3408         * mips-tdep.c (mips_find_saved_regs): Make static.
3409         (mips_frame_init_saved_regs): New function.
3410         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3411         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3412         (mips_find_saved_regs): Delete declaration.
3413
3414 2002-08-08  Grace Sainsbury  <graces@redhat.com>
3415
3416         * remote.c (remote_wait, remote_async_wait): Change
3417         thread_num from int to ULONGEST.
3418         (unpack_varlen_hex): Change result parameter from
3419         int * to ULONGEST *.
3420
3421 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
3422
3423         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3424         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3425         powerpc*-*-*.
3426         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3427
3428 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3429
3430         * gcore.c (override_derive_stack_segment): Delete variable.
3431         (preempt_derive_stack_segment): Delete function.
3432         (derive_stack_segment): Delete function.
3433         (default_derive_stack_segment): Renamed to derive_stack_segment.
3434         (override_derive_heap_segment): Delete variable.
3435         (preempt_derive_heap_segment): Delete function.
3436         (derive_heap_segment): Delete function.
3437         (default_derive_heap_segment): Rename to derive_heap_segment.
3438
3439 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3440
3441         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3442         * mips-tdep.c (mips_EABI_use_struct_convention, 
3443         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3444         New functions.  (mips_use_struct_convention): Delete.
3445         (mips_gdbarch_init): set use_gdbarch_convention.
3446
3447 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3448
3449         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3450         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3451         mips_o32_reg_struct_has_addr): New functions.
3452         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3453
3454 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3455
3456         * regcache.c (pseudo_register): Delete function.
3457         (fetch_register): Delete function.
3458         (store_register): Delete function.
3459         (regcache_raw_read, legacy_read_register_gen): Use
3460         target_fetch_registers instead of fetch_register.
3461         (legacy_write_register_gen, regcache_raw_write): Use
3462         target_store_register instead of store_register.
3463         (write_register_bytes): Ditto.
3464
3465         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3466         (STORE_PSEUDO_REGISTER): Delete.
3467         * gdbarch.h, gdbarch.c: Regenerate.
3468
3469 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3470
3471         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3472         write dump file binary.
3473
3474 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3475
3476         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3477         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3478         (mips_gdbarch_init): Set N32 target to be mips64.
3479
3480 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3481
3482         * frame.c (find_saved_register): Break out of loop once saved
3483         register address is found.  Don't mention sparc in loop comment
3484         anymore.
3485
3486 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3487
3488         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3489         mips_default_saved_regsize to 8.
3490
3491 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3492
3493         * gcore.c: Do not include <sys/procfs.h>.
3494         * Makefile.in (gcore.o): Update dependencies.
3495
3496 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3497
3498         * configure.tgt: Make arc-*-* obsolete.
3499         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3500         * MAINTAINERS: Make arc-elf obsolete.
3501         * arc-tdep.c: Make file obsolete.
3502         * config/arc/arc.mt: Ditto.
3503         * config/arc/tm-arc.h: Ditto.
3504
3505 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3506
3507         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3508
3509 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3510
3511         * mcore-tdep.c (mcore_gdbarch_init): Use
3512         generic_unwind_get_saved_register instead of
3513         generic_get_saved_register.
3514         * v850-tdep.c (v850_gdbarch_init): Ditto.
3515         * frv-tdep.c (frv_gdbarch_init): Ditto.
3516         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3517         * s390-tdep.c (s390_gdbarch_init): Ditto.
3518         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3519         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3520         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3521
3522 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3523
3524         * objfiles.h: Add missing #include "symfile.h"
3525
3526         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3527
3528 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3529
3530         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3531         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3532         of FIELD_BITSIZE.
3533
3534 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3535
3536         * NEWS: Cleanup and nitpick.
3537
3538 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3539
3540         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3541
3542 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3543
3544         * Makefile.in (gdbtk-bp.o): Update dependencies.
3545         (gdbtk-register.o): Ditto.
3546         (gdbtk-varobj.o): Ditto.
3547
3548 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3549
3550         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3551         m68hc11_fetch_pseudo_register.
3552         (m68hc11_pseudo_register_write): Replace
3553         m68hc11_store_pseudo_register.
3554         (m68hc11_gdbarch_init): Update.
3555
3556 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3557
3558         * gdbarch.sh: Include "gdb_string.h".
3559         * gdbarch.c: Regenerate.
3560
3561         * regcache.c: Include "gdb_string.h".
3562         * ax-general.c: Ditto.
3563         * varobj.c: Ditto.
3564         * std-regs.c: Ditto.
3565         * fbsd-proc.c: Ditto.
3566         * thread.c: Ditto.
3567
3568         * Makefile.in (regcache.o): Update dependencies.
3569         (thread.o, gdbarch.o): Ditto.
3570         (ax-general.o, gdbarch.o): Ditto.
3571         (varobj.o, std-regs.o): Ditto.
3572         (fbsd-proc.o): Specify dependencies.
3573
3574 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3575
3576         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3577         regnum.
3578         (regcache_cooked_write): Ditto.
3579
3580 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3581
3582         * regcache.c (regcache_cooked_read): New function.
3583         (regcache_cooked_write): New function.
3584         (read_register_gen): Rewrite using regcache_cooked_read.
3585         (write_register_gen): Rewrite using regcache_cooked_write.
3586
3587         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3588         Declare.
3589
3590 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3591
3592         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3593         Replace the architecture methods register_read and register_write.
3594         * gdbarch.h, gdbarch.c: Regenerate.
3595         * regcache.c (init_regcache_descr): Update.
3596         (read_register_gen): Update.
3597         (write_register_gen): Update.
3598         (supply_register): Update comment.
3599
3600         * sh-tdep.c (sh_gdbarch_init): Update.
3601         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3602         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3603         pointer.  Update code.
3604         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3605         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3606         void pointer.  Update code.
3607         (sh64_register_write): Delete.
3608         (sh4_register_read): Delete.
3609         (sh64_register_read): Delete.
3610         (sh4_register_write): Delete.
3611         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3612         void pointer, `to' parameter a void pointer.
3613         (sh_sh64_register_convert_to_raw): Ditto.
3614
3615 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3616
3617         * mips-tdep.c (mips_register_virtual_type): Use architecture
3618         invariant return values.
3619
3620 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3621
3622         * linux-proc.c: Include "gdb_string.h".
3623         * Makefile.in (linux-proc.o): Update dependency list.
3624
3625 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3626
3627         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3628         comment.
3629
3630 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3631
3632         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3633         to_insert_watchpoint, to_remove_watchpoint,
3634         to_stopped_by_watchpoint, to_stopped_data_address,
3635         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3636         target vecctor. Define their corresponding macros so they call
3637         them.
3638         
3639         * target.c: Add default and debug versions of for
3640         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3641         to_insert_watchpoint, to_remove_watchpoint,
3642         to_stopped_by_watchpoint, to_stopped_data_address,
3643         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3644
3645 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3646
3647         * mips-tdep.c (mips_register_virtual_type): New function.
3648         (mips_gdbarch_init): Register mips_register_virtual_type()
3649         with gdbarch machinery.
3650         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3651         this file instead of tm-bigmips.h.
3652         (MIPS_REGSIZE): Delete this macro.
3653         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3654         multiarch version in mips-tdep.c will be found.
3655
3656 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3657
3658         * NEWS: Menion that CHILL has been made obsolete.
3659
3660         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3661         * stabsread.c (read_range_type): Ditto.
3662         * gdbtypes.h: Ditto.
3663         * language.c (binop_type_check): Ditto.
3664         (binop_result_type): Ditto.
3665         (integral_type): Ditto.
3666         (character_type): Ditto.
3667         (string_type): Ditto.
3668         (boolean_type): Ditto.
3669         (structured_type): Ditto.
3670         (lang_bool_type): Ditto.
3671         (binop_type_check): Ditto.
3672         * language.h (_LANG_chill): Ditto.
3673         * dwarfread.c (set_cu_language): Ditto.
3674         * dwarfread.c (CHILL_PRODUCER): Ditto.
3675         * dwarfread.c (handle_producer): Ditto.
3676         * expression.h (enum exp_opcode): Ditto.
3677         * eval.c: Ditto for comments.
3678         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3679         * expprint.c (print_subexp): Ditto.
3680         (print_subexp): Ditto.
3681         * valops.c (value_cast): Ditto.
3682         (search_struct_field): Ditto.
3683         * value.h (COERCE_VARYING_ARRAY): Ditto.
3684         * symfile.c (init_filename_language_table): Ditto.
3685         (add_psymbol_with_dem_name_to_list): Ditto.
3686         * valarith.c (value_binop): Ditto.
3687         (value_neg): Ditto.
3688         * valops.c (value_slice): Ditto.
3689         * symtab.h (union language_specific): Ditto.
3690         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3691         (SYMBOL_DEMANGLED_NAME): Ditto.
3692         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3693         * defs.h (enum language): Ditto.
3694         * symtab.c (got_symtab): Ditto.
3695         * utils.c (fprintf_symbol_filtered): Ditto.
3696
3697         * ch-typeprint.c: Make file obsolete.
3698         * ch-valprint.c: Make file obsolete.
3699         * ch-lang.h: Make file obsolete.
3700         * ch-exp.c: Make file obsolete.
3701         * ch-lang.c: Make file obsolete.
3702
3703         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3704         CHILL_LIB.
3705         (TARGET_FLAGS_TO_PASS): Ditto.
3706         (CHILLFLAGS): Obsolete.
3707         (CHILL): Obsolete.
3708         (CHILL_FOR_TARGET): Obsolete.
3709         (CHILL_LIB): Obsolete.
3710         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3711         ch-valprint.c.
3712         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3713         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3714         ch-lang.o.
3715         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3716         targets.
3717
3718 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3719
3720         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3721         This does not change anything at the moment, but will be helpful
3722         later when full Ada support is integrated.
3723
3724 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3725
3726         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3727         help message.
3728
3729 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3730
3731         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3732         and save it in a local variable.  Use variable in later test.
3733
3734 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3735
3736         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3737         test.  (Thanks to Daniel Jacobowitz.)
3738         
3739 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3740
3741         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3742         (mips_abi_strings): Add "n64".
3743         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3744
3745 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3746
3747         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3748         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3749
3750 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3751
3752         * utils.c (host_pointer_to_address, address_to_host_pointer):
3753         Use gdb_assert() instead of explicit call to internal_error().
3754
3755 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3756
3757         * Makefile.in (rs6000-nat.o): Update dependencies.
3758
3759         From Nicholas Duffek:
3760         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3761         (aix-thread.o): New rule.
3762         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3763         * config/powerpc/aix432.mh: New file.
3764
3765 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3766
3767         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3768         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3769         (fetch_core_registers, ppc_linux_supply_gregset)
3770         (ppc_linux_supply_fpregset): New functions.
3771         (ppc_linux_regset_core_fns): New.
3772         (_initialize_ppc_linux_tdep): Call add_core_fns.
3773         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3774         and ppc_linux_supply_gregset.
3775         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3776         (supply_fpregset): Call ppc_linux_supply_fpregset.
3777         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3778         corelow.o.
3779         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3780
3781 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3782
3783         * symtab.c (lookup_symbol): Demangle before lowercasing.
3784
3785 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3786
3787         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3788         declaration.
3789         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3790         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3791         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3792         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3793         "gdb_string.h".
3794         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3795         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3796         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3797         (avr-tdep.o, mon960-rom.o): Ditto.
3798         (aout_stabs_gnu_h): Define.
3799         (symtab_h): Remove $(gdb_obstack_h).
3800
3801 2002-07-30  Jim Blandy  <jimb@redhat.com>
3802
3803         Patch from David Carlton <carlton@math.stanford.edu>:
3804         * gdbinit.in: Move the `dir' commands that add GDB's own source
3805         directory to the search path to the end, so that the `gdb' source
3806         directory will be searched first.
3807
3808 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3809
3810         * gdb_obstack.h: New file.
3811         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3812         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3813         * objfiles.h: Include "gdb_obstack.h".
3814         * Makefile.in (gdb_obstack_h): Define.
3815         (symtab_h): Add $(gdb_obstack_h).
3816         (objfiles_h): Add $(gdb_obstack_h).
3817         
3818         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3819         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3820         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3821         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3822         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3823         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3824         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3825         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3826
3827         * Makefile.in (bcache.o): Update dependencies.
3828         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3829         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3830         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3831         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3832         (stabsread.o, symfile.o, symmisc.o): Ditto.
3833         (symtab.o, typeprint.o, macroexp.o): Ditto.
3834         (macrotab.o, mdebugread.o): Ditto.
3835         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3836         (coff_ecoff_h, aout_aout64_h): Define.
3837         (aout_stabs_gnu_h, libaout_h): Define.
3838
3839 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3840
3841         * regcache.c (struct regcache_descr): Rename nr_registers to
3842         nr_cooked_registers.  Revise comments describing the structure
3843         member fields.
3844         (init_regcache_descr): Update.
3845         (init_legacy_regcache_descr): Update.
3846         (read_register_gen, write_register_gen): When a cooked register in
3847         the raw register range, directly access the value from the raw
3848         register cache.
3849
3850 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3851
3852         * z8k-tdep.c: Do not include "obstack.h".
3853         * h8300-tdep.c, h8500-tdep.c: Ditto.
3854         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3855         * valprint.c, v850-tdep.c: Ditto.
3856         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3857         * mn10200-tdep.c: Ditto.
3858
3859         * Makefile.in (z8k-tdep.o): Update dependencies.
3860         (m68hc11-tdep.o, valprint.o): Ditto.
3861         (v850-tdep.o, d10v-tdep.o): Ditto.
3862         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3863         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3864         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3865         (sh_opc_h, gdb_sim_sh_h): Define.
3866         (elf_sh_h, elf_bfd_h): Define.
3867         (opcode_m68hc11_h): Define.
3868         (OPCODES_SRC, OPCODES_DIR): define.
3869         (OPCODES): Use $(OPCODES_DIR).
3870         (gdb_sim_d10v_h): Rename sim_d10v_h.
3871         (gdb_sim_arm_h): Rename sim_arm_h.
3872
3873 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3874
3875         * utils.c (host_pointer_to_address, address_to_host_pointer):
3876         Change internal_error() message to indicate function responsible
3877         for the error.
3878
3879 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3880
3881         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3882         calls to local_hex_string_custom().
3883
3884 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3885
3886         * irix5-nat.c: Move IRIX shared library support from here...
3887         * solib-irix.c: ...to here.  Revised substantially to work with
3888         generic solib framework.
3889
3890         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3891         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3892         * mips-irix-tdep.c: New file.
3893
3894         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3895         (mips-irix-tdep.o, solib-irix.o): New rules.
3896         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3897         solib-irix.o.
3898         * config/mips/irix6.mt (TDEPFILES): Likewise.
3899         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3900
3901 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3902
3903         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3904         disabled (via ``#if 0'') includes.
3905
3906 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3907
3908         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3909         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3910         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3911         Add support for the fpscr register.
3912         * rs6000-nat.c (regmap, fetch_inferior_registers)
3913         (store_inferior_registers, fetch_core_registers): Likewise.
3914
3915 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3916
3917         * rs6000-nat.c (language.h): Include.
3918         (special_regs): Delete this array.
3919         (regmap): New function.
3920         (fetch_register, store_register):  Use regmap() to map gdb
3921         register numbers to ptrace register numbers.  Also, use
3922         outputs from regmap() to make decisions regarding type of
3923         ptrace() call to make.  In particular, don't compare against
3924         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3925         (fetch_inferior_registers, store_inferior_registers): Where
3926         possible, obtain register numbers from tdep struct.  Don't
3927         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3928         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3929         (LAST_UISA_SP_REGNUM): Delete.
3930         
3931 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
3932
3933         * rs6000-nat.c (ppc-tdep.h): Include.
3934         (fetch_registers, store_register, fetch_core_registers): Don't
3935         access registers[] directly.  Instead, use supply_register() or
3936         regcache_collect() as appropriate.
3937         (find_toc_address): Format hex address with local_hex_string().
3938
3939 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
3940
3941         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3942         bfd/elf32-frv.c.
3943
3944 2002-07-24  Tom Tromey  <tromey@redhat.com>
3945
3946         * jv-exp.y: Marked all strings with _().
3947         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3948         internal_error.
3949         (MethodInvocation, CastExpression, parse_number, yyerror,
3950         java_type_from_name, push_expression_name, yylex): Typo fixes.
3951
3952 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
3953
3954         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3955         (tee_file_flush, tee_file_write, tee_file_fputs)
3956         (tee_file_isatty): New.
3957         * ui-file.h (tee_file_new): Add prototype.
3958
3959 2002-07-24  Aidan Skinner <aidan@velvet.net>
3960
3961         * ada-lang.c: Change k&r style function definitions to prototyped
3962         form.
3963         * ada-typeprint.c: Change k&r style function definitions to prototyped
3964         form.
3965         * ada-valprint.c: Change k&r style function definitions to prototyped
3966         form.
3967         
3968 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3969
3970         * README: Remove reference to remote-bug.
3971         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3972         remote-bug.c.
3973         (m88k-nat.o): Delete rule.
3974         (m88k-tdep.o): Delete rule.
3975         (remote-bug.o): Delete rule.
3976         * MAINTAINERS: Mark as obsolete.
3977         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3978         * m88k-tdep.c: Make file obsolete.
3979         * config/m88k/m88k.mh: Ditto.
3980         * config/m88k/delta88v4.mh: Ditto.
3981         * config/m88k/delta88v4.mt: Ditto.
3982         * config/m88k/delta88.mt: Ditto.
3983         * config/m88k/delta88.mh: Ditto.
3984         * remote-bug.c: Ditto.
3985         * config/m88k/tm-delta88.h: Ditto.
3986         * config/m88k/nm-delta88v4.h: Ditto.
3987         * config/m88k/xm-delta88.h: Ditto.
3988         * config/m88k/xm-dgux.h: Ditto.
3989         * config/m88k/tm-m88k.h: Ditto.
3990         * config/m88k/nm-m88k.h: Ditto.
3991         * config/m88k/tm-delta88v4.h: Ditto.
3992         * m88k-nat.c: Ditto.
3993         * cxux-nat.c: Ditto.
3994         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3995         and m88*-*-* obsolete.
3996         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3997         m88*-*-* obsolete.
3998
3999 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4000
4001         * findvar.c (extract_unsigned_integer): Make `addr' parameter
4002         constant.  Same for local pointer variables.
4003         (extract_signed_integer): Ditto.
4004         * defs.h (extract_unsigned_integer): Update.
4005         (extract_signed_integer): Update.
4006
4007 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4008
4009         * regcache.c (regcache_raw_write): Change buf parameter to a
4010         constant void pointer.
4011         (regcache_raw_read): Change buf parameter to a void pointer.
4012         (legacy_write_register_gen): Change myaddr parameter a constant
4013         void pointer.
4014         (supply_register): Change val parameter to a const void pointer.
4015         * regcache.h (regcache_raw_write): Update declaration.
4016         (regcache_raw_read): Update declaration.
4017         (supply_register): Update declaration.
4018
4019 2002-07-24  Tom Tromey  <tromey@redhat.com>
4020
4021         * defs.h (gdb_readline_wrapper): Declare.
4022         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4023         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4024         * top.c (gdb_readline_wrapper): New function.
4025         (command_line_input): Use it.
4026
4027 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4028
4029         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4030         regcache_read and regcache_write.
4031         (regcache_raw_read_as_address): Replace regcache_read_as_address.
4032         * regcache.c: Update.
4033         * sh-tdep.c (sh64_push_arguments): Update comment.
4034         (sh_pseudo_register_read): Update.
4035         (sh_pseudo_register_write): Update.
4036         (sh4_register_read): Update.
4037         (sh4_register_write): Update.
4038         (sh64_pseudo_register_read): Update.
4039         (sh64_pseudo_register_write): Update.
4040         (sh64_register_read): Update.
4041         (sh64_register_write): Update.
4042         * i386-tdep.c (i386_extract_return_value): Update.
4043         (i386_extract_struct_value_address): Update.
4044         (i386_extract_return_value): Update.
4045         * blockframe.c (generic_read_register_dummy): Update.
4046         (generic_call_dummy_register_unwind): Update
4047         * infrun.c (write_inferior_status_register): Update.
4048
4049 2002-07-23  Jim Blandy  <jimb@redhat.com>
4050
4051         * parser-defs.h (expression_context_pc): Make this extern.
4052         (Thanks to Michael Snyder.)
4053
4054 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
4055
4056         GDB 5.2.1 released from 5.2 branch.
4057         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4058         * README: Update to mention 5.2.1.
4059
4060 2002-07-23  Mark Salter  <msalter@redhat.com>
4061
4062         * remote.c (remote_read_bytes): Fix check for error.
4063
4064 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4065
4066         * aix-thread.c (language.h): Include.
4067         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4068         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4069         Print newlines at end of debug messages.
4070         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4071         (pdc_write_data): Use local_hex_string() instead of %llx formats.
4072
4073 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4074
4075         * aix-thread.c (ppc-tdep.h): Include.
4076         (special_register_p): New function.
4077         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4078         (store_regs_user_thread): Use register number information from
4079         gdbarch_tdep struct instead of hardcoded offsets relative to
4080         FIRST_UISA_SP_REGNUM.
4081         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
4082         special_register_p() instead of using FPLAST_REGNUM and
4083         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4084         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
4085         will be MQ's register number.
4086
4087 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4088
4089         * aix-thread.c (ops): Rename to aix_thread_ops.
4090         (base_ops): Rename to base_target.
4091         (ops_attach): Rename to aix_thread_attach.
4092         (ops_detach): Rename to aix_thread_detach.
4093         (ops_resume): Rename to aix_thread_detach.
4094         (ops_wait):   Rename to aix_thread_wait.
4095         (ops_kill):   Rename to aix_thread_kill.
4096         (init_ops):   Rename to init_aix_thread_ops.
4097         (ops_fetch_register): Rename to aix_thread_fetch_register.
4098         (ops_store_register): Rename to aix_thread_store_register.
4099         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4100         (ops_thread_alive):   Rename to aix_thread_thread_alive.
4101         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4102         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
4103         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4104         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
4105         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4106         (store_regs_lib):  Rename to store_regs_user_thread.
4107         (store_regs_kern): Rename to store_regs_kernel_thread.
4108
4109 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4110
4111         * aix-thread.c (ops_prepare_to_store): Eliminate.
4112         (init_ops): Don't initialize ops.prepare_to_store.
4113         (store_regs_kern): Pre-fetch register buffers from child, 
4114         because some registers may not be in the cache.  Copy
4115         regs from register cache only if they are cached.
4116         (store_regs_lib): Copy regs from register cache only
4117         if they are cached.
4118         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4119         fill_gprs64): Ditto.
4120
4121 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4122
4123         * aix-thread.c (gdb_assert.h): Include.
4124         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4125         register sizes (from register cache) match size of buffer holding
4126         register data.
4127         (fill_sprs32): Change parameter types to match those in the ptrace()
4128         buffer.
4129         (store_regs_lib): Likewise, but for 32-bit temporary variables.
4130         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4131
4132 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4133
4134         * aix-thread.c (supply_sprs64): Cosmetic change.
4135         (supply_sprs32): Cosmetic change.
4136         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4137         (fill_sprs64): Use regcache_collect instead of read_register.
4138         (store_regs_lib): Use regcache_collect instead of 
4139         read_register.  Use fill_sprs32 instead of fill_sprs64,
4140         if debugging a 32-bit architecture.
4141         (store_regs_kern): Use fill_gprs64 etc. to pull the values
4142         out of the register cache, instead of passing a pointer into
4143         the register cache directly to ptrace.  Use regcache_collect
4144         insteaad of read_register.
4145         (ops_prepare_to_store): Use target_read_registers instead
4146         of read_register_bytes.
4147
4148 2002-07-20  Aidan Skinner <aidan@velvet.net>
4149
4150         * MAINTAINERS: Add self under write after approval. 
4151                 
4152 2002-07-20  Aidan Skinner <aidan@velvet.net>
4153
4154         * ada-tasks.c: Change k&r style function definitions to prototyped
4155         form.
4156                 
4157 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
4158
4159         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4160         * x86-64-tdep.c: Include "objfiles.h".
4161         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4162         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4163
4164 2002-07-17  Michal Ludvig  <michal@suse.cz>
4165
4166         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4167         (update_context): Initialise cfa variable.
4168
4169 2002-07-17  Michael Snyder  <msnyder@redhat.com>
4170
4171         * aix-thread.c: Shorten some long lines.  
4172         Bring comments into line with code spec.
4173
4174 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4175
4176         * infrun.c: Re-indent using gdb_indent.sh.
4177
4178 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4179
4180         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4181         Leave the indentation temporarily untouched, to minimize the diffs.
4182
4183 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
4184
4185         * stabsread.c: Make os9k sections of the code obsolete,
4186         for real this time.
4187         * stabsread.h: Make os9k sections of the code obsolete.
4188
4189 2002-07-18  Michal Ludvig <mludvig@suse.cz>
4190
4191         * linux-low.c (regsets_store_inferior_registers): Add free()
4192         at the end of a loop to prevent memory leak.
4193         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4194         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4195         * config/sparc/tm-sp64linux.h: Make the rest of #endif
4196         line a comment.
4197         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4198
4199 2002-07-17  Jim Blandy  <jimb@redhat.com>
4200
4201         * macrocmd.c (info_macro_command): Remove newline from error
4202         message.
4203
4204 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
4205
4206         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4207         (sh_gdbarch_init): Use it for sh-dsp.
4208
4209 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
4210
4211         * dwarf2read.c (read_initial_length): Handle older, non-standard,
4212         64-bit DWARF2 format.
4213
4214 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
4215
4216         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4217         <sys/proc.h> when not available.
4218
4219 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4220
4221         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4222         * stabsread.c: Make os9k sections of the code obsolete.
4223         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4224         * config/i386/i386os9k.mt: Make file obsolete.
4225         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4226         (COMMON_OBS): Remove os9kread.o
4227         (SFILES): Remove os9kread.c.
4228         (os9kread.o, remote-os9k.o): Make target obsolete.
4229         * remote-os9k.c: Make file obsolete.
4230         * os9kread.c: Make file obsolete.
4231         * Makefile.in
4232
4233 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4234
4235         * NEWS: Mention that the FR30 has been made obsolete.
4236         * fr30-tdep.c: Make file obsolete.
4237         * config/fr30/tm-fr30.h: Ditto.
4238         * config/fr30/fr30.mt: Ditto.
4239         * configure.tgt: Make fr30-*-elf obsolete.
4240         * MAINTAINERS: Make fr30-elf obsolete.
4241
4242 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4243
4244         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4245         found is not inside a section.
4246
4247 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4248
4249         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4250         strerror().
4251         (pdc_realloc): Use xrealloc() instead of realloc().
4252
4253 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4254
4255         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4256         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4257         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4258         macros.
4259
4260 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4261
4262         * aix-thread.c (ptrace_check): Eliminate goto.
4263         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
4264         problem.
4265
4266 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4267
4268         * aix-thread.c (gdbcmd.h): Include.
4269         (DEBUG, DBG, DBG2, dbg): Eliminate.
4270         (debug_aix_thread): New static global.
4271         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4272         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4273         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4274         invocations to DBG and DBG2 macros to test against
4275         ``debug_aix_thread'' and call fprintf_unfiltered().
4276         (_initialize_aix_thread): Add new command "set debug aix-thread".
4277
4278 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4279
4280         From Gerhard Tonn <TON@de.ibm.com>:
4281         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4282         instead of supply_register.
4283
4284 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4285
4286         * dwarf2cfi.c: Include "gdb_assert.h".
4287         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4288         non-NULL.
4289         (update_context): Do not use __func__.  Add missing ``break''.
4290         (update_context): Do not use __func__.
4291
4292 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
4293
4294         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4295         and its setting.  Set gdbarch instruction printing functions
4296         directly.  For non-rs6000 case use new function
4297         gdb_print_insn_powerpc.
4298         (gdb_print_insn_powerpc): New function.
4299
4300 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
4301
4302         * NEWS: Mention that the d30v has been marked obsolete.
4303         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4304         * configure.tgt: Mark d30v-*-* as obsolete.
4305         * d30v-tdep.c: Mark file as obsolete.
4306         * config/d30v/d30v.mt: Ditto.
4307         * config/d30v/tm-d30v.h: Ditto.
4308
4309 2002-07-13  Aidan Skinner <aidan@velvet.net>
4310
4311         * ada-tasks.c (add_task_entry): replace calls to
4312         malloc() with xmalloc
4313         * ada-tasks.c (init_task_list): replace calls to free with xfree()
4314         
4315         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4316         ada_finish_decode_line_1, all_sals_for_line
4317         ada_breakpoint_rewrite): replace calls to free() with xfree()
4318                 
4319 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4320
4321         From Nicholas Duffek (with minor changes by Martin Hunt, 
4322         Louis Hamilton, and Kevin Buettner):
4323         * aix-thread.c: New file.
4324
4325 2002-07-12  Petr Sorfa <petrs@caldera.com>
4326
4327         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
4328         complaint for invalid attribute class or form.
4329         (read_func_scope): DW_AT_frame_base
4330         better handling of DW_AT_block*.
4331         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4332         better handling of DW_AT_block*.
4333         (read_common_block): DW_AT_location
4334         better handling of DW_AT_block*.
4335         (read_partial_die): DW_AT_location better handling
4336         of DW_AT_block*.
4337         (new_symbol): DW_AT_external better handling of
4338         DW_AT_block*. Proper initialization of variable
4339         "addr".
4340         (attr_form_is_block): New function that returns true
4341         if the attribute's form is of DW_FORM_block*.
4342
4343 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4344
4345         * valops.c (find_method_list): Remove comment about
4346         removed STATIC_MEMFUNCP argument.
4347         (value_find_oload_method_list): Likewise.
4348
4349 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4350
4351         From Nicholas Duffek:
4352         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4353         target_new_objfile_hook.
4354
4355 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4356
4357         From Nicholas Duffek:
4358         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4359         csect.
4360
4361 2002-07-12  Andrew Cagney  <cagney@redhat.com>
4362
4363         * MAINTAINERS: Mention --enable-sim-build-warnings.
4364         (m68hc11-elf): Disable sim build warnings.
4365         (m32r-elf): Mark as broken obsolete candidate.
4366         (x86_64-linux-gnu): Mark as buildable with -Werror.
4367         (arm-elf): Change -w to ``,'' which enables warnings but not
4368         -Werror.
4369
4370 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
4371
4372         * bcache.h: Update copyright.
4373         (struct bstring, struct bcache): Move definition to "bcache.c".
4374         Replaced by opaque declaration.
4375         (bcache_xfree): Replace free_bcache.
4376         (bcache_xmalloc, bcache_memory_used): Declare.
4377         
4378         * bcache.c: Update copyright.
4379         (struct bstring, struct bcache): Moved to here from "bcache.h".
4380         Update comments.
4381         (bcache_xmalloc, bcache_memory_used): New functions.
4382         (bcache_xfree): Replace function free_bcache.
4383         
4384         * Makefile.in (objfiles.o): Add $(bcache_h).
4385         (objfiles_h): Remove $(bcache_h).
4386         (symfile.o): Add $(bcache_h).
4387
4388         * symmisc.c: Update copyright.
4389         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4390         (print_objfile_statistics): Use bcache_memory_used.
4391
4392         * symfile.c: Include "bcache.h".
4393         (reread_symbols): Use bcache_xfree.
4394         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4395         (add_psymbol_to_list): Pass psymbol_cache by value.
4396         (add_psymbol_with_dem_name_to_list): Ditto.
4397
4398         * objfiles.h: Update copyright.
4399         (struct bcache): Declare opaque.  Do not include "bcache.h".
4400         (struct objfile): Change psymbol_cache and macro_cache to ``struct
4401         bcache'' pointers.
4402         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4403
4404         * objfiles.c: Include "bcache.h".  Update copyright.
4405         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4406         macro_cache.
4407         (free_objfile): Use bcache_xfree.
4408
4409 2002-07-11  Grace Sainsbury  <graces@redhat.com>
4410
4411         * monitor.c (monitor_fetch_register): Make name a constant.
4412         (monitor_store_register): Same.
4413
4414 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
4415
4416         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4417         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4418         (finish_block) For non-function blocks, hash the symbol table.  For
4419         function blocks, mark the symbol table as unhashed.
4420         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4421         (msymbol_hash_iw): Likewise.
4422         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4423         value.
4424         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4425         (lookup_minimal_symbol): Likewise for both.
4426         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4427         hashtable.
4428         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4429         (ALL_BLOCK_SYMBOLS): Update.
4430         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4431         (struct symbol): Add `hash_next' pointer.
4432         * symtab.c (lookup_block_symbol): Search using the hash table when
4433         possible.
4434         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4435         (search_symbols, find_addr_symbol): Likewise.
4436
4437         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4438         (read_dst_symtab): Likewise.
4439         * jv-lang.c (get_java_class_symtab): Likewise.
4440         * mdebugread.c: Include "gdb_assert.h".
4441         (shrink_block): Assert that the block being modified is not hashed.
4442         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4443         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4444         symbols.
4445         (dump_symtab): Recognize hashed blocks.
4446         * printcmd.c (print_frame_args):  Assert that function blocks do not
4447         have hashed symbol tables.
4448         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4449         (fill_in_ada_prototype, debug_print_block): Likewise.
4450         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4451
4452 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4453
4454         * stack.c (print_frame): Use result of frame_address_in_block()
4455         instead of fi->pc when evaluating symbols.
4456         (backtrace_command_1): Ditto.
4457
4458 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4459
4460         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4461         Make static.
4462
4463         * arm-tdep.c (arm_register_name): Make return type constant.
4464
4465 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4466
4467         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4468         prototype.
4469         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4470         * s390-tdep.c (s390_fp_regnum): Ditto.
4471         (s390_read_fp): Ditto.
4472         (s390_pop_frame): Ditto.
4473         (_initialize_s390_tdep): Ditto.
4474         * remote.c (get_remote_state): Ditto.
4475         * procfs.c (mappingflags): Ditto.
4476         * memattr.c (_initialize_mem): Ditto.
4477         * mcore-tdep.c (mcore_pop_frame): Ditto.
4478         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4479         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4480         * language.c (set_case_str): Ditto.
4481         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4482         * frv-tdep.c (new_variant): Ditto.
4483         (frv_stopped_data_address): Ditto.
4484         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4485         (context_alloc): Ditto.
4486         (frame_state_alloc): Ditto.
4487         (unwind_tmp_obstack_init): Ditto.
4488         (unwind_tmp_obstack_free): Ditto.
4489         (cfi_read_fp): Ditto.
4490         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4491         (cris_pop_frame): Ditto.
4492         * c-lang.c (scanning_macro_expansion): Ditto.
4493         (finished_macro_expansion): Ditto.
4494         (c_preprocess_and_parse): Ditto.
4495         * gdbarch.sh: Ditto.
4496         * gdbarch.h, gdbarch.c: Regenerate.
4497         * config/mn10200/tm-mn10200.h: Adjust indentation.
4498         * target.c: Adjust indentation.
4499         * symtab.h: Adjust indentation.
4500         * stabsread.h: Adjust indentation.
4501         * remote-es.c: Adjust indentation.
4502         * os9kread.c: Adjust indentation.
4503
4504 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4505         
4506         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4507         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4508
4509 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4510         
4511         * NEWS: Mention m68k, mcore multi-arching.  
4512         * MAINTAINERS: Change status of m68k, mcore to reflect
4513         multi-arching.
4514
4515 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4516
4517         * valops.c (find_overload_match): Free oload_syms.
4518
4519 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4520
4521         Define HAVE_SYS_PROC_H if sys/proc.h exists
4522         * configure.in: Add check for sys/proc.h
4523         * config.in: Regenerate.
4524         * configure: Regenerate.
4525
4526 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4527
4528         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4529         #if !GDB_MULTI_ARCH. 
4530
4531 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4532
4533         * config.in, configure: Regenerate.
4534
4535 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4536
4537         * dwarf2cfi.c: Include "gcore.h".
4538         (execute_stack_op): Fix implementation of the
4539         DW_OP_deref and DW_OP_deref_size operators by letting do their
4540         lookup in the target.
4541
4542 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4543
4544         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4545         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4546         tdep->sc_sp_offset.
4547
4548 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4549
4550         Fix PR gdb/595, gdb/602
4551         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4552         Don't call value_cast, just read the vtable pointer; update comments
4553         to match.
4554
4555 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4556
4557         * config/mcore/tm-mcore.h: Remove file.
4558         * config/mcore/mcore.mt: Remove definition of TM_FILE
4559         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4560
4561 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4562
4563         * i386bsd-tdep.c: Include "gdb_string.h".
4564
4565 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4566
4567         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4568         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4569         mcore-tdep.
4570         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4571         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4572         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4573         (RETVAL_REGNUM): Move macros from tm-mcore.h
4574         (mcore_reg_struct_has_addr): New function.
4575         (mcore_gdbarch_init): Added initializations for the macros removed
4576         from tm-mcore.h.
4577
4578 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4579
4580         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4581         traditonal string branding within the ELF header.
4582
4583 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4584
4585         * symtab.c (remove_params): New function.
4586         (make_symbol_overload_list): Use it instead of cplus_demangle.
4587         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4588
4589 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4590
4591         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4592
4593         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4594         New variables.
4595         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4596         and tdep->sigtramp_end.
4597         * i386obsd-nat.c: New file.
4598         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4599
4600         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4601         Don't call get_current_frame().
4602
4603 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4604
4605         * i386-nat.c (child_post_startup_inferior): New function
4606         calling i386_cleanup_dregs if
4607         I386_USE_GENERIC_WATCHPOINTS is defined.
4608         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4609         conditional to acknowledge that i386-nat.c has its
4610         own child_post_startup_inferior function.
4611
4612 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4613
4614         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4615         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4616         instead of MAX_REGISTER_RAW_SIZE.
4617         (i386_extract_return_value, i386_extract_struct_value_address):
4618         Convert to use regcache.
4619         (i386_gdbarch_init): Set max_register_raw_size and
4620         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4621         Set extract_return_value and extract_struct_value_address instead
4622         of their deprecated variants.
4623
4624         Convert i386 target to generic dummy frames.
4625         * i386-tdep.c: Include "symfile.h".
4626         (i386_frameless_signal_p): Consider a function to be frameless if
4627         the pc points at the first instruction of the function.
4628         (i386_frame_chain): Handle (generic) call dummies.
4629         (i386_frame_saved_pc): Likewise.
4630         (i386_frame_init_saved_regs): Remove code dealing with call
4631         dummies on the stack.
4632         (i386_push_dummy_frame): Removed.
4633         (i386_call_dummy_words): Removed.
4634         (i386_fix_call_dummy): Removed.
4635         (i386_push_return_address): New function.
4636         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4637         parameter, and don't call get_current_frame.
4638         (i386_pop_frame): New function.
4639         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4640         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4641         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4642         call_dummy_length to 0, set call_dummy_words to NULL, set
4643         sizeof_call_dummy_words to 0, set fix_call_dummy to
4644         generic_fix_call_dummy, set pc_in_call_dummy to
4645         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4646         generic_push_dummy_frame, set push_return_address to
4647         i386_push_return_address and set frame_chain_valid to
4648         generic_file_frame_chain_valid.
4649
4650 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4651
4652         * gdbarch.sh (struct regcache): Add opaque declaration.
4653         (EXTRACT_RETURN_VALUE): New architecture method.
4654         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4655         * gdbarch.h, gdbarch.c: Regenerate.
4656         * arch-utils.c (legacy_extract_return_value): New function.
4657         * arch-utils.h (legacy_extract_return_value): Declare.
4658         * values.c (value_being_returned): Re-enable code handling
4659         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4660         deprecated_grub_regcache_for_registers call to block handling
4661         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4662         (EXTRACT_RETURN_VALUE): Do not define.
4663
4664 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4665
4666         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4667         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4668         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4669         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4670         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4671         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4672         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4673         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4674         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4675         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4676         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4677         argument so the function fits the prototype in the architecture
4678         vector.
4679         (mcore_pop_frame): Remove argument so the function fits the
4680         prototype. Use get_current_frame instead of the argument.
4681         (mcore_push_arguments): Change type of struct_return so the
4682         function can be used in the architecture vector.
4683         (mcore_store_struct_return): Add.
4684         (mcore_frame_init_saved_regs): Add.
4685         (mcore_gdbarch_init): Add function calls to replace the macros
4686         removed from tm-mcore.h
4687
4688 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4689
4690         * infcmd.c (print_return_value): Remove compatibility code calling
4691         deprecated_grub_regcache_for_registers.
4692         
4693         * values.c: Include "regcache.h".
4694         (value_being_returned): Update.  Use
4695         deprecated_grub_regcache_for_registers to extract the register
4696         buffer address.  
4697         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4698         ``struct regcache''.
4699         * Makefile.in (values.o): Add dependency on $(regcache_h).
4700
4701         * inferior.h (run_stack_dummy): Change type of second parameter to
4702         a ``struct regcache''.
4703         * valops.c (hand_function_call): Change type of retbuf to ``struct
4704         regcache''.  Allocate using regcache_xmalloc, clean using
4705         make_cleanup_regcache_xfree.
4706         * infcmd.c (run_stack_dummy): Update.  Use
4707         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4708
4709         * regcache.c (do_regcache_xfree): New function.
4710         (make_cleanup_regcache_xfree): New function.
4711         * regcache.h (make_cleanup_regcache_xfree): Declare.
4712
4713 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4714
4715         * event-top.c (command_line_handler): Don't read past
4716         beginning of buffer.
4717
4718 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4719         
4720         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4721         struct frame_id. 
4722         (varobj_create): Store frame_id for root.
4723         (varobj_gen_name): Use xasprintf.
4724         (varobj_update): Save and restore frame using get_frame_id() and
4725         frame_find_by_id().
4726         (create_child): Use xasprintf.
4727         (new_root_variable): Initialize frame_id.
4728         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4729         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4730         to prevent memory leak.
4731
4732 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4733
4734         * valops.c (hand_function_call): Move declaration of retbuf to
4735         start of function, allocate using malloc, add a cleanup but before
4736         the inf_status cleanup, cleanup the buffer.  Rename local variable
4737         old_chain to inf_status_cleanup.
4738
4739 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4740
4741         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4742
4743         * cli/cli-decode.c (cmd_func_p): New function.
4744         (cmd_func): New function.
4745
4746         * command.h: Add cmd_func() and cmd_func_p().   
4747         
4748 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4749
4750         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4751         (REGISTER_SIZE): Remove.
4752         (MAX_REGISTER_RAW_SIZE): Remove.
4753         (REGISTER_VIRTUAL_TYPE): Remove.
4754         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4755         (REGISTER_NAME): Remove.
4756         (USE_GENERIC_DUMMY_FRAMES): Remove.
4757         (CALL_DUMMY): Remove.
4758         (CALL_DUMMY_START_OFFSET): Remove.
4759         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4760         (CALL_DUMMY_LOCATION): Remove.
4761         (FIX_CALL_DUMMY): Remove.
4762         (CALL_DUMMY_ADDRESS): Remove.
4763         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4764         (SAVE_DUMMY_FRAME_TOS): Remove.
4765         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4766         (mcore_register_virtual_type): New function.
4767         (mcore_register_byte): New function.
4768         (mcore_register_size): New function.
4769         (mcore_register_name): New function.
4770         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4771         macros removed from tm-mcore.h.
4772         (mcore_dump_tdep): Add.
4773         (_initialize_mcore_tdep): Add gdbarch_register call.
4774
4775 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4776
4777         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4778         frameless_look_for_prologue, such that we actually call this
4779         function.
4780
4781 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4782
4783         * frame.h (frame_address_in_block): New function.
4784
4785         * blockframe.c (frame_address_in_block): New function extracted
4786         from get_frame_block().
4787         (get_frame_block): Use frame_address_in_block().
4788         (block_innermost_frame): Use frame_address_in_block() to match
4789         the frame pc address against the block boundaries rather than
4790         the frame pc directly. This prevents a failure when a frame pc
4791         is actually a return-address pointing immediately after the end
4792         of the given block. 
4793
4794 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4795
4796         * MAINTAINERS: Add self under write after approval. 
4797
4798 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4799
4800         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4801         used in architecture vector. The default is
4802         m68k_local_breakpoint_from_pc.
4803         (m68k_local_breakpoint_from_pc): Add.
4804         (enum): Add register numbers from tm-m68k.h.
4805         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4806         vector.  
4807         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4808         GDB_MULTI_ARCH_PARTIAL.
4809         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4810         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4811         m68k-tdep.c.
4812         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4813         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4814         to enum in m68k-tdep.c
4815
4816 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4817
4818         * solib-osf.c (open_map): Compute the list of shared libraries
4819         loaded by the inferior, rather than the list of libraries loaded
4820         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4821         the wrong shared libraries...
4822
4823 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4824
4825         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4826         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4827         macros.
4828         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4829         Remove functions.
4830         (FRAMELESS_SIGNAL): Remove function.
4831         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4832         i386_linux_saved_pc_after_call): Removed.
4833         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4834         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4835         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4836
4837         * i386-tdep.c (i386_frameless_signal_p): New function.
4838         (i386_frame_chain): Deal with frameless signals.
4839         (i386_sigtramp_saved_sp): New function.
4840         (i386_frame_saved_pc): Deal with frameless signals.
4841         (i386_saved_pc_after_call): Make sure the correct value is
4842         returned just after entry into a sigtramp.
4843         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4844         i386fbsd4_sc_sp_offset): New variables.
4845         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4846         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4847         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4848         similiar to what we already did for sc_pc_offset.
4849         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4850         tdep->sc_sp_offset.
4851
4852         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4853
4854 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4855
4856         * config/i386/tm-x86-64linux.h: New.
4857         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4858         definitions.
4859         * config/i386/nm-x86-64.h: Rename to ...
4860         * config/i386/nm-x86-64linux.h: ... this one.
4861         * config/i386/x86-64linux.mh: Reflect the above change.
4862         
4863 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4864
4865         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4866         with sigcontext_addr.  Add sc_sp_offset.
4867         (i386bsd_sigtramp_saved_pc): Remove prototype.
4868         (i386bsd_sicontext_addr): Add prototype.
4869         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4870         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4871         (i386_svr4_sigtramp_saved_pc): Removed.
4872         (i386_svr4_sigcontext_addr): New function.
4873         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4874         Initialize tdep->sigcontext_addr instead.  Initialize
4875         tdep->sc_pc_offset and tdep->sc_sp_offset.
4876         (i386_gdbarch_init): Likewise.
4877         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4878         any more.
4879         (i386bsd_sigtramp_saved_pc): Remove function.
4880         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4881         Initialize tdep->sigcontext_addr instead.  Initialize
4882         tdep->sc_pc_offset.
4883         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4884         of tdep->sigtramp_saved_pc.
4885         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4886         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4887         instead.
4888
4889         * i386-tdep.c (i386_frameless_function_invocation,
4890         i386_frame_num_args, i386_frame_init_saved_regs,
4891         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4892         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4893         i386_extract_return_value, i386_store_return_value,
4894         i386_extract_struct_value_address, i386_register_virtual_type,
4895         i386_register_convertible, i386_register_convert_to_virtual,
4896         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4897         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4898         static.
4899
4900 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4901
4902         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4903
4904         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4905         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4906         this macro.  Include "value.h".
4907
4908 2002-06-30  Aidan Skinner  <aidan@velvet.net>
4909
4910         * ada-exp.tab.c: remove as it's a generated file
4911         * ada-lex.c: remove as it's a generated file
4912                 
4913 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
4914
4915         * config/i386/tm-i386.h (struct frame_info, struct
4916         frame_saved_regs, struct value, struct type): Remove forward
4917         declarations.
4918
4919         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4920         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4921         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4922         (FILL_FPXREGSET): Define.
4923
4924         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4925
4926         * configure.tgt (i[3456]86-*-openbsd*): Fold into
4927         i[3456]86-*-netbsd* case.
4928         * config/i386/tm-obsd.h: Removed.
4929         * config/i386/obsd.mt: Removed.
4930         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4931         core-aout.o.
4932         (MH_CFLAGS): Add -DYYDEBUG=0.
4933
4934         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4935         i386nbsd_sc_pc_offset on OpenBSD too.
4936
4937         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4938         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4939         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4940         define.
4941         * i386bsd-tdep.c: Include "arch-utils.h".
4942         (i386bsd_aout_in_solib_call_trampoline): New function.
4943         (i386bsd_init_abi): Set in_solib_call_trampoline to
4944         i386bsd_aout_in_solib_call_trampoline.
4945         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4946         in_solib_call_trampoline to generic_in_solib_call_trampoline.
4947
4948 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4949
4950         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4951         (struct obstack, struct bcache): Add opaque declarations.
4952         * Makefile.in (macrotab_h): Update
4953
4954 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4955
4956         * blockframe.c (generic_find_dummy_frame): Change return type to
4957         ``struct regcache''.
4958         (struct dummy_frame): Replace field ``registers'' with regcache, a
4959         struct regcache object.
4960         (generic_find_dummy_frame): Update.
4961         (generic_push_dummy_frame): Update.  Use regcache_xfree,
4962         regcache_xmalloc and regcache_cpy.
4963         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
4964         regcache_xfree.
4965         (deprecated_generic_find_dummy_frame): Update.
4966         (generic_read_register_dummy): Update.  Use
4967         regcache_read_as_address.
4968         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
4969         (generic_get_saved_register): Update.  Use regcache_read.
4970
4971 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4972
4973         * Makefile.in (objfiles_h): Add $(bcache_h).
4974         * objfiles.h: Include "bcache.h".
4975
4976         * Makefile.in (symtab_h): Remove $(bcache_h).
4977         * symtab.h: Do not include "bcache.h".
4978
4979 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4980
4981         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4982         generic_func_frame_chain_valid.
4983
4984 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
4985
4986         * config/i386/nm-fbsd.h: Include <sys/param.h>.
4987         * config/i386/tm-fbsd.h: Likewise.
4988
4989 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4990
4991         * rs6000-tdep.c (rs6000_gdbarch_init): Use
4992         generic_unwind_get_saved_register.
4993
4994 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
4995
4996         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4997         * regcache.c (supply_register): Add missing argument to
4998         register_buffer call.
4999
5000 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5001
5002         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
5003         Solaris /bin/grep does not not like it.  From Peter Schauer.
5004
5005 2002-06-26  Tom Tromey  <tromey@redhat.com>
5006
5007         * command.h (add_setshow_cmd): Declare.
5008         (add_setshow_cmd_full): Declare.
5009         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
5010         returns void.  Use add_setshow_cmd_full.
5011         (add_setshow_cmd_full): New function.
5012         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5013         (add_setshow_boolean_cmd): Likewise.
5014
5015 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5016
5017         * config/vax/tm-vax.h: Protect from multiple inclusion.
5018         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5019         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5020         * config/vax/tm-vaxbsd.h: ...here.  New file.
5021         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5022
5023 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5024
5025         * config/vax/tm-vax.h (BREAKPOINT): Remove.
5026         (BELIEVE_PCC_PROMOTION): Remove.
5027         (AP_REGNUM): Move to...
5028         * config/vax/nm-vax.h: ...here.
5029         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5030         (vax_breakpoint_from_pc): New function.
5031         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5032         and gdbarch_believe_pcc_promotion.
5033
5034 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5035
5036         * Makefile.in (vax_tdep_h): Define.  
5037         (vax-tdep.o): Use $(vax_tdep_h).
5038         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5039         (vax_dump_tdep): New function. 
5040         (_initialize_vax_tdep): Register vax_dump_tdep.
5041         * vax-tdep.h: Include osabi.h.     
5042         (struct gdbarch_tdep): New. 
5043
5044 2002-06-26  Andrew Cagney  <cagney@redhat.com>
5045
5046         * frame.h (deprecated_generic_find_dummy_frame): Rename
5047         generic_find_dummy_frame.
5048         * blockframe.c (generic_find_dummy_frame): Make static.
5049         (deprecated_generic_find_dummy_frame): New function.
5050         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5051         generic_find_dummy_frame with deprecated_find_dummy_frame.
5052         (sh64_nofp_frame_init_saved_regs): Ditto.
5053         (sh_fp_frame_init_saved_regs): Ditto.
5054         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5055         (s390_frame_chain): Ditto.
5056         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5057
5058 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5059
5060         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5061         gdbarch vector are at the top.
5062         (NUM_REGS): Remove.
5063         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5064         (FRAME_ARGS_ADDRESS): Remove.
5065         (FRAME_LOCALS_ADDRESS): Remove.
5066         (FRAME_NUM_ARGS): Remove.
5067         (FRAME_ARGS_SKIP): Remove.  
5068         * m68k-tdep.c (enum): Add eumeration of special register numbers.
5069         (m68k_gdbarch_init): Add gdbarch initializations for macros
5070         undefined in tm-m68k.h
5071
5072 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5073
5074         * monitor.h: Add the function regname to monitor_ops
5075         structure. This way NUM_REGS does not have to be a constant.
5076         * monitor.c (monitor_fetch_register): Added support for regname
5077         function. The function is called if the array regnames is NULL.
5078         (monitor_store_register): Same.
5079         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5080         regnames array.
5081         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5082         cpu32bug_cmds.regname to point to new function.
5083         * abug-rom.c (abug_regname): Same as above.
5084         (init_abug_cmds): Same.
5085         * dbug-rom.c (dbug_regname): Same as above.
5086         (init_dbug_cmds): Same.
5087         * remote-est.c (est_regname): Same. 
5088         (init_est_cmds): Same.
5089         * rom68k-rom.c (rom68k_regname): Same. 
5090         (init_rom68k_cmds): Same.
5091
5092 2002-06-25  Tom Tromey  <tromey@redhat.com>
5093
5094         * breakpoint.c (delete_command): Don't repeat `delete' commands.
5095
5096 2002-06-25  Andrew Cagney  <cagney@redhat.com>
5097
5098         * infrun.c (stop_registers): Change variable's type to ``struct
5099         regcache'''.
5100         (xmalloc_inferior_status): Delete function.
5101         (free_inferior_status): Delete function.
5102         (normal_stop): Use regcache_cpy.
5103         (struct inferior_status): Change type of fields ``stop_registers''
5104         and ``registers'' to ``struct regcache''.
5105         (write_inferior_status_register): Use regcache_write.
5106         (save_inferior_status): Instead of calling
5107         xmalloc_inferior_status, allocate the inf_status buffer directly.
5108         Use regcache_dup_no_passthrough and regcache_dup to save the
5109         buffers.
5110         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5111         Replace the stop_registers regcache instead of overriding it.  Use
5112         regcache_xfree.  Instead of calling free_inferior_status, xfree
5113         the buffer directly.
5114         (discard_inferior_status): Use regcache_xfree.  Instead of calling
5115         free_inferior_status, xfree the buffer directly.
5116         (build_infrun): Use regcache_xmalloc.
5117         (_initialize_infrun): Delete redundant call to build_infrun.
5118
5119         * Makefile.in (infcmd.o): Add $(regcache_h).
5120
5121         * infcmd.c: Include "regcache.h".
5122         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5123         obtain the address of `stop_registers' register buffer.
5124         (print_return_value): Ditto.
5125
5126         * inferior.h (struct regcache): Add opaque declaration.
5127         (stop_registers): Change variable's declared type to ``struct
5128         regcache''.
5129
5130 2002-06-24  Tom Tromey  <tromey@redhat.com>
5131
5132         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5133         * target.c (initialize_targets): Fixed typo in
5134         trust-readonly-sections `show' documentation.
5135
5136         * main.c: Marked all strings with _().
5137
5138 2002-06-24  Don Howard  <dhoward@redhat.com>
5139
5140         * memattr.c (create_mem_region): Treat hi == 0 as a special case
5141         that means max CORE_ADDR+1.
5142         (lookup_mem_region): Ditto.
5143         (mem_info_command): Ditto.
5144
5145 2002-06-24  Grace Sainsbury  <graces@redhat.com>
5146
5147         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5148         (REGISTER_BYTES_OK): Remove.
5149         (REGISTER_BYTES): Remove.
5150         (STORE_STRUCT_RETURN): Remove.
5151         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5152         (STORE_RETURN_VALUE): Remove.
5153         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5154         (FRAME_CHAIN): Remove.
5155         (FRAMELESS_FUNCTION_INVOCATION): Remove.
5156         (FRAME_SAVED_PC): Remove.  
5157         * m68k-tdep.c (m68k_register_bytes_ok):Add.
5158         (m68k_store_struct_return): Add.
5159         (m68k_deprecated_extract_return_value): Add.
5160         (m68k_deprecated_extract_struct_value_address): Add.
5161         (m68k_store_return_value): Add.
5162         (m68k_frame_chain): Add.
5163         (m68k_frameless_function_invocation): Add.
5164         (m68k_frame_saved_pc): Add.
5165         (m68k_gdbarch_init): added set_gdbarch calls for new 
5166         functions and deleted macros.
5167
5168 2002-06-23  Tom Tromey  <tromey@redhat.com>
5169
5170         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5171         (ALLDEPFILES): Likewise.
5172         (udiheaders): Removed.
5173         (udip2soc.o): Likewise.
5174         (udi2go32.o): Likewise.
5175         (udr.o): Likewise.
5176         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5177
5178 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
5179
5180         * infrun.c (_initialize_infrun): Delete unnecessary call to
5181         build_infrun.
5182
5183         * regcache.h: Update comments describing the regcache_cpy family
5184         of functions.
5185         (regcache_save, regcache_restore): Delete declaration.
5186         (regcache_save_no_passthrough): Delete declaration.
5187         (regcache_restore_no_passthrough): Delete declaration.
5188         * regcache.c (regcache_save): Delete function.
5189         (regcache_save_no_passthrough): Delete function.
5190         (regcache_restore): Delete function.
5191         (regcache_restore_no_passthrough): Delete function.
5192
5193 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
5194
5195         * config/m68k/tm-m68k.h: Fix typo.
5196         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5197         (m68k_frame_init_saved_regs): Declare.
5198
5199 2002-06-21  Jim Blandy  <jimb@redhat.com>
5200
5201         Remove some vestiges of Harris 88k support.
5202         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5203         register numbering quirk.
5204         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5205         odd symbols occurring in Harris 88k ELF targets.
5206
5207 2002-06-21  Tom Tromey  <tromey@redhat.com>
5208
5209         * gdb_locale.h: New file.
5210         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5211         (defs_h): Added gdb_locale.h.
5212         * configure, config.in: Rebuilt.
5213         * configure.in (PACKAGE): Define.
5214         * defs.h: Include gdb_locale.h.
5215         * main.c (captured_main): Call setlocale, bindtextdomain,
5216         textdomain.
5217
5218 2002-06-21  Dave Brolley  <brolley@redhat.com>
5219
5220         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5221         * config/frv/frv.mt: New file.
5222         * config/frv/tm-frv.h: New file.
5223         * configure.tgt: Support frv-*-*.
5224         * Makefile.in (frv-tdep.o): New target.
5225         * frv-tdep.c: New file.
5226         * NEWS: Mention frv.
5227
5228 2002-06-21  Dave Brolley  <brolley@redhat.com>
5229
5230         * MAINTAINERS: Add self to "Write After Approval" list.
5231
5232 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5233
5234         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5235         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5236         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5237         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5238         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5239
5240         * m68k-tdep.c: Include arch-utils.h
5241         (m68k_register_raw_size): Add.
5242         (m68k_register_virtual_size): Add.
5243         (m68k_register_virtual_type): Add.
5244         (m68k_register_name): Add.
5245         (m68k_stack_align): Add.
5246         (m68k_register_byte): Add.
5247         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5248         tm-m68k.h.
5249
5250 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5251
5252         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5253         m68k_find_saved_regs.
5254         (m68k_pop_frame): Removed saved_regs structure, and replaced
5255         references to it with frame->saved_regs.
5256         (m68k_gdbarch_init): Added function calls to initialize the
5257         gdbarch structure.
5258         (m68k_fix_call_dummy): Add. 
5259         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5260         (CALL_DUMMY): Remove.
5261         (CALL_DUMMY_LENGTH): Remove.
5262         (CALL_DUMMY_START_OFFSET): Remove.
5263         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5264         (FIX_CALL_DUMMY): Remove.
5265         (PUSH_DUMMY_FRAME): Remove.
5266         (POP_FRAME): Remove.
5267
5268 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5269
5270         * parse.c (parse_fprintf): New function used to avoid calls to
5271         fprintf in bison parser generated debug code.
5272         * parser-defs.h: Declaration of new parse_fprintf function.
5273         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5274         Set YYDEBUG to 1 by default.
5275         Set YYFPRINTF as parse_fprintf.
5276
5277 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
5278
5279         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
5280         encoding anymore.
5281         (pointer_encoding, enum ptr_encoding): New.
5282         (execute_cfa_program): Take care about pointer encoding.        
5283         (dwarf2_build_frame_info): Only call parse_frame_info for 
5284         .debug_frame and .eh_frame.
5285         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5286         fixed augmentation handling, added relative addressing, 
5287         ignore duplicate FDEs. Added comments.
5288         * dwarf2cfi.c: Reindented.
5289         
5290 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
5291
5292         * event-top.c (command_handler): Don't use space_at_cmd_start
5293         unless there is sbrk() on the host. Assign time and space data
5294         to union fields of the appropriate length.
5295
5296 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
5297
5298         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
5299         x86_64_register_name. Return type changed to 'const char *'.
5300         (x86_64_register_name2nr): Rename to x86_64_register_number.
5301         (x86_64_gdbarch_init): Update to reflect the change.
5302         * x86-64-tdep.h: Ditto.
5303         * x86-64-linux-nat.c (x86_64_fxsave_offset)
5304         (supply_fpregset): Ditto.
5305
5306 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5307
5308         * regcache.h: Update copyright.
5309         (struct regcache, struct gdbarch): Add opaque declarations.
5310         (current_regcache): Declare global variable.
5311         (regcache_read, regcache_write): Add gdbarch parameter.
5312         (regcache_save, regcache_save_no_passthrough)
5313         (regcache_restore, regcache_restore_no_passthrough)
5314         (regcache_dup, regcache_dup_no_passthrough)
5315         (regcache_cpy, regcache_cpy_no_passthrough)
5316         (deprecated_grub_regcache_for_registers)
5317         (deprecated_grub_regcache_for_register_valid)
5318         (regcache_valid_p): Add function declarations.
5319         
5320         * regcache.c: Update copyright.
5321         (regcache_descr_handle): New global variable.
5322         (struct regcache_descr): Define.
5323         (init_legacy_regcache_descr, init_regcache_descr): New functions.
5324         (regcache_descr, xfree_regcache_descr): New functions.
5325         (struct regcache): Define.
5326         (regcache_xmalloc, regcache_xfree): New functions.
5327         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5328         (regcache_dup, regcache_dup_no_passthrough): New functions.
5329         (regcache_valid_p, regcache_read_as_address): New functions.
5330         (deprecated_grub_regcache_for_registers): New function.
5331         (deprecated_grub_regcache_for_register_valid): New function.
5332         (current_regcache): New global variable.
5333         (register_buffer): Add regcache parameter.  Update calls.
5334         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
5335         (read_register_gen, write_register_gen): Update register_buffer
5336         call.  Test for legacy_p instead of gdbarch_register_read_p or
5337         gdbarch_register_write_p.
5338         (regcache_collect): Update register_buffer call.
5339         (build_regcache): Rewrite.  Use deprecated grub functions.
5340         (regcache_save, regcache_save_no_passthrough): New functions.
5341         (regcache_restore, regcache_restore_no_passthrough): New
5342         functions.
5343         (_initialize_regcache): Create the regcache_data_handle. Swap
5344         current_regcache global variable.
5345         
5346         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5347         parameter to regcache_read and regcache_write calls.
5348         (sh4_register_read): Ditto.
5349         (sh64_pseudo_register_read): Ditto.
5350         (sh64_register_read): Ditto.
5351         (sh_pseudo_register_write): Ditto.
5352         (sh4_register_write): Ditto.
5353         (sh64_pseudo_register_write): Ditto.
5354         (sh64_register_write): Ditto.
5355
5356         * defs.h (XCALLOC): Define.
5357
5358 2002-06-19  Grace Sainsbury  <graces@redhat.com>
5359
5360         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5361         * m68k-tdep.c (m68k_gdbarch_init): Added.
5362         (m68k_dump_tdep): Added.
5363
5364 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5365
5366         * ada-lang.c (fill_in_ada_prototype): Update comment.
5367
5368 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5369
5370         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
5371         MIPS_ABI_LAST.
5372         (mips_abi_string, mips_abi_strings): New.
5373         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5374         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
5375         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
5376         O32 if no ABI is found.
5377         (mips_dump_tdep): Use mips_abi_strings.
5378         (mips_abi_update): New function.
5379         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
5380         ``set mips abi'' and ``show mips abi''.  Check the size of
5381         mips_abi_strings.
5382
5383 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5384
5385         * i386-linux-tdep.c (i386_linux_register_name): Make return type
5386         constant.
5387
5388 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
5389
5390         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
5391         current frame using only the first stack size adjustment. All
5392         subsequent size adjustments are not considered to be part of
5393         the "static" part of the current frame.
5394         Compute the address of the saved registers relative to the
5395         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5396         in use in this frame.
5397
5398 2002-06-18  Don Howard  <dhoward@redhat.com>
5399  
5400         * valops.c (value_ind): Use value_at_lazy() when dereferencing
5401         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
5402         suggesting this solution.
5403
5404 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
5405
5406         * config/romp/xm-rtbsd.h: Delete file.
5407         * config/romp/rtbsd.mh: Delete file.
5408
5409 2002-06-18  Keith Seitz  <keiths@redhat.com>
5410
5411         * breakpoint.c (condition_command): Post breakpoint_modify
5412         when a condition is added to an existing breakpoint.
5413         (commands_command): Likewise for commands.
5414         (set_ignore_count): Likewise for ignore counts.
5415         If no tty, do not simply return, still need to send event
5416         notification.
5417         (ignore_command): Only print a newline if the command came
5418         from a tty.
5419         Don't call breakpoints_changed, since this is now properly
5420         handled by set_ignore_count.
5421
5422 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5423
5424         * MAINTAINERS: Note that cris-elf target can be compiled with
5425         -Werror.
5426         * cris-tdep.c (cris_register_name): Make return type constant.
5427         (cris_breakpoint_from_pc): Ditto.
5428
5429 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5430
5431         * frame.h (struct frame_info): Change type of context to 
5432         'struct context'.
5433
5434 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5435
5436         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5437         pointer.
5438         * gdbarch.h, gdbarch.c: Regenerate.
5439         * config/mips/tm-mips.h (mips_register_name): Update.
5440         * i386-tdep.h (i386_register_name): Update.
5441         * mips-tdep.c (mips_register_name): Update
5442         * alpha-tdep.c (alpha_register_name): Update.
5443         * arch-utils.c (legacy_register_name): Update.
5444         * arch-utils.h (legacy_register_name): Update.
5445         * avr-tdep.c (avr_register_name): Update.
5446         * ia64-tdep.c (ia64_register_name): Update.
5447         * i386-tdep.c (i386_register_name): Update.
5448         * sparc-tdep.c (sparc32_register_name): Update.
5449         (sparc64_register_name): Update.
5450         (sparclite_register_name): Update.
5451         (sparclet_register_name): Update.
5452         * sh-tdep.c (sh_generic_register_name): Update.
5453         (sh_sh_register_name): Update.
5454         (sh_sh3_register_name): Update.
5455         (sh_sh3e_register_name): Update.
5456         (sh_sh_dsp_register_name): Update.
5457         (sh_sh3_dsp_register_name): Update.
5458         (sh_sh4_register_name): Update.
5459         (sh_sh64_register_name): Update.
5460         * s390-tdep.c (s390_register_name): Update.
5461         * rs6000-tdep.c (rs6000_register_name): Update.
5462         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5463         (ns32k_register_name_32382): Update.
5464         * d10v-tdep.c (d10v_ts2_register_name): Update.
5465         (d10v_ts3_register_name): Update.
5466         * xstormy16-tdep.c (xstormy16_register_name): Update.
5467         * vax-tdep.c (vax_register_name): Update.
5468         * v850-tdep.c (v850_register_name): Update.
5469         * m68hc11-tdep.c (m68hc11_register_name): Update.
5470         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5471         (am33_register_name): Update.
5472
5473 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5474
5475         * m68k-tdep.c: Reindented.
5476
5477 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5478
5479         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5480         list of predefined types.
5481
5482 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5483
5484         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5485         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5486         REGISTER_CONVERT_TO_RAW): Remove defines.
5487         (i386_register_virtual_type, i386_register_convertible,
5488         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5489         Remove prototypes.
5490         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5491         macros mentioned above.
5492
5493         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5494         (i386lynx_saved_pc_after_call): Remove prototype.
5495         * i386ly-tdep.c: Include "i386-tdep.h".
5496         (i386lynx_saved_pc_after_call): Make static.  Use
5497         read_memory_nobpt instead of read_memory.  Use
5498         read_memory_unsigned_integer instead of read_memory_integer.
5499         (i386lynx_init_abi): New function.
5500         (i386lynx_coff_osabi_sniffer): New function.
5501         (_initialize_i386bsd_tdep): New function.
5502
5503         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5504         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5505         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5506         (i386_fix_call_dummy): Remove prototype.
5507         * i386-tdep.c (i386_call_dummy_words): New variable.
5508         (i386_gdbarch_init): Adjust for removal of the
5509         macros mentioned above.
5510
5511 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5512
5513         * command.h (add_setshow_auto_boolean_cmd): Replace
5514         add_set_auto_boolean_cmd.
5515         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5516         add_set_auto_boolean_cmd.
5517         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5518         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5519         mask-address'' command.
5520         (show_mask_address): Add cmd parameter.
5521         * remote.c (add_packet_config_cmd): Update.  Change type of
5522         set_func and show_func to cmd_sfunc_ftype.
5523         (_initialize_remote): Update `set remote Z-packet'
5524         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5525         (show_remote_protocol_e_packet_cmd): Ditto.
5526         (show_remote_protocol_E_packet_cmd): Ditto.
5527         (show_remote_protocol_P_packet_cmd): Ditto.
5528         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5529         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5530         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5531         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5532         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5533         (show_remote_protocol_Z_packet_cmd): Ditto.
5534         (show_remote_protocol_binary_download_cmd): Ditto.
5535         (show_remote_cmd): Pass NULL to all of above.
5536
5537 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5540         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5541         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5542         POP_FRAME): Remove defines.
5543         (i386_push_arguments, i386_store_struct_return,
5544         i386_extract_return_value, i386_store_return_value,
5545         i386_extract_struct_value_address, i386_push_dummy_frame,
5546         i386_pop_frame): Renove prototypes.
5547         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5548         macros mentioned above.
5549
5550 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5551
5552         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5553         add_set_boolean_cmd.
5554         (add_setshow_cmd): New function.
5555         * command.h (add_setshow_boolean_cmd): Replace
5556         add_set_boolean_cmd.
5557         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5558         and ``set rdiromatzero''.
5559         * maint.c (_initialize_maint_cmds): Update commented out code.
5560         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5561         * target.c (initialize_targets): Update `set
5562         trust-readonly-sections'.
5563         * remote.c (_initialize_remote): Update `set remotebreak'.
5564
5565 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5566
5567         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5568         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5569         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5570         fit into multi-arch framework.
5571         (i386_breakpoint_from_pc): New function.
5572         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5573         above.
5574
5575         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5576         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5577         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5578         (i386_frameless_function_invocation, i386_frame_num_args,
5579         i386_frame_init_saved_regs): Remove prototypes.
5580         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5581         macros mentioned above.
5582
5583 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5584
5585         * cli/cli-decode.c (set_cmd_cfunc): Update.
5586         (set_cmd_sfunc): Update.
5587         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5588         (set_cmd_sfunc, set_cmd_cfunc): Update.
5589         * cli/cli-decode.h: Update.
5590
5591 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5592
5593         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5594         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5595
5596 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5597
5598         * defs.h (auto_boolean): Declare enum.
5599         * command.h (cmd_auto_boolean): Delete enum.
5600         * mips-tdep.c (mask_address_var): Update.
5601         (mips_mask_address_p): Update.
5602         (show_mask_address): Update.
5603         * remote.c (struct packet_config): Update.
5604         (update_packet_config): Update.
5605         (show_packet_config_cmd): Update.
5606         (packet_ok): Update.
5607         (add_packet_config_cmd): Update.
5608         (_initialize_remote): 
5609         * command.h: Update.
5610         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5611         (do_setshow_command): Update.
5612         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5613         * cli/cli-decode.h: Update.
5614
5615 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5616
5617         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5618         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5619         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5620         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5621         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5622         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5623
5624         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5625         list of DJGPP COFF targets.
5626
5627         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5628         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5629         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5630         (FP0_REGNUM): Remove define.
5631         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5632         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5633         (i386_register_virtual_size): Remove protoype.
5634         * i386-tdep.c (i386_register_virtual_size): Removed.
5635         (i386_extract_return_value, i386_store_return_value): Use
5636         FP0_REGNUM instead of NUM_FREGS to determine whether the
5637         floating-point registers are available.
5638         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5639         Adjust for removal of macros mentioned above.
5640
5641 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5642
5643         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5644         comments.
5645         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5646         Remove prototypes.
5647         (supply_gregset, fill_gregset): Remove use of register keyword and
5648         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5649         NUM_REGS and NUM_FREGS.
5650         (FPREGSET_FSAVE_OFFSET): Remove.
5651         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5652         NUM_FREGS to determine whether the floating-point registers are
5653         available.
5654
5655         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5656         gnu_store_registers): Replace usage of NUM_GREGS with
5657         I386_NUM_GREGS.
5658
5659         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5660         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5661         usage of NUM_GREGS with I386_NUM_GREGS.
5662
5663         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5664
5665         * i386bsd-nat.c: Include "i386-tdep.h".
5666         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5667         I386_NUM_GREGS.
5668
5669         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5670         and associated comment.  They no longer make any sense, since we
5671         don't use this file anymore on Linux.
5672
5673         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5674         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5675         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5676         elements in these arrays.
5677         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5678         MAX_NUM_REGS.
5679
5680 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5681
5682         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5683         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5684
5685 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5686
5687         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5688         EXTRACT_RETURN_VALUE.
5689         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5690         EXTRACT_STRUCT_VALUE_ADDRESS.
5691         * gdbarch.h, gdbarch.c: Regenerate.
5692         
5693         * values.c (value_being_returned): Handle
5694         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5695         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5696
5697         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5698         * arm-tdep.c (arm_gdbarch_init): Update.
5699         * avr-tdep.c (avr_gdbarch_init): Update.
5700         * cris-tdep.c (cris_gdbarch_init): Update.
5701         * d10v-tdep.c (d10v_gdbarch_init): Update.
5702         * ia64-tdep.c (ia64_gdbarch_init): Update.
5703         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5704         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5705         * s390-tdep.c (s390_gdbarch_init): Update.
5706         * sh-tdep.c (sh_gdbarch_init): Update.
5707         * s390-tdep.c (s390_gdbarch_init): Update.
5708         * sparc-tdep.c (sparc_gdbarch_init): Update.
5709         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5710         * v850-tdep.c (v850_gdbarch_init): Update.
5711         * vax-tdep.c (vax_gdbarch_init): Update.
5712         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5713         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5714
5715         * config/arc/tm-arc.h: Update.
5716         * config/d30v/tm-d30v.h: Update.
5717         * config/fr30/tm-fr30.h: Update.
5718         * config/h8300/tm-h8300.h: Update.
5719         * config/h8500/tm-h8500.h: Update.
5720         * config/i386/tm-i386.h: Update.
5721         * config/i386/tm-ptx.h: Update.
5722         * config/i386/tm-symmetry.h: Update.
5723         * config/i960/tm-i960.h: Update.
5724         * config/m32r/tm-m32r.h: Update.
5725         * config/m68k/tm-delta68.h: Update.
5726         * config/m68k/tm-linux.h: Update.
5727         * config/m68k/tm-m68k.h: Update.
5728         * config/m88k/tm-m88k.h: Update.
5729         * config/mcore/tm-mcore.h: Update.
5730         * config/mips/tm-mips.h: Update.
5731         * config/mn10200/tm-mn10200.h: Update.
5732         * config/pa/tm-hppa.h: Update.
5733         * config/pa/tm-hppa64.h: Update.
5734         * config/sparc/tm-sp64.h: Update.
5735         * config/sparc/tm-sparc.h: Update.
5736         * config/sparc/tm-sparclet.h: Update.
5737         * config/z8k/tm-z8k.h: Update.
5738
5739 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5740
5741         * Makefile.in (i386_linux_tdep_h): Define.
5742         (i386_tdep_h, i387_tdep_h): Define.
5743         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5744         $(i386_tdep_h) and $(i387_tdep_h).
5745         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5746
5747 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5748
5749         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5750         Already covered by the default.
5751
5752         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5753         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5754         (i386_gdbarch_init): Initialize long_double_format and long_double
5755         bit.
5756
5757         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5758         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5759         Move these to ...
5760         * config/i386/i386sol2.mh: ... here.
5761         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5762         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5763         (SIGCONTEXT_PC_OFFSET): Remove define.
5764         (IN_SIGTRAMP): Remove define.
5765         * i386-sol2-tdep.c: New file.
5766         
5767         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5768         * config/i386/tm-i386nw.h: Removed.
5769
5770         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5771         USE_STRUCT_CONVENTION): Remove defines.
5772         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5773         (get_longjmp_target): Remove prototype.
5774         (IN_SIGTRAMP): Remove define.
5775         (i386bsd_in_sigtramp): Remove prototype.
5776         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5777         function.  Update comment accordingly
5778         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5779         (FRAME_SAVED_PC): Remove define.
5780         (i386bsd_frame_saved_pc): Remove prototype.
5781         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5782         GET_LONGJMP_TARGET): Remove defines.
5783         (get_longjmp_target): Remove prototype.
5784         (IN_SIGTRAMP): Remove define.
5785         (i386bsd_in_sigtramp): Remove prototype.
5786         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5787         function.  Update comment accordingly
5788         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5789         (FRAME_SAVED_PC): Remove define.
5790         (i386bsd_frame_saved_pc): Remove prototype.
5791         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5792         Remove prototype.
5793         (USE_STRUCT_CONVENTION): Remove prototype.
5794         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5795         declaration.
5796         (_initialize_i386bsd_nat): Revise logic to determine some
5797         constants at compile time when compiling a native GDB.  Warn if
5798         things don't match up with what we expect.
5799         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5800         Remove variables.
5801         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5802         to use date stored in `struct gdbarch_tdep'.
5803         (i386bsd_sigcontext_offset): Remove varaible.
5804         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5805         stored in `struct gdbarch_tdep'.
5806         (i386bsd_frame_saved_pc): Make static.
5807         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5808         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5809         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5810         i386fbsd4_sc_pc_offset): New variables.
5811         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5812         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5813         functions.
5814         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5815         functions.
5816         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5817         Modify the value of i386fbsd_sigtramp_start and
5818         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5819         i386fbsd_sigtramp_end.
5820         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5821         function.
5822
5823         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5824         define to i386-linux-tdep.h.
5825         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5826         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5827         defines.
5828         (i386_linux_register_name, i386_linux_register_byte,
5829         i386_linux_register_raw_size): Remove prototypes.
5830         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5831         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5832         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5833         TARGET_WRITE_PC): Remove defines.
5834         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5835         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5836         i386_linux_write_pc): Remove prototypes.
5837         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5838         (get_longjmp_target): Remove prototype.
5839         * i386-linux-tdep.h: New file.
5840         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5841         * i386-linux-tdep.c: Include "i386-tdep.h" and
5842         "i386-linux-tdep.h".
5843         (i386_linux_register_name, i386_linux_register_byte,
5844         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5845         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5846         Make static.
5847         (i386_linux_init_abi): New function.
5848         (_initialize_i386_linux_tdep): New function.
5849
5850         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5851         (i386_saved_pc_after_call): Remove prototype.
5852         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5853         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5854         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5855         (i386_register_name, i386_stab_reg_to_regnum,
5856         i386_dwarf_reg_to_regnum): Remove prototypes.
5857         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5858         SIZEOF_SSE_REGS): Remove defines.
5859         (REGISTER_BYTES): Remove define.
5860         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5861         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5862         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5863         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5864         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5865         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5866         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5867         (get_longjmp_target): Remove prototype.
5868         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5869         (sigtramp_saved_pc): Remove define.
5870         (i386v4_sigtramp_saved_pc): Remove prototype.
5871         * config/i386/tm-go32.h (FRAME_CHAIN,
5872         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5873         (i386go32_frame_saved_pc): Remove prototype.
5874         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5875         (get_longjmp_target): Remove prototype.
5876         * i386-tdep.h: Include "osabi.h".
5877         (enum i386_abi): Removed.
5878         (enum struct_return): New enum.
5879         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5880         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5881         sc_pc_offset members.
5882         (i386_gdbarch_register_os_abi): Remove prototype.
5883         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5884         I386_SSE_NUM_REGS): New defines.
5885         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5886         I386_SSE_SIZEOF_REGS): New defines.
5887         (i386_register_name, i386_register_byte, i386_register_raw_size):
5888         New prototypes.
5889         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5890         (i386bsd_sigtramp_saved_pc): New prototype.
5891         * i386-tdep.c: Don't include "elf-bfd.h".
5892         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5893         i386_frame_chain, i386_saved_pc_after_call): Make static.
5894         (i386_frame_saved_pc): Rewrite to call architecture dependent
5895         function to deal with signal handlers.  Make static.
5896         (i386go32_frame_saved_pc): Removed.
5897         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5898         Removed.
5899         (i386_get_longjmp_target): New function.
5900         (default_struct_convention, pcc_struct_convention,
5901         reg_struct_convention, valid_conventions, struct_convention): New
5902         variables.
5903         (i386_use_struct_convention): New function.
5904         (i386v4_sigtramp_saved_pc): Renamed to
5905         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5906         (i386_pc_in_sigtramp): New function.
5907         (i386_abi_names): Removed.
5908         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5909         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5910         Removed.
5911         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5912         i386_gdbarch_register_os_abi): Removed.
5913         (struct i386_abi_handler): Removed.
5914         (i386_abi_handler_list): Removed.
5915         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5916         functions.
5917         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5918         i386_nw_init_abi): New functions.
5919         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5920         Use set_gdbarch_xxx() calls instead of relying on macros for a
5921         number of calls.
5922         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5923         (_initialize_i386_tdep): Add new 'struct-convcention' command.
5924         Register the various architecture variants defined in this file.
5925
5926 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5927
5928         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5929         (struct main_type): Remove arg_types member.  Update comments for
5930         struct field.
5931         (TYPE_ARG_TYPES): Remove.
5932         (TYPE_FN_FIELD_ARGS): Update.
5933         (smash_to_method_type): Update prototype.
5934
5935         * c-typeprint.c (cp_type_print_method_args): Take method type
5936         instead of argument list.  Use new argument layout.  Simplify.
5937         (c_type_print_args): Use new argument layout.  Simplify.
5938         (c_type_print_base): Update call to cp_type_print_method_args.
5939         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5940         argument; use die->type instead.  Update call to
5941         smash_to_method_type.
5942         (read_structure_scope): Update call to dwarf2_add_member_fn.
5943         * gdbtypes.c (allocate_stub_method): Update comment.
5944         (smash_to_method_type): Take new NARGS and VARARGS arguments.
5945         Use new argument layout.
5946         (check_stub_method): Use new argument layout.  Don't count
5947         void as an argument.
5948         (print_arg_types): Update comments.  Use new argument layout.
5949         (recursive_dump_type): Don't print arg_types member.
5950         * hpread.c (hpread_read_struct_type): Use new argument layout.
5951         (fixup_class_method_type): Likewise.
5952         (hpread_type_lookup): Likewise.
5953         * stabsread.c (read_type): Update calls to read_args and
5954         smash_to_method_type.
5955         (read_args): Use new argument layout.  Simplify.
5956         * valops.c (typecmp): Use new argument layout.  Update parameters
5957         and comments.  Simplify.
5958         (hand_function_call): Use new argument layout.
5959         (search_struct_method): Update call to typecmp.
5960         (find_overload_match): Use new argument layout.
5961
5962 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5963
5964         * NEWS: Mention multithreaded debug support for gdbserver.
5965
5966 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5967
5968         * MAINTAINERS: Mention NEWS.
5969
5970 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5971
5972         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5973         (struct mips_objfile_private, compare_pdr_entries): New.
5974         (non_heuristic_proc_desc): Read the ".pdr" section if it
5975         is present.
5976
5977 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5978
5979         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5980         (arm_debug): New static variable.
5981         (_initialize_arm_tdep): Add ``set debug arm'' command.
5982
5983 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
5984
5985         * Makefile.in (sim_arm_h): Define.
5986         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5987         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5988         (arm_register_sim_regno): New function, map an internal REGNUM
5989         onto a simulator register number.
5990         (arm_gdbarch_init): Set register_sim_regno.
5991
5992 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
5993
5994         * MAINTAINERS: Add self.
5995
5996 2002-06-11  Jim Blandy  <jimb@redhat.com>
5997
5998         * source.c (source_info): Mention whether the symtab has
5999         information about preprocessor macros.
6000
6001         Call the command `info macro', not `show macro'.
6002         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6003         Fix error message.
6004         (_initialize_macrocmd): Register `info_macro_command' in
6005         `infolist', not `showlist'.
6006
6007 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
6008
6009         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6010         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6011         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6012         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6013         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
6014         unconditionally.
6015         (set_mipsfpu_single_command, set_mipsfpu_double_command)
6016         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6017         (_initialize_mips_tdep): Remove dead code.
6018         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6019         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6020         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6021         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6022         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6023         MIPS_LAST_FP_ARG_REGNUM): Remove.
6024
6025 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6026
6027         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6028         (unwind_tmp_obstack_free, parse_frame_info)
6029         (update_context, cfi_read_fp, cfi_write_fp)
6030         (cfi_frame_chain, cfi_init_extra_frame_info)
6031         (cfi_virtual_frame_pointer): Use the above function.
6032         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6033
6034 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
6035
6036         * v850-tdep.c (v850_type_is_scalar): New function.
6037         (v850_use_struct_convention): Match current gcc implementation
6038         as close as possible.
6039         (v850_push_arguments): Fix stack_offset handling.  Don't write
6040         struct_addr into register.  This is done by v850_store_struct_return.
6041         (v850_extract_return_value): Care for structs.
6042         (v850_store_return_value): Ditto.
6043         (v850_store_struct_return): Actually write address.
6044
6045 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6046
6047         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6048         without debug information too.
6049
6050 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6051
6052         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6053         Make multi-arch pure.
6054         * gdbarch.h, gdbarch.c: Re-generate.
6055         * arm-tdep.c (arm_print_float_info): Update.
6056         * arch-utils.h (default_print_float_info): Update.
6057         * arch-utils.c (default_print_float_info): Update.
6058         * infcmd.c (float_info): Update call.
6059
6060 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6061
6062         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6063         the front of the initialize list.
6064
6065 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6066
6067         * infrun.c (struct inferior_status): Replace fields
6068         selected_frame_address and selected_level with field
6069         selected_frame_id.
6070         (save_inferior_status): Update.  Use get_frame_id.
6071         (struct restore_selected_frame_args): Delete.
6072         (restore_selected_frame): Update.  Use frame_find_by_id.
6073         (restore_inferior_status): Update.
6074
6075         * breakpoint.h (struct breakpoint): Change type of
6076         watchpoint_frame to frame_id.
6077         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
6078         call to get_current_frame.
6079         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
6080         get_current_frame.
6081         (watchpoint_check): Use frame_find_by_id.
6082
6083         * frame.h (record_selected_frame): Delete declaration.
6084         * stack.c (record_selected_frame): Delete function.
6085         
6086         * frame.h (struct frame_id): Define.
6087         (get_frame_id): Declare.
6088         (frame_find_by_id): Declare.
6089         * frame.c (frame_find_by_id): New function.
6090         (get_frame_id): New function.
6091
6092 2002-06-10  Andrey Volkov <avolkov@transas.com>
6093
6094         * ser-e7kpc.c: Fix duplicated define and call of 
6095         _initialize_ser_e7000pc
6096             
6097 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6098
6099         * signals/signals.c (target_signal_from_host): Fix #ifdef
6100         SIGRTMIN case.
6101         (do_target_signal_to_host): Likewise.
6102
6103 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6104
6105         * mips-tdep.c (mips_find_abi_section): New function.
6106         (mips_gdbarch_init): Call it.
6107
6108 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6109
6110         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6111         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
6112         after Andrew's 2002-06-08 gdbarch change.
6113
6114 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6115
6116         * i386-linux-nat.c (suppy_gregset): Don't supply
6117         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6118         register cache.
6119         (fill_gregset): Don't fetch it under the same circumstances.
6120
6121 2002-06-09  Andrew Cagney  <cagney@redhat.com>
6122
6123         * Makefile.in (callback_h): Define.
6124         (remote_sim_h): Update path to remote-sim.h.
6125         (remote-rdp.o): Add $(callback_h).
6126         (remote-sim.o): Use $(callback_h).
6127         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6128         * remote-rdp.c: Include "gdb/callback.h".
6129
6130 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6131
6132         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6133         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6134
6135 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6136
6137         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6138         * rdi-share/serpardr.c: Ditto.
6139         * rdi-share/unixcomm.c: Ditto.
6140         * rdi-share/serdrv.c: Ditto.
6141         * rdi-share/hostchan.h: Ditto.
6142         * rdi-share/hostchan.c: Ditto.
6143         * rdi-share/host.h: Ditto.
6144         * rdi-share/devsw.c: Ditto.
6145
6146         * objfiles.h: Change type of obj_private to void pointer.
6147         * pa64solib.c: Update copyright.  Don't include "assert.h", use
6148         strcmp instead of STREQ, use LONGEST, do not use PTR
6149         * somsolib.c: Ditto.
6150
6151         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6152         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6153         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6154
6155 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6156
6157         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6158         (default_get_saved_register): Delete function.
6159         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6160         generic_unwind_get_saved_register.
6161         * gdbarch.h, gdbarch.c: Re-generate.
6162         
6163 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6164
6165         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6166         generic_func_frame_chain_valid.
6167         * gdbarch.h, gdbarch.c: Re-generate.
6168         * blockframe.c (generic_func_frame_chain_valid): Only check
6169         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
6170         passing FP to PC_IN_CALL_DUMMY.
6171         Fix PR gdb/360.
6172
6173 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6174
6175         * gdbarch.sh (struct gdbarch_data): Add field init_p.
6176         (register_gdbarch_data): Initialize init_p.
6177         (gdbarch_data): Initialize data pointer using the init function.
6178         (init_gdbarch_data): Delete function.
6179         (gdbarch_update_p): Update.
6180         (initialize_non_multiarch): Update.
6181         (struct gdbarch): Add field initialized_p.
6182         * gdbarch.h, gdbarch.c: Re-generate.
6183
6184 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
6185
6186         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6187         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6188         better do the things actually here.
6189         * x86-64-tdep.c (x86_64_register_name2nr): New.
6190         (x86_64_register_name): Renamed to x86_64_register_nr2name.
6191         (x86_64_gdbarch_init): Respect the above change.
6192         * x86-64-tdep.h (x86_64_register_name2nr)
6193         (x86_64_register_nr2name): Add prototypes.
6194         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6195
6196 2002-06-06  Michael Snyder  <msnyder@redhat.com>
6197
6198         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6199         Delete extra braces and re-indent.
6200         (d10v_store_return_value): Char return values
6201         must be shifted over by one byte in R0.
6202         (d10v_extract_return_value): Delete extra braces, re-indent.
6203
6204 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6205
6206         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6207         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6208         (d10v_integer_to_address): Rewrite.
6209         (d10v_frame_init_saved_regs): When reading fp and sp registers use
6210         the d10v specific functions which take care of converting to the
6211         correct space.
6212
6213 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6214
6215         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6216         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6217
6218 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6219
6220         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6221         includes.
6222         * config/tm-linux.h: Ditto.
6223         * config/alpha/tm-alphalinux.h: Ditto.
6224         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6225         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6226         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6227         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6228         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6229         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6230         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6231         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6232         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6233         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6234         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6235         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6236         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6237         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6238         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6239         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6240         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6241         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6242         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6243         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6244         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6245         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6246         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6247         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6248         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6249         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6250         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6251         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6252         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6253         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6254         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6255         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6256         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6257         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6258         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6259         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6260         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6261
6262 2002-05-04  Aidan Skinner <aidan@velvet.net>
6263
6264         * ada-exp.tab.c: New file
6265         * ada-exp.y: New file
6266         * ada-lang.c: New file
6267         * ada-lang.h: New file
6268         * ada-lex.c: New file
6269         * ada-lex.l: New file
6270         * ada-tasks.c: New file
6271         * ada-typeprint.c: New file
6272         * ada-valprint.c: New file
6273         
6274 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6275
6276         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6277         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6278
6279 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6280
6281         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6282         insetead of ppc-linux-tdep.o.
6283         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6284         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6285
6286 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6287
6288         2002-05-07 Christian Groessler <chris@groessler.org>
6289         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6290         bit register contents for little endian hosts.
6291
6292 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6293
6294         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6295         any maintainer.
6296
6297 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6298
6299         * gdbarch.h: Regenerate.
6300
6301 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6302
6303         * MAINTAINERS: Add everyone to write-after-approval list.
6304
6305 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6306
6307         * stack.c (frame_info): Use frame_register_unwind instead of
6308         saved_regs.  Mention when the SP is on the stack or in a register.
6309
6310         * frame.h (frame_register_unwind_ftype): Define.  Document.
6311         (struct frame_info): Add field register_unwind and
6312         register_unwind_cache.
6313         (frame_register_unwind): Declare.
6314         (generic_unwind_get_saved_register): Declare.
6315
6316         * frame.c (frame_register_unwind): New function.
6317         (generic_unwind_get_saved_register): New function.
6318
6319         * blockframe.c (generic_call_dummy_register_unwind): New function.
6320         (frame_saved_regs_register_unwind): New function.
6321         (set_unwind_by_pc): New function.
6322         (create_new_frame): New function.
6323         (get_prev_frame): New function.
6324
6325 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
6326
6327         * a29k-share/: Delete directory.
6328         * remote-vx29k.c: Delete file.
6329
6330 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6331
6332         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6333         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6334
6335 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6336
6337         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6338         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6339         (sparc64nbsd-nat.o)
6340         (sparcnbsd-nat.o)
6341         (sparcnbsd-tdep.o): New dependency lists.
6342         * NEWS: Note new UltraSPARC NetBSD native configuration.
6343         * configure.host (sparc64-*-netbsd*): New host.
6344         * configure.tgt (sparc-*-netbsdelf*)
6345         (sparc-*-netbsd*): Set gdb_target to nbsd.
6346         (sparc64-*-netbsd*): New target.
6347         * sparc64nbsd-nat.c: New file.
6348         * sparcnbsd-nat.c: New file.
6349         * sparcnbsd-tdep.c: New file.
6350         * sparcnbsd-tdep.h: New file.
6351         * config/sparc/nbsd.mt: New file.
6352         * config/sparc/nbsd64.mh: New file.
6353         * config/sparc/nbsd64.mt: New file.
6354         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6355         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6356         (HOST_IPC): Remove.
6357         * config/sparc/nbsdaout.mt: Remove.
6358         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6359         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6360         (HOST_IPC): Remove.
6361         * config/sparc/nbsdelf.mt: Remove.
6362         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
6363         sparc-nat.c compatiblity defines.
6364         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
6365         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6366         * config/sparc/tm-nbsd64.h: New file.
6367         * config/sparc/tm-nbsdaout.h: Remove.
6368         * config/sparc/xm-nbsd.h: Remove.
6369
6370 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6371
6372         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6373         * sparc-tdep.c: Include osabi.h.
6374         (gdbarch_tdep): Add osabi member.
6375         (_initialize_sparc_tdep): Use gdbarch_register.
6376         (sparc_gdbarch_init): Use generic OS ABI framework.
6377         (sparc_dump_tdep): New function.
6378
6379 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
6380
6381         * corefile.c (do_captured_read_memory_integer): Return non-zero
6382         result.
6383         (safe_read_memory_integer): Copy result of memory read when
6384         status is non-zero.  Also, add comments.
6385
6386 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
6387
6388         * Makefile.in (ppc_tdep_h): Define.
6389         (ppc-linux-nat.o)
6390         (ppc-linux-tdep.o)
6391         (rs6000-tdep.o): Use $(ppc_tdep_h).
6392         (ppc-sysv-tdep.o)
6393         (ppcnbsd-nat.o)
6394         (ppcnbsd-tdep.o): New dependency lists.
6395         * ppc-tdep.h: Use generic OS ABI framework.
6396         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6397         (ppc_linux_init_abi): New functions.
6398         (ppc_sysv_abi_broken_use_struct_convention)
6399         (ppc_sysv_abi_use_struct_convention)
6400         (ppc_sysv_abi_push_arguments): Move to...
6401         * ppc-sysv-tdep.c: ...here.
6402         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6403         * rs6000-tdep.c (process_note_abi_tag_sections)
6404         (get_elfosabi): Remove.
6405         (rs6000_gdbarch_init): Use generic OS ABI framework.
6406         (rs6000_dump_tdep): New function.
6407         (_initialize_rs6000_tdep): Use gdbarch_register.
6408         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6409         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6410         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6411         of ppc-linux-tdep.o.
6412         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6413         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6414         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6415         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6416         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6417         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6418
6419 2002-05-29  Jim Blandy  <jimb@redhat.com>
6420
6421         * macroscope.c (default_macro_scope): Put `void' in empty argument
6422         list.
6423
6424 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6425
6426         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6427         * arch-utils.c: Include "sim-regno.h".
6428         * gdbarch.sh: Don't include "sim-regno.h".
6429         * gdbarch.h, gdbarch.c: Regenerate.
6430         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6431         here.
6432         * arch-utils.h (legacy_register_sim_regno): To here.
6433         * remote-sim.c (legacy_register_sim_regno): Move function from
6434         here.
6435         * arch-utils.c (legacy_register_sim_regno): To here.
6436
6437 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6438
6439         * sim-regno.h: New file.
6440         * Makefile.in (sim_regno_h): Define.
6441         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6442         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6443         (legacy_register_sim_regno): New function.
6444         (one2one_register_sim_regno): New function.
6445         (gdbsim_fetch_register): Rewrite.
6446         (gdbsim_store_register): Only store a register when
6447         REGISTER_SIM_REGNO is valid.
6448         * d10v-tdep.c: Include "sim-regno.h".
6449         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6450         (d10v_ts3_register_sim_regno): Ditto.
6451         * gdbarch.sh: Include "sim-regno.h".
6452         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6453         * gdbarch.h, gdbarch.c: Regenerate.
6454         * arch-utils.h (default_register_sim_regno): Delete declaration.
6455         * arch-utils.c (default_register_sim_regno): Delete function.
6456
6457 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6458
6459         * ppcnbsd-nat.c: Rewrite.
6460         * ppcnbsd-tdep.c: New file.
6461         * ppcnbsd-tdep.h: New file.
6462         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6463         solib.o, and solib-svr4.o.
6464         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6465         nbsd-tdep.o, and corelow.o.
6466
6467 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6468
6469         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6470         `tr' and `sed'.  Mention that `broken' targets are not expected to
6471         build.
6472
6473 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6474
6475         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6476         Let PC point right after the prologue before looking up symbols.
6477         
6478 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6479
6480         * i386-tdep.c (i386_register_virtual_type): Return 
6481         builtin_type_vec128i for SSE registers.
6482
6483         * gdbtypes.h (builtin_type_vec128i): Declare.
6484
6485         * gdbtypes.c (build_builtin_type_vec128i): New function.
6486         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6487         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6488         (build_gdbtypes): Initialize new builtin vector types.
6489         (_initialize_gdbtypes): Register new vector types with gdbarch.
6490
6491 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6492
6493         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6494         since it has been multi-arch'd.
6495         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6496         Move Alpha and VAX multi-arch news entries to same section
6497         as other multi-arch news.
6498
6499 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6500
6501         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6502         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6503         static.  Rename some register numbers to put them in ns32k-tdep
6504         private namespace.
6505         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6506         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6507         functions.
6508         (_initialize_ns32k_tdep): Use gdbarch_register.
6509         * ns32k-tdep.h: New file.
6510         * ns32knbsd-tdep.c: New file.
6511         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6512         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6513         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6514         REGISTER_BYTES, REGISTER_BYTE): Remove.
6515         * config/ns32k/tm-ns32k.h: New file.
6516         * config/ns32k/tm-umax.h: Remove.
6517
6518 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6519
6520         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6521         ns32k_store_struct_return, ns32k_extract_return_value,
6522         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6523         functions.
6524         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6525         ns32k_saved_pc_after_call.
6526         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6527         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6528         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6529         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6530         ns32k_extract_struct_value_address.
6531
6532 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6533
6534         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6535         ns32k_fix_call_dummy): New.
6536         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6537         ns32k_call_dummy_words.
6538         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6539         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6540         CALL_DUMMY_NARGS): Remove.
6541         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6542
6543 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6544
6545         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6546         ns32k_frame_saved_pc, ns32k_frame_args_address,
6547         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6548         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6549         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6550         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6551         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6552         (BREAKPOINT): Remove..
6553         (FRAME_CHAIN): Define as ns32k_frame_chain.
6554         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6555         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6556         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6557         (FRAME_FIND_SAVED_REGS): Remove.
6558         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6559         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6560         (POP_FRAME): Define as ns32k_pop_frame.
6561
6562 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6563
6564         * ns32k-tdep.c (ns32k_register_byte_32082,
6565         ns32k_register_byte_32382, ns32k_register_raw_size,
6566         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6567         functions.
6568         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6569         ns32k_register_byte_32382.
6570         * config/ns32k/tm-umax.h: Update copyright years.
6571         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6572         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6573         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6574         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6575         (ns32k_get_enter_addr): Fix prototype.
6576
6577 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6578
6579         * ns32k-tdep.c: Update copyright years.
6580         (ns32k_register_name_32082): New function.
6581         (ns32k_register_name_32382): Ditto.
6582         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6583         (REGISTER_NAME): Define as ns32k_register_name_32382.
6584         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6585         (REGISTER_NAME): Define as ns32k_register_name_32082.
6586
6587 2002-05-24  Jim Blandy  <jimb@redhat.com>
6588
6589         * dwarf2read.c (free_line_header): Use xfree, not free.
6590
6591 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6592
6593         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6594         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6595
6596 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6597
6598         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6599
6600 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6601
6602         From Ross Alexander at NEC Europe:
6603         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6604
6605 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6606
6607         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6608         for input, rather than parse_and_eval_address.  
6609
6610 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6611
6612         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6613         * Makefile.in (sim_d10v_h): Update definition.
6614
6615 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6616
6617         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6618         change `2002-05-22 Michael Snyder' below.
6619         (d10v_push_arguments): Ditto.
6620         (d10v_extract_return_value): Ditto.
6621
6622 2002-05-23  Jim Blandy  <jimb@redhat.com>
6623
6624         * macrotab.c (check_for_redefinition): Don't complain if the new
6625         definition is the same as the previous one.  Take more arguments
6626         to allow the comparison.
6627         (macro_define_object, macro_define_function): Pass more arguments
6628         to check_for_redefinition.
6629
6630 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6631
6632         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6633         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6634         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6635         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6636         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6637         Add a temp variable to save a call (and a memory read).
6638         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6639         if possible (so that PC_IN_CALL_DUMMY will work).
6640
6641 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6642
6643         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6644
6645 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6646
6647         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6648         fde->cie_ptr.
6649         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6650         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6651         so that frames of shared libraries are mapped correctly.
6652         (execute_stack_op): Change type of 'result' from ULONGEST to
6653         CORE_ADDR.
6654         
6655 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6656
6657         * config/alpha/tm-nbsd.h: Include solib.h.
6658
6659 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6660
6661         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6662         assumptions about the host's byte order.
6663
6664 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6665
6666         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6667         to dependency list.
6668         * alphanbsd-tdep.c: Include solib-svr4.h.
6669         * shnbsd-tdep.c: Ditto.
6670
6671 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6672
6673         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6674         nbsd-tdep.h to dependency list.
6675         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6676         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6677         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6678         nbsdaout.mh and nbsdelf.mh consistently.
6679         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6680         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6681         nbsdaout.mt and nbsdelf.mh consistently.
6682         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6683         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6684         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6685         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6686         a.out shared library stuff from here...
6687         * config/nm-nbsdaout.h: ...to here.
6688         * config/tm-nbsd.h: Remove.
6689         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6690         * config/arm/nbsd.mh: Remove.
6691         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6692         nbsd-tdep.o.
6693         * config/arm/nbsdaout.mh: New file. 
6694         * config/arm/nbsdelf.mh: New file.
6695         * config/arm/nm-nbsdaout.h: New file.
6696         * config/i386/nbsd.mh: Remove.
6697         * config/i386/nbsd.mt: Remove.
6698         * config/i386/nbsdaout.mh: New file.
6699         * config/i386/nbsdaout.mt: New file.
6700         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6701         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6702         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6703         i386_register_u_addr): Remove.
6704         * config/i386/nm-nbsdaout.h: New file.
6705         * config/i386/nm-nbsdelf.h: Remove.
6706         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6707         (USE_STRUCT_CONVENTION): Remove.
6708         * config/i386/tm-nbsdaout.h: New file.
6709         * config/i386/tm-nbsdelf.h: Remove.
6710         * config/m68k/nbsd.mh: Remove.
6711         * config/m68k/nbsd.mt: Remove.
6712         * config/m68k/nbsdaout.mh: New file.
6713         * config/m68k/nbsdaout.mt: New file. 
6714         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6715         * config/m68k/nm-nbsdaout.h: New file.
6716         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6717         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6718         * config/ns32k/nbsd.mh: Remove.
6719         * config/ns32k/nbsd.mt: Remove. 
6720         * config/ns32k/nbsdaout.mh: New file.
6721         * config/ns32k/nbsdaout.mt: New file.
6722         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6723         * config/ns32k/nm-nbsdaout.h: New file.
6724         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6725         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6726         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6727         (SVR4_SHARED_LIBS): Remove.
6728         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6729         * config/sparc/nbsd.mh: Remove.
6730         * config/sparc/nbsd.mt: Remove.
6731         * config/sparc/nbsdaout.mh: New file.
6732         * config/sparc/nbsdaout.mt: New file.
6733         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6734         * config/sparc/nbsdelf.mt: New file.
6735         * config/sparc/nm-nbsdaout.h: New file.   
6736         * config/sparc/nm-nbsdelf.h: Remove.
6737         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6738         * config/sparc/tm-nbsdaout.h: New file.
6739
6740 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6741
6742         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6743         mipsnbsd-tdep.c
6744         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6745
6746 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6747
6748         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6749         shnbsd-nat.c.
6750         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6751
6752 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6753
6754         * NEWS: Note new MIPS NetBSD native configuration. 
6755         * configure.host (mips*-*-netbsd*): New host. 
6756         * configure.tgt (mips*-*-netbsd*): New target. 
6757         * mipsnbsd-nat.c: New file.
6758         * mipsnbsd-tdep.c: New file.
6759         * mipsnbsd-tdep.h: New file.
6760         * config/mips/nbsd.mh: New file.
6761         * config/mips/nbsd.mt: New file.
6762         * config/mips/nm-nbsd.h: New file.
6763         * config/mips/tm-nbsd.h: New file.
6764
6765 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6766
6767         * Makefile.in (SFILES): Add osabi.c.
6768         (COMMON_OBS): Add osabi.o.
6769         (osabi.o): New dependency list.
6770         * osabi.c: New file.
6771         * osabi.h: New file.
6772         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6773
6774         * Makefile.in (alpha_tdep_h): Define and use instead of
6775         alpha-tdep.h.
6776         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6777         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6778         Remove.
6779         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6780         * alpha-tdep.h: Include osabi.h.
6781         (alpha_abi): Remove.
6782         (gdbarch_tdep): Use generic OS ABI framework.
6783         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6784         gdbarch_register_osabi.
6785         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6786         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6787         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6788
6789         * Makefile.in (sh_tdep_h): Add osabi.h.
6790         * sh-tdep.h (sh_osabi): Remove.
6791         (gdbarch_tdep): Use generic OS ABI framework.
6792         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6793         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6794         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6795         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6796
6797         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6798         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6799         gdbarch_register_osabi.
6800         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6801         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6802         (get_elfosabi): Rename to...
6803         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6804         ABI framework support routines.
6805         (arm_gdbarch_init): Use generic OS ABI framework.
6806         (arm_dump_tdep): Likewise.
6807         (_initialize_arm_tdep): Likewise.
6808         * arm-tdep.h: Include osabi.h.
6809         (arm_abi): Remove.
6810         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6811         osabi member.
6812         (arm_gdbarch_register_os_abi): Remove prototype.
6813         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6814         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6815
6816         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6817         * mips-tdep.c: Include osabi.h.
6818         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6819         OS ABI framework.
6820
6821 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6822
6823         * h8300-tdep.c: Fix formatting.
6824
6825 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6826
6827         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6828         printing vector registers.
6829
6830 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6831
6832         From Fernando Nasser:
6833         * remote.c (remote_async_open_1): Re-throw the exception when the
6834         connection fails.
6835         (remote_cisco_open): Ditto.
6836         (remote_open_1): Ditto.
6837
6838 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6839
6840         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6841         (remote_start_remote): Add uiout parameter.  Pass through to
6842         remote_start_remote_dummy.
6843         (remote_open_1): Use catch_exception instead of catch_errors.
6844         (remote_async_open_1): Ditto.
6845         (remote_cisco_open): Ditto.
6846
6847 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6848
6849         * remote.c (remote_start_remote): Replace PTR with void pointer.
6850         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6851         static.
6852
6853 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6854
6855         * gdb_indent.sh: Allow the script to be run in the sim directory.
6856
6857 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6858
6859         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6860         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6861
6862         * corelow.c (core_open): Only call set_gdbarch_from_file if
6863         exec_bfd is NULL.
6864
6865 2002-05-17  Andrey Volkov <avolkov@transas.com>
6866
6867         * h8300-tdep.c: Add support of EXR register
6868         * config/h8300/tm-h8300.h: Ditto. 
6869         
6870 2002-05-17  Andrey Volkov <avolkov@transas.com>
6871
6872         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6873         
6874 2002-05-17  Andrey Volkov <avolkov@transas.com>
6875
6876         * h8300-tdep.c: Change literal regnums to REGNO.
6877         
6878 2002-05-17  Jim Blandy  <jimb@redhat.com>
6879
6880         * NEWS: Note addition of macro support.
6881
6882         Expand preprocessor macros in C expressions.
6883         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6884         (scan_macro_expansion, scanning_macro_expansion,
6885         finished_macro_expansion): New function declarations.
6886         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6887         variable declarations.
6888         * parser-defs.h (expression_context_pc): New declaration.
6889         * parse.c (expression_context_pc): New variable.
6890         (parse_exp_1): Set expression_context_pc, as well as
6891         expression_context_block.
6892         * c-exp.y (yylex): If we're not already reading the result of a
6893         macro expansion, try to macro-expand the next token.  When we're
6894         done scanning a macro expansion, switch back to the mainline text.
6895         Commas and `if's in a macro's expansion don't terminate the input.
6896         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6897         (macro_original_text, macro_expanded_text,
6898         expression_macro_lookup_func, expression_macro_lookup_baton): New
6899         variables.
6900         (scan_macro_expansion, scanning_macro_expansion,
6901         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6902         c_preprocess_and_parse): New functions.
6903         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6904         c_preprocess_and_parse, instead of c_parse.
6905         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6906         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6907
6908 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
6909
6910         * sh-tdep.c (gdb_print_insn_sh64): Delete.
6911         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6912         (sh_gdbarch_init): Always use gdb_print_insn_sh.
6913
6914 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
6915
6916         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
6917
6918 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6919
6920         * Makefile.in (sh_tdep_h): Define and use.
6921         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6922         register enum): Move to...
6923         * * sh-tdep.h: ...here.
6924         * sh-tdep.c: Include sh-tdep.h.
6925         * sh3-rom.c: Likewise.
6926         * shnbsd-tdep.c: Likewise.
6927
6928 2002-05-16  Michael Snyder  <msnyder@redhat.com>
6929
6930         * arm-tdep.c: Spelling fix in comment.
6931
6932 2002-05-16  Jim Blandy  <jimb@redhat.com>
6933
6934         Add commands for manually expanding macros and showing their
6935         definitions.
6936         * macrocmd.c, macroscope.c, macroscope.h: New files.
6937         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6938         (macroscope_h): New variable.
6939         (HFILES_NO_SRCDIR): Add macroscope.h.
6940         (COMMON_OBS): Add macrocmd.o, macroscope.o.
6941         (macroscope.o, macrocmd.o): New rules.
6942
6943         Teach the Dwarf 2 reader to read macro information.
6944         * dwarf2read.c: #include "macrotab.h".
6945         (dwarf_macinfo_buffer): New variable.
6946         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6947         dwarf_macinfo_size.
6948         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6949         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6950         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6951         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6952         dwarf2_macro_spaces_in_definition): New complaints.
6953         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6954         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6955         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6956         the partial symbol table.
6957         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6958         from what's recorded in the partial symbol table.
6959         (read_file_scope): If the compilation unit has a
6960         `DW_AT_macro_info' attribute, read its macro information.
6961         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6962
6963 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
6964
6965         Fix PR gdb/546
6966         * ser-tcp.c: Don't include <netinet/udp.h>.
6967
6968 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
6969
6970         * MAINTAINERS: Update my email address.
6971
6972 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
6973
6974         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6975         include file of the same name.
6976
6977 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6978
6979         * configure.tgt: Mark v850 as multi-arched.
6980         * config/v850/tm-v850.h: Remove file.
6981         * config/v850/v850.mt: Eliminate TM_FILE.
6982
6983 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
6984
6985         * v850-tdep.c: Full multi-arch.
6986         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6987         Define GDB_MULTI_ARCH to 2.
6988
6989 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
6990
6991         * p-exp.y (current_type): New static variable.
6992         Carries the type of the expression at the position that is parsed.
6993         (push_current_type, pop_current_type): Two new functions. Used
6994         to store/restore current_type in expression on specific tokens.
6995         (search_field): New static variable. Set to one after parsing a point
6996         as at that point only a FIELDNAME token should be searched.
6997         (FIELDNAME): New token. After a point only a token belonging to 
6998         current_type type definition is allowed.
6999         (all over token rules): reset and change current_type according
7000         to rules.
7001         (exp '[' rule): insert implicit array index field if
7002         exp is a pascal string type.
7003
7004 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7005
7006         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
7007         frame info.  Use frame_info's saved_regs instead of matching member
7008         in extra_frame_info throughout.
7009         (v850_frame_init_saved_regs): New function.
7010         (v850_init_extra_frame_info): Move most functionality into
7011         v850_frame_init_saved_regs().
7012         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7013         (v850_frame_find_saved_regs): Remove declaration.
7014         (FRAME_FIND_SAVED_REGS): Remove definition.
7015         (v850_frame_init_saved_regs): Add declaration.
7016         (FRAME_INIT_SAVED_REGS): Add definition.
7017
7018 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7019
7020         * v850-tdep.c: Begin multi-arch'ing v850.
7021         (v850_target_architecture_hook): Remove function.
7022         (v850_gdbarch_init): New function.  Add code previously in
7023         v850_target_architecture_hook().
7024         (_initialize_v850_tdep): Don't  set target_architecture_hook.
7025         Call register_gdbarch_init() instead.
7026
7027 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
7028
7029         * gdbtypes.h (struct cplus_struct_type): Remove args field.
7030         * hpread.c (hpread_read_struct_type): Remove assignments to args.
7031         (fixup_class_method_type): Likewise.
7032
7033 2002-05-15  Jim Blandy  <jimb@redhat.com>
7034
7035         Add macro structures to GDB's symbol tables.  Nobody puts anything
7036         in them yet.
7037         * symtab.h (struct symtab): New member: `macro_table'.
7038         * buildsym.h (pending_macros): New global variable.
7039         * buildsym.c: #include "macrotab.h".
7040         (buildsym_init): Initialize `pending_macros'.
7041         (end_symtab): If we found macro information while reading a CU's
7042         debugging info, do build a symtab structure for it.  Make the
7043         symtab point to the macro information, and clear the
7044         `pending_macros' pointer which held it while we were reading the
7045         debug info.
7046         (really_free_pendings): Free any pending macro table.
7047         * objfiles.h (struct objfile): New member: `macro_cache'.
7048         * objfiles.c (allocate_objfile): Set allocate and free functions
7049         for the macro cache's objstack.
7050         (free_objfile): Empty the macro cache's obstack.
7051         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7052         set new allocate and free functions for it.
7053         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7054         free functions for the macro cache's objstack.  (Why is this
7055         function building its own objfile?)
7056         * symmisc.c (print_objfile_statistics): Print statistics on the
7057         macro bcache.
7058         * Makefile.in: Note that buildsym.o depends on macrotab.h.
7059
7060 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7061
7062         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7063         (REGISTER_U_ADDR): Delete definition.
7064         (arm_register_u_addr): Delete declaration.
7065
7066 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7067
7068         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7069         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7070
7071 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
7072
7073         * regcache.c (register_valid): Revise comments refering to "Not
7074         available" and "unavailable".
7075         * frame.c (frame_register_read): Ditto.
7076         * findvar.c (value_of_register): Ditto.
7077
7078 2002-05-15  Andrew Cagney  <cagney@redhat.com>
7079
7080         * Makefile.in (remote_sim_h): Replace remote-sim_h.
7081         (remote-sim.o): Update dependencies.
7082         (d10v-tdep.o): Specify dependencies.
7083         (sim_d10v_h): Define.
7084
7085 2002-05-14  Jim Blandy  <jimb@redhat.com>
7086
7087         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7088         * macrotab.c (macro_lookup_inclusion, find_definition,
7089         new_macro_table): Same.
7090         
7091         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7092         not `! strcmp ()'.  This is a dubious improvement.
7093         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7094
7095         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7096         although it's not necessary, to avoid a warning.
7097
7098 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7099
7100         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7101         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7102         TYPE_INSTANCE_FLAGS.
7103         (struct main_type): New.
7104         (struct type): Move most members to struct main_type.  Change
7105         cv_type and as_type to new type_chain member.  Add instance_flags.
7106         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7107         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7108         (finish_cv_type): Remove prototype.
7109         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
7110         Set TYPE_CHAIN.
7111         (alloc_type_instance): New function.
7112         (smash_type): New function.
7113         (make_pointer_type, make_reference_type, make_function_type)
7114         (smash_to_member_type, smash_to_method_type): Call smash_type.
7115         (make_qualified_type): New function.
7116         (make_type_with_address_space): Call make_qualified_type.
7117         (make_cv_type): Likewise.
7118         (finish_cv_type): Remove unnecessary function.
7119         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
7120         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7121         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7122         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7123         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7124         * hpread.c (hpread_read_struct_type): Likewise.
7125         * stabsread.c (read_struct_type): Likewise.
7126
7127 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
7128
7129         * configure.tgt: Add a catch all sh* target, for cases like
7130         sh[2,3,4]-elf and sh-hms.
7131
7132 2002-05-14  Keith Seitz  <keiths@redhat.com>
7133
7134         * event-loop.c (create_file_handler): Don't do anything but
7135         update data when we are given a fd which we are already
7136         monitoring.
7137
7138 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
7139
7140         * dwarf2cfi.c (context_cpy): Copy registers correctly.
7141         (update_context): Use __func__ in warnings.
7142         
7143 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7144
7145         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
7146         and tcp_close to net_open and net_close.
7147         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
7148         using UDP if requested.  Don't try to disable Nagle on UDP
7149         sockets.
7150         * remote.c (remote_serial_open): New function.  Warn about UDP.
7151         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7152
7153 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7154
7155         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7156
7157 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7158
7159         * configure.tgt: Remove sh-hms target.
7160         * MAINTAINERS: Don't list sh-hms as a separate target.
7161
7162 2002-05-13  Jim Blandy  <jimb@redhat.com>
7163
7164         Add first preprocessor macro-expansion files.
7165         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7166         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7167         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7168         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7169         (COMMON_OBS): Add macrotab.o, macroexp.o.
7170         (macroexp.o, macrotab.o): New rules.
7171
7172 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
7173
7174         * config/m88k/tm-m88k.h: Update copyright.
7175         (m88k_target_write_pc): Declare
7176         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7177         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7178         (SHIFT_INST_REGS): Update definition.
7179         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
7180         using old definition of TARGET_WRITE_PC.
7181         * regcache.c (generic_target_write_pc): Delete code handling
7182         NNPC_REGNUM.
7183         * gdbarch.sh (NNPC_REGNUM): Delete.
7184         * gdbarch.h, gdbarch.c: Regenerate.
7185
7186 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
7187
7188         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7189         builtin reg number.
7190
7191 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
7192
7193         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7194         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7195         (gen_address_of, gen_struct_ref, gen_repeat): Use type
7196         access macros.
7197         * c-typeprint.c (cp_type_print_method_args): Likewise.
7198         (c_type_print_args): Likewise.
7199         * d10v-tdep.c (d10v_push_arguments): Likewise.
7200         (d10v_extract_return_value): Likewise.
7201         * expprint.c (print_subexp): Likewise.
7202         * gdbtypes.c (lookup_primitive_typename): Likewise.
7203         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7204         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7205         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7206         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7207         (TYPE_VECTOR): Likewise.
7208         * hpread.c (hpread_read_struct_type)
7209         (fix_static_member_physnames, fixup_class_method_type)
7210         (hpread_type_lookup): Likewise.
7211         * mdebugread.c (parse_symbol, parse_type): Likewise.
7212         * p-lang.c (is_pascal_string_type): Likewise.
7213         * valops.c (hand_function_call): Likewise.
7214         * x86-64-tdep.c (classify_argument): Likewise.
7215
7216         * hpread.c (hpread_read_function_type)
7217         (hpread_read_doc_function_type): Call replace_type.
7218         * dstread.c (create_new_type): Delete.
7219         (decode_dst_structure, process_dst_function): Call alloc_type.
7220         Use type access macros.
7221
7222 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7223
7224         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7225         the're not supported by the current architecture.
7226         (i387_fill_fxsave): Likewise.
7227
7228 2002-05-12  Fred Fish  <fnf@redhat.com>
7229
7230         * symfile.c (default_symfile_offsets): Arrange for uninitialized
7231         sect_index_xxx members to index the first slot in section_offsets
7232         if all of the section_offsets are zero.
7233
7234 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7235
7236         * configure.tgt (sparc-*openbsd): Remove entry accidentially
7237         checked in with last change.
7238
7239 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7240
7241         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7242         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
7243         config.sub.
7244
7245 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
7246
7247         * Makefile.in: Update dependencies.
7248
7249 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7250
7251         * language.c (local_hex_string_custom): Simplify.  Do not depend
7252         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7253
7254         * memattr.c (mem_info_command): Replace calls to
7255         longest_local_hex_string and longest_local_hex_string_custom.
7256         * buildsym.c (make_blockvector): Ditto.
7257         * solib.c (info_sharedlibrary_command): Ditto.
7258         * tracepoint.c (tracepoints_info): Ditto.
7259         * symtab.c (print_msymbol_info): Ditto.
7260
7261         * language.c (local_hex_string): Delete.
7262         (local_hex_string_custom): Delete.
7263         (longest_local_hex_string): Rename to local_hex_string.
7264         (longest_local_hex_string_custom): Rename to
7265         local_hex_string_custom.
7266         * language.h (local_hex_string): Change parameter type to LONGEST.
7267         (local_hex_string_custom): Ditto.
7268         (longest_local_hex_string): Delete declaration.
7269         (longest_local_hex_string_custom): Ditto.
7270
7271         * solib.c: Update copyright.
7272         * memattr.c: Update copyright.
7273         
7274 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7275
7276         * arch-utils.h (legacy_register_to_value): Declare.
7277         (legacy_value_to_register): Declare.
7278         (legacy_convert_register_p): Declare.
7279         * arch-utils.c (legacy_register_to_value): New function.
7280         (legacy_value_to_register): New function.
7281         (legacy_convert_register_p): New function.
7282
7283         * gdbarch.sh (REGISTER_TO_VALUE): Define.
7284         (VALUE_TO_REGISTER): Define.
7285         (CONVERT_REGISTER_P): Define.
7286         * gdbarch.h, gdbarch.c: Regenerate.
7287
7288         * valops.c (value_assign): Use CONVERT_REGISTER_P and
7289         VALUE_TO_REGISTER.
7290         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7291         CONVERT_REGISTER_P.
7292
7293 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
7294             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7295
7296         * Makefile.in: Update dependencies for valops.c.
7297         * valops.c: Include "gdb_assert.h".
7298         (typecmp): Skip THIS parameter to methods.
7299         (find_method_list): Remove static_memfuncp argument,
7300         update callers.  Check for stub methods.
7301         (find_value_oload_method_list): Don't set *static_memfuncp.
7302         (find_overload_match): Don't check for stub methods.  Assert
7303         that methods are not stubbed.  Handle static methods.
7304         (value_find_oload_method_list): Remove static_memfuncp argument.
7305         * gdbtypes.c (check_stub_method): Do not add THIS pointer
7306         to the argument list for static stub methods.
7307         * value.h (value_find_oload_method_list): Update prototype.
7308
7309 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7310
7311         * arch-utils.h (generic_register_size): Declare.
7312         (generic_register_raw_size, generic_register_virtual_size): Delete
7313         declarations.
7314         * arch-utils.c (generic_register_raw_size): Delete.
7315         (generic_register_size): New function.
7316         (generic_register_virtual_size): Delete.
7317
7318         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7319         default generic_register_size.
7320         * gdbarch.h, gdbarch.c: Re-generate.
7321         
7322         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7323         register_virtual_size.
7324         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7325         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7326
7327 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7328
7329         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7330         * gdbarch.h, gdbarch.c: Regenerate.
7331         * gnu-v3-abi.c: Update copyright.
7332         (vtable_address_point_offset): Update.
7333         (gnuv3_rtti_type): Update.
7334         (gnuv3_baseclass_offset): Update.
7335         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7336         (init_fetch_link_map_offsets): Update.
7337         * remote.c (get_remote_state): Update.
7338         
7339 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
7340
7341         * TODO: Remove value_headof/value_from_vtable_info comment.
7342         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7343         * values.c (value_headof, value_from_vtable_info): Delete.
7344         * value.h (value_from_vtable_info): Delete prototype.
7345
7346 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7347
7348         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7349         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7350         $(gdb_regex_h).
7351         (gdb_assert_h): Define.
7352         (gdb_wait_h): Define.
7353         (gdb_regex_h): Define.
7354
7355 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
7356
7357         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7358         * linespec.c (find_methods): Handle GCC 3.x template constructors.
7359
7360 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7361
7362         * nbsd-tdep.c: Fix comment.
7363
7364 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7365
7366         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7367         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7368         (nbsd-tdep.o): New dependency list.
7369         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
7370         nbsd-tdep.h.
7371         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7372         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7373         * nbsd-tdep.c: New file.
7374         * nbsd-tdep.h: New file.
7375         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
7376         nbsd-tdep.h.
7377         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7378         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7379         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7380         * config/sh/nbsd.mt (TDEPFILES): Ditto.
7381
7382 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7383
7384         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7385         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7386         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7387         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7388         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7389         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7390
7391 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7392
7393         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7394         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7395         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7396         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7397         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7398         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7399         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7400
7401 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7402
7403         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
7404         fetch_elfcore_registers to...
7405         * i386nbsd-tdep.c: ...here.
7406         (i386nbsd_use_struct_convention): Rename to...
7407         (i386nbsd_aout_use_struct_convention): ...this.
7408         (i386nbsd_supply_reg): New function.
7409         (i386nbsd_fill_reg): New function.
7410         (fetch_core_registers): Use i386nbsd_supply_reg.
7411         (fetch_elfcore_registers): Likewise.
7412         (_initialize_i386nbsd_tdep): New function.
7413         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7414         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7415         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7416         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7417         (i386nbsd_aout_use_struct_convention): ...this.
7418
7419 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7420
7421         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7422         (store_inferior_registers): Use shnbsd_fill_reg.
7423         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7424         sh_nbsd_supply_register): Collapse into...
7425         (shnbsd_supply_reg): ...this.
7426         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7427         (shnbsd_fill_reg): ...this.
7428         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7429         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7430         (fetch_core_registers): Use shnbsd_supply_reg.
7431         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7432         (sh_nbsd_core_fns): Rename to...
7433         (shnbsd_core_fns): ...this.
7434         (sh_nbsd_elfcore_fns): Rename to...
7435         (shnbsd_elfcore_fns): ...this.
7436         (sh_nbsd_init_abi): Rename to...
7437         (shnbsd_init_abi): ...this.
7438         (_initialize_sh_nbsd_tdep): Rename to...
7439         (_initialize_shnbsd_tdep): ...this.
7440         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7441         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7442         sh_nbsd_fill_register): Remove prototypes.
7443         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7444
7445 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7446
7447         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7448         (i387-nat.o): Delete dependency list.
7449         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7450         (x86-64-linux-nat.o): Likewise.
7451         * i387-nat.c: Delete file, moving contents to...
7452         * i387-tdep.c: ...here.
7453         * i387-nat.h: Rename...
7454         * i387-tdep.h: ...to this.
7455         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7456         * i386-linux-nat.c: Likewise.
7457         * i386bsd-nat.c: Likewise.
7458         * i386gnu-nat.c: Likewise.
7459         * i386nbsd-nat.c: Likewise.
7460         * i386v4-nat.c: Likewise.
7461         * x86-64-linux-nat.c: Likewise.
7462         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7463         * config/i386/go32.mh (NATDEPFILES): Likewise.
7464         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7465         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7466         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7467         * config/i386/linux.mh (NATDEPFILES): Likewise.
7468         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7469         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7470         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7471         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7472
7473 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7474
7475         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7476         (alphanbsd-nat.o): Remove dependency list.
7477         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7478         * alphanbsd-nat.c: Delete.  Contents moved to...
7479         * alphanbsd-tdep.c: ...here.
7480         (_initialize_alphanbsd_tdep): Register core functions.
7481         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7482
7483 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7484
7485         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7486         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7487         (alphanbsd-nat.o): Likewise.
7488         (alphabsd-tdep.o): New dependency list.
7489         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7490         (fill_gregset): Use alphabsd_fill_reg.
7491         (supply_fpregset): Use alphabsd_supply_fpreg.
7492         (fill_fpregset): Use alphabsd_fill_fpreg.
7493         (fetch_inferior_registers): Use struct reg and struct fpreg
7494         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7495         and alphabsd_supply_fpreg.
7496         (store_inferior_registers): Use struct reg and struct fpreg
7497         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7498         and alphabsd_fill_fpreg.
7499         * alphabsd-tdep.c: New file.
7500         * alphabsd-tdep.h: New file.
7501         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7502         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7503         alphabsd_supply_fpreg.
7504         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7505         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7506
7507 2002-05-11  Eric Christopher  <echristo@redhat.com>
7508
7509         * mips-tdep.c (mips_double_register_type): Fix thinko.
7510         (mips_single_register_type): Ditto.
7511         * MAINTAINERS: Add self.
7512
7513 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7514
7515         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7516         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7517         right thing on architectures with different endianness and/or
7518         integer sizes.
7519
7520 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7521
7522         From Christian Limpach <chris@Pin.LU>
7523         * configure.in: Change sed expression which comments out
7524         NATDEPFILES to also comment out continuation lines.
7525         * configure: Regenerate.
7526
7527 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7528
7529         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7530         big patch.
7531
7532 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7533
7534         * sh-tdep.c: Include correct file.
7535
7536 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7537
7538         New support for sh64-elf (sh5) target.
7539
7540         * configure.tgt: For sh64-elf target, default to sh-elf.
7541
7542         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7543         (struct gdbarch_tdep): Add new fields for new registers and ABI
7544         info.
7545
7546         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7547         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7548         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7549         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7550         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7551         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7552         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7553         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7554         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7555         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7556         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7557         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7558         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7559         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7560         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7561         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7562         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7563         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7564         sign_extend, sh64_nofp_frame_init_saved_regs,
7565         sh64_init_extra_frame_info, sh64_get_saved_register,
7566         sh64_extract_struct_value_address, sh64_pop_frame,
7567         sh64_push_arguments, sh64_extract_return_value,
7568         sh64_store_return_value, sh64_show_media_regs,
7569         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7570         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7571         sh_sh64_register_virtual_type,
7572         sh_sh64_register_convert_to_virtual,
7573         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7574         sh64_register_read, sh64_pseudo_register_write,
7575         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7576         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7577         sh64_do_pseudo_register, sh_compact_do_registers_info,
7578         sh64_do_registers_info, sh_gdbarch_init): New functions.
7579
7580 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7581
7582         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7583
7584 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7585
7586         * linespec.c (decode_line_1): Check for a double quote after
7587         a filename correctly.
7588
7589 2002-05-10  Jim Blandy  <jimb@redhat.com>
7590
7591         Properly track the size of the current objfile's .debug_line section.
7592         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7593         (DWARF_LINE_SIZE): New macro.
7594         (dwarf2_build_psymtabs_hard): Record the line section's size in
7595         the partial symbol table.
7596         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7597         symbol table.
7598
7599 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7600
7601         * ia64-tdep.c: Handle breakpoints on L instruction type
7602         in MLX instruction bundle by moving the breakpoint to
7603         the third slot (X instruction type) as L holds only data.
7604
7605 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7606
7607         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7608         (process_one_symbol): Complain about discarding local symbols
7609         due to a misplaced N_LBRAC entry.
7610
7611 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7612
7613         From Daniel Berlin <dan@cgsoftware.com>
7614         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7615         decrease the depth we are at, in the case of templates.
7616
7617 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7618
7619         * mips-tdep.c (mips_float_register_type): New function.
7620         (mips_double_register_type): New function.
7621         (mips_print_register): Use them.
7622         (do_fp_register_row): Likewise.
7623
7624 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7625
7626         * signals/signals.c (signals): Remove conditional compilation around
7627         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7628         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7629
7630 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7631
7632         * remote-rdp.c (remote_rdp_can_run): Remove.
7633
7634 2002-05-09  Tom Tromey  <tromey@redhat.com>
7635
7636         * jv-valprint.c (java_val_print): Handle `char' as a special case
7637         of TYPE_CODE_INT.
7638
7639 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7640
7641         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7642         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7643         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7644         str r(0123),[sp,#nn].
7645         (arm_skip_prologue): Ditto.  Also make disassembly
7646         order-independent by placing it in a loop.
7647
7648 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7649
7650         * stabsread.c (read_type): Add recognition for new attribute:
7651         "@V;" means that an array type is actually a vector.
7652         This is analogous to the vector flag that's been added to dwarf2.
7653
7654 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7655
7656         * i386-tdep.h (i386_abi): New enum.
7657         (struct gdbarch_tdep): Replace os_ident member with abi.
7658         (i386_gdbarch_register_os_abi): New prototype.
7659         * i386-tdep.c (i386_abi_names): New array.
7660         (process_note_abi_tag_sections): Removed.
7661         (process_note_sections): New function.
7662         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7663         (struct i386_abi_handler): New struct.
7664         (i386_abi_handler_list): New variable.
7665         (i386_gdbarch_register_os_abi): New function.
7666         (i386_gdbarch_init): Adapt for the changes given above.
7667
7668 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7669
7670         * gregset.h: Say "GNU/Linux".
7671
7672 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7673
7674         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7675         (build_gdbtypes): Build builtin_type_v2_float.
7676         (_initialize_gdbtypes): Register new builtin type.
7677
7678 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7679
7680         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7681         (clear_gdbarch_swap): New function.
7682         (initialize_non_multiarch): Call.
7683         (gdbarch_update_p): Before calling init(), swap out and clear the
7684         existing architecture.
7685         * gdbarch.c: Regenerate.
7686
7687 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7688
7689         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7690         alphanbsd-tdep.c.
7691
7692 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7693
7694         * sh-nbsd-nat.c: Rename to...
7695         * shnbsd-nat.c: ...this.
7696         * sh-nbsd-tdep.c: Rename to...
7697         * shnbsd-tdep.c: ...this.
7698         * sh-nbsd-tdep.h: Rename to...
7699         * shnbsd-tdep.h: ...this.
7700         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7701         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7702
7703 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7704
7705         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7706         concatenation for command help messages.
7707
7708 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7709
7710         * NEWS: Note new sh*-*-netbsdelf* configuration.
7711         * configure.host: Set gdb_host_cpu to sh for all sh*.
7712         (sh*-*-netbsdelf*): New host.
7713         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7714         (sh*-*-netbsdelf*): New target.
7715         * sh-nbsd-nat.c: New file.
7716         * sh-nbsd-tdep.c: New file.
7717         * sh-nbsd-tdep.h: New file.
7718         * config/sh/nbsd.mh: New file.
7719         * config/sh/nbsd.mt: New file.
7720         * config/sh/nm-nbsd.h: New file.
7721         * config/sh/tm-nbsd.h: New file.
7722
7723 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7724
7725         * sh-tdep.c (sh_osabi_names): Declare.
7726         (process_note_abi_tag_sections): New function.
7727         (get_elfosabi): Ditto.
7728         (sh_gdbarch_register_os_abi): Ditto.
7729         (sh_dump_tdep): Ditto.
7730         _initialize_sh_tdep): Use gdbarch_register to register
7731         sh_gdbarch_init and sh_dump_tdep.
7732         * config/sh/tm-sh.h (sh_osabi): Declare.
7733         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7734
7735 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7736
7737         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7738         (thumb_scan_prologue): Ditto.
7739         (arm_find_callers_reg): Ditto.
7740         (arm_frame_chain): Ditto.
7741         (arm_init_extra_frame_info): Ditto.
7742         (arm_frame_saved_pc): Ditto.
7743         (arm_pop_frame): Ditto.
7744         (arm_push_return_address): New function.
7745         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7746         call_dummy_location, call_dummy_breakpoint_offset_p,
7747         call_dummy_breakpoint_offset, call_dummy_p,
7748         call_dummy_stack_adjust_p, call_dummy_words,
7749         sizeof_call_dummy_words, call_dummy_start_offset,
7750         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7751         call_dummy_address, push_return_address and push_dummy_frame for
7752         generic dummy frames.
7753
7754 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7755
7756         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7757         size computation for alloca.
7758         (sh_fp_frame_init_saved_regs): Likewise.
7759
7760 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7761
7762         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7763         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7764         * arm-tdep.c (arm_store_return_value): Use them.
7765         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7766         * remote-rdp.c (remote_rdp_fetch_register): Use
7767         ARM_MAX_REGISTER_RAW_SIZE.
7768         (remote_rdp_store_register): Likewise.
7769
7770 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7771
7772         * dwarf2cfi.c: Code cleanup, removed unused variables,
7773         added default labels to switch {} statements.
7774         * x86-64-tdep.c: Ditto.
7775         * x86-64-linux-nat.c: Ditto.
7776
7777 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7778
7779         * solib.h: Protect against multiple inclusion.
7780
7781 2002-05-06  Jim Blandy  <jimb@redhat.com>
7782
7783         Add first preprocessor macro-expansion files.
7784         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7785         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7786         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7787         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7788         (COMMON_OBS): Add macrotab.o, macroexp.o.
7789         (macroexp.o, macrotab.o): New rules.
7790
7791         Separate the job of reading the line number info statement program
7792         header (...expialidocious) out into its own function.
7793         * dwarf2read.c (struct line_head, struct filenames, struct
7794         directories): Replace with...
7795         (struct line_header): New structure, containing the full
7796         contents of the statement program header, including the
7797         include directory and file name tables.
7798         (read_file_scope): If we have line number info, instead of just
7799         calling dwarf_decode_lines to do all the work, call
7800         dwarf_decode_line_header first to get a `struct line_header'
7801         containing the data in the statement program header, and then
7802         pass that to dwarf_decode_lines, which will pick up where that
7803         left off.  Be sure to clean up the `struct line_header' object.
7804         (dwarf_decode_line_header, free_line_header, add_include_dir,
7805         add_file_name): New functions.
7806         (dwarf_decode_lines): Move all the code to read the statement
7807         program header into dwarf_decode_line_header.  Take the line
7808         header it built as the first argument, instead of the offset to
7809         the compilation unit's line number info.  Use the new `struct
7810         line_header' type instead of the old structures.  No need to do
7811         cleanups here now, since we don't allocate anything.
7812         (dwarf2_statement_list_fits_in_line_number_section,
7813         dwarf2_line_header_too_long): New complaints.
7814
7815 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7816
7817         * gdbtypes.c (init_vector_type): New function.
7818         (build_builtin_type_vec128): Simplify the representation of SIMD
7819         registers.
7820         (build_gdbtypes): Initialize new builtin vector types.
7821         (_initialize_gdbtypes): Register new vector types with gdbarch.
7822         (builtin_type_v4_float, builtin_type_v4_int32,
7823         builtin_type_v8_int16, builtin_type_v16_int8,
7824         builtin_type_v2_int32, builtin_type_v4_int16,
7825         builtin_type_v8_int8): New (renamed) SIMD types.
7826
7827 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7828
7829         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7830         (i387_fill_fxsave): Likewise.
7831
7832 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7833
7834         * alpha-tdep.c (alpha_extract_return_value): Don't use
7835         non-constant array size in prototype.
7836
7837 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7838
7839         From Brian Taylor <briant at model dot com>:
7840         * ui-out.c (ui_out_field_core_addr): Use the function
7841         longest_local_hex_string_custom'to format addresses > 32 bits
7842         wide.
7843
7844         * ui-out.c (ui_out_field_core_addr): Update comment.
7845
7846 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7847
7848         * stack.c (select_and_print_frame): Make static.  Delete the
7849         parameter `level'.
7850         (func_command): Update call.
7851         (select_frame_command): Delete code computing the frame level.
7852         * frame.h (select_and_print_frame): Delete declaration.
7853
7854 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7855
7856         * sparc-tdep.c (sparc_get_saved_register): Comment why
7857         get_prev_frame call is safe.
7858
7859 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7860
7861         * frame.h (select_frame): Delete level parameter.
7862         * stack.c (select_frame): Update.  Use frame_relative_level to
7863         obtain the frame's level.
7864         (select_and_print_frame): Update call.
7865         (select_frame_command): Ditto.
7866         (up_silently_base): Ditto.
7867         (down_silently_base): Ditto.
7868         * ocd.c (ocd_start_remote): Ditto.
7869         * remote-rdp.c (remote_rdp_open): Ditto.
7870         * remote-mips.c (mips_initialize): Ditto.
7871         (common_open): Ditto.
7872         * remote-e7000.c (e7000_start_remote): Ditto.
7873         * m3-nat.c (select_thread): Ditto.
7874         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7875         (child_get_current_exception_event): Ditto.
7876         * varobj.c (varobj_create): Ditto.
7877         (varobj_update): Ditto.
7878         (c_value_of_root): Ditto.
7879         * tracepoint.c (finish_tfind_command): Ditto.
7880         * corelow.c (core_open): Ditto.
7881         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7882         * thread.c (info_threads_command): Ditto.
7883         (switch_to_thread): Ditto.
7884         * infrun.c (normal_stop): Ditto.
7885         (restore_selected_frame): Ditto.
7886         (restore_inferior_status): Ditto.
7887         * breakpoint.c (insert_breakpoints): Ditto.
7888         (watchpoint_check): Ditto.
7889         (bpstat_stop_status): Ditto.
7890         (do_enable_breakpoint): Ditto.
7891         * blockframe.c (flush_cached_frames): Ditto.
7892         (reinit_frame_cache): Ditto.
7893
7894 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7895
7896         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7897         maintainer.
7898
7899 2002-05-04  Jim Blandy  <jimb@redhat.com>
7900
7901         * gdbtypes.c (replace_type): Doc fix.
7902
7903 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7904
7905         * valprint.c (strcat_longest): Delete commented out function.
7906         Update copyright.
7907
7908 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7909
7910         * MAINTAINERS: Mark a29k as deleted.
7911         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
7912         Move new configurations to the top.
7913         * configure.tgt: Remove a29k.
7914         * config/a29k/tm-vx29k.h: Delete.
7915         * config/a29k/vx29k.mt: Delete.
7916         * config/a29k/tm-a29k.h: Delete.
7917         * config/a29k/a29k-udi.mt: Delete.
7918         * config/a29k/a29k.mt: Delete.
7919         * a29k-tdep.c: Delete.
7920         * remote-udi.c: Delete.
7921         * remote-mm.c: Delete.
7922         * remote-eb.c: Delete.
7923         * remote-adapt.c: Delete.
7924         * Makefile.in: Remove obsolete code.
7925         * config/s390/s390x.mt: Ditto.
7926         * config/s390/s390.mt: Ditto.
7927         * config/sparc/sparclynx.mh: Ditto.
7928         * config/sparc/linux.mh: Ditto.
7929         * config/pa/hppaosf.mh: Ditto.
7930         * config/pa/hppabsd.mh: Ditto.
7931         * config/ns32k/nbsd.mt: Ditto.
7932         * config/mips/vr5000.mt: Ditto.
7933         * config/m68k/sun3os4.mh: Ditto.
7934         * config/m68k/nbsd.mt: Ditto.
7935         * config/m68k/m68klynx.mh: Ditto.
7936         * config/m32r/m32r.mt: Ditto.
7937         * config/i386/x86-64linux.mt: Ditto.
7938         * config/i386/nbsdelf.mt: Ditto.
7939         * config/i386/nbsd.mt: Ditto.
7940         * config/i386/i386lynx.mh: Ditto.
7941
7942 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7943
7944         * target.c (debug_print_register): New function.  Handle oversize
7945         registers.
7946         (debug_to_fetch_registers): Call.
7947         (debug_to_store_registers): Call.
7948
7949 2002-05-03  Jim Blandy  <jimb@redhat.com>
7950
7951         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7952         (read_type): Doc fix.
7953         * gdbtypes.c (replace_type): Doc fix.
7954
7955         * stabsread.c (multiply_defined_struct): New complaint.
7956         (read_struct_type): If the type we were passed isn't empty, or
7957         incomplete, don't read the new struct type into it; complain,
7958         and return the original type unchanged.  Take a new `type_code'
7959         argument, which is the type code for the new type.
7960         (read_type): Rather than storing the type's type code here, pass
7961         it as an argument to read_struct_type, and let that take care of
7962         storing it.  That way, we don't overwrite the original type code,
7963         so read_struct_type can use it to decide whether we're overwriting
7964         something we shouldn't.
7965         (complain_about_struct_wipeout): New function.
7966
7967 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
7968
7969         * gdbarch.sh: Assert that gdbarch is non-NULL.
7970         * gdbarch.c: Regenerate.
7971
7972 2002-05-03  Jason Merrill  <jason@redhat.com>
7973
7974         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7975         and return NULL.
7976
7977 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
7978
7979         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7980         (x86_64_dwarf2gdb_regno_map_length),
7981         (x86_64_dwarf2_reg_to_regnum): Added.
7982         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7983         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7984         (_initialize_x86_64_tdep): Synced with the change above.
7985         (x86_64_skip_prologue): Reformulated message.
7986
7987 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
7988
7989         * f-exp.y: Also use new prev_lexptr variable
7990         to improve error reporting. Based on Michael Snyder
7991         2002-04-24 dated patch to c-exp.y.
7992         * jv-exp.y: Likewise.
7993         * m2-exp.y: Likewise.
7994
7995 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
7996
7997         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7998         we are dealing with vectors.
7999
8000 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8001
8002         * config/m68k/tm-nbsd.h: Obvious fix,
8003         correct machine name.
8004
8005 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8006
8007         * p-typeprint.c (pascal_type_print_base): Add support
8008         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8009
8010 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8011
8012         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8013         for fondamental pascal 'char' type.
8014
8015 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8016
8017         * p-lang.h (is_pascal_string_type): Declaration changed,
8018         new sixth argument of type char ** added.
8019         * p-lang.c (is_pascal_string_type): Implementation
8020         changed. Args length_pos, length_size, string_pos, char_size
8021         can now be NULL. New argument arrayname set to the field
8022         name of the char array. Return value set to char array
8023         field index plus one.
8024         * p-valprint.c (pascal_val_print): Adapt to new declaration of
8025         is_pascal_string_type function.
8026
8027 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8028
8029         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8030         <cagney@redhat.com> change.
8031         * gdbarch.c: Regenerate.
8032
8033 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8034
8035         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8036         before probing for a new one.  Detect errorenous gdbarch_init
8037         functions.
8038         * gdbarch.c: Regenerate.
8039
8040 2002-05-01  Andrew Cagney  <cagney@redhat.com>
8041
8042         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8043         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
8044         * config/v850/tm-v850.h: Ditto.  Update copyright.
8045
8046 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
8047
8048         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8049         current_gdbarch.
8050
8051 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8052
8053         * arm-tdep.c: Whitespace clean-ups.
8054         (arm_skip_prologue): Fix thinko; two lines
8055         should have been removed as part of 4/24 change.
8056
8057 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
8058
8059         * rs6000-tdep.c: Added comment describing how fpscr register
8060         numbers were chosen.
8061
8062 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8063
8064         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8065
8066 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8067
8068         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8069         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8070         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8071
8072 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
8073
8074         From Louis Hamilton <hamilton@redhat.com>:
8075         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8076         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8077         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8078         not bfd-private xcoff data, to determine wordsize.
8079         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8080
8081 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
8082
8083         GDB 5.2 released from 5.2 branch.
8084
8085 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
8086
8087         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8088         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8089         (x86_64_register_info_table): Added comments with register numbers.
8090
8091 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8092
8093         * rs6000-tdep.c (rs6000_extract_return_value,
8094         rs6000_store_return_value): Handle returning vectors.
8095         (rs6000_gdbarch_init): Use
8096         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8097         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8098         New function.
8099         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8100         vectors.
8101         (ppc_sysv_abi_push_arguments): Handle vector parameters.
8102         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8103
8104 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8105
8106         * hpread.c (hpread_psymtab_to_symtab_1,
8107         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8108         with fprintf_unfiltered (gdb_stderr,...).
8109
8110 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8111
8112         * remote-array.c (printf_monitor, write_monitor,
8113         array_insert_breakpoint, array_remove_breakpoint ):
8114         Replace fprintf (stderr,...
8115         with fprintf_unfiltered (gdb_stderr,....
8116         * remote-es.c: Likewise.
8117         * remote-os9k.c: Likewise.
8118         * remote-st.c: Likewise.
8119
8120 2002-04-28  Andreas Schwab  <schwab@suse.de>
8121
8122         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8123         linux-proc.o and gcore.o.
8124
8125 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
8126
8127         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8128         code without frame pointers.
8129
8130 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8131
8132         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8133         ON_STACK is needed.
8134
8135 2002-04-26  Ben Elliston  <bje@redhat.com>
8136
8137         * target.c (do_xfer_memory): Correct reference to the new option
8138         "trust-readonly-sections".
8139
8140 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
8141
8142         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8143         * gdbtypes.c (recursive_dump_type): Output the vector flag.
8144         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8145         vectors.
8146         (read_array_type): Record the fact that this array type is really a
8147         vector (i.e. are passed in by value).
8148
8149 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
8150
8151         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8152         * alpha-tdep.c (alpha_sigcontext_addr): New function.
8153         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8154         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8155         * alpha-linux-tdep.c: Include frame.h.
8156         (alpha_linux_sigcontext_addr): New function.
8157         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8158         alpha_linux_sigcontext_addr.
8159         * alpha-osf1-tdep.c: Include gdbcore.h.
8160         (alpha_osf1_sigcontext_addr): New function.
8161         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8162         alpha_osf1_sigcontext_addr.
8163         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8164         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8165
8166 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8167
8168         * stack.c (selected_frame_level):
8169         (select_frame): Do not set selected_frame_level.
8170         * frame.h (selected_frame_level): Delete declaration.
8171
8172 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8173
8174         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8175         convert_from_func_ptr-addr when AIX / PowerOpen.
8176
8177 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8178
8179         * valops.c (hand_function_call): Call
8180         generic_save_call_dummy_addr.
8181         * frame.h (generic_save_call_dummy_addr): Declare.
8182         * blockframe.c (struct dummy_frame): Add fields call_lo and
8183         call_hi.
8184         (generic_find_dummy_frame): Check for PC in range call_lo to
8185         call_hi instead of entry_point_address.
8186         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8187         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
8188         (generic_save_call_dummy_addr): New function.
8189
8190 2002-04-24  David S. Miller  <davem@redhat.com>
8191
8192         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8193         sparc_skip_prologue.
8194         (sparc_skip_prologue): Kill frameless_p arg, and use line number
8195         information to find prologue when possible.
8196         (sparc_prologue_frameless_p): Call examine_prologue directly.
8197         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8198         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8199         second argument.
8200         (SKIP_PROLOGUE): Likewise.
8201
8202 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8203
8204         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8205         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8206         indicate that the condition it was testing is always true.
8207         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8208         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8209         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8210
8211 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8212
8213         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8214         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8215         tdep->jb_pc and tdep->jb_elt_size.
8216         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8217         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8218         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8219         * alpha-nat.c (get_longjmp_target): Remove.
8220         (JB_ELEMENT_SIZE): Ditto.
8221         (JB_PC): Ditto.
8222         * alpha-tdep.c (alpha_get_longjmp_target): New function.
8223         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
8224         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8225         to alpha_get_longjmp_target.
8226         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8227         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8228         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8229
8230 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8231
8232         * README: Update to GDB 5.2.
8233
8234 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8235
8236         * gdbarch.sh (LC_ALL): Set to `c'.
8237
8238 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8239
8240         * avr-tdep.c: Ran through gdb_indent.sh.
8241
8242 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8243
8244         * MAINTAINERS: Add myself as AVR maintainer.
8245         * NEWS: Note new target avr.
8246
8247 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8248
8249         * Makefile.in: Add support for AVR target.
8250         * configure.tgt: Add support for AVR target.
8251         * avr-tdep.c: New file
8252         * config/avr/avr.mt: New file.
8253
8254 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8255
8256         * MAINTAINERS: Add myself to write-after-approval.
8257
8258 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8259
8260         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8261         with fprintf_unfiltered (gdb_stderr,....
8262
8263 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8264
8265         Fix PR gdb/508.
8266         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8267
8268 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8269
8270         * p-exp.y: Also use new prev_lexptr variable
8271         to improve error reporting. Based on Michael Snyder
8272         2002-04-24 dated patch to c-exp.y.
8273
8274 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8275
8276         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8277         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8278         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
8279         to 0.
8280         * config/alpha/tm-alpha.h: Remove forward decls of struct type
8281         and struct value.
8282         (FUNCTION_START_OFFSET): Remove.
8283         (BREAKPOINT): Ditto.
8284
8285 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8286
8287         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8288         * NEWS: Ditto.
8289
8290 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8291
8292         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8293         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8294         alpha_linux_pc_in_sigtramp.
8295         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8296         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8297         alpha_osf1_pc_in_sigtramp.
8298         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8299         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8300         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8301         alphafbsd_pc_in_sigtramp.
8302         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8303         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8304         alphanbsd_pc_in_sigtramp.
8305         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8306         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8307
8308 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8309
8310         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8311
8312 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8313
8314         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8315         alphanbsd-tdep.c.
8316         (alphanbsd-nat.o): New dependency list.
8317         (alphanbsd-tdep.o): Ditto.
8318         * NEWS: Note new native NetBSD/alpha configuration.
8319         * alphanbsd-nat.c: New file.
8320         * alphanbsd-tdep.c: Ditto.
8321         * configure.host (alpha*-*-netbsd*): New host.
8322         * configure.tgt (alpha*-*-netbsd*): New target.
8323         * config/alpha/nbsd.mh: New file.
8324         * config/alpha/nbsd.mt: Ditto.
8325         * config/alpha/nm-nbsd.h: Ditto.
8326         * config/alpha/tm-nbsd.h: Ditto.
8327
8328 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8329
8330         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8331         (alpha-osf1-tdep.o): New dependency list.
8332         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8333         and skip_sigtramp_frame members.
8334         * alpha-linux-tdep.c: Include gdbcore.h.
8335         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8336         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8337         * alpha-osf1-tdep.c: New file.
8338         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8339         alpha-osf1-dep.c.
8340         (alpha_frame_past_sigtramp_frame): New function.
8341         (alpha_dynamic_sigtramp_offset): Ditto.
8342         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8343         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8344         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8345         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8346         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8347         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8348         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8349         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8350         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8351         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8352         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
8353         to find_solib_trampoline_target.
8354         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8355         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8356         (SKIP_TRAMPOLINE_CODE): Remove.
8357         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8358         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8359         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8360         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8361         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8362         (PROC_SIGTRAMP_MAGIC): Ditto.
8363         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8364         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8365         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8366         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8367         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8368
8369 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8370
8371         * NEWS: Note that Alpha targets are now multi-arch.
8372
8373 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8374
8375         * parser-defs.h (prev_lexptr): New external variable.
8376         * parse.c (parse_exp_1): Set prev_lexptr to null before
8377         calling the language-specific parser.
8378         * c-exp.y (yylex): Set prev_lexptr to start of current token.
8379         (yyerror): Use prev_lexptr in error reporting.
8380
8381 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
8382
8383         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8384         * gregset.h: If FILL_FPXREGSET is defined, provide
8385         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8386         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8387         is defined, call fill_fpxregset.
8388
8389 2002-04-24  Roland McGrath  <roland@frob.com>
8390
8391         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8392         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8393         (supply_gregset, supply_fpregset): New functions.
8394
8395         * gnu-nat.c (gnu_find_memory_regions): New function.
8396         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8397         (gnu_xfer_memory): Add a cast.
8398
8399 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8400
8401         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8402         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
8403         of argument regs ("str r(0123), [r11, #-nn"]).
8404         (arm_skip_prologue): Better handling for frameless functions.
8405         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
8406         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8407
8408 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
8409
8410         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8411         NUM_PSEUDO_REGS can be used.
8412
8413 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
8414
8415         * arch-utils.h: Update copyright.
8416
8417         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8418         * gdbarch.h, gdbarch.c: Re-generate.
8419
8420         * inferior.h (IN_SIGTRAMP): Delete definition.
8421         * arch-utils.c (legacy_pc_in_sigtramp): New function.
8422         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8423
8424         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8425         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8426         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8427         (find_proc_framesize): Ditto.
8428         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8429         (alpha_init_extra_frame_info): Ditto.
8430         * infrun.c (handle_inferior_event): Ditto.
8431         (handle_inferior_event): Ditto.
8432         (check_sigtramp2): Ditto.
8433         * blockframe.c (create_new_frame): Ditto.
8434         (get_prev_frame): Ditto.
8435         * ppc-linux-tdep.c: Update comments.
8436         * i386-linux-tdep.c: Update comments.
8437         * breakpoint.c (bpstat_what): Update comment.
8438
8439 2002-04-24  David S. Miller  <davem@redhat.com>
8440
8441         * i960-tdep.c (register_in_window_p): New function.
8442         (i960_find_saved_register): Use it instead of
8443         REGISTER_IN_WINDOW_P.
8444         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8445
8446         * symtab.h (find_stab_function_addr): Kill extern.
8447         * minsyms.c (find_stab_function_addr): Remove from here...
8448         * dbxread.c: ... to here, and mark it static.
8449
8450 2002-04-20  David S. Miller  <davem@redhat.com>
8451
8452         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8453         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8454
8455 2002-04-21  David S. Miller  <davem@redhat.com>
8456
8457         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8458         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8459         (vx_write_register): Likewise.
8460
8461 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8462
8463         * source.c (is_regular_file): New function.
8464         (openp): Check wether file to open is a regular file
8465         to avoid opening directories.
8466
8467 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8468
8469         * findvar.c (extract_signed_integer): Cast printf argument
8470         to suppress format warning.
8471         (extract_unsigned_integer): Likewise.
8472         * infcmd.c (registers_info): Likewise.
8473         * top.c (get_prompt_1): Likewise.
8474         * valops.c (value_assign): Likewise.
8475         * valprint.c (print_decimal): Likewise.
8476
8477 2002-04-22  H.J. Lu  (hjl@gnu.org)
8478
8479         * c-exp.y (typebase): Support
8480
8481         [long|long long|short] [signed|unsigned] [int|]
8482
8483         and
8484
8485         signed [long|long long|short] int
8486
8487 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8488
8489         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8490         and vax-tdep.h.
8491         * vax-tdep.h: New file.
8492         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8493         Make several routines static.
8494         (vax_get_saved_register): New function.
8495         (vax_gdbarch_init): New function.
8496         (_initialize_vax_tdep): Register vax_gdbarch_init.
8497         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8498         Remove macros now under the control of gdbarch.
8499
8500 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8501
8502         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8503         Some whitespace and coding standards tweaks.
8504
8505 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8506
8507         * vax-tdep.c: Include regcache.h.
8508         (vax_call_dummy_words): New.
8509         (sizeof_vax_call_dummy_words): New.
8510         (vax_fix_call_dummy): New function.
8511         (vax_saved_pc_after_call): Ditto.
8512         * config/vax/tm-vax.h: Don't include regcache.h.
8513         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8514         (CALL_DUMMY): Remove.
8515         (CALL_DUMMY_WORDS): Define.
8516         (SIZEOF_CALL_DUMMY_WORDS): Define.
8517         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8518
8519 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8520
8521         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8522
8523 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8524
8525         * vax-tdep.c (vax_frame_chain): New function.
8526         (vax_push_dummy_frame): Ditto.
8527         (vax_pop_frame): Ditto.
8528         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8529         (FRAMELESS_FUNCTION_INVOCATION): Use
8530         generic_frameless_function_invocation_not.
8531         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8532         (POP_FRAME): Use vax_pop_frame.
8533
8534 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8535
8536         * vax-tdep.c (vax_store_struct_return): New function.
8537         (vax_extract_return_value): Ditto.
8538         (vax_store_return_value): Ditto.
8539         (vax_extract_struct_value_address): Ditto.
8540         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8541         vax_store_struct_return.
8542         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8543         (STORE_RETURN_VALUE): Use vax_store_return_value.
8544         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8545
8546 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8547
8548         * vax-tdep.c (vax_frame_saved_pc): New function.
8549         (vax_frame_args_address_correct): Ditto.
8550         (vax_frame_args_address): Ditto.
8551         (vax_frame_locals_address): Ditto.
8552         (vax_frame_num_args): Move code to be in proximity to
8553         other frame-related functions.
8554         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8555         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8556         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8557         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8558         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8559
8560 2002-04-22  H.J. Lu  (hjl@gnu.org)
8561
8562         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8563         includedir.
8564
8565 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8566
8567         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8568         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8569         (FRAME_INIT_SAVED_REGS): New macro.
8570
8571 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8572
8573         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8574
8575 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8576
8577         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8578         where needed.
8579         (fetch_osf_core_registers): Likewise.
8580         (supply_gregset): Likewise.
8581
8582 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8583
8584         * symfile.h (get_section_index): Define.
8585         * symfile.c (get_section_index): New function.
8586         * mdebugread.c (SC_IS_SBSS): New macro.
8587         (SC_IS_BSS): Return true for the scBss storage class only, as
8588         the scSBss storage class refers to the .sbss section.
8589         (parse_partial_symbols): Discard the symbols which associated
8590         section does not exist.
8591         Make sure to use the .sbss section index for symbols which
8592         storage class is scBss, rather than using the .bss section index.
8593
8594 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8595
8596         * vax-tdep.c: Update copyright years.
8597         (vax_register_name): New function.
8598         (vax_register_byte): Ditto.
8599         (vax_register_raw_size): Ditto.
8600         (vax_register_virtual_size): Ditto.
8601         (vax_register_virtual_type): Ditto.
8602         * config/vax/tm-vax.h: Update copyright years.
8603         (REGISTER_NAMES): Remove.
8604         (REGISTER_NAME): Define.
8605         (REGISTER_BYTE): Use vax_register_byte.
8606         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8607         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8608         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8609
8610 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8611
8612         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8613         declaration
8614         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8615
8616 2002-04-21  David S. Miller  <davem@redhat.com>
8617
8618         * arch-utils.c (generic_prologue_frameless_p): Kill
8619         SKIP_PROLOGUE_FRAMELESS_P code.
8620         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8621         references.
8622         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8623         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8624         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8625         references.
8626         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8627         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8628         (sparc_gdbarch_init): Pass it to
8629         set_gdbarch_prologue_frameless_p.
8630
8631 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8632
8633         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8634         (alphabsd-nat.o): New dependency list.
8635
8636 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8637
8638         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8639         alphafbsd-tdep.c.
8640         (alpha-linux-tdep.o): New dependency list.
8641         (alphafbsd-tdep.o): Likewise.
8642
8643 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8644
8645         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8646         to here...
8647         * alpha-tdep.c: ...from here.
8648         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8649
8650 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8651
8652         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8653         prototype from here...
8654         * alpha-tdep.h: ...to here.
8655
8656 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8657
8658         * frame.h (selected_frame_level): Document as deprecated.
8659         (frame_relative_level): Declare.
8660         * stack.c (frame_relative_level): New function.
8661         (selected_frame_level): Document as deprecated.
8662         (select_frame): Do not set the selected_frame_level.
8663
8664         * stack.c (frame_info, record_selected_frame): Update.
8665         (frame_command, current_frame_command): Update.
8666         (up_silently_base, up_command, down_silently_base): Update.
8667         (down_command): Update.
8668         * inflow.c (kill_command): Update.
8669         * tracepoint.c (finish_tfind_command): Update.
8670         * corelow.c (core_open): Update.
8671         * thread.c (info_threads_command): Update.
8672         (do_captured_thread_select): Update.
8673         * infcmd.c (finish_command): Update.
8674         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8675
8676 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8677
8678         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8679
8680 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8681
8682         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8683         type const.
8684
8685 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8686
8687         * alphafbsd-tdep.c: Update copyright years.  Include
8688         alpha-tdep.h.
8689         (alphafbsd_use_struct_convention): Make static.
8690         (alphafbsd_init_abi): New function.
8691         (_initialize_alphafbsd_tdep): New function.
8692         * config/alpha/tm-fbsd.h: Update copyright years.
8693         (USE_STRUCT_CONVENTION): Remove.
8694
8695 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8696
8697         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8698         an Alpha ABI variant.
8699         (alpha_abi_handler_list): Declare.
8700         (alpha_gdbarch_register_os_abi): New function.
8701         (alpha_gdbarch_init): Give registered ABI variant handlers a
8702         chance to tweak the gdbarch once we have set up defaults.
8703         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8704
8705 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8706
8707         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8708         to standard_coerce_float_to_double.
8709         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8710
8711 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8712
8713         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8714         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8715         from gdbarch_tdep rather than a constant.
8716         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8717         the default text address for all Alpha Unix ABIs.
8718         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8719         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8720
8721 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8722
8723         * alpha-tdep.h: New file.  Includes several Alpha target constants
8724         taken from...
8725         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8726         let gdbarch deal with.
8727         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8728         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8729         to dependency list.
8730         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8731         Alpha target register names.
8732         * alphabsd-nat.c: Likewise.
8733         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8734         Alpha target register names.  Make serveral routines static.
8735         (alpha_get_saved_register): New function.
8736         (alpha_abi_names): New.
8737         (process_note_abi_tag_sections): New function.
8738         (get_elfosabi): New function.
8739         (alpha_gdbarch_init): New function.
8740         (alpha_dump_tdep): New function.
8741         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8742
8743 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8744
8745         * frame.c (find_saved_register): Delete #ifdef
8746         HAVE_REGISTER_WINDOWS code.
8747         * config/sparc/tm-sparc.h: Update comments.
8748         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8749
8750 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8751
8752         * i960-tdep.c (i960_find_saved_register): New function.
8753         (i960_get_saved_register): New function.
8754         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8755         (i960_get_saved_register): Declare.
8756         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8757
8758 2002-04-20  David S. Miller  <davem@redhat.com>
8759
8760         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8761
8762 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8763
8764         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8765         instead of NUM_PSEUDO_REGS.
8766
8767 2002-04-20  David S. Miller  <davem@redhat.com>
8768
8769         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8770         GDB_MULTI_ARCH_PARTIAL
8771         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8772         define, let tm-sp64.h do it.
8773
8774 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8775
8776         * frame.c (find_saved_register): Avoid a NULL pointer
8777         dereference and actually walk the frame list.
8778
8779 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8780
8781         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8782         sorted in most most-recent-used order.  Document.
8783         * gdbarch.h, gdbarch.c: Regenerate.
8784
8785 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8786
8787         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8788         instead of ->prev.
8789         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8790         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8791         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8792         instead of ->prev.
8793
8794 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8795
8796         Fix PR gdb/471.
8797         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8798         (build_builtin_type_vec128): Ditto.
8799         (append_composite_type_field): Fix calculation of type length in
8800         union case.
8801
8802 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8803
8804         * config/djgpp/README: Update.
8805
8806         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8807         compiler warnings.
8808
8809 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8810
8811         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8812         (alpha_setup_arbitrary_frame): ...to this.
8813         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8814         for alpha_setup_arbitrary_frame.
8815
8816 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8817
8818         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8819         * gdbarch.h, gdbarch.c: Regenerate.
8820
8821         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8822         * target.h (memory_breakpoint_from_pc): Update declaration.
8823         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8824
8825         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8826         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8827         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8828         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8829         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8830         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8831         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8832         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8833         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8834         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8835         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8836         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8837
8838         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8839         const pointer.
8840         * monitor.c (monitor_insert_breakpoint): Ditto.
8841         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8842
8843         * config/mcore/tm-mcore.h: Update copyright.
8844         * mem-break.c: Ditto.
8845         * xstormy16-tdep.c: Ditto.
8846
8847 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8848
8849         * p-exp.y: Add precedence rule for '^' token.
8850         This removes the shift/reduce conflicts.
8851         Remove the comment concerning these shift/reduce conflicts.
8852
8853 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8854
8855         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8856         (registers_powerpc_nofp): New register set for processors
8857         without floating point unit.
8858
8859 2002-04-18  David S. Miller  <davem@redhat.com>
8860
8861         * MAINTAINERS: Add myself to write-after-approval.
8862
8863 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8864
8865         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8866
8867 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8868
8869         * rs6000-tdep.c (frame_initial_stack_address): Use
8870         frame_register_read to read the alloca_reg.
8871
8872 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8873
8874         * frame.c (find_saved_register): Find saved registers in the next
8875         not prev frame.
8876         Fix PR gdb/365.
8877
8878 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8879
8880         * gdbarch.sh (LANG): Set to ``c''.
8881
8882 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8883
8884         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8885
8886 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8887
8888         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8889         Update copyright.
8890
8891         * hpread.c (hpread_get_lntt): Add declaration.
8892         Also fix PR gdb/391.
8893
8894 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8895
8896         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8897         * aclocal.m4, configure: Re-generate.
8898         Fix PR gdb/391.
8899
8900 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8901
8902         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8903         instead of tm_print_insn.
8904
8905 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8906
8907         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8908
8909 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8910
8911         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8912         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8913         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8914
8915 2002-04-12  Don Howard  <dhoward@redhat.com>
8916
8917         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8918         max_user_call_depth.
8919         (init_cmd_lists): Initialize the new value;
8920         * cli/cli-script.c (execute_user_command): Limit the call depth of
8921         user defined commands.  This avoids a core-dump when user commands
8922         are infinitly recursive.
8923
8924 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8925
8926         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8927         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8928         from tdep struct instead of DEFAULT_LR_SAVE.
8929         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8930         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8931         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8932
8933 2002-04-12  Michael Snyder  <msnyder@redhat.com>
8934
8935         * Remote.c: Spelling fix.
8936         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8937         If no symbol found for "sbrk", try "_sbrk".
8938         (make_output_phdrs): Use bfd_section_name.
8939         (gcore_copy_callback): Use bfd_section_name.
8940         * eval.c: Indentation fix-ups.
8941         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8942         in case it gets applied to an address that is already
8943         in the instruction space.
8944         * cli/cli-decode.c (help_list): Allow long lines to wrap.
8945         * symfile.c: Fix indentation, long lines.
8946         * source.c: White space fix-up.
8947
8948 2002-04-12  Andrew Cagney  <cagney@redhat.com>
8949
8950         * defs.h (read_relative_register_raw_bytes): Delete declaration.
8951         * frame.c (frame_register_read): New function.  Return non-zero on
8952         success.
8953         (read_relative_register_raw_bytes_for_frame): Delete.
8954         (read_relative_register_raw_bytes): Delete.
8955         * frame.h (frame_register_read): Declare.
8956         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
8957         * sh-tdep.c: Ditto.
8958         * infcmd.c (do_registers_info): Ditto.
8959         * hppa-tdep.c: Ditto.
8960         * rs6000-tdep.c: Ditto.
8961         * h8500-tdep.c: Ditto.
8962         * mips-tdep.c: Ditto.
8963         * h8300-tdep.c: Ditto.
8964         * z8k-tdep.c: Ditto.
8965
8966 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8967
8968         From Jimi X <jimix@watson.ibm.com>:
8969         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8970         64-bit SysV ABI.
8971
8972 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8973
8974         From Jimi X <jimix@watson.ibm.com>:
8975         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8976         bfd info.
8977
8978 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8979
8980         From Jimi X <jimix@watson.ibm.com>:
8981         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8982         register sets for these processor variants.
8983
8984 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
8985
8986         * regformats/reg-ppc.dat: Support FPSCR.
8987
8988 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
8989
8990         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8991         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8992         Add fpscr as an invalid/unfetchable register.
8993         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8994         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8995         (fill_fpregset): Add support for register fpscr.
8996         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8997         (fill_gregset): Account for the fact that register ``mq'' might
8998         not exist.
8999         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9000         (registers_power): Add fpscr to register set at slot 71.
9001         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9002         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
9003
9004 2002-04-11  Michael Snyder  <msnyder@redhat.com>
9005
9006         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9007         * configure: Regenerate.
9008         * config.in: Regenerate.
9009         * acconfig.h: Add define for _SYSCALL32.
9010         * core-sol2.c: Remove #define _SYSCALL32.
9011         * solib-legacy.c: Remove #define _SYSCALL32.
9012
9013 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9014
9015         * stack.c (select_frame): Cleanup internal error message, do not
9016         use %p.
9017
9018 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9019
9020         * stack.c (select_frame): Check that selected_frame and the
9021         specified level are as expected.
9022         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9023         Update copyright.
9024         * frame.h (struct frame_info): Add field `level'.  Update
9025         copyright.
9026         Work-in-progress PR gdb/464.
9027
9028 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9029
9030         * maint.c (maint_print_section_info): Rename print_section_info.
9031         (print_bfd_section_info, print_objfile_section_info): Update.
9032         * inferior.h (struct gdbarch): Add opaque declaration.
9033         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9034         * gdbarch.h: Regenerate.
9035
9036 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
9037
9038         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9039         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9040         (kernel_u_size): Added.
9041         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9042         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9043
9044 2002-04-04  Jim Ingham  <jingham@apple.com>
9045
9046        * valarith.c (find_size_for_pointer_math): New function, either returns
9047        the size for a pointer's target, returns 1 for void *, or errors for
9048        incomplete types.
9049        (value_add, value_sub): use find_size_for_pointer_math.
9050
9051 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9052
9053         * linux-low.c (linux_look_up_symbols): New hook.
9054         (linux_target_ops): Add linux_look_up_symbols.
9055         * remote-utils.c (decode_address): New function.
9056         (look_up_one_symbol): New function.
9057         * server.c (handle_query): Call target look_up_symbols hook.
9058         * server.h (look_up_one_symbol): Add prototype.
9059         * target.h (struct target_ops): Add look_up_symbols hook.
9060
9061 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
9062
9063         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9064         override FP_REGNUM with frame->fp.  Update copyright.
9065         * parse.c (num_std_regs, std_regs): Delete.
9066         (target_map_name_to_register): Do not search std_regs.  Update
9067         function description.
9068         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9069         declarations.  Update copyright.
9070         Fix PR gdb/251.
9071
9072 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9073
9074         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9075         after the last symbol in a block.
9076
9077 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9078
9079         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9080         is non zero as a found symbol.
9081
9082 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9083
9084         * findvar.c: Include "builtin-regs.h".
9085         (value_of_register): Call value_of_builtin_reg when applicable.
9086         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9087         (target_map_name_to_register): Call
9088         builtin_reg_map_name_to_regnum.
9089         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9090         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9091         (builtin_regs_h): Define.
9092         (builtin-regs.o): New target.
9093         (findvar.o): Add $(builtin_regs_h).
9094         * builtin-regs.c, builtin-regs.h: New files.
9095         * std-regs.c: New file.
9096         Partial fix for PR gdb/251.
9097
9098 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9099
9100         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9101         it's no longer required.
9102
9103 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9104
9105         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9106
9107 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9108
9109         From Jimi X <jimix@watson.ibm.com>:
9110         * rs6000-tdep.c (rs6000_software_single_step): Use
9111         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9112         and size.  Use target_insert_breakpoint() and
9113         target_remove_breakpoint() to insert and remove breakpoints
9114         instead of explicit memory reads and writes.
9115
9116 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9117
9118         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9119         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9120         ELF_OBJECT_FORMAT ifdef.
9121
9122 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9123
9124         From Jimi X <jimix@watson.ibm.com>:
9125         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9126
9127 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9128
9129         From Jimi X <jimix@watson.ibm.com>:
9130         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9131         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9132
9133 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
9134
9135         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9136         s/asprintf/xasprintf/.
9137         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9138
9139 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9140
9141         I believe Jeff Law denies responsability for this one:
9142         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9143         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9144         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9145         Work-around for PR gdb/366.
9146
9147 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9148
9149         * remote-e7000.c (write_small, e7000_read_inferior_memory,
9150         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9151         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9152
9153 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9154
9155         * sh-tdep.c (sh_fp_frame_init_saved_regs,
9156         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9157         information.
9158
9159 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9160
9161         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9162         maintainer.
9163
9164 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9165
9166         * README (Reporting Bugs in GDB): Document the bug web page as the
9167         prefered way of submitting bugs.
9168         Fix PR gdb/402.
9169
9170 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9171
9172         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9173         -1.  Update comment.
9174         * gdbarch.h, gdbarch.c: Re-generate.
9175
9176 2002-04-07  Andreas Schwab  <schwab@suse.de>
9177
9178         * m68klinux-nat.c (fill_fpregset): Properly pass address of
9179         buffer to regcache_collect.
9180
9181 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9182
9183         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
9184         * gdbarch.c, gdbarch.h: Re-generate.
9185
9186 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9187
9188         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9189         declaration.  Fix -Werror.
9190
9191 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
9192
9193         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9194         * gdbarch.c: Regenerate.
9195
9196 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9197
9198         * breakpoint.c (clear_command): Rewrite middle section to
9199         combine two loops with identical control conditions.
9200         Add a cleanup to eliminate a memory leak.
9201         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9202
9203 2002-04-05  H.J. Lu  (hjl@gnu.org)
9204
9205         * solib-svr4.c (bkpt_names): Add "__start".
9206
9207 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9208
9209         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9210         as test for 64 bit target.
9211
9212 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
9213
9214         * h8500-tdep.c (h8500_write_fp): Delete function.
9215         * dwarf2cfi.c (cfi_write_fp): Document as not used.
9216         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9217         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9218         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9219         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9220         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9221         (s390_write_fp):
9222         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9223         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9224         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9225         (d10v_write_fp): Delete function.
9226         * inferior.h (write_fp, generic_target_write_fp): Delete
9227         declarations.
9228         * regcache.c (generic_target_write_fp): Delete function.
9229         (write_fp): Delete function.
9230         * gdbarch.sh (TARGET_WRITE_FP): Delete.
9231         * gdbarch.h, gdbarch.c: Regenerate.
9232         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9233         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9234         (sparc64_write_fp): Delete declaration.
9235         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9236         (h8500_write_fp): Delete declaration.
9237
9238 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9239
9240         * sparc-tdep.c (sparc64_write_fp): Delete.
9241         (sparc_push_dummy_frame): Replace write_fp call with code to store
9242         the FP directly.
9243         (sparc_gdbarch_init): Do not initialize write_fp.
9244
9245 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
9246
9247         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9248         clause.
9249
9250 2002-03-29  Jim Blandy  <jimb@redhat.com>
9251
9252         * stack.c (get_selected_block): Add new argument `addr_in_block',
9253         used to return the exact code address we used to select the block,
9254         not just the block.
9255         * blockframe.c (get_frame_block, get_current_block): Same.
9256         * frame.h (get_frame_block, get_current_block,
9257         get_selected_block): Update declarations.
9258         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9259         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9260
9261 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9262
9263         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9264         warning message.
9265
9266 2002-04-05  J. Brobecker  <brobecker@gnat.com>
9267
9268         * utils.c (xfullpath): New function.
9269         * defs.h (xfullpath): Add declaration.
9270         * source.c (openp): Use xfullpath in place of gdb_realpath to
9271         avoid resolving the basename part of filenames when the
9272         associated file is a symbolic link. This fixes a potential
9273         inconsistency between the filenames known to GDB and the
9274         filenames it prints in the annotations.
9275         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9276         to be able to match a filename with either the real filename, or
9277         the name of any symbolic link to this file.
9278         (lookup_partial_symtab): Ditto.
9279
9280 2002-04-04  Michael Snyder  <msnyder@redhat.com>
9281
9282         * breakpoint.c: Add support for hardware breakpoints in overlays.
9283         (overlay_events_enabled): New state variable.
9284         (insert_breakpoints): Use overlay_events_enabled to decide
9285         whether to attempt to set a breakpoint at the overlay load addr.
9286         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9287         (remove_breakpoint): Use overlay_events_enabled to decide
9288         whether breakpoints need to be removed from overlay load addr.
9289         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9290         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9291         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9292         disable_overlay_breakpoints): Update overlay_events_enabled.
9293
9294 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
9295
9296         * dwarf2read.c (struct function_range): New.
9297         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9298         (check_cu_functions): New.
9299         (read_file_scope): Initialize global function lists.
9300         Call dwarf_decode_line after processing children.
9301         (read_func_scope): Add to global function list.
9302         (dwarf_decode_lines): Call check_cu_functions everywhere
9303         record_line is called.  Call record_line with a linenumber
9304         of 0 to mark sequence ends.
9305
9306 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
9307
9308         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9309         change sync with glibc.
9310
9311 2002-04-03  Jim Blandy  <jimb@redhat.com>
9312
9313         * configure.in: Call AC_C_INLINE.
9314         * configure: Regenerated.
9315
9316 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
9317
9318         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9319         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9320
9321 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
9322
9323         * NEWS: Mention gcore support on FreeBSD/i386.
9324
9325         * fbsd-proc.c: New file.
9326         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9327         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9328
9329         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9330         while statement.
9331
9332 2002-03-29  Jim Blandy  <jimb@redhat.com>
9333
9334         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9335         unescaped newlines in string literals, but newer ones don't.  So
9336         escape them.
9337
9338 2002-03-26  Michael Snyder  <msnyder@redhat.com>
9339             Andrew Cagney <cagney@redhat.com>
9340
9341         * cli/cli-dump.c: New file.  Dump memory to file,
9342         restore file to memory.
9343         * cli/cli-dump.h: New file.
9344         * Makefile.in: Add rules, dependencies for cli-dump.o.
9345         * NEWS: Mention new commands.
9346
9347 2002-03-28  Michael Snyder  <msnyder@redhat.com>
9348
9349         * symfile.c (symbol_file_add): Move test for null symbols to later.
9350
9351 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9352
9353         From veksler at il.ibm.com:
9354         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9355         the xstrduped original path.
9356         Fix PR gdb/417.
9357
9358 2002-03-27  Michael Snyder  <msnyder@redhat.com>
9359
9360         * breakpoint.c (_initialize_breakpoint): Clean up help string.
9361         * infcmd.c (_initialize_infcmd): Ditto.
9362         * language.c (_initialize_language): Ditto.
9363         * symfile.c (_initialize_symfile): Ditto.
9364         * top.c (_init_main): Ditto.
9365         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9366
9367 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
9368
9369         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9370         vector registers handling.
9371         (skip_prologue): Handle new AltiVec instructions.  Fill in new
9372         fields of frame data.
9373         (frame_get_saved_regs): Fill in information for AltiVec registers.
9374
9375 2002-03-27  Jim Blandy  <jimb@redhat.com>
9376
9377         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9378         a function; leave this macro here to invoke that function.
9379         (symbol_init_mangled_name): Declaration for that function.
9380         * symtab.c (symbol_init_mangled_name): New function.
9381
9382 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9383
9384         * valarith.c: Replace strerror with safe_strerror.
9385         * tracepoint.c: Ditto.
9386         * lin-lwp.c: Ditto.
9387         * go32-nat.c: Ditto.
9388         * inflow.c: Ditto.
9389         * gnu-nat.c: Ditto.
9390
9391 2002-03-27  Andreas Schwab  <schwab@suse.de>
9392
9393         * event-top.c (command_line_handler): Remove useless if.
9394
9395 2002-03-27  Andreas Jaeger  <aj@suse.de>
9396
9397         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9398         comment.
9399
9400 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
9401
9402         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9403         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9404         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9405         (x86_64_linux_dr_get_status, supply_gregset),
9406         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9407         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9408         (x86_64_register_info_table): Add.
9409         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9410         (x86_64_register_raw_size, x86_64_register_virtual_type),
9411         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9412         general x86_64_register_info_table.
9413         (i386_gdbarch_init): gdbarch_register_bytes is now set
9414         dynamicaly during initialization.
9415         * regformats/reg-x86-64.dat: Synced with changes to registers above.
9416         * gdbserver/linux-x86-64-low.c: Ditto.
9417
9418 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9419
9420         * gdbserver/server.c (main): Call target_signal_to_host_p
9421         and target_signal_to_host on signals received from the remote.
9422         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9423         target_signal_from_host on signals sent to the remote.
9424         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9425         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9426
9427 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9428
9429         * signals/signals.c: Include "server.h" in gdbserver build.
9430         (target_signal_from_name): Don't use STREQ.
9431         (_initialize_signals): Likewise.  Don't include function in
9432         gdbserver build.
9433
9434 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9435
9436         * signals.c: Moved to...
9437         * signals/signals.c: Here.
9438         * Makefile (signals.o): Update.
9439
9440 2002-03-26  Jeff Law (law@redhat.com)
9441
9442         * somread.c (som_symtab_read): Remove some commented out code and
9443         updated related comments.  Do not set the minimal symbol table to
9444         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9445         in a dynamic executable.
9446         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9447         where we are unable to find the minimal symbol for the given
9448         PC value.
9449
9450 2002-03-25  Jeff Law (law@redhat.com)
9451
9452         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9453
9454 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9455
9456         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9457
9458 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9459
9460         * command.h: Update copyright.
9461         (struct cmd_list_element): Replace definition with opaque
9462         declaration.
9463         (enum cmd_types): Document that it will eventually be moved to
9464         cli/cli-decode.h
9465         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9466         (MALLOCED_REPLACEMENT): Delete macro.
9467         * Makefile.in (cli_decode_h): Add $(command_h).
9468         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9469         * top.c: Include "cli/cli-decode.h".
9470         * completer.c: Include "cli/cli-decode.h".
9471         * maint.c: Include "cli/cli-decode.h".
9472         * cli/cli-decode.h: Include "command.h".
9473         (enum command_class): Delete.
9474         (enum cmd_types): Comment out.
9475         (enum cmd_auto_boolean): Delete.
9476         (enum var_types): Delete.
9477
9478 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9479
9480         * cli/cli-decode.c: Include "gdb_assert.h".
9481         (add_set_or_show_cmd): New static function.
9482         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9483         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9484         all fields, such as func, from the set command.
9485
9486 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9487
9488         * MAINTAINERS (sh-elf): Change warning flag to -w.
9489
9490 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9491
9492         * defs.h (error): Add printf format attribute.
9493         * thread-db.c (thread_from_lwp): Fix error format string.
9494         * stack.c (parse_frame_specification): Ditto.
9495         * cli/cli-decode.c (undef_cmd_error): Ditto.
9496         * scm-lang.c (scm_lookup_name): Ditto.
9497         * tracepoint.c (trace_error): Ditto.
9498         * remote-utils.c (usage): Ditto.
9499         * remote.c (compare_sections_command): Ditto.
9500         Fix PR gdb/328.
9501
9502 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9503
9504         * gdbtypes.c (append_composite_type_field): New function.
9505         (init_composite_type): New function.
9506         * gdbtypes.h (append_composite_type_field): Declare.
9507         (init_composite_type): Ditto.
9508
9509 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9510
9511         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9512         function.
9513         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9514         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9515         structure returning convention for SYSV ABI case, but not
9516         for GNU/Linux, FreeBSD, or NetBSD.
9517
9518 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9519
9520         * symtab.h (lookup_block_symbol): Add mangled_name argument
9521         to prototype.
9522
9523         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9524         with new mangled_name argument.
9525         * linespec.c (decode_line_1): Likewise.
9526         * valops (value_of_this): Likewise.
9527         * symtab.c (lookup_transparent_type): Likewise.
9528         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9529         (lookup_symbol): If we are given a mangled name, pass it down
9530         to lookup_symbol_aux.
9531         (lookup_block_symbol): If we are given a mangled name to check
9532         against, only return symbols which match it.
9533
9534 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9535
9536         * win32-nat.c (child_create_inferior): Check for proper shell to use
9537         here, in case the user changes it on the fly.
9538         (_initialize_inftarg): Remove shell path considerations.
9539
9540 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9541
9542         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9543         for gdbarch_max_register_raw_size and max_register_virtual_size.
9544         Adjust copyright year.
9545
9546 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9547
9548          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9549          in a function to cover the entire beginning of the function
9550          as well if it does not already.
9551
9552 2002-03-21  Tom Rix  <trix@redhat.com>
9553
9554         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9555         (rs6000_ptrace64): Renamed from ptrace64.
9556
9557 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9558
9559         * gdbserver/remote-utils.c (remote_open): Don't call
9560         getprotobyname, we're all using TCP here so just use
9561         IPPROTO_TCP.
9562         * gdbserver/gdbreplay.c (remote_open): Ditto.
9563
9564 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9565
9566         * regcache.c (_initialize_regcache): No need to call
9567         build_regcache() at this time; it gets called whenever
9568         the gdbarch changes.
9569
9570 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9571
9572         * sparc-nat.c:  Include sys/param.h where possible.
9573
9574 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9575
9576         Fix PR gdb/422.
9577         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9578         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9579         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9580         complex types.
9581         * stabsread.c (rs6000_builtin_type): Likewise.
9582         (read_sun_floating_type): Likewise.
9583
9584 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9585
9586         * stabsread.c (read_member_functions): Remove skip code for duplicate
9587         constructor/destructor methods.  Use standard parsing for these
9588         methods and just do not chain them to the list of methods after
9589         parsing.
9590
9591 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9592
9593         * coffread.c: Remove redundant static declarations.  Replace
9594         occurrences of `PTR' with `void *'.
9595         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9596         * top.h (quit_cover): Likewise.
9597         * defs.h (catch_errors): Likewise.
9598
9599 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9600
9601         * defs.h (XMALLOC): Define.
9602         * gdb-events.sh (XMALLOC): Delete macro.
9603         * gdb-events.c, gdb-events.h: Regenerate.
9604         * gdbarch.sh (XMALLOC): Delete macro.
9605         * gdbarch.c: Regenerate.
9606         * serial.c (XMALLOC): Delete macro.
9607         * ui-file.c (XMALLOC): Ditto.
9608         * ser-unix.h (XMALLOC): Ditto.
9609         * sh-tdep.c (XMALLOC): Ditto.
9610         * ui-out.c (XMALLOC): Ditto.
9611         * utils.c (XMALLOC): Ditto.
9612         * i386-tdep.c (XMALLOC): Ditto.
9613         * gdb-events.c (XMALLOC): Ditto.
9614         * d10v-tdep.c (XMALLOC): Ditto.
9615         * cli-out.c (XMALLOC): Ditto.
9616
9617         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9618         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9619         * ui-file.c, ui-out.c: Ditto.
9620
9621 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9622
9623         * command.h (struct cmd_list_element): Add field context.
9624         (set_cmd_context, get_cmd_context): Declare.
9625         * cli/cli-decode.h: Ditto.
9626         * cli/cli-decode.c (get_cmd_context): New function.
9627         (set_cmd_context): New function.
9628         (add_cmd): Initialize context.
9629         Part of fixing PR gdb/145 and PR gdb/146.
9630
9631 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9632
9633         * cli/cli-decode.c (cmd_type): New function.
9634         * command.h (cmd_type): Declare.
9635         * infrun.c (set_schedlock_func): Call function cmd_type.
9636         * kod.c (kod_set_os): Call cmd_type.
9637         * cris-tdep.c (cris_version_update): Use function cmd_type.
9638         (cris_mode_update, cris_abi_update): Ditto.
9639
9640         * command.h: (execute_cmd_post_hook): Declare.
9641         (execute_cmd_pre_hook): Declare.
9642         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9643         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9644         functions. Execute pre/post hook while ensuring that afterwords
9645         hook_in is cleared.
9646         * top.c (execute_command): Use execute_cmd_post_hook, and
9647         execute_cmd_pre_hook to execute pre/post commands.
9648         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9649         hook_stop_stub.
9650         (hook_stop_stub): Call execute_cmd_pre_hook.
9651
9652 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9653
9654         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9655         set'' and this leads to a core dump.  Move xstrdup of
9656         operating_system to after check that it is not NULL.
9657
9658 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9659
9660         * kod.c (kod_set_os): Remove unnecessary check that
9661         ``command->type'' is set_cmd.
9662
9663         * valprint.c (set_input_radix): Use input_radix.
9664         (set_output_radix): Use output_radix.
9665         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9666         isn't reverted.
9667
9668 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9669
9670         * value.h (struct value): Delete field ``substring_addr''.  Change
9671         aligner fields to force_doublest_align, force_longest_align,
9672         force_core_addr_align and force_pointer_aligh.
9673
9674         * value.h (struct value): Fix typo in above change.
9675
9676 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9677
9678         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9679         to fix internal_error from ``maintenance print architecture''.
9680
9681 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9682
9683         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9684         for gcc versions after gcc-2.8.1.
9685
9686 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9687
9688         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9689         for method resolution.  Restore adjustment of ``this'' pointer after
9690         calling value_struct_elt, which was accidentally removed during the
9691         HP merge.
9692
9693 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9694
9695         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9696         value_of_register.
9697         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9698         get_saved_register.
9699         * value.h (value_of_register): Update.
9700
9701 2002-03-14  Richard Henderson  <rth@redhat.com>
9702
9703         * configure.in: Detect declaration for canonicalize_file_name.
9704         * utils.c (canonicalize_file_name): Declare, if needed.
9705         (gdb_realpath): Prefer realpath if available and usable.
9706         * config.in, configure: Rebuild.
9707
9708 2002-03-14  Richard Henderson  <rth@redhat.com>
9709
9710         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9711         a constant array bound.
9712
9713         * MAINTAINERS: Add myself to write-after-approval.
9714
9715 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9716
9717         * symfile.c (syms_from_objfile): Return immediately if no syms.
9718         (symbol_file_add): Return immediately if no syms.
9719         (find_sym_fns): Return immediately if no syms.
9720
9721 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9722
9723         * gdbserver/remote-util.c (remote_open): Print remote-side's
9724         IP address when remote debugging over the network.
9725
9726 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9727
9728         * config/sparc/fbsd.mh: Fix copyright.
9729         * config/sparc/fbsd.mt: Likewise.
9730
9731 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9732
9733         * MAINTAINERS: Fix typo in name of gdb warnings option.
9734         (x86-64): Fix formating so that this can be parsed by awk.
9735
9736 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9737
9738         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9739         * defs.h: Include "gdb/signals.h".
9740         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9741
9742 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9743
9744         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9745         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9746         from x86-64-tdep.h
9747
9748 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9749             Don Howard <dhoward@redhat.com>
9750
9751         * mips-tdep.c (ST0_FR): Define.
9752         (mips2_fp_compat): New function, temporarily disabled.
9753         (mips_read_fp_register_single): New function.
9754         (mips_read_fp_register_double): New function.
9755         (mips_print_register): Use them.
9756         (do_fp_register_row): Likewise.
9757
9758 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9759
9760         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9761         approval''.
9762
9763 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9764
9765         * stabsread.c (read_member_functions): Fix is_stub test for
9766         static member functions, improve comment.
9767
9768 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9769
9770         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9771         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9772         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9773         commands that set boolean values.
9774         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9775         (arm_rdi_resume): Always initialize PC.
9776         (arm_rdi_open): Don't use rslt as a boolean.
9777         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9778         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9779         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9780         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9781
9782 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9783
9784         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9785         * configure: Rebuilt.
9786
9787 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9788
9789         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9790         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9791
9792 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9793
9794         * cli/cli-decode.c (set_cmd_completer): New function.
9795         * command.h (set_cmd_completer): Declare.
9796         * cli/cli-decode.h (set_cmd_completer): Ditto.
9797
9798         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9799         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9800         * win32-nat.c (_initialize_inftarg): Ditto.
9801         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9802         * proc-api.c (_initialize_proc_api): Ditto.
9803         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9804         * source.c (_initialize_source): Ditto.
9805         * exec.c (_initialize_exec): Ditto.
9806         * solib.c (_initialize_solib): Ditto.
9807         * top.c (init_main): Ditto.
9808         * tracepoint.c (_initialize_tracepoint): Ditto.
9809         * symfile.c (_initialize_symfile): Ditto.
9810         * printcmd.c (_initialize_printcmd): Ditto.
9811         * infcmd.c (_initialize_infcmd): Ditto.
9812         * corefile.c (_initialize_core): Ditto.
9813
9814 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9815
9816         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9817
9818 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9819
9820         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9821
9822 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9823
9824         * NEWS: Update headings, 5.2 has branched.
9825
9826 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9827
9828         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9829         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9830         (register_addr, REGISTER_RAW_SIZE): Likewise.
9831         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9832         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9833
9834 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9835
9836         * MAINTAINERS (x86-64): Add myself.
9837         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9838         changed value_ptr -> struct value *
9839
9840 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9841
9842         * configure.host (sparc64-*-freebsd): Add.
9843         * configure.tgt: Likewise.
9844         * config/sparc/fbsd.mh: New file.
9845         * config/sparc/fbsd.mt: Likewise.
9846         * config/sparc/nm-fbsd.h: Likewise.
9847         * config/sparc/tm-fbsd.h: Likewise.
9848
9849 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9850
9851         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9852         regformats/reg-s390x.dat.
9853
9854 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9855
9856         * utils.c: Add FIXME explaining true/false problem.
9857
9858 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9859
9860         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9861
9862 2002-02-28  Michael Chastain  <mec@shout.net>
9863
9864         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9865
9866 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9867
9868         * gdbserver/linux-s390-low.c: New file.
9869         * regformats/reg-s390.dat: New file.
9870         * regformats/reg-s390x.dat: New file.
9871         * gdbserver/configure.srv: Add S/390.
9872         * gdbserver/Makefile.in: Add S/390.
9873         * configure.tgt: Enable gdbserver for S/390.
9874
9875 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9876
9877         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9878         first line of the doc string for "info dos", except at the end of
9879         the sentence, since the short help stops at the first period.
9880
9881 2002-02-28  Jason Merrill  <jason@redhat.com>
9882
9883         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9884
9885 2002-02-27  Fred Fish  <fnf@redhat.com>
9886
9887         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9888         comment (dumy -> dummy).
9889
9890 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9891
9892         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9893
9894 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9895
9896       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9897
9898 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9899
9900         * gdbserver/acconfig.h: New file.
9901         * gdbserver/i387-fp.c: New file.
9902         * gdbserver/i387-fp.h: New file.
9903         * gdbserver/linux-x86-64.c: New file.
9904         * regformats/reg-x86-64.dat: New file.
9905         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9906         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9907         * gdbserver/configure.in: Add support for regsets.
9908         * gdbserver/config.in: Regenerate.
9909         * gdbserver/configure: Regenerate.
9910         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
9911         * gdbserver/linux-low.h: New file.
9912         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
9913         for regsets.
9914         * gdbserver/linux-arm-low.c: Include "linux-low.h".
9915         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9916         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9917         * gdbserver/linux-mips-low.c: Include "linux-low.h".
9918         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9919         * gdbserver/linux-sh-low.c: Include "linux-low.h".
9920         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
9921         "i387-fp.h".  Add PTRACE_GETREGS and friends.
9922         * gdbserver/regcache.c (supply_register): New function.
9923         (supply_register_by_name): New function.
9924         (collect_register): New function.
9925         (collect_register_by_name): New function.
9926
9927 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9928
9929         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9930         (config.status): Add configure.srv dependency.
9931         (server_h): Add config.h dependency.
9932
9933 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9934
9935         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9936         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9937         * gdbserver/configure.srv: Change i386-*-linux* to use
9938         reg-i386-linux.o.
9939
9940 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9941
9942         * x86-64-tdep.c: Re-indent.  Update copyright date.
9943
9944 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9945
9946         From Michal Ludvig <mludvig@suse.cz>:
9947         * x86-64-tdep.c (value.h): Delete.
9948         (gdb_assert.h): Include.
9949         (x86_64_register_convert_to_virtual,
9950         x86_64_register_convert_to_raw ): Add check which lets only
9951         floating-point values to be converted.
9952         (value_push): Delete.
9953         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9954         (i386_gdbarch_init): Number of register_bytes fixed.
9955
9956 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9957
9958         * MAINTAINERS: Add x86-64 target.
9959
9960 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9961
9962         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9963         * osfsolib.c (solib_map_sections): Ditto.
9964         * irix5-nat.c (solib_map_sections): Ditto.
9965         * corelow.c (gdb_check_format): Ditto.
9966         * symfile.c (symfile_bfd_open): Ditto.
9967         * solib.c (solib_map_sections): Ditto.
9968         Fix PR gdb/354.
9969
9970 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9971
9972         * remote.c (_initialize_remote): By default, disable ``e'' and
9973         ``E'' step out-of-range packets.
9974
9975 2002-02-26  Andreas Schwab  <schwab@suse.de>
9976
9977         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9978         m68k_linux_frame_saved_pc.
9979         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9980         in_sigtramp.
9981         (SIGCONTEXT_PC_OFFSET): Remove.
9982         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9983         m68k_linux_sigtramp_saved_pc): New functions.
9984         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9985         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9986         (UCONTEXT_PC_OFFSET): Define.
9987         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9988         non-RT and RT signal trampolines.
9989
9990 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
9991
9992         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9993         (TARGET_NBPG, STACK_END_ADDR): Delete
9994         (VARIABLES_INSIDE_BLOCK): Delete.
9995
9996 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
9997
9998         * utils.c (perror_with_name): Make string parameter constant.
9999         (print_sys_errmsg): Ditto.
10000         (query): Ditto.
10001         * defs.h (perror_with_name): Update.
10002         (print_sys_errmsg): Update.
10003         (query): Update.
10004
10005 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
10006
10007         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10008         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10009
10010 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10011
10012         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10013         if it already matches the current architecture from the exec file.
10014         Include arch-utils.h for gdbarch_info_init prototype.
10015         * Makefile.in (rs6000-nat.o): Update dependencies.
10016
10017 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
10018
10019         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10020          list of exported variables.
10021
10022 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
10023
10024         * gdbserver/configure.srv: New file.
10025         * gdbserver/configure.in: Use configure.srv instead
10026         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
10027         from it.
10028         * gdbserver/configure: Regenerated.
10029         * gdbserver/terminal.h: New file.
10030         * gdbserver/Makefile.in: Update for configure changes.  Remove
10031         more unneeded include paths.
10032
10033 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10034
10035         From wiz at danbala:
10036         * config/sparc/tm-sp64.h: Fix grammar and typos.
10037         Fix PR gdb/287.
10038
10039 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10040
10041         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10042         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
10043         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10044         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10045         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10046         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10047         * s390-tdep.c: Ditto.
10048         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10049         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10050         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10051         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10052         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10053         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10054         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10055         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10056         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10057         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10058         Fix PR gdb/378.
10059
10060 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10061
10062         * lin-thread.c: Delete file.
10063         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10064         to gdb_proc_service.h.
10065         * configure: Re-generate.
10066
10067         * ocd.c (ocd_open): Do not try to open the "ocd" device.
10068         * serial.c (serial_open): Delete check for "ocd".
10069         Fix PR gdb/349.
10070
10071         * Makefile.in (linux-thread.o): Delete target.
10072         * linux-thread.c: Delete file.
10073
10074         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
10075         renamed SH files to be consistent.
10076
10077         * symtab.c (sort_search_symbols): Use xfree.
10078
10079 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10080
10081         * arm-linux-tdep.c (arm_linux_init_abi): Register
10082         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10083         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10084         definition with undef, since we don't want the sysvr4 definition.
10085         (SKIP_TRAMPOLINE_CODE): Likewise.
10086
10087 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10088
10089         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10090
10091         * configure.in: (AC_CHECK_FUNCS) Added test for
10092         canonicalize_file_name Regenerated.
10093         * config.in, configure: Regenerated.
10094         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10095         defined use canonicalize_file_name.
10096
10097 2002-02-23  Michael Chastain  <mec@shout.net>
10098
10099         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10100
10101 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10102
10103         * README: Remove references to cygnus.com.
10104         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10105         dot com'' form.  Remove references to cygnus.com and sourceware.
10106
10107 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10108
10109         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10110         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10111         1003.1-2001 no longer allows "head -1".
10112         * gdb/Makefile.in (version.c): Likewise.
10113         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10114         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10115         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
10116
10117 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10118
10119         * cli/cli-decode.c (cmd_cfunc_eq): New function.
10120         * command.h (cmd_cfunc_eq): Declare.
10121         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10122
10123         * cli/cli-cmds.h (is_complete_command): Change parameter to a
10124         ``struct cmd_list_element *''.
10125         * cli/cli-cmds.c (is_complete_command): Update.  Use
10126         cmd_cfunc_eq.
10127         * top.c (execute_command): Pass the command to
10128         is_complete_command.
10129         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10130
10131 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10132
10133         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10134         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10135         architecture defines.
10136         * s390-tdep.c (s390_gdbarch_init): Likewise.
10137
10138 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10139
10140         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10141         (arm_linux_push_arguments): Likewise.
10142         (arm_linux_init_abi): Register them.  Also register linux-specific
10143         call_dummy_words.
10144         (find_minsym_and_objfile): Use strcmp, not STREQ.
10145         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10146         (arm_linux_call_dummy_words): Delete declaration.
10147         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10148         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10149         declarations.
10150         (LOWEST_PC): Delete.
10151
10152 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10153
10154         * maint.c (print_section_info): Do not prepend `0x' to filepos
10155         output, it will be handled by local_hex_string_custom.
10156
10157 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10158
10159         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10160         (store_newfpe_double, store_newfpe_extended, store_fpregister)
10161         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10162
10163 2002-02-22  Jim Blandy  <jimb@redhat.com>
10164
10165         Indicate that the bcache functions don't change the strings
10166         they're passed.
10167         * bcache.h (bcache, hash): Add `const' keywords to declarations.
10168         * bcache.c (bcache, hash): Add `const' keywords to definitions.
10169
10170 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
10171
10172         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10173
10174 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10175
10176         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10177         find the complete path to a loaded DLL.
10178
10179 2002-02-21  Fred Fish  <fnf@redhat.com>
10180
10181         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10182         that marks the end of the range of a function, enter a line number
10183         entry that has a line number of zero and a PC offset that matches
10184         the end of the function.  This starts a range of PC's for which no
10185         line number information is known.
10186         * symtab.c (find_pc_sect_line): If our best fit is in a range of
10187         PC's for which no line number info is found (line number is zero)
10188         then we didn't find any valid line information.
10189         * symtab.h: Document use of zero line number entry.
10190
10191 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
10192
10193         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10194         (have_ptrace_getvrregs): Define for run time checks.
10195         (gdb_vrregset_t): New type for Altivec register handling.
10196         (fetch_register, store_register): Fetch/store altivec register
10197         when needed.
10198         (fetch_altivec_register, store_altivec_register): New functions.
10199         (supply_vrregset, fill_vrregset): New functions.
10200         (fetch_altivec_registers, store_altivec_registers): New functions.
10201         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10202         registers as well.
10203
10204 2002-02-21  Jiri Smid  <smid@suse.cz>
10205
10206         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10207
10208 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10209
10210         * Makefile.in (armnbsd-nat.o): Update dependencies.
10211         * armnbsd-nat.c (supply_gregset): New function.  Common code to
10212         supply the integer register set.
10213         (supply_fparegset): New function.  Similar for FPA registers.
10214         (fetch_regs, fetch_fp_regs): Use them.
10215         (fetch_core_registers): Likewise.
10216         (fetch_elfcore_registers): New function.
10217         (arm_netbsd_elfcore_fns): New core-file type specification.
10218         (_initialize_arm_netbsd_nat): Register it.
10219
10220 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10221
10222         * armnbsd-nat.c: Include gdbcore.h.
10223         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10224         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10225         'void' to declaration, to shut up ARI.
10226         (fetch_core_registers): Make static.  Rewrite using supply_register.
10227         (arm_netbsd_core_fns): New core-file type specification.
10228         (_initialize_arm_netbsd_nat): New function.
10229
10230 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10231
10232         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10233         value.
10234
10235 2002-02-20  Christopher Faylor  <cgf@redhat.com>
10236
10237         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10238         fails.
10239
10240 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10241
10242         * jv-exp.y (parse_number): Change type of implicit longs
10243         to builtin_type_uint64.
10244
10245 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10246
10247         * gdbserver/linux-low.c (mywait): Change argument to waitpid
10248         to be an integer instead of a `union wait'.
10249
10250 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10251
10252         * mips-linux-nat.c: Call the operating system GNU/Linux.
10253         * mips-linux-tdep.c: Likewise.
10254         * mips-tdep.c: Likewise.
10255
10256 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10257
10258         Fix PR gdb/265.
10259         * jv-exp.y (parse_number): Handle 64-bit integers.
10260
10261 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10262
10263         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
10264         AC_STDC_HEADERS to AC_HEADER_STDC.
10265         * gdbserver/configure: Regenerated.
10266
10267 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10268
10269         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10270         is defined.
10271         * sparc-tdep.c (get_longjmp_target): Likewise.
10272
10273 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10274
10275         * News: Add news about ARM and Multi-arch.  Mention the new target
10276         arm*-*-netbsd*.
10277
10278 2002-02-19  Jim Blandy  <jimb@redhat.com>
10279
10280         * stabsread.c (error_type_complaint): Improve error message.
10281
10282 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
10283
10284         * gdbserver/README: Update documentation.
10285         * gdbserver/configure.in: Update configury to match documentation.
10286         * gdbserver/Makefile.in: Likewise.
10287         * gdbserver/configure: Regenerated.
10288         * gdbserver/aclocal.m4: New file, generated by aclocal.
10289         * gdbserver/config.in: New file, generated by autoheader.
10290
10291 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10292
10293         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10294         armnbsd-nat.c.
10295
10296 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10297
10298         * arm-tdep.h (enum arm_float_model): New enum.
10299         (struct gdbarch_tdep): Add fp_model.
10300         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
10301         up floating-point conversions until we know the floating-point model
10302         in use by the inferior.  Don't complain about being unable to
10303         determine the ABI of the inferior when we don't have one.
10304         (arm_extract_return_value): Support different floating-point models.
10305         (arm_store_return_value): Likewise.
10306         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10307         ARM_FLOAT_SOFT.
10308         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10309
10310 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10311
10312         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10313         of ``current_gdbarch''.
10314
10315 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10316
10317         * armnbsd-nat.c : ANSIfy all function declarations.
10318         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10319         (fetch_inferior_registers): Re-implement in terms of above.
10320         (store_register, store_regs, store_fp_register, store_fp_regs): New.
10321         (store_inferior_registers): Re-implement in terms of above.
10322
10323 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10324
10325         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10326         kernel.
10327         * arm-linux-tdep.c: Likewise.
10328         * config/arm/tm-linux.h: Likewise.
10329
10330 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10331
10332         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10333         * config/arm/nbsd.mt (TM_FILE): Delete.
10334         * config/arm/tm-nbsd.h: Delete.
10335
10336 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10337
10338         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10339         Initialize CALL_DUMMY_LENGTH.
10340
10341 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10342
10343         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10344         function.
10345         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10346         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10347         defines one thing and that is incorrect for this port.
10348         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10349
10350 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10351
10352         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10353
10354 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10355
10356         * win32-nat.c (display_selector): New function. Displays information
10357         about the information returned by GetThreadSelectorEntry API function.
10358         (display_selectors): New function. Displays the infomation of
10359         the selector given as argument, or of CS, DS ans FS selectors
10360         if no argument is given.
10361         ( _initialize_inftarg): Add "w32" as info prefix command.
10362         Add "info w32 selector" as command calling display_selectors.
10363
10364 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
10365
10366         * i386-tdep.c (get_longjmp_target): Fix compilation failure
10367         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10368         if not defined.
10369
10370 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10371
10372         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10373
10374 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10375
10376         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10377         (arm_fix_call_dummy): Call it.
10378         (arm_call_dummy_breakpoint_offset): Delete.
10379         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10380         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10381
10382 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
10383
10384         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10385         Default to func_frame_chain_valid.
10386         * gdbarch.h, gdbarch.c: Re-generate.
10387         * frame.h (FRAME_CHAIN_VALID): Delete definition.
10388
10389 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
10390
10391         * ppc-linux-nat.c: Update copyright.
10392         (fetch_register, store_register): Add tid parameter, don't compute
10393         tid here.
10394         (fetch_ppc_registers, store_ppc_registers): Add tid
10395         parameter. Pass it along to callees.
10396         (fetch_inferior_registers, store_inferior_registers): Compute tid
10397         here, and pass it to calleed functions.
10398         (fill_gregset, supply_fpregset): Clean up formatting.
10399
10400 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10401
10402         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10403         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10404
10405 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10406
10407         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10408         * gdbarch.c gdbarch.h: Regenerate.
10409         * breakpoint.c (create_longjmp_breakpoint): Always compile this
10410         function.
10411         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10412         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10413         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10414
10415         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10416         * arm-tdep.c (arm_get_longjmp_target): New function.
10417         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
10418         this to a positive value register arm_get_longjmp_target as the
10419         longjmp handler.
10420         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10421         (arm_linux_init_abi): Set up longjmp description in tdep.
10422         * armnbsd-nat.c (get_longjmp_target): Delete.
10423         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10424         description in tdep.
10425         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10426         (get_longjmp_target): Delete declaration.
10427         (GET_LONGJMP_TARGET): Delete.
10428         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10429         (GET_LONGJMP_TARGET): Delete.
10430
10431 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10432
10433         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10434         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10435         of ``current_gdbarch''.
10436
10437 2002-02-17  Tom Tromey  <tromey@redhat.com>
10438
10439         * cli/cli-cmds.c (compare_strings): New function.
10440         (complete_command): Only print each unique item once.
10441         * completer.h (complete_line): Declare.
10442         * completer.c (complete_line): New function.
10443         (line_completion_function): Use it.
10444
10445 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10446
10447         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10448         * gdbarch.h, gdbarch.c: Re-generate.
10449
10450 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10451
10452         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10453
10454 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10455
10456         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10457         * valops.c (value_arg_coerce): Don't take the address of a reference
10458         to convert an argument to a reference.
10459
10460 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10461
10462         * win32-nat.c (get_image_name): New function.
10463         (handle_load_dll): Use get_image_name function.
10464         (get_child_debug_event): Avoid registering debug events until possibly
10465         execed process is started.
10466         (child_create_inferior): Allow invocation via shell so that command
10467         line redirection, etc.  works ok.
10468         (_initialize_inftarg): Add new command: "set shell" to control whether
10469         a shell is used to start a process.
10470
10471 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10472
10473         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10474         instead of find_register_by_number.
10475         (cannot_store_register): Likewise.
10476
10477 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10478
10479         * dwarf2read.c: Replace fprintf (stderr, ...) by
10480         fprintf_unfiltered (gdb_stderr, ...).
10481
10482 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10483
10484         * gdbserver/gdbserver.1: Document --attach.
10485
10486 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10487
10488         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10489         descriptions.
10490         * arm-tdep.c (arm_default_arm_le_breakpoint)
10491         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10492         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10493         traditional breakpoint defines.
10494         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10495         (arm_gdbarch_init): Initialize new breakpoint variables.
10496         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10497         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10498         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10499         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10500         code out to ...
10501         (arm_netbsd_init_abi_common): ... here; new function.
10502         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10503         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10504         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10505         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10506
10507 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10508
10509         * arm-tdep.h (enum arm_abi): New enum.
10510         (struct gdbarch_tdep): New structure.
10511         (LOWEST_PC): Provide a default.
10512         (arm_gdbarch_register_os_abi): Declare new function.
10513         * arm-tdep.c (arm_abi_names): New array.
10514         (process_note_abi_tag_sections): New function.
10515         (get_elfosabi): New function.
10516         (arm_gdbarch_register_os_abi): New function.
10517         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10518         support for that ABI has been built in, then call the appropriate
10519         configuration routine.  Use gdbarch_num_regs() to get the number
10520         of registers.
10521         (arm_dump_tdep): New function.
10522         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10523         place-holder functions.
10524         (_initialize_arm_tdep): Register them.
10525         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10526
10527         * armnbsd-tdep.c: New file.
10528         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10529         * config/arm/nbsd.mt (TDEPFILES): Add it.
10530         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10531
10532         * armnbsd-nat.c: Include regcache.h.
10533         * Makefile.in (armnbsd-nat.o): Update dependency list.
10534
10535         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10536
10537 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10538
10539         * gdbserver/Makefile.in: Fix typos in target rules.
10540
10541 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10542
10543         Fix part of PR gdb/267.
10544         * linespec.c (find_methods): Handle constructors specially for now.
10545
10546 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10547
10548         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10549         handling.
10550         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10551         standard_coerce_float_to_double().
10552
10553 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10554
10555         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10556         GDBINIT_FILENAME.
10557
10558 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10559
10560         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10561         find_variant_by_name, because it confuses the multiarch
10562         framework. Return NULL if there isn't an architecture with the
10563         user supplied name, instead of forcing a different one without
10564         recording the change with the multiarch machinery.
10565         (find_variant_by_name): Delete.
10566
10567 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10568
10569         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10570         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10571
10572 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10573
10574         * stack.c (print_frame_info_base): When calling
10575         print_frame_info_listing_hook, set current_source_symtab.
10576
10577 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10578
10579         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10580         and remove unused $(INCLUDE_DIR).
10581         Add regcache.c to OBS.
10582         Add generated register protocol files to clean target.
10583         Update dependencies for new objects, obsolete old target code.
10584
10585         * gdbserver/linux-low.c: Remove all platform-specific code to
10586         new files.  Remove various dead code.  Update to use regcache
10587         functionality.
10588         * gdbserver/remote-utils.c (fromhex): Add return statement
10589         to quiet warning.
10590         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10591         constant.
10592         (input_interrupt): Add integer parameter to match prototype
10593         of a signal handler.
10594         (outreg): Use register_data ().
10595         (prepare_resume_reply): Use gdbserver_expedite_regs.
10596         * gdbserver/server.c (main): Dynamically allocate own_buf because
10597         PBUFSIZ is no longer constant.  Use registers_to_string () and
10598         registers_from_string ().
10599         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10600         for error (), fatal (), and warning ().  Update definition of
10601         PBUFSIZ to use regcache functionality.  Add include guard.
10602         * gdbserver/utils.c (fatal): Add missing ``const''.
10603         (warning): New function.
10604
10605         * regformats/regdat.sh: Include "regcache.h" in generated files.
10606         Provide init_registers () function.
10607         * regformats/regdef.h: Add prototype for set_register_cache ().
10608         Add include guard.
10609
10610         * gdbserver/linux-arm-low.c: New file.
10611         * gdbserver/linux-i386-low.c: New file.
10612         * gdbserver/linux-ia64-low.c: New file.
10613         * gdbserver/linux-m68k-low.c: New file.
10614         * gdbserver/linux-mips-low.c: New file.
10615         * gdbserver/linux-ppc-low.c: New file.
10616         * gdbserver/linux-sh-low.c: New file.
10617
10618         * gdbserver/regcache.c: New file.
10619         * gdbserver/regcache.h: New file.
10620
10621         * gdbserver/low-linux.c: Removed obsolete file.
10622
10623 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10624
10625         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10626         * config/i386/linux.mt: Likewise.
10627         * config/ia64/linux.mt: Likewise.
10628         * config/m68k/linux.mh: Likewise.
10629         * config/powerpc/linux.mh: Likewise.
10630         * config/mips/linux.mt: Likewise.
10631
10632         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10633
10634         * config/i386/i386lynx.mh: Mark gdbserver variables
10635         as (currently) obsolete for this target.
10636         * config/i386/nbsd.mt: Likewise.
10637         * config/i386/nbsdelf.mt: Likewise.
10638         * config/m32r/m32r.mt: Likewise.
10639         * config/m68k/m68klynx.mh: Likewise.
10640         * config/m68k/nbsd.mt: Likewise.
10641         * config/m68k/sun3os4.mh: Likewise.
10642         * config/mips/vr5000.mt: Likewise.
10643         * config/ns32k/nbsd.mt: Likewise.
10644         * config/pa/hppabsd.mh: Likewise.
10645         * config/pa/hppaosf.mh: Likewise.
10646         * config/powerpc/nbsd.mt: Likewise.
10647         * config/rs6000/rs6000lynx.mh: Likewise.
10648         * config/s390/s390.mt: Likewise.
10649         * config/s390/s390x.mt: Likewise.
10650         * config/sparc/sparclynx.mh: Likewise.
10651         * config/sparc/sun4os4.mh: Likewise.
10652         * config/i386/x86-64linux.mt: Likewise.
10653         * config/sparc/linux.mh: Likewise.
10654
10655 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10656
10657         * configure.tgt: Configure gdbserver only for known working
10658         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10659         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10660         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10661         * configure: Regenerated.
10662
10663 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10664
10665         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10666
10667         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10668         (default_gcore_mach): Just return 0, work around a problem in bfd.
10669         (default_gcore_target): OK to return NULL if exec_bfd is null.
10670         (make_mem_sec): Use a cast, avoid a warning.
10671
10672         * procfs.c (find_memory_regions_callback): Use a cast instead of
10673         calling host_pointer_to_address (which complains if
10674         sizeof (host pointer) != sizeof (target pointer)).
10675         (procfs_make_note_section): Avoid overflow in psargs string.
10676
10677         * procfs.c (procfs_make_note_section): Make the default
10678         implementation return an error.
10679
10680 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10681
10682         * procfs.c (procfs_make_note_section): Provide a default definition
10683         (for alpha-dec-osf4.0f). Fix typos.
10684
10685 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10686
10687         * linux-proc.c: Add include of regcache.h.
10688         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10689
10690 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10691
10692         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10693         * memattr.c (create_mem_region): Disallow useless empty region.
10694         Regions are half-open intervals, so allow [A..B) [B..C) as
10695         non-overlapping.
10696
10697 2002-02-13  Michael Chastain <mec@shout.net>
10698
10699         * defs.h: Kill CONST_PTR.
10700         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10701         * c-lang.c (c_builtin_types): Likewise.
10702         * ch-lang.c (ch_builtin_types): Likewise.
10703         * f-lang.c (f_builtin_types): Likewise.
10704         * language.c (unknown_builtin_types): Likewise.
10705         * m2-lang.c (m2_builtin_types): Likewise.
10706         * p-lang.c (pascal_builtin_types): Likewise.
10707         * scm-lang.c (c_builtin_types): Likewise.
10708
10709 2002-02-13  Keith Seitz  <keiths@redhat.com>
10710
10711         * arm-tdep.h (arm_get_next_pc): Add declaration.
10712
10713 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10714
10715         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10716         with other related struct-returning functions.
10717         (arm_extract_struct_value_address): New function.
10718         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10719         initialize float_format, double_format and long_double_format as
10720         appropriate to the endianness of the target.
10721         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10722         (arm_use_struct_convention): Delete declaration.
10723         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10724
10725 2002-02-13  Keith Seitz  <keiths@redhat.com>
10726
10727         * defs.h (core_addr_to_string_nz): New function.
10728
10729 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10730
10731         Apply missing bits of 2002-01-15 patch.
10732         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10733         (fill_fpregset): Use i387_fill_fsave.
10734
10735 2002-02-12  Keith Seitz  <keiths@redhat.com>
10736
10737         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10738         (core_addr_to_string_nz): New function.
10739
10740 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10741
10742         * arm-linux-nat.c: Really include arm-tdep.h.
10743         * config/arm/tm-linux.h (struct type, struct value): Declare.
10744
10745 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10746
10747         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10748         (gcore section): Ifdef for Solaris and Unixware only.
10749         (procfs_do_thread_registers): Unixware needs one lwpstatus
10750         per thread (not one prstatus or pstatus).
10751         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10752         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10753         once before iterating over threads.
10754
10755 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10756
10757         * arm-tdep.h: New file.
10758         * arm-tdep.c: Include arm-tdep.h.
10759         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10760         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10761         (arm_print_float_info, arm_register_type, convert_to_extended)
10762         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10763         (arm_extract_return_value, arm_register_name): Make static.
10764         (arm_software_single_step): Similarly.  Fix types in declaration.
10765         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10766         (arm_store_return_value, arm_store_struct_return): New functions.
10767         (arm_gdbarch_init): Register the above functions.  Also register
10768         call_dummy_start_offset, sizeof_call_dummy_words,
10769         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10770         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10771         max_register_virtual_size, register_size.  Set up
10772         prologue_cache.saved_regs here, rather than ...
10773         (_initialize_arm_tdep): ... here.
10774         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10775         declarations.
10776         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10777         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10778         (arm_print_float_info, arm_register_type, convert_to_extended)
10779         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10780         (arm_extract_return_value, arm_register_name): Delete declarations.
10781         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10782         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10783         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10784         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10785         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10786         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10787         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10788         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10789         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10790         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10791         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10792         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10793         interface.
10794         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10795         * remote-rdi.c remote-rdp.c: Likewise.
10796         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10797         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10798         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10799         definition.
10800
10801         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10802         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10803         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10804         from non-ARM_ prefixed definitions.
10805         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10806         all uses of above.
10807         * remote-rdi.c remote-rdp.c: Likewise.
10808         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10809
10810 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10811
10812         * arm-tdep.c (arm_frameless_function_invocation)
10813         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10814         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10815         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10816         (arm_pop_frame, arm_get_next_pc): Make static.
10817         (arm_gdbarch_init): Register above in gdbarch structure.
10818         (arm_read_fp): Renamed from arm_target_read_fp.
10819         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10820         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10821         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10822         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10823         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10824         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10825         (arm_pc_is_thumb_dummy): Delete declarations.
10826         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10827         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10828         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10829         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10830
10831 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10832
10833         * symtab.c (compare_search_syms): New function.
10834         (sort_search_symbols): New function.
10835         (search_symbols): Sort symbols after searching rather than
10836         before.
10837
10838 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10839
10840         * NEWS: Linux -> GNU/Linux.
10841
10842 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10843
10844         * gdbarch.sh: For for level one methods, disallow a definition
10845         when partially multi-arched.  Add comments explaining rationale.
10846         * gdbarch.h: Re-generate.
10847
10848 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10849
10850         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10851         multi-arch partial.
10852
10853 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10854
10855         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10856         field.  Use diff -u.
10857         * gdbarch.c: Re-generate.
10858
10859 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10860
10861         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10862         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10863         partial.
10864
10865 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10866
10867         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10868         multi-arch partial.
10869         (PUSH_ARGUMENTS): Switch to using predefault.
10870         * gdbarch.c: Regenerate.
10871
10872 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10873
10874         * valops.c (PUSH_ARGUMENTS): Delete definition.
10875         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10876         partial.  Default to default_push_arguments.
10877         * gdbarch.h, gdbarch.c: Regenerate.
10878
10879 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10880
10881         * defs.h (throw_exception): Rename return_to_top_level.  Update
10882         comments.
10883         * utils.c (error_stream, internal_verror, quit): Ditto.
10884         * top.c (throw_exception, catcher): Ditto.
10885         * sparclet-rom.c (sparclet_load): Ditto.
10886         * remote.c (interrupt_query, minitelnet): Ditto.
10887         * remote-sds.c (interrupt_query): Ditto.
10888         * remote-mips.c (mips_error, mips_kill): Ditto.
10889         * ocd.c (interrupt_query): Ditto.
10890         * monitor.c (monitor_interrupt_query): Ditto.
10891         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10892         * target.h: Update comment.
10893
10894         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10895
10896 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10897
10898         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10899         default_double_format.
10900         * gdbarch.h, gdbarch.c: Re-generate.
10901         * findvar.c (floatformat_unknown): Delete variable definition.
10902         * doublest.h (floatformat_unknown): Delete variable declaration.
10903
10904 2002-02-09  Jim Blandy  <jimb@redhat.com>
10905
10906         * stabsread.c (read_type): Add code to parse Sun's syntax for
10907         prototyped function types.
10908
10909 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10910
10911         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10912         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10913
10914 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10915
10916         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10917         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
10918         now _initialize_xcoffsolib gets called again and overrides the
10919         commands from solib.c in a native configuration.
10920
10921 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
10922
10923         * doublest.c (store_typed_floating): Don't try to return a value.
10924         Fixes PR gdb/290.
10925
10926 2002-02-08  Jim Blandy  <jimb@redhat.com>
10927
10928         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10929         is prototyped and has no arguments, print its argument list as
10930         `(void)'.
10931
10932 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10933
10934         * MAINTAINERS (write-after-approval): Add myself.
10935         (paper-trail): I've escaped!
10936
10937 2002-02-08  Christopher Faylor  <cgf@redhat.com>
10938
10939         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10940         changes.
10941         (_initialize_check_for_gdb_ini): Ditto.
10942
10943 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
10944
10945         * win32-nat.c (cygwin_pid_to_str): Fix typo.
10946         xaprintf -> xasprintf.
10947
10948 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
10949
10950         * win32-nat.c: Remove use of printf and sprintf functions.
10951
10952 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
10953
10954         * arm-tdep.c (arm_frame_chain_valid): Make static.
10955         (arm_push_arguments): Likewise.
10956         (arm_gdbarch_init): New function.
10957         (_initialize_arm_tdep): Call it.
10958         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10959         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10960         (FRAME_CHAIN_VALID): Delete.
10961         (arm_frame_chain_valid): Delete declaration.
10962         (PUSH_ARGUMENTS): Delete.
10963         (arm_push_arguments): Delete declaration.
10964         (CALL_DUMMY_P): Delete.
10965
10966 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
10967             Corinna Vinschen  <vinschen@redhat.com>
10968
10969         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10970         on builtin float types.
10971
10972 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
10973
10974         * utils.c: Include <curses.h> before "bfd.h".
10975         * tui/tui-hooks.c: Likewise.
10976         * tui/tui.c: Likewise.
10977         * tui/tuiCommand.c: Likewise.
10978         * tui/tuiData.c: Likewise.
10979         * tui/tuiDataWin.c: Likewise.
10980         * tui/tuiDisassem.c: Likewise.
10981         * tui/tuiGeneralWin.c: Likewise.
10982         * tui/tuiIO.c: Likewise.
10983         * tui/tuiLayout.c: Likewise.
10984         * tui/tuiRegs.c: Likewise.
10985         * tui/tuiSource.c: Likewise.
10986         * tui/tuiSourceWin.c: Likewise.
10987         * tui/tuiStack.c: Likewise.
10988         * tui/tuiWin.c: Likewise.
10989
10990 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
10991
10992         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10993         to include space for pseudoregs as well. Update loops accordingly.
10994         (sh_fp_frame_init_saved_regs): Ditto.
10995         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10996
10997 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
10998
10999         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11000         Add Richard Earnshaw to Arm maintainers.
11001
11002 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11003
11004         * defs.h (warning_begin): Delete declaration.
11005
11006         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11007         Delete macro.
11008
11009 2002-02-07  Michael Snyder  <msnyder@redhat.com>
11010
11011         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11012         Logic bug, remove misplaced else.
11013
11014 2002-02-07  Klee Dienes  <klee@apple.com>
11015
11016         * fork-inferior.c (fork_inferior): Add '!' to the list of
11017         characters that need to be quoted when building a string for the
11018         shell.  Quote '!' specifically with a backslash, since CSH chokes
11019         when trying to evaluate "str!str".
11020
11021 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11022
11023         * rdi-share/host.h: Only provide a typedef for bool if it is not
11024         defined.
11025
11026 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11027
11028         * breakpoint.h (enum bptype): Add new overlay event bp type.
11029         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11030
11031         * breakpoint.c (create_internal_breakpoint): New function.
11032         (internal_breakpoint_number): Moved into create_internal_breakpoint.
11033         (create_longjmp_breakpoint): Use create_internal_breakpoint.
11034         (create_thread_event_breakpoint): Ditto.
11035         (create_solib_event_breakpoint): Ditto.
11036         (create_overlay_event_breakpoint): New function.
11037         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11038         (update_breakpoints_after_exec): Delete and re-initialize
11039         overlay event breakpoints after an exec.  Add FIXME comment
11040         about longjmp breakpoint.
11041         (print_it_typical): Ignore overlay event breakpoints.
11042         (print_one_breakpoint): Ditto.
11043         (mention): Ditto.
11044         (bpstat_what): Do not stop for overlay event breakpoints.
11045         (delete_breakpoint): Don't delete overlay event breakpoints.
11046         (breakpoint_re_set_one): Delete the overlay event breakpoint.
11047         (breakpoint_re_set): Re-create overlay event breakpoint.
11048
11049         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11050         (overlay_manual_command): Disable overlay breakpoints.
11051         (overlay_off_command): Disable overlay breakpoints.
11052
11053 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11054
11055         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11056         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11057         to here from config/tm-arm.h.
11058         (coff_sym_is_thumb): Make static.
11059         (arm_elf_make_msymbol_special): New function.
11060         (arm_coff_make_msymbol_special): New function.
11061         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11062         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11063         (coff_sym_is_thumb): Delete declaration.
11064         (arm_elf_make_msymbol_special): Declare.
11065         (arm_coff_make_msymbol_special): Declare.
11066         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11067         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11068
11069 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11070
11071         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11072
11073 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11074
11075         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11076         * gdbarch.c gdbarch.h: Regenerate.
11077         * arch-utils.c (default_print_float_info): New function.
11078         * arch-utils.h (default_print_float_info): Prototype it.
11079         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11080         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11081         (PRINT_FLOAT_INFO): Document it.
11082
11083         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11084         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11085         (PRINT_FLOAT_INFO): Define.
11086
11087 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11088
11089         * win32-nat.c (_initialize_check_for_gdb_ini):
11090         Add typecast to sprintf argument to suppress a warning.
11091
11092 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
11093
11094         * win32-nat.c (last_sig): Changed type of variable to target_signal,
11095         to allow easier handling of pass state.
11096         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11097         that gives exception name and address.
11098         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11099         and set last_sig value to ourstatus->value.sig. Some missing
11100         exceptions added.
11101         (child_continue): Correctly report continue_status.
11102         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11103         TARGET_SIGNAL_0 (new default value).
11104         (child_resume): consider sig argument passed to decide if
11105         the exception should be passed to debuggee or not.
11106
11107 2002-02-05  Michael Snyder  <msnyder@redhat.com>
11108
11109         * regcache.c (fetch_register): Call target_fetch_register
11110         only if we don't call FETCH_PSEUDO_REGISTER.
11111         (store_register): Call target_store_register only if we
11112         don't call STORE_PSEUDO_REGISTER.
11113
11114 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
11115
11116         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11117         ELF_MAKE_MSYMBOL_SPECIAL.
11118         * gdbarch.c, gdbarch.h: Regenerate.
11119         * arch-utils.c (default_make_msymbol_special): New function.
11120         * arch-utils.h (default_make_msymbol_special): Export.
11121         * elfread.c (elf_symtab_read): Compile use of
11122         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11123         multiarched.
11124         * coffread.c (coff_symtab_read): Ditto, for
11125         COFF_MAKE_MSYMBOL_SPECIAL.
11126
11127 2002-02-05  Jim Blandy  <jimb@redhat.com>
11128
11129         * solib-svr4.c (svr4_truncate_ptr): New function.
11130         (svr4_relocate_section_addresses): Do the address arithmetic with
11131         the appropriate truncation for target addresses, even when
11132         CORE_ADDR is larger than a target address.
11133
11134 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11135
11136         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11137         to (int *).
11138
11139 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11140
11141         * gdbserver/linux-low.c (kill_inferior): Remove commented out
11142         code.
11143
11144 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11145
11146         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11147
11148 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11149
11150         * gdbserver/linux-low.c: Remove unused include files.
11151
11152 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11153
11154         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11155         (read_inferior_memory): Use it.
11156         (write_inferior_memory): Likewise.
11157
11158 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11159
11160         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11161         grubbing through sys_errlist.
11162
11163 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11164
11165         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11166
11167 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11168         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11169
11170 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
11171
11172         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11173         (do_sfunc, set_cmd_sfunc): New functions.
11174
11175         * command.h (struct cmd_list_element): Add field func.
11176         * cli/cli-decode.h (struct cmd_list_element): Ditto.
11177         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11178         * cli/cli-decode.h: Ditto.
11179
11180         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11181         (help_all, help_cmd_list): Ditto.
11182         (find_cmd, complete_on_cmdlist): Ditto.
11183         * top.c (execute_command): Ditto.
11184
11185         * cli/cli-setshow.c (do_setshow_command): Call func instead of
11186         function.sfunc.
11187
11188         * infcmd.c (notice_args_read): Fix function signature.
11189
11190         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11191         * cli/cli-decode.c (add_set_cmd): Ditto.
11192         * utils.c (initialize_utils): Ditto.
11193         * maint.c (_initialize_maint_cmds): Ditto.
11194         * infrun.c (_initialize_infrun): Ditto.
11195         * demangle.c (_initialize_demangler): Ditto.
11196         * remote.c (add_packet_config_cmd): Ditto.
11197         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11198         * cris-tdep.c (_initialize_cris_tdep): Ditto.
11199         * proc-api.c (_initialize_proc_api): Ditto.
11200         * kod.c (_initialize_kod): Ditto.
11201         * valprint.c (_initialize_valprint): Ditto.
11202         * top.c (init_main): Ditto.
11203         * infcmd.c (_initialize_infcmd): Ditto.
11204         * corefile.c (_initialize_core): Ditto.
11205         * arm-tdep.c (_initialize_arm_tdep): Ditto.
11206         * arch-utils.c (initialize_current_architecture): Ditto.
11207         (_initialize_gdbarch_utils): Ditto.
11208         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11209
11210         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11211         * wince.c (_initialize_inftarg): Ditto.
11212         * symfile.c (_initialize_symfile): Ditto.
11213         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11214         * language.c (_initialize_language): Ditto.
11215         * arc-tdep.c (_initialize_arc_tdep): Ditto.
11216
11217 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11218
11219         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11220
11221 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11222
11223         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11224         Add rules for building the register data files.
11225
11226 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11227
11228         * regformats/regdat.sh: Add braces to the definition of
11229         expedite_regs_${arch}.
11230
11231 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11232
11233         * regformats/regdef.h (struct reg): Add comment describing the
11234         requirements for offset and size fields.
11235
11236 2002-02-04  Andreas Schwab  <schwab@suse.de>
11237
11238         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11239         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11240
11241 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
11242
11243         * gdbarch.sh (copyright): Update years in generated header.
11244         (SMASH_TEXT_ADDRESS): Add rule.
11245         * gdbarch.h, gdbarch.c: Re-generate.
11246         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11247         * dbxread.c: Likewise.
11248         * dwarfread.c: Likewise.
11249         * elfread.c: Likewise.
11250         * somread.c: Likewise.
11251
11252         * arm-tdep.c (arm_smash_text_address): New function.
11253         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11254
11255 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11256
11257         Add support for hardware watchpoints on win32 native.
11258         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11259         CONTEXT_DEBUG_REGISTERS.
11260         (dr variable): New variable. Static array containing a local copy
11261         of debug registers.
11262         (debug_registers_changed): New variable.  Reflects when debug registers
11263         are changed and need to be written to inferior.
11264         (debug_registers_used): New variable. Reflects when any debug register
11265         was set, used when new threads are created.
11266         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11267         i386-nat code.
11268         (thread_rec): Set dr array if id is the thread of current_event .
11269         (child_continue, child_resume): Change the debug registers for all
11270         threads if debug_registers_changed.
11271         (child_add_thread): Change the debug registers if debug_registers_used.
11272         * config/i386/cygwin.mh: Add use of i386-nat.o file.
11273         Link nm.h to new nm-cygwin.h file.
11274         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11275         of hardware registers.
11276
11277 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
11278
11279         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11280         Restore behavour broken by 2002-01-20 Andrew Cagney
11281         <ac131313@redhat.com> IEEE_FLOAT removal.
11282
11283 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11284
11285         * c-valprint.c (c_val_print): Pass a proper valaddr to
11286         cp_print_class_method.
11287         * valops.c (search_struct_method): If there is only one method
11288         and args is NULL, return that method.
11289
11290 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11291
11292         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11293         accessing tag_name directly.
11294
11295 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11296
11297         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11298         of accessing tag_name directly.
11299
11300 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11301
11302         PR gdb/280
11303         * gdbtypes.c (replace_type): New function.
11304         * gdbtypes.h (replace_type): Add prototype.
11305         * stabsread.c (read_type): Use replace_type.
11306
11307 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
11308
11309         * Makefile.in (memattr.o): Add missing dependencies rule.
11310
11311 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11312
11313         * breakpoint.c (break_at_finish_command): Really export.
11314         (break_at_finish_at_depth_command): Ditto.
11315         (tbreak_at_finish_command): Ditto.
11316         * hppa-tdep.c: Include completer.h.
11317         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11318         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11319
11320 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11321
11322         * utils.c (do_write): New function.
11323         (error_stream): Rewrite combining the code from error_begin and
11324         verror.
11325         (verror): Rewrite using error_stream.
11326         (error_begin): Delete function.
11327
11328 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11329
11330         * utils.c (error_begin): Make static.
11331         * defs.h (error_begin): Delete declaration.
11332
11333         * linespec.c (cplusplus_error): Replace cplusplus_hint.
11334         (decode_line_1): Use cplusplus_error instead of error_begin,
11335         cplusplus_hint and return_to_top_level.
11336         * coffread.c (coff_symfile_read): Use error instead of error_begin
11337         and return_to_top_level.
11338         * infrun.c (default_skip_permanent_breakpoint): Ditto.
11339
11340 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11341
11342         * language.h (type_error, range_error): Make string parameter
11343         constant.
11344         * language.c (warning_pre_print): Delete extern declaration.
11345         * dwarfread.c (warning_pre_print): Ditto.
11346         * language.c (type_error, range_error): Rewrite to use verror and
11347         vwarning instead of warning_begin.
11348
11349 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11350
11351         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11352         (set_ignore_count): Move misplaced comment back where it belongs.
11353
11354 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11355
11356         * command.h (NO_FUNCTION): Delete macro.
11357         * cli/cli-decode.h (NO_FUNCTION): Ditto.
11358         * top.c (execute_command): Replace NO_FUNCTION with NULL.
11359         * tracepoint.c (_initialize_tracepoint): Ditto.
11360         * cli/cli-decode.c (add_set_cmd): Ditto.
11361         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11362
11363 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11364
11365         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11366         Update ``this'' pointer when calling virtual functions.
11367
11368 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11369
11370         * breakpoint.c (create_temp_exception_breakpoint): Delete.
11371         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11372
11373 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11374
11375         * regformats/reg-arm.dat: New file.
11376         * regformats/reg-i386.dat: New file.
11377         * regformats/reg-ia64.dat: New file.
11378         * regformats/reg-m68k.dat: New file.
11379         * regformats/reg-mips.dat: New file.
11380         * regformats/reg-ppc.dat: New file.
11381         * regformats/reg-sh.dat: New file.
11382         * regformats/regdef.h: New file.
11383         * regformats/regdat.sh: New file.
11384
11385 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
11386
11387         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11388         (arm_frame_args_address, arm_frame_locals_address): New functions.
11389         (arm_frame_num_args): New function.
11390         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11391         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11392         (FRMA_NUM_ARGS): Call arm_frame_num_args.
11393
11394 2002-01-31  Michael Snyder  <msnyder@redhat.com>
11395
11396         * breakpoint.c (break_at_finish_command): Export.
11397         (break_at_finish_at_depth_command): Export.
11398         (tbreak_at_finish_command): Export.
11399         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11400         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11401         "txbreak" commands, which are HPPA specific.
11402
11403         * printcmd.c (disassemble_command): Remove an ancient
11404         artifact of an old merge.
11405
11406         * symfile.h (enum overlay_debugging_state):
11407         Define enum constant values for overlay mode.
11408         * symfile.c (overlay_debugging): Use enums instead of literals.
11409         (overlay_is_mapped, overlay_auto_command,
11410         overlay_manual_command): Ditto.
11411
11412         * breakpoint.c (insert_breakpoints, remove_breakpoint,
11413         breakpoint_here_p, breakpoint_inserted_here_p,
11414         breakpoint_thread_match, bpstat_stop_status,
11415         describe_other_breakpoints, check_duplicates, clear_command):
11416         Coding standard fixes.
11417
11418         * target.c (target_xfer_memory): Add spaces, coding standard.
11419         (do_xfer_memory): Add missing line to trust-readonly
11420         code: check bfd SEC_READONLY flag for section.
11421
11422 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11423
11424         * PROBLEMS: Fix typo, 5.1->5.1.1.
11425
11426 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11427
11428         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11429         data symbols, since we search based on textlow and texthigh.
11430         (find_pc_sect_symtab): Likewise.
11431
11432 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11433
11434         * defs.h (vwarning): Declare.
11435         * utils.c (vwarning): New function.
11436         (warning): Call vwarning.
11437         (warning_begin): Delete function.
11438
11439         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11440         the warning message.
11441         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11442         warning_begin.
11443
11444 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11445
11446         * NEWS: Mention "set trust-readonly-sections" command.
11447         Mention generate-core-file command.
11448
11449 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11450
11451         * target.c: New command, "set trust-readonly-sections on".
11452         (do_xfer_memory): Honor the suggestion to trust readonly sections
11453         by reading them from the object file instead of from the target.
11454         (initialize_targets): Register command "set trust-readonly-sections".
11455
11456 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11457
11458         * parse.c (target_map_name_to_register): Simplify, search regs and
11459         pseudo-regs using a single loop.
11460
11461 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11462
11463         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11464
11465 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11466
11467         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11468         * config/i386/i386v42mp.mh: Add i387-nat.o .
11469         * i386v4-nat.c: Include i387-nat.h.
11470         (supply_fpregset): Use i387_supply_fsave.
11471         (fill_fpregset): Use i387_fill_fsave.
11472
11473 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11474
11475         * arm-tdep.c (arm_call_dummy_words): Define.
11476         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11477         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11478         (CALL_DUMMY_WORDS): Define.
11479         (arm_call_dummy_words): Declare.
11480         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11481         (arm_linux_call_dummy_words): Declare.
11482
11483 2002-01-30  Andreas Schwab  <schwab@suse.de>
11484
11485         * m68klinux-nat.c: Fix last change to use regcache_collect
11486         instead of referencing registers[] directly.
11487
11488 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11489
11490         * parse.c (target_map_name_to_register): Delete code wrapped in
11491         #ifdef REGISTER_NAME_ALIAS_HOOK.
11492
11493 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11494
11495         * regcache.c (legacy_read_register_gen): Need to be able to
11496         read pseudo-register as well as real register.
11497         (legacy_write_register_gen): Ditto.
11498
11499 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11500
11501         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11502         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11503         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11504         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11505         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11506         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11507         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11508         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11509         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11510         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11511         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11512         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11513         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11514         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11515         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11516         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11517         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11518         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11519         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11520         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11521
11522 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11523
11524         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11525         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11526         (initialize_current_architecture): Update target_byte_order using
11527         information from BFD.
11528         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11529         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11530
11531 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11532
11533         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11534         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11535
11536         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11537         #ifdef INVALID_FLOAT.
11538         * infcmd.c (do_registers_info): Ditto.
11539         * values.c (unpack_double): Ditto.  Add comment.
11540
11541         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11542         already commented out.
11543
11544 2002-01-26  Andreas Schwab  <schwab@suse.de>
11545
11546         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11547         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11548         registers and add support for PTRACE_GETREGS.
11549
11550 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11551
11552         GDB 5.1.1 released from 5.1 branch.
11553         * NEWS: Add 5.1.1 news.
11554         * README: Sync with 5.1 branch.
11555
11556 2002-01-23  Fred Fish  <fnf@redhat.com>
11557
11558         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11559         stabstring on initial malloc.  Reallocing will copy it for us,
11560         if necessary.
11561
11562 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11563
11564         * Makefile.in (hpread_h): Delete.
11565         (HFILES_NO_SRCDIR): Remove hpread.h.
11566         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11567         (hpread.o): Update dependencies.
11568         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11569
11570         * hp-psymtab-read.c: Remove file.
11571         * hp-symtab-read.c: Remove file.
11572         * hpread.h: Remove file.
11573
11574         * hpread.c: Merge all contents of hp-psymtab-read.c,
11575         hp-symtab-read.c and hpread.h into this file, as it was prior to
11576         January 1999.
11577
11578         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11579         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11580         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11581         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11582
11583 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11584
11585         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11586         fill_gregset): Call gdbarch_tdep() just once, assign result to
11587         variable and use that, instead of calling the function several
11588         times.
11589
11590 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11591
11592         * configure.host: Accept sparcv9 as alias for sparc64.
11593         * configure.tgt: Likewise.
11594
11595 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11596
11597         * solib-aix5.c (build_so_list_from_mapfile)
11598         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11599         arguments is not reversed.
11600         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11601         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11602
11603 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11604
11605         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11606         modified version of obsolete sh_fetch_pseudo_register.
11607         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11608         (sh4_register_read): New function.
11609         (sh_pseudo_register_write): New function. Renamed and modified
11610         version of obsolete sh_store_pseudo_register.
11611         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11612         (sh4_register_write): New function.
11613         (sh_gdbarch_init): Remove setting of gdbarch function
11614         fetch_pseudo_register and store_pseudo_register. Remove setting of
11615         register_convert_to_raw, register_convert_to_virtual,
11616         register_convertible.
11617         (sh_sh4_register_convertible): Delete. No longer needed. All is
11618         taken care by architecture specific functions
11619         register_read/register_write.
11620         (sh_sh4_register_convert_to_virtual): Make static.
11621         (sh_sh4_register_convert_to_raw): Ditto.
11622
11623 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11624
11625         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11626         (floatformat_is_nan, floatformat_mantissa): Ditto.
11627
11628         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11629         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11630         builtin_type_ieee_double_little,
11631         builtin_type_ieee_double_littlebyte_bigword,
11632         builtin_type_m68881_ext, builtin_type_i960_ext,
11633         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11634         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11635         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11636         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11637
11638 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11639
11640         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11641         parameter.  Set frameless flag if it exists and depended of
11642         whether the scanned function is frameless or not.
11643         (xstormy16_skip_prologue): If function is frameless, return
11644         result of xstormy16_scan_prologue().
11645         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11646         call.
11647
11648 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11649
11650         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11651         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11652         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11653         sh_sh4_register_byte, sh_sh4_register_raw_size,
11654         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11655         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11656         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11657         sh_store_pseudo_register, sh_do_pseudo_register): Call
11658         gdbarch_tdep() just once, assign result to variable and use that,
11659         instead of calling the function several times.
11660
11661 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11662
11663         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11664         macros instead of LAST_FPU_CTRL_REGNUM.
11665         (store_register): Likewise.
11666
11667 2002-01-21  Jim Blandy  <jimb@redhat.com>
11668
11669         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11670         is up-to-date before running the program, not just when a program
11671         exits.
11672
11673 2002-01-21  Fred Fish  <fnf@redhat.com>
11674
11675         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11676         when we have found all instructions we are looking for.
11677
11678 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11679
11680         * arm-tdep.c (arm_register_name): New function.
11681         (arm_registers_names): Make static.
11682         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11683         (arm_register_name): Declare.
11684         (REGISTER_NAME): Use it.
11685
11686 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11687             Kevin Buettner  <kevinb@redhat.com>
11688
11689         Convert arm targets to new FRAME interface.
11690         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11691         (arm_frame_find_save_regs): Delete.
11692         (arm_frame_init_saved_regs): New.
11693         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11694         Allocate extra_info as required.  Convert all uses of fsr.regs
11695         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11696         to use extra_info.
11697         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11698         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11699         (check_prologue_cache, save_prologue_cache): Likewise.
11700         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11701         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11702         (FRAME_FIND_SAVED_REGS): Delete.
11703         (arm_frame_find_saved_regs): Delete prototype.
11704         (arm_frame_init_saved_regs): New prototype.
11705         (FRAME_INIT_SAVED_REGS): Define.
11706
11707 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11708
11709         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11710
11711 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11712
11713         From Jeff Law <law@redhat.com>:
11714         * infttrace.c: Include <sys/pstat.h>.
11715         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11716         exec file if the ttrace equivalent fails.
11717
11718 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11719
11720         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11721         (closeLogFile): Ditto.
11722
11723 2002-01-20  Michael Chastain  <mec@shout.net>
11724
11725         * top.c (print_gdb_version): Bump copyright year to 2002.
11726
11727 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11728
11729         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11730         Zannoni and Eli Zaretskii.
11731
11732 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11733
11734         * buildsym.c: Update copyright years.
11735         * c-typeprint.c: Likewise.
11736         * dwarf2read.c: Likewise.
11737         * f-typeprint.c: Likewise.
11738         * gdbtypes.c: Likewise.
11739         * gdbtypes.h: Likewise.
11740         * hp-symtab-read.c: Likewise.
11741         * hpread.c: Likewise.
11742         * mdebugread.c: Likewise.
11743         * p-typeprint.c: Likewise.
11744
11745 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11746
11747         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11748         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11749         byte-order selectable.
11750         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11751         * arch-utils.c: Ditto.
11752         (set_endian): Ditto.
11753         (set_endian_from_file): Ditto.
11754         * gdbserver/low-sim.c (create_inferior): Ditto.
11755         * gdbarch.sh: Ditto.
11756         * gdbarch.h: Re-generate.
11757         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11758         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11759         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11760         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11761         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11762         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11763         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11764         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11765         macro definition.
11766         * config/mips/tm-wince.h: Remove #undef of macro
11767         TARGET_BYTE_ORDER_SELECTABLE.
11768         * config/sh/tm-wince.h: Ditto.
11769
11770 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11771
11772         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11773         member function fields.  Add accessor macro
11774         TYPE_FN_FIELD_ARTIFICIAL.
11775         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11776         * c-typeprint.c (c_type_print_base): Skip artificial member
11777         functions.
11778
11779 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11780
11781         * f-typeprint.c: Delete unused function f_type_print_args.
11782         * p-typeprint.c: Delete unused function pascal_type_print_args.
11783
11784 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11785
11786         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11787         comment.  Add ``artificial'' to ``union field_location''.
11788
11789         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11790
11791         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11792         * mdebugread.c (parse_symbol): Likewise.
11793         * stabsread.c (define_symbol): Likewise.
11794         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11795         initializing TYPE_FIELD_BITPOS to n (obsolete).
11796         (hpread_doc_function_type): Likewise.
11797         * hpread.c (hpread_function_type): Likewise.
11798
11799 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11800
11801         * configure.in (host_makefile_frag): Only require a host makefile
11802         fragment when a native build.
11803         * configure: Re-generate.
11804
11805 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11806
11807         * doublest.h (floatformat_from_type): Declare.
11808         * doublest.c (floatformat_from_type): New function.
11809         (convert_typed_floating): Use.
11810
11811         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11812         call to function floatformat_from_type.
11813
11814         * gdbarch.sh (IEEE_FLOAT): Delete.
11815         * gdbarch.h, gdbarch.c: Re-generate.
11816         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11817         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11818         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11819         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11820         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11821         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11822         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11823         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11824         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11825         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11826         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11827         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11828
11829         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11830         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11831         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11832         * sh-tdep.c (sh_gdbarch_init): Ditto.
11833         * mips-tdep.c (mips_gdbarch_init): Ditto.
11834         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11835         * cris-tdep.c (cris_gdbarch_init): Ditto.
11836
11837 2002-01-20  Jiri Smid  <smid@suse.cz>
11838
11839         * configure.host, configure.tgt: Support x86-64.
11840         * NEWS: Note new target x86-64.
11841
11842         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11843         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11844         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11845         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11846         x86-64-linux-nat.o): Fix dependencies.
11847
11848 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11849
11850         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11851         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11852         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11853         * config/sparc/xm-sun4os4.h: Delete file.
11854         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11855
11856 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11857
11858         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11859         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11860         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11861         * config/i386/i386lynx.mh (XM_FILE): Delete.
11862         * config/rs6000/xm-rs6000ly.h: Delete file.
11863         * config/sparc/xm-sparclynx.h: Delete file.
11864         * config/m68k/xm-m68klynx.h: Delete file.
11865         * config/i386/xm-i386lynx.h: Delete file.
11866         * config/xm-lynx.h: Delete file.
11867         * config/djgpp/fnchange.lst: Update.
11868
11869 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11870
11871         * alpha-tdep.c (alpha_register_byte): New function.
11872         (alpha_register_raw_size): Ditto.
11873         (alpha_register_virtual_size): Ditto.
11874         (alpha_skip_prologue_internal): Renamed from
11875         alpha_skip_prologue.
11876         (alpha_skip_prologue): New version that calls
11877         alpha_skip_prologue_internal.
11878         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11879         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11880         second argument from alpha_skip_prologue.
11881         (REGISTER_BYTE): Use alpha_register_byte.
11882         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11883         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11884         (FRAMELESS_FUNCTION_INVOCATION): Use
11885         generic_frameless_function_invocation_not.
11886         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11887         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11888
11889 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11890
11891         * config/mips/xm-news-mips.h: Delete file.
11892         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11893
11894         * config/m88k/xm-m88k.h: Delete file.
11895         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11896         * config/m88k/xm-delta88v4.h: Ditto.
11897         * config/m88k/xm-delta88.h: Ditto.
11898
11899         * config/alpha/xm-fbsd.h: Delete file.
11900         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11901
11902         * config/sparc/xm-sparc.h: Delete file.
11903         * Makefile.in (xm-sun4os4.h): Delete dependency.
11904         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11905         * config/sparc/xm-sun4os4.h: Ditto.
11906         * config/sparc/xm-linux.h: Ditto.
11907
11908         * config/i386/xm-windows.h: Delete file.
11909
11910 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11911
11912         * utils.c: Include <sys/param.h> for MAXPATHLEN.
11913         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11914
11915 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11916
11917         * alpha-tdep.c (alpha_call_dummy_words): New.
11918         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11919         (CALL_DUMMY_P): Define.
11920         (CALL_DUMMY_WORDS): Define.
11921         (SIZEOF_CALL_DUMMY_WORDS): Define.
11922
11923 2002-01-19  Per Bothner  <per@bothner.com>
11924
11925         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
11926         isn't NULL, which can happen with some gcj-3.x-produced code.
11927
11928 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11929
11930         * alpha-tdep.c (alpha_register_virtual_type): New function.
11931         (alpha_init_frame_pc_first): Ditto.
11932         (alpha_fix_call_dummy): Ditto.
11933         (alpha_store_struct_return): Ditto.
11934         (alpha_extract_struct_value_address): Ditto.
11935         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11936         alpha_register_virtual_type.
11937         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11938         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11939         alpha_extract_struct_value_address.
11940         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11941         (INIT_FRAME_PC): Use init_frame_pc_noop.
11942         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11943
11944 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
11945
11946         * i386gnu-nat.c: Include "i386-tdep.h".
11947         (fetch_fpregs): Simplify code dealing with uninitialized floating
11948         point states such that it doesn't require FP7_REGNUM.
11949
11950 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11951
11952         * alpha-tdep.c (frame_extra_info): New.
11953         (alpha_find_saved_regs): Make static.  Use
11954         frame->extra_info.
11955         (alpha_frame_init_saved_regs): New function.
11956         (alpha_frame_saved_pc): Use frame->extra_info.
11957         (temp_saved_regs): Don't declare as struct frame_saved_regs.
11958         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11959         (init_extra_frame_info): Rename to...
11960         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
11961         (alpha_print_extra_frame_info): New function.
11962         (alpha_frame_locals_address): Ditto.
11963         (alpha_frame_args_address): Ditto.
11964         (alpha_pop_frame): Use frame->extra_info.
11965         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11966         alpha_frame_args_address.
11967         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11968         (alpha_find_saved_regs): Remove prototype.
11969         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11970         (EXTRA_FRAME_INFO): Remove.
11971         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11972         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11973
11974 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11975
11976         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11977         (alpha_cannot_fetch_register): Ditto.
11978         (alpha_cannot_store_register): Ditto.
11979         (alpha_register_convertible): Ditto.
11980         (alpha_use_struct_convention): Ditto.
11981         * config/alpha/tm-alpha.h: Update copyright years.
11982         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11983         (INNER_THAN): Use core_addr_lessthan.
11984         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11985         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11986         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11987         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11988         (FRAME_CHAIN): Remove unnecessary cast.
11989
11990 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11991
11992         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11993         obsolete.
11994
11995 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
11996
11997         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
11998         * monitor.c, remote-array.c, remote-bug.c: Ditto.
11999         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12000         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12001         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12002         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12003         * x86-64-linux-nat.c: Ditto.
12004
12005 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12006
12007         * alpha-tdep.c (alpha_register_name): New function.
12008         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12009         (REGISTER_NAME): Define.
12010
12011 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12012
12013         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12014
12015 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12016
12017         * alpha-tdep.c: Update copyright years.
12018         (alpha_next_pc): New function.
12019         (alpha_software_single_step): Ditto.
12020         * config/alpha/tm-alpha.h: Add prototype for
12021         alpha_software_single_step.
12022
12023 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12024
12025         * alphabsd-nat.c: Update copyright years.
12026         (fill_gregset): Use regcache_collect.
12027         (fill_fpregset): Likewise.
12028         (fetch_inferior_registers): Only fetch integer registers
12029         if requested to do so.
12030         (store_inferior_registers): Only store integer registers
12031         if requested to do so.
12032
12033 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12034
12035         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12036         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12037         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12038         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12039         * config/alpha/fbsd.mh (XDEPFILES): Delete.
12040         * config/arm/linux.mh (XDEPFILES): Delete.
12041         * config/arm/nbsd.mh (XDEPFILES): Delete.
12042         * config/i386/i386dgux.mh (XDEPFILES): Delete.
12043         * config/i386/i386sol2.mh (XDEPFILES): Delete.
12044         * config/i386/i386m3.mh (XDEPFILES): Delete.
12045         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12046         * config/i386/i386gnu.mh (XDEPFILES): Delete.
12047         * config/i386/fbsd.mh (XDEPFILES): Delete.
12048         * config/i386/i386bsd.mh (XDEPFILES): Delete.
12049         * config/i386/i386sco5.mh (XDEPFILES): Delete.
12050         * config/i386/i386v4.mh (XDEPFILES): Delete.
12051         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12052         * config/i386/i386sco4.mh (XDEPFILES): Delete.
12053         * config/i386/i386aix.mh (XDEPFILES): Delete.
12054         * config/i386/go32.mh (XDEPFILES): Delete.
12055         * config/i386/cygwin.mh (XDEPFILES): Delete.
12056         * config/i386/i386lynx.mh (XDEPFILES): Delete.
12057         * config/i386/i386mach.mh (XDEPFILES): Delete.
12058         * config/i386/i386v32.mh (XDEPFILES): Delete.
12059         * config/i386/linux.mh (XDEPFILES): Delete.
12060         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12061         * config/i386/ncr3000.mh (XDEPFILES): Delete.
12062         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12063         * config/i386/i386sco.mh (XDEPFILES): Delete.
12064         * config/i386/i386v.mh (XDEPFILES): Delete.
12065         * config/i386/nbsd.mh (XDEPFILES): Delete.
12066         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12067         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12068         * config/i386/symmetry.mh (XDEPFILES): Delete.
12069         * config/i386/obsd.mh (XDEPFILES): Delete.
12070         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12071         * config/ia64/linux.mh (XDEPFILES): Delete.
12072         * config/ia64/aix.mh (XDEPFILES): Delete.
12073         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12074         * config/m68k/dpx2.mh (XDEPFILES): Delete.
12075         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12076         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12077         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12078         * config/m68k/linux.mh (XDEPFILES): Delete.
12079         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12080         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12081         * config/m68k/nbsd.mh (XDEPFILES): Delete.
12082         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12083         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12084         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12085         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12086         * config/m88k/delta88.mh (XDEPFILES): Delete.
12087         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12088         * config/m88k/m88k.mh (XDEPFILES): Delete.
12089         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12090         * config/mips/linux.mh (XDEPFILES): Delete.
12091         * config/mips/irix6.mh (XDEPFILES): Delete.
12092         * config/mips/irix5.mh (XDEPFILES): Delete.
12093         * config/mips/irix4.mh (XDEPFILES): Delete.
12094         * config/mips/irix3.mh (XDEPFILES): Delete.
12095         * config/mips/decstation.mh (XDEPFILES): Delete.
12096         * config/mips/mipsm3.mh (XDEPFILES): Delete.
12097         (NATDEPFILES): Move core-aout.o to here.
12098         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12099         * config/pa/hpux1020.mh (XDEPFILES): Delete.
12100         * config/pa/hppabsd.mh (XDEPFILES): Delete.
12101         * config/pa/hppahpux.mh (XDEPFILES): Delete.
12102         * config/pa/hpux11w.mh (XDEPFILES): Delete.
12103         * config/pa/hppaosf.mh (XDEPFILES): Delete.
12104         * config/pa/hpux11.mh (XDEPFILES): Delete.
12105         * config/powerpc/aix.mh (XDEPFILES): Delete.
12106         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12107         * config/powerpc/linux.mh (XDEPFILES): Delete.
12108         * config/romp/rtbsd.mh: Rename XDEPFILES.
12109         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12110         * config/rs6000/aix4.mh (XDEPFILES): Delete.
12111         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12112         * config/s390/s390.mh (XDEPFILES): Delete.
12113         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12114         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12115         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12116         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12117         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12118         * config/sparc/nbsd.mh (XDEPFILES): Delete.
12119         * config/sparc/linux.mh (XDEPFILES): Delete.
12120         * config/vax/vaxult.mh (XDEPFILES): Delete.
12121         * config/vax/vaxult2.mh (XDEPFILES): Delete.
12122         * Makefile.in (DEPFILES): Remove XDEPFILES.
12123
12124 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12125
12126         * utils.c (internal_verror): Fix comments, default is yes not no.
12127         Update queries to match.  Default to quit and dump core.
12128
12129 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12130
12131         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
12132         copyright.
12133         * defs.h, event-top.c, gdbcmd.h: Ditto.
12134         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12135         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12136         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12137         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12138         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12139         * mi/mi-main.c:Ditto.
12140
12141         * stack.c, symfile.c: Update copyright.
12142
12143 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12144
12145         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12146         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12147         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12148         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12149
12150 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12151
12152         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12153         * gdbserver/low-lynx.c (myattach): Likewise.
12154         * gdbserver/low-nbsd.c (myattach): Likewise.
12155         * gdbserver/low-sim.c (myattach): Likewise.
12156         * gdbserver/low-sparc.c (myattach): Likewise.
12157         * gdbserver/low-sun3.c (myattach): Likewise.
12158
12159         * gdbserver/low-linux.c (myattach): New function.
12160
12161         * gdbserver/server.c (attach_inferior): New function.
12162         (main): Handle "--attach".
12163
12164 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
12165
12166         * MAINTAINERS (language support): Daniel Jacobwitz is C++
12167         maintainer.
12168
12169 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
12170
12171         * c-typeprint.c (is_type_conversion_operator): Add additional
12172         check for non-conversion operators.
12173
12174 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12175
12176         * linux-proc.c: Add "info proc" command, a la procfs.c.
12177         (read_mapping): New function, abstract and re-use code.
12178         (linux_find_memory_regions): Use new func read_mapping.
12179         (linux_info_proc_cmd): New function, implement "info proc".
12180         (_initialize_linux_proc): Add new command "info proc".
12181
12182 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12183
12184         * symfile.c (generic_load): Use bfd_map_over_sections method
12185         instead of manipulating bfd structure members directly.
12186         (add_section_size_callback): New function, bfd sections callback
12187         used by generic_load.
12188         (load_sections_callback): New function, bfd sections callback
12189         used by generic_load.
12190
12191 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
12192
12193         [Based on work by Jim Blandy]
12194         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12195         (builtin_type_vec128): Export.
12196         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12197         types.
12198         (builtin_type_vec128): New builtin type for 128 bit vector
12199         registers.
12200         (build_gdbtypes): Initialize builtin_type_v16qi and
12201         builtin_type_v8hi. Create the vec128 register builtin type
12202         structure.
12203         (build_builtin_type_vec128): New function.
12204         (_initialize_gdbtypes): Register builtin_type_v16qi and
12205         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12206         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12207         AltiVec register to new builtin type.
12208
12209 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
12210
12211         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12212         to make_cv_type.
12213
12214 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12215
12216         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12217         CLEAN_UP_REGISTER_VALUE.
12218         * regcache.c (supply_register): Update only call.
12219
12220 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12221
12222         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12223         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12224         a29k-*-vxworks* targets as obsolete.
12225
12226 2002-01-14  Michael Snyder  <msnyder@redhat.com>
12227
12228         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12229         until we can resolve portability issues.
12230         * gregset.h: Remove references to fpxregs.
12231         * gcore.c (gcore_command): Initialize note_sec to NULL.
12232
12233 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12234
12235         * signals.c (target_signal_to_name): Rewrite.  Only use
12236         signals[].name when in bounds and non-NULL.
12237
12238 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12239
12240         From Petr Ledvina <ledvinap@kae.zcu.cz>:
12241         * signals.c (target_signal_to_name): Verify that SIG is within the
12242         bounds of the signals array.
12243
12244 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12245
12246         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12247
12248 2002-01-13  Keith Seitz  <keiths@redhat.com>
12249
12250         * stack.c (print_frame_info_base): Print the frame's pc
12251         only if when print_frame_info_listing_hook is not defined.
12252
12253 2002-01-13  Keith Seitz  <keiths@redhat.com>
12254
12255         * varobj.c (varobj_set_value): Make sure that there were no
12256         errors evaluating the object before attempting to set its
12257         value.
12258         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12259         so this offset adjustment is no longer necessary.
12260         (create_child): Don't set the error flag if the child is
12261         a CPLUS_FAKE_CHILD.
12262         (value_of_child): If value_fetch_lazy fails, return NULL
12263         so that callers will be notified that an error occurred.
12264         (c_value_of_variable): Delay check of variable's validity
12265         until later. We actually want all structs and unions to have
12266         the value "{...}".
12267         Do not return "???" for variables which could not be evaluated.
12268         This error condition must be returned to the caller so that it
12269         can get the error condition from gdb.
12270         (cplus_name_of_child): Adjust index for vptr before figuring
12271         out the name of the child.
12272         (cplus_value_of_child): If a child's (real) parent is not valid,
12273         don't even bother trying to give a value for it. Just return
12274         an error. Change all instances in this function.
12275         (cplus_type_of_child): If our parent is one of the "fake"
12276         parents, we need to get at the type of the real parent, and
12277         derive the child's true type using this information.
12278
12279 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12280
12281         From 2002-01-09 John Marshall <johnm@falch.net>:
12282         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12283         sources.redhat.com, and tweak some related URLs which had
12284         suffered from linkrot.
12285
12286 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12287
12288         From Jeff law:
12289         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12290         structures passed in registers.
12291
12292 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
12293
12294         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12295         white space which prevented compilation.  Reported by DSK
12296         <dsk@student.unsw.edu.au>.
12297
12298 2002-01-11  Michael Snyder  <msnyder@redhat.com>
12299
12300         * symfile.c (build_section_addr_info_from_section_tab):
12301         Use bfd access method instead of manipulating bfd directly.
12302         (syms_from_objfile): Ditto.
12303         (simple_overlay_update_1): Ditto.
12304         (simple_overlay_update): Ditto.
12305         (generic_load): Ditto.
12306         (overlay_unmapped_address): FIXME comment, bfd access methods.
12307         (sections_overlap): FIXME comment, bfd access methods.
12308         (pc_in_mapped_range): FIXME comment, bfd access methods.
12309         (pc_in_unmapped_range): FIXME comment, bfd access methods.
12310         (section_is_mapped): FIXME comment, bfd access methods.
12311         (section_is_overlay): FIXME comment, bfd access methods.
12312
12313         * symfile.c (generic_load): Whitespace and long line cleanups.
12314         Remove duplicate variable, change several local variables to
12315         more appropriate data types.
12316         (print_transfer_performance): Use %lu instead of %ld for ulongs.
12317
12318 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12319
12320         From Peter Schauer:
12321         * language.c (longest_local_hex_string_custom): Use phex_nz to
12322         convert NUM to a hex string.
12323
12324 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
12325
12326         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12327         the function.
12328         Update Copyright year.
12329
12330 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12331
12332         * language.c (longest_raw_hex_string): Delete unused function.
12333
12334 2002-01-11  Petr Sorfa  <petrs@caldera.com>
12335
12336         * MAINTAINERS (write-after-approval): Add myself.
12337         * dwarf2read.c (read_tag_string_type): Handling of
12338         DW_AT_byte_size.
12339         (read_tag_string_type): FORTRAN fix to prevent propagation of
12340         first string size.
12341         (set_cu_language): Handling of DW_LANG_Fortran95
12342
12343 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
12344
12345         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12346         GETPID(inferior_ptid).
12347         (store_inferior_registers): Likewise.
12348
12349 2002-01-10  Jason Merrill  <jason@redhat.com>
12350
12351         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12352         Fix DW_OP_minus.
12353
12354 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
12355
12356         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12357         and bfd/elf32-sh-nbsd.c.
12358
12359 2002-01-10  Michael Snyder  <msnyder@redhat.com>
12360
12361         * NEWS: Mention --pid and corefile/proc-id behavior change.
12362
12363         * Makefile.in: Add rules for gcore.o and linux-proc.o.
12364         * gcore.c: Include cli/cli-decode.h instead of command.h.
12365
12366         * main.c (captured_main): Add new command line option "--pid".
12367         If the second command line argument (following the symbol-file)
12368         begins with a digit, try to attach to it before trying to open
12369         it as a corefile.
12370         (print_gdb_help): Document the "--pid" argument.
12371
12372 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
12373
12374         * completer.c (command_completer): New function.
12375
12376         * completer.h <command_completer>: Add prototype.
12377
12378         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12379         completer for the "help" command.
12380
12381 2002-01-09  Jason Merrill  <jason@redhat.com>
12382
12383         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12384
12385 2002-01-09  Michael Snyder  <msnyder@redhat.com>
12386
12387         * i386-linux-nat.c (fill_fpxregset): Make global.
12388         (store_fpxregset): Ditto.
12389
12390         * gregset.h (gdb_fpxregset_t): Define.
12391         (supply_fpxregset): Prototype.
12392         (fill_fpxregset): Prototype.
12393
12394         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12395
12396 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12397
12398         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12399         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12400         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12401
12402 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
12403
12404         * MAINTAINERS: Update target maintainer rules so that any
12405         Maintainer can approve a tested patch for a maintenance-only
12406         target.
12407
12408 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12409
12410         * MAINTAINERS (write-after-approval): Add myself.
12411
12412         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12413         IN_SIGTRAMP.
12414
12415 2002-01-08  Michael Snyder  <msnyder@redhat.com>
12416
12417         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12418         real name of the executable, rather than the /proc name.
12419
12420 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12421
12422         Implement a "generate-core-file" command in gdb, save target state.
12423         * gcore.c: New file.  Implement new command 'generate-core-file'.
12424         Save a corefile image of the current state of the inferior.
12425         * linux-proc.c: Add linux-specific code for saving corefiles.
12426         * target.h (struct target_ops): Add new target vectors for saving
12427         corefiles; to_find_memory_regions and to_make_corefile_notes.
12428         (target_find_memory_regions): New macro.
12429         (target_make_corefile_notes): New macro.
12430         * target.c (update_current_target): Inherit new target methods.
12431         (dummy_find_memory_regions): New place-holder method.
12432         (dummy_make_corefile_notes): New place-holder method.
12433         (init_dummy_target): Initialize new dummy target vectors.
12434         * exec.c (exec_set_find_memory_regions): New function.
12435         Allow the exec_ops vector for memory regions to be taken over.
12436         (exec_make_note_section): New function, target vector method.
12437         * defs.h (exec_set_find_memory_regions): Export prototype.
12438         * procfs.c (proc_find_memory_regions): New function, corefile method.
12439         (procfs_make_note_section): New function, corefile method.
12440         (init_procfs_ops): Set new target vector pointers.
12441         (find_memory_regions_callback): New function.
12442         (procfs_do_thread_registers): New function.
12443         (procfs_corefile_thread_callback): New function.
12444         * sol-thread.c (sol_find_memory_regions): New function.
12445         (sol_make_note_section): New function.
12446         (init_sol_thread_ops): Initialize new target vectors.
12447         * inftarg.c (inftarg_set_find_memory_regions): New function.
12448         Allow to_find_memory_regions vector to be taken over.
12449         (inftarg_set_make_corefile_notes): New function.
12450         Allow to_make_corefile_notes vector to be taken over.
12451         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12452         interface layer if not target_has_execution (may be a corefile).
12453         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12454         * config/sparc/sun4sol2.mh: Ditto.
12455         * config/alpha/alpha-linux.mh: Ditto.
12456         * config/arm/linux.mh: Ditto.
12457         * config/i386/x86-64linux.mh: Ditto.
12458         * config/ia64/linux.mh: Ditto.
12459         * config/m68k/linux.mh: Ditto.
12460         * config/mips/linux.mh: Ditto.
12461         * config/powerpc/linux.mh: Ditto.
12462         * config/sparc/linux.mh: Ditto.
12463
12464 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12465
12466         * arm-linux-nat.c: Remove references to regcache.c internal data
12467         (registers[] and register_valid[]).
12468
12469 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12470
12471         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12472         so that attaching to a pid will automatically read the process's
12473         symbol file and shlibs.
12474         * Makefile.in: Add rule for linux-proc.o.
12475         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12476         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12477         * config/arm/linux.mh: Ditto.
12478         * config/i386/linux.mh: Ditto.
12479         * config/i386/x86-64linux.mh: Ditto.
12480         * config/ia64/linux.mh: Ditto.
12481         * config/m68k/linux.mh: Ditto.
12482         * config/mips/linux.mh: Ditto.
12483         * config/powerpc/linux.mh: Ditto.
12484         * config/sparc/linux.mh: Ditto.
12485
12486 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12487
12488         * win32-nat.c: Add i386-tdep.h dependency.
12489
12490 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12491
12492         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12493         instead of bfd_get_arch_size.  Don't bail out just because
12494         there's no exec_bfd.
12495
12496         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12497         * p-valprint.c (pascal_object_print_value): Ditto.
12498         * somread.c (som_symtab_read): Ditto.
12499         * symfile.c (simple_free_overlay_region_table): Ditto.
12500         * valops.c (value_assign): Ditto.
12501
12502         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12503         use tilde_expand and strerror for opening save-tracepoints file.
12504
12505         * thread-db.c (thread_db_new_objfile): Indendation fix.
12506
12507         * infptrace.c (GDB_MAX_ALLOCA): New define.
12508         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12509         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12510         can be overridden with whatever value is appropriate to the host).
12511         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12512         alloca to allocate potentially large buffer.
12513         * rs6000-nat.c (child_xfer_memory): Ditto.
12514         * symm-nat.c (child_xfer_memory): Ditto.
12515         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12516
12517 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12518
12519         From Nick Clifton  <nickc@redhat.com>
12520         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12521
12522 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12523
12524         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12525         Don't use exec_bfd if it's NULL.
12526
12527 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12528
12529         * valops.c (value_arg_coerce): Fix formatting.
12530
12531 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12532
12533         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12534         * gnu-nat.c: Ditto.
12535
12536 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12537
12538         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12539         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12540         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12541         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12542         z8k-coff have not been multi-arched.  Update z8k-coff build
12543         status.
12544
12545 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12546
12547         * MAINTAINERS: Mark a29k target as obsolete.
12548         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12549         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12550         comments.
12551         * NEWS: Note that a29k targets are obsolete.
12552         * a29k-tdep.c: Mark as obsolete.
12553         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12554         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12555         a29k-*-vxworks* targets as obsolete.
12556         * remote-adapt.c: Obsolete.
12557         * remote-eb.c: Obsolete.
12558         * remote-mm.c: Obsolete.
12559         * remote-udi.c: Obsolete.
12560         * config/a29k/a29k-udi.mt: Obsolete.
12561         * config/a29k/a29k.mt: Obsolete.
12562         * config/a29k/tm-a29k.h: Obsolete.
12563         * config/a29k/tm-vx29k.h: Obsolete.
12564         * config/a29k/vx29k.mt: Obsolete.
12565
12566 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12567
12568         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12569         with BFD_ENDIAN_BIG.
12570
12571 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12572
12573         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12574         * configure, config.in: Re-generate.
12575         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12576         * defs.h: Do not include <endian.h>.
12577
12578 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12579
12580         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12581         * config.in: Regenerate.
12582         * configure.in: Update copyright years.
12583         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12584         * configure: Regenerate.
12585         * i386bsd-nat.c: Update copyright years.
12586         (fill_gregset): Use regcache_collect.
12587         (fetch_inferior_registers): Only fetch integer registers
12588         if requested to do so.  Add support for XMM registers
12589         using PT_GETXMMREGS.
12590         (store_inferior_registers): Only store integer registers
12591         if requested to do so.  Add support for XMM registers
12592         using PT_SETXMMREGS.
12593         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12594         (store_inferior_registers): Remove.
12595         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12596         (fetch_elfcore_registers): New function.
12597         (i386nbsd_elfcore_fns): New.
12598         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12599         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12600         i386bsd-nat.o.
12601         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12602         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12603         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12604         * config/i386/tm-nbsd.h: Update copyright years.
12605         (HAVE_SSE_REGS): Define.
12606         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12607         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12608         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12609         (SIGCONTEXT_PC_OFFSET): Remove.
12610         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12611
12612 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12613
12614         * configure.tgt: Remove powerpc-*-macos* target.
12615         * config/m68k/xm-mpw.h: Delete file.
12616         * config/xm-mpw.h: Delete file.
12617         * ser-mac.c: Delete file.
12618         * mpw-make.sed: Delete file.
12619         * mpw-config.in: Delete file.
12620         * mac-xdep.c: Delete file.
12621         * mac-gdb.r: Delete file.
12622         * mac-defs.h: Delete file.
12623         * mac-nat.c: Delete file.
12624         * config/powerpc/macos.mh: Delete file.
12625         * config/powerpc/macos.mt: Delete file.
12626         * config/powerpc/nm-macos.h: Delete file.
12627         * config/powerpc/tm-macos.h: Delete file.
12628         * source.c (openp, open_source_file): Remove obsolete code.
12629         * top.c (gdb_readline): Ditto.
12630         * utils.c (query): Ditto.
12631         * event-top.c (display_gdb_prompt): Ditto.
12632         * Makefile.in (ser-mac.o): Delete obsolete target.
12633         * NEWS: Update.
12634
12635 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12636
12637         * defs.h (BIG_ENDIAN): Delete macro definition.
12638         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12639         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12640         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12641         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12642         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12643         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12644         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12645         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12646         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12647         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12648         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12649         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12650         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12651         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12652         * gdbarch.c: Re-generate.
12653
12654 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12655
12656         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12657         for core files.
12658
12659 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12660
12661         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12662
12663 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12664
12665         * value.h (value_ptr): Delete typedef.
12666
12667 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12668
12669         * i386nbsd-nat.c: Update copyright years.
12670         Include i386-tdep.h.
12671
12672 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12673
12674         * stabsread.c: Update copyright years.
12675
12676         From Debashis Mahata <debashis.mahata@wipro.com>:
12677         (read_struct_fields): Deal with Sun C compiler erroneous stab
12678         output for structs and unions.
12679         Fix PR gdb/269.
12680
12681 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12682
12683         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12684         prototype.
12685
12686 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12687
12688         * cp-abi.c: Fix whitespace.
12689         (baseclass_offset): New wrapper function.
12690         * cp-abi.h (baseclass_offset): Add prototype.
12691         (struct cp_abi_ops): Add baseclass_offset pointer.
12692
12693         * valops.c (vb_match): Move to...
12694         * gnu-v2-abi.c (vb_match): here.
12695         * valops.c (baseclass_offset): Move to...
12696         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12697
12698         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12699
12700         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12701         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12702         * hpacc-abi.c (init_hpacc_ops): Likewise.
12703
12704 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12705
12706         * valops.c (find_overload_match): Accept obj as a
12707         reference parameter.  Update it before returning.
12708         * value.h (find_overload_match): Update prototype.
12709         * eval.c (evaluate_subexp_standard): Pass object to
12710         find_overload_match by reference.
12711
12712 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12713
12714         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12715         register attribute from value declarations.
12716         * valops.c: Ditto.
12717         * value.h: Ditto.
12718         * scm-lang.c (scm_lookup_name): Ditto.
12719
12720 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12721
12722         Abstract the functionality of iterating over mapped memory
12723         regions into a general purpose iterator function.
12724         * procfs.c (iterate_over_mappings): New function, general purpose
12725         iterator for memory sections.
12726         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12727         (solib_mappings_callback): New function, callback for above.
12728         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12729         (info_mappings_callback): New function, callback for above.
12730
12731         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12732
12733 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12734
12735         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12736         * i386-tdep.c: Include "elf-bfd.h".
12737         (process_note_abi_tag_sections): New function.
12738         (i386_gdbarch_init): Add code to recognize various OS/ABI
12739         combinations.
12740
12741         * maint.c (_initialize_maint_cmds): Add missing \ in
12742         string-literal.
12743
12744 For older changes see ChangeLog-2001
12745 \f
12746 Local Variables:
12747 mode: change-log
12748 left-margin: 8
12749 fill-column: 74
12750 version-control: never
12751 End: