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