* i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
[external/binutils.git] / gdb / ChangeLog
1 2002-11-09  Mark Kettenis  <kettenis@gnu.org>
2
3         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
4         FDOFF_REGNUM.
5
6 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
7
8         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
9         * dummy-frame.c (find_dummy_frame): Rename
10         generic_find_dummy_frame, make static.  Return the dummy frame
11         instead of the regcache.
12         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
13         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
14         (dummy_frame_register_unwind): Rename
15         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
16         * dummy-frame.h (dummy_frame_register_unwind): Rename
17         generic_call_dummy_register_unwind.
18
19 2002-11-08  Mark Kettenis  <kettenis@gnu.org>
20
21         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
22         except the inclusion of "i386/tm-i386.h", to...
23         * config/i386/nm-i386v42mp.h: ...here.
24         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
25
26 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
27
28         * Makefile.in (frame.o): Update dependencies.
29         * blockframe.c (current_frame, frame_obstack_alloc)
30         (frame_saved_regs_zalloc, get_current_frame)
31         (set_current_frame, create_new_frame)
32         (set_unwind_by_pc, get_next_frame)
33         (flush_cached_frames, reinit_frame_cache)
34         (frame_saved_regs_register_unwind)
35         (deprecated_generic_get_saved_register)
36         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
37         (_initialize_blockframe): Move frame code from here...
38         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
39         "annotate.h" and "dummy-frame.h".
40         (_initialize_frame): New function.
41
42 2002-11-08  Jim Blandy  <jimb@redhat.com>
43
44         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
45         when we finish a function a context.
46         * buildsym.h (outermost_context_p): New macro.
47         (Bug analyzed by David Edelsohn.)
48
49 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
50
51         * blockframe.c: Include "dummy-frame.h".
52         (struct dummy_frame, dummy_frame_stack)
53         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
54         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
55         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
56         (generic_save_call_dummy_addr, generic_pop_current_frame)
57         (generic_pop_dummy_frame, generic_fix_call_dummy)
58         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
59         dummy frame code from here...
60         * dummy-frame.c: ...to here.  New file.
61         * dummy-frame.h: New file.
62         (generic_call_dummy_register_unwind): Declare.
63         (generic_find_dummy_frame): Declare.
64         * Makefile.in (SFILES): Add dummy-frame.c.
65         (dummy-frame.o): Specify dependencies.
66         (dummy_frame_h): Define.
67         (COMMON_OBS): Add dummy-frame.o.
68         (blockframe.o): Update dependencies.
69
70 2002-11-08  Jim Blandy  <jimb@redhat.com>
71
72         * dwarf2read.c (read_func_scope): Restore local_symbols and
73         param_symbols after we finish the function context.  (Based on a
74         patch from David Edelsohn.)
75
76 2002-11-08  David Carlton  <carlton@math.stanford.edu>
77
78         * linespec.c (symbol_found): New function.
79         (minsym_found): New function.
80         (decode_line_1): Separate out some code into separate functions.
81
82 2002-11-08  Joel Brobecker  <brobecker@gnat.com>
83
84         * i386-tdep.c (i386_frameless_signal_p): Make non static for
85         the benefit of the interix target.
86         * i386-tdep.h (i386_frameless_signal_p): Declare.
87
88 2002-11-08  Andrew Cagney  <ac131313@redhat.com>
89
90         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
91         declaration that snuck in from change below.
92
93 2002-11-06  Andrew Cagney  <cagney@redhat.com>
94
95         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
96         all callers.
97         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
98         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
99         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
100         (i386_mxcsr_regnum_p): new function.  Use instead of
101         MXCSR_REGNUM_P.
102         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
103         (i386_sse_regnum_p): Declare.
104         (i386_mxcsr_regnum_p): Declare.
105         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
106         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
107         (IS_FP_REGNUM): Update definition.
108         (IS_FPU_CTRL_REGNUM): Update definition..
109         (IS_SSE_REGNUM): Update definition..
110         * i386v-nat.c (register_u_addr): Update.
111         * go32-nat.c (fetch_register): Update.
112         (store_register): Update.
113
114 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
115
116         Preparation work to convert the hppa targets to multiarch partial.
117
118         * hppa-tdep.c: Add new functions replacing macro bodies from
119         config/pa/tm-hppa.h. These function will be used to initialize
120         the gdbarch structure. Import some comments from tm-hppa.h,
121         and place them where appropriate, to avoid loosing them when
122         we cleanup this file.
123         (hppa_reg_struct_has_addr): New function.
124         (hppa_inner_than): New function.
125         (hppa_stack_align): New function.
126         (hppa_pc_requires_run_before_use): New function.
127         (hppa_instruction_nullified): New function.
128         (hppa_register_byte): New function.
129         (hppa_register_virtual_type): New function.
130         (hppa_store_struct_return): New function.
131         (hppa_cannot_store_register): New function.
132         (hppa_frame_args_address): New function.
133         (hppa_frame_locals_address): New function.
134         (hppa_smash_text_address): New function.
135         (hppa_coerce_float_to_double): New function. Requires the inclusion
136         of "language.h".
137
138         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
139
140         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
141         gdbarch-eligible macro to a call to the new associated function
142         created in hppa-tdep.c.
143         (INNER_THAN): Likewise.
144         (STACK_ALIGN): Likewise.
145         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
146         (INSTRUCTION_NULLIFIED): Likewise.
147         (REGISTER_BYTE): Likewise.
148         (REGISTER_VIRTUAL_TYPE): Likewise.
149         (STORE_STRUCT_RETURN): Likewise.
150         (CANNOT_STORE_REGISTER): Likewise.
151         (FRAME_ARGS_ADDRESS): Likewise.
152         (FRAME_LOCALS_ADDRESS): Likewise.
153         (SMASH_TEXT_ADDRESS): Likewise.
154         (COERCE_FLOAT_TO_DOUBLE): Likewise.
155         (ABOUT_TO_RETURN): Delete, as no longer used.
156
157 2002-11-07  Fernando Nasser  <fnasser@redhat.com>
158
159         * printcmd.c (disassemble_command): Remove obsolete function.
160         (_initialize_printcmd): Do not create disassemble command here.
161         * cli/cli-cmds.c (disassemble_command): New function.  Implements
162         disassemble command.
163         (init_cli_cmds): Create disassemble command here instead.
164
165 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
166
167         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
168
169 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
170
171         * regcache.h (regcache_cooked_read_using_offset_hack)
172         (regcache_cooked_write_using_offset_hack): Delete declarations.
173         (register_changed): Delete declaration.
174         * regcache.c (regcache_cooked_read_using_offset_hack)
175         (regcache_cooked_write_using_offset_hack): Delete functions.
176         (cooked_xfer_using_offset_hack): Delete function.
177         (register_changed): Delete function.
178
179 2002-11-07  Jim Blandy  <jimb@redhat.com>
180
181         * macroscope.c: #include "complaints.h".
182         (sal_macro_scope): Cope with filenames that appear in the symtabs,
183         but not in the macro table.
184         * Makefile.in (macroscope.o): Record dependency.
185
186 2002-11-07  Joel Brobecker  <brobecker@gnat.com>
187
188         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
189
190 2002-11-07  Andrew Cagney  <ac131313@redhat.com>
191
192         * regcache.c (deprecated_registers_fetched): Update.
193         * regcache.h (deprecated_registers_fetched): Rename
194         registers_fetched.
195         * remote-vxsparc.c (vx_read_register): Update.
196         * remote-vxmips.c (vx_read_register): Update.
197         * remote-vx68.c (vx_read_register): Update.
198         * irix5-nat.c (fetch_core_registers): Update.
199         * mipsm3-nat.c (fetch_inferior_registers): Update.
200         * sun3-nat.c (fetch_inferior_registers): Update.
201         * symm-nat.c (fetch_inferior_registers): Update.
202         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
203         (fetch_core_registers): Update.
204         (fetch_kcore_registers): Update.
205         * mips-nat.c (fetch_inferior_registers): Update.
206         * corelow.c (get_core_registers): Update.
207         * a68v-nat.c (fetch_inferior_registers): Update.
208
209 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
210
211         Put in place the framework necessary for multiarching the hppa targets.
212         * hppa-tdep.c (hppa_gdbarch_init): New function.
213         (hppa_dump_tdep): New function.
214         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
215         tdep structure dumper.
216         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
217         until the multi-arching conversion has partially been completed.
218
219 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
220
221         * valops.c (value_assign): Merge lval_register case into
222         lval_reg_frame_relative.  Use frame_register and
223         regcache_cooked_write instead of get_saved_register and
224         write_register_bytes.  After flushing the register cache, try to
225         re-select the selected frame.
226
227 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
228
229         * regcache.h (deprecated_register_valid): Rename register_valid.
230         * regcache.c: Update.
231         * ia64-aix-nat.c: Update.
232         * i386gnu-nat.c: Update.
233         * alpha-nat.c: Update.
234         * sparc-nat.c: Update.
235         * lynx-nat.c: Update.
236         * remote-mips.c: Update.
237
238 2002-11-06  Joel Brobecker  <brobecker@gnat.com>
239
240         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
241         to end of file, to be more consistent with the pratice followed
242         by other targets.
243
244 2002-11-06  Andrew Cagney  <ac131313@redhat.com>
245
246         * infcmd.c: Include "reggroups.h" and <ctype.h>.
247         (print_float_info): Print registers in float_reggroup.
248         (print_vector_info): Print registers in vector_reggroup.
249         (default_print_registers_info): When all, print registers in
250         all_reggroup.  Otherwize, print registers in general_reggroup.
251         (registers_info): Rewrite.  Add support for register groups.
252         Eliminate a goto.
253
254 2002-11-06  Elena Zannoni  <ezannoni@redhat.com>
255
256         * symtab.c (methods_info): Delete. It has been ifdeffed out for
257         ages.
258         (symtab_symbol_info): Remove eons old ifdeffed out code.
259         (_initialize_symtab): Remove prehistoric disabled 'info methods'
260         command.
261
262 2002-11-06  Theodore A. Roth  <troth@openavr.org>
263
264         * c-exp.y: Add missing semi-colons.
265         * f-exp.y: Add missing semi-colons.
266         * m2-exp.y: Add missing semi-colons.
267         * p-exp.y: Add missing semi-colons.
268         Add empty action to start rule to avoid a type clash error when
269         building with bison >= 1.50.
270
271 2002-11-06  Jim Blandy  <jimb@redhat.com>
272
273         * macrotab.h (struct macro_source_file): Doc fix.
274
275 2002-11-05  Jeff Johnston  <jjohnstn@redhat.com>
276
277         * varobj.c (child_exists, cplus_number_of_children): Change
278         STREQ macro references to strcmp.
279         (cplus_name_of_child): Change code to handle the fact that
280         fields are not necessarily contiguous with regards to their 
281         access control. This is a fix for PR gdb/792.
282
283 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
284
285         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
286         * gdbarch.h, gdbarch.c: Regnerate.
287         * frame.h (frame_register): Declare.
288         * frame.c (frame_register): New function.
289         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
290         GET_SAVED_REGISTER, otherwize call
291         generic_unwind_get_saved_register.
292         (frame_register_read): Use frame_register instead of
293         get_saved_register.
294
295 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
296         
297         From Jim Ingham  <jingham@apple.com>:
298         * event-top.c (gdb_disable_readline): New function.
299         (_initialize_event_loop): Move comment.
300
301 2002-11-05  Elena Zannoni  <ezannoni@redhat.com>
302
303         * event-loop.c (start_event_loop): Add comment.
304         Update copyright.
305
306 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
307
308         * infcmd.c (default_print_registers_info): Do not call
309         PRINT_REGISTER_HOOK.
310
311 2002-11-05  Andrew Cagney  <ac131313@redhat.com>
312
313         * sparc-tdep.c (sparc_print_register_hook): Make static.
314         (sparc_print_registers_info): New function.
315         (sparc_do_registers_info): New function.
316         (sparclet_print_registers_info): New function.
317         (sparclet_do_registers_info): New function.
318         (do_sparc_print_registers_info): New function.
319         (sparc_print_registers): New static function, clone of infcmd.c's
320         default_print_registers_info.
321         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
322         (sparclet_do_registers_info): Declare.
323         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
324         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
325         Re-define.
326         (sparc_do_registers_info): Declare.
327         (PRINT_REGISTER_HOOK): Delete macro.
328         (sparc_print_register_hook): Delete declaration.
329
330 2002-11-05  David Carlton  <carlton@math.stanford.edu>
331
332         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
333         functions.
334         (lookup_symbol_aux_local): New function.
335         (lookup_symbol_aux_symtabs): New function.
336         (lookup_symbol_aux_psymtabs): New function.
337
338 2002-11-05  David Carlton  <carlton@math.stanford.edu>
339
340         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
341         previous values of 'objfile' and 'block'.
342
343 2002-11-05  Pierre Muller  <muller@ics.u-strasbg.fr>
344
345         * values.c (value_change_enclosing_type): Set 
346         enclosing_type field correctly also for the case where 
347         more memory needs to be allocated.
348
349 2002-11-03  Mark Kettenis  <kettenis@gnu.org>
350
351         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
352         of puts_filtered.
353
354         * i387-tdep.c (i387_print_float_info): Replace calls to
355         register_read and deprecated_read_register_gen with calls to
356         frame_register_read, and make the necessary adjustments to the
357         surrounding code.
358
359 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
360
361         * gdbarch.sh (register_reggroup_p): Allow default value.
362         * gdbarch.h, gdbarch.c: Regenerate.
363
364 2002-11-02  Andrew Cagney  <ac131313@redhat.com>
365
366         * regcache.h: Add coment indicating replacements for deprecated
367         functions.
368
369 2002-11-02  Andrew Cagney  <cagney@redhat.com>
370
371         * reggroups.h, reggroups.c: New files.
372         * regcache.c: Include "reggroups.h".
373         (enum regcache_dump_what): Add `regcache_dump_groups'.
374         (regcache_dump): Contract size of the "Type" column.  When
375         specified, dump the register's groups.
376         (maintenance_print_register_groups): New function.
377         (_initialize_regcache): Add command `maint print register-groups'.
378         * Makefile.in (COMMON_OBS): Add reggroups.o
379         (SFILES): Add reggroups.c.
380         (reggroups_h): Define.
381         (regcache.o, gdbarch.o): Update dependencies.
382         (reggroups.o): Specify dependencies.
383         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
384         Add opaque declaration for `struct reggroup' in generated .h file.
385         Include "reggroups.h" in generated .c file.
386         gdbarch.h, gdbarch.c: Re-generate.
387
388 2002-11-02  Andrew Cagney  <cagney@redhat.com>
389
390         * regcache.h (deprecated_read_register_gen): Rename
391         read_register_gen.
392         (deprecated_write_register_gen): Rename write_register_gen.
393         * i387-tdep.c: Update.
394         * x86-64-linux-nat.c: Update
395         * wince.c: Update.
396         * thread-db.c: Update.
397         * win32-nat.c: Update.
398         * mips-tdep.c: Update.
399         * d10v-tdep.c: Update.
400         * cris-tdep.c: Update.
401         * remote-sim.c: Update.
402         * remote-rdi.c: Update.
403         * remote-rdp.c: Update.
404         * frame.c: Update.
405         * target.c: Update.
406         * blockframe.c: Update.
407         * x86-64-tdep.c: Update.
408         * xstormy16-tdep.c: Update.
409         * sh-tdep.c: Update.
410         * s390-tdep.c: Update.
411         * rs6000-tdep.c: Update.
412         * sparc-tdep.c: Update.
413         * i386-tdep.c: Update.
414         * dwarf2cfi.c: Update.
415         * regcache.c: Update.
416
417 2002-11-01  Joel Brobecker  <brobecker@gnat.com>
418
419         New interix-specific files:
420         * config/i386/nm-interix.h: New file.
421         * config/i386/interix.mh: New file.
422         * config/i386/interix.mt: New file.
423         * i386-interix-nat.c: New file.
424         * i386-interix-tdep.c: New file.
425
426 2002-11-01  Andrew Cagney  <cagney@redhat.com>
427
428         * frame.h (deprecated_generic_get_saved_register): Rename
429         generic_get_saved_register.
430         * blockframe.c (deprecated_generic_get_saved_register): Update.
431         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
432         (xstormy16_frame_saved_register): Update.
433         * sh-tdep.c (sh_gdbarch_init): Update.
434         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
435         * ia64-tdep.c (ia64_get_saved_register): Update.
436         * cris-tdep.c (cris_gdbarch_init): Update.
437         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
438         * arm-tdep.c (arm_gdbarch_init): Update.
439
440 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
441
442         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
443
444 2002-10-31  Daniel Jacobowitz  <drow@mvista.com>
445
446         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
447         trampolines in sigaction.
448
449 2002-10-31  Andrew Cagney  <cagney@redhat.com>
450
451         * h8300-tdep.c: Include "gdb_assert.h".
452         (h8300_print_register): Add gdbarch, file and frame parameters.
453         Use frame_read_unsigned_register to read the register's value.
454         Use fprintf_filtered to display output.
455         (h8300_print_registers_info): Replace h8300_do_registers_info.
456         (h8300_gdbarch_init): Set print_registers_info.
457
458 2002-10-31  Andrew Cagney  <cagney@redhat.com>
459
460         * frame.c (frame_read_unsigned_register): New function.
461         (frame_read_signed_register): New function.
462         * frame.h (frame_read_unsigned_register): Declare.
463         (frame_read_signed_register): Declare.
464
465 2002-10-31  Andrew Cagney  <cagney@redhat.com>
466
467         * h8500-tdep.c (h8500_print_registers_info): New static function,
468         clone of infcmd.c's default_print_registers_info.
469         (h8500_do_registers_info): New funtion.
470         (h8500_print_register_hook): Rename print_register_hook, make
471         static.
472
473         * config/h8500/tm-h8500.h: Update copyright.
474         (DEPRECATED_DO_REGISTERS_INFO): Define.
475         (h8500_do_registers_info: Declare.
476         (PRINT_REGISTER_HOOK): Delete macro.
477         (print_register_hook): Delete function.
478
479 2002-10-31  Andrew Cagney  <cagney@redhat.com>
480
481         * z8k-tdep.c (z8k_print_register_hook): Make static.
482         (z8k_print_registers_info): New static function, clone of
483         infcmd.c's default_print_registers_info.
484         (z8k_do_registers_info): New function.  Wrap
485         z8k_print_registers_info.
486         * config/z8k/tm-z8k.h: Update copyright.
487         (PRINT_REGISTER_HOOK): Delete macro.
488         (z8k_print_register_hook): Delete declaration.
489         (DEPRECATED_DO_REGISTERS_INFO): Define.
490         (z8k_do_registers_info): Declare.
491
492 2002-10-30  Joel Brobecker  <brobecker@gnat.com>
493
494         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
495         as this is already provided by value.h, and was actually causing
496         a compilation error because of a conflict in parameter type
497         declaration due to a missing const keyword.
498         (low_text_segment_addres): Fix a compilation warning.
499
500 2002-10-29  Daniel Jacobowitz  <drow@mvista.com>
501
502         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
503         registers without a name.
504         (mips_linux_cannot_store_register): Don't store registers without
505         a name.
506
507 2002-10-28  David Carlton  <carlton@math.stanford.edu>
508
509         * symtab.c (find_addr_symbol): Delete.  (It was already commented
510         out.)
511         * symtab.h: Delete prototype for find_addr_symbol.
512
513 2002-10-26  Andrew Cagney  <cagney@redhat.com>
514
515         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
516         DO_REGISTERS_INFO.
517         gdbarch.h, gdbarch.c: Re-generate.
518         * infcmd.c (default_print_registers_info): Update reference.
519         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
520         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
521         * sh-tdep.c (sh_gdbarch_init): Ditto.
522         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
523         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
524
525 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
526
527         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
528         cfi_init_extra_frame_info.
529         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
530         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
531
532         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
533         target where necessary.  Add more comments and remove the ones
534         that don't provide any useful information.
535
536         * i386-tdep.c (i386_frame_saved_pc): Replace call to
537         deprecated_read_register_dummy with
538         frame_unwind_unsigned_register.
539
540         * i386-tdep.c (i386_extract_struct_value_address): Use
541         regcache_raw_read_unsigned instead of
542         regcache_cooked_read_unsigned since we know that the register
543         we're reading isn't a pseudo register.  Rename variable 'val' into
544         the more descriptive 'addr'.
545
546         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
547         (x86_64_push_return_address): Add comment.
548         (x86_64_pop_frame): Make static.
549         (examine_argument): Clarify comment.
550         (x86_64_skip_prologue): Make prolog_expact variable static.
551
552         * dwarf2cfi.c: Fix some formatting problems.
553         (context_cpy, read_encoded_pointer): Clarify comments.
554
555         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
556         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
557         i386 target back into x86_64_gdbarch_init.  Add some comments and
558         remove meaningless ones.
559
560 2002-10-25  Andrew Cagney  <cagney@redhat.com>
561
562         * complaints.h (struct deprecated_complaint): Rename `struct
563         complaint'.
564         * complaints.c (complain): Update.
565         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
566         incorrect comment indicating that "symfile.h" was being included
567         for the `struct complaint' definition.
568         * remote-vx.c: Update.
569         * objc-lang.c: Update.
570         * xcoffread.c: Update.
571         * hpread.c: Update.
572         * mdebugread.c: Update.
573         * stabsread.c: Update.
574         * dwarf2read.c: Update.
575         * dwarfread.c: Update.
576         * elfread.c: Update.
577         * coffread.c: Update.
578         * stabsread.h: Update.
579         * dbxread.c: Update.
580         * buildsym.c: Update.
581         * gdbtypes.c: Update.
582         * macrotab.c: Update.
583
584 2002-10-25  Mark Kettenis  <kettenis@gnu.org>
585
586         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
587         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
588         (x86_64_init_abi): ...new function.
589
590         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
591         * i386v-nat.c: Include "i386-tdep.h".
592
593 2002-10-25  Andrew Cagney  <cagney@redhat.com>
594
595         * gdbtypes.c (address_space_name_to_int): Update.
596         (address_space_int_to_name): Update.
597         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
598         multi-arch predicate.
599         (address_class_name_to_type_flags): Ditto.
600         * gdbarch.h, gdbarch.c: Re-generate.
601         
602         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
603
604 2002-10-24  Martin M. Hunt  <hunt@redhat.com>
605
606         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
607
608 2002-10-24  Elena Zannoni  <ezannoni@redhat.com>
609
610         * symtab.h (INIT_SAL): Delete macro.
611         (init_sal): Export.
612         * symtab.c (init_sal): New function.
613
614         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
615         to init_sal function call.
616         (find_sal_from_funcs_and_line): Ditto.
617         (all_sals_for_line): Ditto. 
618         * breakpoint.c (create_internal_breakpoint): Ditto. 
619         (create_fork_vfork_event_catchpoint): Ditto. 
620         (create_exec_event_catchpoint): Ditto. 
621         (parse_breakpoint_sals): Ditto. 
622         (watch_command_1): Ditto. 
623         (handle_gnu_4_16_catch_command): Ditto.
624         (clear_command): Ditto. 
625         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
626         * infcmd.c (run_stack_dummy): Ditto. 
627         * infrun.c (process_event_stop_test): Ditto.
628         (check_sigtramp2): Ditto.
629         (step_over_function): Ditto. 
630         * linespec.c (decode_line_2): Ditto. 
631         (decode_line_1): Ditto. 
632         * source.c (line_info): Ditto. 
633         * symtab.c (find_pc_sect_line): Ditto.
634
635 2002-10-24  Michal Ludvig  <mludvig@suse.cz>
636
637         * dwarf2cfi.c (struct context)
638         (struct context_reg): Moved to dwarf2cfi.h
639         (context_alloc, frame_state_alloc, context_cpy):
640         Made extern instead of static, removed prototypes.
641         * dwarf2cfi.h (struct context)
642         (struct context_reg): New, moved from dwarf2cfi.c
643         (context_alloc, frame_state_alloc, context_cpy):
644         New prototypes.
645         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
646         Changed from static to extern.
647         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
648         (LINUX_SIGCONTEXT_FP_OFFSET)
649         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
650         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
651         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
652         * x86-64-tdep.c (x86_64_gdbarch_init): Several
653         set_gdbarch_*() calls now use x86-64 specific functions 
654         instead of DWARF2 CFI ones.
655         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
656         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
657         (x86_64_init_extra_frame_info): New prototypes.
658         
659 2002-10-23  David Carlton  <carlton@math.stanford.edu>
660
661         * linespec.c: #include "parser-defs.h".
662         Delete prototype for find_template_name_end.
663         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
664
665 2002-10-23  Jeff Johnston  <jjohnstn@redhat.com>
666
667         * NEWS: add recent mi fixes.
668         * varobj.c (struct varobj): Add new "updated" flag.
669         (new_variable): Default "updated" flag to 0.
670         (varobj_set_value): Set "updated" flag to 1 if value
671         changes.
672         (varobj_update): Check varobj "updated" flag before
673         comparing old and refreshed values.  Fix for
674         PR gdb/702.
675
676 2002-10-23  David Carlton  <carlton@math.stanford.edu>
677
678         * parse.c (parse_exp_1): Use BLOCK_START.
679         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
680         SYMBOL_BLOCK_VALUE.
681         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
682
683 2002-10-23  David Carlton  <carlton@math.stanford.edu>
684
685         * symtab.c: Delete cplusplus_hint.
686         Delete prototype for find_template_name_end.
687
688 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
689
690         * symtab.h: Update comment.
691
692 2002-10-23  Michael Snyder  <msnyder@redhat.com>
693
694         * printcmd.c (address_info): Restore quotes in output.
695         * valops.c (value_of_local): Restore quotes in error message.
696
697 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
698
699         * symtab.c (symbol_demangled_name): New function.
700         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
701         turning most of it into a function.
702         (symbol_demangled_name): Export.
703
704 2002-10-23  Michael Snyder  <msnyder@redhat.com>
705
706         * valops.c (value_of_local): Restore quotes in error message.
707
708 2002-10-23  Elena Zannoni  <ezannoni@redhat.com>
709
710         * symtab.c (symbol_init_language_specific): New function.
711         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
712         turning most of it into a function.
713         (symbol_init_language_specific): Export.
714
715 2002-10-23  David Carlton  <carlton@math.stanford.edu>
716
717         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
718         (dwarf_attr_name): Ditto.
719         (dwarf_type_encoding_name): Ditto.
720         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
721         (process_die): Handle DW_TAG_namespace,
722         DW_TAG_imported_declaration, DW_TAG_imported_module.
723         (read_namespace): New function.
724
725 2002-10-22  Joel Brobecker  <brobecker@gnat.com>
726
727         * configure.in: Define NEW_PROC_API on Interix too.
728         * configure: Regenerate.
729
730 2002-10-21  Joel Brobecker  <brobecker@gnat.com>
731
732         * configure: Regenerate using the proper version of autoconf.
733
734 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
735
736         * findvar.c (read_var_value): Temporarily disable TLS code, until
737         complete TLS support is added.
738
739 2002-10-21  Jim Blandy  <jimb@redhat.com>
740             Elena Zannoni  <ezannoni@redhat.com>
741
742         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
743         for thread local storage locations.
744         (struct symbol): Add objfile field.
745         (SYMBOL_OBJFILE): Define.
746         * dwarf2read.c (is_thread_local): New static variable.
747         (new_symbol): If variable is in thread local fill in address class
748         and objfile appropriately.
749         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
750         stack operation.
751         * printcmd.c (address_info): Print the information for thread
752         local storage variable.
753         * findvar.c (read_var_value): In case of thread local variable,
754         defer to the target vector code to compute address.
755
756 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
757
758         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
759         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
760
761 2002-10-21  Elena Zannoni  <ezannoni@redhat.com>
762
763         * symtab.h (address_class):  Rename
764         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
765         * hpread.c (hpread_process_one_debug_symbol): Ditto.
766         * printcmd.c (address_info): Ditto.
767         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
768
769 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
770
771         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
772         DBREG_DRX macro to acces debug registers.
773
774         * Makefile.in (i386obsd-tdep.o): New target.
775
776         * solib-sunos.c: Include "bcache.h" and "regcache.h".
777         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
778
779         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
780         * config/i386/obsd.mt: New file.
781         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
782         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
783         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
784         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
785         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
786         * i386obsd-tdep.c: New file.
787
788 2002-10-19  Adam Fedor  <fedor@gnu.org>
789
790         * objc-exp.y (name_not_typename): Fix invalid comment.  
791
792 2002-10-20  Mark Kettenis  <kettenis@gnu.org>
793
794         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
795         to allocate partial syms and macro byte caches.
796
797 2002-10-18  David Carlton  <carlton@math.stanford.edu>
798
799         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
800
801 2002-10-18  Adam Fedor  <fedor@gnu.org>
802
803         * stabsread.c (find_name_end): New function.
804         (define_symbol): Use it.
805
806 2002-10-18  Daniel Jacobowitz  <drow@mvista.com>
807
808         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
809         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
810         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
811         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
812
813 2002-10-17  David Carlton  <carlton@math.stanford.edu>
814
815         * symfile.h: Add opaque declaration for struct obstack.
816         Declare obsavestring to take a const char *.
817         * symfile.c (obsavestring): Make first argument a const char *.
818
819 2002-10-16  Adam Fedor  <fedor@gnu.org>
820
821         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
822         names when matching breakpoints in current file.
823
824 2002-10-16  Kevin Buettner  <kevinb@redhat.com>
825
826         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
827         (read_tag_pointer_type): Add address class support.
828         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
829         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
830         New methods.
831         * gdbarch.h, gdbarch.c: Regenerate.
832         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
833         (make_type_with_address_space, recursive_type_dump): Add address
834         class support.
835         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
836         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
837         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
838
839 2002-10-16  Klee Dienes  <kdienes@apple.com>
840
841         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
842         to get the last character of a char[] buffer, not
843         name[sizeof(vptr_name)-1].
844
845 2002-10-14  Adam Fedor  <fedor@gnu.org>
846
847         * symtab.h: New objc_specific struct.
848         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
849         (SYMBOL_DEMANGLED_NAME): Likewise.
850
851 2002-10-14  Adam Fedor  <fedor@gnu.org>
852
853         * symfile.c (init_filename_language_table): Add ObjC file extension.
854
855 2002-10-14  Adam Fedor  <fedor@gnu.org>
856
857         * utils.c (puts_filtered_tabular): New function.
858         (fprintf_symbol_filtered): Get ObjC demangled name.
859         * defs.h (puts_filtered_tabular): Declared.
860
861 2002-10-14  Kevin Buettner  <kevinb@redhat.com>
862
863         * c-lang.h (c_type_print_varspec_prefix): Delete.
864         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
865         ``need_post_space'' parameter.  Adjust all callers.
866
867 2002-10-14  Daniel Jacobowitz  <drow@mvista.com>  
868  
869         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
870         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
871         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
872         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
873
874 2002-10-13  Adam Fedor  <fedor@gnu.org>
875
876         * source.c (print_source_lines): Update comments.
877
878 2002-10-13  Adam Fedor  <fedor@gnu.org>
879
880         * valops.c (value_of_local): New function.
881         (value_of_this): Use it.
882         * value.h (value_of_local): Declared.
883
884 2002-10-13  Adam Fedor  <fedor@gnu.org>
885
886         * parse.c: (length_of_subexp, prefixify_subexp): Handle
887         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
888
889 2002-10-12  Adam Fedor  <fedor@gnu.org>
890
891         * language.c (binop_result_type): Add language_objc to case.
892         (integral_type): Likewise.
893         (character_type): Likewise.
894         (string_type): Likewise.
895         (boolean_type): Likewise.
896         (structured_type): Likewise.
897         (binop_type_check): Likewise.
898
899 2002-10-11  Adam Fedor  <fedor@gnu.org>
900
901         * printcmd.c (address_info): Print 'self' for ObjC.
902
903 2002-10-11  Adam Fedor  <fedor@gnu.org>
904
905         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
906         OP_SELF.
907
908 2002-10-11  Adam Fedor  <fedor@gnu.org>
909
910         * language.h (CAST_IS_CONVERSION): Add language_objc.
911
912 2002-10-11  Adam Fedor  <fedor@gnu.org>
913
914         * defs.h (enum language): Add language_objc.
915
916 2002-10-11  Klee Dienes  <kdienes@apple.com>
917
918         * corefile.c (read_memory_typed_address): New function.
919         * gdbcore.h (read_memory_typed_address): Add prototype.
920         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
921         to read a value destined for a CORE_ADDR, not read_memory_integer.
922         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
923         (f77_get_dynamic_lowerbound): Ditto.
924
925 2002-10-11  Martin M. Hunt  <hunt@redhat.com>
926
927         * utils.c (string_to_core_addr): After turning string into
928         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
929         which will do necessary sign-extension, etc.
930
931 2002-10-11  Daniel Jacobowitz  <drow@mvista.com>
932
933         * c-exp.y (THIS): Delete token and grammar rule.
934         (yylex): Don't return THIS.
935         * cp-valprint.c (vtbl_ptr_name_old): Delete.
936         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
937         * demangle.c (cplus_markers): Update comment.  Put '$'
938         first.  Remove CPLUS_MARKER.
939         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
940         * jv-exp.y (THIS): Delete token and grammar rule.
941         (yylex): Don't return THIS.
942         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
943         * objc-exp.y (THIS): Delete token and grammar rule.
944         (yylex): Don't return THIS.
945         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
946         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
947         (read_member_functions): Likewise for opname.
948         (read_tilde_fields): Use is_cplus_marker.
949
950         * defs.h (CPLUS_MARKER): Don't define.
951         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
952         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
953         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
954         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
955         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
956
957         * config/i386/tm-i386v4.h: Delete file.
958         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
959         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
960         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
961         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
962         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
963         * config/i386/i386sco5.mt (TM_FILE): Likewise.
964         * config/i386/i386v4.mt (TM_FILE): Likewise.
965         * config/i386/ncr3000.mt (TM_FILE): Likewise.
966
967 2002-10-10  Marko Mlinar  <markom@opencores.org>
968
969         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
970         accidentially not commited 2002-10-09
971         * gdbarch.h, gdbarch.c: Re-generate.
972
973 2002-10-09  Marko Mlinar  <markom@opencores.org>
974
975         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
976         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
977         * gdbarch.h, gdbarch.c: Re-generate.
978
979 2002-10-08  Petr Sorfa <petrs@caldera.com>
980
981         Revised and re-submitted by John Wolfe <jlw@caldera.com>
982
983         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
984         so we can work on more than one compilation unit at a time.  This
985         helps prepare GDB to handle inter-CU die references.
986         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
987         the code to be defined before struct comp_unit_head.
988         (comp_unit_head): Added new members - offset, cu_head,
989         begin_die, next and dwarf2_abbrevs.
990         (dwarf2_abbrevs): Removed single static var; now member of
991         struct comp_unit_head.
992         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
993         members.
994         (psymtab_to_symtab_1): Changed to work with the new
995         struct comp_unit_head.
996         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
997         constructs the dwarf2_abbrevs[] inside the cu_header.
998         (dwarf2_empty_abbrev_table): Now expects a ptr to a
999         dwarf2_abbrev table to clean up.
1000         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1001         handling of dwarf2_abbrevs inside the cu_header.
1002         (read_partial_die): Now supports the call to the new
1003         dwarf2_lookup_abbrev.
1004         (read_full_die): Now supports the call to the new
1005         dwarf2_lookup_abbrev.
1006
1007 2002-10-06  Christopher Faylor  <cgf@redhat.com>
1008
1009         * Makefile.in (install-gdbtk): Add missing continuation backslash to
1010         insure that shell variables, such as "transformed_name" are propagated
1011         to later shell statements in rule.
1012
1013 2002-10-06  Mark Kettenis  <kettenis@gnu.org>
1014
1015         * config/i386/nm-i386sco.h: Add protection against
1016         multiple-inclusion.  Include "i386/nm-i386v.h".
1017         (REGISTER_U_ADDR): Remove define.
1018         (i386_register_u_addr): Remove prototype.
1019
1020 2002-10-04  Michael Snyder  <msnyder@redhat.com>
1021
1022         * m32r-stub.c (handle_exception): Make sure exception is "trap"
1023         before treating it as a single-step event.
1024
1025 2002-10-03  Adam Fedor  <fedor@gnu.org>
1026
1027         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
1028         (objc_demangle): Remove assignment in if statements, Replace
1029         free with xfree.
1030         (add_msglist): Likewise.
1031         (end_msglist): Likewise.
1032         (complare_selectors): Likewise.
1033         (selectors_info): Likewise.
1034         (compare_classes): Likewise.
1035         (classes_info): Likewise.
1036         (print_object_command): Likewise.
1037         (find_objc_msgcall_submethod): Replace PTR with void *.
1038         * objc-lang.h: Remove check for __STDC__.
1039
1040 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1041
1042         * ui-out.h (ui_out_field_fmt_int): New prototype.
1043         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1044         of field width and alignment.
1045         * stack.c (print_frame_info_base): When printing frame level, use
1046         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
1047         PR gdb/192
1048
1049 2002-10-03  Jeff Johnston  <jjohnstn@redhat.com>
1050
1051         * MAINTAINERS: Add self to Write After Approval list.
1052
1053 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1054
1055         * infcmd.c (interrupt_target_command_wrapper): Delete.
1056         (interrupt_target_command): Make non static.
1057         (nofp_registers_info): Make static.
1058         * stack.c (return_command_wrapper): Delete.
1059         (return_command): Make non static.
1060
1061 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1062
1063         * event-top.c (gdb_setup_readline): New function. Code moved from
1064         _initialize_event_loop().
1065         (_initialize_event_loop): Call gdb_setup_readline().
1066
1067 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1068
1069         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1070         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1071         * gdbarch.h, gdbarch.c: Re-generate.
1072
1073 2002-10-02  Daniel Jacobowitz  <drow@mvista.com>
1074
1075         Fix PR gdb/778
1076         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1077         before recursing.
1078         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1079         of fill_in_vptr_fieldno.
1080
1081 2002-10-02  Elena Zannoni  <ezannoni@redhat.com>
1082
1083         * inferior.h (registers_info, stepi_command, nexti_command,
1084         continue_command, interrupt_target_command): Export from infcmd.c.
1085         * frame.h (args_info, selected_frame_level_changed_hook,
1086         return_command): Export from stack.c.
1087         * v850ice.c (stepi_command, nexti_command, continue_command): use
1088         prototypes from inferior.h.
1089         * tracepoint.c (registers_info, args_info, locals_info): Use
1090         prototypes from frame.h and inferior.h.
1091         * Makefile.in (mi-main.o): Add dependency on frame.h.
1092
1093 2002-10-02  Andrew Cagney  <ac131313@redhat.com>
1094
1095         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1096         value in register 3 adjusted by ppc_gp0_regnum.
1097
1098         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1099
1100 2002-10-02  Marko Mlinar <markom@opencores.org>
1101
1102         * MAINTAINERS: Add myself to the Write After Approval list.
1103
1104 2002-10-01  Alexandre Oliva  <aoliva@redhat.com>
1105
1106         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1107         of the section for the N64 ABI, fixed.
1108
1109         * config/mips/tm-irix6.h: Include solib.h.
1110
1111 2002-10-01  Elena Zannoni  <ezannoni@redhat.com>
1112
1113         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1114         GNU operators.
1115
1116 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1117
1118         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1119         and that "mi0" syntax has been removed.
1120
1121 2002-09-30  David Carlton  <carlton@math.stanford.edu>
1122
1123         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1124         * ppc-sysv-tdep.c: #include "gdb_string.h".
1125         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1126         pacify GCC.
1127
1128 2002-10-01  Andrew Cagney  <ac131313@redhat.com>
1129
1130         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1131         "vrsave"'s register number.
1132
1133 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1134
1135         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1136         use frame_unwind_signed_register to obtain the PC.
1137         (mips_frame_chain): Handle a generic dummy frame.
1138         (mips_init_extra_frame_info): When a generic dummy frame, don't
1139         re-compute the frame base.
1140         (mips_pop_frame): Handle generic dummy frames.
1141         (mips_gdbarch_init): When generic dummy frames, set
1142         use_generic_dummy_frames, push_dummy_frame to
1143         generic_push_dummy_frame, pc_in_call_dummy to
1144         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1145         generic_save_dummy_frame_tos.
1146
1147 2002-09-30  Andrew Cagney  <ac131313@redhat.com>
1148
1149         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
1150         against TOP when TOP was explictly set.
1151         (generic_push_dummy_frame): Set TOP to zero.
1152
1153 2002-09-30  Elena Zannoni  <ezannoni@redhat.com>
1154
1155         * event-loop.c (start_event_loop): Rename variable 'result' to
1156         'gdb_result', to avoid conflicts with upcoming intepreters changes.
1157
1158 2002-09-30  Keith Seitz  <keiths@redhat.com>
1159
1160         * gdb-events.sh (selected_thread_changed): New event.
1161         * gdb-events.c: Regenerated.
1162         * gdb-events.h: Regenerated.
1163
1164 2002-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1165
1166         * MAINTAINERS: Add self to Write After Approval list.
1167
1168 2002-09-30  Fernando Nasser  <fnasser@redhat.com>
1169
1170         * disasm.c: New file.  
1171         * disasm.h: New file.  
1172         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1173         (compare_lines): Ditto.
1174         (dump_insns): Ditto.
1175         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1176         argument.
1177         (do_assembly_only): Ditto.
1178         (do_disassembly): Renamed to gdb_disassembly and moved to
1179         disasm.c.  Sdded uiout argument.
1180         * Makefile.in: Add new files.  Reorder SFILES list. Update
1181         dependencies.  Include libgdb.a later in the insight executable.
1182
1183 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1184
1185         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1186         bfd/elf64-alpha-fbsd.c.
1187
1188 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1189
1190         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1191         i386gnu-tdep.c.
1192
1193 2002-09-29  Andrew Cagney  <ac131313@redhat.com>
1194
1195         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1196         __FUNCTION__.
1197         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1198         function name.
1199         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1200         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1201         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1202         (S_msg_sig_post_reply): Ditto.
1203         
1204 2002-09-28  Corinna Vinschen  <vinschen@redhat.com>
1205
1206         * sh-tdep.c (sh_use_struct_convention): Use definition according
1207         to ABI.
1208         (sh_push_arguments): Store in register with correct endianess.
1209         (sh_default_store_return_value): Ditto.
1210         (sh_gdbarch_init): Set sizeof long double to 8.
1211
1212 2002-09-27  Mark Kettenis  <kettenis@gnu.org>
1213
1214         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1215         Fix some whitespace problems.
1216
1217 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1218
1219         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1220         (mcore-tdep.o): Ditto.
1221         (ns32k-tdep.o): Ditto.
1222         (ns32knbsd-tdep.o): Ditto.
1223         (sh3-rom.o): Ditto.
1224         (vax-tdep.o): Ditto.
1225         * cris-tdep.c: #include "gdb_string.h"
1226         * mcore-tdep.c: Ditto.
1227         * ns32k-tdep.c: Ditto.
1228         * ns32knbsd-tdep.c: Ditto.
1229         * sh3-rom.c: Ditto.
1230         * vax-tdep.c: Ditto.
1231
1232 2002-09-27  David Carlton  <carlton@math.stanford.edu>
1233
1234         * config/djgpp/fnchange.lst: Add entries for
1235         gdb/testsuite/gdb.c++/m-static files.
1236
1237 2002-09-27  Jim Wilson  <wilson@redhat.com>
1238
1239         * MAINTAINERS: Add myself to the Write After Approval list.
1240
1241 2002-09-26  Martin M. Hunt  <hunt@redhat.com>
1242
1243         * mips-tdep.c (find_proc_desc): Initialize startaddr.
1244
1245
1246 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1247
1248         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1249         frame.
1250
1251 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1252
1253         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1254         (rs6000_struct_return_address): Delete variable.
1255         (rs6000_store_struct_return): Update.
1256         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1257         deprecated_extract_struct_value_address.
1258         (rs6000_frame_align): New function.
1259         (rs6000_gdbarch_init): Set frame_align.
1260
1261 2002-09-26  Andrew Cagney  <ac131313@redhat.com>
1262
1263         From Grace Sainsbury <graces@redhat.com>:
1264         * Makefile.in (gdbtk-main.o): New target.
1265         (gdb.o): New target.
1266         (main_h): Define.
1267         (main.o): Update dependencies.
1268         (gdb$(EXEEXT)): Add gdb.o.
1269         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1270         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1271         (SUBDIR_GDBTK_CLEAN): Set.
1272         (install-gdbtk): Install the insight binary.
1273         (uninstall-gdbtk): New target.
1274         (all-gdbtk, clean-gdbtk): New rule.
1275         * top.c (use_windows): Default to zero.
1276         * main.c: Include "main.h".
1277         (main): Delete.
1278         (struct captured_main_args): Delete.
1279         (gdb_main): New function.
1280         * main.h: New file.
1281         * gdb.c: New File.
1282
1283 2002-09-25  Andrew Cagney  <cagney@redhat.com>
1284
1285         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1286         (frame_map_regnum_to_name): New function.
1287         (frame_map_name_to_regnum): New function.
1288         * frame.h (frame_map_name_to_regnum): Declare.
1289         (frame_map_regnum_to_name): Declare.
1290         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1291         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1292         * parse.c: Do not include "builtin-regs.h".
1293         (target_map_name_to_register): Delete function.
1294         (write_dollar_variable): Use frame_map_name_to_regnum.
1295         * parser-defs.h (target_map_name_to_register): Delete declaration.
1296         * expprint.c: Include "frame.h".
1297         (print_subexp): Use frame_map_regnum_to_name.
1298         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1299         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1300
1301 2002-09-25  Andrew Cagney  <ac131313@redhat.com>
1302
1303         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1304         wasn't saved, and the next innermost frame is a dummy, return the
1305         dummy frame's link register.
1306
1307 2002-09-24  Jim Blandy  <jimb@redhat.com>
1308
1309         Fix from Paul Breed:
1310         * main.c (captured_main): Add a `break' after the case for 'b'.
1311
1312 2002-09-24  Keith Seitz  <keiths@redhat.com>
1313
1314         * varobj.c (c_type_of_child): Use get_target_type instead
1315         of TYPE_TARGET_TYPE.
1316
1317 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1318
1319         * source.c (get_current_or_default_source_symtab_and_line): Remove
1320         function.
1321         (set_default_source_symtab_and_line): New function. Attempts to
1322         determine a source file to list lines from if one is not currently
1323         defined.
1324         (get_current_source_symtab_and_line): Initialize sal.pc and
1325         sal.end fields.
1326         (set_current_source_symtab_and_line): Mark argument as const.
1327         * source.h: Update declarations and comments.
1328         * linespec.c (decode_line_1): Replace call to removed routine above.
1329         * stack.c (print_frame_info_base): Ditto.
1330         * cli/cli-cmds.c (edit_command): Ditto.
1331         (list_command): Ditto.
1332
1333 2002-09-22  Fernando Nasser  <fnasser@redhat.com>
1334
1335         * source.c (get_current_or_default_source_symtab_and_line): Initialize
1336         sal.pc and sal.end fields.
1337         (get_current_or_default_source_symtab_and_line): Ditto.
1338         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1339         so we do not cause a new source symtab to be searched for (reverting an
1340         unintentional change from the 2002-09-20 patch).
1341         * scm-lang.c (scm_unpac): Ditto.
1342
1343 2002-09-21  Andrew Cagney  <cagney@redhat.com>
1344
1345         * complaints.c (symfile_explanations): Remove new-line from
1346         ``isolated_message''.
1347         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1348         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1349
1350 2002-09-20  Nick Clifton  <nickc@redhat.com>
1351         
1352         * NEWS: Announce that V850EA ISA is no longer supported.
1353         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1354
1355 2002-09-20  David Carlton  <carlton@math.stanford.edu>
1356
1357         * Makefile.in (c-lang.o): Correct dependencies.
1358         (utils.o): Gather dependencies.
1359         (charset.o): Move.
1360         * c-lang.c: #include "gdb_string.h"
1361
1362 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1363
1364         From 2002-07-02  George Helffrich <george@gly.bris.ac.uk>
1365         * cli/cli-cmds.c (list_command): New function.  Implements the new
1366         cli edit command.
1367         (_init_cli_cmds): Add new command definition.
1368         * gdb.1: Document edit command.
1369         * doc/gdb.texinfo: Document edit command.
1370
1371 2002-09-20  Fernando Nasser  <fnasser@redhat.com>
1372
1373         * source.c: Make global variables current_source_symtab and
1374         current_source_line static.
1375         (list_command): Moved to cli/cli-cmds.c.
1376         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1377         (get_first_line_listed): New accessor function.
1378         (get_lines_to_list): New accessor function.
1379         (get_current_source_symtab_and_line): New function. Retrieves the
1380         position in the source code that we consider current.
1381         (get_current_or_default_source_symtab_and_line): New function.
1382         Like the above but attempts to determine a default position if one
1383         is not currently defined.
1384         (set_current_source_symtab_and_line): New function. Sets the source
1385         code position considered current and returns the previously set one.
1386         (clear_current_source_symtab_and_line): Reset stored information about
1387         a current source line.
1388         (_initialize_source): Remove registration for the "list" command and
1389         its alias.
1390         * source.h: Add declarations for the new functions above.
1391         * symtab.h: Remove declarations for the global variables mentioned
1392         above.
1393         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1394         obtain current source line.
1395         * linespec.c (decode_line_1): Ditto.
1396         * macroscope.c (default_macro_scope): Ditto.
1397         * scm-lang.c (scm_unpac): Ditto.
1398         * stack.c (print_frame_info_base): Ditto.
1399         * symfile.c (clear_symtab_users): Ditto.
1400         * symtab.c (decode_line_spec): Ditto.
1401         * cli/cli-cmds.c (list_command): Moved here from source.c.
1402         (ambiguous_line_spec): Moved here from source.c.
1403         (_init_cli_cmds): Add definition for "list" and its alias.
1404         * Makefile.in: Update dependencies.
1405
1406 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1407
1408         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1409         with what gcc thinks is correct.
1410
1411 2002-09-20  Corinna Vinschen  <vinschen@redhat.com>
1412
1413         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1414         multiple register push instruction.
1415
1416 2002-09-19  Jim Blandy  <jimb@redhat.com>
1417
1418         Add support for distinct host and target character sets.
1419         * charset.c, charset.h: New files.
1420         * c-exp.y: #include "charset.h".
1421         (yylex): Convert character and string literals to the target
1422         character set, before returning them as the semantic value of the
1423         token.
1424         * c-lang.c: #include "charset.h".
1425         (c_emit_char): Use charset-specific methods to recognize
1426         characters with backslash escape forms, to decide which characters
1427         to print literally and which to print using numeric escape
1428         sequences, and to convert target characters to host characters
1429         before printing.
1430         * utils.c: #include "charset.h".
1431         (no_control_char_error): New function.
1432         (parse_escape): Use charset-specific methods to recognize
1433         backslash escapes, parse `control character' notation, and convert
1434         characters from the host character set to the target character set.
1435         * configure.in: Set the default host character set.
1436         Check where to find iconv, and what its argument types might be.
1437         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1438         * Makefile.in (SFILES): List charset.c.
1439         (COMMON_OBS): List charset.o.   
1440         (charset.o): New rule.
1441         (charset_h): New header dependency variable.
1442         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1443         (LIBICONV): New variable, set by configure.
1444         (CLIBS): Include $(LIBICONV) here.
1445         * aclocal.m4, config.in, configure: Regenerated.
1446
1447 2002-09-19  Joel Brobecker  <brobecker@gnat.com>
1448
1449         * ada-exp.y: Add missing semicolons to end rules. Fixes a
1450         bison 1.35 warning.
1451
1452 2002-09-19  Richard Earnshaw  <rearnsha@arm.com>
1453
1454         * gdb_mbuild.sh: New file.
1455
1456 2002-09-19  Andrew Cagney  <ac131313@redhat.com>
1457
1458         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1459
1460 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1461
1462         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1463         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1464         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1465         valops.c, value.h: Revert previous change.
1466         
1467 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1468
1469         Preliminary support for Objective-C:
1470         * defs.h (language_objc): New enum value.
1471         (puts_filtered_tabular): Declaration only, exported from utils.c.
1472         (skip_quoted): Delete, declared in completer.h.
1473         * c-exp.y: Include completer.h.
1474         * p-exp.y: Ditto.
1475         * jv-exp.y: Ditto.
1476         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
1477         New operator enum values.
1478         * language.h (CAST_IS_CONVERSION): Test for language_objc.
1479         * language.c (binop_result_type): Handle language_objc case.
1480         (integral_type, character_type, string_type, boolean_type,
1481         structured_type, binop_type_check): Ditto.
1482         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1483         (struct objc_specific): Add to general_symbol_info.
1484         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1485         (SYMBOL_DEMANGLED_NAME): Handle objc case.
1486         * parser-defs.h (struct objc_class_str): New struct type.
1487         (start_msglist, end_msglist, add_msglist): Declaration only,
1488         exported from objc-lang.c.
1489         * value.h (value_of_local, value_nsstring, 
1490         call_function_by_hand_expecting_type): Exported from valops.c.
1491         * valops.c (find_function_addr): Export.
1492         (call_function_by_hand_expecting_type): New function.
1493         (value_of_local): New function.
1494         * symfile.c (init_filename_language_table): Add ".m" extension
1495         for Objective-C.
1496         * utils.c (puts_filtered_tabular): New function.
1497         (fprintf_symbol_filtered): Add objc demangling support (disabled).
1498         (set/show demangle): Extend help-string to refer to ObjC.
1499         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1500         * stabsread.c (symbol_reference_defined): Objective-C symbols
1501         may contain colons: make allowances when scanning stabs strings
1502         for colons.
1503         (objc_find_colon): New function.
1504         * printcmd.c (address_info): If language == objc then print
1505         "self" instead of "this".
1506         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1507         OP_NSSTRING, and OP_SELF.
1508         (prefixify_subexp): Ditto.
1509         * source.c (print_source_lines): Mention objc in comment.
1510         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1511         method names.
1512
1513 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1514
1515         * complaints.h: Update copyright.
1516         (struct complaints): Declare.
1517         (struct complaint): Make `message' constant.
1518         (internal_complaint): Declare.
1519         (complaint): Declare.
1520         (complaint_root): Delete declaration.
1521         (symfile_complaints): Delete declaration.
1522         (struct complaints): Add opaque declaration.
1523         (clear_complaints): Add a complaints parameter.
1524         * complaints.c: Update copyright.
1525         (enum complaint_series): Define.
1526         (complaint_root): Delete.
1527         (struct complaints): Define.
1528         (complaint_sentinel, symfile_complaint_book): New variables.
1529         (symfile_explanations, symfile_complaints): New variables.
1530         New variables.
1531         (get_complaints): New function.
1532         (vcomplaint): New function.
1533         (complaint): New function.
1534         (internal_complaint): New function.
1535         (complain): Call vcomplain with symfile_complaint.
1536         (clear_complaints): Rewrite.
1537         (_initialize_complaints): Use add_setshow_command.
1538         * Makefile.in (complaints.o): Update dependencies.
1539         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1540         to call to clear_complaints.
1541         (new_symfile_objfile, reread_symbols): Ditto.
1542         (oldsyms_complaint): Delete.
1543         (empty_symtab_complaint, unknown_option_complaint): Delete.
1544         (free_named_symtabs): Use complaint instead of complain.
1545
1546 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1547
1548         Contributed by Apple Computer, Inc.  Merged with current sources
1549         by Adam Fedor <fedor@doc.com> [cagney].
1550         
1551         * objc-lang.c: First clean-up round: comments, indentation.
1552         * objc-lang.h: Ditto.
1553         * objc-lang.y: Ditto.
1554
1555 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1556
1557         * maint.c (maintenance_internal_error): Print the parameter as the
1558         error message.
1559         (maintenance_internal_warning): New function.
1560         (_initialize_maint_cmds): Add command `maint internal-warning'.
1561
1562         * defs.h (internal_warning, internal_vwarning): Declare.
1563         * utils.c (struct internal_problem): Define.
1564         (internal_vproblem): New function.
1565         (internal_warning): New function.
1566         (internal_vwarning): New function.
1567         (internal_warning_problem, internal_error_problem): New variables.
1568         (internal_verror): Just call internal_vproblem.
1569
1570 2002-09-18  Michael Snyder  <msnyder@redhat.com>
1571
1572         * objc-lang.c: New file, support for Objective-C.
1573         Preliminary check-in, not yet integrated into gdb.
1574         * objc-lang.h: New file.
1575         * objc-exp.y:  New file.
1576
1577 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1578
1579         * infrun.c (signal_stop_update): Convert definition to ISO C.
1580         (signal_print_update): Ditto.
1581         (signal_pass_update): Ditto.
1582         * inflow.c (terminal_save_ours): Ditto.
1583
1584         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1585         comments.
1586         
1587         * config/djgpp/fnchange.lst: Handle name clashes between
1588         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1589         bfd/coff-tic80.c.
1590
1591         * i386-linux-tdep.h: Fix tipo.
1592
1593 2002-09-18  Adam Fedor  <fedor@gnu.org>
1594
1595         * MAINTAINERS: Add myself to the Write After Approval list.
1596
1597 2002-09-18  Jim Blandy  <jimb@redhat.com>
1598
1599         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
1600         texthigh and textlow to reader-specific structs caused
1601         objfile_relocate to miss them.  This is fixable, but the work that
1602         the change was supposed to prepare GDB for never got done anyway.
1603
1604 2002-09-18  David Carlton  <carlton@math.stanford.edu>
1605
1606         * MAINTAINERS: Alphabetize Write After Approval list.
1607
1608 2002-09-18  Daniel Jacobowitz  <drow@mvista.com>
1609
1610         Fix PR gdb/709
1611         * values.c (value_static_field): Call read_var_value.
1612
1613 2002-09-18  Andrew Cagney  <ac131313@redhat.com>
1614
1615         * valops.c (hand_function_call): Align the initial stack pointer
1616         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
1617         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1618         return value.
1619         * mips-tdep.c (mips_frame_align): New function.
1620         (mips_gdbarch_init): Set frame_align.
1621         * gdbarch.sh (FRAME_ALIGN): New method.
1622         * gdbarch.h, gdbarch.c: Re-generate.
1623
1624 2002-09-18  Michal Ludvig  <mludvig@suse.cz>
1625
1626         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1627         registers.
1628
1629 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1630
1631         * NEWS: Mention that MIPS $fp behavior changed.
1632         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1633         reference to FP_REGNUM.
1634         (mipsnbsd_cannot_store_register): Ditto.
1635         * mips-linux-nat.c: Update copyright.
1636         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1637         (mips_linux_cannot_store_register): Ditto.
1638         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
1639         * config/mips/tm-mips.h: Update copyright.
1640         (FP_REGNUM): Delete macro.
1641         (MIPS_REGISTER_NAMES): Replace "fp" with "".
1642         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1643         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1644         (mips_r3041_reg_names, mips_r3051_reg_names)
1645         (mips_r3081_reg_names): Replace "fp" with "".
1646         Fix PR gdb/480.
1647
1648 2002-09-17  Theodore A. Roth  <troth@verinet.com>
1649
1650         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
1651         generic_read_register_dummy() (PR gdb/703).
1652         (avr_push_return_address): #if 0 out unused vars.
1653         (avr_gdbarch_init): Enable use of avr_push_return_address().
1654
1655 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1656
1657         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1658         RTE will take care of it.
1659
1660 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
1661
1662         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1663         invalid, return SP_REGNUM.
1664
1665 2002-09-17  Michael Snyder  <msnyder@redhat.com>
1666
1667         * mips-tdep.c (mips_pop_frame): Read saved values of floating
1668         point registers without sign extension.
1669
1670 2002-09-17  Andrew Cagney  <cagney@redhat.com>
1671
1672         * blockframe.c (deprecated_read_register_dummy): Rename
1673         generic_read_register_dummy.
1674         * frame.c (frame_unwind_signed_register): New function.
1675         (frame_unwind_unsigned_register): New function.
1676         * frame.h (frame_unwind_signed_register): Declare.
1677         (frame_unwind_unsigned_register): Declare.
1678         (deprecated_read_register_dummy): Rename
1679         generic_read_register_dummy.
1680
1681         * h8300-tdep.c (h8300_frame_chain): Update.
1682         (h8300_frame_saved_pc): Update.
1683         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1684         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1685         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1686         (s390_frame_chain): Update.
1687         * v850-tdep.c (v850_find_callers_reg): Update.
1688         (v850_frame_saved_pc): Update.
1689         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1690         (m32r_find_callers_reg): Update.
1691         (m32r_frame_saved_pc): Update.
1692         * sh-tdep.c (sh_find_callers_reg): Update.
1693         (sh64_get_saved_pr): Update.
1694         (sh_init_extra_frame_info): Update.
1695         (sh_init_extra_frame_info): Update.
1696         (sh64_init_extra_frame_info): Update.
1697         (sh64_init_extra_frame_info): Update.
1698         * mcore-tdep.c (mcore_find_callers_reg): Update.
1699         (mcore_frame_saved_pc): Update.
1700         (mcore_init_extra_frame_info): Update.
1701         * i386-tdep.c (i386_frame_saved_pc): Update.
1702         * ia64-tdep.c (ia64_frame_saved_pc): Update.
1703         (ia64_init_extra_frame_info): Update.
1704         (ia64_init_extra_frame_info): Update.
1705         * d10v-tdep.c (d10v_frame_saved_pc): Update.
1706         * cris-tdep.c (cris_init_extra_frame_info): Update.
1707         * avr-tdep.c (avr_frame_chain): Update.
1708         (avr_init_extra_frame_info): Update.
1709         (avr_frame_saved_pc): Update.
1710         * arm-tdep.c (arm_find_callers_reg): Update.
1711         (arm_init_extra_frame_info): Update.
1712         (arm_frame_saved_pc): Update.
1713
1714 2002-09-17  Tom Tromey  <tromey@redhat.com>
1715
1716         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1717         is "'".
1718
1719 2002-09-17  Corinna Vinschen  <vinschen@redhat.com>
1720
1721         * MAINTAINERS: Remove "non multi-arched" text from h8300.
1722         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1723         NEXT_PROLOGUE_INSN.
1724         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1725         NEXT_PROLOGUE_INSN.
1726
1727 2002-09-16  Joel Brobecker  <brobecker@gnat.com>
1728
1729         * osfsolib.c: Remove file, replaced by solib-osf.c.
1730         * Makefile.in: Remove compilation rules for osfsolib.c.
1731
1732 2002-09-16  David Carlton  <carlton@math.stanford.edu>
1733
1734         * cp-valprint.c (cp_print_class_method): Correct args to
1735         check_stub_method_group.
1736
1737 2002-09-16  Corinna Vinschen  <vinschen@redhat.com>
1738
1739         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
1740         `set architecture'.  Unify naming convention of functions.
1741         (h8300_skip_prologue): Improve prologue analysis.
1742         (h8300_push_arguments): Rewritten to more closely match GCC's
1743         bizarre argument-passing behavior, along with the comment describing
1744         said behavior.
1745         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1746         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
1747         sim, remote-e7000.c, remote-hms.c and remote.c
1748
1749 2002-09-15  Mark Kettenis  <kettenis@gnu.org>
1750
1751         * i386-tdep.c (gdb_print_insn_i386): Removed.
1752         (i386_print_insn): New function.
1753         (i386_gdbarch_init): Set print_insn to i386_print_insns.
1754         (_initialize_i386_tdep): Don't initialize tm_print_insn and
1755         tm_print_insn_info.
1756
1757 2002-09-14  Mark Kettenis  <kettenis@gnu.org>
1758
1759         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1760         zero.
1761
1762 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
1763
1764         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1765         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
1766         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1767
1768 2002-09-13  Christopher Faylor  <cgf@redhat.com>
1769
1770         * win32-nat.c (child_create_inferior): Honor 'tty' command.
1771
1772 2002-09-13  Daniel Jacobowitz  <drow@mvista.com>
1773
1774         * gdbtypes.c (check_stub_method): Make static.
1775         (check_stub_method_group): New function.
1776         * gdbtypes.h: Update prototypes.
1777         * cp-support.c: New file.
1778         * cp-support.h: New file.
1779
1780         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1781         (update_method_name_from_physname): New function.
1782         (read_member_functions): Correct method names for operators
1783         and v3 constructors/destructors.  Separate v2 constructors and
1784         destructors.
1785         * Makefile.in (stabsread.o): Update dependencies.
1786         (SFILES): Add cp-support.c.
1787         (COMMON_OBS): Add cp-support.o.
1788         (cp_support_h, cp-support.o): Add.
1789
1790         * cp-valprint.c (cp_print_class_method): Call
1791         check_stub_method_group instead of check_stub_method.  Remove
1792         extraneous QUITs.
1793         * p-valprint.c (pascal_object_print_class_method): Likewise.
1794         * valops.c (search_struct_method): Likewise.
1795         (find_method_list, value_struct_elt_for_reference): Likewise.
1796
1797 2002-09-13  Andrew Cagney  <cagney@redhat.com>
1798
1799         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1800         * gdbarch.h, gdbarch.c: Regenerate.
1801
1802 2002-09-13  Andrew Cagney  <ac131313@redhat.com>
1803
1804         * frame.c (find_saved_register): Delete function.
1805         * frame.h (find_saved_register): Delete declaration.
1806         Fix PR gdb/631.
1807
1808 Fri Sep 13 14:59:55 2002  Andrew Cagney  <cagney@redhat.com>
1809
1810         * mips-tdep.c (read_next_frame_reg): Re-hack using
1811         frame_register_unwind.
1812
1813 Fri Sep 13 07:42:09 2002  Andrew Cagney  <cagney@redhat.com>
1814
1815         * mips-tdep.c (mips_get_saved_register): Re-hack using
1816         frame_register_unwind.
1817
1818 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1819
1820         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1821         vector. Will be useful for Interix.  
1822         * gdbarch.h, gdbarch.c: Regenerate.
1823
1824         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1825         name of the malloc function by NAME_OF_MALLOC.
1826
1827 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1828
1829         * value.h (find_function_in_inferior): Add const keyword to
1830         one of the parameters. Allows us to invoke this function with
1831         a const char *.
1832         * valops.c (find_function_in_inferior): Likewise.
1833
1834 2002-09-12  Joel Brobecker  <brobecker@gnat.com>
1835
1836         * exec.c (xfer_memory): Fix compilation warning with old versions
1837         of GCC.
1838         * tracepoint.c (trace_find_tracepoint_command): Likewise.
1839
1840 2002-09-12  David Carlton  <carlton@math.stanford.edu>
1841
1842         * symtab.h: Run through gdb_indent.h.
1843         Add 2002 to Copyright year list.
1844
1845 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
1846
1847         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1848         mach constants.
1849         * MAINTAINERS: Add myself to write after approval list.
1850
1851 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1852
1853         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1854
1855 2002-09-11  J. Brobecker  <brobecker@gnat.com>
1856
1857         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1858         Interix.
1859
1860 2002-06-05  Paul N. Hilfinger  <hilfingr@otisco.mckusick.com>
1861
1862         * procfs.c (do_detach): Clear current signal, not just fault.
1863         Corrects problem with breakpoint trap signal leaking to detached
1864         process on Tru64.
1865
1866 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1867
1868         * buildsym.c (finish_block): Protect against null pointer.
1869
1870 2002-09-10  Andrew Cagney  <cagney@redhat.com>
1871
1872         * infcmd.c (default_print_registers_info): Send all output to
1873         ``file'' instead of ``gdb_stdout''.
1874
1875 2002-09-10  Michael Snyder  <msnyder@redhat.com>
1876
1877         * mips-tdep.c (mips_extract_struct_value_address): Make val a
1878         LONGEST, and use signed register read (addresses are sign-
1879         extended for mips).
1880
1881 2002-09-10  Stephane Carrez  <stcarrez@nerim.fr>
1882
1883         * event-loop.c (gdb_do_one_event): Make public.
1884         * event-loop.h (gdb_do_one_event): Declare.
1885
1886 2002-09-10  Jeff Law  <law@redhat.com>
1887
1888         * infttrace.c (child_resume): Simplify and rework to avoid
1889         TT_PROC_CONTINUE.
1890
1891 2002-09-09  Fred Fish  <fnf@intrinsity.com>
1892
1893         * printcmd.c (print_scalar_formatted): "len" is the number of
1894         target bytes, NOT the number of target bits.
1895
1896 2002-09-09  Elena Zannoni  <ezannoni@redhat.com>
1897
1898         From: Emmanuel Thome'  <thome@lix.polytechnique.fr>
1899         * top.c (init_main): Set rl_terminal_name.
1900
1901 2002-09-08  Aidan Skinner <aidan@velvet.net>
1902
1903         * ada-lang.c (ada_array_bound, ada_type_match,
1904         _initialize_ada_language): Fix K&R definitions.
1905         * ada-tasks.c (get_current_task): Fix K&R definitions.
1906         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1907                         
1908 2002-09-07  Christopher Faylor  <cgf@redhat.com>
1909
1910         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1911         Add XP.
1912
1913 2002-09-06  Mark Kettenis  <kettenis@gnu.org>
1914
1915         * i386-tdep.c (i386_register_virtual_type,
1916         i386_register_convertible, i386_register_convert_to_virtual,
1917         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1918         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1919         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
1920         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1921         Don't set push_arguments twice.
1922
1923         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1924         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1925         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1926         sigtramp_end to NULL.
1927         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1928         defines.
1929         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1930
1931         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1932         whitespace.
1933
1934         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1935         * gdbarch.h, gdbarch.c: Re-generate.
1936         * blockframe.c (find_pc_sect_partial_function): Convert to use
1937         SIGTRAMP_START_P predicate.
1938
1939 2002-09-05  Michael Snyder  <msnyder@redhat.com>
1940
1941         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1942         generic_dummy_frame method and old method.  Also distinguish
1943         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1944         (arm_extract_return_value): Use new regcache method.
1945
1946         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1947         adjustment that doesn't conform to the ABI.
1948         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1949         saved regcache, not from current regcache.
1950
1951 2002-09-05  Andrew Cagney  <ac131313@redhat.com>
1952
1953         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
1954         * README: Update.
1955
1956 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
1957
1958         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1959         if arm_apcs_32 is false.
1960
1961 2002-09-04  Andrew Cagney  <ac131313@redhat.com>
1962
1963         GDB 5.3 branch created.
1964
1965 2002-09-03  Theodore A. Roth  <troth@verinet.com>
1966
1967         * gdb/avr-tdep.c (avr_gdbarch_init): Use
1968         generic_unwind_get_saved_register.
1969
1970 2002-09-03  David Carlton  <carlton@math.stanford.edu>
1971
1972         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1973         argument (PR gdb/653).  Update call to smash_to_method_type.
1974         (read_structure_scope): Update call to dwarf2_add_member_fn.
1975
1976 2002-09-03  Michal Ludvig  <mludvig@suse.cz>
1977
1978         * x86-64-linux-tdep.c: Include gdb_string.h
1979         * x86-64-linux-nat.c: Ditto.
1980
1981 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1982
1983         * ada-exp.y (yyname, yyrule): Remap global variables that appear
1984         when YYDEBUG is set to 1.  
1985         * c-exp.y: Likewise.
1986         * f-exp.y: Likewise.
1987         * jv-exp.y: Likewise.
1988         * m2-exp.y: Likewise.
1989         * p-exp.y: Likewise.
1990
1991 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
1992
1993         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1994         dependency list.
1995         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1996         solib_svr4_fetch_link_map_offsets to
1997         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1998         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1999         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2000         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2001         solib-svr4.o, and solib-legacy.o.
2002         * config/i386/tm-nbsd.h: Include solib.h.
2003
2004 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2005
2006         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
2007         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
2008         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
2009         comment noting that this needs its own target configuration.
2010         * config/i386/nbsd.mt: New file.
2011         * config/i386/nbsdaout.mt: Remove.
2012         * config/i386/nbsdelf.mt: Ditto.
2013         * config/i386/tm-nbsdaout.h: Ditto. 
2014
2015 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2016
2017         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
2018         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
2019         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2020         tdep->sigtramp_end.
2021         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
2022         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2023         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2024
2025 2002-09-02  Jason Thorpe  <thorpej@wasabisystems.com>
2026
2027         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2028         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2029         * i386-tdep.h (i386bsd_init_abi): New prototype.
2030         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2031         function declaration.
2032         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2033         for NetBSD-a.out or NetBSD-ELF.
2034         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2035         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2036         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2037         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
2038         and nbsd-tdep.h.
2039         (i386nbsd_pc_in_sigtramp): New function.
2040         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2041         i386nbsd_pc_in_sigtramp.
2042         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2043         and i386nbsdelf_init_abi OS ABI handlers.
2044         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2045         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2046
2047 2002-09-02  Mark Kettenis  <kettenis@gnu.org>
2048
2049         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2050         registers if the target really has them.
2051
2052 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2053
2054         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2055         than nbsd-tdep.h.
2056
2057 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2058
2059         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2060         list.
2061         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2062         (alphanbsd_skip_sigtramp_frame): New functions. 
2063         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2064         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
2065         to alphanbsd_sigcontext_addr. 
2066
2067 2002-08-31  Jason Thorpe  <thorpej@wasabisystems.com>
2068
2069         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2070         list.
2071         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
2072         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2073         nbsd_pc_in_sigtramp. 
2074         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2075         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2076         * nbsd-tdep.c: Include gdb_string.h.
2077         (nbsd_pc_in_sigtramp): New function. 
2078         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
2079         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2080         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2081         ppcnbsd_pc_in_sigtramp. 
2082         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2083         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2084         shnbsd_pc_in_sigtramp. 
2085         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2086         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
2087         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2088
2089 2002-08-30  Pierre Muller  <muller@ics.u-strasbg.fr>
2090
2091         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2092         watchpoints to NULL.
2093         (insert_breakpoints): set val field of watchpoints if NULL.
2094
2095
2096 2002-08-29  Jim Blandy  <jimb@redhat.com>
2097
2098         * symtab.c (lookup_symbol_aux): In the cases where we find a
2099         minimal symbol of an appropriate name and use its address to
2100         select a symtab to read and search, use `name' (as passed to us)
2101         as the demangled name when searching the symtab's global and
2102         static blocks, not the minsym's name.
2103
2104 2002-08-29  Keith Seitz  <keiths@redhat.com>
2105
2106         * stack.c (print_frame_info_base): Always set current_source_symtab
2107         and current_source_line.
2108
2109 2002-08-29  Donn Terry  <donnte@microsoft.com>
2110
2111         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2112
2113 2002-08-28  Keith Seitz  <keiths@redhat.com>
2114
2115         * stack.c (select_frame): Add FIXME concerning selected-frame
2116         events.
2117         (select_frame_command): Send selected-frame-level-changed
2118         event notification, but only if the level actually changed.
2119         (up_silently_base): Add selected-frame-level-changed event
2120         notification.
2121         (down_silently_base): Likewise.
2122
2123 2002-08-28  Andrew Cagney  <ac131313@redhat.com>
2124
2125         * Makefile.in: Update dependencies for all gdb/*.c files.
2126
2127 2002-08-27  Tom Tromey  <tromey@redhat.com>
2128
2129         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2130         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2131         Update dependencies.
2132         * i387-tdep.c: Include gdb_string.h.
2133         * osabi.c: Likewise.
2134         * i386-linux-nat.c: Likewise.
2135         * lin-lwp.c: Likewise.
2136         * ax-gdb.c: Likewise.
2137         * signals/signals.c: Likewise.
2138         * jv-valprint.c: Likewise.
2139         * p-lang.c: Likewise.
2140         * c-valprint.c: Likewise.
2141         * cp-abi.c: Likewise.
2142
2143 2002-08-27  Elena Zannoni  <ezannoni@redhat.com>
2144
2145         * cli/cli-script.h (copy_command_lines): Export.
2146         * breakpoint.c: Include cli/cli-script.h.
2147         * Makefile.in (breakpoint.o): Update dependencies.
2148
2149 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2150
2151         * breakpoint.c (insert_breakpoints): Protect all references
2152         to 'process_warning'.  Shorten long lines.
2153
2154 2002-08-26  Joel Brobecker  <brobecker@gnat.com>
2155
2156         * cli/cli-script.c (copy_command_lines): New function.
2157         * defs.h (copy_command_lines): Export.
2158         * testsuite/gdb.base/commands.exp: New tests for commands
2159         attached to a temporary breakpoint, and for commands that
2160         delete the breakpoint they are attached to.
2161         
2162 2002-08-26  Michael Snyder  <msnyder@redhat.com>
2163
2164         * breakpoint.c (bpstat_stop_status): Instead of copying the 
2165         pointer to the breakpoint commands struct, make a new copy
2166         of the struct and point to that.
2167         (bpstat_clear): Free the commands struct.
2168         (bpstat_clear_actions): Free the commands struct.
2169         (bpstat_do_actions): Free the command actions.  Also execute
2170         the local cleanups, instead of deleting them.
2171         (delete_breakpoint): Leave the commands field of the bpstat
2172         chain alone -- it will be freed later.
2173
2174 2002-08-26  Kevin Buettner  <kevinb@redhat.com>
2175
2176         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2177         deleted in 2002-08-20 commit.  This function is still used by
2178         ppc-linux-nat.c.
2179
2180 2002-08-26  Keith Seitz  <keiths@redhat.com>
2181
2182         * gdb-events.sh: Add selected-frame-level-changed event.
2183         * gdb-events.c: Regenerated.
2184         * gdb-events.h: Regenerated.
2185         
2186 2002-08-26  Stephane Carrez  <stcarrez@nerim.fr>
2187
2188         Fix PR gdb/393:
2189         * inflow.c (terminal_save_ours): New function to save terminal
2190         settings.
2191         * inferior.h (terminal_save_ours): Declare.
2192         * target.c (debug_to_terminal_save_ours): New function.
2193         (cleanup_target): Defaults to_terminal_save_ours.
2194         (update_current_target): Inherit to_terminal_save_ours.
2195         (setup_target_debug): Set to_terminal_save_ours.
2196         * target.h (target_terminal_save_ours): New to save terminal settings.
2197         (target_ops): New member to_terminal_save_ours.
2198         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2199         * hpux-thread.c (init_hpux_thread_ops): Likewise.
2200         * inftarg.c (init_child_ops): Likewise.
2201         * m3-nat.c (init_m3_ops): Likewise.
2202         * procfs.c (init_procfs_ops): Likewise.
2203         * wince.c (init_child_ops): Likewise.
2204         * win32-nat.c (init_child_ops): Likewise.
2205         * sol-thread.c (init_sol_thread_ops): Likewise.
2206
2207 2002-08-26  Mark Kettenis  <kettenis@gnu.org>
2208
2209         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
2210         use regcache_* functions.
2211         (i386_gdbarch_init): Set store_return_value instead of
2212         deprecated_store_return_value.
2213
2214         * regcache.c (regcache_raw_write_signed,
2215         regcache_raw_write_unsigned): New functions.
2216         * regcache.h (regcache_raw_write_signed,
2217         regcache_raw_write_unsigned): New prototypes.
2218
2219 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2220
2221         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2222         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2223         source file dependencies.  Cleanup corresponding generator rules.
2224
2225 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2226
2227         * regcache.h (register_offset_hack): Declare.
2228         (regcache_cooked_read_using_offset_hack): Declare.
2229         (regcache_cooked_write_using_offset_hack): Declare.
2230
2231         * regcache.c (register_offset_hack): New function.
2232         (regcache_cooked_read_using_offset_hack): New function.
2233         (regcache_cooked_write_using_offset_hack): New function.
2234         (regcache_dump): Check that the registers, according to their
2235         offset, are packed hard against each other.
2236         (cooked_xfer_using_offset_hack): New function.
2237
2238 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2239
2240         * regcache.c (struct regcache_descr): Add field register_type.
2241         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2242         in as a parameter
2243         (init_regcache_descr): Initialize register_type.  Pass the descr
2244         to init_legacy_regcache_descr.  Use register_type instead of
2245         REGISTER_VIRTUAL_TYPE.
2246         (register_type): New function.
2247         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2248         * regcache.h (register_type): Declare.
2249
2250 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2251
2252         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2253         instead of deprecated_store_return_value.  Fix fallout from
2254         2002-08-23 Andrew Cagney <cagney@redhat.com>.
2255
2256 2002-08-25  Andrew Cagney  <ac131313@redhat.com>
2257
2258         * regcache.c (max_register_size): New function.
2259         (init_legacy_regcache_descr): Ensure that max_register_size is
2260         large enough for REGISTER_VIRTUAL_SIZE.
2261         * regcache.h (max_register_size): Declare.
2262
2263 2002-08-24  Andrew Cagney  <ac131313@redhat.com>
2264
2265         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2266         store_return_value.
2267         (e500_extract_return_value): Change type of valbuf pointer to
2268         void.
2269
2270 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2271
2272         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2273         workaround.
2274
2275         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2276         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2277         long long) to prevent compiler warning on 64-bit systems.
2278
2279 2002-08-23  Andrew Cagney  <cagney@redhat.com>
2280
2281         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2282         (DEPRECATED_STORE_RETURN_VALUE): New method.
2283         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2284         * gdbarch.h, gdbarch.c: Re-generate.
2285
2286         * values.c (set_return_value): Pass current_regcache to
2287         STORE_RETURN_VALUE.
2288         * arch-utils.h (legacy_store_return_value): Declare.
2289         * arch-utils.c (legacy_store_return_value): New function.
2290         (legacy_extract_return_value): Update parameters.
2291
2292         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2293         STORE_RETURN_VALUE.
2294         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2295         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2296         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2297         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2298         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2299         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2300         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2301         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2302         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2303         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2304
2305         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2306         * i386-tdep.c (i386_extract_return_value): Update.
2307         * arch-utils.c (legacy_extract_return_value): Update.
2308         * frv-tdep.c (frv_gdbarch_init): Update.
2309         * cris-tdep.c (cris_gdbarch_init): Update.
2310         * d10v-tdep.c (d10v_gdbarch_init): Update.
2311         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2312         * m68k-tdep.c (m68k_gdbarch_init): Update.
2313         * mcore-tdep.c (mcore_gdbarch_init): Update.
2314         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2315         * s390-tdep.c (s390_gdbarch_init): Update.
2316         * sparc-tdep.c (sparc_gdbarch_init): Update.
2317         * sh-tdep.c (sh_gdbarch_init): Update.
2318         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2319         * v850-tdep.c (v850_gdbarch_init): Update.
2320         * avr-tdep.c (avr_gdbarch_init): Update.
2321         * ia64-tdep.c (ia64_gdbarch_init): Update.
2322         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2323         * vax-tdep.c (vax_gdbarch_init): Update.
2324         * alpha-tdep.c (alpha_gdbarch_init): Update.
2325         * arm-tdep.c (arm_gdbarch_init): Update.
2326         * mips-tdep.c (mips_gdbarch_init): Update.
2327         * i386-tdep.c (i386_gdbarch_init): Update.
2328
2329 2002-08-23  Andrew Cagney  <ac131313@redhat.com>
2330
2331         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2332         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2333
2334 2002-08-24  Mark Kettenis  <kettenis@gnu.org>
2335
2336         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
2337         problems.
2338
2339 2002-08-23  Joel Brobecker  <brobecker@gnat.com>
2340
2341         * infrun.c (handle_inferior_event): Move a comment outside of a
2342         function call, in order to avoid indent reformatting this part
2343         of the code in an unreadable way.
2344
2345 2002-08-23  Grace Sainsbury  <graces@redhat.com>
2346
2347         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2348         when breakpoints fail. Move general breakpoint error messages to
2349         insert_breakpoints.  
2350         * breakpoint.c (insert_breakpoints): Change warnings when
2351         breakpoints are nto inserted to specify the type. Remove call to
2352         memory_error when hardware breakpoints can't be inserted. Remove
2353         multiple calls to warning so all messages are sent to the user at
2354         once.
2355         (delete_breakpoints): Make insert error messsages more explicit.
2356
2357 2002-08-23  Daniel Jacobowitz  <drow@mvista.com>
2358
2359         * ChangeLog: Move gdbserver entries after GDB 5.2 to
2360         gdbserver/ChangeLog.
2361
2362 2002-08-23  Mark Kettenis  <kettenis@gnu.org>
2363
2364         * i386-tdep.c: Include "objfiles.h".
2365         (i386_svr4_init_abi): Set in_solib_call_trampoline and
2366         skip_trampoline_code.
2367         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2368         (CPLUS_MARKER): Define to '.'.
2369
2370         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2371         member.
2372         (linux_corefile_thread_callback): Increase args->num_notes.
2373         (linux_make_note_section): Initialize thread_args.num_notes, and
2374         use it to determine whether notes for any threads were created.
2375
2376 2002-08-23  Donn Terry  <donnte@microsoft.com>
2377
2378         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2379         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2380         and PCUNKILL.
2381         (write_with_trace): Conditionalize out the switch branch handling
2382         PCSHOLD if the corresponding macro is not defined. Likewise for
2383         PRSABORT and PRSTOP.
2384         This change will be needed by the Interix port.
2385
2386 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2387
2388         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2389         write_register wherever possible instead of manipulating the
2390         register bytes directly.
2391         Assign VALUE_CONTENTS to a variable and use that.
2392         The GPR numbers are now dependent on the architecture.
2393         
2394 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2395
2396         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2397         ev_offset fields.
2398         (skip_prologue): Add support for BookE/e500 instructions.
2399         (e500_extract_return_value): New function.
2400         (frame_get_saved_regs): Add support for saving ev registers and
2401         pseudo gpr's.
2402         (e500_store_return_value): New function.
2403         (rs6000_gdbarch_init): Move up default intializations of
2404         deprecated_extract_return_value and store_return_value.  Overwrite
2405         init of store_return_value with e500 specific version.
2406         Set extract_return_value for e500.
2407         
2408 2002-08-22  Elena Zannoni  <ezannoni@redhat.com>
2409
2410         * blockframe.c (generic_call_dummy_register_unwind): Use
2411         regcache_cooked_read to catch cases in which the variable is
2412         stored in a pseudo register.
2413
2414 2002-08-22  Andrew Cagney  <cagney@redhat.com>
2415
2416         * NEWS: Mention that the i960 has been made obsolete.
2417         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2418         i960-tdep.c
2419         (remote-nrom.o): Obsolete target.
2420         (remote-nindy.o, i960-tdep.o): Ditto.
2421         * remote-nrom.c: Make file obsolete.
2422         * remote-nindy.c, remote-vx960.c: Ditto.
2423         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2424         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2425         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2426         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2427         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2428         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2429         i960-*-vxworks* obsolete.
2430         * MAINTAINERS: Note that the i960 is obsolete.
2431
2432 2002-08-21  Corinna Vinschen  <vinschen@redhat.com
2433
2434         * aix-thread.c (aix_thread_detach): Disable thread debugging on
2435         detach to allow reinitialization.
2436
2437 2002-08-22  Andrew Cagney  <ac131313@redhat.com>
2438
2439         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2440         attempt).
2441
2442 2002-08-22  Jim Blandy  <jimb@redhat.com>
2443
2444         * coffread.c (coff_symfile_read): Don't try to read the line
2445         number table from disk if the image file doesn't have a symbol
2446         table; we'll never actually look at the info anyway, and Windows
2447         ships DLL's with bogus file offsets for the line number data.
2448
2449 2002-08-21  Elena Zannoni  <ezannoni@redhat.com>
2450
2451         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2452         an e500 executable.
2453
2454 2002-08-21  Michael Snyder  <msnyder@redhat.com>
2455
2456         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2457         (MSYMBOL_SIZE): Replace macro with function.
2458         (DEFAULT_MIPS_TYPE): Delete unused macro.
2459         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2460         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2461
2462 2002-08-21  Jim Blandy  <jimb@redhat.com>
2463
2464         * valops.c (value_cast): Simplify and correct logic for doing a
2465         static cast from a pointer to a base class to a pointer to a
2466         derived class.
2467
2468 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2469
2470         * infcmd.c (default_print_registers_info): Replace
2471         do_registers_info.
2472         (registers_info): Use gdbarch_print_registers_info instead of
2473         DO_REGISTERS_INFO.
2474         * inferior.h (default_print_registers_info): Replace
2475         do_registers_info.
2476         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2477         (DO_REGISTERS_INFO): Change to a predicate function.
2478         * gdbarch.h, gdbarch.c: Regenerate.
2479         
2480 2002-08-21  Keith Seitz  <keiths@redhat.com>
2481
2482         * gdb-events.sh: Add target-changed event.
2483         * gdb-events.c: Regenerated.
2484         * gdb-events.c: Regenerated.
2485         * valops.c (value_assign): Add target-changed event notification
2486         to inlval_register, lval_memory, and lval_reg_frame_relative.
2487
2488 2002-08-21  Joel Brobecker  <brobecker@gnat.com>
2489
2490         * NEWS: Add an entry regarding the improvement of the next/step
2491         operation on Alpha Tru64 multi-processor machines.
2492
2493 2002-08-21  Andrew Cagney  <ac131313@redhat.com>
2494
2495         * Makefile.in: Update dependencies for mi/ cli/ and tui/
2496         directores.
2497         * Makefile.in: Update all _h macro definitions.
2498         * Makefile.in (install-gdbtk): Move to install section.
2499         (rdi-share/libangsd.a): Move to end of file.
2500
2501 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2502
2503         * frame.c (frame_register_unwind): When a register, set addrp to
2504         the register's byte.
2505
2506 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2507
2508         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2509         used locally, so move them from the target machine header to here.
2510         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
2511         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
2512         Make static.
2513         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2514
2515 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2516
2517         * NEWS: Mention that the Apollo line was made obsolete.
2518         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2519         m68*-hp-hpux* obsolete.
2520         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2521         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2522         * buildsym.c (make_blockvector): Make static.
2523         * buildsym.h (make_blockvector): Make extern declaration obsolete.
2524         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2525         (ALLDEPFILES): Remove dstread.c.
2526         (dstread.o): Obsolete make rule.
2527         * dstread.c: Makefile obsolete.
2528         * dst.h: Ditto.
2529         * config/m68k/hp300hpux.mt: Ditto.
2530         * config/m68k/hp300hpux.mh: Ditto.
2531         * config/m68k/hp300bsd.mt: Ditto.
2532         * config/m68k/hp300bsd.mh: Ditto.
2533         * config/m68k/apollo68b.mt: Ditto.
2534         * config/m68k/apollo68v.mh: Ditto.
2535         * config/m68k/apollo68b.mh: Ditto.
2536
2537 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2538
2539         * mips-tdep.c (mips_in_return_stub): Make static.
2540         (mips_gdbarch_init): Set in_solib_return_trampoline.
2541         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2542
2543 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2544
2545         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2546         * gdbarch.c, gdbarch.h: Regenerate.
2547         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2548         Add.
2549         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2550
2551 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2552
2553         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2554         (mips_gdbarch_init): Set skip_trampoline_code, 
2555         in_solib_call_trampoline.
2556         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2557         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2558
2559 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2560
2561         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2562
2563         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2564         vector type for ev registers.
2565         (e500_pseudo_register_read): New function.
2566         (e500_pseudo_register_write): New function.
2567         (e500_dwarf2_reg_to_regnum): New function.
2568         (PPC_UISA_NOFP_SPRS): New macro.
2569         (PPC_EV_REGS): New macro.
2570         (PPC_GPRS_PSEUDO_REGS): New macro.
2571         (registers_e500): New register set for e500.
2572         (variants): Add e500 variant.
2573         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2574         before setting architectural dependent variations.  Initialize ev
2575         registers numbers.  Add case for e500 architecture.  Set the
2576         number of pseudo registers.
2577
2578 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2579
2580         * rs6000-tdep.c: Clean up comments.
2581
2582 2002-08-20  Andrew Cagney  <cagney@redhat.com>
2583
2584         * h8300-tdep.c: Re-indent file.
2585
2586 2002-08-20  Jim Blandy  <jimb@redhat.com>
2587
2588         * Makefile.in (LDFLAGS): Allow the configure script to establish a
2589         default for this.
2590
2591 2002-08-20  Keith Seitz  <keiths@redhat.com>
2592
2593         * breakpoints.c (watch_command_1): Use internal breakpoint
2594         when setting a watchpoint_scope breakpoint.
2595
2596 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2597
2598         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2599         (build_builtin_type_vec64i): Ditto.
2600         (build_builtin_type_vec128): Ditto.
2601         (build_builtin_type_vec128i): Ditto.
2602
2603 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2604
2605         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2606         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2607         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2608         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2609         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2610         CALL_DUMMY_ADDRESS): Delete.
2611         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2612         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2613         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
2614         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
2615         push_return_address.
2616         (mips_register_raw_size, mips_eabi_use_struct_convention, 
2617         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2618         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2619         mips_init_extra_frame_info, mips_eabi_push_arguments, 
2620         mips_n32n64_push_arguments, mips_push_return_address,
2621         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2622         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2623
2624 2002-08-19  Michael Snyder  <msnyder@redhat.com>
2625
2626         * mips-tdep.c (mips_frame_num_args): New function.
2627         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2628         frame_saved_pc, frame_args_address, frame_locals_address, 
2629         frame_num_args, and frame_args_skip.
2630         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2631         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
2632         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2633         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2634
2635 2002-08-20  Michael Snyder  <msnyder@redhat.com>
2636
2637         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2638         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2639         * mips-tdep.c (mips_store_struct_return): New function.
2640         (mips_extract_struct_value_address): New function.
2641         (mips_gdbarch_init): Set store_struct_return and
2642         extract_struct_value_address.
2643
2644 2002-08-20  David Carlton  <carlton@math.stanford.edu>
2645
2646         * dwarf2read.c (dwarf2_build_psymtabs): Check that
2647         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2648         (read_file_scope): Check that line_header is nonzero before
2649         decoding macro information.
2650
2651 2002-08-20  Mark Kettenis  <kettenis@gnu.org>
2652
2653         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2654         flag the general-purpose registers as floating-point on targets
2655         that don't support the floating-point registers.
2656
2657 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2658
2659         * rs6000-tdep.c (altivec_register_p): Delete.
2660         (rs6000_do_altivec_registers): Delete.
2661         (rs6000_altivec_registers_info): Delete.
2662         (rs6000_do_registers_info): Delete.
2663         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2664         (rs6000_gdbarch_init): Remove setting of do_registers_info.
2665
2666 2002-08-20  Elena Zannoni  <ezannoni@redhat.com>
2667
2668         * infcmd.c (do_registers_info): Print vector registers in hex
2669         format only.
2670         (print_vector_info): Check that printing registers
2671         makes sense.
2672         (print_float_info): Ditto.
2673
2674 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2675
2676         * mips-tdep.c (mips_gdbarch_init): Update.
2677         (mips_o32_extract_return_value): Rewrite.
2678         (mips_o32_store_return_value): Rewrite.
2679         (mips_o32_xfer_return_value): New function.
2680         (mips_xfer_register): Tweak debug print message.  Allow for
2681         buf_offset when dumping the value transfered.
2682
2683 2002-08-20  Andrew Cagney  <ac131313@redhat.com>
2684
2685         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2686         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2687         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2688         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2689         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2690
2691 2002-08-14  Michael Snyder  <msnyder@redhat.com>
2692
2693         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2694
2695 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2696
2697         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2698         register.
2699         (P): New macro to define a register as a pseudo register.
2700         (R, R4, R8, R16, FR32, R64, R0): Updated.
2701         (struct variant): Add new fields for number of pseudo registers
2702         and number of total registers.
2703         (tot_num_registers): New macro replacing....
2704         (num_registers): ...deleted macro.
2705         (num_registers): New function.
2706         (num_pseudo_registers): New function.
2707         (variants): Update all variants to intialize new fields correctly.
2708         Postpone initialization of number of pseudo regs and real regs.
2709         (init_variants): New function.
2710         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
2711         registers offsets.
2712
2713 2002-08-19  David Carlton  <carlton@math.stanford.edu>
2714
2715         * valops.c (search_struct_field): Change error message to treat
2716         return value of 0 from value_static_field as meaning that field is
2717         optimized out.
2718         (value_struct_elt_for_reference): Ditto.
2719         * values.c (value_static_field): Treat an unresolved location the
2720         same as a nonexistent symbol.  Fix PR gdb/635.
2721         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2722         enclosed.  Fix PR gdb/574.
2723         * MAINTAINERS: Add self to Write After Approval list.
2724
2725 2002-08-19  Andrew Cagney  <ac131313@redhat.com>
2726
2727         * mips-tdep.c (mips_xfer_register): New function.
2728         (mips_n32n64_extract_return_value): Rewrite.
2729         (mips_gdbarch_init): For N32 and N64, set extract_return_value
2730         instead of deprecated_extract_return_value.
2731
2732 2002-08-19  Elena Zannoni  <ezannoni@redhat.com>
2733
2734         * rs6000-tdep.c (TDEP): Delete macro.
2735         (branch_dest): Replace use of TDEP macro with its body.
2736         (rs6000_pop_frame): Ditto.
2737         (rs6000_push_arguments): Ditto.
2738         (rs6000_skip_trampoline_code): Ditto.
2739         (rs6000_frame_saved_pc): Ditto.
2740         (rs6000_frame_chain): Ditto.
2741         (rs6000_register_name): Ditto.
2742         (rs6000_register_byte): Ditto.
2743         (rs6000_register_raw_size): Ditto.
2744         (rs6000_register_virtual_type): Ditto.
2745         (rs6000_register_convertible): Ditto.
2746         (rs6000_convert_from_func_ptr_addr): Ditto.
2747
2748 2002-08-19  Daniel Jacobowitz  <drow@mvista.com>
2749
2750         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2751         conditionally.
2752         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2753         MIPS_LINUX_JB_ELEMENT_SIZE.
2754         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2755         for MAX_REGISTER_RAW_SIZE arrays.
2756         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2757         MIPS_LINUX_JB_ELEMENT_SIZE.
2758
2759 2002-08-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2760
2761         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2762
2763 2002-08-19  Aidan Skinner <aidan@velvet.net>
2764
2765         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2766         ada-valprint.c ada-tasks.c.
2767         (YYFILES): Add ada-exp.y.
2768         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2769         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2770         (ada-exp.tab.o): New target.
2771                 
2772 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2773
2774         * regcache.c (regcache_xfer_part): New function.
2775         (regcache_raw_read_part): New function.
2776         (regcache_raw_write_part): New function.
2777         (regcache_cooked_read_part): New function.
2778         (regcache_cooked_write_part): New function.
2779         * regcache.h (regcache_raw_read_part): Declare.
2780         (regcache_raw_write_part): Declare.
2781         (regcache_cooked_read_part): Declare.
2782         (regcache_cooked_write_part): Declare.
2783
2784 2002-08-18  Daniel Jacobowitz  <drow@mvista.com>
2785
2786         * remote.c (remote_open_1): Add async_p.
2787         (remote_async_open_1): Delete.
2788         (open_remote_target): Delete.
2789         (remote_open, extended_remote_open): Update calls to remote_open_1.
2790         (remote_async_open, extended_remote_async_open): Call
2791         remote_open_1 instead of remote_async_open_1.
2792
2793 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2794
2795         * blockframe.c: Fix a few coding standard violations.
2796
2797 2002-08-19  Mark Kettenis  <kettenis@gnu.org>
2798
2799         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2800         here from ...
2801         * config/i386/tm-i386sco5.h: ... here.  File removed.
2802         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2803
2804         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2805         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2806         (TM_FILE): Set to tm-i386.h.
2807         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2808         * config/i386/tm-i386v.h: Remove file.
2809         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2810         instead of "i386/tm-i386v.h".
2811         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2812         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2813         "i386/tm-i386v.h".
2814         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2815         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2816         "i386/tm-i386.h".
2817
2818 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2819
2820         * config/i386/nm-i386v.h: Add protection against
2821         multiple-inclusion.
2822         (i386_register_u_addr): Remove prototype.
2823         (register_u_addr): New prototype.
2824         (REGISTER_U_ADDR): Redefine accordingly.
2825         * i386v-nat.c: Improve several comments.
2826         (i386_register_u_addr): Change signature and rename to
2827         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
2828         ubase variable.
2829
2830 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2831
2832         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2833         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2834         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2835         deprecated_extract_return_value.
2836         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2837         rename mips_o32o64_push_arguments.
2838         (mips_gdbarch_init): Update.
2839         (mips_extract_return_value): Delete.
2840         (mips_o32_extract_return_value): Clone mips_extract_return_value.
2841         (mips_o64_extract_return_value): Clone mips_extract_return_value.
2842         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2843         (mips_n32n64_extract_return_value): Clone
2844         mips_extract_return_value.
2845         (mips_store_return_value): Delete.
2846         (mips_o32_store_return_value): Clone mips_store_return_value.
2847         (mips_o64_store_return_value): Clone mips_store_return_value.
2848         (mips_eabi_store_return_value): Clone mips_store_return_value.
2849         (mips_n32n64_store_return_value): Clone mips_store_return_value.
2850
2851 2002-08-18  Aidan Skinner <aidan@velvet.net>
2852
2853         * ada-lang.c: Use gdb_string.h instead of <string.h>.
2854         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2855                 
2856 2002-08-18  Aidan Skinner <aidan@velvet.net>
2857
2858         * ada-lang.c: Run through gdb_indent.sh.
2859         * ada-lang.h: Run through gdb_indent.sh.
2860         * ada-tasks.c: Run through gdb_indent.sh.
2861         * ada-typeprint.c: Run through gdb_indent.sh.
2862         * ada-valprint.c: Run through gdb_indent.sh.
2863
2864 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2865
2866         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2867         ABI.
2868
2869 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2870
2871         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2872
2873         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2874         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2875
2876         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2877         write_register_gen instead of write_register_bytes.
2878
2879         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2880         i[3456]-*-osf1mk* configurations have been made obsolete.
2881         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2882         i[3456]86-*-osf1mk* hosts obsolete.
2883         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2884         targets obsolete.
2885         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2886         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2887         config/i386/i386m3.mt, config/i386/nm-m3.h,
2888         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2889         config/i386/i386mk.mh, config/i386/i386mk.mt,
2890         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2891         obsolete.
2892         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2893         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2894         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2895
2896 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2897
2898         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2899         (hppa_value_returned_from_stack): Declare.
2900         (hppa_extract_return_value): Declare.
2901         * config/pa/hppa.mt: New file.
2902         * configure.tgt: Recognize hppa*-*-*.
2903         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
2904
2905 2002-08-18  Mark Kettenis  <kettenis@gnu.org>
2906
2907         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2908         comment.
2909
2910 2002-08-17  Mark Kettenis  <kettenis@gnu.org>
2911
2912         * top.c (gdb_rl_operate_and_get_next): Make sure
2913         operate-and-get-next functions correctly even when the history
2914         list is completely filled.
2915
2916 2002-08-18  Andrew Cagney  <ac131313@redhat.com>
2917
2918         * MAINTAINERS (Target Instruction Set Architectures): Rename
2919         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
2920         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
2921         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
2922         already listed under Host/Native.
2923
2924         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2925         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
2926         mips*-*-*.
2927
2928 2002-08-17  Andrew Cagney  <ac131313@redhat.com>
2929
2930         * config/ia64/ia64.mt: New file.
2931         * config/alpha/alpha.mt: New file.
2932         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2933         ia64-linux-gnu.  Mention that ia64-elf is broken.
2934         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2935
2936 2002-08-17  Mark Kettenis  <kettenis@elgar.kettenis.dyndns.org>
2937
2938         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2939         generic_func_frame_valid instead of func_frame_valid.
2940
2941 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2942
2943         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2944         procfs appears to be broken when debugging on multi-processor
2945         machines. So enable software single stepping in order to avoid
2946         using the procfs interface to do next/step operations, using
2947         internal breakpoints instead.
2948
2949         * infrun.c (handle_inferior_event): Readjust the stop_pc by
2950         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2951         make this pc address equal to the value it would have if the
2952         system stepping capability was used. Also set a new flag used
2953         to ensure that we don't readjust the PC one more time later.
2954
2955         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2956         address by DECR_PC_AFTER_BREAK when software single step is
2957         in use for this architecture, as this has already been taken
2958         care of in handle_inferior_event().
2959
2960 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2961
2962         * infrun.c (handle_inferior_event): Minor reformatting, to make
2963         a rather long condition expression easier to read.
2964
2965 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2966
2967         * Makefile.in (gdbtk.o): Move to end of file.
2968         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2969         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2970         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2971         (gdbtk-wrapper.o, gdbres.o): Ditto.
2972
2973 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
2974
2975         * Makefile.in (copying.o): Separate out compile rule.
2976         (hpux-thread.o, procfs.o, signals.o): Ditto.
2977         (v850ice.o, z8k-tdep.o): Ditto.
2978         (tui-file.o): Move to TUI section.
2979         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2980         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2981
2982 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2983
2984         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2985         skip_trampoline_code, for better namespace-proofing.   
2986
2987         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2988
2989 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2990
2991         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2992
2993 2002-08-16  Joel Brobecker  <brobecker@gnat.com>
2994
2995         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2996         signal, check whether we hit a breakpoint before checking for a
2997         single step breakpoint. Otherwise, GDB fails to notice that a
2998         breakpoint has been hit when stepping onto a breakpoint.
2999
3000 2002-08-16  Keith Seitz  <keiths@redhat.com>
3001
3002         * gdb-events.sh (clear_gdb_event_hooks): New function.
3003         * gdb-events.c: Regenerate.
3004         * gdb-events.h: Regenerate.
3005
3006 2002-08-16  Andrew Cagney  <ac131313@redhat.com>
3007
3008         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3009         not_a_sw_breakpoint.
3010         * breakpoint.h (bpstat_stop_status): Add parameter names.
3011
3012 2002-08-16  Grace Sainsbury  <graces@redhat.com>
3013
3014         * remote.c (remote_insert_hw_breakpoint)
3015         (remote_remove_hw_breakpoint): Fix calculation of length field
3016         for Z-packet.
3017
3018 2002-08-15  Michael Snyder  <msnyder@redhat.com>
3019
3020         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3021         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3022         (supply_fpregset): Ditto.
3023         
3024         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
3025         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
3026         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3027         (TARGET_READ_SP): Delete.
3028         (DO_REGISTERS_INFO): Delete.
3029         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3030         Delete.
3031         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3032         from macros to functions.
3033
3034         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3035         (mips_register_convertible, mips_register_convert_to_virtual,
3036         mips_register_convert_to_raw): Make static.
3037         (mips_read_sp): New function.
3038         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3039         (mips_do_registers_info): Make static.
3040         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3041         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3042         (mips_register_convert_from_type, mips_register_convert_to_type):
3043         New functions.
3044         (mips_gdbarch_init): Set up function_start_offset, 
3045         register_virtual_size, pc_in_sigtramp.
3046
3047 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3048
3049         * infcmd.c (vector_info): New function.
3050         (_initialize_infcmd): Add command "info vector".
3051         (print_vector_info): New function.
3052
3053         * gdbarch.sh (PRINT_VECTOR_INFO): New method
3054         * gdbarch.h, gdbarch.c: Regenerate.
3055
3056 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3057
3058         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3059         ``print_all''.  Only print vector registers when ``print_all''.
3060
3061 2002-08-15  Andrew Cagney  <ac131313@redhat.com>
3062
3063         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3064         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3065
3066         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3067         Add `args' parameter.
3068         * gdbarch.h, gdbarch.c: Regenerate.
3069         
3070         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3071         
3072         * infcmd.c (float_info): Call print_float_info.
3073         (print_float_info): New function.  By default, print the
3074         floating-point registers.
3075
3076         * arch-utils.h (default_print_float_info): Delete declaration.
3077         * arch-utils.c (default_print_float_info): Delete function.
3078         
3079 2002-08-16  Mark Kettenis  <kettenis@gnu.org>
3080
3081         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3082         out define.
3083
3084         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3085         FRAME.
3086
3087         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3088         * configure.host: Make i[3456]86-*-aix host obsolete.
3089         * configure.tgt: Make i[3456]86-*-aix target obsolete.
3090         * config/i386/i386aix.mh, config/i386/i386aix.mt,
3091         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3092         config/i386/xm-i386aix.h: Make files obsolete.
3093         * i386aix-nat.c: Make file obsolete.
3094         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3095         (i386aix-nat.o): Make target obsolete.
3096
3097         * config/i386/nm-gnu.h: Removed.
3098         * config/i386/nm-i386gnu.h: New file.
3099         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3100         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3101         Moved here from ...
3102         * config/i386/tm-i386gnu.h: ... here.  Removed.
3103         * config/i386/xm-i386gnu.h: Removed.
3104         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3105         (NAT_FILE): Set to nm-i386gnu.h.
3106         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3107         * i386-tdep.c: New file.
3108         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3109         (i386gnu-tdep.o): Specify dependencies.
3110
3111 2002-08-15  Mark Kettenis  <kettenis@gnu.org>
3112
3113         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3114         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3115         Adjust a few comments to reflect reality a bit closer.
3116         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3117         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3118         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3119         target_insert_watchpoint, target_remove_watchpoint):
3120         Move defines to ...
3121         * config/i386/nm-i386sco5.h: ... here.
3122         (kernel_u_size): Add prototype.  Improve a few comments and add
3123         protection against multiple inclusion.
3124         
3125         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3126         out define.
3127
3128         * uw-thread.c (SP_ARG0): Define if not already defined.
3129         * config/i386/tm-i386.h (SO_ARG0): Remove define.
3130
3131         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3132
3133         * config/i386/tm-i386.h: Don't include "regcache.h".
3134
3135         * i387-tdep.h (i387_print_float_info): New prototype.
3136         * i387-tdep.c (print_i387_value, print_i387_ext,
3137         print_i387_status_word, print_i387_control_word): Add `struct
3138         ui_file *' argument and use it for output.
3139         (i387_print_float_info): Renamed from i387_float_info.  Add
3140         `struct gdbarch *' and `struct ui_file *' arguments and use the
3141         latter for output.
3142         * i386-tdep.c: Include "i387-tdep.h".
3143         (i386_gdbarch_init): Set print_float_info.
3144         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3145         (FLOAT_INFO): Remove define.
3146
3147 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3148
3149         * mips-tdep.c (mips_push_arguments): Rename to
3150         mips_eabi_push_arguments, and tune for EABI.
3151         (MIPS_REGS_HAVE_HOME_P): Delete.
3152         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3153         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3154         Delete references to mips_regs_have_home_p.
3155
3156 2002-08-14  Keith Seitz  <keiths@redhat.com>
3157
3158         * Makefile.in (install-gdbtk): Create insight plugin directory.
3159         Install plugins.tcl file.
3160
3161 2002-08-14  Keith Seitz  <keiths@redhat.com>
3162
3163         * configure.in: Move SUBDIRS to near top of the file so that
3164         --enable options may add things to it.
3165         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3166         * configure: Regenerate.
3167
3168 2002-08-13  Michael Snyder  <msnyder@redhat.com>
3169
3170         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
3171         cloned from mips_push_arguments, tuned for o32/o64 ABI.
3172         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3173
3174 2002-08-13  Andrew Cagney  <ac131313@redhat.com>
3175
3176         * vax-tdep.c (vax_get_saved_register): Delete function.
3177         (vax_gdbarch_init): Update.
3178         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3179         (ns32k_gdbarch_init): Update.
3180         * alpha-tdep.c (alpha_get_saved_register): Delete function.
3181         (alpha_gdbarch_init): Update.
3182
3183 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3184
3185         * regcache.c (init_regcache_descr): Overallocate the
3186         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3187         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3188         nr_raw_registers.
3189         (set_register_cached): Add range checking assertions.  Use
3190         current_regcache.
3191
3192 2002-08-13  Mark Kettenis  <kettenis@gnu.org>
3193
3194         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3195         numbers for MMX registers.
3196
3197 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3198
3199         * i386-tdep.c (i386_gdbarch_init): Use
3200         generic_unwind_get_saved_register.
3201
3202 2002-08-13  Kevin Buettner  <kevinb@redhat.com>
3203
3204         * procfs.c (procfs_can_use_hw_breakpoint): New function.
3205         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3206         target vector.
3207         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3208         Delete.  Add comment regarding this now-deleted target method.
3209
3210 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3211
3212         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3213         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3214         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3215         real PC and the page number (if it's within the memory bank window).
3216         (m68hc11_pseudo_register_write): Likewise when saving.
3217         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3218         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3219         (m68hc11_register_raw_size): And use 32-bit for it.
3220         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3221         16K memory bank is used by the prog; also use the virtual pc.
3222
3223 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3224
3225         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3226         (m68hc11_gdbarch_init): Install it in gdbarch.
3227         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3228         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3229         (MSYMBOL_SIZE): New for documentation.
3230         (insn_return_kind): Enum to specify how a function returns.
3231         (frame_extra_info): Cleanup and record the return mode.
3232         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
3233         register in address computation.
3234         (m68hc11_get_return_insn): New to obtain the return instruction used
3235         by the function.
3236         (m68hc11_frame_init_saved_regs): Take into account the return
3237         instruction used by the function for far and interrupt functions.
3238         (m68hc11_init_extra_frame_info): Take into account page register.
3239         (m68hc11_frame_args_address): Adjust according to the return mode.
3240         (show_regs): Print page register only when it's used.
3241
3242 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3243
3244         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3245         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3246         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3247         registers.
3248         (m68hc11_register_raw_size): Likewise.
3249
3250 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3251
3252         * i386-tdep.c (i386_register_name): Handle mmx registers.
3253         (mmx_regnum_p): New function.
3254         (i386_mmx_names): New array.
3255         (mmx_num_regs): New variable.
3256         (i386_pseudo_register_read): New function.
3257         (i386_pseudo_register_write): New function.
3258         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3259
3260         * regcache.c (regcache_raw_read_unsigned): New function.
3261         (regcache_raw_read_signed): New function.
3262         * regcache.h (regcache_raw_read_unsigned): Declare.
3263         (regcache_raw_read_signed): Declare.
3264
3265 2002-08-13  Andrew Cagney  <cagney@redhat.com>
3266
3267         * regcache.c (regcache_raw_read_as_address): Delete function.
3268         (regcache_cooked_read_signed): New function.
3269         (regcache_cooked_read_unsigned): New function.
3270         * regcache.h (regcache_cooked_read_signed): Declare.
3271         (regcache_cooked_read_unsigned): Declare.
3272         (regcache_raw_read_as_address): Delete declaration.
3273
3274         * blockframe.c (generic_read_register_dummy): Use
3275         regcache_cooked_read_unsigned.
3276         * i386-tdep.c (i386_extract_struct_value_address): Use
3277         regcache_cooked_read_unsigned.
3278
3279 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3280
3281         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3282         double sizes according to ELF ABI flags.
3283         (gdbarch_tdep): Record elf_flags.
3284
3285 2002-08-13  Stephane Carrez  <stcarrez@nerim.fr>
3286
3287         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3288         (m6812_prolog): They can appear in 68HC12 function prologue.
3289         (m68hc11_frame_chain): Cleanup.
3290
3291 2002-08-12  Andrew Cagney  <cagney@redhat.com>
3292
3293         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3294         declarations.
3295         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3296         (i386_linux_register_raw_size): Delete function.
3297         (i386_linux_init_abi): Update.
3298         * i386-tdep.c (i386_register_raw_size): Delete function.
3299         (i386_register_byte): Delete function.
3300         (i386_gdbarch_init): Update.
3301         (i386_register_size): Delete array.
3302         (i386_register_offset): Delete array.
3303
3304         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3305         (REGISTER_RAW_SIZE): Delete macro.
3306         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3307         (REGISTER_BYTE): Delete macro.
3308
3309 2002-08-11  Aidan Skinner <aidan@velvet.net>
3310
3311         * ada-lang.c (ada_lookup_partial_symbol)
3312         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3313         prototype names so that grep ^func works properly.
3314
3315         * ada-lang.c (ada_array_element_type)
3316         (ada_lookup_partial_symbol): Fix typos in parameter list.
3317
3318         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3319         Fix prototype names so that grep ^func works properly.
3320         
3321 2002-08-10  Andrew Cagney  <cagney@redhat.com>
3322             Elena Zannoni  <ezannoni@redhat.com>
3323             Martin M. Hunt  <hunt@redhat.com>
3324
3325         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3326         (build_builtin_type_vec128i): Set the vector bit.
3327         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3328         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3329         (build_builtin_type_vec64): New function.
3330         (build_builtin_type_vec64i): New function.
3331         (build_gdbtypes): Initialize builtin_type_vec64 and
3332         builtin_type_vec64i.
3333
3334 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3335
3336         * regcache.c (regcache_dump): Compare the register offset
3337         with REGISTER_BYTE.
3338         * arch-utils.c (generic_register_byte): New function.
3339         * arch-utils.h (generic_register_byte): Declare.
3340         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3341         * gdbarch.h, gdbarch.c: Regenerate.
3342
3343 2002-08-09  Andrew Cagney  <cagney@redhat.com>
3344
3345         * regcache.c: Include "gdbcmd.h"
3346         (_initialize_regcache): Add commands "maintenance print
3347         registers", "maintenance print raw-registers" and "maintenance
3348         print cooked-registers".
3349         (enum regcache_dump_what): Define.
3350         (dump_endian_bytes): New function.
3351         (regcache_dump): New function.
3352         (regcache_print): New function.
3353         (maintenance_print_registers): New function.
3354         (maintenance_print_raw_registers): New function.
3355         (maintenance_print_cooked_registers): New function.
3356         * Makefile.in (regcache.o): Update dependencies.
3357
3358 2002-08-09  Michael Snyder  <msnyder@redhat.com>
3359
3360         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3361         (mips_push_arguments): Correct some comments.  Use paddr_nz
3362         for printing addresses in debug output.  Replace static
3363         allocation using MAX_REGISTER_RAW_SIZE with alloca.
3364         (mips_n32n64_push_arguments): New function, cloned from
3365         mips_push_arguments and tuned for the n32/n64 ABI.
3366         (mips_push_register): Buffer needs dynamic allocation.
3367         (mips_print_register): Ditto.
3368         (do_gp_register_row): Ditto.
3369         (mips_store_return_value): Ditto.
3370         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3371
3372 2002-08-09  Don Howard  <dhoward@redhat.com>
3373
3374         * memattr.c (mem_info_command): Print special case of upper bound
3375         as max CORE_ADDR + 1.
3376
3377 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3378
3379         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
3380         returns structs by ref if they're too big to fit in two registers.
3381
3382 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3383
3384         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3385         saved regs value.
3386         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3387         mips_find_saved_regs().
3388         (mips_pop_frame): Likewise.
3389
3390 2002-08-09  Kevin Buettner  <kevinb@redhat.com>
3391
3392         * blockframe.c (frame_saved_regs_register_unwind): Revise
3393         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3394         frames are in use.
3395
3396 2002-08-09  Grace Sainsbury  <graces@redhat.com>
3397         
3398         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3399         T-packets; the 'a' is not taken as a register number.
3400         (remote_check_watch_resources, remote_stopped_by_watchpoint)
3401         (remote_stopped_data_address): New functions; add to target
3402         vector.
3403         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3404         prototypes to match other implementations of this
3405         function. replace integer argument with pointer -- the length
3406         field in the Z-packet is the length of what is pointed to or 1 if
3407         pointer is null. Add to target vector.
3408         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3409         target vector.
3410
3411         From Mark Salter:
3412         * remote.c (remote_wait): Add support to extract optional
3413         watchpoint information from T-packet. Ignore unrecognized
3414         optional info in T-packet.
3415         (remote_async_wait): Ditto.
3416
3417 2002-08-09  Corinna Vinschen  <vinschen@redhat.com>
3418
3419         * cli/cli-dump.c: Change fopen modes to use binary open modes
3420         as defined in include/fopen-bin.h throughout.
3421
3422 2002-08-08  Michael Snyder  <msnyder@redhat.com>
3423
3424         * mips-tdep.c: Minor whitespace and indentation clean-ups.
3425
3426 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3427
3428         * doublest.c (store_floating): Avoid floatformat_from_doublest()
3429         assertion failure by returning early after a warning.
3430
3431 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
3432
3433         * mips-tdep.c (mips_find_saved_regs): Make static.
3434         (mips_frame_init_saved_regs): New function.
3435         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3436         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3437         (mips_find_saved_regs): Delete declaration.
3438
3439 2002-08-08  Grace Sainsbury  <graces@redhat.com>
3440
3441         * remote.c (remote_wait, remote_async_wait): Change
3442         thread_num from int to ULONGEST.
3443         (unpack_varlen_hex): Change result parameter from
3444         int * to ULONGEST *.
3445
3446 2002-08-08  Andrew Cagney  <ac131313@redhat.com>
3447
3448         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3449         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3450         powerpc*-*-*.
3451         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3452
3453 2002-08-08  Andrew Cagney  <cagney@redhat.com>
3454
3455         * gcore.c (override_derive_stack_segment): Delete variable.
3456         (preempt_derive_stack_segment): Delete function.
3457         (derive_stack_segment): Delete function.
3458         (default_derive_stack_segment): Renamed to derive_stack_segment.
3459         (override_derive_heap_segment): Delete variable.
3460         (preempt_derive_heap_segment): Delete function.
3461         (derive_heap_segment): Delete function.
3462         (default_derive_heap_segment): Rename to derive_heap_segment.
3463
3464 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3465
3466         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3467         * mips-tdep.c (mips_EABI_use_struct_convention, 
3468         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3469         New functions.  (mips_use_struct_convention): Delete.
3470         (mips_gdbarch_init): set use_gdbarch_convention.
3471
3472 2002-08-06  Michael Snyder  <msnyder@redhat.com>
3473
3474         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3475         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
3476         mips_o32_reg_struct_has_addr): New functions.
3477         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3478
3479 2002-08-07  Andrew Cagney  <ac131313@redhat.com>
3480
3481         * regcache.c (pseudo_register): Delete function.
3482         (fetch_register): Delete function.
3483         (store_register): Delete function.
3484         (regcache_raw_read, legacy_read_register_gen): Use
3485         target_fetch_registers instead of fetch_register.
3486         (legacy_write_register_gen, regcache_raw_write): Use
3487         target_store_register instead of store_register.
3488         (write_register_bytes): Ditto.
3489
3490         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3491         (STORE_PSEUDO_REGISTER): Delete.
3492         * gdbarch.h, gdbarch.c: Regenerate.
3493
3494 2002-08-06  Corinna Vinschen  <vinschen@redhat.com>
3495
3496         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3497         write dump file binary.
3498
3499 2002-08-05  Michael Snyder  <msnyder@redhat.com>
3500
3501         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
3502         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
3503         (mips_gdbarch_init): Set N32 target to be mips64.
3504
3505 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3506
3507         * frame.c (find_saved_register): Break out of loop once saved
3508         register address is found.  Don't mention sparc in loop comment
3509         anymore.
3510
3511 2002-08-06  Kevin Buettner  <kevinb@redhat.com>
3512
3513         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3514         mips_default_saved_regsize to 8.
3515
3516 2002-08-06  Andrew Cagney  <ac131313@redhat.com>
3517
3518         * gcore.c: Do not include <sys/procfs.h>.
3519         * Makefile.in (gcore.o): Update dependencies.
3520
3521 2002-08-06  Andrew Cagney  <cagney@redhat.com>
3522
3523         * configure.tgt: Make arc-*-* obsolete.
3524         * NEWS: Mention that arc-*-* has been identifed as obsolete.
3525         * MAINTAINERS: Make arc-elf obsolete.
3526         * arc-tdep.c: Make file obsolete.
3527         * config/arc/arc.mt: Ditto.
3528         * config/arc/tm-arc.h: Ditto.
3529
3530 2002-08-05  Theodore A. Roth  <troth@verinet.com>
3531
3532         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3533
3534 2002-08-05  Andrew Cagney  <ac131313@redhat.com>
3535
3536         * mcore-tdep.c (mcore_gdbarch_init): Use
3537         generic_unwind_get_saved_register instead of
3538         generic_get_saved_register.
3539         * v850-tdep.c (v850_gdbarch_init): Ditto.
3540         * frv-tdep.c (frv_gdbarch_init): Ditto.
3541         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3542         * s390-tdep.c (s390_gdbarch_init): Ditto.
3543         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3544         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3545         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3546
3547 2002-08-05  Joel Brobecker  <brobecker@gnat.com>
3548
3549         * objfiles.h: Add missing #include "symfile.h"
3550
3551         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3552
3553 2002-08-04  Andrew Cagney  <ac131313@redhat.com>
3554
3555         From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3556         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3557         of FIELD_BITSIZE.
3558
3559 2002-08-04  Daniel Jacobowitz  <drow@mvista.com>
3560
3561         * NEWS: Cleanup and nitpick.
3562
3563 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3564
3565         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
3566
3567 2002-08-03  Andrew Cagney  <ac131313@redhat.com>
3568
3569         * Makefile.in (gdbtk-bp.o): Update dependencies.
3570         (gdbtk-register.o): Ditto.
3571         (gdbtk-varobj.o): Ditto.
3572
3573 2002-08-03  Andrew Cagney  <cagney@redhat.com>
3574
3575         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3576         m68hc11_fetch_pseudo_register.
3577         (m68hc11_pseudo_register_write): Replace
3578         m68hc11_store_pseudo_register.
3579         (m68hc11_gdbarch_init): Update.
3580
3581 Fri Aug  2 15:53:50 2002  Andrew Cagney  <cagney@redhat.com>
3582
3583         * gdbarch.sh: Include "gdb_string.h".
3584         * gdbarch.c: Regenerate.
3585
3586         * regcache.c: Include "gdb_string.h".
3587         * ax-general.c: Ditto.
3588         * varobj.c: Ditto.
3589         * std-regs.c: Ditto.
3590         * fbsd-proc.c: Ditto.
3591         * thread.c: Ditto.
3592
3593         * Makefile.in (regcache.o): Update dependencies.
3594         (thread.o, gdbarch.o): Ditto.
3595         (ax-general.o, gdbarch.o): Ditto.
3596         (varobj.o, std-regs.o): Ditto.
3597         (fbsd-proc.o): Specify dependencies.
3598
3599 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3600
3601         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3602         regnum.
3603         (regcache_cooked_write): Ditto.
3604
3605 2002-08-02  Andrew Cagney  <ac131313@redhat.com>
3606
3607         * regcache.c (regcache_cooked_read): New function.
3608         (regcache_cooked_write): New function.
3609         (read_register_gen): Rewrite using regcache_cooked_read.
3610         (write_register_gen): Rewrite using regcache_cooked_write.
3611
3612         * regcache.h (regcache_cooked_read, regcache_cooked_write):
3613         Declare.
3614
3615 2002-08-02  Andrew Cagney  <cagney@redhat.com>
3616
3617         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3618         Replace the architecture methods register_read and register_write.
3619         * gdbarch.h, gdbarch.c: Regenerate.
3620         * regcache.c (init_regcache_descr): Update.
3621         (read_register_gen): Update.
3622         (write_register_gen): Update.
3623         (supply_register): Update comment.
3624
3625         * sh-tdep.c (sh_gdbarch_init): Update.
3626         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3627         `regcache' and `gdbarch' parameters.  Make `buffer' a void
3628         pointer.  Update code.
3629         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3630         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
3631         void pointer.  Update code.
3632         (sh64_register_write): Delete.
3633         (sh4_register_read): Delete.
3634         (sh64_register_read): Delete.
3635         (sh4_register_write): Delete.
3636         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3637         void pointer, `to' parameter a void pointer.
3638         (sh_sh64_register_convert_to_raw): Ditto.
3639
3640 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3641
3642         * mips-tdep.c (mips_register_virtual_type): Use architecture
3643         invariant return values.
3644
3645 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3646
3647         * linux-proc.c: Include "gdb_string.h".
3648         * Makefile.in (linux-proc.o): Update dependency list.
3649
3650 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3651
3652         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
3653         comment.
3654
3655 2002-08-01  Grace Sainsbury  <graces@redhat.com>
3656
3657         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3658         to_insert_watchpoint, to_remove_watchpoint,
3659         to_stopped_by_watchpoint, to_stopped_data_address,
3660         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3661         target vecctor. Define their corresponding macros so they call
3662         them.
3663         
3664         * target.c: Add default and debug versions of for
3665         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3666         to_insert_watchpoint, to_remove_watchpoint,
3667         to_stopped_by_watchpoint, to_stopped_data_address,
3668         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3669
3670 2002-08-01  Kevin Buettner  <kevinb@redhat.com>
3671
3672         * mips-tdep.c (mips_register_virtual_type): New function.
3673         (mips_gdbarch_init): Register mips_register_virtual_type()
3674         with gdbarch machinery.
3675         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3676         this file instead of tm-bigmips.h.
3677         (MIPS_REGSIZE): Delete this macro.
3678         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
3679         multiarch version in mips-tdep.c will be found.
3680
3681 2002-08-01  Andrew Cagney  <cagney@redhat.com>
3682
3683         * NEWS: Menion that CHILL has been made obsolete.
3684
3685         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3686         * stabsread.c (read_range_type): Ditto.
3687         * gdbtypes.h: Ditto.
3688         * language.c (binop_type_check): Ditto.
3689         (binop_result_type): Ditto.
3690         (integral_type): Ditto.
3691         (character_type): Ditto.
3692         (string_type): Ditto.
3693         (boolean_type): Ditto.
3694         (structured_type): Ditto.
3695         (lang_bool_type): Ditto.
3696         (binop_type_check): Ditto.
3697         * language.h (_LANG_chill): Ditto.
3698         * dwarfread.c (set_cu_language): Ditto.
3699         * dwarfread.c (CHILL_PRODUCER): Ditto.
3700         * dwarfread.c (handle_producer): Ditto.
3701         * expression.h (enum exp_opcode): Ditto.
3702         * eval.c: Ditto for comments.
3703         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3704         * expprint.c (print_subexp): Ditto.
3705         (print_subexp): Ditto.
3706         * valops.c (value_cast): Ditto.
3707         (search_struct_field): Ditto.
3708         * value.h (COERCE_VARYING_ARRAY): Ditto.
3709         * symfile.c (init_filename_language_table): Ditto.
3710         (add_psymbol_with_dem_name_to_list): Ditto.
3711         * valarith.c (value_binop): Ditto.
3712         (value_neg): Ditto.
3713         * valops.c (value_slice): Ditto.
3714         * symtab.h (union language_specific): Ditto.
3715         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3716         (SYMBOL_DEMANGLED_NAME): Ditto.
3717         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3718         * defs.h (enum language): Ditto.
3719         * symtab.c (got_symtab): Ditto.
3720         * utils.c (fprintf_symbol_filtered): Ditto.
3721
3722         * ch-typeprint.c: Make file obsolete.
3723         * ch-valprint.c: Make file obsolete.
3724         * ch-lang.h: Make file obsolete.
3725         * ch-exp.c: Make file obsolete.
3726         * ch-lang.c: Make file obsolete.
3727
3728         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3729         CHILL_LIB.
3730         (TARGET_FLAGS_TO_PASS): Ditto.
3731         (CHILLFLAGS): Obsolete.
3732         (CHILL): Obsolete.
3733         (CHILL_FOR_TARGET): Obsolete.
3734         (CHILL_LIB): Obsolete.
3735         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3736         ch-valprint.c.
3737         (HFILES_NO_SRCDIR): Remove ch-lang.h.
3738         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3739         ch-lang.o.
3740         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3741         targets.
3742
3743 2002-07-31  Joel Brobecker  <brobecker@gnat.com>
3744
3745         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3746         This does not change anything at the moment, but will be helpful
3747         later when full Ada support is integrated.
3748
3749 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3750
3751         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3752         help message.
3753
3754 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3755
3756         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3757         and save it in a local variable.  Use variable in later test.
3758
3759 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3760
3761         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3762         test.  (Thanks to Daniel Jacobowitz.)
3763         
3764 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3765
3766         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3767         (mips_abi_strings): Add "n64".
3768         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
3769
3770 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3771
3772         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3773         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3774
3775 2002-07-31  Kevin Buettner  <kevinb@redhat.com>
3776
3777         * utils.c (host_pointer_to_address, address_to_host_pointer):
3778         Use gdb_assert() instead of explicit call to internal_error().
3779
3780 2002-07-30  Kevin Buettner  <kevinb@redhat.com>
3781
3782         * Makefile.in (rs6000-nat.o): Update dependencies.
3783
3784         From Nicholas Duffek:
3785         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3786         (aix-thread.o): New rule.
3787         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3788         * config/powerpc/aix432.mh: New file.
3789
3790 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3791
3792         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3793         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3794         (fetch_core_registers, ppc_linux_supply_gregset)
3795         (ppc_linux_supply_fpregset): New functions.
3796         (ppc_linux_regset_core_fns): New.
3797         (_initialize_ppc_linux_tdep): Call add_core_fns.
3798         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3799         and ppc_linux_supply_gregset.
3800         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3801         (supply_fpregset): Call ppc_linux_supply_fpregset.
3802         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3803         corelow.o.
3804         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3805
3806 2002-07-30  Daniel Jacobowitz  <drow@mvista.com>
3807
3808         * symtab.c (lookup_symbol): Demangle before lowercasing.
3809
3810 2002-07-30  Andrew Cagney  <ac131313@redhat.com>
3811
3812         * symtab.h: Replace #include "gdb_obstack.h" with opaque
3813         declaration.
3814         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3815         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3816         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3817         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3818         "gdb_string.h".
3819         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3820         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3821         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3822         (avr-tdep.o, mon960-rom.o): Ditto.
3823         (aout_stabs_gnu_h): Define.
3824         (symtab_h): Remove $(gdb_obstack_h).
3825
3826 2002-07-30  Jim Blandy  <jimb@redhat.com>
3827
3828         Patch from David Carlton <carlton@math.stanford.edu>:
3829         * gdbinit.in: Move the `dir' commands that add GDB's own source
3830         directory to the search path to the end, so that the `gdb' source
3831         directory will be searched first.
3832
3833 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3834
3835         * gdb_obstack.h: New file.
3836         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3837         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3838         * objfiles.h: Include "gdb_obstack.h".
3839         * Makefile.in (gdb_obstack_h): Define.
3840         (symtab_h): Add $(gdb_obstack_h).
3841         (objfiles_h): Add $(gdb_obstack_h).
3842         
3843         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3844         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3845         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3846         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3847         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3848         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3849         * symfile.c, coffread.c, c-typeprint.c: Ditto.
3850         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3851
3852         * Makefile.in (bcache.o): Update dependencies.
3853         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3854         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3855         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3856         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3857         (stabsread.o, symfile.o, symmisc.o): Ditto.
3858         (symtab.o, typeprint.o, macroexp.o): Ditto.
3859         (macrotab.o, mdebugread.o): Ditto.
3860         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3861         (coff_ecoff_h, aout_aout64_h): Define.
3862         (aout_stabs_gnu_h, libaout_h): Define.
3863
3864 2002-07-29  Andrew Cagney  <cagney@redhat.com>
3865
3866         * regcache.c (struct regcache_descr): Rename nr_registers to
3867         nr_cooked_registers.  Revise comments describing the structure
3868         member fields.
3869         (init_regcache_descr): Update.
3870         (init_legacy_regcache_descr): Update.
3871         (read_register_gen, write_register_gen): When a cooked register in
3872         the raw register range, directly access the value from the raw
3873         register cache.
3874
3875 2002-07-29  Andrew Cagney  <ac131313@redhat.com>
3876
3877         * z8k-tdep.c: Do not include "obstack.h".
3878         * h8300-tdep.c, h8500-tdep.c: Ditto.
3879         * m68hc11-tdep.c, sh-tdep.c: Ditto.
3880         * valprint.c, v850-tdep.c: Ditto.
3881         * d10v-tdep.c, mn10300-tdep.c: Ditto.
3882         * mn10200-tdep.c: Ditto.
3883
3884         * Makefile.in (z8k-tdep.o): Update dependencies.
3885         (m68hc11-tdep.o, valprint.o): Ditto.
3886         (v850-tdep.o, d10v-tdep.o): Ditto.
3887         (mn10300-tdep.o, sparc-tdep.o): Ditto.
3888         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3889         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3890         (sh_opc_h, gdb_sim_sh_h): Define.
3891         (elf_sh_h, elf_bfd_h): Define.
3892         (opcode_m68hc11_h): Define.
3893         (OPCODES_SRC, OPCODES_DIR): define.
3894         (OPCODES): Use $(OPCODES_DIR).
3895         (gdb_sim_d10v_h): Rename sim_d10v_h.
3896         (gdb_sim_arm_h): Rename sim_arm_h.
3897
3898 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3899
3900         * utils.c (host_pointer_to_address, address_to_host_pointer):
3901         Change internal_error() message to indicate function responsible
3902         for the error.
3903
3904 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3905
3906         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3907         calls to local_hex_string_custom().
3908
3909 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3910
3911         * irix5-nat.c: Move IRIX shared library support from here...
3912         * solib-irix.c: ...to here.  Revised substantially to work with
3913         generic solib framework.
3914
3915         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3916         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3917         * mips-irix-tdep.c: New file.
3918
3919         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3920         (mips-irix-tdep.o, solib-irix.o): New rules.
3921         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3922         solib-irix.o.
3923         * config/mips/irix6.mt (TDEPFILES): Likewise.
3924         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3925
3926 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3927
3928         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3929         disabled (via ``#if 0'') includes.
3930
3931 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3932
3933         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3934         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3935         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3936         Add support for the fpscr register.
3937         * rs6000-nat.c (regmap, fetch_inferior_registers)
3938         (store_inferior_registers, fetch_core_registers): Likewise.
3939
3940 2002-07-26  Kevin Buettner  <kevinb@redhat.com>
3941
3942         * rs6000-nat.c (language.h): Include.
3943         (special_regs): Delete this array.
3944         (regmap): New function.
3945         (fetch_register, store_register):  Use regmap() to map gdb
3946         register numbers to ptrace register numbers.  Also, use
3947         outputs from regmap() to make decisions regarding type of
3948         ptrace() call to make.  In particular, don't compare against
3949         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3950         (fetch_inferior_registers, store_inferior_registers): Where
3951         possible, obtain register numbers from tdep struct.  Don't
3952         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3953         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3954         (LAST_UISA_SP_REGNUM): Delete.
3955         
3956 2002-07-25  Kevin Buettner  <kevinb@redhat.com>
3957
3958         * rs6000-nat.c (ppc-tdep.h): Include.
3959         (fetch_registers, store_register, fetch_core_registers): Don't
3960         access registers[] directly.  Instead, use supply_register() or
3961         regcache_collect() as appropriate.
3962         (find_toc_address): Format hex address with local_hex_string().
3963
3964 2002-07-25  Andrew Cagney  <ac131313@redhat.com>
3965
3966         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3967         bfd/elf32-frv.c.
3968
3969 2002-07-24  Tom Tromey  <tromey@redhat.com>
3970
3971         * jv-exp.y: Marked all strings with _().
3972         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3973         internal_error.
3974         (MethodInvocation, CastExpression, parse_number, yyerror,
3975         java_type_from_name, push_expression_name, yylex): Typo fixes.
3976
3977 2002-07-24  Daniel Jacobowitz  <drow@mvista.com>
3978
3979         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3980         (tee_file_flush, tee_file_write, tee_file_fputs)
3981         (tee_file_isatty): New.
3982         * ui-file.h (tee_file_new): Add prototype.
3983
3984 2002-07-24  Aidan Skinner <aidan@velvet.net>
3985
3986         * ada-lang.c: Change k&r style function definitions to prototyped
3987         form.
3988         * ada-typeprint.c: Change k&r style function definitions to prototyped
3989         form.
3990         * ada-valprint.c: Change k&r style function definitions to prototyped
3991         form.
3992         
3993 2002-07-24  Andrew Cagney  <cagney@redhat.com>
3994
3995         * README: Remove reference to remote-bug.
3996         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3997         remote-bug.c.
3998         (m88k-nat.o): Delete rule.
3999         (m88k-tdep.o): Delete rule.
4000         (remote-bug.o): Delete rule.
4001         * MAINTAINERS: Mark as obsolete.
4002         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4003         * m88k-tdep.c: Make file obsolete.
4004         * config/m88k/m88k.mh: Ditto.
4005         * config/m88k/delta88v4.mh: Ditto.
4006         * config/m88k/delta88v4.mt: Ditto.
4007         * config/m88k/delta88.mt: Ditto.
4008         * config/m88k/delta88.mh: Ditto.
4009         * remote-bug.c: Ditto.
4010         * config/m88k/tm-delta88.h: Ditto.
4011         * config/m88k/nm-delta88v4.h: Ditto.
4012         * config/m88k/xm-delta88.h: Ditto.
4013         * config/m88k/xm-dgux.h: Ditto.
4014         * config/m88k/tm-m88k.h: Ditto.
4015         * config/m88k/nm-m88k.h: Ditto.
4016         * config/m88k/tm-delta88v4.h: Ditto.
4017         * m88k-nat.c: Ditto.
4018         * cxux-nat.c: Ditto.
4019         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4020         and m88*-*-* obsolete.
4021         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4022         m88*-*-* obsolete.
4023
4024 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4025
4026         * findvar.c (extract_unsigned_integer): Make `addr' parameter
4027         constant.  Same for local pointer variables.
4028         (extract_signed_integer): Ditto.
4029         * defs.h (extract_unsigned_integer): Update.
4030         (extract_signed_integer): Update.
4031
4032 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4033
4034         * regcache.c (regcache_raw_write): Change buf parameter to a
4035         constant void pointer.
4036         (regcache_raw_read): Change buf parameter to a void pointer.
4037         (legacy_write_register_gen): Change myaddr parameter a constant
4038         void pointer.
4039         (supply_register): Change val parameter to a const void pointer.
4040         * regcache.h (regcache_raw_write): Update declaration.
4041         (regcache_raw_read): Update declaration.
4042         (supply_register): Update declaration.
4043
4044 2002-07-24  Tom Tromey  <tromey@redhat.com>
4045
4046         * defs.h (gdb_readline_wrapper): Declare.
4047         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4048         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4049         * top.c (gdb_readline_wrapper): New function.
4050         (command_line_input): Use it.
4051
4052 2002-07-24  Andrew Cagney  <cagney@redhat.com>
4053
4054         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4055         regcache_read and regcache_write.
4056         (regcache_raw_read_as_address): Replace regcache_read_as_address.
4057         * regcache.c: Update.
4058         * sh-tdep.c (sh64_push_arguments): Update comment.
4059         (sh_pseudo_register_read): Update.
4060         (sh_pseudo_register_write): Update.
4061         (sh4_register_read): Update.
4062         (sh4_register_write): Update.
4063         (sh64_pseudo_register_read): Update.
4064         (sh64_pseudo_register_write): Update.
4065         (sh64_register_read): Update.
4066         (sh64_register_write): Update.
4067         * i386-tdep.c (i386_extract_return_value): Update.
4068         (i386_extract_struct_value_address): Update.
4069         (i386_extract_return_value): Update.
4070         * blockframe.c (generic_read_register_dummy): Update.
4071         (generic_call_dummy_register_unwind): Update
4072         * infrun.c (write_inferior_status_register): Update.
4073
4074 2002-07-23  Jim Blandy  <jimb@redhat.com>
4075
4076         * parser-defs.h (expression_context_pc): Make this extern.
4077         (Thanks to Michael Snyder.)
4078
4079 2002-07-23  Andrew Cagney  <ac131313@redhat.com>
4080
4081         GDB 5.2.1 released from 5.2 branch.
4082         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4083         * README: Update to mention 5.2.1.
4084
4085 2002-07-23  Mark Salter  <msalter@redhat.com>
4086
4087         * remote.c (remote_read_bytes): Fix check for error.
4088
4089 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4090
4091         * aix-thread.c (language.h): Include.
4092         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4093         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4094         Print newlines at end of debug messages.
4095         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4096         (pdc_write_data): Use local_hex_string() instead of %llx formats.
4097
4098 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4099
4100         * aix-thread.c (ppc-tdep.h): Include.
4101         (special_register_p): New function.
4102         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4103         (store_regs_user_thread): Use register number information from
4104         gdbarch_tdep struct instead of hardcoded offsets relative to
4105         FIRST_UISA_SP_REGNUM.
4106         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
4107         special_register_p() instead of using FPLAST_REGNUM and
4108         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4109         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
4110         will be MQ's register number.
4111
4112 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4113
4114         * aix-thread.c (ops): Rename to aix_thread_ops.
4115         (base_ops): Rename to base_target.
4116         (ops_attach): Rename to aix_thread_attach.
4117         (ops_detach): Rename to aix_thread_detach.
4118         (ops_resume): Rename to aix_thread_detach.
4119         (ops_wait):   Rename to aix_thread_wait.
4120         (ops_kill):   Rename to aix_thread_kill.
4121         (init_ops):   Rename to init_aix_thread_ops.
4122         (ops_fetch_register): Rename to aix_thread_fetch_register.
4123         (ops_store_register): Rename to aix_thread_store_register.
4124         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4125         (ops_thread_alive):   Rename to aix_thread_thread_alive.
4126         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4127         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
4128         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4129         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
4130         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4131         (store_regs_lib):  Rename to store_regs_user_thread.
4132         (store_regs_kern): Rename to store_regs_kernel_thread.
4133
4134 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4135
4136         * aix-thread.c (ops_prepare_to_store): Eliminate.
4137         (init_ops): Don't initialize ops.prepare_to_store.
4138         (store_regs_kern): Pre-fetch register buffers from child, 
4139         because some registers may not be in the cache.  Copy
4140         regs from register cache only if they are cached.
4141         (store_regs_lib): Copy regs from register cache only
4142         if they are cached.
4143         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4144         fill_gprs64): Ditto.
4145
4146 2002-07-22  Kevin Buettner  <kevinb@redhat.com>
4147
4148         * aix-thread.c (gdb_assert.h): Include.
4149         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4150         register sizes (from register cache) match size of buffer holding
4151         register data.
4152         (fill_sprs32): Change parameter types to match those in the ptrace()
4153         buffer.
4154         (store_regs_lib): Likewise, but for 32-bit temporary variables.
4155         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4156
4157 2002-07-22  Michael Snyder  <msnyder@redhat.com>
4158
4159         * aix-thread.c (supply_sprs64): Cosmetic change.
4160         (supply_sprs32): Cosmetic change.
4161         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4162         (fill_sprs64): Use regcache_collect instead of read_register.
4163         (store_regs_lib): Use regcache_collect instead of 
4164         read_register.  Use fill_sprs32 instead of fill_sprs64,
4165         if debugging a 32-bit architecture.
4166         (store_regs_kern): Use fill_gprs64 etc. to pull the values
4167         out of the register cache, instead of passing a pointer into
4168         the register cache directly to ptrace.  Use regcache_collect
4169         insteaad of read_register.
4170         (ops_prepare_to_store): Use target_read_registers instead
4171         of read_register_bytes.
4172
4173 2002-07-20  Aidan Skinner <aidan@velvet.net>
4174
4175         * MAINTAINERS: Add self under write after approval. 
4176                 
4177 2002-07-20  Aidan Skinner <aidan@velvet.net>
4178
4179         * ada-tasks.c: Change k&r style function definitions to prototyped
4180         form.
4181                 
4182 2002-07-19  Andrew Cagney  <ac131313@redhat.com>
4183
4184         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4185         * x86-64-tdep.c: Include "objfiles.h".
4186         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4187         in_plt_section.  From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4188
4189 2002-07-17  Michal Ludvig  <michal@suse.cz>
4190
4191         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4192         (update_context): Initialise cfa variable.
4193
4194 2002-07-17  Michael Snyder  <msnyder@redhat.com>
4195
4196         * aix-thread.c: Shorten some long lines.  
4197         Bring comments into line with code spec.
4198
4199 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4200
4201         * infrun.c: Re-indent using gdb_indent.sh.
4202
4203 2002-07-18  Joel Brobecker  <brobecker@gnat.com>
4204
4205         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4206         Leave the indentation temporarily untouched, to minimize the diffs.
4207
4208 2002-07-18  Elena Zannoni  <ezannoni@redhat.com>
4209
4210         * stabsread.c: Make os9k sections of the code obsolete,
4211         for real this time.
4212         * stabsread.h: Make os9k sections of the code obsolete.
4213
4214 2002-07-18  Michal Ludvig <mludvig@suse.cz>
4215
4216         * linux-low.c (regsets_store_inferior_registers): Add free()
4217         at the end of a loop to prevent memory leak.
4218         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4219         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4220         * config/sparc/tm-sp64linux.h: Make the rest of #endif
4221         line a comment.
4222         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4223
4224 2002-07-17  Jim Blandy  <jimb@redhat.com>
4225
4226         * macrocmd.c (info_macro_command): Remove newline from error
4227         message.
4228
4229 2002-07-17  J"orn Rennecke <joern.rennecke@superh.com>
4230
4231         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4232         (sh_gdbarch_init): Use it for sh-dsp.
4233
4234 2002-07-16  Kevin Buettner  <kevinb@redhat.com>
4235
4236         * dwarf2read.c (read_initial_length): Handle older, non-standard,
4237         64-bit DWARF2 format.
4238
4239 2002-07-16  Joel Brobecker  <brobecker@gnat.com>
4240
4241         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4242         <sys/proc.h> when not available.
4243
4244 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4245
4246         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4247         * stabsread.c: Make os9k sections of the code obsolete.
4248         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4249         * config/i386/i386os9k.mt: Make file obsolete.
4250         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4251         (COMMON_OBS): Remove os9kread.o
4252         (SFILES): Remove os9kread.c.
4253         (os9kread.o, remote-os9k.o): Make target obsolete.
4254         * remote-os9k.c: Make file obsolete.
4255         * os9kread.c: Make file obsolete.
4256         * Makefile.in
4257
4258 2002-07-16  Andrew Cagney  <ac131313@redhat.com>
4259
4260         * NEWS: Mention that the FR30 has been made obsolete.
4261         * fr30-tdep.c: Make file obsolete.
4262         * config/fr30/tm-fr30.h: Ditto.
4263         * config/fr30/fr30.mt: Ditto.
4264         * configure.tgt: Make fr30-*-elf obsolete.
4265         * MAINTAINERS: Make fr30-elf obsolete.
4266
4267 2002-07-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4268
4269         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4270         found is not inside a section.
4271
4272 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4273
4274         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4275         strerror().
4276         (pdc_realloc): Use xrealloc() instead of realloc().
4277
4278 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4279
4280         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4281         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4282         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4283         macros.
4284
4285 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4286
4287         * aix-thread.c (ptrace_check): Eliminate goto.
4288         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
4289         problem.
4290
4291 2002-07-15  Kevin Buettner  <kevinb@redhat.com>
4292
4293         * aix-thread.c (gdbcmd.h): Include.
4294         (DEBUG, DBG, DBG2, dbg): Eliminate.
4295         (debug_aix_thread): New static global.
4296         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4297         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4298         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4299         invocations to DBG and DBG2 macros to test against
4300         ``debug_aix_thread'' and call fprintf_unfiltered().
4301         (_initialize_aix_thread): Add new command "set debug aix-thread".
4302
4303 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4304
4305         From Gerhard Tonn <TON@de.ibm.com>:
4306         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4307         instead of supply_register.
4308
4309 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
4310
4311         * dwarf2cfi.c: Include "gdb_assert.h".
4312         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4313         non-NULL.
4314         (update_context): Do not use __func__.  Add missing ``break''.
4315         (update_context): Do not use __func__.
4316
4317 2002-07-15  Elena Zannoni  <ezannoni@redhat.com>
4318
4319         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4320         and its setting.  Set gdbarch instruction printing functions
4321         directly.  For non-rs6000 case use new function
4322         gdb_print_insn_powerpc.
4323         (gdb_print_insn_powerpc): New function.
4324
4325 2002-07-13  Andrew Cagney  <ac131313@redhat.com>
4326
4327         * NEWS: Mention that the d30v has been marked obsolete.
4328         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4329         * configure.tgt: Mark d30v-*-* as obsolete.
4330         * d30v-tdep.c: Mark file as obsolete.
4331         * config/d30v/d30v.mt: Ditto.
4332         * config/d30v/tm-d30v.h: Ditto.
4333
4334 2002-07-13  Aidan Skinner <aidan@velvet.net>
4335
4336         * ada-tasks.c (add_task_entry): replace calls to
4337         malloc() with xmalloc
4338         * ada-tasks.c (init_task_list): replace calls to free with xfree()
4339         
4340         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4341         ada_finish_decode_line_1, all_sals_for_line
4342         ada_breakpoint_rewrite): replace calls to free() with xfree()
4343                 
4344 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4345
4346         From Nicholas Duffek (with minor changes by Martin Hunt, 
4347         Louis Hamilton, and Kevin Buettner):
4348         * aix-thread.c: New file.
4349
4350 2002-07-12  Petr Sorfa <petrs@caldera.com>
4351
4352         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
4353         complaint for invalid attribute class or form.
4354         (read_func_scope): DW_AT_frame_base
4355         better handling of DW_AT_block*.
4356         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4357         better handling of DW_AT_block*.
4358         (read_common_block): DW_AT_location
4359         better handling of DW_AT_block*.
4360         (read_partial_die): DW_AT_location better handling
4361         of DW_AT_block*.
4362         (new_symbol): DW_AT_external better handling of
4363         DW_AT_block*. Proper initialization of variable
4364         "addr".
4365         (attr_form_is_block): New function that returns true
4366         if the attribute's form is of DW_FORM_block*.
4367
4368 2002-07-12  Peter Schauer  <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4369
4370         * valops.c (find_method_list): Remove comment about
4371         removed STATIC_MEMFUNCP argument.
4372         (value_find_oload_method_list): Likewise.
4373
4374 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4375
4376         From Nicholas Duffek:
4377         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4378         target_new_objfile_hook.
4379
4380 2002-07-12  Kevin Buettner  <kevinb@redhat.com>
4381
4382         From Nicholas Duffek:
4383         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4384         csect.
4385
4386 2002-07-12  Andrew Cagney  <cagney@redhat.com>
4387
4388         * MAINTAINERS: Mention --enable-sim-build-warnings.
4389         (m68hc11-elf): Disable sim build warnings.
4390         (m32r-elf): Mark as broken obsolete candidate.
4391         (x86_64-linux-gnu): Mark as buildable with -Werror.
4392         (arm-elf): Change -w to ``,'' which enables warnings but not
4393         -Werror.
4394
4395 2002-07-12  Andrew Cagney  <ac131313@redhat.com>
4396
4397         * bcache.h: Update copyright.
4398         (struct bstring, struct bcache): Move definition to "bcache.c".
4399         Replaced by opaque declaration.
4400         (bcache_xfree): Replace free_bcache.
4401         (bcache_xmalloc, bcache_memory_used): Declare.
4402         
4403         * bcache.c: Update copyright.
4404         (struct bstring, struct bcache): Moved to here from "bcache.h".
4405         Update comments.
4406         (bcache_xmalloc, bcache_memory_used): New functions.
4407         (bcache_xfree): Replace function free_bcache.
4408         
4409         * Makefile.in (objfiles.o): Add $(bcache_h).
4410         (objfiles_h): Remove $(bcache_h).
4411         (symfile.o): Add $(bcache_h).
4412
4413         * symmisc.c: Update copyright.
4414         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4415         (print_objfile_statistics): Use bcache_memory_used.
4416
4417         * symfile.c: Include "bcache.h".
4418         (reread_symbols): Use bcache_xfree.
4419         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4420         (add_psymbol_to_list): Pass psymbol_cache by value.
4421         (add_psymbol_with_dem_name_to_list): Ditto.
4422
4423         * objfiles.h: Update copyright.
4424         (struct bcache): Declare opaque.  Do not include "bcache.h".
4425         (struct objfile): Change psymbol_cache and macro_cache to ``struct
4426         bcache'' pointers.
4427         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4428
4429         * objfiles.c: Include "bcache.h".  Update copyright.
4430         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4431         macro_cache.
4432         (free_objfile): Use bcache_xfree.
4433
4434 2002-07-11  Grace Sainsbury  <graces@redhat.com>
4435
4436         * monitor.c (monitor_fetch_register): Make name a constant.
4437         (monitor_store_register): Same.
4438
4439 2002-07-11  Daniel Jacobowitz  <drow@mvista.com>
4440
4441         Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4442         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4443         (finish_block) For non-function blocks, hash the symbol table.  For
4444         function blocks, mark the symbol table as unhashed.
4445         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4446         (msymbol_hash_iw): Likewise.
4447         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4448         value.
4449         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4450         (lookup_minimal_symbol): Likewise for both.
4451         * symtab.h (struct block): Add `hashtable' flag.  Comment the
4452         hashtable.
4453         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4454         (ALL_BLOCK_SYMBOLS): Update.
4455         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4456         (struct symbol): Add `hash_next' pointer.
4457         * symtab.c (lookup_block_symbol): Search using the hash table when
4458         possible.
4459         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4460         (search_symbols, find_addr_symbol): Likewise.
4461
4462         * dstread.c (process_dst_block): Clear hashtable bit for new block.
4463         (read_dst_symtab): Likewise.
4464         * jv-lang.c (get_java_class_symtab): Likewise.
4465         * mdebugread.c: Include "gdb_assert.h".
4466         (shrink_block): Assert that the block being modified is not hashed.
4467         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4468         * symmisc.c (free_symtab_block): Walk the hash table when freeing
4469         symbols.
4470         (dump_symtab): Recognize hashed blocks.
4471         * printcmd.c (print_frame_args):  Assert that function blocks do not
4472         have hashed symbol tables.
4473         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4474         (fill_in_ada_prototype, debug_print_block): Likewise.
4475         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
4476
4477 2002-07-11  Corinna Vinschen  <vinschen@redhat.com>
4478
4479         * stack.c (print_frame): Use result of frame_address_in_block()
4480         instead of fi->pc when evaluating symbols.
4481         (backtrace_command_1): Ditto.
4482
4483 2002-07-11  Andrew Cagney  <cagney@redhat.com>
4484
4485         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4486         Make static.
4487
4488         * arm-tdep.c (arm_register_name): Make return type constant.
4489
4490 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4491
4492         * win32-nat.c (has_detach_ability): Convert to strict ISO C
4493         prototype.
4494         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4495         * s390-tdep.c (s390_fp_regnum): Ditto.
4496         (s390_read_fp): Ditto.
4497         (s390_pop_frame): Ditto.
4498         (_initialize_s390_tdep): Ditto.
4499         * remote.c (get_remote_state): Ditto.
4500         * procfs.c (mappingflags): Ditto.
4501         * memattr.c (_initialize_mem): Ditto.
4502         * mcore-tdep.c (mcore_pop_frame): Ditto.
4503         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4504         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4505         * language.c (set_case_str): Ditto.
4506         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4507         * frv-tdep.c (new_variant): Ditto.
4508         (frv_stopped_data_address): Ditto.
4509         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4510         (context_alloc): Ditto.
4511         (frame_state_alloc): Ditto.
4512         (unwind_tmp_obstack_init): Ditto.
4513         (unwind_tmp_obstack_free): Ditto.
4514         (cfi_read_fp): Ditto.
4515         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4516         (cris_pop_frame): Ditto.
4517         * c-lang.c (scanning_macro_expansion): Ditto.
4518         (finished_macro_expansion): Ditto.
4519         (c_preprocess_and_parse): Ditto.
4520         * gdbarch.sh: Ditto.
4521         * gdbarch.h, gdbarch.c: Regenerate.
4522         * config/mn10200/tm-mn10200.h: Adjust indentation.
4523         * target.c: Adjust indentation.
4524         * symtab.h: Adjust indentation.
4525         * stabsread.h: Adjust indentation.
4526         * remote-es.c: Adjust indentation.
4527         * os9kread.c: Adjust indentation.
4528
4529 2002-07-10  Andrew Cagney  <ac131313@redhat.com>
4530         
4531         * wince.c (_initialize_wince): Rename _initialize_inftarg.
4532         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4533
4534 2002-07-10  Grace Sainsbury  <graces@redhat.com>
4535         
4536         * NEWS: Mention m68k, mcore multi-arching.  
4537         * MAINTAINERS: Change status of m68k, mcore to reflect
4538         multi-arching.
4539
4540 2002-07-10  Daniel Jacobowitz  <drow@mvista.com>
4541
4542         * valops.c (find_overload_match): Free oload_syms.
4543
4544 2002-07-09  Joel Brobecker  <brobecker@gnat.com>
4545
4546         Define HAVE_SYS_PROC_H if sys/proc.h exists
4547         * configure.in: Add check for sys/proc.h
4548         * config.in: Regenerate.
4549         * configure: Regenerate.
4550
4551 2002-07-09  Grace Sainsbury  <graces@redhat.com>
4552
4553         * config/m68k/tm-m68k.h: Remove macros wrapped in 
4554         #if !GDB_MULTI_ARCH. 
4555
4556 2002-07-08  Andrew Cagney  <ac131313@redhat.com>
4557
4558         * config.in, configure: Regenerate.
4559
4560 2002-07-08  Mark Kettenis  <kettenis@gnu.org>
4561
4562         * dwarf2cfi.c: Include "gcore.h".
4563         (execute_stack_op): Fix implementation of the
4564         DW_OP_deref and DW_OP_deref_size operators by letting do their
4565         lookup in the target.
4566
4567 2002-07-07  Mark Kettenis  <kettenis@gnu.org>
4568
4569         From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4570         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4571         tdep->sc_sp_offset.
4572
4573 2002-07-05  Daniel Jacobowitz  <drow@mvista.com>
4574
4575         Fix PR gdb/595, gdb/602
4576         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4577         Don't call value_cast, just read the vtable pointer; update comments
4578         to match.
4579
4580 2002-07-05  Grace Sainsbury  <graces@redhat.com>
4581
4582         * config/mcore/tm-mcore.h: Remove file.
4583         * config/mcore/mcore.mt: Remove definition of TM_FILE
4584         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4585
4586 2002-07-05  Mark Kettenis  <kettenis@gnu.org>
4587
4588         * i386bsd-tdep.c: Include "gdb_string.h".
4589
4590 2002-07-04  Grace Sainsbury  <graces@redhat.com>
4591
4592         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4593         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4594         mcore-tdep.
4595         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4596         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4597         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4598         (RETVAL_REGNUM): Move macros from tm-mcore.h
4599         (mcore_reg_struct_has_addr): New function.
4600         (mcore_gdbarch_init): Added initializations for the macros removed
4601         from tm-mcore.h.
4602
4603 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4604
4605         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4606         traditonal string branding within the ELF header.
4607
4608 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4609
4610         * symtab.c (remove_params): New function.
4611         (make_symbol_overload_list): Use it instead of cplus_demangle.
4612         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
4613
4614 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4615
4616         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4617
4618         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4619         New variables.
4620         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4621         and tdep->sigtramp_end.
4622         * i386obsd-nat.c: New file.
4623         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4624
4625         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4626         Don't call get_current_frame().
4627
4628 2002-07-04  Pierre Muller  <muller@ics.u-strasbg.fr>
4629
4630         * i386-nat.c (child_post_startup_inferior): New function
4631         calling i386_cleanup_dregs if
4632         I386_USE_GENERIC_WATCHPOINTS is defined.
4633         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4634         conditional to acknowledge that i386-nat.c has its
4635         own child_post_startup_inferior function.
4636
4637 2002-07-04  Mark Kettenis  <kettenis@gnu.org>
4638
4639         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4640         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4641         instead of MAX_REGISTER_RAW_SIZE.
4642         (i386_extract_return_value, i386_extract_struct_value_address):
4643         Convert to use regcache.
4644         (i386_gdbarch_init): Set max_register_raw_size and
4645         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4646         Set extract_return_value and extract_struct_value_address instead
4647         of their deprecated variants.
4648
4649         Convert i386 target to generic dummy frames.
4650         * i386-tdep.c: Include "symfile.h".
4651         (i386_frameless_signal_p): Consider a function to be frameless if
4652         the pc points at the first instruction of the function.
4653         (i386_frame_chain): Handle (generic) call dummies.
4654         (i386_frame_saved_pc): Likewise.
4655         (i386_frame_init_saved_regs): Remove code dealing with call
4656         dummies on the stack.
4657         (i386_push_dummy_frame): Removed.
4658         (i386_call_dummy_words): Removed.
4659         (i386_fix_call_dummy): Removed.
4660         (i386_push_return_address): New function.
4661         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
4662         parameter, and don't call get_current_frame.
4663         (i386_pop_frame): New function.
4664         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4665         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4666         entry_point_address, set call_dummy_breakpoint_offset to 0, set
4667         call_dummy_length to 0, set call_dummy_words to NULL, set
4668         sizeof_call_dummy_words to 0, set fix_call_dummy to
4669         generic_fix_call_dummy, set pc_in_call_dummy to
4670         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4671         generic_push_dummy_frame, set push_return_address to
4672         i386_push_return_address and set frame_chain_valid to
4673         generic_file_frame_chain_valid.
4674
4675 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4676
4677         * gdbarch.sh (struct regcache): Add opaque declaration.
4678         (EXTRACT_RETURN_VALUE): New architecture method.
4679         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4680         * gdbarch.h, gdbarch.c: Regenerate.
4681         * arch-utils.c (legacy_extract_return_value): New function.
4682         * arch-utils.h (legacy_extract_return_value): Declare.
4683         * values.c (value_being_returned): Re-enable code handling
4684         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
4685         deprecated_grub_regcache_for_registers call to block handling
4686         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4687         (EXTRACT_RETURN_VALUE): Do not define.
4688
4689 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4690
4691         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4692         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4693         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4694         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4695         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4696         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4697         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4698         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4699         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4700         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4701         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4702         argument so the function fits the prototype in the architecture
4703         vector.
4704         (mcore_pop_frame): Remove argument so the function fits the
4705         prototype. Use get_current_frame instead of the argument.
4706         (mcore_push_arguments): Change type of struct_return so the
4707         function can be used in the architecture vector.
4708         (mcore_store_struct_return): Add.
4709         (mcore_frame_init_saved_regs): Add.
4710         (mcore_gdbarch_init): Add function calls to replace the macros
4711         removed from tm-mcore.h
4712
4713 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4714
4715         * infcmd.c (print_return_value): Remove compatibility code calling
4716         deprecated_grub_regcache_for_registers.
4717         
4718         * values.c: Include "regcache.h".
4719         (value_being_returned): Update.  Use
4720         deprecated_grub_regcache_for_registers to extract the register
4721         buffer address.  
4722         * value.h (value_being_returned): Change ``retbuf'' parameter to a
4723         ``struct regcache''.
4724         * Makefile.in (values.o): Add dependency on $(regcache_h).
4725
4726         * inferior.h (run_stack_dummy): Change type of second parameter to
4727         a ``struct regcache''.
4728         * valops.c (hand_function_call): Change type of retbuf to ``struct
4729         regcache''.  Allocate using regcache_xmalloc, clean using
4730         make_cleanup_regcache_xfree.
4731         * infcmd.c (run_stack_dummy): Update.  Use
4732         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4733
4734         * regcache.c (do_regcache_xfree): New function.
4735         (make_cleanup_regcache_xfree): New function.
4736         * regcache.h (make_cleanup_regcache_xfree): Declare.
4737
4738 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4739
4740         * event-top.c (command_line_handler): Don't read past
4741         beginning of buffer.
4742
4743 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4744         
4745         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
4746         struct frame_id. 
4747         (varobj_create): Store frame_id for root.
4748         (varobj_gen_name): Use xasprintf.
4749         (varobj_update): Save and restore frame using get_frame_id() and
4750         frame_find_by_id().
4751         (create_child): Use xasprintf.
4752         (new_root_variable): Initialize frame_id.
4753         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4754         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4755         to prevent memory leak.
4756
4757 2002-07-03  Andrew Cagney  <ac131313@redhat.com>
4758
4759         * valops.c (hand_function_call): Move declaration of retbuf to
4760         start of function, allocate using malloc, add a cleanup but before
4761         the inf_status cleanup, cleanup the buffer.  Rename local variable
4762         old_chain to inf_status_cleanup.
4763
4764 2002-07-03  Martin M. Hunt  <hunt@redhat.com>
4765
4766         * top.c (execute_command): Use cmd_func() and cmd_func_p().
4767
4768         * cli/cli-decode.c (cmd_func_p): New function.
4769         (cmd_func): New function.
4770
4771         * command.h: Add cmd_func() and cmd_func_p().   
4772         
4773 2002-07-03  Grace Sainsbury  <graces@redhat.com>
4774
4775         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4776         (REGISTER_SIZE): Remove.
4777         (MAX_REGISTER_RAW_SIZE): Remove.
4778         (REGISTER_VIRTUAL_TYPE): Remove.
4779         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4780         (REGISTER_NAME): Remove.
4781         (USE_GENERIC_DUMMY_FRAMES): Remove.
4782         (CALL_DUMMY): Remove.
4783         (CALL_DUMMY_START_OFFSET): Remove.
4784         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4785         (CALL_DUMMY_LOCATION): Remove.
4786         (FIX_CALL_DUMMY): Remove.
4787         (CALL_DUMMY_ADDRESS): Remove.
4788         (SIZEOF_CALL_DUMMY_WORDS): Remove.
4789         (SAVE_DUMMY_FRAME_TOS): Remove.
4790         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4791         (mcore_register_virtual_type): New function.
4792         (mcore_register_byte): New function.
4793         (mcore_register_size): New function.
4794         (mcore_register_name): New function.
4795         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4796         macros removed from tm-mcore.h.
4797         (mcore_dump_tdep): Add.
4798         (_initialize_mcore_tdep): Add gdbarch_register call.
4799
4800 2002-07-03  Mark Kettenis  <kettenis@gnu.org>
4801
4802         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4803         frameless_look_for_prologue, such that we actually call this
4804         function.
4805
4806 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4807
4808         * frame.h (frame_address_in_block): New function.
4809
4810         * blockframe.c (frame_address_in_block): New function extracted
4811         from get_frame_block().
4812         (get_frame_block): Use frame_address_in_block().
4813         (block_innermost_frame): Use frame_address_in_block() to match
4814         the frame pc address against the block boundaries rather than
4815         the frame pc directly. This prevents a failure when a frame pc
4816         is actually a return-address pointing immediately after the end
4817         of the given block. 
4818
4819 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4820
4821         * MAINTAINERS: Add self under write after approval. 
4822
4823 2002-07-02  Grace Sainsbury  <graces@redhat.com>
4824
4825         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4826         used in architecture vector. The default is
4827         m68k_local_breakpoint_from_pc.
4828         (m68k_local_breakpoint_from_pc): Add.
4829         (enum): Add register numbers from tm-m68k.h.
4830         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4831         vector.  
4832         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4833         GDB_MULTI_ARCH_PARTIAL.
4834         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4835         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4836         m68k-tdep.c.
4837         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4838         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4839         to enum in m68k-tdep.c
4840
4841 2002-07-02  Joel Brobecker  <brobecker@gnat.com>
4842
4843         * solib-osf.c (open_map): Compute the list of shared libraries
4844         loaded by the inferior, rather than the list of libraries loaded
4845         by GDB itself.  Otherwise, GDB ends up reading the symbols from
4846         the wrong shared libraries...
4847
4848 2002-07-02  Mark Kettenis  <kettenis@gnu.org>
4849
4850         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4851         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4852         macros.
4853         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4854         Remove functions.
4855         (FRAMELESS_SIGNAL): Remove function.
4856         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4857         i386_linux_saved_pc_after_call): Removed.
4858         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4859         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
4860         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4861
4862         * i386-tdep.c (i386_frameless_signal_p): New function.
4863         (i386_frame_chain): Deal with frameless signals.
4864         (i386_sigtramp_saved_sp): New function.
4865         (i386_frame_saved_pc): Deal with frameless signals.
4866         (i386_saved_pc_after_call): Make sure the correct value is
4867         returned just after entry into a sigtramp.
4868         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4869         i386fbsd4_sc_sp_offset): New variables.
4870         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4871         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
4872         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4873         similiar to what we already did for sc_pc_offset.
4874         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4875         tdep->sc_sp_offset.
4876
4877         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4878
4879 2002-07-02  Michal Ludvig  <mludvig@suse.cz>
4880
4881         * config/i386/tm-x86-64linux.h: New.
4882         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4883         definitions.
4884         * config/i386/nm-x86-64.h: Rename to ...
4885         * config/i386/nm-x86-64linux.h: ... this one.
4886         * config/i386/x86-64linux.mh: Reflect the above change.
4887         
4888 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4889
4890         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4891         with sigcontext_addr.  Add sc_sp_offset.
4892         (i386bsd_sigtramp_saved_pc): Remove prototype.
4893         (i386bsd_sicontext_addr): Add prototype.
4894         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4895         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4896         (i386_svr4_sigtramp_saved_pc): Removed.
4897         (i386_svr4_sigcontext_addr): New function.
4898         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4899         Initialize tdep->sigcontext_addr instead.  Initialize
4900         tdep->sc_pc_offset and tdep->sc_sp_offset.
4901         (i386_gdbarch_init): Likewise.
4902         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4903         any more.
4904         (i386bsd_sigtramp_saved_pc): Remove function.
4905         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4906         Initialize tdep->sigcontext_addr instead.  Initialize
4907         tdep->sc_pc_offset.
4908         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4909         of tdep->sigtramp_saved_pc.
4910         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4911         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
4912         instead.
4913
4914         * i386-tdep.c (i386_frameless_function_invocation,
4915         i386_frame_num_args, i386_frame_init_saved_regs,
4916         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4917         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4918         i386_extract_return_value, i386_store_return_value,
4919         i386_extract_struct_value_address, i386_register_virtual_type,
4920         i386_register_convertible, i386_register_convert_to_virtual,
4921         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4922         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4923         static.
4924
4925 2002-07-01  Mark Kettenis  <kettenis@gnu.org>
4926
4927         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4928
4929         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4930         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4931         this macro.  Include "value.h".
4932
4933 2002-06-30  Aidan Skinner  <aidan@velvet.net>
4934
4935         * ada-exp.tab.c: remove as it's a generated file
4936         * ada-lex.c: remove as it's a generated file
4937                 
4938 2002-06-30  Mark Kettenis  <kettenis@gnu.org>
4939
4940         * config/i386/tm-i386.h (struct frame_info, struct
4941         frame_saved_regs, struct value, struct type): Remove forward
4942         declarations.
4943
4944         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4945         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4946         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4947         (FILL_FPXREGSET): Define.
4948
4949         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4950
4951         * configure.tgt (i[3456]86-*-openbsd*): Fold into
4952         i[3456]86-*-netbsd* case.
4953         * config/i386/tm-obsd.h: Removed.
4954         * config/i386/obsd.mt: Removed.
4955         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4956         core-aout.o.
4957         (MH_CFLAGS): Add -DYYDEBUG=0.
4958
4959         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4960         i386nbsd_sc_pc_offset on OpenBSD too.
4961
4962         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4963         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4964         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4965         define.
4966         * i386bsd-tdep.c: Include "arch-utils.h".
4967         (i386bsd_aout_in_solib_call_trampoline): New function.
4968         (i386bsd_init_abi): Set in_solib_call_trampoline to
4969         i386bsd_aout_in_solib_call_trampoline.
4970         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4971         in_solib_call_trampoline to generic_in_solib_call_trampoline.
4972
4973 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4974
4975         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4976         (struct obstack, struct bcache): Add opaque declarations.
4977         * Makefile.in (macrotab_h): Update
4978
4979 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4980
4981         * blockframe.c (generic_find_dummy_frame): Change return type to
4982         ``struct regcache''.
4983         (struct dummy_frame): Replace field ``registers'' with regcache, a
4984         struct regcache object.
4985         (generic_find_dummy_frame): Update.
4986         (generic_push_dummy_frame): Update.  Use regcache_xfree,
4987         regcache_xmalloc and regcache_cpy.
4988         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
4989         regcache_xfree.
4990         (deprecated_generic_find_dummy_frame): Update.
4991         (generic_read_register_dummy): Update.  Use
4992         regcache_read_as_address.
4993         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
4994         (generic_get_saved_register): Update.  Use regcache_read.
4995
4996 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
4997
4998         * Makefile.in (objfiles_h): Add $(bcache_h).
4999         * objfiles.h: Include "bcache.h".
5000
5001         * Makefile.in (symtab_h): Remove $(bcache_h).
5002         * symtab.h: Do not include "bcache.h".
5003
5004 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5005
5006         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5007         generic_func_frame_chain_valid.
5008
5009 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
5010
5011         * config/i386/nm-fbsd.h: Include <sys/param.h>.
5012         * config/i386/tm-fbsd.h: Likewise.
5013
5014 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
5015
5016         * rs6000-tdep.c (rs6000_gdbarch_init): Use
5017         generic_unwind_get_saved_register.
5018
5019 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5020
5021         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5022         * regcache.c (supply_register): Add missing argument to
5023         register_buffer call.
5024
5025 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
5026
5027         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
5028         Solaris /bin/grep does not not like it.  From Peter Schauer.
5029
5030 2002-06-26  Tom Tromey  <tromey@redhat.com>
5031
5032         * command.h (add_setshow_cmd): Declare.
5033         (add_setshow_cmd_full): Declare.
5034         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
5035         returns void.  Use add_setshow_cmd_full.
5036         (add_setshow_cmd_full): New function.
5037         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5038         (add_setshow_boolean_cmd): Likewise.
5039
5040 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5041
5042         * config/vax/tm-vax.h: Protect from multiple inclusion.
5043         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5044         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5045         * config/vax/tm-vaxbsd.h: ...here.  New file.
5046         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5047
5048 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5049
5050         * config/vax/tm-vax.h (BREAKPOINT): Remove.
5051         (BELIEVE_PCC_PROMOTION): Remove.
5052         (AP_REGNUM): Move to...
5053         * config/vax/nm-vax.h: ...here.
5054         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5055         (vax_breakpoint_from_pc): New function.
5056         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5057         and gdbarch_believe_pcc_promotion.
5058
5059 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
5060
5061         * Makefile.in (vax_tdep_h): Define.  
5062         (vax-tdep.o): Use $(vax_tdep_h).
5063         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5064         (vax_dump_tdep): New function. 
5065         (_initialize_vax_tdep): Register vax_dump_tdep.
5066         * vax-tdep.h: Include osabi.h.     
5067         (struct gdbarch_tdep): New. 
5068
5069 2002-06-26  Andrew Cagney  <cagney@redhat.com>
5070
5071         * frame.h (deprecated_generic_find_dummy_frame): Rename
5072         generic_find_dummy_frame.
5073         * blockframe.c (generic_find_dummy_frame): Make static.
5074         (deprecated_generic_find_dummy_frame): New function.
5075         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5076         generic_find_dummy_frame with deprecated_find_dummy_frame.
5077         (sh64_nofp_frame_init_saved_regs): Ditto.
5078         (sh_fp_frame_init_saved_regs): Ditto.
5079         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5080         (s390_frame_chain): Ditto.
5081         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5082
5083 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5084
5085         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5086         gdbarch vector are at the top.
5087         (NUM_REGS): Remove.
5088         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5089         (FRAME_ARGS_ADDRESS): Remove.
5090         (FRAME_LOCALS_ADDRESS): Remove.
5091         (FRAME_NUM_ARGS): Remove.
5092         (FRAME_ARGS_SKIP): Remove.  
5093         * m68k-tdep.c (enum): Add eumeration of special register numbers.
5094         (m68k_gdbarch_init): Add gdbarch initializations for macros
5095         undefined in tm-m68k.h
5096
5097 2002-06-26  Grace Sainsbury  <graces@redhat.com>
5098
5099         * monitor.h: Add the function regname to monitor_ops
5100         structure. This way NUM_REGS does not have to be a constant.
5101         * monitor.c (monitor_fetch_register): Added support for regname
5102         function. The function is called if the array regnames is NULL.
5103         (monitor_store_register): Same.
5104         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5105         regnames array.
5106         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5107         cpu32bug_cmds.regname to point to new function.
5108         * abug-rom.c (abug_regname): Same as above.
5109         (init_abug_cmds): Same.
5110         * dbug-rom.c (dbug_regname): Same as above.
5111         (init_dbug_cmds): Same.
5112         * remote-est.c (est_regname): Same. 
5113         (init_est_cmds): Same.
5114         * rom68k-rom.c (rom68k_regname): Same. 
5115         (init_rom68k_cmds): Same.
5116
5117 2002-06-25  Tom Tromey  <tromey@redhat.com>
5118
5119         * breakpoint.c (delete_command): Don't repeat `delete' commands.
5120
5121 2002-06-25  Andrew Cagney  <cagney@redhat.com>
5122
5123         * infrun.c (stop_registers): Change variable's type to ``struct
5124         regcache'''.
5125         (xmalloc_inferior_status): Delete function.
5126         (free_inferior_status): Delete function.
5127         (normal_stop): Use regcache_cpy.
5128         (struct inferior_status): Change type of fields ``stop_registers''
5129         and ``registers'' to ``struct regcache''.
5130         (write_inferior_status_register): Use regcache_write.
5131         (save_inferior_status): Instead of calling
5132         xmalloc_inferior_status, allocate the inf_status buffer directly.
5133         Use regcache_dup_no_passthrough and regcache_dup to save the
5134         buffers.
5135         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5136         Replace the stop_registers regcache instead of overriding it.  Use
5137         regcache_xfree.  Instead of calling free_inferior_status, xfree
5138         the buffer directly.
5139         (discard_inferior_status): Use regcache_xfree.  Instead of calling
5140         free_inferior_status, xfree the buffer directly.
5141         (build_infrun): Use regcache_xmalloc.
5142         (_initialize_infrun): Delete redundant call to build_infrun.
5143
5144         * Makefile.in (infcmd.o): Add $(regcache_h).
5145
5146         * infcmd.c: Include "regcache.h".
5147         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5148         obtain the address of `stop_registers' register buffer.
5149         (print_return_value): Ditto.
5150
5151         * inferior.h (struct regcache): Add opaque declaration.
5152         (stop_registers): Change variable's declared type to ``struct
5153         regcache''.
5154
5155 2002-06-24  Tom Tromey  <tromey@redhat.com>
5156
5157         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5158         * target.c (initialize_targets): Fixed typo in
5159         trust-readonly-sections `show' documentation.
5160
5161         * main.c: Marked all strings with _().
5162
5163 2002-06-24  Don Howard  <dhoward@redhat.com>
5164
5165         * memattr.c (create_mem_region): Treat hi == 0 as a special case
5166         that means max CORE_ADDR+1.
5167         (lookup_mem_region): Ditto.
5168         (mem_info_command): Ditto.
5169
5170 2002-06-24  Grace Sainsbury  <graces@redhat.com>
5171
5172         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5173         (REGISTER_BYTES_OK): Remove.
5174         (REGISTER_BYTES): Remove.
5175         (STORE_STRUCT_RETURN): Remove.
5176         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5177         (STORE_RETURN_VALUE): Remove.
5178         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5179         (FRAME_CHAIN): Remove.
5180         (FRAMELESS_FUNCTION_INVOCATION): Remove.
5181         (FRAME_SAVED_PC): Remove.  
5182         * m68k-tdep.c (m68k_register_bytes_ok):Add.
5183         (m68k_store_struct_return): Add.
5184         (m68k_deprecated_extract_return_value): Add.
5185         (m68k_deprecated_extract_struct_value_address): Add.
5186         (m68k_store_return_value): Add.
5187         (m68k_frame_chain): Add.
5188         (m68k_frameless_function_invocation): Add.
5189         (m68k_frame_saved_pc): Add.
5190         (m68k_gdbarch_init): added set_gdbarch calls for new 
5191         functions and deleted macros.
5192
5193 2002-06-23  Tom Tromey  <tromey@redhat.com>
5194
5195         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5196         (ALLDEPFILES): Likewise.
5197         (udiheaders): Removed.
5198         (udip2soc.o): Likewise.
5199         (udi2go32.o): Likewise.
5200         (udr.o): Likewise.
5201         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5202
5203 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
5204
5205         * infrun.c (_initialize_infrun): Delete unnecessary call to
5206         build_infrun.
5207
5208         * regcache.h: Update comments describing the regcache_cpy family
5209         of functions.
5210         (regcache_save, regcache_restore): Delete declaration.
5211         (regcache_save_no_passthrough): Delete declaration.
5212         (regcache_restore_no_passthrough): Delete declaration.
5213         * regcache.c (regcache_save): Delete function.
5214         (regcache_save_no_passthrough): Delete function.
5215         (regcache_restore): Delete function.
5216         (regcache_restore_no_passthrough): Delete function.
5217
5218 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
5219
5220         * config/m68k/tm-m68k.h: Fix typo.
5221         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5222         (m68k_frame_init_saved_regs): Declare.
5223
5224 2002-06-21  Jim Blandy  <jimb@redhat.com>
5225
5226         Remove some vestiges of Harris 88k support.
5227         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5228         register numbering quirk.
5229         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5230         odd symbols occurring in Harris 88k ELF targets.
5231
5232 2002-06-21  Tom Tromey  <tromey@redhat.com>
5233
5234         * gdb_locale.h: New file.
5235         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5236         (defs_h): Added gdb_locale.h.
5237         * configure, config.in: Rebuilt.
5238         * configure.in (PACKAGE): Define.
5239         * defs.h: Include gdb_locale.h.
5240         * main.c (captured_main): Call setlocale, bindtextdomain,
5241         textdomain.
5242
5243 2002-06-21  Dave Brolley  <brolley@redhat.com>
5244
5245         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5246         * config/frv/frv.mt: New file.
5247         * config/frv/tm-frv.h: New file.
5248         * configure.tgt: Support frv-*-*.
5249         * Makefile.in (frv-tdep.o): New target.
5250         * frv-tdep.c: New file.
5251         * NEWS: Mention frv.
5252
5253 2002-06-21  Dave Brolley  <brolley@redhat.com>
5254
5255         * MAINTAINERS: Add self to "Write After Approval" list.
5256
5257 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5258
5259         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5260         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5261         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5262         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5263         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5264
5265         * m68k-tdep.c: Include arch-utils.h
5266         (m68k_register_raw_size): Add.
5267         (m68k_register_virtual_size): Add.
5268         (m68k_register_virtual_type): Add.
5269         (m68k_register_name): Add.
5270         (m68k_stack_align): Add.
5271         (m68k_register_byte): Add.
5272         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5273         tm-m68k.h.
5274
5275 2002-06-21  Grace Sainsbury  <graces@redhat.com>
5276
5277         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5278         m68k_find_saved_regs.
5279         (m68k_pop_frame): Removed saved_regs structure, and replaced
5280         references to it with frame->saved_regs.
5281         (m68k_gdbarch_init): Added function calls to initialize the
5282         gdbarch structure.
5283         (m68k_fix_call_dummy): Add. 
5284         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5285         (CALL_DUMMY): Remove.
5286         (CALL_DUMMY_LENGTH): Remove.
5287         (CALL_DUMMY_START_OFFSET): Remove.
5288         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5289         (FIX_CALL_DUMMY): Remove.
5290         (PUSH_DUMMY_FRAME): Remove.
5291         (POP_FRAME): Remove.
5292
5293 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5294
5295         * parse.c (parse_fprintf): New function used to avoid calls to
5296         fprintf in bison parser generated debug code.
5297         * parser-defs.h: Declaration of new parse_fprintf function.
5298         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5299         Set YYDEBUG to 1 by default.
5300         Set YYFPRINTF as parse_fprintf.
5301
5302 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
5303
5304         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
5305         encoding anymore.
5306         (pointer_encoding, enum ptr_encoding): New.
5307         (execute_cfa_program): Take care about pointer encoding.        
5308         (dwarf2_build_frame_info): Only call parse_frame_info for 
5309         .debug_frame and .eh_frame.
5310         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5311         fixed augmentation handling, added relative addressing, 
5312         ignore duplicate FDEs. Added comments.
5313         * dwarf2cfi.c: Reindented.
5314         
5315 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
5316
5317         * event-top.c (command_handler): Don't use space_at_cmd_start
5318         unless there is sbrk() on the host. Assign time and space data
5319         to union fields of the appropriate length.
5320
5321 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
5322
5323         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
5324         x86_64_register_name. Return type changed to 'const char *'.
5325         (x86_64_register_name2nr): Rename to x86_64_register_number.
5326         (x86_64_gdbarch_init): Update to reflect the change.
5327         * x86-64-tdep.h: Ditto.
5328         * x86-64-linux-nat.c (x86_64_fxsave_offset)
5329         (supply_fpregset): Ditto.
5330
5331 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5332
5333         * regcache.h: Update copyright.
5334         (struct regcache, struct gdbarch): Add opaque declarations.
5335         (current_regcache): Declare global variable.
5336         (regcache_read, regcache_write): Add gdbarch parameter.
5337         (regcache_save, regcache_save_no_passthrough)
5338         (regcache_restore, regcache_restore_no_passthrough)
5339         (regcache_dup, regcache_dup_no_passthrough)
5340         (regcache_cpy, regcache_cpy_no_passthrough)
5341         (deprecated_grub_regcache_for_registers)
5342         (deprecated_grub_regcache_for_register_valid)
5343         (regcache_valid_p): Add function declarations.
5344         
5345         * regcache.c: Update copyright.
5346         (regcache_descr_handle): New global variable.
5347         (struct regcache_descr): Define.
5348         (init_legacy_regcache_descr, init_regcache_descr): New functions.
5349         (regcache_descr, xfree_regcache_descr): New functions.
5350         (struct regcache): Define.
5351         (regcache_xmalloc, regcache_xfree): New functions.
5352         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5353         (regcache_dup, regcache_dup_no_passthrough): New functions.
5354         (regcache_valid_p, regcache_read_as_address): New functions.
5355         (deprecated_grub_regcache_for_registers): New function.
5356         (deprecated_grub_regcache_for_register_valid): New function.
5357         (current_regcache): New global variable.
5358         (register_buffer): Add regcache parameter.  Update calls.
5359         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
5360         (read_register_gen, write_register_gen): Update register_buffer
5361         call.  Test for legacy_p instead of gdbarch_register_read_p or
5362         gdbarch_register_write_p.
5363         (regcache_collect): Update register_buffer call.
5364         (build_regcache): Rewrite.  Use deprecated grub functions.
5365         (regcache_save, regcache_save_no_passthrough): New functions.
5366         (regcache_restore, regcache_restore_no_passthrough): New
5367         functions.
5368         (_initialize_regcache): Create the regcache_data_handle. Swap
5369         current_regcache global variable.
5370         
5371         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5372         parameter to regcache_read and regcache_write calls.
5373         (sh4_register_read): Ditto.
5374         (sh64_pseudo_register_read): Ditto.
5375         (sh64_register_read): Ditto.
5376         (sh_pseudo_register_write): Ditto.
5377         (sh4_register_write): Ditto.
5378         (sh64_pseudo_register_write): Ditto.
5379         (sh64_register_write): Ditto.
5380
5381         * defs.h (XCALLOC): Define.
5382
5383 2002-06-19  Grace Sainsbury  <graces@redhat.com>
5384
5385         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5386         * m68k-tdep.c (m68k_gdbarch_init): Added.
5387         (m68k_dump_tdep): Added.
5388
5389 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5390
5391         * ada-lang.c (fill_in_ada_prototype): Update comment.
5392
5393 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
5394
5395         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
5396         MIPS_ABI_LAST.
5397         (mips_abi_string, mips_abi_strings): New.
5398         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5399         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
5400         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
5401         O32 if no ABI is found.
5402         (mips_dump_tdep): Use mips_abi_strings.
5403         (mips_abi_update): New function.
5404         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
5405         ``set mips abi'' and ``show mips abi''.  Check the size of
5406         mips_abi_strings.
5407
5408 2002-06-19  Andrew Cagney  <cagney@redhat.com>
5409
5410         * i386-linux-tdep.c (i386_linux_register_name): Make return type
5411         constant.
5412
5413 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
5414
5415         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
5416         current frame using only the first stack size adjustment. All
5417         subsequent size adjustments are not considered to be part of
5418         the "static" part of the current frame.
5419         Compute the address of the saved registers relative to the
5420         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5421         in use in this frame.
5422
5423 2002-06-18  Don Howard  <dhoward@redhat.com>
5424  
5425         * valops.c (value_ind): Use value_at_lazy() when dereferencing
5426         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
5427         suggesting this solution.
5428
5429 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
5430
5431         * config/romp/xm-rtbsd.h: Delete file.
5432         * config/romp/rtbsd.mh: Delete file.
5433
5434 2002-06-18  Keith Seitz  <keiths@redhat.com>
5435
5436         * breakpoint.c (condition_command): Post breakpoint_modify
5437         when a condition is added to an existing breakpoint.
5438         (commands_command): Likewise for commands.
5439         (set_ignore_count): Likewise for ignore counts.
5440         If no tty, do not simply return, still need to send event
5441         notification.
5442         (ignore_command): Only print a newline if the command came
5443         from a tty.
5444         Don't call breakpoints_changed, since this is now properly
5445         handled by set_ignore_count.
5446
5447 2002-06-18  Andrew Cagney  <cagney@redhat.com>
5448
5449         * MAINTAINERS: Note that cris-elf target can be compiled with
5450         -Werror.
5451         * cris-tdep.c (cris_register_name): Make return type constant.
5452         (cris_breakpoint_from_pc): Ditto.
5453
5454 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
5455
5456         * frame.h (struct frame_info): Change type of context to 
5457         'struct context'.
5458
5459 2002-06-17  Andrew Cagney  <cagney@redhat.com>
5460
5461         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5462         pointer.
5463         * gdbarch.h, gdbarch.c: Regenerate.
5464         * config/mips/tm-mips.h (mips_register_name): Update.
5465         * i386-tdep.h (i386_register_name): Update.
5466         * mips-tdep.c (mips_register_name): Update
5467         * alpha-tdep.c (alpha_register_name): Update.
5468         * arch-utils.c (legacy_register_name): Update.
5469         * arch-utils.h (legacy_register_name): Update.
5470         * avr-tdep.c (avr_register_name): Update.
5471         * ia64-tdep.c (ia64_register_name): Update.
5472         * i386-tdep.c (i386_register_name): Update.
5473         * sparc-tdep.c (sparc32_register_name): Update.
5474         (sparc64_register_name): Update.
5475         (sparclite_register_name): Update.
5476         (sparclet_register_name): Update.
5477         * sh-tdep.c (sh_generic_register_name): Update.
5478         (sh_sh_register_name): Update.
5479         (sh_sh3_register_name): Update.
5480         (sh_sh3e_register_name): Update.
5481         (sh_sh_dsp_register_name): Update.
5482         (sh_sh3_dsp_register_name): Update.
5483         (sh_sh4_register_name): Update.
5484         (sh_sh64_register_name): Update.
5485         * s390-tdep.c (s390_register_name): Update.
5486         * rs6000-tdep.c (rs6000_register_name): Update.
5487         * ns32k-tdep.c (ns32k_register_name_32082): Update.
5488         (ns32k_register_name_32382): Update.
5489         * d10v-tdep.c (d10v_ts2_register_name): Update.
5490         (d10v_ts3_register_name): Update.
5491         * xstormy16-tdep.c (xstormy16_register_name): Update.
5492         * vax-tdep.c (vax_register_name): Update.
5493         * v850-tdep.c (v850_register_name): Update.
5494         * m68hc11-tdep.c (m68hc11_register_name): Update.
5495         * mn10300-tdep.c (mn10300_generic_register_name): Update.
5496         (am33_register_name): Update.
5497
5498 2002-06-17  Grace Sainsbury  <graces@redhat.com>
5499
5500         * m68k-tdep.c: Reindented.
5501
5502 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
5503
5504         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5505         list of predefined types.
5506
5507 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
5508
5509         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5510         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5511         REGISTER_CONVERT_TO_RAW): Remove defines.
5512         (i386_register_virtual_type, i386_register_convertible,
5513         i386_register_convert_to_virtual, i386_register_convert_to_raw):
5514         Remove prototypes.
5515         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5516         macros mentioned above.
5517
5518         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5519         (i386lynx_saved_pc_after_call): Remove prototype.
5520         * i386ly-tdep.c: Include "i386-tdep.h".
5521         (i386lynx_saved_pc_after_call): Make static.  Use
5522         read_memory_nobpt instead of read_memory.  Use
5523         read_memory_unsigned_integer instead of read_memory_integer.
5524         (i386lynx_init_abi): New function.
5525         (i386lynx_coff_osabi_sniffer): New function.
5526         (_initialize_i386bsd_tdep): New function.
5527
5528         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5529         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5530         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5531         (i386_fix_call_dummy): Remove prototype.
5532         * i386-tdep.c (i386_call_dummy_words): New variable.
5533         (i386_gdbarch_init): Adjust for removal of the
5534         macros mentioned above.
5535
5536 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5537
5538         * command.h (add_setshow_auto_boolean_cmd): Replace
5539         add_set_auto_boolean_cmd.
5540         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5541         add_set_auto_boolean_cmd.
5542         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5543         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5544         mask-address'' command.
5545         (show_mask_address): Add cmd parameter.
5546         * remote.c (add_packet_config_cmd): Update.  Change type of
5547         set_func and show_func to cmd_sfunc_ftype.
5548         (_initialize_remote): Update `set remote Z-packet'
5549         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5550         (show_remote_protocol_e_packet_cmd): Ditto.
5551         (show_remote_protocol_E_packet_cmd): Ditto.
5552         (show_remote_protocol_P_packet_cmd): Ditto.
5553         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5554         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5555         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5556         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5557         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5558         (show_remote_protocol_Z_packet_cmd): Ditto.
5559         (show_remote_protocol_binary_download_cmd): Ditto.
5560         (show_remote_cmd): Pass NULL to all of above.
5561
5562 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5563
5564         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5565         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5566         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5567         POP_FRAME): Remove defines.
5568         (i386_push_arguments, i386_store_struct_return,
5569         i386_extract_return_value, i386_store_return_value,
5570         i386_extract_struct_value_address, i386_push_dummy_frame,
5571         i386_pop_frame): Renove prototypes.
5572         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5573         macros mentioned above.
5574
5575 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5576
5577         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5578         add_set_boolean_cmd.
5579         (add_setshow_cmd): New function.
5580         * command.h (add_setshow_boolean_cmd): Replace
5581         add_set_boolean_cmd.
5582         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5583         and ``set rdiromatzero''.
5584         * maint.c (_initialize_maint_cmds): Update commented out code.
5585         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5586         * target.c (initialize_targets): Update `set
5587         trust-readonly-sections'.
5588         * remote.c (_initialize_remote): Update `set remotebreak'.
5589
5590 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5591
5592         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5593         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5594         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5595         fit into multi-arch framework.
5596         (i386_breakpoint_from_pc): New function.
5597         (i386_gdbarch_init): Adjust for removal of the macros mentioned
5598         above.
5599
5600         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5601         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5602         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5603         (i386_frameless_function_invocation, i386_frame_num_args,
5604         i386_frame_init_saved_regs): Remove prototypes.
5605         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5606         macros mentioned above.
5607
5608 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5609
5610         * cli/cli-decode.c (set_cmd_cfunc): Update.
5611         (set_cmd_sfunc): Update.
5612         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5613         (set_cmd_sfunc, set_cmd_cfunc): Update.
5614         * cli/cli-decode.h: Update.
5615
5616 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5617
5618         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5619         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5620
5621 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
5622
5623         * defs.h (auto_boolean): Declare enum.
5624         * command.h (cmd_auto_boolean): Delete enum.
5625         * mips-tdep.c (mask_address_var): Update.
5626         (mips_mask_address_p): Update.
5627         (show_mask_address): Update.
5628         * remote.c (struct packet_config): Update.
5629         (update_packet_config): Update.
5630         (show_packet_config_cmd): Update.
5631         (packet_ok): Update.
5632         (add_packet_config_cmd): Update.
5633         (_initialize_remote): 
5634         * command.h: Update.
5635         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5636         (do_setshow_command): Update.
5637         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5638         * cli/cli-decode.h: Update.
5639
5640 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5641
5642         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5643         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5644         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5645         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5646         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5647         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5648
5649         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5650         list of DJGPP COFF targets.
5651
5652         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5653         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5654         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5655         (FP0_REGNUM): Remove define.
5656         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5657         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5658         (i386_register_virtual_size): Remove protoype.
5659         * i386-tdep.c (i386_register_virtual_size): Removed.
5660         (i386_extract_return_value, i386_store_return_value): Use
5661         FP0_REGNUM instead of NUM_FREGS to determine whether the
5662         floating-point registers are available.
5663         (i386_gdbarch_init): Tweak FIXME about FPU registers.
5664         Adjust for removal of macros mentioned above.
5665
5666 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5667
5668         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
5669         comments.
5670         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5671         Remove prototypes.
5672         (supply_gregset, fill_gregset): Remove use of register keyword and
5673         remove declaration for regmap.  Use I386_NUM_GREGS instead of
5674         NUM_REGS and NUM_FREGS.
5675         (FPREGSET_FSAVE_OFFSET): Remove.
5676         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5677         NUM_FREGS to determine whether the floating-point registers are
5678         available.
5679
5680         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5681         gnu_store_registers): Replace usage of NUM_GREGS with
5682         I386_NUM_GREGS.
5683
5684         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5685         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5686         usage of NUM_GREGS with I386_NUM_GREGS.
5687
5688         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5689
5690         * i386bsd-nat.c: Include "i386-tdep.h".
5691         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5692         I386_NUM_GREGS.
5693
5694         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5695         and associated comment.  They no longer make any sense, since we
5696         don't use this file anymore on Linux.
5697
5698         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5699         * i386-tdep.c (i386_register_offset, i386_register_size): Use
5700         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5701         elements in these arrays.
5702         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5703         MAX_NUM_REGS.
5704
5705 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
5706
5707         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5708         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5709
5710 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5711
5712         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5713         EXTRACT_RETURN_VALUE.
5714         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5715         EXTRACT_STRUCT_VALUE_ADDRESS.
5716         * gdbarch.h, gdbarch.c: Regenerate.
5717         
5718         * values.c (value_being_returned): Handle
5719         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5720         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5721
5722         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
5723         * arm-tdep.c (arm_gdbarch_init): Update.
5724         * avr-tdep.c (avr_gdbarch_init): Update.
5725         * cris-tdep.c (cris_gdbarch_init): Update.
5726         * d10v-tdep.c (d10v_gdbarch_init): Update.
5727         * ia64-tdep.c (ia64_gdbarch_init): Update.
5728         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5729         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5730         * s390-tdep.c (s390_gdbarch_init): Update.
5731         * sh-tdep.c (sh_gdbarch_init): Update.
5732         * s390-tdep.c (s390_gdbarch_init): Update.
5733         * sparc-tdep.c (sparc_gdbarch_init): Update.
5734         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5735         * v850-tdep.c (v850_gdbarch_init): Update.
5736         * vax-tdep.c (vax_gdbarch_init): Update.
5737         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5738         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5739
5740         * config/arc/tm-arc.h: Update.
5741         * config/d30v/tm-d30v.h: Update.
5742         * config/fr30/tm-fr30.h: Update.
5743         * config/h8300/tm-h8300.h: Update.
5744         * config/h8500/tm-h8500.h: Update.
5745         * config/i386/tm-i386.h: Update.
5746         * config/i386/tm-ptx.h: Update.
5747         * config/i386/tm-symmetry.h: Update.
5748         * config/i960/tm-i960.h: Update.
5749         * config/m32r/tm-m32r.h: Update.
5750         * config/m68k/tm-delta68.h: Update.
5751         * config/m68k/tm-linux.h: Update.
5752         * config/m68k/tm-m68k.h: Update.
5753         * config/m88k/tm-m88k.h: Update.
5754         * config/mcore/tm-mcore.h: Update.
5755         * config/mips/tm-mips.h: Update.
5756         * config/mn10200/tm-mn10200.h: Update.
5757         * config/pa/tm-hppa.h: Update.
5758         * config/pa/tm-hppa64.h: Update.
5759         * config/sparc/tm-sp64.h: Update.
5760         * config/sparc/tm-sparc.h: Update.
5761         * config/sparc/tm-sparclet.h: Update.
5762         * config/z8k/tm-z8k.h: Update.
5763
5764 2002-06-14  Andrew Cagney  <cagney@redhat.com>
5765
5766         * Makefile.in (i386_linux_tdep_h): Define.
5767         (i386_tdep_h, i387_tdep_h): Define.
5768         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5769         $(i386_tdep_h) and $(i387_tdep_h).
5770         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5771
5772 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
5773
5774         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5775         Already covered by the default.
5776
5777         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5778         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
5779         (i386_gdbarch_init): Initialize long_double_format and long_double
5780         bit.
5781
5782         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5783         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
5784         Move these to ...
5785         * config/i386/i386sol2.mh: ... here.
5786         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5787         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5788         (SIGCONTEXT_PC_OFFSET): Remove define.
5789         (IN_SIGTRAMP): Remove define.
5790         * i386-sol2-tdep.c: New file.
5791         
5792         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5793         * config/i386/tm-i386nw.h: Removed.
5794
5795         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5796         USE_STRUCT_CONVENTION): Remove defines.
5797         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5798         (get_longjmp_target): Remove prototype.
5799         (IN_SIGTRAMP): Remove define.
5800         (i386bsd_in_sigtramp): Remove prototype.
5801         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5802         function.  Update comment accordingly
5803         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5804         (FRAME_SAVED_PC): Remove define.
5805         (i386bsd_frame_saved_pc): Remove prototype.
5806         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5807         GET_LONGJMP_TARGET): Remove defines.
5808         (get_longjmp_target): Remove prototype.
5809         (IN_SIGTRAMP): Remove define.
5810         (i386bsd_in_sigtramp): Remove prototype.
5811         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5812         function.  Update comment accordingly
5813         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5814         (FRAME_SAVED_PC): Remove define.
5815         (i386bsd_frame_saved_pc): Remove prototype.
5816         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5817         Remove prototype.
5818         (USE_STRUCT_CONVENTION): Remove prototype.
5819         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5820         declaration.
5821         (_initialize_i386bsd_nat): Revise logic to determine some
5822         constants at compile time when compiling a native GDB.  Warn if
5823         things don't match up with what we expect.
5824         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5825         Remove variables.
5826         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
5827         to use date stored in `struct gdbarch_tdep'.
5828         (i386bsd_sigcontext_offset): Remove varaible.
5829         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
5830         stored in `struct gdbarch_tdep'.
5831         (i386bsd_frame_saved_pc): Make static.
5832         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5833         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5834         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5835         i386fbsd4_sc_pc_offset): New variables.
5836         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5837         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5838         functions.
5839         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5840         functions.
5841         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5842         Modify the value of i386fbsd_sigtramp_start and
5843         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5844         i386fbsd_sigtramp_end.
5845         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5846         function.
5847
5848         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5849         define to i386-linux-tdep.h.
5850         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5851         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5852         defines.
5853         (i386_linux_register_name, i386_linux_register_byte,
5854         i386_linux_register_raw_size): Remove prototypes.
5855         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5856         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5857         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5858         TARGET_WRITE_PC): Remove defines.
5859         (i386_linux_in_sigtramp, i386_linux_frame_chain,
5860         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5861         i386_linux_write_pc): Remove prototypes.
5862         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5863         (get_longjmp_target): Remove prototype.
5864         * i386-linux-tdep.h: New file.
5865         * i386-linux-nat.c: Include "i386-linux-tdep.h".
5866         * i386-linux-tdep.c: Include "i386-tdep.h" and
5867         "i386-linux-tdep.h".
5868         (i386_linux_register_name, i386_linux_register_byte,
5869         i386_linux_register_raw_size, i386_linux_in_sigtramp,
5870         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5871         Make static.
5872         (i386_linux_init_abi): New function.
5873         (_initialize_i386_linux_tdep): New function.
5874
5875         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5876         (i386_saved_pc_after_call): Remove prototype.
5877         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5878         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5879         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5880         (i386_register_name, i386_stab_reg_to_regnum,
5881         i386_dwarf_reg_to_regnum): Remove prototypes.
5882         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5883         SIZEOF_SSE_REGS): Remove defines.
5884         (REGISTER_BYTES): Remove define.
5885         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5886         (i386_register_byte, i386_register_raw_size): Remove prototypes.
5887         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5888         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5889         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5890         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5891         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5892         (get_longjmp_target): Remove prototype.
5893         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5894         (sigtramp_saved_pc): Remove define.
5895         (i386v4_sigtramp_saved_pc): Remove prototype.
5896         * config/i386/tm-go32.h (FRAME_CHAIN,
5897         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5898         (i386go32_frame_saved_pc): Remove prototype.
5899         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5900         (get_longjmp_target): Remove prototype.
5901         * i386-tdep.h: Include "osabi.h".
5902         (enum i386_abi): Removed.
5903         (enum struct_return): New enum.
5904         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5905         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5906         sc_pc_offset members.
5907         (i386_gdbarch_register_os_abi): Remove prototype.
5908         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5909         I386_SSE_NUM_REGS): New defines.
5910         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5911         I386_SSE_SIZEOF_REGS): New defines.
5912         (i386_register_name, i386_register_byte, i386_register_raw_size):
5913         New prototypes.
5914         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5915         (i386bsd_sigtramp_saved_pc): New prototype.
5916         * i386-tdep.c: Don't include "elf-bfd.h".
5917         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5918         i386_frame_chain, i386_saved_pc_after_call): Make static.
5919         (i386_frame_saved_pc): Rewrite to call architecture dependent
5920         function to deal with signal handlers.  Make static.
5921         (i386go32_frame_saved_pc): Removed.
5922         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5923         Removed.
5924         (i386_get_longjmp_target): New function.
5925         (default_struct_convention, pcc_struct_convention,
5926         reg_struct_convention, valid_conventions, struct_convention): New
5927         variables.
5928         (i386_use_struct_convention): New function.
5929         (i386v4_sigtramp_saved_pc): Renamed to
5930         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
5931         (i386_pc_in_sigtramp): New function.
5932         (i386_abi_names): Removed.
5933         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5934         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5935         Removed.
5936         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5937         i386_gdbarch_register_os_abi): Removed.
5938         (struct i386_abi_handler): Removed.
5939         (i386_abi_handler_list): Removed.
5940         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5941         functions.
5942         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5943         i386_nw_init_abi): New functions.
5944         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5945         Use set_gdbarch_xxx() calls instead of relying on macros for a
5946         number of calls.
5947         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5948         (_initialize_i386_tdep): Add new 'struct-convcention' command.
5949         Register the various architecture variants defined in this file.
5950
5951 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
5952
5953         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5954         (struct main_type): Remove arg_types member.  Update comments for
5955         struct field.
5956         (TYPE_ARG_TYPES): Remove.
5957         (TYPE_FN_FIELD_ARGS): Update.
5958         (smash_to_method_type): Update prototype.
5959
5960         * c-typeprint.c (cp_type_print_method_args): Take method type
5961         instead of argument list.  Use new argument layout.  Simplify.
5962         (c_type_print_args): Use new argument layout.  Simplify.
5963         (c_type_print_base): Update call to cp_type_print_method_args.
5964         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5965         argument; use die->type instead.  Update call to
5966         smash_to_method_type.
5967         (read_structure_scope): Update call to dwarf2_add_member_fn.
5968         * gdbtypes.c (allocate_stub_method): Update comment.
5969         (smash_to_method_type): Take new NARGS and VARARGS arguments.
5970         Use new argument layout.
5971         (check_stub_method): Use new argument layout.  Don't count
5972         void as an argument.
5973         (print_arg_types): Update comments.  Use new argument layout.
5974         (recursive_dump_type): Don't print arg_types member.
5975         * hpread.c (hpread_read_struct_type): Use new argument layout.
5976         (fixup_class_method_type): Likewise.
5977         (hpread_type_lookup): Likewise.
5978         * stabsread.c (read_type): Update calls to read_args and
5979         smash_to_method_type.
5980         (read_args): Use new argument layout.  Simplify.
5981         * valops.c (typecmp): Use new argument layout.  Update parameters
5982         and comments.  Simplify.
5983         (hand_function_call): Use new argument layout.
5984         (search_struct_method): Update call to typecmp.
5985         (find_overload_match): Use new argument layout.
5986
5987 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5988
5989         * NEWS: Mention multithreaded debug support for gdbserver.
5990
5991 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5992
5993         * MAINTAINERS: Mention NEWS.
5994
5995 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
5996
5997         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5998         (struct mips_objfile_private, compare_pdr_entries): New.
5999         (non_heuristic_proc_desc): Read the ".pdr" section if it
6000         is present.
6001
6002 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6003
6004         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6005         (arm_debug): New static variable.
6006         (_initialize_arm_tdep): Add ``set debug arm'' command.
6007
6008 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
6009
6010         * Makefile.in (sim_arm_h): Define.
6011         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6012         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6013         (arm_register_sim_regno): New function, map an internal REGNUM
6014         onto a simulator register number.
6015         (arm_gdbarch_init): Set register_sim_regno.
6016
6017 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
6018
6019         * MAINTAINERS: Add self.
6020
6021 2002-06-11  Jim Blandy  <jimb@redhat.com>
6022
6023         * source.c (source_info): Mention whether the symtab has
6024         information about preprocessor macros.
6025
6026         Call the command `info macro', not `show macro'.
6027         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6028         Fix error message.
6029         (_initialize_macrocmd): Register `info_macro_command' in
6030         `infolist', not `showlist'.
6031
6032 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
6033
6034         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6035         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6036         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6037         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6038         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
6039         unconditionally.
6040         (set_mipsfpu_single_command, set_mipsfpu_double_command)
6041         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6042         (_initialize_mips_tdep): Remove dead code.
6043         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6044         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6045         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6046         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6047         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6048         MIPS_LAST_FP_ARG_REGNUM): Remove.
6049
6050 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6051
6052         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6053         (unwind_tmp_obstack_free, parse_frame_info)
6054         (update_context, cfi_read_fp, cfi_write_fp)
6055         (cfi_frame_chain, cfi_init_extra_frame_info)
6056         (cfi_virtual_frame_pointer): Use the above function.
6057         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6058
6059 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
6060
6061         * v850-tdep.c (v850_type_is_scalar): New function.
6062         (v850_use_struct_convention): Match current gcc implementation
6063         as close as possible.
6064         (v850_push_arguments): Fix stack_offset handling.  Don't write
6065         struct_addr into register.  This is done by v850_store_struct_return.
6066         (v850_extract_return_value): Care for structs.
6067         (v850_store_return_value): Ditto.
6068         (v850_store_struct_return): Actually write address.
6069
6070 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
6071
6072         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6073         without debug information too.
6074
6075 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6076
6077         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6078         Make multi-arch pure.
6079         * gdbarch.h, gdbarch.c: Re-generate.
6080         * arm-tdep.c (arm_print_float_info): Update.
6081         * arch-utils.h (default_print_float_info): Update.
6082         * arch-utils.c (default_print_float_info): Update.
6083         * infcmd.c (float_info): Update call.
6084
6085 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6086
6087         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6088         the front of the initialize list.
6089
6090 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
6091
6092         * infrun.c (struct inferior_status): Replace fields
6093         selected_frame_address and selected_level with field
6094         selected_frame_id.
6095         (save_inferior_status): Update.  Use get_frame_id.
6096         (struct restore_selected_frame_args): Delete.
6097         (restore_selected_frame): Update.  Use frame_find_by_id.
6098         (restore_inferior_status): Update.
6099
6100         * breakpoint.h (struct breakpoint): Change type of
6101         watchpoint_frame to frame_id.
6102         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
6103         call to get_current_frame.
6104         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
6105         get_current_frame.
6106         (watchpoint_check): Use frame_find_by_id.
6107
6108         * frame.h (record_selected_frame): Delete declaration.
6109         * stack.c (record_selected_frame): Delete function.
6110         
6111         * frame.h (struct frame_id): Define.
6112         (get_frame_id): Declare.
6113         (frame_find_by_id): Declare.
6114         * frame.c (frame_find_by_id): New function.
6115         (get_frame_id): New function.
6116
6117 2002-06-10  Andrey Volkov <avolkov@transas.com>
6118
6119         * ser-e7kpc.c: Fix duplicated define and call of 
6120         _initialize_ser_e7000pc
6121             
6122 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6123
6124         * signals/signals.c (target_signal_from_host): Fix #ifdef
6125         SIGRTMIN case.
6126         (do_target_signal_to_host): Likewise.
6127
6128 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
6129
6130         * mips-tdep.c (mips_find_abi_section): New function.
6131         (mips_gdbarch_init): Call it.
6132
6133 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6134
6135         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6136         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
6137         after Andrew's 2002-06-08 gdbarch change.
6138
6139 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6140
6141         * i386-linux-nat.c (suppy_gregset): Don't supply
6142         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6143         register cache.
6144         (fill_gregset): Don't fetch it under the same circumstances.
6145
6146 2002-06-09  Andrew Cagney  <cagney@redhat.com>
6147
6148         * Makefile.in (callback_h): Define.
6149         (remote_sim_h): Update path to remote-sim.h.
6150         (remote-rdp.o): Add $(callback_h).
6151         (remote-sim.o): Use $(callback_h).
6152         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6153         * remote-rdp.c: Include "gdb/callback.h".
6154
6155 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
6156
6157         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6158         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6159
6160 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6161
6162         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6163         * rdi-share/serpardr.c: Ditto.
6164         * rdi-share/unixcomm.c: Ditto.
6165         * rdi-share/serdrv.c: Ditto.
6166         * rdi-share/hostchan.h: Ditto.
6167         * rdi-share/hostchan.c: Ditto.
6168         * rdi-share/host.h: Ditto.
6169         * rdi-share/devsw.c: Ditto.
6170
6171         * objfiles.h: Change type of obj_private to void pointer.
6172         * pa64solib.c: Update copyright.  Don't include "assert.h", use
6173         strcmp instead of STREQ, use LONGEST, do not use PTR
6174         * somsolib.c: Ditto.
6175
6176         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6177         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6178         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6179
6180 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6181
6182         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6183         (default_get_saved_register): Delete function.
6184         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6185         generic_unwind_get_saved_register.
6186         * gdbarch.h, gdbarch.c: Re-generate.
6187         
6188 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6189
6190         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6191         generic_func_frame_chain_valid.
6192         * gdbarch.h, gdbarch.c: Re-generate.
6193         * blockframe.c (generic_func_frame_chain_valid): Only check
6194         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
6195         passing FP to PC_IN_CALL_DUMMY.
6196         Fix PR gdb/360.
6197
6198 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
6199
6200         * gdbarch.sh (struct gdbarch_data): Add field init_p.
6201         (register_gdbarch_data): Initialize init_p.
6202         (gdbarch_data): Initialize data pointer using the init function.
6203         (init_gdbarch_data): Delete function.
6204         (gdbarch_update_p): Update.
6205         (initialize_non_multiarch): Update.
6206         (struct gdbarch): Add field initialized_p.
6207         * gdbarch.h, gdbarch.c: Re-generate.
6208
6209 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
6210
6211         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6212         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6213         better do the things actually here.
6214         * x86-64-tdep.c (x86_64_register_name2nr): New.
6215         (x86_64_register_name): Renamed to x86_64_register_nr2name.
6216         (x86_64_gdbarch_init): Respect the above change.
6217         * x86-64-tdep.h (x86_64_register_name2nr)
6218         (x86_64_register_nr2name): Add prototypes.
6219         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6220
6221 2002-06-06  Michael Snyder  <msnyder@redhat.com>
6222
6223         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6224         Delete extra braces and re-indent.
6225         (d10v_store_return_value): Char return values
6226         must be shifted over by one byte in R0.
6227         (d10v_extract_return_value): Delete extra braces, re-indent.
6228
6229 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6230
6231         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6232         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6233         (d10v_integer_to_address): Rewrite.
6234         (d10v_frame_init_saved_regs): When reading fp and sp registers use
6235         the d10v specific functions which take care of converting to the
6236         correct space.
6237
6238 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
6239
6240         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6241         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6242
6243 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6244
6245         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6246         includes.
6247         * config/tm-linux.h: Ditto.
6248         * config/alpha/tm-alphalinux.h: Ditto.
6249         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6250         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6251         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6252         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6253         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6254         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6255         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6256         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6257         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6258         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6259         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6260         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6261         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6262         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6263         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6264         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6265         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6266         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6267         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6268         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6269         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6270         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6271         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6272         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6273         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6274         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6275         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6276         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6277         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6278         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6279         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6280         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6281         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6282         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6283         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6284         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6285         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6286
6287 2002-05-04  Aidan Skinner <aidan@velvet.net>
6288
6289         * ada-exp.tab.c: New file
6290         * ada-exp.y: New file
6291         * ada-lang.c: New file
6292         * ada-lang.h: New file
6293         * ada-lex.c: New file
6294         * ada-lex.l: New file
6295         * ada-tasks.c: New file
6296         * ada-typeprint.c: New file
6297         * ada-valprint.c: New file
6298         
6299 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6300
6301         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6302         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6303
6304 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
6305
6306         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6307         insetead of ppc-linux-tdep.o.
6308         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6309         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6310
6311 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
6312
6313         2002-05-07 Christian Groessler <chris@groessler.org>
6314         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6315         bit register contents for little endian hosts.
6316
6317 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6318
6319         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6320         any maintainer.
6321
6322 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6323
6324         * gdbarch.h: Regenerate.
6325
6326 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6327
6328         * MAINTAINERS: Add everyone to write-after-approval list.
6329
6330 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
6331
6332         * stack.c (frame_info): Use frame_register_unwind instead of
6333         saved_regs.  Mention when the SP is on the stack or in a register.
6334
6335         * frame.h (frame_register_unwind_ftype): Define.  Document.
6336         (struct frame_info): Add field register_unwind and
6337         register_unwind_cache.
6338         (frame_register_unwind): Declare.
6339         (generic_unwind_get_saved_register): Declare.
6340
6341         * frame.c (frame_register_unwind): New function.
6342         (generic_unwind_get_saved_register): New function.
6343
6344         * blockframe.c (generic_call_dummy_register_unwind): New function.
6345         (frame_saved_regs_register_unwind): New function.
6346         (set_unwind_by_pc): New function.
6347         (create_new_frame): New function.
6348         (get_prev_frame): New function.
6349
6350 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
6351
6352         * a29k-share/: Delete directory.
6353         * remote-vx29k.c: Delete file.
6354
6355 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6356
6357         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6358         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6359
6360 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6361
6362         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6363         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6364         (sparc64nbsd-nat.o)
6365         (sparcnbsd-nat.o)
6366         (sparcnbsd-tdep.o): New dependency lists.
6367         * NEWS: Note new UltraSPARC NetBSD native configuration.
6368         * configure.host (sparc64-*-netbsd*): New host.
6369         * configure.tgt (sparc-*-netbsdelf*)
6370         (sparc-*-netbsd*): Set gdb_target to nbsd.
6371         (sparc64-*-netbsd*): New target.
6372         * sparc64nbsd-nat.c: New file.
6373         * sparcnbsd-nat.c: New file.
6374         * sparcnbsd-tdep.c: New file.
6375         * sparcnbsd-tdep.h: New file.
6376         * config/sparc/nbsd.mt: New file.
6377         * config/sparc/nbsd64.mh: New file.
6378         * config/sparc/nbsd64.mt: New file.
6379         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6380         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6381         (HOST_IPC): Remove.
6382         * config/sparc/nbsdaout.mt: Remove.
6383         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6384         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
6385         (HOST_IPC): Remove.
6386         * config/sparc/nbsdelf.mt: Remove.
6387         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
6388         sparc-nat.c compatiblity defines.
6389         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
6390         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6391         * config/sparc/tm-nbsd64.h: New file.
6392         * config/sparc/tm-nbsdaout.h: Remove.
6393         * config/sparc/xm-nbsd.h: Remove.
6394
6395 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
6396
6397         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6398         * sparc-tdep.c: Include osabi.h.
6399         (gdbarch_tdep): Add osabi member.
6400         (_initialize_sparc_tdep): Use gdbarch_register.
6401         (sparc_gdbarch_init): Use generic OS ABI framework.
6402         (sparc_dump_tdep): New function.
6403
6404 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
6405
6406         * corefile.c (do_captured_read_memory_integer): Return non-zero
6407         result.
6408         (safe_read_memory_integer): Copy result of memory read when
6409         status is non-zero.  Also, add comments.
6410
6411 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
6412
6413         * Makefile.in (ppc_tdep_h): Define.
6414         (ppc-linux-nat.o)
6415         (ppc-linux-tdep.o)
6416         (rs6000-tdep.o): Use $(ppc_tdep_h).
6417         (ppc-sysv-tdep.o)
6418         (ppcnbsd-nat.o)
6419         (ppcnbsd-tdep.o): New dependency lists.
6420         * ppc-tdep.h: Use generic OS ABI framework.
6421         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6422         (ppc_linux_init_abi): New functions.
6423         (ppc_sysv_abi_broken_use_struct_convention)
6424         (ppc_sysv_abi_use_struct_convention)
6425         (ppc_sysv_abi_push_arguments): Move to...
6426         * ppc-sysv-tdep.c: ...here.
6427         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6428         * rs6000-tdep.c (process_note_abi_tag_sections)
6429         (get_elfosabi): Remove.
6430         (rs6000_gdbarch_init): Use generic OS ABI framework.
6431         (rs6000_dump_tdep): New function.
6432         (_initialize_rs6000_tdep): Use gdbarch_register.
6433         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6434         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6435         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6436         of ppc-linux-tdep.o.
6437         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6438         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6439         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6440         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6441         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6442         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6443
6444 2002-05-29  Jim Blandy  <jimb@redhat.com>
6445
6446         * macroscope.c (default_macro_scope): Put `void' in empty argument
6447         list.
6448
6449 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
6450
6451         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6452         * arch-utils.c: Include "sim-regno.h".
6453         * gdbarch.sh: Don't include "sim-regno.h".
6454         * gdbarch.h, gdbarch.c: Regenerate.
6455         * sim-regno.h (legacy_register_sim_regno): Move declaration from
6456         here.
6457         * arch-utils.h (legacy_register_sim_regno): To here.
6458         * remote-sim.c (legacy_register_sim_regno): Move function from
6459         here.
6460         * arch-utils.c (legacy_register_sim_regno): To here.
6461
6462 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6463
6464         * sim-regno.h: New file.
6465         * Makefile.in (sim_regno_h): Define.
6466         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6467         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6468         (legacy_register_sim_regno): New function.
6469         (one2one_register_sim_regno): New function.
6470         (gdbsim_fetch_register): Rewrite.
6471         (gdbsim_store_register): Only store a register when
6472         REGISTER_SIM_REGNO is valid.
6473         * d10v-tdep.c: Include "sim-regno.h".
6474         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6475         (d10v_ts3_register_sim_regno): Ditto.
6476         * gdbarch.sh: Include "sim-regno.h".
6477         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6478         * gdbarch.h, gdbarch.c: Regenerate.
6479         * arch-utils.h (default_register_sim_regno): Delete declaration.
6480         * arch-utils.c (default_register_sim_regno): Delete function.
6481
6482 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
6483
6484         * ppcnbsd-nat.c: Rewrite.
6485         * ppcnbsd-tdep.c: New file.
6486         * ppcnbsd-tdep.h: New file.
6487         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6488         solib.o, and solib-svr4.o.
6489         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6490         nbsd-tdep.o, and corelow.o.
6491
6492 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
6493
6494         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6495         `tr' and `sed'.  Mention that `broken' targets are not expected to
6496         build.
6497
6498 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
6499
6500         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6501         Let PC point right after the prologue before looking up symbols.
6502         
6503 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
6504
6505         * i386-tdep.c (i386_register_virtual_type): Return 
6506         builtin_type_vec128i for SSE registers.
6507
6508         * gdbtypes.h (builtin_type_vec128i): Declare.
6509
6510         * gdbtypes.c (build_builtin_type_vec128i): New function.
6511         (builtin_type_v2_double, builtin_type_v4_int64): New types.
6512         (builtin_type_vec128i): New type for SSE2 128-bit registers.
6513         (build_gdbtypes): Initialize new builtin vector types.
6514         (_initialize_gdbtypes): Register new vector types with gdbarch.
6515
6516 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6517
6518         * MAINTAINERS: ns32k is not longer an obsolete candidate,
6519         since it has been multi-arch'd.
6520         * NEWS: Note that ns32k-*-* is now partial multi-arch.
6521         Move Alpha and VAX multi-arch news entries to same section
6522         as other multi-arch news.
6523
6524 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6525
6526         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6527         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
6528         static.  Rename some register numbers to put them in ns32k-tdep
6529         private namespace.
6530         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6531         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6532         functions.
6533         (_initialize_ns32k_tdep): Use gdbarch_register.
6534         * ns32k-tdep.h: New file.
6535         * ns32knbsd-tdep.c: New file.
6536         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6537         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6538         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6539         REGISTER_BYTES, REGISTER_BYTE): Remove.
6540         * config/ns32k/tm-ns32k.h: New file.
6541         * config/ns32k/tm-umax.h: Remove.
6542
6543 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6544
6545         * ns32k-tdep.c (ns32k_saved_pc_after_call,
6546         ns32k_store_struct_return, ns32k_extract_return_value,
6547         ns32k_store_return_value, ns32k_extract_struct_value_address): New
6548         functions.
6549         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6550         ns32k_saved_pc_after_call.
6551         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6552         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6553         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6554         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6555         ns32k_extract_struct_value_address.
6556
6557 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6558
6559         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6560         ns32k_fix_call_dummy): New.
6561         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6562         ns32k_call_dummy_words.
6563         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6564         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6565         CALL_DUMMY_NARGS): Remove.
6566         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6567
6568 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6569
6570         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6571         ns32k_frame_saved_pc, ns32k_frame_args_address,
6572         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6573         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6574         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6575         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6576         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6577         (BREAKPOINT): Remove..
6578         (FRAME_CHAIN): Define as ns32k_frame_chain.
6579         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6580         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6581         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6582         (FRAME_FIND_SAVED_REGS): Remove.
6583         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6584         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6585         (POP_FRAME): Define as ns32k_pop_frame.
6586
6587 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6588
6589         * ns32k-tdep.c (ns32k_register_byte_32082,
6590         ns32k_register_byte_32382, ns32k_register_raw_size,
6591         ns32k_register_virtual_size, ns32k_register_virtual_type): New
6592         functions.
6593         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6594         ns32k_register_byte_32382.
6595         * config/ns32k/tm-umax.h: Update copyright years.
6596         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6597         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6598         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6599         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6600         (ns32k_get_enter_addr): Fix prototype.
6601
6602 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
6603
6604         * ns32k-tdep.c: Update copyright years.
6605         (ns32k_register_name_32082): New function.
6606         (ns32k_register_name_32382): Ditto.
6607         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6608         (REGISTER_NAME): Define as ns32k_register_name_32382.
6609         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6610         (REGISTER_NAME): Define as ns32k_register_name_32082.
6611
6612 2002-05-24  Jim Blandy  <jimb@redhat.com>
6613
6614         * dwarf2read.c (free_line_header): Use xfree, not free.
6615
6616 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
6617
6618         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6619         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6620
6621 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6622
6623         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6624
6625 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6626
6627         From Ross Alexander at NEC Europe:
6628         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6629
6630 2002-05-23  Michael Snyder  <msnyder@redhat.com>
6631
6632         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6633         for input, rather than parse_and_eval_address.  
6634
6635 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
6636
6637         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6638         * Makefile.in (sim_d10v_h): Update definition.
6639
6640 2002-05-24  Andrew Cagney  <cagney@redhat.com>
6641
6642         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6643         change `2002-05-22 Michael Snyder' below.
6644         (d10v_push_arguments): Ditto.
6645         (d10v_extract_return_value): Ditto.
6646
6647 2002-05-23  Jim Blandy  <jimb@redhat.com>
6648
6649         * macrotab.c (check_for_redefinition): Don't complain if the new
6650         definition is the same as the previous one.  Take more arguments
6651         to allow the comparison.
6652         (macro_define_object, macro_define_function): Pass more arguments
6653         to check_for_redefinition.
6654
6655 2002-05-22  Michael Snyder  <msnyder@redhat.com>
6656
6657         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6658         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6659         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6660         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6661         Don't bail if return_pc is PC_IN_CALL_DUMMY.
6662         Add a temp variable to save a call (and a memory read).
6663         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6664         if possible (so that PC_IN_CALL_DUMMY will work).
6665
6666 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
6667
6668         * MAINTAINERS: Remove status `OBSOLETE' from v850.
6669
6670 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
6671
6672         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6673         fde->cie_ptr.
6674         (dwarf2_build_frame_info): Corrected handling of eh_frame.
6675         (dwarf2_build_frame_info): Add offset to fde->initial_location 
6676         so that frames of shared libraries are mapped correctly.
6677         (execute_stack_op): Change type of 'result' from ULONGEST to
6678         CORE_ADDR.
6679         
6680 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6681
6682         * config/alpha/tm-nbsd.h: Include solib.h.
6683
6684 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6685
6686         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6687         assumptions about the host's byte order.
6688
6689 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6690
6691         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6692         to dependency list.
6693         * alphanbsd-tdep.c: Include solib-svr4.h.
6694         * shnbsd-tdep.c: Ditto.
6695
6696 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
6697
6698         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6699         nbsd-tdep.h to dependency list.
6700         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6701         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6702         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6703         nbsdaout.mh and nbsdelf.mh consistently.
6704         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6705         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6706         nbsdaout.mt and nbsdelf.mh consistently.
6707         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
6708         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6709         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6710         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
6711         a.out shared library stuff from here...
6712         * config/nm-nbsdaout.h: ...to here.
6713         * config/tm-nbsd.h: Remove.
6714         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6715         * config/arm/nbsd.mh: Remove.
6716         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6717         nbsd-tdep.o.
6718         * config/arm/nbsdaout.mh: New file. 
6719         * config/arm/nbsdelf.mh: New file.
6720         * config/arm/nm-nbsdaout.h: New file.
6721         * config/i386/nbsd.mh: Remove.
6722         * config/i386/nbsd.mt: Remove.
6723         * config/i386/nbsdaout.mh: New file.
6724         * config/i386/nbsdaout.mt: New file.
6725         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6726         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6727         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
6728         i386_register_u_addr): Remove.
6729         * config/i386/nm-nbsdaout.h: New file.
6730         * config/i386/nm-nbsdelf.h: Remove.
6731         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6732         (USE_STRUCT_CONVENTION): Remove.
6733         * config/i386/tm-nbsdaout.h: New file.
6734         * config/i386/tm-nbsdelf.h: Remove.
6735         * config/m68k/nbsd.mh: Remove.
6736         * config/m68k/nbsd.mt: Remove.
6737         * config/m68k/nbsdaout.mh: New file.
6738         * config/m68k/nbsdaout.mt: New file. 
6739         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6740         * config/m68k/nm-nbsdaout.h: New file.
6741         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6742         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6743         * config/ns32k/nbsd.mh: Remove.
6744         * config/ns32k/nbsd.mt: Remove. 
6745         * config/ns32k/nbsdaout.mh: New file.
6746         * config/ns32k/nbsdaout.mt: New file.
6747         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
6748         * config/ns32k/nm-nbsdaout.h: New file.
6749         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
6750         (IN_SOLIB_CALL_TRAMPOLINE): Define.
6751         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6752         (SVR4_SHARED_LIBS): Remove.
6753         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6754         * config/sparc/nbsd.mh: Remove.
6755         * config/sparc/nbsd.mt: Remove.
6756         * config/sparc/nbsdaout.mh: New file.
6757         * config/sparc/nbsdaout.mt: New file.
6758         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6759         * config/sparc/nbsdelf.mt: New file.
6760         * config/sparc/nm-nbsdaout.h: New file.   
6761         * config/sparc/nm-nbsdelf.h: Remove.
6762         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6763         * config/sparc/tm-nbsdaout.h: New file.
6764
6765 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6766
6767         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6768         mipsnbsd-tdep.c
6769         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6770
6771 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6772
6773         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6774         shnbsd-nat.c.
6775         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6776
6777 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6778
6779         * NEWS: Note new MIPS NetBSD native configuration. 
6780         * configure.host (mips*-*-netbsd*): New host. 
6781         * configure.tgt (mips*-*-netbsd*): New target. 
6782         * mipsnbsd-nat.c: New file.
6783         * mipsnbsd-tdep.c: New file.
6784         * mipsnbsd-tdep.h: New file.
6785         * config/mips/nbsd.mh: New file.
6786         * config/mips/nbsd.mt: New file.
6787         * config/mips/nm-nbsd.h: New file.
6788         * config/mips/tm-nbsd.h: New file.
6789
6790 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
6791
6792         * Makefile.in (SFILES): Add osabi.c.
6793         (COMMON_OBS): Add osabi.o.
6794         (osabi.o): New dependency list.
6795         * osabi.c: New file.
6796         * osabi.h: New file.
6797         * doc/gdbint.texinfo: Document new generic OS ABI framework.
6798
6799         * Makefile.in (alpha_tdep_h): Define and use instead of
6800         alpha-tdep.h.
6801         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6802         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6803         Remove.
6804         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6805         * alpha-tdep.h: Include osabi.h.
6806         (alpha_abi): Remove.
6807         (gdbarch_tdep): Use generic OS ABI framework.
6808         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6809         gdbarch_register_osabi.
6810         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6811         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6812         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6813
6814         * Makefile.in (sh_tdep_h): Add osabi.h.
6815         * sh-tdep.h (sh_osabi): Remove.
6816         (gdbarch_tdep): Use generic OS ABI framework.
6817         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6818         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6819         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6820         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6821
6822         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6823         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6824         gdbarch_register_osabi.
6825         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6826         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6827         (get_elfosabi): Rename to...
6828         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
6829         ABI framework support routines.
6830         (arm_gdbarch_init): Use generic OS ABI framework.
6831         (arm_dump_tdep): Likewise.
6832         (_initialize_arm_tdep): Likewise.
6833         * arm-tdep.h: Include osabi.h.
6834         (arm_abi): Remove.
6835         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
6836         osabi member.
6837         (arm_gdbarch_register_os_abi): Remove prototype.
6838         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6839         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6840
6841         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6842         * mips-tdep.c: Include osabi.h.
6843         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6844         OS ABI framework.
6845
6846 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6847
6848         * h8300-tdep.c: Fix formatting.
6849
6850 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
6851
6852         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6853         printing vector registers.
6854
6855 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6856
6857         From Fernando Nasser:
6858         * remote.c (remote_async_open_1): Re-throw the exception when the
6859         connection fails.
6860         (remote_cisco_open): Ditto.
6861         (remote_open_1): Ditto.
6862
6863 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6864
6865         * remote.c (remote_start_remote_dummy): Add uiout parameter.
6866         (remote_start_remote): Add uiout parameter.  Pass through to
6867         remote_start_remote_dummy.
6868         (remote_open_1): Use catch_exception instead of catch_errors.
6869         (remote_async_open_1): Ditto.
6870         (remote_cisco_open): Ditto.
6871
6872 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
6873
6874         * remote.c (remote_start_remote): Replace PTR with void pointer.
6875         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
6876         static.
6877
6878 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
6879
6880         * gdb_indent.sh: Allow the script to be run in the sim directory.
6881
6882 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
6883
6884         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6885         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6886
6887         * corelow.c (core_open): Only call set_gdbarch_from_file if
6888         exec_bfd is NULL.
6889
6890 2002-05-17  Andrey Volkov <avolkov@transas.com>
6891
6892         * h8300-tdep.c: Add support of EXR register
6893         * config/h8300/tm-h8300.h: Ditto. 
6894         
6895 2002-05-17  Andrey Volkov <avolkov@transas.com>
6896
6897         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
6898         
6899 2002-05-17  Andrey Volkov <avolkov@transas.com>
6900
6901         * h8300-tdep.c: Change literal regnums to REGNO.
6902         
6903 2002-05-17  Jim Blandy  <jimb@redhat.com>
6904
6905         * NEWS: Note addition of macro support.
6906
6907         Expand preprocessor macros in C expressions.
6908         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6909         (scan_macro_expansion, scanning_macro_expansion,
6910         finished_macro_expansion): New function declarations.
6911         (expression_macro_lookup_func, expression_macro_lookup_baton): New
6912         variable declarations.
6913         * parser-defs.h (expression_context_pc): New declaration.
6914         * parse.c (expression_context_pc): New variable.
6915         (parse_exp_1): Set expression_context_pc, as well as
6916         expression_context_block.
6917         * c-exp.y (yylex): If we're not already reading the result of a
6918         macro expansion, try to macro-expand the next token.  When we're
6919         done scanning a macro expansion, switch back to the mainline text.
6920         Commas and `if's in a macro's expansion don't terminate the input.
6921         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6922         (macro_original_text, macro_expanded_text,
6923         expression_macro_lookup_func, expression_macro_lookup_baton): New
6924         variables.
6925         (scan_macro_expansion, scanning_macro_expansion,
6926         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6927         c_preprocess_and_parse): New functions.
6928         (c_language_defn, cplus_language_defn, asm_language_defn): Call
6929         c_preprocess_and_parse, instead of c_parse.
6930         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6931         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6932
6933 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
6934
6935         * sh-tdep.c (gdb_print_insn_sh64): Delete.
6936         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6937         (sh_gdbarch_init): Always use gdb_print_insn_sh.
6938
6939 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
6940
6941         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
6942
6943 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6944
6945         * Makefile.in (sh_tdep_h): Define and use.
6946         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6947         register enum): Move to...
6948         * * sh-tdep.h: ...here.
6949         * sh-tdep.c: Include sh-tdep.h.
6950         * sh3-rom.c: Likewise.
6951         * shnbsd-tdep.c: Likewise.
6952
6953 2002-05-16  Michael Snyder  <msnyder@redhat.com>
6954
6955         * arm-tdep.c: Spelling fix in comment.
6956
6957 2002-05-16  Jim Blandy  <jimb@redhat.com>
6958
6959         Add commands for manually expanding macros and showing their
6960         definitions.
6961         * macrocmd.c, macroscope.c, macroscope.h: New files.
6962         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6963         (macroscope_h): New variable.
6964         (HFILES_NO_SRCDIR): Add macroscope.h.
6965         (COMMON_OBS): Add macrocmd.o, macroscope.o.
6966         (macroscope.o, macrocmd.o): New rules.
6967
6968         Teach the Dwarf 2 reader to read macro information.
6969         * dwarf2read.c: #include "macrotab.h".
6970         (dwarf_macinfo_buffer): New variable.
6971         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6972         dwarf_macinfo_size.
6973         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6974         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6975         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6976         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6977         dwarf2_macro_spaces_in_definition): New complaints.
6978         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6979         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6980         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6981         the partial symbol table.
6982         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6983         from what's recorded in the partial symbol table.
6984         (read_file_scope): If the compilation unit has a
6985         `DW_AT_macro_info' attribute, read its macro information.
6986         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6987
6988 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
6989
6990         Fix PR gdb/546
6991         * ser-tcp.c: Don't include <netinet/udp.h>.
6992
6993 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
6994
6995         * MAINTAINERS: Update my email address.
6996
6997 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
6998
6999         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7000         include file of the same name.
7001
7002 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7003
7004         * configure.tgt: Mark v850 as multi-arched.
7005         * config/v850/tm-v850.h: Remove file.
7006         * config/v850/v850.mt: Eliminate TM_FILE.
7007
7008 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7009
7010         * v850-tdep.c: Full multi-arch.
7011         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7012         Define GDB_MULTI_ARCH to 2.
7013
7014 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7015
7016         * p-exp.y (current_type): New static variable.
7017         Carries the type of the expression at the position that is parsed.
7018         (push_current_type, pop_current_type): Two new functions. Used
7019         to store/restore current_type in expression on specific tokens.
7020         (search_field): New static variable. Set to one after parsing a point
7021         as at that point only a FIELDNAME token should be searched.
7022         (FIELDNAME): New token. After a point only a token belonging to 
7023         current_type type definition is allowed.
7024         (all over token rules): reset and change current_type according
7025         to rules.
7026         (exp '[' rule): insert implicit array index field if
7027         exp is a pascal string type.
7028
7029 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7030
7031         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
7032         frame info.  Use frame_info's saved_regs instead of matching member
7033         in extra_frame_info throughout.
7034         (v850_frame_init_saved_regs): New function.
7035         (v850_init_extra_frame_info): Move most functionality into
7036         v850_frame_init_saved_regs().
7037         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7038         (v850_frame_find_saved_regs): Remove declaration.
7039         (FRAME_FIND_SAVED_REGS): Remove definition.
7040         (v850_frame_init_saved_regs): Add declaration.
7041         (FRAME_INIT_SAVED_REGS): Add definition.
7042
7043 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
7044
7045         * v850-tdep.c: Begin multi-arch'ing v850.
7046         (v850_target_architecture_hook): Remove function.
7047         (v850_gdbarch_init): New function.  Add code previously in
7048         v850_target_architecture_hook().
7049         (_initialize_v850_tdep): Don't  set target_architecture_hook.
7050         Call register_gdbarch_init() instead.
7051
7052 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
7053
7054         * gdbtypes.h (struct cplus_struct_type): Remove args field.
7055         * hpread.c (hpread_read_struct_type): Remove assignments to args.
7056         (fixup_class_method_type): Likewise.
7057
7058 2002-05-15  Jim Blandy  <jimb@redhat.com>
7059
7060         Add macro structures to GDB's symbol tables.  Nobody puts anything
7061         in them yet.
7062         * symtab.h (struct symtab): New member: `macro_table'.
7063         * buildsym.h (pending_macros): New global variable.
7064         * buildsym.c: #include "macrotab.h".
7065         (buildsym_init): Initialize `pending_macros'.
7066         (end_symtab): If we found macro information while reading a CU's
7067         debugging info, do build a symtab structure for it.  Make the
7068         symtab point to the macro information, and clear the
7069         `pending_macros' pointer which held it while we were reading the
7070         debug info.
7071         (really_free_pendings): Free any pending macro table.
7072         * objfiles.h (struct objfile): New member: `macro_cache'.
7073         * objfiles.c (allocate_objfile): Set allocate and free functions
7074         for the macro cache's objstack.
7075         (free_objfile): Empty the macro cache's obstack.
7076         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7077         set new allocate and free functions for it.
7078         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7079         free functions for the macro cache's objstack.  (Why is this
7080         function building its own objfile?)
7081         * symmisc.c (print_objfile_statistics): Print statistics on the
7082         macro bcache.
7083         * Makefile.in: Note that buildsym.o depends on macrotab.h.
7084
7085 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7086
7087         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7088         (REGISTER_U_ADDR): Delete definition.
7089         (arm_register_u_addr): Delete declaration.
7090
7091 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
7092
7093         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7094         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7095
7096 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
7097
7098         * regcache.c (register_valid): Revise comments refering to "Not
7099         available" and "unavailable".
7100         * frame.c (frame_register_read): Ditto.
7101         * findvar.c (value_of_register): Ditto.
7102
7103 2002-05-15  Andrew Cagney  <cagney@redhat.com>
7104
7105         * Makefile.in (remote_sim_h): Replace remote-sim_h.
7106         (remote-sim.o): Update dependencies.
7107         (d10v-tdep.o): Specify dependencies.
7108         (sim_d10v_h): Define.
7109
7110 2002-05-14  Jim Blandy  <jimb@redhat.com>
7111
7112         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7113         * macrotab.c (macro_lookup_inclusion, find_definition,
7114         new_macro_table): Same.
7115         
7116         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7117         not `! strcmp ()'.  This is a dubious improvement.
7118         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7119
7120         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7121         although it's not necessary, to avoid a warning.
7122
7123 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7124
7125         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7126         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7127         TYPE_INSTANCE_FLAGS.
7128         (struct main_type): New.
7129         (struct type): Move most members to struct main_type.  Change
7130         cv_type and as_type to new type_chain member.  Add instance_flags.
7131         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7132         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7133         (finish_cv_type): Remove prototype.
7134         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
7135         Set TYPE_CHAIN.
7136         (alloc_type_instance): New function.
7137         (smash_type): New function.
7138         (make_pointer_type, make_reference_type, make_function_type)
7139         (smash_to_member_type, smash_to_method_type): Call smash_type.
7140         (make_qualified_type): New function.
7141         (make_type_with_address_space): Call make_qualified_type.
7142         (make_cv_type): Likewise.
7143         (finish_cv_type): Remove unnecessary function.
7144         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
7145         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7146         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7147         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7148         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7149         * hpread.c (hpread_read_struct_type): Likewise.
7150         * stabsread.c (read_struct_type): Likewise.
7151
7152 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
7153
7154         * configure.tgt: Add a catch all sh* target, for cases like
7155         sh[2,3,4]-elf and sh-hms.
7156
7157 2002-05-14  Keith Seitz  <keiths@redhat.com>
7158
7159         * event-loop.c (create_file_handler): Don't do anything but
7160         update data when we are given a fd which we are already
7161         monitoring.
7162
7163 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
7164
7165         * dwarf2cfi.c (context_cpy): Copy registers correctly.
7166         (update_context): Use __func__ in warnings.
7167         
7168 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
7169
7170         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
7171         and tcp_close to net_open and net_close.
7172         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
7173         using UDP if requested.  Don't try to disable Nagle on UDP
7174         sockets.
7175         * remote.c (remote_serial_open): New function.  Warn about UDP.
7176         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7177
7178 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7179
7180         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7181
7182 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
7183
7184         * configure.tgt: Remove sh-hms target.
7185         * MAINTAINERS: Don't list sh-hms as a separate target.
7186
7187 2002-05-13  Jim Blandy  <jimb@redhat.com>
7188
7189         Add first preprocessor macro-expansion files.
7190         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7191         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7192         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7193         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7194         (COMMON_OBS): Add macrotab.o, macroexp.o.
7195         (macroexp.o, macrotab.o): New rules.
7196
7197 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
7198
7199         * config/m88k/tm-m88k.h: Update copyright.
7200         (m88k_target_write_pc): Declare
7201         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7202         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7203         (SHIFT_INST_REGS): Update definition.
7204         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
7205         using old definition of TARGET_WRITE_PC.
7206         * regcache.c (generic_target_write_pc): Delete code handling
7207         NNPC_REGNUM.
7208         * gdbarch.sh (NNPC_REGNUM): Delete.
7209         * gdbarch.h, gdbarch.c: Regenerate.
7210
7211 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
7212
7213         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7214         builtin reg number.
7215
7216 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
7217
7218         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7219         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7220         (gen_address_of, gen_struct_ref, gen_repeat): Use type
7221         access macros.
7222         * c-typeprint.c (cp_type_print_method_args): Likewise.
7223         (c_type_print_args): Likewise.
7224         * d10v-tdep.c (d10v_push_arguments): Likewise.
7225         (d10v_extract_return_value): Likewise.
7226         * expprint.c (print_subexp): Likewise.
7227         * gdbtypes.c (lookup_primitive_typename): Likewise.
7228         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7229         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7230         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7231         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7232         (TYPE_VECTOR): Likewise.
7233         * hpread.c (hpread_read_struct_type)
7234         (fix_static_member_physnames, fixup_class_method_type)
7235         (hpread_type_lookup): Likewise.
7236         * mdebugread.c (parse_symbol, parse_type): Likewise.
7237         * p-lang.c (is_pascal_string_type): Likewise.
7238         * valops.c (hand_function_call): Likewise.
7239         * x86-64-tdep.c (classify_argument): Likewise.
7240
7241         * hpread.c (hpread_read_function_type)
7242         (hpread_read_doc_function_type): Call replace_type.
7243         * dstread.c (create_new_type): Delete.
7244         (decode_dst_structure, process_dst_function): Call alloc_type.
7245         Use type access macros.
7246
7247 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7248
7249         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7250         the're not supported by the current architecture.
7251         (i387_fill_fxsave): Likewise.
7252
7253 2002-05-12  Fred Fish  <fnf@redhat.com>
7254
7255         * symfile.c (default_symfile_offsets): Arrange for uninitialized
7256         sect_index_xxx members to index the first slot in section_offsets
7257         if all of the section_offsets are zero.
7258
7259 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7260
7261         * configure.tgt (sparc-*openbsd): Remove entry accidentially
7262         checked in with last change.
7263
7264 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
7265
7266         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7267         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
7268         config.sub.
7269
7270 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
7271
7272         * Makefile.in: Update dependencies.
7273
7274 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7275
7276         * language.c (local_hex_string_custom): Simplify.  Do not depend
7277         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7278
7279         * memattr.c (mem_info_command): Replace calls to
7280         longest_local_hex_string and longest_local_hex_string_custom.
7281         * buildsym.c (make_blockvector): Ditto.
7282         * solib.c (info_sharedlibrary_command): Ditto.
7283         * tracepoint.c (tracepoints_info): Ditto.
7284         * symtab.c (print_msymbol_info): Ditto.
7285
7286         * language.c (local_hex_string): Delete.
7287         (local_hex_string_custom): Delete.
7288         (longest_local_hex_string): Rename to local_hex_string.
7289         (longest_local_hex_string_custom): Rename to
7290         local_hex_string_custom.
7291         * language.h (local_hex_string): Change parameter type to LONGEST.
7292         (local_hex_string_custom): Ditto.
7293         (longest_local_hex_string): Delete declaration.
7294         (longest_local_hex_string_custom): Ditto.
7295
7296         * solib.c: Update copyright.
7297         * memattr.c: Update copyright.
7298         
7299 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7300
7301         * arch-utils.h (legacy_register_to_value): Declare.
7302         (legacy_value_to_register): Declare.
7303         (legacy_convert_register_p): Declare.
7304         * arch-utils.c (legacy_register_to_value): New function.
7305         (legacy_value_to_register): New function.
7306         (legacy_convert_register_p): New function.
7307
7308         * gdbarch.sh (REGISTER_TO_VALUE): Define.
7309         (VALUE_TO_REGISTER): Define.
7310         (CONVERT_REGISTER_P): Define.
7311         * gdbarch.h, gdbarch.c: Regenerate.
7312
7313         * valops.c (value_assign): Use CONVERT_REGISTER_P and
7314         VALUE_TO_REGISTER.
7315         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7316         CONVERT_REGISTER_P.
7317
7318 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
7319             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
7320
7321         * Makefile.in: Update dependencies for valops.c.
7322         * valops.c: Include "gdb_assert.h".
7323         (typecmp): Skip THIS parameter to methods.
7324         (find_method_list): Remove static_memfuncp argument,
7325         update callers.  Check for stub methods.
7326         (find_value_oload_method_list): Don't set *static_memfuncp.
7327         (find_overload_match): Don't check for stub methods.  Assert
7328         that methods are not stubbed.  Handle static methods.
7329         (value_find_oload_method_list): Remove static_memfuncp argument.
7330         * gdbtypes.c (check_stub_method): Do not add THIS pointer
7331         to the argument list for static stub methods.
7332         * value.h (value_find_oload_method_list): Update prototype.
7333
7334 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7335
7336         * arch-utils.h (generic_register_size): Declare.
7337         (generic_register_raw_size, generic_register_virtual_size): Delete
7338         declarations.
7339         * arch-utils.c (generic_register_raw_size): Delete.
7340         (generic_register_size): New function.
7341         (generic_register_virtual_size): Delete.
7342
7343         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7344         default generic_register_size.
7345         * gdbarch.h, gdbarch.c: Re-generate.
7346         
7347         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7348         register_virtual_size.
7349         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7350         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7351
7352 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7353
7354         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7355         * gdbarch.h, gdbarch.c: Regenerate.
7356         * gnu-v3-abi.c: Update copyright.
7357         (vtable_address_point_offset): Update.
7358         (gnuv3_rtti_type): Update.
7359         (gnuv3_baseclass_offset): Update.
7360         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7361         (init_fetch_link_map_offsets): Update.
7362         * remote.c (get_remote_state): Update.
7363         
7364 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
7365
7366         * TODO: Remove value_headof/value_from_vtable_info comment.
7367         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7368         * values.c (value_headof, value_from_vtable_info): Delete.
7369         * value.h (value_from_vtable_info): Delete prototype.
7370
7371 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
7372
7373         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7374         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7375         $(gdb_regex_h).
7376         (gdb_assert_h): Define.
7377         (gdb_wait_h): Define.
7378         (gdb_regex_h): Define.
7379
7380 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
7381
7382         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7383         * linespec.c (find_methods): Handle GCC 3.x template constructors.
7384
7385 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7386
7387         * nbsd-tdep.c: Fix comment.
7388
7389 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7390
7391         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7392         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7393         (nbsd-tdep.o): New dependency list.
7394         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
7395         nbsd-tdep.h.
7396         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7397         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7398         * nbsd-tdep.c: New file.
7399         * nbsd-tdep.h: New file.
7400         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
7401         nbsd-tdep.h.
7402         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7403         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7404         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7405         * config/sh/nbsd.mt (TDEPFILES): Ditto.
7406
7407 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7408
7409         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7410         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7411         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7412         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7413         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7414         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7415
7416 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7417
7418         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7419         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7420         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7421         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7422         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7423         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7424         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7425
7426 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7427
7428         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
7429         fetch_elfcore_registers to...
7430         * i386nbsd-tdep.c: ...here.
7431         (i386nbsd_use_struct_convention): Rename to...
7432         (i386nbsd_aout_use_struct_convention): ...this.
7433         (i386nbsd_supply_reg): New function.
7434         (i386nbsd_fill_reg): New function.
7435         (fetch_core_registers): Use i386nbsd_supply_reg.
7436         (fetch_elfcore_registers): Likewise.
7437         (_initialize_i386nbsd_tdep): New function.
7438         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7439         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7440         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7441         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7442         (i386nbsd_aout_use_struct_convention): ...this.
7443
7444 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7445
7446         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7447         (store_inferior_registers): Use shnbsd_fill_reg.
7448         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
7449         sh_nbsd_supply_register): Collapse into...
7450         (shnbsd_supply_reg): ...this.
7451         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7452         (shnbsd_fill_reg): ...this.
7453         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7454         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7455         (fetch_core_registers): Use shnbsd_supply_reg.
7456         (fetch_elfcore_registers): Use shnbsd_supply_reg.
7457         (sh_nbsd_core_fns): Rename to...
7458         (shnbsd_core_fns): ...this.
7459         (sh_nbsd_elfcore_fns): Rename to...
7460         (shnbsd_elfcore_fns): ...this.
7461         (sh_nbsd_init_abi): Rename to...
7462         (shnbsd_init_abi): ...this.
7463         (_initialize_sh_nbsd_tdep): Rename to...
7464         (_initialize_shnbsd_tdep): ...this.
7465         * shnbsd-tdep.h (sh_nbsd_supply_registers,
7466         sh_nbsd_supply_register, sh_nbsd_fill_registers,
7467         sh_nbsd_fill_register): Remove prototypes.
7468         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7469
7470 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7471
7472         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7473         (i387-nat.o): Delete dependency list.
7474         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7475         (x86-64-linux-nat.o): Likewise.
7476         * i387-nat.c: Delete file, moving contents to...
7477         * i387-tdep.c: ...here.
7478         * i387-nat.h: Rename...
7479         * i387-tdep.h: ...to this.
7480         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7481         * i386-linux-nat.c: Likewise.
7482         * i386bsd-nat.c: Likewise.
7483         * i386gnu-nat.c: Likewise.
7484         * i386nbsd-nat.c: Likewise.
7485         * i386v4-nat.c: Likewise.
7486         * x86-64-linux-nat.c: Likewise.
7487         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7488         * config/i386/go32.mh (NATDEPFILES): Likewise.
7489         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7490         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7491         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7492         * config/i386/linux.mh (NATDEPFILES): Likewise.
7493         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7494         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7495         * config/i386/obsd.mh (NATDEPFILES): Likewise.
7496         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7497
7498 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7499
7500         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7501         (alphanbsd-nat.o): Remove dependency list.
7502         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7503         * alphanbsd-nat.c: Delete.  Contents moved to...
7504         * alphanbsd-tdep.c: ...here.
7505         (_initialize_alphanbsd_tdep): Register core functions.
7506         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7507
7508 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
7509
7510         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7511         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7512         (alphanbsd-nat.o): Likewise.
7513         (alphabsd-tdep.o): New dependency list.
7514         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7515         (fill_gregset): Use alphabsd_fill_reg.
7516         (supply_fpregset): Use alphabsd_supply_fpreg.
7517         (fill_fpregset): Use alphabsd_fill_fpreg.
7518         (fetch_inferior_registers): Use struct reg and struct fpreg
7519         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
7520         and alphabsd_supply_fpreg.
7521         (store_inferior_registers): Use struct reg and struct fpreg
7522         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
7523         and alphabsd_fill_fpreg.
7524         * alphabsd-tdep.c: New file.
7525         * alphabsd-tdep.h: New file.
7526         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7527         (fetch_elfcore_registers): Use alphabsd_supply_reg and
7528         alphabsd_supply_fpreg.
7529         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7530         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7531
7532 2002-05-11  Eric Christopher  <echristo@redhat.com>
7533
7534         * mips-tdep.c (mips_double_register_type): Fix thinko.
7535         (mips_single_register_type): Ditto.
7536         * MAINTAINERS: Add self.
7537
7538 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
7539
7540         * i387-nat.c (i387_supply_register, i387_fill_fsave,
7541         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7542         right thing on architectures with different endianness and/or
7543         integer sizes.
7544
7545 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
7546
7547         From Christian Limpach <chris@Pin.LU>
7548         * configure.in: Change sed expression which comments out
7549         NATDEPFILES to also comment out continuation lines.
7550         * configure: Regenerate.
7551
7552 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7553
7554         * sh-tdep.c: Clean up code erroneously reintroduced by previous
7555         big patch.
7556
7557 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7558
7559         * sh-tdep.c: Include correct file.
7560
7561 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7562
7563         New support for sh64-elf (sh5) target.
7564
7565         * configure.tgt: For sh64-elf target, default to sh-elf.
7566
7567         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7568         (struct gdbarch_tdep): Add new fields for new registers and ABI
7569         info.
7570
7571         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7572         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7573         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7574         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7575         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7576         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7577         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7578         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7579         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7580         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7581         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7582         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7583         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7584         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7585         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7586         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7587         sh64_get_gdb_regnum, sh64_media_reg_base_num,
7588         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7589         sign_extend, sh64_nofp_frame_init_saved_regs,
7590         sh64_init_extra_frame_info, sh64_get_saved_register,
7591         sh64_extract_struct_value_address, sh64_pop_frame,
7592         sh64_push_arguments, sh64_extract_return_value,
7593         sh64_store_return_value, sh64_show_media_regs,
7594         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7595         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7596         sh_sh64_register_virtual_type,
7597         sh_sh64_register_convert_to_virtual,
7598         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7599         sh64_register_read, sh64_pseudo_register_write,
7600         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7601         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7602         sh64_do_pseudo_register, sh_compact_do_registers_info,
7603         sh64_do_registers_info, sh_gdbarch_init): New functions.
7604
7605 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
7606
7607         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7608
7609 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
7610
7611         * linespec.c (decode_line_1): Check for a double quote after
7612         a filename correctly.
7613
7614 2002-05-10  Jim Blandy  <jimb@redhat.com>
7615
7616         Properly track the size of the current objfile's .debug_line section.
7617         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7618         (DWARF_LINE_SIZE): New macro.
7619         (dwarf2_build_psymtabs_hard): Record the line section's size in
7620         the partial symbol table.
7621         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7622         symbol table.
7623
7624 2002-05-10  Petr Sorfa  <petrs@caldera.com>
7625
7626         * ia64-tdep.c: Handle breakpoints on L instruction type
7627         in MLX instruction bundle by moving the breakpoint to
7628         the third slot (X instruction type) as L holds only data.
7629
7630 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
7631
7632         * dbxread.c (discarding_local_symbols_complaint): New complaint.
7633         (process_one_symbol): Complain about discarding local symbols
7634         due to a misplaced N_LBRAC entry.
7635
7636 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
7637
7638         From Daniel Berlin <dan@cgsoftware.com>
7639         * linespec.c (find_toplevel_char): '<' and '>' also increase and
7640         decrease the depth we are at, in the case of templates.
7641
7642 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7643
7644         * mips-tdep.c (mips_float_register_type): New function.
7645         (mips_double_register_type): New function.
7646         (mips_print_register): Use them.
7647         (do_fp_register_row): Likewise.
7648
7649 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
7650
7651         * signals/signals.c (signals): Remove conditional compilation around
7652         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
7653         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7654
7655 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7656
7657         * remote-rdp.c (remote_rdp_can_run): Remove.
7658
7659 2002-05-09  Tom Tromey  <tromey@redhat.com>
7660
7661         * jv-valprint.c (java_val_print): Handle `char' as a special case
7662         of TYPE_CODE_INT.
7663
7664 2002-05-09  Michael Snyder  <msnyder@redhat.com>
7665
7666         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7667         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7668         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7669         str r(0123),[sp,#nn].
7670         (arm_skip_prologue): Ditto.  Also make disassembly
7671         order-independent by placing it in a loop.
7672
7673 2002-05-06  Michael Snyder  <msnyder@redhat.com>
7674
7675         * stabsread.c (read_type): Add recognition for new attribute:
7676         "@V;" means that an array type is actually a vector.
7677         This is analogous to the vector flag that's been added to dwarf2.
7678
7679 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
7680
7681         * i386-tdep.h (i386_abi): New enum.
7682         (struct gdbarch_tdep): Replace os_ident member with abi.
7683         (i386_gdbarch_register_os_abi): New prototype.
7684         * i386-tdep.c (i386_abi_names): New array.
7685         (process_note_abi_tag_sections): Removed.
7686         (process_note_sections): New function.
7687         (i386_elf_abi_from_note, i386_elf_abi): New functions.
7688         (struct i386_abi_handler): New struct.
7689         (i386_abi_handler_list): New variable.
7690         (i386_gdbarch_register_os_abi): New function.
7691         (i386_gdbarch_init): Adapt for the changes given above.
7692
7693 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
7694
7695         * gregset.h: Say "GNU/Linux".
7696
7697 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
7698
7699         * gdbtypes.c : Add new builtin type for 64 bit vectors.
7700         (build_gdbtypes): Build builtin_type_v2_float.
7701         (_initialize_gdbtypes): Register new builtin type.
7702
7703 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
7704
7705         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7706         (clear_gdbarch_swap): New function.
7707         (initialize_non_multiarch): Call.
7708         (gdbarch_update_p): Before calling init(), swap out and clear the
7709         existing architecture.
7710         * gdbarch.c: Regenerate.
7711
7712 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7713
7714         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7715         alphanbsd-tdep.c.
7716
7717 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7718
7719         * sh-nbsd-nat.c: Rename to...
7720         * shnbsd-nat.c: ...this.
7721         * sh-nbsd-tdep.c: Rename to...
7722         * shnbsd-tdep.c: ...this.
7723         * sh-nbsd-tdep.h: Rename to...
7724         * shnbsd-tdep.h: ...this.
7725         * config/sh/nbsd.mh: Use shnbsd-nat.o.
7726         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7727
7728 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
7729
7730         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7731         concatenation for command help messages.
7732
7733 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7734
7735         * NEWS: Note new sh*-*-netbsdelf* configuration.
7736         * configure.host: Set gdb_host_cpu to sh for all sh*.
7737         (sh*-*-netbsdelf*): New host.
7738         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7739         (sh*-*-netbsdelf*): New target.
7740         * sh-nbsd-nat.c: New file.
7741         * sh-nbsd-tdep.c: New file.
7742         * sh-nbsd-tdep.h: New file.
7743         * config/sh/nbsd.mh: New file.
7744         * config/sh/nbsd.mt: New file.
7745         * config/sh/nm-nbsd.h: New file.
7746         * config/sh/tm-nbsd.h: New file.
7747
7748 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
7749
7750         * sh-tdep.c (sh_osabi_names): Declare.
7751         (process_note_abi_tag_sections): New function.
7752         (get_elfosabi): Ditto.
7753         (sh_gdbarch_register_os_abi): Ditto.
7754         (sh_dump_tdep): Ditto.
7755         _initialize_sh_tdep): Use gdbarch_register to register
7756         sh_gdbarch_init and sh_dump_tdep.
7757         * config/sh/tm-sh.h (sh_osabi): Declare.
7758         (gdbarch_tdep): Add sh_osabi and osabi_name members.
7759
7760 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
7761
7762         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7763         (thumb_scan_prologue): Ditto.
7764         (arm_find_callers_reg): Ditto.
7765         (arm_frame_chain): Ditto.
7766         (arm_init_extra_frame_info): Ditto.
7767         (arm_frame_saved_pc): Ditto.
7768         (arm_pop_frame): Ditto.
7769         (arm_push_return_address): New function.
7770         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7771         call_dummy_location, call_dummy_breakpoint_offset_p,
7772         call_dummy_breakpoint_offset, call_dummy_p,
7773         call_dummy_stack_adjust_p, call_dummy_words,
7774         sizeof_call_dummy_words, call_dummy_start_offset,
7775         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7776         call_dummy_address, push_return_address and push_dummy_frame for
7777         generic dummy frames.
7778
7779 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7780
7781         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7782         size computation for alloca.
7783         (sh_fp_frame_init_saved_regs): Likewise.
7784
7785 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
7786
7787         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7788         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7789         * arm-tdep.c (arm_store_return_value): Use them.
7790         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7791         * remote-rdp.c (remote_rdp_fetch_register): Use
7792         ARM_MAX_REGISTER_RAW_SIZE.
7793         (remote_rdp_store_register): Likewise.
7794
7795 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
7796
7797         * dwarf2cfi.c: Code cleanup, removed unused variables,
7798         added default labels to switch {} statements.
7799         * x86-64-tdep.c: Ditto.
7800         * x86-64-linux-nat.c: Ditto.
7801
7802 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
7803
7804         * solib.h: Protect against multiple inclusion.
7805
7806 2002-05-06  Jim Blandy  <jimb@redhat.com>
7807
7808         Add first preprocessor macro-expansion files.
7809         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7810         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7811         (splay_tree_h, macroexp_h, macrotab_h): New variable.
7812         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7813         (COMMON_OBS): Add macrotab.o, macroexp.o.
7814         (macroexp.o, macrotab.o): New rules.
7815
7816         Separate the job of reading the line number info statement program
7817         header (...expialidocious) out into its own function.
7818         * dwarf2read.c (struct line_head, struct filenames, struct
7819         directories): Replace with...
7820         (struct line_header): New structure, containing the full
7821         contents of the statement program header, including the
7822         include directory and file name tables.
7823         (read_file_scope): If we have line number info, instead of just
7824         calling dwarf_decode_lines to do all the work, call
7825         dwarf_decode_line_header first to get a `struct line_header'
7826         containing the data in the statement program header, and then
7827         pass that to dwarf_decode_lines, which will pick up where that
7828         left off.  Be sure to clean up the `struct line_header' object.
7829         (dwarf_decode_line_header, free_line_header, add_include_dir,
7830         add_file_name): New functions.
7831         (dwarf_decode_lines): Move all the code to read the statement
7832         program header into dwarf_decode_line_header.  Take the line
7833         header it built as the first argument, instead of the offset to
7834         the compilation unit's line number info.  Use the new `struct
7835         line_header' type instead of the old structures.  No need to do
7836         cleanups here now, since we don't allocate anything.
7837         (dwarf2_statement_list_fits_in_line_number_section,
7838         dwarf2_line_header_too_long): New complaints.
7839
7840 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
7841
7842         * gdbtypes.c (init_vector_type): New function.
7843         (build_builtin_type_vec128): Simplify the representation of SIMD
7844         registers.
7845         (build_gdbtypes): Initialize new builtin vector types.
7846         (_initialize_gdbtypes): Register new vector types with gdbarch.
7847         (builtin_type_v4_float, builtin_type_v4_int32,
7848         builtin_type_v8_int16, builtin_type_v16_int8,
7849         builtin_type_v2_int32, builtin_type_v4_int16,
7850         builtin_type_v8_int8): New (renamed) SIMD types.
7851
7852 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
7853
7854         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7855         (i387_fill_fxsave): Likewise.
7856
7857 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
7858
7859         * alpha-tdep.c (alpha_extract_return_value): Don't use
7860         non-constant array size in prototype.
7861
7862 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7863
7864         From Brian Taylor <briant at model dot com>:
7865         * ui-out.c (ui_out_field_core_addr): Use the function
7866         longest_local_hex_string_custom'to format addresses > 32 bits
7867         wide.
7868
7869         * ui-out.c (ui_out_field_core_addr): Update comment.
7870
7871 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7872
7873         * stack.c (select_and_print_frame): Make static.  Delete the
7874         parameter `level'.
7875         (func_command): Update call.
7876         (select_frame_command): Delete code computing the frame level.
7877         * frame.h (select_and_print_frame): Delete declaration.
7878
7879 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7880
7881         * sparc-tdep.c (sparc_get_saved_register): Comment why
7882         get_prev_frame call is safe.
7883
7884 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7885
7886         * frame.h (select_frame): Delete level parameter.
7887         * stack.c (select_frame): Update.  Use frame_relative_level to
7888         obtain the frame's level.
7889         (select_and_print_frame): Update call.
7890         (select_frame_command): Ditto.
7891         (up_silently_base): Ditto.
7892         (down_silently_base): Ditto.
7893         * ocd.c (ocd_start_remote): Ditto.
7894         * remote-rdp.c (remote_rdp_open): Ditto.
7895         * remote-mips.c (mips_initialize): Ditto.
7896         (common_open): Ditto.
7897         * remote-e7000.c (e7000_start_remote): Ditto.
7898         * m3-nat.c (select_thread): Ditto.
7899         * hppa-tdep.c (child_get_current_exception_event): Ditto.
7900         (child_get_current_exception_event): Ditto.
7901         * varobj.c (varobj_create): Ditto.
7902         (varobj_update): Ditto.
7903         (c_value_of_root): Ditto.
7904         * tracepoint.c (finish_tfind_command): Ditto.
7905         * corelow.c (core_open): Ditto.
7906         * arch-utils.c (generic_prepare_to_proceed): Ditto.
7907         * thread.c (info_threads_command): Ditto.
7908         (switch_to_thread): Ditto.
7909         * infrun.c (normal_stop): Ditto.
7910         (restore_selected_frame): Ditto.
7911         (restore_inferior_status): Ditto.
7912         * breakpoint.c (insert_breakpoints): Ditto.
7913         (watchpoint_check): Ditto.
7914         (bpstat_stop_status): Ditto.
7915         (do_enable_breakpoint): Ditto.
7916         * blockframe.c (flush_cached_frames): Ditto.
7917         (reinit_frame_cache): Ditto.
7918
7919 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7920
7921         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7922         maintainer.
7923
7924 2002-05-04  Jim Blandy  <jimb@redhat.com>
7925
7926         * gdbtypes.c (replace_type): Doc fix.
7927
7928 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7929
7930         * valprint.c (strcat_longest): Delete commented out function.
7931         Update copyright.
7932
7933 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7934
7935         * MAINTAINERS: Mark a29k as deleted.
7936         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
7937         Move new configurations to the top.
7938         * configure.tgt: Remove a29k.
7939         * config/a29k/tm-vx29k.h: Delete.
7940         * config/a29k/vx29k.mt: Delete.
7941         * config/a29k/tm-a29k.h: Delete.
7942         * config/a29k/a29k-udi.mt: Delete.
7943         * config/a29k/a29k.mt: Delete.
7944         * a29k-tdep.c: Delete.
7945         * remote-udi.c: Delete.
7946         * remote-mm.c: Delete.
7947         * remote-eb.c: Delete.
7948         * remote-adapt.c: Delete.
7949         * Makefile.in: Remove obsolete code.
7950         * config/s390/s390x.mt: Ditto.
7951         * config/s390/s390.mt: Ditto.
7952         * config/sparc/sparclynx.mh: Ditto.
7953         * config/sparc/linux.mh: Ditto.
7954         * config/pa/hppaosf.mh: Ditto.
7955         * config/pa/hppabsd.mh: Ditto.
7956         * config/ns32k/nbsd.mt: Ditto.
7957         * config/mips/vr5000.mt: Ditto.
7958         * config/m68k/sun3os4.mh: Ditto.
7959         * config/m68k/nbsd.mt: Ditto.
7960         * config/m68k/m68klynx.mh: Ditto.
7961         * config/m32r/m32r.mt: Ditto.
7962         * config/i386/x86-64linux.mt: Ditto.
7963         * config/i386/nbsdelf.mt: Ditto.
7964         * config/i386/nbsd.mt: Ditto.
7965         * config/i386/i386lynx.mh: Ditto.
7966
7967 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
7968
7969         * target.c (debug_print_register): New function.  Handle oversize
7970         registers.
7971         (debug_to_fetch_registers): Call.
7972         (debug_to_store_registers): Call.
7973
7974 2002-05-03  Jim Blandy  <jimb@redhat.com>
7975
7976         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7977         (read_type): Doc fix.
7978         * gdbtypes.c (replace_type): Doc fix.
7979
7980         * stabsread.c (multiply_defined_struct): New complaint.
7981         (read_struct_type): If the type we were passed isn't empty, or
7982         incomplete, don't read the new struct type into it; complain,
7983         and return the original type unchanged.  Take a new `type_code'
7984         argument, which is the type code for the new type.
7985         (read_type): Rather than storing the type's type code here, pass
7986         it as an argument to read_struct_type, and let that take care of
7987         storing it.  That way, we don't overwrite the original type code,
7988         so read_struct_type can use it to decide whether we're overwriting
7989         something we shouldn't.
7990         (complain_about_struct_wipeout): New function.
7991
7992 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
7993
7994         * gdbarch.sh: Assert that gdbarch is non-NULL.
7995         * gdbarch.c: Regenerate.
7996
7997 2002-05-03  Jason Merrill  <jason@redhat.com>
7998
7999         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8000         and return NULL.
8001
8002 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
8003
8004         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8005         (x86_64_dwarf2gdb_regno_map_length),
8006         (x86_64_dwarf2_reg_to_regnum): Added.
8007         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8008         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8009         (_initialize_x86_64_tdep): Synced with the change above.
8010         (x86_64_skip_prologue): Reformulated message.
8011
8012 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
8013
8014         * f-exp.y: Also use new prev_lexptr variable
8015         to improve error reporting. Based on Michael Snyder
8016         2002-04-24 dated patch to c-exp.y.
8017         * jv-exp.y: Likewise.
8018         * m2-exp.y: Likewise.
8019
8020 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
8021
8022         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8023         we are dealing with vectors.
8024
8025 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8026
8027         * config/m68k/tm-nbsd.h: Obvious fix,
8028         correct machine name.
8029
8030 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8031
8032         * p-typeprint.c (pascal_type_print_base): Add support
8033         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8034
8035 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8036
8037         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8038         for fondamental pascal 'char' type.
8039
8040 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
8041
8042         * p-lang.h (is_pascal_string_type): Declaration changed,
8043         new sixth argument of type char ** added.
8044         * p-lang.c (is_pascal_string_type): Implementation
8045         changed. Args length_pos, length_size, string_pos, char_size
8046         can now be NULL. New argument arrayname set to the field
8047         name of the char array. Return value set to char array
8048         field index plus one.
8049         * p-valprint.c (pascal_val_print): Adapt to new declaration of
8050         is_pascal_string_type function.
8051
8052 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8053
8054         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8055         <cagney@redhat.com> change.
8056         * gdbarch.c: Regenerate.
8057
8058 2002-05-02  Andrew Cagney  <cagney@redhat.com>
8059
8060         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8061         before probing for a new one.  Detect errorenous gdbarch_init
8062         functions.
8063         * gdbarch.c: Regenerate.
8064
8065 2002-05-01  Andrew Cagney  <cagney@redhat.com>
8066
8067         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8068         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
8069         * config/v850/tm-v850.h: Ditto.  Update copyright.
8070
8071 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
8072
8073         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8074         current_gdbarch.
8075
8076 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8077
8078         * arm-tdep.c: Whitespace clean-ups.
8079         (arm_skip_prologue): Fix thinko; two lines
8080         should have been removed as part of 4/24 change.
8081
8082 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
8083
8084         * rs6000-tdep.c: Added comment describing how fpscr register
8085         numbers were chosen.
8086
8087 2002-04-30  Michael Snyder  <msnyder@redhat.com>
8088
8089         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8090
8091 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8092
8093         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8094         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8095         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8096
8097 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
8098
8099         From Louis Hamilton <hamilton@redhat.com>:
8100         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8101         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8102         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8103         not bfd-private xcoff data, to determine wordsize.
8104         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8105
8106 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
8107
8108         GDB 5.2 released from 5.2 branch.
8109
8110 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
8111
8112         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8113         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8114         (x86_64_register_info_table): Added comments with register numbers.
8115
8116 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
8117
8118         * rs6000-tdep.c (rs6000_extract_return_value,
8119         rs6000_store_return_value): Handle returning vectors.
8120         (rs6000_gdbarch_init): Use
8121         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8122         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8123         New function.
8124         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8125         vectors.
8126         (ppc_sysv_abi_push_arguments): Handle vector parameters.
8127         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8128
8129 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8130
8131         * hpread.c (hpread_psymtab_to_symtab_1,
8132         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8133         with fprintf_unfiltered (gdb_stderr,...).
8134
8135 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8136
8137         * remote-array.c (printf_monitor, write_monitor,
8138         array_insert_breakpoint, array_remove_breakpoint ):
8139         Replace fprintf (stderr,...
8140         with fprintf_unfiltered (gdb_stderr,....
8141         * remote-es.c: Likewise.
8142         * remote-os9k.c: Likewise.
8143         * remote-st.c: Likewise.
8144
8145 2002-04-28  Andreas Schwab  <schwab@suse.de>
8146
8147         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8148         linux-proc.o and gcore.o.
8149
8150 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
8151
8152         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8153         code without frame pointers.
8154
8155 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8156
8157         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8158         ON_STACK is needed.
8159
8160 2002-04-26  Ben Elliston  <bje@redhat.com>
8161
8162         * target.c (do_xfer_memory): Correct reference to the new option
8163         "trust-readonly-sections".
8164
8165 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
8166
8167         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8168         * gdbtypes.c (recursive_dump_type): Output the vector flag.
8169         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8170         vectors.
8171         (read_array_type): Record the fact that this array type is really a
8172         vector (i.e. are passed in by value).
8173
8174 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
8175
8176         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8177         * alpha-tdep.c (alpha_sigcontext_addr): New function.
8178         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8179         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8180         * alpha-linux-tdep.c: Include frame.h.
8181         (alpha_linux_sigcontext_addr): New function.
8182         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8183         alpha_linux_sigcontext_addr.
8184         * alpha-osf1-tdep.c: Include gdbcore.h.
8185         (alpha_osf1_sigcontext_addr): New function.
8186         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8187         alpha_osf1_sigcontext_addr.
8188         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8189         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8190
8191 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8192
8193         * stack.c (selected_frame_level):
8194         (select_frame): Do not set selected_frame_level.
8195         * frame.h (selected_frame_level): Delete declaration.
8196
8197 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
8198
8199         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8200         convert_from_func_ptr-addr when AIX / PowerOpen.
8201
8202 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8203
8204         * valops.c (hand_function_call): Call
8205         generic_save_call_dummy_addr.
8206         * frame.h (generic_save_call_dummy_addr): Declare.
8207         * blockframe.c (struct dummy_frame): Add fields call_lo and
8208         call_hi.
8209         (generic_find_dummy_frame): Check for PC in range call_lo to
8210         call_hi instead of entry_point_address.
8211         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8212         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
8213         (generic_save_call_dummy_addr): New function.
8214
8215 2002-04-24  David S. Miller  <davem@redhat.com>
8216
8217         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8218         sparc_skip_prologue.
8219         (sparc_skip_prologue): Kill frameless_p arg, and use line number
8220         information to find prologue when possible.
8221         (sparc_prologue_frameless_p): Call examine_prologue directly.
8222         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8223         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8224         second argument.
8225         (SKIP_PROLOGUE): Likewise.
8226
8227 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8228
8229         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8230         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8231         indicate that the condition it was testing is always true.
8232         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8233         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8234         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8235
8236 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8237
8238         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8239         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8240         tdep->jb_pc and tdep->jb_elt_size.
8241         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8242         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8243         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8244         * alpha-nat.c (get_longjmp_target): Remove.
8245         (JB_ELEMENT_SIZE): Ditto.
8246         (JB_PC): Ditto.
8247         * alpha-tdep.c (alpha_get_longjmp_target): New function.
8248         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
8249         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8250         to alpha_get_longjmp_target.
8251         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8252         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8253         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8254
8255 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8256
8257         * README: Update to GDB 5.2.
8258
8259 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
8260
8261         * gdbarch.sh (LC_ALL): Set to `c'.
8262
8263 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8264
8265         * avr-tdep.c: Ran through gdb_indent.sh.
8266
8267 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8268
8269         * MAINTAINERS: Add myself as AVR maintainer.
8270         * NEWS: Note new target avr.
8271
8272 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8273
8274         * Makefile.in: Add support for AVR target.
8275         * configure.tgt: Add support for AVR target.
8276         * avr-tdep.c: New file
8277         * config/avr/avr.mt: New file.
8278
8279 2002-04-25  Theodore A. Roth  <troth@verinet.com>
8280
8281         * MAINTAINERS: Add myself to write-after-approval.
8282
8283 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
8284
8285         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8286         with fprintf_unfiltered (gdb_stderr,....
8287
8288 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8289
8290         Fix PR gdb/508.
8291         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8292
8293 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
8294
8295         * p-exp.y: Also use new prev_lexptr variable
8296         to improve error reporting. Based on Michael Snyder
8297         2002-04-24 dated patch to c-exp.y.
8298
8299 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8300
8301         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8302         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8303         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
8304         to 0.
8305         * config/alpha/tm-alpha.h: Remove forward decls of struct type
8306         and struct value.
8307         (FUNCTION_START_OFFSET): Remove.
8308         (BREAKPOINT): Ditto.
8309
8310 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
8311
8312         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8313         * NEWS: Ditto.
8314
8315 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8316
8317         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8318         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8319         alpha_linux_pc_in_sigtramp.
8320         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8321         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8322         alpha_osf1_pc_in_sigtramp.
8323         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8324         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8325         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8326         alphafbsd_pc_in_sigtramp.
8327         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8328         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8329         alphanbsd_pc_in_sigtramp.
8330         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8331         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8332
8333 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8334
8335         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8336
8337 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8338
8339         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8340         alphanbsd-tdep.c.
8341         (alphanbsd-nat.o): New dependency list.
8342         (alphanbsd-tdep.o): Ditto.
8343         * NEWS: Note new native NetBSD/alpha configuration.
8344         * alphanbsd-nat.c: New file.
8345         * alphanbsd-tdep.c: Ditto.
8346         * configure.host (alpha*-*-netbsd*): New host.
8347         * configure.tgt (alpha*-*-netbsd*): New target.
8348         * config/alpha/nbsd.mh: New file.
8349         * config/alpha/nbsd.mt: Ditto.
8350         * config/alpha/nm-nbsd.h: Ditto.
8351         * config/alpha/tm-nbsd.h: Ditto.
8352
8353 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8354
8355         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8356         (alpha-osf1-tdep.o): New dependency list.
8357         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8358         and skip_sigtramp_frame members.
8359         * alpha-linux-tdep.c: Include gdbcore.h.
8360         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8361         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8362         * alpha-osf1-tdep.c: New file.
8363         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8364         alpha-osf1-dep.c.
8365         (alpha_frame_past_sigtramp_frame): New function.
8366         (alpha_dynamic_sigtramp_offset): Ditto.
8367         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8368         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8369         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8370         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8371         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8372         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8373         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8374         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8375         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8376         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8377         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
8378         to find_solib_trampoline_target.
8379         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8380         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8381         (SKIP_TRAMPOLINE_CODE): Remove.
8382         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8383         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8384         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8385         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8386         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8387         (PROC_SIGTRAMP_MAGIC): Ditto.
8388         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8389         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8390         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8391         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8392         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8393
8394 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
8395
8396         * NEWS: Note that Alpha targets are now multi-arch.
8397
8398 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8399
8400         * parser-defs.h (prev_lexptr): New external variable.
8401         * parse.c (parse_exp_1): Set prev_lexptr to null before
8402         calling the language-specific parser.
8403         * c-exp.y (yylex): Set prev_lexptr to start of current token.
8404         (yyerror): Use prev_lexptr in error reporting.
8405
8406 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
8407
8408         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8409         * gregset.h: If FILL_FPXREGSET is defined, provide
8410         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8411         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8412         is defined, call fill_fpxregset.
8413
8414 2002-04-24  Roland McGrath  <roland@frob.com>
8415
8416         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8417         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8418         (supply_gregset, supply_fpregset): New functions.
8419
8420         * gnu-nat.c (gnu_find_memory_regions): New function.
8421         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8422         (gnu_xfer_memory): Add a cast.
8423
8424 2002-04-24  Michael Snyder  <msnyder@redhat.com>
8425
8426         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8427         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
8428         of argument regs ("str r(0123), [r11, #-nn"]).
8429         (arm_skip_prologue): Better handling for frameless functions.
8430         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
8431         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8432
8433 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
8434
8435         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8436         NUM_PSEUDO_REGS can be used.
8437
8438 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
8439
8440         * arch-utils.h: Update copyright.
8441
8442         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8443         * gdbarch.h, gdbarch.c: Re-generate.
8444
8445         * inferior.h (IN_SIGTRAMP): Delete definition.
8446         * arch-utils.c (legacy_pc_in_sigtramp): New function.
8447         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8448
8449         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8450         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8451         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
8452         (find_proc_framesize): Ditto.
8453         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8454         (alpha_init_extra_frame_info): Ditto.
8455         * infrun.c (handle_inferior_event): Ditto.
8456         (handle_inferior_event): Ditto.
8457         (check_sigtramp2): Ditto.
8458         * blockframe.c (create_new_frame): Ditto.
8459         (get_prev_frame): Ditto.
8460         * ppc-linux-tdep.c: Update comments.
8461         * i386-linux-tdep.c: Update comments.
8462         * breakpoint.c (bpstat_what): Update comment.
8463
8464 2002-04-24  David S. Miller  <davem@redhat.com>
8465
8466         * i960-tdep.c (register_in_window_p): New function.
8467         (i960_find_saved_register): Use it instead of
8468         REGISTER_IN_WINDOW_P.
8469         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8470
8471         * symtab.h (find_stab_function_addr): Kill extern.
8472         * minsyms.c (find_stab_function_addr): Remove from here...
8473         * dbxread.c: ... to here, and mark it static.
8474
8475 2002-04-20  David S. Miller  <davem@redhat.com>
8476
8477         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8478         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8479
8480 2002-04-21  David S. Miller  <davem@redhat.com>
8481
8482         * remote-vxsparc.c (vx_read_register): Fix typo, we want
8483         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8484         (vx_write_register): Likewise.
8485
8486 2002-04-23  J. Brobecker  <brobecker@gnat.com>
8487
8488         * source.c (is_regular_file): New function.
8489         (openp): Check wether file to open is a regular file
8490         to avoid opening directories.
8491
8492 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8493
8494         * findvar.c (extract_signed_integer): Cast printf argument
8495         to suppress format warning.
8496         (extract_unsigned_integer): Likewise.
8497         * infcmd.c (registers_info): Likewise.
8498         * top.c (get_prompt_1): Likewise.
8499         * valops.c (value_assign): Likewise.
8500         * valprint.c (print_decimal): Likewise.
8501
8502 2002-04-22  H.J. Lu  (hjl@gnu.org)
8503
8504         * c-exp.y (typebase): Support
8505
8506         [long|long long|short] [signed|unsigned] [int|]
8507
8508         and
8509
8510         signed [long|long long|short] int
8511
8512 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8513
8514         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8515         and vax-tdep.h.
8516         * vax-tdep.h: New file.
8517         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8518         Make several routines static.
8519         (vax_get_saved_register): New function.
8520         (vax_gdbarch_init): New function.
8521         (_initialize_vax_tdep): Register vax_gdbarch_init.
8522         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8523         Remove macros now under the control of gdbarch.
8524
8525 2002-04-22  Michael Snyder  <msnyder@redhat.com>
8526
8527         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8528         Some whitespace and coding standards tweaks.
8529
8530 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8531
8532         * vax-tdep.c: Include regcache.h.
8533         (vax_call_dummy_words): New.
8534         (sizeof_vax_call_dummy_words): New.
8535         (vax_fix_call_dummy): New function.
8536         (vax_saved_pc_after_call): Ditto.
8537         * config/vax/tm-vax.h: Don't include regcache.h.
8538         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8539         (CALL_DUMMY): Remove.
8540         (CALL_DUMMY_WORDS): Define.
8541         (SIZEOF_CALL_DUMMY_WORDS): Define.
8542         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8543
8544 2002-04-18  Michael Snyder  <msnyder@redhat.com>
8545
8546         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8547
8548 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8549
8550         * vax-tdep.c (vax_frame_chain): New function.
8551         (vax_push_dummy_frame): Ditto.
8552         (vax_pop_frame): Ditto.
8553         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8554         (FRAMELESS_FUNCTION_INVOCATION): Use
8555         generic_frameless_function_invocation_not.
8556         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8557         (POP_FRAME): Use vax_pop_frame.
8558
8559 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8560
8561         * vax-tdep.c (vax_store_struct_return): New function.
8562         (vax_extract_return_value): Ditto.
8563         (vax_store_return_value): Ditto.
8564         (vax_extract_struct_value_address): Ditto.
8565         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8566         vax_store_struct_return.
8567         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8568         (STORE_RETURN_VALUE): Use vax_store_return_value.
8569         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8570
8571 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8572
8573         * vax-tdep.c (vax_frame_saved_pc): New function.
8574         (vax_frame_args_address_correct): Ditto.
8575         (vax_frame_args_address): Ditto.
8576         (vax_frame_locals_address): Ditto.
8577         (vax_frame_num_args): Move code to be in proximity to
8578         other frame-related functions.
8579         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8580         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8581         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8582         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8583         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8584
8585 2002-04-22  H.J. Lu  (hjl@gnu.org)
8586
8587         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8588         includedir.
8589
8590 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8591
8592         * vax-tdep.c (vax_frame_init_saved_regs): New function.
8593         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8594         (FRAME_INIT_SAVED_REGS): New macro.
8595
8596 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8597
8598         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8599
8600 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8601
8602         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8603         where needed.
8604         (fetch_osf_core_registers): Likewise.
8605         (supply_gregset): Likewise.
8606
8607 2002-04-22  J. Brobecker  <brobecker@gnat.com>
8608
8609         * symfile.h (get_section_index): Define.
8610         * symfile.c (get_section_index): New function.
8611         * mdebugread.c (SC_IS_SBSS): New macro.
8612         (SC_IS_BSS): Return true for the scBss storage class only, as
8613         the scSBss storage class refers to the .sbss section.
8614         (parse_partial_symbols): Discard the symbols which associated
8615         section does not exist.
8616         Make sure to use the .sbss section index for symbols which
8617         storage class is scBss, rather than using the .bss section index.
8618
8619 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
8620
8621         * vax-tdep.c: Update copyright years.
8622         (vax_register_name): New function.
8623         (vax_register_byte): Ditto.
8624         (vax_register_raw_size): Ditto.
8625         (vax_register_virtual_size): Ditto.
8626         (vax_register_virtual_type): Ditto.
8627         * config/vax/tm-vax.h: Update copyright years.
8628         (REGISTER_NAMES): Remove.
8629         (REGISTER_NAME): Define.
8630         (REGISTER_BYTE): Use vax_register_byte.
8631         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8632         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8633         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8634
8635 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8636
8637         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8638         declaration
8639         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8640
8641 2002-04-21  David S. Miller  <davem@redhat.com>
8642
8643         * arch-utils.c (generic_prologue_frameless_p): Kill
8644         SKIP_PROLOGUE_FRAMELESS_P code.
8645         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8646         references.
8647         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8648         * arc-tdep.c (arc_prologue_frameless_p): Implement.
8649         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8650         references.
8651         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8652         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8653         (sparc_gdbarch_init): Pass it to
8654         set_gdbarch_prologue_frameless_p.
8655
8656 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8657
8658         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8659         (alphabsd-nat.o): New dependency list.
8660
8661 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8662
8663         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8664         alphafbsd-tdep.c.
8665         (alpha-linux-tdep.o): New dependency list.
8666         (alphafbsd-tdep.o): Likewise.
8667
8668 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8669
8670         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
8671         to here...
8672         * alpha-tdep.c: ...from here.
8673         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8674
8675 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8676
8677         * config/alpha/tm-alpha.h: Move alpha_software_single_step
8678         prototype from here...
8679         * alpha-tdep.h: ...to here.
8680
8681 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8682
8683         * frame.h (selected_frame_level): Document as deprecated.
8684         (frame_relative_level): Declare.
8685         * stack.c (frame_relative_level): New function.
8686         (selected_frame_level): Document as deprecated.
8687         (select_frame): Do not set the selected_frame_level.
8688
8689         * stack.c (frame_info, record_selected_frame): Update.
8690         (frame_command, current_frame_command): Update.
8691         (up_silently_base, up_command, down_silently_base): Update.
8692         (down_command): Update.
8693         * inflow.c (kill_command): Update.
8694         * tracepoint.c (finish_tfind_command): Update.
8695         * corelow.c (core_open): Update.
8696         * thread.c (info_threads_command): Update.
8697         (do_captured_thread_select): Update.
8698         * infcmd.c (finish_command): Update.
8699         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8700
8701 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8702
8703         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8704
8705 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8706
8707         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
8708         type const.
8709
8710 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8711
8712         * alphafbsd-tdep.c: Update copyright years.  Include
8713         alpha-tdep.h.
8714         (alphafbsd_use_struct_convention): Make static.
8715         (alphafbsd_init_abi): New function.
8716         (_initialize_alphafbsd_tdep): New function.
8717         * config/alpha/tm-fbsd.h: Update copyright years.
8718         (USE_STRUCT_CONVENTION): Remove.
8719
8720 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8721
8722         * alpha-tdep.c (alpha_abi_handler): New structure to describe
8723         an Alpha ABI variant.
8724         (alpha_abi_handler_list): Declare.
8725         (alpha_gdbarch_register_os_abi): New function.
8726         (alpha_gdbarch_init): Give registered ABI variant handlers a
8727         chance to tweak the gdbarch once we have set up defaults.
8728         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8729
8730 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8731
8732         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8733         to standard_coerce_float_to_double.
8734         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8735
8736 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8737
8738         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8739         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8740         from gdbarch_tdep rather than a constant.
8741         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8742         the default text address for all Alpha Unix ABIs.
8743         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8744         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8745
8746 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
8747
8748         * alpha-tdep.h: New file.  Includes several Alpha target constants
8749         taken from...
8750         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
8751         let gdbarch deal with.
8752         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8753         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8754         to dependency list.
8755         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
8756         Alpha target register names.
8757         * alphabsd-nat.c: Likewise.
8758         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
8759         Alpha target register names.  Make serveral routines static.
8760         (alpha_get_saved_register): New function.
8761         (alpha_abi_names): New.
8762         (process_note_abi_tag_sections): New function.
8763         (get_elfosabi): New function.
8764         (alpha_gdbarch_init): New function.
8765         (alpha_dump_tdep): New function.
8766         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8767
8768 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8769
8770         * frame.c (find_saved_register): Delete #ifdef
8771         HAVE_REGISTER_WINDOWS code.
8772         * config/sparc/tm-sparc.h: Update comments.
8773         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8774
8775 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
8776
8777         * i960-tdep.c (i960_find_saved_register): New function.
8778         (i960_get_saved_register): New function.
8779         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8780         (i960_get_saved_register): Declare.
8781         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8782
8783 2002-04-20  David S. Miller  <davem@redhat.com>
8784
8785         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8786
8787 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8788
8789         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8790         instead of NUM_PSEUDO_REGS.
8791
8792 2002-04-20  David S. Miller  <davem@redhat.com>
8793
8794         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8795         GDB_MULTI_ARCH_PARTIAL
8796         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8797         define, let tm-sp64.h do it.
8798
8799 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
8800
8801         * frame.c (find_saved_register): Avoid a NULL pointer
8802         dereference and actually walk the frame list.
8803
8804 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
8805
8806         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8807         sorted in most most-recent-used order.  Document.
8808         * gdbarch.h, gdbarch.c: Regenerate.
8809
8810 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
8811
8812         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8813         instead of ->prev.
8814         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8815         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8816         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8817         instead of ->prev.
8818
8819 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
8820
8821         Fix PR gdb/471.
8822         * gdbtypes.c (init_simd_type): Rewrite using new functions.
8823         (build_builtin_type_vec128): Ditto.
8824         (append_composite_type_field): Fix calculation of type length in
8825         union case.
8826
8827 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
8828
8829         * config/djgpp/README: Update.
8830
8831         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8832         compiler warnings.
8833
8834 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
8835
8836         * alpha-tdep.c (setup_arbitrary_frame): Rename...
8837         (alpha_setup_arbitrary_frame): ...to this.
8838         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8839         for alpha_setup_arbitrary_frame.
8840
8841 2002-04-18  Andrew Cagney  <cagney@redhat.com>
8842
8843         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8844         * gdbarch.h, gdbarch.c: Regenerate.
8845
8846         * defs.h (breakpoint_from_pc_fn): Delete type definition.
8847         * target.h (memory_breakpoint_from_pc): Update declaration.
8848         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8849
8850         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8851         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8852         * mem-break.c (memory_breakpoint_from_pc): Ditto.
8853         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8854         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8855         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8856         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8857         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8858         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8859         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8860         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8861         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8862
8863         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8864         const pointer.
8865         * monitor.c (monitor_insert_breakpoint): Ditto.
8866         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8867
8868         * config/mcore/tm-mcore.h: Update copyright.
8869         * mem-break.c: Ditto.
8870         * xstormy16-tdep.c: Ditto.
8871
8872 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8873
8874         * p-exp.y: Add precedence rule for '^' token.
8875         This removes the shift/reduce conflicts.
8876         Remove the comment concerning these shift/reduce conflicts.
8877
8878 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
8879
8880         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8881         (registers_powerpc_nofp): New register set for processors
8882         without floating point unit.
8883
8884 2002-04-18  David S. Miller  <davem@redhat.com>
8885
8886         * MAINTAINERS: Add myself to write-after-approval.
8887
8888 2002-04-17  Michael Snyder  <msnyder@redhat.com>
8889
8890         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8891
8892 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8893
8894         * rs6000-tdep.c (frame_initial_stack_address): Use
8895         frame_register_read to read the alloca_reg.
8896
8897 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8898
8899         * frame.c (find_saved_register): Find saved registers in the next
8900         not prev frame.
8901         Fix PR gdb/365.
8902
8903 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
8904
8905         * gdbarch.sh (LANG): Set to ``c''.
8906
8907 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8908
8909         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8910
8911 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
8912
8913         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8914         Update copyright.
8915
8916         * hpread.c (hpread_get_lntt): Add declaration.
8917         Also fix PR gdb/391.
8918
8919 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8920
8921         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8922         * aclocal.m4, configure: Re-generate.
8923         Fix PR gdb/391.
8924
8925 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8926
8927         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8928         instead of tm_print_insn.
8929
8930 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
8931
8932         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8933
8934 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
8935
8936         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8937         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8938         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8939
8940 2002-04-12  Don Howard  <dhoward@redhat.com>
8941
8942         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8943         max_user_call_depth.
8944         (init_cmd_lists): Initialize the new value;
8945         * cli/cli-script.c (execute_user_command): Limit the call depth of
8946         user defined commands.  This avoids a core-dump when user commands
8947         are infinitly recursive.
8948
8949 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8950
8951         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8952         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8953         from tdep struct instead of DEFAULT_LR_SAVE.
8954         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8955         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8956         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8957
8958 2002-04-12  Michael Snyder  <msnyder@redhat.com>
8959
8960         * Remote.c: Spelling fix.
8961         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8962         If no symbol found for "sbrk", try "_sbrk".
8963         (make_output_phdrs): Use bfd_section_name.
8964         (gcore_copy_callback): Use bfd_section_name.
8965         * eval.c: Indentation fix-ups.
8966         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8967         in case it gets applied to an address that is already
8968         in the instruction space.
8969         * cli/cli-decode.c (help_list): Allow long lines to wrap.
8970         * symfile.c: Fix indentation, long lines.
8971         * source.c: White space fix-up.
8972
8973 2002-04-12  Andrew Cagney  <cagney@redhat.com>
8974
8975         * defs.h (read_relative_register_raw_bytes): Delete declaration.
8976         * frame.c (frame_register_read): New function.  Return non-zero on
8977         success.
8978         (read_relative_register_raw_bytes_for_frame): Delete.
8979         (read_relative_register_raw_bytes): Delete.
8980         * frame.h (frame_register_read): Declare.
8981         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
8982         * sh-tdep.c: Ditto.
8983         * infcmd.c (do_registers_info): Ditto.
8984         * hppa-tdep.c: Ditto.
8985         * rs6000-tdep.c: Ditto.
8986         * h8500-tdep.c: Ditto.
8987         * mips-tdep.c: Ditto.
8988         * h8300-tdep.c: Ditto.
8989         * z8k-tdep.c: Ditto.
8990
8991 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8992
8993         From Jimi X <jimix@watson.ibm.com>:
8994         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8995         64-bit SysV ABI.
8996
8997 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
8998
8999         From Jimi X <jimix@watson.ibm.com>:
9000         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9001         bfd info.
9002
9003 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
9004
9005         From Jimi X <jimix@watson.ibm.com>:
9006         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9007         register sets for these processor variants.
9008
9009 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
9010
9011         * regformats/reg-ppc.dat: Support FPSCR.
9012
9013 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
9014
9015         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9016         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9017         Add fpscr as an invalid/unfetchable register.
9018         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9019         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9020         (fill_fpregset): Add support for register fpscr.
9021         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9022         (fill_gregset): Account for the fact that register ``mq'' might
9023         not exist.
9024         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9025         (registers_power): Add fpscr to register set at slot 71.
9026         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9027         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
9028
9029 2002-04-11  Michael Snyder  <msnyder@redhat.com>
9030
9031         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9032         * configure: Regenerate.
9033         * config.in: Regenerate.
9034         * acconfig.h: Add define for _SYSCALL32.
9035         * core-sol2.c: Remove #define _SYSCALL32.
9036         * solib-legacy.c: Remove #define _SYSCALL32.
9037
9038 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9039
9040         * stack.c (select_frame): Cleanup internal error message, do not
9041         use %p.
9042
9043 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9044
9045         * stack.c (select_frame): Check that selected_frame and the
9046         specified level are as expected.
9047         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9048         Update copyright.
9049         * frame.h (struct frame_info): Add field `level'.  Update
9050         copyright.
9051         Work-in-progress PR gdb/464.
9052
9053 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
9054
9055         * maint.c (maint_print_section_info): Rename print_section_info.
9056         (print_bfd_section_info, print_objfile_section_info): Update.
9057         * inferior.h (struct gdbarch): Add opaque declaration.
9058         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9059         * gdbarch.h: Regenerate.
9060
9061 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
9062
9063         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9064         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9065         (kernel_u_size): Added.
9066         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9067         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9068
9069 2002-04-04  Jim Ingham  <jingham@apple.com>
9070
9071        * valarith.c (find_size_for_pointer_math): New function, either returns
9072        the size for a pointer's target, returns 1 for void *, or errors for
9073        incomplete types.
9074        (value_add, value_sub): use find_size_for_pointer_math.
9075
9076 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9077
9078         * linux-low.c (linux_look_up_symbols): New hook.
9079         (linux_target_ops): Add linux_look_up_symbols.
9080         * remote-utils.c (decode_address): New function.
9081         (look_up_one_symbol): New function.
9082         * server.c (handle_query): Call target look_up_symbols hook.
9083         * server.h (look_up_one_symbol): Add prototype.
9084         * target.h (struct target_ops): Add look_up_symbols hook.
9085
9086 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
9087
9088         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9089         override FP_REGNUM with frame->fp.  Update copyright.
9090         * parse.c (num_std_regs, std_regs): Delete.
9091         (target_map_name_to_register): Do not search std_regs.  Update
9092         function description.
9093         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9094         declarations.  Update copyright.
9095         Fix PR gdb/251.
9096
9097 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
9098
9099         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9100         after the last symbol in a block.
9101
9102 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
9103
9104         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9105         is non zero as a found symbol.
9106
9107 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9108
9109         * findvar.c: Include "builtin-regs.h".
9110         (value_of_register): Call value_of_builtin_reg when applicable.
9111         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9112         (target_map_name_to_register): Call
9113         builtin_reg_map_name_to_regnum.
9114         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9115         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9116         (builtin_regs_h): Define.
9117         (builtin-regs.o): New target.
9118         (findvar.o): Add $(builtin_regs_h).
9119         * builtin-regs.c, builtin-regs.h: New files.
9120         * std-regs.c: New file.
9121         Partial fix for PR gdb/251.
9122
9123 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9124
9125         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9126         it's no longer required.
9127
9128 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
9129
9130         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9131
9132 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9133
9134         From Jimi X <jimix@watson.ibm.com>:
9135         * rs6000-tdep.c (rs6000_software_single_step): Use
9136         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9137         and size.  Use target_insert_breakpoint() and
9138         target_remove_breakpoint() to insert and remove breakpoints
9139         instead of explicit memory reads and writes.
9140
9141 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9142
9143         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9144         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9145         ELF_OBJECT_FORMAT ifdef.
9146
9147 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9148
9149         From Jimi X <jimix@watson.ibm.com>:
9150         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9151
9152 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
9153
9154         From Jimi X <jimix@watson.ibm.com>:
9155         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9156         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9157
9158 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
9159
9160         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9161         s/asprintf/xasprintf/.
9162         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9163
9164 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9165
9166         I believe Jeff Law denies responsability for this one:
9167         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9168         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9169         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9170         Work-around for PR gdb/366.
9171
9172 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9173
9174         * remote-e7000.c (write_small, e7000_read_inferior_memory,
9175         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9176         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9177
9178 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
9179
9180         * sh-tdep.c (sh_fp_frame_init_saved_regs,
9181         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9182         information.
9183
9184 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9185
9186         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9187         maintainer.
9188
9189 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
9190
9191         * README (Reporting Bugs in GDB): Document the bug web page as the
9192         prefered way of submitting bugs.
9193         Fix PR gdb/402.
9194
9195 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9196
9197         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9198         -1.  Update comment.
9199         * gdbarch.h, gdbarch.c: Re-generate.
9200
9201 2002-04-07  Andreas Schwab  <schwab@suse.de>
9202
9203         * m68klinux-nat.c (fill_fpregset): Properly pass address of
9204         buffer to regcache_collect.
9205
9206 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9207
9208         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
9209         * gdbarch.c, gdbarch.h: Re-generate.
9210
9211 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
9212
9213         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9214         declaration.  Fix -Werror.
9215
9216 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
9217
9218         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9219         * gdbarch.c: Regenerate.
9220
9221 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9222
9223         * breakpoint.c (clear_command): Rewrite middle section to
9224         combine two loops with identical control conditions.
9225         Add a cleanup to eliminate a memory leak.
9226         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9227
9228 2002-04-05  H.J. Lu  (hjl@gnu.org)
9229
9230         * solib-svr4.c (bkpt_names): Add "__start".
9231
9232 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9233
9234         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9235         as test for 64 bit target.
9236
9237 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
9238
9239         * h8500-tdep.c (h8500_write_fp): Delete function.
9240         * dwarf2cfi.c (cfi_write_fp): Document as not used.
9241         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9242         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9243         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9244         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9245         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9246         (s390_write_fp):
9247         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9248         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9249         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9250         (d10v_write_fp): Delete function.
9251         * inferior.h (write_fp, generic_target_write_fp): Delete
9252         declarations.
9253         * regcache.c (generic_target_write_fp): Delete function.
9254         (write_fp): Delete function.
9255         * gdbarch.sh (TARGET_WRITE_FP): Delete.
9256         * gdbarch.h, gdbarch.c: Regenerate.
9257         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9258         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9259         (sparc64_write_fp): Delete declaration.
9260         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9261         (h8500_write_fp): Delete declaration.
9262
9263 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
9264
9265         * sparc-tdep.c (sparc64_write_fp): Delete.
9266         (sparc_push_dummy_frame): Replace write_fp call with code to store
9267         the FP directly.
9268         (sparc_gdbarch_init): Do not initialize write_fp.
9269
9270 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
9271
9272         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9273         clause.
9274
9275 2002-03-29  Jim Blandy  <jimb@redhat.com>
9276
9277         * stack.c (get_selected_block): Add new argument `addr_in_block',
9278         used to return the exact code address we used to select the block,
9279         not just the block.
9280         * blockframe.c (get_frame_block, get_current_block): Same.
9281         * frame.h (get_frame_block, get_current_block,
9282         get_selected_block): Update declarations.
9283         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9284         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9285
9286 2002-04-05  Michael Snyder  <msnyder@redhat.com>
9287
9288         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9289         warning message.
9290
9291 2002-04-05  J. Brobecker  <brobecker@gnat.com>
9292
9293         * utils.c (xfullpath): New function.
9294         * defs.h (xfullpath): Add declaration.
9295         * source.c (openp): Use xfullpath in place of gdb_realpath to
9296         avoid resolving the basename part of filenames when the
9297         associated file is a symbolic link. This fixes a potential
9298         inconsistency between the filenames known to GDB and the
9299         filenames it prints in the annotations.
9300         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9301         to be able to match a filename with either the real filename, or
9302         the name of any symbolic link to this file.
9303         (lookup_partial_symtab): Ditto.
9304
9305 2002-04-04  Michael Snyder  <msnyder@redhat.com>
9306
9307         * breakpoint.c: Add support for hardware breakpoints in overlays.
9308         (overlay_events_enabled): New state variable.
9309         (insert_breakpoints): Use overlay_events_enabled to decide
9310         whether to attempt to set a breakpoint at the overlay load addr.
9311         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9312         (remove_breakpoint): Use overlay_events_enabled to decide
9313         whether breakpoints need to be removed from overlay load addr.
9314         Handle bp_hardware_breakpoint as well as bp_breakpoint.
9315         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9316         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9317         disable_overlay_breakpoints): Update overlay_events_enabled.
9318
9319 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
9320
9321         * dwarf2read.c (struct function_range): New.
9322         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9323         (check_cu_functions): New.
9324         (read_file_scope): Initialize global function lists.
9325         Call dwarf_decode_line after processing children.
9326         (read_func_scope): Add to global function list.
9327         (dwarf_decode_lines): Call check_cu_functions everywhere
9328         record_line is called.  Call record_line with a linenumber
9329         of 0 to mark sequence ends.
9330
9331 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
9332
9333         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9334         change sync with glibc.
9335
9336 2002-04-03  Jim Blandy  <jimb@redhat.com>
9337
9338         * configure.in: Call AC_C_INLINE.
9339         * configure: Regenerated.
9340
9341 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
9342
9343         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9344         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9345
9346 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
9347
9348         * NEWS: Mention gcore support on FreeBSD/i386.
9349
9350         * fbsd-proc.c: New file.
9351         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9352         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9353
9354         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9355         while statement.
9356
9357 2002-03-29  Jim Blandy  <jimb@redhat.com>
9358
9359         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9360         unescaped newlines in string literals, but newer ones don't.  So
9361         escape them.
9362
9363 2002-03-26  Michael Snyder  <msnyder@redhat.com>
9364             Andrew Cagney <cagney@redhat.com>
9365
9366         * cli/cli-dump.c: New file.  Dump memory to file,
9367         restore file to memory.
9368         * cli/cli-dump.h: New file.
9369         * Makefile.in: Add rules, dependencies for cli-dump.o.
9370         * NEWS: Mention new commands.
9371
9372 2002-03-28  Michael Snyder  <msnyder@redhat.com>
9373
9374         * symfile.c (symbol_file_add): Move test for null symbols to later.
9375
9376 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9377
9378         From veksler at il.ibm.com:
9379         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9380         the xstrduped original path.
9381         Fix PR gdb/417.
9382
9383 2002-03-27  Michael Snyder  <msnyder@redhat.com>
9384
9385         * breakpoint.c (_initialize_breakpoint): Clean up help string.
9386         * infcmd.c (_initialize_infcmd): Ditto.
9387         * language.c (_initialize_language): Ditto.
9388         * symfile.c (_initialize_symfile): Ditto.
9389         * top.c (_init_main): Ditto.
9390         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9391
9392 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
9393
9394         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9395         vector registers handling.
9396         (skip_prologue): Handle new AltiVec instructions.  Fill in new
9397         fields of frame data.
9398         (frame_get_saved_regs): Fill in information for AltiVec registers.
9399
9400 2002-03-27  Jim Blandy  <jimb@redhat.com>
9401
9402         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9403         a function; leave this macro here to invoke that function.
9404         (symbol_init_mangled_name): Declaration for that function.
9405         * symtab.c (symbol_init_mangled_name): New function.
9406
9407 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
9408
9409         * valarith.c: Replace strerror with safe_strerror.
9410         * tracepoint.c: Ditto.
9411         * lin-lwp.c: Ditto.
9412         * go32-nat.c: Ditto.
9413         * inflow.c: Ditto.
9414         * gnu-nat.c: Ditto.
9415
9416 2002-03-27  Andreas Schwab  <schwab@suse.de>
9417
9418         * event-top.c (command_line_handler): Remove useless if.
9419
9420 2002-03-27  Andreas Jaeger  <aj@suse.de>
9421
9422         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9423         comment.
9424
9425 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
9426
9427         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9428         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9429         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9430         (x86_64_linux_dr_get_status, supply_gregset),
9431         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9432         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9433         (x86_64_register_info_table): Add.
9434         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9435         (x86_64_register_raw_size, x86_64_register_virtual_type),
9436         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9437         general x86_64_register_info_table.
9438         (i386_gdbarch_init): gdbarch_register_bytes is now set
9439         dynamicaly during initialization.
9440         * regformats/reg-x86-64.dat: Synced with changes to registers above.
9441         * gdbserver/linux-x86-64-low.c: Ditto.
9442
9443 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9444
9445         * gdbserver/server.c (main): Call target_signal_to_host_p
9446         and target_signal_to_host on signals received from the remote.
9447         * gdbserver/remote-utils.c (prepare_resume_reply): Call
9448         target_signal_from_host on signals sent to the remote.
9449         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
9450         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
9451
9452 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9453
9454         * signals/signals.c: Include "server.h" in gdbserver build.
9455         (target_signal_from_name): Don't use STREQ.
9456         (_initialize_signals): Likewise.  Don't include function in
9457         gdbserver build.
9458
9459 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
9460
9461         * signals.c: Moved to...
9462         * signals/signals.c: Here.
9463         * Makefile (signals.o): Update.
9464
9465 2002-03-26  Jeff Law (law@redhat.com)
9466
9467         * somread.c (som_symtab_read): Remove some commented out code and
9468         updated related comments.  Do not set the minimal symbol table to
9469         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9470         in a dynamic executable.
9471         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9472         where we are unable to find the minimal symbol for the given
9473         PC value.
9474
9475 2002-03-25  Jeff Law (law@redhat.com)
9476
9477         * linux-proc.c (read_mapping): Scan up to end of line for filename.
9478
9479 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
9480
9481         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9482
9483 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9484
9485         * command.h: Update copyright.
9486         (struct cmd_list_element): Replace definition with opaque
9487         declaration.
9488         (enum cmd_types): Document that it will eventually be moved to
9489         cli/cli-decode.h
9490         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9491         (MALLOCED_REPLACEMENT): Delete macro.
9492         * Makefile.in (cli_decode_h): Add $(command_h).
9493         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9494         * top.c: Include "cli/cli-decode.h".
9495         * completer.c: Include "cli/cli-decode.h".
9496         * maint.c: Include "cli/cli-decode.h".
9497         * cli/cli-decode.h: Include "command.h".
9498         (enum command_class): Delete.
9499         (enum cmd_types): Comment out.
9500         (enum cmd_auto_boolean): Delete.
9501         (enum var_types): Delete.
9502
9503 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9504
9505         * cli/cli-decode.c: Include "gdb_assert.h".
9506         (add_set_or_show_cmd): New static function.
9507         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
9508         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
9509         all fields, such as func, from the set command.
9510
9511 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
9512
9513         * MAINTAINERS (sh-elf): Change warning flag to -w.
9514
9515 2002-03-23  Andrew Cagney  <cagney@redhat.com>
9516
9517         * defs.h (error): Add printf format attribute.
9518         * thread-db.c (thread_from_lwp): Fix error format string.
9519         * stack.c (parse_frame_specification): Ditto.
9520         * cli/cli-decode.c (undef_cmd_error): Ditto.
9521         * scm-lang.c (scm_lookup_name): Ditto.
9522         * tracepoint.c (trace_error): Ditto.
9523         * remote-utils.c (usage): Ditto.
9524         * remote.c (compare_sections_command): Ditto.
9525         Fix PR gdb/328.
9526
9527 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
9528
9529         * gdbtypes.c (append_composite_type_field): New function.
9530         (init_composite_type): New function.
9531         * gdbtypes.h (append_composite_type_field): Declare.
9532         (init_composite_type): Ditto.
9533
9534 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
9535
9536         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9537         function.
9538         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9539         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9540         structure returning convention for SYSV ABI case, but not
9541         for GNU/Linux, FreeBSD, or NetBSD.
9542
9543 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
9544
9545         * symtab.h (lookup_block_symbol): Add mangled_name argument
9546         to prototype.
9547
9548         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9549         with new mangled_name argument.
9550         * linespec.c (decode_line_1): Likewise.
9551         * valops (value_of_this): Likewise.
9552         * symtab.c (lookup_transparent_type): Likewise.
9553         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
9554         (lookup_symbol): If we are given a mangled name, pass it down
9555         to lookup_symbol_aux.
9556         (lookup_block_symbol): If we are given a mangled name to check
9557         against, only return symbols which match it.
9558
9559 2002-03-22  Christopher Faylor  <cgf@redhat.com>
9560
9561         * win32-nat.c (child_create_inferior): Check for proper shell to use
9562         here, in case the user changes it on the fly.
9563         (_initialize_inftarg): Remove shell path considerations.
9564
9565 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
9566
9567         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9568         for gdbarch_max_register_raw_size and max_register_virtual_size.
9569         Adjust copyright year.
9570
9571 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
9572
9573          * dbxread.c (process_one_symbol): Extend the first N_SLINE
9574          in a function to cover the entire beginning of the function
9575          as well if it does not already.
9576
9577 2002-03-21  Tom Rix  <trix@redhat.com>
9578
9579         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9580         (rs6000_ptrace64): Renamed from ptrace64.
9581
9582 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9583
9584         * gdbserver/remote-utils.c (remote_open): Don't call
9585         getprotobyname, we're all using TCP here so just use
9586         IPPROTO_TCP.
9587         * gdbserver/gdbreplay.c (remote_open): Ditto.
9588
9589 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
9590
9591         * regcache.c (_initialize_regcache): No need to call
9592         build_regcache() at this time; it gets called whenever
9593         the gdbarch changes.
9594
9595 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
9596
9597         * sparc-nat.c:  Include sys/param.h where possible.
9598
9599 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
9600
9601         Fix PR gdb/422.
9602         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9603         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9604         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9605         complex types.
9606         * stabsread.c (rs6000_builtin_type): Likewise.
9607         (read_sun_floating_type): Likewise.
9608
9609 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9610
9611         * stabsread.c (read_member_functions): Remove skip code for duplicate
9612         constructor/destructor methods.  Use standard parsing for these
9613         methods and just do not chain them to the list of methods after
9614         parsing.
9615
9616 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
9617
9618         * coffread.c: Remove redundant static declarations.  Replace
9619         occurrences of `PTR' with `void *'.
9620         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9621         * top.h (quit_cover): Likewise.
9622         * defs.h (catch_errors): Likewise.
9623
9624 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9625
9626         * defs.h (XMALLOC): Define.
9627         * gdb-events.sh (XMALLOC): Delete macro.
9628         * gdb-events.c, gdb-events.h: Regenerate.
9629         * gdbarch.sh (XMALLOC): Delete macro.
9630         * gdbarch.c: Regenerate.
9631         * serial.c (XMALLOC): Delete macro.
9632         * ui-file.c (XMALLOC): Ditto.
9633         * ser-unix.h (XMALLOC): Ditto.
9634         * sh-tdep.c (XMALLOC): Ditto.
9635         * ui-out.c (XMALLOC): Ditto.
9636         * utils.c (XMALLOC): Ditto.
9637         * i386-tdep.c (XMALLOC): Ditto.
9638         * gdb-events.c (XMALLOC): Ditto.
9639         * d10v-tdep.c (XMALLOC): Ditto.
9640         * cli-out.c (XMALLOC): Ditto.
9641
9642         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9643         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9644         * ui-file.c, ui-out.c: Ditto.
9645
9646 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
9647
9648         * command.h (struct cmd_list_element): Add field context.
9649         (set_cmd_context, get_cmd_context): Declare.
9650         * cli/cli-decode.h: Ditto.
9651         * cli/cli-decode.c (get_cmd_context): New function.
9652         (set_cmd_context): New function.
9653         (add_cmd): Initialize context.
9654         Part of fixing PR gdb/145 and PR gdb/146.
9655
9656 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9657
9658         * cli/cli-decode.c (cmd_type): New function.
9659         * command.h (cmd_type): Declare.
9660         * infrun.c (set_schedlock_func): Call function cmd_type.
9661         * kod.c (kod_set_os): Call cmd_type.
9662         * cris-tdep.c (cris_version_update): Use function cmd_type.
9663         (cris_mode_update, cris_abi_update): Ditto.
9664
9665         * command.h: (execute_cmd_post_hook): Declare.
9666         (execute_cmd_pre_hook): Declare.
9667         * cli/cli-script.c (clear_hook_in_cleanup): New function.
9668         (execute_cmd_post_hook, execute_cmd_pre_hook): New
9669         functions. Execute pre/post hook while ensuring that afterwords
9670         hook_in is cleared.
9671         * top.c (execute_command): Use execute_cmd_post_hook, and
9672         execute_cmd_pre_hook to execute pre/post commands.
9673         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9674         hook_stop_stub.
9675         (hook_stop_stub): Call execute_cmd_pre_hook.
9676
9677 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9678
9679         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
9680         set'' and this leads to a core dump.  Move xstrdup of
9681         operating_system to after check that it is not NULL.
9682
9683 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
9684
9685         * kod.c (kod_set_os): Remove unnecessary check that
9686         ``command->type'' is set_cmd.
9687
9688         * valprint.c (set_input_radix): Use input_radix.
9689         (set_output_radix): Use output_radix.
9690         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9691         isn't reverted.
9692
9693 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
9694
9695         * value.h (struct value): Delete field ``substring_addr''.  Change
9696         aligner fields to force_doublest_align, force_longest_align,
9697         force_core_addr_align and force_pointer_aligh.
9698
9699         * value.h (struct value): Fix typo in above change.
9700
9701 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9702
9703         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9704         to fix internal_error from ``maintenance print architecture''.
9705
9706 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9707
9708         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9709         for gcc versions after gcc-2.8.1.
9710
9711 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9712
9713         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9714         for method resolution.  Restore adjustment of ``this'' pointer after
9715         calling value_struct_elt, which was accidentally removed during the
9716         HP merge.
9717
9718 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
9719
9720         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9721         value_of_register.
9722         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
9723         get_saved_register.
9724         * value.h (value_of_register): Update.
9725
9726 2002-03-14  Richard Henderson  <rth@redhat.com>
9727
9728         * configure.in: Detect declaration for canonicalize_file_name.
9729         * utils.c (canonicalize_file_name): Declare, if needed.
9730         (gdb_realpath): Prefer realpath if available and usable.
9731         * config.in, configure: Rebuild.
9732
9733 2002-03-14  Richard Henderson  <rth@redhat.com>
9734
9735         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9736         a constant array bound.
9737
9738         * MAINTAINERS: Add myself to write-after-approval.
9739
9740 2002-03-14  Michael Snyder  <msnyder@redhat.com>
9741
9742         * symfile.c (syms_from_objfile): Return immediately if no syms.
9743         (symbol_file_add): Return immediately if no syms.
9744         (find_sym_fns): Return immediately if no syms.
9745
9746 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
9747
9748         * gdbserver/remote-util.c (remote_open): Print remote-side's
9749         IP address when remote debugging over the network.
9750
9751 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
9752
9753         * config/sparc/fbsd.mh: Fix copyright.
9754         * config/sparc/fbsd.mt: Likewise.
9755
9756 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
9757
9758         * MAINTAINERS: Fix typo in name of gdb warnings option.
9759         (x86-64): Fix formating so that this can be parsed by awk.
9760
9761 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9762
9763         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9764         * defs.h: Include "gdb/signals.h".
9765         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9766
9767 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
9768
9769         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9770         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9771         from x86-64-tdep.h
9772
9773 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
9774             Don Howard <dhoward@redhat.com>
9775
9776         * mips-tdep.c (ST0_FR): Define.
9777         (mips2_fp_compat): New function, temporarily disabled.
9778         (mips_read_fp_register_single): New function.
9779         (mips_read_fp_register_double): New function.
9780         (mips_print_register): Use them.
9781         (do_fp_register_row): Likewise.
9782
9783 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
9784
9785         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9786         approval''.
9787
9788 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9789
9790         * stabsread.c (read_member_functions): Fix is_stub test for
9791         static member functions, improve comment.
9792
9793 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9794
9795         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9796         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9797         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9798         commands that set boolean values.
9799         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9800         (arm_rdi_resume): Always initialize PC.
9801         (arm_rdi_open): Don't use rslt as a boolean.
9802         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9803         (arm_rdi_fetch_registers, arm_rdi_store_registers)
9804         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9805         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9806
9807 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
9808
9809         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9810         * configure: Rebuilt.
9811
9812 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9813
9814         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9815         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9816
9817 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
9818
9819         * cli/cli-decode.c (set_cmd_completer): New function.
9820         * command.h (set_cmd_completer): Declare.
9821         * cli/cli-decode.h (set_cmd_completer): Ditto.
9822
9823         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9824         * cli/cli-cmds.c (init_cli_cmds): Ditto.
9825         * win32-nat.c (_initialize_inftarg): Ditto.
9826         * remote-rdi.c (_initialize_remote_rdi): Ditto.
9827         * proc-api.c (_initialize_proc_api): Ditto.
9828         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9829         * source.c (_initialize_source): Ditto.
9830         * exec.c (_initialize_exec): Ditto.
9831         * solib.c (_initialize_solib): Ditto.
9832         * top.c (init_main): Ditto.
9833         * tracepoint.c (_initialize_tracepoint): Ditto.
9834         * symfile.c (_initialize_symfile): Ditto.
9835         * printcmd.c (_initialize_printcmd): Ditto.
9836         * infcmd.c (_initialize_infcmd): Ditto.
9837         * corefile.c (_initialize_core): Ditto.
9838
9839 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9840
9841         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9842
9843 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9844
9845         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9846
9847 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
9848
9849         * NEWS: Update headings, 5.2 has branched.
9850
9851 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
9852
9853         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9854         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9855         (register_addr, REGISTER_RAW_SIZE): Likewise.
9856         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9857         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9858
9859 2002-03-03  Michal Ludvig <mludvig@suse.cz>
9860
9861         * MAINTAINERS (x86-64): Add myself.
9862         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9863         changed value_ptr -> struct value *
9864
9865 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
9866
9867         * configure.host (sparc64-*-freebsd): Add.
9868         * configure.tgt: Likewise.
9869         * config/sparc/fbsd.mh: New file.
9870         * config/sparc/fbsd.mt: Likewise.
9871         * config/sparc/nm-fbsd.h: Likewise.
9872         * config/sparc/tm-fbsd.h: Likewise.
9873
9874 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
9875
9876         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9877         regformats/reg-s390x.dat.
9878
9879 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
9880
9881         * utils.c: Add FIXME explaining true/false problem.
9882
9883 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
9884
9885         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9886
9887 2002-02-28  Michael Chastain  <mec@shout.net>
9888
9889         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9890
9891 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
9892
9893         * gdbserver/linux-s390-low.c: New file.
9894         * regformats/reg-s390.dat: New file.
9895         * regformats/reg-s390x.dat: New file.
9896         * gdbserver/configure.srv: Add S/390.
9897         * gdbserver/Makefile.in: Add S/390.
9898         * configure.tgt: Enable gdbserver for S/390.
9899
9900 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
9901
9902         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9903         first line of the doc string for "info dos", except at the end of
9904         the sentence, since the short help stops at the first period.
9905
9906 2002-02-28  Jason Merrill  <jason@redhat.com>
9907
9908         * dwarf2read.c (dwarf_cfi_name): Add new codes.
9909
9910 2002-02-27  Fred Fish  <fnf@redhat.com>
9911
9912         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9913         comment (dumy -> dummy).
9914
9915 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
9916
9917         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9918
9919 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
9920
9921       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9922
9923 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9924
9925         * gdbserver/acconfig.h: New file.
9926         * gdbserver/i387-fp.c: New file.
9927         * gdbserver/i387-fp.h: New file.
9928         * gdbserver/linux-x86-64.c: New file.
9929         * regformats/reg-x86-64.dat: New file.
9930         * configure.tgt: Add x86_64-*-linux* gdbserver support.
9931         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9932         * gdbserver/configure.in: Add support for regsets.
9933         * gdbserver/config.in: Regenerate.
9934         * gdbserver/configure: Regenerate.
9935         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
9936         * gdbserver/linux-low.h: New file.
9937         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
9938         for regsets.
9939         * gdbserver/linux-arm-low.c: Include "linux-low.h".
9940         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9941         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9942         * gdbserver/linux-mips-low.c: Include "linux-low.h".
9943         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9944         * gdbserver/linux-sh-low.c: Include "linux-low.h".
9945         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
9946         "i387-fp.h".  Add PTRACE_GETREGS and friends.
9947         * gdbserver/regcache.c (supply_register): New function.
9948         (supply_register_by_name): New function.
9949         (collect_register): New function.
9950         (collect_register_by_name): New function.
9951
9952 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9953
9954         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9955         (config.status): Add configure.srv dependency.
9956         (server_h): Add config.h dependency.
9957
9958 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
9959
9960         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9961         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9962         * gdbserver/configure.srv: Change i386-*-linux* to use
9963         reg-i386-linux.o.
9964
9965 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9966
9967         * x86-64-tdep.c: Re-indent.  Update copyright date.
9968
9969 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9970
9971         From Michal Ludvig <mludvig@suse.cz>:
9972         * x86-64-tdep.c (value.h): Delete.
9973         (gdb_assert.h): Include.
9974         (x86_64_register_convert_to_virtual,
9975         x86_64_register_convert_to_raw ): Add check which lets only
9976         floating-point values to be converted.
9977         (value_push): Delete.
9978         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9979         (i386_gdbarch_init): Number of register_bytes fixed.
9980
9981 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9982
9983         * MAINTAINERS: Add x86-64 target.
9984
9985 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9986
9987         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9988         * osfsolib.c (solib_map_sections): Ditto.
9989         * irix5-nat.c (solib_map_sections): Ditto.
9990         * corelow.c (gdb_check_format): Ditto.
9991         * symfile.c (symfile_bfd_open): Ditto.
9992         * solib.c (solib_map_sections): Ditto.
9993         Fix PR gdb/354.
9994
9995 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
9996
9997         * remote.c (_initialize_remote): By default, disable ``e'' and
9998         ``E'' step out-of-range packets.
9999
10000 2002-02-26  Andreas Schwab  <schwab@suse.de>
10001
10002         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10003         m68k_linux_frame_saved_pc.
10004         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10005         in_sigtramp.
10006         (SIGCONTEXT_PC_OFFSET): Remove.
10007         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10008         m68k_linux_sigtramp_saved_pc): New functions.
10009         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10010         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10011         (UCONTEXT_PC_OFFSET): Define.
10012         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10013         non-RT and RT signal trampolines.
10014
10015 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
10016
10017         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10018         (TARGET_NBPG, STACK_END_ADDR): Delete
10019         (VARIABLES_INSIDE_BLOCK): Delete.
10020
10021 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
10022
10023         * utils.c (perror_with_name): Make string parameter constant.
10024         (print_sys_errmsg): Ditto.
10025         (query): Ditto.
10026         * defs.h (perror_with_name): Update.
10027         (print_sys_errmsg): Update.
10028         (query): Update.
10029
10030 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
10031
10032         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10033         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10034
10035 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10036
10037         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10038         if it already matches the current architecture from the exec file.
10039         Include arch-utils.h for gdbarch_info_init prototype.
10040         * Makefile.in (rs6000-nat.o): Update dependencies.
10041
10042 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
10043
10044         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10045          list of exported variables.
10046
10047 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
10048
10049         * gdbserver/configure.srv: New file.
10050         * gdbserver/configure.in: Use configure.srv instead
10051         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
10052         from it.
10053         * gdbserver/configure: Regenerated.
10054         * gdbserver/terminal.h: New file.
10055         * gdbserver/Makefile.in: Update for configure changes.  Remove
10056         more unneeded include paths.
10057
10058 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10059
10060         From wiz at danbala:
10061         * config/sparc/tm-sp64.h: Fix grammar and typos.
10062         Fix PR gdb/287.
10063
10064 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
10065
10066         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10067         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
10068         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10069         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10070         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10071         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10072         * s390-tdep.c: Ditto.
10073         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10074         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10075         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10076         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10077         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10078         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10079         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10080         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10081         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10082         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10083         Fix PR gdb/378.
10084
10085 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10086
10087         * lin-thread.c: Delete file.
10088         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10089         to gdb_proc_service.h.
10090         * configure: Re-generate.
10091
10092         * ocd.c (ocd_open): Do not try to open the "ocd" device.
10093         * serial.c (serial_open): Delete check for "ocd".
10094         Fix PR gdb/349.
10095
10096         * Makefile.in (linux-thread.o): Delete target.
10097         * linux-thread.c: Delete file.
10098
10099         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
10100         renamed SH files to be consistent.
10101
10102         * symtab.c (sort_search_symbols): Use xfree.
10103
10104 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10105
10106         * arm-linux-tdep.c (arm_linux_init_abi): Register
10107         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10108         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10109         definition with undef, since we don't want the sysvr4 definition.
10110         (SKIP_TRAMPOLINE_CODE): Likewise.
10111
10112 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10113
10114         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10115
10116         * configure.in: (AC_CHECK_FUNCS) Added test for
10117         canonicalize_file_name Regenerated.
10118         * config.in, configure: Regenerated.
10119         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10120         defined use canonicalize_file_name.
10121
10122 2002-02-23  Michael Chastain  <mec@shout.net>
10123
10124         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10125
10126 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10127
10128         * README: Remove references to cygnus.com.
10129         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10130         dot com'' form.  Remove references to cygnus.com and sourceware.
10131
10132 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10133
10134         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10135         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10136         1003.1-2001 no longer allows "head -1".
10137         * gdb/Makefile.in (version.c): Likewise.
10138         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10139         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10140         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
10141
10142 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10143
10144         * cli/cli-decode.c (cmd_cfunc_eq): New function.
10145         * command.h (cmd_cfunc_eq): Declare.
10146         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10147
10148         * cli/cli-cmds.h (is_complete_command): Change parameter to a
10149         ``struct cmd_list_element *''.
10150         * cli/cli-cmds.c (is_complete_command): Update.  Use
10151         cmd_cfunc_eq.
10152         * top.c (execute_command): Pass the command to
10153         is_complete_command.
10154         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10155
10156 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
10157
10158         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10159         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10160         architecture defines.
10161         * s390-tdep.c (s390_gdbarch_init): Likewise.
10162
10163 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10164
10165         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10166         (arm_linux_push_arguments): Likewise.
10167         (arm_linux_init_abi): Register them.  Also register linux-specific
10168         call_dummy_words.
10169         (find_minsym_and_objfile): Use strcmp, not STREQ.
10170         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10171         (arm_linux_call_dummy_words): Delete declaration.
10172         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10173         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10174         declarations.
10175         (LOWEST_PC): Delete.
10176
10177 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10178
10179         * maint.c (print_section_info): Do not prepend `0x' to filepos
10180         output, it will be handled by local_hex_string_custom.
10181
10182 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
10183
10184         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10185         (store_newfpe_double, store_newfpe_extended, store_fpregister)
10186         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10187
10188 2002-02-22  Jim Blandy  <jimb@redhat.com>
10189
10190         Indicate that the bcache functions don't change the strings
10191         they're passed.
10192         * bcache.h (bcache, hash): Add `const' keywords to declarations.
10193         * bcache.c (bcache, hash): Add `const' keywords to definitions.
10194
10195 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
10196
10197         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10198
10199 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10200
10201         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10202         find the complete path to a loaded DLL.
10203
10204 2002-02-21  Fred Fish  <fnf@redhat.com>
10205
10206         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10207         that marks the end of the range of a function, enter a line number
10208         entry that has a line number of zero and a PC offset that matches
10209         the end of the function.  This starts a range of PC's for which no
10210         line number information is known.
10211         * symtab.c (find_pc_sect_line): If our best fit is in a range of
10212         PC's for which no line number info is found (line number is zero)
10213         then we didn't find any valid line information.
10214         * symtab.h: Document use of zero line number entry.
10215
10216 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
10217
10218         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10219         (have_ptrace_getvrregs): Define for run time checks.
10220         (gdb_vrregset_t): New type for Altivec register handling.
10221         (fetch_register, store_register): Fetch/store altivec register
10222         when needed.
10223         (fetch_altivec_register, store_altivec_register): New functions.
10224         (supply_vrregset, fill_vrregset): New functions.
10225         (fetch_altivec_registers, store_altivec_registers): New functions.
10226         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10227         registers as well.
10228
10229 2002-02-21  Jiri Smid  <smid@suse.cz>
10230
10231         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10232
10233 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10234
10235         * Makefile.in (armnbsd-nat.o): Update dependencies.
10236         * armnbsd-nat.c (supply_gregset): New function.  Common code to
10237         supply the integer register set.
10238         (supply_fparegset): New function.  Similar for FPA registers.
10239         (fetch_regs, fetch_fp_regs): Use them.
10240         (fetch_core_registers): Likewise.
10241         (fetch_elfcore_registers): New function.
10242         (arm_netbsd_elfcore_fns): New core-file type specification.
10243         (_initialize_arm_netbsd_nat): Register it.
10244
10245 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
10246
10247         * armnbsd-nat.c: Include gdbcore.h.
10248         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10249         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10250         'void' to declaration, to shut up ARI.
10251         (fetch_core_registers): Make static.  Rewrite using supply_register.
10252         (arm_netbsd_core_fns): New core-file type specification.
10253         (_initialize_arm_netbsd_nat): New function.
10254
10255 2002-02-21  Christopher Faylor  <cgf@redhat.com>
10256
10257         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10258         value.
10259
10260 2002-02-20  Christopher Faylor  <cgf@redhat.com>
10261
10262         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10263         fails.
10264
10265 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10266
10267         * jv-exp.y (parse_number): Change type of implicit longs
10268         to builtin_type_uint64.
10269
10270 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10271
10272         * gdbserver/linux-low.c (mywait): Change argument to waitpid
10273         to be an integer instead of a `union wait'.
10274
10275 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10276
10277         * mips-linux-nat.c: Call the operating system GNU/Linux.
10278         * mips-linux-tdep.c: Likewise.
10279         * mips-tdep.c: Likewise.
10280
10281 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10282
10283         Fix PR gdb/265.
10284         * jv-exp.y (parse_number): Handle 64-bit integers.
10285
10286 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
10287
10288         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
10289         AC_STDC_HEADERS to AC_HEADER_STDC.
10290         * gdbserver/configure: Regenerated.
10291
10292 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10293
10294         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10295         is defined.
10296         * sparc-tdep.c (get_longjmp_target): Likewise.
10297
10298 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
10299
10300         * News: Add news about ARM and Multi-arch.  Mention the new target
10301         arm*-*-netbsd*.
10302
10303 2002-02-19  Jim Blandy  <jimb@redhat.com>
10304
10305         * stabsread.c (error_type_complaint): Improve error message.
10306
10307 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
10308
10309         * gdbserver/README: Update documentation.
10310         * gdbserver/configure.in: Update configury to match documentation.
10311         * gdbserver/Makefile.in: Likewise.
10312         * gdbserver/configure: Regenerated.
10313         * gdbserver/aclocal.m4: New file, generated by aclocal.
10314         * gdbserver/config.in: New file, generated by autoheader.
10315
10316 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10317
10318         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10319         armnbsd-nat.c.
10320
10321 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10322
10323         * arm-tdep.h (enum arm_float_model): New enum.
10324         (struct gdbarch_tdep): Add fp_model.
10325         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
10326         up floating-point conversions until we know the floating-point model
10327         in use by the inferior.  Don't complain about being unable to
10328         determine the ABI of the inferior when we don't have one.
10329         (arm_extract_return_value): Support different floating-point models.
10330         (arm_store_return_value): Likewise.
10331         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10332         ARM_FLOAT_SOFT.
10333         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10334
10335 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10336
10337         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10338         of ``current_gdbarch''.
10339
10340 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10341
10342         * armnbsd-nat.c : ANSIfy all function declarations.
10343         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10344         (fetch_inferior_registers): Re-implement in terms of above.
10345         (store_register, store_regs, store_fp_register, store_fp_regs): New.
10346         (store_inferior_registers): Re-implement in terms of above.
10347
10348 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10349
10350         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10351         kernel.
10352         * arm-linux-tdep.c: Likewise.
10353         * config/arm/tm-linux.h: Likewise.
10354
10355 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10356
10357         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10358         * config/arm/nbsd.mt (TM_FILE): Delete.
10359         * config/arm/tm-nbsd.h: Delete.
10360
10361 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10362
10363         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10364         Initialize CALL_DUMMY_LENGTH.
10365
10366 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
10367
10368         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10369         function.
10370         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10371         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10372         defines one thing and that is incorrect for this port.
10373         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10374
10375 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10376
10377         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10378
10379 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
10380
10381         * win32-nat.c (display_selector): New function. Displays information
10382         about the information returned by GetThreadSelectorEntry API function.
10383         (display_selectors): New function. Displays the infomation of
10384         the selector given as argument, or of CS, DS ans FS selectors
10385         if no argument is given.
10386         ( _initialize_inftarg): Add "w32" as info prefix command.
10387         Add "info w32 selector" as command calling display_selectors.
10388
10389 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
10390
10391         * i386-tdep.c (get_longjmp_target): Fix compilation failure
10392         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10393         if not defined.
10394
10395 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10396
10397         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10398
10399 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10400
10401         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10402         (arm_fix_call_dummy): Call it.
10403         (arm_call_dummy_breakpoint_offset): Delete.
10404         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10405         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10406
10407 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
10408
10409         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10410         Default to func_frame_chain_valid.
10411         * gdbarch.h, gdbarch.c: Re-generate.
10412         * frame.h (FRAME_CHAIN_VALID): Delete definition.
10413
10414 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
10415
10416         * ppc-linux-nat.c: Update copyright.
10417         (fetch_register, store_register): Add tid parameter, don't compute
10418         tid here.
10419         (fetch_ppc_registers, store_ppc_registers): Add tid
10420         parameter. Pass it along to callees.
10421         (fetch_inferior_registers, store_inferior_registers): Compute tid
10422         here, and pass it to calleed functions.
10423         (fill_gregset, supply_fpregset): Clean up formatting.
10424
10425 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10426
10427         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10428         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10429
10430 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
10431
10432         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10433         * gdbarch.c gdbarch.h: Regenerate.
10434         * breakpoint.c (create_longjmp_breakpoint): Always compile this
10435         function.
10436         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10437         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10438         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10439
10440         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10441         * arm-tdep.c (arm_get_longjmp_target): New function.
10442         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
10443         this to a positive value register arm_get_longjmp_target as the
10444         longjmp handler.
10445         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10446         (arm_linux_init_abi): Set up longjmp description in tdep.
10447         * armnbsd-nat.c (get_longjmp_target): Delete.
10448         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10449         description in tdep.
10450         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10451         (get_longjmp_target): Delete declaration.
10452         (GET_LONGJMP_TARGET): Delete.
10453         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10454         (GET_LONGJMP_TARGET): Delete.
10455
10456 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
10457
10458         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
10459         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10460         of ``current_gdbarch''.
10461
10462 2002-02-17  Tom Tromey  <tromey@redhat.com>
10463
10464         * cli/cli-cmds.c (compare_strings): New function.
10465         (complete_command): Only print each unique item once.
10466         * completer.h (complete_line): Declare.
10467         * completer.c (complete_line): New function.
10468         (line_completion_function): Use it.
10469
10470 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
10471
10472         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10473         * gdbarch.h, gdbarch.c: Re-generate.
10474
10475 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10476
10477         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10478
10479 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
10480
10481         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10482         * valops.c (value_arg_coerce): Don't take the address of a reference
10483         to convert an argument to a reference.
10484
10485 2002-02-15  Christopher Faylor  <cgf@redhat.com>
10486
10487         * win32-nat.c (get_image_name): New function.
10488         (handle_load_dll): Use get_image_name function.
10489         (get_child_debug_event): Avoid registering debug events until possibly
10490         execed process is started.
10491         (child_create_inferior): Allow invocation via shell so that command
10492         line redirection, etc.  works ok.
10493         (_initialize_inftarg): Add new command: "set shell" to control whether
10494         a shell is used to start a process.
10495
10496 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10497
10498         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10499         instead of find_register_by_number.
10500         (cannot_store_register): Likewise.
10501
10502 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10503
10504         * dwarf2read.c: Replace fprintf (stderr, ...) by
10505         fprintf_unfiltered (gdb_stderr, ...).
10506
10507 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
10508
10509         * gdbserver/gdbserver.1: Document --attach.
10510
10511 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10512
10513         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10514         descriptions.
10515         * arm-tdep.c (arm_default_arm_le_breakpoint)
10516         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10517         (arm_default_thumb_be_breakpoint): New.  Initialize them from
10518         traditional breakpoint defines.
10519         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10520         (arm_gdbarch_init): Initialize new breakpoint variables.
10521         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10522         (arm_linux_init_abi): Initialize linux-specific breakpoint.
10523         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10524         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10525         code out to ...
10526         (arm_netbsd_init_abi_common): ... here; new function.
10527         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10528         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10529         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10530         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10531
10532 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
10533
10534         * arm-tdep.h (enum arm_abi): New enum.
10535         (struct gdbarch_tdep): New structure.
10536         (LOWEST_PC): Provide a default.
10537         (arm_gdbarch_register_os_abi): Declare new function.
10538         * arm-tdep.c (arm_abi_names): New array.
10539         (process_note_abi_tag_sections): New function.
10540         (get_elfosabi): New function.
10541         (arm_gdbarch_register_os_abi): New function.
10542         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
10543         support for that ABI has been built in, then call the appropriate
10544         configuration routine.  Use gdbarch_num_regs() to get the number
10545         of registers.
10546         (arm_dump_tdep): New function.
10547         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10548         place-holder functions.
10549         (_initialize_arm_tdep): Register them.
10550         * config/arm/tm-arm.h (LOWEST_PC): Delete.
10551
10552         * armnbsd-tdep.c: New file.
10553         * Makefile.in (armnbsd-tdep.o): Add dependencies.
10554         * config/arm/nbsd.mt (TDEPFILES): Add it.
10555         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10556
10557         * armnbsd-nat.c: Include regcache.h.
10558         * Makefile.in (armnbsd-nat.o): Update dependency list.
10559
10560         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10561
10562 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10563
10564         * gdbserver/Makefile.in: Fix typos in target rules.
10565
10566 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10567
10568         Fix part of PR gdb/267.
10569         * linespec.c (find_methods): Handle constructors specially for now.
10570
10571 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
10572
10573         * arm-tdep.c (arm_push_arguments): Eliminate special float type
10574         handling.
10575         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10576         standard_coerce_float_to_double().
10577
10578 2002-02-14  Christopher Faylor  <cgf@redhat.com>
10579
10580         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10581         GDBINIT_FILENAME.
10582
10583 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
10584
10585         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10586         find_variant_by_name, because it confuses the multiarch
10587         framework. Return NULL if there isn't an architecture with the
10588         user supplied name, instead of forcing a different one without
10589         recording the change with the multiarch machinery.
10590         (find_variant_by_name): Delete.
10591
10592 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10593
10594         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10595         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10596
10597 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
10598
10599         * stack.c (print_frame_info_base): When calling
10600         print_frame_info_listing_hook, set current_source_symtab.
10601
10602 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10603
10604         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10605         and remove unused $(INCLUDE_DIR).
10606         Add regcache.c to OBS.
10607         Add generated register protocol files to clean target.
10608         Update dependencies for new objects, obsolete old target code.
10609
10610         * gdbserver/linux-low.c: Remove all platform-specific code to
10611         new files.  Remove various dead code.  Update to use regcache
10612         functionality.
10613         * gdbserver/remote-utils.c (fromhex): Add return statement
10614         to quiet warning.
10615         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10616         constant.
10617         (input_interrupt): Add integer parameter to match prototype
10618         of a signal handler.
10619         (outreg): Use register_data ().
10620         (prepare_resume_reply): Use gdbserver_expedite_regs.
10621         * gdbserver/server.c (main): Dynamically allocate own_buf because
10622         PBUFSIZ is no longer constant.  Use registers_to_string () and
10623         registers_from_string ().
10624         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
10625         for error (), fatal (), and warning ().  Update definition of
10626         PBUFSIZ to use regcache functionality.  Add include guard.
10627         * gdbserver/utils.c (fatal): Add missing ``const''.
10628         (warning): New function.
10629
10630         * regformats/regdat.sh: Include "regcache.h" in generated files.
10631         Provide init_registers () function.
10632         * regformats/regdef.h: Add prototype for set_register_cache ().
10633         Add include guard.
10634
10635         * gdbserver/linux-arm-low.c: New file.
10636         * gdbserver/linux-i386-low.c: New file.
10637         * gdbserver/linux-ia64-low.c: New file.
10638         * gdbserver/linux-m68k-low.c: New file.
10639         * gdbserver/linux-mips-low.c: New file.
10640         * gdbserver/linux-ppc-low.c: New file.
10641         * gdbserver/linux-sh-low.c: New file.
10642
10643         * gdbserver/regcache.c: New file.
10644         * gdbserver/regcache.h: New file.
10645
10646         * gdbserver/low-linux.c: Removed obsolete file.
10647
10648 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10649
10650         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10651         * config/i386/linux.mt: Likewise.
10652         * config/ia64/linux.mt: Likewise.
10653         * config/m68k/linux.mh: Likewise.
10654         * config/powerpc/linux.mh: Likewise.
10655         * config/mips/linux.mt: Likewise.
10656
10657         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10658
10659         * config/i386/i386lynx.mh: Mark gdbserver variables
10660         as (currently) obsolete for this target.
10661         * config/i386/nbsd.mt: Likewise.
10662         * config/i386/nbsdelf.mt: Likewise.
10663         * config/m32r/m32r.mt: Likewise.
10664         * config/m68k/m68klynx.mh: Likewise.
10665         * config/m68k/nbsd.mt: Likewise.
10666         * config/m68k/sun3os4.mh: Likewise.
10667         * config/mips/vr5000.mt: Likewise.
10668         * config/ns32k/nbsd.mt: Likewise.
10669         * config/pa/hppabsd.mh: Likewise.
10670         * config/pa/hppaosf.mh: Likewise.
10671         * config/powerpc/nbsd.mt: Likewise.
10672         * config/rs6000/rs6000lynx.mh: Likewise.
10673         * config/s390/s390.mt: Likewise.
10674         * config/s390/s390x.mt: Likewise.
10675         * config/sparc/sparclynx.mh: Likewise.
10676         * config/sparc/sun4os4.mh: Likewise.
10677         * config/i386/x86-64linux.mt: Likewise.
10678         * config/sparc/linux.mh: Likewise.
10679
10680 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
10681
10682         * configure.tgt: Configure gdbserver only for known working
10683         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
10684         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
10685         SUBDIRS if it is configured.  Update comment for ${nativefile}.
10686         * configure: Regenerated.
10687
10688 2002-02-13  Michael Snyder  <msnyder@redhat.com>
10689
10690         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10691
10692         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10693         (default_gcore_mach): Just return 0, work around a problem in bfd.
10694         (default_gcore_target): OK to return NULL if exec_bfd is null.
10695         (make_mem_sec): Use a cast, avoid a warning.
10696
10697         * procfs.c (find_memory_regions_callback): Use a cast instead of
10698         calling host_pointer_to_address (which complains if
10699         sizeof (host pointer) != sizeof (target pointer)).
10700         (procfs_make_note_section): Avoid overflow in psargs string.
10701
10702         * procfs.c (procfs_make_note_section): Make the default
10703         implementation return an error.
10704
10705 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
10706
10707         * procfs.c (procfs_make_note_section): Provide a default definition
10708         (for alpha-dec-osf4.0f). Fix typos.
10709
10710 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
10711
10712         * linux-proc.c: Add include of regcache.h.
10713         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10714
10715 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
10716
10717         From 2002-01-18 Greg McGary <greg@mcgary.org>:
10718         * memattr.c (create_mem_region): Disallow useless empty region.
10719         Regions are half-open intervals, so allow [A..B) [B..C) as
10720         non-overlapping.
10721
10722 2002-02-13  Michael Chastain <mec@shout.net>
10723
10724         * defs.h: Kill CONST_PTR.
10725         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10726         * c-lang.c (c_builtin_types): Likewise.
10727         * ch-lang.c (ch_builtin_types): Likewise.
10728         * f-lang.c (f_builtin_types): Likewise.
10729         * language.c (unknown_builtin_types): Likewise.
10730         * m2-lang.c (m2_builtin_types): Likewise.
10731         * p-lang.c (pascal_builtin_types): Likewise.
10732         * scm-lang.c (c_builtin_types): Likewise.
10733
10734 2002-02-13  Keith Seitz  <keiths@redhat.com>
10735
10736         * arm-tdep.h (arm_get_next_pc): Add declaration.
10737
10738 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
10739
10740         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
10741         with other related struct-returning functions.
10742         (arm_extract_struct_value_address): New function.
10743         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
10744         initialize float_format, double_format and long_double_format as
10745         appropriate to the endianness of the target.
10746         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10747         (arm_use_struct_convention): Delete declaration.
10748         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10749
10750 2002-02-13  Keith Seitz  <keiths@redhat.com>
10751
10752         * defs.h (core_addr_to_string_nz): New function.
10753
10754 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
10755
10756         Apply missing bits of 2002-01-15 patch.
10757         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10758         (fill_fpregset): Use i387_fill_fsave.
10759
10760 2002-02-12  Keith Seitz  <keiths@redhat.com>
10761
10762         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10763         (core_addr_to_string_nz): New function.
10764
10765 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10766
10767         * arm-linux-nat.c: Really include arm-tdep.h.
10768         * config/arm/tm-linux.h (struct type, struct value): Declare.
10769
10770 2002-02-11  Michael Snyder  <msnyder@redhat.com>
10771
10772         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10773         (gcore section): Ifdef for Solaris and Unixware only.
10774         (procfs_do_thread_registers): Unixware needs one lwpstatus
10775         per thread (not one prstatus or pstatus).
10776         (procfs_make_note_section): Iterate only over kernel threads (lwps),
10777         not over all gdb threads.  For unixware, call elfcore_write_pstatus
10778         once before iterating over threads.
10779
10780 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10781
10782         * arm-tdep.h: New file.
10783         * arm-tdep.c: Include arm-tdep.h.
10784         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10785         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10786         (arm_print_float_info, arm_register_type, convert_to_extended)
10787         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10788         (arm_extract_return_value, arm_register_name): Make static.
10789         (arm_software_single_step): Similarly.  Fix types in declaration.
10790         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10791         (arm_store_return_value, arm_store_struct_return): New functions.
10792         (arm_gdbarch_init): Register the above functions.  Also register
10793         call_dummy_start_offset, sizeof_call_dummy_words,
10794         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10795         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10796         max_register_virtual_size, register_size.  Set up
10797         prologue_cache.saved_regs here, rather than ...
10798         (_initialize_arm_tdep): ... here.
10799         * config/arm/tm-arm.h (struct type, struct value): Delete forward
10800         declarations.
10801         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10802         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10803         (arm_print_float_info, arm_register_type, convert_to_extended)
10804         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10805         (arm_extract_return_value, arm_register_name): Delete declarations.
10806         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10807         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10808         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10809         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10810         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10811         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10812         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10813         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10814         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10815         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10816         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10817         (arm_get_next_pc): No-longer static -- these are needed by the RDI
10818         interface.
10819         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10820         * remote-rdi.c remote-rdp.c: Likewise.
10821         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10822         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10823         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10824         definition.
10825
10826         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10827         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10828         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10829         from non-ARM_ prefixed definitions.
10830         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10831         all uses of above.
10832         * remote-rdi.c remote-rdp.c: Likewise.
10833         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10834
10835 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
10836
10837         * arm-tdep.c (arm_frameless_function_invocation)
10838         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10839         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10840         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10841         (arm_pop_frame, arm_get_next_pc): Make static.
10842         (arm_gdbarch_init): Register above in gdbarch structure.
10843         (arm_read_fp): Renamed from arm_target_read_fp.
10844         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10845         * config/arm/tm-arm.h (arm_frameless_function_invocation)
10846         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10847         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10848         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10849         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10850         (arm_pc_is_thumb_dummy): Delete declarations.
10851         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10852         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10853         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10854         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10855
10856 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
10857
10858         * symtab.c (compare_search_syms): New function.
10859         (sort_search_symbols): New function.
10860         (search_symbols): Sort symbols after searching rather than
10861         before.
10862
10863 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10864
10865         * NEWS: Linux -> GNU/Linux.
10866
10867 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10868
10869         * gdbarch.sh: For for level one methods, disallow a definition
10870         when partially multi-arched.  Add comments explaining rationale.
10871         * gdbarch.h: Re-generate.
10872
10873 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10874
10875         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10876         multi-arch partial.
10877
10878 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10879
10880         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
10881         field.  Use diff -u.
10882         * gdbarch.c: Re-generate.
10883
10884 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10885
10886         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10887         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10888         partial.
10889
10890 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10891
10892         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10893         multi-arch partial.
10894         (PUSH_ARGUMENTS): Switch to using predefault.
10895         * gdbarch.c: Regenerate.
10896
10897 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
10898
10899         * valops.c (PUSH_ARGUMENTS): Delete definition.
10900         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10901         partial.  Default to default_push_arguments.
10902         * gdbarch.h, gdbarch.c: Regenerate.
10903
10904 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10905
10906         * defs.h (throw_exception): Rename return_to_top_level.  Update
10907         comments.
10908         * utils.c (error_stream, internal_verror, quit): Ditto.
10909         * top.c (throw_exception, catcher): Ditto.
10910         * sparclet-rom.c (sparclet_load): Ditto.
10911         * remote.c (interrupt_query, minitelnet): Ditto.
10912         * remote-sds.c (interrupt_query): Ditto.
10913         * remote-mips.c (mips_error, mips_kill): Ditto.
10914         * ocd.c (interrupt_query): Ditto.
10915         * monitor.c (monitor_interrupt_query): Ditto.
10916         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10917         * target.h: Update comment.
10918
10919         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10920
10921 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10922
10923         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10924         default_double_format.
10925         * gdbarch.h, gdbarch.c: Re-generate.
10926         * findvar.c (floatformat_unknown): Delete variable definition.
10927         * doublest.h (floatformat_unknown): Delete variable declaration.
10928
10929 2002-02-09  Jim Blandy  <jimb@redhat.com>
10930
10931         * stabsread.c (read_type): Add code to parse Sun's syntax for
10932         prototyped function types.
10933
10934 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
10935
10936         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10937         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10938
10939 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
10940
10941         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10942         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
10943         now _initialize_xcoffsolib gets called again and overrides the
10944         commands from solib.c in a native configuration.
10945
10946 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
10947
10948         * doublest.c (store_typed_floating): Don't try to return a value.
10949         Fixes PR gdb/290.
10950
10951 2002-02-08  Jim Blandy  <jimb@redhat.com>
10952
10953         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10954         is prototyped and has no arguments, print its argument list as
10955         `(void)'.
10956
10957 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
10958
10959         * MAINTAINERS (write-after-approval): Add myself.
10960         (paper-trail): I've escaped!
10961
10962 2002-02-08  Christopher Faylor  <cgf@redhat.com>
10963
10964         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10965         changes.
10966         (_initialize_check_for_gdb_ini): Ditto.
10967
10968 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
10969
10970         * win32-nat.c (cygwin_pid_to_str): Fix typo.
10971         xaprintf -> xasprintf.
10972
10973 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
10974
10975         * win32-nat.c: Remove use of printf and sprintf functions.
10976
10977 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
10978
10979         * arm-tdep.c (arm_frame_chain_valid): Make static.
10980         (arm_push_arguments): Likewise.
10981         (arm_gdbarch_init): New function.
10982         (_initialize_arm_tdep): Call it.
10983         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10984         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10985         (FRAME_CHAIN_VALID): Delete.
10986         (arm_frame_chain_valid): Delete declaration.
10987         (PUSH_ARGUMENTS): Delete.
10988         (arm_push_arguments): Delete declaration.
10989         (CALL_DUMMY_P): Delete.
10990
10991 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
10992             Corinna Vinschen  <vinschen@redhat.com>
10993
10994         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10995         on builtin float types.
10996
10997 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
10998
10999         * utils.c: Include <curses.h> before "bfd.h".
11000         * tui/tui-hooks.c: Likewise.
11001         * tui/tui.c: Likewise.
11002         * tui/tuiCommand.c: Likewise.
11003         * tui/tuiData.c: Likewise.
11004         * tui/tuiDataWin.c: Likewise.
11005         * tui/tuiDisassem.c: Likewise.
11006         * tui/tuiGeneralWin.c: Likewise.
11007         * tui/tuiIO.c: Likewise.
11008         * tui/tuiLayout.c: Likewise.
11009         * tui/tuiRegs.c: Likewise.
11010         * tui/tuiSource.c: Likewise.
11011         * tui/tuiSourceWin.c: Likewise.
11012         * tui/tuiStack.c: Likewise.
11013         * tui/tuiWin.c: Likewise.
11014
11015 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
11016
11017         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11018         to include space for pseudoregs as well. Update loops accordingly.
11019         (sh_fp_frame_init_saved_regs): Ditto.
11020         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11021
11022 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11023
11024         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11025         Add Richard Earnshaw to Arm maintainers.
11026
11027 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
11028
11029         * defs.h (warning_begin): Delete declaration.
11030
11031         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11032         Delete macro.
11033
11034 2002-02-07  Michael Snyder  <msnyder@redhat.com>
11035
11036         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11037         Logic bug, remove misplaced else.
11038
11039 2002-02-07  Klee Dienes  <klee@apple.com>
11040
11041         * fork-inferior.c (fork_inferior): Add '!' to the list of
11042         characters that need to be quoted when building a string for the
11043         shell.  Quote '!' specifically with a backslash, since CSH chokes
11044         when trying to evaluate "str!str".
11045
11046 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11047
11048         * rdi-share/host.h: Only provide a typedef for bool if it is not
11049         defined.
11050
11051 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11052
11053         * breakpoint.h (enum bptype): Add new overlay event bp type.
11054         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11055
11056         * breakpoint.c (create_internal_breakpoint): New function.
11057         (internal_breakpoint_number): Moved into create_internal_breakpoint.
11058         (create_longjmp_breakpoint): Use create_internal_breakpoint.
11059         (create_thread_event_breakpoint): Ditto.
11060         (create_solib_event_breakpoint): Ditto.
11061         (create_overlay_event_breakpoint): New function.
11062         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11063         (update_breakpoints_after_exec): Delete and re-initialize
11064         overlay event breakpoints after an exec.  Add FIXME comment
11065         about longjmp breakpoint.
11066         (print_it_typical): Ignore overlay event breakpoints.
11067         (print_one_breakpoint): Ditto.
11068         (mention): Ditto.
11069         (bpstat_what): Do not stop for overlay event breakpoints.
11070         (delete_breakpoint): Don't delete overlay event breakpoints.
11071         (breakpoint_re_set_one): Delete the overlay event breakpoint.
11072         (breakpoint_re_set): Re-create overlay event breakpoint.
11073
11074         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11075         (overlay_manual_command): Disable overlay breakpoints.
11076         (overlay_off_command): Disable overlay breakpoints.
11077
11078 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11079
11080         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11081         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11082         to here from config/tm-arm.h.
11083         (coff_sym_is_thumb): Make static.
11084         (arm_elf_make_msymbol_special): New function.
11085         (arm_coff_make_msymbol_special): New function.
11086         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11087         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11088         (coff_sym_is_thumb): Delete declaration.
11089         (arm_elf_make_msymbol_special): Declare.
11090         (arm_coff_make_msymbol_special): Declare.
11091         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11092         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11093
11094 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11095
11096         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11097
11098 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
11099
11100         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11101         * gdbarch.c gdbarch.h: Regenerate.
11102         * arch-utils.c (default_print_float_info): New function.
11103         * arch-utils.h (default_print_float_info): Prototype it.
11104         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11105         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11106         (PRINT_FLOAT_INFO): Document it.
11107
11108         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11109         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11110         (PRINT_FLOAT_INFO): Define.
11111
11112 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
11113
11114         * win32-nat.c (_initialize_check_for_gdb_ini):
11115         Add typecast to sprintf argument to suppress a warning.
11116
11117 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
11118
11119         * win32-nat.c (last_sig): Changed type of variable to target_signal,
11120         to allow easier handling of pass state.
11121         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11122         that gives exception name and address.
11123         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11124         and set last_sig value to ourstatus->value.sig. Some missing
11125         exceptions added.
11126         (child_continue): Correctly report continue_status.
11127         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11128         TARGET_SIGNAL_0 (new default value).
11129         (child_resume): consider sig argument passed to decide if
11130         the exception should be passed to debuggee or not.
11131
11132 2002-02-05  Michael Snyder  <msnyder@redhat.com>
11133
11134         * regcache.c (fetch_register): Call target_fetch_register
11135         only if we don't call FETCH_PSEUDO_REGISTER.
11136         (store_register): Call target_store_register only if we
11137         don't call STORE_PSEUDO_REGISTER.
11138
11139 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
11140
11141         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11142         ELF_MAKE_MSYMBOL_SPECIAL.
11143         * gdbarch.c, gdbarch.h: Regenerate.
11144         * arch-utils.c (default_make_msymbol_special): New function.
11145         * arch-utils.h (default_make_msymbol_special): Export.
11146         * elfread.c (elf_symtab_read): Compile use of
11147         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11148         multiarched.
11149         * coffread.c (coff_symtab_read): Ditto, for
11150         COFF_MAKE_MSYMBOL_SPECIAL.
11151
11152 2002-02-05  Jim Blandy  <jimb@redhat.com>
11153
11154         * solib-svr4.c (svr4_truncate_ptr): New function.
11155         (svr4_relocate_section_addresses): Do the address arithmetic with
11156         the appropriate truncation for target addresses, even when
11157         CORE_ADDR is larger than a target address.
11158
11159 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11160
11161         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11162         to (int *).
11163
11164 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11165
11166         * gdbserver/linux-low.c (kill_inferior): Remove commented out
11167         code.
11168
11169 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11170
11171         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11172
11173 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11174
11175         * gdbserver/linux-low.c: Remove unused include files.
11176
11177 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11178
11179         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11180         (read_inferior_memory): Use it.
11181         (write_inferior_memory): Likewise.
11182
11183 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11184
11185         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11186         grubbing through sys_errlist.
11187
11188 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
11189
11190         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11191
11192 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11193         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11194
11195 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
11196
11197         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11198         (do_sfunc, set_cmd_sfunc): New functions.
11199
11200         * command.h (struct cmd_list_element): Add field func.
11201         * cli/cli-decode.h (struct cmd_list_element): Ditto.
11202         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11203         * cli/cli-decode.h: Ditto.
11204
11205         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11206         (help_all, help_cmd_list): Ditto.
11207         (find_cmd, complete_on_cmdlist): Ditto.
11208         * top.c (execute_command): Ditto.
11209
11210         * cli/cli-setshow.c (do_setshow_command): Call func instead of
11211         function.sfunc.
11212
11213         * infcmd.c (notice_args_read): Fix function signature.
11214
11215         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11216         * cli/cli-decode.c (add_set_cmd): Ditto.
11217         * utils.c (initialize_utils): Ditto.
11218         * maint.c (_initialize_maint_cmds): Ditto.
11219         * infrun.c (_initialize_infrun): Ditto.
11220         * demangle.c (_initialize_demangler): Ditto.
11221         * remote.c (add_packet_config_cmd): Ditto.
11222         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11223         * cris-tdep.c (_initialize_cris_tdep): Ditto.
11224         * proc-api.c (_initialize_proc_api): Ditto.
11225         * kod.c (_initialize_kod): Ditto.
11226         * valprint.c (_initialize_valprint): Ditto.
11227         * top.c (init_main): Ditto.
11228         * infcmd.c (_initialize_infcmd): Ditto.
11229         * corefile.c (_initialize_core): Ditto.
11230         * arm-tdep.c (_initialize_arm_tdep): Ditto.
11231         * arch-utils.c (initialize_current_architecture): Ditto.
11232         (_initialize_gdbarch_utils): Ditto.
11233         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11234
11235         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11236         * wince.c (_initialize_inftarg): Ditto.
11237         * symfile.c (_initialize_symfile): Ditto.
11238         * mips-tdep.c (_initialize_mips_tdep): Ditto.
11239         * language.c (_initialize_language): Ditto.
11240         * arc-tdep.c (_initialize_arc_tdep): Ditto.
11241
11242 2002-02-04  Michael Snyder  <msnyder@redhat.com>
11243
11244         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11245
11246 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11247
11248         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11249         Add rules for building the register data files.
11250
11251 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11252
11253         * regformats/regdat.sh: Add braces to the definition of
11254         expedite_regs_${arch}.
11255
11256 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
11257
11258         * regformats/regdef.h (struct reg): Add comment describing the
11259         requirements for offset and size fields.
11260
11261 2002-02-04  Andreas Schwab  <schwab@suse.de>
11262
11263         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11264         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11265
11266 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
11267
11268         * gdbarch.sh (copyright): Update years in generated header.
11269         (SMASH_TEXT_ADDRESS): Add rule.
11270         * gdbarch.h, gdbarch.c: Re-generate.
11271         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11272         * dbxread.c: Likewise.
11273         * dwarfread.c: Likewise.
11274         * elfread.c: Likewise.
11275         * somread.c: Likewise.
11276
11277         * arm-tdep.c (arm_smash_text_address): New function.
11278         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11279
11280 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
11281
11282         Add support for hardware watchpoints on win32 native.
11283         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11284         CONTEXT_DEBUG_REGISTERS.
11285         (dr variable): New variable. Static array containing a local copy
11286         of debug registers.
11287         (debug_registers_changed): New variable.  Reflects when debug registers
11288         are changed and need to be written to inferior.
11289         (debug_registers_used): New variable. Reflects when any debug register
11290         was set, used when new threads are created.
11291         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11292         i386-nat code.
11293         (thread_rec): Set dr array if id is the thread of current_event .
11294         (child_continue, child_resume): Change the debug registers for all
11295         threads if debug_registers_changed.
11296         (child_add_thread): Change the debug registers if debug_registers_used.
11297         * config/i386/cygwin.mh: Add use of i386-nat.o file.
11298         Link nm.h to new nm-cygwin.h file.
11299         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11300         of hardware registers.
11301
11302 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
11303
11304         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11305         Restore behavour broken by 2002-01-20 Andrew Cagney
11306         <ac131313@redhat.com> IEEE_FLOAT removal.
11307
11308 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11309
11310         * c-valprint.c (c_val_print): Pass a proper valaddr to
11311         cp_print_class_method.
11312         * valops.c (search_struct_method): If there is only one method
11313         and args is NULL, return that method.
11314
11315 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11316
11317         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11318         accessing tag_name directly.
11319
11320 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11321
11322         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11323         of accessing tag_name directly.
11324
11325 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
11326
11327         PR gdb/280
11328         * gdbtypes.c (replace_type): New function.
11329         * gdbtypes.h (replace_type): Add prototype.
11330         * stabsread.c (read_type): Use replace_type.
11331
11332 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
11333
11334         * Makefile.in (memattr.o): Add missing dependencies rule.
11335
11336 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
11337
11338         * breakpoint.c (break_at_finish_command): Really export.
11339         (break_at_finish_at_depth_command): Ditto.
11340         (tbreak_at_finish_command): Ditto.
11341         * hppa-tdep.c: Include completer.h.
11342         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11343         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11344
11345 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11346
11347         * utils.c (do_write): New function.
11348         (error_stream): Rewrite combining the code from error_begin and
11349         verror.
11350         (verror): Rewrite using error_stream.
11351         (error_begin): Delete function.
11352
11353 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11354
11355         * utils.c (error_begin): Make static.
11356         * defs.h (error_begin): Delete declaration.
11357
11358         * linespec.c (cplusplus_error): Replace cplusplus_hint.
11359         (decode_line_1): Use cplusplus_error instead of error_begin,
11360         cplusplus_hint and return_to_top_level.
11361         * coffread.c (coff_symfile_read): Use error instead of error_begin
11362         and return_to_top_level.
11363         * infrun.c (default_skip_permanent_breakpoint): Ditto.
11364
11365 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11366
11367         * language.h (type_error, range_error): Make string parameter
11368         constant.
11369         * language.c (warning_pre_print): Delete extern declaration.
11370         * dwarfread.c (warning_pre_print): Ditto.
11371         * language.c (type_error, range_error): Rewrite to use verror and
11372         vwarning instead of warning_begin.
11373
11374 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11375
11376         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11377         (set_ignore_count): Move misplaced comment back where it belongs.
11378
11379 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
11380
11381         * command.h (NO_FUNCTION): Delete macro.
11382         * cli/cli-decode.h (NO_FUNCTION): Ditto.
11383         * top.c (execute_command): Replace NO_FUNCTION with NULL.
11384         * tracepoint.c (_initialize_tracepoint): Ditto.
11385         * cli/cli-decode.c (add_set_cmd): Ditto.
11386         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11387
11388 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11389
11390         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11391         Update ``this'' pointer when calling virtual functions.
11392
11393 2002-02-01  Michael Snyder  <msnyder@redhat.com>
11394
11395         * breakpoint.c (create_temp_exception_breakpoint): Delete.
11396         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11397
11398 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
11399
11400         * regformats/reg-arm.dat: New file.
11401         * regformats/reg-i386.dat: New file.
11402         * regformats/reg-ia64.dat: New file.
11403         * regformats/reg-m68k.dat: New file.
11404         * regformats/reg-mips.dat: New file.
11405         * regformats/reg-ppc.dat: New file.
11406         * regformats/reg-sh.dat: New file.
11407         * regformats/regdef.h: New file.
11408         * regformats/regdat.sh: New file.
11409
11410 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
11411
11412         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11413         (arm_frame_args_address, arm_frame_locals_address): New functions.
11414         (arm_frame_num_args): New function.
11415         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11416         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11417         (FRMA_NUM_ARGS): Call arm_frame_num_args.
11418
11419 2002-01-31  Michael Snyder  <msnyder@redhat.com>
11420
11421         * breakpoint.c (break_at_finish_command): Export.
11422         (break_at_finish_at_depth_command): Export.
11423         (tbreak_at_finish_command): Export.
11424         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11425         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11426         "txbreak" commands, which are HPPA specific.
11427
11428         * printcmd.c (disassemble_command): Remove an ancient
11429         artifact of an old merge.
11430
11431         * symfile.h (enum overlay_debugging_state):
11432         Define enum constant values for overlay mode.
11433         * symfile.c (overlay_debugging): Use enums instead of literals.
11434         (overlay_is_mapped, overlay_auto_command,
11435         overlay_manual_command): Ditto.
11436
11437         * breakpoint.c (insert_breakpoints, remove_breakpoint,
11438         breakpoint_here_p, breakpoint_inserted_here_p,
11439         breakpoint_thread_match, bpstat_stop_status,
11440         describe_other_breakpoints, check_duplicates, clear_command):
11441         Coding standard fixes.
11442
11443         * target.c (target_xfer_memory): Add spaces, coding standard.
11444         (do_xfer_memory): Add missing line to trust-readonly
11445         code: check bfd SEC_READONLY flag for section.
11446
11447 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
11448
11449         * PROBLEMS: Fix typo, 5.1->5.1.1.
11450
11451 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
11452
11453         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11454         data symbols, since we search based on textlow and texthigh.
11455         (find_pc_sect_symtab): Likewise.
11456
11457 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11458
11459         * defs.h (vwarning): Declare.
11460         * utils.c (vwarning): New function.
11461         (warning): Call vwarning.
11462         (warning_begin): Delete function.
11463
11464         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11465         the warning message.
11466         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11467         warning_begin.
11468
11469 2002-01-30  Michael Snyder  <msnyder@redhat.com>
11470
11471         * NEWS: Mention "set trust-readonly-sections" command.
11472         Mention generate-core-file command.
11473
11474 2002-01-15  Michael Snyder  <msnyder@redhat.com>
11475
11476         * target.c: New command, "set trust-readonly-sections on".
11477         (do_xfer_memory): Honor the suggestion to trust readonly sections
11478         by reading them from the object file instead of from the target.
11479         (initialize_targets): Register command "set trust-readonly-sections".
11480
11481 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11482
11483         * parse.c (target_map_name_to_register): Simplify, search regs and
11484         pseudo-regs using a single loop.
11485
11486 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
11487
11488         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11489
11490 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
11491
11492         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11493         * config/i386/i386v42mp.mh: Add i387-nat.o .
11494         * i386v4-nat.c: Include i387-nat.h.
11495         (supply_fpregset): Use i387_supply_fsave.
11496         (fill_fpregset): Use i387_fill_fsave.
11497
11498 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
11499
11500         * arm-tdep.c (arm_call_dummy_words): Define.
11501         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11502         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11503         (CALL_DUMMY_WORDS): Define.
11504         (arm_call_dummy_words): Declare.
11505         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11506         (arm_linux_call_dummy_words): Declare.
11507
11508 2002-01-30  Andreas Schwab  <schwab@suse.de>
11509
11510         * m68klinux-nat.c: Fix last change to use regcache_collect
11511         instead of referencing registers[] directly.
11512
11513 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
11514
11515         * parse.c (target_map_name_to_register): Delete code wrapped in
11516         #ifdef REGISTER_NAME_ALIAS_HOOK.
11517
11518 2002-01-28  Michael Snyder  <msnyder@redhat.com>
11519
11520         * regcache.c (legacy_read_register_gen): Need to be able to
11521         read pseudo-register as well as real register.
11522         (legacy_write_register_gen): Ditto.
11523
11524 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11525
11526         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11527         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11528         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11529         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11530         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11531         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11532         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11533         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11534         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11535         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11536         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11537         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11538         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11539         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11540         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11541         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11542         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11543         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11544         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11545         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11546
11547 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11548
11549         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11550         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11551         (initialize_current_architecture): Update target_byte_order using
11552         information from BFD.
11553         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11554         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11555
11556 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
11557
11558         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11559         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
11560
11561         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11562         #ifdef INVALID_FLOAT.
11563         * infcmd.c (do_registers_info): Ditto.
11564         * values.c (unpack_double): Ditto.  Add comment.
11565
11566         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11567         already commented out.
11568
11569 2002-01-26  Andreas Schwab  <schwab@suse.de>
11570
11571         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11572         * m68klinux-nat.c: Update ptrace interface for fetching/storing
11573         registers and add support for PTRACE_GETREGS.
11574
11575 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
11576
11577         GDB 5.1.1 released from 5.1 branch.
11578         * NEWS: Add 5.1.1 news.
11579         * README: Sync with 5.1 branch.
11580
11581 2002-01-23  Fred Fish  <fnf@redhat.com>
11582
11583         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11584         stabstring on initial malloc.  Reallocing will copy it for us,
11585         if necessary.
11586
11587 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11588
11589         * Makefile.in (hpread_h): Delete.
11590         (HFILES_NO_SRCDIR): Remove hpread.h.
11591         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11592         (hpread.o): Update dependencies.
11593         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11594
11595         * hp-psymtab-read.c: Remove file.
11596         * hp-symtab-read.c: Remove file.
11597         * hpread.h: Remove file.
11598
11599         * hpread.c: Merge all contents of hp-psymtab-read.c,
11600         hp-symtab-read.c and hpread.h into this file, as it was prior to
11601         January 1999.
11602
11603         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11604         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11605         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11606         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11607
11608 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
11609
11610         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11611         fill_gregset): Call gdbarch_tdep() just once, assign result to
11612         variable and use that, instead of calling the function several
11613         times.
11614
11615 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
11616
11617         * configure.host: Accept sparcv9 as alias for sparc64.
11618         * configure.tgt: Likewise.
11619
11620 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
11621
11622         * solib-aix5.c (build_so_list_from_mapfile)
11623         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11624         arguments is not reversed.
11625         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11626         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11627
11628 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
11629
11630         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11631         modified version of obsolete sh_fetch_pseudo_register.
11632         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11633         (sh4_register_read): New function.
11634         (sh_pseudo_register_write): New function. Renamed and modified
11635         version of obsolete sh_store_pseudo_register.
11636         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11637         (sh4_register_write): New function.
11638         (sh_gdbarch_init): Remove setting of gdbarch function
11639         fetch_pseudo_register and store_pseudo_register. Remove setting of
11640         register_convert_to_raw, register_convert_to_virtual,
11641         register_convertible.
11642         (sh_sh4_register_convertible): Delete. No longer needed. All is
11643         taken care by architecture specific functions
11644         register_read/register_write.
11645         (sh_sh4_register_convert_to_virtual): Make static.
11646         (sh_sh4_register_convert_to_raw): Ditto.
11647
11648 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
11649
11650         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11651         (floatformat_is_nan, floatformat_mantissa): Ditto.
11652
11653         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11654         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11655         builtin_type_ieee_double_little,
11656         builtin_type_ieee_double_littlebyte_bigword,
11657         builtin_type_m68881_ext, builtin_type_i960_ext,
11658         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11659         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11660         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11661         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11662
11663 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
11664
11665         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11666         parameter.  Set frameless flag if it exists and depended of
11667         whether the scanned function is frameless or not.
11668         (xstormy16_skip_prologue): If function is frameless, return
11669         result of xstormy16_scan_prologue().
11670         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11671         call.
11672
11673 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
11674
11675         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11676         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11677         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11678         sh_sh4_register_byte, sh_sh4_register_raw_size,
11679         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11680         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11681         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11682         sh_store_pseudo_register, sh_do_pseudo_register): Call
11683         gdbarch_tdep() just once, assign result to variable and use that,
11684         instead of calling the function several times.
11685
11686 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
11687
11688         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11689         macros instead of LAST_FPU_CTRL_REGNUM.
11690         (store_register): Likewise.
11691
11692 2002-01-21  Jim Blandy  <jimb@redhat.com>
11693
11694         * infcmd.c (run_command): Check that the `exec' target layer's BFD
11695         is up-to-date before running the program, not just when a program
11696         exits.
11697
11698 2002-01-21  Fred Fish  <fnf@redhat.com>
11699
11700         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11701         when we have found all instructions we are looking for.
11702
11703 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11704
11705         * arm-tdep.c (arm_register_name): New function.
11706         (arm_registers_names): Make static.
11707         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11708         (arm_register_name): Declare.
11709         (REGISTER_NAME): Use it.
11710
11711 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
11712             Kevin Buettner  <kevinb@redhat.com>
11713
11714         Convert arm targets to new FRAME interface.
11715         * arm-tdep.c (struct frame_extra_info): Remove fsr.
11716         (arm_frame_find_save_regs): Delete.
11717         (arm_frame_init_saved_regs): New.
11718         (arm_init_extra_frame_info): Alloacte saved_regs as required.
11719         Allocate extra_info as required.  Convert all uses of fsr.regs
11720         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11721         to use extra_info.
11722         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11723         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11724         (check_prologue_cache, save_prologue_cache): Likewise.
11725         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11726         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11727         (FRAME_FIND_SAVED_REGS): Delete.
11728         (arm_frame_find_saved_regs): Delete prototype.
11729         (arm_frame_init_saved_regs): New prototype.
11730         (FRAME_INIT_SAVED_REGS): Define.
11731
11732 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11733
11734         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11735
11736 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11737
11738         From Jeff Law <law@redhat.com>:
11739         * infttrace.c: Include <sys/pstat.h>.
11740         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
11741         exec file if the ttrace equivalent fails.
11742
11743 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11744
11745         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11746         (closeLogFile): Ditto.
11747
11748 2002-01-20  Michael Chastain  <mec@shout.net>
11749
11750         * top.c (print_gdb_version): Bump copyright year to 2002.
11751
11752 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11753
11754         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11755         Zannoni and Eli Zaretskii.
11756
11757 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11758
11759         * buildsym.c: Update copyright years.
11760         * c-typeprint.c: Likewise.
11761         * dwarf2read.c: Likewise.
11762         * f-typeprint.c: Likewise.
11763         * gdbtypes.c: Likewise.
11764         * gdbtypes.h: Likewise.
11765         * hp-symtab-read.c: Likewise.
11766         * hpread.c: Likewise.
11767         * mdebugread.c: Likewise.
11768         * p-typeprint.c: Likewise.
11769
11770 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11771
11772         * remote-sim.c (gdbsim_open): Simplify code testing the macro
11773         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
11774         byte-order selectable.
11775         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11776         * arch-utils.c: Ditto.
11777         (set_endian): Ditto.
11778         (set_endian_from_file): Ditto.
11779         * gdbserver/low-sim.c (create_inferior): Ditto.
11780         * gdbarch.sh: Ditto.
11781         * gdbarch.h: Re-generate.
11782         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11783         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11784         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11785         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11786         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11787         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11788         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11789         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11790         macro definition.
11791         * config/mips/tm-wince.h: Remove #undef of macro
11792         TARGET_BYTE_ORDER_SELECTABLE.
11793         * config/sh/tm-wince.h: Ditto.
11794
11795 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11796
11797         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11798         member function fields.  Add accessor macro
11799         TYPE_FN_FIELD_ARTIFICIAL.
11800         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11801         * c-typeprint.c (c_type_print_base): Skip artificial member
11802         functions.
11803
11804 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11805
11806         * f-typeprint.c: Delete unused function f_type_print_args.
11807         * p-typeprint.c: Delete unused function pascal_type_print_args.
11808
11809 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
11810
11811         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
11812         comment.  Add ``artificial'' to ``union field_location''.
11813
11814         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11815
11816         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11817         * mdebugread.c (parse_symbol): Likewise.
11818         * stabsread.c (define_symbol): Likewise.
11819         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11820         initializing TYPE_FIELD_BITPOS to n (obsolete).
11821         (hpread_doc_function_type): Likewise.
11822         * hpread.c (hpread_function_type): Likewise.
11823
11824 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11825
11826         * configure.in (host_makefile_frag): Only require a host makefile
11827         fragment when a native build.
11828         * configure: Re-generate.
11829
11830 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
11831
11832         * doublest.h (floatformat_from_type): Declare.
11833         * doublest.c (floatformat_from_type): New function.
11834         (convert_typed_floating): Use.
11835
11836         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11837         call to function floatformat_from_type.
11838
11839         * gdbarch.sh (IEEE_FLOAT): Delete.
11840         * gdbarch.h, gdbarch.c: Re-generate.
11841         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11842         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11843         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11844         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11845         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11846         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11847         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11848         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11849         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11850         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11851         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11852         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11853
11854         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11855         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11856         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11857         * sh-tdep.c (sh_gdbarch_init): Ditto.
11858         * mips-tdep.c (mips_gdbarch_init): Ditto.
11859         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11860         * cris-tdep.c (cris_gdbarch_init): Ditto.
11861
11862 2002-01-20  Jiri Smid  <smid@suse.cz>
11863
11864         * configure.host, configure.tgt: Support x86-64.
11865         * NEWS: Note new target x86-64.
11866
11867         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11868         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11869         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11870         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11871         x86-64-linux-nat.o): Fix dependencies.
11872
11873 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11874
11875         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11876         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11877         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11878         * config/sparc/xm-sun4os4.h: Delete file.
11879         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11880
11881 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11882
11883         * config/sparc/sparclynx.mh (XM_FILE): Delete.
11884         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11885         * config/m68k/m68klynx.mh (XM_FILE): Delete.
11886         * config/i386/i386lynx.mh (XM_FILE): Delete.
11887         * config/rs6000/xm-rs6000ly.h: Delete file.
11888         * config/sparc/xm-sparclynx.h: Delete file.
11889         * config/m68k/xm-m68klynx.h: Delete file.
11890         * config/i386/xm-i386lynx.h: Delete file.
11891         * config/xm-lynx.h: Delete file.
11892         * config/djgpp/fnchange.lst: Update.
11893
11894 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11895
11896         * alpha-tdep.c (alpha_register_byte): New function.
11897         (alpha_register_raw_size): Ditto.
11898         (alpha_register_virtual_size): Ditto.
11899         (alpha_skip_prologue_internal): Renamed from
11900         alpha_skip_prologue.
11901         (alpha_skip_prologue): New version that calls
11902         alpha_skip_prologue_internal.
11903         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11904         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11905         second argument from alpha_skip_prologue.
11906         (REGISTER_BYTE): Use alpha_register_byte.
11907         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11908         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11909         (FRAMELESS_FUNCTION_INVOCATION): Use
11910         generic_frameless_function_invocation_not.
11911         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11912         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11913
11914 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11915
11916         * config/mips/xm-news-mips.h: Delete file.
11917         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11918
11919         * config/m88k/xm-m88k.h: Delete file.
11920         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11921         * config/m88k/xm-delta88v4.h: Ditto.
11922         * config/m88k/xm-delta88.h: Ditto.
11923
11924         * config/alpha/xm-fbsd.h: Delete file.
11925         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11926
11927         * config/sparc/xm-sparc.h: Delete file.
11928         * Makefile.in (xm-sun4os4.h): Delete dependency.
11929         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11930         * config/sparc/xm-sun4os4.h: Ditto.
11931         * config/sparc/xm-linux.h: Ditto.
11932
11933         * config/i386/xm-windows.h: Delete file.
11934
11935 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
11936
11937         * utils.c: Include <sys/param.h> for MAXPATHLEN.
11938         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11939
11940 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11941
11942         * alpha-tdep.c (alpha_call_dummy_words): New.
11943         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11944         (CALL_DUMMY_P): Define.
11945         (CALL_DUMMY_WORDS): Define.
11946         (SIZEOF_CALL_DUMMY_WORDS): Define.
11947
11948 2002-01-19  Per Bothner  <per@bothner.com>
11949
11950         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
11951         isn't NULL, which can happen with some gcj-3.x-produced code.
11952
11953 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
11954
11955         * alpha-tdep.c (alpha_register_virtual_type): New function.
11956         (alpha_init_frame_pc_first): Ditto.
11957         (alpha_fix_call_dummy): Ditto.
11958         (alpha_store_struct_return): Ditto.
11959         (alpha_extract_struct_value_address): Ditto.
11960         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11961         alpha_register_virtual_type.
11962         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11963         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11964         alpha_extract_struct_value_address.
11965         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11966         (INIT_FRAME_PC): Use init_frame_pc_noop.
11967         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11968
11969 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
11970
11971         * i386gnu-nat.c: Include "i386-tdep.h".
11972         (fetch_fpregs): Simplify code dealing with uninitialized floating
11973         point states such that it doesn't require FP7_REGNUM.
11974
11975 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
11976
11977         * alpha-tdep.c (frame_extra_info): New.
11978         (alpha_find_saved_regs): Make static.  Use
11979         frame->extra_info.
11980         (alpha_frame_init_saved_regs): New function.
11981         (alpha_frame_saved_pc): Use frame->extra_info.
11982         (temp_saved_regs): Don't declare as struct frame_saved_regs.
11983         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11984         (init_extra_frame_info): Rename to...
11985         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
11986         (alpha_print_extra_frame_info): New function.
11987         (alpha_frame_locals_address): Ditto.
11988         (alpha_frame_args_address): Ditto.
11989         (alpha_pop_frame): Use frame->extra_info.
11990         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11991         alpha_frame_args_address.
11992         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11993         (alpha_find_saved_regs): Remove prototype.
11994         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11995         (EXTRA_FRAME_INFO): Remove.
11996         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11997         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11998
11999 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12000
12001         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12002         (alpha_cannot_fetch_register): Ditto.
12003         (alpha_cannot_store_register): Ditto.
12004         (alpha_register_convertible): Ditto.
12005         (alpha_use_struct_convention): Ditto.
12006         * config/alpha/tm-alpha.h: Update copyright years.
12007         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12008         (INNER_THAN): Use core_addr_lessthan.
12009         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12010         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12011         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12012         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12013         (FRAME_CHAIN): Remove unnecessary cast.
12014
12015 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12016
12017         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12018         obsolete.
12019
12020 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
12021
12022         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
12023         * monitor.c, remote-array.c, remote-bug.c: Ditto.
12024         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12025         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12026         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12027         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12028         * x86-64-linux-nat.c: Ditto.
12029
12030 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12031
12032         * alpha-tdep.c (alpha_register_name): New function.
12033         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12034         (REGISTER_NAME): Define.
12035
12036 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12037
12038         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12039
12040 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12041
12042         * alpha-tdep.c: Update copyright years.
12043         (alpha_next_pc): New function.
12044         (alpha_software_single_step): Ditto.
12045         * config/alpha/tm-alpha.h: Add prototype for
12046         alpha_software_single_step.
12047
12048 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
12049
12050         * alphabsd-nat.c: Update copyright years.
12051         (fill_gregset): Use regcache_collect.
12052         (fill_fpregset): Likewise.
12053         (fetch_inferior_registers): Only fetch integer registers
12054         if requested to do so.
12055         (store_inferior_registers): Only store integer registers
12056         if requested to do so.
12057
12058 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12059
12060         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12061         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12062         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12063         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12064         * config/alpha/fbsd.mh (XDEPFILES): Delete.
12065         * config/arm/linux.mh (XDEPFILES): Delete.
12066         * config/arm/nbsd.mh (XDEPFILES): Delete.
12067         * config/i386/i386dgux.mh (XDEPFILES): Delete.
12068         * config/i386/i386sol2.mh (XDEPFILES): Delete.
12069         * config/i386/i386m3.mh (XDEPFILES): Delete.
12070         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12071         * config/i386/i386gnu.mh (XDEPFILES): Delete.
12072         * config/i386/fbsd.mh (XDEPFILES): Delete.
12073         * config/i386/i386bsd.mh (XDEPFILES): Delete.
12074         * config/i386/i386sco5.mh (XDEPFILES): Delete.
12075         * config/i386/i386v4.mh (XDEPFILES): Delete.
12076         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12077         * config/i386/i386sco4.mh (XDEPFILES): Delete.
12078         * config/i386/i386aix.mh (XDEPFILES): Delete.
12079         * config/i386/go32.mh (XDEPFILES): Delete.
12080         * config/i386/cygwin.mh (XDEPFILES): Delete.
12081         * config/i386/i386lynx.mh (XDEPFILES): Delete.
12082         * config/i386/i386mach.mh (XDEPFILES): Delete.
12083         * config/i386/i386v32.mh (XDEPFILES): Delete.
12084         * config/i386/linux.mh (XDEPFILES): Delete.
12085         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12086         * config/i386/ncr3000.mh (XDEPFILES): Delete.
12087         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12088         * config/i386/i386sco.mh (XDEPFILES): Delete.
12089         * config/i386/i386v.mh (XDEPFILES): Delete.
12090         * config/i386/nbsd.mh (XDEPFILES): Delete.
12091         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12092         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12093         * config/i386/symmetry.mh (XDEPFILES): Delete.
12094         * config/i386/obsd.mh (XDEPFILES): Delete.
12095         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12096         * config/ia64/linux.mh (XDEPFILES): Delete.
12097         * config/ia64/aix.mh (XDEPFILES): Delete.
12098         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12099         * config/m68k/dpx2.mh (XDEPFILES): Delete.
12100         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12101         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12102         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12103         * config/m68k/linux.mh (XDEPFILES): Delete.
12104         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12105         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12106         * config/m68k/nbsd.mh (XDEPFILES): Delete.
12107         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12108         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12109         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12110         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12111         * config/m88k/delta88.mh (XDEPFILES): Delete.
12112         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12113         * config/m88k/m88k.mh (XDEPFILES): Delete.
12114         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12115         * config/mips/linux.mh (XDEPFILES): Delete.
12116         * config/mips/irix6.mh (XDEPFILES): Delete.
12117         * config/mips/irix5.mh (XDEPFILES): Delete.
12118         * config/mips/irix4.mh (XDEPFILES): Delete.
12119         * config/mips/irix3.mh (XDEPFILES): Delete.
12120         * config/mips/decstation.mh (XDEPFILES): Delete.
12121         * config/mips/mipsm3.mh (XDEPFILES): Delete.
12122         (NATDEPFILES): Move core-aout.o to here.
12123         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12124         * config/pa/hpux1020.mh (XDEPFILES): Delete.
12125         * config/pa/hppabsd.mh (XDEPFILES): Delete.
12126         * config/pa/hppahpux.mh (XDEPFILES): Delete.
12127         * config/pa/hpux11w.mh (XDEPFILES): Delete.
12128         * config/pa/hppaosf.mh (XDEPFILES): Delete.
12129         * config/pa/hpux11.mh (XDEPFILES): Delete.
12130         * config/powerpc/aix.mh (XDEPFILES): Delete.
12131         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12132         * config/powerpc/linux.mh (XDEPFILES): Delete.
12133         * config/romp/rtbsd.mh: Rename XDEPFILES.
12134         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12135         * config/rs6000/aix4.mh (XDEPFILES): Delete.
12136         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12137         * config/s390/s390.mh (XDEPFILES): Delete.
12138         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12139         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12140         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12141         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12142         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12143         * config/sparc/nbsd.mh (XDEPFILES): Delete.
12144         * config/sparc/linux.mh (XDEPFILES): Delete.
12145         * config/vax/vaxult.mh (XDEPFILES): Delete.
12146         * config/vax/vaxult2.mh (XDEPFILES): Delete.
12147         * Makefile.in (DEPFILES): Remove XDEPFILES.
12148
12149 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12150
12151         * utils.c (internal_verror): Fix comments, default is yes not no.
12152         Update queries to match.  Default to quit and dump core.
12153
12154 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
12155
12156         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
12157         copyright.
12158         * defs.h, event-top.c, gdbcmd.h: Ditto.
12159         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12160         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12161         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12162         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12163         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12164         * mi/mi-main.c:Ditto.
12165
12166         * stack.c, symfile.c: Update copyright.
12167
12168 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12169
12170         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12171         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12172         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12173         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12174
12175 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
12176
12177         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12178         * gdbserver/low-lynx.c (myattach): Likewise.
12179         * gdbserver/low-nbsd.c (myattach): Likewise.
12180         * gdbserver/low-sim.c (myattach): Likewise.
12181         * gdbserver/low-sparc.c (myattach): Likewise.
12182         * gdbserver/low-sun3.c (myattach): Likewise.
12183
12184         * gdbserver/low-linux.c (myattach): New function.
12185
12186         * gdbserver/server.c (attach_inferior): New function.
12187         (main): Handle "--attach".
12188
12189 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
12190
12191         * MAINTAINERS (language support): Daniel Jacobwitz is C++
12192         maintainer.
12193
12194 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
12195
12196         * c-typeprint.c (is_type_conversion_operator): Add additional
12197         check for non-conversion operators.
12198
12199 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12200
12201         * linux-proc.c: Add "info proc" command, a la procfs.c.
12202         (read_mapping): New function, abstract and re-use code.
12203         (linux_find_memory_regions): Use new func read_mapping.
12204         (linux_info_proc_cmd): New function, implement "info proc".
12205         (_initialize_linux_proc): Add new command "info proc".
12206
12207 2002-01-15  Michael Snyder  <msnyder@redhat.com>
12208
12209         * symfile.c (generic_load): Use bfd_map_over_sections method
12210         instead of manipulating bfd structure members directly.
12211         (add_section_size_callback): New function, bfd sections callback
12212         used by generic_load.
12213         (load_sections_callback): New function, bfd sections callback
12214         used by generic_load.
12215
12216 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
12217
12218         [Based on work by Jim Blandy]
12219         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12220         (builtin_type_vec128): Export.
12221         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12222         types.
12223         (builtin_type_vec128): New builtin type for 128 bit vector
12224         registers.
12225         (build_gdbtypes): Initialize builtin_type_v16qi and
12226         builtin_type_v8hi. Create the vec128 register builtin type
12227         structure.
12228         (build_builtin_type_vec128): New function.
12229         (_initialize_gdbtypes): Register builtin_type_v16qi and
12230         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12231         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12232         AltiVec register to new builtin type.
12233
12234 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
12235
12236         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12237         to make_cv_type.
12238
12239 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12240
12241         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12242         CLEAN_UP_REGISTER_VALUE.
12243         * regcache.c (supply_register): Update only call.
12244
12245 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
12246
12247         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12248         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12249         a29k-*-vxworks* targets as obsolete.
12250
12251 2002-01-14  Michael Snyder  <msnyder@redhat.com>
12252
12253         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12254         until we can resolve portability issues.
12255         * gregset.h: Remove references to fpxregs.
12256         * gcore.c (gcore_command): Initialize note_sec to NULL.
12257
12258 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12259
12260         * signals.c (target_signal_to_name): Rewrite.  Only use
12261         signals[].name when in bounds and non-NULL.
12262
12263 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12264
12265         From Petr Ledvina <ledvinap@kae.zcu.cz>:
12266         * signals.c (target_signal_to_name): Verify that SIG is within the
12267         bounds of the signals array.
12268
12269 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12270
12271         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12272
12273 2002-01-13  Keith Seitz  <keiths@redhat.com>
12274
12275         * stack.c (print_frame_info_base): Print the frame's pc
12276         only if when print_frame_info_listing_hook is not defined.
12277
12278 2002-01-13  Keith Seitz  <keiths@redhat.com>
12279
12280         * varobj.c (varobj_set_value): Make sure that there were no
12281         errors evaluating the object before attempting to set its
12282         value.
12283         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12284         so this offset adjustment is no longer necessary.
12285         (create_child): Don't set the error flag if the child is
12286         a CPLUS_FAKE_CHILD.
12287         (value_of_child): If value_fetch_lazy fails, return NULL
12288         so that callers will be notified that an error occurred.
12289         (c_value_of_variable): Delay check of variable's validity
12290         until later. We actually want all structs and unions to have
12291         the value "{...}".
12292         Do not return "???" for variables which could not be evaluated.
12293         This error condition must be returned to the caller so that it
12294         can get the error condition from gdb.
12295         (cplus_name_of_child): Adjust index for vptr before figuring
12296         out the name of the child.
12297         (cplus_value_of_child): If a child's (real) parent is not valid,
12298         don't even bother trying to give a value for it. Just return
12299         an error. Change all instances in this function.
12300         (cplus_type_of_child): If our parent is one of the "fake"
12301         parents, we need to get at the type of the real parent, and
12302         derive the child's true type using this information.
12303
12304 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12305
12306         From 2002-01-09 John Marshall <johnm@falch.net>:
12307         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12308         sources.redhat.com, and tweak some related URLs which had
12309         suffered from linkrot.
12310
12311 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
12312
12313         From Jeff law:
12314         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12315         structures passed in registers.
12316
12317 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
12318
12319         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12320         white space which prevented compilation.  Reported by DSK
12321         <dsk@student.unsw.edu.au>.
12322
12323 2002-01-11  Michael Snyder  <msnyder@redhat.com>
12324
12325         * symfile.c (build_section_addr_info_from_section_tab):
12326         Use bfd access method instead of manipulating bfd directly.
12327         (syms_from_objfile): Ditto.
12328         (simple_overlay_update_1): Ditto.
12329         (simple_overlay_update): Ditto.
12330         (generic_load): Ditto.
12331         (overlay_unmapped_address): FIXME comment, bfd access methods.
12332         (sections_overlap): FIXME comment, bfd access methods.
12333         (pc_in_mapped_range): FIXME comment, bfd access methods.
12334         (pc_in_unmapped_range): FIXME comment, bfd access methods.
12335         (section_is_mapped): FIXME comment, bfd access methods.
12336         (section_is_overlay): FIXME comment, bfd access methods.
12337
12338         * symfile.c (generic_load): Whitespace and long line cleanups.
12339         Remove duplicate variable, change several local variables to
12340         more appropriate data types.
12341         (print_transfer_performance): Use %lu instead of %ld for ulongs.
12342
12343 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12344
12345         From Peter Schauer:
12346         * language.c (longest_local_hex_string_custom): Use phex_nz to
12347         convert NUM to a hex string.
12348
12349 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
12350
12351         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12352         the function.
12353         Update Copyright year.
12354
12355 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
12356
12357         * language.c (longest_raw_hex_string): Delete unused function.
12358
12359 2002-01-11  Petr Sorfa  <petrs@caldera.com>
12360
12361         * MAINTAINERS (write-after-approval): Add myself.
12362         * dwarf2read.c (read_tag_string_type): Handling of
12363         DW_AT_byte_size.
12364         (read_tag_string_type): FORTRAN fix to prevent propagation of
12365         first string size.
12366         (set_cu_language): Handling of DW_LANG_Fortran95
12367
12368 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
12369
12370         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12371         GETPID(inferior_ptid).
12372         (store_inferior_registers): Likewise.
12373
12374 2002-01-10  Jason Merrill  <jason@redhat.com>
12375
12376         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12377         Fix DW_OP_minus.
12378
12379 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
12380
12381         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12382         and bfd/elf32-sh-nbsd.c.
12383
12384 2002-01-10  Michael Snyder  <msnyder@redhat.com>
12385
12386         * NEWS: Mention --pid and corefile/proc-id behavior change.
12387
12388         * Makefile.in: Add rules for gcore.o and linux-proc.o.
12389         * gcore.c: Include cli/cli-decode.h instead of command.h.
12390
12391         * main.c (captured_main): Add new command line option "--pid".
12392         If the second command line argument (following the symbol-file)
12393         begins with a digit, try to attach to it before trying to open
12394         it as a corefile.
12395         (print_gdb_help): Document the "--pid" argument.
12396
12397 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
12398
12399         * completer.c (command_completer): New function.
12400
12401         * completer.h <command_completer>: Add prototype.
12402
12403         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12404         completer for the "help" command.
12405
12406 2002-01-09  Jason Merrill  <jason@redhat.com>
12407
12408         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12409
12410 2002-01-09  Michael Snyder  <msnyder@redhat.com>
12411
12412         * i386-linux-nat.c (fill_fpxregset): Make global.
12413         (store_fpxregset): Ditto.
12414
12415         * gregset.h (gdb_fpxregset_t): Define.
12416         (supply_fpxregset): Prototype.
12417         (fill_fpxregset): Prototype.
12418
12419         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12420
12421 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12422
12423         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12424         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12425         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12426
12427 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
12428
12429         * MAINTAINERS: Update target maintainer rules so that any
12430         Maintainer can approve a tested patch for a maintenance-only
12431         target.
12432
12433 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
12434
12435         * MAINTAINERS (write-after-approval): Add myself.
12436
12437         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12438         IN_SIGTRAMP.
12439
12440 2002-01-08  Michael Snyder  <msnyder@redhat.com>
12441
12442         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12443         real name of the executable, rather than the /proc name.
12444
12445 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12446
12447         Implement a "generate-core-file" command in gdb, save target state.
12448         * gcore.c: New file.  Implement new command 'generate-core-file'.
12449         Save a corefile image of the current state of the inferior.
12450         * linux-proc.c: Add linux-specific code for saving corefiles.
12451         * target.h (struct target_ops): Add new target vectors for saving
12452         corefiles; to_find_memory_regions and to_make_corefile_notes.
12453         (target_find_memory_regions): New macro.
12454         (target_make_corefile_notes): New macro.
12455         * target.c (update_current_target): Inherit new target methods.
12456         (dummy_find_memory_regions): New place-holder method.
12457         (dummy_make_corefile_notes): New place-holder method.
12458         (init_dummy_target): Initialize new dummy target vectors.
12459         * exec.c (exec_set_find_memory_regions): New function.
12460         Allow the exec_ops vector for memory regions to be taken over.
12461         (exec_make_note_section): New function, target vector method.
12462         * defs.h (exec_set_find_memory_regions): Export prototype.
12463         * procfs.c (proc_find_memory_regions): New function, corefile method.
12464         (procfs_make_note_section): New function, corefile method.
12465         (init_procfs_ops): Set new target vector pointers.
12466         (find_memory_regions_callback): New function.
12467         (procfs_do_thread_registers): New function.
12468         (procfs_corefile_thread_callback): New function.
12469         * sol-thread.c (sol_find_memory_regions): New function.
12470         (sol_make_note_section): New function.
12471         (init_sol_thread_ops): Initialize new target vectors.
12472         * inftarg.c (inftarg_set_find_memory_regions): New function.
12473         Allow to_find_memory_regions vector to be taken over.
12474         (inftarg_set_make_corefile_notes): New function.
12475         Allow to_make_corefile_notes vector to be taken over.
12476         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12477         interface layer if not target_has_execution (may be a corefile).
12478         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12479         * config/sparc/sun4sol2.mh: Ditto.
12480         * config/alpha/alpha-linux.mh: Ditto.
12481         * config/arm/linux.mh: Ditto.
12482         * config/i386/x86-64linux.mh: Ditto.
12483         * config/ia64/linux.mh: Ditto.
12484         * config/m68k/linux.mh: Ditto.
12485         * config/mips/linux.mh: Ditto.
12486         * config/powerpc/linux.mh: Ditto.
12487         * config/sparc/linux.mh: Ditto.
12488
12489 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12490
12491         * arm-linux-nat.c: Remove references to regcache.c internal data
12492         (registers[] and register_valid[]).
12493
12494 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12495
12496         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
12497         so that attaching to a pid will automatically read the process's
12498         symbol file and shlibs.
12499         * Makefile.in: Add rule for linux-proc.o.
12500         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12501         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12502         * config/arm/linux.mh: Ditto.
12503         * config/i386/linux.mh: Ditto.
12504         * config/i386/x86-64linux.mh: Ditto.
12505         * config/ia64/linux.mh: Ditto.
12506         * config/m68k/linux.mh: Ditto.
12507         * config/mips/linux.mh: Ditto.
12508         * config/powerpc/linux.mh: Ditto.
12509         * config/sparc/linux.mh: Ditto.
12510
12511 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
12512
12513         * win32-nat.c: Add i386-tdep.h dependency.
12514
12515 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12516
12517         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12518         instead of bfd_get_arch_size.  Don't bail out just because
12519         there's no exec_bfd.
12520
12521         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12522         * p-valprint.c (pascal_object_print_value): Ditto.
12523         * somread.c (som_symtab_read): Ditto.
12524         * symfile.c (simple_free_overlay_region_table): Ditto.
12525         * valops.c (value_assign): Ditto.
12526
12527         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12528         use tilde_expand and strerror for opening save-tracepoints file.
12529
12530         * thread-db.c (thread_db_new_objfile): Indendation fix.
12531
12532         * infptrace.c (GDB_MAX_ALLOCA): New define.
12533         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12534         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12535         can be overridden with whatever value is appropriate to the host).
12536         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12537         alloca to allocate potentially large buffer.
12538         * rs6000-nat.c (child_xfer_memory): Ditto.
12539         * symm-nat.c (child_xfer_memory): Ditto.
12540         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12541
12542 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
12543
12544         From Nick Clifton  <nickc@redhat.com>
12545         * d10v-tdep.c: Set STACK_START to 0x200bffe.
12546
12547 2002-01-07  Michael Snyder  <msnyder@redhat.com>
12548
12549         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12550         Don't use exec_bfd if it's NULL.
12551
12552 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
12553
12554         * valops.c (value_arg_coerce): Fix formatting.
12555
12556 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12557
12558         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12559         * gnu-nat.c: Ditto.
12560
12561 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12562
12563         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12564         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12565         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12566         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12567         z8k-coff have not been multi-arched.  Update z8k-coff build
12568         status.
12569
12570 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
12571
12572         * MAINTAINERS: Mark a29k target as obsolete.
12573         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12574         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
12575         comments.
12576         * NEWS: Note that a29k targets are obsolete.
12577         * a29k-tdep.c: Mark as obsolete.
12578         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12579         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12580         a29k-*-vxworks* targets as obsolete.
12581         * remote-adapt.c: Obsolete.
12582         * remote-eb.c: Obsolete.
12583         * remote-mm.c: Obsolete.
12584         * remote-udi.c: Obsolete.
12585         * config/a29k/a29k-udi.mt: Obsolete.
12586         * config/a29k/a29k.mt: Obsolete.
12587         * config/a29k/tm-a29k.h: Obsolete.
12588         * config/a29k/tm-vx29k.h: Obsolete.
12589         * config/a29k/vx29k.mt: Obsolete.
12590
12591 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12592
12593         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12594         with BFD_ENDIAN_BIG.
12595
12596 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12597
12598         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12599         * configure, config.in: Re-generate.
12600         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12601         * defs.h: Do not include <endian.h>.
12602
12603 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
12604
12605         * acconfig.h (HAVE_PT_GETXMMREGS): New.
12606         * config.in: Regenerate.
12607         * configure.in: Update copyright years.
12608         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12609         * configure: Regenerate.
12610         * i386bsd-nat.c: Update copyright years.
12611         (fill_gregset): Use regcache_collect.
12612         (fetch_inferior_registers): Only fetch integer registers
12613         if requested to do so.  Add support for XMM registers
12614         using PT_GETXMMREGS.
12615         (store_inferior_registers): Only store integer registers
12616         if requested to do so.  Add support for XMM registers
12617         using PT_SETXMMREGS.
12618         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12619         (store_inferior_registers): Remove.
12620         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12621         (fetch_elfcore_registers): New function.
12622         (i386nbsd_elfcore_fns): New.
12623         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12624         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12625         i386bsd-nat.o.
12626         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12627         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12628         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12629         * config/i386/tm-nbsd.h: Update copyright years.
12630         (HAVE_SSE_REGS): Define.
12631         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12632         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12633         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12634         (SIGCONTEXT_PC_OFFSET): Remove.
12635         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12636
12637 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
12638
12639         * configure.tgt: Remove powerpc-*-macos* target.
12640         * config/m68k/xm-mpw.h: Delete file.
12641         * config/xm-mpw.h: Delete file.
12642         * ser-mac.c: Delete file.
12643         * mpw-make.sed: Delete file.
12644         * mpw-config.in: Delete file.
12645         * mac-xdep.c: Delete file.
12646         * mac-gdb.r: Delete file.
12647         * mac-defs.h: Delete file.
12648         * mac-nat.c: Delete file.
12649         * config/powerpc/macos.mh: Delete file.
12650         * config/powerpc/macos.mt: Delete file.
12651         * config/powerpc/nm-macos.h: Delete file.
12652         * config/powerpc/tm-macos.h: Delete file.
12653         * source.c (openp, open_source_file): Remove obsolete code.
12654         * top.c (gdb_readline): Ditto.
12655         * utils.c (query): Ditto.
12656         * event-top.c (display_gdb_prompt): Ditto.
12657         * Makefile.in (ser-mac.o): Delete obsolete target.
12658         * NEWS: Update.
12659
12660 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12661
12662         * defs.h (BIG_ENDIAN): Delete macro definition.
12663         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12664         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12665         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12666         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12667         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12668         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12669         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12670         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12671         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12672         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12673         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12674         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12675         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12676         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12677         * gdbarch.c: Re-generate.
12678
12679 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12680
12681         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12682         for core files.
12683
12684 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12685
12686         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12687
12688 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
12689
12690         * value.h (value_ptr): Delete typedef.
12691
12692 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
12693
12694         * i386nbsd-nat.c: Update copyright years.
12695         Include i386-tdep.h.
12696
12697 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
12698
12699         * stabsread.c: Update copyright years.
12700
12701         From Debashis Mahata <debashis.mahata@wipro.com>:
12702         (read_struct_fields): Deal with Sun C compiler erroneous stab
12703         output for structs and unions.
12704         Fix PR gdb/269.
12705
12706 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12707
12708         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12709         prototype.
12710
12711 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12712
12713         * cp-abi.c: Fix whitespace.
12714         (baseclass_offset): New wrapper function.
12715         * cp-abi.h (baseclass_offset): Add prototype.
12716         (struct cp_abi_ops): Add baseclass_offset pointer.
12717
12718         * valops.c (vb_match): Move to...
12719         * gnu-v2-abi.c (vb_match): here.
12720         * valops.c (baseclass_offset): Move to...
12721         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12722
12723         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12724
12725         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12726         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12727         * hpacc-abi.c (init_hpacc_ops): Likewise.
12728
12729 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
12730
12731         * valops.c (find_overload_match): Accept obj as a
12732         reference parameter.  Update it before returning.
12733         * value.h (find_overload_match): Update prototype.
12734         * eval.c (evaluate_subexp_standard): Pass object to
12735         find_overload_match by reference.
12736
12737 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
12738
12739         * valarith.c: Replace value_ptr with struct value pointer.  Remove
12740         register attribute from value declarations.
12741         * valops.c: Ditto.
12742         * value.h: Ditto.
12743         * scm-lang.c (scm_lookup_name): Ditto.
12744
12745 2002-01-03  Michael Snyder  <msnyder@redhat.com>
12746
12747         Abstract the functionality of iterating over mapped memory
12748         regions into a general purpose iterator function.
12749         * procfs.c (iterate_over_mappings): New function, general purpose
12750         iterator for memory sections.
12751         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12752         (solib_mappings_callback): New function, callback for above.
12753         (info_proc_mappings): Reimpliment using iterate_over_mappings.
12754         (info_mappings_callback): New function, callback for above.
12755
12756         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12757
12758 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
12759
12760         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12761         * i386-tdep.c: Include "elf-bfd.h".
12762         (process_note_abi_tag_sections): New function.
12763         (i386_gdbarch_init): Add code to recognize various OS/ABI
12764         combinations.
12765
12766         * maint.c (_initialize_maint_cmds): Add missing \ in
12767         string-literal.
12768
12769 For older changes see ChangeLog-2001
12770 \f
12771 Local Variables:
12772 mode: change-log
12773 left-margin: 8
12774 fill-column: 74
12775 version-control: never
12776 End: