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