* macrotab.h: Do not include "obstack.h" or "bcache.h".
[external/binutils.git] / gdb / ChangeLog
1 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
2
3         * macrotab.h: Do not include "obstack.h" or "bcache.h".
4         (struct obstack, struct bcache): Add opaque declarations.
5         * Makefile.in (macrotab_h): Update
6
7 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
8
9         * blockframe.c (generic_find_dummy_frame): Change return type to
10         ``struct regcache''.
11         (struct dummy_frame): Replace field ``registers'' with regcache, a
12         struct regcache object.
13         (generic_find_dummy_frame): Update.
14         (generic_push_dummy_frame): Update.  Use regcache_xfree,
15         regcache_xmalloc and regcache_cpy.
16         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
17         regcache_xfree.
18         (deprecated_generic_find_dummy_frame): Update.
19         (generic_read_register_dummy): Update.  Use
20         regcache_read_as_address.
21         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
22         (generic_get_saved_register): Update.  Use regcache_read.
23
24 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
25
26         * Makefile.in (objfiles_h): Add $(bcache_h).
27         * objfiles.h: Include "bcache.h".
28
29         * Makefile.in (symtab_h): Remove $(bcache_h).
30         * symtab.h: Do not include "bcache.h".
31
32 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
33
34         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
35         generic_func_frame_chain_valid.
36
37 2002-06-28  David O'Brien  <obrien@FreeBSD.org>
38
39         * config/i386/nm-fbsd.h: Include <sys/param.h>.
40         * config/i386/tm-fbsd.h: Likewise.
41
42 2002-06-28  Andrew Cagney  <ac131313@redhat.com>
43
44         * rs6000-tdep.c (rs6000_gdbarch_init): Use
45         generic_unwind_get_saved_register.
46
47 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
48
49         From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
50         * regcache.c (supply_register): Add missing argument to
51         register_buffer call.
52
53 2002-06-27  Andrew Cagney  <ac131313@redhat.com>
54
55         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
56         Solaris /bin/grep does not not like it.  From Peter Schauer.
57
58 2002-06-26  Tom Tromey  <tromey@redhat.com>
59
60         * command.h (add_setshow_cmd): Declare.
61         (add_setshow_cmd_full): Declare.
62         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
63         returns void.  Use add_setshow_cmd_full.
64         (add_setshow_cmd_full): New function.
65         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
66         (add_setshow_boolean_cmd): Likewise.
67
68 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
69
70         * config/vax/tm-vax.h: Protect from multiple inclusion.
71         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
72         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
73         * config/vax/tm-vaxbsd.h: ...here.  New file.
74         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
75
76 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
77
78         * config/vax/tm-vax.h (BREAKPOINT): Remove.
79         (BELIEVE_PCC_PROMOTION): Remove.
80         (AP_REGNUM): Move to...
81         * config/vax/nm-vax.h: ...here.
82         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
83         (vax_breakpoint_from_pc): New function.
84         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
85         and gdbarch_believe_pcc_promotion.
86
87 2002-06-26  Jason Thorpe  <thorpej@wasabisystems.com>
88
89         * Makefile.in (vax_tdep_h): Define.  
90         (vax-tdep.o): Use $(vax_tdep_h).
91         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
92         (vax_dump_tdep): New function. 
93         (_initialize_vax_tdep): Register vax_dump_tdep.
94         * vax-tdep.h: Include osabi.h.     
95         (struct gdbarch_tdep): New. 
96
97 2002-06-26  Andrew Cagney  <cagney@redhat.com>
98
99         * frame.h (deprecated_generic_find_dummy_frame): Rename
100         generic_find_dummy_frame.
101         * blockframe.c (generic_find_dummy_frame): Make static.
102         (deprecated_generic_find_dummy_frame): New function.
103         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
104         generic_find_dummy_frame with deprecated_find_dummy_frame.
105         (sh64_nofp_frame_init_saved_regs): Ditto.
106         (sh_fp_frame_init_saved_regs): Ditto.
107         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
108         (s390_frame_chain): Ditto.
109         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
110
111 2002-06-26  Grace Sainsbury  <graces@redhat.com>
112
113         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
114         gdbarch vector are at the top.
115         (NUM_REGS): Remove.
116         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
117         (FRAME_ARGS_ADDRESS): Remove.
118         (FRAME_LOCALS_ADDRESS): Remove.
119         (FRAME_NUM_ARGS): Remove.
120         (FRAME_ARGS_SKIP): Remove.  
121         * m68k-tdep.c (enum): Add eumeration of special register numbers.
122         (m68k_gdbarch_init): Add gdbarch initializations for macros
123         undefined in tm-m68k.h
124
125 2002-06-26  Grace Sainsbury  <graces@redhat.com>
126
127         * monitor.h: Add the function regname to monitor_ops
128         structure. This way NUM_REGS does not have to be a constant.
129         * monitor.c (monitor_fetch_register): Added support for regname
130         function. The function is called if the array regnames is NULL.
131         (monitor_store_register): Same.
132         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
133         regnames array.
134         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
135         cpu32bug_cmds.regname to point to new function.
136         * abug-rom.c (abug_regname): Same as above.
137         (init_abug_cmds): Same.
138         * dbug-rom.c (dbug_regname): Same as above.
139         (init_dbug_cmds): Same.
140         * remote-est.c (est_regname): Same. 
141         (init_est_cmds): Same.
142         * rom68k-rom.c (rom68k_regname): Same. 
143         (init_rom68k_cmds): Same.
144
145 2002-06-25  Tom Tromey  <tromey@redhat.com>
146
147         * breakpoint.c (delete_command): Don't repeat `delete' commands.
148
149 2002-06-25  Andrew Cagney  <cagney@redhat.com>
150
151         * infrun.c (stop_registers): Change variable's type to ``struct
152         regcache'''.
153         (xmalloc_inferior_status): Delete function.
154         (free_inferior_status): Delete function.
155         (normal_stop): Use regcache_cpy.
156         (struct inferior_status): Change type of fields ``stop_registers''
157         and ``registers'' to ``struct regcache''.
158         (write_inferior_status_register): Use regcache_write.
159         (save_inferior_status): Instead of calling
160         xmalloc_inferior_status, allocate the inf_status buffer directly.
161         Use regcache_dup_no_passthrough and regcache_dup to save the
162         buffers.
163         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
164         Replace the stop_registers regcache instead of overriding it.  Use
165         regcache_xfree.  Instead of calling free_inferior_status, xfree
166         the buffer directly.
167         (discard_inferior_status): Use regcache_xfree.  Instead of calling
168         free_inferior_status, xfree the buffer directly.
169         (build_infrun): Use regcache_xmalloc.
170         (_initialize_infrun): Delete redundant call to build_infrun.
171
172         * Makefile.in (infcmd.o): Add $(regcache_h).
173
174         * infcmd.c: Include "regcache.h".
175         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
176         obtain the address of `stop_registers' register buffer.
177         (print_return_value): Ditto.
178
179         * inferior.h (struct regcache): Add opaque declaration.
180         (stop_registers): Change variable's declared type to ``struct
181         regcache''.
182
183 2002-06-24  Tom Tromey  <tromey@redhat.com>
184
185         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
186         * target.c (initialize_targets): Fixed typo in
187         trust-readonly-sections `show' documentation.
188
189         * main.c: Marked all strings with _().
190
191 2002-06-24  Don Howard  <dhoward@redhat.com>
192
193         * memattr.c (create_mem_region): Treat hi == 0 as a special case
194         that means max CORE_ADDR+1.
195         (lookup_mem_region): Ditto.
196         (mem_info_command): Ditto.
197
198 2002-06-24  Grace Sainsbury  <graces@redhat.com>
199
200         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
201         (REGISTER_BYTES_OK): Remove.
202         (REGISTER_BYTES): Remove.
203         (STORE_STRUCT_RETURN): Remove.
204         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
205         (STORE_RETURN_VALUE): Remove.
206         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
207         (FRAME_CHAIN): Remove.
208         (FRAMELESS_FUNCTION_INVOCATION): Remove.
209         (FRAME_SAVED_PC): Remove.  
210         * m68k-tdep.c (m68k_register_bytes_ok):Add.
211         (m68k_store_struct_return): Add.
212         (m68k_deprecated_extract_return_value): Add.
213         (m68k_deprecated_extract_struct_value_address): Add.
214         (m68k_store_return_value): Add.
215         (m68k_frame_chain): Add.
216         (m68k_frameless_function_invocation): Add.
217         (m68k_frame_saved_pc): Add.
218         (m68k_gdbarch_init): added set_gdbarch calls for new 
219         functions and deleted macros.
220
221 2002-06-23  Tom Tromey  <tromey@redhat.com>
222
223         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
224         (ALLDEPFILES): Likewise.
225         (udiheaders): Removed.
226         (udip2soc.o): Likewise.
227         (udi2go32.o): Likewise.
228         (udr.o): Likewise.
229         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
230
231 2002-06-22  Andrew Cagney  <ac131313@redhat.com>
232
233         * infrun.c (_initialize_infrun): Delete unnecessary call to
234         build_infrun.
235
236         * regcache.h: Update comments describing the regcache_cpy family
237         of functions.
238         (regcache_save, regcache_restore): Delete declaration.
239         (regcache_save_no_passthrough): Delete declaration.
240         (regcache_restore_no_passthrough): Delete declaration.
241         * regcache.c (regcache_save): Delete function.
242         (regcache_save_no_passthrough): Delete function.
243         (regcache_restore): Delete function.
244         (regcache_restore_no_passthrough): Delete function.
245
246 2002-06-21  Andrew Cagney  <ac131313@redhat.com>
247
248         * config/m68k/tm-m68k.h: Fix typo.
249         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
250         (m68k_frame_init_saved_regs): Declare.
251
252 2002-06-21  Jim Blandy  <jimb@redhat.com>
253
254         Remove some vestiges of Harris 88k support.
255         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
256         register numbering quirk.
257         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
258         odd symbols occurring in Harris 88k ELF targets.
259
260 2002-06-21  Tom Tromey  <tromey@redhat.com>
261
262         * gdb_locale.h: New file.
263         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
264         (defs_h): Added gdb_locale.h.
265         * configure, config.in: Rebuilt.
266         * configure.in (PACKAGE): Define.
267         * defs.h: Include gdb_locale.h.
268         * main.c (captured_main): Call setlocale, bindtextdomain,
269         textdomain.
270
271 2002-06-21  Dave Brolley  <brolley@redhat.com>
272
273         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
274         * config/frv/frv.mt: New file.
275         * config/frv/tm-frv.h: New file.
276         * configure.tgt: Support frv-*-*.
277         * Makefile.in (frv-tdep.o): New target.
278         * frv-tdep.c: New file.
279         * NEWS: Mention frv.
280
281 2002-06-21  Dave Brolley  <brolley@redhat.com>
282
283         * MAINTAINERS: Add self to "Write After Approval" list.
284
285 2002-06-21  Grace Sainsbury  <graces@redhat.com>
286
287         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
288         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
289         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
290         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
291         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
292
293         * m68k-tdep.c: Include arch-utils.h
294         (m68k_register_raw_size): Add.
295         (m68k_register_virtual_size): Add.
296         (m68k_register_virtual_type): Add.
297         (m68k_register_name): Add.
298         (m68k_stack_align): Add.
299         (m68k_register_byte): Add.
300         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
301         tm-m68k.h.
302
303 2002-06-21  Grace Sainsbury  <graces@redhat.com>
304
305         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
306         m68k_find_saved_regs.
307         (m68k_pop_frame): Removed saved_regs structure, and replaced
308         references to it with frame->saved_regs.
309         (m68k_gdbarch_init): Added function calls to initialize the
310         gdbarch structure.
311         (m68k_fix_call_dummy): Add. 
312         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
313         (CALL_DUMMY): Remove.
314         (CALL_DUMMY_LENGTH): Remove.
315         (CALL_DUMMY_START_OFFSET): Remove.
316         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
317         (FIX_CALL_DUMMY): Remove.
318         (PUSH_DUMMY_FRAME): Remove.
319         (POP_FRAME): Remove.
320
321 2002-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
322
323         * parse.c (parse_fprintf): New function used to avoid calls to
324         fprintf in bison parser generated debug code.
325         * parser-defs.h: Declaration of new parse_fprintf function.
326         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
327         Set YYDEBUG to 1 by default.
328         Set YYFPRINTF as parse_fprintf.
329
330 2002-06-21  Michal Ludvig  <mludvig@suse.cz>
331
332         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
333         encoding anymore.
334         (pointer_encoding, enum ptr_encoding): New.
335         (execute_cfa_program): Take care about pointer encoding.        
336         (dwarf2_build_frame_info): Only call parse_frame_info for 
337         .debug_frame and .eh_frame.
338         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
339         fixed augmentation handling, added relative addressing, 
340         ignore duplicate FDEs. Added comments.
341         * dwarf2cfi.c: Reindented.
342         
343 2002-06-20  Elena Zannoni  <ezannoni@redhat.com>
344
345         * event-top.c (command_handler): Don't use space_at_cmd_start
346         unless there is sbrk() on the host. Assign time and space data
347         to union fields of the appropriate length.
348
349 2002-06-20  Michal Ludvig  <mludvig@suse.cz>
350
351         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
352         x86_64_register_name. Return type changed to 'const char *'.
353         (x86_64_register_name2nr): Rename to x86_64_register_number.
354         (x86_64_gdbarch_init): Update to reflect the change.
355         * x86-64-tdep.h: Ditto.
356         * x86-64-linux-nat.c (x86_64_fxsave_offset)
357         (supply_fpregset): Ditto.
358
359 2002-06-19  Andrew Cagney  <cagney@redhat.com>
360
361         * regcache.h: Update copyright.
362         (struct regcache, struct gdbarch): Add opaque declarations.
363         (current_regcache): Declare global variable.
364         (regcache_read, regcache_write): Add gdbarch parameter.
365         (regcache_save, regcache_save_no_passthrough)
366         (regcache_restore, regcache_restore_no_passthrough)
367         (regcache_dup, regcache_dup_no_passthrough)
368         (regcache_cpy, regcache_cpy_no_passthrough)
369         (deprecated_grub_regcache_for_registers)
370         (deprecated_grub_regcache_for_register_valid)
371         (regcache_valid_p): Add function declarations.
372         
373         * regcache.c: Update copyright.
374         (regcache_descr_handle): New global variable.
375         (struct regcache_descr): Define.
376         (init_legacy_regcache_descr, init_regcache_descr): New functions.
377         (regcache_descr, xfree_regcache_descr): New functions.
378         (struct regcache): Define.
379         (regcache_xmalloc, regcache_xfree): New functions.
380         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
381         (regcache_dup, regcache_dup_no_passthrough): New functions.
382         (regcache_valid_p, regcache_read_as_address): New functions.
383         (deprecated_grub_regcache_for_registers): New function.
384         (deprecated_grub_regcache_for_register_valid): New function.
385         (current_regcache): New global variable.
386         (register_buffer): Add regcache parameter.  Update calls.
387         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
388         (read_register_gen, write_register_gen): Update register_buffer
389         call.  Test for legacy_p instead of gdbarch_register_read_p or
390         gdbarch_register_write_p.
391         (regcache_collect): Update register_buffer call.
392         (build_regcache): Rewrite.  Use deprecated grub functions.
393         (regcache_save, regcache_save_no_passthrough): New functions.
394         (regcache_restore, regcache_restore_no_passthrough): New
395         functions.
396         (_initialize_regcache): Create the regcache_data_handle. Swap
397         current_regcache global variable.
398         
399         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
400         parameter to regcache_read and regcache_write calls.
401         (sh4_register_read): Ditto.
402         (sh64_pseudo_register_read): Ditto.
403         (sh64_register_read): Ditto.
404         (sh_pseudo_register_write): Ditto.
405         (sh4_register_write): Ditto.
406         (sh64_pseudo_register_write): Ditto.
407         (sh64_register_write): Ditto.
408
409         * defs.h (XCALLOC): Define.
410
411 2002-06-19  Grace Sainsbury  <graces@redhat.com>
412
413         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
414         * m68k-tdep.c (m68k_gdbarch_init): Added.
415         (m68k_dump_tdep): Added.
416
417 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
418
419         * ada-lang.c (fill_in_ada_prototype): Update comment.
420
421 2002-06-19  Daniel Jacobowitz  <drow@mvista.com>
422
423         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
424         MIPS_ABI_LAST.
425         (mips_abi_string, mips_abi_strings): New.
426         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
427         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
428         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
429         O32 if no ABI is found.
430         (mips_dump_tdep): Use mips_abi_strings.
431         (mips_abi_update): New function.
432         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
433         ``set mips abi'' and ``show mips abi''.  Check the size of
434         mips_abi_strings.
435
436 2002-06-19  Andrew Cagney  <cagney@redhat.com>
437
438         * i386-linux-tdep.c (i386_linux_register_name): Make return type
439         constant.
440
441 2002-06-18  Joel Brobecker  <brobecker@gnat.com>
442
443         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
444         current frame using only the first stack size adjustment. All
445         subsequent size adjustments are not considered to be part of
446         the "static" part of the current frame.
447         Compute the address of the saved registers relative to the
448         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
449         in use in this frame.
450
451 2002-06-18  Don Howard  <dhoward@redhat.com>
452  
453         * valops.c (value_ind): Use value_at_lazy() when dereferencing
454         type int expressions.  Thanks to Jim Blandy <jimb@redhat.com> for
455         suggesting this solution.
456
457 2002-06-18  Andrew Cagney  <ac131313@redhat.com>
458
459         * config/romp/xm-rtbsd.h: Delete file.
460         * config/romp/rtbsd.mh: Delete file.
461
462 2002-06-18  Keith Seitz  <keiths@redhat.com>
463
464         * breakpoint.c (condition_command): Post breakpoint_modify
465         when a condition is added to an existing breakpoint.
466         (commands_command): Likewise for commands.
467         (set_ignore_count): Likewise for ignore counts.
468         If no tty, do not simply return, still need to send event
469         notification.
470         (ignore_command): Only print a newline if the command came
471         from a tty.
472         Don't call breakpoints_changed, since this is now properly
473         handled by set_ignore_count.
474
475 2002-06-18  Andrew Cagney  <cagney@redhat.com>
476
477         * MAINTAINERS: Note that cris-elf target can be compiled with
478         -Werror.
479         * cris-tdep.c (cris_register_name): Make return type constant.
480         (cris_breakpoint_from_pc): Ditto.
481
482 2002-06-18  Michal Ludvig  <mludvig@suse.cz>
483
484         * frame.h (struct frame_info): Change type of context to 
485         'struct context'.
486
487 2002-06-17  Andrew Cagney  <cagney@redhat.com>
488
489         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
490         pointer.
491         * gdbarch.h, gdbarch.c: Regenerate.
492         * config/mips/tm-mips.h (mips_register_name): Update.
493         * i386-tdep.h (i386_register_name): Update.
494         * mips-tdep.c (mips_register_name): Update
495         * alpha-tdep.c (alpha_register_name): Update.
496         * arch-utils.c (legacy_register_name): Update.
497         * arch-utils.h (legacy_register_name): Update.
498         * avr-tdep.c (avr_register_name): Update.
499         * ia64-tdep.c (ia64_register_name): Update.
500         * i386-tdep.c (i386_register_name): Update.
501         * sparc-tdep.c (sparc32_register_name): Update.
502         (sparc64_register_name): Update.
503         (sparclite_register_name): Update.
504         (sparclet_register_name): Update.
505         * sh-tdep.c (sh_generic_register_name): Update.
506         (sh_sh_register_name): Update.
507         (sh_sh3_register_name): Update.
508         (sh_sh3e_register_name): Update.
509         (sh_sh_dsp_register_name): Update.
510         (sh_sh3_dsp_register_name): Update.
511         (sh_sh4_register_name): Update.
512         (sh_sh64_register_name): Update.
513         * s390-tdep.c (s390_register_name): Update.
514         * rs6000-tdep.c (rs6000_register_name): Update.
515         * ns32k-tdep.c (ns32k_register_name_32082): Update.
516         (ns32k_register_name_32382): Update.
517         * d10v-tdep.c (d10v_ts2_register_name): Update.
518         (d10v_ts3_register_name): Update.
519         * xstormy16-tdep.c (xstormy16_register_name): Update.
520         * vax-tdep.c (vax_register_name): Update.
521         * v850-tdep.c (v850_register_name): Update.
522         * m68hc11-tdep.c (m68hc11_register_name): Update.
523         * mn10300-tdep.c (mn10300_generic_register_name): Update.
524         (am33_register_name): Update.
525
526 2002-06-17  Grace Sainsbury  <graces@redhat.com>
527
528         * m68k-tdep.c: Reindented.
529
530 2002-06-17  Andrew Cagney  <ac131313@redhat.com>
531
532         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
533         list of predefined types.
534
535 2002-06-16  Mark Kettenis  <kettenis@gnu.org>
536
537         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
538         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
539         REGISTER_CONVERT_TO_RAW): Remove defines.
540         (i386_register_virtual_type, i386_register_convertible,
541         i386_register_convert_to_virtual, i386_register_convert_to_raw):
542         Remove prototypes.
543         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
544         macros mentioned above.
545
546         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
547         (i386lynx_saved_pc_after_call): Remove prototype.
548         * i386ly-tdep.c: Include "i386-tdep.h".
549         (i386lynx_saved_pc_after_call): Make static.  Use
550         read_memory_nobpt instead of read_memory.  Use
551         read_memory_unsigned_integer instead of read_memory_integer.
552         (i386lynx_init_abi): New function.
553         (i386lynx_coff_osabi_sniffer): New function.
554         (_initialize_i386bsd_tdep): New function.
555
556         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
557         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
558         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
559         (i386_fix_call_dummy): Remove prototype.
560         * i386-tdep.c (i386_call_dummy_words): New variable.
561         (i386_gdbarch_init): Adjust for removal of the
562         macros mentioned above.
563
564 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
565
566         * command.h (add_setshow_auto_boolean_cmd): Replace
567         add_set_auto_boolean_cmd.
568         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
569         add_set_auto_boolean_cmd.
570         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
571         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
572         mask-address'' command.
573         (show_mask_address): Add cmd parameter.
574         * remote.c (add_packet_config_cmd): Update.  Change type of
575         set_func and show_func to cmd_sfunc_ftype.
576         (_initialize_remote): Update `set remote Z-packet'
577         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
578         (show_remote_protocol_e_packet_cmd): Ditto.
579         (show_remote_protocol_E_packet_cmd): Ditto.
580         (show_remote_protocol_P_packet_cmd): Ditto.
581         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
582         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
583         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
584         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
585         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
586         (show_remote_protocol_Z_packet_cmd): Ditto.
587         (show_remote_protocol_binary_download_cmd): Ditto.
588         (show_remote_cmd): Pass NULL to all of above.
589
590 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
591
592         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
593         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
594         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
595         POP_FRAME): Remove defines.
596         (i386_push_arguments, i386_store_struct_return,
597         i386_extract_return_value, i386_store_return_value,
598         i386_extract_struct_value_address, i386_push_dummy_frame,
599         i386_pop_frame): Renove prototypes.
600         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
601         macros mentioned above.
602
603 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
604
605         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
606         add_set_boolean_cmd.
607         (add_setshow_cmd): New function.
608         * command.h (add_setshow_boolean_cmd): Replace
609         add_set_boolean_cmd.
610         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
611         and ``set rdiromatzero''.
612         * maint.c (_initialize_maint_cmds): Update commented out code.
613         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
614         * target.c (initialize_targets): Update `set
615         trust-readonly-sections'.
616         * remote.c (_initialize_remote): Update `set remotebreak'.
617
618 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
619
620         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
621         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
622         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
623         fit into multi-arch framework.
624         (i386_breakpoint_from_pc): New function.
625         (i386_gdbarch_init): Adjust for removal of the macros mentioned
626         above.
627
628         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
629         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
630         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
631         (i386_frameless_function_invocation, i386_frame_num_args,
632         i386_frame_init_saved_regs): Remove prototypes.
633         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
634         macros mentioned above.
635
636 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
637
638         * cli/cli-decode.c (set_cmd_cfunc): Update.
639         (set_cmd_sfunc): Update.
640         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
641         (set_cmd_sfunc, set_cmd_cfunc): Update.
642         * cli/cli-decode.h: Update.
643
644 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
645
646         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
647         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
648
649 2002-06-15  Andrew Cagney  <ac131313@redhat.com>
650
651         * defs.h (auto_boolean): Declare enum.
652         * command.h (cmd_auto_boolean): Delete enum.
653         * mips-tdep.c (mask_address_var): Update.
654         (mips_mask_address_p): Update.
655         (show_mask_address): Update.
656         * remote.c (struct packet_config): Update.
657         (update_packet_config): Update.
658         (show_packet_config_cmd): Update.
659         (packet_ok): Update.
660         (add_packet_config_cmd): Update.
661         (_initialize_remote): 
662         * command.h: Update.
663         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
664         (do_setshow_command): Update.
665         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
666         * cli/cli-decode.h: Update.
667
668 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
669
670         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
671         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
672         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
673         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
674         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
675         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
676
677         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
678         list of DJGPP COFF targets.
679
680         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
681         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
682         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
683         (FP0_REGNUM): Remove define.
684         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
685         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
686         (i386_register_virtual_size): Remove protoype.
687         * i386-tdep.c (i386_register_virtual_size): Removed.
688         (i386_extract_return_value, i386_store_return_value): Use
689         FP0_REGNUM instead of NUM_FREGS to determine whether the
690         floating-point registers are available.
691         (i386_gdbarch_init): Tweak FIXME about FPU registers.
692         Adjust for removal of macros mentioned above.
693
694 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
695
696         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
697         comments.
698         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
699         Remove prototypes.
700         (supply_gregset, fill_gregset): Remove use of register keyword and
701         remove declaration for regmap.  Use I386_NUM_GREGS instead of
702         NUM_REGS and NUM_FREGS.
703         (FPREGSET_FSAVE_OFFSET): Remove.
704         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
705         NUM_FREGS to determine whether the floating-point registers are
706         available.
707
708         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
709         gnu_store_registers): Replace usage of NUM_GREGS with
710         I386_NUM_GREGS.
711
712         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
713         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
714         usage of NUM_GREGS with I386_NUM_GREGS.
715
716         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
717
718         * i386bsd-nat.c: Include "i386-tdep.h".
719         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
720         I386_NUM_GREGS.
721
722         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
723         and associated comment.  They no longer make any sense, since we
724         don't use this file anymore on Linux.
725
726         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
727         * i386-tdep.c (i386_register_offset, i386_register_size): Use
728         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
729         elements in these arrays.
730         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
731         MAX_NUM_REGS.
732
733 2002-06-15  Mark Kettenis  <kettenis@gnu.org>
734
735         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
736         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
737
738 2002-06-14  Andrew Cagney  <cagney@redhat.com>
739
740         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
741         EXTRACT_RETURN_VALUE.
742         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
743         EXTRACT_STRUCT_VALUE_ADDRESS.
744         * gdbarch.h, gdbarch.c: Regenerate.
745         
746         * values.c (value_being_returned): Handle
747         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
748         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
749
750         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
751         * arm-tdep.c (arm_gdbarch_init): Update.
752         * avr-tdep.c (avr_gdbarch_init): Update.
753         * cris-tdep.c (cris_gdbarch_init): Update.
754         * d10v-tdep.c (d10v_gdbarch_init): Update.
755         * ia64-tdep.c (ia64_gdbarch_init): Update.
756         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
757         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
758         * s390-tdep.c (s390_gdbarch_init): Update.
759         * sh-tdep.c (sh_gdbarch_init): Update.
760         * s390-tdep.c (s390_gdbarch_init): Update.
761         * sparc-tdep.c (sparc_gdbarch_init): Update.
762         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
763         * v850-tdep.c (v850_gdbarch_init): Update.
764         * vax-tdep.c (vax_gdbarch_init): Update.
765         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
766         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
767
768         * config/arc/tm-arc.h: Update.
769         * config/d30v/tm-d30v.h: Update.
770         * config/fr30/tm-fr30.h: Update.
771         * config/h8300/tm-h8300.h: Update.
772         * config/h8500/tm-h8500.h: Update.
773         * config/i386/tm-i386.h: Update.
774         * config/i386/tm-ptx.h: Update.
775         * config/i386/tm-symmetry.h: Update.
776         * config/i960/tm-i960.h: Update.
777         * config/m32r/tm-m32r.h: Update.
778         * config/m68k/tm-delta68.h: Update.
779         * config/m68k/tm-linux.h: Update.
780         * config/m68k/tm-m68k.h: Update.
781         * config/m88k/tm-m88k.h: Update.
782         * config/mcore/tm-mcore.h: Update.
783         * config/mips/tm-mips.h: Update.
784         * config/mn10200/tm-mn10200.h: Update.
785         * config/pa/tm-hppa.h: Update.
786         * config/pa/tm-hppa64.h: Update.
787         * config/sparc/tm-sp64.h: Update.
788         * config/sparc/tm-sparc.h: Update.
789         * config/sparc/tm-sparclet.h: Update.
790         * config/z8k/tm-z8k.h: Update.
791
792 2002-06-14  Andrew Cagney  <cagney@redhat.com>
793
794         * Makefile.in (i386_linux_tdep_h): Define.
795         (i386_tdep_h, i387_tdep_h): Define.
796         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
797         $(i386_tdep_h) and $(i387_tdep_h).
798         * i386-linux-nat.c: Include "i386-linux-tdep.h".
799
800 2002-06-14  Mark Kettenis  <kettenis@gnu.org>
801
802         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
803         Already covered by the default.
804
805         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
806         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
807         (i386_gdbarch_init): Initialize long_double_format and long_double
808         bit.
809
810         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
811         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
812         Move these to ...
813         * config/i386/i386sol2.mh: ... here.
814         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
815         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
816         (SIGCONTEXT_PC_OFFSET): Remove define.
817         (IN_SIGTRAMP): Remove define.
818         * i386-sol2-tdep.c: New file.
819         
820         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
821         * config/i386/tm-i386nw.h: Removed.
822
823         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
824         USE_STRUCT_CONVENTION): Remove defines.
825         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
826         (get_longjmp_target): Remove prototype.
827         (IN_SIGTRAMP): Remove define.
828         (i386bsd_in_sigtramp): Remove prototype.
829         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
830         function.  Update comment accordingly
831         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
832         (FRAME_SAVED_PC): Remove define.
833         (i386bsd_frame_saved_pc): Remove prototype.
834         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
835         GET_LONGJMP_TARGET): Remove defines.
836         (get_longjmp_target): Remove prototype.
837         (IN_SIGTRAMP): Remove define.
838         (i386bsd_in_sigtramp): Remove prototype.
839         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
840         function.  Update comment accordingly
841         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
842         (FRAME_SAVED_PC): Remove define.
843         (i386bsd_frame_saved_pc): Remove prototype.
844         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
845         Remove prototype.
846         (USE_STRUCT_CONVENTION): Remove prototype.
847         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
848         declaration.
849         (_initialize_i386bsd_nat): Revise logic to determine some
850         constants at compile time when compiling a native GDB.  Warn if
851         things don't match up with what we expect.
852         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
853         Remove variables.
854         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
855         to use date stored in `struct gdbarch_tdep'.
856         (i386bsd_sigcontext_offset): Remove varaible.
857         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
858         stored in `struct gdbarch_tdep'.
859         (i386bsd_frame_saved_pc): Make static.
860         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
861         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
862         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
863         i386fbsd4_sc_pc_offset): New variables.
864         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
865         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
866         functions.
867         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
868         functions.
869         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
870         Modify the value of i386fbsd_sigtramp_start and
871         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
872         i386fbsd_sigtramp_end.
873         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
874         function.
875
876         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
877         define to i386-linux-tdep.h.
878         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
879         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
880         defines.
881         (i386_linux_register_name, i386_linux_register_byte,
882         i386_linux_register_raw_size): Remove prototypes.
883         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
884         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
885         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
886         TARGET_WRITE_PC): Remove defines.
887         (i386_linux_in_sigtramp, i386_linux_frame_chain,
888         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
889         i386_linux_write_pc): Remove prototypes.
890         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
891         (get_longjmp_target): Remove prototype.
892         * i386-linux-tdep.h: New file.
893         * i386-linux-nat.c: Include "i386-linux-tdep.h".
894         * i386-linux-tdep.c: Include "i386-tdep.h" and
895         "i386-linux-tdep.h".
896         (i386_linux_register_name, i386_linux_register_byte,
897         i386_linux_register_raw_size, i386_linux_in_sigtramp,
898         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
899         Make static.
900         (i386_linux_init_abi): New function.
901         (_initialize_i386_linux_tdep): New function.
902
903         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
904         (i386_saved_pc_after_call): Remove prototype.
905         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
906         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
907         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
908         (i386_register_name, i386_stab_reg_to_regnum,
909         i386_dwarf_reg_to_regnum): Remove prototypes.
910         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
911         SIZEOF_SSE_REGS): Remove defines.
912         (REGISTER_BYTES): Remove define.
913         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
914         (i386_register_byte, i386_register_raw_size): Remove prototypes.
915         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
916         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
917         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
918         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
919         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
920         (get_longjmp_target): Remove prototype.
921         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
922         (sigtramp_saved_pc): Remove define.
923         (i386v4_sigtramp_saved_pc): Remove prototype.
924         * config/i386/tm-go32.h (FRAME_CHAIN,
925         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
926         (i386go32_frame_saved_pc): Remove prototype.
927         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
928         (get_longjmp_target): Remove prototype.
929         * i386-tdep.h: Include "osabi.h".
930         (enum i386_abi): Removed.
931         (enum struct_return): New enum.
932         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
933         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
934         sc_pc_offset members.
935         (i386_gdbarch_register_os_abi): Remove prototype.
936         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
937         I386_SSE_NUM_REGS): New defines.
938         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
939         I386_SSE_SIZEOF_REGS): New defines.
940         (i386_register_name, i386_register_byte, i386_register_raw_size):
941         New prototypes.
942         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
943         (i386bsd_sigtramp_saved_pc): New prototype.
944         * i386-tdep.c: Don't include "elf-bfd.h".
945         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
946         i386_frame_chain, i386_saved_pc_after_call): Make static.
947         (i386_frame_saved_pc): Rewrite to call architecture dependent
948         function to deal with signal handlers.  Make static.
949         (i386go32_frame_saved_pc): Removed.
950         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
951         Removed.
952         (i386_get_longjmp_target): New function.
953         (default_struct_convention, pcc_struct_convention,
954         reg_struct_convention, valid_conventions, struct_convention): New
955         variables.
956         (i386_use_struct_convention): New function.
957         (i386v4_sigtramp_saved_pc): Renamed to
958         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
959         (i386_pc_in_sigtramp): New function.
960         (i386_abi_names): Removed.
961         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
962         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
963         Removed.
964         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
965         i386_gdbarch_register_os_abi): Removed.
966         (struct i386_abi_handler): Removed.
967         (i386_abi_handler_list): Removed.
968         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
969         functions.
970         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
971         i386_nw_init_abi): New functions.
972         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
973         Use set_gdbarch_xxx() calls instead of relying on macros for a
974         number of calls.
975         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
976         (_initialize_i386_tdep): Add new 'struct-convcention' command.
977         Register the various architecture variants defined in this file.
978
979 2002-06-14  Daniel Jacobowitz  <drow@mvista.com>
980
981         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
982         (struct main_type): Remove arg_types member.  Update comments for
983         struct field.
984         (TYPE_ARG_TYPES): Remove.
985         (TYPE_FN_FIELD_ARGS): Update.
986         (smash_to_method_type): Update prototype.
987
988         * c-typeprint.c (cp_type_print_method_args): Take method type
989         instead of argument list.  Use new argument layout.  Simplify.
990         (c_type_print_args): Use new argument layout.  Simplify.
991         (c_type_print_base): Update call to cp_type_print_method_args.
992         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
993         argument; use die->type instead.  Update call to
994         smash_to_method_type.
995         (read_structure_scope): Update call to dwarf2_add_member_fn.
996         * gdbtypes.c (allocate_stub_method): Update comment.
997         (smash_to_method_type): Take new NARGS and VARARGS arguments.
998         Use new argument layout.
999         (check_stub_method): Use new argument layout.  Don't count
1000         void as an argument.
1001         (print_arg_types): Update comments.  Use new argument layout.
1002         (recursive_dump_type): Don't print arg_types member.
1003         * hpread.c (hpread_read_struct_type): Use new argument layout.
1004         (fixup_class_method_type): Likewise.
1005         (hpread_type_lookup): Likewise.
1006         * stabsread.c (read_type): Update calls to read_args and
1007         smash_to_method_type.
1008         (read_args): Use new argument layout.  Simplify.
1009         * valops.c (typecmp): Use new argument layout.  Update parameters
1010         and comments.  Simplify.
1011         (hand_function_call): Use new argument layout.
1012         (search_struct_method): Update call to typecmp.
1013         (find_overload_match): Use new argument layout.
1014
1015 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
1016
1017         * NEWS: Mention multithreaded debug support for gdbserver.
1018
1019 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
1020
1021         * MAINTAINERS: Mention NEWS.
1022
1023 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
1024
1025         * gdbserver/regcache.c: Add comment.
1026
1027 2002-06-13  Daniel Jacobowitz  <drow@mvista.com>
1028
1029         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1030         (struct mips_objfile_private, compare_pdr_entries): New.
1031         (non_heuristic_proc_desc): Read the ".pdr" section if it
1032         is present.
1033
1034 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
1035
1036         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1037         (arm_debug): New static variable.
1038         (_initialize_arm_tdep): Add ``set debug arm'' command.
1039
1040 2002-06-12  Andrew Cagney  <ac131313@redhat.com>
1041
1042         * Makefile.in (sim_arm_h): Define.
1043         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1044         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1045         (arm_register_sim_regno): New function, map an internal REGNUM
1046         onto a simulator register number.
1047         (arm_gdbarch_init): Set register_sim_regno.
1048
1049 2002-06-09  Aldy Hernandez  <aldyh@redhat.com>
1050
1051         * MAINTAINERS: Add self.
1052
1053 2002-06-11  Jim Blandy  <jimb@redhat.com>
1054
1055         * source.c (source_info): Mention whether the symtab has
1056         information about preprocessor macros.
1057
1058         Call the command `info macro', not `show macro'.
1059         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1060         Fix error message.
1061         (_initialize_macrocmd): Register `info_macro_command' in
1062         `infolist', not `showlist'.
1063
1064 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
1065
1066         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1067         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1068         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1069         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1070         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
1071         unconditionally.
1072         (set_mipsfpu_single_command, set_mipsfpu_double_command)
1073         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1074         (_initialize_mips_tdep): Remove dead code.
1075         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1076         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1077         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1078         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1079         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1080         MIPS_LAST_FP_ARG_REGNUM): Remove.
1081
1082 2002-06-11  Daniel Jacobowitz  <drow@mvista.com>
1083
1084         * gdbserver/thread-db.c: New file.
1085         * gdbserver/proc-service.c: New file.
1086         * gdbserver/acinclude.m4: New file.
1087         * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1088         proc-service.o, and thread-db.o.
1089         (linux-low.o): Add USE_THREAD_DB.
1090         * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1091         HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1092         * gdbserver/aclocal.m4: Regenerated.
1093         * gdbserver/config.in: Regenerated.
1094         * gdbserver/configure: Regenerated.
1095         * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1096         thread_db.h, and linux/elf.h headrs.
1097         Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1098         PRFPREGSET_T_BROKEN.  Introduce srv_thread_depfiles and USE_THREAD_DB.
1099         Check for -lthread_db and thread support.
1100         * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1101         PowerPC, and SuperH.
1102         * gdbserver/i387-fp.c: Constify arguments.
1103         * gdbserver/i387-fp.h: Likewise.
1104         * gdbserver/inferiors.c: (struct thread_info): Renamed from
1105         `struct inferior_info'.  Remove PID member.  Use generic inferior
1106         list header.  All uses updated.
1107         (inferiors, signal_pid): Removed.
1108         (all_threads): New variable.
1109         (get_thread): Define.
1110         (add_inferior_to_list): New function.
1111         (for_each_inferior): New function.
1112         (change_inferior_id): New function.
1113         (add_inferior): Removed.
1114         (remove_inferior): New function.
1115         (add_thread): New function.
1116         (free_one_thread): New function.
1117         (remove_thread): New function.
1118         (clear_inferiors): Use for_each_inferior and free_one_thread.
1119         (find_inferior): New function.
1120         (find_inferior_id): New function.
1121         (inferior_target_data): Update argument type.
1122         (set_inferior_target_data): Likewise.
1123         (inferior_regcache_data): Likewise.
1124         (set_inferior_regcache_data): Likewise.
1125         * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1126         (all_processes, stopping_threads, using_thrads)
1127         (struct pending_signals, debug_threads, pid_of): New.
1128         (inferior_pid): Replace with macro.
1129         (struct inferior_linux_data): Remove.
1130         (get_stop_pc, add_process): New functions.
1131         (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1132         Use add_process and add_thread.
1133         (linux_attach_lwp): New function, based on old linux_attach.  Use
1134         add_process and add_thread.  Set stop_expected for new threads.
1135         (linux_attach): New function.
1136         (linux_kill_one_process): New function.
1137         (linux_kill): Kill all LWPs.
1138         (linux_thread_alive): Use find_inferior_id.
1139         (check_removed_breakpoints, status_pending_p): New functions.
1140         (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1141         Update.  Use WNOHANG.  Wait for cloned processes also.  Update process
1142         struct for the found process.
1143         (linux_wait_for_event): New function.
1144         (linux_wait): Use it.  Support LWPs.
1145         (send_sigstop, wait_for_sigstop, stop_all_processes)
1146         (linux_resume_one_process, linux_continue_one_process): New functions.
1147         (linux_resume): Support LWPs.
1148         (REGISTER_RAW_SIZE): Remove.
1149         (fetch_register): Use register_size instead.  Call supply_register.
1150         (usr_store_inferior_registers): Likewise.  Call collect_register.
1151         Fix recursive case.
1152         (regsets_fetch_inferior_registers): Improve error message.
1153         (regsets_store_inferior_registers): Add debugging.
1154         (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1155         (unstopped_p, linux_signal_pid): New functions.
1156         (linux_target_ops): Add linux_signal_pid.
1157         (linux_init_signals): New function.
1158         (initialize_low): Call it.  Initialize using_threads.
1159         * gdbserver/regcache.c (inferior_regcache_data): Add valid
1160         flag.
1161         (get_regcache): Fetch registers lazily.  Add fetch argument
1162         and update all callers.
1163         (regcache_invalidate_one, regcache_invalidate): New
1164         functions.
1165         (new_register_cache): Renamed from create_register_cache.
1166         Return the new regcache.
1167         (free_register_cache): Change argument to a void *.
1168         (registers_to_string, registers_from_string): Call get_regcache
1169         with fetch flag set.
1170         (register_data): Make static.  Pass fetch flag to get_regcache.
1171         (supply_register): Call get_regcache with fetch flag clear.
1172         (collect_register): Call get_regcache with fetch flag set.
1173         (collect_register_as_string): New function.
1174         * gdbserver/regcache.h: Update.
1175         * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1176         stderr.
1177         Handle input interrupts while waiting for an ACK.
1178         (input_interrupt): Use signal_pid method.
1179         (getpkt): Flush after debug output and use stderr.
1180         (outreg): Use collect_register_as_string.
1181         (new_thread_notify, dead_thread_notify): New functions.
1182         (prepare_resume_reply): Check using_threads.  Set thread_from_wait
1183         and general_thread.
1184         (look_up_one_symbol): Flush after debug output.
1185         * gdbserver/server.c (step_thread, server_waiting): New variables.
1186         (start_inferior): Don't use signal_pid.  Update call to mywait.
1187         (attach_inferior): Update call to mywait.
1188         (handle_query): Handle qfThreadInfo and qsThreadInfo.
1189         (main): Don't fetch/store registers explicitly.  Use
1190         set_desired_inferior.  Support proposed ``Hs'' packet.  Update
1191         calls to mywait.
1192         * gdbserver/server.h: Update.
1193         (struct inferior_list, struct_inferior_list_entry): New.
1194         * gdbserver/target.c (set_desired_inferior): New.
1195         (write_inferior_memory): Constify.
1196         (mywait): New function.
1197         * gdbserver/target.h: Update.
1198         (struct target_ops): New signal_pid method.
1199         (mywait): Removed macro, added prototype.
1200
1201         * gdbserver/linux-low.h (regset_func): Removed.
1202         (regset_fill_func, regset_store_func): New.
1203         (enum regset_type): New.
1204         (struct regset_info): Add type field.  Use new operation types.
1205         (struct linux_target_ops): stop_pc renamed to get_pc.
1206         Add decr_pc_after_break and breakpoint_at.
1207         (get_process, get_thread_proess, get_process_thread)
1208         (strut process_info, all_processes, linux_attach_lwp)
1209         (thread_db_init): New.
1210
1211         * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1212         arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1213         (the_low_target): Add new members.
1214         * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1215         (i386_store_fpxregset): Constify.
1216         (target_regsets): Add new kind identifier.
1217         (i386_get_pc): Renamed from i386_stop_pc.  Simplify.
1218         (i386_set_pc): Add debugging.
1219         (i386_breakpoint_at): New function.
1220         (the_low_target): Add new members.
1221         * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1222         (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1223         (mips_breakpoint_at): New.
1224         (the_low_target): Add new members.
1225         * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1226         (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1227         (the_low_target): Add new members.
1228         * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1229         (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1230         (the_low_target): Add new members.
1231         * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1232         identifier.
1233
1234 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
1235
1236         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1237         (unwind_tmp_obstack_free, parse_frame_info)
1238         (update_context, cfi_read_fp, cfi_write_fp)
1239         (cfi_frame_chain, cfi_init_extra_frame_info)
1240         (cfi_virtual_frame_pointer): Use the above function.
1241         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
1242
1243 2002-06-11  Corinna Vinschen  <vinschen@redhat.com>
1244
1245         * v850-tdep.c (v850_type_is_scalar): New function.
1246         (v850_use_struct_convention): Match current gcc implementation
1247         as close as possible.
1248         (v850_push_arguments): Fix stack_offset handling.  Don't write
1249         struct_addr into register.  This is done by v850_store_struct_return.
1250         (v850_extract_return_value): Care for structs.
1251         (v850_store_return_value): Ditto.
1252         (v850_store_struct_return): Actually write address.
1253
1254 2002-06-11  Michal Ludvig  <mludvig@suse.cz>
1255
1256         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1257         without debug information too.
1258
1259 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
1260
1261         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1262         Make multi-arch pure.
1263         * gdbarch.h, gdbarch.c: Re-generate.
1264         * arm-tdep.c (arm_print_float_info): Update.
1265         * arch-utils.h (default_print_float_info): Update.
1266         * arch-utils.c (default_print_float_info): Update.
1267         * infcmd.c (float_info): Update call.
1268
1269 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
1270
1271         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1272         the front of the initialize list.
1273
1274 2002-06-10  Andrew Cagney  <ac131313@redhat.com>
1275
1276         * infrun.c (struct inferior_status): Replace fields
1277         selected_frame_address and selected_level with field
1278         selected_frame_id.
1279         (save_inferior_status): Update.  Use get_frame_id.
1280         (struct restore_selected_frame_args): Delete.
1281         (restore_selected_frame): Update.  Use frame_find_by_id.
1282         (restore_inferior_status): Update.
1283
1284         * breakpoint.h (struct breakpoint): Change type of
1285         watchpoint_frame to frame_id.
1286         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
1287         call to get_current_frame.
1288         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
1289         get_current_frame.
1290         (watchpoint_check): Use frame_find_by_id.
1291
1292         * frame.h (record_selected_frame): Delete declaration.
1293         * stack.c (record_selected_frame): Delete function.
1294         
1295         * frame.h (struct frame_id): Define.
1296         (get_frame_id): Declare.
1297         (frame_find_by_id): Declare.
1298         * frame.c (frame_find_by_id): New function.
1299         (get_frame_id): New function.
1300
1301 2002-06-10  Andrey Volkov <avolkov@transas.com>
1302
1303         * ser-e7kpc.c: Fix duplicated define and call of 
1304         _initialize_ser_e7000pc
1305             
1306 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
1307
1308         * signals/signals.c (target_signal_from_host): Fix #ifdef
1309         SIGRTMIN case.
1310         (do_target_signal_to_host): Likewise.
1311
1312 2002-06-09  Daniel Jacobowitz  <drow@mvista.com>
1313
1314         * mips-tdep.c (mips_find_abi_section): New function.
1315         (mips_gdbarch_init): Call it.
1316
1317 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
1318
1319         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1320         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
1321         after Andrew's 2002-06-08 gdbarch change.
1322
1323 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
1324
1325         * i386-linux-nat.c (suppy_gregset): Don't supply
1326         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1327         register cache.
1328         (fill_gregset): Don't fetch it under the same circumstances.
1329
1330 2002-06-09  Andrew Cagney  <cagney@redhat.com>
1331
1332         * Makefile.in (callback_h): Define.
1333         (remote_sim_h): Update path to remote-sim.h.
1334         (remote-rdp.o): Add $(callback_h).
1335         (remote-sim.o): Use $(callback_h).
1336         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1337         * remote-rdp.c: Include "gdb/callback.h".
1338
1339 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
1340
1341         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1342         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1343
1344 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
1345
1346         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1347         * rdi-share/serpardr.c: Ditto.
1348         * rdi-share/unixcomm.c: Ditto.
1349         * rdi-share/serdrv.c: Ditto.
1350         * rdi-share/hostchan.h: Ditto.
1351         * rdi-share/hostchan.c: Ditto.
1352         * rdi-share/host.h: Ditto.
1353         * rdi-share/devsw.c: Ditto.
1354
1355         * objfiles.h: Change type of obj_private to void pointer.
1356         * pa64solib.c: Update copyright.  Don't include "assert.h", use
1357         strcmp instead of STREQ, use LONGEST, do not use PTR
1358         * somsolib.c: Ditto.
1359
1360         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1361         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1362         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1363
1364 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
1365
1366         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1367         (default_get_saved_register): Delete function.
1368         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1369         generic_unwind_get_saved_register.
1370         * gdbarch.h, gdbarch.c: Re-generate.
1371         
1372 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
1373
1374         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1375         generic_func_frame_chain_valid.
1376         * gdbarch.h, gdbarch.c: Re-generate.
1377         * blockframe.c (generic_func_frame_chain_valid): Only check
1378         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
1379         passing FP to PC_IN_CALL_DUMMY.
1380         Fix PR gdb/360.
1381
1382 2002-06-08  Andrew Cagney  <ac131313@redhat.com>
1383
1384         * gdbarch.sh (struct gdbarch_data): Add field init_p.
1385         (register_gdbarch_data): Initialize init_p.
1386         (gdbarch_data): Initialize data pointer using the init function.
1387         (init_gdbarch_data): Delete function.
1388         (gdbarch_update_p): Update.
1389         (initialize_non_multiarch): Update.
1390         (struct gdbarch): Add field initialized_p.
1391         * gdbarch.h, gdbarch.c: Re-generate.
1392
1393 2002-06-07  Michal Ludvig  <mludvig@suse.cz>
1394
1395         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1396         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1397         better do the things actually here.
1398         * x86-64-tdep.c (x86_64_register_name2nr): New.
1399         (x86_64_register_name): Renamed to x86_64_register_nr2name.
1400         (x86_64_gdbarch_init): Respect the above change.
1401         * x86-64-tdep.h (x86_64_register_name2nr)
1402         (x86_64_register_nr2name): Add prototypes.
1403         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1404
1405 2002-06-06  Michael Snyder  <msnyder@redhat.com>
1406
1407         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1408         Delete extra braces and re-indent.
1409         (d10v_store_return_value): Char return values
1410         must be shifted over by one byte in R0.
1411         (d10v_extract_return_value): Delete extra braces, re-indent.
1412
1413 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
1414
1415         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1416         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1417         (d10v_integer_to_address): Rewrite.
1418         (d10v_frame_init_saved_regs): When reading fp and sp registers use
1419         the d10v specific functions which take care of converting to the
1420         correct space.
1421
1422 2002-06-06  Elena Zannoni  <ezannoni@redhat.com>
1423
1424         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1425         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1426
1427 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
1428
1429         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1430         includes.
1431         * config/tm-linux.h: Ditto.
1432         * config/alpha/tm-alphalinux.h: Ditto.
1433         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1434         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1435         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1436         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1437         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1438         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1439         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1440         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1441         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1442         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1443         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1444         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1445         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1446         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1447         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1448         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1449         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1450         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1451         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1452         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1453         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1454         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1455         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1456         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1457         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1458         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1459         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1460         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1461         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1462         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1463         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1464         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1465         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1466         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1467         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1468         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1469         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1470
1471 2002-05-04  Aidan Skinner <aidan@velvet.net>
1472
1473         * ada-exp.tab.c: New file
1474         * ada-exp.y: New file
1475         * ada-lang.c: New file
1476         * ada-lang.h: New file
1477         * ada-lex.c: New file
1478         * ada-lex.l: New file
1479         * ada-tasks.c: New file
1480         * ada-typeprint.c: New file
1481         * ada-valprint.c: New file
1482         
1483 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
1484
1485         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1486         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1487
1488 2002-06-02  Jason Thorpe  <thorpej@wasabisystems.com>
1489
1490         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1491         insetead of ppc-linux-tdep.o.
1492         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1493         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1494
1495 2002-06-02  Andrew Cagney  <ac131313@redhat.com>
1496
1497         2002-05-07 Christian Groessler <chris@groessler.org>
1498         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1499         bit register contents for little endian hosts.
1500
1501 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
1502
1503         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1504         any maintainer.
1505
1506 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
1507
1508         * gdbarch.h: Regenerate.
1509
1510 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
1511
1512         * MAINTAINERS: Add everyone to write-after-approval list.
1513
1514 2002-06-01  Andrew Cagney  <ac131313@redhat.com>
1515
1516         * stack.c (frame_info): Use frame_register_unwind instead of
1517         saved_regs.  Mention when the SP is on the stack or in a register.
1518
1519         * frame.h (frame_register_unwind_ftype): Define.  Document.
1520         (struct frame_info): Add field register_unwind and
1521         register_unwind_cache.
1522         (frame_register_unwind): Declare.
1523         (generic_unwind_get_saved_register): Declare.
1524
1525         * frame.c (frame_register_unwind): New function.
1526         (generic_unwind_get_saved_register): New function.
1527
1528         * blockframe.c (generic_call_dummy_register_unwind): New function.
1529         (frame_saved_regs_register_unwind): New function.
1530         (set_unwind_by_pc): New function.
1531         (create_new_frame): New function.
1532         (get_prev_frame): New function.
1533
1534 2002-05-30  Andrew Cagney  <ac131313@redhat.com>
1535
1536         * a29k-share/: Delete directory.
1537         * remote-vx29k.c: Delete file.
1538
1539 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1540
1541         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1542         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1543
1544 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1545
1546         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1547         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1548         (sparc64nbsd-nat.o)
1549         (sparcnbsd-nat.o)
1550         (sparcnbsd-tdep.o): New dependency lists.
1551         * NEWS: Note new UltraSPARC NetBSD native configuration.
1552         * configure.host (sparc64-*-netbsd*): New host.
1553         * configure.tgt (sparc-*-netbsdelf*)
1554         (sparc-*-netbsd*): Set gdb_target to nbsd.
1555         (sparc64-*-netbsd*): New target.
1556         * sparc64nbsd-nat.c: New file.
1557         * sparcnbsd-nat.c: New file.
1558         * sparcnbsd-tdep.c: New file.
1559         * sparcnbsd-tdep.h: New file.
1560         * config/sparc/nbsd.mt: New file.
1561         * config/sparc/nbsd64.mh: New file.
1562         * config/sparc/nbsd64.mt: New file.
1563         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1564         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
1565         (HOST_IPC): Remove.
1566         * config/sparc/nbsdaout.mt: Remove.
1567         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1568         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
1569         (HOST_IPC): Remove.
1570         * config/sparc/nbsdelf.mt: Remove.
1571         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
1572         sparc-nat.c compatiblity defines.
1573         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
1574         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1575         * config/sparc/tm-nbsd64.h: New file.
1576         * config/sparc/tm-nbsdaout.h: Remove.
1577         * config/sparc/xm-nbsd.h: Remove.
1578
1579 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1580
1581         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1582         * sparc-tdep.c: Include osabi.h.
1583         (gdbarch_tdep): Add osabi member.
1584         (_initialize_sparc_tdep): Use gdbarch_register.
1585         (sparc_gdbarch_init): Use generic OS ABI framework.
1586         (sparc_dump_tdep): New function.
1587
1588 2002-05-30  Kevin Buettner  <kevinb@redhat.com>
1589
1590         * corefile.c (do_captured_read_memory_integer): Return non-zero
1591         result.
1592         (safe_read_memory_integer): Copy result of memory read when
1593         status is non-zero.  Also, add comments.
1594
1595 2002-05-20  Jason Thorpe  <thorpej@wasabisystems.com>
1596
1597         * Makefile.in (ppc_tdep_h): Define.
1598         (ppc-linux-nat.o)
1599         (ppc-linux-tdep.o)
1600         (rs6000-tdep.o): Use $(ppc_tdep_h).
1601         (ppc-sysv-tdep.o)
1602         (ppcnbsd-nat.o)
1603         (ppcnbsd-tdep.o): New dependency lists.
1604         * ppc-tdep.h: Use generic OS ABI framework.
1605         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1606         (ppc_linux_init_abi): New functions.
1607         (ppc_sysv_abi_broken_use_struct_convention)
1608         (ppc_sysv_abi_use_struct_convention)
1609         (ppc_sysv_abi_push_arguments): Move to...
1610         * ppc-sysv-tdep.c: ...here.
1611         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1612         * rs6000-tdep.c (process_note_abi_tag_sections)
1613         (get_elfosabi): Remove.
1614         (rs6000_gdbarch_init): Use generic OS ABI framework.
1615         (rs6000_dump_tdep): New function.
1616         (_initialize_rs6000_tdep): Use gdbarch_register.
1617         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1618         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1619         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1620         of ppc-linux-tdep.o.
1621         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1622         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1623         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1624         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1625         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1626         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1627
1628 2002-05-29  Jim Blandy  <jimb@redhat.com>
1629
1630         * macroscope.c (default_macro_scope): Put `void' in empty argument
1631         list.
1632
1633 2002-05-29  Andrew Cagney  <ac131313@redhat.com>
1634
1635         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1636         * arch-utils.c: Include "sim-regno.h".
1637         * gdbarch.sh: Don't include "sim-regno.h".
1638         * gdbarch.h, gdbarch.c: Regenerate.
1639         * sim-regno.h (legacy_register_sim_regno): Move declaration from
1640         here.
1641         * arch-utils.h (legacy_register_sim_regno): To here.
1642         * remote-sim.c (legacy_register_sim_regno): Move function from
1643         here.
1644         * arch-utils.c (legacy_register_sim_regno): To here.
1645
1646 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
1647
1648         * sim-regno.h: New file.
1649         * Makefile.in (sim_regno_h): Define.
1650         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1651         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1652         (legacy_register_sim_regno): New function.
1653         (one2one_register_sim_regno): New function.
1654         (gdbsim_fetch_register): Rewrite.
1655         (gdbsim_store_register): Only store a register when
1656         REGISTER_SIM_REGNO is valid.
1657         * d10v-tdep.c: Include "sim-regno.h".
1658         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1659         (d10v_ts3_register_sim_regno): Ditto.
1660         * gdbarch.sh: Include "sim-regno.h".
1661         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1662         * gdbarch.h, gdbarch.c: Regenerate.
1663         * arch-utils.h (default_register_sim_regno): Delete declaration.
1664         * arch-utils.c (default_register_sim_regno): Delete function.
1665
1666 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
1667
1668         * ppcnbsd-nat.c: Rewrite.
1669         * ppcnbsd-tdep.c: New file.
1670         * ppcnbsd-tdep.h: New file.
1671         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1672         solib.o, and solib-svr4.o.
1673         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1674         nbsd-tdep.o, and corelow.o.
1675
1676 2002-05-28  Andrew Cagney  <ac131313@redhat.com>
1677
1678         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1679         `tr' and `sed'.  Mention that `broken' targets are not expected to
1680         build.
1681
1682 2002-05-27  Michal Ludvig  <mludvig@suse.cz>
1683
1684         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1685         Let PC point right after the prologue before looking up symbols.
1686         
1687 2002-05-27  Martin M. Hunt  <hunt@redhat.com>
1688
1689         * i386-tdep.c (i386_register_virtual_type): Return 
1690         builtin_type_vec128i for SSE registers.
1691
1692         * gdbtypes.h (builtin_type_vec128i): Declare.
1693
1694         * gdbtypes.c (build_builtin_type_vec128i): New function.
1695         (builtin_type_v2_double, builtin_type_v4_int64): New types.
1696         (builtin_type_vec128i): New type for SSE2 128-bit registers.
1697         (build_gdbtypes): Initialize new builtin vector types.
1698         (_initialize_gdbtypes): Register new vector types with gdbarch.
1699
1700 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1701
1702         * MAINTAINERS: ns32k is not longer an obsolete candidate,
1703         since it has been multi-arch'd.
1704         * NEWS: Note that ns32k-*-* is now partial multi-arch.
1705         Move Alpha and VAX multi-arch news entries to same section
1706         as other multi-arch news.
1707
1708 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1709
1710         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1711         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
1712         static.  Rename some register numbers to put them in ns32k-tdep
1713         private namespace.
1714         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1715         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1716         functions.
1717         (_initialize_ns32k_tdep): Use gdbarch_register.
1718         * ns32k-tdep.h: New file.
1719         * ns32knbsd-tdep.c: New file.
1720         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1721         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1722         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1723         REGISTER_BYTES, REGISTER_BYTE): Remove.
1724         * config/ns32k/tm-ns32k.h: New file.
1725         * config/ns32k/tm-umax.h: Remove.
1726
1727 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1728
1729         * ns32k-tdep.c (ns32k_saved_pc_after_call,
1730         ns32k_store_struct_return, ns32k_extract_return_value,
1731         ns32k_store_return_value, ns32k_extract_struct_value_address): New
1732         functions.
1733         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1734         ns32k_saved_pc_after_call.
1735         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1736         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1737         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1738         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1739         ns32k_extract_struct_value_address.
1740
1741 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1742
1743         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1744         ns32k_fix_call_dummy): New.
1745         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1746         ns32k_call_dummy_words.
1747         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1748         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1749         CALL_DUMMY_NARGS): Remove.
1750         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1751
1752 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1753
1754         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1755         ns32k_frame_saved_pc, ns32k_frame_args_address,
1756         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1757         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1758         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1759         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1760         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1761         (BREAKPOINT): Remove..
1762         (FRAME_CHAIN): Define as ns32k_frame_chain.
1763         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1764         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1765         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1766         (FRAME_FIND_SAVED_REGS): Remove.
1767         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1768         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1769         (POP_FRAME): Define as ns32k_pop_frame.
1770
1771 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1772
1773         * ns32k-tdep.c (ns32k_register_byte_32082,
1774         ns32k_register_byte_32382, ns32k_register_raw_size,
1775         ns32k_register_virtual_size, ns32k_register_virtual_type): New
1776         functions.
1777         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1778         ns32k_register_byte_32382.
1779         * config/ns32k/tm-umax.h: Update copyright years.
1780         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1781         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1782         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1783         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1784         (ns32k_get_enter_addr): Fix prototype.
1785
1786 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
1787
1788         * ns32k-tdep.c: Update copyright years.
1789         (ns32k_register_name_32082): New function.
1790         (ns32k_register_name_32382): Ditto.
1791         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1792         (REGISTER_NAME): Define as ns32k_register_name_32382.
1793         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1794         (REGISTER_NAME): Define as ns32k_register_name_32082.
1795
1796 2002-05-24  Jim Blandy  <jimb@redhat.com>
1797
1798         * dwarf2read.c (free_line_header): Use xfree, not free.
1799
1800 2002-05-24  Jason Thorpe  <thorpej@wasabisystems.com>
1801
1802         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1803         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1804
1805 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1806
1807         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1808
1809 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1810
1811         From Ross Alexander at NEC Europe:
1812         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1813
1814 2002-05-23  Michael Snyder  <msnyder@redhat.com>
1815
1816         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1817         for input, rather than parse_and_eval_address.  
1818
1819 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
1820
1821         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1822         * Makefile.in (sim_d10v_h): Update definition.
1823
1824 2002-05-24  Andrew Cagney  <cagney@redhat.com>
1825
1826         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1827         change `2002-05-22 Michael Snyder' below.
1828         (d10v_push_arguments): Ditto.
1829         (d10v_extract_return_value): Ditto.
1830
1831 2002-05-23  Jim Blandy  <jimb@redhat.com>
1832
1833         * macrotab.c (check_for_redefinition): Don't complain if the new
1834         definition is the same as the previous one.  Take more arguments
1835         to allow the comparison.
1836         (macro_define_object, macro_define_function): Pass more arguments
1837         to check_for_redefinition.
1838
1839 2002-05-22  Michael Snyder  <msnyder@redhat.com>
1840
1841         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1842         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1843         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1844         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1845         Don't bail if return_pc is PC_IN_CALL_DUMMY.
1846         Add a temp variable to save a call (and a memory read).
1847         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1848         if possible (so that PC_IN_CALL_DUMMY will work).
1849
1850 2002-05-22  Corinna Vinschen  <vinschen@redhat.com>
1851
1852         * MAINTAINERS: Remove status `OBSOLETE' from v850.
1853
1854 2002-05-22  Michal Ludvig  <mludvig@suse.cz>
1855
1856         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1857         fde->cie_ptr.
1858         (dwarf2_build_frame_info): Corrected handling of eh_frame.
1859         (dwarf2_build_frame_info): Add offset to fde->initial_location 
1860         so that frames of shared libraries are mapped correctly.
1861         (execute_stack_op): Change type of 'result' from ULONGEST to
1862         CORE_ADDR.
1863         
1864 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1865
1866         * config/alpha/tm-nbsd.h: Include solib.h.
1867
1868 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1869
1870         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1871         assumptions about the host's byte order.
1872
1873 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1874
1875         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1876         to dependency list.
1877         * alphanbsd-tdep.c: Include solib-svr4.h.
1878         * shnbsd-tdep.c: Ditto.
1879
1880 2002-05-22  Jason Thorpe  <thorpej@wasabisystems.com>
1881
1882         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1883         nbsd-tdep.h to dependency list.
1884         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1885         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1886         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1887         nbsdaout.mh and nbsdelf.mh consistently.
1888         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1889         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1890         nbsdaout.mt and nbsdelf.mh consistently.
1891         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
1892         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1893         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1894         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
1895         a.out shared library stuff from here...
1896         * config/nm-nbsdaout.h: ...to here.
1897         * config/tm-nbsd.h: Remove.
1898         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1899         * config/arm/nbsd.mh: Remove.
1900         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1901         nbsd-tdep.o.
1902         * config/arm/nbsdaout.mh: New file. 
1903         * config/arm/nbsdelf.mh: New file.
1904         * config/arm/nm-nbsdaout.h: New file.
1905         * config/i386/nbsd.mh: Remove.
1906         * config/i386/nbsd.mt: Remove.
1907         * config/i386/nbsdaout.mh: New file.
1908         * config/i386/nbsdaout.mt: New file.
1909         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1910         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1911         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
1912         i386_register_u_addr): Remove.
1913         * config/i386/nm-nbsdaout.h: New file.
1914         * config/i386/nm-nbsdelf.h: Remove.
1915         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1916         (USE_STRUCT_CONVENTION): Remove.
1917         * config/i386/tm-nbsdaout.h: New file.
1918         * config/i386/tm-nbsdelf.h: Remove.
1919         * config/m68k/nbsd.mh: Remove.
1920         * config/m68k/nbsd.mt: Remove.
1921         * config/m68k/nbsdaout.mh: New file.
1922         * config/m68k/nbsdaout.mt: New file. 
1923         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1924         * config/m68k/nm-nbsdaout.h: New file.
1925         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1926         (IN_SOLIB_CALL_TRAMPOLINE): Define.
1927         * config/ns32k/nbsd.mh: Remove.
1928         * config/ns32k/nbsd.mt: Remove. 
1929         * config/ns32k/nbsdaout.mh: New file.
1930         * config/ns32k/nbsdaout.mt: New file.
1931         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
1932         * config/ns32k/nm-nbsdaout.h: New file.
1933         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
1934         (IN_SOLIB_CALL_TRAMPOLINE): Define.
1935         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1936         (SVR4_SHARED_LIBS): Remove.
1937         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1938         * config/sparc/nbsd.mh: Remove.
1939         * config/sparc/nbsd.mt: Remove.
1940         * config/sparc/nbsdaout.mh: New file.
1941         * config/sparc/nbsdaout.mt: New file.
1942         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1943         * config/sparc/nbsdelf.mt: New file.
1944         * config/sparc/nm-nbsdaout.h: New file.   
1945         * config/sparc/nm-nbsdelf.h: Remove.
1946         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1947         * config/sparc/tm-nbsdaout.h: New file.
1948
1949 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1950
1951         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1952         mipsnbsd-tdep.c
1953         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1954
1955 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1956
1957         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1958         shnbsd-nat.c.
1959         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1960
1961 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1962
1963         * NEWS: Note new MIPS NetBSD native configuration. 
1964         * configure.host (mips*-*-netbsd*): New host. 
1965         * configure.tgt (mips*-*-netbsd*): New target. 
1966         * mipsnbsd-nat.c: New file.
1967         * mipsnbsd-tdep.c: New file.
1968         * mipsnbsd-tdep.h: New file.
1969         * config/mips/nbsd.mh: New file.
1970         * config/mips/nbsd.mt: New file.
1971         * config/mips/nm-nbsd.h: New file.
1972         * config/mips/tm-nbsd.h: New file.
1973
1974 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
1975
1976         * Makefile.in (SFILES): Add osabi.c.
1977         (COMMON_OBS): Add osabi.o.
1978         (osabi.o): New dependency list.
1979         * osabi.c: New file.
1980         * osabi.h: New file.
1981         * doc/gdbint.texinfo: Document new generic OS ABI framework.
1982
1983         * Makefile.in (alpha_tdep_h): Define and use instead of
1984         alpha-tdep.h.
1985         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1986         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1987         Remove.
1988         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1989         * alpha-tdep.h: Include osabi.h.
1990         (alpha_abi): Remove.
1991         (gdbarch_tdep): Use generic OS ABI framework.
1992         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1993         gdbarch_register_osabi.
1994         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1995         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1996         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1997
1998         * Makefile.in (sh_tdep_h): Add osabi.h.
1999         * sh-tdep.h (sh_osabi): Remove.
2000         (gdbarch_tdep): Use generic OS ABI framework.
2001         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2002         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2003         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2004         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2005
2006         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2007         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2008         gdbarch_register_osabi.
2009         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2010         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2011         (get_elfosabi): Rename to...
2012         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
2013         ABI framework support routines.
2014         (arm_gdbarch_init): Use generic OS ABI framework.
2015         (arm_dump_tdep): Likewise.
2016         (_initialize_arm_tdep): Likewise.
2017         * arm-tdep.h: Include osabi.h.
2018         (arm_abi): Remove.
2019         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
2020         osabi member.
2021         (arm_gdbarch_register_os_abi): Remove prototype.
2022         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2023         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2024
2025         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2026         * mips-tdep.c: Include osabi.h.
2027         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2028         OS ABI framework.
2029
2030 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2031
2032         * h8300-tdep.c: Fix formatting.
2033
2034 2002-05-20  Elena Zannoni  <ezannoni@redhat.com>
2035
2036         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2037         printing vector registers.
2038
2039 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
2040
2041         From Fernando Nasser:
2042         * remote.c (remote_async_open_1): Re-throw the exception when the
2043         connection fails.
2044         (remote_cisco_open): Ditto.
2045         (remote_open_1): Ditto.
2046
2047 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
2048
2049         * remote.c (remote_start_remote_dummy): Add uiout parameter.
2050         (remote_start_remote): Add uiout parameter.  Pass through to
2051         remote_start_remote_dummy.
2052         (remote_open_1): Use catch_exception instead of catch_errors.
2053         (remote_async_open_1): Ditto.
2054         (remote_cisco_open): Ditto.
2055
2056 2002-05-19  Andrew Cagney  <ac131313@redhat.com>
2057
2058         * remote.c (remote_start_remote): Replace PTR with void pointer.
2059         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
2060         static.
2061
2062 2002-05-18  Andrew Cagney  <ac131313@redhat.com>
2063
2064         * gdb_indent.sh: Allow the script to be run in the sim directory.
2065
2066 2002-05-18  Mark Kettenis  <kettenis@gnu.org>
2067
2068         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2069         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2070
2071         * corelow.c (core_open): Only call set_gdbarch_from_file if
2072         exec_bfd is NULL.
2073
2074 2002-05-17  Andrey Volkov <avolkov@transas.com>
2075
2076         * h8300-tdep.c: Add support of EXR register
2077         * config/h8300/tm-h8300.h: Ditto. 
2078         
2079 2002-05-17  Andrey Volkov <avolkov@transas.com>
2080
2081         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
2082         
2083 2002-05-17  Andrey Volkov <avolkov@transas.com>
2084
2085         * h8300-tdep.c: Change literal regnums to REGNO.
2086         
2087 2002-05-17  Jim Blandy  <jimb@redhat.com>
2088
2089         * NEWS: Note addition of macro support.
2090
2091         Expand preprocessor macros in C expressions.
2092         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2093         (scan_macro_expansion, scanning_macro_expansion,
2094         finished_macro_expansion): New function declarations.
2095         (expression_macro_lookup_func, expression_macro_lookup_baton): New
2096         variable declarations.
2097         * parser-defs.h (expression_context_pc): New declaration.
2098         * parse.c (expression_context_pc): New variable.
2099         (parse_exp_1): Set expression_context_pc, as well as
2100         expression_context_block.
2101         * c-exp.y (yylex): If we're not already reading the result of a
2102         macro expansion, try to macro-expand the next token.  When we're
2103         done scanning a macro expansion, switch back to the mainline text.
2104         Commas and `if's in a macro's expansion don't terminate the input.
2105         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2106         (macro_original_text, macro_expanded_text,
2107         expression_macro_lookup_func, expression_macro_lookup_baton): New
2108         variables.
2109         (scan_macro_expansion, scanning_macro_expansion,
2110         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2111         c_preprocess_and_parse): New functions.
2112         (c_language_defn, cplus_language_defn, asm_language_defn): Call
2113         c_preprocess_and_parse, instead of c_parse.
2114         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2115         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2116
2117 Fri May 17 14:26:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
2118
2119         * sh-tdep.c (gdb_print_insn_sh64): Delete.
2120         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2121         (sh_gdbarch_init): Always use gdb_print_insn_sh.
2122
2123 2002-05-17  Corinna Vinschen  <vinschen@redhat.com>
2124
2125         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
2126
2127 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2128
2129         * Makefile.in (sh_tdep_h): Define and use.
2130         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2131         register enum): Move to...
2132         * * sh-tdep.h: ...here.
2133         * sh-tdep.c: Include sh-tdep.h.
2134         * sh3-rom.c: Likewise.
2135         * shnbsd-tdep.c: Likewise.
2136
2137 2002-05-16  Michael Snyder  <msnyder@redhat.com>
2138
2139         * arm-tdep.c: Spelling fix in comment.
2140
2141 2002-05-16  Jim Blandy  <jimb@redhat.com>
2142
2143         Add commands for manually expanding macros and showing their
2144         definitions.
2145         * macrocmd.c, macroscope.c, macroscope.h: New files.
2146         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2147         (macroscope_h): New variable.
2148         (HFILES_NO_SRCDIR): Add macroscope.h.
2149         (COMMON_OBS): Add macrocmd.o, macroscope.o.
2150         (macroscope.o, macrocmd.o): New rules.
2151
2152         Teach the Dwarf 2 reader to read macro information.
2153         * dwarf2read.c: #include "macrotab.h".
2154         (dwarf_macinfo_buffer): New variable.
2155         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2156         dwarf_macinfo_size.
2157         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2158         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2159         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2160         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2161         dwarf2_macro_spaces_in_definition): New complaints.
2162         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2163         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2164         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2165         the partial symbol table.
2166         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2167         from what's recorded in the partial symbol table.
2168         (read_file_scope): If the compilation unit has a
2169         `DW_AT_macro_info' attribute, read its macro information.
2170         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2171
2172 2002-05-16  Daniel Jacobowitz  <drow@mvista.com>
2173
2174         Fix PR gdb/546
2175         * ser-tcp.c: Don't include <netinet/udp.h>.
2176
2177 2002-05-16  Stephane Carrez  <stcarrez@nerim.fr>
2178
2179         * MAINTAINERS: Update my email address.
2180
2181 2002-05-16  Richard Earnshaw  <rearnsha@arm.com>
2182
2183         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2184         include file of the same name.
2185
2186 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
2187
2188         * configure.tgt: Mark v850 as multi-arched.
2189         * config/v850/tm-v850.h: Remove file.
2190         * config/v850/v850.mt: Eliminate TM_FILE.
2191
2192 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
2193
2194         * v850-tdep.c: Full multi-arch.
2195         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2196         Define GDB_MULTI_ARCH to 2.
2197
2198 2002-05-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2199
2200         * p-exp.y (current_type): New static variable.
2201         Carries the type of the expression at the position that is parsed.
2202         (push_current_type, pop_current_type): Two new functions. Used
2203         to store/restore current_type in expression on specific tokens.
2204         (search_field): New static variable. Set to one after parsing a point
2205         as at that point only a FIELDNAME token should be searched.
2206         (FIELDNAME): New token. After a point only a token belonging to 
2207         current_type type definition is allowed.
2208         (all over token rules): reset and change current_type according
2209         to rules.
2210         (exp '[' rule): insert implicit array index field if
2211         exp is a pascal string type.
2212
2213 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
2214
2215         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
2216         frame info.  Use frame_info's saved_regs instead of matching member
2217         in extra_frame_info throughout.
2218         (v850_frame_init_saved_regs): New function.
2219         (v850_init_extra_frame_info): Move most functionality into
2220         v850_frame_init_saved_regs().
2221         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2222         (v850_frame_find_saved_regs): Remove declaration.
2223         (FRAME_FIND_SAVED_REGS): Remove definition.
2224         (v850_frame_init_saved_regs): Add declaration.
2225         (FRAME_INIT_SAVED_REGS): Add definition.
2226
2227 2002-05-16  Corinna Vinschen  <vinschen@redhat.com>
2228
2229         * v850-tdep.c: Begin multi-arch'ing v850.
2230         (v850_target_architecture_hook): Remove function.
2231         (v850_gdbarch_init): New function.  Add code previously in
2232         v850_target_architecture_hook().
2233         (_initialize_v850_tdep): Don't  set target_architecture_hook.
2234         Call register_gdbarch_init() instead.
2235
2236 2002-05-16 Daniel Jacobowitz  <drow@mvista.com>
2237
2238         * gdbtypes.h (struct cplus_struct_type): Remove args field.
2239         * hpread.c (hpread_read_struct_type): Remove assignments to args.
2240         (fixup_class_method_type): Likewise.
2241
2242 2002-05-15  Daniel Jacobowitz  <drow@mvista.com>
2243
2244         From Martin Pool <mbp@samba.org>:
2245         * gdbserver/server.c (gdbserver_usage): New function.
2246         (main): Call it.
2247
2248 2002-05-15  Jim Blandy  <jimb@redhat.com>
2249
2250         Add macro structures to GDB's symbol tables.  Nobody puts anything
2251         in them yet.
2252         * symtab.h (struct symtab): New member: `macro_table'.
2253         * buildsym.h (pending_macros): New global variable.
2254         * buildsym.c: #include "macrotab.h".
2255         (buildsym_init): Initialize `pending_macros'.
2256         (end_symtab): If we found macro information while reading a CU's
2257         debugging info, do build a symtab structure for it.  Make the
2258         symtab point to the macro information, and clear the
2259         `pending_macros' pointer which held it while we were reading the
2260         debug info.
2261         (really_free_pendings): Free any pending macro table.
2262         * objfiles.h (struct objfile): New member: `macro_cache'.
2263         * objfiles.c (allocate_objfile): Set allocate and free functions
2264         for the macro cache's objstack.
2265         (free_objfile): Empty the macro cache's obstack.
2266         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2267         set new allocate and free functions for it.
2268         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2269         free functions for the macro cache's objstack.  (Why is this
2270         function building its own objfile?)
2271         * symmisc.c (print_objfile_statistics): Print statistics on the
2272         macro bcache.
2273         * Makefile.in: Note that buildsym.o depends on macrotab.h.
2274
2275 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
2276
2277         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2278         (REGISTER_U_ADDR): Delete definition.
2279         (arm_register_u_addr): Delete declaration.
2280
2281 2002-05-15  Richard Earnshaw  <rearnsha@arm.com>
2282
2283         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2284         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2285
2286 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
2287
2288         * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2289         stop_at -> stop_pc.
2290
2291 2002-05-14  Andrew Cagney  <ac131313@redhat.com>
2292
2293         * regcache.c (register_valid): Revise comments refering to "Not
2294         available" and "unavailable".
2295         * frame.c (frame_register_read): Ditto.
2296         * findvar.c (value_of_register): Ditto.
2297
2298 2002-05-15  Andrew Cagney  <cagney@redhat.com>
2299
2300         * Makefile.in (remote_sim_h): Replace remote-sim_h.
2301         (remote-sim.o): Update dependencies.
2302         (d10v-tdep.o): Specify dependencies.
2303         (sim_d10v_h): Define.
2304
2305 2002-05-14  Jim Blandy  <jimb@redhat.com>
2306
2307         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2308         * macrotab.c (macro_lookup_inclusion, find_definition,
2309         new_macro_table): Same.
2310         
2311         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2312         not `! strcmp ()'.  This is a dubious improvement.
2313         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2314
2315         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2316         although it's not necessary, to avoid a warning.
2317
2318 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
2319
2320         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2321         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2322         TYPE_INSTANCE_FLAGS.
2323         (struct main_type): New.
2324         (struct type): Move most members to struct main_type.  Change
2325         cv_type and as_type to new type_chain member.  Add instance_flags.
2326         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2327         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2328         (finish_cv_type): Remove prototype.
2329         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
2330         Set TYPE_CHAIN.
2331         (alloc_type_instance): New function.
2332         (smash_type): New function.
2333         (make_pointer_type, make_reference_type, make_function_type)
2334         (smash_to_member_type, smash_to_method_type): Call smash_type.
2335         (make_qualified_type): New function.
2336         (make_type_with_address_space): Call make_qualified_type.
2337         (make_cv_type): Likewise.
2338         (finish_cv_type): Remove unnecessary function.
2339         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
2340         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2341         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2342         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2343         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2344         * hpread.c (hpread_read_struct_type): Likewise.
2345         * stabsread.c (read_struct_type): Likewise.
2346
2347 2002-05-14  Elena Zannoni  <ezannoni@redhat.com>
2348
2349         * configure.tgt: Add a catch all sh* target, for cases like
2350         sh[2,3,4]-elf and sh-hms.
2351
2352 2002-05-14  Keith Seitz  <keiths@redhat.com>
2353
2354         * event-loop.c (create_file_handler): Don't do anything but
2355         update data when we are given a fd which we are already
2356         monitoring.
2357
2358 2002-05-14  Michal Ludvig  <mludvig@suse.cz>
2359
2360         * dwarf2cfi.c (context_cpy): Copy registers correctly.
2361         (update_context): Use __func__ in warnings.
2362         
2363 2002-05-14  Daniel Jacobowitz  <drow@mvista.com>
2364
2365         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
2366         and tcp_close to net_open and net_close.
2367         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
2368         using UDP if requested.  Don't try to disable Nagle on UDP
2369         sockets.
2370         * remote.c (remote_serial_open): New function.  Warn about UDP.
2371         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2372
2373 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
2374
2375         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2376
2377 2002-05-13  Elena Zannoni  <ezannoni@redhat.com>
2378
2379         * configure.tgt: Remove sh-hms target.
2380         * MAINTAINERS: Don't list sh-hms as a separate target.
2381
2382 2002-05-13  Jim Blandy  <jimb@redhat.com>
2383
2384         Add first preprocessor macro-expansion files.
2385         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2386         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2387         (splay_tree_h, macroexp_h, macrotab_h): New variable.
2388         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2389         (COMMON_OBS): Add macrotab.o, macroexp.o.
2390         (macroexp.o, macrotab.o): New rules.
2391
2392 2002-05-13  Andrew Cagney  <ac131313@redhat.com>
2393
2394         * config/m88k/tm-m88k.h: Update copyright.
2395         (m88k_target_write_pc): Declare
2396         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2397         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2398         (SHIFT_INST_REGS): Update definition.
2399         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
2400         using old definition of TARGET_WRITE_PC.
2401         * regcache.c (generic_target_write_pc): Delete code handling
2402         NNPC_REGNUM.
2403         * gdbarch.sh (NNPC_REGNUM): Delete.
2404         * gdbarch.h, gdbarch.c: Regenerate.
2405
2406 2002-05-13  Richard Earnshaw  <rearnsha@arm.com>
2407
2408         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2409         builtin reg number.
2410
2411 2002-05-13  Daniel Jacobowitz  <drow@mvista.com>
2412
2413         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2414         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2415         (gen_address_of, gen_struct_ref, gen_repeat): Use type
2416         access macros.
2417         * c-typeprint.c (cp_type_print_method_args): Likewise.
2418         (c_type_print_args): Likewise.
2419         * d10v-tdep.c (d10v_push_arguments): Likewise.
2420         (d10v_extract_return_value): Likewise.
2421         * expprint.c (print_subexp): Likewise.
2422         * gdbtypes.c (lookup_primitive_typename): Likewise.
2423         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2424         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2425         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2426         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2427         (TYPE_VECTOR): Likewise.
2428         * hpread.c (hpread_read_struct_type)
2429         (fix_static_member_physnames, fixup_class_method_type)
2430         (hpread_type_lookup): Likewise.
2431         * mdebugread.c (parse_symbol, parse_type): Likewise.
2432         * p-lang.c (is_pascal_string_type): Likewise.
2433         * valops.c (hand_function_call): Likewise.
2434         * x86-64-tdep.c (classify_argument): Likewise.
2435
2436         * hpread.c (hpread_read_function_type)
2437         (hpread_read_doc_function_type): Call replace_type.
2438         * dstread.c (create_new_type): Delete.
2439         (decode_dst_structure, process_dst_function): Call alloc_type.
2440         Use type access macros.
2441
2442 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
2443
2444         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2445         the're not supported by the current architecture.
2446         (i387_fill_fxsave): Likewise.
2447
2448 2002-05-12  Fred Fish  <fnf@redhat.com>
2449
2450         * symfile.c (default_symfile_offsets): Arrange for uninitialized
2451         sect_index_xxx members to index the first slot in section_offsets
2452         if all of the section_offsets are zero.
2453
2454 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
2455
2456         * configure.tgt (sparc-*openbsd): Remove entry accidentially
2457         checked in with last change.
2458
2459 2002-05-12  Mark Kettenis  <kettenis@gnu.org>
2460
2461         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2462         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
2463         config.sub.
2464
2465 2002-05-12  Daniel Jacobowitz  <drow@mvista.com>
2466
2467         * Makefile.in: Update dependencies.
2468
2469 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2470
2471         * language.c (local_hex_string_custom): Simplify.  Do not depend
2472         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2473
2474         * memattr.c (mem_info_command): Replace calls to
2475         longest_local_hex_string and longest_local_hex_string_custom.
2476         * buildsym.c (make_blockvector): Ditto.
2477         * solib.c (info_sharedlibrary_command): Ditto.
2478         * tracepoint.c (tracepoints_info): Ditto.
2479         * symtab.c (print_msymbol_info): Ditto.
2480
2481         * language.c (local_hex_string): Delete.
2482         (local_hex_string_custom): Delete.
2483         (longest_local_hex_string): Rename to local_hex_string.
2484         (longest_local_hex_string_custom): Rename to
2485         local_hex_string_custom.
2486         * language.h (local_hex_string): Change parameter type to LONGEST.
2487         (local_hex_string_custom): Ditto.
2488         (longest_local_hex_string): Delete declaration.
2489         (longest_local_hex_string_custom): Ditto.
2490
2491         * solib.c: Update copyright.
2492         * memattr.c: Update copyright.
2493         
2494 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2495
2496         * arch-utils.h (legacy_register_to_value): Declare.
2497         (legacy_value_to_register): Declare.
2498         (legacy_convert_register_p): Declare.
2499         * arch-utils.c (legacy_register_to_value): New function.
2500         (legacy_value_to_register): New function.
2501         (legacy_convert_register_p): New function.
2502
2503         * gdbarch.sh (REGISTER_TO_VALUE): Define.
2504         (VALUE_TO_REGISTER): Define.
2505         (CONVERT_REGISTER_P): Define.
2506         * gdbarch.h, gdbarch.c: Regenerate.
2507
2508         * valops.c (value_assign): Use CONVERT_REGISTER_P and
2509         VALUE_TO_REGISTER.
2510         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2511         CONVERT_REGISTER_P.
2512
2513 2005-05-11  Daniel Jacobowitz  <drow@mvista.com>
2514             Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
2515
2516         * Makefile.in: Update dependencies for valops.c.
2517         * valops.c: Include "gdb_assert.h".
2518         (typecmp): Skip THIS parameter to methods.
2519         (find_method_list): Remove static_memfuncp argument,
2520         update callers.  Check for stub methods.
2521         (find_value_oload_method_list): Don't set *static_memfuncp.
2522         (find_overload_match): Don't check for stub methods.  Assert
2523         that methods are not stubbed.  Handle static methods.
2524         (value_find_oload_method_list): Remove static_memfuncp argument.
2525         * gdbtypes.c (check_stub_method): Do not add THIS pointer
2526         to the argument list for static stub methods.
2527         * value.h (value_find_oload_method_list): Update prototype.
2528
2529 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2530
2531         * arch-utils.h (generic_register_size): Declare.
2532         (generic_register_raw_size, generic_register_virtual_size): Delete
2533         declarations.
2534         * arch-utils.c (generic_register_raw_size): Delete.
2535         (generic_register_size): New function.
2536         (generic_register_virtual_size): Delete.
2537
2538         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2539         default generic_register_size.
2540         * gdbarch.h, gdbarch.c: Re-generate.
2541         
2542         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2543         register_virtual_size.
2544         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2545         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2546
2547 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2548
2549         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2550         * gdbarch.h, gdbarch.c: Regenerate.
2551         * gnu-v3-abi.c: Update copyright.
2552         (vtable_address_point_offset): Update.
2553         (gnuv3_rtti_type): Update.
2554         (gnuv3_baseclass_offset): Update.
2555         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2556         (init_fetch_link_map_offsets): Update.
2557         * remote.c (get_remote_state): Update.
2558         
2559 2002-05-11  Daniel Jacobowitz  <drow@mvista.com>
2560
2561         * TODO: Remove value_headof/value_from_vtable_info comment.
2562         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2563         * values.c (value_headof, value_from_vtable_info): Delete.
2564         * value.h (value_from_vtable_info): Delete prototype.
2565
2566 2002-05-11  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2569         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2570         $(gdb_regex_h).
2571         (gdb_assert_h): Define.
2572         (gdb_wait_h): Define.
2573         (gdb_regex_h): Define.
2574
2575 2002-05-11 Daniel Jacobowitz  <drow@mvista.com>
2576
2577         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2578         * linespec.c (find_methods): Handle GCC 3.x template constructors.
2579
2580 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2581
2582         * nbsd-tdep.c: Fix comment.
2583
2584 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2585
2586         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2587         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2588         (nbsd-tdep.o): New dependency list.
2589         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
2590         nbsd-tdep.h.
2591         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2592         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2593         * nbsd-tdep.c: New file.
2594         * nbsd-tdep.h: New file.
2595         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
2596         nbsd-tdep.h.
2597         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2598         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2599         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2600         * config/sh/nbsd.mt (TDEPFILES): Ditto.
2601
2602 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2603
2604         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2605         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2606         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2607         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2608         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2609         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2610
2611 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2612
2613         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2614         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2615         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2616         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2617         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2618         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2619         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2620
2621 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2622
2623         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
2624         fetch_elfcore_registers to...
2625         * i386nbsd-tdep.c: ...here.
2626         (i386nbsd_use_struct_convention): Rename to...
2627         (i386nbsd_aout_use_struct_convention): ...this.
2628         (i386nbsd_supply_reg): New function.
2629         (i386nbsd_fill_reg): New function.
2630         (fetch_core_registers): Use i386nbsd_supply_reg.
2631         (fetch_elfcore_registers): Likewise.
2632         (_initialize_i386nbsd_tdep): New function.
2633         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2634         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2635         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2636         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2637         (i386nbsd_aout_use_struct_convention): ...this.
2638
2639 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2640
2641         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2642         (store_inferior_registers): Use shnbsd_fill_reg.
2643         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
2644         sh_nbsd_supply_register): Collapse into...
2645         (shnbsd_supply_reg): ...this.
2646         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2647         (shnbsd_fill_reg): ...this.
2648         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2649         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2650         (fetch_core_registers): Use shnbsd_supply_reg.
2651         (fetch_elfcore_registers): Use shnbsd_supply_reg.
2652         (sh_nbsd_core_fns): Rename to...
2653         (shnbsd_core_fns): ...this.
2654         (sh_nbsd_elfcore_fns): Rename to...
2655         (shnbsd_elfcore_fns): ...this.
2656         (sh_nbsd_init_abi): Rename to...
2657         (shnbsd_init_abi): ...this.
2658         (_initialize_sh_nbsd_tdep): Rename to...
2659         (_initialize_shnbsd_tdep): ...this.
2660         * shnbsd-tdep.h (sh_nbsd_supply_registers,
2661         sh_nbsd_supply_register, sh_nbsd_fill_registers,
2662         sh_nbsd_fill_register): Remove prototypes.
2663         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2664
2665 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2666
2667         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2668         (i387-nat.o): Delete dependency list.
2669         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2670         (x86-64-linux-nat.o): Likewise.
2671         * i387-nat.c: Delete file, moving contents to...
2672         * i387-tdep.c: ...here.
2673         * i387-nat.h: Rename...
2674         * i387-tdep.h: ...to this.
2675         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2676         * i386-linux-nat.c: Likewise.
2677         * i386bsd-nat.c: Likewise.
2678         * i386gnu-nat.c: Likewise.
2679         * i386nbsd-nat.c: Likewise.
2680         * i386v4-nat.c: Likewise.
2681         * x86-64-linux-nat.c: Likewise.
2682         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2683         * config/i386/go32.mh (NATDEPFILES): Likewise.
2684         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2685         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2686         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2687         * config/i386/linux.mh (NATDEPFILES): Likewise.
2688         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2689         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2690         * config/i386/obsd.mh (NATDEPFILES): Likewise.
2691         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2692
2693 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2694
2695         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2696         (alphanbsd-nat.o): Remove dependency list.
2697         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2698         * alphanbsd-nat.c: Delete.  Contents moved to...
2699         * alphanbsd-tdep.c: ...here.
2700         (_initialize_alphanbsd_tdep): Register core functions.
2701         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2702
2703 2002-05-11  Jason Thorpe  <thorpej@wasabisystems.com>
2704
2705         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2706         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2707         (alphanbsd-nat.o): Likewise.
2708         (alphabsd-tdep.o): New dependency list.
2709         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2710         (fill_gregset): Use alphabsd_fill_reg.
2711         (supply_fpregset): Use alphabsd_supply_fpreg.
2712         (fill_fpregset): Use alphabsd_fill_fpreg.
2713         (fetch_inferior_registers): Use struct reg and struct fpreg
2714         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
2715         and alphabsd_supply_fpreg.
2716         (store_inferior_registers): Use struct reg and struct fpreg
2717         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
2718         and alphabsd_fill_fpreg.
2719         * alphabsd-tdep.c: New file.
2720         * alphabsd-tdep.h: New file.
2721         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2722         (fetch_elfcore_registers): Use alphabsd_supply_reg and
2723         alphabsd_supply_fpreg.
2724         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2725         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2726
2727 2002-05-11  Eric Christopher  <echristo@redhat.com>
2728
2729         * mips-tdep.c (mips_double_register_type): Fix thinko.
2730         (mips_single_register_type): Ditto.
2731         * MAINTAINERS: Add self.
2732
2733 2002-05-11  Mark Kettenis  <kettenis@gnu.org>
2734
2735         * i387-nat.c (i387_supply_register, i387_fill_fsave,
2736         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2737         right thing on architectures with different endianness and/or
2738         integer sizes.
2739
2740 2002-05-10  Jason Thorpe  <thorpej@wasabisystems.com>
2741
2742         From Christian Limpach <chris@Pin.LU>
2743         * configure.in: Change sed expression which comments out
2744         NATDEPFILES to also comment out continuation lines.
2745         * configure: Regenerate.
2746
2747 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2748
2749         * sh-tdep.c: Clean up code erroneously reintroduced by previous
2750         big patch.
2751
2752 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2753
2754         * sh-tdep.c: Include correct file.
2755
2756 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2757
2758         New support for sh64-elf (sh5) target.
2759
2760         * configure.tgt: For sh64-elf target, default to sh-elf.
2761
2762         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2763         (struct gdbarch_tdep): Add new fields for new registers and ABI
2764         info.
2765
2766         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2767         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2768         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2769         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2770         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2771         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2772         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2773         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2774         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2775         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2776         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2777         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2778         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2779         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2780         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2781         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2782         sh64_get_gdb_regnum, sh64_media_reg_base_num,
2783         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2784         sign_extend, sh64_nofp_frame_init_saved_regs,
2785         sh64_init_extra_frame_info, sh64_get_saved_register,
2786         sh64_extract_struct_value_address, sh64_pop_frame,
2787         sh64_push_arguments, sh64_extract_return_value,
2788         sh64_store_return_value, sh64_show_media_regs,
2789         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2790         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2791         sh_sh64_register_virtual_type,
2792         sh_sh64_register_convert_to_virtual,
2793         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2794         sh64_register_read, sh64_pseudo_register_write,
2795         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2796         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2797         sh64_do_pseudo_register, sh_compact_do_registers_info,
2798         sh64_do_registers_info, sh_gdbarch_init): New functions.
2799
2800 2002-05-10  Elena Zannoni  <ezannoni@redhat.com>
2801
2802         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2803
2804 2002-05-10 Daniel Jacobowitz  <drow@mvista.com>
2805
2806         * linespec.c (decode_line_1): Check for a double quote after
2807         a filename correctly.
2808
2809 2002-05-10  Jim Blandy  <jimb@redhat.com>
2810
2811         Properly track the size of the current objfile's .debug_line section.
2812         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2813         (DWARF_LINE_SIZE): New macro.
2814         (dwarf2_build_psymtabs_hard): Record the line section's size in
2815         the partial symbol table.
2816         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2817         symbol table.
2818
2819 2002-05-10  Petr Sorfa  <petrs@caldera.com>
2820
2821         * ia64-tdep.c: Handle breakpoints on L instruction type
2822         in MLX instruction bundle by moving the breakpoint to
2823         the third slot (X instruction type) as L holds only data.
2824
2825 2002-05-10  Kevin Buettner  <kevinb@redhat.com>
2826
2827         * dbxread.c (discarding_local_symbols_complaint): New complaint.
2828         (process_one_symbol): Complain about discarding local symbols
2829         due to a misplaced N_LBRAC entry.
2830
2831 2002-05-09  Elena Zannoni  <ezannoni@redhat.com>
2832
2833         From Daniel Berlin <dan@cgsoftware.com>
2834         * linespec.c (find_toplevel_char): '<' and '>' also increase and
2835         decrease the depth we are at, in the case of templates.
2836
2837 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
2838
2839         * mips-tdep.c (mips_float_register_type): New function.
2840         (mips_double_register_type): New function.
2841         (mips_print_register): Use them.
2842         (do_fp_register_row): Likewise.
2843
2844 2002-05-09  Daniel Jacobowitz  <drow@mvista.com>
2845
2846         * signals/signals.c (signals): Remove conditional compilation around
2847         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
2848         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2849
2850 2002-05-09  Michael Snyder  <msnyder@redhat.com>
2851
2852         * remote-rdp.c (remote_rdp_can_run): Remove.
2853
2854 2002-05-09  Tom Tromey  <tromey@redhat.com>
2855
2856         * jv-valprint.c (java_val_print): Handle `char' as a special case
2857         of TYPE_CODE_INT.
2858
2859 2002-05-09  Michael Snyder  <msnyder@redhat.com>
2860
2861         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2862         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2863         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2864         str r(0123),[sp,#nn].
2865         (arm_skip_prologue): Ditto.  Also make disassembly
2866         order-independent by placing it in a loop.
2867
2868 2002-05-06  Michael Snyder  <msnyder@redhat.com>
2869
2870         * stabsread.c (read_type): Add recognition for new attribute:
2871         "@V;" means that an array type is actually a vector.
2872         This is analogous to the vector flag that's been added to dwarf2.
2873
2874 2002-05-09  Mark Kettenis  <kettenis@gnu.org>
2875
2876         * i386-tdep.h (i386_abi): New enum.
2877         (struct gdbarch_tdep): Replace os_ident member with abi.
2878         (i386_gdbarch_register_os_abi): New prototype.
2879         * i386-tdep.c (i386_abi_names): New array.
2880         (process_note_abi_tag_sections): Removed.
2881         (process_note_sections): New function.
2882         (i386_elf_abi_from_note, i386_elf_abi): New functions.
2883         (struct i386_abi_handler): New struct.
2884         (i386_abi_handler_list): New variable.
2885         (i386_gdbarch_register_os_abi): New function.
2886         (i386_gdbarch_init): Adapt for the changes given above.
2887
2888 2002-05-08  Daniel Jacobowitz  <drow@mvista.com>
2889
2890         * gregset.h: Say "GNU/Linux".
2891
2892 2002-05-08  Elena Zannoni  <ezannoni@redhat.com>
2893
2894         * gdbtypes.c : Add new builtin type for 64 bit vectors.
2895         (build_gdbtypes): Build builtin_type_v2_float.
2896         (_initialize_gdbtypes): Register new builtin type.
2897
2898 2002-05-08  Andrew Cagney  <ac131313@redhat.com>
2899
2900         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2901         (clear_gdbarch_swap): New function.
2902         (initialize_non_multiarch): Call.
2903         (gdbarch_update_p): Before calling init(), swap out and clear the
2904         existing architecture.
2905         * gdbarch.c: Regenerate.
2906
2907 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2908
2909         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2910         alphanbsd-tdep.c.
2911
2912 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2913
2914         * sh-nbsd-nat.c: Rename to...
2915         * shnbsd-nat.c: ...this.
2916         * sh-nbsd-tdep.c: Rename to...
2917         * shnbsd-tdep.c: ...this.
2918         * sh-nbsd-tdep.h: Rename to...
2919         * shnbsd-tdep.h: ...this.
2920         * config/sh/nbsd.mh: Use shnbsd-nat.o.
2921         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2922
2923 2002-05-08  Richard Earnshaw  <rearnsha@arm.com>
2924
2925         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2926         concatenation for command help messages.
2927
2928 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2929
2930         * NEWS: Note new sh*-*-netbsdelf* configuration.
2931         * configure.host: Set gdb_host_cpu to sh for all sh*.
2932         (sh*-*-netbsdelf*): New host.
2933         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2934         (sh*-*-netbsdelf*): New target.
2935         * sh-nbsd-nat.c: New file.
2936         * sh-nbsd-tdep.c: New file.
2937         * sh-nbsd-tdep.h: New file.
2938         * config/sh/nbsd.mh: New file.
2939         * config/sh/nbsd.mt: New file.
2940         * config/sh/nm-nbsd.h: New file.
2941         * config/sh/tm-nbsd.h: New file.
2942
2943 2002-05-08  Jason Thorpe  <thorpej@wasabisystems.com>
2944
2945         * sh-tdep.c (sh_osabi_names): Declare.
2946         (process_note_abi_tag_sections): New function.
2947         (get_elfosabi): Ditto.
2948         (sh_gdbarch_register_os_abi): Ditto.
2949         (sh_dump_tdep): Ditto.
2950         _initialize_sh_tdep): Use gdbarch_register to register
2951         sh_gdbarch_init and sh_dump_tdep.
2952         * config/sh/tm-sh.h (sh_osabi): Declare.
2953         (gdbarch_tdep): Add sh_osabi and osabi_name members.
2954
2955 2002-05-07  Andrew Cagney  <ac131313@redhat.com>
2956
2957         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2958         (thumb_scan_prologue): Ditto.
2959         (arm_find_callers_reg): Ditto.
2960         (arm_frame_chain): Ditto.
2961         (arm_init_extra_frame_info): Ditto.
2962         (arm_frame_saved_pc): Ditto.
2963         (arm_pop_frame): Ditto.
2964         (arm_push_return_address): New function.
2965         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2966         call_dummy_location, call_dummy_breakpoint_offset_p,
2967         call_dummy_breakpoint_offset, call_dummy_p,
2968         call_dummy_stack_adjust_p, call_dummy_words,
2969         sizeof_call_dummy_words, call_dummy_start_offset,
2970         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2971         call_dummy_address, push_return_address and push_dummy_frame for
2972         generic dummy frames.
2973
2974 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
2975
2976         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2977         size computation for alloca.
2978         (sh_fp_frame_init_saved_regs): Likewise.
2979
2980 2002-05-07  Richard Earnshaw  <rearnsha@arm.com>
2981
2982         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2983         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2984         * arm-tdep.c (arm_store_return_value): Use them.
2985         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2986         * remote-rdp.c (remote_rdp_fetch_register): Use
2987         ARM_MAX_REGISTER_RAW_SIZE.
2988         (remote_rdp_store_register): Likewise.
2989
2990 2002-05-07  Michal Ludvig  <mludvig@suse.cz>
2991
2992         * dwarf2cfi.c: Code cleanup, removed unused variables,
2993         added default labels to switch {} statements.
2994         * x86-64-tdep.c: Ditto.
2995         * x86-64-linux-nat.c: Ditto.
2996
2997 2002-05-07  Jason Thorpe  <thorpej@wasabisystems.com>
2998
2999         * solib.h: Protect against multiple inclusion.
3000
3001 2002-05-06  Jim Blandy  <jimb@redhat.com>
3002
3003         Add first preprocessor macro-expansion files.
3004         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3005         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3006         (splay_tree_h, macroexp_h, macrotab_h): New variable.
3007         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3008         (COMMON_OBS): Add macrotab.o, macroexp.o.
3009         (macroexp.o, macrotab.o): New rules.
3010
3011         Separate the job of reading the line number info statement program
3012         header (...expialidocious) out into its own function.
3013         * dwarf2read.c (struct line_head, struct filenames, struct
3014         directories): Replace with...
3015         (struct line_header): New structure, containing the full
3016         contents of the statement program header, including the
3017         include directory and file name tables.
3018         (read_file_scope): If we have line number info, instead of just
3019         calling dwarf_decode_lines to do all the work, call
3020         dwarf_decode_line_header first to get a `struct line_header'
3021         containing the data in the statement program header, and then
3022         pass that to dwarf_decode_lines, which will pick up where that
3023         left off.  Be sure to clean up the `struct line_header' object.
3024         (dwarf_decode_line_header, free_line_header, add_include_dir,
3025         add_file_name): New functions.
3026         (dwarf_decode_lines): Move all the code to read the statement
3027         program header into dwarf_decode_line_header.  Take the line
3028         header it built as the first argument, instead of the offset to
3029         the compilation unit's line number info.  Use the new `struct
3030         line_header' type instead of the old structures.  No need to do
3031         cleanups here now, since we don't allocate anything.
3032         (dwarf2_statement_list_fits_in_line_number_section,
3033         dwarf2_line_header_too_long): New complaints.
3034
3035 2002-05-06  Elena Zannoni  <ezannoni@redhat.com>
3036
3037         * gdbtypes.c (init_vector_type): New function.
3038         (build_builtin_type_vec128): Simplify the representation of SIMD
3039         registers.
3040         (build_gdbtypes): Initialize new builtin vector types.
3041         (_initialize_gdbtypes): Register new vector types with gdbarch.
3042         (builtin_type_v4_float, builtin_type_v4_int32,
3043         builtin_type_v8_int16, builtin_type_v16_int8,
3044         builtin_type_v2_int32, builtin_type_v4_int16,
3045         builtin_type_v8_int8): New (renamed) SIMD types.
3046
3047 2002-05-06  Mark Kettenis  <kettenis@gnu.org>
3048
3049         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3050         (i387_fill_fxsave): Likewise.
3051
3052 2002-05-05  Alexandre Oliva  <aoliva@redhat.com>
3053
3054         * alpha-tdep.c (alpha_extract_return_value): Don't use
3055         non-constant array size in prototype.
3056
3057 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3058
3059         From Brian Taylor <briant at model dot com>:
3060         * ui-out.c (ui_out_field_core_addr): Use the function
3061         longest_local_hex_string_custom'to format addresses > 32 bits
3062         wide.
3063
3064         * ui-out.c (ui_out_field_core_addr): Update comment.
3065
3066 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3067
3068         * stack.c (select_and_print_frame): Make static.  Delete the
3069         parameter `level'.
3070         (func_command): Update call.
3071         (select_frame_command): Delete code computing the frame level.
3072         * frame.h (select_and_print_frame): Delete declaration.
3073
3074 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3075
3076         * sparc-tdep.c (sparc_get_saved_register): Comment why
3077         get_prev_frame call is safe.
3078
3079 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3080
3081         * frame.h (select_frame): Delete level parameter.
3082         * stack.c (select_frame): Update.  Use frame_relative_level to
3083         obtain the frame's level.
3084         (select_and_print_frame): Update call.
3085         (select_frame_command): Ditto.
3086         (up_silently_base): Ditto.
3087         (down_silently_base): Ditto.
3088         * ocd.c (ocd_start_remote): Ditto.
3089         * remote-rdp.c (remote_rdp_open): Ditto.
3090         * remote-mips.c (mips_initialize): Ditto.
3091         (common_open): Ditto.
3092         * remote-e7000.c (e7000_start_remote): Ditto.
3093         * m3-nat.c (select_thread): Ditto.
3094         * hppa-tdep.c (child_get_current_exception_event): Ditto.
3095         (child_get_current_exception_event): Ditto.
3096         * varobj.c (varobj_create): Ditto.
3097         (varobj_update): Ditto.
3098         (c_value_of_root): Ditto.
3099         * tracepoint.c (finish_tfind_command): Ditto.
3100         * corelow.c (core_open): Ditto.
3101         * arch-utils.c (generic_prepare_to_proceed): Ditto.
3102         * thread.c (info_threads_command): Ditto.
3103         (switch_to_thread): Ditto.
3104         * infrun.c (normal_stop): Ditto.
3105         (restore_selected_frame): Ditto.
3106         (restore_inferior_status): Ditto.
3107         * breakpoint.c (insert_breakpoints): Ditto.
3108         (watchpoint_check): Ditto.
3109         (bpstat_stop_status): Ditto.
3110         (do_enable_breakpoint): Ditto.
3111         * blockframe.c (flush_cached_frames): Ditto.
3112         (reinit_frame_cache): Ditto.
3113
3114 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3115
3116         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3117         maintainer.
3118
3119 2002-05-04  Jim Blandy  <jimb@redhat.com>
3120
3121         * gdbtypes.c (replace_type): Doc fix.
3122
3123 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3124
3125         * valprint.c (strcat_longest): Delete commented out function.
3126         Update copyright.
3127
3128 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3129
3130         * MAINTAINERS: Mark a29k as deleted.
3131         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
3132         Move new configurations to the top.
3133         * configure.tgt: Remove a29k.
3134         * config/a29k/tm-vx29k.h: Delete.
3135         * config/a29k/vx29k.mt: Delete.
3136         * config/a29k/tm-a29k.h: Delete.
3137         * config/a29k/a29k-udi.mt: Delete.
3138         * config/a29k/a29k.mt: Delete.
3139         * a29k-tdep.c: Delete.
3140         * remote-udi.c: Delete.
3141         * remote-mm.c: Delete.
3142         * remote-eb.c: Delete.
3143         * remote-adapt.c: Delete.
3144         * Makefile.in: Remove obsolete code.
3145         * gdbserver/Makefile.in: Ditto.
3146         * config/s390/s390x.mt: Ditto.
3147         * config/s390/s390.mt: Ditto.
3148         * config/sparc/sparclynx.mh: Ditto.
3149         * config/sparc/linux.mh: Ditto.
3150         * config/pa/hppaosf.mh: Ditto.
3151         * config/pa/hppabsd.mh: Ditto.
3152         * config/ns32k/nbsd.mt: Ditto.
3153         * config/mips/vr5000.mt: Ditto.
3154         * config/m68k/sun3os4.mh: Ditto.
3155         * config/m68k/nbsd.mt: Ditto.
3156         * config/m68k/m68klynx.mh: Ditto.
3157         * config/m32r/m32r.mt: Ditto.
3158         * config/i386/x86-64linux.mt: Ditto.
3159         * config/i386/nbsdelf.mt: Ditto.
3160         * config/i386/nbsd.mt: Ditto.
3161         * config/i386/i386lynx.mh: Ditto.
3162
3163 2002-05-04  Andrew Cagney  <ac131313@redhat.com>
3164
3165         * target.c (debug_print_register): New function.  Handle oversize
3166         registers.
3167         (debug_to_fetch_registers): Call.
3168         (debug_to_store_registers): Call.
3169
3170 2002-05-03  Jim Blandy  <jimb@redhat.com>
3171
3172         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3173         (read_type): Doc fix.
3174         * gdbtypes.c (replace_type): Doc fix.
3175
3176         * stabsread.c (multiply_defined_struct): New complaint.
3177         (read_struct_type): If the type we were passed isn't empty, or
3178         incomplete, don't read the new struct type into it; complain,
3179         and return the original type unchanged.  Take a new `type_code'
3180         argument, which is the type code for the new type.
3181         (read_type): Rather than storing the type's type code here, pass
3182         it as an argument to read_struct_type, and let that take care of
3183         storing it.  That way, we don't overwrite the original type code,
3184         so read_struct_type can use it to decide whether we're overwriting
3185         something we shouldn't.
3186         (complain_about_struct_wipeout): New function.
3187
3188 2002-05-03  Andrew Cagney  <ac131313@redhat.com>
3189
3190         * gdbarch.sh: Assert that gdbarch is non-NULL.
3191         * gdbarch.c: Regenerate.
3192
3193 2002-05-03  Jason Merrill  <jason@redhat.com>
3194
3195         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3196         and return NULL.
3197
3198 2002-05-03  Michal Ludvig  <mludvig@suse.cz>
3199
3200         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3201         (x86_64_dwarf2gdb_regno_map_length),
3202         (x86_64_dwarf2_reg_to_regnum): Added.
3203         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3204         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3205         (_initialize_x86_64_tdep): Synced with the change above.
3206         (x86_64_skip_prologue): Reformulated message.
3207
3208 2002-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
3209
3210         * f-exp.y: Also use new prev_lexptr variable
3211         to improve error reporting. Based on Michael Snyder
3212         2002-04-24 dated patch to c-exp.y.
3213         * jv-exp.y: Likewise.
3214         * m2-exp.y: Likewise.
3215
3216 2002-05-02  Elena Zannoni  <ezannoni@redhat.com>
3217
3218         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3219         we are dealing with vectors.
3220
3221 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
3222
3223         * config/m68k/tm-nbsd.h: Obvious fix,
3224         correct machine name.
3225
3226 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
3227
3228         * p-typeprint.c (pascal_type_print_base): Add support
3229         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3230
3231 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
3232
3233         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3234         for fondamental pascal 'char' type.
3235
3236 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
3237
3238         * p-lang.h (is_pascal_string_type): Declaration changed,
3239         new sixth argument of type char ** added.
3240         * p-lang.c (is_pascal_string_type): Implementation
3241         changed. Args length_pos, length_size, string_pos, char_size
3242         can now be NULL. New argument arrayname set to the field
3243         name of the char array. Return value set to char array
3244         field index plus one.
3245         * p-valprint.c (pascal_val_print): Adapt to new declaration of
3246         is_pascal_string_type function.
3247
3248 2002-05-02  Andrew Cagney  <cagney@redhat.com>
3249
3250         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3251         <cagney@redhat.com> change.
3252         * gdbarch.c: Regenerate.
3253
3254 2002-05-02  Andrew Cagney  <cagney@redhat.com>
3255
3256         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3257         before probing for a new one.  Detect errorenous gdbarch_init
3258         functions.
3259         * gdbarch.c: Regenerate.
3260
3261 2002-05-01  Andrew Cagney  <cagney@redhat.com>
3262
3263         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3264         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
3265         * config/v850/tm-v850.h: Ditto.  Update copyright.
3266
3267 2002-04-30  Andrew Cagney  <ac131313@redhat.com>
3268
3269         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3270         current_gdbarch.
3271
3272 2002-04-30  Michael Snyder  <msnyder@redhat.com>
3273
3274         * arm-tdep.c: Whitespace clean-ups.
3275         (arm_skip_prologue): Fix thinko; two lines
3276         should have been removed as part of 4/24 change.
3277
3278 2002-04-30  Kevin Buettner  <kevinb@redhat.com>
3279
3280         * rs6000-tdep.c: Added comment describing how fpscr register
3281         numbers were chosen.
3282
3283 2002-04-30  Michael Snyder  <msnyder@redhat.com>
3284
3285         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3286
3287 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
3288
3289         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3290         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3291         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3292
3293 2002-04-29  Kevin Buettner  <kevinb@redhat.com>
3294
3295         From Louis Hamilton <hamilton@redhat.com>:
3296         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3297         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3298         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3299         not bfd-private xcoff data, to determine wordsize.
3300         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3301
3302 2002-04-29  Andrew Cagney  <ac131313@redhat.com>
3303
3304         GDB 5.2 released from 5.2 branch.
3305
3306 2002-04-29  Michal Ludvig  <mludvig@suse.cz>
3307
3308         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3309         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3310         (x86_64_register_info_table): Added comments with register numbers.
3311
3312 2002-04-29  Elena Zannoni  <ezannoni@redhat.com>
3313
3314         * rs6000-tdep.c (rs6000_extract_return_value,
3315         rs6000_store_return_value): Handle returning vectors.
3316         (rs6000_gdbarch_init): Use
3317         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3318         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3319         New function.
3320         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3321         vectors.
3322         (ppc_sysv_abi_push_arguments): Handle vector parameters.
3323         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
3324
3325 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
3326
3327         * hpread.c (hpread_psymtab_to_symtab_1,
3328         hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3329         with fprintf_unfiltered (gdb_stderr,...).
3330
3331 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
3332
3333         * remote-array.c (printf_monitor, write_monitor,
3334         array_insert_breakpoint, array_remove_breakpoint ):
3335         Replace fprintf (stderr,...
3336         with fprintf_unfiltered (gdb_stderr,....
3337         * remote-es.c: Likewise.
3338         * remote-os9k.c: Likewise.
3339         * remote-st.c: Likewise.
3340
3341 2002-04-28  Andreas Schwab  <schwab@suse.de>
3342
3343         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3344         linux-proc.o and gcore.o.
3345
3346 2002-04-26  Michal Ludvig  <mludvig@suse.cz>
3347
3348         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3349         code without frame pointers.
3350
3351 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
3352
3353         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3354         ON_STACK is needed.
3355
3356 2002-04-26  Ben Elliston  <bje@redhat.com>
3357
3358         * target.c (do_xfer_memory): Correct reference to the new option
3359         "trust-readonly-sections".
3360
3361 2002-04-26  Elena Zannoni  <ezannoni@redhat.com>
3362
3363         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3364         * gdbtypes.c (recursive_dump_type): Output the vector flag.
3365         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3366         vectors.
3367         (read_array_type): Record the fact that this array type is really a
3368         vector (i.e. are passed in by value).
3369
3370 2002-04-26  Jason Thorpe  <thorpej@wasabisystems.com>
3371
3372         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3373         * alpha-tdep.c (alpha_sigcontext_addr): New function.
3374         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3375         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3376         * alpha-linux-tdep.c: Include frame.h.
3377         (alpha_linux_sigcontext_addr): New function.
3378         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3379         alpha_linux_sigcontext_addr.
3380         * alpha-osf1-tdep.c: Include gdbcore.h.
3381         (alpha_osf1_sigcontext_addr): New function.
3382         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3383         alpha_osf1_sigcontext_addr.
3384         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3385         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3386
3387 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
3388
3389         * stack.c (selected_frame_level):
3390         (select_frame): Do not set selected_frame_level.
3391         * frame.h (selected_frame_level): Delete declaration.
3392
3393 2002-04-26  Andrew Cagney  <ac131313@redhat.com>
3394
3395         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3396         convert_from_func_ptr-addr when AIX / PowerOpen.
3397
3398 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
3399
3400         * valops.c (hand_function_call): Call
3401         generic_save_call_dummy_addr.
3402         * frame.h (generic_save_call_dummy_addr): Declare.
3403         * blockframe.c (struct dummy_frame): Add fields call_lo and
3404         call_hi.
3405         (generic_find_dummy_frame): Check for PC in range call_lo to
3406         call_hi instead of entry_point_address.
3407         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3408         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
3409         (generic_save_call_dummy_addr): New function.
3410
3411 2002-04-24  David S. Miller  <davem@redhat.com>
3412
3413         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3414         sparc_skip_prologue.
3415         (sparc_skip_prologue): Kill frameless_p arg, and use line number
3416         information to find prologue when possible.
3417         (sparc_prologue_frameless_p): Call examine_prologue directly.
3418         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3419         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3420         second argument.
3421         (SKIP_PROLOGUE): Likewise.
3422
3423 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
3424
3425         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3426         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3427         indicate that the condition it was testing is always true.
3428         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3429         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3430         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3431
3432 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
3433
3434         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3435         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3436         tdep->jb_pc and tdep->jb_elt_size.
3437         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3438         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3439         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3440         * alpha-nat.c (get_longjmp_target): Remove.
3441         (JB_ELEMENT_SIZE): Ditto.
3442         (JB_PC): Ditto.
3443         * alpha-tdep.c (alpha_get_longjmp_target): New function.
3444         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
3445         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3446         to alpha_get_longjmp_target.
3447         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3448         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3449         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3450
3451 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
3452
3453         * README: Update to GDB 5.2.
3454
3455 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
3456
3457         * gdbarch.sh (LC_ALL): Set to `c'.
3458
3459 2002-04-25  Theodore A. Roth  <troth@verinet.com>
3460
3461         * avr-tdep.c: Ran through gdb_indent.sh.
3462
3463 2002-04-25  Theodore A. Roth  <troth@verinet.com>
3464
3465         * MAINTAINERS: Add myself as AVR maintainer.
3466         * NEWS: Note new target avr.
3467
3468 2002-04-25  Theodore A. Roth  <troth@verinet.com>
3469
3470         * Makefile.in: Add support for AVR target.
3471         * configure.tgt: Add support for AVR target.
3472         * avr-tdep.c: New file
3473         * config/avr/avr.mt: New file.
3474
3475 2002-04-25  Theodore A. Roth  <troth@verinet.com>
3476
3477         * MAINTAINERS: Add myself to write-after-approval.
3478
3479 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
3480
3481         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3482         with fprintf_unfiltered (gdb_stderr,....
3483
3484 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3485
3486         Fix PR gdb/508.
3487         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3488
3489 2002-04-25  Pierre Muller  <muller@ics.u-strasbg.fr>
3490
3491         * p-exp.y: Also use new prev_lexptr variable
3492         to improve error reporting. Based on Michael Snyder
3493         2002-04-24 dated patch to c-exp.y.
3494
3495 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
3496
3497         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3498         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3499         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
3500         to 0.
3501         * config/alpha/tm-alpha.h: Remove forward decls of struct type
3502         and struct value.
3503         (FUNCTION_START_OFFSET): Remove.
3504         (BREAKPOINT): Ditto.
3505
3506 2002-04-25  Jason Thorpe  <thorpej@wasabisystems.com>
3507
3508         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3509         * NEWS: Ditto.
3510
3511 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3512
3513         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3514         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3515         alpha_linux_pc_in_sigtramp.
3516         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3517         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3518         alpha_osf1_pc_in_sigtramp.
3519         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3520         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3521         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3522         alphafbsd_pc_in_sigtramp.
3523         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3524         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3525         alphanbsd_pc_in_sigtramp.
3526         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3527         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3528
3529 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3530
3531         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3532
3533 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3534
3535         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3536         alphanbsd-tdep.c.
3537         (alphanbsd-nat.o): New dependency list.
3538         (alphanbsd-tdep.o): Ditto.
3539         * NEWS: Note new native NetBSD/alpha configuration.
3540         * alphanbsd-nat.c: New file.
3541         * alphanbsd-tdep.c: Ditto.
3542         * configure.host (alpha*-*-netbsd*): New host.
3543         * configure.tgt (alpha*-*-netbsd*): New target.
3544         * config/alpha/nbsd.mh: New file.
3545         * config/alpha/nbsd.mt: Ditto.
3546         * config/alpha/nm-nbsd.h: Ditto.
3547         * config/alpha/tm-nbsd.h: Ditto.
3548
3549 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3550
3551         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3552         (alpha-osf1-tdep.o): New dependency list.
3553         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3554         and skip_sigtramp_frame members.
3555         * alpha-linux-tdep.c: Include gdbcore.h.
3556         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3557         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3558         * alpha-osf1-tdep.c: New file.
3559         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3560         alpha-osf1-dep.c.
3561         (alpha_frame_past_sigtramp_frame): New function.
3562         (alpha_dynamic_sigtramp_offset): Ditto.
3563         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3564         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3565         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3566         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3567         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3568         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3569         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3570         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3571         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3572         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3573         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
3574         to find_solib_trampoline_target.
3575         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3576         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3577         (SKIP_TRAMPOLINE_CODE): Remove.
3578         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3579         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3580         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3581         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3582         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3583         (PROC_SIGTRAMP_MAGIC): Ditto.
3584         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3585         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3586         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3587         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3588         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3589
3590 2002-04-24  Jason Thorpe  <thorpej@wasabisystems.com>
3591
3592         * NEWS: Note that Alpha targets are now multi-arch.
3593
3594 2002-04-24  Michael Snyder  <msnyder@redhat.com>
3595
3596         * parser-defs.h (prev_lexptr): New external variable.
3597         * parse.c (parse_exp_1): Set prev_lexptr to null before
3598         calling the language-specific parser.
3599         * c-exp.y (yylex): Set prev_lexptr to start of current token.
3600         (yyerror): Use prev_lexptr in error reporting.
3601
3602 2002-04-24  Daniel Jacobowitz  <drow@mvista.com>
3603
3604         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3605         * gregset.h: If FILL_FPXREGSET is defined, provide
3606         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3607         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3608         is defined, call fill_fpxregset.
3609
3610 2002-04-24  Roland McGrath  <roland@frob.com>
3611
3612         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3613         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3614         (supply_gregset, supply_fpregset): New functions.
3615
3616         * gnu-nat.c (gnu_find_memory_regions): New function.
3617         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3618         (gnu_xfer_memory): Add a cast.
3619
3620 2002-04-24  Michael Snyder  <msnyder@redhat.com>
3621
3622         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
3623         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
3624         of argument regs ("str r(0123), [r11, #-nn"]).
3625         (arm_skip_prologue): Better handling for frameless functions.
3626         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
3627         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3628
3629 Wed Apr 24 14:22:21 2002  Andrew Cagney  <cagney@redhat.com>
3630
3631         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3632         NUM_PSEUDO_REGS can be used.
3633
3634 2002-04-24  Andrew Cagney  <ac131313@redhat.com>
3635
3636         * arch-utils.h: Update copyright.
3637
3638         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3639         * gdbarch.h, gdbarch.c: Re-generate.
3640
3641         * inferior.h (IN_SIGTRAMP): Delete definition.
3642         * arch-utils.c (legacy_pc_in_sigtramp): New function.
3643         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3644
3645         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3646         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3647         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
3648         (find_proc_framesize): Ditto.
3649         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3650         (alpha_init_extra_frame_info): Ditto.
3651         * infrun.c (handle_inferior_event): Ditto.
3652         (handle_inferior_event): Ditto.
3653         (check_sigtramp2): Ditto.
3654         * blockframe.c (create_new_frame): Ditto.
3655         (get_prev_frame): Ditto.
3656         * ppc-linux-tdep.c: Update comments.
3657         * i386-linux-tdep.c: Update comments.
3658         * breakpoint.c (bpstat_what): Update comment.
3659
3660 2002-04-24  Michal Ludvig  <mludvig@suse.cz>
3661
3662         * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
3663         (regsets_store_inferior_registers): Removed cast to int from
3664         ptrace() calls.
3665         * gdbserver/regcache.h: Added declaration of struct inferior_info.
3666
3667 2002-04-24  David S. Miller  <davem@redhat.com>
3668
3669         * i960-tdep.c (register_in_window_p): New function.
3670         (i960_find_saved_register): Use it instead of
3671         REGISTER_IN_WINDOW_P.
3672         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3673
3674         * symtab.h (find_stab_function_addr): Kill extern.
3675         * minsyms.c (find_stab_function_addr): Remove from here...
3676         * dbxread.c: ... to here, and mark it static.
3677
3678 2002-04-20  David S. Miller  <davem@redhat.com>
3679
3680         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3681         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3682
3683 2002-04-21  David S. Miller  <davem@redhat.com>
3684
3685         * remote-vxsparc.c (vx_read_register): Fix typo, we want
3686         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3687         (vx_write_register): Likewise.
3688
3689 2002-04-23  J. Brobecker  <brobecker@gnat.com>
3690
3691         * source.c (is_regular_file): New function.
3692         (openp): Check wether file to open is a regular file
3693         to avoid opening directories.
3694
3695 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3696
3697         * findvar.c (extract_signed_integer): Cast printf argument
3698         to suppress format warning.
3699         (extract_unsigned_integer): Likewise.
3700         * infcmd.c (registers_info): Likewise.
3701         * top.c (get_prompt_1): Likewise.
3702         * valops.c (value_assign): Likewise.
3703         * valprint.c (print_decimal): Likewise.
3704
3705 2002-04-22  H.J. Lu  (hjl@gnu.org)
3706
3707         * c-exp.y (typebase): Support
3708
3709         [long|long long|short] [signed|unsigned] [int|]
3710
3711         and
3712
3713         signed [long|long long|short] int
3714
3715 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3716
3717         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3718         and vax-tdep.h.
3719         * vax-tdep.h: New file.
3720         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3721         Make several routines static.
3722         (vax_get_saved_register): New function.
3723         (vax_gdbarch_init): New function.
3724         (_initialize_vax_tdep): Register vax_gdbarch_init.
3725         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3726         Remove macros now under the control of gdbarch.
3727
3728 2002-04-22  Michael Snyder  <msnyder@redhat.com>
3729
3730         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3731         Some whitespace and coding standards tweaks.
3732
3733 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3734
3735         * vax-tdep.c: Include regcache.h.
3736         (vax_call_dummy_words): New.
3737         (sizeof_vax_call_dummy_words): New.
3738         (vax_fix_call_dummy): New function.
3739         (vax_saved_pc_after_call): Ditto.
3740         * config/vax/tm-vax.h: Don't include regcache.h.
3741         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3742         (CALL_DUMMY): Remove.
3743         (CALL_DUMMY_WORDS): Define.
3744         (SIZEOF_CALL_DUMMY_WORDS): Define.
3745         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3746
3747 2002-04-18  Michael Snyder  <msnyder@redhat.com>
3748
3749         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3750
3751 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3752
3753         * vax-tdep.c (vax_frame_chain): New function.
3754         (vax_push_dummy_frame): Ditto.
3755         (vax_pop_frame): Ditto.
3756         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3757         (FRAMELESS_FUNCTION_INVOCATION): Use
3758         generic_frameless_function_invocation_not.
3759         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3760         (POP_FRAME): Use vax_pop_frame.
3761
3762 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3763
3764         * vax-tdep.c (vax_store_struct_return): New function.
3765         (vax_extract_return_value): Ditto.
3766         (vax_store_return_value): Ditto.
3767         (vax_extract_struct_value_address): Ditto.
3768         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3769         vax_store_struct_return.
3770         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3771         (STORE_RETURN_VALUE): Use vax_store_return_value.
3772         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3773
3774 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3775
3776         * vax-tdep.c (vax_frame_saved_pc): New function.
3777         (vax_frame_args_address_correct): Ditto.
3778         (vax_frame_args_address): Ditto.
3779         (vax_frame_locals_address): Ditto.
3780         (vax_frame_num_args): Move code to be in proximity to
3781         other frame-related functions.
3782         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3783         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3784         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3785         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3786         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3787
3788 2002-04-22  H.J. Lu  (hjl@gnu.org)
3789
3790         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3791         includedir.
3792
3793 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3794
3795         * vax-tdep.c (vax_frame_init_saved_regs): New function.
3796         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3797         (FRAME_INIT_SAVED_REGS): New macro.
3798
3799 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3800
3801         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3802
3803 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3804
3805         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3806         where needed.
3807         (fetch_osf_core_registers): Likewise.
3808         (supply_gregset): Likewise.
3809
3810 2002-04-22  J. Brobecker  <brobecker@gnat.com>
3811
3812         * symfile.h (get_section_index): Define.
3813         * symfile.c (get_section_index): New function.
3814         * mdebugread.c (SC_IS_SBSS): New macro.
3815         (SC_IS_BSS): Return true for the scBss storage class only, as
3816         the scSBss storage class refers to the .sbss section.
3817         (parse_partial_symbols): Discard the symbols which associated
3818         section does not exist.
3819         Make sure to use the .sbss section index for symbols which
3820         storage class is scBss, rather than using the .bss section index.
3821
3822 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
3823
3824         * vax-tdep.c: Update copyright years.
3825         (vax_register_name): New function.
3826         (vax_register_byte): Ditto.
3827         (vax_register_raw_size): Ditto.
3828         (vax_register_virtual_size): Ditto.
3829         (vax_register_virtual_type): Ditto.
3830         * config/vax/tm-vax.h: Update copyright years.
3831         (REGISTER_NAMES): Remove.
3832         (REGISTER_NAME): Define.
3833         (REGISTER_BYTE): Use vax_register_byte.
3834         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3835         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3836         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3837
3838 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3839
3840         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3841         declaration
3842         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3843
3844 2002-04-21  David S. Miller  <davem@redhat.com>
3845
3846         * arch-utils.c (generic_prologue_frameless_p): Kill
3847         SKIP_PROLOGUE_FRAMELESS_P code.
3848         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3849         references.
3850         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3851         * arc-tdep.c (arc_prologue_frameless_p): Implement.
3852         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3853         references.
3854         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3855         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3856         (sparc_gdbarch_init): Pass it to
3857         set_gdbarch_prologue_frameless_p.
3858
3859 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3860
3861         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3862         (alphabsd-nat.o): New dependency list.
3863
3864 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3865
3866         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3867         alphafbsd-tdep.c.
3868         (alpha-linux-tdep.o): New dependency list.
3869         (alphafbsd-tdep.o): Likewise.
3870
3871 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3872
3873         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
3874         to here...
3875         * alpha-tdep.c: ...from here.
3876         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3877
3878 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3879
3880         * config/alpha/tm-alpha.h: Move alpha_software_single_step
3881         prototype from here...
3882         * alpha-tdep.h: ...to here.
3883
3884 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3885
3886         * frame.h (selected_frame_level): Document as deprecated.
3887         (frame_relative_level): Declare.
3888         * stack.c (frame_relative_level): New function.
3889         (selected_frame_level): Document as deprecated.
3890         (select_frame): Do not set the selected_frame_level.
3891
3892         * stack.c (frame_info, record_selected_frame): Update.
3893         (frame_command, current_frame_command): Update.
3894         (up_silently_base, up_command, down_silently_base): Update.
3895         (down_command): Update.
3896         * inflow.c (kill_command): Update.
3897         * tracepoint.c (finish_tfind_command): Update.
3898         * corelow.c (core_open): Update.
3899         * thread.c (info_threads_command): Update.
3900         (do_captured_thread_select): Update.
3901         * infcmd.c (finish_command): Update.
3902         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3903
3904 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3905
3906         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3907
3908 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3909
3910         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
3911         type const.
3912
3913 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3914
3915         * alphafbsd-tdep.c: Update copyright years.  Include
3916         alpha-tdep.h.
3917         (alphafbsd_use_struct_convention): Make static.
3918         (alphafbsd_init_abi): New function.
3919         (_initialize_alphafbsd_tdep): New function.
3920         * config/alpha/tm-fbsd.h: Update copyright years.
3921         (USE_STRUCT_CONVENTION): Remove.
3922
3923 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3924
3925         * alpha-tdep.c (alpha_abi_handler): New structure to describe
3926         an Alpha ABI variant.
3927         (alpha_abi_handler_list): Declare.
3928         (alpha_gdbarch_register_os_abi): New function.
3929         (alpha_gdbarch_init): Give registered ABI variant handlers a
3930         chance to tweak the gdbarch once we have set up defaults.
3931         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3932
3933 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3934
3935         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3936         to standard_coerce_float_to_double.
3937         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3938
3939 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3940
3941         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3942         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3943         from gdbarch_tdep rather than a constant.
3944         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3945         the default text address for all Alpha Unix ABIs.
3946         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3947         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3948
3949 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
3950
3951         * alpha-tdep.h: New file.  Includes several Alpha target constants
3952         taken from...
3953         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
3954         let gdbarch deal with.
3955         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3956         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3957         to dependency list.
3958         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
3959         Alpha target register names.
3960         * alphabsd-nat.c: Likewise.
3961         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
3962         Alpha target register names.  Make serveral routines static.
3963         (alpha_get_saved_register): New function.
3964         (alpha_abi_names): New.
3965         (process_note_abi_tag_sections): New function.
3966         (get_elfosabi): New function.
3967         (alpha_gdbarch_init): New function.
3968         (alpha_dump_tdep): New function.
3969         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3970
3971 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3972
3973         * frame.c (find_saved_register): Delete #ifdef
3974         HAVE_REGISTER_WINDOWS code.
3975         * config/sparc/tm-sparc.h: Update comments.
3976         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3977
3978 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
3979
3980         * i960-tdep.c (i960_find_saved_register): New function.
3981         (i960_get_saved_register): New function.
3982         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3983         (i960_get_saved_register): Declare.
3984         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3985
3986 2002-04-20  David S. Miller  <davem@redhat.com>
3987
3988         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3989
3990 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
3991
3992         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3993         instead of NUM_PSEUDO_REGS.
3994
3995 2002-04-20  David S. Miller  <davem@redhat.com>
3996
3997         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3998         GDB_MULTI_ARCH_PARTIAL
3999         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4000         define, let tm-sp64.h do it.
4001
4002 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
4003
4004         * frame.c (find_saved_register): Avoid a NULL pointer
4005         dereference and actually walk the frame list.
4006
4007 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
4008
4009         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4010         sorted in most most-recent-used order.  Document.
4011         * gdbarch.h, gdbarch.c: Regenerate.
4012
4013 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
4014
4015         * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4016         (add_inferior): Call create_register_cache.
4017         (clear_inferiors): Call free_register_cache.
4018         (inferior_regcache_data, set_inferior_regcache_data): New functions.
4019         * gdbserver/regcache.c (struct inferior_regcache_data): New.
4020         (registers): Remove.
4021         (get_regcache): New function.
4022         (create_register_cache, free_register_cache): New functions.
4023         (set_register_cache): Don't initialize the register cache here.
4024         (registers_to_string, registers_from_string, register_data): Call
4025         get_regcache.
4026         * gdbserver/regcache.h: Add prototypes.
4027         * gdbserver/server.h: Likewise.
4028
4029 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
4030
4031         * gdbserver/mem-break.c: New file.
4032         * gdbserver/mem-break.h: New file.
4033         * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4034         dependencies.
4035         * gdbserver/inferiors.c (struct inferior_info): Add target_data
4036         member.
4037         (clear_inferiors): Free target_data member if set.
4038         (inferior_target_data, set_inferior_target_data): New functions.
4039         * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4040         (i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
4041         * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4042         (struct inferior_linux_data): New.
4043         (linux_create_inferior): Use set_inferior_target_data.
4044         (linux_attach): Likewise.  Call add_inferior.
4045         (linux_wait_for_one_inferior): New function.
4046         (linux_wait): Call it.
4047         (linux_write_memory): Add const.
4048         (initialize_low): Call set_breakpoint_data.
4049         * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4050         handling members.
4051         * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4052         call.
4053         * gdbserver/server.h: Include mem-break.h.  Update inferior.c
4054         prototypes.
4055         * gdbserver/target.c (read_inferior_memory)
4056         (write_inferior_memory): New functions.
4057         * gdbserver/target.h (read_inferior_memory)
4058         (write_inferior_memory): Change macros to prototypes.
4059         (struct target_ops): Update comments.  Add const to write_memory
4060         definition.
4061
4062 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
4063
4064         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4065         instead of ->prev.
4066         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4067         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4068         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4069         instead of ->prev.
4070
4071 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
4072
4073         Fix PR gdb/471.
4074         * gdbtypes.c (init_simd_type): Rewrite using new functions.
4075         (build_builtin_type_vec128): Ditto.
4076         (append_composite_type_field): Fix calculation of type length in
4077         union case.
4078
4079 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
4080
4081         * config/djgpp/README: Update.
4082
4083         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4084         compiler warnings.
4085
4086 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
4087
4088         * alpha-tdep.c (setup_arbitrary_frame): Rename...
4089         (alpha_setup_arbitrary_frame): ...to this.
4090         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4091         for alpha_setup_arbitrary_frame.
4092
4093 2002-04-18  Andrew Cagney  <cagney@redhat.com>
4094
4095         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4096         * gdbarch.h, gdbarch.c: Regenerate.
4097
4098         * defs.h (breakpoint_from_pc_fn): Delete type definition.
4099         * target.h (memory_breakpoint_from_pc): Update declaration.
4100         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4101
4102         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4103         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4104         * mem-break.c (memory_breakpoint_from_pc): Ditto.
4105         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4106         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4107         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4108         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4109         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4110         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4111         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4112         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4113         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4114
4115         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4116         const pointer.
4117         * monitor.c (monitor_insert_breakpoint): Ditto.
4118         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4119
4120         * config/mcore/tm-mcore.h: Update copyright.
4121         * mem-break.c: Ditto.
4122         * xstormy16-tdep.c: Ditto.
4123
4124 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4125
4126         * p-exp.y: Add precedence rule for '^' token.
4127         This removes the shift/reduce conflicts.
4128         Remove the comment concerning these shift/reduce conflicts.
4129
4130 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
4131
4132         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4133         (registers_powerpc_nofp): New register set for processors
4134         without floating point unit.
4135
4136 2002-04-18  David S. Miller  <davem@redhat.com>
4137
4138         * MAINTAINERS: Add myself to write-after-approval.
4139
4140 2002-04-17  Michael Snyder  <msnyder@redhat.com>
4141
4142         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4143
4144 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
4145
4146         * rs6000-tdep.c (frame_initial_stack_address): Use
4147         frame_register_read to read the alloca_reg.
4148
4149 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
4150
4151         * frame.c (find_saved_register): Find saved registers in the next
4152         not prev frame.
4153         Fix PR gdb/365.
4154
4155 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
4156
4157         * gdbarch.sh (LANG): Set to ``c''.
4158
4159 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
4160
4161         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
4162
4163 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
4164
4165         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4166         Update copyright.
4167
4168         * hpread.c (hpread_get_lntt): Add declaration.
4169         Also fix PR gdb/391.
4170
4171 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
4172
4173         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4174         * aclocal.m4, configure: Re-generate.
4175         Fix PR gdb/391.
4176
4177 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
4178
4179         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4180         instead of tm_print_insn.
4181
4182 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
4183
4184         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4185
4186 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
4187
4188         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4189         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4190         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4191
4192 2002-04-12  Don Howard  <dhoward@redhat.com>
4193
4194         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4195         max_user_call_depth.
4196         (init_cmd_lists): Initialize the new value;
4197         * cli/cli-script.c (execute_user_command): Limit the call depth of
4198         user defined commands.  This avoids a core-dump when user commands
4199         are infinitly recursive.
4200
4201 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
4202
4203         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4204         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4205         from tdep struct instead of DEFAULT_LR_SAVE.
4206         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4207         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4208         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4209
4210 2002-04-12  Michael Snyder  <msnyder@redhat.com>
4211
4212         * Remote.c: Spelling fix.
4213         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4214         If no symbol found for "sbrk", try "_sbrk".
4215         (make_output_phdrs): Use bfd_section_name.
4216         (gcore_copy_callback): Use bfd_section_name.
4217         * eval.c: Indentation fix-ups.
4218         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4219         in case it gets applied to an address that is already
4220         in the instruction space.
4221         * cli/cli-decode.c (help_list): Allow long lines to wrap.
4222         * symfile.c: Fix indentation, long lines.
4223         * source.c: White space fix-up.
4224
4225 2002-04-12  Andrew Cagney  <cagney@redhat.com>
4226
4227         * defs.h (read_relative_register_raw_bytes): Delete declaration.
4228         * frame.c (frame_register_read): New function.  Return non-zero on
4229         success.
4230         (read_relative_register_raw_bytes_for_frame): Delete.
4231         (read_relative_register_raw_bytes): Delete.
4232         * frame.h (frame_register_read): Declare.
4233         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
4234         * sh-tdep.c: Ditto.
4235         * infcmd.c (do_registers_info): Ditto.
4236         * hppa-tdep.c: Ditto.
4237         * rs6000-tdep.c: Ditto.
4238         * h8500-tdep.c: Ditto.
4239         * mips-tdep.c: Ditto.
4240         * h8300-tdep.c: Ditto.
4241         * z8k-tdep.c: Ditto.
4242
4243 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
4244
4245         From Jimi X <jimix@watson.ibm.com>:
4246         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4247         64-bit SysV ABI.
4248
4249 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
4250
4251         From Jimi X <jimix@watson.ibm.com>:
4252         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4253         bfd info.
4254
4255 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
4256
4257         From Jimi X <jimix@watson.ibm.com>:
4258         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4259         register sets for these processor variants.
4260
4261 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
4262
4263         * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4264         registers which are allowed to fail to store.
4265         * gdbserver/linux-low.h (linux_target_ops): Likewise.
4266         * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4267         (ppc_cannot_store_register): FPSCR may not be storable.
4268         * regformats/reg-ppc.dat: Support FPSCR.
4269
4270 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
4271
4272         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4273         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4274         Add fpscr as an invalid/unfetchable register.
4275         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4276         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4277         (fill_fpregset): Add support for register fpscr.
4278         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4279         (fill_gregset): Account for the fact that register ``mq'' might
4280         not exist.
4281         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4282         (registers_power): Add fpscr to register set at slot 71.
4283         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4284         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
4285
4286 2002-04-11  Michael Snyder  <msnyder@redhat.com>
4287
4288         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4289         * configure: Regenerate.
4290         * config.in: Regenerate.
4291         * acconfig.h: Add define for _SYSCALL32.
4292         * core-sol2.c: Remove #define _SYSCALL32.
4293         * solib-legacy.c: Remove #define _SYSCALL32.
4294
4295 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
4296
4297         * stack.c (select_frame): Cleanup internal error message, do not
4298         use %p.
4299
4300 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
4301
4302         * stack.c (select_frame): Check that selected_frame and the
4303         specified level are as expected.
4304         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4305         Update copyright.
4306         * frame.h (struct frame_info): Add field `level'.  Update
4307         copyright.
4308         Work-in-progress PR gdb/464.
4309
4310 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
4311
4312         * maint.c (maint_print_section_info): Rename print_section_info.
4313         (print_bfd_section_info, print_objfile_section_info): Update.
4314         * inferior.h (struct gdbarch): Add opaque declaration.
4315         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4316         * gdbarch.h: Regenerate.
4317
4318 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
4319
4320         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4321         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4322         (kernel_u_size): Added.
4323         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4324         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4325
4326 2002-04-04  Jim Ingham  <jingham@apple.com>
4327
4328        * valarith.c (find_size_for_pointer_math): New function, either returns
4329        the size for a pointer's target, returns 1 for void *, or errors for
4330        incomplete types.
4331        (value_add, value_sub): use find_size_for_pointer_math.
4332
4333 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4334
4335         * linux-low.c (linux_look_up_symbols): New hook.
4336         (linux_target_ops): Add linux_look_up_symbols.
4337         * remote-utils.c (decode_address): New function.
4338         (look_up_one_symbol): New function.
4339         * server.c (handle_query): Call target look_up_symbols hook.
4340         * server.h (look_up_one_symbol): Add prototype.
4341         * target.h (struct target_ops): Add look_up_symbols hook.
4342
4343 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4344
4345         * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4346         * ChangeLog: Correct paths in last ChangeLog entry.
4347
4348 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4349
4350         * gdbserver/linux-low.h: Remove obsolete prototypes.
4351         (struct linux_target_ops): New.
4352         (extern the_low_target): New.
4353         * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
4354         (register_addr): Use the_low_target explicitly.
4355         (fetch_register): Likewise.
4356         (usr_fetch_inferior_registers): Likewise.
4357         (usr_store_inferior_registers): Likewise.
4358         * gdbserver/linux-arm-low.c (num_regs): Remove.
4359         (arm_num_regs): Define.
4360         (arm_regmap): Renamed from regmap, made static.
4361         (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4362         made static.
4363         (arm_cannot_store_register): Renamed from cannot_store_register,
4364         made static.
4365         (the_low_target): New.
4366         * gdbserver/linux-i386-low.c (num_regs): Remove.
4367         (i386_num_regs): Define.
4368         (i386_regmap): Renamed from regmap, made static.
4369         (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4370         made static.
4371         (i386_cannot_store_register): Renamed from cannot_store_register,
4372         made static.
4373         (the_low_target): New.
4374         * gdbserver/linux-ia64-low.c (num_regs): Remove.
4375         (ia64_num_regs): Define.
4376         (ia64_regmap): Renamed from regmap, made static.
4377         (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4378         made static.
4379         (ia64_cannot_store_register): Renamed from cannot_store_register,
4380         made static.
4381         (the_low_target): New.
4382         * gdbserver/linux-m68k-low.c (num_regs): Remove.
4383         (m68k_num_regs): Define.
4384         (m68k_regmap): Renamed from regmap, made static.
4385         (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4386         made static.
4387         (m68k_cannot_store_register): Renamed from cannot_store_register,
4388         made static.
4389         (the_low_target): New.
4390         * gdbserver/linux-mips-low.c (num_regs): Remove.
4391         (mips_num_regs): Define.
4392         (mips_regmap): Renamed from regmap, made static.
4393         (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4394         made static.
4395         (mips_cannot_store_register): Renamed from cannot_store_register,
4396         made static.
4397         (the_low_target): New.
4398         * gdbserver/linux-ppc-low.c (num_regs): Remove.
4399         (ppc_num_regs): Define.
4400         (ppc_regmap): Renamed from regmap, made static.
4401         (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4402         made static.
4403         (ppc_cannot_store_register): Renamed from cannot_store_register,
4404         made static.
4405         (the_low_target): New.
4406         * gdbserver/linux-s390-low.c (num_regs): Remove.
4407         (s390_num_regs): Define.
4408         (s390_regmap): Renamed from regmap, made static.
4409         (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4410         made static.
4411         (s390_cannot_store_register): Renamed from cannot_store_register,
4412         made static.
4413         (the_low_target): New.
4414         * gdbserver/linux-sh-low.c (num_regs): Remove.
4415         (sh_num_regs): Define.
4416         (sh_regmap): Renamed from regmap, made static.
4417         (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4418         made static.
4419         (sh_cannot_store_register): Renamed from cannot_store_register,
4420         made static.
4421         (the_low_target): New.
4422         * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
4423         (the_low_target): New.
4424
4425 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
4426
4427         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4428         override FP_REGNUM with frame->fp.  Update copyright.
4429         * parse.c (num_std_regs, std_regs): Delete.
4430         (target_map_name_to_register): Do not search std_regs.  Update
4431         function description.
4432         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4433         declarations.  Update copyright.
4434         Fix PR gdb/251.
4435
4436 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4437
4438         * gdbserver/Makefile.in: Add stamp-h target.
4439         * gdbserver/configure.in: Create stamp-h.
4440         * gdbserver/configure: Regenerated.
4441
4442 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4443
4444         * gdbserver/inferiors.c: New file.
4445         * gdbserver/target.c: New file.
4446         * gdbserver/target.h: New file.
4447         * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
4448         dependencies.
4449         * gdbserver/linux-low.c (inferior_pid): New static variable,
4450         moved from server.c.
4451         (linux_create_inferior): Renamed from create_inferior.
4452         Call add_inferior.  Return 0 on success instead of a PID.
4453         (linux_attach): Renamed from myattach.
4454         (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
4455         (linux_thread_alive): Renamed from mythread_alive.
4456         (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
4457         child dies.
4458         (linux_resume): Renamed from myresume.  Add missing ``return 0''.
4459         (regsets_store_inferior_registers): Correct error message.
4460         Add missing ``return 0''.
4461         (linux_fetch_registers): Renamed from fetch_inferior_registers.
4462         (linux_store_registers): Renamed from store_inferior_registers.
4463         (linux_read_memory): Renamed from read_inferior_memory.
4464         (linux_write_memory): Renamed from write_inferior_memory.
4465         (linux_target_ops): New structure.
4466         (initialize_low): Call set_target_ops ().
4467         * gdbserver/remote-utils.c (unhexify): New function.
4468         (hexify): New function.
4469         (input_interrupt): Send signals to ``signal_pid''.
4470         * gdbserver/server.c (inferior_pid): Remove.
4471         (start_inferior): Update create_inferior call.
4472         (attach_inferior): Call add_inferior.
4473         (handle_query): New function.
4474         (main): Call handle_query for `q' packets.
4475         * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
4476         Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4477
4478 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4479
4480         * gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
4481         dependencies.
4482         * gdbserver/configure.in: Check for <string.h>
4483         * gdbserver/configure: Regenerate.
4484         * gdbserver/config.in: Regenerate.
4485         * gdbserver/gdbreplay.c: Include needed system headers.
4486         (remote_open): Remove strchr prototype.
4487         * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4488         * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4489         (supply_register_by_name): Likewise.
4490         (collect_register): Change buf argument to void *.
4491         (collect_register_by_name): Likewise.
4492         * gdbserver/regcache.h: Add missing prototypes.
4493         * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4494         * gdbserver/server.c (handle_query): New function.
4495         (attached): New static variable, moved out of main.
4496         (main): Quiet longjmp clobber warnings.
4497         * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
4498         * gdbserver/utils.c (error): Remove NORETURN.
4499         (fatal): Likewise.
4500
4501 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
4502
4503         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4504         after the last symbol in a block.
4505
4506 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
4507
4508         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4509         is non zero as a found symbol.
4510
4511 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
4512
4513         * findvar.c: Include "builtin-regs.h".
4514         (value_of_register): Call value_of_builtin_reg when applicable.
4515         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4516         (target_map_name_to_register): Call
4517         builtin_reg_map_name_to_regnum.
4518         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4519         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4520         (builtin_regs_h): Define.
4521         (builtin-regs.o): New target.
4522         (findvar.o): Add $(builtin_regs_h).
4523         * builtin-regs.c, builtin-regs.h: New files.
4524         * std-regs.c: New file.
4525         Partial fix for PR gdb/251.
4526
4527 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4528
4529         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4530         it's no longer required.
4531
4532 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
4533
4534         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4535
4536 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4537
4538         From Jimi X <jimix@watson.ibm.com>:
4539         * rs6000-tdep.c (rs6000_software_single_step): Use
4540         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4541         and size.  Use target_insert_breakpoint() and
4542         target_remove_breakpoint() to insert and remove breakpoints
4543         instead of explicit memory reads and writes.
4544
4545 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4546
4547         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4548         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4549         ELF_OBJECT_FORMAT ifdef.
4550
4551 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4552
4553         From Jimi X <jimix@watson.ibm.com>:
4554         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4555
4556 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
4557
4558         From Jimi X <jimix@watson.ibm.com>:
4559         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4560         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4561
4562 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
4563
4564         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4565         s/asprintf/xasprintf/.
4566         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4567
4568 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4569
4570         I believe Jeff Law denies responsability for this one:
4571         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4572         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4573         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4574         Work-around for PR gdb/366.
4575
4576 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
4577
4578         * remote-e7000.c (write_small, e7000_read_inferior_memory,
4579         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4580         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4581
4582 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
4583
4584         * sh-tdep.c (sh_fp_frame_init_saved_regs,
4585         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4586         information.
4587
4588 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4589
4590         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4591         maintainer.
4592
4593 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
4594
4595         * README (Reporting Bugs in GDB): Document the bug web page as the
4596         prefered way of submitting bugs.
4597         Fix PR gdb/402.
4598
4599 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4600
4601         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4602         -1.  Update comment.
4603         * gdbarch.h, gdbarch.c: Re-generate.
4604
4605 2002-04-07  Andreas Schwab  <schwab@suse.de>
4606
4607         * m68klinux-nat.c (fill_fpregset): Properly pass address of
4608         buffer to regcache_collect.
4609
4610 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4611
4612         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
4613         * gdbarch.c, gdbarch.h: Re-generate.
4614
4615 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
4616
4617         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4618         declaration.  Fix -Werror.
4619
4620 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
4621
4622         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4623         * gdbarch.c: Regenerate.
4624
4625 2002-04-05  Michael Snyder  <msnyder@redhat.com>
4626
4627         * breakpoint.c (clear_command): Rewrite middle section to
4628         combine two loops with identical control conditions.
4629         Add a cleanup to eliminate a memory leak.
4630         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4631
4632 2002-04-05  H.J. Lu  (hjl@gnu.org)
4633
4634         * solib-svr4.c (bkpt_names): Add "__start".
4635
4636 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
4637
4638         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4639         as test for 64 bit target.
4640
4641 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
4642
4643         * h8500-tdep.c (h8500_write_fp): Delete function.
4644         * dwarf2cfi.c (cfi_write_fp): Document as not used.
4645         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4646         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4647         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4648         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4649         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4650         (s390_write_fp):
4651         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4652         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4653         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4654         (d10v_write_fp): Delete function.
4655         * inferior.h (write_fp, generic_target_write_fp): Delete
4656         declarations.
4657         * regcache.c (generic_target_write_fp): Delete function.
4658         (write_fp): Delete function.
4659         * gdbarch.sh (TARGET_WRITE_FP): Delete.
4660         * gdbarch.h, gdbarch.c: Regenerate.
4661         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4662         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4663         (sparc64_write_fp): Delete declaration.
4664         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4665         (h8500_write_fp): Delete declaration.
4666
4667 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
4668
4669         * sparc-tdep.c (sparc64_write_fp): Delete.
4670         (sparc_push_dummy_frame): Replace write_fp call with code to store
4671         the FP directly.
4672         (sparc_gdbarch_init): Do not initialize write_fp.
4673
4674 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
4675
4676         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4677         clause.
4678
4679 2002-03-29  Jim Blandy  <jimb@redhat.com>
4680
4681         * stack.c (get_selected_block): Add new argument `addr_in_block',
4682         used to return the exact code address we used to select the block,
4683         not just the block.
4684         * blockframe.c (get_frame_block, get_current_block): Same.
4685         * frame.h (get_frame_block, get_current_block,
4686         get_selected_block): Update declarations.
4687         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4688         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4689
4690 2002-04-05  Michael Snyder  <msnyder@redhat.com>
4691
4692         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4693         warning message.
4694
4695 2002-04-05  J. Brobecker  <brobecker@gnat.com>
4696
4697         * utils.c (xfullpath): New function.
4698         * defs.h (xfullpath): Add declaration.
4699         * source.c (openp): Use xfullpath in place of gdb_realpath to
4700         avoid resolving the basename part of filenames when the
4701         associated file is a symbolic link. This fixes a potential
4702         inconsistency between the filenames known to GDB and the
4703         filenames it prints in the annotations.
4704         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4705         to be able to match a filename with either the real filename, or
4706         the name of any symbolic link to this file.
4707         (lookup_partial_symtab): Ditto.
4708
4709 2002-04-04  Michael Snyder  <msnyder@redhat.com>
4710
4711         * breakpoint.c: Add support for hardware breakpoints in overlays.
4712         (overlay_events_enabled): New state variable.
4713         (insert_breakpoints): Use overlay_events_enabled to decide
4714         whether to attempt to set a breakpoint at the overlay load addr.
4715         Handle bp_hardware_breakpoint as well as bp_breakpoint.
4716         (remove_breakpoint): Use overlay_events_enabled to decide
4717         whether breakpoints need to be removed from overlay load addr.
4718         Handle bp_hardware_breakpoint as well as bp_breakpoint.
4719         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4720         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4721         disable_overlay_breakpoints): Update overlay_events_enabled.
4722
4723 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
4724
4725         * dwarf2read.c (struct function_range): New.
4726         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4727         (check_cu_functions): New.
4728         (read_file_scope): Initialize global function lists.
4729         Call dwarf_decode_line after processing children.
4730         (read_func_scope): Add to global function list.
4731         (dwarf_decode_lines): Call check_cu_functions everywhere
4732         record_line is called.  Call record_line with a linenumber
4733         of 0 to mark sequence ends.
4734
4735 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
4736
4737         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4738         change sync with glibc.
4739
4740 2002-04-03  Jim Blandy  <jimb@redhat.com>
4741
4742         * configure.in: Call AC_C_INLINE.
4743         * configure: Regenerated.
4744
4745 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
4746
4747         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4748         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4749
4750 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
4751
4752         * NEWS: Mention gcore support on FreeBSD/i386.
4753
4754         * fbsd-proc.c: New file.
4755         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4756         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4757
4758         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4759         while statement.
4760
4761 2002-03-29  Jim Blandy  <jimb@redhat.com>
4762
4763         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4764         unescaped newlines in string literals, but newer ones don't.  So
4765         escape them.
4766
4767 2002-03-26  Michael Snyder  <msnyder@redhat.com>
4768             Andrew Cagney <cagney@redhat.com>
4769
4770         * cli/cli-dump.c: New file.  Dump memory to file,
4771         restore file to memory.
4772         * cli/cli-dump.h: New file.
4773         * Makefile.in: Add rules, dependencies for cli-dump.o.
4774         * NEWS: Mention new commands.
4775
4776 2002-03-28  Michael Snyder  <msnyder@redhat.com>
4777
4778         * symfile.c (symbol_file_add): Move test for null symbols to later.
4779
4780 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
4781
4782         From veksler at il.ibm.com:
4783         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4784         the xstrduped original path.
4785         Fix PR gdb/417.
4786
4787 2002-03-27  Michael Snyder  <msnyder@redhat.com>
4788
4789         * breakpoint.c (_initialize_breakpoint): Clean up help string.
4790         * infcmd.c (_initialize_infcmd): Ditto.
4791         * language.c (_initialize_language): Ditto.
4792         * symfile.c (_initialize_symfile): Ditto.
4793         * top.c (_init_main): Ditto.
4794         * cli/cli-cmds.c (init_cli_cmds): Ditto.
4795
4796 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
4797
4798         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4799         vector registers handling.
4800         (skip_prologue): Handle new AltiVec instructions.  Fill in new
4801         fields of frame data.
4802         (frame_get_saved_regs): Fill in information for AltiVec registers.
4803
4804 2002-03-27  Jim Blandy  <jimb@redhat.com>
4805
4806         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4807         a function; leave this macro here to invoke that function.
4808         (symbol_init_mangled_name): Declaration for that function.
4809         * symtab.c (symbol_init_mangled_name): New function.
4810
4811 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
4812
4813         * valarith.c: Replace strerror with safe_strerror.
4814         * tracepoint.c: Ditto.
4815         * lin-lwp.c: Ditto.
4816         * go32-nat.c: Ditto.
4817         * inflow.c: Ditto.
4818         * gnu-nat.c: Ditto.
4819
4820 2002-03-27  Andreas Schwab  <schwab@suse.de>
4821
4822         * event-top.c (command_line_handler): Remove useless if.
4823
4824 2002-03-27  Andreas Jaeger  <aj@suse.de>
4825
4826         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4827         comment.
4828
4829 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
4830
4831         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4832         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4833         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4834         (x86_64_linux_dr_get_status, supply_gregset),
4835         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4836         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4837         (x86_64_register_info_table): Add.
4838         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4839         (x86_64_register_raw_size, x86_64_register_virtual_type),
4840         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4841         general x86_64_register_info_table.
4842         (i386_gdbarch_init): gdbarch_register_bytes is now set
4843         dynamicaly during initialization.
4844         * regformats/reg-x86-64.dat: Synced with changes to registers above.
4845         * gdbserver/linux-x86-64-low.c: Ditto.
4846
4847 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4848
4849         * gdbserver/server.c (main): Call target_signal_to_host_p
4850         and target_signal_to_host on signals received from the remote.
4851         * gdbserver/remote-utils.c (prepare_resume_reply): Call
4852         target_signal_from_host on signals sent to the remote.
4853         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
4854         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
4855
4856 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4857
4858         * signals/signals.c: Include "server.h" in gdbserver build.
4859         (target_signal_from_name): Don't use STREQ.
4860         (_initialize_signals): Likewise.  Don't include function in
4861         gdbserver build.
4862
4863 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
4864
4865         * signals.c: Moved to...
4866         * signals/signals.c: Here.
4867         * Makefile (signals.o): Update.
4868
4869 2002-03-26  Jeff Law (law@redhat.com)
4870
4871         * somread.c (som_symtab_read): Remove some commented out code and
4872         updated related comments.  Do not set the minimal symbol table to
4873         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4874         in a dynamic executable.
4875         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4876         where we are unable to find the minimal symbol for the given
4877         PC value.
4878
4879 2002-03-25  Jeff Law (law@redhat.com)
4880
4881         * linux-proc.c (read_mapping): Scan up to end of line for filename.
4882
4883 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
4884
4885         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4886
4887 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4888
4889         * command.h: Update copyright.
4890         (struct cmd_list_element): Replace definition with opaque
4891         declaration.
4892         (enum cmd_types): Document that it will eventually be moved to
4893         cli/cli-decode.h
4894         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4895         (MALLOCED_REPLACEMENT): Delete macro.
4896         * Makefile.in (cli_decode_h): Add $(command_h).
4897         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4898         * top.c: Include "cli/cli-decode.h".
4899         * completer.c: Include "cli/cli-decode.h".
4900         * maint.c: Include "cli/cli-decode.h".
4901         * cli/cli-decode.h: Include "command.h".
4902         (enum command_class): Delete.
4903         (enum cmd_types): Comment out.
4904         (enum cmd_auto_boolean): Delete.
4905         (enum var_types): Delete.
4906
4907 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4908
4909         * cli/cli-decode.c: Include "gdb_assert.h".
4910         (add_set_or_show_cmd): New static function.
4911         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
4912         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
4913         all fields, such as func, from the set command.
4914
4915 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
4916
4917         * MAINTAINERS (sh-elf): Change warning flag to -w.
4918
4919 2002-03-23  Andrew Cagney  <cagney@redhat.com>
4920
4921         * defs.h (error): Add printf format attribute.
4922         * thread-db.c (thread_from_lwp): Fix error format string.
4923         * stack.c (parse_frame_specification): Ditto.
4924         * cli/cli-decode.c (undef_cmd_error): Ditto.
4925         * scm-lang.c (scm_lookup_name): Ditto.
4926         * tracepoint.c (trace_error): Ditto.
4927         * remote-utils.c (usage): Ditto.
4928         * remote.c (compare_sections_command): Ditto.
4929         Fix PR gdb/328.
4930
4931 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
4932
4933         * gdbtypes.c (append_composite_type_field): New function.
4934         (init_composite_type): New function.
4935         * gdbtypes.h (append_composite_type_field): Declare.
4936         (init_composite_type): Ditto.
4937
4938 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
4939
4940         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4941         function.
4942         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4943         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4944         structure returning convention for SYSV ABI case, but not
4945         for GNU/Linux, FreeBSD, or NetBSD.
4946
4947 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
4948
4949         * symtab.h (lookup_block_symbol): Add mangled_name argument
4950         to prototype.
4951
4952         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4953         with new mangled_name argument.
4954         * linespec.c (decode_line_1): Likewise.
4955         * valops (value_of_this): Likewise.
4956         * symtab.c (lookup_transparent_type): Likewise.
4957         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
4958         (lookup_symbol): If we are given a mangled name, pass it down
4959         to lookup_symbol_aux.
4960         (lookup_block_symbol): If we are given a mangled name to check
4961         against, only return symbols which match it.
4962
4963 2002-03-22  Christopher Faylor  <cgf@redhat.com>
4964
4965         * win32-nat.c (child_create_inferior): Check for proper shell to use
4966         here, in case the user changes it on the fly.
4967         (_initialize_inftarg): Remove shell path considerations.
4968
4969 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
4970
4971         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4972         for gdbarch_max_register_raw_size and max_register_virtual_size.
4973         Adjust copyright year.
4974
4975 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
4976
4977          * dbxread.c (process_one_symbol): Extend the first N_SLINE
4978          in a function to cover the entire beginning of the function
4979          as well if it does not already.
4980
4981 2002-03-21  Tom Rix  <trix@redhat.com>
4982
4983         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4984         (rs6000_ptrace64): Renamed from ptrace64.
4985
4986 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
4987
4988         * gdbserver/remote-utils.c (remote_open): Don't call
4989         getprotobyname, we're all using TCP here so just use
4990         IPPROTO_TCP.
4991         * gdbserver/gdbreplay.c (remote_open): Ditto.
4992
4993 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
4994
4995         * regcache.c (_initialize_regcache): No need to call
4996         build_regcache() at this time; it gets called whenever
4997         the gdbarch changes.
4998
4999 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
5000
5001         * sparc-nat.c:  Include sys/param.h where possible.
5002
5003 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
5004
5005         Fix PR gdb/422.
5006         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5007         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5008         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5009         complex types.
5010         * stabsread.c (rs6000_builtin_type): Likewise.
5011         (read_sun_floating_type): Likewise.
5012
5013 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5014
5015         * stabsread.c (read_member_functions): Remove skip code for duplicate
5016         constructor/destructor methods.  Use standard parsing for these
5017         methods and just do not chain them to the list of methods after
5018         parsing.
5019
5020 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
5021
5022         * coffread.c: Remove redundant static declarations.  Replace
5023         occurrences of `PTR' with `void *'.
5024         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5025         * top.h (quit_cover): Likewise.
5026         * defs.h (catch_errors): Likewise.
5027
5028 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
5029
5030         * defs.h (XMALLOC): Define.
5031         * gdb-events.sh (XMALLOC): Delete macro.
5032         * gdb-events.c, gdb-events.h: Regenerate.
5033         * gdbarch.sh (XMALLOC): Delete macro.
5034         * gdbarch.c: Regenerate.
5035         * serial.c (XMALLOC): Delete macro.
5036         * ui-file.c (XMALLOC): Ditto.
5037         * ser-unix.h (XMALLOC): Ditto.
5038         * sh-tdep.c (XMALLOC): Ditto.
5039         * ui-out.c (XMALLOC): Ditto.
5040         * utils.c (XMALLOC): Ditto.
5041         * i386-tdep.c (XMALLOC): Ditto.
5042         * gdb-events.c (XMALLOC): Ditto.
5043         * d10v-tdep.c (XMALLOC): Ditto.
5044         * cli-out.c (XMALLOC): Ditto.
5045
5046         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5047         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5048         * ui-file.c, ui-out.c: Ditto.
5049
5050 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
5051
5052         * command.h (struct cmd_list_element): Add field context.
5053         (set_cmd_context, get_cmd_context): Declare.
5054         * cli/cli-decode.h: Ditto.
5055         * cli/cli-decode.c (get_cmd_context): New function.
5056         (set_cmd_context): New function.
5057         (add_cmd): Initialize context.
5058         Part of fixing PR gdb/145 and PR gdb/146.
5059
5060 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
5061
5062         * cli/cli-decode.c (cmd_type): New function.
5063         * command.h (cmd_type): Declare.
5064         * infrun.c (set_schedlock_func): Call function cmd_type.
5065         * kod.c (kod_set_os): Call cmd_type.
5066         * cris-tdep.c (cris_version_update): Use function cmd_type.
5067         (cris_mode_update, cris_abi_update): Ditto.
5068
5069         * command.h: (execute_cmd_post_hook): Declare.
5070         (execute_cmd_pre_hook): Declare.
5071         * cli/cli-script.c (clear_hook_in_cleanup): New function.
5072         (execute_cmd_post_hook, execute_cmd_pre_hook): New
5073         functions. Execute pre/post hook while ensuring that afterwords
5074         hook_in is cleared.
5075         * top.c (execute_command): Use execute_cmd_post_hook, and
5076         execute_cmd_pre_hook to execute pre/post commands.
5077         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5078         hook_stop_stub.
5079         (hook_stop_stub): Call execute_cmd_pre_hook.
5080
5081 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
5082
5083         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
5084         set'' and this leads to a core dump.  Move xstrdup of
5085         operating_system to after check that it is not NULL.
5086
5087 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
5088
5089         * kod.c (kod_set_os): Remove unnecessary check that
5090         ``command->type'' is set_cmd.
5091
5092         * valprint.c (set_input_radix): Use input_radix.
5093         (set_output_radix): Use output_radix.
5094         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5095         isn't reverted.
5096
5097 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
5098
5099         * value.h (struct value): Delete field ``substring_addr''.  Change
5100         aligner fields to force_doublest_align, force_longest_align,
5101         force_core_addr_align and force_pointer_aligh.
5102
5103         * value.h (struct value): Fix typo in above change.
5104
5105 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5106
5107         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5108         to fix internal_error from ``maintenance print architecture''.
5109
5110 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5111
5112         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5113         for gcc versions after gcc-2.8.1.
5114
5115 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5116
5117         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5118         for method resolution.  Restore adjustment of ``this'' pointer after
5119         calling value_struct_elt, which was accidentally removed during the
5120         HP merge.
5121
5122 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
5123
5124         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5125         value_of_register.
5126         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
5127         get_saved_register.
5128         * value.h (value_of_register): Update.
5129
5130 2002-03-14  Richard Henderson  <rth@redhat.com>
5131
5132         * configure.in: Detect declaration for canonicalize_file_name.
5133         * utils.c (canonicalize_file_name): Declare, if needed.
5134         (gdb_realpath): Prefer realpath if available and usable.
5135         * config.in, configure: Rebuild.
5136
5137 2002-03-14  Richard Henderson  <rth@redhat.com>
5138
5139         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5140         a constant array bound.
5141
5142         * MAINTAINERS: Add myself to write-after-approval.
5143
5144 2002-03-14  Michael Snyder  <msnyder@redhat.com>
5145
5146         * symfile.c (syms_from_objfile): Return immediately if no syms.
5147         (symbol_file_add): Return immediately if no syms.
5148         (find_sym_fns): Return immediately if no syms.
5149
5150 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
5151
5152         * gdbserver/remote-util.c (remote_open): Print remote-side's
5153         IP address when remote debugging over the network.
5154
5155 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
5156
5157         * config/sparc/fbsd.mh: Fix copyright.
5158         * config/sparc/fbsd.mt: Likewise.
5159
5160 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
5161
5162         * MAINTAINERS: Fix typo in name of gdb warnings option.
5163         (x86-64): Fix formating so that this can be parsed by awk.
5164
5165 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
5166
5167         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5168         * defs.h: Include "gdb/signals.h".
5169         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5170
5171 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
5172
5173         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
5174         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
5175         from x86-64-tdep.h
5176
5177 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
5178             Don Howard <dhoward@redhat.com>
5179
5180         * mips-tdep.c (ST0_FR): Define.
5181         (mips2_fp_compat): New function, temporarily disabled.
5182         (mips_read_fp_register_single): New function.
5183         (mips_read_fp_register_double): New function.
5184         (mips_print_register): Use them.
5185         (do_fp_register_row): Likewise.
5186
5187 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
5188
5189         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5190         approval''.
5191
5192 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5193
5194         * stabsread.c (read_member_functions): Fix is_stub test for
5195         static member functions, improve comment.
5196
5197 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
5198
5199         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5200         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5201         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5202         commands that set boolean values.
5203         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5204         (arm_rdi_resume): Always initialize PC.
5205         (arm_rdi_open): Don't use rslt as a boolean.
5206         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5207         (arm_rdi_fetch_registers, arm_rdi_store_registers)
5208         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5209         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5210
5211 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
5212
5213         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5214         * configure: Rebuilt.
5215
5216 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5217
5218         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5219         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5220
5221 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
5222
5223         * cli/cli-decode.c (set_cmd_completer): New function.
5224         * command.h (set_cmd_completer): Declare.
5225         * cli/cli-decode.h (set_cmd_completer): Ditto.
5226
5227         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5228         * cli/cli-cmds.c (init_cli_cmds): Ditto.
5229         * win32-nat.c (_initialize_inftarg): Ditto.
5230         * remote-rdi.c (_initialize_remote_rdi): Ditto.
5231         * proc-api.c (_initialize_proc_api): Ditto.
5232         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5233         * source.c (_initialize_source): Ditto.
5234         * exec.c (_initialize_exec): Ditto.
5235         * solib.c (_initialize_solib): Ditto.
5236         * top.c (init_main): Ditto.
5237         * tracepoint.c (_initialize_tracepoint): Ditto.
5238         * symfile.c (_initialize_symfile): Ditto.
5239         * printcmd.c (_initialize_printcmd): Ditto.
5240         * infcmd.c (_initialize_infcmd): Ditto.
5241         * corefile.c (_initialize_core): Ditto.
5242
5243 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
5244
5245         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5246
5247 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
5248
5249         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5250
5251 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
5252
5253         * NEWS: Update headings, 5.2 has branched.
5254
5255 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
5256
5257         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5258         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5259         (register_addr, REGISTER_RAW_SIZE): Likewise.
5260         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5261         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5262
5263 2002-03-03  Michal Ludvig <mludvig@suse.cz>
5264
5265         * MAINTAINERS (x86-64): Add myself.
5266         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5267         changed value_ptr -> struct value *
5268
5269 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
5270
5271         * configure.host (sparc64-*-freebsd): Add.
5272         * configure.tgt: Likewise.
5273         * config/sparc/fbsd.mh: New file.
5274         * config/sparc/fbsd.mt: Likewise.
5275         * config/sparc/nm-fbsd.h: Likewise.
5276         * config/sparc/tm-fbsd.h: Likewise.
5277
5278 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
5279
5280         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5281         regformats/reg-s390x.dat.
5282
5283 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
5284
5285         * utils.c: Add FIXME explaining true/false problem.
5286
5287 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
5288
5289         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5290
5291 2002-02-28  Michael Chastain  <mec@shout.net>
5292
5293         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5294
5295 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
5296
5297         * gdbserver/linux-s390-low.c: New file.
5298         * regformats/reg-s390.dat: New file.
5299         * regformats/reg-s390x.dat: New file.
5300         * gdbserver/configure.srv: Add S/390.
5301         * gdbserver/Makefile.in: Add S/390.
5302         * configure.tgt: Enable gdbserver for S/390.
5303
5304 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
5305
5306         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5307         first line of the doc string for "info dos", except at the end of
5308         the sentence, since the short help stops at the first period.
5309
5310 2002-02-28  Jason Merrill  <jason@redhat.com>
5311
5312         * dwarf2read.c (dwarf_cfi_name): Add new codes.
5313
5314 2002-02-27  Fred Fish  <fnf@redhat.com>
5315
5316         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5317         comment (dumy -> dummy).
5318
5319 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5320
5321         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5322
5323 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
5324
5325       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5326
5327 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
5328
5329         * gdbserver/acconfig.h: New file.
5330         * gdbserver/i387-fp.c: New file.
5331         * gdbserver/i387-fp.h: New file.
5332         * gdbserver/linux-x86-64.c: New file.
5333         * regformats/reg-x86-64.dat: New file.
5334         * configure.tgt: Add x86_64-*-linux* gdbserver support.
5335         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5336         * gdbserver/configure.in: Add support for regsets.
5337         * gdbserver/config.in: Regenerate.
5338         * gdbserver/configure: Regenerate.
5339         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
5340         * gdbserver/linux-low.h: New file.
5341         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
5342         for regsets.
5343         * gdbserver/linux-arm-low.c: Include "linux-low.h".
5344         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5345         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5346         * gdbserver/linux-mips-low.c: Include "linux-low.h".
5347         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5348         * gdbserver/linux-sh-low.c: Include "linux-low.h".
5349         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
5350         "i387-fp.h".  Add PTRACE_GETREGS and friends.
5351         * gdbserver/regcache.c (supply_register): New function.
5352         (supply_register_by_name): New function.
5353         (collect_register): New function.
5354         (collect_register_by_name): New function.
5355
5356 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
5357
5358         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5359         (config.status): Add configure.srv dependency.
5360         (server_h): Add config.h dependency.
5361
5362 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
5363
5364         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5365         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5366         * gdbserver/configure.srv: Change i386-*-linux* to use
5367         reg-i386-linux.o.
5368
5369 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
5370
5371         * x86-64-tdep.c: Re-indent.  Update copyright date.
5372
5373 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
5374
5375         From Michal Ludvig <mludvig@suse.cz>:
5376         * x86-64-tdep.c (value.h): Delete.
5377         (gdb_assert.h): Include.
5378         (x86_64_register_convert_to_virtual,
5379         x86_64_register_convert_to_raw ): Add check which lets only
5380         floating-point values to be converted.
5381         (value_push): Delete.
5382         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5383         (i386_gdbarch_init): Number of register_bytes fixed.
5384
5385 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
5386
5387         * MAINTAINERS: Add x86-64 target.
5388
5389 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
5390
5391         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5392         * osfsolib.c (solib_map_sections): Ditto.
5393         * irix5-nat.c (solib_map_sections): Ditto.
5394         * corelow.c (gdb_check_format): Ditto.
5395         * symfile.c (symfile_bfd_open): Ditto.
5396         * solib.c (solib_map_sections): Ditto.
5397         Fix PR gdb/354.
5398
5399 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
5400
5401         * remote.c (_initialize_remote): By default, disable ``e'' and
5402         ``E'' step out-of-range packets.
5403
5404 2002-02-26  Andreas Schwab  <schwab@suse.de>
5405
5406         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5407         m68k_linux_frame_saved_pc.
5408         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5409         in_sigtramp.
5410         (SIGCONTEXT_PC_OFFSET): Remove.
5411         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5412         m68k_linux_sigtramp_saved_pc): New functions.
5413         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5414         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5415         (UCONTEXT_PC_OFFSET): Define.
5416         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5417         non-RT and RT signal trampolines.
5418
5419 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
5420
5421         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5422         (TARGET_NBPG, STACK_END_ADDR): Delete
5423         (VARIABLES_INSIDE_BLOCK): Delete.
5424
5425 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
5426
5427         * utils.c (perror_with_name): Make string parameter constant.
5428         (print_sys_errmsg): Ditto.
5429         (query): Ditto.
5430         * defs.h (perror_with_name): Update.
5431         (print_sys_errmsg): Update.
5432         (query): Update.
5433
5434 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
5435
5436         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5437         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5438
5439 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5440
5441         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5442         if it already matches the current architecture from the exec file.
5443         Include arch-utils.h for gdbarch_info_init prototype.
5444         * Makefile.in (rs6000-nat.o): Update dependencies.
5445
5446 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
5447
5448         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5449          list of exported variables.
5450
5451 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
5452
5453         * gdbserver/configure.srv: New file.
5454         * gdbserver/configure.in: Use configure.srv instead
5455         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
5456         from it.
5457         * gdbserver/configure: Regenerated.
5458         * gdbserver/terminal.h: New file.
5459         * gdbserver/Makefile.in: Update for configure changes.  Remove
5460         more unneeded include paths.
5461
5462 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
5463
5464         From wiz at danbala:
5465         * config/sparc/tm-sp64.h: Fix grammar and typos.
5466         Fix PR gdb/287.
5467
5468 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
5469
5470         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
5471         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
5472         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5473         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
5474         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5475         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5476         * s390-tdep.c: Ditto.
5477         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5478         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5479         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5480         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5481         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5482         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5483         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5484         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5485         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5486         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
5487         Fix PR gdb/378.
5488
5489 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5490
5491         * lin-thread.c: Delete file.
5492         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5493         to gdb_proc_service.h.
5494         * configure: Re-generate.
5495
5496         * ocd.c (ocd_open): Do not try to open the "ocd" device.
5497         * serial.c (serial_open): Delete check for "ocd".
5498         Fix PR gdb/349.
5499
5500         * Makefile.in (linux-thread.o): Delete target.
5501         * linux-thread.c: Delete file.
5502
5503         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
5504         renamed SH files to be consistent.
5505
5506         * symtab.c (sort_search_symbols): Use xfree.
5507
5508 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
5509
5510         * arm-linux-tdep.c (arm_linux_init_abi): Register
5511         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5512         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5513         definition with undef, since we don't want the sysvr4 definition.
5514         (SKIP_TRAMPOLINE_CODE): Likewise.
5515
5516 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5517
5518         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5519
5520         * configure.in: (AC_CHECK_FUNCS) Added test for
5521         canonicalize_file_name Regenerated.
5522         * config.in, configure: Regenerated.
5523         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5524         defined use canonicalize_file_name.
5525
5526 2002-02-23  Michael Chastain  <mec@shout.net>
5527
5528         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5529
5530 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5531
5532         * README: Remove references to cygnus.com.
5533         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5534         dot com'' form.  Remove references to cygnus.com and sourceware.
5535
5536 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5537
5538         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5539         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5540         1003.1-2001 no longer allows "head -1".
5541         * gdb/Makefile.in (version.c): Likewise.
5542         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5543         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5544         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
5545
5546 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5547
5548         * cli/cli-decode.c (cmd_cfunc_eq): New function.
5549         * command.h (cmd_cfunc_eq): Declare.
5550         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5551
5552         * cli/cli-cmds.h (is_complete_command): Change parameter to a
5553         ``struct cmd_list_element *''.
5554         * cli/cli-cmds.c (is_complete_command): Update.  Use
5555         cmd_cfunc_eq.
5556         * top.c (execute_command): Pass the command to
5557         is_complete_command.
5558         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5559
5560 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
5561
5562         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5563         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5564         architecture defines.
5565         * s390-tdep.c (s390_gdbarch_init): Likewise.
5566
5567 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
5568
5569         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5570         (arm_linux_push_arguments): Likewise.
5571         (arm_linux_init_abi): Register them.  Also register linux-specific
5572         call_dummy_words.
5573         (find_minsym_and_objfile): Use strcmp, not STREQ.
5574         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5575         (arm_linux_call_dummy_words): Delete declaration.
5576         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5577         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5578         declarations.
5579         (LOWEST_PC): Delete.
5580
5581 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5582
5583         * maint.c (print_section_info): Do not prepend `0x' to filepos
5584         output, it will be handled by local_hex_string_custom.
5585
5586 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
5587
5588         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5589         (store_newfpe_double, store_newfpe_extended, store_fpregister)
5590         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5591
5592 2002-02-22  Jim Blandy  <jimb@redhat.com>
5593
5594         Indicate that the bcache functions don't change the strings
5595         they're passed.
5596         * bcache.h (bcache, hash): Add `const' keywords to declarations.
5597         * bcache.c (bcache, hash): Add `const' keywords to definitions.
5598
5599 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5600
5601         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5602
5603 2002-02-21  Christopher Faylor  <cgf@redhat.com>
5604
5605         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5606         find the complete path to a loaded DLL.
5607
5608 2002-02-21  Fred Fish  <fnf@redhat.com>
5609
5610         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5611         that marks the end of the range of a function, enter a line number
5612         entry that has a line number of zero and a PC offset that matches
5613         the end of the function.  This starts a range of PC's for which no
5614         line number information is known.
5615         * symtab.c (find_pc_sect_line): If our best fit is in a range of
5616         PC's for which no line number info is found (line number is zero)
5617         then we didn't find any valid line information.
5618         * symtab.h: Document use of zero line number entry.
5619
5620 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
5621
5622         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5623         (have_ptrace_getvrregs): Define for run time checks.
5624         (gdb_vrregset_t): New type for Altivec register handling.
5625         (fetch_register, store_register): Fetch/store altivec register
5626         when needed.
5627         (fetch_altivec_register, store_altivec_register): New functions.
5628         (supply_vrregset, fill_vrregset): New functions.
5629         (fetch_altivec_registers, store_altivec_registers): New functions.
5630         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5631         registers as well.
5632
5633 2002-02-21  Jiri Smid  <smid@suse.cz>
5634
5635         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5636
5637 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
5638
5639         * Makefile.in (armnbsd-nat.o): Update dependencies.
5640         * armnbsd-nat.c (supply_gregset): New function.  Common code to
5641         supply the integer register set.
5642         (supply_fparegset): New function.  Similar for FPA registers.
5643         (fetch_regs, fetch_fp_regs): Use them.
5644         (fetch_core_registers): Likewise.
5645         (fetch_elfcore_registers): New function.
5646         (arm_netbsd_elfcore_fns): New core-file type specification.
5647         (_initialize_arm_netbsd_nat): Register it.
5648
5649 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
5650
5651         * armnbsd-nat.c: Include gdbcore.h.
5652         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5653         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5654         'void' to declaration, to shut up ARI.
5655         (fetch_core_registers): Make static.  Rewrite using supply_register.
5656         (arm_netbsd_core_fns): New core-file type specification.
5657         (_initialize_arm_netbsd_nat): New function.
5658
5659 2002-02-21  Christopher Faylor  <cgf@redhat.com>
5660
5661         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5662         value.
5663
5664 2002-02-20  Christopher Faylor  <cgf@redhat.com>
5665
5666         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5667         fails.
5668
5669 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5670
5671         * jv-exp.y (parse_number): Change type of implicit longs
5672         to builtin_type_uint64.
5673
5674 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5675
5676         * gdbserver/linux-low.c (mywait): Change argument to waitpid
5677         to be an integer instead of a `union wait'.
5678
5679 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5680
5681         * mips-linux-nat.c: Call the operating system GNU/Linux.
5682         * mips-linux-tdep.c: Likewise.
5683         * mips-tdep.c: Likewise.
5684
5685 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5686
5687         Fix PR gdb/265.
5688         * jv-exp.y (parse_number): Handle 64-bit integers.
5689
5690 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
5691
5692         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
5693         AC_STDC_HEADERS to AC_HEADER_STDC.
5694         * gdbserver/configure: Regenerated.
5695
5696 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
5697
5698         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5699         is defined.
5700         * sparc-tdep.c (get_longjmp_target): Likewise.
5701
5702 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
5703
5704         * News: Add news about ARM and Multi-arch.  Mention the new target
5705         arm*-*-netbsd*.
5706
5707 2002-02-19  Jim Blandy  <jimb@redhat.com>
5708
5709         * stabsread.c (error_type_complaint): Improve error message.
5710
5711 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
5712
5713         * gdbserver/README: Update documentation.
5714         * gdbserver/configure.in: Update configury to match documentation.
5715         * gdbserver/Makefile.in: Likewise.
5716         * gdbserver/configure: Regenerated.
5717         * gdbserver/aclocal.m4: New file, generated by aclocal.
5718         * gdbserver/config.in: New file, generated by autoheader.
5719
5720 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5721
5722         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5723         armnbsd-nat.c.
5724
5725 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5726
5727         * arm-tdep.h (enum arm_float_model): New enum.
5728         (struct gdbarch_tdep): Add fp_model.
5729         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
5730         up floating-point conversions until we know the floating-point model
5731         in use by the inferior.  Don't complain about being unable to
5732         determine the ABI of the inferior when we don't have one.
5733         (arm_extract_return_value): Support different floating-point models.
5734         (arm_store_return_value): Likewise.
5735         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5736         ARM_FLOAT_SOFT.
5737         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5738
5739 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5740
5741         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5742         of ``current_gdbarch''.
5743
5744 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5745
5746         * armnbsd-nat.c : ANSIfy all function declarations.
5747         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5748         (fetch_inferior_registers): Re-implement in terms of above.
5749         (store_register, store_regs, store_fp_register, store_fp_regs): New.
5750         (store_inferior_registers): Re-implement in terms of above.
5751
5752 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5753
5754         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5755         kernel.
5756         * arm-linux-tdep.c: Likewise.
5757         * config/arm/tm-linux.h: Likewise.
5758
5759 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5760
5761         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5762         * config/arm/nbsd.mt (TM_FILE): Delete.
5763         * config/arm/tm-nbsd.h: Delete.
5764
5765 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5766
5767         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5768         Initialize CALL_DUMMY_LENGTH.
5769
5770 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
5771
5772         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5773         function.
5774         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5775         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5776         defines one thing and that is incorrect for this port.
5777         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5778
5779 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5780
5781         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5782
5783 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5784
5785         * win32-nat.c (display_selector): New function. Displays information
5786         about the information returned by GetThreadSelectorEntry API function.
5787         (display_selectors): New function. Displays the infomation of
5788         the selector given as argument, or of CS, DS ans FS selectors
5789         if no argument is given.
5790         ( _initialize_inftarg): Add "w32" as info prefix command.
5791         Add "info w32 selector" as command calling display_selectors.
5792
5793 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5794
5795         * i386-tdep.c (get_longjmp_target): Fix compilation failure
5796         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5797         if not defined.
5798
5799 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5800
5801         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5802
5803 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5804
5805         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5806         (arm_fix_call_dummy): Call it.
5807         (arm_call_dummy_breakpoint_offset): Delete.
5808         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5809         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5810
5811 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
5812
5813         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5814         Default to func_frame_chain_valid.
5815         * gdbarch.h, gdbarch.c: Re-generate.
5816         * frame.h (FRAME_CHAIN_VALID): Delete definition.
5817
5818 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
5819
5820         * ppc-linux-nat.c: Update copyright.
5821         (fetch_register, store_register): Add tid parameter, don't compute
5822         tid here.
5823         (fetch_ppc_registers, store_ppc_registers): Add tid
5824         parameter. Pass it along to callees.
5825         (fetch_inferior_registers, store_inferior_registers): Compute tid
5826         here, and pass it to calleed functions.
5827         (fill_gregset, supply_fpregset): Clean up formatting.
5828
5829 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5830
5831         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5832         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5833
5834 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
5835
5836         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5837         * gdbarch.c gdbarch.h: Regenerate.
5838         * breakpoint.c (create_longjmp_breakpoint): Always compile this
5839         function.
5840         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5841         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5842         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5843
5844         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5845         * arm-tdep.c (arm_get_longjmp_target): New function.
5846         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
5847         this to a positive value register arm_get_longjmp_target as the
5848         longjmp handler.
5849         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5850         (arm_linux_init_abi): Set up longjmp description in tdep.
5851         * armnbsd-nat.c (get_longjmp_target): Delete.
5852         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5853         description in tdep.
5854         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5855         (get_longjmp_target): Delete declaration.
5856         (GET_LONGJMP_TARGET): Delete.
5857         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5858         (GET_LONGJMP_TARGET): Delete.
5859
5860 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
5861
5862         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
5863         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5864         of ``current_gdbarch''.
5865
5866 2002-02-17  Tom Tromey  <tromey@redhat.com>
5867
5868         * cli/cli-cmds.c (compare_strings): New function.
5869         (complete_command): Only print each unique item once.
5870         * completer.h (complete_line): Declare.
5871         * completer.c (complete_line): New function.
5872         (line_completion_function): Use it.
5873
5874 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5875
5876         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5877         * gdbarch.h, gdbarch.c: Re-generate.
5878
5879 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
5880
5881         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5882
5883 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
5884
5885         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5886         * valops.c (value_arg_coerce): Don't take the address of a reference
5887         to convert an argument to a reference.
5888
5889 2002-02-15  Christopher Faylor  <cgf@redhat.com>
5890
5891         * win32-nat.c (get_image_name): New function.
5892         (handle_load_dll): Use get_image_name function.
5893         (get_child_debug_event): Avoid registering debug events until possibly
5894         execed process is started.
5895         (child_create_inferior): Allow invocation via shell so that command
5896         line redirection, etc.  works ok.
5897         (_initialize_inftarg): Add new command: "set shell" to control whether
5898         a shell is used to start a process.
5899
5900 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
5901
5902         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5903         instead of find_register_by_number.
5904         (cannot_store_register): Likewise.
5905
5906 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5907
5908         * dwarf2read.c: Replace fprintf (stderr, ...) by
5909         fprintf_unfiltered (gdb_stderr, ...).
5910
5911 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
5912
5913         * gdbserver/gdbserver.1: Document --attach.
5914
5915 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
5916
5917         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5918         descriptions.
5919         * arm-tdep.c (arm_default_arm_le_breakpoint)
5920         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5921         (arm_default_thumb_be_breakpoint): New.  Initialize them from
5922         traditional breakpoint defines.
5923         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5924         (arm_gdbarch_init): Initialize new breakpoint variables.
5925         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5926         (arm_linux_init_abi): Initialize linux-specific breakpoint.
5927         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5928         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5929         code out to ...
5930         (arm_netbsd_init_abi_common): ... here; new function.
5931         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5932         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5933         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5934         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5935
5936 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
5937
5938         * arm-tdep.h (enum arm_abi): New enum.
5939         (struct gdbarch_tdep): New structure.
5940         (LOWEST_PC): Provide a default.
5941         (arm_gdbarch_register_os_abi): Declare new function.
5942         * arm-tdep.c (arm_abi_names): New array.
5943         (process_note_abi_tag_sections): New function.
5944         (get_elfosabi): New function.
5945         (arm_gdbarch_register_os_abi): New function.
5946         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
5947         support for that ABI has been built in, then call the appropriate
5948         configuration routine.  Use gdbarch_num_regs() to get the number
5949         of registers.
5950         (arm_dump_tdep): New function.
5951         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5952         place-holder functions.
5953         (_initialize_arm_tdep): Register them.
5954         * config/arm/tm-arm.h (LOWEST_PC): Delete.
5955
5956         * armnbsd-tdep.c: New file.
5957         * Makefile.in (armnbsd-tdep.o): Add dependencies.
5958         * config/arm/nbsd.mt (TDEPFILES): Add it.
5959         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5960
5961         * armnbsd-nat.c: Include regcache.h.
5962         * Makefile.in (armnbsd-nat.o): Update dependency list.
5963
5964         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5965
5966 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5967
5968         * gdbserver/Makefile.in: Fix typos in target rules.
5969
5970 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
5971
5972         Fix part of PR gdb/267.
5973         * linespec.c (find_methods): Handle constructors specially for now.
5974
5975 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
5976
5977         * arm-tdep.c (arm_push_arguments): Eliminate special float type
5978         handling.
5979         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5980         standard_coerce_float_to_double().
5981
5982 2002-02-14  Christopher Faylor  <cgf@redhat.com>
5983
5984         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5985         GDBINIT_FILENAME.
5986
5987 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
5988
5989         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5990         find_variant_by_name, because it confuses the multiarch
5991         framework. Return NULL if there isn't an architecture with the
5992         user supplied name, instead of forcing a different one without
5993         recording the change with the multiarch machinery.
5994         (find_variant_by_name): Delete.
5995
5996 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
5997
5998         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5999         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6000
6001 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
6002
6003         * stack.c (print_frame_info_base): When calling
6004         print_frame_info_listing_hook, set current_source_symtab.
6005
6006 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
6007
6008         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6009         and remove unused $(INCLUDE_DIR).
6010         Add regcache.c to OBS.
6011         Add generated register protocol files to clean target.
6012         Update dependencies for new objects, obsolete old target code.
6013
6014         * gdbserver/linux-low.c: Remove all platform-specific code to
6015         new files.  Remove various dead code.  Update to use regcache
6016         functionality.
6017         * gdbserver/remote-utils.c (fromhex): Add return statement
6018         to quiet warning.
6019         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6020         constant.
6021         (input_interrupt): Add integer parameter to match prototype
6022         of a signal handler.
6023         (outreg): Use register_data ().
6024         (prepare_resume_reply): Use gdbserver_expedite_regs.
6025         * gdbserver/server.c (main): Dynamically allocate own_buf because
6026         PBUFSIZ is no longer constant.  Use registers_to_string () and
6027         registers_from_string ().
6028         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
6029         for error (), fatal (), and warning ().  Update definition of
6030         PBUFSIZ to use regcache functionality.  Add include guard.
6031         * gdbserver/utils.c (fatal): Add missing ``const''.
6032         (warning): New function.
6033
6034         * regformats/regdat.sh: Include "regcache.h" in generated files.
6035         Provide init_registers () function.
6036         * regformats/regdef.h: Add prototype for set_register_cache ().
6037         Add include guard.
6038
6039         * gdbserver/linux-arm-low.c: New file.
6040         * gdbserver/linux-i386-low.c: New file.
6041         * gdbserver/linux-ia64-low.c: New file.
6042         * gdbserver/linux-m68k-low.c: New file.
6043         * gdbserver/linux-mips-low.c: New file.
6044         * gdbserver/linux-ppc-low.c: New file.
6045         * gdbserver/linux-sh-low.c: New file.
6046
6047         * gdbserver/regcache.c: New file.
6048         * gdbserver/regcache.h: New file.
6049
6050         * gdbserver/low-linux.c: Removed obsolete file.
6051
6052 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
6053
6054         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6055         * config/i386/linux.mt: Likewise.
6056         * config/ia64/linux.mt: Likewise.
6057         * config/m68k/linux.mh: Likewise.
6058         * config/powerpc/linux.mh: Likewise.
6059         * config/mips/linux.mt: Likewise.
6060
6061         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6062
6063         * config/i386/i386lynx.mh: Mark gdbserver variables
6064         as (currently) obsolete for this target.
6065         * config/i386/nbsd.mt: Likewise.
6066         * config/i386/nbsdelf.mt: Likewise.
6067         * config/m32r/m32r.mt: Likewise.
6068         * config/m68k/m68klynx.mh: Likewise.
6069         * config/m68k/nbsd.mt: Likewise.
6070         * config/m68k/sun3os4.mh: Likewise.
6071         * config/mips/vr5000.mt: Likewise.
6072         * config/ns32k/nbsd.mt: Likewise.
6073         * config/pa/hppabsd.mh: Likewise.
6074         * config/pa/hppaosf.mh: Likewise.
6075         * config/powerpc/nbsd.mt: Likewise.
6076         * config/rs6000/rs6000lynx.mh: Likewise.
6077         * config/s390/s390.mt: Likewise.
6078         * config/s390/s390x.mt: Likewise.
6079         * config/sparc/sparclynx.mh: Likewise.
6080         * config/sparc/sun4os4.mh: Likewise.
6081         * config/i386/x86-64linux.mt: Likewise.
6082         * config/sparc/linux.mh: Likewise.
6083
6084 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
6085
6086         * configure.tgt: Configure gdbserver only for known working
6087         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
6088         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
6089         SUBDIRS if it is configured.  Update comment for ${nativefile}.
6090         * configure: Regenerated.
6091
6092 2002-02-13  Michael Snyder  <msnyder@redhat.com>
6093
6094         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6095
6096         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6097         (default_gcore_mach): Just return 0, work around a problem in bfd.
6098         (default_gcore_target): OK to return NULL if exec_bfd is null.
6099         (make_mem_sec): Use a cast, avoid a warning.
6100
6101         * procfs.c (find_memory_regions_callback): Use a cast instead of
6102         calling host_pointer_to_address (which complains if
6103         sizeof (host pointer) != sizeof (target pointer)).
6104         (procfs_make_note_section): Avoid overflow in psargs string.
6105
6106         * procfs.c (procfs_make_note_section): Make the default
6107         implementation return an error.
6108
6109 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
6110
6111         * procfs.c (procfs_make_note_section): Provide a default definition
6112         (for alpha-dec-osf4.0f). Fix typos.
6113
6114 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
6115
6116         * linux-proc.c: Add include of regcache.h.
6117         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6118
6119 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
6120
6121         From 2002-01-18 Greg McGary <greg@mcgary.org>:
6122         * memattr.c (create_mem_region): Disallow useless empty region.
6123         Regions are half-open intervals, so allow [A..B) [B..C) as
6124         non-overlapping.
6125
6126 2002-02-13  Michael Chastain <mec@shout.net>
6127
6128         * defs.h: Kill CONST_PTR.
6129         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6130         * c-lang.c (c_builtin_types): Likewise.
6131         * ch-lang.c (ch_builtin_types): Likewise.
6132         * f-lang.c (f_builtin_types): Likewise.
6133         * language.c (unknown_builtin_types): Likewise.
6134         * m2-lang.c (m2_builtin_types): Likewise.
6135         * p-lang.c (pascal_builtin_types): Likewise.
6136         * scm-lang.c (c_builtin_types): Likewise.
6137
6138 2002-02-13  Keith Seitz  <keiths@redhat.com>
6139
6140         * arm-tdep.h (arm_get_next_pc): Add declaration.
6141
6142 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
6143
6144         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
6145         with other related struct-returning functions.
6146         (arm_extract_struct_value_address): New function.
6147         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
6148         initialize float_format, double_format and long_double_format as
6149         appropriate to the endianness of the target.
6150         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6151         (arm_use_struct_convention): Delete declaration.
6152         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6153
6154 2002-02-13  Keith Seitz  <keiths@redhat.com>
6155
6156         * defs.h (core_addr_to_string_nz): New function.
6157
6158 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
6159
6160         Apply missing bits of 2002-01-15 patch.
6161         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6162         (fill_fpregset): Use i387_fill_fsave.
6163
6164 2002-02-12  Keith Seitz  <keiths@redhat.com>
6165
6166         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6167         (core_addr_to_string_nz): New function.
6168
6169 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
6170
6171         * arm-linux-nat.c: Really include arm-tdep.h.
6172         * config/arm/tm-linux.h (struct type, struct value): Declare.
6173
6174 2002-02-11  Michael Snyder  <msnyder@redhat.com>
6175
6176         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6177         (gcore section): Ifdef for Solaris and Unixware only.
6178         (procfs_do_thread_registers): Unixware needs one lwpstatus
6179         per thread (not one prstatus or pstatus).
6180         (procfs_make_note_section): Iterate only over kernel threads (lwps),
6181         not over all gdb threads.  For unixware, call elfcore_write_pstatus
6182         once before iterating over threads.
6183
6184 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
6185
6186         * arm-tdep.h: New file.
6187         * arm-tdep.c: Include arm-tdep.h.
6188         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6189         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6190         (arm_print_float_info, arm_register_type, convert_to_extended)
6191         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6192         (arm_extract_return_value, arm_register_name): Make static.
6193         (arm_software_single_step): Similarly.  Fix types in declaration.
6194         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6195         (arm_store_return_value, arm_store_struct_return): New functions.
6196         (arm_gdbarch_init): Register the above functions.  Also register
6197         call_dummy_start_offset, sizeof_call_dummy_words,
6198         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6199         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
6200         max_register_virtual_size, register_size.  Set up
6201         prologue_cache.saved_regs here, rather than ...
6202         (_initialize_arm_tdep): ... here.
6203         * config/arm/tm-arm.h (struct type, struct value): Delete forward
6204         declarations.
6205         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6206         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6207         (arm_print_float_info, arm_register_type, convert_to_extended)
6208         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6209         (arm_extract_return_value, arm_register_name): Delete declarations.
6210         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6211         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6212         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6213         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6214         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6215         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6216         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6217         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6218         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6219         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6220         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6221         (arm_get_next_pc): No-longer static -- these are needed by the RDI
6222         interface.
6223         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6224         * remote-rdi.c remote-rdp.c: Likewise.
6225         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6226         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6227         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6228         definition.
6229
6230         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6231         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6232         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6233         from non-ARM_ prefixed definitions.
6234         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6235         all uses of above.
6236         * remote-rdi.c remote-rdp.c: Likewise.
6237         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6238
6239 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
6240
6241         * arm-tdep.c (arm_frameless_function_invocation)
6242         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6243         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6244         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6245         (arm_pop_frame, arm_get_next_pc): Make static.
6246         (arm_gdbarch_init): Register above in gdbarch structure.
6247         (arm_read_fp): Renamed from arm_target_read_fp.
6248         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6249         * config/arm/tm-arm.h (arm_frameless_function_invocation)
6250         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6251         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6252         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6253         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6254         (arm_pc_is_thumb_dummy): Delete declarations.
6255         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6256         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6257         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6258         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
6259
6260 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
6261
6262         * symtab.c (compare_search_syms): New function.
6263         (sort_search_symbols): New function.
6264         (search_symbols): Sort symbols after searching rather than
6265         before.
6266
6267 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6268
6269         * NEWS: Linux -> GNU/Linux.
6270
6271 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6272
6273         * gdbarch.sh: For for level one methods, disallow a definition
6274         when partially multi-arched.  Add comments explaining rationale.
6275         * gdbarch.h: Re-generate.
6276
6277 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6278
6279         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6280         multi-arch partial.
6281
6282 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6283
6284         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
6285         field.  Use diff -u.
6286         * gdbarch.c: Re-generate.
6287
6288 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6289
6290         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
6291         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6292         partial.
6293
6294 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6295
6296         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6297         multi-arch partial.
6298         (PUSH_ARGUMENTS): Switch to using predefault.
6299         * gdbarch.c: Regenerate.
6300
6301 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
6302
6303         * valops.c (PUSH_ARGUMENTS): Delete definition.
6304         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6305         partial.  Default to default_push_arguments.
6306         * gdbarch.h, gdbarch.c: Regenerate.
6307
6308 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
6309
6310         * defs.h (throw_exception): Rename return_to_top_level.  Update
6311         comments.
6312         * utils.c (error_stream, internal_verror, quit): Ditto.
6313         * top.c (throw_exception, catcher): Ditto.
6314         * sparclet-rom.c (sparclet_load): Ditto.
6315         * remote.c (interrupt_query, minitelnet): Ditto.
6316         * remote-sds.c (interrupt_query): Ditto.
6317         * remote-mips.c (mips_error, mips_kill): Ditto.
6318         * ocd.c (interrupt_query): Ditto.
6319         * monitor.c (monitor_interrupt_query): Ditto.
6320         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6321         * target.h: Update comment.
6322
6323         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
6324
6325 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
6326
6327         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6328         default_double_format.
6329         * gdbarch.h, gdbarch.c: Re-generate.
6330         * findvar.c (floatformat_unknown): Delete variable definition.
6331         * doublest.h (floatformat_unknown): Delete variable declaration.
6332
6333 2002-02-09  Jim Blandy  <jimb@redhat.com>
6334
6335         * stabsread.c (read_type): Add code to parse Sun's syntax for
6336         prototyped function types.
6337
6338 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
6339
6340         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6341         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6342
6343 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
6344
6345         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6346         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
6347         now _initialize_xcoffsolib gets called again and overrides the
6348         commands from solib.c in a native configuration.
6349
6350 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
6351
6352         * doublest.c (store_typed_floating): Don't try to return a value.
6353         Fixes PR gdb/290.
6354
6355 2002-02-08  Jim Blandy  <jimb@redhat.com>
6356
6357         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6358         is prototyped and has no arguments, print its argument list as
6359         `(void)'.
6360
6361 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6362
6363         * MAINTAINERS (write-after-approval): Add myself.
6364         (paper-trail): I've escaped!
6365
6366 2002-02-08  Christopher Faylor  <cgf@redhat.com>
6367
6368         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6369         changes.
6370         (_initialize_check_for_gdb_ini): Ditto.
6371
6372 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
6373
6374         * win32-nat.c (cygwin_pid_to_str): Fix typo.
6375         xaprintf -> xasprintf.
6376
6377 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
6378
6379         * win32-nat.c: Remove use of printf and sprintf functions.
6380
6381 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
6382
6383         * arm-tdep.c (arm_frame_chain_valid): Make static.
6384         (arm_push_arguments): Likewise.
6385         (arm_gdbarch_init): New function.
6386         (_initialize_arm_tdep): Call it.
6387         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6388         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6389         (FRAME_CHAIN_VALID): Delete.
6390         (arm_frame_chain_valid): Delete declaration.
6391         (PUSH_ARGUMENTS): Delete.
6392         (arm_push_arguments): Delete declaration.
6393         (CALL_DUMMY_P): Delete.
6394
6395 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
6396             Corinna Vinschen  <vinschen@redhat.com>
6397
6398         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6399         on builtin float types.
6400
6401 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
6402
6403         * utils.c: Include <curses.h> before "bfd.h".
6404         * tui/tui-hooks.c: Likewise.
6405         * tui/tui.c: Likewise.
6406         * tui/tuiCommand.c: Likewise.
6407         * tui/tuiData.c: Likewise.
6408         * tui/tuiDataWin.c: Likewise.
6409         * tui/tuiDisassem.c: Likewise.
6410         * tui/tuiGeneralWin.c: Likewise.
6411         * tui/tuiIO.c: Likewise.
6412         * tui/tuiLayout.c: Likewise.
6413         * tui/tuiRegs.c: Likewise.
6414         * tui/tuiSource.c: Likewise.
6415         * tui/tuiSourceWin.c: Likewise.
6416         * tui/tuiStack.c: Likewise.
6417         * tui/tuiWin.c: Likewise.
6418
6419 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
6420
6421         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6422         to include space for pseudoregs as well. Update loops accordingly.
6423         (sh_fp_frame_init_saved_regs): Ditto.
6424         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6425
6426 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
6427
6428         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6429         Add Richard Earnshaw to Arm maintainers.
6430
6431 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
6432
6433         * defs.h (warning_begin): Delete declaration.
6434
6435         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6436         Delete macro.
6437
6438 2002-02-07  Michael Snyder  <msnyder@redhat.com>
6439
6440         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6441         Logic bug, remove misplaced else.
6442
6443 2002-02-07  Klee Dienes  <klee@apple.com>
6444
6445         * fork-inferior.c (fork_inferior): Add '!' to the list of
6446         characters that need to be quoted when building a string for the
6447         shell.  Quote '!' specifically with a backslash, since CSH chokes
6448         when trying to evaluate "str!str".
6449
6450 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
6451
6452         * rdi-share/host.h: Only provide a typedef for bool if it is not
6453         defined.
6454
6455 2002-02-04  Michael Snyder  <msnyder@redhat.com>
6456
6457         * breakpoint.h (enum bptype): Add new overlay event bp type.
6458         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
6459
6460         * breakpoint.c (create_internal_breakpoint): New function.
6461         (internal_breakpoint_number): Moved into create_internal_breakpoint.
6462         (create_longjmp_breakpoint): Use create_internal_breakpoint.
6463         (create_thread_event_breakpoint): Ditto.
6464         (create_solib_event_breakpoint): Ditto.
6465         (create_overlay_event_breakpoint): New function.
6466         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6467         (update_breakpoints_after_exec): Delete and re-initialize
6468         overlay event breakpoints after an exec.  Add FIXME comment
6469         about longjmp breakpoint.
6470         (print_it_typical): Ignore overlay event breakpoints.
6471         (print_one_breakpoint): Ditto.
6472         (mention): Ditto.
6473         (bpstat_what): Do not stop for overlay event breakpoints.
6474         (delete_breakpoint): Don't delete overlay event breakpoints.
6475         (breakpoint_re_set_one): Delete the overlay event breakpoint.
6476         (breakpoint_re_set): Re-create overlay event breakpoint.
6477
6478         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6479         (overlay_manual_command): Disable overlay breakpoints.
6480         (overlay_off_command): Disable overlay breakpoints.
6481
6482 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
6483
6484         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6485         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6486         to here from config/tm-arm.h.
6487         (coff_sym_is_thumb): Make static.
6488         (arm_elf_make_msymbol_special): New function.
6489         (arm_coff_make_msymbol_special): New function.
6490         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6491         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6492         (coff_sym_is_thumb): Delete declaration.
6493         (arm_elf_make_msymbol_special): Declare.
6494         (arm_coff_make_msymbol_special): Declare.
6495         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6496         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6497
6498 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
6499
6500         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6501
6502 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
6503
6504         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6505         * gdbarch.c gdbarch.h: Regenerate.
6506         * arch-utils.c (default_print_float_info): New function.
6507         * arch-utils.h (default_print_float_info): Prototype it.
6508         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6509         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6510         (PRINT_FLOAT_INFO): Document it.
6511
6512         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6513         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6514         (PRINT_FLOAT_INFO): Define.
6515
6516 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
6517
6518         * win32-nat.c (_initialize_check_for_gdb_ini):
6519         Add typecast to sprintf argument to suppress a warning.
6520
6521 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
6522
6523         * win32-nat.c (last_sig): Changed type of variable to target_signal,
6524         to allow easier handling of pass state.
6525         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6526         that gives exception name and address.
6527         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
6528         and set last_sig value to ourstatus->value.sig. Some missing
6529         exceptions added.
6530         (child_continue): Correctly report continue_status.
6531         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
6532         TARGET_SIGNAL_0 (new default value).
6533         (child_resume): consider sig argument passed to decide if
6534         the exception should be passed to debuggee or not.
6535
6536 2002-02-05  Michael Snyder  <msnyder@redhat.com>
6537
6538         * regcache.c (fetch_register): Call target_fetch_register
6539         only if we don't call FETCH_PSEUDO_REGISTER.
6540         (store_register): Call target_store_register only if we
6541         don't call STORE_PSEUDO_REGISTER.
6542
6543 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
6544
6545         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6546         ELF_MAKE_MSYMBOL_SPECIAL.
6547         * gdbarch.c, gdbarch.h: Regenerate.
6548         * arch-utils.c (default_make_msymbol_special): New function.
6549         * arch-utils.h (default_make_msymbol_special): Export.
6550         * elfread.c (elf_symtab_read): Compile use of
6551         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6552         multiarched.
6553         * coffread.c (coff_symtab_read): Ditto, for
6554         COFF_MAKE_MSYMBOL_SPECIAL.
6555
6556 2002-02-05  Jim Blandy  <jimb@redhat.com>
6557
6558         * solib-svr4.c (svr4_truncate_ptr): New function.
6559         (svr4_relocate_section_addresses): Do the address arithmetic with
6560         the appropriate truncation for target addresses, even when
6561         CORE_ADDR is larger than a target address.
6562
6563 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6564
6565         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6566         to (int *).
6567
6568 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6569
6570         * gdbserver/linux-low.c (kill_inferior): Remove commented out
6571         code.
6572
6573 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6574
6575         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6576
6577 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6578
6579         * gdbserver/linux-low.c: Remove unused include files.
6580
6581 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6582
6583         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6584         (read_inferior_memory): Use it.
6585         (write_inferior_memory): Likewise.
6586
6587 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6588
6589         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6590         grubbing through sys_errlist.
6591
6592 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
6593
6594         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6595
6596 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6597         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6598
6599 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
6600
6601         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6602         (do_sfunc, set_cmd_sfunc): New functions.
6603
6604         * command.h (struct cmd_list_element): Add field func.
6605         * cli/cli-decode.h (struct cmd_list_element): Ditto.
6606         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6607         * cli/cli-decode.h: Ditto.
6608
6609         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6610         (help_all, help_cmd_list): Ditto.
6611         (find_cmd, complete_on_cmdlist): Ditto.
6612         * top.c (execute_command): Ditto.
6613
6614         * cli/cli-setshow.c (do_setshow_command): Call func instead of
6615         function.sfunc.
6616
6617         * infcmd.c (notice_args_read): Fix function signature.
6618
6619         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6620         * cli/cli-decode.c (add_set_cmd): Ditto.
6621         * utils.c (initialize_utils): Ditto.
6622         * maint.c (_initialize_maint_cmds): Ditto.
6623         * infrun.c (_initialize_infrun): Ditto.
6624         * demangle.c (_initialize_demangler): Ditto.
6625         * remote.c (add_packet_config_cmd): Ditto.
6626         * mips-tdep.c (_initialize_mips_tdep): Ditto.
6627         * cris-tdep.c (_initialize_cris_tdep): Ditto.
6628         * proc-api.c (_initialize_proc_api): Ditto.
6629         * kod.c (_initialize_kod): Ditto.
6630         * valprint.c (_initialize_valprint): Ditto.
6631         * top.c (init_main): Ditto.
6632         * infcmd.c (_initialize_infcmd): Ditto.
6633         * corefile.c (_initialize_core): Ditto.
6634         * arm-tdep.c (_initialize_arm_tdep): Ditto.
6635         * arch-utils.c (initialize_current_architecture): Ditto.
6636         (_initialize_gdbarch_utils): Ditto.
6637         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6638
6639         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6640         * wince.c (_initialize_inftarg): Ditto.
6641         * symfile.c (_initialize_symfile): Ditto.
6642         * mips-tdep.c (_initialize_mips_tdep): Ditto.
6643         * language.c (_initialize_language): Ditto.
6644         * arc-tdep.c (_initialize_arc_tdep): Ditto.
6645
6646 2002-02-04  Michael Snyder  <msnyder@redhat.com>
6647
6648         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6649
6650 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6651
6652         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6653         Add rules for building the register data files.
6654
6655 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6656
6657         * regformats/regdat.sh: Add braces to the definition of
6658         expedite_regs_${arch}.
6659
6660 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
6661
6662         * regformats/regdef.h (struct reg): Add comment describing the
6663         requirements for offset and size fields.
6664
6665 2002-02-04  Andreas Schwab  <schwab@suse.de>
6666
6667         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6668         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6669
6670 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
6671
6672         * gdbarch.sh (copyright): Update years in generated header.
6673         (SMASH_TEXT_ADDRESS): Add rule.
6674         * gdbarch.h, gdbarch.c: Re-generate.
6675         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6676         * dbxread.c: Likewise.
6677         * dwarfread.c: Likewise.
6678         * elfread.c: Likewise.
6679         * somread.c: Likewise.
6680
6681         * arm-tdep.c (arm_smash_text_address): New function.
6682         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6683
6684 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
6685
6686         Add support for hardware watchpoints on win32 native.
6687         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
6688         CONTEXT_DEBUG_REGISTERS.
6689         (dr variable): New variable. Static array containing a local copy
6690         of debug registers.
6691         (debug_registers_changed): New variable.  Reflects when debug registers
6692         are changed and need to be written to inferior.
6693         (debug_registers_used): New variable. Reflects when any debug register
6694         was set, used when new threads are created.
6695         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6696         i386-nat code.
6697         (thread_rec): Set dr array if id is the thread of current_event .
6698         (child_continue, child_resume): Change the debug registers for all
6699         threads if debug_registers_changed.
6700         (child_add_thread): Change the debug registers if debug_registers_used.
6701         * config/i386/cygwin.mh: Add use of i386-nat.o file.
6702         Link nm.h to new nm-cygwin.h file.
6703         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6704         of hardware registers.
6705
6706 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
6707
6708         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6709         Restore behavour broken by 2002-01-20 Andrew Cagney
6710         <ac131313@redhat.com> IEEE_FLOAT removal.
6711
6712 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6713
6714         * c-valprint.c (c_val_print): Pass a proper valaddr to
6715         cp_print_class_method.
6716         * valops.c (search_struct_method): If there is only one method
6717         and args is NULL, return that method.
6718
6719 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6720
6721         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6722         accessing tag_name directly.
6723
6724 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6725
6726         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6727         of accessing tag_name directly.
6728
6729 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
6730
6731         PR gdb/280
6732         * gdbtypes.c (replace_type): New function.
6733         * gdbtypes.h (replace_type): Add prototype.
6734         * stabsread.c (read_type): Use replace_type.
6735
6736 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
6737
6738         * Makefile.in (memattr.o): Add missing dependencies rule.
6739
6740 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
6741
6742         * breakpoint.c (break_at_finish_command): Really export.
6743         (break_at_finish_at_depth_command): Ditto.
6744         (tbreak_at_finish_command): Ditto.
6745         * hppa-tdep.c: Include completer.h.
6746         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6747         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6748
6749 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6750
6751         * utils.c (do_write): New function.
6752         (error_stream): Rewrite combining the code from error_begin and
6753         verror.
6754         (verror): Rewrite using error_stream.
6755         (error_begin): Delete function.
6756
6757 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6758
6759         * utils.c (error_begin): Make static.
6760         * defs.h (error_begin): Delete declaration.
6761
6762         * linespec.c (cplusplus_error): Replace cplusplus_hint.
6763         (decode_line_1): Use cplusplus_error instead of error_begin,
6764         cplusplus_hint and return_to_top_level.
6765         * coffread.c (coff_symfile_read): Use error instead of error_begin
6766         and return_to_top_level.
6767         * infrun.c (default_skip_permanent_breakpoint): Ditto.
6768
6769 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6770
6771         * language.h (type_error, range_error): Make string parameter
6772         constant.
6773         * language.c (warning_pre_print): Delete extern declaration.
6774         * dwarfread.c (warning_pre_print): Ditto.
6775         * language.c (type_error, range_error): Rewrite to use verror and
6776         vwarning instead of warning_begin.
6777
6778 2002-02-01  Michael Snyder  <msnyder@redhat.com>
6779
6780         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6781         (set_ignore_count): Move misplaced comment back where it belongs.
6782
6783 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
6784
6785         * command.h (NO_FUNCTION): Delete macro.
6786         * cli/cli-decode.h (NO_FUNCTION): Ditto.
6787         * top.c (execute_command): Replace NO_FUNCTION with NULL.
6788         * tracepoint.c (_initialize_tracepoint): Ditto.
6789         * cli/cli-decode.c (add_set_cmd): Ditto.
6790         * cli/cli-cmds.c (init_cli_cmds): Ditto.
6791
6792 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
6793
6794         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6795         Update ``this'' pointer when calling virtual functions.
6796
6797 2002-02-01  Michael Snyder  <msnyder@redhat.com>
6798
6799         * breakpoint.c (create_temp_exception_breakpoint): Delete.
6800         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6801
6802 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
6803
6804         * regformats/reg-arm.dat: New file.
6805         * regformats/reg-i386.dat: New file.
6806         * regformats/reg-ia64.dat: New file.
6807         * regformats/reg-m68k.dat: New file.
6808         * regformats/reg-mips.dat: New file.
6809         * regformats/reg-ppc.dat: New file.
6810         * regformats/reg-sh.dat: New file.
6811         * regformats/regdef.h: New file.
6812         * regformats/regdat.sh: New file.
6813
6814 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
6815
6816         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6817         (arm_frame_args_address, arm_frame_locals_address): New functions.
6818         (arm_frame_num_args): New function.
6819         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6820         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6821         (FRMA_NUM_ARGS): Call arm_frame_num_args.
6822
6823 2002-01-31  Michael Snyder  <msnyder@redhat.com>
6824
6825         * breakpoint.c (break_at_finish_command): Export.
6826         (break_at_finish_at_depth_command): Export.
6827         (tbreak_at_finish_command): Export.
6828         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6829         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6830         "tbreak" commands, which are HPPA specific.
6831
6832         * printcmd.c (disassemble_command): Remove an ancient
6833         artifact of an old merge.
6834
6835         * symfile.h (enum overlay_debugging_state):
6836         Define enum constant values for overlay mode.
6837         * symfile.c (overlay_debugging): Use enums instead of literals.
6838         (overlay_is_mapped, overlay_auto_command,
6839         overlay_manual_command): Ditto.
6840
6841         * breakpoint.c (insert_breakpoints, remove_breakpoint,
6842         breakpoint_here_p, breakpoint_inserted_here_p,
6843         breakpoint_thread_match, bpstat_stop_status,
6844         describe_other_breakpoints, check_duplicates, clear_command):
6845         Coding standard fixes.
6846
6847         * target.c (target_xfer_memory): Add spaces, coding standard.
6848         (do_xfer_memory): Add missing line to trust-readonly
6849         code: check bfd SEC_READONLY flag for section.
6850
6851 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
6852
6853         * PROBLEMS: Fix typo, 5.1->5.1.1.
6854
6855 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
6856
6857         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6858         data symbols, since we search based on textlow and texthigh.
6859         (find_pc_sect_symtab): Likewise.
6860
6861 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
6862
6863         * defs.h (vwarning): Declare.
6864         * utils.c (vwarning): New function.
6865         (warning): Call vwarning.
6866         (warning_begin): Delete function.
6867
6868         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6869         the warning message.
6870         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6871         warning_begin.
6872
6873 2002-01-30  Michael Snyder  <msnyder@redhat.com>
6874
6875         * NEWS: Mention "set trust-readonly-sections" command.
6876         Mention generate-core-file command.
6877
6878 2002-01-15  Michael Snyder  <msnyder@redhat.com>
6879
6880         * target.c: New command, "set trust-readonly-sections on".
6881         (do_xfer_memory): Honor the suggestion to trust readonly sections
6882         by reading them from the object file instead of from the target.
6883         (initialize_targets): Register command "set trust-readonly-sections".
6884
6885 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
6886
6887         * parse.c (target_map_name_to_register): Simplify, search regs and
6888         pseudo-regs using a single loop.
6889
6890 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
6891
6892         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6893
6894 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
6895
6896         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6897         * config/i386/i386v42mp.mh: Add i387-nat.o .
6898         * i386v4-nat.c: Include i387-nat.h.
6899         (supply_fpregset): Use i387_supply_fsave.
6900         (fill_fpregset): Use i387_fill_fsave.
6901
6902 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
6903
6904         * arm-tdep.c (arm_call_dummy_words): Define.
6905         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6906         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6907         (CALL_DUMMY_WORDS): Define.
6908         (arm_call_dummy_words): Declare.
6909         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6910         (arm_linux_call_dummy_words): Declare.
6911
6912 2002-01-30  Andreas Schwab  <schwab@suse.de>
6913
6914         * m68klinux-nat.c: Fix last change to use regcache_collect
6915         instead of referencing registers[] directly.
6916
6917 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
6918
6919         * parse.c (target_map_name_to_register): Delete code wrapped in
6920         #ifdef REGISTER_NAME_ALIAS_HOOK.
6921
6922 2002-01-28  Michael Snyder  <msnyder@redhat.com>
6923
6924         * regcache.c (legacy_read_register_gen): Need to be able to
6925         read pseudo-register as well as real register.
6926         (legacy_write_register_gen): Ditto.
6927
6928 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6929
6930         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6931         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6932         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6933         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6934         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6935         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6936         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6937         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6938         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6939         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6940         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6941         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6942         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6943         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6944         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6945         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6946         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6947         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6948         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6949         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6950
6951 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6952
6953         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6954         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6955         (initialize_current_architecture): Update target_byte_order using
6956         information from BFD.
6957         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6958         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6959
6960 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
6961
6962         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6963         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
6964
6965         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6966         #ifdef INVALID_FLOAT.
6967         * infcmd.c (do_registers_info): Ditto.
6968         * values.c (unpack_double): Ditto.  Add comment.
6969
6970         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6971         already commented out.
6972
6973 2002-01-26  Andreas Schwab  <schwab@suse.de>
6974
6975         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6976         * m68klinux-nat.c: Update ptrace interface for fetching/storing
6977         registers and add support for PTRACE_GETREGS.
6978
6979 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
6980
6981         GDB 5.1.1 released from 5.1 branch.
6982         * NEWS: Add 5.1.1 news.
6983         * README: Sync with 5.1 branch.
6984
6985 2002-01-23  Fred Fish  <fnf@redhat.com>
6986
6987         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6988         stabstring on initial malloc.  Reallocing will copy it for us,
6989         if necessary.
6990
6991 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
6992
6993         * Makefile.in (hpread_h): Delete.
6994         (HFILES_NO_SRCDIR): Remove hpread.h.
6995         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6996         (hpread.o): Update dependencies.
6997         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6998
6999         * hp-psymtab-read.c: Remove file.
7000         * hp-symtab-read.c: Remove file.
7001         * hpread.h: Remove file.
7002
7003         * hpread.c: Merge all contents of hp-psymtab-read.c,
7004         hp-symtab-read.c and hpread.h into this file, as it was prior to
7005         January 1999.
7006
7007         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
7008         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
7009         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7010         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7011
7012 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
7013
7014         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7015         fill_gregset): Call gdbarch_tdep() just once, assign result to
7016         variable and use that, instead of calling the function several
7017         times.
7018
7019 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7020
7021         * configure.host: Accept sparcv9 as alias for sparc64.
7022         * configure.tgt: Likewise.
7023
7024 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
7025
7026         * solib-aix5.c (build_so_list_from_mapfile)
7027         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7028         arguments is not reversed.
7029         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7030         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
7031
7032 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
7033
7034         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7035         modified version of obsolete sh_fetch_pseudo_register.
7036         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7037         (sh4_register_read): New function.
7038         (sh_pseudo_register_write): New function. Renamed and modified
7039         version of obsolete sh_store_pseudo_register.
7040         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7041         (sh4_register_write): New function.
7042         (sh_gdbarch_init): Remove setting of gdbarch function
7043         fetch_pseudo_register and store_pseudo_register. Remove setting of
7044         register_convert_to_raw, register_convert_to_virtual,
7045         register_convertible.
7046         (sh_sh4_register_convertible): Delete. No longer needed. All is
7047         taken care by architecture specific functions
7048         register_read/register_write.
7049         (sh_sh4_register_convert_to_virtual): Make static.
7050         (sh_sh4_register_convert_to_raw): Ditto.
7051
7052 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
7053
7054         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7055         (floatformat_is_nan, floatformat_mantissa): Ditto.
7056
7057         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7058         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7059         builtin_type_ieee_double_little,
7060         builtin_type_ieee_double_littlebyte_bigword,
7061         builtin_type_m68881_ext, builtin_type_i960_ext,
7062         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7063         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7064         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7065         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7066
7067 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
7068
7069         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7070         parameter.  Set frameless flag if it exists and depended of
7071         whether the scanned function is frameless or not.
7072         (xstormy16_skip_prologue): If function is frameless, return
7073         result of xstormy16_scan_prologue().
7074         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7075         call.
7076
7077 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
7078
7079         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7080         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7081         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7082         sh_sh4_register_byte, sh_sh4_register_raw_size,
7083         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7084         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7085         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7086         sh_store_pseudo_register, sh_do_pseudo_register): Call
7087         gdbarch_tdep() just once, assign result to variable and use that,
7088         instead of calling the function several times.
7089
7090 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
7091
7092         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7093         macros instead of LAST_FPU_CTRL_REGNUM.
7094         (store_register): Likewise.
7095
7096 2002-01-21  Jim Blandy  <jimb@redhat.com>
7097
7098         * infcmd.c (run_command): Check that the `exec' target layer's BFD
7099         is up-to-date before running the program, not just when a program
7100         exits.
7101
7102 2002-01-21  Fred Fish  <fnf@redhat.com>
7103
7104         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7105         when we have found all instructions we are looking for.
7106
7107 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
7108
7109         * arm-tdep.c (arm_register_name): New function.
7110         (arm_registers_names): Make static.
7111         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7112         (arm_register_name): Declare.
7113         (REGISTER_NAME): Use it.
7114
7115 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
7116             Kevin Buettner  <kevinb@redhat.com>
7117
7118         Convert arm targets to new FRAME interface.
7119         * arm-tdep.c (struct frame_extra_info): Remove fsr.
7120         (arm_frame_find_save_regs): Delete.
7121         (arm_frame_init_saved_regs): New.
7122         (arm_init_extra_frame_info): Alloacte saved_regs as required.
7123         Allocate extra_info as required.  Convert all uses of fsr.regs
7124         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7125         to use extra_info.
7126         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7127         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7128         (check_prologue_cache, save_prologue_cache): Likewise.
7129         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7130         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7131         (FRAME_FIND_SAVED_REGS): Delete.
7132         (arm_frame_find_saved_regs): Delete prototype.
7133         (arm_frame_init_saved_regs): New prototype.
7134         (FRAME_INIT_SAVED_REGS): Define.
7135
7136 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7137
7138         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7139
7140 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7141
7142         From Jeff Law <law@redhat.com>:
7143         * infttrace.c: Include <sys/pstat.h>.
7144         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
7145         exec file if the ttrace equivalent fails.
7146
7147 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7148
7149         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7150         (closeLogFile): Ditto.
7151
7152 2002-01-20  Michael Chastain  <mec@shout.net>
7153
7154         * top.c (print_gdb_version): Bump copyright year to 2002.
7155
7156 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7157
7158         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7159         Zannoni and Eli Zaretskii.
7160
7161 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
7162
7163         * buildsym.c: Update copyright years.
7164         * c-typeprint.c: Likewise.
7165         * dwarf2read.c: Likewise.
7166         * f-typeprint.c: Likewise.
7167         * gdbtypes.c: Likewise.
7168         * gdbtypes.h: Likewise.
7169         * hp-symtab-read.c: Likewise.
7170         * hpread.c: Likewise.
7171         * mdebugread.c: Likewise.
7172         * p-typeprint.c: Likewise.
7173
7174 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7175
7176         * remote-sim.c (gdbsim_open): Simplify code testing the macro
7177         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
7178         byte-order selectable.
7179         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7180         * arch-utils.c: Ditto.
7181         (set_endian): Ditto.
7182         (set_endian_from_file): Ditto.
7183         * gdbserver/low-sim.c (create_inferior): Ditto.
7184         * gdbarch.sh: Ditto.
7185         * gdbarch.h: Re-generate.
7186         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7187         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7188         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7189         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7190         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7191         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7192         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
7193         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7194         macro definition.
7195         * config/mips/tm-wince.h: Remove #undef of macro
7196         TARGET_BYTE_ORDER_SELECTABLE.
7197         * config/sh/tm-wince.h: Ditto.
7198
7199 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
7200
7201         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7202         member function fields.  Add accessor macro
7203         TYPE_FN_FIELD_ARTIFICIAL.
7204         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7205         * c-typeprint.c (c_type_print_base): Skip artificial member
7206         functions.
7207
7208 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
7209
7210         * f-typeprint.c: Delete unused function f_type_print_args.
7211         * p-typeprint.c: Delete unused function pascal_type_print_args.
7212
7213 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
7214
7215         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
7216         comment.  Add ``artificial'' to ``union field_location''.
7217
7218         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7219
7220         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7221         * mdebugread.c (parse_symbol): Likewise.
7222         * stabsread.c (define_symbol): Likewise.
7223         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7224         initializing TYPE_FIELD_BITPOS to n (obsolete).
7225         (hpread_doc_function_type): Likewise.
7226         * hpread.c (hpread_function_type): Likewise.
7227
7228 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7229
7230         * configure.in (host_makefile_frag): Only require a host makefile
7231         fragment when a native build.
7232         * configure: Re-generate.
7233
7234 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
7235
7236         * doublest.h (floatformat_from_type): Declare.
7237         * doublest.c (floatformat_from_type): New function.
7238         (convert_typed_floating): Use.
7239
7240         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7241         call to function floatformat_from_type.
7242
7243         * gdbarch.sh (IEEE_FLOAT): Delete.
7244         * gdbarch.h, gdbarch.c: Re-generate.
7245         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7246         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7247         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7248         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7249         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7250         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7251         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7252         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7253         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7254         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7255         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
7256         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7257
7258         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7259         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7260         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7261         * sh-tdep.c (sh_gdbarch_init): Ditto.
7262         * mips-tdep.c (mips_gdbarch_init): Ditto.
7263         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7264         * cris-tdep.c (cris_gdbarch_init): Ditto.
7265
7266 2002-01-20  Jiri Smid  <smid@suse.cz>
7267
7268         * configure.host, configure.tgt: Support x86-64.
7269         * NEWS: Note new target x86-64.
7270
7271         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7272         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7273         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7274         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7275         x86-64-linux-nat.o): Fix dependencies.
7276
7277 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
7278
7279         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7280         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7281         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7282         * config/sparc/xm-sun4os4.h: Delete file.
7283         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
7284
7285 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
7286
7287         * config/sparc/sparclynx.mh (XM_FILE): Delete.
7288         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7289         * config/m68k/m68klynx.mh (XM_FILE): Delete.
7290         * config/i386/i386lynx.mh (XM_FILE): Delete.
7291         * config/rs6000/xm-rs6000ly.h: Delete file.
7292         * config/sparc/xm-sparclynx.h: Delete file.
7293         * config/m68k/xm-m68klynx.h: Delete file.
7294         * config/i386/xm-i386lynx.h: Delete file.
7295         * config/xm-lynx.h: Delete file.
7296         * config/djgpp/fnchange.lst: Update.
7297
7298 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
7299
7300         * alpha-tdep.c (alpha_register_byte): New function.
7301         (alpha_register_raw_size): Ditto.
7302         (alpha_register_virtual_size): Ditto.
7303         (alpha_skip_prologue_internal): Renamed from
7304         alpha_skip_prologue.
7305         (alpha_skip_prologue): New version that calls
7306         alpha_skip_prologue_internal.
7307         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7308         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7309         second argument from alpha_skip_prologue.
7310         (REGISTER_BYTE): Use alpha_register_byte.
7311         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7312         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7313         (FRAMELESS_FUNCTION_INVOCATION): Use
7314         generic_frameless_function_invocation_not.
7315         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7316         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7317
7318 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
7319
7320         * config/mips/xm-news-mips.h: Delete file.
7321         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7322
7323         * config/m88k/xm-m88k.h: Delete file.
7324         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7325         * config/m88k/xm-delta88v4.h: Ditto.
7326         * config/m88k/xm-delta88.h: Ditto.
7327
7328         * config/alpha/xm-fbsd.h: Delete file.
7329         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7330
7331         * config/sparc/xm-sparc.h: Delete file.
7332         * Makefile.in (xm-sun4os4.h): Delete dependency.
7333         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7334         * config/sparc/xm-sun4os4.h: Ditto.
7335         * config/sparc/xm-linux.h: Ditto.
7336
7337         * config/i386/xm-windows.h: Delete file.
7338
7339 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
7340
7341         * utils.c: Include <sys/param.h> for MAXPATHLEN.
7342         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7343
7344 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
7345
7346         * alpha-tdep.c (alpha_call_dummy_words): New.
7347         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7348         (CALL_DUMMY_P): Define.
7349         (CALL_DUMMY_WORDS): Define.
7350         (SIZEOF_CALL_DUMMY_WORDS): Define.
7351
7352 2002-01-19  Per Bothner  <per@bothner.com>
7353
7354         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
7355         isn't NULL, which can happen with some gcj-3.x-produced code.
7356
7357 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
7358
7359         * alpha-tdep.c (alpha_register_virtual_type): New function.
7360         (alpha_init_frame_pc_first): Ditto.
7361         (alpha_fix_call_dummy): Ditto.
7362         (alpha_store_struct_return): Ditto.
7363         (alpha_extract_struct_value_address): Ditto.
7364         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7365         alpha_register_virtual_type.
7366         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7367         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7368         alpha_extract_struct_value_address.
7369         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7370         (INIT_FRAME_PC): Use init_frame_pc_noop.
7371         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7372
7373 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
7374
7375         * i386gnu-nat.c: Include "i386-tdep.h".
7376         (fetch_fpregs): Simplify code dealing with uninitialized floating
7377         point states such that it doesn't require FP7_REGNUM.
7378
7379 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7380
7381         * alpha-tdep.c (frame_extra_info): New.
7382         (alpha_find_saved_regs): Make static.  Use
7383         frame->extra_info.
7384         (alpha_frame_init_saved_regs): New function.
7385         (alpha_frame_saved_pc): Use frame->extra_info.
7386         (temp_saved_regs): Don't declare as struct frame_saved_regs.
7387         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
7388         (init_extra_frame_info): Rename to...
7389         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
7390         (alpha_print_extra_frame_info): New function.
7391         (alpha_frame_locals_address): Ditto.
7392         (alpha_frame_args_address): Ditto.
7393         (alpha_pop_frame): Use frame->extra_info.
7394         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7395         alpha_frame_args_address.
7396         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
7397         (alpha_find_saved_regs): Remove prototype.
7398         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7399         (EXTRA_FRAME_INFO): Remove.
7400         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7401         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7402
7403 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7404
7405         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7406         (alpha_cannot_fetch_register): Ditto.
7407         (alpha_cannot_store_register): Ditto.
7408         (alpha_register_convertible): Ditto.
7409         (alpha_use_struct_convention): Ditto.
7410         * config/alpha/tm-alpha.h: Update copyright years.
7411         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7412         (INNER_THAN): Use core_addr_lessthan.
7413         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7414         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7415         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7416         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7417         (FRAME_CHAIN): Remove unnecessary cast.
7418
7419 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
7420
7421         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7422         obsolete.
7423
7424 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
7425
7426         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
7427         * monitor.c, remote-array.c, remote-bug.c: Ditto.
7428         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7429         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7430         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7431         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7432         * x86-64-linux-nat.c: Ditto.
7433
7434 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7435
7436         * alpha-tdep.c (alpha_register_name): New function.
7437         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7438         (REGISTER_NAME): Define.
7439
7440 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7441
7442         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7443
7444 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7445
7446         * alpha-tdep.c: Update copyright years.
7447         (alpha_next_pc): New function.
7448         (alpha_software_single_step): Ditto.
7449         * config/alpha/tm-alpha.h: Add prototype for
7450         alpha_software_single_step.
7451
7452 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
7453
7454         * alphabsd-nat.c: Update copyright years.
7455         (fill_gregset): Use regcache_collect.
7456         (fill_fpregset): Likewise.
7457         (fetch_inferior_registers): Only fetch integer registers
7458         if requested to do so.
7459         (store_inferior_registers): Only store integer registers
7460         if requested to do so.
7461
7462 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
7463
7464         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7465         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7466         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7467         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7468         * config/alpha/fbsd.mh (XDEPFILES): Delete.
7469         * config/arm/linux.mh (XDEPFILES): Delete.
7470         * config/arm/nbsd.mh (XDEPFILES): Delete.
7471         * config/i386/i386dgux.mh (XDEPFILES): Delete.
7472         * config/i386/i386sol2.mh (XDEPFILES): Delete.
7473         * config/i386/i386m3.mh (XDEPFILES): Delete.
7474         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7475         * config/i386/i386gnu.mh (XDEPFILES): Delete.
7476         * config/i386/fbsd.mh (XDEPFILES): Delete.
7477         * config/i386/i386bsd.mh (XDEPFILES): Delete.
7478         * config/i386/i386sco5.mh (XDEPFILES): Delete.
7479         * config/i386/i386v4.mh (XDEPFILES): Delete.
7480         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7481         * config/i386/i386sco4.mh (XDEPFILES): Delete.
7482         * config/i386/i386aix.mh (XDEPFILES): Delete.
7483         * config/i386/go32.mh (XDEPFILES): Delete.
7484         * config/i386/cygwin.mh (XDEPFILES): Delete.
7485         * config/i386/i386lynx.mh (XDEPFILES): Delete.
7486         * config/i386/i386mach.mh (XDEPFILES): Delete.
7487         * config/i386/i386v32.mh (XDEPFILES): Delete.
7488         * config/i386/linux.mh (XDEPFILES): Delete.
7489         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7490         * config/i386/ncr3000.mh (XDEPFILES): Delete.
7491         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7492         * config/i386/i386sco.mh (XDEPFILES): Delete.
7493         * config/i386/i386v.mh (XDEPFILES): Delete.
7494         * config/i386/nbsd.mh (XDEPFILES): Delete.
7495         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7496         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7497         * config/i386/symmetry.mh (XDEPFILES): Delete.
7498         * config/i386/obsd.mh (XDEPFILES): Delete.
7499         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7500         * config/ia64/linux.mh (XDEPFILES): Delete.
7501         * config/ia64/aix.mh (XDEPFILES): Delete.
7502         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7503         * config/m68k/dpx2.mh (XDEPFILES): Delete.
7504         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7505         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7506         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7507         * config/m68k/linux.mh (XDEPFILES): Delete.
7508         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7509         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7510         * config/m68k/nbsd.mh (XDEPFILES): Delete.
7511         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7512         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7513         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7514         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7515         * config/m88k/delta88.mh (XDEPFILES): Delete.
7516         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7517         * config/m88k/m88k.mh (XDEPFILES): Delete.
7518         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7519         * config/mips/linux.mh (XDEPFILES): Delete.
7520         * config/mips/irix6.mh (XDEPFILES): Delete.
7521         * config/mips/irix5.mh (XDEPFILES): Delete.
7522         * config/mips/irix4.mh (XDEPFILES): Delete.
7523         * config/mips/irix3.mh (XDEPFILES): Delete.
7524         * config/mips/decstation.mh (XDEPFILES): Delete.
7525         * config/mips/mipsm3.mh (XDEPFILES): Delete.
7526         (NATDEPFILES): Move core-aout.o to here.
7527         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7528         * config/pa/hpux1020.mh (XDEPFILES): Delete.
7529         * config/pa/hppabsd.mh (XDEPFILES): Delete.
7530         * config/pa/hppahpux.mh (XDEPFILES): Delete.
7531         * config/pa/hpux11w.mh (XDEPFILES): Delete.
7532         * config/pa/hppaosf.mh (XDEPFILES): Delete.
7533         * config/pa/hpux11.mh (XDEPFILES): Delete.
7534         * config/powerpc/aix.mh (XDEPFILES): Delete.
7535         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7536         * config/powerpc/linux.mh (XDEPFILES): Delete.
7537         * config/romp/rtbsd.mh: Rename XDEPFILES.
7538         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7539         * config/rs6000/aix4.mh (XDEPFILES): Delete.
7540         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7541         * config/s390/s390.mh (XDEPFILES): Delete.
7542         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7543         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7544         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7545         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7546         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7547         * config/sparc/nbsd.mh (XDEPFILES): Delete.
7548         * config/sparc/linux.mh (XDEPFILES): Delete.
7549         * config/vax/vaxult.mh (XDEPFILES): Delete.
7550         * config/vax/vaxult2.mh (XDEPFILES): Delete.
7551         * Makefile.in (DEPFILES): Remove XDEPFILES.
7552
7553 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
7554
7555         * utils.c (internal_verror): Fix comments, default is yes not no.
7556         Update queries to match.  Default to quit and dump core.
7557
7558 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
7559
7560         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
7561         copyright.
7562         * defs.h, event-top.c, gdbcmd.h: Ditto.
7563         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7564         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7565         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7566         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7567         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7568         * mi/mi-main.c:Ditto.
7569
7570         * stack.c, symfile.c: Update copyright.
7571
7572 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
7573
7574         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7575         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7576         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7577         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
7578
7579 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
7580
7581         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7582         * gdbserver/low-lynx.c (myattach): Likewise.
7583         * gdbserver/low-nbsd.c (myattach): Likewise.
7584         * gdbserver/low-sim.c (myattach): Likewise.
7585         * gdbserver/low-sparc.c (myattach): Likewise.
7586         * gdbserver/low-sun3.c (myattach): Likewise.
7587
7588         * gdbserver/low-linux.c (myattach): New function.
7589
7590         * gdbserver/server.c (attach_inferior): New function.
7591         (main): Handle "--attach".
7592
7593 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
7594
7595         * MAINTAINERS (language support): Daniel Jacobwitz is C++
7596         maintainer.
7597
7598 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
7599
7600         * c-typeprint.c (is_type_conversion_operator): Add additional
7601         check for non-conversion operators.
7602
7603 2002-01-15  Michael Snyder  <msnyder@redhat.com>
7604
7605         * linux-proc.c: Add "info proc" command, a la procfs.c.
7606         (read_mapping): New function, abstract and re-use code.
7607         (linux_find_memory_regions): Use new func read_mapping.
7608         (linux_info_proc_cmd): New function, implement "info proc".
7609         (_initialize_linux_proc): Add new command "info proc".
7610
7611 2002-01-15  Michael Snyder  <msnyder@redhat.com>
7612
7613         * symfile.c (generic_load): Use bfd_map_over_sections method
7614         instead of manipulating bfd structure members directly.
7615         (add_section_size_callback): New function, bfd sections callback
7616         used by generic_load.
7617         (load_sections_callback): New function, bfd sections callback
7618         used by generic_load.
7619
7620 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
7621
7622         [Based on work by Jim Blandy]
7623         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7624         (builtin_type_vec128): Export.
7625         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7626         types.
7627         (builtin_type_vec128): New builtin type for 128 bit vector
7628         registers.
7629         (build_gdbtypes): Initialize builtin_type_v16qi and
7630         builtin_type_v8hi. Create the vec128 register builtin type
7631         structure.
7632         (build_builtin_type_vec128): New function.
7633         (_initialize_gdbtypes): Register builtin_type_v16qi and
7634         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7635         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7636         AltiVec register to new builtin type.
7637
7638 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
7639
7640         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7641         to make_cv_type.
7642
7643 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
7644
7645         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7646         CLEAN_UP_REGISTER_VALUE.
7647         * regcache.c (supply_register): Update only call.
7648
7649 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
7650
7651         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7652         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7653         a29k-*-vxworks* targets as obsolete.
7654
7655 2002-01-14  Michael Snyder  <msnyder@redhat.com>
7656
7657         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7658         until we can resolve portability issues.
7659         * gregset.h: Remove references to fpxregs.
7660         * gcore.c (gcore_command): Initialize note_sec to NULL.
7661
7662 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7663
7664         * signals.c (target_signal_to_name): Rewrite.  Only use
7665         signals[].name when in bounds and non-NULL.
7666
7667 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7668
7669         From Petr Ledvina <ledvinap@kae.zcu.cz>:
7670         * signals.c (target_signal_to_name): Verify that SIG is within the
7671         bounds of the signals array.
7672
7673 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7674
7675         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7676
7677 2002-01-13  Keith Seitz  <keiths@redhat.com>
7678
7679         * stack.c (print_frame_info_base): Print the frame's pc
7680         only if when print_frame_info_listing_hook is not defined.
7681
7682 2002-01-13  Keith Seitz  <keiths@redhat.com>
7683
7684         * varobj.c (varobj_set_value): Make sure that there were no
7685         errors evaluating the object before attempting to set its
7686         value.
7687         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7688         so this offset adjustment is no longer necessary.
7689         (create_child): Don't set the error flag if the child is
7690         a CPLUS_FAKE_CHILD.
7691         (value_of_child): If value_fetch_lazy fails, return NULL
7692         so that callers will be notified that an error occurred.
7693         (c_value_of_variable): Delay check of variable's validity
7694         until later. We actually want all structs and unions to have
7695         the value "{...}".
7696         Do not return "???" for variables which could not be evaluated.
7697         This error condition must be returned to the caller so that it
7698         can get the error condition from gdb.
7699         (cplus_name_of_child): Adjust index for vptr before figuring
7700         out the name of the child.
7701         (cplus_value_of_child): If a child's (real) parent is not valid,
7702         don't even bother trying to give a value for it. Just return
7703         an error. Change all instances in this function.
7704         (cplus_type_of_child): If our parent is one of the "fake"
7705         parents, we need to get at the type of the real parent, and
7706         derive the child's true type using this information.
7707
7708 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7709
7710         From 2002-01-09 John Marshall <johnm@falch.net>:
7711         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7712         sources.redhat.com, and tweak some related URLs which had
7713         suffered from linkrot.
7714
7715 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
7716
7717         From Jeff law:
7718         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7719         structures passed in registers.
7720
7721 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
7722
7723         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7724         white space which prevented compilation.  Reported by DSK
7725         <dsk@student.unsw.edu.au>.
7726
7727 2002-01-11  Michael Snyder  <msnyder@redhat.com>
7728
7729         * symfile.c (build_section_addr_info_from_section_tab):
7730         Use bfd access method instead of manipulating bfd directly.
7731         (syms_from_objfile): Ditto.
7732         (simple_overlay_update_1): Ditto.
7733         (simple_overlay_update): Ditto.
7734         (generic_load): Ditto.
7735         (overlay_unmapped_address): FIXME comment, bfd access methods.
7736         (sections_overlap): FIXME comment, bfd access methods.
7737         (pc_in_mapped_range): FIXME comment, bfd access methods.
7738         (pc_in_unmapped_range): FIXME comment, bfd access methods.
7739         (section_is_mapped): FIXME comment, bfd access methods.
7740         (section_is_overlay): FIXME comment, bfd access methods.
7741
7742         * symfile.c (generic_load): Whitespace and long line cleanups.
7743         Remove duplicate variable, change several local variables to
7744         more appropriate data types.
7745         (print_transfer_performance): Use %lu instead of %ld for ulongs.
7746
7747 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
7748
7749         From Peter Schauer:
7750         * language.c (longest_local_hex_string_custom): Use phex_nz to
7751         convert NUM to a hex string.
7752
7753 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
7754
7755         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7756         the function.
7757         Update Copyright year.
7758
7759 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
7760
7761         * language.c (longest_raw_hex_string): Delete unused function.
7762
7763 2002-01-11  Petr Sorfa  <petrs@caldera.com>
7764
7765         * MAINTAINERS (write-after-approval): Add myself.
7766         * dwarf2read.c (read_tag_string_type): Handling of
7767         DW_AT_byte_size.
7768         (read_tag_string_type): FORTRAN fix to prevent propagation of
7769         first string size.
7770         (set_cu_language): Handling of DW_LANG_Fortran95
7771
7772 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
7773
7774         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7775         GETPID(inferior_ptid).
7776         (store_inferior_registers): Likewise.
7777
7778 2002-01-10  Jason Merrill  <jason@redhat.com>
7779
7780         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7781         Fix DW_OP_minus.
7782
7783 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
7784
7785         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7786         and bfd/elf32-sh-nbsd.c.
7787
7788 2002-01-10  Michael Snyder  <msnyder@redhat.com>
7789
7790         * NEWS: Mention --pid and corefile/proc-id behavior change.
7791
7792         * Makefile.in: Add rules for gcore.o and linux-proc.o.
7793         * gcore.c: Include cli/cli-decode.h instead of command.h.
7794
7795         * main.c (captured_main): Add new command line option "--pid".
7796         If the second command line argument (following the symbol-file)
7797         begins with a digit, try to attach to it before trying to open
7798         it as a corefile.
7799         (print_gdb_help): Document the "--pid" argument.
7800
7801 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
7802
7803         * completer.c (command_completer): New function.
7804
7805         * completer.h <command_completer>: Add prototype.
7806
7807         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7808         completer for the "help" command.
7809
7810 2002-01-09  Jason Merrill  <jason@redhat.com>
7811
7812         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7813
7814 2002-01-09  Michael Snyder  <msnyder@redhat.com>
7815
7816         * i386-linux-nat.c (fill_fpxregset): Make global.
7817         (store_fpxregset): Ditto.
7818
7819         * gregset.h (gdb_fpxregset_t): Define.
7820         (supply_fpxregset): Prototype.
7821         (fill_fpxregset): Prototype.
7822
7823         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7824
7825 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
7826
7827         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7828         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7829         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7830
7831 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
7832
7833         * MAINTAINERS: Update target maintainer rules so that any
7834         Maintainer can approve a tested patch for a maintenance-only
7835         target.
7836
7837 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
7838
7839         * MAINTAINERS (write-after-approval): Add myself.
7840
7841         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7842         IN_SIGTRAMP.
7843
7844 2002-01-08  Michael Snyder  <msnyder@redhat.com>
7845
7846         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7847         real name of the executable, rather than the /proc name.
7848
7849 2002-01-03  Michael Snyder  <msnyder@redhat.com>
7850
7851         Implement a "generate-core-file" command in gdb, save target state.
7852         * gcore.c: New file.  Implement new command 'generate-core-file'.
7853         Save a corefile image of the current state of the inferior.
7854         * linux-proc.c: Add linux-specific code for saving corefiles.
7855         * target.h (struct target_ops): Add new target vectors for saving
7856         corefiles; to_find_memory_regions and to_make_corefile_notes.
7857         (target_find_memory_regions): New macro.
7858         (target_make_corefile_notes): New macro.
7859         * target.c (update_current_target): Inherit new target methods.
7860         (dummy_find_memory_regions): New place-holder method.
7861         (dummy_make_corefile_notes): New place-holder method.
7862         (init_dummy_target): Initialize new dummy target vectors.
7863         * exec.c (exec_set_find_memory_regions): New function.
7864         Allow the exec_ops vector for memory regions to be taken over.
7865         (exec_make_note_section): New function, target vector method.
7866         * defs.h (exec_set_find_memory_regions): Export prototype.
7867         * procfs.c (proc_find_memory_regions): New function, corefile method.
7868         (procfs_make_note_section): New function, corefile method.
7869         (init_procfs_ops): Set new target vector pointers.
7870         (find_memory_regions_callback): New function.
7871         (procfs_do_thread_registers): New function.
7872         (procfs_corefile_thread_callback): New function.
7873         * sol-thread.c (sol_find_memory_regions): New function.
7874         (sol_make_note_section): New function.
7875         (init_sol_thread_ops): Initialize new target vectors.
7876         * inftarg.c (inftarg_set_find_memory_regions): New function.
7877         Allow to_find_memory_regions vector to be taken over.
7878         (inftarg_set_make_corefile_notes): New function.
7879         Allow to_make_corefile_notes vector to be taken over.
7880         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7881         interface layer if not target_has_execution (may be a corefile).
7882         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7883         * config/sparc/sun4sol2.mh: Ditto.
7884         * config/alpha/alpha-linux.mh: Ditto.
7885         * config/arm/linux.mh: Ditto.
7886         * config/i386/x86-64linux.mh: Ditto.
7887         * config/ia64/linux.mh: Ditto.
7888         * config/m68k/linux.mh: Ditto.
7889         * config/mips/linux.mh: Ditto.
7890         * config/powerpc/linux.mh: Ditto.
7891         * config/sparc/linux.mh: Ditto.
7892
7893 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7894
7895         * arm-linux-nat.c: Remove references to regcache.c internal data
7896         (registers[] and register_valid[]).
7897
7898 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7899
7900         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
7901         so that attaching to a pid will automatically read the process's
7902         symbol file and shlibs.
7903         * Makefile.in: Add rule for linux-proc.o.
7904         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7905         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7906         * config/arm/linux.mh: Ditto.
7907         * config/i386/linux.mh: Ditto.
7908         * config/i386/x86-64linux.mh: Ditto.
7909         * config/ia64/linux.mh: Ditto.
7910         * config/m68k/linux.mh: Ditto.
7911         * config/mips/linux.mh: Ditto.
7912         * config/powerpc/linux.mh: Ditto.
7913         * config/sparc/linux.mh: Ditto.
7914
7915 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
7916
7917         * win32-nat.c: Add i386-tdep.h dependency.
7918
7919 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7920
7921         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7922         instead of bfd_get_arch_size.  Don't bail out just because
7923         there's no exec_bfd.
7924
7925         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7926         * p-valprint.c (pascal_object_print_value): Ditto.
7927         * somread.c (som_symtab_read): Ditto.
7928         * symfile.c (simple_free_overlay_region_table): Ditto.
7929         * valops.c (value_assign): Ditto.
7930
7931         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7932         use tilde_expand and strerror for opening save-tracepoints file.
7933
7934         * thread-db.c (thread_db_new_objfile): Indendation fix.
7935
7936         * infptrace.c (GDB_MAX_ALLOCA): New define.
7937         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7938         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7939         can be overridden with whatever value is appropriate to the host).
7940         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7941         alloca to allocate potentially large buffer.
7942         * rs6000-nat.c (child_xfer_memory): Ditto.
7943         * symm-nat.c (child_xfer_memory): Ditto.
7944         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7945
7946 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
7947
7948         From Nick Clifton  <nickc@redhat.com>
7949         * d10v-tdep.c: Set STACK_START to 0x200bffe.
7950
7951 2002-01-07  Michael Snyder  <msnyder@redhat.com>
7952
7953         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7954         Don't use exec_bfd if it's NULL.
7955
7956 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
7957
7958         * valops.c (value_arg_coerce): Fix formatting.
7959
7960 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7961
7962         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7963         * gnu-nat.c: Ditto.
7964
7965 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7966
7967         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7968         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7969         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7970         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7971         z8k-coff have not been multi-arched.  Update z8k-coff build
7972         status.
7973
7974 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
7975
7976         * MAINTAINERS: Mark a29k target as obsolete.
7977         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7978         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
7979         comments.
7980         * NEWS: Note that a29k targets are obsolete.
7981         * a29k-tdep.c: Mark as obsolete.
7982         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7983         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7984         a29k-*-vxworks* targets as obsolete.
7985         * remote-adapt.c: Obsolete.
7986         * remote-eb.c: Obsolete.
7987         * remote-mm.c: Obsolete.
7988         * remote-udi.c: Obsolete.
7989         * config/a29k/a29k-udi.mt: Obsolete.
7990         * config/a29k/a29k.mt: Obsolete.
7991         * config/a29k/tm-a29k.h: Obsolete.
7992         * config/a29k/tm-vx29k.h: Obsolete.
7993         * config/a29k/vx29k.mt: Obsolete.
7994
7995 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
7996
7997         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7998         with BFD_ENDIAN_BIG.
7999
8000 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
8001
8002         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8003         * configure, config.in: Re-generate.
8004         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8005         * defs.h: Do not include <endian.h>.
8006
8007 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
8008
8009         * acconfig.h (HAVE_PT_GETXMMREGS): New.
8010         * config.in: Regenerate.
8011         * configure.in: Update copyright years.
8012         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8013         * configure: Regenerate.
8014         * i386bsd-nat.c: Update copyright years.
8015         (fill_gregset): Use regcache_collect.
8016         (fetch_inferior_registers): Only fetch integer registers
8017         if requested to do so.  Add support for XMM registers
8018         using PT_GETXMMREGS.
8019         (store_inferior_registers): Only store integer registers
8020         if requested to do so.  Add support for XMM registers
8021         using PT_SETXMMREGS.
8022         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8023         (store_inferior_registers): Remove.
8024         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8025         (fetch_elfcore_registers): New function.
8026         (i386nbsd_elfcore_fns): New.
8027         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8028         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8029         i386bsd-nat.o.
8030         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8031         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8032         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8033         * config/i386/tm-nbsd.h: Update copyright years.
8034         (HAVE_SSE_REGS): Define.
8035         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8036         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8037         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8038         (SIGCONTEXT_PC_OFFSET): Remove.
8039         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8040
8041 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
8042
8043         * configure.tgt: Remove powerpc-*-macos* target.
8044         * config/m68k/xm-mpw.h: Delete file.
8045         * config/xm-mpw.h: Delete file.
8046         * ser-mac.c: Delete file.
8047         * mpw-make.sed: Delete file.
8048         * mpw-config.in: Delete file.
8049         * mac-xdep.c: Delete file.
8050         * mac-gdb.r: Delete file.
8051         * mac-defs.h: Delete file.
8052         * mac-nat.c: Delete file.
8053         * config/powerpc/macos.mh: Delete file.
8054         * config/powerpc/macos.mt: Delete file.
8055         * config/powerpc/nm-macos.h: Delete file.
8056         * config/powerpc/tm-macos.h: Delete file.
8057         * source.c (openp, open_source_file): Remove obsolete code.
8058         * top.c (gdb_readline): Ditto.
8059         * utils.c (query): Ditto.
8060         * event-top.c (display_gdb_prompt): Ditto.
8061         * Makefile.in (ser-mac.o): Delete obsolete target.
8062         * NEWS: Update.
8063
8064 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
8065
8066         * defs.h (BIG_ENDIAN): Delete macro definition.
8067         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8068         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8069         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8070         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8071         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8072         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8073         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8074         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8075         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8076         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8077         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8078         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8079         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8080         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8081         * gdbarch.c: Re-generate.
8082
8083 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
8084
8085         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8086         for core files.
8087
8088 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
8089
8090         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8091
8092 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
8093
8094         * value.h (value_ptr): Delete typedef.
8095
8096 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
8097
8098         * i386nbsd-nat.c: Update copyright years.
8099         Include i386-tdep.h.
8100
8101 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
8102
8103         * stabsread.c: Update copyright years.
8104
8105         From Debashis Mahata <debashis.mahata@wipro.com>:
8106         (read_struct_fields): Deal with Sun C compiler erroneous stab
8107         output for structs and unions.
8108         Fix PR gdb/269.
8109
8110 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
8111
8112         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8113         prototype.
8114
8115 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
8116
8117         * cp-abi.c: Fix whitespace.
8118         (baseclass_offset): New wrapper function.
8119         * cp-abi.h (baseclass_offset): Add prototype.
8120         (struct cp_abi_ops): Add baseclass_offset pointer.
8121
8122         * valops.c (vb_match): Move to...
8123         * gnu-v2-abi.c (vb_match): here.
8124         * valops.c (baseclass_offset): Move to...
8125         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8126
8127         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8128
8129         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8130         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8131         * hpacc-abi.c (init_hpacc_ops): Likewise.
8132
8133 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
8134
8135         * valops.c (find_overload_match): Accept obj as a
8136         reference parameter.  Update it before returning.
8137         * value.h (find_overload_match): Update prototype.
8138         * eval.c (evaluate_subexp_standard): Pass object to
8139         find_overload_match by reference.
8140
8141 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
8142
8143         * valarith.c: Replace value_ptr with struct value pointer.  Remove
8144         register attribute from value declarations.
8145         * valops.c: Ditto.
8146         * value.h: Ditto.
8147         * scm-lang.c (scm_lookup_name): Ditto.
8148
8149 2002-01-03  Michael Snyder  <msnyder@redhat.com>
8150
8151         Abstract the functionality of iterating over mapped memory
8152         regions into a general purpose iterator function.
8153         * procfs.c (iterate_over_mappings): New function, general purpose
8154         iterator for memory sections.
8155         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8156         (solib_mappings_callback): New function, callback for above.
8157         (info_proc_mappings): Reimpliment using iterate_over_mappings.
8158         (info_mappings_callback): New function, callback for above.
8159
8160         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8161
8162 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
8163
8164         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8165         * i386-tdep.c: Include "elf-bfd.h".
8166         (process_note_abi_tag_sections): New function.
8167         (i386_gdbarch_init): Add code to recognize various OS/ABI
8168         combinations.
8169
8170         * maint.c (_initialize_maint_cmds): Add missing \ in
8171         string-literal.
8172
8173 For older changes see ChangeLog-2001
8174 \f
8175 Local Variables:
8176 mode: change-log
8177 left-margin: 8
8178 fill-column: 74
8179 version-control: never
8180 End: