2002-11-09 Klee Dienes <kdienes@apple.com>
[external/binutils.git] / gdb / ChangeLog
1 2002-11-09  Klee Dienes  <kdienes@apple.com>
2
3         * i387-tdep.c (i387_supply_register): When called with NULL as a
4         buffer, mark the register as not provided (to mirror the behavior
5         of supply_register).
6         (i387_supply_fxsave): Ditto.
7         (i387_supply_fsave): Ditto (inherits the behavior from
8         i387_supply_register).
9
10 2002-11-09  Klee Dienes  <kdienes@apple.com>
11
12         * blockframe.c (sigtramp_saved_pc): Use
13         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
14         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
15         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
16         
17 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
18
19         * frame.c (get_prev_frame): Test prev_p to identify a previously
20         unwound frame.  Initialize prev_p.
21         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
22         comment.
23
24 2002-11-09  Andrew Cagney  <ac131313@redhat.com>
25
26         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
27         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
28         more comments.  Zap dead code.
29
30 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
31
32         * infcmd.c (print_vector_info, print_float_info): Move code that
33         checks whether the target has any registers and whether there is a
34         selected frame up, such that it is also used if a target provides
35         multi-arch definitions of these functions.
36
37 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
38
39         * Makefile.in (DESTDIR): Define.
40         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
41         prefix.
42
43         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
44         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
45
46 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
47
48         * i386-linux-tdep.c: Include "reggroups.h".
49         (i386_linux_register_reggroup_p): New function.
50         (i386_linux_init_abi): Set register_reggroup_p to
51         i386_linux_register_reggroup_p.
52         * i386-tdep.h (i386_register_reggroup_p): Declare.
53         * i386-tdep.c: Include "reggroups.h".
54         (i386_init_reggroups): New function.
55         (i386_add_reggroups): New function.
56         (i386_register_reggroup_p): New function.
57         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
58         (_initialize_i386_tdep): Call i386_init_reggroups.
59         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
60         specific reggroups.
61
62 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
63
64         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
65         request that's available in *BSD.
66
67         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
68
69         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
70         FDOFF_REGNUM.
71
72 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
73
74         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
75         * dummy-frame.c (find_dummy_frame): Rename
76         generic_find_dummy_frame, make static.  Return the dummy frame
77         instead of the regcache.
78         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
79         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
80         (dummy_frame_register_unwind): Rename
81         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
82         * dummy-frame.h (dummy_frame_register_unwind): Rename
83         generic_call_dummy_register_unwind.
84
85 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
86
87         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
88         except the inclusion of "i386/tm-i386.h", to...
89         * config/i386/nm-i386v42mp.h: ...here.
90         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
91
92 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
93
94         * Makefile.in (frame.o): Update dependencies.
95         * blockframe.c (current_frame, frame_obstack_alloc)
96         (frame_saved_regs_zalloc, get_current_frame)
97         (set_current_frame, create_new_frame)
98         (set_unwind_by_pc, get_next_frame)
99         (flush_cached_frames, reinit_frame_cache)
100         (frame_saved_regs_register_unwind)
101         (deprecated_generic_get_saved_register)
102         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
103         (_initialize_blockframe): Move frame code from here...
104         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
105         "annotate.h" and "dummy-frame.h".
106         (_initialize_frame): New function.
107
108 2002-11-08  Jim Blandy  <jimb@redhat.com>
109
110         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
111         when we finish a function a context.
112         * buildsym.h (outermost_context_p): New macro.
113         (Bug analyzed by David Edelsohn.)
114
115 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
116
117         * blockframe.c: Include "dummy-frame.h".
118         (struct dummy_frame, dummy_frame_stack)
119         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
120         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
121         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
122         (generic_save_call_dummy_addr, generic_pop_current_frame)
123         (generic_pop_dummy_frame, generic_fix_call_dummy)
124         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
125         dummy frame code from here...
126         * dummy-frame.c: ...to here.  New file.
127         * dummy-frame.h: New file.
128         (generic_call_dummy_register_unwind): Declare.
129         (generic_find_dummy_frame): Declare.
130         * Makefile.in (SFILES): Add dummy-frame.c.
131         (dummy-frame.o): Specify dependencies.
132         (dummy_frame_h): Define.
133         (COMMON_OBS): Add dummy-frame.o.
134         (blockframe.o): Update dependencies.
135
136 2002-11-08  Jim Blandy  <jimb@redhat.com>
137
138         * dwarf2read.c (read_func_scope): Restore local_symbols and
139         param_symbols after we finish the function context.  (Based on a
140         patch from David Edelsohn.)
141
142 2002-11-08  David Carlton  <carlton@math.stanford.edu>
143
144         * linespec.c (symbol_found): New function.
145         (minsym_found): New function.
146         (decode_line_1): Separate out some code into separate functions.
147
148 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
149
150         * i386-tdep.c (i386_frameless_signal_p): Make non static for
151         the benefit of the interix target.
152         * i386-tdep.h (i386_frameless_signal_p): Declare.
153
154 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
155
156         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
157         declaration that snuck in from change below.
158
159 2002-11-06  Andrew Cagney  <cagney@redhat.com>
160
161         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
162         all callers.
163         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
164         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
165         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
166         (i386_mxcsr_regnum_p): new function.  Use instead of
167         MXCSR_REGNUM_P.
168         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
169         (i386_sse_regnum_p): Declare.
170         (i386_mxcsr_regnum_p): Declare.
171         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
172         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
173         (IS_FP_REGNUM): Update definition.
174         (IS_FPU_CTRL_REGNUM): Update definition..
175         (IS_SSE_REGNUM): Update definition..
176         * i386v-nat.c (register_u_addr): Update.
177         * go32-nat.c (fetch_register): Update.
178         (store_register): Update.
179
180 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
181
182         Preparation work to convert the hppa targets to multiarch partial.
183
184         * hppa-tdep.c: Add new functions replacing macro bodies from
185         config/pa/tm-hppa.h. These function will be used to initialize
186         the gdbarch structure. Import some comments from tm-hppa.h,
187         and place them where appropriate, to avoid loosing them when
188         we cleanup this file.
189         (hppa_reg_struct_has_addr): New function.
190         (hppa_inner_than): New function.
191         (hppa_stack_align): New function.
192         (hppa_pc_requires_run_before_use): New function.
193         (hppa_instruction_nullified): New function.
194         (hppa_register_byte): New function.
195         (hppa_register_virtual_type): New function.
196         (hppa_store_struct_return): New function.
197         (hppa_cannot_store_register): New function.
198         (hppa_frame_args_address): New function.
199         (hppa_frame_locals_address): New function.
200         (hppa_smash_text_address): New function.
201         (hppa_coerce_float_to_double): New function. Requires the inclusion
202         of "language.h".
203
204         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
205
206         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
207         gdbarch-eligible macro to a call to the new associated function
208         created in hppa-tdep.c.
209         (INNER_THAN): Likewise.
210         (STACK_ALIGN): Likewise.
211         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
212         (INSTRUCTION_NULLIFIED): Likewise.
213         (REGISTER_BYTE): Likewise.
214         (REGISTER_VIRTUAL_TYPE): Likewise.
215         (STORE_STRUCT_RETURN): Likewise.
216         (CANNOT_STORE_REGISTER): Likewise.
217         (FRAME_ARGS_ADDRESS): Likewise.
218         (FRAME_LOCALS_ADDRESS): Likewise.
219         (SMASH_TEXT_ADDRESS): Likewise.
220         (COERCE_FLOAT_TO_DOUBLE): Likewise.
221         (ABOUT_TO_RETURN): Delete, as no longer used.
222
223 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
224
225         * printcmd.c (disassemble_command): Remove obsolete function.
226         (_initialize_printcmd): Do not create disassemble command here.
227         * cli/cli-cmds.c (disassemble_command): New function.  Implements
228         disassemble command.
229         (init_cli_cmds): Create disassemble command here instead.
230
231 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
232
233         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
234
235 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
236
237         * regcache.h (regcache_cooked_read_using_offset_hack)
238         (regcache_cooked_write_using_offset_hack): Delete declarations.
239         (register_changed): Delete declaration.
240         * regcache.c (regcache_cooked_read_using_offset_hack)
241         (regcache_cooked_write_using_offset_hack): Delete functions.
242         (cooked_xfer_using_offset_hack): Delete function.
243         (register_changed): Delete function.
244
245 2002-11-07  Jim Blandy  <jimb@redhat.com>
246
247         * macroscope.c: #include "complaints.h".
248         (sal_macro_scope): Cope with filenames that appear in the symtabs,
249         but not in the macro table.
250         * Makefile.in (macroscope.o): Record dependency.
251
252 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
253
254         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
255
256 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
257
258         * regcache.c (deprecated_registers_fetched): Update.
259         * regcache.h (deprecated_registers_fetched): Rename
260         registers_fetched.
261         * remote-vxsparc.c (vx_read_register): Update.
262         * remote-vxmips.c (vx_read_register): Update.
263         * remote-vx68.c (vx_read_register): Update.
264         * irix5-nat.c (fetch_core_registers): Update.
265         * mipsm3-nat.c (fetch_inferior_registers): Update.
266         * sun3-nat.c (fetch_inferior_registers): Update.
267         * symm-nat.c (fetch_inferior_registers): Update.
268         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
269         (fetch_core_registers): Update.
270         (fetch_kcore_registers): Update.
271         * mips-nat.c (fetch_inferior_registers): Update.
272         * corelow.c (get_core_registers): Update.
273         * a68v-nat.c (fetch_inferior_registers): Update.
274
275 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
276
277         Put in place the framework necessary for multiarching the hppa targets.
278         * hppa-tdep.c (hppa_gdbarch_init): New function.
279         (hppa_dump_tdep): New function.
280         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
281         tdep structure dumper.
282         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
283         until the multi-arching conversion has partially been completed.
284
285 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
286
287         * valops.c (value_assign): Merge lval_register case into
288         lval_reg_frame_relative.  Use frame_register and
289         regcache_cooked_write instead of get_saved_register and
290         write_register_bytes.  After flushing the register cache, try to
291         re-select the selected frame.
292
293 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
294
295         * regcache.h (deprecated_register_valid): Rename register_valid.
296         * regcache.c: Update.
297         * ia64-aix-nat.c: Update.
298         * i386gnu-nat.c: Update.
299         * alpha-nat.c: Update.
300         * sparc-nat.c: Update.
301         * lynx-nat.c: Update.
302         * remote-mips.c: Update.
303
304 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
305
306         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
307         to end of file, to be more consistent with the pratice followed
308         by other targets.
309
310 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
311
312         * infcmd.c: Include "reggroups.h" and <ctype.h>.
313         (print_float_info): Print registers in float_reggroup.
314         (print_vector_info): Print registers in vector_reggroup.
315         (default_print_registers_info): When all, print registers in
316         all_reggroup.  Otherwize, print registers in general_reggroup.
317         (registers_info): Rewrite.  Add support for register groups.
318         Eliminate a goto.
319
320 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
321
322         * symtab.c (methods_info): Delete. It has been ifdeffed out for
323         ages.
324         (symtab_symbol_info): Remove eons old ifdeffed out code.
325         (_initialize_symtab): Remove prehistoric disabled 'info methods'
326         command.
327
328 2002-11-06  Theodore A. Roth  <troth@openavr.org>
329
330         * c-exp.y: Add missing semi-colons.
331         * f-exp.y: Add missing semi-colons.
332         * m2-exp.y: Add missing semi-colons.
333         * p-exp.y: Add missing semi-colons.
334         Add empty action to start rule to avoid a type clash error when
335         building with bison >= 1.50.
336
337 2002-11-06  Jim Blandy  <jimb@redhat.com>
338
339         * macrotab.h (struct macro_source_file): Doc fix.
340
341 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
342
343         * varobj.c (child_exists, cplus_number_of_children): Change
344         STREQ macro references to strcmp.
345         (cplus_name_of_child): Change code to handle the fact that
346         fields are not necessarily contiguous with regards to their 
347         access control. This is a fix for PR gdb/792.
348
349 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
350
351         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
352         * gdbarch.h, gdbarch.c: Regnerate.
353         * frame.h (frame_register): Declare.
354         * frame.c (frame_register): New function.
355         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
356         GET_SAVED_REGISTER, otherwize call
357         generic_unwind_get_saved_register.
358         (frame_register_read): Use frame_register instead of
359         get_saved_register.
360
361 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
362         
363         From Jim Ingham  <jingham@apple.com>:
364         * event-top.c (gdb_disable_readline): New function.
365         (_initialize_event_loop): Move comment.
366
367 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
368
369         * event-loop.c (start_event_loop): Add comment.
370         Update copyright.
371
372 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
373
374         * infcmd.c (default_print_registers_info): Do not call
375         PRINT_REGISTER_HOOK.
376
377 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
378
379         * sparc-tdep.c (sparc_print_register_hook): Make static.
380         (sparc_print_registers_info): New function.
381         (sparc_do_registers_info): New function.
382         (sparclet_print_registers_info): New function.
383         (sparclet_do_registers_info): New function.
384         (do_sparc_print_registers_info): New function.
385         (sparc_print_registers): New static function, clone of infcmd.c's
386         default_print_registers_info.
387         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
388         (sparclet_do_registers_info): Declare.
389         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
390         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
391         Re-define.
392         (sparc_do_registers_info): Declare.
393         (PRINT_REGISTER_HOOK): Delete macro.
394         (sparc_print_register_hook): Delete declaration.
395
396 2002-11-05  David Carlton  <carlton@math.stanford.edu>
397
398         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
399         functions.
400         (lookup_symbol_aux_local): New function.
401         (lookup_symbol_aux_symtabs): New function.
402         (lookup_symbol_aux_psymtabs): New function.
403
404 2002-11-05  David Carlton  <carlton@math.stanford.edu>
405
406         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
407         previous values of 'objfile' and 'block'.
408
409 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
410
411         * values.c (value_change_enclosing_type): Set 
412         enclosing_type field correctly also for the case where 
413         more memory needs to be allocated.
414
415 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
416
417         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
418         of puts_filtered.
419
420         * i387-tdep.c (i387_print_float_info): Replace calls to
421         register_read and deprecated_read_register_gen with calls to
422         frame_register_read, and make the necessary adjustments to the
423         surrounding code.
424
425 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
426
427         * gdbarch.sh (register_reggroup_p): Allow default value.
428         * gdbarch.h, gdbarch.c: Regenerate.
429
430 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
431
432         * regcache.h: Add coment indicating replacements for deprecated
433         functions.
434
435 2002-11-02  Andrew Cagney  <cagney@redhat.com>
436
437         * reggroups.h, reggroups.c: New files.
438         * regcache.c: Include "reggroups.h".
439         (enum regcache_dump_what): Add `regcache_dump_groups'.
440         (regcache_dump): Contract size of the "Type" column.  When
441         specified, dump the register's groups.
442         (maintenance_print_register_groups): New function.
443         (_initialize_regcache): Add command `maint print register-groups'.
444         * Makefile.in (COMMON_OBS): Add reggroups.o
445         (SFILES): Add reggroups.c.
446         (reggroups_h): Define.
447         (regcache.o, gdbarch.o): Update dependencies.
448         (reggroups.o): Specify dependencies.
449         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
450         Add opaque declaration for `struct reggroup' in generated .h file.
451         Include "reggroups.h" in generated .c file.
452         gdbarch.h, gdbarch.c: Re-generate.
453
454 2002-11-02  Andrew Cagney  <cagney@redhat.com>
455
456         * regcache.h (deprecated_read_register_gen): Rename
457         read_register_gen.
458         (deprecated_write_register_gen): Rename write_register_gen.
459         * i387-tdep.c: Update.
460         * x86-64-linux-nat.c: Update
461         * wince.c: Update.
462         * thread-db.c: Update.
463         * win32-nat.c: Update.
464         * mips-tdep.c: Update.
465         * d10v-tdep.c: Update.
466         * cris-tdep.c: Update.
467         * remote-sim.c: Update.
468         * remote-rdi.c: Update.
469         * remote-rdp.c: Update.
470         * frame.c: Update.
471         * target.c: Update.
472         * blockframe.c: Update.
473         * x86-64-tdep.c: Update.
474         * xstormy16-tdep.c: Update.
475         * sh-tdep.c: Update.
476         * s390-tdep.c: Update.
477         * rs6000-tdep.c: Update.
478         * sparc-tdep.c: Update.
479         * i386-tdep.c: Update.
480         * dwarf2cfi.c: Update.
481         * regcache.c: Update.
482
483 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
484
485         New interix-specific files:
486         * config/i386/nm-interix.h: New file.
487         * config/i386/interix.mh: New file.
488         * config/i386/interix.mt: New file.
489         * i386-interix-nat.c: New file.
490         * i386-interix-tdep.c: New file.
491
492 2002-11-01  Andrew Cagney  <cagney@redhat.com>
493
494         * frame.h (deprecated_generic_get_saved_register): Rename
495         generic_get_saved_register.
496         * blockframe.c (deprecated_generic_get_saved_register): Update.
497         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
498         (xstormy16_frame_saved_register): Update.
499         * sh-tdep.c (sh_gdbarch_init): Update.
500         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
501         * ia64-tdep.c (ia64_get_saved_register): Update.
502         * cris-tdep.c (cris_gdbarch_init): Update.
503         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
504         * arm-tdep.c (arm_gdbarch_init): Update.
505
506 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
507
508         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
509
510 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
511
512         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
513         trampolines in sigaction.
514
515 2002-10-31  Andrew Cagney  <cagney@redhat.com>
516
517         * h8300-tdep.c: Include "gdb_assert.h".
518         (h8300_print_register): Add gdbarch, file and frame parameters.
519         Use frame_read_unsigned_register to read the register's value.
520         Use fprintf_filtered to display output.
521         (h8300_print_registers_info): Replace h8300_do_registers_info.
522         (h8300_gdbarch_init): Set print_registers_info.
523
524 2002-10-31  Andrew Cagney  <cagney@redhat.com>
525
526         * frame.c (frame_read_unsigned_register): New function.
527         (frame_read_signed_register): New function.
528         * frame.h (frame_read_unsigned_register): Declare.
529         (frame_read_signed_register): Declare.
530
531 2002-10-31  Andrew Cagney  <cagney@redhat.com>
532
533         * h8500-tdep.c (h8500_print_registers_info): New static function,
534         clone of infcmd.c's default_print_registers_info.
535         (h8500_do_registers_info): New funtion.
536         (h8500_print_register_hook): Rename print_register_hook, make
537         static.
538
539         * config/h8500/tm-h8500.h: Update copyright.
540         (DEPRECATED_DO_REGISTERS_INFO): Define.
541         (h8500_do_registers_info: Declare.
542         (PRINT_REGISTER_HOOK): Delete macro.
543         (print_register_hook): Delete function.
544
545 2002-10-31  Andrew Cagney  <cagney@redhat.com>
546
547         * z8k-tdep.c (z8k_print_register_hook): Make static.
548         (z8k_print_registers_info): New static function, clone of
549         infcmd.c's default_print_registers_info.
550         (z8k_do_registers_info): New function.  Wrap
551         z8k_print_registers_info.
552         * config/z8k/tm-z8k.h: Update copyright.
553         (PRINT_REGISTER_HOOK): Delete macro.
554         (z8k_print_register_hook): Delete declaration.
555         (DEPRECATED_DO_REGISTERS_INFO): Define.
556         (z8k_do_registers_info): Declare.
557
558 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
559
560         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
561         as this is already provided by value.h, and was actually causing
562         a compilation error because of a conflict in parameter type
563         declaration due to a missing const keyword.
564         (low_text_segment_addres): Fix a compilation warning.
565
566 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
567
568         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
569         registers without a name.
570         (mips_linux_cannot_store_register): Don't store registers without
571         a name.
572
573 2002-10-28  David Carlton  <carlton@math.stanford.edu>
574
575         * symtab.c (find_addr_symbol): Delete.  (It was already commented
576         out.)
577         * symtab.h: Delete prototype for find_addr_symbol.
578
579 2002-10-26  Andrew Cagney  <cagney@redhat.com>
580
581         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
582         DO_REGISTERS_INFO.
583         gdbarch.h, gdbarch.c: Re-generate.
584         * infcmd.c (default_print_registers_info): Update reference.
585         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
586         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
587         * sh-tdep.c (sh_gdbarch_init): Ditto.
588         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
589         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
590
591 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
592
593         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
594         cfi_init_extra_frame_info.
595         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
596         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
597
598         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
599         target where necessary.  Add more comments and remove the ones
600         that don't provide any useful information.
601
602         * i386-tdep.c (i386_frame_saved_pc): Replace call to
603         deprecated_read_register_dummy with
604         frame_unwind_unsigned_register.
605
606         * i386-tdep.c (i386_extract_struct_value_address): Use
607         regcache_raw_read_unsigned instead of
608         regcache_cooked_read_unsigned since we know that the register
609         we're reading isn't a pseudo register.  Rename variable 'val' into
610         the more descriptive 'addr'.
611
612         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
613         (x86_64_push_return_address): Add comment.
614         (x86_64_pop_frame): Make static.
615         (examine_argument): Clarify comment.
616         (x86_64_skip_prologue): Make prolog_expact variable static.
617
618         * dwarf2cfi.c: Fix some formatting problems.
619         (context_cpy, read_encoded_pointer): Clarify comments.
620
621         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
622         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
623         i386 target back into x86_64_gdbarch_init.  Add some comments and
624         remove meaningless ones.
625
626 2002-10-25  Andrew Cagney  <cagney@redhat.com>
627
628         * complaints.h (struct deprecated_complaint): Rename `struct
629         complaint'.
630         * complaints.c (complain): Update.
631         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
632         incorrect comment indicating that "symfile.h" was being included
633         for the `struct complaint' definition.
634         * remote-vx.c: Update.
635         * objc-lang.c: Update.
636         * xcoffread.c: Update.
637         * hpread.c: Update.
638         * mdebugread.c: Update.
639         * stabsread.c: Update.
640         * dwarf2read.c: Update.
641         * dwarfread.c: Update.
642         * elfread.c: Update.
643         * coffread.c: Update.
644         * stabsread.h: Update.
645         * dbxread.c: Update.
646         * buildsym.c: Update.
647         * gdbtypes.c: Update.
648         * macrotab.c: Update.
649
650 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
651
652         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
653         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
654         (x86_64_init_abi): ...new function.
655
656         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
657         * i386v-nat.c: Include "i386-tdep.h".
658
659 2002-10-25  Andrew Cagney  <cagney@redhat.com>
660
661         * gdbtypes.c (address_space_name_to_int): Update.
662         (address_space_int_to_name): Update.
663         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
664         multi-arch predicate.
665         (address_class_name_to_type_flags): Ditto.
666         * gdbarch.h, gdbarch.c: Re-generate.
667         
668         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
669
670 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
671
672         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
673
674 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
675
676         * symtab.h (INIT_SAL): Delete macro.
677         (init_sal): Export.
678         * symtab.c (init_sal): New function.
679
680         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
681         to init_sal function call.
682         (find_sal_from_funcs_and_line): Ditto.
683         (all_sals_for_line): Ditto. 
684         * breakpoint.c (create_internal_breakpoint): Ditto. 
685         (create_fork_vfork_event_catchpoint): Ditto. 
686         (create_exec_event_catchpoint): Ditto. 
687         (parse_breakpoint_sals): Ditto. 
688         (watch_command_1): Ditto. 
689         (handle_gnu_4_16_catch_command): Ditto.
690         (clear_command): Ditto. 
691         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
692         * infcmd.c (run_stack_dummy): Ditto. 
693         * infrun.c (process_event_stop_test): Ditto.
694         (check_sigtramp2): Ditto.
695         (step_over_function): Ditto. 
696         * linespec.c (decode_line_2): Ditto. 
697         (decode_line_1): Ditto. 
698         * source.c (line_info): Ditto. 
699         * symtab.c (find_pc_sect_line): Ditto.
700
701 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
702
703         * dwarf2cfi.c (struct context)
704         (struct context_reg): Moved to dwarf2cfi.h
705         (context_alloc, frame_state_alloc, context_cpy):
706         Made extern instead of static, removed prototypes.
707         * dwarf2cfi.h (struct context)
708         (struct context_reg): New, moved from dwarf2cfi.c
709         (context_alloc, frame_state_alloc, context_cpy):
710         New prototypes.
711         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
712         Changed from static to extern.
713         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
714         (LINUX_SIGCONTEXT_FP_OFFSET)
715         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
716         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
717         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
718         * x86-64-tdep.c (x86_64_gdbarch_init): Several
719         set_gdbarch_*() calls now use x86-64 specific functions 
720         instead of DWARF2 CFI ones.
721         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
722         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
723         (x86_64_init_extra_frame_info): New prototypes.
724         
725 2002-10-23  David Carlton  <carlton@math.stanford.edu>
726
727         * linespec.c: #include "parser-defs.h".
728         Delete prototype for find_template_name_end.
729         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
730
731 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
732
733         * NEWS: add recent mi fixes.
734         * varobj.c (struct varobj): Add new "updated" flag.
735         (new_variable): Default "updated" flag to 0.
736         (varobj_set_value): Set "updated" flag to 1 if value
737         changes.
738         (varobj_update): Check varobj "updated" flag before
739         comparing old and refreshed values.  Fix for
740         PR gdb/702.
741
742 2002-10-23  David Carlton  <carlton@math.stanford.edu>
743
744         * parse.c (parse_exp_1): Use BLOCK_START.
745         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
746         SYMBOL_BLOCK_VALUE.
747         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
748
749 2002-10-23  David Carlton  <carlton@math.stanford.edu>
750
751         * symtab.c: Delete cplusplus_hint.
752         Delete prototype for find_template_name_end.
753
754 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
755
756         * symtab.h: Update comment.
757
758 2002-10-23  Michael Snyder  <msnyder@redhat.com>
759
760         * printcmd.c (address_info): Restore quotes in output.
761         * valops.c (value_of_local): Restore quotes in error message.
762
763 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
764
765         * symtab.c (symbol_demangled_name): New function.
766         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
767         turning most of it into a function.
768         (symbol_demangled_name): Export.
769
770 2002-10-23  Michael Snyder  <msnyder@redhat.com>
771
772         * valops.c (value_of_local): Restore quotes in error message.
773
774 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
775
776         * symtab.c (symbol_init_language_specific): New function.
777         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
778         turning most of it into a function.
779         (symbol_init_language_specific): Export.
780
781 2002-10-23  David Carlton  <carlton@math.stanford.edu>
782
783         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
784         (dwarf_attr_name): Ditto.
785         (dwarf_type_encoding_name): Ditto.
786         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
787         (process_die): Handle DW_TAG_namespace,
788         DW_TAG_imported_declaration, DW_TAG_imported_module.
789         (read_namespace): New function.
790
791 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
792
793         * configure.in: Define NEW_PROC_API on Interix too.
794         * configure: Regenerate.
795
796 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
797
798         * configure: Regenerate using the proper version of autoconf.
799
800 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
801
802         * findvar.c (read_var_value): Temporarily disable TLS code, until
803         complete TLS support is added.
804
805 2002-10-21  Jim Blandy  <jimb@redhat.com>
806             Elena Zannoni  <ezannoni@redhat.com>
807
808         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
809         for thread local storage locations.
810         (struct symbol): Add objfile field.
811         (SYMBOL_OBJFILE): Define.
812         * dwarf2read.c (is_thread_local): New static variable.
813         (new_symbol): If variable is in thread local fill in address class
814         and objfile appropriately.
815         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
816         stack operation.
817         * printcmd.c (address_info): Print the information for thread
818         local storage variable.
819         * findvar.c (read_var_value): In case of thread local variable,
820         defer to the target vector code to compute address.
821
822 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
823
824         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
825         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
826
827 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
828
829         * symtab.h (address_class):  Rename
830         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
831         * hpread.c (hpread_process_one_debug_symbol): Ditto.
832         * printcmd.c (address_info): Ditto.
833         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
834
835 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
836
837         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
838         DBREG_DRX macro to acces debug registers.
839
840         * Makefile.in (i386obsd-tdep.o): New target.
841
842         * solib-sunos.c: Include "bcache.h" and "regcache.h".
843         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
844
845         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
846         * config/i386/obsd.mt: New file.
847         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
848         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
849         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
850         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
851         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
852         * i386obsd-tdep.c: New file.
853
854 2002-10-19  Adam Fedor  <fedor@gnu.org>
855
856         * objc-exp.y (name_not_typename): Fix invalid comment.  
857
858 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
859
860         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
861         to allocate partial syms and macro byte caches.
862
863 2002-10-18  David Carlton  <carlton@math.stanford.edu>
864
865         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
866
867 2002-10-18  Adam Fedor  <fedor@gnu.org>
868
869         * stabsread.c (find_name_end): New function.
870         (define_symbol): Use it.
871
872 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
873
874         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
875         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
876         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
877         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
878
879 2002-10-17  David Carlton  <carlton@math.stanford.edu>
880
881         * symfile.h: Add opaque declaration for struct obstack.
882         Declare obsavestring to take a const char *.
883         * symfile.c (obsavestring): Make first argument a const char *.
884
885 2002-10-16  Adam Fedor  <fedor@gnu.org>
886
887         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
888         names when matching breakpoints in current file.
889
890 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
891
892         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
893         (read_tag_pointer_type): Add address class support.
894         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
895         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
896         New methods.
897         * gdbarch.h, gdbarch.c: Regenerate.
898         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
899         (make_type_with_address_space, recursive_type_dump): Add address
900         class support.
901         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
902         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
903         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
904
905 2002-10-16  Klee Dienes  <kdienes@apple.com>
906
907         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
908         to get the last character of a char[] buffer, not
909         name[sizeof(vptr_name)-1].
910
911 2002-10-14  Adam Fedor  <fedor@gnu.org>
912
913         * symtab.h: New objc_specific struct.
914         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
915         (SYMBOL_DEMANGLED_NAME): Likewise.
916
917 2002-10-14  Adam Fedor  <fedor@gnu.org>
918
919         * symfile.c (init_filename_language_table): Add ObjC file extension.
920
921 2002-10-14  Adam Fedor  <fedor@gnu.org>
922
923         * utils.c (puts_filtered_tabular): New function.
924         (fprintf_symbol_filtered): Get ObjC demangled name.
925         * defs.h (puts_filtered_tabular): Declared.
926
927 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
928
929         * c-lang.h (c_type_print_varspec_prefix): Delete.
930         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
931         ``need_post_space'' parameter.  Adjust all callers.
932
933 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
934  
935         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
936         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
937         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
938         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
939
940 2002-10-13  Adam Fedor  <fedor@gnu.org>
941
942         * source.c (print_source_lines): Update comments.
943
944 2002-10-13  Adam Fedor  <fedor@gnu.org>
945
946         * valops.c (value_of_local): New function.
947         (value_of_this): Use it.
948         * value.h (value_of_local): Declared.
949
950 2002-10-13  Adam Fedor  <fedor@gnu.org>
951
952         * parse.c: (length_of_subexp, prefixify_subexp): Handle
953         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
954
955 2002-10-12  Adam Fedor  <fedor@gnu.org>
956
957         * language.c (binop_result_type): Add language_objc to case.
958         (integral_type): Likewise.
959         (character_type): Likewise.
960         (string_type): Likewise.
961         (boolean_type): Likewise.
962         (structured_type): Likewise.
963         (binop_type_check): Likewise.
964
965 2002-10-11  Adam Fedor  <fedor@gnu.org>
966
967         * printcmd.c (address_info): Print 'self' for ObjC.
968
969 2002-10-11  Adam Fedor  <fedor@gnu.org>
970
971         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
972         OP_SELF.
973
974 2002-10-11  Adam Fedor  <fedor@gnu.org>
975
976         * language.h (CAST_IS_CONVERSION): Add language_objc.
977
978 2002-10-11  Adam Fedor  <fedor@gnu.org>
979
980         * defs.h (enum language): Add language_objc.
981
982 2002-10-11  Klee Dienes  <kdienes@apple.com>
983
984         * corefile.c (read_memory_typed_address): New function.
985         * gdbcore.h (read_memory_typed_address): Add prototype.
986         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
987         to read a value destined for a CORE_ADDR, not read_memory_integer.
988         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
989         (f77_get_dynamic_lowerbound): Ditto.
990
991 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
992
993         * utils.c (string_to_core_addr): After turning string into
994         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
995         which will do necessary sign-extension, etc.
996
997 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
998
999         * c-exp.y (THIS): Delete token and grammar rule.
1000         (yylex): Don't return THIS.
1001         * cp-valprint.c (vtbl_ptr_name_old): Delete.
1002         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1003         * demangle.c (cplus_markers): Update comment.  Put '$'
1004         first.  Remove CPLUS_MARKER.
1005         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1006         * jv-exp.y (THIS): Delete token and grammar rule.
1007         (yylex): Don't return THIS.
1008         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1009         * objc-exp.y (THIS): Delete token and grammar rule.
1010         (yylex): Don't return THIS.
1011         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1012         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1013         (read_member_functions): Likewise for opname.
1014         (read_tilde_fields): Use is_cplus_marker.
1015
1016         * defs.h (CPLUS_MARKER): Don't define.
1017         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1018         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1019         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1020         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1021         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1022
1023         * config/i386/tm-i386v4.h: Delete file.
1024         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1025         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1026         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1027         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1028         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1029         * config/i386/i386sco5.mt (TM_FILE): Likewise.
1030         * config/i386/i386v4.mt (TM_FILE): Likewise.
1031         * config/i386/ncr3000.mt (TM_FILE): Likewise.
1032
1033 2002-10-10  Marko Mlinar  <markom@opencores.org>
1034
1035         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1036         accidentially not commited 2002-10-09
1037         * gdbarch.h, gdbarch.c: Re-generate.
1038
1039 2002-10-09  Marko Mlinar  <markom@opencores.org>
1040
1041         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1042         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1043         * gdbarch.h, gdbarch.c: Re-generate.
1044
1045 2002-10-08  Petr Sorfa <petrs@caldera.com>
1046
1047         Revised and re-submitted by John Wolfe <jlw@caldera.com>
1048
1049         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1050         so we can work on more than one compilation unit at a time.  This
1051         helps prepare GDB to handle inter-CU die references.
1052         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1053         the code to be defined before struct comp_unit_head.
1054         (comp_unit_head): Added new members - offset, cu_head,
1055         begin_die, next and dwarf2_abbrevs.
1056         (dwarf2_abbrevs): Removed single static var; now member of
1057         struct comp_unit_head.
1058         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1059         members.
1060         (psymtab_to_symtab_1): Changed to work with the new
1061         struct comp_unit_head.
1062         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1063         constructs the dwarf2_abbrevs[] inside the cu_header.
1064         (dwarf2_empty_abbrev_table): Now expects a ptr to a
1065         dwarf2_abbrev table to clean up.
1066         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1067         handling of dwarf2_abbrevs inside the cu_header.
1068         (read_partial_die): Now supports the call to the new
1069         dwarf2_lookup_abbrev.
1070         (read_full_die): Now supports the call to the new
1071         dwarf2_lookup_abbrev.
1072
1073 2002-10-06  Christopher Faylor  <cgf@redhat.com>
1074
1075         * Makefile.in (install-gdbtk): Add missing continuation backslash to
1076         insure that shell variables, such as "transformed_name" are propagated
1077         to later shell statements in rule.
1078
1079 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
1080
1081         * config/i386/nm-i386sco.h: Add protection against
1082         multiple-inclusion.  Include "i386/nm-i386v.h".
1083         (REGISTER_U_ADDR): Remove define.
1084         (i386_register_u_addr): Remove prototype.
1085
1086 2002-10-04  Michael Snyder  <msnyder@redhat.com>
1087
1088         * m32r-stub.c (handle_exception): Make sure exception is "trap"
1089         before treating it as a single-step event.
1090
1091 2002-10-03  Adam Fedor  <fedor@gnu.org>
1092
1093         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
1094         (objc_demangle): Remove assignment in if statements, Replace
1095         free with xfree.
1096         (add_msglist): Likewise.
1097         (end_msglist): Likewise.
1098         (complare_selectors): Likewise.
1099         (selectors_info): Likewise.
1100         (compare_classes): Likewise.
1101         (classes_info): Likewise.
1102         (print_object_command): Likewise.
1103         (find_objc_msgcall_submethod): Replace PTR with void *.
1104         * objc-lang.h: Remove check for __STDC__.
1105
1106 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1107
1108         * ui-out.h (ui_out_field_fmt_int): New prototype.
1109         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1110         of field width and alignment.
1111         * stack.c (print_frame_info_base): When printing frame level, use
1112         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
1113         PR gdb/192
1114
1115 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1116
1117         * MAINTAINERS: Add self to Write After Approval list.
1118
1119 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1120
1121         * infcmd.c (interrupt_target_command_wrapper): Delete.
1122         (interrupt_target_command): Make non static.
1123         (nofp_registers_info): Make static.
1124         * stack.c (return_command_wrapper): Delete.
1125         (return_command): Make non static.
1126
1127 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1128
1129         * event-top.c (gdb_setup_readline): New function. Code moved from
1130         _initialize_event_loop().
1131         (_initialize_event_loop): Call gdb_setup_readline().
1132
1133 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1134
1135         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1136         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1137         * gdbarch.h, gdbarch.c: Re-generate.
1138
1139 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
1140
1141         Fix PR gdb/778
1142         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1143         before recursing.
1144         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1145         of fill_in_vptr_fieldno.
1146
1147 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1148
1149         * inferior.h (registers_info, stepi_command, nexti_command,
1150         continue_command, interrupt_target_command): Export from infcmd.c.
1151         * frame.h (args_info, selected_frame_level_changed_hook,
1152         return_command): Export from stack.c.
1153         * v850ice.c (stepi_command, nexti_command, continue_command): use
1154         prototypes from inferior.h.
1155         * tracepoint.c (registers_info, args_info, locals_info): Use
1156         prototypes from frame.h and inferior.h.
1157         * Makefile.in (mi-main.o): Add dependency on frame.h.
1158
1159 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1162         value in register 3 adjusted by ppc_gp0_regnum.
1163
1164         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1165
1166 2002-10-02  Marko Mlinar <markom@opencores.org>
1167
1168         * MAINTAINERS: Add myself to the Write After Approval list.
1169
1170 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
1171
1172         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1173         of the section for the N64 ABI, fixed.
1174
1175         * config/mips/tm-irix6.h: Include solib.h.
1176
1177 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
1178
1179         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1180         GNU operators.
1181
1182 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1183
1184         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1185         and that "mi0" syntax has been removed.
1186
1187 2002-09-30  David Carlton  <carlton@math.stanford.edu>
1188
1189         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1190         * ppc-sysv-tdep.c: #include "gdb_string.h".
1191         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1192         pacify GCC.
1193
1194 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1195
1196         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1197         "vrsave"'s register number.
1198
1199 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1200
1201         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1202         use frame_unwind_signed_register to obtain the PC.
1203         (mips_frame_chain): Handle a generic dummy frame.
1204         (mips_init_extra_frame_info): When a generic dummy frame, don't
1205         re-compute the frame base.
1206         (mips_pop_frame): Handle generic dummy frames.
1207         (mips_gdbarch_init): When generic dummy frames, set
1208         use_generic_dummy_frames, push_dummy_frame to
1209         generic_push_dummy_frame, pc_in_call_dummy to
1210         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1211         generic_save_dummy_frame_tos.
1212
1213 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1214
1215         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
1216         against TOP when TOP was explictly set.
1217         (generic_push_dummy_frame): Set TOP to zero.
1218
1219 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
1220
1221         * event-loop.c (start_event_loop): Rename variable 'result' to
1222         'gdb_result', to avoid conflicts with upcoming intepreters changes.
1223
1224 2002-09-30  Keith Seitz  <keiths@redhat.com>
1225
1226         * gdb-events.sh (selected_thread_changed): New event.
1227         * gdb-events.c: Regenerated.
1228         * gdb-events.h: Regenerated.
1229
1230 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1231
1232         * MAINTAINERS: Add self to Write After Approval list.
1233
1234 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
1235
1236         * disasm.c: New file.  
1237         * disasm.h: New file.  
1238         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1239         (compare_lines): Ditto.
1240         (dump_insns): Ditto.
1241         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1242         argument.
1243         (do_assembly_only): Ditto.
1244         (do_disassembly): Renamed to gdb_disassembly and moved to
1245         disasm.c.  Sdded uiout argument.
1246         * Makefile.in: Add new files.  Reorder SFILES list. Update
1247         dependencies.  Include libgdb.a later in the insight executable.
1248
1249 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1250
1251         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1252         bfd/elf64-alpha-fbsd.c.
1253
1254 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1255
1256         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1257         i386gnu-tdep.c.
1258
1259 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1260
1261         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1262         __FUNCTION__.
1263         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1264         function name.
1265         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1266         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1267         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1268         (S_msg_sig_post_reply): Ditto.
1269         
1270 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
1271
1272         * sh-tdep.c (sh_use_struct_convention): Use definition according
1273         to ABI.
1274         (sh_push_arguments): Store in register with correct endianess.
1275         (sh_default_store_return_value): Ditto.
1276         (sh_gdbarch_init): Set sizeof long double to 8.
1277
1278 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
1279
1280         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1281         Fix some whitespace problems.
1282
1283 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1284
1285         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1286         (mcore-tdep.o): Ditto.
1287         (ns32k-tdep.o): Ditto.
1288         (ns32knbsd-tdep.o): Ditto.
1289         (sh3-rom.o): Ditto.
1290         (vax-tdep.o): Ditto.
1291         * cris-tdep.c: #include "gdb_string.h"
1292         * mcore-tdep.c: Ditto.
1293         * ns32k-tdep.c: Ditto.
1294         * ns32knbsd-tdep.c: Ditto.
1295         * sh3-rom.c: Ditto.
1296         * vax-tdep.c: Ditto.
1297
1298 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1299
1300         * config/djgpp/fnchange.lst: Add entries for
1301         gdb/testsuite/gdb.c++/m-static files.
1302
1303 2002-09-27  Jim Wilson  <wilson@redhat.com>
1304
1305         * MAINTAINERS: Add myself to the Write After Approval list.
1306
1307 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
1308
1309         * mips-tdep.c (find_proc_desc): Initialize startaddr.
1310
1311
1312 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1313
1314         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1315         frame.
1316
1317 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1318
1319         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1320         (rs6000_struct_return_address): Delete variable.
1321         (rs6000_store_struct_return): Update.
1322         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1323         deprecated_extract_struct_value_address.
1324         (rs6000_frame_align): New function.
1325         (rs6000_gdbarch_init): Set frame_align.
1326
1327 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1328
1329         From Grace Sainsbury <graces@redhat.com>:
1330         * Makefile.in (gdbtk-main.o): New target.
1331         (gdb.o): New target.
1332         (main_h): Define.
1333         (main.o): Update dependencies.
1334         (gdb$(EXEEXT)): Add gdb.o.
1335         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1336         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1337         (SUBDIR_GDBTK_CLEAN): Set.
1338         (install-gdbtk): Install the insight binary.
1339         (uninstall-gdbtk): New target.
1340         (all-gdbtk, clean-gdbtk): New rule.
1341         * top.c (use_windows): Default to zero.
1342         * main.c: Include "main.h".
1343         (main): Delete.
1344         (struct captured_main_args): Delete.
1345         (gdb_main): New function.
1346         * main.h: New file.
1347         * gdb.c: New File.
1348
1349 2002-09-25  Andrew Cagney  <cagney@redhat.com>
1350
1351         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1352         (frame_map_regnum_to_name): New function.
1353         (frame_map_name_to_regnum): New function.
1354         * frame.h (frame_map_name_to_regnum): Declare.
1355         (frame_map_regnum_to_name): Declare.
1356         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1357         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1358         * parse.c: Do not include "builtin-regs.h".
1359         (target_map_name_to_register): Delete function.
1360         (write_dollar_variable): Use frame_map_name_to_regnum.
1361         * parser-defs.h (target_map_name_to_register): Delete declaration.
1362         * expprint.c: Include "frame.h".
1363         (print_subexp): Use frame_map_regnum_to_name.
1364         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1365         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1366
1367 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
1368
1369         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1370         wasn't saved, and the next innermost frame is a dummy, return the
1371         dummy frame's link register.
1372
1373 2002-09-24  Jim Blandy  <jimb@redhat.com>
1374
1375         Fix from Paul Breed:
1376         * main.c (captured_main): Add a `break' after the case for 'b'.
1377
1378 2002-09-24  Keith Seitz  <keiths@redhat.com>
1379
1380         * varobj.c (c_type_of_child): Use get_target_type instead
1381         of TYPE_TARGET_TYPE.
1382
1383 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1384
1385         * source.c (get_current_or_default_source_symtab_and_line): Remove
1386         function.
1387         (set_default_source_symtab_and_line): New function. Attempts to
1388         determine a source file to list lines from if one is not currently
1389         defined.
1390         (get_current_source_symtab_and_line): Initialize sal.pc and
1391         sal.end fields.
1392         (set_current_source_symtab_and_line): Mark argument as const.
1393         * source.h: Update declarations and comments.
1394         * linespec.c (decode_line_1): Replace call to removed routine above.
1395         * stack.c (print_frame_info_base): Ditto.
1396         * cli/cli-cmds.c (edit_command): Ditto.
1397         (list_command): Ditto.
1398
1399 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1400
1401         * source.c (get_current_or_default_source_symtab_and_line): Initialize
1402         sal.pc and sal.end fields.
1403         (get_current_or_default_source_symtab_and_line): Ditto.
1404         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1405         so we do not cause a new source symtab to be searched for (reverting an
1406         unintentional change from the 2002-09-20 patch).
1407         * scm-lang.c (scm_unpac): Ditto.
1408
1409 2002-09-21  Andrew Cagney  <cagney@redhat.com>
1410
1411         * complaints.c (symfile_explanations): Remove new-line from
1412         ``isolated_message''.
1413         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1414         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1415
1416 2002-09-20  Nick Clifton  <nickc@redhat.com>
1417         
1418         * NEWS: Announce that V850EA ISA is no longer supported.
1419         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1420
1421 2002-09-20  David Carlton  <carlton@math.stanford.edu>
1422
1423         * Makefile.in (c-lang.o): Correct dependencies.
1424         (utils.o): Gather dependencies.
1425         (charset.o): Move.
1426         * c-lang.c: #include "gdb_string.h"
1427
1428 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1429
1430         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
1431         * cli/cli-cmds.c (list_command): New function.  Implements the new
1432         cli edit command.
1433         (_init_cli_cmds): Add new command definition.
1434         * gdb.1: Document edit command.
1435         * doc/gdb.texinfo: Document edit command.
1436
1437 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1438
1439         * source.c: Make global variables current_source_symtab and
1440         current_source_line static.
1441         (list_command): Moved to cli/cli-cmds.c.
1442         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1443         (get_first_line_listed): New accessor function.
1444         (get_lines_to_list): New accessor function.
1445         (get_current_source_symtab_and_line): New function. Retrieves the
1446         position in the source code that we consider current.
1447         (get_current_or_default_source_symtab_and_line): New function.
1448         Like the above but attempts to determine a default position if one
1449         is not currently defined.
1450         (set_current_source_symtab_and_line): New function. Sets the source
1451         code position considered current and returns the previously set one.
1452         (clear_current_source_symtab_and_line): Reset stored information about
1453         a current source line.
1454         (_initialize_source): Remove registration for the "list" command and
1455         its alias.
1456         * source.h: Add declarations for the new functions above.
1457         * symtab.h: Remove declarations for the global variables mentioned
1458         above.
1459         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1460         obtain current source line.
1461         * linespec.c (decode_line_1): Ditto.
1462         * macroscope.c (default_macro_scope): Ditto.
1463         * scm-lang.c (scm_unpac): Ditto.
1464         * stack.c (print_frame_info_base): Ditto.
1465         * symfile.c (clear_symtab_users): Ditto.
1466         * symtab.c (decode_line_spec): Ditto.
1467         * cli/cli-cmds.c (list_command): Moved here from source.c.
1468         (ambiguous_line_spec): Moved here from source.c.
1469         (_init_cli_cmds): Add definition for "list" and its alias.
1470         * Makefile.in: Update dependencies.
1471
1472 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1473
1474         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1475         with what gcc thinks is correct.
1476
1477 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1478
1479         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1480         multiple register push instruction.
1481
1482 2002-09-19  Jim Blandy  <jimb@redhat.com>
1483
1484         Add support for distinct host and target character sets.
1485         * charset.c, charset.h: New files.
1486         * c-exp.y: #include "charset.h".
1487         (yylex): Convert character and string literals to the target
1488         character set, before returning them as the semantic value of the
1489         token.
1490         * c-lang.c: #include "charset.h".
1491         (c_emit_char): Use charset-specific methods to recognize
1492         characters with backslash escape forms, to decide which characters
1493         to print literally and which to print using numeric escape
1494         sequences, and to convert target characters to host characters
1495         before printing.
1496         * utils.c: #include "charset.h".
1497         (no_control_char_error): New function.
1498         (parse_escape): Use charset-specific methods to recognize
1499         backslash escapes, parse `control character' notation, and convert
1500         characters from the host character set to the target character set.
1501         * configure.in: Set the default host character set.
1502         Check where to find iconv, and what its argument types might be.
1503         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1504         * Makefile.in (SFILES): List charset.c.
1505         (COMMON_OBS): List charset.o.   
1506         (charset.o): New rule.
1507         (charset_h): New header dependency variable.
1508         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1509         (LIBICONV): New variable, set by configure.
1510         (CLIBS): Include $(LIBICONV) here.
1511         * aclocal.m4, config.in, configure: Regenerated.
1512
1513 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1514
1515         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1516         bison 1.35 warning.
1517
1518 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1519
1520         * gdb_mbuild.sh: New file.
1521
1522 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1523
1524         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1525
1526 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1527
1528         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1529         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1530         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1531         valops.c, value.h: Revert previous change.
1532         
1533 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1534
1535         Preliminary support for Objective-C:
1536         * defs.h (language_objc): New enum value.
1537         (puts_filtered_tabular): Declaration only, exported from utils.c.
1538         (skip_quoted): Delete, declared in completer.h.
1539         * c-exp.y: Include completer.h.
1540         * p-exp.y: Ditto.
1541         * jv-exp.y: Ditto.
1542         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1543         New operator enum values.
1544         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1545         * language.c (binop_result_type): Handle language_objc case.
1546         (integral_type, character_type, string_type, boolean_type,
1547         structured_type, binop_type_check): Ditto.
1548         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1549         (struct objc_specific): Add to general_symbol_info.
1550         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1551         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1552         * parser-defs.h (struct objc_class_str): New struct type.
1553         (start_msglist, end_msglist, add_msglist): Declaration only,
1554         exported from objc-lang.c.
1555         * value.h (value_of_local, value_nsstring, 
1556         call_function_by_hand_expecting_type): Exported from valops.c.
1557         * valops.c (find_function_addr): Export.
1558         (call_function_by_hand_expecting_type): New function.
1559         (value_of_local): New function.
1560         * symfile.c (init_filename_language_table): Add ".m" extension
1561         for Objective-C.
1562         * utils.c (puts_filtered_tabular): New function.
1563         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1564         (set/show demangle): Extend help-string to refer to ObjC.
1565         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1566         * stabsread.c (symbol_reference_defined): Objective-C symbols
1567         may contain colons: make allowances when scanning stabs strings
1568         for colons.
1569         (objc_find_colon): New function.
1570         * printcmd.c (address_info): If language == objc then print
1571         "self" instead of "this".
1572         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1573         OP_NSSTRING, and OP_SELF.
1574         (prefixify_subexp): Ditto.
1575         * source.c (print_source_lines): Mention objc in comment.
1576         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1577         method names.
1578
1579 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1580
1581         * complaints.h: Update copyright.
1582         (struct complaints): Declare.
1583         (struct complaint): Make `message' constant.
1584         (internal_complaint): Declare.
1585         (complaint): Declare.
1586         (complaint_root): Delete declaration.
1587         (symfile_complaints): Delete declaration.
1588         (struct complaints): Add opaque declaration.
1589         (clear_complaints): Add a complaints parameter.
1590         * complaints.c: Update copyright.
1591         (enum complaint_series): Define.
1592         (complaint_root): Delete.
1593         (struct complaints): Define.
1594         (complaint_sentinel, symfile_complaint_book): New variables.
1595         (symfile_explanations, symfile_complaints): New variables.
1596         New variables.
1597         (get_complaints): New function.
1598         (vcomplaint): New function.
1599         (complaint): New function.
1600         (internal_complaint): New function.
1601         (complain): Call vcomplain with symfile_complaint.
1602         (clear_complaints): Rewrite.
1603         (_initialize_complaints): Use add_setshow_command.
1604         * Makefile.in (complaints.o): Update dependencies.
1605         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1606         to call to clear_complaints.
1607         (new_symfile_objfile, reread_symbols): Ditto.
1608         (oldsyms_complaint): Delete.
1609         (empty_symtab_complaint, unknown_option_complaint): Delete.
1610         (free_named_symtabs): Use complaint instead of complain.
1611
1612 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1613
1614         Contributed by Apple Computer, Inc.  Merged with current sources
1615         by Adam Fedor <fedor@doc.com> [cagney].
1616         
1617         * objc-lang.c: First clean-up round: comments, indentation.
1618         * objc-lang.h: Ditto.
1619         * objc-lang.y: Ditto.
1620
1621 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1622
1623         * maint.c (maintenance_internal_error): Print the parameter as the
1624         error message.
1625         (maintenance_internal_warning): New function.
1626         (_initialize_maint_cmds): Add command `maint internal-warning'.
1627
1628         * defs.h (internal_warning, internal_vwarning): Declare.
1629         * utils.c (struct internal_problem): Define.
1630         (internal_vproblem): New function.
1631         (internal_warning): New function.
1632         (internal_vwarning): New function.
1633         (internal_warning_problem, internal_error_problem): New variables.
1634         (internal_verror): Just call internal_vproblem.
1635
1636 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1637
1638         * objc-lang.c: New file, support for Objective-C.
1639         Preliminary check-in, not yet integrated into gdb.
1640         * objc-lang.h: New file.
1641         * objc-exp.y:  New file.
1642
1643 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1644
1645         * infrun.c (signal_stop_update): Convert definition to ISO C.
1646         (signal_print_update): Ditto.
1647         (signal_pass_update): Ditto.
1648         * inflow.c (terminal_save_ours): Ditto.
1649
1650         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1651         comments.
1652         
1653         * config/djgpp/fnchange.lst: Handle name clashes between
1654         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1655         bfd/coff-tic80.c.
1656
1657         * i386-linux-tdep.h: Fix tipo.
1658
1659 2002-09-18  Adam Fedor  <fedor@gnu.org>
1660
1661         * MAINTAINERS: Add myself to the Write After Approval list.
1662
1663 2002-09-18  Jim Blandy  <jimb@redhat.com>
1664
1665         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1666         texthigh and textlow to reader-specific structs caused
1667         objfile_relocate to miss them.  This is fixable, but the work that
1668         the change was supposed to prepare GDB for never got done anyway.
1669
1670 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1671
1672         * MAINTAINERS: Alphabetize Write After Approval list.
1673
1674 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1675
1676         Fix PR gdb/709
1677         * values.c (value_static_field): Call read_var_value.
1678
1679 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1680
1681         * valops.c (hand_function_call): Align the initial stack pointer
1682         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1683         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1684         return value.
1685         * mips-tdep.c (mips_frame_align): New function.
1686         (mips_gdbarch_init): Set frame_align.
1687         * gdbarch.sh (FRAME_ALIGN): New method.
1688         * gdbarch.h, gdbarch.c: Re-generate.
1689
1690 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1691
1692         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1693         registers.
1694
1695 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1696
1697         * NEWS: Mention that MIPS $fp behavior changed.
1698         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1699         reference to FP_REGNUM.
1700         (mipsnbsd_cannot_store_register): Ditto.
1701         * mips-linux-nat.c: Update copyright.
1702         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1703         (mips_linux_cannot_store_register): Ditto.
1704         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1705         * config/mips/tm-mips.h: Update copyright.
1706         (FP_REGNUM): Delete macro.
1707         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1708         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1709         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1710         (mips_r3041_reg_names, mips_r3051_reg_names)
1711         (mips_r3081_reg_names): Replace "fp" with "".
1712         Fix PR gdb/480.
1713
1714 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1715
1716         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1717         generic_read_register_dummy() (PR gdb/703).
1718         (avr_push_return_address): #if 0 out unused vars.
1719         (avr_gdbarch_init): Enable use of avr_push_return_address().
1720
1721 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1722
1723         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1724         RTE will take care of it.
1725
1726 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1727
1728         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1729         invalid, return SP_REGNUM.
1730
1731 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1732
1733         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1734         point registers without sign extension.
1735
1736 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1737
1738         * blockframe.c (deprecated_read_register_dummy): Rename
1739         generic_read_register_dummy.
1740         * frame.c (frame_unwind_signed_register): New function.
1741         (frame_unwind_unsigned_register): New function.
1742         * frame.h (frame_unwind_signed_register): Declare.
1743         (frame_unwind_unsigned_register): Declare.
1744         (deprecated_read_register_dummy): Rename
1745         generic_read_register_dummy.
1746
1747         * h8300-tdep.c (h8300_frame_chain): Update.
1748         (h8300_frame_saved_pc): Update.
1749         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1750         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1751         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1752         (s390_frame_chain): Update.
1753         * v850-tdep.c (v850_find_callers_reg): Update.
1754         (v850_frame_saved_pc): Update.
1755         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1756         (m32r_find_callers_reg): Update.
1757         (m32r_frame_saved_pc): Update.
1758         * sh-tdep.c (sh_find_callers_reg): Update.
1759         (sh64_get_saved_pr): Update.
1760         (sh_init_extra_frame_info): Update.
1761         (sh_init_extra_frame_info): Update.
1762         (sh64_init_extra_frame_info): Update.
1763         (sh64_init_extra_frame_info): Update.
1764         * mcore-tdep.c (mcore_find_callers_reg): Update.
1765         (mcore_frame_saved_pc): Update.
1766         (mcore_init_extra_frame_info): Update.
1767         * i386-tdep.c (i386_frame_saved_pc): Update.
1768         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1769         (ia64_init_extra_frame_info): Update.
1770         (ia64_init_extra_frame_info): Update.
1771         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1772         * cris-tdep.c (cris_init_extra_frame_info): Update.
1773         * avr-tdep.c (avr_frame_chain): Update.
1774         (avr_init_extra_frame_info): Update.
1775         (avr_frame_saved_pc): Update.
1776         * arm-tdep.c (arm_find_callers_reg): Update.
1777         (arm_init_extra_frame_info): Update.
1778         (arm_frame_saved_pc): Update.
1779
1780 2002-09-17  Tom Tromey  <tromey@redhat.com>
1781
1782         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1783         is "'".
1784
1785 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1786
1787         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1788         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1789         NEXT_PROLOGUE_INSN.
1790         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1791         NEXT_PROLOGUE_INSN.
1792
1793 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1794
1795         * osfsolib.c: Remove file, replaced by solib-osf.c.
1796         * Makefile.in: Remove compilation rules for osfsolib.c.
1797
1798 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1799
1800         * cp-valprint.c (cp_print_class_method): Correct args to
1801         check_stub_method_group.
1802
1803 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1804
1805         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1806         `set architecture'.  Unify naming convention of functions.
1807         (h8300_skip_prologue): Improve prologue analysis.
1808         (h8300_push_arguments): Rewritten to more closely match GCC's
1809         bizarre argument-passing behavior, along with the comment describing
1810         said behavior.
1811         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1812         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1813         sim, remote-e7000.c, remote-hms.c and remote.c
1814
1815 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1816
1817         * i386-tdep.c (gdb_print_insn_i386): Removed.
1818         (i386_print_insn): New function.
1819         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1820         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1821         tm_print_insn_info.
1822
1823 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1824
1825         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1826         zero.
1827
1828 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1829
1830         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1831         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1832         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1833
1834 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1835
1836         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1837
1838 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1839
1840         * gdbtypes.c (check_stub_method): Make static.
1841         (check_stub_method_group): New function.
1842         * gdbtypes.h: Update prototypes.
1843         * cp-support.c: New file.
1844         * cp-support.h: New file.
1845
1846         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1847         (update_method_name_from_physname): New function.
1848         (read_member_functions): Correct method names for operators
1849         and v3 constructors/destructors.  Separate v2 constructors and
1850         destructors.
1851         * Makefile.in (stabsread.o): Update dependencies.
1852         (SFILES): Add cp-support.c.
1853         (COMMON_OBS): Add cp-support.o.
1854         (cp_support_h, cp-support.o): Add.
1855
1856         * cp-valprint.c (cp_print_class_method): Call
1857         check_stub_method_group instead of check_stub_method.  Remove
1858         extraneous QUITs.
1859         * p-valprint.c (pascal_object_print_class_method): Likewise.
1860         * valops.c (search_struct_method): Likewise.
1861         (find_method_list, value_struct_elt_for_reference): Likewise.
1862
1863 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1864
1865         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1866         * gdbarch.h, gdbarch.c: Regenerate.
1867
1868 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1869
1870         * frame.c (find_saved_register): Delete function.
1871         * frame.h (find_saved_register): Delete declaration.
1872         Fix PR gdb/631.
1873
1874 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1875
1876         * mips-tdep.c (read_next_frame_reg): Re-hack using
1877         frame_register_unwind.
1878
1879 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1880
1881         * mips-tdep.c (mips_get_saved_register): Re-hack using
1882         frame_register_unwind.
1883
1884 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1885
1886         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1887         vector. Will be useful for Interix.  
1888         * gdbarch.h, gdbarch.c: Regenerate.
1889
1890         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1891         name of the malloc function by NAME_OF_MALLOC.
1892
1893 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1894
1895         * value.h (find_function_in_inferior): Add const keyword to
1896         one of the parameters. Allows us to invoke this function with
1897         a const char *.
1898         * valops.c (find_function_in_inferior): Likewise.
1899
1900 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1901
1902         * exec.c (xfer_memory): Fix compilation warning with old versions
1903         of GCC.
1904         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1905
1906 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1907
1908         * symtab.h: Run through gdb_indent.h.
1909         Add 2002 to Copyright year list.
1910
1911 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1912
1913         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1914         mach constants.
1915         * MAINTAINERS: Add myself to write after approval list.
1916
1917 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1918
1919         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1920
1921 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1922
1923         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1924         Interix.
1925
1926 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1927
1928         * procfs.c (do_detach): Clear current signal, not just fault.
1929         Corrects problem with breakpoint trap signal leaking to detached
1930         process on Tru64.
1931
1932 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1933
1934         * buildsym.c (finish_block): Protect against null pointer.
1935
1936 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1937
1938         * infcmd.c (default_print_registers_info): Send all output to
1939         ``file'' instead of ``gdb_stdout''.
1940
1941 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1942
1943         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1944         LONGEST, and use signed register read (addresses are sign-
1945         extended for mips).
1946
1947 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1948
1949         * event-loop.c (gdb_do_one_event): Make public.
1950         * event-loop.h (gdb_do_one_event): Declare.
1951
1952 2002-09-10  Jeff Law  <law@redhat.com>
1953
1954         * infttrace.c (child_resume): Simplify and rework to avoid
1955         TT_PROC_CONTINUE.
1956
1957 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1958
1959         * printcmd.c (print_scalar_formatted): "len" is the number of
1960         target bytes, NOT the number of target bits.
1961
1962 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1963
1964         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1965         * top.c (init_main): Set rl_terminal_name.
1966
1967 2002-09-08  Aidan Skinner <aidan@velvet.net>
1968
1969         * ada-lang.c (ada_array_bound, ada_type_match,
1970         _initialize_ada_language): Fix K&R definitions.
1971         * ada-tasks.c (get_current_task): Fix K&R definitions.
1972         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1973                         
1974 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1975
1976         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1977         Add XP.
1978
1979 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1980
1981         * i386-tdep.c (i386_register_virtual_type,
1982         i386_register_convertible, i386_register_convert_to_virtual,
1983         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1984         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1985         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1986         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1987         Don't set push_arguments twice.
1988
1989         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1990         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1991         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1992         sigtramp_end to NULL.
1993         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1994         defines.
1995         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1996
1997         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1998         whitespace.
1999
2000         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2001         * gdbarch.h, gdbarch.c: Re-generate.
2002         * blockframe.c (find_pc_sect_partial_function): Convert to use
2003         SIGTRAMP_START_P predicate.
2004
2005 2002-09-05  Michael Snyder  <msnyder@redhat.com>
2006
2007         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2008         generic_dummy_frame method and old method.  Also distinguish
2009         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2010         (arm_extract_return_value): Use new regcache method.
2011
2012         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2013         adjustment that doesn't conform to the ABI.
2014         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2015         saved regcache, not from current regcache.
2016
2017 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
2018
2019         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
2020         * README: Update.
2021
2022 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
2023
2024         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2025         if arm_apcs_32 is false.
2026
2027 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
2028
2029         GDB 5.3 branch created.
2030
2031 2002-09-03  Theodore A. Roth  <troth@verinet.com>
2032
2033         * gdb/avr-tdep.c (avr_gdbarch_init): Use
2034         generic_unwind_get_saved_register.
2035
2036 2002-09-03  David Carlton  <carlton@math.stanford.edu>
2037
2038         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2039         argument (PR gdb/653).  Update call to smash_to_method_type.
2040         (read_structure_scope): Update call to dwarf2_add_member_fn.
2041
2042 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
2043
2044         * x86-64-linux-tdep.c: Include gdb_string.h
2045         * x86-64-linux-nat.c: Ditto.
2046
2047 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2048
2049         * ada-exp.y (yyname, yyrule): Remap global variables that appear
2050         when YYDEBUG is set to 1.  
2051         * c-exp.y: Likewise.
2052         * f-exp.y: Likewise.
2053         * jv-exp.y: Likewise.
2054         * m2-exp.y: Likewise.
2055         * p-exp.y: Likewise.
2056
2057 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2058
2059         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2060         dependency list.
2061         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2062         solib_svr4_fetch_link_map_offsets to
2063         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2064         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2065         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2066         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2067         solib-svr4.o, and solib-legacy.o.
2068         * config/i386/tm-nbsd.h: Include solib.h.
2069
2070 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2071
2072         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
2073         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
2074         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
2075         comment noting that this needs its own target configuration.
2076         * config/i386/nbsd.mt: New file.
2077         * config/i386/nbsdaout.mt: Remove.
2078         * config/i386/nbsdelf.mt: Ditto.
2079         * config/i386/tm-nbsdaout.h: Ditto. 
2080
2081 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2082
2083         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
2084         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
2085         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2086         tdep->sigtramp_end.
2087         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
2088         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2089         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2090
2091 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2092
2093         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2094         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2095         * i386-tdep.h (i386bsd_init_abi): New prototype.
2096         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2097         function declaration.
2098         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2099         for NetBSD-a.out or NetBSD-ELF.
2100         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2101         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2102         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2103         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
2104         and nbsd-tdep.h.
2105         (i386nbsd_pc_in_sigtramp): New function.
2106         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2107         i386nbsd_pc_in_sigtramp.
2108         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2109         and i386nbsdelf_init_abi OS ABI handlers.
2110         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2111         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2112
2113 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
2114
2115         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2116         registers if the target really has them.
2117
2118 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2119
2120         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2121         than nbsd-tdep.h.
2122
2123 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2124
2125         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2126         list.
2127         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2128         (alphanbsd_skip_sigtramp_frame): New functions. 
2129         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2130         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
2131         to alphanbsd_sigcontext_addr. 
2132
2133 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2134
2135         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2136         list.
2137         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
2138         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2139         nbsd_pc_in_sigtramp. 
2140         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2141         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2142         * nbsd-tdep.c: Include gdb_string.h.
2143         (nbsd_pc_in_sigtramp): New function. 
2144         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
2145         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2146         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2147         ppcnbsd_pc_in_sigtramp. 
2148         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2149         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2150         shnbsd_pc_in_sigtramp. 
2151         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2152         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
2153         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2154
2155 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
2156
2157         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2158         watchpoints to NULL.
2159         (insert_breakpoints): set val field of watchpoints if NULL.
2160
2161
2162 2002-08-29  Jim Blandy  <jimb@redhat.com>
2163
2164         * symtab.c (lookup_symbol_aux): In the cases where we find a
2165         minimal symbol of an appropriate name and use its address to
2166         select a symtab to read and search, use `name' (as passed to us)
2167         as the demangled name when searching the symtab's global and
2168         static blocks, not the minsym's name.
2169
2170 2002-08-29  Keith Seitz  <keiths@redhat.com>
2171
2172         * stack.c (print_frame_info_base): Always set current_source_symtab
2173         and current_source_line.
2174
2175 2002-08-29  Donn Terry  <donnte@microsoft.com>
2176
2177         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2178
2179 2002-08-28  Keith Seitz  <keiths@redhat.com>
2180
2181         * stack.c (select_frame): Add FIXME concerning selected-frame
2182         events.
2183         (select_frame_command): Send selected-frame-level-changed
2184         event notification, but only if the level actually changed.
2185         (up_silently_base): Add selected-frame-level-changed event
2186         notification.
2187         (down_silently_base): Likewise.
2188
2189 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
2190
2191         * Makefile.in: Update dependencies for all gdb/*.c files.
2192
2193 2002-08-27  Tom Tromey  <tromey@redhat.com>
2194
2195         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2196         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2197         Update dependencies.
2198         * i387-tdep.c: Include gdb_string.h.
2199         * osabi.c: Likewise.
2200         * i386-linux-nat.c: Likewise.
2201         * lin-lwp.c: Likewise.
2202         * ax-gdb.c: Likewise.
2203         * signals/signals.c: Likewise.
2204         * jv-valprint.c: Likewise.
2205         * p-lang.c: Likewise.
2206         * c-valprint.c: Likewise.
2207         * cp-abi.c: Likewise.
2208
2209 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
2210
2211         * cli/cli-script.h (copy_command_lines): Export.
2212         * breakpoint.c: Include cli/cli-script.h.
2213         * Makefile.in (breakpoint.o): Update dependencies.
2214
2215 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2216
2217         * breakpoint.c (insert_breakpoints): Protect all references
2218         to 'process_warning'.  Shorten long lines.
2219
2220 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2221
2222         * cli/cli-script.c (copy_command_lines): New function.
2223         * defs.h (copy_command_lines): Export.
2224         * testsuite/gdb.base/commands.exp: New tests for commands
2225         attached to a temporary breakpoint, and for commands that
2226         delete the breakpoint they are attached to.
2227         
2228 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2229
2230         * breakpoint.c (bpstat_stop_status): Instead of copying the 
2231         pointer to the breakpoint commands struct, make a new copy
2232         of the struct and point to that.
2233         (bpstat_clear): Free the commands struct.
2234         (bpstat_clear_actions): Free the commands struct.
2235         (bpstat_do_actions): Free the command actions.  Also execute
2236         the local cleanups, instead of deleting them.
2237         (delete_breakpoint): Leave the commands field of the bpstat
2238         chain alone -- it will be freed later.
2239
2240 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
2241
2242         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2243         deleted in 2002-08-20 commit.  This function is still used by
2244         ppc-linux-nat.c.
2245
2246 2002-08-26  Keith Seitz  <keiths@redhat.com>
2247
2248         * gdb-events.sh: Add selected-frame-level-changed event.
2249         * gdb-events.c: Regenerated.
2250         * gdb-events.h: Regenerated.
2251         
2252 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
2253
2254         Fix PR gdb/393:
2255         * inflow.c (terminal_save_ours): New function to save terminal
2256         settings.
2257         * inferior.h (terminal_save_ours): Declare.
2258         * target.c (debug_to_terminal_save_ours): New function.
2259         (cleanup_target): Defaults to_terminal_save_ours.
2260         (update_current_target): Inherit to_terminal_save_ours.
2261         (setup_target_debug): Set to_terminal_save_ours.
2262         * target.h (target_terminal_save_ours): New to save terminal settings.
2263         (target_ops): New member to_terminal_save_ours.
2264         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2265         * hpux-thread.c (init_hpux_thread_ops): Likewise.
2266         * inftarg.c (init_child_ops): Likewise.
2267         * m3-nat.c (init_m3_ops): Likewise.
2268         * procfs.c (init_procfs_ops): Likewise.
2269         * wince.c (init_child_ops): Likewise.
2270         * win32-nat.c (init_child_ops): Likewise.
2271         * sol-thread.c (init_sol_thread_ops): Likewise.
2272
2273 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
2274
2275         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
2276         use regcache_* functions.
2277         (i386_gdbarch_init): Set store_return_value instead of
2278         deprecated_store_return_value.
2279
2280         * regcache.c (regcache_raw_write_signed,
2281         regcache_raw_write_unsigned): New functions.
2282         * regcache.h (regcache_raw_write_signed,
2283         regcache_raw_write_unsigned): New prototypes.
2284
2285 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2286
2287         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2288         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2289         source file dependencies.  Cleanup corresponding generator rules.
2290
2291 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * regcache.h (register_offset_hack): Declare.
2294         (regcache_cooked_read_using_offset_hack): Declare.
2295         (regcache_cooked_write_using_offset_hack): Declare.
2296
2297         * regcache.c (register_offset_hack): New function.
2298         (regcache_cooked_read_using_offset_hack): New function.
2299         (regcache_cooked_write_using_offset_hack): New function.
2300         (regcache_dump): Check that the registers, according to their
2301         offset, are packed hard against each other.
2302         (cooked_xfer_using_offset_hack): New function.
2303
2304 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2305
2306         * regcache.c (struct regcache_descr): Add field register_type.
2307         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2308         in as a parameter
2309         (init_regcache_descr): Initialize register_type.  Pass the descr
2310         to init_legacy_regcache_descr.  Use register_type instead of
2311         REGISTER_VIRTUAL_TYPE.
2312         (register_type): New function.
2313         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2314         * regcache.h (register_type): Declare.
2315
2316 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2317
2318         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2319         instead of deprecated_store_return_value.  Fix fallout from
2320         2002-08-23 Andrew Cagney <cagney@redhat.com>.
2321
2322 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2323
2324         * regcache.c (max_register_size): New function.
2325         (init_legacy_regcache_descr): Ensure that max_register_size is
2326         large enough for REGISTER_VIRTUAL_SIZE.
2327         * regcache.h (max_register_size): Declare.
2328
2329 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
2330
2331         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2332         store_return_value.
2333         (e500_extract_return_value): Change type of valbuf pointer to
2334         void.
2335
2336 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2337
2338         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2339         workaround.
2340
2341         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2342         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2343         long long) to prevent compiler warning on 64-bit systems.
2344
2345 2002-08-23  Andrew Cagney  <cagney@redhat.com>
2346
2347         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2348         (DEPRECATED_STORE_RETURN_VALUE): New method.
2349         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2350         * gdbarch.h, gdbarch.c: Re-generate.
2351
2352         * values.c (set_return_value): Pass current_regcache to
2353         STORE_RETURN_VALUE.
2354         * arch-utils.h (legacy_store_return_value): Declare.
2355         * arch-utils.c (legacy_store_return_value): New function.
2356         (legacy_extract_return_value): Update parameters.
2357
2358         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2359         STORE_RETURN_VALUE.
2360         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2361         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2362         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2363         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2364         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2365         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2366         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2367         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2368         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2369         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2370
2371         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2372         * i386-tdep.c (i386_extract_return_value): Update.
2373         * arch-utils.c (legacy_extract_return_value): Update.
2374         * frv-tdep.c (frv_gdbarch_init): Update.
2375         * cris-tdep.c (cris_gdbarch_init): Update.
2376         * d10v-tdep.c (d10v_gdbarch_init): Update.
2377         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2378         * m68k-tdep.c (m68k_gdbarch_init): Update.
2379         * mcore-tdep.c (mcore_gdbarch_init): Update.
2380         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2381         * s390-tdep.c (s390_gdbarch_init): Update.
2382         * sparc-tdep.c (sparc_gdbarch_init): Update.
2383         * sh-tdep.c (sh_gdbarch_init): Update.
2384         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2385         * v850-tdep.c (v850_gdbarch_init): Update.
2386         * avr-tdep.c (avr_gdbarch_init): Update.
2387         * ia64-tdep.c (ia64_gdbarch_init): Update.
2388         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2389         * vax-tdep.c (vax_gdbarch_init): Update.
2390         * alpha-tdep.c (alpha_gdbarch_init): Update.
2391         * arm-tdep.c (arm_gdbarch_init): Update.
2392         * mips-tdep.c (mips_gdbarch_init): Update.
2393         * i386-tdep.c (i386_gdbarch_init): Update.
2394
2395 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
2396
2397         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2398         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2399
2400 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2401
2402         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
2403         problems.
2404
2405 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2406
2407         * infrun.c (handle_inferior_event): Move a comment outside of a
2408         function call, in order to avoid indent reformatting this part
2409         of the code in an unreadable way.
2410
2411 2002-08-23  Grace Sainsbury  <graces@redhat.com>
2412
2413         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2414         when breakpoints fail. Move general breakpoint error messages to
2415         insert_breakpoints.  
2416         * breakpoint.c (insert_breakpoints): Change warnings when
2417         breakpoints are nto inserted to specify the type. Remove call to
2418         memory_error when hardware breakpoints can't be inserted. Remove
2419         multiple calls to warning so all messages are sent to the user at
2420         once.
2421         (delete_breakpoints): Make insert error messsages more explicit.
2422
2423 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
2424
2425         * ChangeLog: Move gdbserver entries after GDB 5.2 to
2426         gdbserver/ChangeLog.
2427
2428 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
2429
2430         * i386-tdep.c: Include "objfiles.h".
2431         (i386_svr4_init_abi): Set in_solib_call_trampoline and
2432         skip_trampoline_code.
2433         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2434         (CPLUS_MARKER): Define to '.'.
2435
2436         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2437         member.
2438         (linux_corefile_thread_callback): Increase args->num_notes.
2439         (linux_make_note_section): Initialize thread_args.num_notes, and
2440         use it to determine whether notes for any threads were created.
2441
2442 2002-08-23  Donn Terry  <donnte@microsoft.com>
2443
2444         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2445         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2446         and PCUNKILL.
2447         (write_with_trace): Conditionalize out the switch branch handling
2448         PCSHOLD if the corresponding macro is not defined. Likewise for
2449         PRSABORT and PRSTOP.
2450         This change will be needed by the Interix port.
2451
2452 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2453
2454         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2455         write_register wherever possible instead of manipulating the
2456         register bytes directly.
2457         Assign VALUE_CONTENTS to a variable and use that.
2458         The GPR numbers are now dependent on the architecture.
2459         
2460 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2461
2462         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2463         ev_offset fields.
2464         (skip_prologue): Add support for BookE/e500 instructions.
2465         (e500_extract_return_value): New function.
2466         (frame_get_saved_regs): Add support for saving ev registers and
2467         pseudo gpr's.
2468         (e500_store_return_value): New function.
2469         (rs6000_gdbarch_init): Move up default intializations of
2470         deprecated_extract_return_value and store_return_value.  Overwrite
2471         init of store_return_value with e500 specific version.
2472         Set extract_return_value for e500.
2473         
2474 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2475
2476         * blockframe.c (generic_call_dummy_register_unwind): Use
2477         regcache_cooked_read to catch cases in which the variable is
2478         stored in a pseudo register.
2479
2480 2002-08-22  Andrew Cagney  <cagney@redhat.com>
2481
2482         * NEWS: Mention that the i960 has been made obsolete.
2483         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2484         i960-tdep.c
2485         (remote-nrom.o): Obsolete target.
2486         (remote-nindy.o, i960-tdep.o): Ditto.
2487         * remote-nrom.c: Make file obsolete.
2488         * remote-nindy.c, remote-vx960.c: Ditto.
2489         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2490         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2491         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2492         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2493         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2494         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2495         i960-*-vxworks* obsolete.
2496         * MAINTAINERS: Note that the i960 is obsolete.
2497
2498 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
2499
2500         * aix-thread.c (aix_thread_detach): Disable thread debugging on
2501         detach to allow reinitialization.
2502
2503 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
2504
2505         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2506         attempt).
2507
2508 2002-08-22  Jim Blandy  <jimb@redhat.com>
2509
2510         * coffread.c (coff_symfile_read): Don't try to read the line
2511         number table from disk if the image file doesn't have a symbol
2512         table; we'll never actually look at the info anyway, and Windows
2513         ships DLL's with bogus file offsets for the line number data.
2514
2515 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2516
2517         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2518         an e500 executable.
2519
2520 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2521
2522         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2523         (MSYMBOL_SIZE): Replace macro with function.
2524         (DEFAULT_MIPS_TYPE): Delete unused macro.
2525         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2526         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2527
2528 2002-08-21  Jim Blandy  <jimb@redhat.com>
2529
2530         * valops.c (value_cast): Simplify and correct logic for doing a
2531         static cast from a pointer to a base class to a pointer to a
2532         derived class.
2533
2534 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2535
2536         * infcmd.c (default_print_registers_info): Replace
2537         do_registers_info.
2538         (registers_info): Use gdbarch_print_registers_info instead of
2539         DO_REGISTERS_INFO.
2540         * inferior.h (default_print_registers_info): Replace
2541         do_registers_info.
2542         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2543         (DO_REGISTERS_INFO): Change to a predicate function.
2544         * gdbarch.h, gdbarch.c: Regenerate.
2545         
2546 2002-08-21  Keith Seitz  <keiths@redhat.com>
2547
2548         * gdb-events.sh: Add target-changed event.
2549         * gdb-events.c: Regenerated.
2550         * gdb-events.c: Regenerated.
2551         * valops.c (value_assign): Add target-changed event notification
2552         to inlval_register, lval_memory, and lval_reg_frame_relative.
2553
2554 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2555
2556         * NEWS: Add an entry regarding the improvement of the next/step
2557         operation on Alpha Tru64 multi-processor machines.
2558
2559 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2560
2561         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2562         directores.
2563         * Makefile.in: Update all _h macro definitions.
2564         * Makefile.in (install-gdbtk): Move to install section.
2565         (rdi-share/libangsd.a): Move to end of file.
2566
2567 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2568
2569         * frame.c (frame_register_unwind): When a register, set addrp to
2570         the register's byte.
2571
2572 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2573
2574         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2575         used locally, so move them from the target machine header to here.
2576         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2577         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2578         Make static.
2579         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2580
2581 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2582
2583         * NEWS: Mention that the Apollo line was made obsolete.
2584         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2585         m68*-hp-hpux* obsolete.
2586         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2587         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2588         * buildsym.c (make_blockvector): Make static.
2589         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2590         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2591         (ALLDEPFILES): Remove dstread.c.
2592         (dstread.o): Obsolete make rule.
2593         * dstread.c: Makefile obsolete.
2594         * dst.h: Ditto.
2595         * config/m68k/hp300hpux.mt: Ditto.
2596         * config/m68k/hp300hpux.mh: Ditto.
2597         * config/m68k/hp300bsd.mt: Ditto.
2598         * config/m68k/hp300bsd.mh: Ditto.
2599         * config/m68k/apollo68b.mt: Ditto.
2600         * config/m68k/apollo68v.mh: Ditto.
2601         * config/m68k/apollo68b.mh: Ditto.
2602
2603 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2604
2605         * mips-tdep.c (mips_in_return_stub): Make static.
2606         (mips_gdbarch_init): Set in_solib_return_trampoline.
2607         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2608
2609 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2610
2611         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2612         * gdbarch.c, gdbarch.h: Regenerate.
2613         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2614         Add.
2615         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2616
2617 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2618
2619         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2620         (mips_gdbarch_init): Set skip_trampoline_code, 
2621         in_solib_call_trampoline.
2622         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2623         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2624
2625 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2626
2627         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2628
2629         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2630         vector type for ev registers.
2631         (e500_pseudo_register_read): New function.
2632         (e500_pseudo_register_write): New function.
2633         (e500_dwarf2_reg_to_regnum): New function.
2634         (PPC_UISA_NOFP_SPRS): New macro.
2635         (PPC_EV_REGS): New macro.
2636         (PPC_GPRS_PSEUDO_REGS): New macro.
2637         (registers_e500): New register set for e500.
2638         (variants): Add e500 variant.
2639         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2640         before setting architectural dependent variations.  Initialize ev
2641         registers numbers.  Add case for e500 architecture.  Set the
2642         number of pseudo registers.
2643
2644 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2645
2646         * rs6000-tdep.c: Clean up comments.
2647
2648 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2649
2650         * h8300-tdep.c: Re-indent file.
2651
2652 2002-08-20  Jim Blandy  <jimb@redhat.com>
2653
2654         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2655         default for this.
2656
2657 2002-08-20  Keith Seitz  <keiths@redhat.com>
2658
2659         * breakpoints.c (watch_command_1): Use internal breakpoint
2660         when setting a watchpoint_scope breakpoint.
2661
2662 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2663
2664         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2665         (build_builtin_type_vec64i): Ditto.
2666         (build_builtin_type_vec128): Ditto.
2667         (build_builtin_type_vec128i): Ditto.
2668
2669 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2670
2671         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2672         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2673         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2674         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2675         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2676         CALL_DUMMY_ADDRESS): Delete.
2677         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2678         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2679         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2680         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2681         push_return_address.
2682         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2683         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2684         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2685         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2686         mips_n32n64_push_arguments, mips_push_return_address,
2687         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2688         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2689
2690 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2691
2692         * mips-tdep.c (mips_frame_num_args): New function.
2693         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2694         frame_saved_pc, frame_args_address, frame_locals_address, 
2695         frame_num_args, and frame_args_skip.
2696         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2697         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2698         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2699         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2700
2701 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2702
2703         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2704         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2705         * mips-tdep.c (mips_store_struct_return): New function.
2706         (mips_extract_struct_value_address): New function.
2707         (mips_gdbarch_init): Set store_struct_return and
2708         extract_struct_value_address.
2709
2710 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2711
2712         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2713         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2714         (read_file_scope): Check that line_header is nonzero before
2715         decoding macro information.
2716
2717 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2718
2719         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2720         flag the general-purpose registers as floating-point on targets
2721         that don't support the floating-point registers.
2722
2723 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2724
2725         * rs6000-tdep.c (altivec_register_p): Delete.
2726         (rs6000_do_altivec_registers): Delete.
2727         (rs6000_altivec_registers_info): Delete.
2728         (rs6000_do_registers_info): Delete.
2729         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2730         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2731
2732 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2733
2734         * infcmd.c (do_registers_info): Print vector registers in hex
2735         format only.
2736         (print_vector_info): Check that printing registers
2737         makes sense.
2738         (print_float_info): Ditto.
2739
2740 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2741
2742         * mips-tdep.c (mips_gdbarch_init): Update.
2743         (mips_o32_extract_return_value): Rewrite.
2744         (mips_o32_store_return_value): Rewrite.
2745         (mips_o32_xfer_return_value): New function.
2746         (mips_xfer_register): Tweak debug print message.  Allow for
2747         buf_offset when dumping the value transfered.
2748
2749 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2750
2751         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2752         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2753         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2754         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2755         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2756
2757 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2758
2759         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2760
2761 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2762
2763         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2764         register.
2765         (P): New macro to define a register as a pseudo register.
2766         (R, R4, R8, R16, FR32, R64, R0): Updated.
2767         (struct variant): Add new fields for number of pseudo registers
2768         and number of total registers.
2769         (tot_num_registers): New macro replacing....
2770         (num_registers): ...deleted macro.
2771         (num_registers): New function.
2772         (num_pseudo_registers): New function.
2773         (variants): Update all variants to intialize new fields correctly.
2774         Postpone initialization of number of pseudo regs and real regs.
2775         (init_variants): New function.
2776         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2777         registers offsets.
2778
2779 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2780
2781         * valops.c (search_struct_field): Change error message to treat
2782         return value of 0 from value_static_field as meaning that field is
2783         optimized out.
2784         (value_struct_elt_for_reference): Ditto.
2785         * values.c (value_static_field): Treat an unresolved location the
2786         same as a nonexistent symbol.  Fix PR gdb/635.
2787         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2788         enclosed.  Fix PR gdb/574.
2789         * MAINTAINERS: Add self to Write After Approval list.
2790
2791 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2792
2793         * mips-tdep.c (mips_xfer_register): New function.
2794         (mips_n32n64_extract_return_value): Rewrite.
2795         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2796         instead of deprecated_extract_return_value.
2797
2798 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2799
2800         * rs6000-tdep.c (TDEP): Delete macro.
2801         (branch_dest): Replace use of TDEP macro with its body.
2802         (rs6000_pop_frame): Ditto.
2803         (rs6000_push_arguments): Ditto.
2804         (rs6000_skip_trampoline_code): Ditto.
2805         (rs6000_frame_saved_pc): Ditto.
2806         (rs6000_frame_chain): Ditto.
2807         (rs6000_register_name): Ditto.
2808         (rs6000_register_byte): Ditto.
2809         (rs6000_register_raw_size): Ditto.
2810         (rs6000_register_virtual_type): Ditto.
2811         (rs6000_register_convertible): Ditto.
2812         (rs6000_convert_from_func_ptr_addr): Ditto.
2813
2814 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2815
2816         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2817         conditionally.
2818         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2819         MIPS_LINUX_JB_ELEMENT_SIZE.
2820         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2821         for MAX_REGISTER_RAW_SIZE arrays.
2822         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2823         MIPS_LINUX_JB_ELEMENT_SIZE.
2824
2825 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2826
2827         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2828
2829 2002-08-19  Aidan Skinner <aidan@velvet.net>
2830
2831         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2832         ada-valprint.c ada-tasks.c.
2833         (YYFILES): Add ada-exp.y.
2834         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2835         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2836         (ada-exp.tab.o): New target.
2837                 
2838 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2839
2840         * regcache.c (regcache_xfer_part): New function.
2841         (regcache_raw_read_part): New function.
2842         (regcache_raw_write_part): New function.
2843         (regcache_cooked_read_part): New function.
2844         (regcache_cooked_write_part): New function.
2845         * regcache.h (regcache_raw_read_part): Declare.
2846         (regcache_raw_write_part): Declare.
2847         (regcache_cooked_read_part): Declare.
2848         (regcache_cooked_write_part): Declare.
2849
2850 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2851
2852         * remote.c (remote_open_1): Add async_p.
2853         (remote_async_open_1): Delete.
2854         (open_remote_target): Delete.
2855         (remote_open, extended_remote_open): Update calls to remote_open_1.
2856         (remote_async_open, extended_remote_async_open): Call
2857         remote_open_1 instead of remote_async_open_1.
2858
2859 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2860
2861         * blockframe.c: Fix a few coding standard violations.
2862
2863 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2864
2865         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2866         here from ...
2867         * config/i386/tm-i386sco5.h: ... here.  File removed.
2868         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2869
2870         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2871         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2872         (TM_FILE): Set to tm-i386.h.
2873         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2874         * config/i386/tm-i386v.h: Remove file.
2875         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2876         instead of "i386/tm-i386v.h".
2877         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2878         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2879         "i386/tm-i386v.h".
2880         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2881         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2882         "i386/tm-i386.h".
2883
2884 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2885
2886         * config/i386/nm-i386v.h: Add protection against
2887         multiple-inclusion.
2888         (i386_register_u_addr): Remove prototype.
2889         (register_u_addr): New prototype.
2890         (REGISTER_U_ADDR): Redefine accordingly.
2891         * i386v-nat.c: Improve several comments.
2892         (i386_register_u_addr): Change signature and rename to
2893         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2894         ubase variable.
2895
2896 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2897
2898         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2899         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2900         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2901         deprecated_extract_return_value.
2902         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2903         rename mips_o32o64_push_arguments.
2904         (mips_gdbarch_init): Update.
2905         (mips_extract_return_value): Delete.
2906         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2907         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2908         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2909         (mips_n32n64_extract_return_value): Clone
2910         mips_extract_return_value.
2911         (mips_store_return_value): Delete.
2912         (mips_o32_store_return_value): Clone mips_store_return_value.
2913         (mips_o64_store_return_value): Clone mips_store_return_value.
2914         (mips_eabi_store_return_value): Clone mips_store_return_value.
2915         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2916
2917 2002-08-18  Aidan Skinner <aidan@velvet.net>
2918
2919         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2920         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2921                 
2922 2002-08-18  Aidan Skinner <aidan@velvet.net>
2923
2924         * ada-lang.c: Run through gdb_indent.sh.
2925         * ada-lang.h: Run through gdb_indent.sh.
2926         * ada-tasks.c: Run through gdb_indent.sh.
2927         * ada-typeprint.c: Run through gdb_indent.sh.
2928         * ada-valprint.c: Run through gdb_indent.sh.
2929
2930 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2931
2932         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2933         ABI.
2934
2935 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2936
2937         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2938
2939         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2940         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2941
2942         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2943         write_register_gen instead of write_register_bytes.
2944
2945         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2946         i[3456]-*-osf1mk* configurations have been made obsolete.
2947         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2948         i[3456]86-*-osf1mk* hosts obsolete.
2949         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2950         targets obsolete.
2951         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2952         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2953         config/i386/i386m3.mt, config/i386/nm-m3.h,
2954         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2955         config/i386/i386mk.mh, config/i386/i386mk.mt,
2956         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2957         obsolete.
2958         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2959         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2960         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2961
2962 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2963
2964         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2965         (hppa_value_returned_from_stack): Declare.
2966         (hppa_extract_return_value): Declare.
2967         * config/pa/hppa.mt: New file.
2968         * configure.tgt: Recognize hppa*-*-*.
2969         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2970
2971 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2972
2973         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2974         comment.
2975
2976 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2977
2978         * top.c (gdb_rl_operate_and_get_next): Make sure
2979         operate-and-get-next functions correctly even when the history
2980         list is completely filled.
2981
2982 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2983
2984         * MAINTAINERS (Target Instruction Set Architectures): Rename
2985         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2986         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2987         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2988         already listed under Host/Native.
2989
2990         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2991         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2992         mips*-*-*.
2993
2994 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2995
2996         * config/ia64/ia64.mt: New file.
2997         * config/alpha/alpha.mt: New file.
2998         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2999         ia64-linux-gnu.  Mention that ia64-elf is broken.
3000         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3001
3002 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
3003
3004         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3005         generic_func_frame_valid instead of func_frame_valid.
3006
3007 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3008
3009         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3010         procfs appears to be broken when debugging on multi-processor
3011         machines. So enable software single stepping in order to avoid
3012         using the procfs interface to do next/step operations, using
3013         internal breakpoints instead.
3014
3015         * infrun.c (handle_inferior_event): Readjust the stop_pc by
3016         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3017         make this pc address equal to the value it would have if the
3018         system stepping capability was used. Also set a new flag used
3019         to ensure that we don't readjust the PC one more time later.
3020
3021         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3022         address by DECR_PC_AFTER_BREAK when software single step is
3023         in use for this architecture, as this has already been taken
3024         care of in handle_inferior_event().
3025
3026 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3027
3028         * infrun.c (handle_inferior_event): Minor reformatting, to make
3029         a rather long condition expression easier to read.
3030
3031 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3032
3033         * Makefile.in (gdbtk.o): Move to end of file.
3034         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3035         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3036         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3037         (gdbtk-wrapper.o, gdbres.o): Ditto.
3038
3039 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3040
3041         * Makefile.in (copying.o): Separate out compile rule.
3042         (hpux-thread.o, procfs.o, signals.o): Ditto.
3043         (v850ice.o, z8k-tdep.o): Ditto.
3044         (tui-file.o): Move to TUI section.
3045         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3046         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3047
3048 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3049
3050         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3051         skip_trampoline_code, for better namespace-proofing.   
3052
3053         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3054
3055 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3056
3057         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3058
3059 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
3060
3061         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3062         signal, check whether we hit a breakpoint before checking for a
3063         single step breakpoint. Otherwise, GDB fails to notice that a
3064         breakpoint has been hit when stepping onto a breakpoint.
3065
3066 2002-08-16  Keith Seitz  <keiths@redhat.com>
3067
3068         * gdb-events.sh (clear_gdb_event_hooks): New function.
3069         * gdb-events.c: Regenerate.
3070         * gdb-events.h: Regenerate.
3071
3072 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3073
3074         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3075         not_a_sw_breakpoint.
3076         * breakpoint.h (bpstat_stop_status): Add parameter names.
3077
3078 2002-08-16  Grace Sainsbury  <graces@redhat.com>
3079
3080         * remote.c (remote_insert_hw_breakpoint)
3081         (remote_remove_hw_breakpoint): Fix calculation of length field
3082         for Z-packet.
3083
3084 2002-08-15  Michael Snyder  <msnyder@redhat.com>
3085
3086         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3087         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3088         (supply_fpregset): Ditto.
3089         
3090         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
3091         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
3092         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3093         (TARGET_READ_SP): Delete.
3094         (DO_REGISTERS_INFO): Delete.
3095         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3096         Delete.
3097         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3098         from macros to functions.
3099
3100         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3101         (mips_register_convertible, mips_register_convert_to_virtual,
3102         mips_register_convert_to_raw): Make static.
3103         (mips_read_sp): New function.
3104         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3105         (mips_do_registers_info): Make static.
3106         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3107         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3108         (mips_register_convert_from_type, mips_register_convert_to_type):
3109         New functions.
3110         (mips_gdbarch_init): Set up function_start_offset, 
3111         register_virtual_size, pc_in_sigtramp.
3112
3113 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3114
3115         * infcmd.c (vector_info): New function.
3116         (_initialize_infcmd): Add command "info vector".
3117         (print_vector_info): New function.
3118
3119         * gdbarch.sh (PRINT_VECTOR_INFO): New method
3120         * gdbarch.h, gdbarch.c: Regenerate.
3121
3122 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3123
3124         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3125         ``print_all''.  Only print vector registers when ``print_all''.
3126
3127 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3128
3129         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3130         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3131
3132         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3133         Add `args' parameter.
3134         * gdbarch.h, gdbarch.c: Regenerate.
3135         
3136         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3137         
3138         * infcmd.c (float_info): Call print_float_info.
3139         (print_float_info): New function.  By default, print the
3140         floating-point registers.
3141
3142         * arch-utils.h (default_print_float_info): Delete declaration.
3143         * arch-utils.c (default_print_float_info): Delete function.
3144         
3145 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
3146
3147         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3148         out define.
3149
3150         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3151         FRAME.
3152
3153         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3154         * configure.host: Make i[3456]86-*-aix host obsolete.
3155         * configure.tgt: Make i[3456]86-*-aix target obsolete.
3156         * config/i386/i386aix.mh, config/i386/i386aix.mt,
3157         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3158         config/i386/xm-i386aix.h: Make files obsolete.
3159         * i386aix-nat.c: Make file obsolete.
3160         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3161         (i386aix-nat.o): Make target obsolete.
3162
3163         * config/i386/nm-gnu.h: Removed.
3164         * config/i386/nm-i386gnu.h: New file.
3165         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3166         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3167         Moved here from ...
3168         * config/i386/tm-i386gnu.h: ... here.  Removed.
3169         * config/i386/xm-i386gnu.h: Removed.
3170         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3171         (NAT_FILE): Set to nm-i386gnu.h.
3172         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3173         * i386-tdep.c: New file.
3174         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3175         (i386gnu-tdep.o): Specify dependencies.
3176
3177 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
3178
3179         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3180         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3181         Adjust a few comments to reflect reality a bit closer.
3182         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3183         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3184         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3185         target_insert_watchpoint, target_remove_watchpoint):
3186         Move defines to ...
3187         * config/i386/nm-i386sco5.h: ... here.
3188         (kernel_u_size): Add prototype.  Improve a few comments and add
3189         protection against multiple inclusion.
3190         
3191         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3192         out define.
3193
3194         * uw-thread.c (SP_ARG0): Define if not already defined.
3195         * config/i386/tm-i386.h (SO_ARG0): Remove define.
3196
3197         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3198
3199         * config/i386/tm-i386.h: Don't include "regcache.h".
3200
3201         * i387-tdep.h (i387_print_float_info): New prototype.
3202         * i387-tdep.c (print_i387_value, print_i387_ext,
3203         print_i387_status_word, print_i387_control_word): Add `struct
3204         ui_file *' argument and use it for output.
3205         (i387_print_float_info): Renamed from i387_float_info.  Add
3206         `struct gdbarch *' and `struct ui_file *' arguments and use the
3207         latter for output.
3208         * i386-tdep.c: Include "i387-tdep.h".
3209         (i386_gdbarch_init): Set print_float_info.
3210         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3211         (FLOAT_INFO): Remove define.
3212
3213 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3214
3215         * mips-tdep.c (mips_push_arguments): Rename to
3216         mips_eabi_push_arguments, and tune for EABI.
3217         (MIPS_REGS_HAVE_HOME_P): Delete.
3218         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3219         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3220         Delete references to mips_regs_have_home_p.
3221
3222 2002-08-14  Keith Seitz  <keiths@redhat.com>
3223
3224         * Makefile.in (install-gdbtk): Create insight plugin directory.
3225         Install plugins.tcl file.
3226
3227 2002-08-14  Keith Seitz  <keiths@redhat.com>
3228
3229         * configure.in: Move SUBDIRS to near top of the file so that
3230         --enable options may add things to it.
3231         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3232         * configure: Regenerate.
3233
3234 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3235
3236         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
3237         cloned from mips_push_arguments, tuned for o32/o64 ABI.
3238         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3239
3240 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
3241
3242         * vax-tdep.c (vax_get_saved_register): Delete function.
3243         (vax_gdbarch_init): Update.
3244         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3245         (ns32k_gdbarch_init): Update.
3246         * alpha-tdep.c (alpha_get_saved_register): Delete function.
3247         (alpha_gdbarch_init): Update.
3248
3249 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3250
3251         * regcache.c (init_regcache_descr): Overallocate the
3252         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3253         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3254         nr_raw_registers.
3255         (set_register_cached): Add range checking assertions.  Use
3256         current_regcache.
3257
3258 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
3259
3260         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3261         numbers for MMX registers.
3262
3263 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3264
3265         * i386-tdep.c (i386_gdbarch_init): Use
3266         generic_unwind_get_saved_register.
3267
3268 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
3269
3270         * procfs.c (procfs_can_use_hw_breakpoint): New function.
3271         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3272         target vector.
3273         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3274         Delete.  Add comment regarding this now-deleted target method.
3275
3276 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3277
3278         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3279         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3280         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3281         real PC and the page number (if it's within the memory bank window).
3282         (m68hc11_pseudo_register_write): Likewise when saving.
3283         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3284         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3285         (m68hc11_register_raw_size): And use 32-bit for it.
3286         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3287         16K memory bank is used by the prog; also use the virtual pc.
3288
3289 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3290
3291         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3292         (m68hc11_gdbarch_init): Install it in gdbarch.
3293         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3294         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3295         (MSYMBOL_SIZE): New for documentation.
3296         (insn_return_kind): Enum to specify how a function returns.
3297         (frame_extra_info): Cleanup and record the return mode.
3298         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
3299         register in address computation.
3300         (m68hc11_get_return_insn): New to obtain the return instruction used
3301         by the function.
3302         (m68hc11_frame_init_saved_regs): Take into account the return
3303         instruction used by the function for far and interrupt functions.
3304         (m68hc11_init_extra_frame_info): Take into account page register.
3305         (m68hc11_frame_args_address): Adjust according to the return mode.
3306         (show_regs): Print page register only when it's used.
3307
3308 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3309
3310         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3311         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3312         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3313         registers.
3314         (m68hc11_register_raw_size): Likewise.
3315
3316 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3317
3318         * i386-tdep.c (i386_register_name): Handle mmx registers.
3319         (mmx_regnum_p): New function.
3320         (i386_mmx_names): New array.
3321         (mmx_num_regs): New variable.
3322         (i386_pseudo_register_read): New function.
3323         (i386_pseudo_register_write): New function.
3324         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3325
3326         * regcache.c (regcache_raw_read_unsigned): New function.
3327         (regcache_raw_read_signed): New function.
3328         * regcache.h (regcache_raw_read_unsigned): Declare.
3329         (regcache_raw_read_signed): Declare.
3330
3331 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3332
3333         * regcache.c (regcache_raw_read_as_address): Delete function.
3334         (regcache_cooked_read_signed): New function.
3335         (regcache_cooked_read_unsigned): New function.
3336         * regcache.h (regcache_cooked_read_signed): Declare.
3337         (regcache_cooked_read_unsigned): Declare.
3338         (regcache_raw_read_as_address): Delete declaration.
3339
3340         * blockframe.c (generic_read_register_dummy): Use
3341         regcache_cooked_read_unsigned.
3342         * i386-tdep.c (i386_extract_struct_value_address): Use
3343         regcache_cooked_read_unsigned.
3344
3345 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3346
3347         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3348         double sizes according to ELF ABI flags.
3349         (gdbarch_tdep): Record elf_flags.
3350
3351 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3352
3353         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3354         (m6812_prolog): They can appear in 68HC12 function prologue.
3355         (m68hc11_frame_chain): Cleanup.
3356
3357 2002-08-12  Andrew Cagney  <cagney@redhat.com>
3358
3359         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3360         declarations.
3361         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3362         (i386_linux_register_raw_size): Delete function.
3363         (i386_linux_init_abi): Update.
3364         * i386-tdep.c (i386_register_raw_size): Delete function.
3365         (i386_register_byte): Delete function.
3366         (i386_gdbarch_init): Update.
3367         (i386_register_size): Delete array.
3368         (i386_register_offset): Delete array.
3369
3370         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3371         (REGISTER_RAW_SIZE): Delete macro.
3372         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3373         (REGISTER_BYTE): Delete macro.
3374
3375 2002-08-11  Aidan Skinner <aidan@velvet.net>
3376
3377         * ada-lang.c (ada_lookup_partial_symbol)
3378         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3379         prototype names so that grep ^func works properly.
3380
3381         * ada-lang.c (ada_array_element_type)
3382         (ada_lookup_partial_symbol): Fix typos in parameter list.
3383
3384         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3385         Fix prototype names so that grep ^func works properly.
3386         
3387 2002-08-10  Andrew Cagney  <cagney@redhat.com>
3388             Elena Zannoni  <ezannoni@redhat.com>
3389             Martin M. Hunt  <hunt@redhat.com>
3390
3391         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3392         (build_builtin_type_vec128i): Set the vector bit.
3393         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3394         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3395         (build_builtin_type_vec64): New function.
3396         (build_builtin_type_vec64i): New function.
3397         (build_gdbtypes): Initialize builtin_type_vec64 and
3398         builtin_type_vec64i.
3399
3400 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3401
3402         * regcache.c (regcache_dump): Compare the register offset
3403         with REGISTER_BYTE.
3404         * arch-utils.c (generic_register_byte): New function.
3405         * arch-utils.h (generic_register_byte): Declare.
3406         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3407         * gdbarch.h, gdbarch.c: Regenerate.
3408
3409 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3410
3411         * regcache.c: Include "gdbcmd.h"
3412         (_initialize_regcache): Add commands "maintenance print
3413         registers", "maintenance print raw-registers" and "maintenance
3414         print cooked-registers".
3415         (enum regcache_dump_what): Define.
3416         (dump_endian_bytes): New function.
3417         (regcache_dump): New function.
3418         (regcache_print): New function.
3419         (maintenance_print_registers): New function.
3420         (maintenance_print_raw_registers): New function.
3421         (maintenance_print_cooked_registers): New function.
3422         * Makefile.in (regcache.o): Update dependencies.
3423
3424 2002-08-09  Michael Snyder  <msnyder@redhat.com>
3425
3426         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3427         (mips_push_arguments): Correct some comments.  Use paddr_nz
3428         for printing addresses in debug output.  Replace static
3429         allocation using MAX_REGISTER_RAW_SIZE with alloca.
3430         (mips_n32n64_push_arguments): New function, cloned from
3431         mips_push_arguments and tuned for the n32/n64 ABI.
3432         (mips_push_register): Buffer needs dynamic allocation.
3433         (mips_print_register): Ditto.
3434         (do_gp_register_row): Ditto.
3435         (mips_store_return_value): Ditto.
3436         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3437
3438 2002-08-09  Don Howard  <dhoward@redhat.com>
3439
3440         * memattr.c (mem_info_command): Print special case of upper bound
3441         as max CORE_ADDR + 1.
3442
3443 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3444
3445         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
3446         returns structs by ref if they're too big to fit in two registers.
3447
3448 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3449
3450         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3451         saved regs value.
3452         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3453         mips_find_saved_regs().
3454         (mips_pop_frame): Likewise.
3455
3456 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3457
3458         * blockframe.c (frame_saved_regs_register_unwind): Revise
3459         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3460         frames are in use.
3461
3462 2002-08-09  Grace Sainsbury  <graces@redhat.com>
3463         
3464         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3465         T-packets; the 'a' is not taken as a register number.
3466         (remote_check_watch_resources, remote_stopped_by_watchpoint)
3467         (remote_stopped_data_address): New functions; add to target
3468         vector.
3469         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3470         prototypes to match other implementations of this
3471         function. replace integer argument with pointer -- the length
3472         field in the Z-packet is the length of what is pointed to or 1 if
3473         pointer is null. Add to target vector.
3474         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3475         target vector.
3476
3477         From Mark Salter:
3478         * remote.c (remote_wait): Add support to extract optional
3479         watchpoint information from T-packet. Ignore unrecognized
3480         optional info in T-packet.
3481         (remote_async_wait): Ditto.
3482
3483 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
3484
3485         * cli/cli-dump.c: Change fopen modes to use binary open modes
3486         as defined in include/fopen-bin.h throughout.
3487
3488 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3489
3490         * mips-tdep.c: Minor whitespace and indentation clean-ups.
3491
3492 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3493
3494         * doublest.c (store_floating): Avoid floatformat_from_doublest()
3495         assertion failure by returning early after a warning.
3496
3497 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3498
3499         * mips-tdep.c (mips_find_saved_regs): Make static.
3500         (mips_frame_init_saved_regs): New function.
3501         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3502         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3503         (mips_find_saved_regs): Delete declaration.
3504
3505 2002-08-08  Grace Sainsbury  <graces@redhat.com>
3506
3507         * remote.c (remote_wait, remote_async_wait): Change
3508         thread_num from int to ULONGEST.
3509         (unpack_varlen_hex): Change result parameter from
3510         int * to ULONGEST *.
3511
3512 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
3513
3514         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3515         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3516         powerpc*-*-*.
3517         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3518
3519 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3520
3521         * gcore.c (override_derive_stack_segment): Delete variable.
3522         (preempt_derive_stack_segment): Delete function.
3523         (derive_stack_segment): Delete function.
3524         (default_derive_stack_segment): Renamed to derive_stack_segment.
3525         (override_derive_heap_segment): Delete variable.
3526         (preempt_derive_heap_segment): Delete function.
3527         (derive_heap_segment): Delete function.
3528         (default_derive_heap_segment): Rename to derive_heap_segment.
3529
3530 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3531
3532         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3533         * mips-tdep.c (mips_EABI_use_struct_convention, 
3534         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3535         New functions.  (mips_use_struct_convention): Delete.
3536         (mips_gdbarch_init): set use_gdbarch_convention.
3537
3538 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3539
3540         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3541         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3542         mips_o32_reg_struct_has_addr): New functions.
3543         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3544
3545 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3546
3547         * regcache.c (pseudo_register): Delete function.
3548         (fetch_register): Delete function.
3549         (store_register): Delete function.
3550         (regcache_raw_read, legacy_read_register_gen): Use
3551         target_fetch_registers instead of fetch_register.
3552         (legacy_write_register_gen, regcache_raw_write): Use
3553         target_store_register instead of store_register.
3554         (write_register_bytes): Ditto.
3555
3556         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3557         (STORE_PSEUDO_REGISTER): Delete.
3558         * gdbarch.h, gdbarch.c: Regenerate.
3559
3560 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3561
3562         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3563         write dump file binary.
3564
3565 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3566
3567         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3568         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3569         (mips_gdbarch_init): Set N32 target to be mips64.
3570
3571 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3572
3573         * frame.c (find_saved_register): Break out of loop once saved
3574         register address is found.  Don't mention sparc in loop comment
3575         anymore.
3576
3577 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3578
3579         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3580         mips_default_saved_regsize to 8.
3581
3582 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3583
3584         * gcore.c: Do not include <sys/procfs.h>.
3585         * Makefile.in (gcore.o): Update dependencies.
3586
3587 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3588
3589         * configure.tgt: Make arc-*-* obsolete.
3590         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3591         * MAINTAINERS: Make arc-elf obsolete.
3592         * arc-tdep.c: Make file obsolete.
3593         * config/arc/arc.mt: Ditto.
3594         * config/arc/tm-arc.h: Ditto.
3595
3596 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3597
3598         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3599
3600 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3601
3602         * mcore-tdep.c (mcore_gdbarch_init): Use
3603         generic_unwind_get_saved_register instead of
3604         generic_get_saved_register.
3605         * v850-tdep.c (v850_gdbarch_init): Ditto.
3606         * frv-tdep.c (frv_gdbarch_init): Ditto.
3607         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3608         * s390-tdep.c (s390_gdbarch_init): Ditto.
3609         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3610         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3611         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3612
3613 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3614
3615         * objfiles.h: Add missing #include "symfile.h"
3616
3617         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3618
3619 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3620
3621         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3622         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3623         of FIELD_BITSIZE.
3624
3625 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3626
3627         * NEWS: Cleanup and nitpick.
3628
3629 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3630
3631         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3632
3633 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3634
3635         * Makefile.in (gdbtk-bp.o): Update dependencies.
3636         (gdbtk-register.o): Ditto.
3637         (gdbtk-varobj.o): Ditto.
3638
3639 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3640
3641         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3642         m68hc11_fetch_pseudo_register.
3643         (m68hc11_pseudo_register_write): Replace
3644         m68hc11_store_pseudo_register.
3645         (m68hc11_gdbarch_init): Update.
3646
3647 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3648
3649         * gdbarch.sh: Include "gdb_string.h".
3650         * gdbarch.c: Regenerate.
3651
3652         * regcache.c: Include "gdb_string.h".
3653         * ax-general.c: Ditto.
3654         * varobj.c: Ditto.
3655         * std-regs.c: Ditto.
3656         * fbsd-proc.c: Ditto.
3657         * thread.c: Ditto.
3658
3659         * Makefile.in (regcache.o): Update dependencies.
3660         (thread.o, gdbarch.o): Ditto.
3661         (ax-general.o, gdbarch.o): Ditto.
3662         (varobj.o, std-regs.o): Ditto.
3663         (fbsd-proc.o): Specify dependencies.
3664
3665 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3666
3667         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3668         regnum.
3669         (regcache_cooked_write): Ditto.
3670
3671 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3672
3673         * regcache.c (regcache_cooked_read): New function.
3674         (regcache_cooked_write): New function.
3675         (read_register_gen): Rewrite using regcache_cooked_read.
3676         (write_register_gen): Rewrite using regcache_cooked_write.
3677
3678         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3679         Declare.
3680
3681 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3682
3683         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3684         Replace the architecture methods register_read and register_write.
3685         * gdbarch.h, gdbarch.c: Regenerate.
3686         * regcache.c (init_regcache_descr): Update.
3687         (read_register_gen): Update.
3688         (write_register_gen): Update.
3689         (supply_register): Update comment.
3690
3691         * sh-tdep.c (sh_gdbarch_init): Update.
3692         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3693         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3694         pointer.  Update code.
3695         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3696         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3697         void pointer.  Update code.
3698         (sh64_register_write): Delete.
3699         (sh4_register_read): Delete.
3700         (sh64_register_read): Delete.
3701         (sh4_register_write): Delete.
3702         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3703         void pointer, `to' parameter a void pointer.
3704         (sh_sh64_register_convert_to_raw): Ditto.
3705
3706 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3707
3708         * mips-tdep.c (mips_register_virtual_type): Use architecture
3709         invariant return values.
3710
3711 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3712
3713         * linux-proc.c: Include "gdb_string.h".
3714         * Makefile.in (linux-proc.o): Update dependency list.
3715
3716 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3717
3718         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3719         comment.
3720
3721 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3722
3723         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3724         to_insert_watchpoint, to_remove_watchpoint,
3725         to_stopped_by_watchpoint, to_stopped_data_address,
3726         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3727         target vecctor. Define their corresponding macros so they call
3728         them.
3729         
3730         * target.c: Add default and debug versions of for
3731         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3732         to_insert_watchpoint, to_remove_watchpoint,
3733         to_stopped_by_watchpoint, to_stopped_data_address,
3734         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3735
3736 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3737
3738         * mips-tdep.c (mips_register_virtual_type): New function.
3739         (mips_gdbarch_init): Register mips_register_virtual_type()
3740         with gdbarch machinery.
3741         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3742         this file instead of tm-bigmips.h.
3743         (MIPS_REGSIZE): Delete this macro.
3744         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3745         multiarch version in mips-tdep.c will be found.
3746
3747 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3748
3749         * NEWS: Menion that CHILL has been made obsolete.
3750
3751         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3752         * stabsread.c (read_range_type): Ditto.
3753         * gdbtypes.h: Ditto.
3754         * language.c (binop_type_check): Ditto.
3755         (binop_result_type): Ditto.
3756         (integral_type): Ditto.
3757         (character_type): Ditto.
3758         (string_type): Ditto.
3759         (boolean_type): Ditto.
3760         (structured_type): Ditto.
3761         (lang_bool_type): Ditto.
3762         (binop_type_check): Ditto.
3763         * language.h (_LANG_chill): Ditto.
3764         * dwarfread.c (set_cu_language): Ditto.
3765         * dwarfread.c (CHILL_PRODUCER): Ditto.
3766         * dwarfread.c (handle_producer): Ditto.
3767         * expression.h (enum exp_opcode): Ditto.
3768         * eval.c: Ditto for comments.
3769         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3770         * expprint.c (print_subexp): Ditto.
3771         (print_subexp): Ditto.
3772         * valops.c (value_cast): Ditto.
3773         (search_struct_field): Ditto.
3774         * value.h (COERCE_VARYING_ARRAY): Ditto.
3775         * symfile.c (init_filename_language_table): Ditto.
3776         (add_psymbol_with_dem_name_to_list): Ditto.
3777         * valarith.c (value_binop): Ditto.
3778         (value_neg): Ditto.
3779         * valops.c (value_slice): Ditto.
3780         * symtab.h (union language_specific): Ditto.
3781         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3782         (SYMBOL_DEMANGLED_NAME): Ditto.
3783         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3784         * defs.h (enum language): Ditto.
3785         * symtab.c (got_symtab): Ditto.
3786         * utils.c (fprintf_symbol_filtered): Ditto.
3787
3788         * ch-typeprint.c: Make file obsolete.
3789         * ch-valprint.c: Make file obsolete.
3790         * ch-lang.h: Make file obsolete.
3791         * ch-exp.c: Make file obsolete.
3792         * ch-lang.c: Make file obsolete.
3793
3794         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3795         CHILL_LIB.
3796         (TARGET_FLAGS_TO_PASS): Ditto.
3797         (CHILLFLAGS): Obsolete.
3798         (CHILL): Obsolete.
3799         (CHILL_FOR_TARGET): Obsolete.
3800         (CHILL_LIB): Obsolete.
3801         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3802         ch-valprint.c.
3803         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3804         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3805         ch-lang.o.
3806         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3807         targets.
3808
3809 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3810
3811         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3812         This does not change anything at the moment, but will be helpful
3813         later when full Ada support is integrated.
3814
3815 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3816
3817         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3818         help message.
3819
3820 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3821
3822         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3823         and save it in a local variable.  Use variable in later test.
3824
3825 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3826
3827         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3828         test.  (Thanks to Daniel Jacobowitz.)
3829         
3830 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3831
3832         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3833         (mips_abi_strings): Add "n64".
3834         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3835
3836 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3837
3838         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3839         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3840
3841 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3842
3843         * utils.c (host_pointer_to_address, address_to_host_pointer):
3844         Use gdb_assert() instead of explicit call to internal_error().
3845
3846 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3847
3848         * Makefile.in (rs6000-nat.o): Update dependencies.
3849
3850         From Nicholas Duffek:
3851         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3852         (aix-thread.o): New rule.
3853         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3854         * config/powerpc/aix432.mh: New file.
3855
3856 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3857
3858         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3859         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3860         (fetch_core_registers, ppc_linux_supply_gregset)
3861         (ppc_linux_supply_fpregset): New functions.
3862         (ppc_linux_regset_core_fns): New.
3863         (_initialize_ppc_linux_tdep): Call add_core_fns.
3864         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3865         and ppc_linux_supply_gregset.
3866         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3867         (supply_fpregset): Call ppc_linux_supply_fpregset.
3868         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3869         corelow.o.
3870         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3871
3872 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3873
3874         * symtab.c (lookup_symbol): Demangle before lowercasing.
3875
3876 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3877
3878         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3879         declaration.
3880         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3881         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3882         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3883         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3884         "gdb_string.h".
3885         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3886         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3887         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3888         (avr-tdep.o, mon960-rom.o): Ditto.
3889         (aout_stabs_gnu_h): Define.
3890         (symtab_h): Remove $(gdb_obstack_h).
3891
3892 2002-07-30  Jim Blandy  <jimb@redhat.com>
3893
3894         Patch from David Carlton <carlton@math.stanford.edu>:
3895         * gdbinit.in: Move the `dir' commands that add GDB's own source
3896         directory to the search path to the end, so that the `gdb' source
3897         directory will be searched first.
3898
3899 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3900
3901         * gdb_obstack.h: New file.
3902         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3903         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3904         * objfiles.h: Include "gdb_obstack.h".
3905         * Makefile.in (gdb_obstack_h): Define.
3906         (symtab_h): Add $(gdb_obstack_h).
3907         (objfiles_h): Add $(gdb_obstack_h).
3908         
3909         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3910         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3911         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3912         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3913         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3914         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3915         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3916         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3917
3918         * Makefile.in (bcache.o): Update dependencies.
3919         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3920         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3921         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3922         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3923         (stabsread.o, symfile.o, symmisc.o): Ditto.
3924         (symtab.o, typeprint.o, macroexp.o): Ditto.
3925         (macrotab.o, mdebugread.o): Ditto.
3926         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3927         (coff_ecoff_h, aout_aout64_h): Define.
3928         (aout_stabs_gnu_h, libaout_h): Define.
3929
3930 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3931
3932         * regcache.c (struct regcache_descr): Rename nr_registers to
3933         nr_cooked_registers.  Revise comments describing the structure
3934         member fields.
3935         (init_regcache_descr): Update.
3936         (init_legacy_regcache_descr): Update.
3937         (read_register_gen, write_register_gen): When a cooked register in
3938         the raw register range, directly access the value from the raw
3939         register cache.
3940
3941 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3942
3943         * z8k-tdep.c: Do not include "obstack.h".
3944         * h8300-tdep.c, h8500-tdep.c: Ditto.
3945         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3946         * valprint.c, v850-tdep.c: Ditto.
3947         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3948         * mn10200-tdep.c: Ditto.
3949
3950         * Makefile.in (z8k-tdep.o): Update dependencies.
3951         (m68hc11-tdep.o, valprint.o): Ditto.
3952         (v850-tdep.o, d10v-tdep.o): Ditto.
3953         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3954         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3955         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3956         (sh_opc_h, gdb_sim_sh_h): Define.
3957         (elf_sh_h, elf_bfd_h): Define.
3958         (opcode_m68hc11_h): Define.
3959         (OPCODES_SRC, OPCODES_DIR): define.
3960         (OPCODES): Use $(OPCODES_DIR).
3961         (gdb_sim_d10v_h): Rename sim_d10v_h.
3962         (gdb_sim_arm_h): Rename sim_arm_h.
3963
3964 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3965
3966         * utils.c (host_pointer_to_address, address_to_host_pointer):
3967         Change internal_error() message to indicate function responsible
3968         for the error.
3969
3970 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3971
3972         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3973         calls to local_hex_string_custom().
3974
3975 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3976
3977         * irix5-nat.c: Move IRIX shared library support from here...
3978         * solib-irix.c: ...to here.  Revised substantially to work with
3979         generic solib framework.
3980
3981         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3982         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3983         * mips-irix-tdep.c: New file.
3984
3985         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3986         (mips-irix-tdep.o, solib-irix.o): New rules.
3987         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3988         solib-irix.o.
3989         * config/mips/irix6.mt (TDEPFILES): Likewise.
3990         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3991
3992 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3993
3994         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3995         disabled (via ``#if 0'') includes.
3996
3997 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3998
3999         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4000         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4001         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4002         Add support for the fpscr register.
4003         * rs6000-nat.c (regmap, fetch_inferior_registers)
4004         (store_inferior_registers, fetch_core_registers): Likewise.
4005
4006 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
4007
4008         * rs6000-nat.c (language.h): Include.
4009         (special_regs): Delete this array.
4010         (regmap): New function.
4011         (fetch_register, store_register):  Use regmap() to map gdb
4012         register numbers to ptrace register numbers.  Also, use
4013         outputs from regmap() to make decisions regarding type of
4014         ptrace() call to make.  In particular, don't compare against
4015         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4016         (fetch_inferior_registers, store_inferior_registers): Where
4017         possible, obtain register numbers from tdep struct.  Don't
4018         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4019         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4020         (LAST_UISA_SP_REGNUM): Delete.
4021         
4022 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
4023
4024         * rs6000-nat.c (ppc-tdep.h): Include.
4025         (fetch_registers, store_register, fetch_core_registers): Don't
4026         access registers[] directly.  Instead, use supply_register() or
4027         regcache_collect() as appropriate.
4028         (find_toc_address): Format hex address with local_hex_string().
4029
4030 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
4031
4032         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4033         bfd/elf32-frv.c.
4034
4035 2002-07-24  Tom Tromey  <tromey@redhat.com>
4036
4037         * jv-exp.y: Marked all strings with _().
4038         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4039         internal_error.
4040         (MethodInvocation, CastExpression, parse_number, yyerror,
4041         java_type_from_name, push_expression_name, yylex): Typo fixes.
4042
4043 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
4044
4045         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4046         (tee_file_flush, tee_file_write, tee_file_fputs)
4047         (tee_file_isatty): New.
4048         * ui-file.h (tee_file_new): Add prototype.
4049
4050 2002-07-24  Aidan Skinner <aidan@velvet.net>
4051
4052         * ada-lang.c: Change k&r style function definitions to prototyped
4053         form.
4054         * ada-typeprint.c: Change k&r style function definitions to prototyped
4055         form.
4056         * ada-valprint.c: Change k&r style function definitions to prototyped
4057         form.
4058         
4059 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4060
4061         * README: Remove reference to remote-bug.
4062         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4063         remote-bug.c.
4064         (m88k-nat.o): Delete rule.
4065         (m88k-tdep.o): Delete rule.
4066         (remote-bug.o): Delete rule.
4067         * MAINTAINERS: Mark as obsolete.
4068         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4069         * m88k-tdep.c: Make file obsolete.
4070         * config/m88k/m88k.mh: Ditto.
4071         * config/m88k/delta88v4.mh: Ditto.
4072         * config/m88k/delta88v4.mt: Ditto.
4073         * config/m88k/delta88.mt: Ditto.
4074         * config/m88k/delta88.mh: Ditto.
4075         * remote-bug.c: Ditto.
4076         * config/m88k/tm-delta88.h: Ditto.
4077         * config/m88k/nm-delta88v4.h: Ditto.
4078         * config/m88k/xm-delta88.h: Ditto.
4079         * config/m88k/xm-dgux.h: Ditto.
4080         * config/m88k/tm-m88k.h: Ditto.
4081         * config/m88k/nm-m88k.h: Ditto.
4082         * config/m88k/tm-delta88v4.h: Ditto.
4083         * m88k-nat.c: Ditto.
4084         * cxux-nat.c: Ditto.
4085         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4086         and m88*-*-* obsolete.
4087         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4088         m88*-*-* obsolete.
4089
4090 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4091
4092         * findvar.c (extract_unsigned_integer): Make `addr' parameter
4093         constant.  Same for local pointer variables.
4094         (extract_signed_integer): Ditto.
4095         * defs.h (extract_unsigned_integer): Update.
4096         (extract_signed_integer): Update.
4097
4098 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4099
4100         * regcache.c (regcache_raw_write): Change buf parameter to a
4101         constant void pointer.
4102         (regcache_raw_read): Change buf parameter to a void pointer.
4103         (legacy_write_register_gen): Change myaddr parameter a constant
4104         void pointer.
4105         (supply_register): Change val parameter to a const void pointer.
4106         * regcache.h (regcache_raw_write): Update declaration.
4107         (regcache_raw_read): Update declaration.
4108         (supply_register): Update declaration.
4109
4110 2002-07-24  Tom Tromey  <tromey@redhat.com>
4111
4112         * defs.h (gdb_readline_wrapper): Declare.
4113         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4114         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4115         * top.c (gdb_readline_wrapper): New function.
4116         (command_line_input): Use it.
4117
4118 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4119
4120         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4121         regcache_read and regcache_write.
4122         (regcache_raw_read_as_address): Replace regcache_read_as_address.
4123         * regcache.c: Update.
4124         * sh-tdep.c (sh64_push_arguments): Update comment.
4125         (sh_pseudo_register_read): Update.
4126         (sh_pseudo_register_write): Update.
4127         (sh4_register_read): Update.
4128         (sh4_register_write): Update.
4129         (sh64_pseudo_register_read): Update.
4130         (sh64_pseudo_register_write): Update.
4131         (sh64_register_read): Update.
4132         (sh64_register_write): Update.
4133         * i386-tdep.c (i386_extract_return_value): Update.
4134         (i386_extract_struct_value_address): Update.
4135         (i386_extract_return_value): Update.
4136         * blockframe.c (generic_read_register_dummy): Update.
4137         (generic_call_dummy_register_unwind): Update
4138         * infrun.c (write_inferior_status_register): Update.
4139
4140 2002-07-23  Jim Blandy  <jimb@redhat.com>
4141
4142         * parser-defs.h (expression_context_pc): Make this extern.
4143         (Thanks to Michael Snyder.)
4144
4145 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
4146
4147         GDB 5.2.1 released from 5.2 branch.
4148         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4149         * README: Update to mention 5.2.1.
4150
4151 2002-07-23  Mark Salter  <msalter@redhat.com>
4152
4153         * remote.c (remote_read_bytes): Fix check for error.
4154
4155 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4156
4157         * aix-thread.c (language.h): Include.
4158         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4159         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4160         Print newlines at end of debug messages.
4161         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4162         (pdc_write_data): Use local_hex_string() instead of %llx formats.
4163
4164 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4165
4166         * aix-thread.c (ppc-tdep.h): Include.
4167         (special_register_p): New function.
4168         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4169         (store_regs_user_thread): Use register number information from
4170         gdbarch_tdep struct instead of hardcoded offsets relative to
4171         FIRST_UISA_SP_REGNUM.
4172         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
4173         special_register_p() instead of using FPLAST_REGNUM and
4174         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4175         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
4176         will be MQ's register number.
4177
4178 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4179
4180         * aix-thread.c (ops): Rename to aix_thread_ops.
4181         (base_ops): Rename to base_target.
4182         (ops_attach): Rename to aix_thread_attach.
4183         (ops_detach): Rename to aix_thread_detach.
4184         (ops_resume): Rename to aix_thread_detach.
4185         (ops_wait):   Rename to aix_thread_wait.
4186         (ops_kill):   Rename to aix_thread_kill.
4187         (init_ops):   Rename to init_aix_thread_ops.
4188         (ops_fetch_register): Rename to aix_thread_fetch_register.
4189         (ops_store_register): Rename to aix_thread_store_register.
4190         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4191         (ops_thread_alive):   Rename to aix_thread_thread_alive.
4192         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4193         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
4194         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4195         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
4196         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4197         (store_regs_lib):  Rename to store_regs_user_thread.
4198         (store_regs_kern): Rename to store_regs_kernel_thread.
4199
4200 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4201
4202         * aix-thread.c (ops_prepare_to_store): Eliminate.
4203         (init_ops): Don't initialize ops.prepare_to_store.
4204         (store_regs_kern): Pre-fetch register buffers from child, 
4205         because some registers may not be in the cache.  Copy
4206         regs from register cache only if they are cached.
4207         (store_regs_lib): Copy regs from register cache only
4208         if they are cached.
4209         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4210         fill_gprs64): Ditto.
4211
4212 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4213
4214         * aix-thread.c (gdb_assert.h): Include.
4215         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4216         register sizes (from register cache) match size of buffer holding
4217         register data.
4218         (fill_sprs32): Change parameter types to match those in the ptrace()
4219         buffer.
4220         (store_regs_lib): Likewise, but for 32-bit temporary variables.
4221         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4222
4223 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4224
4225         * aix-thread.c (supply_sprs64): Cosmetic change.
4226         (supply_sprs32): Cosmetic change.
4227         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4228         (fill_sprs64): Use regcache_collect instead of read_register.
4229         (store_regs_lib): Use regcache_collect instead of 
4230         read_register.  Use fill_sprs32 instead of fill_sprs64,
4231         if debugging a 32-bit architecture.
4232         (store_regs_kern): Use fill_gprs64 etc. to pull the values
4233         out of the register cache, instead of passing a pointer into
4234         the register cache directly to ptrace.  Use regcache_collect
4235         insteaad of read_register.
4236         (ops_prepare_to_store): Use target_read_registers instead
4237         of read_register_bytes.
4238
4239 2002-07-20  Aidan Skinner <aidan@velvet.net>
4240
4241         * MAINTAINERS: Add self under write after approval. 
4242                 
4243 2002-07-20  Aidan Skinner <aidan@velvet.net>
4244
4245         * ada-tasks.c: Change k&r style function definitions to prototyped
4246         form.
4247                 
4248 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
4249
4250         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4251         * x86-64-tdep.c: Include "objfiles.h".
4252         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4253         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4254
4255 2002-07-17  Michal Ludvig  <michal@suse.cz>
4256
4257         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4258         (update_context): Initialise cfa variable.
4259
4260 2002-07-17  Michael Snyder  <msnyder@redhat.com>
4261
4262         * aix-thread.c: Shorten some long lines.  
4263         Bring comments into line with code spec.
4264
4265 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4266
4267         * infrun.c: Re-indent using gdb_indent.sh.
4268
4269 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4270
4271         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4272         Leave the indentation temporarily untouched, to minimize the diffs.
4273
4274 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
4275
4276         * stabsread.c: Make os9k sections of the code obsolete,
4277         for real this time.
4278         * stabsread.h: Make os9k sections of the code obsolete.
4279
4280 2002-07-18  Michal Ludvig <mludvig@suse.cz>
4281
4282         * linux-low.c (regsets_store_inferior_registers): Add free()
4283         at the end of a loop to prevent memory leak.
4284         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4285         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4286         * config/sparc/tm-sp64linux.h: Make the rest of #endif
4287         line a comment.
4288         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4289
4290 2002-07-17  Jim Blandy  <jimb@redhat.com>
4291
4292         * macrocmd.c (info_macro_command): Remove newline from error
4293         message.
4294
4295 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
4296
4297         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4298         (sh_gdbarch_init): Use it for sh-dsp.
4299
4300 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
4301
4302         * dwarf2read.c (read_initial_length): Handle older, non-standard,
4303         64-bit DWARF2 format.
4304
4305 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
4306
4307         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4308         <sys/proc.h> when not available.
4309
4310 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4311
4312         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4313         * stabsread.c: Make os9k sections of the code obsolete.
4314         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4315         * config/i386/i386os9k.mt: Make file obsolete.
4316         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4317         (COMMON_OBS): Remove os9kread.o
4318         (SFILES): Remove os9kread.c.
4319         (os9kread.o, remote-os9k.o): Make target obsolete.
4320         * remote-os9k.c: Make file obsolete.
4321         * os9kread.c: Make file obsolete.
4322         * Makefile.in
4323
4324 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4325
4326         * NEWS: Mention that the FR30 has been made obsolete.
4327         * fr30-tdep.c: Make file obsolete.
4328         * config/fr30/tm-fr30.h: Ditto.
4329         * config/fr30/fr30.mt: Ditto.
4330         * configure.tgt: Make fr30-*-elf obsolete.
4331         * MAINTAINERS: Make fr30-elf obsolete.
4332
4333 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4334
4335         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4336         found is not inside a section.
4337
4338 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4339
4340         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4341         strerror().
4342         (pdc_realloc): Use xrealloc() instead of realloc().
4343
4344 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4345
4346         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4347         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4348         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4349         macros.
4350
4351 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4352
4353         * aix-thread.c (ptrace_check): Eliminate goto.
4354         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
4355         problem.
4356
4357 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4358
4359         * aix-thread.c (gdbcmd.h): Include.
4360         (DEBUG, DBG, DBG2, dbg): Eliminate.
4361         (debug_aix_thread): New static global.
4362         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4363         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4364         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4365         invocations to DBG and DBG2 macros to test against
4366         ``debug_aix_thread'' and call fprintf_unfiltered().
4367         (_initialize_aix_thread): Add new command "set debug aix-thread".
4368
4369 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4370
4371         From Gerhard Tonn <TON@de.ibm.com>:
4372         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4373         instead of supply_register.
4374
4375 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4376
4377         * dwarf2cfi.c: Include "gdb_assert.h".
4378         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4379         non-NULL.
4380         (update_context): Do not use __func__.  Add missing ``break''.
4381         (update_context): Do not use __func__.
4382
4383 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
4384
4385         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4386         and its setting.  Set gdbarch instruction printing functions
4387         directly.  For non-rs6000 case use new function
4388         gdb_print_insn_powerpc.
4389         (gdb_print_insn_powerpc): New function.
4390
4391 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
4392
4393         * NEWS: Mention that the d30v has been marked obsolete.
4394         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4395         * configure.tgt: Mark d30v-*-* as obsolete.
4396         * d30v-tdep.c: Mark file as obsolete.
4397         * config/d30v/d30v.mt: Ditto.
4398         * config/d30v/tm-d30v.h: Ditto.
4399
4400 2002-07-13  Aidan Skinner <aidan@velvet.net>
4401
4402         * ada-tasks.c (add_task_entry): replace calls to
4403         malloc() with xmalloc
4404         * ada-tasks.c (init_task_list): replace calls to free with xfree()
4405         
4406         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4407         ada_finish_decode_line_1, all_sals_for_line
4408         ada_breakpoint_rewrite): replace calls to free() with xfree()
4409                 
4410 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4411
4412         From Nicholas Duffek (with minor changes by Martin Hunt, 
4413         Louis Hamilton, and Kevin Buettner):
4414         * aix-thread.c: New file.
4415
4416 2002-07-12  Petr Sorfa <petrs@caldera.com>
4417
4418         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
4419         complaint for invalid attribute class or form.
4420         (read_func_scope): DW_AT_frame_base
4421         better handling of DW_AT_block*.
4422         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4423         better handling of DW_AT_block*.
4424         (read_common_block): DW_AT_location
4425         better handling of DW_AT_block*.
4426         (read_partial_die): DW_AT_location better handling
4427         of DW_AT_block*.
4428         (new_symbol): DW_AT_external better handling of
4429         DW_AT_block*. Proper initialization of variable
4430         "addr".
4431         (attr_form_is_block): New function that returns true
4432         if the attribute's form is of DW_FORM_block*.
4433
4434 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4435
4436         * valops.c (find_method_list): Remove comment about
4437         removed STATIC_MEMFUNCP argument.
4438         (value_find_oload_method_list): Likewise.
4439
4440 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4441
4442         From Nicholas Duffek:
4443         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4444         target_new_objfile_hook.
4445
4446 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4447
4448         From Nicholas Duffek:
4449         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4450         csect.
4451
4452 2002-07-12  Andrew Cagney  <cagney@redhat.com>
4453
4454         * MAINTAINERS: Mention --enable-sim-build-warnings.
4455         (m68hc11-elf): Disable sim build warnings.
4456         (m32r-elf): Mark as broken obsolete candidate.
4457         (x86_64-linux-gnu): Mark as buildable with -Werror.
4458         (arm-elf): Change -w to ``,'' which enables warnings but not
4459         -Werror.
4460
4461 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
4462
4463         * bcache.h: Update copyright.
4464         (struct bstring, struct bcache): Move definition to "bcache.c".
4465         Replaced by opaque declaration.
4466         (bcache_xfree): Replace free_bcache.
4467         (bcache_xmalloc, bcache_memory_used): Declare.
4468         
4469         * bcache.c: Update copyright.
4470         (struct bstring, struct bcache): Moved to here from "bcache.h".
4471         Update comments.
4472         (bcache_xmalloc, bcache_memory_used): New functions.
4473         (bcache_xfree): Replace function free_bcache.
4474         
4475         * Makefile.in (objfiles.o): Add $(bcache_h).
4476         (objfiles_h): Remove $(bcache_h).
4477         (symfile.o): Add $(bcache_h).
4478
4479         * symmisc.c: Update copyright.
4480         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4481         (print_objfile_statistics): Use bcache_memory_used.
4482
4483         * symfile.c: Include "bcache.h".
4484         (reread_symbols): Use bcache_xfree.
4485         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4486         (add_psymbol_to_list): Pass psymbol_cache by value.
4487         (add_psymbol_with_dem_name_to_list): Ditto.
4488
4489         * objfiles.h: Update copyright.
4490         (struct bcache): Declare opaque.  Do not include "bcache.h".
4491         (struct objfile): Change psymbol_cache and macro_cache to ``struct
4492         bcache'' pointers.
4493         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4494
4495         * objfiles.c: Include "bcache.h".  Update copyright.
4496         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4497         macro_cache.
4498         (free_objfile): Use bcache_xfree.
4499
4500 2002-07-11  Grace Sainsbury  <graces@redhat.com>
4501
4502         * monitor.c (monitor_fetch_register): Make name a constant.
4503         (monitor_store_register): Same.
4504
4505 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
4506
4507         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4508         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4509         (finish_block) For non-function blocks, hash the symbol table.  For
4510         function blocks, mark the symbol table as unhashed.
4511         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4512         (msymbol_hash_iw): Likewise.
4513         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4514         value.
4515         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4516         (lookup_minimal_symbol): Likewise for both.
4517         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4518         hashtable.
4519         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4520         (ALL_BLOCK_SYMBOLS): Update.
4521         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4522         (struct symbol): Add `hash_next' pointer.
4523         * symtab.c (lookup_block_symbol): Search using the hash table when
4524         possible.
4525         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4526         (search_symbols, find_addr_symbol): Likewise.
4527
4528         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4529         (read_dst_symtab): Likewise.
4530         * jv-lang.c (get_java_class_symtab): Likewise.
4531         * mdebugread.c: Include "gdb_assert.h".
4532         (shrink_block): Assert that the block being modified is not hashed.
4533         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4534         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4535         symbols.
4536         (dump_symtab): Recognize hashed blocks.
4537         * printcmd.c (print_frame_args):  Assert that function blocks do not
4538         have hashed symbol tables.
4539         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4540         (fill_in_ada_prototype, debug_print_block): Likewise.
4541         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4542
4543 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4544
4545         * stack.c (print_frame): Use result of frame_address_in_block()
4546         instead of fi->pc when evaluating symbols.
4547         (backtrace_command_1): Ditto.
4548
4549 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4550
4551         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4552         Make static.
4553
4554         * arm-tdep.c (arm_register_name): Make return type constant.
4555
4556 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4557
4558         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4559         prototype.
4560         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4561         * s390-tdep.c (s390_fp_regnum): Ditto.
4562         (s390_read_fp): Ditto.
4563         (s390_pop_frame): Ditto.
4564         (_initialize_s390_tdep): Ditto.
4565         * remote.c (get_remote_state): Ditto.
4566         * procfs.c (mappingflags): Ditto.
4567         * memattr.c (_initialize_mem): Ditto.
4568         * mcore-tdep.c (mcore_pop_frame): Ditto.
4569         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4570         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4571         * language.c (set_case_str): Ditto.
4572         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4573         * frv-tdep.c (new_variant): Ditto.
4574         (frv_stopped_data_address): Ditto.
4575         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4576         (context_alloc): Ditto.
4577         (frame_state_alloc): Ditto.
4578         (unwind_tmp_obstack_init): Ditto.
4579         (unwind_tmp_obstack_free): Ditto.
4580         (cfi_read_fp): Ditto.
4581         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4582         (cris_pop_frame): Ditto.
4583         * c-lang.c (scanning_macro_expansion): Ditto.
4584         (finished_macro_expansion): Ditto.
4585         (c_preprocess_and_parse): Ditto.
4586         * gdbarch.sh: Ditto.
4587         * gdbarch.h, gdbarch.c: Regenerate.
4588         * config/mn10200/tm-mn10200.h: Adjust indentation.
4589         * target.c: Adjust indentation.
4590         * symtab.h: Adjust indentation.
4591         * stabsread.h: Adjust indentation.
4592         * remote-es.c: Adjust indentation.
4593         * os9kread.c: Adjust indentation.
4594
4595 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4596         
4597         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4598         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4599
4600 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4601         
4602         * NEWS: Mention m68k, mcore multi-arching.  
4603         * MAINTAINERS: Change status of m68k, mcore to reflect
4604         multi-arching.
4605
4606 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4607
4608         * valops.c (find_overload_match): Free oload_syms.
4609
4610 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4611
4612         Define HAVE_SYS_PROC_H if sys/proc.h exists
4613         * configure.in: Add check for sys/proc.h
4614         * config.in: Regenerate.
4615         * configure: Regenerate.
4616
4617 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4618
4619         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4620         #if !GDB_MULTI_ARCH. 
4621
4622 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4623
4624         * config.in, configure: Regenerate.
4625
4626 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4627
4628         * dwarf2cfi.c: Include "gcore.h".
4629         (execute_stack_op): Fix implementation of the
4630         DW_OP_deref and DW_OP_deref_size operators by letting do their
4631         lookup in the target.
4632
4633 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4634
4635         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4636         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4637         tdep->sc_sp_offset.
4638
4639 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4640
4641         Fix PR gdb/595, gdb/602
4642         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4643         Don't call value_cast, just read the vtable pointer; update comments
4644         to match.
4645
4646 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4647
4648         * config/mcore/tm-mcore.h: Remove file.
4649         * config/mcore/mcore.mt: Remove definition of TM_FILE
4650         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4651
4652 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4653
4654         * i386bsd-tdep.c: Include "gdb_string.h".
4655
4656 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4657
4658         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4659         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4660         mcore-tdep.
4661         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4662         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4663         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4664         (RETVAL_REGNUM): Move macros from tm-mcore.h
4665         (mcore_reg_struct_has_addr): New function.
4666         (mcore_gdbarch_init): Added initializations for the macros removed
4667         from tm-mcore.h.
4668
4669 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4670
4671         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4672         traditonal string branding within the ELF header.
4673
4674 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4675
4676         * symtab.c (remove_params): New function.
4677         (make_symbol_overload_list): Use it instead of cplus_demangle.
4678         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4679
4680 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4681
4682         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4683
4684         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4685         New variables.
4686         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4687         and tdep->sigtramp_end.
4688         * i386obsd-nat.c: New file.
4689         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4690
4691         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4692         Don't call get_current_frame().
4693
4694 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4695
4696         * i386-nat.c (child_post_startup_inferior): New function
4697         calling i386_cleanup_dregs if
4698         I386_USE_GENERIC_WATCHPOINTS is defined.
4699         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4700         conditional to acknowledge that i386-nat.c has its
4701         own child_post_startup_inferior function.
4702
4703 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4704
4705         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4706         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4707         instead of MAX_REGISTER_RAW_SIZE.
4708         (i386_extract_return_value, i386_extract_struct_value_address):
4709         Convert to use regcache.
4710         (i386_gdbarch_init): Set max_register_raw_size and
4711         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4712         Set extract_return_value and extract_struct_value_address instead
4713         of their deprecated variants.
4714
4715         Convert i386 target to generic dummy frames.
4716         * i386-tdep.c: Include "symfile.h".
4717         (i386_frameless_signal_p): Consider a function to be frameless if
4718         the pc points at the first instruction of the function.
4719         (i386_frame_chain): Handle (generic) call dummies.
4720         (i386_frame_saved_pc): Likewise.
4721         (i386_frame_init_saved_regs): Remove code dealing with call
4722         dummies on the stack.
4723         (i386_push_dummy_frame): Removed.
4724         (i386_call_dummy_words): Removed.
4725         (i386_fix_call_dummy): Removed.
4726         (i386_push_return_address): New function.
4727         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4728         parameter, and don't call get_current_frame.
4729         (i386_pop_frame): New function.
4730         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4731         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4732         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4733         call_dummy_length to 0, set call_dummy_words to NULL, set
4734         sizeof_call_dummy_words to 0, set fix_call_dummy to
4735         generic_fix_call_dummy, set pc_in_call_dummy to
4736         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4737         generic_push_dummy_frame, set push_return_address to
4738         i386_push_return_address and set frame_chain_valid to
4739         generic_file_frame_chain_valid.
4740
4741 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4742
4743         * gdbarch.sh (struct regcache): Add opaque declaration.
4744         (EXTRACT_RETURN_VALUE): New architecture method.
4745         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4746         * gdbarch.h, gdbarch.c: Regenerate.
4747         * arch-utils.c (legacy_extract_return_value): New function.
4748         * arch-utils.h (legacy_extract_return_value): Declare.
4749         * values.c (value_being_returned): Re-enable code handling
4750         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4751         deprecated_grub_regcache_for_registers call to block handling
4752         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4753         (EXTRACT_RETURN_VALUE): Do not define.
4754
4755 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4756
4757         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4758         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4759         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4760         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4761         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4762         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4763         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4764         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4765         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4766         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4767         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4768         argument so the function fits the prototype in the architecture
4769         vector.
4770         (mcore_pop_frame): Remove argument so the function fits the
4771         prototype. Use get_current_frame instead of the argument.
4772         (mcore_push_arguments): Change type of struct_return so the
4773         function can be used in the architecture vector.
4774         (mcore_store_struct_return): Add.
4775         (mcore_frame_init_saved_regs): Add.
4776         (mcore_gdbarch_init): Add function calls to replace the macros
4777         removed from tm-mcore.h
4778
4779 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4780
4781         * infcmd.c (print_return_value): Remove compatibility code calling
4782         deprecated_grub_regcache_for_registers.
4783         
4784         * values.c: Include "regcache.h".
4785         (value_being_returned): Update.  Use
4786         deprecated_grub_regcache_for_registers to extract the register
4787         buffer address.  
4788         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4789         ``struct regcache''.
4790         * Makefile.in (values.o): Add dependency on $(regcache_h).
4791
4792         * inferior.h (run_stack_dummy): Change type of second parameter to
4793         a ``struct regcache''.
4794         * valops.c (hand_function_call): Change type of retbuf to ``struct
4795         regcache''.  Allocate using regcache_xmalloc, clean using
4796         make_cleanup_regcache_xfree.
4797         * infcmd.c (run_stack_dummy): Update.  Use
4798         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4799
4800         * regcache.c (do_regcache_xfree): New function.
4801         (make_cleanup_regcache_xfree): New function.
4802         * regcache.h (make_cleanup_regcache_xfree): Declare.
4803
4804 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4805
4806         * event-top.c (command_line_handler): Don't read past
4807         beginning of buffer.
4808
4809 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4810         
4811         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4812         struct frame_id. 
4813         (varobj_create): Store frame_id for root.
4814         (varobj_gen_name): Use xasprintf.
4815         (varobj_update): Save and restore frame using get_frame_id() and
4816         frame_find_by_id().
4817         (create_child): Use xasprintf.
4818         (new_root_variable): Initialize frame_id.
4819         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4820         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4821         to prevent memory leak.
4822
4823 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4824
4825         * valops.c (hand_function_call): Move declaration of retbuf to
4826         start of function, allocate using malloc, add a cleanup but before
4827         the inf_status cleanup, cleanup the buffer.  Rename local variable
4828         old_chain to inf_status_cleanup.
4829
4830 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4831
4832         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4833
4834         * cli/cli-decode.c (cmd_func_p): New function.
4835         (cmd_func): New function.
4836
4837         * command.h: Add cmd_func() and cmd_func_p().   
4838         
4839 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4840
4841         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4842         (REGISTER_SIZE): Remove.
4843         (MAX_REGISTER_RAW_SIZE): Remove.
4844         (REGISTER_VIRTUAL_TYPE): Remove.
4845         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4846         (REGISTER_NAME): Remove.
4847         (USE_GENERIC_DUMMY_FRAMES): Remove.
4848         (CALL_DUMMY): Remove.
4849         (CALL_DUMMY_START_OFFSET): Remove.
4850         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4851         (CALL_DUMMY_LOCATION): Remove.
4852         (FIX_CALL_DUMMY): Remove.
4853         (CALL_DUMMY_ADDRESS): Remove.
4854         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4855         (SAVE_DUMMY_FRAME_TOS): Remove.
4856         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4857         (mcore_register_virtual_type): New function.
4858         (mcore_register_byte): New function.
4859         (mcore_register_size): New function.
4860         (mcore_register_name): New function.
4861         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4862         macros removed from tm-mcore.h.
4863         (mcore_dump_tdep): Add.
4864         (_initialize_mcore_tdep): Add gdbarch_register call.
4865
4866 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4867
4868         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4869         frameless_look_for_prologue, such that we actually call this
4870         function.
4871
4872 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4873
4874         * frame.h (frame_address_in_block): New function.
4875
4876         * blockframe.c (frame_address_in_block): New function extracted
4877         from get_frame_block().
4878         (get_frame_block): Use frame_address_in_block().
4879         (block_innermost_frame): Use frame_address_in_block() to match
4880         the frame pc address against the block boundaries rather than
4881         the frame pc directly. This prevents a failure when a frame pc
4882         is actually a return-address pointing immediately after the end
4883         of the given block. 
4884
4885 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4886
4887         * MAINTAINERS: Add self under write after approval. 
4888
4889 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4890
4891         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4892         used in architecture vector. The default is
4893         m68k_local_breakpoint_from_pc.
4894         (m68k_local_breakpoint_from_pc): Add.
4895         (enum): Add register numbers from tm-m68k.h.
4896         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4897         vector.  
4898         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4899         GDB_MULTI_ARCH_PARTIAL.
4900         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4901         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4902         m68k-tdep.c.
4903         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4904         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4905         to enum in m68k-tdep.c
4906
4907 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4908
4909         * solib-osf.c (open_map): Compute the list of shared libraries
4910         loaded by the inferior, rather than the list of libraries loaded
4911         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4912         the wrong shared libraries...
4913
4914 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4915
4916         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4917         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4918         macros.
4919         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4920         Remove functions.
4921         (FRAMELESS_SIGNAL): Remove function.
4922         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4923         i386_linux_saved_pc_after_call): Removed.
4924         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4925         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4926         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4927
4928         * i386-tdep.c (i386_frameless_signal_p): New function.
4929         (i386_frame_chain): Deal with frameless signals.
4930         (i386_sigtramp_saved_sp): New function.
4931         (i386_frame_saved_pc): Deal with frameless signals.
4932         (i386_saved_pc_after_call): Make sure the correct value is
4933         returned just after entry into a sigtramp.
4934         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4935         i386fbsd4_sc_sp_offset): New variables.
4936         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4937         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4938         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4939         similiar to what we already did for sc_pc_offset.
4940         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4941         tdep->sc_sp_offset.
4942
4943         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4944
4945 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4946
4947         * config/i386/tm-x86-64linux.h: New.
4948         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4949         definitions.
4950         * config/i386/nm-x86-64.h: Rename to ...
4951         * config/i386/nm-x86-64linux.h: ... this one.
4952         * config/i386/x86-64linux.mh: Reflect the above change.
4953         
4954 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4955
4956         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4957         with sigcontext_addr.  Add sc_sp_offset.
4958         (i386bsd_sigtramp_saved_pc): Remove prototype.
4959         (i386bsd_sicontext_addr): Add prototype.
4960         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4961         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4962         (i386_svr4_sigtramp_saved_pc): Removed.
4963         (i386_svr4_sigcontext_addr): New function.
4964         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4965         Initialize tdep->sigcontext_addr instead.  Initialize
4966         tdep->sc_pc_offset and tdep->sc_sp_offset.
4967         (i386_gdbarch_init): Likewise.
4968         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4969         any more.
4970         (i386bsd_sigtramp_saved_pc): Remove function.
4971         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4972         Initialize tdep->sigcontext_addr instead.  Initialize
4973         tdep->sc_pc_offset.
4974         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4975         of tdep->sigtramp_saved_pc.
4976         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4977         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4978         instead.
4979
4980         * i386-tdep.c (i386_frameless_function_invocation,
4981         i386_frame_num_args, i386_frame_init_saved_regs,
4982         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4983         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4984         i386_extract_return_value, i386_store_return_value,
4985         i386_extract_struct_value_address, i386_register_virtual_type,
4986         i386_register_convertible, i386_register_convert_to_virtual,
4987         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4988         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4989         static.
4990
4991 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4992
4993         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4994
4995         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4996         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4997         this macro.  Include "value.h".
4998
4999 2002-06-30  Aidan Skinner  <aidan@velvet.net>
5000
5001         * ada-exp.tab.c: remove as it's a generated file
5002         * ada-lex.c: remove as it's a generated file
5003                 
5004 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
5005
5006         * config/i386/tm-i386.h (struct frame_info, struct
5007         frame_saved_regs, struct value, struct type): Remove forward
5008         declarations.
5009
5010         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5011         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5012         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5013         (FILL_FPXREGSET): Define.
5014
5015         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5016
5017         * configure.tgt (i[3456]86-*-openbsd*): Fold into
5018         i[3456]86-*-netbsd* case.
5019         * config/i386/tm-obsd.h: Removed.
5020         * config/i386/obsd.mt: Removed.
5021         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5022         core-aout.o.
5023         (MH_CFLAGS): Add -DYYDEBUG=0.
5024
5025         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5026         i386nbsd_sc_pc_offset on OpenBSD too.
5027
5028         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5029         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5030         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5031         define.
5032         * i386bsd-tdep.c: Include "arch-utils.h".
5033         (i386bsd_aout_in_solib_call_trampoline): New function.
5034         (i386bsd_init_abi): Set in_solib_call_trampoline to
5035         i386bsd_aout_in_solib_call_trampoline.
5036         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5037         in_solib_call_trampoline to generic_in_solib_call_trampoline.
5038
5039 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5040
5041         * macrotab.h: Do not include "obstack.h" or "bcache.h".
5042         (struct obstack, struct bcache): Add opaque declarations.
5043         * Makefile.in (macrotab_h): Update
5044
5045 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5046
5047         * blockframe.c (generic_find_dummy_frame): Change return type to
5048         ``struct regcache''.
5049         (struct dummy_frame): Replace field ``registers'' with regcache, a
5050         struct regcache object.
5051         (generic_find_dummy_frame): Update.
5052         (generic_push_dummy_frame): Update.  Use regcache_xfree,
5053         regcache_xmalloc and regcache_cpy.
5054         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
5055         regcache_xfree.
5056         (deprecated_generic_find_dummy_frame): Update.
5057         (generic_read_register_dummy): Update.  Use
5058         regcache_read_as_address.
5059         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
5060         (generic_get_saved_register): Update.  Use regcache_read.
5061
5062 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5063
5064         * Makefile.in (objfiles_h): Add $(bcache_h).
5065         * objfiles.h: Include "bcache.h".
5066
5067         * Makefile.in (symtab_h): Remove $(bcache_h).
5068         * symtab.h: Do not include "bcache.h".
5069
5070 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5071
5072         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5073         generic_func_frame_chain_valid.
5074
5075 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
5076
5077         * config/i386/nm-fbsd.h: Include <sys/param.h>.
5078         * config/i386/tm-fbsd.h: Likewise.
5079
5080 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5081
5082         * rs6000-tdep.c (rs6000_gdbarch_init): Use
5083         generic_unwind_get_saved_register.
5084
5085 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5086
5087         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5088         * regcache.c (supply_register): Add missing argument to
5089         register_buffer call.
5090
5091 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5092
5093         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
5094         Solaris /bin/grep does not not like it.  From Peter Schauer.
5095
5096 2002-06-26  Tom Tromey  <tromey@redhat.com>
5097
5098         * command.h (add_setshow_cmd): Declare.
5099         (add_setshow_cmd_full): Declare.
5100         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
5101         returns void.  Use add_setshow_cmd_full.
5102         (add_setshow_cmd_full): New function.
5103         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5104         (add_setshow_boolean_cmd): Likewise.
5105
5106 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5107
5108         * config/vax/tm-vax.h: Protect from multiple inclusion.
5109         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5110         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5111         * config/vax/tm-vaxbsd.h: ...here.  New file.
5112         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5113
5114 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5115
5116         * config/vax/tm-vax.h (BREAKPOINT): Remove.
5117         (BELIEVE_PCC_PROMOTION): Remove.
5118         (AP_REGNUM): Move to...
5119         * config/vax/nm-vax.h: ...here.
5120         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5121         (vax_breakpoint_from_pc): New function.
5122         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5123         and gdbarch_believe_pcc_promotion.
5124
5125 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5126
5127         * Makefile.in (vax_tdep_h): Define.  
5128         (vax-tdep.o): Use $(vax_tdep_h).
5129         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5130         (vax_dump_tdep): New function. 
5131         (_initialize_vax_tdep): Register vax_dump_tdep.
5132         * vax-tdep.h: Include osabi.h.     
5133         (struct gdbarch_tdep): New. 
5134
5135 2002-06-26  Andrew Cagney  <cagney@redhat.com>
5136
5137         * frame.h (deprecated_generic_find_dummy_frame): Rename
5138         generic_find_dummy_frame.
5139         * blockframe.c (generic_find_dummy_frame): Make static.
5140         (deprecated_generic_find_dummy_frame): New function.
5141         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5142         generic_find_dummy_frame with deprecated_find_dummy_frame.
5143         (sh64_nofp_frame_init_saved_regs): Ditto.
5144         (sh_fp_frame_init_saved_regs): Ditto.
5145         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5146         (s390_frame_chain): Ditto.
5147         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5148
5149 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5150
5151         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5152         gdbarch vector are at the top.
5153         (NUM_REGS): Remove.
5154         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5155         (FRAME_ARGS_ADDRESS): Remove.
5156         (FRAME_LOCALS_ADDRESS): Remove.
5157         (FRAME_NUM_ARGS): Remove.
5158         (FRAME_ARGS_SKIP): Remove.  
5159         * m68k-tdep.c (enum): Add eumeration of special register numbers.
5160         (m68k_gdbarch_init): Add gdbarch initializations for macros
5161         undefined in tm-m68k.h
5162
5163 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5164
5165         * monitor.h: Add the function regname to monitor_ops
5166         structure. This way NUM_REGS does not have to be a constant.
5167         * monitor.c (monitor_fetch_register): Added support for regname
5168         function. The function is called if the array regnames is NULL.
5169         (monitor_store_register): Same.
5170         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5171         regnames array.
5172         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5173         cpu32bug_cmds.regname to point to new function.
5174         * abug-rom.c (abug_regname): Same as above.
5175         (init_abug_cmds): Same.
5176         * dbug-rom.c (dbug_regname): Same as above.
5177         (init_dbug_cmds): Same.
5178         * remote-est.c (est_regname): Same. 
5179         (init_est_cmds): Same.
5180         * rom68k-rom.c (rom68k_regname): Same. 
5181         (init_rom68k_cmds): Same.
5182
5183 2002-06-25  Tom Tromey  <tromey@redhat.com>
5184
5185         * breakpoint.c (delete_command): Don't repeat `delete' commands.
5186
5187 2002-06-25  Andrew Cagney  <cagney@redhat.com>
5188
5189         * infrun.c (stop_registers): Change variable's type to ``struct
5190         regcache'''.
5191         (xmalloc_inferior_status): Delete function.
5192         (free_inferior_status): Delete function.
5193         (normal_stop): Use regcache_cpy.
5194         (struct inferior_status): Change type of fields ``stop_registers''
5195         and ``registers'' to ``struct regcache''.
5196         (write_inferior_status_register): Use regcache_write.
5197         (save_inferior_status): Instead of calling
5198         xmalloc_inferior_status, allocate the inf_status buffer directly.
5199         Use regcache_dup_no_passthrough and regcache_dup to save the
5200         buffers.
5201         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5202         Replace the stop_registers regcache instead of overriding it.  Use
5203         regcache_xfree.  Instead of calling free_inferior_status, xfree
5204         the buffer directly.
5205         (discard_inferior_status): Use regcache_xfree.  Instead of calling
5206         free_inferior_status, xfree the buffer directly.
5207         (build_infrun): Use regcache_xmalloc.
5208         (_initialize_infrun): Delete redundant call to build_infrun.
5209
5210         * Makefile.in (infcmd.o): Add $(regcache_h).
5211
5212         * infcmd.c: Include "regcache.h".
5213         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5214         obtain the address of `stop_registers' register buffer.
5215         (print_return_value): Ditto.
5216
5217         * inferior.h (struct regcache): Add opaque declaration.
5218         (stop_registers): Change variable's declared type to ``struct
5219         regcache''.
5220
5221 2002-06-24  Tom Tromey  <tromey@redhat.com>
5222
5223         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5224         * target.c (initialize_targets): Fixed typo in
5225         trust-readonly-sections `show' documentation.
5226
5227         * main.c: Marked all strings with _().
5228
5229 2002-06-24  Don Howard  <dhoward@redhat.com>
5230
5231         * memattr.c (create_mem_region): Treat hi == 0 as a special case
5232         that means max CORE_ADDR+1.
5233         (lookup_mem_region): Ditto.
5234         (mem_info_command): Ditto.
5235
5236 2002-06-24  Grace Sainsbury  <graces@redhat.com>
5237
5238         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5239         (REGISTER_BYTES_OK): Remove.
5240         (REGISTER_BYTES): Remove.
5241         (STORE_STRUCT_RETURN): Remove.
5242         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5243         (STORE_RETURN_VALUE): Remove.
5244         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5245         (FRAME_CHAIN): Remove.
5246         (FRAMELESS_FUNCTION_INVOCATION): Remove.
5247         (FRAME_SAVED_PC): Remove.  
5248         * m68k-tdep.c (m68k_register_bytes_ok):Add.
5249         (m68k_store_struct_return): Add.
5250         (m68k_deprecated_extract_return_value): Add.
5251         (m68k_deprecated_extract_struct_value_address): Add.
5252         (m68k_store_return_value): Add.
5253         (m68k_frame_chain): Add.
5254         (m68k_frameless_function_invocation): Add.
5255         (m68k_frame_saved_pc): Add.
5256         (m68k_gdbarch_init): added set_gdbarch calls for new 
5257         functions and deleted macros.
5258
5259 2002-06-23  Tom Tromey  <tromey@redhat.com>
5260
5261         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5262         (ALLDEPFILES): Likewise.
5263         (udiheaders): Removed.
5264         (udip2soc.o): Likewise.
5265         (udi2go32.o): Likewise.
5266         (udr.o): Likewise.
5267         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5268
5269 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
5270
5271         * infrun.c (_initialize_infrun): Delete unnecessary call to
5272         build_infrun.
5273
5274         * regcache.h: Update comments describing the regcache_cpy family
5275         of functions.
5276         (regcache_save, regcache_restore): Delete declaration.
5277         (regcache_save_no_passthrough): Delete declaration.
5278         (regcache_restore_no_passthrough): Delete declaration.
5279         * regcache.c (regcache_save): Delete function.
5280         (regcache_save_no_passthrough): Delete function.
5281         (regcache_restore): Delete function.
5282         (regcache_restore_no_passthrough): Delete function.
5283
5284 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
5285
5286         * config/m68k/tm-m68k.h: Fix typo.
5287         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5288         (m68k_frame_init_saved_regs): Declare.
5289
5290 2002-06-21  Jim Blandy  <jimb@redhat.com>
5291
5292         Remove some vestiges of Harris 88k support.
5293         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5294         register numbering quirk.
5295         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5296         odd symbols occurring in Harris 88k ELF targets.
5297
5298 2002-06-21  Tom Tromey  <tromey@redhat.com>
5299
5300         * gdb_locale.h: New file.
5301         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5302         (defs_h): Added gdb_locale.h.
5303         * configure, config.in: Rebuilt.
5304         * configure.in (PACKAGE): Define.
5305         * defs.h: Include gdb_locale.h.
5306         * main.c (captured_main): Call setlocale, bindtextdomain,
5307         textdomain.
5308
5309 2002-06-21  Dave Brolley  <brolley@redhat.com>
5310
5311         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5312         * config/frv/frv.mt: New file.
5313         * config/frv/tm-frv.h: New file.
5314         * configure.tgt: Support frv-*-*.
5315         * Makefile.in (frv-tdep.o): New target.
5316         * frv-tdep.c: New file.
5317         * NEWS: Mention frv.
5318
5319 2002-06-21  Dave Brolley  <brolley@redhat.com>
5320
5321         * MAINTAINERS: Add self to "Write After Approval" list.
5322
5323 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5324
5325         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5326         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5327         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5328         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5329         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5330
5331         * m68k-tdep.c: Include arch-utils.h
5332         (m68k_register_raw_size): Add.
5333         (m68k_register_virtual_size): Add.
5334         (m68k_register_virtual_type): Add.
5335         (m68k_register_name): Add.
5336         (m68k_stack_align): Add.
5337         (m68k_register_byte): Add.
5338         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5339         tm-m68k.h.
5340
5341 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5342
5343         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5344         m68k_find_saved_regs.
5345         (m68k_pop_frame): Removed saved_regs structure, and replaced
5346         references to it with frame->saved_regs.
5347         (m68k_gdbarch_init): Added function calls to initialize the
5348         gdbarch structure.
5349         (m68k_fix_call_dummy): Add. 
5350         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5351         (CALL_DUMMY): Remove.
5352         (CALL_DUMMY_LENGTH): Remove.
5353         (CALL_DUMMY_START_OFFSET): Remove.
5354         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5355         (FIX_CALL_DUMMY): Remove.
5356         (PUSH_DUMMY_FRAME): Remove.
5357         (POP_FRAME): Remove.
5358
5359 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5360
5361         * parse.c (parse_fprintf): New function used to avoid calls to
5362         fprintf in bison parser generated debug code.
5363         * parser-defs.h: Declaration of new parse_fprintf function.
5364         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5365         Set YYDEBUG to 1 by default.
5366         Set YYFPRINTF as parse_fprintf.
5367
5368 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
5369
5370         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
5371         encoding anymore.
5372         (pointer_encoding, enum ptr_encoding): New.
5373         (execute_cfa_program): Take care about pointer encoding.        
5374         (dwarf2_build_frame_info): Only call parse_frame_info for 
5375         .debug_frame and .eh_frame.
5376         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5377         fixed augmentation handling, added relative addressing, 
5378         ignore duplicate FDEs. Added comments.
5379         * dwarf2cfi.c: Reindented.
5380         
5381 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
5382
5383         * event-top.c (command_handler): Don't use space_at_cmd_start
5384         unless there is sbrk() on the host. Assign time and space data
5385         to union fields of the appropriate length.
5386
5387 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
5388
5389         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
5390         x86_64_register_name. Return type changed to 'const char *'.
5391         (x86_64_register_name2nr): Rename to x86_64_register_number.
5392         (x86_64_gdbarch_init): Update to reflect the change.
5393         * x86-64-tdep.h: Ditto.
5394         * x86-64-linux-nat.c (x86_64_fxsave_offset)
5395         (supply_fpregset): Ditto.
5396
5397 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5398
5399         * regcache.h: Update copyright.
5400         (struct regcache, struct gdbarch): Add opaque declarations.
5401         (current_regcache): Declare global variable.
5402         (regcache_read, regcache_write): Add gdbarch parameter.
5403         (regcache_save, regcache_save_no_passthrough)
5404         (regcache_restore, regcache_restore_no_passthrough)
5405         (regcache_dup, regcache_dup_no_passthrough)
5406         (regcache_cpy, regcache_cpy_no_passthrough)
5407         (deprecated_grub_regcache_for_registers)
5408         (deprecated_grub_regcache_for_register_valid)
5409         (regcache_valid_p): Add function declarations.
5410         
5411         * regcache.c: Update copyright.
5412         (regcache_descr_handle): New global variable.
5413         (struct regcache_descr): Define.
5414         (init_legacy_regcache_descr, init_regcache_descr): New functions.
5415         (regcache_descr, xfree_regcache_descr): New functions.
5416         (struct regcache): Define.
5417         (regcache_xmalloc, regcache_xfree): New functions.
5418         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5419         (regcache_dup, regcache_dup_no_passthrough): New functions.
5420         (regcache_valid_p, regcache_read_as_address): New functions.
5421         (deprecated_grub_regcache_for_registers): New function.
5422         (deprecated_grub_regcache_for_register_valid): New function.
5423         (current_regcache): New global variable.
5424         (register_buffer): Add regcache parameter.  Update calls.
5425         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
5426         (read_register_gen, write_register_gen): Update register_buffer
5427         call.  Test for legacy_p instead of gdbarch_register_read_p or
5428         gdbarch_register_write_p.
5429         (regcache_collect): Update register_buffer call.
5430         (build_regcache): Rewrite.  Use deprecated grub functions.
5431         (regcache_save, regcache_save_no_passthrough): New functions.
5432         (regcache_restore, regcache_restore_no_passthrough): New
5433         functions.
5434         (_initialize_regcache): Create the regcache_data_handle. Swap
5435         current_regcache global variable.
5436         
5437         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5438         parameter to regcache_read and regcache_write calls.
5439         (sh4_register_read): Ditto.
5440         (sh64_pseudo_register_read): Ditto.
5441         (sh64_register_read): Ditto.
5442         (sh_pseudo_register_write): Ditto.
5443         (sh4_register_write): Ditto.
5444         (sh64_pseudo_register_write): Ditto.
5445         (sh64_register_write): Ditto.
5446
5447         * defs.h (XCALLOC): Define.
5448
5449 2002-06-19  Grace Sainsbury  <graces@redhat.com>
5450
5451         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5452         * m68k-tdep.c (m68k_gdbarch_init): Added.
5453         (m68k_dump_tdep): Added.
5454
5455 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5456
5457         * ada-lang.c (fill_in_ada_prototype): Update comment.
5458
5459 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5460
5461         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
5462         MIPS_ABI_LAST.
5463         (mips_abi_string, mips_abi_strings): New.
5464         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5465         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
5466         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
5467         O32 if no ABI is found.
5468         (mips_dump_tdep): Use mips_abi_strings.
5469         (mips_abi_update): New function.
5470         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
5471         ``set mips abi'' and ``show mips abi''.  Check the size of
5472         mips_abi_strings.
5473
5474 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5475
5476         * i386-linux-tdep.c (i386_linux_register_name): Make return type
5477         constant.
5478
5479 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
5480
5481         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
5482         current frame using only the first stack size adjustment. All
5483         subsequent size adjustments are not considered to be part of
5484         the "static" part of the current frame.
5485         Compute the address of the saved registers relative to the
5486         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5487         in use in this frame.
5488
5489 2002-06-18  Don Howard  <dhoward@redhat.com>
5490  
5491         * valops.c (value_ind): Use value_at_lazy() when dereferencing
5492         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
5493         suggesting this solution.
5494
5495 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
5496
5497         * config/romp/xm-rtbsd.h: Delete file.
5498         * config/romp/rtbsd.mh: Delete file.
5499
5500 2002-06-18  Keith Seitz  <keiths@redhat.com>
5501
5502         * breakpoint.c (condition_command): Post breakpoint_modify
5503         when a condition is added to an existing breakpoint.
5504         (commands_command): Likewise for commands.
5505         (set_ignore_count): Likewise for ignore counts.
5506         If no tty, do not simply return, still need to send event
5507         notification.
5508         (ignore_command): Only print a newline if the command came
5509         from a tty.
5510         Don't call breakpoints_changed, since this is now properly
5511         handled by set_ignore_count.
5512
5513 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5514
5515         * MAINTAINERS: Note that cris-elf target can be compiled with
5516         -Werror.
5517         * cris-tdep.c (cris_register_name): Make return type constant.
5518         (cris_breakpoint_from_pc): Ditto.
5519
5520 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5521
5522         * frame.h (struct frame_info): Change type of context to 
5523         'struct context'.
5524
5525 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5526
5527         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5528         pointer.
5529         * gdbarch.h, gdbarch.c: Regenerate.
5530         * config/mips/tm-mips.h (mips_register_name): Update.
5531         * i386-tdep.h (i386_register_name): Update.
5532         * mips-tdep.c (mips_register_name): Update
5533         * alpha-tdep.c (alpha_register_name): Update.
5534         * arch-utils.c (legacy_register_name): Update.
5535         * arch-utils.h (legacy_register_name): Update.
5536         * avr-tdep.c (avr_register_name): Update.
5537         * ia64-tdep.c (ia64_register_name): Update.
5538         * i386-tdep.c (i386_register_name): Update.
5539         * sparc-tdep.c (sparc32_register_name): Update.
5540         (sparc64_register_name): Update.
5541         (sparclite_register_name): Update.
5542         (sparclet_register_name): Update.
5543         * sh-tdep.c (sh_generic_register_name): Update.
5544         (sh_sh_register_name): Update.
5545         (sh_sh3_register_name): Update.
5546         (sh_sh3e_register_name): Update.
5547         (sh_sh_dsp_register_name): Update.
5548         (sh_sh3_dsp_register_name): Update.
5549         (sh_sh4_register_name): Update.
5550         (sh_sh64_register_name): Update.
5551         * s390-tdep.c (s390_register_name): Update.
5552         * rs6000-tdep.c (rs6000_register_name): Update.
5553         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5554         (ns32k_register_name_32382): Update.
5555         * d10v-tdep.c (d10v_ts2_register_name): Update.
5556         (d10v_ts3_register_name): Update.
5557         * xstormy16-tdep.c (xstormy16_register_name): Update.
5558         * vax-tdep.c (vax_register_name): Update.
5559         * v850-tdep.c (v850_register_name): Update.
5560         * m68hc11-tdep.c (m68hc11_register_name): Update.
5561         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5562         (am33_register_name): Update.
5563
5564 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5565
5566         * m68k-tdep.c: Reindented.
5567
5568 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5569
5570         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5571         list of predefined types.
5572
5573 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5574
5575         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5576         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5577         REGISTER_CONVERT_TO_RAW): Remove defines.
5578         (i386_register_virtual_type, i386_register_convertible,
5579         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5580         Remove prototypes.
5581         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5582         macros mentioned above.
5583
5584         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5585         (i386lynx_saved_pc_after_call): Remove prototype.
5586         * i386ly-tdep.c: Include "i386-tdep.h".
5587         (i386lynx_saved_pc_after_call): Make static.  Use
5588         read_memory_nobpt instead of read_memory.  Use
5589         read_memory_unsigned_integer instead of read_memory_integer.
5590         (i386lynx_init_abi): New function.
5591         (i386lynx_coff_osabi_sniffer): New function.
5592         (_initialize_i386bsd_tdep): New function.
5593
5594         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5595         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5596         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5597         (i386_fix_call_dummy): Remove prototype.
5598         * i386-tdep.c (i386_call_dummy_words): New variable.
5599         (i386_gdbarch_init): Adjust for removal of the
5600         macros mentioned above.
5601
5602 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5603
5604         * command.h (add_setshow_auto_boolean_cmd): Replace
5605         add_set_auto_boolean_cmd.
5606         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5607         add_set_auto_boolean_cmd.
5608         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5609         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5610         mask-address'' command.
5611         (show_mask_address): Add cmd parameter.
5612         * remote.c (add_packet_config_cmd): Update.  Change type of
5613         set_func and show_func to cmd_sfunc_ftype.
5614         (_initialize_remote): Update `set remote Z-packet'
5615         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5616         (show_remote_protocol_e_packet_cmd): Ditto.
5617         (show_remote_protocol_E_packet_cmd): Ditto.
5618         (show_remote_protocol_P_packet_cmd): Ditto.
5619         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5620         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5621         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5622         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5623         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5624         (show_remote_protocol_Z_packet_cmd): Ditto.
5625         (show_remote_protocol_binary_download_cmd): Ditto.
5626         (show_remote_cmd): Pass NULL to all of above.
5627
5628 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5629
5630         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5631         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5632         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5633         POP_FRAME): Remove defines.
5634         (i386_push_arguments, i386_store_struct_return,
5635         i386_extract_return_value, i386_store_return_value,
5636         i386_extract_struct_value_address, i386_push_dummy_frame,
5637         i386_pop_frame): Renove prototypes.
5638         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5639         macros mentioned above.
5640
5641 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5642
5643         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5644         add_set_boolean_cmd.
5645         (add_setshow_cmd): New function.
5646         * command.h (add_setshow_boolean_cmd): Replace
5647         add_set_boolean_cmd.
5648         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5649         and ``set rdiromatzero''.
5650         * maint.c (_initialize_maint_cmds): Update commented out code.
5651         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5652         * target.c (initialize_targets): Update `set
5653         trust-readonly-sections'.
5654         * remote.c (_initialize_remote): Update `set remotebreak'.
5655
5656 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5657
5658         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5659         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5660         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5661         fit into multi-arch framework.
5662         (i386_breakpoint_from_pc): New function.
5663         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5664         above.
5665
5666         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5667         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5668         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5669         (i386_frameless_function_invocation, i386_frame_num_args,
5670         i386_frame_init_saved_regs): Remove prototypes.
5671         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5672         macros mentioned above.
5673
5674 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5675
5676         * cli/cli-decode.c (set_cmd_cfunc): Update.
5677         (set_cmd_sfunc): Update.
5678         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5679         (set_cmd_sfunc, set_cmd_cfunc): Update.
5680         * cli/cli-decode.h: Update.
5681
5682 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5683
5684         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5685         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5686
5687 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5688
5689         * defs.h (auto_boolean): Declare enum.
5690         * command.h (cmd_auto_boolean): Delete enum.
5691         * mips-tdep.c (mask_address_var): Update.
5692         (mips_mask_address_p): Update.
5693         (show_mask_address): Update.
5694         * remote.c (struct packet_config): Update.
5695         (update_packet_config): Update.
5696         (show_packet_config_cmd): Update.
5697         (packet_ok): Update.
5698         (add_packet_config_cmd): Update.
5699         (_initialize_remote): 
5700         * command.h: Update.
5701         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5702         (do_setshow_command): Update.
5703         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5704         * cli/cli-decode.h: Update.
5705
5706 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5707
5708         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5709         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5710         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5711         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5712         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5713         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5714
5715         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5716         list of DJGPP COFF targets.
5717
5718         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5719         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5720         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5721         (FP0_REGNUM): Remove define.
5722         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5723         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5724         (i386_register_virtual_size): Remove protoype.
5725         * i386-tdep.c (i386_register_virtual_size): Removed.
5726         (i386_extract_return_value, i386_store_return_value): Use
5727         FP0_REGNUM instead of NUM_FREGS to determine whether the
5728         floating-point registers are available.
5729         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5730         Adjust for removal of macros mentioned above.
5731
5732 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5733
5734         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5735         comments.
5736         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5737         Remove prototypes.
5738         (supply_gregset, fill_gregset): Remove use of register keyword and
5739         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5740         NUM_REGS and NUM_FREGS.
5741         (FPREGSET_FSAVE_OFFSET): Remove.
5742         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5743         NUM_FREGS to determine whether the floating-point registers are
5744         available.
5745
5746         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5747         gnu_store_registers): Replace usage of NUM_GREGS with
5748         I386_NUM_GREGS.
5749
5750         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5751         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5752         usage of NUM_GREGS with I386_NUM_GREGS.
5753
5754         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5755
5756         * i386bsd-nat.c: Include "i386-tdep.h".
5757         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5758         I386_NUM_GREGS.
5759
5760         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5761         and associated comment.  They no longer make any sense, since we
5762         don't use this file anymore on Linux.
5763
5764         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5765         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5766         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5767         elements in these arrays.
5768         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5769         MAX_NUM_REGS.
5770
5771 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5772
5773         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5774         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5775
5776 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5777
5778         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5779         EXTRACT_RETURN_VALUE.
5780         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5781         EXTRACT_STRUCT_VALUE_ADDRESS.
5782         * gdbarch.h, gdbarch.c: Regenerate.
5783         
5784         * values.c (value_being_returned): Handle
5785         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5786         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5787
5788         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5789         * arm-tdep.c (arm_gdbarch_init): Update.
5790         * avr-tdep.c (avr_gdbarch_init): Update.
5791         * cris-tdep.c (cris_gdbarch_init): Update.
5792         * d10v-tdep.c (d10v_gdbarch_init): Update.
5793         * ia64-tdep.c (ia64_gdbarch_init): Update.
5794         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5795         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5796         * s390-tdep.c (s390_gdbarch_init): Update.
5797         * sh-tdep.c (sh_gdbarch_init): Update.
5798         * s390-tdep.c (s390_gdbarch_init): Update.
5799         * sparc-tdep.c (sparc_gdbarch_init): Update.
5800         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5801         * v850-tdep.c (v850_gdbarch_init): Update.
5802         * vax-tdep.c (vax_gdbarch_init): Update.
5803         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5804         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5805
5806         * config/arc/tm-arc.h: Update.
5807         * config/d30v/tm-d30v.h: Update.
5808         * config/fr30/tm-fr30.h: Update.
5809         * config/h8300/tm-h8300.h: Update.
5810         * config/h8500/tm-h8500.h: Update.
5811         * config/i386/tm-i386.h: Update.
5812         * config/i386/tm-ptx.h: Update.
5813         * config/i386/tm-symmetry.h: Update.
5814         * config/i960/tm-i960.h: Update.
5815         * config/m32r/tm-m32r.h: Update.
5816         * config/m68k/tm-delta68.h: Update.
5817         * config/m68k/tm-linux.h: Update.
5818         * config/m68k/tm-m68k.h: Update.
5819         * config/m88k/tm-m88k.h: Update.
5820         * config/mcore/tm-mcore.h: Update.
5821         * config/mips/tm-mips.h: Update.
5822         * config/mn10200/tm-mn10200.h: Update.
5823         * config/pa/tm-hppa.h: Update.
5824         * config/pa/tm-hppa64.h: Update.
5825         * config/sparc/tm-sp64.h: Update.
5826         * config/sparc/tm-sparc.h: Update.
5827         * config/sparc/tm-sparclet.h: Update.
5828         * config/z8k/tm-z8k.h: Update.
5829
5830 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5831
5832         * Makefile.in (i386_linux_tdep_h): Define.
5833         (i386_tdep_h, i387_tdep_h): Define.
5834         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5835         $(i386_tdep_h) and $(i387_tdep_h).
5836         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5837
5838 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5839
5840         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5841         Already covered by the default.
5842
5843         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5844         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5845         (i386_gdbarch_init): Initialize long_double_format and long_double
5846         bit.
5847
5848         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5849         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5850         Move these to ...
5851         * config/i386/i386sol2.mh: ... here.
5852         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5853         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5854         (SIGCONTEXT_PC_OFFSET): Remove define.
5855         (IN_SIGTRAMP): Remove define.
5856         * i386-sol2-tdep.c: New file.
5857         
5858         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5859         * config/i386/tm-i386nw.h: Removed.
5860
5861         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5862         USE_STRUCT_CONVENTION): Remove defines.
5863         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5864         (get_longjmp_target): Remove prototype.
5865         (IN_SIGTRAMP): Remove define.
5866         (i386bsd_in_sigtramp): Remove prototype.
5867         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5868         function.  Update comment accordingly
5869         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5870         (FRAME_SAVED_PC): Remove define.
5871         (i386bsd_frame_saved_pc): Remove prototype.
5872         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5873         GET_LONGJMP_TARGET): Remove defines.
5874         (get_longjmp_target): Remove prototype.
5875         (IN_SIGTRAMP): Remove define.
5876         (i386bsd_in_sigtramp): Remove prototype.
5877         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5878         function.  Update comment accordingly
5879         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5880         (FRAME_SAVED_PC): Remove define.
5881         (i386bsd_frame_saved_pc): Remove prototype.
5882         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5883         Remove prototype.
5884         (USE_STRUCT_CONVENTION): Remove prototype.
5885         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5886         declaration.
5887         (_initialize_i386bsd_nat): Revise logic to determine some
5888         constants at compile time when compiling a native GDB.  Warn if
5889         things don't match up with what we expect.
5890         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5891         Remove variables.
5892         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5893         to use date stored in `struct gdbarch_tdep'.
5894         (i386bsd_sigcontext_offset): Remove varaible.
5895         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5896         stored in `struct gdbarch_tdep'.
5897         (i386bsd_frame_saved_pc): Make static.
5898         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5899         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5900         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5901         i386fbsd4_sc_pc_offset): New variables.
5902         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5903         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5904         functions.
5905         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5906         functions.
5907         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5908         Modify the value of i386fbsd_sigtramp_start and
5909         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5910         i386fbsd_sigtramp_end.
5911         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5912         function.
5913
5914         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5915         define to i386-linux-tdep.h.
5916         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5917         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5918         defines.
5919         (i386_linux_register_name, i386_linux_register_byte,
5920         i386_linux_register_raw_size): Remove prototypes.
5921         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5922         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5923         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5924         TARGET_WRITE_PC): Remove defines.
5925         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5926         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5927         i386_linux_write_pc): Remove prototypes.
5928         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5929         (get_longjmp_target): Remove prototype.
5930         * i386-linux-tdep.h: New file.
5931         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5932         * i386-linux-tdep.c: Include "i386-tdep.h" and
5933         "i386-linux-tdep.h".
5934         (i386_linux_register_name, i386_linux_register_byte,
5935         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5936         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5937         Make static.
5938         (i386_linux_init_abi): New function.
5939         (_initialize_i386_linux_tdep): New function.
5940
5941         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5942         (i386_saved_pc_after_call): Remove prototype.
5943         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5944         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5945         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5946         (i386_register_name, i386_stab_reg_to_regnum,
5947         i386_dwarf_reg_to_regnum): Remove prototypes.
5948         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5949         SIZEOF_SSE_REGS): Remove defines.
5950         (REGISTER_BYTES): Remove define.
5951         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5952         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5953         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5954         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5955         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5956         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5957         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5958         (get_longjmp_target): Remove prototype.
5959         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5960         (sigtramp_saved_pc): Remove define.
5961         (i386v4_sigtramp_saved_pc): Remove prototype.
5962         * config/i386/tm-go32.h (FRAME_CHAIN,
5963         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5964         (i386go32_frame_saved_pc): Remove prototype.
5965         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5966         (get_longjmp_target): Remove prototype.
5967         * i386-tdep.h: Include "osabi.h".
5968         (enum i386_abi): Removed.
5969         (enum struct_return): New enum.
5970         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5971         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5972         sc_pc_offset members.
5973         (i386_gdbarch_register_os_abi): Remove prototype.
5974         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5975         I386_SSE_NUM_REGS): New defines.
5976         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5977         I386_SSE_SIZEOF_REGS): New defines.
5978         (i386_register_name, i386_register_byte, i386_register_raw_size):
5979         New prototypes.
5980         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5981         (i386bsd_sigtramp_saved_pc): New prototype.
5982         * i386-tdep.c: Don't include "elf-bfd.h".
5983         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5984         i386_frame_chain, i386_saved_pc_after_call): Make static.
5985         (i386_frame_saved_pc): Rewrite to call architecture dependent
5986         function to deal with signal handlers.  Make static.
5987         (i386go32_frame_saved_pc): Removed.
5988         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5989         Removed.
5990         (i386_get_longjmp_target): New function.
5991         (default_struct_convention, pcc_struct_convention,
5992         reg_struct_convention, valid_conventions, struct_convention): New
5993         variables.
5994         (i386_use_struct_convention): New function.
5995         (i386v4_sigtramp_saved_pc): Renamed to
5996         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5997         (i386_pc_in_sigtramp): New function.
5998         (i386_abi_names): Removed.
5999         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6000         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6001         Removed.
6002         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6003         i386_gdbarch_register_os_abi): Removed.
6004         (struct i386_abi_handler): Removed.
6005         (i386_abi_handler_list): Removed.
6006         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6007         functions.
6008         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6009         i386_nw_init_abi): New functions.
6010         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6011         Use set_gdbarch_xxx() calls instead of relying on macros for a
6012         number of calls.
6013         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6014         (_initialize_i386_tdep): Add new 'struct-convcention' command.
6015         Register the various architecture variants defined in this file.
6016
6017 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
6018
6019         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6020         (struct main_type): Remove arg_types member.  Update comments for
6021         struct field.
6022         (TYPE_ARG_TYPES): Remove.
6023         (TYPE_FN_FIELD_ARGS): Update.
6024         (smash_to_method_type): Update prototype.
6025
6026         * c-typeprint.c (cp_type_print_method_args): Take method type
6027         instead of argument list.  Use new argument layout.  Simplify.
6028         (c_type_print_args): Use new argument layout.  Simplify.
6029         (c_type_print_base): Update call to cp_type_print_method_args.
6030         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6031         argument; use die->type instead.  Update call to
6032         smash_to_method_type.
6033         (read_structure_scope): Update call to dwarf2_add_member_fn.
6034         * gdbtypes.c (allocate_stub_method): Update comment.
6035         (smash_to_method_type): Take new NARGS and VARARGS arguments.
6036         Use new argument layout.
6037         (check_stub_method): Use new argument layout.  Don't count
6038         void as an argument.
6039         (print_arg_types): Update comments.  Use new argument layout.
6040         (recursive_dump_type): Don't print arg_types member.
6041         * hpread.c (hpread_read_struct_type): Use new argument layout.
6042         (fixup_class_method_type): Likewise.
6043         (hpread_type_lookup): Likewise.
6044         * stabsread.c (read_type): Update calls to read_args and
6045         smash_to_method_type.
6046         (read_args): Use new argument layout.  Simplify.
6047         * valops.c (typecmp): Use new argument layout.  Update parameters
6048         and comments.  Simplify.
6049         (hand_function_call): Use new argument layout.
6050         (search_struct_method): Update call to typecmp.
6051         (find_overload_match): Use new argument layout.
6052
6053 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6054
6055         * NEWS: Mention multithreaded debug support for gdbserver.
6056
6057 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6058
6059         * MAINTAINERS: Mention NEWS.
6060
6061 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
6062
6063         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6064         (struct mips_objfile_private, compare_pdr_entries): New.
6065         (non_heuristic_proc_desc): Read the ".pdr" section if it
6066         is present.
6067
6068 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6069
6070         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6071         (arm_debug): New static variable.
6072         (_initialize_arm_tdep): Add ``set debug arm'' command.
6073
6074 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6075
6076         * Makefile.in (sim_arm_h): Define.
6077         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6078         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6079         (arm_register_sim_regno): New function, map an internal REGNUM
6080         onto a simulator register number.
6081         (arm_gdbarch_init): Set register_sim_regno.
6082
6083 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
6084
6085         * MAINTAINERS: Add self.
6086
6087 2002-06-11  Jim Blandy  <jimb@redhat.com>
6088
6089         * source.c (source_info): Mention whether the symtab has
6090         information about preprocessor macros.
6091
6092         Call the command `info macro', not `show macro'.
6093         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6094         Fix error message.
6095         (_initialize_macrocmd): Register `info_macro_command' in
6096         `infolist', not `showlist'.
6097
6098 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
6099
6100         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6101         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6102         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6103         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6104         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
6105         unconditionally.
6106         (set_mipsfpu_single_command, set_mipsfpu_double_command)
6107         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6108         (_initialize_mips_tdep): Remove dead code.
6109         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6110         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6111         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6112         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6113         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6114         MIPS_LAST_FP_ARG_REGNUM): Remove.
6115
6116 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6117
6118         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6119         (unwind_tmp_obstack_free, parse_frame_info)
6120         (update_context, cfi_read_fp, cfi_write_fp)
6121         (cfi_frame_chain, cfi_init_extra_frame_info)
6122         (cfi_virtual_frame_pointer): Use the above function.
6123         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6124
6125 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
6126
6127         * v850-tdep.c (v850_type_is_scalar): New function.
6128         (v850_use_struct_convention): Match current gcc implementation
6129         as close as possible.
6130         (v850_push_arguments): Fix stack_offset handling.  Don't write
6131         struct_addr into register.  This is done by v850_store_struct_return.
6132         (v850_extract_return_value): Care for structs.
6133         (v850_store_return_value): Ditto.
6134         (v850_store_struct_return): Actually write address.
6135
6136 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6137
6138         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6139         without debug information too.
6140
6141 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6142
6143         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6144         Make multi-arch pure.
6145         * gdbarch.h, gdbarch.c: Re-generate.
6146         * arm-tdep.c (arm_print_float_info): Update.
6147         * arch-utils.h (default_print_float_info): Update.
6148         * arch-utils.c (default_print_float_info): Update.
6149         * infcmd.c (float_info): Update call.
6150
6151 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6152
6153         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6154         the front of the initialize list.
6155
6156 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6157
6158         * infrun.c (struct inferior_status): Replace fields
6159         selected_frame_address and selected_level with field
6160         selected_frame_id.
6161         (save_inferior_status): Update.  Use get_frame_id.
6162         (struct restore_selected_frame_args): Delete.
6163         (restore_selected_frame): Update.  Use frame_find_by_id.
6164         (restore_inferior_status): Update.
6165
6166         * breakpoint.h (struct breakpoint): Change type of
6167         watchpoint_frame to frame_id.
6168         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
6169         call to get_current_frame.
6170         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
6171         get_current_frame.
6172         (watchpoint_check): Use frame_find_by_id.
6173
6174         * frame.h (record_selected_frame): Delete declaration.
6175         * stack.c (record_selected_frame): Delete function.
6176         
6177         * frame.h (struct frame_id): Define.
6178         (get_frame_id): Declare.
6179         (frame_find_by_id): Declare.
6180         * frame.c (frame_find_by_id): New function.
6181         (get_frame_id): New function.
6182
6183 2002-06-10  Andrey Volkov <avolkov@transas.com>
6184
6185         * ser-e7kpc.c: Fix duplicated define and call of 
6186         _initialize_ser_e7000pc
6187             
6188 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6189
6190         * signals/signals.c (target_signal_from_host): Fix #ifdef
6191         SIGRTMIN case.
6192         (do_target_signal_to_host): Likewise.
6193
6194 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6195
6196         * mips-tdep.c (mips_find_abi_section): New function.
6197         (mips_gdbarch_init): Call it.
6198
6199 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6200
6201         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6202         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
6203         after Andrew's 2002-06-08 gdbarch change.
6204
6205 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6206
6207         * i386-linux-nat.c (suppy_gregset): Don't supply
6208         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6209         register cache.
6210         (fill_gregset): Don't fetch it under the same circumstances.
6211
6212 2002-06-09  Andrew Cagney  <cagney@redhat.com>
6213
6214         * Makefile.in (callback_h): Define.
6215         (remote_sim_h): Update path to remote-sim.h.
6216         (remote-rdp.o): Add $(callback_h).
6217         (remote-sim.o): Use $(callback_h).
6218         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6219         * remote-rdp.c: Include "gdb/callback.h".
6220
6221 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6222
6223         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6224         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6225
6226 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6227
6228         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6229         * rdi-share/serpardr.c: Ditto.
6230         * rdi-share/unixcomm.c: Ditto.
6231         * rdi-share/serdrv.c: Ditto.
6232         * rdi-share/hostchan.h: Ditto.
6233         * rdi-share/hostchan.c: Ditto.
6234         * rdi-share/host.h: Ditto.
6235         * rdi-share/devsw.c: Ditto.
6236
6237         * objfiles.h: Change type of obj_private to void pointer.
6238         * pa64solib.c: Update copyright.  Don't include "assert.h", use
6239         strcmp instead of STREQ, use LONGEST, do not use PTR
6240         * somsolib.c: Ditto.
6241
6242         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6243         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6244         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6245
6246 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6247
6248         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6249         (default_get_saved_register): Delete function.
6250         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6251         generic_unwind_get_saved_register.
6252         * gdbarch.h, gdbarch.c: Re-generate.
6253         
6254 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6255
6256         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6257         generic_func_frame_chain_valid.
6258         * gdbarch.h, gdbarch.c: Re-generate.
6259         * blockframe.c (generic_func_frame_chain_valid): Only check
6260         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
6261         passing FP to PC_IN_CALL_DUMMY.
6262         Fix PR gdb/360.
6263
6264 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6265
6266         * gdbarch.sh (struct gdbarch_data): Add field init_p.
6267         (register_gdbarch_data): Initialize init_p.
6268         (gdbarch_data): Initialize data pointer using the init function.
6269         (init_gdbarch_data): Delete function.
6270         (gdbarch_update_p): Update.
6271         (initialize_non_multiarch): Update.
6272         (struct gdbarch): Add field initialized_p.
6273         * gdbarch.h, gdbarch.c: Re-generate.
6274
6275 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
6276
6277         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6278         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6279         better do the things actually here.
6280         * x86-64-tdep.c (x86_64_register_name2nr): New.
6281         (x86_64_register_name): Renamed to x86_64_register_nr2name.
6282         (x86_64_gdbarch_init): Respect the above change.
6283         * x86-64-tdep.h (x86_64_register_name2nr)
6284         (x86_64_register_nr2name): Add prototypes.
6285         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6286
6287 2002-06-06  Michael Snyder  <msnyder@redhat.com>
6288
6289         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6290         Delete extra braces and re-indent.
6291         (d10v_store_return_value): Char return values
6292         must be shifted over by one byte in R0.
6293         (d10v_extract_return_value): Delete extra braces, re-indent.
6294
6295 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6296
6297         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6298         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6299         (d10v_integer_to_address): Rewrite.
6300         (d10v_frame_init_saved_regs): When reading fp and sp registers use
6301         the d10v specific functions which take care of converting to the
6302         correct space.
6303
6304 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6305
6306         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6307         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6308
6309 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6310
6311         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6312         includes.
6313         * config/tm-linux.h: Ditto.
6314         * config/alpha/tm-alphalinux.h: Ditto.
6315         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6316         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6317         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6318         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6319         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6320         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6321         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6322         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6323         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6324         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6325         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6326         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6327         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6328         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6329         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6330         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6331         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6332         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6333         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6334         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6335         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6336         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6337         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6338         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6339         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6340         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6341         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6342         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6343         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6344         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6345         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6346         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6347         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6348         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6349         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6350         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6351         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6352
6353 2002-05-04  Aidan Skinner <aidan@velvet.net>
6354
6355         * ada-exp.tab.c: New file
6356         * ada-exp.y: New file
6357         * ada-lang.c: New file
6358         * ada-lang.h: New file
6359         * ada-lex.c: New file
6360         * ada-lex.l: New file
6361         * ada-tasks.c: New file
6362         * ada-typeprint.c: New file
6363         * ada-valprint.c: New file
6364         
6365 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6366
6367         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6368         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6369
6370 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6371
6372         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6373         insetead of ppc-linux-tdep.o.
6374         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6375         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6376
6377 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6378
6379         2002-05-07 Christian Groessler <chris@groessler.org>
6380         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6381         bit register contents for little endian hosts.
6382
6383 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6384
6385         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6386         any maintainer.
6387
6388 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6389
6390         * gdbarch.h: Regenerate.
6391
6392 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6393
6394         * MAINTAINERS: Add everyone to write-after-approval list.
6395
6396 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6397
6398         * stack.c (frame_info): Use frame_register_unwind instead of
6399         saved_regs.  Mention when the SP is on the stack or in a register.
6400
6401         * frame.h (frame_register_unwind_ftype): Define.  Document.
6402         (struct frame_info): Add field register_unwind and
6403         register_unwind_cache.
6404         (frame_register_unwind): Declare.
6405         (generic_unwind_get_saved_register): Declare.
6406
6407         * frame.c (frame_register_unwind): New function.
6408         (generic_unwind_get_saved_register): New function.
6409
6410         * blockframe.c (generic_call_dummy_register_unwind): New function.
6411         (frame_saved_regs_register_unwind): New function.
6412         (set_unwind_by_pc): New function.
6413         (create_new_frame): New function.
6414         (get_prev_frame): New function.
6415
6416 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
6417
6418         * a29k-share/: Delete directory.
6419         * remote-vx29k.c: Delete file.
6420
6421 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6422
6423         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6424         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6425
6426 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6427
6428         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6429         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6430         (sparc64nbsd-nat.o)
6431         (sparcnbsd-nat.o)
6432         (sparcnbsd-tdep.o): New dependency lists.
6433         * NEWS: Note new UltraSPARC NetBSD native configuration.
6434         * configure.host (sparc64-*-netbsd*): New host.
6435         * configure.tgt (sparc-*-netbsdelf*)
6436         (sparc-*-netbsd*): Set gdb_target to nbsd.
6437         (sparc64-*-netbsd*): New target.
6438         * sparc64nbsd-nat.c: New file.
6439         * sparcnbsd-nat.c: New file.
6440         * sparcnbsd-tdep.c: New file.
6441         * sparcnbsd-tdep.h: New file.
6442         * config/sparc/nbsd.mt: New file.
6443         * config/sparc/nbsd64.mh: New file.
6444         * config/sparc/nbsd64.mt: New file.
6445         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6446         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6447         (HOST_IPC): Remove.
6448         * config/sparc/nbsdaout.mt: Remove.
6449         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6450         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6451         (HOST_IPC): Remove.
6452         * config/sparc/nbsdelf.mt: Remove.
6453         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
6454         sparc-nat.c compatiblity defines.
6455         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
6456         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6457         * config/sparc/tm-nbsd64.h: New file.
6458         * config/sparc/tm-nbsdaout.h: Remove.
6459         * config/sparc/xm-nbsd.h: Remove.
6460
6461 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6462
6463         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6464         * sparc-tdep.c: Include osabi.h.
6465         (gdbarch_tdep): Add osabi member.
6466         (_initialize_sparc_tdep): Use gdbarch_register.
6467         (sparc_gdbarch_init): Use generic OS ABI framework.
6468         (sparc_dump_tdep): New function.
6469
6470 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
6471
6472         * corefile.c (do_captured_read_memory_integer): Return non-zero
6473         result.
6474         (safe_read_memory_integer): Copy result of memory read when
6475         status is non-zero.  Also, add comments.
6476
6477 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
6478
6479         * Makefile.in (ppc_tdep_h): Define.
6480         (ppc-linux-nat.o)
6481         (ppc-linux-tdep.o)
6482         (rs6000-tdep.o): Use $(ppc_tdep_h).
6483         (ppc-sysv-tdep.o)
6484         (ppcnbsd-nat.o)
6485         (ppcnbsd-tdep.o): New dependency lists.
6486         * ppc-tdep.h: Use generic OS ABI framework.
6487         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6488         (ppc_linux_init_abi): New functions.
6489         (ppc_sysv_abi_broken_use_struct_convention)
6490         (ppc_sysv_abi_use_struct_convention)
6491         (ppc_sysv_abi_push_arguments): Move to...
6492         * ppc-sysv-tdep.c: ...here.
6493         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6494         * rs6000-tdep.c (process_note_abi_tag_sections)
6495         (get_elfosabi): Remove.
6496         (rs6000_gdbarch_init): Use generic OS ABI framework.
6497         (rs6000_dump_tdep): New function.
6498         (_initialize_rs6000_tdep): Use gdbarch_register.
6499         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6500         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6501         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6502         of ppc-linux-tdep.o.
6503         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6504         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6505         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6506         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6507         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6508         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6509
6510 2002-05-29  Jim Blandy  <jimb@redhat.com>
6511
6512         * macroscope.c (default_macro_scope): Put `void' in empty argument
6513         list.
6514
6515 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6516
6517         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6518         * arch-utils.c: Include "sim-regno.h".
6519         * gdbarch.sh: Don't include "sim-regno.h".
6520         * gdbarch.h, gdbarch.c: Regenerate.
6521         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6522         here.
6523         * arch-utils.h (legacy_register_sim_regno): To here.
6524         * remote-sim.c (legacy_register_sim_regno): Move function from
6525         here.
6526         * arch-utils.c (legacy_register_sim_regno): To here.
6527
6528 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6529
6530         * sim-regno.h: New file.
6531         * Makefile.in (sim_regno_h): Define.
6532         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6533         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6534         (legacy_register_sim_regno): New function.
6535         (one2one_register_sim_regno): New function.
6536         (gdbsim_fetch_register): Rewrite.
6537         (gdbsim_store_register): Only store a register when
6538         REGISTER_SIM_REGNO is valid.
6539         * d10v-tdep.c: Include "sim-regno.h".
6540         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6541         (d10v_ts3_register_sim_regno): Ditto.
6542         * gdbarch.sh: Include "sim-regno.h".
6543         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6544         * gdbarch.h, gdbarch.c: Regenerate.
6545         * arch-utils.h (default_register_sim_regno): Delete declaration.
6546         * arch-utils.c (default_register_sim_regno): Delete function.
6547
6548 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6549
6550         * ppcnbsd-nat.c: Rewrite.
6551         * ppcnbsd-tdep.c: New file.
6552         * ppcnbsd-tdep.h: New file.
6553         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6554         solib.o, and solib-svr4.o.
6555         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6556         nbsd-tdep.o, and corelow.o.
6557
6558 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6559
6560         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6561         `tr' and `sed'.  Mention that `broken' targets are not expected to
6562         build.
6563
6564 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6565
6566         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6567         Let PC point right after the prologue before looking up symbols.
6568         
6569 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6570
6571         * i386-tdep.c (i386_register_virtual_type): Return 
6572         builtin_type_vec128i for SSE registers.
6573
6574         * gdbtypes.h (builtin_type_vec128i): Declare.
6575
6576         * gdbtypes.c (build_builtin_type_vec128i): New function.
6577         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6578         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6579         (build_gdbtypes): Initialize new builtin vector types.
6580         (_initialize_gdbtypes): Register new vector types with gdbarch.
6581
6582 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6583
6584         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6585         since it has been multi-arch'd.
6586         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6587         Move Alpha and VAX multi-arch news entries to same section
6588         as other multi-arch news.
6589
6590 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6591
6592         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6593         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6594         static.  Rename some register numbers to put them in ns32k-tdep
6595         private namespace.
6596         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6597         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6598         functions.
6599         (_initialize_ns32k_tdep): Use gdbarch_register.
6600         * ns32k-tdep.h: New file.
6601         * ns32knbsd-tdep.c: New file.
6602         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6603         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6604         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6605         REGISTER_BYTES, REGISTER_BYTE): Remove.
6606         * config/ns32k/tm-ns32k.h: New file.
6607         * config/ns32k/tm-umax.h: Remove.
6608
6609 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6610
6611         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6612         ns32k_store_struct_return, ns32k_extract_return_value,
6613         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6614         functions.
6615         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6616         ns32k_saved_pc_after_call.
6617         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6618         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6619         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6620         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6621         ns32k_extract_struct_value_address.
6622
6623 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6624
6625         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6626         ns32k_fix_call_dummy): New.
6627         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6628         ns32k_call_dummy_words.
6629         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6630         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6631         CALL_DUMMY_NARGS): Remove.
6632         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6633
6634 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6635
6636         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6637         ns32k_frame_saved_pc, ns32k_frame_args_address,
6638         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6639         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6640         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6641         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6642         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6643         (BREAKPOINT): Remove..
6644         (FRAME_CHAIN): Define as ns32k_frame_chain.
6645         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6646         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6647         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6648         (FRAME_FIND_SAVED_REGS): Remove.
6649         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6650         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6651         (POP_FRAME): Define as ns32k_pop_frame.
6652
6653 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6654
6655         * ns32k-tdep.c (ns32k_register_byte_32082,
6656         ns32k_register_byte_32382, ns32k_register_raw_size,
6657         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6658         functions.
6659         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6660         ns32k_register_byte_32382.
6661         * config/ns32k/tm-umax.h: Update copyright years.
6662         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6663         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6664         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6665         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6666         (ns32k_get_enter_addr): Fix prototype.
6667
6668 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6669
6670         * ns32k-tdep.c: Update copyright years.
6671         (ns32k_register_name_32082): New function.
6672         (ns32k_register_name_32382): Ditto.
6673         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6674         (REGISTER_NAME): Define as ns32k_register_name_32382.
6675         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6676         (REGISTER_NAME): Define as ns32k_register_name_32082.
6677
6678 2002-05-24  Jim Blandy  <jimb@redhat.com>
6679
6680         * dwarf2read.c (free_line_header): Use xfree, not free.
6681
6682 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6683
6684         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6685         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6686
6687 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6688
6689         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6690
6691 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6692
6693         From Ross Alexander at NEC Europe:
6694         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6695
6696 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6697
6698         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6699         for input, rather than parse_and_eval_address.  
6700
6701 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6702
6703         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6704         * Makefile.in (sim_d10v_h): Update definition.
6705
6706 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6707
6708         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6709         change `2002-05-22 Michael Snyder' below.
6710         (d10v_push_arguments): Ditto.
6711         (d10v_extract_return_value): Ditto.
6712
6713 2002-05-23  Jim Blandy  <jimb@redhat.com>
6714
6715         * macrotab.c (check_for_redefinition): Don't complain if the new
6716         definition is the same as the previous one.  Take more arguments
6717         to allow the comparison.
6718         (macro_define_object, macro_define_function): Pass more arguments
6719         to check_for_redefinition.
6720
6721 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6722
6723         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6724         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6725         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6726         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6727         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6728         Add a temp variable to save a call (and a memory read).
6729         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6730         if possible (so that PC_IN_CALL_DUMMY will work).
6731
6732 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6733
6734         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6735
6736 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6737
6738         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6739         fde->cie_ptr.
6740         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6741         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6742         so that frames of shared libraries are mapped correctly.
6743         (execute_stack_op): Change type of 'result' from ULONGEST to
6744         CORE_ADDR.
6745         
6746 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6747
6748         * config/alpha/tm-nbsd.h: Include solib.h.
6749
6750 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6751
6752         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6753         assumptions about the host's byte order.
6754
6755 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6756
6757         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6758         to dependency list.
6759         * alphanbsd-tdep.c: Include solib-svr4.h.
6760         * shnbsd-tdep.c: Ditto.
6761
6762 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6763
6764         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6765         nbsd-tdep.h to dependency list.
6766         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6767         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6768         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6769         nbsdaout.mh and nbsdelf.mh consistently.
6770         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6771         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6772         nbsdaout.mt and nbsdelf.mh consistently.
6773         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6774         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6775         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6776         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6777         a.out shared library stuff from here...
6778         * config/nm-nbsdaout.h: ...to here.
6779         * config/tm-nbsd.h: Remove.
6780         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6781         * config/arm/nbsd.mh: Remove.
6782         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6783         nbsd-tdep.o.
6784         * config/arm/nbsdaout.mh: New file. 
6785         * config/arm/nbsdelf.mh: New file.
6786         * config/arm/nm-nbsdaout.h: New file.
6787         * config/i386/nbsd.mh: Remove.
6788         * config/i386/nbsd.mt: Remove.
6789         * config/i386/nbsdaout.mh: New file.
6790         * config/i386/nbsdaout.mt: New file.
6791         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6792         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6793         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6794         i386_register_u_addr): Remove.
6795         * config/i386/nm-nbsdaout.h: New file.
6796         * config/i386/nm-nbsdelf.h: Remove.
6797         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6798         (USE_STRUCT_CONVENTION): Remove.
6799         * config/i386/tm-nbsdaout.h: New file.
6800         * config/i386/tm-nbsdelf.h: Remove.
6801         * config/m68k/nbsd.mh: Remove.
6802         * config/m68k/nbsd.mt: Remove.
6803         * config/m68k/nbsdaout.mh: New file.
6804         * config/m68k/nbsdaout.mt: New file. 
6805         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6806         * config/m68k/nm-nbsdaout.h: New file.
6807         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6808         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6809         * config/ns32k/nbsd.mh: Remove.
6810         * config/ns32k/nbsd.mt: Remove. 
6811         * config/ns32k/nbsdaout.mh: New file.
6812         * config/ns32k/nbsdaout.mt: New file.
6813         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6814         * config/ns32k/nm-nbsdaout.h: New file.
6815         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6816         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6817         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6818         (SVR4_SHARED_LIBS): Remove.
6819         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6820         * config/sparc/nbsd.mh: Remove.
6821         * config/sparc/nbsd.mt: Remove.
6822         * config/sparc/nbsdaout.mh: New file.
6823         * config/sparc/nbsdaout.mt: New file.
6824         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6825         * config/sparc/nbsdelf.mt: New file.
6826         * config/sparc/nm-nbsdaout.h: New file.   
6827         * config/sparc/nm-nbsdelf.h: Remove.
6828         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6829         * config/sparc/tm-nbsdaout.h: New file.
6830
6831 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6832
6833         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6834         mipsnbsd-tdep.c
6835         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6836
6837 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6838
6839         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6840         shnbsd-nat.c.
6841         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6842
6843 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6844
6845         * NEWS: Note new MIPS NetBSD native configuration. 
6846         * configure.host (mips*-*-netbsd*): New host. 
6847         * configure.tgt (mips*-*-netbsd*): New target. 
6848         * mipsnbsd-nat.c: New file.
6849         * mipsnbsd-tdep.c: New file.
6850         * mipsnbsd-tdep.h: New file.
6851         * config/mips/nbsd.mh: New file.
6852         * config/mips/nbsd.mt: New file.
6853         * config/mips/nm-nbsd.h: New file.
6854         * config/mips/tm-nbsd.h: New file.
6855
6856 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6857
6858         * Makefile.in (SFILES): Add osabi.c.
6859         (COMMON_OBS): Add osabi.o.
6860         (osabi.o): New dependency list.
6861         * osabi.c: New file.
6862         * osabi.h: New file.
6863         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6864
6865         * Makefile.in (alpha_tdep_h): Define and use instead of
6866         alpha-tdep.h.
6867         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6868         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6869         Remove.
6870         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6871         * alpha-tdep.h: Include osabi.h.
6872         (alpha_abi): Remove.
6873         (gdbarch_tdep): Use generic OS ABI framework.
6874         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6875         gdbarch_register_osabi.
6876         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6877         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6878         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6879
6880         * Makefile.in (sh_tdep_h): Add osabi.h.
6881         * sh-tdep.h (sh_osabi): Remove.
6882         (gdbarch_tdep): Use generic OS ABI framework.
6883         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6884         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6885         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6886         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6887
6888         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6889         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6890         gdbarch_register_osabi.
6891         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6892         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6893         (get_elfosabi): Rename to...
6894         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6895         ABI framework support routines.
6896         (arm_gdbarch_init): Use generic OS ABI framework.
6897         (arm_dump_tdep): Likewise.
6898         (_initialize_arm_tdep): Likewise.
6899         * arm-tdep.h: Include osabi.h.
6900         (arm_abi): Remove.
6901         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6902         osabi member.
6903         (arm_gdbarch_register_os_abi): Remove prototype.
6904         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6905         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6906
6907         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6908         * mips-tdep.c: Include osabi.h.
6909         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6910         OS ABI framework.
6911
6912 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6913
6914         * h8300-tdep.c: Fix formatting.
6915
6916 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6917
6918         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6919         printing vector registers.
6920
6921 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6922
6923         From Fernando Nasser:
6924         * remote.c (remote_async_open_1): Re-throw the exception when the
6925         connection fails.
6926         (remote_cisco_open): Ditto.
6927         (remote_open_1): Ditto.
6928
6929 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6930
6931         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6932         (remote_start_remote): Add uiout parameter.  Pass through to
6933         remote_start_remote_dummy.
6934         (remote_open_1): Use catch_exception instead of catch_errors.
6935         (remote_async_open_1): Ditto.
6936         (remote_cisco_open): Ditto.
6937
6938 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6939
6940         * remote.c (remote_start_remote): Replace PTR with void pointer.
6941         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6942         static.
6943
6944 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6945
6946         * gdb_indent.sh: Allow the script to be run in the sim directory.
6947
6948 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6949
6950         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6951         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6952
6953         * corelow.c (core_open): Only call set_gdbarch_from_file if
6954         exec_bfd is NULL.
6955
6956 2002-05-17  Andrey Volkov <avolkov@transas.com>
6957
6958         * h8300-tdep.c: Add support of EXR register
6959         * config/h8300/tm-h8300.h: Ditto. 
6960         
6961 2002-05-17  Andrey Volkov <avolkov@transas.com>
6962
6963         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6964         
6965 2002-05-17  Andrey Volkov <avolkov@transas.com>
6966
6967         * h8300-tdep.c: Change literal regnums to REGNO.
6968         
6969 2002-05-17  Jim Blandy  <jimb@redhat.com>
6970
6971         * NEWS: Note addition of macro support.
6972
6973         Expand preprocessor macros in C expressions.
6974         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6975         (scan_macro_expansion, scanning_macro_expansion,
6976         finished_macro_expansion): New function declarations.
6977         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6978         variable declarations.
6979         * parser-defs.h (expression_context_pc): New declaration.
6980         * parse.c (expression_context_pc): New variable.
6981         (parse_exp_1): Set expression_context_pc, as well as
6982         expression_context_block.
6983         * c-exp.y (yylex): If we're not already reading the result of a
6984         macro expansion, try to macro-expand the next token.  When we're
6985         done scanning a macro expansion, switch back to the mainline text.
6986         Commas and `if's in a macro's expansion don't terminate the input.
6987         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6988         (macro_original_text, macro_expanded_text,
6989         expression_macro_lookup_func, expression_macro_lookup_baton): New
6990         variables.
6991         (scan_macro_expansion, scanning_macro_expansion,
6992         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6993         c_preprocess_and_parse): New functions.
6994         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6995         c_preprocess_and_parse, instead of c_parse.
6996         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6997         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6998
6999 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
7000
7001         * sh-tdep.c (gdb_print_insn_sh64): Delete.
7002         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7003         (sh_gdbarch_init): Always use gdb_print_insn_sh.
7004
7005 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
7006
7007         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
7008
7009 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
7010
7011         * Makefile.in (sh_tdep_h): Define and use.
7012         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7013         register enum): Move to...
7014         * * sh-tdep.h: ...here.
7015         * sh-tdep.c: Include sh-tdep.h.
7016         * sh3-rom.c: Likewise.
7017         * shnbsd-tdep.c: Likewise.
7018
7019 2002-05-16  Michael Snyder  <msnyder@redhat.com>
7020
7021         * arm-tdep.c: Spelling fix in comment.
7022
7023 2002-05-16  Jim Blandy  <jimb@redhat.com>
7024
7025         Add commands for manually expanding macros and showing their
7026         definitions.
7027         * macrocmd.c, macroscope.c, macroscope.h: New files.
7028         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7029         (macroscope_h): New variable.
7030         (HFILES_NO_SRCDIR): Add macroscope.h.
7031         (COMMON_OBS): Add macrocmd.o, macroscope.o.
7032         (macroscope.o, macrocmd.o): New rules.
7033
7034         Teach the Dwarf 2 reader to read macro information.
7035         * dwarf2read.c: #include "macrotab.h".
7036         (dwarf_macinfo_buffer): New variable.
7037         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7038         dwarf_macinfo_size.
7039         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7040         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7041         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7042         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7043         dwarf2_macro_spaces_in_definition): New complaints.
7044         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7045         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7046         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7047         the partial symbol table.
7048         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7049         from what's recorded in the partial symbol table.
7050         (read_file_scope): If the compilation unit has a
7051         `DW_AT_macro_info' attribute, read its macro information.
7052         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7053
7054 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
7055
7056         Fix PR gdb/546
7057         * ser-tcp.c: Don't include <netinet/udp.h>.
7058
7059 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
7060
7061         * MAINTAINERS: Update my email address.
7062
7063 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
7064
7065         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7066         include file of the same name.
7067
7068 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7069
7070         * configure.tgt: Mark v850 as multi-arched.
7071         * config/v850/tm-v850.h: Remove file.
7072         * config/v850/v850.mt: Eliminate TM_FILE.
7073
7074 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7075
7076         * v850-tdep.c: Full multi-arch.
7077         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7078         Define GDB_MULTI_ARCH to 2.
7079
7080 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7081
7082         * p-exp.y (current_type): New static variable.
7083         Carries the type of the expression at the position that is parsed.
7084         (push_current_type, pop_current_type): Two new functions. Used
7085         to store/restore current_type in expression on specific tokens.
7086         (search_field): New static variable. Set to one after parsing a point
7087         as at that point only a FIELDNAME token should be searched.
7088         (FIELDNAME): New token. After a point only a token belonging to 
7089         current_type type definition is allowed.
7090         (all over token rules): reset and change current_type according
7091         to rules.
7092         (exp '[' rule): insert implicit array index field if
7093         exp is a pascal string type.
7094
7095 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7096
7097         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
7098         frame info.  Use frame_info's saved_regs instead of matching member
7099         in extra_frame_info throughout.
7100         (v850_frame_init_saved_regs): New function.
7101         (v850_init_extra_frame_info): Move most functionality into
7102         v850_frame_init_saved_regs().
7103         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7104         (v850_frame_find_saved_regs): Remove declaration.
7105         (FRAME_FIND_SAVED_REGS): Remove definition.
7106         (v850_frame_init_saved_regs): Add declaration.
7107         (FRAME_INIT_SAVED_REGS): Add definition.
7108
7109 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7110
7111         * v850-tdep.c: Begin multi-arch'ing v850.
7112         (v850_target_architecture_hook): Remove function.
7113         (v850_gdbarch_init): New function.  Add code previously in
7114         v850_target_architecture_hook().
7115         (_initialize_v850_tdep): Don't  set target_architecture_hook.
7116         Call register_gdbarch_init() instead.
7117
7118 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
7119
7120         * gdbtypes.h (struct cplus_struct_type): Remove args field.
7121         * hpread.c (hpread_read_struct_type): Remove assignments to args.
7122         (fixup_class_method_type): Likewise.
7123
7124 2002-05-15  Jim Blandy  <jimb@redhat.com>
7125
7126         Add macro structures to GDB's symbol tables.  Nobody puts anything
7127         in them yet.
7128         * symtab.h (struct symtab): New member: `macro_table'.
7129         * buildsym.h (pending_macros): New global variable.
7130         * buildsym.c: #include "macrotab.h".
7131         (buildsym_init): Initialize `pending_macros'.
7132         (end_symtab): If we found macro information while reading a CU's
7133         debugging info, do build a symtab structure for it.  Make the
7134         symtab point to the macro information, and clear the
7135         `pending_macros' pointer which held it while we were reading the
7136         debug info.
7137         (really_free_pendings): Free any pending macro table.
7138         * objfiles.h (struct objfile): New member: `macro_cache'.
7139         * objfiles.c (allocate_objfile): Set allocate and free functions
7140         for the macro cache's objstack.
7141         (free_objfile): Empty the macro cache's obstack.
7142         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7143         set new allocate and free functions for it.
7144         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7145         free functions for the macro cache's objstack.  (Why is this
7146         function building its own objfile?)
7147         * symmisc.c (print_objfile_statistics): Print statistics on the
7148         macro bcache.
7149         * Makefile.in: Note that buildsym.o depends on macrotab.h.
7150
7151 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7152
7153         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7154         (REGISTER_U_ADDR): Delete definition.
7155         (arm_register_u_addr): Delete declaration.
7156
7157 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7158
7159         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7160         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7161
7162 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
7163
7164         * regcache.c (register_valid): Revise comments refering to "Not
7165         available" and "unavailable".
7166         * frame.c (frame_register_read): Ditto.
7167         * findvar.c (value_of_register): Ditto.
7168
7169 2002-05-15  Andrew Cagney  <cagney@redhat.com>
7170
7171         * Makefile.in (remote_sim_h): Replace remote-sim_h.
7172         (remote-sim.o): Update dependencies.
7173         (d10v-tdep.o): Specify dependencies.
7174         (sim_d10v_h): Define.
7175
7176 2002-05-14  Jim Blandy  <jimb@redhat.com>
7177
7178         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7179         * macrotab.c (macro_lookup_inclusion, find_definition,
7180         new_macro_table): Same.
7181         
7182         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7183         not `! strcmp ()'.  This is a dubious improvement.
7184         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7185
7186         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7187         although it's not necessary, to avoid a warning.
7188
7189 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7190
7191         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7192         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7193         TYPE_INSTANCE_FLAGS.
7194         (struct main_type): New.
7195         (struct type): Move most members to struct main_type.  Change
7196         cv_type and as_type to new type_chain member.  Add instance_flags.
7197         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7198         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7199         (finish_cv_type): Remove prototype.
7200         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
7201         Set TYPE_CHAIN.
7202         (alloc_type_instance): New function.
7203         (smash_type): New function.
7204         (make_pointer_type, make_reference_type, make_function_type)
7205         (smash_to_member_type, smash_to_method_type): Call smash_type.
7206         (make_qualified_type): New function.
7207         (make_type_with_address_space): Call make_qualified_type.
7208         (make_cv_type): Likewise.
7209         (finish_cv_type): Remove unnecessary function.
7210         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
7211         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7212         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7213         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7214         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7215         * hpread.c (hpread_read_struct_type): Likewise.
7216         * stabsread.c (read_struct_type): Likewise.
7217
7218 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
7219
7220         * configure.tgt: Add a catch all sh* target, for cases like
7221         sh[2,3,4]-elf and sh-hms.
7222
7223 2002-05-14  Keith Seitz  <keiths@redhat.com>
7224
7225         * event-loop.c (create_file_handler): Don't do anything but
7226         update data when we are given a fd which we are already
7227         monitoring.
7228
7229 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
7230
7231         * dwarf2cfi.c (context_cpy): Copy registers correctly.
7232         (update_context): Use __func__ in warnings.
7233         
7234 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7235
7236         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
7237         and tcp_close to net_open and net_close.
7238         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
7239         using UDP if requested.  Don't try to disable Nagle on UDP
7240         sockets.
7241         * remote.c (remote_serial_open): New function.  Warn about UDP.
7242         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7243
7244 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7245
7246         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7247
7248 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7249
7250         * configure.tgt: Remove sh-hms target.
7251         * MAINTAINERS: Don't list sh-hms as a separate target.
7252
7253 2002-05-13  Jim Blandy  <jimb@redhat.com>
7254
7255         Add first preprocessor macro-expansion files.
7256         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7257         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7258         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7259         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7260         (COMMON_OBS): Add macrotab.o, macroexp.o.
7261         (macroexp.o, macrotab.o): New rules.
7262
7263 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
7264
7265         * config/m88k/tm-m88k.h: Update copyright.
7266         (m88k_target_write_pc): Declare
7267         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7268         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7269         (SHIFT_INST_REGS): Update definition.
7270         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
7271         using old definition of TARGET_WRITE_PC.
7272         * regcache.c (generic_target_write_pc): Delete code handling
7273         NNPC_REGNUM.
7274         * gdbarch.sh (NNPC_REGNUM): Delete.
7275         * gdbarch.h, gdbarch.c: Regenerate.
7276
7277 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
7278
7279         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7280         builtin reg number.
7281
7282 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
7283
7284         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7285         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7286         (gen_address_of, gen_struct_ref, gen_repeat): Use type
7287         access macros.
7288         * c-typeprint.c (cp_type_print_method_args): Likewise.
7289         (c_type_print_args): Likewise.
7290         * d10v-tdep.c (d10v_push_arguments): Likewise.
7291         (d10v_extract_return_value): Likewise.
7292         * expprint.c (print_subexp): Likewise.
7293         * gdbtypes.c (lookup_primitive_typename): Likewise.
7294         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7295         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7296         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7297         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7298         (TYPE_VECTOR): Likewise.
7299         * hpread.c (hpread_read_struct_type)
7300         (fix_static_member_physnames, fixup_class_method_type)
7301         (hpread_type_lookup): Likewise.
7302         * mdebugread.c (parse_symbol, parse_type): Likewise.
7303         * p-lang.c (is_pascal_string_type): Likewise.
7304         * valops.c (hand_function_call): Likewise.
7305         * x86-64-tdep.c (classify_argument): Likewise.
7306
7307         * hpread.c (hpread_read_function_type)
7308         (hpread_read_doc_function_type): Call replace_type.
7309         * dstread.c (create_new_type): Delete.
7310         (decode_dst_structure, process_dst_function): Call alloc_type.
7311         Use type access macros.
7312
7313 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7314
7315         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7316         the're not supported by the current architecture.
7317         (i387_fill_fxsave): Likewise.
7318
7319 2002-05-12  Fred Fish  <fnf@redhat.com>
7320
7321         * symfile.c (default_symfile_offsets): Arrange for uninitialized
7322         sect_index_xxx members to index the first slot in section_offsets
7323         if all of the section_offsets are zero.
7324
7325 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7326
7327         * configure.tgt (sparc-*openbsd): Remove entry accidentially
7328         checked in with last change.
7329
7330 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7331
7332         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7333         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
7334         config.sub.
7335
7336 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
7337
7338         * Makefile.in: Update dependencies.
7339
7340 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7341
7342         * language.c (local_hex_string_custom): Simplify.  Do not depend
7343         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7344
7345         * memattr.c (mem_info_command): Replace calls to
7346         longest_local_hex_string and longest_local_hex_string_custom.
7347         * buildsym.c (make_blockvector): Ditto.
7348         * solib.c (info_sharedlibrary_command): Ditto.
7349         * tracepoint.c (tracepoints_info): Ditto.
7350         * symtab.c (print_msymbol_info): Ditto.
7351
7352         * language.c (local_hex_string): Delete.
7353         (local_hex_string_custom): Delete.
7354         (longest_local_hex_string): Rename to local_hex_string.
7355         (longest_local_hex_string_custom): Rename to
7356         local_hex_string_custom.
7357         * language.h (local_hex_string): Change parameter type to LONGEST.
7358         (local_hex_string_custom): Ditto.
7359         (longest_local_hex_string): Delete declaration.
7360         (longest_local_hex_string_custom): Ditto.
7361
7362         * solib.c: Update copyright.
7363         * memattr.c: Update copyright.
7364         
7365 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7366
7367         * arch-utils.h (legacy_register_to_value): Declare.
7368         (legacy_value_to_register): Declare.
7369         (legacy_convert_register_p): Declare.
7370         * arch-utils.c (legacy_register_to_value): New function.
7371         (legacy_value_to_register): New function.
7372         (legacy_convert_register_p): New function.
7373
7374         * gdbarch.sh (REGISTER_TO_VALUE): Define.
7375         (VALUE_TO_REGISTER): Define.
7376         (CONVERT_REGISTER_P): Define.
7377         * gdbarch.h, gdbarch.c: Regenerate.
7378
7379         * valops.c (value_assign): Use CONVERT_REGISTER_P and
7380         VALUE_TO_REGISTER.
7381         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7382         CONVERT_REGISTER_P.
7383
7384 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
7385             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7386
7387         * Makefile.in: Update dependencies for valops.c.
7388         * valops.c: Include "gdb_assert.h".
7389         (typecmp): Skip THIS parameter to methods.
7390         (find_method_list): Remove static_memfuncp argument,
7391         update callers.  Check for stub methods.
7392         (find_value_oload_method_list): Don't set *static_memfuncp.
7393         (find_overload_match): Don't check for stub methods.  Assert
7394         that methods are not stubbed.  Handle static methods.
7395         (value_find_oload_method_list): Remove static_memfuncp argument.
7396         * gdbtypes.c (check_stub_method): Do not add THIS pointer
7397         to the argument list for static stub methods.
7398         * value.h (value_find_oload_method_list): Update prototype.
7399
7400 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7401
7402         * arch-utils.h (generic_register_size): Declare.
7403         (generic_register_raw_size, generic_register_virtual_size): Delete
7404         declarations.
7405         * arch-utils.c (generic_register_raw_size): Delete.
7406         (generic_register_size): New function.
7407         (generic_register_virtual_size): Delete.
7408
7409         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7410         default generic_register_size.
7411         * gdbarch.h, gdbarch.c: Re-generate.
7412         
7413         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7414         register_virtual_size.
7415         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7416         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7417
7418 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7419
7420         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7421         * gdbarch.h, gdbarch.c: Regenerate.
7422         * gnu-v3-abi.c: Update copyright.
7423         (vtable_address_point_offset): Update.
7424         (gnuv3_rtti_type): Update.
7425         (gnuv3_baseclass_offset): Update.
7426         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7427         (init_fetch_link_map_offsets): Update.
7428         * remote.c (get_remote_state): Update.
7429         
7430 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
7431
7432         * TODO: Remove value_headof/value_from_vtable_info comment.
7433         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7434         * values.c (value_headof, value_from_vtable_info): Delete.
7435         * value.h (value_from_vtable_info): Delete prototype.
7436
7437 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7438
7439         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7440         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7441         $(gdb_regex_h).
7442         (gdb_assert_h): Define.
7443         (gdb_wait_h): Define.
7444         (gdb_regex_h): Define.
7445
7446 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
7447
7448         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7449         * linespec.c (find_methods): Handle GCC 3.x template constructors.
7450
7451 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7452
7453         * nbsd-tdep.c: Fix comment.
7454
7455 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7456
7457         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7458         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7459         (nbsd-tdep.o): New dependency list.
7460         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
7461         nbsd-tdep.h.
7462         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7463         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7464         * nbsd-tdep.c: New file.
7465         * nbsd-tdep.h: New file.
7466         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
7467         nbsd-tdep.h.
7468         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7469         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7470         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7471         * config/sh/nbsd.mt (TDEPFILES): Ditto.
7472
7473 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7474
7475         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7476         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7477         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7478         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7479         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7480         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7481
7482 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7483
7484         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7485         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7486         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7487         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7488         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7489         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7490         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7491
7492 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7493
7494         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
7495         fetch_elfcore_registers to...
7496         * i386nbsd-tdep.c: ...here.
7497         (i386nbsd_use_struct_convention): Rename to...
7498         (i386nbsd_aout_use_struct_convention): ...this.
7499         (i386nbsd_supply_reg): New function.
7500         (i386nbsd_fill_reg): New function.
7501         (fetch_core_registers): Use i386nbsd_supply_reg.
7502         (fetch_elfcore_registers): Likewise.
7503         (_initialize_i386nbsd_tdep): New function.
7504         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7505         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7506         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7507         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7508         (i386nbsd_aout_use_struct_convention): ...this.
7509
7510 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7511
7512         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7513         (store_inferior_registers): Use shnbsd_fill_reg.
7514         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7515         sh_nbsd_supply_register): Collapse into...
7516         (shnbsd_supply_reg): ...this.
7517         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7518         (shnbsd_fill_reg): ...this.
7519         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7520         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7521         (fetch_core_registers): Use shnbsd_supply_reg.
7522         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7523         (sh_nbsd_core_fns): Rename to...
7524         (shnbsd_core_fns): ...this.
7525         (sh_nbsd_elfcore_fns): Rename to...
7526         (shnbsd_elfcore_fns): ...this.
7527         (sh_nbsd_init_abi): Rename to...
7528         (shnbsd_init_abi): ...this.
7529         (_initialize_sh_nbsd_tdep): Rename to...
7530         (_initialize_shnbsd_tdep): ...this.
7531         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7532         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7533         sh_nbsd_fill_register): Remove prototypes.
7534         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7535
7536 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7537
7538         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7539         (i387-nat.o): Delete dependency list.
7540         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7541         (x86-64-linux-nat.o): Likewise.
7542         * i387-nat.c: Delete file, moving contents to...
7543         * i387-tdep.c: ...here.
7544         * i387-nat.h: Rename...
7545         * i387-tdep.h: ...to this.
7546         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7547         * i386-linux-nat.c: Likewise.
7548         * i386bsd-nat.c: Likewise.
7549         * i386gnu-nat.c: Likewise.
7550         * i386nbsd-nat.c: Likewise.
7551         * i386v4-nat.c: Likewise.
7552         * x86-64-linux-nat.c: Likewise.
7553         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7554         * config/i386/go32.mh (NATDEPFILES): Likewise.
7555         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7556         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7557         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7558         * config/i386/linux.mh (NATDEPFILES): Likewise.
7559         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7560         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7561         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7562         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7563
7564 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7565
7566         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7567         (alphanbsd-nat.o): Remove dependency list.
7568         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7569         * alphanbsd-nat.c: Delete.  Contents moved to...
7570         * alphanbsd-tdep.c: ...here.
7571         (_initialize_alphanbsd_tdep): Register core functions.
7572         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7573
7574 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7575
7576         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7577         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7578         (alphanbsd-nat.o): Likewise.
7579         (alphabsd-tdep.o): New dependency list.
7580         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7581         (fill_gregset): Use alphabsd_fill_reg.
7582         (supply_fpregset): Use alphabsd_supply_fpreg.
7583         (fill_fpregset): Use alphabsd_fill_fpreg.
7584         (fetch_inferior_registers): Use struct reg and struct fpreg
7585         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7586         and alphabsd_supply_fpreg.
7587         (store_inferior_registers): Use struct reg and struct fpreg
7588         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7589         and alphabsd_fill_fpreg.
7590         * alphabsd-tdep.c: New file.
7591         * alphabsd-tdep.h: New file.
7592         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7593         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7594         alphabsd_supply_fpreg.
7595         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7596         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7597
7598 2002-05-11  Eric Christopher  <echristo@redhat.com>
7599
7600         * mips-tdep.c (mips_double_register_type): Fix thinko.
7601         (mips_single_register_type): Ditto.
7602         * MAINTAINERS: Add self.
7603
7604 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7605
7606         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7607         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7608         right thing on architectures with different endianness and/or
7609         integer sizes.
7610
7611 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7612
7613         From Christian Limpach <chris@Pin.LU>
7614         * configure.in: Change sed expression which comments out
7615         NATDEPFILES to also comment out continuation lines.
7616         * configure: Regenerate.
7617
7618 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7619
7620         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7621         big patch.
7622
7623 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7624
7625         * sh-tdep.c: Include correct file.
7626
7627 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7628
7629         New support for sh64-elf (sh5) target.
7630
7631         * configure.tgt: For sh64-elf target, default to sh-elf.
7632
7633         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7634         (struct gdbarch_tdep): Add new fields for new registers and ABI
7635         info.
7636
7637         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7638         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7639         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7640         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7641         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7642         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7643         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7644         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7645         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7646         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7647         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7648         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7649         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7650         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7651         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7652         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7653         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7654         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7655         sign_extend, sh64_nofp_frame_init_saved_regs,
7656         sh64_init_extra_frame_info, sh64_get_saved_register,
7657         sh64_extract_struct_value_address, sh64_pop_frame,
7658         sh64_push_arguments, sh64_extract_return_value,
7659         sh64_store_return_value, sh64_show_media_regs,
7660         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7661         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7662         sh_sh64_register_virtual_type,
7663         sh_sh64_register_convert_to_virtual,
7664         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7665         sh64_register_read, sh64_pseudo_register_write,
7666         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7667         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7668         sh64_do_pseudo_register, sh_compact_do_registers_info,
7669         sh64_do_registers_info, sh_gdbarch_init): New functions.
7670
7671 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7672
7673         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7674
7675 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7676
7677         * linespec.c (decode_line_1): Check for a double quote after
7678         a filename correctly.
7679
7680 2002-05-10  Jim Blandy  <jimb@redhat.com>
7681
7682         Properly track the size of the current objfile's .debug_line section.
7683         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7684         (DWARF_LINE_SIZE): New macro.
7685         (dwarf2_build_psymtabs_hard): Record the line section's size in
7686         the partial symbol table.
7687         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7688         symbol table.
7689
7690 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7691
7692         * ia64-tdep.c: Handle breakpoints on L instruction type
7693         in MLX instruction bundle by moving the breakpoint to
7694         the third slot (X instruction type) as L holds only data.
7695
7696 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7697
7698         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7699         (process_one_symbol): Complain about discarding local symbols
7700         due to a misplaced N_LBRAC entry.
7701
7702 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7703
7704         From Daniel Berlin <dan@cgsoftware.com>
7705         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7706         decrease the depth we are at, in the case of templates.
7707
7708 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7709
7710         * mips-tdep.c (mips_float_register_type): New function.
7711         (mips_double_register_type): New function.
7712         (mips_print_register): Use them.
7713         (do_fp_register_row): Likewise.
7714
7715 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7716
7717         * signals/signals.c (signals): Remove conditional compilation around
7718         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7719         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7720
7721 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7722
7723         * remote-rdp.c (remote_rdp_can_run): Remove.
7724
7725 2002-05-09  Tom Tromey  <tromey@redhat.com>
7726
7727         * jv-valprint.c (java_val_print): Handle `char' as a special case
7728         of TYPE_CODE_INT.
7729
7730 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7731
7732         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7733         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7734         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7735         str r(0123),[sp,#nn].
7736         (arm_skip_prologue): Ditto.  Also make disassembly
7737         order-independent by placing it in a loop.
7738
7739 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7740
7741         * stabsread.c (read_type): Add recognition for new attribute:
7742         "@V;" means that an array type is actually a vector.
7743         This is analogous to the vector flag that's been added to dwarf2.
7744
7745 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7746
7747         * i386-tdep.h (i386_abi): New enum.
7748         (struct gdbarch_tdep): Replace os_ident member with abi.
7749         (i386_gdbarch_register_os_abi): New prototype.
7750         * i386-tdep.c (i386_abi_names): New array.
7751         (process_note_abi_tag_sections): Removed.
7752         (process_note_sections): New function.
7753         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7754         (struct i386_abi_handler): New struct.
7755         (i386_abi_handler_list): New variable.
7756         (i386_gdbarch_register_os_abi): New function.
7757         (i386_gdbarch_init): Adapt for the changes given above.
7758
7759 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7760
7761         * gregset.h: Say "GNU/Linux".
7762
7763 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7764
7765         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7766         (build_gdbtypes): Build builtin_type_v2_float.
7767         (_initialize_gdbtypes): Register new builtin type.
7768
7769 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7770
7771         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7772         (clear_gdbarch_swap): New function.
7773         (initialize_non_multiarch): Call.
7774         (gdbarch_update_p): Before calling init(), swap out and clear the
7775         existing architecture.
7776         * gdbarch.c: Regenerate.
7777
7778 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7779
7780         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7781         alphanbsd-tdep.c.
7782
7783 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7784
7785         * sh-nbsd-nat.c: Rename to...
7786         * shnbsd-nat.c: ...this.
7787         * sh-nbsd-tdep.c: Rename to...
7788         * shnbsd-tdep.c: ...this.
7789         * sh-nbsd-tdep.h: Rename to...
7790         * shnbsd-tdep.h: ...this.
7791         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7792         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7793
7794 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7795
7796         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7797         concatenation for command help messages.
7798
7799 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7800
7801         * NEWS: Note new sh*-*-netbsdelf* configuration.
7802         * configure.host: Set gdb_host_cpu to sh for all sh*.
7803         (sh*-*-netbsdelf*): New host.
7804         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7805         (sh*-*-netbsdelf*): New target.
7806         * sh-nbsd-nat.c: New file.
7807         * sh-nbsd-tdep.c: New file.
7808         * sh-nbsd-tdep.h: New file.
7809         * config/sh/nbsd.mh: New file.
7810         * config/sh/nbsd.mt: New file.
7811         * config/sh/nm-nbsd.h: New file.
7812         * config/sh/tm-nbsd.h: New file.
7813
7814 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7815
7816         * sh-tdep.c (sh_osabi_names): Declare.
7817         (process_note_abi_tag_sections): New function.
7818         (get_elfosabi): Ditto.
7819         (sh_gdbarch_register_os_abi): Ditto.
7820         (sh_dump_tdep): Ditto.
7821         _initialize_sh_tdep): Use gdbarch_register to register
7822         sh_gdbarch_init and sh_dump_tdep.
7823         * config/sh/tm-sh.h (sh_osabi): Declare.
7824         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7825
7826 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7827
7828         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7829         (thumb_scan_prologue): Ditto.
7830         (arm_find_callers_reg): Ditto.
7831         (arm_frame_chain): Ditto.
7832         (arm_init_extra_frame_info): Ditto.
7833         (arm_frame_saved_pc): Ditto.
7834         (arm_pop_frame): Ditto.
7835         (arm_push_return_address): New function.
7836         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7837         call_dummy_location, call_dummy_breakpoint_offset_p,
7838         call_dummy_breakpoint_offset, call_dummy_p,
7839         call_dummy_stack_adjust_p, call_dummy_words,
7840         sizeof_call_dummy_words, call_dummy_start_offset,
7841         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7842         call_dummy_address, push_return_address and push_dummy_frame for
7843         generic dummy frames.
7844
7845 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7846
7847         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7848         size computation for alloca.
7849         (sh_fp_frame_init_saved_regs): Likewise.
7850
7851 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7852
7853         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7854         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7855         * arm-tdep.c (arm_store_return_value): Use them.
7856         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7857         * remote-rdp.c (remote_rdp_fetch_register): Use
7858         ARM_MAX_REGISTER_RAW_SIZE.
7859         (remote_rdp_store_register): Likewise.
7860
7861 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7862
7863         * dwarf2cfi.c: Code cleanup, removed unused variables,
7864         added default labels to switch {} statements.
7865         * x86-64-tdep.c: Ditto.
7866         * x86-64-linux-nat.c: Ditto.
7867
7868 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7869
7870         * solib.h: Protect against multiple inclusion.
7871
7872 2002-05-06  Jim Blandy  <jimb@redhat.com>
7873
7874         Add first preprocessor macro-expansion files.
7875         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7876         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7877         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7878         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7879         (COMMON_OBS): Add macrotab.o, macroexp.o.
7880         (macroexp.o, macrotab.o): New rules.
7881
7882         Separate the job of reading the line number info statement program
7883         header (...expialidocious) out into its own function.
7884         * dwarf2read.c (struct line_head, struct filenames, struct
7885         directories): Replace with...
7886         (struct line_header): New structure, containing the full
7887         contents of the statement program header, including the
7888         include directory and file name tables.
7889         (read_file_scope): If we have line number info, instead of just
7890         calling dwarf_decode_lines to do all the work, call
7891         dwarf_decode_line_header first to get a `struct line_header'
7892         containing the data in the statement program header, and then
7893         pass that to dwarf_decode_lines, which will pick up where that
7894         left off.  Be sure to clean up the `struct line_header' object.
7895         (dwarf_decode_line_header, free_line_header, add_include_dir,
7896         add_file_name): New functions.
7897         (dwarf_decode_lines): Move all the code to read the statement
7898         program header into dwarf_decode_line_header.  Take the line
7899         header it built as the first argument, instead of the offset to
7900         the compilation unit's line number info.  Use the new `struct
7901         line_header' type instead of the old structures.  No need to do
7902         cleanups here now, since we don't allocate anything.
7903         (dwarf2_statement_list_fits_in_line_number_section,
7904         dwarf2_line_header_too_long): New complaints.
7905
7906 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7907
7908         * gdbtypes.c (init_vector_type): New function.
7909         (build_builtin_type_vec128): Simplify the representation of SIMD
7910         registers.
7911         (build_gdbtypes): Initialize new builtin vector types.
7912         (_initialize_gdbtypes): Register new vector types with gdbarch.
7913         (builtin_type_v4_float, builtin_type_v4_int32,
7914         builtin_type_v8_int16, builtin_type_v16_int8,
7915         builtin_type_v2_int32, builtin_type_v4_int16,
7916         builtin_type_v8_int8): New (renamed) SIMD types.
7917
7918 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7919
7920         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7921         (i387_fill_fxsave): Likewise.
7922
7923 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7924
7925         * alpha-tdep.c (alpha_extract_return_value): Don't use
7926         non-constant array size in prototype.
7927
7928 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7929
7930         From Brian Taylor <briant at model dot com>:
7931         * ui-out.c (ui_out_field_core_addr): Use the function
7932         longest_local_hex_string_custom'to format addresses > 32 bits
7933         wide.
7934
7935         * ui-out.c (ui_out_field_core_addr): Update comment.
7936
7937 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7938
7939         * stack.c (select_and_print_frame): Make static.  Delete the
7940         parameter `level'.
7941         (func_command): Update call.
7942         (select_frame_command): Delete code computing the frame level.
7943         * frame.h (select_and_print_frame): Delete declaration.
7944
7945 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7946
7947         * sparc-tdep.c (sparc_get_saved_register): Comment why
7948         get_prev_frame call is safe.
7949
7950 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7951
7952         * frame.h (select_frame): Delete level parameter.
7953         * stack.c (select_frame): Update.  Use frame_relative_level to
7954         obtain the frame's level.
7955         (select_and_print_frame): Update call.
7956         (select_frame_command): Ditto.
7957         (up_silently_base): Ditto.
7958         (down_silently_base): Ditto.
7959         * ocd.c (ocd_start_remote): Ditto.
7960         * remote-rdp.c (remote_rdp_open): Ditto.
7961         * remote-mips.c (mips_initialize): Ditto.
7962         (common_open): Ditto.
7963         * remote-e7000.c (e7000_start_remote): Ditto.
7964         * m3-nat.c (select_thread): Ditto.
7965         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7966         (child_get_current_exception_event): Ditto.
7967         * varobj.c (varobj_create): Ditto.
7968         (varobj_update): Ditto.
7969         (c_value_of_root): Ditto.
7970         * tracepoint.c (finish_tfind_command): Ditto.
7971         * corelow.c (core_open): Ditto.
7972         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7973         * thread.c (info_threads_command): Ditto.
7974         (switch_to_thread): Ditto.
7975         * infrun.c (normal_stop): Ditto.
7976         (restore_selected_frame): Ditto.
7977         (restore_inferior_status): Ditto.
7978         * breakpoint.c (insert_breakpoints): Ditto.
7979         (watchpoint_check): Ditto.
7980         (bpstat_stop_status): Ditto.
7981         (do_enable_breakpoint): Ditto.
7982         * blockframe.c (flush_cached_frames): Ditto.
7983         (reinit_frame_cache): Ditto.
7984
7985 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7986
7987         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7988         maintainer.
7989
7990 2002-05-04  Jim Blandy  <jimb@redhat.com>
7991
7992         * gdbtypes.c (replace_type): Doc fix.
7993
7994 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7995
7996         * valprint.c (strcat_longest): Delete commented out function.
7997         Update copyright.
7998
7999 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8000
8001         * MAINTAINERS: Mark a29k as deleted.
8002         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
8003         Move new configurations to the top.
8004         * configure.tgt: Remove a29k.
8005         * config/a29k/tm-vx29k.h: Delete.
8006         * config/a29k/vx29k.mt: Delete.
8007         * config/a29k/tm-a29k.h: Delete.
8008         * config/a29k/a29k-udi.mt: Delete.
8009         * config/a29k/a29k.mt: Delete.
8010         * a29k-tdep.c: Delete.
8011         * remote-udi.c: Delete.
8012         * remote-mm.c: Delete.
8013         * remote-eb.c: Delete.
8014         * remote-adapt.c: Delete.
8015         * Makefile.in: Remove obsolete code.
8016         * config/s390/s390x.mt: Ditto.
8017         * config/s390/s390.mt: Ditto.
8018         * config/sparc/sparclynx.mh: Ditto.
8019         * config/sparc/linux.mh: Ditto.
8020         * config/pa/hppaosf.mh: Ditto.
8021         * config/pa/hppabsd.mh: Ditto.
8022         * config/ns32k/nbsd.mt: Ditto.
8023         * config/mips/vr5000.mt: Ditto.
8024         * config/m68k/sun3os4.mh: Ditto.
8025         * config/m68k/nbsd.mt: Ditto.
8026         * config/m68k/m68klynx.mh: Ditto.
8027         * config/m32r/m32r.mt: Ditto.
8028         * config/i386/x86-64linux.mt: Ditto.
8029         * config/i386/nbsdelf.mt: Ditto.
8030         * config/i386/nbsd.mt: Ditto.
8031         * config/i386/i386lynx.mh: Ditto.
8032
8033 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
8034
8035         * target.c (debug_print_register): New function.  Handle oversize
8036         registers.
8037         (debug_to_fetch_registers): Call.
8038         (debug_to_store_registers): Call.
8039
8040 2002-05-03  Jim Blandy  <jimb@redhat.com>
8041
8042         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8043         (read_type): Doc fix.
8044         * gdbtypes.c (replace_type): Doc fix.
8045
8046         * stabsread.c (multiply_defined_struct): New complaint.
8047         (read_struct_type): If the type we were passed isn't empty, or
8048         incomplete, don't read the new struct type into it; complain,
8049         and return the original type unchanged.  Take a new `type_code'
8050         argument, which is the type code for the new type.
8051         (read_type): Rather than storing the type's type code here, pass
8052         it as an argument to read_struct_type, and let that take care of
8053         storing it.  That way, we don't overwrite the original type code,
8054         so read_struct_type can use it to decide whether we're overwriting
8055         something we shouldn't.
8056         (complain_about_struct_wipeout): New function.
8057
8058 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
8059
8060         * gdbarch.sh: Assert that gdbarch is non-NULL.
8061         * gdbarch.c: Regenerate.
8062
8063 2002-05-03  Jason Merrill  <jason@redhat.com>
8064
8065         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8066         and return NULL.
8067
8068 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
8069
8070         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8071         (x86_64_dwarf2gdb_regno_map_length),
8072         (x86_64_dwarf2_reg_to_regnum): Added.
8073         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8074         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8075         (_initialize_x86_64_tdep): Synced with the change above.
8076         (x86_64_skip_prologue): Reformulated message.
8077
8078 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
8079
8080         * f-exp.y: Also use new prev_lexptr variable
8081         to improve error reporting. Based on Michael Snyder
8082         2002-04-24 dated patch to c-exp.y.
8083         * jv-exp.y: Likewise.
8084         * m2-exp.y: Likewise.
8085
8086 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
8087
8088         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8089         we are dealing with vectors.
8090
8091 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8092
8093         * config/m68k/tm-nbsd.h: Obvious fix,
8094         correct machine name.
8095
8096 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8097
8098         * p-typeprint.c (pascal_type_print_base): Add support
8099         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8100
8101 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8102
8103         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8104         for fondamental pascal 'char' type.
8105
8106 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8107
8108         * p-lang.h (is_pascal_string_type): Declaration changed,
8109         new sixth argument of type char ** added.
8110         * p-lang.c (is_pascal_string_type): Implementation
8111         changed. Args length_pos, length_size, string_pos, char_size
8112         can now be NULL. New argument arrayname set to the field
8113         name of the char array. Return value set to char array
8114         field index plus one.
8115         * p-valprint.c (pascal_val_print): Adapt to new declaration of
8116         is_pascal_string_type function.
8117
8118 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8119
8120         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8121         <cagney@redhat.com> change.
8122         * gdbarch.c: Regenerate.
8123
8124 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8125
8126         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8127         before probing for a new one.  Detect errorenous gdbarch_init
8128         functions.
8129         * gdbarch.c: Regenerate.
8130
8131 2002-05-01  Andrew Cagney  <cagney@redhat.com>
8132
8133         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8134         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
8135         * config/v850/tm-v850.h: Ditto.  Update copyright.
8136
8137 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
8138
8139         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8140         current_gdbarch.
8141
8142 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8143
8144         * arm-tdep.c: Whitespace clean-ups.
8145         (arm_skip_prologue): Fix thinko; two lines
8146         should have been removed as part of 4/24 change.
8147
8148 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
8149
8150         * rs6000-tdep.c: Added comment describing how fpscr register
8151         numbers were chosen.
8152
8153 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8154
8155         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8156
8157 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8158
8159         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8160         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8161         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8162
8163 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
8164
8165         From Louis Hamilton <hamilton@redhat.com>:
8166         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8167         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8168         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8169         not bfd-private xcoff data, to determine wordsize.
8170         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8171
8172 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
8173
8174         GDB 5.2 released from 5.2 branch.
8175
8176 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
8177
8178         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8179         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8180         (x86_64_register_info_table): Added comments with register numbers.
8181
8182 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8183
8184         * rs6000-tdep.c (rs6000_extract_return_value,
8185         rs6000_store_return_value): Handle returning vectors.
8186         (rs6000_gdbarch_init): Use
8187         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8188         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8189         New function.
8190         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8191         vectors.
8192         (ppc_sysv_abi_push_arguments): Handle vector parameters.
8193         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8194
8195 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8196
8197         * hpread.c (hpread_psymtab_to_symtab_1,
8198         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8199         with fprintf_unfiltered (gdb_stderr,...).
8200
8201 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8202
8203         * remote-array.c (printf_monitor, write_monitor,
8204         array_insert_breakpoint, array_remove_breakpoint ):
8205         Replace fprintf (stderr,...
8206         with fprintf_unfiltered (gdb_stderr,....
8207         * remote-es.c: Likewise.
8208         * remote-os9k.c: Likewise.
8209         * remote-st.c: Likewise.
8210
8211 2002-04-28  Andreas Schwab  <schwab@suse.de>
8212
8213         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8214         linux-proc.o and gcore.o.
8215
8216 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
8217
8218         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8219         code without frame pointers.
8220
8221 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8222
8223         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8224         ON_STACK is needed.
8225
8226 2002-04-26  Ben Elliston  <bje@redhat.com>
8227
8228         * target.c (do_xfer_memory): Correct reference to the new option
8229         "trust-readonly-sections".
8230
8231 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
8232
8233         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8234         * gdbtypes.c (recursive_dump_type): Output the vector flag.
8235         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8236         vectors.
8237         (read_array_type): Record the fact that this array type is really a
8238         vector (i.e. are passed in by value).
8239
8240 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
8241
8242         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8243         * alpha-tdep.c (alpha_sigcontext_addr): New function.
8244         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8245         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8246         * alpha-linux-tdep.c: Include frame.h.
8247         (alpha_linux_sigcontext_addr): New function.
8248         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8249         alpha_linux_sigcontext_addr.
8250         * alpha-osf1-tdep.c: Include gdbcore.h.
8251         (alpha_osf1_sigcontext_addr): New function.
8252         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8253         alpha_osf1_sigcontext_addr.
8254         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8255         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8256
8257 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8258
8259         * stack.c (selected_frame_level):
8260         (select_frame): Do not set selected_frame_level.
8261         * frame.h (selected_frame_level): Delete declaration.
8262
8263 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8264
8265         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8266         convert_from_func_ptr-addr when AIX / PowerOpen.
8267
8268 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8269
8270         * valops.c (hand_function_call): Call
8271         generic_save_call_dummy_addr.
8272         * frame.h (generic_save_call_dummy_addr): Declare.
8273         * blockframe.c (struct dummy_frame): Add fields call_lo and
8274         call_hi.
8275         (generic_find_dummy_frame): Check for PC in range call_lo to
8276         call_hi instead of entry_point_address.
8277         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8278         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
8279         (generic_save_call_dummy_addr): New function.
8280
8281 2002-04-24  David S. Miller  <davem@redhat.com>
8282
8283         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8284         sparc_skip_prologue.
8285         (sparc_skip_prologue): Kill frameless_p arg, and use line number
8286         information to find prologue when possible.
8287         (sparc_prologue_frameless_p): Call examine_prologue directly.
8288         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8289         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8290         second argument.
8291         (SKIP_PROLOGUE): Likewise.
8292
8293 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8294
8295         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8296         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8297         indicate that the condition it was testing is always true.
8298         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8299         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8300         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8301
8302 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8303
8304         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8305         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8306         tdep->jb_pc and tdep->jb_elt_size.
8307         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8308         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8309         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8310         * alpha-nat.c (get_longjmp_target): Remove.
8311         (JB_ELEMENT_SIZE): Ditto.
8312         (JB_PC): Ditto.
8313         * alpha-tdep.c (alpha_get_longjmp_target): New function.
8314         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
8315         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8316         to alpha_get_longjmp_target.
8317         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8318         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8319         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8320
8321 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8322
8323         * README: Update to GDB 5.2.
8324
8325 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8326
8327         * gdbarch.sh (LC_ALL): Set to `c'.
8328
8329 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8330
8331         * avr-tdep.c: Ran through gdb_indent.sh.
8332
8333 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8334
8335         * MAINTAINERS: Add myself as AVR maintainer.
8336         * NEWS: Note new target avr.
8337
8338 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8339
8340         * Makefile.in: Add support for AVR target.
8341         * configure.tgt: Add support for AVR target.
8342         * avr-tdep.c: New file
8343         * config/avr/avr.mt: New file.
8344
8345 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8346
8347         * MAINTAINERS: Add myself to write-after-approval.
8348
8349 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8350
8351         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8352         with fprintf_unfiltered (gdb_stderr,....
8353
8354 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8355
8356         Fix PR gdb/508.
8357         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8358
8359 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8360
8361         * p-exp.y: Also use new prev_lexptr variable
8362         to improve error reporting. Based on Michael Snyder
8363         2002-04-24 dated patch to c-exp.y.
8364
8365 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8366
8367         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8368         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8369         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
8370         to 0.
8371         * config/alpha/tm-alpha.h: Remove forward decls of struct type
8372         and struct value.
8373         (FUNCTION_START_OFFSET): Remove.
8374         (BREAKPOINT): Ditto.
8375
8376 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8377
8378         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8379         * NEWS: Ditto.
8380
8381 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8382
8383         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8384         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8385         alpha_linux_pc_in_sigtramp.
8386         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8387         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8388         alpha_osf1_pc_in_sigtramp.
8389         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8390         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8391         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8392         alphafbsd_pc_in_sigtramp.
8393         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8394         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8395         alphanbsd_pc_in_sigtramp.
8396         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8397         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8398
8399 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8400
8401         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8402
8403 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8404
8405         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8406         alphanbsd-tdep.c.
8407         (alphanbsd-nat.o): New dependency list.
8408         (alphanbsd-tdep.o): Ditto.
8409         * NEWS: Note new native NetBSD/alpha configuration.
8410         * alphanbsd-nat.c: New file.
8411         * alphanbsd-tdep.c: Ditto.
8412         * configure.host (alpha*-*-netbsd*): New host.
8413         * configure.tgt (alpha*-*-netbsd*): New target.
8414         * config/alpha/nbsd.mh: New file.
8415         * config/alpha/nbsd.mt: Ditto.
8416         * config/alpha/nm-nbsd.h: Ditto.
8417         * config/alpha/tm-nbsd.h: Ditto.
8418
8419 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8420
8421         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8422         (alpha-osf1-tdep.o): New dependency list.
8423         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8424         and skip_sigtramp_frame members.
8425         * alpha-linux-tdep.c: Include gdbcore.h.
8426         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8427         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8428         * alpha-osf1-tdep.c: New file.
8429         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8430         alpha-osf1-dep.c.
8431         (alpha_frame_past_sigtramp_frame): New function.
8432         (alpha_dynamic_sigtramp_offset): Ditto.
8433         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8434         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8435         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8436         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8437         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8438         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8439         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8440         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8441         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8442         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8443         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
8444         to find_solib_trampoline_target.
8445         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8446         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8447         (SKIP_TRAMPOLINE_CODE): Remove.
8448         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8449         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8450         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8451         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8452         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8453         (PROC_SIGTRAMP_MAGIC): Ditto.
8454         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8455         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8456         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8457         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8458         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8459
8460 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8461
8462         * NEWS: Note that Alpha targets are now multi-arch.
8463
8464 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8465
8466         * parser-defs.h (prev_lexptr): New external variable.
8467         * parse.c (parse_exp_1): Set prev_lexptr to null before
8468         calling the language-specific parser.
8469         * c-exp.y (yylex): Set prev_lexptr to start of current token.
8470         (yyerror): Use prev_lexptr in error reporting.
8471
8472 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
8473
8474         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8475         * gregset.h: If FILL_FPXREGSET is defined, provide
8476         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8477         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8478         is defined, call fill_fpxregset.
8479
8480 2002-04-24  Roland McGrath  <roland@frob.com>
8481
8482         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8483         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8484         (supply_gregset, supply_fpregset): New functions.
8485
8486         * gnu-nat.c (gnu_find_memory_regions): New function.
8487         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8488         (gnu_xfer_memory): Add a cast.
8489
8490 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8491
8492         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8493         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
8494         of argument regs ("str r(0123), [r11, #-nn"]).
8495         (arm_skip_prologue): Better handling for frameless functions.
8496         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
8497         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8498
8499 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
8500
8501         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8502         NUM_PSEUDO_REGS can be used.
8503
8504 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
8505
8506         * arch-utils.h: Update copyright.
8507
8508         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8509         * gdbarch.h, gdbarch.c: Re-generate.
8510
8511         * inferior.h (IN_SIGTRAMP): Delete definition.
8512         * arch-utils.c (legacy_pc_in_sigtramp): New function.
8513         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8514
8515         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8516         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8517         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8518         (find_proc_framesize): Ditto.
8519         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8520         (alpha_init_extra_frame_info): Ditto.
8521         * infrun.c (handle_inferior_event): Ditto.
8522         (handle_inferior_event): Ditto.
8523         (check_sigtramp2): Ditto.
8524         * blockframe.c (create_new_frame): Ditto.
8525         (get_prev_frame): Ditto.
8526         * ppc-linux-tdep.c: Update comments.
8527         * i386-linux-tdep.c: Update comments.
8528         * breakpoint.c (bpstat_what): Update comment.
8529
8530 2002-04-24  David S. Miller  <davem@redhat.com>
8531
8532         * i960-tdep.c (register_in_window_p): New function.
8533         (i960_find_saved_register): Use it instead of
8534         REGISTER_IN_WINDOW_P.
8535         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8536
8537         * symtab.h (find_stab_function_addr): Kill extern.
8538         * minsyms.c (find_stab_function_addr): Remove from here...
8539         * dbxread.c: ... to here, and mark it static.
8540
8541 2002-04-20  David S. Miller  <davem@redhat.com>
8542
8543         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8544         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8545
8546 2002-04-21  David S. Miller  <davem@redhat.com>
8547
8548         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8549         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8550         (vx_write_register): Likewise.
8551
8552 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8553
8554         * source.c (is_regular_file): New function.
8555         (openp): Check wether file to open is a regular file
8556         to avoid opening directories.
8557
8558 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8559
8560         * findvar.c (extract_signed_integer): Cast printf argument
8561         to suppress format warning.
8562         (extract_unsigned_integer): Likewise.
8563         * infcmd.c (registers_info): Likewise.
8564         * top.c (get_prompt_1): Likewise.
8565         * valops.c (value_assign): Likewise.
8566         * valprint.c (print_decimal): Likewise.
8567
8568 2002-04-22  H.J. Lu  (hjl@gnu.org)
8569
8570         * c-exp.y (typebase): Support
8571
8572         [long|long long|short] [signed|unsigned] [int|]
8573
8574         and
8575
8576         signed [long|long long|short] int
8577
8578 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8579
8580         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8581         and vax-tdep.h.
8582         * vax-tdep.h: New file.
8583         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8584         Make several routines static.
8585         (vax_get_saved_register): New function.
8586         (vax_gdbarch_init): New function.
8587         (_initialize_vax_tdep): Register vax_gdbarch_init.
8588         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8589         Remove macros now under the control of gdbarch.
8590
8591 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8592
8593         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8594         Some whitespace and coding standards tweaks.
8595
8596 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8597
8598         * vax-tdep.c: Include regcache.h.
8599         (vax_call_dummy_words): New.
8600         (sizeof_vax_call_dummy_words): New.
8601         (vax_fix_call_dummy): New function.
8602         (vax_saved_pc_after_call): Ditto.
8603         * config/vax/tm-vax.h: Don't include regcache.h.
8604         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8605         (CALL_DUMMY): Remove.
8606         (CALL_DUMMY_WORDS): Define.
8607         (SIZEOF_CALL_DUMMY_WORDS): Define.
8608         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8609
8610 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8611
8612         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8613
8614 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8615
8616         * vax-tdep.c (vax_frame_chain): New function.
8617         (vax_push_dummy_frame): Ditto.
8618         (vax_pop_frame): Ditto.
8619         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8620         (FRAMELESS_FUNCTION_INVOCATION): Use
8621         generic_frameless_function_invocation_not.
8622         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8623         (POP_FRAME): Use vax_pop_frame.
8624
8625 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8626
8627         * vax-tdep.c (vax_store_struct_return): New function.
8628         (vax_extract_return_value): Ditto.
8629         (vax_store_return_value): Ditto.
8630         (vax_extract_struct_value_address): Ditto.
8631         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8632         vax_store_struct_return.
8633         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8634         (STORE_RETURN_VALUE): Use vax_store_return_value.
8635         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8636
8637 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8638
8639         * vax-tdep.c (vax_frame_saved_pc): New function.
8640         (vax_frame_args_address_correct): Ditto.
8641         (vax_frame_args_address): Ditto.
8642         (vax_frame_locals_address): Ditto.
8643         (vax_frame_num_args): Move code to be in proximity to
8644         other frame-related functions.
8645         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8646         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8647         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8648         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8649         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8650
8651 2002-04-22  H.J. Lu  (hjl@gnu.org)
8652
8653         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8654         includedir.
8655
8656 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8657
8658         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8659         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8660         (FRAME_INIT_SAVED_REGS): New macro.
8661
8662 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8663
8664         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8665
8666 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8667
8668         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8669         where needed.
8670         (fetch_osf_core_registers): Likewise.
8671         (supply_gregset): Likewise.
8672
8673 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8674
8675         * symfile.h (get_section_index): Define.
8676         * symfile.c (get_section_index): New function.
8677         * mdebugread.c (SC_IS_SBSS): New macro.
8678         (SC_IS_BSS): Return true for the scBss storage class only, as
8679         the scSBss storage class refers to the .sbss section.
8680         (parse_partial_symbols): Discard the symbols which associated
8681         section does not exist.
8682         Make sure to use the .sbss section index for symbols which
8683         storage class is scBss, rather than using the .bss section index.
8684
8685 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8686
8687         * vax-tdep.c: Update copyright years.
8688         (vax_register_name): New function.
8689         (vax_register_byte): Ditto.
8690         (vax_register_raw_size): Ditto.
8691         (vax_register_virtual_size): Ditto.
8692         (vax_register_virtual_type): Ditto.
8693         * config/vax/tm-vax.h: Update copyright years.
8694         (REGISTER_NAMES): Remove.
8695         (REGISTER_NAME): Define.
8696         (REGISTER_BYTE): Use vax_register_byte.
8697         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8698         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8699         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8700
8701 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8702
8703         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8704         declaration
8705         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8706
8707 2002-04-21  David S. Miller  <davem@redhat.com>
8708
8709         * arch-utils.c (generic_prologue_frameless_p): Kill
8710         SKIP_PROLOGUE_FRAMELESS_P code.
8711         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8712         references.
8713         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8714         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8715         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8716         references.
8717         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8718         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8719         (sparc_gdbarch_init): Pass it to
8720         set_gdbarch_prologue_frameless_p.
8721
8722 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8723
8724         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8725         (alphabsd-nat.o): New dependency list.
8726
8727 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8728
8729         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8730         alphafbsd-tdep.c.
8731         (alpha-linux-tdep.o): New dependency list.
8732         (alphafbsd-tdep.o): Likewise.
8733
8734 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8735
8736         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8737         to here...
8738         * alpha-tdep.c: ...from here.
8739         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8740
8741 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8742
8743         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8744         prototype from here...
8745         * alpha-tdep.h: ...to here.
8746
8747 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8748
8749         * frame.h (selected_frame_level): Document as deprecated.
8750         (frame_relative_level): Declare.
8751         * stack.c (frame_relative_level): New function.
8752         (selected_frame_level): Document as deprecated.
8753         (select_frame): Do not set the selected_frame_level.
8754
8755         * stack.c (frame_info, record_selected_frame): Update.
8756         (frame_command, current_frame_command): Update.
8757         (up_silently_base, up_command, down_silently_base): Update.
8758         (down_command): Update.
8759         * inflow.c (kill_command): Update.
8760         * tracepoint.c (finish_tfind_command): Update.
8761         * corelow.c (core_open): Update.
8762         * thread.c (info_threads_command): Update.
8763         (do_captured_thread_select): Update.
8764         * infcmd.c (finish_command): Update.
8765         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8766
8767 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8768
8769         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8770
8771 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8772
8773         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8774         type const.
8775
8776 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8777
8778         * alphafbsd-tdep.c: Update copyright years.  Include
8779         alpha-tdep.h.
8780         (alphafbsd_use_struct_convention): Make static.
8781         (alphafbsd_init_abi): New function.
8782         (_initialize_alphafbsd_tdep): New function.
8783         * config/alpha/tm-fbsd.h: Update copyright years.
8784         (USE_STRUCT_CONVENTION): Remove.
8785
8786 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8787
8788         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8789         an Alpha ABI variant.
8790         (alpha_abi_handler_list): Declare.
8791         (alpha_gdbarch_register_os_abi): New function.
8792         (alpha_gdbarch_init): Give registered ABI variant handlers a
8793         chance to tweak the gdbarch once we have set up defaults.
8794         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8795
8796 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8797
8798         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8799         to standard_coerce_float_to_double.
8800         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8801
8802 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8803
8804         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8805         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8806         from gdbarch_tdep rather than a constant.
8807         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8808         the default text address for all Alpha Unix ABIs.
8809         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8810         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8811
8812 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8813
8814         * alpha-tdep.h: New file.  Includes several Alpha target constants
8815         taken from...
8816         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8817         let gdbarch deal with.
8818         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8819         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8820         to dependency list.
8821         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8822         Alpha target register names.
8823         * alphabsd-nat.c: Likewise.
8824         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8825         Alpha target register names.  Make serveral routines static.
8826         (alpha_get_saved_register): New function.
8827         (alpha_abi_names): New.
8828         (process_note_abi_tag_sections): New function.
8829         (get_elfosabi): New function.
8830         (alpha_gdbarch_init): New function.
8831         (alpha_dump_tdep): New function.
8832         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8833
8834 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8835
8836         * frame.c (find_saved_register): Delete #ifdef
8837         HAVE_REGISTER_WINDOWS code.
8838         * config/sparc/tm-sparc.h: Update comments.
8839         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8840
8841 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8842
8843         * i960-tdep.c (i960_find_saved_register): New function.
8844         (i960_get_saved_register): New function.
8845         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8846         (i960_get_saved_register): Declare.
8847         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8848
8849 2002-04-20  David S. Miller  <davem@redhat.com>
8850
8851         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8852
8853 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8854
8855         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8856         instead of NUM_PSEUDO_REGS.
8857
8858 2002-04-20  David S. Miller  <davem@redhat.com>
8859
8860         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8861         GDB_MULTI_ARCH_PARTIAL
8862         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8863         define, let tm-sp64.h do it.
8864
8865 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8866
8867         * frame.c (find_saved_register): Avoid a NULL pointer
8868         dereference and actually walk the frame list.
8869
8870 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8871
8872         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8873         sorted in most most-recent-used order.  Document.
8874         * gdbarch.h, gdbarch.c: Regenerate.
8875
8876 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8877
8878         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8879         instead of ->prev.
8880         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8881         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8882         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8883         instead of ->prev.
8884
8885 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8886
8887         Fix PR gdb/471.
8888         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8889         (build_builtin_type_vec128): Ditto.
8890         (append_composite_type_field): Fix calculation of type length in
8891         union case.
8892
8893 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8894
8895         * config/djgpp/README: Update.
8896
8897         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8898         compiler warnings.
8899
8900 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8901
8902         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8903         (alpha_setup_arbitrary_frame): ...to this.
8904         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8905         for alpha_setup_arbitrary_frame.
8906
8907 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8908
8909         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8910         * gdbarch.h, gdbarch.c: Regenerate.
8911
8912         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8913         * target.h (memory_breakpoint_from_pc): Update declaration.
8914         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8915
8916         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8917         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8918         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8919         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8920         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8921         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8922         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8923         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8924         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8925         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8926         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8927         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8928
8929         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8930         const pointer.
8931         * monitor.c (monitor_insert_breakpoint): Ditto.
8932         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8933
8934         * config/mcore/tm-mcore.h: Update copyright.
8935         * mem-break.c: Ditto.
8936         * xstormy16-tdep.c: Ditto.
8937
8938 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8939
8940         * p-exp.y: Add precedence rule for '^' token.
8941         This removes the shift/reduce conflicts.
8942         Remove the comment concerning these shift/reduce conflicts.
8943
8944 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8945
8946         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8947         (registers_powerpc_nofp): New register set for processors
8948         without floating point unit.
8949
8950 2002-04-18  David S. Miller  <davem@redhat.com>
8951
8952         * MAINTAINERS: Add myself to write-after-approval.
8953
8954 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8955
8956         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8957
8958 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8959
8960         * rs6000-tdep.c (frame_initial_stack_address): Use
8961         frame_register_read to read the alloca_reg.
8962
8963 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8964
8965         * frame.c (find_saved_register): Find saved registers in the next
8966         not prev frame.
8967         Fix PR gdb/365.
8968
8969 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8970
8971         * gdbarch.sh (LANG): Set to ``c''.
8972
8973 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8974
8975         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8976
8977 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8978
8979         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8980         Update copyright.
8981
8982         * hpread.c (hpread_get_lntt): Add declaration.
8983         Also fix PR gdb/391.
8984
8985 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8986
8987         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8988         * aclocal.m4, configure: Re-generate.
8989         Fix PR gdb/391.
8990
8991 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8992
8993         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8994         instead of tm_print_insn.
8995
8996 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8997
8998         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8999
9000 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
9001
9002         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9003         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9004         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9005
9006 2002-04-12  Don Howard  <dhoward@redhat.com>
9007
9008         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9009         max_user_call_depth.
9010         (init_cmd_lists): Initialize the new value;
9011         * cli/cli-script.c (execute_user_command): Limit the call depth of
9012         user defined commands.  This avoids a core-dump when user commands
9013         are infinitly recursive.
9014
9015 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9016
9017         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9018         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9019         from tdep struct instead of DEFAULT_LR_SAVE.
9020         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9021         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9022         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9023
9024 2002-04-12  Michael Snyder  <msnyder@redhat.com>
9025
9026         * Remote.c: Spelling fix.
9027         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9028         If no symbol found for "sbrk", try "_sbrk".
9029         (make_output_phdrs): Use bfd_section_name.
9030         (gcore_copy_callback): Use bfd_section_name.
9031         * eval.c: Indentation fix-ups.
9032         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9033         in case it gets applied to an address that is already
9034         in the instruction space.
9035         * cli/cli-decode.c (help_list): Allow long lines to wrap.
9036         * symfile.c: Fix indentation, long lines.
9037         * source.c: White space fix-up.
9038
9039 2002-04-12  Andrew Cagney  <cagney@redhat.com>
9040
9041         * defs.h (read_relative_register_raw_bytes): Delete declaration.
9042         * frame.c (frame_register_read): New function.  Return non-zero on
9043         success.
9044         (read_relative_register_raw_bytes_for_frame): Delete.
9045         (read_relative_register_raw_bytes): Delete.
9046         * frame.h (frame_register_read): Declare.
9047         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
9048         * sh-tdep.c: Ditto.
9049         * infcmd.c (do_registers_info): Ditto.
9050         * hppa-tdep.c: Ditto.
9051         * rs6000-tdep.c: Ditto.
9052         * h8500-tdep.c: Ditto.
9053         * mips-tdep.c: Ditto.
9054         * h8300-tdep.c: Ditto.
9055         * z8k-tdep.c: Ditto.
9056
9057 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9058
9059         From Jimi X <jimix@watson.ibm.com>:
9060         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9061         64-bit SysV ABI.
9062
9063 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9064
9065         From Jimi X <jimix@watson.ibm.com>:
9066         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9067         bfd info.
9068
9069 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9070
9071         From Jimi X <jimix@watson.ibm.com>:
9072         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9073         register sets for these processor variants.
9074
9075 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
9076
9077         * regformats/reg-ppc.dat: Support FPSCR.
9078
9079 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
9080
9081         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9082         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9083         Add fpscr as an invalid/unfetchable register.
9084         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9085         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9086         (fill_fpregset): Add support for register fpscr.
9087         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9088         (fill_gregset): Account for the fact that register ``mq'' might
9089         not exist.
9090         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9091         (registers_power): Add fpscr to register set at slot 71.
9092         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9093         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
9094
9095 2002-04-11  Michael Snyder  <msnyder@redhat.com>
9096
9097         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9098         * configure: Regenerate.
9099         * config.in: Regenerate.
9100         * acconfig.h: Add define for _SYSCALL32.
9101         * core-sol2.c: Remove #define _SYSCALL32.
9102         * solib-legacy.c: Remove #define _SYSCALL32.
9103
9104 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9105
9106         * stack.c (select_frame): Cleanup internal error message, do not
9107         use %p.
9108
9109 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9110
9111         * stack.c (select_frame): Check that selected_frame and the
9112         specified level are as expected.
9113         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9114         Update copyright.
9115         * frame.h (struct frame_info): Add field `level'.  Update
9116         copyright.
9117         Work-in-progress PR gdb/464.
9118
9119 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9120
9121         * maint.c (maint_print_section_info): Rename print_section_info.
9122         (print_bfd_section_info, print_objfile_section_info): Update.
9123         * inferior.h (struct gdbarch): Add opaque declaration.
9124         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9125         * gdbarch.h: Regenerate.
9126
9127 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
9128
9129         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9130         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9131         (kernel_u_size): Added.
9132         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9133         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9134
9135 2002-04-04  Jim Ingham  <jingham@apple.com>
9136
9137        * valarith.c (find_size_for_pointer_math): New function, either returns
9138        the size for a pointer's target, returns 1 for void *, or errors for
9139        incomplete types.
9140        (value_add, value_sub): use find_size_for_pointer_math.
9141
9142 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9143
9144         * linux-low.c (linux_look_up_symbols): New hook.
9145         (linux_target_ops): Add linux_look_up_symbols.
9146         * remote-utils.c (decode_address): New function.
9147         (look_up_one_symbol): New function.
9148         * server.c (handle_query): Call target look_up_symbols hook.
9149         * server.h (look_up_one_symbol): Add prototype.
9150         * target.h (struct target_ops): Add look_up_symbols hook.
9151
9152 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
9153
9154         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9155         override FP_REGNUM with frame->fp.  Update copyright.
9156         * parse.c (num_std_regs, std_regs): Delete.
9157         (target_map_name_to_register): Do not search std_regs.  Update
9158         function description.
9159         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9160         declarations.  Update copyright.
9161         Fix PR gdb/251.
9162
9163 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9164
9165         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9166         after the last symbol in a block.
9167
9168 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9169
9170         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9171         is non zero as a found symbol.
9172
9173 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9174
9175         * findvar.c: Include "builtin-regs.h".
9176         (value_of_register): Call value_of_builtin_reg when applicable.
9177         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9178         (target_map_name_to_register): Call
9179         builtin_reg_map_name_to_regnum.
9180         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9181         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9182         (builtin_regs_h): Define.
9183         (builtin-regs.o): New target.
9184         (findvar.o): Add $(builtin_regs_h).
9185         * builtin-regs.c, builtin-regs.h: New files.
9186         * std-regs.c: New file.
9187         Partial fix for PR gdb/251.
9188
9189 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9190
9191         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9192         it's no longer required.
9193
9194 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9195
9196         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9197
9198 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9199
9200         From Jimi X <jimix@watson.ibm.com>:
9201         * rs6000-tdep.c (rs6000_software_single_step): Use
9202         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9203         and size.  Use target_insert_breakpoint() and
9204         target_remove_breakpoint() to insert and remove breakpoints
9205         instead of explicit memory reads and writes.
9206
9207 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9208
9209         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9210         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9211         ELF_OBJECT_FORMAT ifdef.
9212
9213 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9214
9215         From Jimi X <jimix@watson.ibm.com>:
9216         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9217
9218 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9219
9220         From Jimi X <jimix@watson.ibm.com>:
9221         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9222         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9223
9224 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
9225
9226         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9227         s/asprintf/xasprintf/.
9228         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9229
9230 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9231
9232         I believe Jeff Law denies responsability for this one:
9233         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9234         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9235         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9236         Work-around for PR gdb/366.
9237
9238 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9239
9240         * remote-e7000.c (write_small, e7000_read_inferior_memory,
9241         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9242         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9243
9244 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9245
9246         * sh-tdep.c (sh_fp_frame_init_saved_regs,
9247         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9248         information.
9249
9250 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9251
9252         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9253         maintainer.
9254
9255 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9256
9257         * README (Reporting Bugs in GDB): Document the bug web page as the
9258         prefered way of submitting bugs.
9259         Fix PR gdb/402.
9260
9261 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9262
9263         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9264         -1.  Update comment.
9265         * gdbarch.h, gdbarch.c: Re-generate.
9266
9267 2002-04-07  Andreas Schwab  <schwab@suse.de>
9268
9269         * m68klinux-nat.c (fill_fpregset): Properly pass address of
9270         buffer to regcache_collect.
9271
9272 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9273
9274         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
9275         * gdbarch.c, gdbarch.h: Re-generate.
9276
9277 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9278
9279         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9280         declaration.  Fix -Werror.
9281
9282 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
9283
9284         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9285         * gdbarch.c: Regenerate.
9286
9287 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9288
9289         * breakpoint.c (clear_command): Rewrite middle section to
9290         combine two loops with identical control conditions.
9291         Add a cleanup to eliminate a memory leak.
9292         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9293
9294 2002-04-05  H.J. Lu  (hjl@gnu.org)
9295
9296         * solib-svr4.c (bkpt_names): Add "__start".
9297
9298 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9299
9300         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9301         as test for 64 bit target.
9302
9303 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
9304
9305         * h8500-tdep.c (h8500_write_fp): Delete function.
9306         * dwarf2cfi.c (cfi_write_fp): Document as not used.
9307         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9308         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9309         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9310         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9311         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9312         (s390_write_fp):
9313         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9314         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9315         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9316         (d10v_write_fp): Delete function.
9317         * inferior.h (write_fp, generic_target_write_fp): Delete
9318         declarations.
9319         * regcache.c (generic_target_write_fp): Delete function.
9320         (write_fp): Delete function.
9321         * gdbarch.sh (TARGET_WRITE_FP): Delete.
9322         * gdbarch.h, gdbarch.c: Regenerate.
9323         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9324         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9325         (sparc64_write_fp): Delete declaration.
9326         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9327         (h8500_write_fp): Delete declaration.
9328
9329 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9330
9331         * sparc-tdep.c (sparc64_write_fp): Delete.
9332         (sparc_push_dummy_frame): Replace write_fp call with code to store
9333         the FP directly.
9334         (sparc_gdbarch_init): Do not initialize write_fp.
9335
9336 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
9337
9338         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9339         clause.
9340
9341 2002-03-29  Jim Blandy  <jimb@redhat.com>
9342
9343         * stack.c (get_selected_block): Add new argument `addr_in_block',
9344         used to return the exact code address we used to select the block,
9345         not just the block.
9346         * blockframe.c (get_frame_block, get_current_block): Same.
9347         * frame.h (get_frame_block, get_current_block,
9348         get_selected_block): Update declarations.
9349         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9350         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9351
9352 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9353
9354         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9355         warning message.
9356
9357 2002-04-05  J. Brobecker  <brobecker@gnat.com>
9358
9359         * utils.c (xfullpath): New function.
9360         * defs.h (xfullpath): Add declaration.
9361         * source.c (openp): Use xfullpath in place of gdb_realpath to
9362         avoid resolving the basename part of filenames when the
9363         associated file is a symbolic link. This fixes a potential
9364         inconsistency between the filenames known to GDB and the
9365         filenames it prints in the annotations.
9366         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9367         to be able to match a filename with either the real filename, or
9368         the name of any symbolic link to this file.
9369         (lookup_partial_symtab): Ditto.
9370
9371 2002-04-04  Michael Snyder  <msnyder@redhat.com>
9372
9373         * breakpoint.c: Add support for hardware breakpoints in overlays.
9374         (overlay_events_enabled): New state variable.
9375         (insert_breakpoints): Use overlay_events_enabled to decide
9376         whether to attempt to set a breakpoint at the overlay load addr.
9377         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9378         (remove_breakpoint): Use overlay_events_enabled to decide
9379         whether breakpoints need to be removed from overlay load addr.
9380         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9381         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9382         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9383         disable_overlay_breakpoints): Update overlay_events_enabled.
9384
9385 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
9386
9387         * dwarf2read.c (struct function_range): New.
9388         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9389         (check_cu_functions): New.
9390         (read_file_scope): Initialize global function lists.
9391         Call dwarf_decode_line after processing children.
9392         (read_func_scope): Add to global function list.
9393         (dwarf_decode_lines): Call check_cu_functions everywhere
9394         record_line is called.  Call record_line with a linenumber
9395         of 0 to mark sequence ends.
9396
9397 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
9398
9399         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9400         change sync with glibc.
9401
9402 2002-04-03  Jim Blandy  <jimb@redhat.com>
9403
9404         * configure.in: Call AC_C_INLINE.
9405         * configure: Regenerated.
9406
9407 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
9408
9409         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9410         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9411
9412 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
9413
9414         * NEWS: Mention gcore support on FreeBSD/i386.
9415
9416         * fbsd-proc.c: New file.
9417         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9418         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9419
9420         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9421         while statement.
9422
9423 2002-03-29  Jim Blandy  <jimb@redhat.com>
9424
9425         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9426         unescaped newlines in string literals, but newer ones don't.  So
9427         escape them.
9428
9429 2002-03-26  Michael Snyder  <msnyder@redhat.com>
9430             Andrew Cagney <cagney@redhat.com>
9431
9432         * cli/cli-dump.c: New file.  Dump memory to file,
9433         restore file to memory.
9434         * cli/cli-dump.h: New file.
9435         * Makefile.in: Add rules, dependencies for cli-dump.o.
9436         * NEWS: Mention new commands.
9437
9438 2002-03-28  Michael Snyder  <msnyder@redhat.com>
9439
9440         * symfile.c (symbol_file_add): Move test for null symbols to later.
9441
9442 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9443
9444         From veksler at il.ibm.com:
9445         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9446         the xstrduped original path.
9447         Fix PR gdb/417.
9448
9449 2002-03-27  Michael Snyder  <msnyder@redhat.com>
9450
9451         * breakpoint.c (_initialize_breakpoint): Clean up help string.
9452         * infcmd.c (_initialize_infcmd): Ditto.
9453         * language.c (_initialize_language): Ditto.
9454         * symfile.c (_initialize_symfile): Ditto.
9455         * top.c (_init_main): Ditto.
9456         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9457
9458 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
9459
9460         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9461         vector registers handling.
9462         (skip_prologue): Handle new AltiVec instructions.  Fill in new
9463         fields of frame data.
9464         (frame_get_saved_regs): Fill in information for AltiVec registers.
9465
9466 2002-03-27  Jim Blandy  <jimb@redhat.com>
9467
9468         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9469         a function; leave this macro here to invoke that function.
9470         (symbol_init_mangled_name): Declaration for that function.
9471         * symtab.c (symbol_init_mangled_name): New function.
9472
9473 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9474
9475         * valarith.c: Replace strerror with safe_strerror.
9476         * tracepoint.c: Ditto.
9477         * lin-lwp.c: Ditto.
9478         * go32-nat.c: Ditto.
9479         * inflow.c: Ditto.
9480         * gnu-nat.c: Ditto.
9481
9482 2002-03-27  Andreas Schwab  <schwab@suse.de>
9483
9484         * event-top.c (command_line_handler): Remove useless if.
9485
9486 2002-03-27  Andreas Jaeger  <aj@suse.de>
9487
9488         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9489         comment.
9490
9491 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
9492
9493         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9494         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9495         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9496         (x86_64_linux_dr_get_status, supply_gregset),
9497         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9498         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9499         (x86_64_register_info_table): Add.
9500         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9501         (x86_64_register_raw_size, x86_64_register_virtual_type),
9502         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9503         general x86_64_register_info_table.
9504         (i386_gdbarch_init): gdbarch_register_bytes is now set
9505         dynamicaly during initialization.
9506         * regformats/reg-x86-64.dat: Synced with changes to registers above.
9507         * gdbserver/linux-x86-64-low.c: Ditto.
9508
9509 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9510
9511         * gdbserver/server.c (main): Call target_signal_to_host_p
9512         and target_signal_to_host on signals received from the remote.
9513         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9514         target_signal_from_host on signals sent to the remote.
9515         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9516         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9517
9518 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9519
9520         * signals/signals.c: Include "server.h" in gdbserver build.
9521         (target_signal_from_name): Don't use STREQ.
9522         (_initialize_signals): Likewise.  Don't include function in
9523         gdbserver build.
9524
9525 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9526
9527         * signals.c: Moved to...
9528         * signals/signals.c: Here.
9529         * Makefile (signals.o): Update.
9530
9531 2002-03-26  Jeff Law (law@redhat.com)
9532
9533         * somread.c (som_symtab_read): Remove some commented out code and
9534         updated related comments.  Do not set the minimal symbol table to
9535         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9536         in a dynamic executable.
9537         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9538         where we are unable to find the minimal symbol for the given
9539         PC value.
9540
9541 2002-03-25  Jeff Law (law@redhat.com)
9542
9543         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9544
9545 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9546
9547         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9548
9549 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9550
9551         * command.h: Update copyright.
9552         (struct cmd_list_element): Replace definition with opaque
9553         declaration.
9554         (enum cmd_types): Document that it will eventually be moved to
9555         cli/cli-decode.h
9556         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9557         (MALLOCED_REPLACEMENT): Delete macro.
9558         * Makefile.in (cli_decode_h): Add $(command_h).
9559         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9560         * top.c: Include "cli/cli-decode.h".
9561         * completer.c: Include "cli/cli-decode.h".
9562         * maint.c: Include "cli/cli-decode.h".
9563         * cli/cli-decode.h: Include "command.h".
9564         (enum command_class): Delete.
9565         (enum cmd_types): Comment out.
9566         (enum cmd_auto_boolean): Delete.
9567         (enum var_types): Delete.
9568
9569 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9570
9571         * cli/cli-decode.c: Include "gdb_assert.h".
9572         (add_set_or_show_cmd): New static function.
9573         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9574         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9575         all fields, such as func, from the set command.
9576
9577 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9578
9579         * MAINTAINERS (sh-elf): Change warning flag to -w.
9580
9581 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9582
9583         * defs.h (error): Add printf format attribute.
9584         * thread-db.c (thread_from_lwp): Fix error format string.
9585         * stack.c (parse_frame_specification): Ditto.
9586         * cli/cli-decode.c (undef_cmd_error): Ditto.
9587         * scm-lang.c (scm_lookup_name): Ditto.
9588         * tracepoint.c (trace_error): Ditto.
9589         * remote-utils.c (usage): Ditto.
9590         * remote.c (compare_sections_command): Ditto.
9591         Fix PR gdb/328.
9592
9593 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9594
9595         * gdbtypes.c (append_composite_type_field): New function.
9596         (init_composite_type): New function.
9597         * gdbtypes.h (append_composite_type_field): Declare.
9598         (init_composite_type): Ditto.
9599
9600 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9601
9602         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9603         function.
9604         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9605         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9606         structure returning convention for SYSV ABI case, but not
9607         for GNU/Linux, FreeBSD, or NetBSD.
9608
9609 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9610
9611         * symtab.h (lookup_block_symbol): Add mangled_name argument
9612         to prototype.
9613
9614         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9615         with new mangled_name argument.
9616         * linespec.c (decode_line_1): Likewise.
9617         * valops (value_of_this): Likewise.
9618         * symtab.c (lookup_transparent_type): Likewise.
9619         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9620         (lookup_symbol): If we are given a mangled name, pass it down
9621         to lookup_symbol_aux.
9622         (lookup_block_symbol): If we are given a mangled name to check
9623         against, only return symbols which match it.
9624
9625 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9626
9627         * win32-nat.c (child_create_inferior): Check for proper shell to use
9628         here, in case the user changes it on the fly.
9629         (_initialize_inftarg): Remove shell path considerations.
9630
9631 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9632
9633         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9634         for gdbarch_max_register_raw_size and max_register_virtual_size.
9635         Adjust copyright year.
9636
9637 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9638
9639          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9640          in a function to cover the entire beginning of the function
9641          as well if it does not already.
9642
9643 2002-03-21  Tom Rix  <trix@redhat.com>
9644
9645         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9646         (rs6000_ptrace64): Renamed from ptrace64.
9647
9648 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9649
9650         * gdbserver/remote-utils.c (remote_open): Don't call
9651         getprotobyname, we're all using TCP here so just use
9652         IPPROTO_TCP.
9653         * gdbserver/gdbreplay.c (remote_open): Ditto.
9654
9655 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9656
9657         * regcache.c (_initialize_regcache): No need to call
9658         build_regcache() at this time; it gets called whenever
9659         the gdbarch changes.
9660
9661 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9662
9663         * sparc-nat.c:  Include sys/param.h where possible.
9664
9665 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9666
9667         Fix PR gdb/422.
9668         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9669         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9670         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9671         complex types.
9672         * stabsread.c (rs6000_builtin_type): Likewise.
9673         (read_sun_floating_type): Likewise.
9674
9675 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9676
9677         * stabsread.c (read_member_functions): Remove skip code for duplicate
9678         constructor/destructor methods.  Use standard parsing for these
9679         methods and just do not chain them to the list of methods after
9680         parsing.
9681
9682 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9683
9684         * coffread.c: Remove redundant static declarations.  Replace
9685         occurrences of `PTR' with `void *'.
9686         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9687         * top.h (quit_cover): Likewise.
9688         * defs.h (catch_errors): Likewise.
9689
9690 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9691
9692         * defs.h (XMALLOC): Define.
9693         * gdb-events.sh (XMALLOC): Delete macro.
9694         * gdb-events.c, gdb-events.h: Regenerate.
9695         * gdbarch.sh (XMALLOC): Delete macro.
9696         * gdbarch.c: Regenerate.
9697         * serial.c (XMALLOC): Delete macro.
9698         * ui-file.c (XMALLOC): Ditto.
9699         * ser-unix.h (XMALLOC): Ditto.
9700         * sh-tdep.c (XMALLOC): Ditto.
9701         * ui-out.c (XMALLOC): Ditto.
9702         * utils.c (XMALLOC): Ditto.
9703         * i386-tdep.c (XMALLOC): Ditto.
9704         * gdb-events.c (XMALLOC): Ditto.
9705         * d10v-tdep.c (XMALLOC): Ditto.
9706         * cli-out.c (XMALLOC): Ditto.
9707
9708         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9709         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9710         * ui-file.c, ui-out.c: Ditto.
9711
9712 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9713
9714         * command.h (struct cmd_list_element): Add field context.
9715         (set_cmd_context, get_cmd_context): Declare.
9716         * cli/cli-decode.h: Ditto.
9717         * cli/cli-decode.c (get_cmd_context): New function.
9718         (set_cmd_context): New function.
9719         (add_cmd): Initialize context.
9720         Part of fixing PR gdb/145 and PR gdb/146.
9721
9722 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9723
9724         * cli/cli-decode.c (cmd_type): New function.
9725         * command.h (cmd_type): Declare.
9726         * infrun.c (set_schedlock_func): Call function cmd_type.
9727         * kod.c (kod_set_os): Call cmd_type.
9728         * cris-tdep.c (cris_version_update): Use function cmd_type.
9729         (cris_mode_update, cris_abi_update): Ditto.
9730
9731         * command.h: (execute_cmd_post_hook): Declare.
9732         (execute_cmd_pre_hook): Declare.
9733         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9734         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9735         functions. Execute pre/post hook while ensuring that afterwords
9736         hook_in is cleared.
9737         * top.c (execute_command): Use execute_cmd_post_hook, and
9738         execute_cmd_pre_hook to execute pre/post commands.
9739         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9740         hook_stop_stub.
9741         (hook_stop_stub): Call execute_cmd_pre_hook.
9742
9743 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9744
9745         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9746         set'' and this leads to a core dump.  Move xstrdup of
9747         operating_system to after check that it is not NULL.
9748
9749 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9750
9751         * kod.c (kod_set_os): Remove unnecessary check that
9752         ``command->type'' is set_cmd.
9753
9754         * valprint.c (set_input_radix): Use input_radix.
9755         (set_output_radix): Use output_radix.
9756         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9757         isn't reverted.
9758
9759 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9760
9761         * value.h (struct value): Delete field ``substring_addr''.  Change
9762         aligner fields to force_doublest_align, force_longest_align,
9763         force_core_addr_align and force_pointer_aligh.
9764
9765         * value.h (struct value): Fix typo in above change.
9766
9767 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9768
9769         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9770         to fix internal_error from ``maintenance print architecture''.
9771
9772 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9773
9774         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9775         for gcc versions after gcc-2.8.1.
9776
9777 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9778
9779         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9780         for method resolution.  Restore adjustment of ``this'' pointer after
9781         calling value_struct_elt, which was accidentally removed during the
9782         HP merge.
9783
9784 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9785
9786         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9787         value_of_register.
9788         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9789         get_saved_register.
9790         * value.h (value_of_register): Update.
9791
9792 2002-03-14  Richard Henderson  <rth@redhat.com>
9793
9794         * configure.in: Detect declaration for canonicalize_file_name.
9795         * utils.c (canonicalize_file_name): Declare, if needed.
9796         (gdb_realpath): Prefer realpath if available and usable.
9797         * config.in, configure: Rebuild.
9798
9799 2002-03-14  Richard Henderson  <rth@redhat.com>
9800
9801         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9802         a constant array bound.
9803
9804         * MAINTAINERS: Add myself to write-after-approval.
9805
9806 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9807
9808         * symfile.c (syms_from_objfile): Return immediately if no syms.
9809         (symbol_file_add): Return immediately if no syms.
9810         (find_sym_fns): Return immediately if no syms.
9811
9812 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9813
9814         * gdbserver/remote-util.c (remote_open): Print remote-side's
9815         IP address when remote debugging over the network.
9816
9817 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9818
9819         * config/sparc/fbsd.mh: Fix copyright.
9820         * config/sparc/fbsd.mt: Likewise.
9821
9822 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9823
9824         * MAINTAINERS: Fix typo in name of gdb warnings option.
9825         (x86-64): Fix formating so that this can be parsed by awk.
9826
9827 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9828
9829         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9830         * defs.h: Include "gdb/signals.h".
9831         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9832
9833 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9834
9835         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9836         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9837         from x86-64-tdep.h
9838
9839 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9840             Don Howard <dhoward@redhat.com>
9841
9842         * mips-tdep.c (ST0_FR): Define.
9843         (mips2_fp_compat): New function, temporarily disabled.
9844         (mips_read_fp_register_single): New function.
9845         (mips_read_fp_register_double): New function.
9846         (mips_print_register): Use them.
9847         (do_fp_register_row): Likewise.
9848
9849 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9850
9851         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9852         approval''.
9853
9854 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9855
9856         * stabsread.c (read_member_functions): Fix is_stub test for
9857         static member functions, improve comment.
9858
9859 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9860
9861         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9862         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9863         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9864         commands that set boolean values.
9865         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9866         (arm_rdi_resume): Always initialize PC.
9867         (arm_rdi_open): Don't use rslt as a boolean.
9868         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9869         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9870         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9871         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9872
9873 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9874
9875         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9876         * configure: Rebuilt.
9877
9878 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9879
9880         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9881         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9882
9883 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9884
9885         * cli/cli-decode.c (set_cmd_completer): New function.
9886         * command.h (set_cmd_completer): Declare.
9887         * cli/cli-decode.h (set_cmd_completer): Ditto.
9888
9889         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9890         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9891         * win32-nat.c (_initialize_inftarg): Ditto.
9892         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9893         * proc-api.c (_initialize_proc_api): Ditto.
9894         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9895         * source.c (_initialize_source): Ditto.
9896         * exec.c (_initialize_exec): Ditto.
9897         * solib.c (_initialize_solib): Ditto.
9898         * top.c (init_main): Ditto.
9899         * tracepoint.c (_initialize_tracepoint): Ditto.
9900         * symfile.c (_initialize_symfile): Ditto.
9901         * printcmd.c (_initialize_printcmd): Ditto.
9902         * infcmd.c (_initialize_infcmd): Ditto.
9903         * corefile.c (_initialize_core): Ditto.
9904
9905 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9906
9907         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9908
9909 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9910
9911         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9912
9913 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9914
9915         * NEWS: Update headings, 5.2 has branched.
9916
9917 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9918
9919         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9920         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9921         (register_addr, REGISTER_RAW_SIZE): Likewise.
9922         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9923         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9924
9925 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9926
9927         * MAINTAINERS (x86-64): Add myself.
9928         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9929         changed value_ptr -> struct value *
9930
9931 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9932
9933         * configure.host (sparc64-*-freebsd): Add.
9934         * configure.tgt: Likewise.
9935         * config/sparc/fbsd.mh: New file.
9936         * config/sparc/fbsd.mt: Likewise.
9937         * config/sparc/nm-fbsd.h: Likewise.
9938         * config/sparc/tm-fbsd.h: Likewise.
9939
9940 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9941
9942         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9943         regformats/reg-s390x.dat.
9944
9945 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9946
9947         * utils.c: Add FIXME explaining true/false problem.
9948
9949 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9950
9951         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9952
9953 2002-02-28  Michael Chastain  <mec@shout.net>
9954
9955         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9956
9957 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9958
9959         * gdbserver/linux-s390-low.c: New file.
9960         * regformats/reg-s390.dat: New file.
9961         * regformats/reg-s390x.dat: New file.
9962         * gdbserver/configure.srv: Add S/390.
9963         * gdbserver/Makefile.in: Add S/390.
9964         * configure.tgt: Enable gdbserver for S/390.
9965
9966 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9967
9968         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9969         first line of the doc string for "info dos", except at the end of
9970         the sentence, since the short help stops at the first period.
9971
9972 2002-02-28  Jason Merrill  <jason@redhat.com>
9973
9974         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9975
9976 2002-02-27  Fred Fish  <fnf@redhat.com>
9977
9978         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9979         comment (dumy -> dummy).
9980
9981 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9982
9983         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9984
9985 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9986
9987       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9988
9989 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9990
9991         * gdbserver/acconfig.h: New file.
9992         * gdbserver/i387-fp.c: New file.
9993         * gdbserver/i387-fp.h: New file.
9994         * gdbserver/linux-x86-64.c: New file.
9995         * regformats/reg-x86-64.dat: New file.
9996         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9997         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9998         * gdbserver/configure.in: Add support for regsets.
9999         * gdbserver/config.in: Regenerate.
10000         * gdbserver/configure: Regenerate.
10001         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
10002         * gdbserver/linux-low.h: New file.
10003         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
10004         for regsets.
10005         * gdbserver/linux-arm-low.c: Include "linux-low.h".
10006         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10007         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10008         * gdbserver/linux-mips-low.c: Include "linux-low.h".
10009         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10010         * gdbserver/linux-sh-low.c: Include "linux-low.h".
10011         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
10012         "i387-fp.h".  Add PTRACE_GETREGS and friends.
10013         * gdbserver/regcache.c (supply_register): New function.
10014         (supply_register_by_name): New function.
10015         (collect_register): New function.
10016         (collect_register_by_name): New function.
10017
10018 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
10019
10020         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10021         (config.status): Add configure.srv dependency.
10022         (server_h): Add config.h dependency.
10023
10024 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
10025
10026         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10027         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10028         * gdbserver/configure.srv: Change i386-*-linux* to use
10029         reg-i386-linux.o.
10030
10031 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10032
10033         * x86-64-tdep.c: Re-indent.  Update copyright date.
10034
10035 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10036
10037         From Michal Ludvig <mludvig@suse.cz>:
10038         * x86-64-tdep.c (value.h): Delete.
10039         (gdb_assert.h): Include.
10040         (x86_64_register_convert_to_virtual,
10041         x86_64_register_convert_to_raw ): Add check which lets only
10042         floating-point values to be converted.
10043         (value_push): Delete.
10044         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10045         (i386_gdbarch_init): Number of register_bytes fixed.
10046
10047 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10048
10049         * MAINTAINERS: Add x86-64 target.
10050
10051 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10052
10053         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10054         * osfsolib.c (solib_map_sections): Ditto.
10055         * irix5-nat.c (solib_map_sections): Ditto.
10056         * corelow.c (gdb_check_format): Ditto.
10057         * symfile.c (symfile_bfd_open): Ditto.
10058         * solib.c (solib_map_sections): Ditto.
10059         Fix PR gdb/354.
10060
10061 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
10062
10063         * remote.c (_initialize_remote): By default, disable ``e'' and
10064         ``E'' step out-of-range packets.
10065
10066 2002-02-26  Andreas Schwab  <schwab@suse.de>
10067
10068         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10069         m68k_linux_frame_saved_pc.
10070         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10071         in_sigtramp.
10072         (SIGCONTEXT_PC_OFFSET): Remove.
10073         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10074         m68k_linux_sigtramp_saved_pc): New functions.
10075         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10076         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10077         (UCONTEXT_PC_OFFSET): Define.
10078         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10079         non-RT and RT signal trampolines.
10080
10081 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
10082
10083         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10084         (TARGET_NBPG, STACK_END_ADDR): Delete
10085         (VARIABLES_INSIDE_BLOCK): Delete.
10086
10087 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
10088
10089         * utils.c (perror_with_name): Make string parameter constant.
10090         (print_sys_errmsg): Ditto.
10091         (query): Ditto.
10092         * defs.h (perror_with_name): Update.
10093         (print_sys_errmsg): Update.
10094         (query): Update.
10095
10096 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
10097
10098         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10099         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10100
10101 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10102
10103         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10104         if it already matches the current architecture from the exec file.
10105         Include arch-utils.h for gdbarch_info_init prototype.
10106         * Makefile.in (rs6000-nat.o): Update dependencies.
10107
10108 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
10109
10110         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10111          list of exported variables.
10112
10113 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
10114
10115         * gdbserver/configure.srv: New file.
10116         * gdbserver/configure.in: Use configure.srv instead
10117         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
10118         from it.
10119         * gdbserver/configure: Regenerated.
10120         * gdbserver/terminal.h: New file.
10121         * gdbserver/Makefile.in: Update for configure changes.  Remove
10122         more unneeded include paths.
10123
10124 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10125
10126         From wiz at danbala:
10127         * config/sparc/tm-sp64.h: Fix grammar and typos.
10128         Fix PR gdb/287.
10129
10130 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10131
10132         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10133         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
10134         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10135         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10136         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10137         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10138         * s390-tdep.c: Ditto.
10139         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10140         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10141         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10142         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10143         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10144         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10145         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10146         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10147         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10148         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10149         Fix PR gdb/378.
10150
10151 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10152
10153         * lin-thread.c: Delete file.
10154         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10155         to gdb_proc_service.h.
10156         * configure: Re-generate.
10157
10158         * ocd.c (ocd_open): Do not try to open the "ocd" device.
10159         * serial.c (serial_open): Delete check for "ocd".
10160         Fix PR gdb/349.
10161
10162         * Makefile.in (linux-thread.o): Delete target.
10163         * linux-thread.c: Delete file.
10164
10165         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
10166         renamed SH files to be consistent.
10167
10168         * symtab.c (sort_search_symbols): Use xfree.
10169
10170 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10171
10172         * arm-linux-tdep.c (arm_linux_init_abi): Register
10173         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10174         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10175         definition with undef, since we don't want the sysvr4 definition.
10176         (SKIP_TRAMPOLINE_CODE): Likewise.
10177
10178 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10179
10180         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10181
10182         * configure.in: (AC_CHECK_FUNCS) Added test for
10183         canonicalize_file_name Regenerated.
10184         * config.in, configure: Regenerated.
10185         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10186         defined use canonicalize_file_name.
10187
10188 2002-02-23  Michael Chastain  <mec@shout.net>
10189
10190         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10191
10192 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10193
10194         * README: Remove references to cygnus.com.
10195         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10196         dot com'' form.  Remove references to cygnus.com and sourceware.
10197
10198 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10199
10200         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10201         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10202         1003.1-2001 no longer allows "head -1".
10203         * gdb/Makefile.in (version.c): Likewise.
10204         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10205         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10206         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
10207
10208 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10209
10210         * cli/cli-decode.c (cmd_cfunc_eq): New function.
10211         * command.h (cmd_cfunc_eq): Declare.
10212         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10213
10214         * cli/cli-cmds.h (is_complete_command): Change parameter to a
10215         ``struct cmd_list_element *''.
10216         * cli/cli-cmds.c (is_complete_command): Update.  Use
10217         cmd_cfunc_eq.
10218         * top.c (execute_command): Pass the command to
10219         is_complete_command.
10220         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10221
10222 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10223
10224         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10225         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10226         architecture defines.
10227         * s390-tdep.c (s390_gdbarch_init): Likewise.
10228
10229 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10230
10231         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10232         (arm_linux_push_arguments): Likewise.
10233         (arm_linux_init_abi): Register them.  Also register linux-specific
10234         call_dummy_words.
10235         (find_minsym_and_objfile): Use strcmp, not STREQ.
10236         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10237         (arm_linux_call_dummy_words): Delete declaration.
10238         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10239         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10240         declarations.
10241         (LOWEST_PC): Delete.
10242
10243 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10244
10245         * maint.c (print_section_info): Do not prepend `0x' to filepos
10246         output, it will be handled by local_hex_string_custom.
10247
10248 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10249
10250         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10251         (store_newfpe_double, store_newfpe_extended, store_fpregister)
10252         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10253
10254 2002-02-22  Jim Blandy  <jimb@redhat.com>
10255
10256         Indicate that the bcache functions don't change the strings
10257         they're passed.
10258         * bcache.h (bcache, hash): Add `const' keywords to declarations.
10259         * bcache.c (bcache, hash): Add `const' keywords to definitions.
10260
10261 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
10262
10263         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10264
10265 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10266
10267         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10268         find the complete path to a loaded DLL.
10269
10270 2002-02-21  Fred Fish  <fnf@redhat.com>
10271
10272         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10273         that marks the end of the range of a function, enter a line number
10274         entry that has a line number of zero and a PC offset that matches
10275         the end of the function.  This starts a range of PC's for which no
10276         line number information is known.
10277         * symtab.c (find_pc_sect_line): If our best fit is in a range of
10278         PC's for which no line number info is found (line number is zero)
10279         then we didn't find any valid line information.
10280         * symtab.h: Document use of zero line number entry.
10281
10282 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
10283
10284         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10285         (have_ptrace_getvrregs): Define for run time checks.
10286         (gdb_vrregset_t): New type for Altivec register handling.
10287         (fetch_register, store_register): Fetch/store altivec register
10288         when needed.
10289         (fetch_altivec_register, store_altivec_register): New functions.
10290         (supply_vrregset, fill_vrregset): New functions.
10291         (fetch_altivec_registers, store_altivec_registers): New functions.
10292         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10293         registers as well.
10294
10295 2002-02-21  Jiri Smid  <smid@suse.cz>
10296
10297         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10298
10299 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10300
10301         * Makefile.in (armnbsd-nat.o): Update dependencies.
10302         * armnbsd-nat.c (supply_gregset): New function.  Common code to
10303         supply the integer register set.
10304         (supply_fparegset): New function.  Similar for FPA registers.
10305         (fetch_regs, fetch_fp_regs): Use them.
10306         (fetch_core_registers): Likewise.
10307         (fetch_elfcore_registers): New function.
10308         (arm_netbsd_elfcore_fns): New core-file type specification.
10309         (_initialize_arm_netbsd_nat): Register it.
10310
10311 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10312
10313         * armnbsd-nat.c: Include gdbcore.h.
10314         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10315         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10316         'void' to declaration, to shut up ARI.
10317         (fetch_core_registers): Make static.  Rewrite using supply_register.
10318         (arm_netbsd_core_fns): New core-file type specification.
10319         (_initialize_arm_netbsd_nat): New function.
10320
10321 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10322
10323         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10324         value.
10325
10326 2002-02-20  Christopher Faylor  <cgf@redhat.com>
10327
10328         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10329         fails.
10330
10331 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10332
10333         * jv-exp.y (parse_number): Change type of implicit longs
10334         to builtin_type_uint64.
10335
10336 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10337
10338         * gdbserver/linux-low.c (mywait): Change argument to waitpid
10339         to be an integer instead of a `union wait'.
10340
10341 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10342
10343         * mips-linux-nat.c: Call the operating system GNU/Linux.
10344         * mips-linux-tdep.c: Likewise.
10345         * mips-tdep.c: Likewise.
10346
10347 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10348
10349         Fix PR gdb/265.
10350         * jv-exp.y (parse_number): Handle 64-bit integers.
10351
10352 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10353
10354         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
10355         AC_STDC_HEADERS to AC_HEADER_STDC.
10356         * gdbserver/configure: Regenerated.
10357
10358 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10359
10360         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10361         is defined.
10362         * sparc-tdep.c (get_longjmp_target): Likewise.
10363
10364 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10365
10366         * News: Add news about ARM and Multi-arch.  Mention the new target
10367         arm*-*-netbsd*.
10368
10369 2002-02-19  Jim Blandy  <jimb@redhat.com>
10370
10371         * stabsread.c (error_type_complaint): Improve error message.
10372
10373 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
10374
10375         * gdbserver/README: Update documentation.
10376         * gdbserver/configure.in: Update configury to match documentation.
10377         * gdbserver/Makefile.in: Likewise.
10378         * gdbserver/configure: Regenerated.
10379         * gdbserver/aclocal.m4: New file, generated by aclocal.
10380         * gdbserver/config.in: New file, generated by autoheader.
10381
10382 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10383
10384         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10385         armnbsd-nat.c.
10386
10387 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10388
10389         * arm-tdep.h (enum arm_float_model): New enum.
10390         (struct gdbarch_tdep): Add fp_model.
10391         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
10392         up floating-point conversions until we know the floating-point model
10393         in use by the inferior.  Don't complain about being unable to
10394         determine the ABI of the inferior when we don't have one.
10395         (arm_extract_return_value): Support different floating-point models.
10396         (arm_store_return_value): Likewise.
10397         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10398         ARM_FLOAT_SOFT.
10399         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10400
10401 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10402
10403         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10404         of ``current_gdbarch''.
10405
10406 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10407
10408         * armnbsd-nat.c : ANSIfy all function declarations.
10409         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10410         (fetch_inferior_registers): Re-implement in terms of above.
10411         (store_register, store_regs, store_fp_register, store_fp_regs): New.
10412         (store_inferior_registers): Re-implement in terms of above.
10413
10414 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10415
10416         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10417         kernel.
10418         * arm-linux-tdep.c: Likewise.
10419         * config/arm/tm-linux.h: Likewise.
10420
10421 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10422
10423         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10424         * config/arm/nbsd.mt (TM_FILE): Delete.
10425         * config/arm/tm-nbsd.h: Delete.
10426
10427 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10428
10429         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10430         Initialize CALL_DUMMY_LENGTH.
10431
10432 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10433
10434         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10435         function.
10436         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10437         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10438         defines one thing and that is incorrect for this port.
10439         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10440
10441 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10442
10443         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10444
10445 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10446
10447         * win32-nat.c (display_selector): New function. Displays information
10448         about the information returned by GetThreadSelectorEntry API function.
10449         (display_selectors): New function. Displays the infomation of
10450         the selector given as argument, or of CS, DS ans FS selectors
10451         if no argument is given.
10452         ( _initialize_inftarg): Add "w32" as info prefix command.
10453         Add "info w32 selector" as command calling display_selectors.
10454
10455 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
10456
10457         * i386-tdep.c (get_longjmp_target): Fix compilation failure
10458         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10459         if not defined.
10460
10461 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10462
10463         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10464
10465 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10466
10467         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10468         (arm_fix_call_dummy): Call it.
10469         (arm_call_dummy_breakpoint_offset): Delete.
10470         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10471         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10472
10473 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
10474
10475         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10476         Default to func_frame_chain_valid.
10477         * gdbarch.h, gdbarch.c: Re-generate.
10478         * frame.h (FRAME_CHAIN_VALID): Delete definition.
10479
10480 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
10481
10482         * ppc-linux-nat.c: Update copyright.
10483         (fetch_register, store_register): Add tid parameter, don't compute
10484         tid here.
10485         (fetch_ppc_registers, store_ppc_registers): Add tid
10486         parameter. Pass it along to callees.
10487         (fetch_inferior_registers, store_inferior_registers): Compute tid
10488         here, and pass it to calleed functions.
10489         (fill_gregset, supply_fpregset): Clean up formatting.
10490
10491 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10492
10493         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10494         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10495
10496 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10497
10498         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10499         * gdbarch.c gdbarch.h: Regenerate.
10500         * breakpoint.c (create_longjmp_breakpoint): Always compile this
10501         function.
10502         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10503         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10504         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10505
10506         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10507         * arm-tdep.c (arm_get_longjmp_target): New function.
10508         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
10509         this to a positive value register arm_get_longjmp_target as the
10510         longjmp handler.
10511         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10512         (arm_linux_init_abi): Set up longjmp description in tdep.
10513         * armnbsd-nat.c (get_longjmp_target): Delete.
10514         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10515         description in tdep.
10516         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10517         (get_longjmp_target): Delete declaration.
10518         (GET_LONGJMP_TARGET): Delete.
10519         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10520         (GET_LONGJMP_TARGET): Delete.
10521
10522 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10523
10524         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10525         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10526         of ``current_gdbarch''.
10527
10528 2002-02-17  Tom Tromey  <tromey@redhat.com>
10529
10530         * cli/cli-cmds.c (compare_strings): New function.
10531         (complete_command): Only print each unique item once.
10532         * completer.h (complete_line): Declare.
10533         * completer.c (complete_line): New function.
10534         (line_completion_function): Use it.
10535
10536 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10537
10538         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10539         * gdbarch.h, gdbarch.c: Re-generate.
10540
10541 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10542
10543         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10544
10545 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10546
10547         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10548         * valops.c (value_arg_coerce): Don't take the address of a reference
10549         to convert an argument to a reference.
10550
10551 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10552
10553         * win32-nat.c (get_image_name): New function.
10554         (handle_load_dll): Use get_image_name function.
10555         (get_child_debug_event): Avoid registering debug events until possibly
10556         execed process is started.
10557         (child_create_inferior): Allow invocation via shell so that command
10558         line redirection, etc.  works ok.
10559         (_initialize_inftarg): Add new command: "set shell" to control whether
10560         a shell is used to start a process.
10561
10562 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10563
10564         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10565         instead of find_register_by_number.
10566         (cannot_store_register): Likewise.
10567
10568 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10569
10570         * dwarf2read.c: Replace fprintf (stderr, ...) by
10571         fprintf_unfiltered (gdb_stderr, ...).
10572
10573 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10574
10575         * gdbserver/gdbserver.1: Document --attach.
10576
10577 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10578
10579         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10580         descriptions.
10581         * arm-tdep.c (arm_default_arm_le_breakpoint)
10582         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10583         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10584         traditional breakpoint defines.
10585         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10586         (arm_gdbarch_init): Initialize new breakpoint variables.
10587         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10588         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10589         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10590         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10591         code out to ...
10592         (arm_netbsd_init_abi_common): ... here; new function.
10593         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10594         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10595         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10596         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10597
10598 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10599
10600         * arm-tdep.h (enum arm_abi): New enum.
10601         (struct gdbarch_tdep): New structure.
10602         (LOWEST_PC): Provide a default.
10603         (arm_gdbarch_register_os_abi): Declare new function.
10604         * arm-tdep.c (arm_abi_names): New array.
10605         (process_note_abi_tag_sections): New function.
10606         (get_elfosabi): New function.
10607         (arm_gdbarch_register_os_abi): New function.
10608         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10609         support for that ABI has been built in, then call the appropriate
10610         configuration routine.  Use gdbarch_num_regs() to get the number
10611         of registers.
10612         (arm_dump_tdep): New function.
10613         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10614         place-holder functions.
10615         (_initialize_arm_tdep): Register them.
10616         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10617
10618         * armnbsd-tdep.c: New file.
10619         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10620         * config/arm/nbsd.mt (TDEPFILES): Add it.
10621         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10622
10623         * armnbsd-nat.c: Include regcache.h.
10624         * Makefile.in (armnbsd-nat.o): Update dependency list.
10625
10626         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10627
10628 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10629
10630         * gdbserver/Makefile.in: Fix typos in target rules.
10631
10632 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10633
10634         Fix part of PR gdb/267.
10635         * linespec.c (find_methods): Handle constructors specially for now.
10636
10637 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10638
10639         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10640         handling.
10641         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10642         standard_coerce_float_to_double().
10643
10644 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10645
10646         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10647         GDBINIT_FILENAME.
10648
10649 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10650
10651         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10652         find_variant_by_name, because it confuses the multiarch
10653         framework. Return NULL if there isn't an architecture with the
10654         user supplied name, instead of forcing a different one without
10655         recording the change with the multiarch machinery.
10656         (find_variant_by_name): Delete.
10657
10658 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10659
10660         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10661         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10662
10663 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10664
10665         * stack.c (print_frame_info_base): When calling
10666         print_frame_info_listing_hook, set current_source_symtab.
10667
10668 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10669
10670         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10671         and remove unused $(INCLUDE_DIR).
10672         Add regcache.c to OBS.
10673         Add generated register protocol files to clean target.
10674         Update dependencies for new objects, obsolete old target code.
10675
10676         * gdbserver/linux-low.c: Remove all platform-specific code to
10677         new files.  Remove various dead code.  Update to use regcache
10678         functionality.
10679         * gdbserver/remote-utils.c (fromhex): Add return statement
10680         to quiet warning.
10681         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10682         constant.
10683         (input_interrupt): Add integer parameter to match prototype
10684         of a signal handler.
10685         (outreg): Use register_data ().
10686         (prepare_resume_reply): Use gdbserver_expedite_regs.
10687         * gdbserver/server.c (main): Dynamically allocate own_buf because
10688         PBUFSIZ is no longer constant.  Use registers_to_string () and
10689         registers_from_string ().
10690         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10691         for error (), fatal (), and warning ().  Update definition of
10692         PBUFSIZ to use regcache functionality.  Add include guard.
10693         * gdbserver/utils.c (fatal): Add missing ``const''.
10694         (warning): New function.
10695
10696         * regformats/regdat.sh: Include "regcache.h" in generated files.
10697         Provide init_registers () function.
10698         * regformats/regdef.h: Add prototype for set_register_cache ().
10699         Add include guard.
10700
10701         * gdbserver/linux-arm-low.c: New file.
10702         * gdbserver/linux-i386-low.c: New file.
10703         * gdbserver/linux-ia64-low.c: New file.
10704         * gdbserver/linux-m68k-low.c: New file.
10705         * gdbserver/linux-mips-low.c: New file.
10706         * gdbserver/linux-ppc-low.c: New file.
10707         * gdbserver/linux-sh-low.c: New file.
10708
10709         * gdbserver/regcache.c: New file.
10710         * gdbserver/regcache.h: New file.
10711
10712         * gdbserver/low-linux.c: Removed obsolete file.
10713
10714 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10715
10716         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10717         * config/i386/linux.mt: Likewise.
10718         * config/ia64/linux.mt: Likewise.
10719         * config/m68k/linux.mh: Likewise.
10720         * config/powerpc/linux.mh: Likewise.
10721         * config/mips/linux.mt: Likewise.
10722
10723         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10724
10725         * config/i386/i386lynx.mh: Mark gdbserver variables
10726         as (currently) obsolete for this target.
10727         * config/i386/nbsd.mt: Likewise.
10728         * config/i386/nbsdelf.mt: Likewise.
10729         * config/m32r/m32r.mt: Likewise.
10730         * config/m68k/m68klynx.mh: Likewise.
10731         * config/m68k/nbsd.mt: Likewise.
10732         * config/m68k/sun3os4.mh: Likewise.
10733         * config/mips/vr5000.mt: Likewise.
10734         * config/ns32k/nbsd.mt: Likewise.
10735         * config/pa/hppabsd.mh: Likewise.
10736         * config/pa/hppaosf.mh: Likewise.
10737         * config/powerpc/nbsd.mt: Likewise.
10738         * config/rs6000/rs6000lynx.mh: Likewise.
10739         * config/s390/s390.mt: Likewise.
10740         * config/s390/s390x.mt: Likewise.
10741         * config/sparc/sparclynx.mh: Likewise.
10742         * config/sparc/sun4os4.mh: Likewise.
10743         * config/i386/x86-64linux.mt: Likewise.
10744         * config/sparc/linux.mh: Likewise.
10745
10746 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10747
10748         * configure.tgt: Configure gdbserver only for known working
10749         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10750         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10751         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10752         * configure: Regenerated.
10753
10754 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10755
10756         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10757
10758         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10759         (default_gcore_mach): Just return 0, work around a problem in bfd.
10760         (default_gcore_target): OK to return NULL if exec_bfd is null.
10761         (make_mem_sec): Use a cast, avoid a warning.
10762
10763         * procfs.c (find_memory_regions_callback): Use a cast instead of
10764         calling host_pointer_to_address (which complains if
10765         sizeof (host pointer) != sizeof (target pointer)).
10766         (procfs_make_note_section): Avoid overflow in psargs string.
10767
10768         * procfs.c (procfs_make_note_section): Make the default
10769         implementation return an error.
10770
10771 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10772
10773         * procfs.c (procfs_make_note_section): Provide a default definition
10774         (for alpha-dec-osf4.0f). Fix typos.
10775
10776 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10777
10778         * linux-proc.c: Add include of regcache.h.
10779         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10780
10781 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10782
10783         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10784         * memattr.c (create_mem_region): Disallow useless empty region.
10785         Regions are half-open intervals, so allow [A..B) [B..C) as
10786         non-overlapping.
10787
10788 2002-02-13  Michael Chastain <mec@shout.net>
10789
10790         * defs.h: Kill CONST_PTR.
10791         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10792         * c-lang.c (c_builtin_types): Likewise.
10793         * ch-lang.c (ch_builtin_types): Likewise.
10794         * f-lang.c (f_builtin_types): Likewise.
10795         * language.c (unknown_builtin_types): Likewise.
10796         * m2-lang.c (m2_builtin_types): Likewise.
10797         * p-lang.c (pascal_builtin_types): Likewise.
10798         * scm-lang.c (c_builtin_types): Likewise.
10799
10800 2002-02-13  Keith Seitz  <keiths@redhat.com>
10801
10802         * arm-tdep.h (arm_get_next_pc): Add declaration.
10803
10804 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10805
10806         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10807         with other related struct-returning functions.
10808         (arm_extract_struct_value_address): New function.
10809         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10810         initialize float_format, double_format and long_double_format as
10811         appropriate to the endianness of the target.
10812         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10813         (arm_use_struct_convention): Delete declaration.
10814         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10815
10816 2002-02-13  Keith Seitz  <keiths@redhat.com>
10817
10818         * defs.h (core_addr_to_string_nz): New function.
10819
10820 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10821
10822         Apply missing bits of 2002-01-15 patch.
10823         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10824         (fill_fpregset): Use i387_fill_fsave.
10825
10826 2002-02-12  Keith Seitz  <keiths@redhat.com>
10827
10828         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10829         (core_addr_to_string_nz): New function.
10830
10831 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10832
10833         * arm-linux-nat.c: Really include arm-tdep.h.
10834         * config/arm/tm-linux.h (struct type, struct value): Declare.
10835
10836 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10837
10838         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10839         (gcore section): Ifdef for Solaris and Unixware only.
10840         (procfs_do_thread_registers): Unixware needs one lwpstatus
10841         per thread (not one prstatus or pstatus).
10842         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10843         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10844         once before iterating over threads.
10845
10846 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10847
10848         * arm-tdep.h: New file.
10849         * arm-tdep.c: Include arm-tdep.h.
10850         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10851         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10852         (arm_print_float_info, arm_register_type, convert_to_extended)
10853         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10854         (arm_extract_return_value, arm_register_name): Make static.
10855         (arm_software_single_step): Similarly.  Fix types in declaration.
10856         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10857         (arm_store_return_value, arm_store_struct_return): New functions.
10858         (arm_gdbarch_init): Register the above functions.  Also register
10859         call_dummy_start_offset, sizeof_call_dummy_words,
10860         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10861         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10862         max_register_virtual_size, register_size.  Set up
10863         prologue_cache.saved_regs here, rather than ...
10864         (_initialize_arm_tdep): ... here.
10865         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10866         declarations.
10867         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10868         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10869         (arm_print_float_info, arm_register_type, convert_to_extended)
10870         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10871         (arm_extract_return_value, arm_register_name): Delete declarations.
10872         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10873         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10874         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10875         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10876         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10877         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10878         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10879         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10880         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10881         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10882         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10883         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10884         interface.
10885         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10886         * remote-rdi.c remote-rdp.c: Likewise.
10887         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10888         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10889         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10890         definition.
10891
10892         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10893         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10894         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10895         from non-ARM_ prefixed definitions.
10896         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10897         all uses of above.
10898         * remote-rdi.c remote-rdp.c: Likewise.
10899         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10900
10901 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10902
10903         * arm-tdep.c (arm_frameless_function_invocation)
10904         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10905         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10906         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10907         (arm_pop_frame, arm_get_next_pc): Make static.
10908         (arm_gdbarch_init): Register above in gdbarch structure.
10909         (arm_read_fp): Renamed from arm_target_read_fp.
10910         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10911         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10912         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10913         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10914         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10915         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10916         (arm_pc_is_thumb_dummy): Delete declarations.
10917         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10918         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10919         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10920         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10921
10922 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10923
10924         * symtab.c (compare_search_syms): New function.
10925         (sort_search_symbols): New function.
10926         (search_symbols): Sort symbols after searching rather than
10927         before.
10928
10929 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10930
10931         * NEWS: Linux -> GNU/Linux.
10932
10933 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10934
10935         * gdbarch.sh: For for level one methods, disallow a definition
10936         when partially multi-arched.  Add comments explaining rationale.
10937         * gdbarch.h: Re-generate.
10938
10939 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10940
10941         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10942         multi-arch partial.
10943
10944 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10945
10946         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10947         field.  Use diff -u.
10948         * gdbarch.c: Re-generate.
10949
10950 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10951
10952         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10953         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10954         partial.
10955
10956 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10957
10958         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10959         multi-arch partial.
10960         (PUSH_ARGUMENTS): Switch to using predefault.
10961         * gdbarch.c: Regenerate.
10962
10963 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10964
10965         * valops.c (PUSH_ARGUMENTS): Delete definition.
10966         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10967         partial.  Default to default_push_arguments.
10968         * gdbarch.h, gdbarch.c: Regenerate.
10969
10970 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10971
10972         * defs.h (throw_exception): Rename return_to_top_level.  Update
10973         comments.
10974         * utils.c (error_stream, internal_verror, quit): Ditto.
10975         * top.c (throw_exception, catcher): Ditto.
10976         * sparclet-rom.c (sparclet_load): Ditto.
10977         * remote.c (interrupt_query, minitelnet): Ditto.
10978         * remote-sds.c (interrupt_query): Ditto.
10979         * remote-mips.c (mips_error, mips_kill): Ditto.
10980         * ocd.c (interrupt_query): Ditto.
10981         * monitor.c (monitor_interrupt_query): Ditto.
10982         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10983         * target.h: Update comment.
10984
10985         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10986
10987 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10988
10989         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10990         default_double_format.
10991         * gdbarch.h, gdbarch.c: Re-generate.
10992         * findvar.c (floatformat_unknown): Delete variable definition.
10993         * doublest.h (floatformat_unknown): Delete variable declaration.
10994
10995 2002-02-09  Jim Blandy  <jimb@redhat.com>
10996
10997         * stabsread.c (read_type): Add code to parse Sun's syntax for
10998         prototyped function types.
10999
11000 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
11001
11002         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11003         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11004
11005 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11006
11007         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11008         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
11009         now _initialize_xcoffsolib gets called again and overrides the
11010         commands from solib.c in a native configuration.
11011
11012 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
11013
11014         * doublest.c (store_typed_floating): Don't try to return a value.
11015         Fixes PR gdb/290.
11016
11017 2002-02-08  Jim Blandy  <jimb@redhat.com>
11018
11019         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11020         is prototyped and has no arguments, print its argument list as
11021         `(void)'.
11022
11023 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11024
11025         * MAINTAINERS (write-after-approval): Add myself.
11026         (paper-trail): I've escaped!
11027
11028 2002-02-08  Christopher Faylor  <cgf@redhat.com>
11029
11030         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11031         changes.
11032         (_initialize_check_for_gdb_ini): Ditto.
11033
11034 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
11035
11036         * win32-nat.c (cygwin_pid_to_str): Fix typo.
11037         xaprintf -> xasprintf.
11038
11039 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
11040
11041         * win32-nat.c: Remove use of printf and sprintf functions.
11042
11043 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
11044
11045         * arm-tdep.c (arm_frame_chain_valid): Make static.
11046         (arm_push_arguments): Likewise.
11047         (arm_gdbarch_init): New function.
11048         (_initialize_arm_tdep): Call it.
11049         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11050         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11051         (FRAME_CHAIN_VALID): Delete.
11052         (arm_frame_chain_valid): Delete declaration.
11053         (PUSH_ARGUMENTS): Delete.
11054         (arm_push_arguments): Delete declaration.
11055         (CALL_DUMMY_P): Delete.
11056
11057 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
11058             Corinna Vinschen  <vinschen@redhat.com>
11059
11060         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11061         on builtin float types.
11062
11063 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
11064
11065         * utils.c: Include <curses.h> before "bfd.h".
11066         * tui/tui-hooks.c: Likewise.
11067         * tui/tui.c: Likewise.
11068         * tui/tuiCommand.c: Likewise.
11069         * tui/tuiData.c: Likewise.
11070         * tui/tuiDataWin.c: Likewise.
11071         * tui/tuiDisassem.c: Likewise.
11072         * tui/tuiGeneralWin.c: Likewise.
11073         * tui/tuiIO.c: Likewise.
11074         * tui/tuiLayout.c: Likewise.
11075         * tui/tuiRegs.c: Likewise.
11076         * tui/tuiSource.c: Likewise.
11077         * tui/tuiSourceWin.c: Likewise.
11078         * tui/tuiStack.c: Likewise.
11079         * tui/tuiWin.c: Likewise.
11080
11081 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
11082
11083         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11084         to include space for pseudoregs as well. Update loops accordingly.
11085         (sh_fp_frame_init_saved_regs): Ditto.
11086         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11087
11088 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11089
11090         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11091         Add Richard Earnshaw to Arm maintainers.
11092
11093 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11094
11095         * defs.h (warning_begin): Delete declaration.
11096
11097         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11098         Delete macro.
11099
11100 2002-02-07  Michael Snyder  <msnyder@redhat.com>
11101
11102         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11103         Logic bug, remove misplaced else.
11104
11105 2002-02-07  Klee Dienes  <klee@apple.com>
11106
11107         * fork-inferior.c (fork_inferior): Add '!' to the list of
11108         characters that need to be quoted when building a string for the
11109         shell.  Quote '!' specifically with a backslash, since CSH chokes
11110         when trying to evaluate "str!str".
11111
11112 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11113
11114         * rdi-share/host.h: Only provide a typedef for bool if it is not
11115         defined.
11116
11117 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11118
11119         * breakpoint.h (enum bptype): Add new overlay event bp type.
11120         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11121
11122         * breakpoint.c (create_internal_breakpoint): New function.
11123         (internal_breakpoint_number): Moved into create_internal_breakpoint.
11124         (create_longjmp_breakpoint): Use create_internal_breakpoint.
11125         (create_thread_event_breakpoint): Ditto.
11126         (create_solib_event_breakpoint): Ditto.
11127         (create_overlay_event_breakpoint): New function.
11128         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11129         (update_breakpoints_after_exec): Delete and re-initialize
11130         overlay event breakpoints after an exec.  Add FIXME comment
11131         about longjmp breakpoint.
11132         (print_it_typical): Ignore overlay event breakpoints.
11133         (print_one_breakpoint): Ditto.
11134         (mention): Ditto.
11135         (bpstat_what): Do not stop for overlay event breakpoints.
11136         (delete_breakpoint): Don't delete overlay event breakpoints.
11137         (breakpoint_re_set_one): Delete the overlay event breakpoint.
11138         (breakpoint_re_set): Re-create overlay event breakpoint.
11139
11140         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11141         (overlay_manual_command): Disable overlay breakpoints.
11142         (overlay_off_command): Disable overlay breakpoints.
11143
11144 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11145
11146         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11147         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11148         to here from config/tm-arm.h.
11149         (coff_sym_is_thumb): Make static.
11150         (arm_elf_make_msymbol_special): New function.
11151         (arm_coff_make_msymbol_special): New function.
11152         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11153         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11154         (coff_sym_is_thumb): Delete declaration.
11155         (arm_elf_make_msymbol_special): Declare.
11156         (arm_coff_make_msymbol_special): Declare.
11157         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11158         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11159
11160 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11161
11162         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11163
11164 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11165
11166         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11167         * gdbarch.c gdbarch.h: Regenerate.
11168         * arch-utils.c (default_print_float_info): New function.
11169         * arch-utils.h (default_print_float_info): Prototype it.
11170         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11171         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11172         (PRINT_FLOAT_INFO): Document it.
11173
11174         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11175         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11176         (PRINT_FLOAT_INFO): Define.
11177
11178 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11179
11180         * win32-nat.c (_initialize_check_for_gdb_ini):
11181         Add typecast to sprintf argument to suppress a warning.
11182
11183 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
11184
11185         * win32-nat.c (last_sig): Changed type of variable to target_signal,
11186         to allow easier handling of pass state.
11187         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11188         that gives exception name and address.
11189         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11190         and set last_sig value to ourstatus->value.sig. Some missing
11191         exceptions added.
11192         (child_continue): Correctly report continue_status.
11193         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11194         TARGET_SIGNAL_0 (new default value).
11195         (child_resume): consider sig argument passed to decide if
11196         the exception should be passed to debuggee or not.
11197
11198 2002-02-05  Michael Snyder  <msnyder@redhat.com>
11199
11200         * regcache.c (fetch_register): Call target_fetch_register
11201         only if we don't call FETCH_PSEUDO_REGISTER.
11202         (store_register): Call target_store_register only if we
11203         don't call STORE_PSEUDO_REGISTER.
11204
11205 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
11206
11207         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11208         ELF_MAKE_MSYMBOL_SPECIAL.
11209         * gdbarch.c, gdbarch.h: Regenerate.
11210         * arch-utils.c (default_make_msymbol_special): New function.
11211         * arch-utils.h (default_make_msymbol_special): Export.
11212         * elfread.c (elf_symtab_read): Compile use of
11213         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11214         multiarched.
11215         * coffread.c (coff_symtab_read): Ditto, for
11216         COFF_MAKE_MSYMBOL_SPECIAL.
11217
11218 2002-02-05  Jim Blandy  <jimb@redhat.com>
11219
11220         * solib-svr4.c (svr4_truncate_ptr): New function.
11221         (svr4_relocate_section_addresses): Do the address arithmetic with
11222         the appropriate truncation for target addresses, even when
11223         CORE_ADDR is larger than a target address.
11224
11225 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11226
11227         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11228         to (int *).
11229
11230 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11231
11232         * gdbserver/linux-low.c (kill_inferior): Remove commented out
11233         code.
11234
11235 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11236
11237         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11238
11239 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11240
11241         * gdbserver/linux-low.c: Remove unused include files.
11242
11243 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11244
11245         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11246         (read_inferior_memory): Use it.
11247         (write_inferior_memory): Likewise.
11248
11249 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11250
11251         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11252         grubbing through sys_errlist.
11253
11254 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11255
11256         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11257
11258 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11259         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11260
11261 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
11262
11263         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11264         (do_sfunc, set_cmd_sfunc): New functions.
11265
11266         * command.h (struct cmd_list_element): Add field func.
11267         * cli/cli-decode.h (struct cmd_list_element): Ditto.
11268         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11269         * cli/cli-decode.h: Ditto.
11270
11271         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11272         (help_all, help_cmd_list): Ditto.
11273         (find_cmd, complete_on_cmdlist): Ditto.
11274         * top.c (execute_command): Ditto.
11275
11276         * cli/cli-setshow.c (do_setshow_command): Call func instead of
11277         function.sfunc.
11278
11279         * infcmd.c (notice_args_read): Fix function signature.
11280
11281         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11282         * cli/cli-decode.c (add_set_cmd): Ditto.
11283         * utils.c (initialize_utils): Ditto.
11284         * maint.c (_initialize_maint_cmds): Ditto.
11285         * infrun.c (_initialize_infrun): Ditto.
11286         * demangle.c (_initialize_demangler): Ditto.
11287         * remote.c (add_packet_config_cmd): Ditto.
11288         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11289         * cris-tdep.c (_initialize_cris_tdep): Ditto.
11290         * proc-api.c (_initialize_proc_api): Ditto.
11291         * kod.c (_initialize_kod): Ditto.
11292         * valprint.c (_initialize_valprint): Ditto.
11293         * top.c (init_main): Ditto.
11294         * infcmd.c (_initialize_infcmd): Ditto.
11295         * corefile.c (_initialize_core): Ditto.
11296         * arm-tdep.c (_initialize_arm_tdep): Ditto.
11297         * arch-utils.c (initialize_current_architecture): Ditto.
11298         (_initialize_gdbarch_utils): Ditto.
11299         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11300
11301         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11302         * wince.c (_initialize_inftarg): Ditto.
11303         * symfile.c (_initialize_symfile): Ditto.
11304         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11305         * language.c (_initialize_language): Ditto.
11306         * arc-tdep.c (_initialize_arc_tdep): Ditto.
11307
11308 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11309
11310         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11311
11312 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11313
11314         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11315         Add rules for building the register data files.
11316
11317 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11318
11319         * regformats/regdat.sh: Add braces to the definition of
11320         expedite_regs_${arch}.
11321
11322 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11323
11324         * regformats/regdef.h (struct reg): Add comment describing the
11325         requirements for offset and size fields.
11326
11327 2002-02-04  Andreas Schwab  <schwab@suse.de>
11328
11329         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11330         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11331
11332 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
11333
11334         * gdbarch.sh (copyright): Update years in generated header.
11335         (SMASH_TEXT_ADDRESS): Add rule.
11336         * gdbarch.h, gdbarch.c: Re-generate.
11337         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11338         * dbxread.c: Likewise.
11339         * dwarfread.c: Likewise.
11340         * elfread.c: Likewise.
11341         * somread.c: Likewise.
11342
11343         * arm-tdep.c (arm_smash_text_address): New function.
11344         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11345
11346 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11347
11348         Add support for hardware watchpoints on win32 native.
11349         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11350         CONTEXT_DEBUG_REGISTERS.
11351         (dr variable): New variable. Static array containing a local copy
11352         of debug registers.
11353         (debug_registers_changed): New variable.  Reflects when debug registers
11354         are changed and need to be written to inferior.
11355         (debug_registers_used): New variable. Reflects when any debug register
11356         was set, used when new threads are created.
11357         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11358         i386-nat code.
11359         (thread_rec): Set dr array if id is the thread of current_event .
11360         (child_continue, child_resume): Change the debug registers for all
11361         threads if debug_registers_changed.
11362         (child_add_thread): Change the debug registers if debug_registers_used.
11363         * config/i386/cygwin.mh: Add use of i386-nat.o file.
11364         Link nm.h to new nm-cygwin.h file.
11365         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11366         of hardware registers.
11367
11368 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
11369
11370         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11371         Restore behavour broken by 2002-01-20 Andrew Cagney
11372         <ac131313@redhat.com> IEEE_FLOAT removal.
11373
11374 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11375
11376         * c-valprint.c (c_val_print): Pass a proper valaddr to
11377         cp_print_class_method.
11378         * valops.c (search_struct_method): If there is only one method
11379         and args is NULL, return that method.
11380
11381 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11382
11383         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11384         accessing tag_name directly.
11385
11386 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11387
11388         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11389         of accessing tag_name directly.
11390
11391 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11392
11393         PR gdb/280
11394         * gdbtypes.c (replace_type): New function.
11395         * gdbtypes.h (replace_type): Add prototype.
11396         * stabsread.c (read_type): Use replace_type.
11397
11398 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
11399
11400         * Makefile.in (memattr.o): Add missing dependencies rule.
11401
11402 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11403
11404         * breakpoint.c (break_at_finish_command): Really export.
11405         (break_at_finish_at_depth_command): Ditto.
11406         (tbreak_at_finish_command): Ditto.
11407         * hppa-tdep.c: Include completer.h.
11408         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11409         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11410
11411 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11412
11413         * utils.c (do_write): New function.
11414         (error_stream): Rewrite combining the code from error_begin and
11415         verror.
11416         (verror): Rewrite using error_stream.
11417         (error_begin): Delete function.
11418
11419 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11420
11421         * utils.c (error_begin): Make static.
11422         * defs.h (error_begin): Delete declaration.
11423
11424         * linespec.c (cplusplus_error): Replace cplusplus_hint.
11425         (decode_line_1): Use cplusplus_error instead of error_begin,
11426         cplusplus_hint and return_to_top_level.
11427         * coffread.c (coff_symfile_read): Use error instead of error_begin
11428         and return_to_top_level.
11429         * infrun.c (default_skip_permanent_breakpoint): Ditto.
11430
11431 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11432
11433         * language.h (type_error, range_error): Make string parameter
11434         constant.
11435         * language.c (warning_pre_print): Delete extern declaration.
11436         * dwarfread.c (warning_pre_print): Ditto.
11437         * language.c (type_error, range_error): Rewrite to use verror and
11438         vwarning instead of warning_begin.
11439
11440 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11441
11442         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11443         (set_ignore_count): Move misplaced comment back where it belongs.
11444
11445 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11446
11447         * command.h (NO_FUNCTION): Delete macro.
11448         * cli/cli-decode.h (NO_FUNCTION): Ditto.
11449         * top.c (execute_command): Replace NO_FUNCTION with NULL.
11450         * tracepoint.c (_initialize_tracepoint): Ditto.
11451         * cli/cli-decode.c (add_set_cmd): Ditto.
11452         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11453
11454 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11455
11456         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11457         Update ``this'' pointer when calling virtual functions.
11458
11459 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11460
11461         * breakpoint.c (create_temp_exception_breakpoint): Delete.
11462         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11463
11464 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11465
11466         * regformats/reg-arm.dat: New file.
11467         * regformats/reg-i386.dat: New file.
11468         * regformats/reg-ia64.dat: New file.
11469         * regformats/reg-m68k.dat: New file.
11470         * regformats/reg-mips.dat: New file.
11471         * regformats/reg-ppc.dat: New file.
11472         * regformats/reg-sh.dat: New file.
11473         * regformats/regdef.h: New file.
11474         * regformats/regdat.sh: New file.
11475
11476 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
11477
11478         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11479         (arm_frame_args_address, arm_frame_locals_address): New functions.
11480         (arm_frame_num_args): New function.
11481         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11482         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11483         (FRMA_NUM_ARGS): Call arm_frame_num_args.
11484
11485 2002-01-31  Michael Snyder  <msnyder@redhat.com>
11486
11487         * breakpoint.c (break_at_finish_command): Export.
11488         (break_at_finish_at_depth_command): Export.
11489         (tbreak_at_finish_command): Export.
11490         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11491         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11492         "txbreak" commands, which are HPPA specific.
11493
11494         * printcmd.c (disassemble_command): Remove an ancient
11495         artifact of an old merge.
11496
11497         * symfile.h (enum overlay_debugging_state):
11498         Define enum constant values for overlay mode.
11499         * symfile.c (overlay_debugging): Use enums instead of literals.
11500         (overlay_is_mapped, overlay_auto_command,
11501         overlay_manual_command): Ditto.
11502
11503         * breakpoint.c (insert_breakpoints, remove_breakpoint,
11504         breakpoint_here_p, breakpoint_inserted_here_p,
11505         breakpoint_thread_match, bpstat_stop_status,
11506         describe_other_breakpoints, check_duplicates, clear_command):
11507         Coding standard fixes.
11508
11509         * target.c (target_xfer_memory): Add spaces, coding standard.
11510         (do_xfer_memory): Add missing line to trust-readonly
11511         code: check bfd SEC_READONLY flag for section.
11512
11513 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11514
11515         * PROBLEMS: Fix typo, 5.1->5.1.1.
11516
11517 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11518
11519         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11520         data symbols, since we search based on textlow and texthigh.
11521         (find_pc_sect_symtab): Likewise.
11522
11523 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11524
11525         * defs.h (vwarning): Declare.
11526         * utils.c (vwarning): New function.
11527         (warning): Call vwarning.
11528         (warning_begin): Delete function.
11529
11530         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11531         the warning message.
11532         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11533         warning_begin.
11534
11535 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11536
11537         * NEWS: Mention "set trust-readonly-sections" command.
11538         Mention generate-core-file command.
11539
11540 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11541
11542         * target.c: New command, "set trust-readonly-sections on".
11543         (do_xfer_memory): Honor the suggestion to trust readonly sections
11544         by reading them from the object file instead of from the target.
11545         (initialize_targets): Register command "set trust-readonly-sections".
11546
11547 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11548
11549         * parse.c (target_map_name_to_register): Simplify, search regs and
11550         pseudo-regs using a single loop.
11551
11552 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11553
11554         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11555
11556 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11557
11558         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11559         * config/i386/i386v42mp.mh: Add i387-nat.o .
11560         * i386v4-nat.c: Include i387-nat.h.
11561         (supply_fpregset): Use i387_supply_fsave.
11562         (fill_fpregset): Use i387_fill_fsave.
11563
11564 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11565
11566         * arm-tdep.c (arm_call_dummy_words): Define.
11567         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11568         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11569         (CALL_DUMMY_WORDS): Define.
11570         (arm_call_dummy_words): Declare.
11571         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11572         (arm_linux_call_dummy_words): Declare.
11573
11574 2002-01-30  Andreas Schwab  <schwab@suse.de>
11575
11576         * m68klinux-nat.c: Fix last change to use regcache_collect
11577         instead of referencing registers[] directly.
11578
11579 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11580
11581         * parse.c (target_map_name_to_register): Delete code wrapped in
11582         #ifdef REGISTER_NAME_ALIAS_HOOK.
11583
11584 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11585
11586         * regcache.c (legacy_read_register_gen): Need to be able to
11587         read pseudo-register as well as real register.
11588         (legacy_write_register_gen): Ditto.
11589
11590 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11591
11592         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11593         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11594         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11595         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11596         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11597         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11598         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11599         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11600         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11601         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11602         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11603         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11604         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11605         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11606         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11607         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11608         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11609         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11610         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11611         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11612
11613 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11614
11615         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11616         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11617         (initialize_current_architecture): Update target_byte_order using
11618         information from BFD.
11619         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11620         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11621
11622 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11623
11624         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11625         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11626
11627         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11628         #ifdef INVALID_FLOAT.
11629         * infcmd.c (do_registers_info): Ditto.
11630         * values.c (unpack_double): Ditto.  Add comment.
11631
11632         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11633         already commented out.
11634
11635 2002-01-26  Andreas Schwab  <schwab@suse.de>
11636
11637         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11638         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11639         registers and add support for PTRACE_GETREGS.
11640
11641 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11642
11643         GDB 5.1.1 released from 5.1 branch.
11644         * NEWS: Add 5.1.1 news.
11645         * README: Sync with 5.1 branch.
11646
11647 2002-01-23  Fred Fish  <fnf@redhat.com>
11648
11649         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11650         stabstring on initial malloc.  Reallocing will copy it for us,
11651         if necessary.
11652
11653 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11654
11655         * Makefile.in (hpread_h): Delete.
11656         (HFILES_NO_SRCDIR): Remove hpread.h.
11657         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11658         (hpread.o): Update dependencies.
11659         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11660
11661         * hp-psymtab-read.c: Remove file.
11662         * hp-symtab-read.c: Remove file.
11663         * hpread.h: Remove file.
11664
11665         * hpread.c: Merge all contents of hp-psymtab-read.c,
11666         hp-symtab-read.c and hpread.h into this file, as it was prior to
11667         January 1999.
11668
11669         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11670         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11671         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11672         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11673
11674 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11675
11676         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11677         fill_gregset): Call gdbarch_tdep() just once, assign result to
11678         variable and use that, instead of calling the function several
11679         times.
11680
11681 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11682
11683         * configure.host: Accept sparcv9 as alias for sparc64.
11684         * configure.tgt: Likewise.
11685
11686 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11687
11688         * solib-aix5.c (build_so_list_from_mapfile)
11689         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11690         arguments is not reversed.
11691         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11692         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11693
11694 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11695
11696         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11697         modified version of obsolete sh_fetch_pseudo_register.
11698         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11699         (sh4_register_read): New function.
11700         (sh_pseudo_register_write): New function. Renamed and modified
11701         version of obsolete sh_store_pseudo_register.
11702         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11703         (sh4_register_write): New function.
11704         (sh_gdbarch_init): Remove setting of gdbarch function
11705         fetch_pseudo_register and store_pseudo_register. Remove setting of
11706         register_convert_to_raw, register_convert_to_virtual,
11707         register_convertible.
11708         (sh_sh4_register_convertible): Delete. No longer needed. All is
11709         taken care by architecture specific functions
11710         register_read/register_write.
11711         (sh_sh4_register_convert_to_virtual): Make static.
11712         (sh_sh4_register_convert_to_raw): Ditto.
11713
11714 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11715
11716         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11717         (floatformat_is_nan, floatformat_mantissa): Ditto.
11718
11719         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11720         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11721         builtin_type_ieee_double_little,
11722         builtin_type_ieee_double_littlebyte_bigword,
11723         builtin_type_m68881_ext, builtin_type_i960_ext,
11724         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11725         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11726         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11727         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11728
11729 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11730
11731         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11732         parameter.  Set frameless flag if it exists and depended of
11733         whether the scanned function is frameless or not.
11734         (xstormy16_skip_prologue): If function is frameless, return
11735         result of xstormy16_scan_prologue().
11736         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11737         call.
11738
11739 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11740
11741         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11742         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11743         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11744         sh_sh4_register_byte, sh_sh4_register_raw_size,
11745         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11746         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11747         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11748         sh_store_pseudo_register, sh_do_pseudo_register): Call
11749         gdbarch_tdep() just once, assign result to variable and use that,
11750         instead of calling the function several times.
11751
11752 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11753
11754         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11755         macros instead of LAST_FPU_CTRL_REGNUM.
11756         (store_register): Likewise.
11757
11758 2002-01-21  Jim Blandy  <jimb@redhat.com>
11759
11760         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11761         is up-to-date before running the program, not just when a program
11762         exits.
11763
11764 2002-01-21  Fred Fish  <fnf@redhat.com>
11765
11766         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11767         when we have found all instructions we are looking for.
11768
11769 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11770
11771         * arm-tdep.c (arm_register_name): New function.
11772         (arm_registers_names): Make static.
11773         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11774         (arm_register_name): Declare.
11775         (REGISTER_NAME): Use it.
11776
11777 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11778             Kevin Buettner  <kevinb@redhat.com>
11779
11780         Convert arm targets to new FRAME interface.
11781         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11782         (arm_frame_find_save_regs): Delete.
11783         (arm_frame_init_saved_regs): New.
11784         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11785         Allocate extra_info as required.  Convert all uses of fsr.regs
11786         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11787         to use extra_info.
11788         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11789         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11790         (check_prologue_cache, save_prologue_cache): Likewise.
11791         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11792         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11793         (FRAME_FIND_SAVED_REGS): Delete.
11794         (arm_frame_find_saved_regs): Delete prototype.
11795         (arm_frame_init_saved_regs): New prototype.
11796         (FRAME_INIT_SAVED_REGS): Define.
11797
11798 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11799
11800         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11801
11802 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11803
11804         From Jeff Law <law@redhat.com>:
11805         * infttrace.c: Include <sys/pstat.h>.
11806         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11807         exec file if the ttrace equivalent fails.
11808
11809 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11810
11811         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11812         (closeLogFile): Ditto.
11813
11814 2002-01-20  Michael Chastain  <mec@shout.net>
11815
11816         * top.c (print_gdb_version): Bump copyright year to 2002.
11817
11818 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11819
11820         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11821         Zannoni and Eli Zaretskii.
11822
11823 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11824
11825         * buildsym.c: Update copyright years.
11826         * c-typeprint.c: Likewise.
11827         * dwarf2read.c: Likewise.
11828         * f-typeprint.c: Likewise.
11829         * gdbtypes.c: Likewise.
11830         * gdbtypes.h: Likewise.
11831         * hp-symtab-read.c: Likewise.
11832         * hpread.c: Likewise.
11833         * mdebugread.c: Likewise.
11834         * p-typeprint.c: Likewise.
11835
11836 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11837
11838         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11839         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11840         byte-order selectable.
11841         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11842         * arch-utils.c: Ditto.
11843         (set_endian): Ditto.
11844         (set_endian_from_file): Ditto.
11845         * gdbserver/low-sim.c (create_inferior): Ditto.
11846         * gdbarch.sh: Ditto.
11847         * gdbarch.h: Re-generate.
11848         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11849         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11850         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11851         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11852         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11853         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11854         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11855         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11856         macro definition.
11857         * config/mips/tm-wince.h: Remove #undef of macro
11858         TARGET_BYTE_ORDER_SELECTABLE.
11859         * config/sh/tm-wince.h: Ditto.
11860
11861 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11862
11863         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11864         member function fields.  Add accessor macro
11865         TYPE_FN_FIELD_ARTIFICIAL.
11866         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11867         * c-typeprint.c (c_type_print_base): Skip artificial member
11868         functions.
11869
11870 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11871
11872         * f-typeprint.c: Delete unused function f_type_print_args.
11873         * p-typeprint.c: Delete unused function pascal_type_print_args.
11874
11875 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11876
11877         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11878         comment.  Add ``artificial'' to ``union field_location''.
11879
11880         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11881
11882         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11883         * mdebugread.c (parse_symbol): Likewise.
11884         * stabsread.c (define_symbol): Likewise.
11885         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11886         initializing TYPE_FIELD_BITPOS to n (obsolete).
11887         (hpread_doc_function_type): Likewise.
11888         * hpread.c (hpread_function_type): Likewise.
11889
11890 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11891
11892         * configure.in (host_makefile_frag): Only require a host makefile
11893         fragment when a native build.
11894         * configure: Re-generate.
11895
11896 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11897
11898         * doublest.h (floatformat_from_type): Declare.
11899         * doublest.c (floatformat_from_type): New function.
11900         (convert_typed_floating): Use.
11901
11902         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11903         call to function floatformat_from_type.
11904
11905         * gdbarch.sh (IEEE_FLOAT): Delete.
11906         * gdbarch.h, gdbarch.c: Re-generate.
11907         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11908         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11909         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11910         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11911         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11912         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11913         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11914         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11915         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11916         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11917         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11918         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11919
11920         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11921         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11922         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11923         * sh-tdep.c (sh_gdbarch_init): Ditto.
11924         * mips-tdep.c (mips_gdbarch_init): Ditto.
11925         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11926         * cris-tdep.c (cris_gdbarch_init): Ditto.
11927
11928 2002-01-20  Jiri Smid  <smid@suse.cz>
11929
11930         * configure.host, configure.tgt: Support x86-64.
11931         * NEWS: Note new target x86-64.
11932
11933         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11934         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11935         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11936         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11937         x86-64-linux-nat.o): Fix dependencies.
11938
11939 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11940
11941         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11942         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11943         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11944         * config/sparc/xm-sun4os4.h: Delete file.
11945         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11946
11947 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11948
11949         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11950         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11951         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11952         * config/i386/i386lynx.mh (XM_FILE): Delete.
11953         * config/rs6000/xm-rs6000ly.h: Delete file.
11954         * config/sparc/xm-sparclynx.h: Delete file.
11955         * config/m68k/xm-m68klynx.h: Delete file.
11956         * config/i386/xm-i386lynx.h: Delete file.
11957         * config/xm-lynx.h: Delete file.
11958         * config/djgpp/fnchange.lst: Update.
11959
11960 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11961
11962         * alpha-tdep.c (alpha_register_byte): New function.
11963         (alpha_register_raw_size): Ditto.
11964         (alpha_register_virtual_size): Ditto.
11965         (alpha_skip_prologue_internal): Renamed from
11966         alpha_skip_prologue.
11967         (alpha_skip_prologue): New version that calls
11968         alpha_skip_prologue_internal.
11969         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11970         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11971         second argument from alpha_skip_prologue.
11972         (REGISTER_BYTE): Use alpha_register_byte.
11973         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11974         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11975         (FRAMELESS_FUNCTION_INVOCATION): Use
11976         generic_frameless_function_invocation_not.
11977         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11978         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11979
11980 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11981
11982         * config/mips/xm-news-mips.h: Delete file.
11983         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11984
11985         * config/m88k/xm-m88k.h: Delete file.
11986         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11987         * config/m88k/xm-delta88v4.h: Ditto.
11988         * config/m88k/xm-delta88.h: Ditto.
11989
11990         * config/alpha/xm-fbsd.h: Delete file.
11991         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11992
11993         * config/sparc/xm-sparc.h: Delete file.
11994         * Makefile.in (xm-sun4os4.h): Delete dependency.
11995         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11996         * config/sparc/xm-sun4os4.h: Ditto.
11997         * config/sparc/xm-linux.h: Ditto.
11998
11999         * config/i386/xm-windows.h: Delete file.
12000
12001 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
12002
12003         * utils.c: Include <sys/param.h> for MAXPATHLEN.
12004         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12005
12006 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
12007
12008         * alpha-tdep.c (alpha_call_dummy_words): New.
12009         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12010         (CALL_DUMMY_P): Define.
12011         (CALL_DUMMY_WORDS): Define.
12012         (SIZEOF_CALL_DUMMY_WORDS): Define.
12013
12014 2002-01-19  Per Bothner  <per@bothner.com>
12015
12016         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
12017         isn't NULL, which can happen with some gcj-3.x-produced code.
12018
12019 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
12020
12021         * alpha-tdep.c (alpha_register_virtual_type): New function.
12022         (alpha_init_frame_pc_first): Ditto.
12023         (alpha_fix_call_dummy): Ditto.
12024         (alpha_store_struct_return): Ditto.
12025         (alpha_extract_struct_value_address): Ditto.
12026         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12027         alpha_register_virtual_type.
12028         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12029         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12030         alpha_extract_struct_value_address.
12031         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12032         (INIT_FRAME_PC): Use init_frame_pc_noop.
12033         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12034
12035 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
12036
12037         * i386gnu-nat.c: Include "i386-tdep.h".
12038         (fetch_fpregs): Simplify code dealing with uninitialized floating
12039         point states such that it doesn't require FP7_REGNUM.
12040
12041 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12042
12043         * alpha-tdep.c (frame_extra_info): New.
12044         (alpha_find_saved_regs): Make static.  Use
12045         frame->extra_info.
12046         (alpha_frame_init_saved_regs): New function.
12047         (alpha_frame_saved_pc): Use frame->extra_info.
12048         (temp_saved_regs): Don't declare as struct frame_saved_regs.
12049         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12050         (init_extra_frame_info): Rename to...
12051         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
12052         (alpha_print_extra_frame_info): New function.
12053         (alpha_frame_locals_address): Ditto.
12054         (alpha_frame_args_address): Ditto.
12055         (alpha_pop_frame): Use frame->extra_info.
12056         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12057         alpha_frame_args_address.
12058         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12059         (alpha_find_saved_regs): Remove prototype.
12060         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12061         (EXTRA_FRAME_INFO): Remove.
12062         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12063         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12064
12065 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12066
12067         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12068         (alpha_cannot_fetch_register): Ditto.
12069         (alpha_cannot_store_register): Ditto.
12070         (alpha_register_convertible): Ditto.
12071         (alpha_use_struct_convention): Ditto.
12072         * config/alpha/tm-alpha.h: Update copyright years.
12073         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12074         (INNER_THAN): Use core_addr_lessthan.
12075         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12076         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12077         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12078         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12079         (FRAME_CHAIN): Remove unnecessary cast.
12080
12081 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12082
12083         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12084         obsolete.
12085
12086 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12087
12088         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
12089         * monitor.c, remote-array.c, remote-bug.c: Ditto.
12090         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12091         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12092         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12093         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12094         * x86-64-linux-nat.c: Ditto.
12095
12096 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12097
12098         * alpha-tdep.c (alpha_register_name): New function.
12099         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12100         (REGISTER_NAME): Define.
12101
12102 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12103
12104         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12105
12106 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12107
12108         * alpha-tdep.c: Update copyright years.
12109         (alpha_next_pc): New function.
12110         (alpha_software_single_step): Ditto.
12111         * config/alpha/tm-alpha.h: Add prototype for
12112         alpha_software_single_step.
12113
12114 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12115
12116         * alphabsd-nat.c: Update copyright years.
12117         (fill_gregset): Use regcache_collect.
12118         (fill_fpregset): Likewise.
12119         (fetch_inferior_registers): Only fetch integer registers
12120         if requested to do so.
12121         (store_inferior_registers): Only store integer registers
12122         if requested to do so.
12123
12124 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12125
12126         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12127         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12128         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12129         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12130         * config/alpha/fbsd.mh (XDEPFILES): Delete.
12131         * config/arm/linux.mh (XDEPFILES): Delete.
12132         * config/arm/nbsd.mh (XDEPFILES): Delete.
12133         * config/i386/i386dgux.mh (XDEPFILES): Delete.
12134         * config/i386/i386sol2.mh (XDEPFILES): Delete.
12135         * config/i386/i386m3.mh (XDEPFILES): Delete.
12136         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12137         * config/i386/i386gnu.mh (XDEPFILES): Delete.
12138         * config/i386/fbsd.mh (XDEPFILES): Delete.
12139         * config/i386/i386bsd.mh (XDEPFILES): Delete.
12140         * config/i386/i386sco5.mh (XDEPFILES): Delete.
12141         * config/i386/i386v4.mh (XDEPFILES): Delete.
12142         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12143         * config/i386/i386sco4.mh (XDEPFILES): Delete.
12144         * config/i386/i386aix.mh (XDEPFILES): Delete.
12145         * config/i386/go32.mh (XDEPFILES): Delete.
12146         * config/i386/cygwin.mh (XDEPFILES): Delete.
12147         * config/i386/i386lynx.mh (XDEPFILES): Delete.
12148         * config/i386/i386mach.mh (XDEPFILES): Delete.
12149         * config/i386/i386v32.mh (XDEPFILES): Delete.
12150         * config/i386/linux.mh (XDEPFILES): Delete.
12151         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12152         * config/i386/ncr3000.mh (XDEPFILES): Delete.
12153         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12154         * config/i386/i386sco.mh (XDEPFILES): Delete.
12155         * config/i386/i386v.mh (XDEPFILES): Delete.
12156         * config/i386/nbsd.mh (XDEPFILES): Delete.
12157         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12158         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12159         * config/i386/symmetry.mh (XDEPFILES): Delete.
12160         * config/i386/obsd.mh (XDEPFILES): Delete.
12161         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12162         * config/ia64/linux.mh (XDEPFILES): Delete.
12163         * config/ia64/aix.mh (XDEPFILES): Delete.
12164         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12165         * config/m68k/dpx2.mh (XDEPFILES): Delete.
12166         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12167         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12168         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12169         * config/m68k/linux.mh (XDEPFILES): Delete.
12170         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12171         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12172         * config/m68k/nbsd.mh (XDEPFILES): Delete.
12173         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12174         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12175         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12176         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12177         * config/m88k/delta88.mh (XDEPFILES): Delete.
12178         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12179         * config/m88k/m88k.mh (XDEPFILES): Delete.
12180         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12181         * config/mips/linux.mh (XDEPFILES): Delete.
12182         * config/mips/irix6.mh (XDEPFILES): Delete.
12183         * config/mips/irix5.mh (XDEPFILES): Delete.
12184         * config/mips/irix4.mh (XDEPFILES): Delete.
12185         * config/mips/irix3.mh (XDEPFILES): Delete.
12186         * config/mips/decstation.mh (XDEPFILES): Delete.
12187         * config/mips/mipsm3.mh (XDEPFILES): Delete.
12188         (NATDEPFILES): Move core-aout.o to here.
12189         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12190         * config/pa/hpux1020.mh (XDEPFILES): Delete.
12191         * config/pa/hppabsd.mh (XDEPFILES): Delete.
12192         * config/pa/hppahpux.mh (XDEPFILES): Delete.
12193         * config/pa/hpux11w.mh (XDEPFILES): Delete.
12194         * config/pa/hppaosf.mh (XDEPFILES): Delete.
12195         * config/pa/hpux11.mh (XDEPFILES): Delete.
12196         * config/powerpc/aix.mh (XDEPFILES): Delete.
12197         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12198         * config/powerpc/linux.mh (XDEPFILES): Delete.
12199         * config/romp/rtbsd.mh: Rename XDEPFILES.
12200         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12201         * config/rs6000/aix4.mh (XDEPFILES): Delete.
12202         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12203         * config/s390/s390.mh (XDEPFILES): Delete.
12204         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12205         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12206         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12207         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12208         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12209         * config/sparc/nbsd.mh (XDEPFILES): Delete.
12210         * config/sparc/linux.mh (XDEPFILES): Delete.
12211         * config/vax/vaxult.mh (XDEPFILES): Delete.
12212         * config/vax/vaxult2.mh (XDEPFILES): Delete.
12213         * Makefile.in (DEPFILES): Remove XDEPFILES.
12214
12215 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12216
12217         * utils.c (internal_verror): Fix comments, default is yes not no.
12218         Update queries to match.  Default to quit and dump core.
12219
12220 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12221
12222         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
12223         copyright.
12224         * defs.h, event-top.c, gdbcmd.h: Ditto.
12225         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12226         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12227         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12228         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12229         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12230         * mi/mi-main.c:Ditto.
12231
12232         * stack.c, symfile.c: Update copyright.
12233
12234 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12235
12236         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12237         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12238         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12239         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12240
12241 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12242
12243         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12244         * gdbserver/low-lynx.c (myattach): Likewise.
12245         * gdbserver/low-nbsd.c (myattach): Likewise.
12246         * gdbserver/low-sim.c (myattach): Likewise.
12247         * gdbserver/low-sparc.c (myattach): Likewise.
12248         * gdbserver/low-sun3.c (myattach): Likewise.
12249
12250         * gdbserver/low-linux.c (myattach): New function.
12251
12252         * gdbserver/server.c (attach_inferior): New function.
12253         (main): Handle "--attach".
12254
12255 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
12256
12257         * MAINTAINERS (language support): Daniel Jacobwitz is C++
12258         maintainer.
12259
12260 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
12261
12262         * c-typeprint.c (is_type_conversion_operator): Add additional
12263         check for non-conversion operators.
12264
12265 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12266
12267         * linux-proc.c: Add "info proc" command, a la procfs.c.
12268         (read_mapping): New function, abstract and re-use code.
12269         (linux_find_memory_regions): Use new func read_mapping.
12270         (linux_info_proc_cmd): New function, implement "info proc".
12271         (_initialize_linux_proc): Add new command "info proc".
12272
12273 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12274
12275         * symfile.c (generic_load): Use bfd_map_over_sections method
12276         instead of manipulating bfd structure members directly.
12277         (add_section_size_callback): New function, bfd sections callback
12278         used by generic_load.
12279         (load_sections_callback): New function, bfd sections callback
12280         used by generic_load.
12281
12282 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
12283
12284         [Based on work by Jim Blandy]
12285         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12286         (builtin_type_vec128): Export.
12287         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12288         types.
12289         (builtin_type_vec128): New builtin type for 128 bit vector
12290         registers.
12291         (build_gdbtypes): Initialize builtin_type_v16qi and
12292         builtin_type_v8hi. Create the vec128 register builtin type
12293         structure.
12294         (build_builtin_type_vec128): New function.
12295         (_initialize_gdbtypes): Register builtin_type_v16qi and
12296         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12297         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12298         AltiVec register to new builtin type.
12299
12300 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
12301
12302         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12303         to make_cv_type.
12304
12305 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12306
12307         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12308         CLEAN_UP_REGISTER_VALUE.
12309         * regcache.c (supply_register): Update only call.
12310
12311 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12312
12313         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12314         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12315         a29k-*-vxworks* targets as obsolete.
12316
12317 2002-01-14  Michael Snyder  <msnyder@redhat.com>
12318
12319         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12320         until we can resolve portability issues.
12321         * gregset.h: Remove references to fpxregs.
12322         * gcore.c (gcore_command): Initialize note_sec to NULL.
12323
12324 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12325
12326         * signals.c (target_signal_to_name): Rewrite.  Only use
12327         signals[].name when in bounds and non-NULL.
12328
12329 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12330
12331         From Petr Ledvina <ledvinap@kae.zcu.cz>:
12332         * signals.c (target_signal_to_name): Verify that SIG is within the
12333         bounds of the signals array.
12334
12335 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12336
12337         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12338
12339 2002-01-13  Keith Seitz  <keiths@redhat.com>
12340
12341         * stack.c (print_frame_info_base): Print the frame's pc
12342         only if when print_frame_info_listing_hook is not defined.
12343
12344 2002-01-13  Keith Seitz  <keiths@redhat.com>
12345
12346         * varobj.c (varobj_set_value): Make sure that there were no
12347         errors evaluating the object before attempting to set its
12348         value.
12349         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12350         so this offset adjustment is no longer necessary.
12351         (create_child): Don't set the error flag if the child is
12352         a CPLUS_FAKE_CHILD.
12353         (value_of_child): If value_fetch_lazy fails, return NULL
12354         so that callers will be notified that an error occurred.
12355         (c_value_of_variable): Delay check of variable's validity
12356         until later. We actually want all structs and unions to have
12357         the value "{...}".
12358         Do not return "???" for variables which could not be evaluated.
12359         This error condition must be returned to the caller so that it
12360         can get the error condition from gdb.
12361         (cplus_name_of_child): Adjust index for vptr before figuring
12362         out the name of the child.
12363         (cplus_value_of_child): If a child's (real) parent is not valid,
12364         don't even bother trying to give a value for it. Just return
12365         an error. Change all instances in this function.
12366         (cplus_type_of_child): If our parent is one of the "fake"
12367         parents, we need to get at the type of the real parent, and
12368         derive the child's true type using this information.
12369
12370 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12371
12372         From 2002-01-09 John Marshall <johnm@falch.net>:
12373         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12374         sources.redhat.com, and tweak some related URLs which had
12375         suffered from linkrot.
12376
12377 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12378
12379         From Jeff law:
12380         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12381         structures passed in registers.
12382
12383 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
12384
12385         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12386         white space which prevented compilation.  Reported by DSK
12387         <dsk@student.unsw.edu.au>.
12388
12389 2002-01-11  Michael Snyder  <msnyder@redhat.com>
12390
12391         * symfile.c (build_section_addr_info_from_section_tab):
12392         Use bfd access method instead of manipulating bfd directly.
12393         (syms_from_objfile): Ditto.
12394         (simple_overlay_update_1): Ditto.
12395         (simple_overlay_update): Ditto.
12396         (generic_load): Ditto.
12397         (overlay_unmapped_address): FIXME comment, bfd access methods.
12398         (sections_overlap): FIXME comment, bfd access methods.
12399         (pc_in_mapped_range): FIXME comment, bfd access methods.
12400         (pc_in_unmapped_range): FIXME comment, bfd access methods.
12401         (section_is_mapped): FIXME comment, bfd access methods.
12402         (section_is_overlay): FIXME comment, bfd access methods.
12403
12404         * symfile.c (generic_load): Whitespace and long line cleanups.
12405         Remove duplicate variable, change several local variables to
12406         more appropriate data types.
12407         (print_transfer_performance): Use %lu instead of %ld for ulongs.
12408
12409 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12410
12411         From Peter Schauer:
12412         * language.c (longest_local_hex_string_custom): Use phex_nz to
12413         convert NUM to a hex string.
12414
12415 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
12416
12417         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12418         the function.
12419         Update Copyright year.
12420
12421 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12422
12423         * language.c (longest_raw_hex_string): Delete unused function.
12424
12425 2002-01-11  Petr Sorfa  <petrs@caldera.com>
12426
12427         * MAINTAINERS (write-after-approval): Add myself.
12428         * dwarf2read.c (read_tag_string_type): Handling of
12429         DW_AT_byte_size.
12430         (read_tag_string_type): FORTRAN fix to prevent propagation of
12431         first string size.
12432         (set_cu_language): Handling of DW_LANG_Fortran95
12433
12434 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
12435
12436         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12437         GETPID(inferior_ptid).
12438         (store_inferior_registers): Likewise.
12439
12440 2002-01-10  Jason Merrill  <jason@redhat.com>
12441
12442         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12443         Fix DW_OP_minus.
12444
12445 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
12446
12447         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12448         and bfd/elf32-sh-nbsd.c.
12449
12450 2002-01-10  Michael Snyder  <msnyder@redhat.com>
12451
12452         * NEWS: Mention --pid and corefile/proc-id behavior change.
12453
12454         * Makefile.in: Add rules for gcore.o and linux-proc.o.
12455         * gcore.c: Include cli/cli-decode.h instead of command.h.
12456
12457         * main.c (captured_main): Add new command line option "--pid".
12458         If the second command line argument (following the symbol-file)
12459         begins with a digit, try to attach to it before trying to open
12460         it as a corefile.
12461         (print_gdb_help): Document the "--pid" argument.
12462
12463 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
12464
12465         * completer.c (command_completer): New function.
12466
12467         * completer.h <command_completer>: Add prototype.
12468
12469         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12470         completer for the "help" command.
12471
12472 2002-01-09  Jason Merrill  <jason@redhat.com>
12473
12474         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12475
12476 2002-01-09  Michael Snyder  <msnyder@redhat.com>
12477
12478         * i386-linux-nat.c (fill_fpxregset): Make global.
12479         (store_fpxregset): Ditto.
12480
12481         * gregset.h (gdb_fpxregset_t): Define.
12482         (supply_fpxregset): Prototype.
12483         (fill_fpxregset): Prototype.
12484
12485         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12486
12487 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12488
12489         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12490         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12491         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12492
12493 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
12494
12495         * MAINTAINERS: Update target maintainer rules so that any
12496         Maintainer can approve a tested patch for a maintenance-only
12497         target.
12498
12499 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12500
12501         * MAINTAINERS (write-after-approval): Add myself.
12502
12503         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12504         IN_SIGTRAMP.
12505
12506 2002-01-08  Michael Snyder  <msnyder@redhat.com>
12507
12508         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12509         real name of the executable, rather than the /proc name.
12510
12511 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12512
12513         Implement a "generate-core-file" command in gdb, save target state.
12514         * gcore.c: New file.  Implement new command 'generate-core-file'.
12515         Save a corefile image of the current state of the inferior.
12516         * linux-proc.c: Add linux-specific code for saving corefiles.
12517         * target.h (struct target_ops): Add new target vectors for saving
12518         corefiles; to_find_memory_regions and to_make_corefile_notes.
12519         (target_find_memory_regions): New macro.
12520         (target_make_corefile_notes): New macro.
12521         * target.c (update_current_target): Inherit new target methods.
12522         (dummy_find_memory_regions): New place-holder method.
12523         (dummy_make_corefile_notes): New place-holder method.
12524         (init_dummy_target): Initialize new dummy target vectors.
12525         * exec.c (exec_set_find_memory_regions): New function.
12526         Allow the exec_ops vector for memory regions to be taken over.
12527         (exec_make_note_section): New function, target vector method.
12528         * defs.h (exec_set_find_memory_regions): Export prototype.
12529         * procfs.c (proc_find_memory_regions): New function, corefile method.
12530         (procfs_make_note_section): New function, corefile method.
12531         (init_procfs_ops): Set new target vector pointers.
12532         (find_memory_regions_callback): New function.
12533         (procfs_do_thread_registers): New function.
12534         (procfs_corefile_thread_callback): New function.
12535         * sol-thread.c (sol_find_memory_regions): New function.
12536         (sol_make_note_section): New function.
12537         (init_sol_thread_ops): Initialize new target vectors.
12538         * inftarg.c (inftarg_set_find_memory_regions): New function.
12539         Allow to_find_memory_regions vector to be taken over.
12540         (inftarg_set_make_corefile_notes): New function.
12541         Allow to_make_corefile_notes vector to be taken over.
12542         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12543         interface layer if not target_has_execution (may be a corefile).
12544         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12545         * config/sparc/sun4sol2.mh: Ditto.
12546         * config/alpha/alpha-linux.mh: Ditto.
12547         * config/arm/linux.mh: Ditto.
12548         * config/i386/x86-64linux.mh: Ditto.
12549         * config/ia64/linux.mh: Ditto.
12550         * config/m68k/linux.mh: Ditto.
12551         * config/mips/linux.mh: Ditto.
12552         * config/powerpc/linux.mh: Ditto.
12553         * config/sparc/linux.mh: Ditto.
12554
12555 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12556
12557         * arm-linux-nat.c: Remove references to regcache.c internal data
12558         (registers[] and register_valid[]).
12559
12560 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12561
12562         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12563         so that attaching to a pid will automatically read the process's
12564         symbol file and shlibs.
12565         * Makefile.in: Add rule for linux-proc.o.
12566         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12567         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12568         * config/arm/linux.mh: Ditto.
12569         * config/i386/linux.mh: Ditto.
12570         * config/i386/x86-64linux.mh: Ditto.
12571         * config/ia64/linux.mh: Ditto.
12572         * config/m68k/linux.mh: Ditto.
12573         * config/mips/linux.mh: Ditto.
12574         * config/powerpc/linux.mh: Ditto.
12575         * config/sparc/linux.mh: Ditto.
12576
12577 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12578
12579         * win32-nat.c: Add i386-tdep.h dependency.
12580
12581 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12582
12583         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12584         instead of bfd_get_arch_size.  Don't bail out just because
12585         there's no exec_bfd.
12586
12587         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12588         * p-valprint.c (pascal_object_print_value): Ditto.
12589         * somread.c (som_symtab_read): Ditto.
12590         * symfile.c (simple_free_overlay_region_table): Ditto.
12591         * valops.c (value_assign): Ditto.
12592
12593         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12594         use tilde_expand and strerror for opening save-tracepoints file.
12595
12596         * thread-db.c (thread_db_new_objfile): Indendation fix.
12597
12598         * infptrace.c (GDB_MAX_ALLOCA): New define.
12599         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12600         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12601         can be overridden with whatever value is appropriate to the host).
12602         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12603         alloca to allocate potentially large buffer.
12604         * rs6000-nat.c (child_xfer_memory): Ditto.
12605         * symm-nat.c (child_xfer_memory): Ditto.
12606         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12607
12608 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12609
12610         From Nick Clifton  <nickc@redhat.com>
12611         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12612
12613 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12614
12615         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12616         Don't use exec_bfd if it's NULL.
12617
12618 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12619
12620         * valops.c (value_arg_coerce): Fix formatting.
12621
12622 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12623
12624         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12625         * gnu-nat.c: Ditto.
12626
12627 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12628
12629         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12630         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12631         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12632         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12633         z8k-coff have not been multi-arched.  Update z8k-coff build
12634         status.
12635
12636 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12637
12638         * MAINTAINERS: Mark a29k target as obsolete.
12639         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12640         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12641         comments.
12642         * NEWS: Note that a29k targets are obsolete.
12643         * a29k-tdep.c: Mark as obsolete.
12644         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12645         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12646         a29k-*-vxworks* targets as obsolete.
12647         * remote-adapt.c: Obsolete.
12648         * remote-eb.c: Obsolete.
12649         * remote-mm.c: Obsolete.
12650         * remote-udi.c: Obsolete.
12651         * config/a29k/a29k-udi.mt: Obsolete.
12652         * config/a29k/a29k.mt: Obsolete.
12653         * config/a29k/tm-a29k.h: Obsolete.
12654         * config/a29k/tm-vx29k.h: Obsolete.
12655         * config/a29k/vx29k.mt: Obsolete.
12656
12657 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12658
12659         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12660         with BFD_ENDIAN_BIG.
12661
12662 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12663
12664         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12665         * configure, config.in: Re-generate.
12666         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12667         * defs.h: Do not include <endian.h>.
12668
12669 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12670
12671         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12672         * config.in: Regenerate.
12673         * configure.in: Update copyright years.
12674         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12675         * configure: Regenerate.
12676         * i386bsd-nat.c: Update copyright years.
12677         (fill_gregset): Use regcache_collect.
12678         (fetch_inferior_registers): Only fetch integer registers
12679         if requested to do so.  Add support for XMM registers
12680         using PT_GETXMMREGS.
12681         (store_inferior_registers): Only store integer registers
12682         if requested to do so.  Add support for XMM registers
12683         using PT_SETXMMREGS.
12684         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12685         (store_inferior_registers): Remove.
12686         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12687         (fetch_elfcore_registers): New function.
12688         (i386nbsd_elfcore_fns): New.
12689         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12690         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12691         i386bsd-nat.o.
12692         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12693         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12694         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12695         * config/i386/tm-nbsd.h: Update copyright years.
12696         (HAVE_SSE_REGS): Define.
12697         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12698         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12699         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12700         (SIGCONTEXT_PC_OFFSET): Remove.
12701         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12702
12703 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12704
12705         * configure.tgt: Remove powerpc-*-macos* target.
12706         * config/m68k/xm-mpw.h: Delete file.
12707         * config/xm-mpw.h: Delete file.
12708         * ser-mac.c: Delete file.
12709         * mpw-make.sed: Delete file.
12710         * mpw-config.in: Delete file.
12711         * mac-xdep.c: Delete file.
12712         * mac-gdb.r: Delete file.
12713         * mac-defs.h: Delete file.
12714         * mac-nat.c: Delete file.
12715         * config/powerpc/macos.mh: Delete file.
12716         * config/powerpc/macos.mt: Delete file.
12717         * config/powerpc/nm-macos.h: Delete file.
12718         * config/powerpc/tm-macos.h: Delete file.
12719         * source.c (openp, open_source_file): Remove obsolete code.
12720         * top.c (gdb_readline): Ditto.
12721         * utils.c (query): Ditto.
12722         * event-top.c (display_gdb_prompt): Ditto.
12723         * Makefile.in (ser-mac.o): Delete obsolete target.
12724         * NEWS: Update.
12725
12726 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12727
12728         * defs.h (BIG_ENDIAN): Delete macro definition.
12729         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12730         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12731         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12732         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12733         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12734         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12735         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12736         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12737         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12738         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12739         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12740         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12741         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12742         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12743         * gdbarch.c: Re-generate.
12744
12745 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12746
12747         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12748         for core files.
12749
12750 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12751
12752         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12753
12754 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12755
12756         * value.h (value_ptr): Delete typedef.
12757
12758 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12759
12760         * i386nbsd-nat.c: Update copyright years.
12761         Include i386-tdep.h.
12762
12763 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12764
12765         * stabsread.c: Update copyright years.
12766
12767         From Debashis Mahata <debashis.mahata@wipro.com>:
12768         (read_struct_fields): Deal with Sun C compiler erroneous stab
12769         output for structs and unions.
12770         Fix PR gdb/269.
12771
12772 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12773
12774         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12775         prototype.
12776
12777 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12778
12779         * cp-abi.c: Fix whitespace.
12780         (baseclass_offset): New wrapper function.
12781         * cp-abi.h (baseclass_offset): Add prototype.
12782         (struct cp_abi_ops): Add baseclass_offset pointer.
12783
12784         * valops.c (vb_match): Move to...
12785         * gnu-v2-abi.c (vb_match): here.
12786         * valops.c (baseclass_offset): Move to...
12787         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12788
12789         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12790
12791         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12792         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12793         * hpacc-abi.c (init_hpacc_ops): Likewise.
12794
12795 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12796
12797         * valops.c (find_overload_match): Accept obj as a
12798         reference parameter.  Update it before returning.
12799         * value.h (find_overload_match): Update prototype.
12800         * eval.c (evaluate_subexp_standard): Pass object to
12801         find_overload_match by reference.
12802
12803 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12804
12805         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12806         register attribute from value declarations.
12807         * valops.c: Ditto.
12808         * value.h: Ditto.
12809         * scm-lang.c (scm_lookup_name): Ditto.
12810
12811 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12812
12813         Abstract the functionality of iterating over mapped memory
12814         regions into a general purpose iterator function.
12815         * procfs.c (iterate_over_mappings): New function, general purpose
12816         iterator for memory sections.
12817         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12818         (solib_mappings_callback): New function, callback for above.
12819         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12820         (info_mappings_callback): New function, callback for above.
12821
12822         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12823
12824 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12825
12826         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12827         * i386-tdep.c: Include "elf-bfd.h".
12828         (process_note_abi_tag_sections): New function.
12829         (i386_gdbarch_init): Add code to recognize various OS/ABI
12830         combinations.
12831
12832         * maint.c (_initialize_maint_cmds): Add missing \ in
12833         string-literal.
12834
12835 For older changes see ChangeLog-2001
12836 \f
12837 Local Variables:
12838 mode: change-log
12839 left-margin: 8
12840 fill-column: 74
12841 version-control: never
12842 End: