a433c10b68d654baed84c6c070e4308a065ebb67
[external/binutils.git] / gdb / ChangeLog
1 2002-04-22  Michael Snyder  <msnyder@redhat.com>
2
3         * arm-tdep.c: Some whitespace and coding standards tweaks.
4
5 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
6
7         * vax-tdep.c: Include regcache.h.
8         (vax_call_dummy_words): New.
9         (sizeof_vax_call_dummy_words): New.
10         (vax_fix_call_dummy): New function.
11         (vax_saved_pc_after_call): Ditto.
12         * config/vax/tm-vax.h: Don't include regcache.h.
13         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
14         (CALL_DUMMY): Remove.
15         (CALL_DUMMY_WORDS): Define.
16         (SIZEOF_CALL_DUMMY_WORDS): Define.
17         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
18
19 2002-04-18  Michael Snyder  <msnyder@redhat.com>
20
21         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
22
23 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
24
25         * vax-tdep.c (vax_frame_chain): New function.
26         (vax_push_dummy_frame): Ditto.
27         (vax_pop_frame): Ditto.
28         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
29         (FRAMELESS_FUNCTION_INVOCATION): Use
30         generic_frameless_function_invocation_not.
31         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
32         (POP_FRAME): Use vax_pop_frame.
33
34 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
35
36         * vax-tdep.c (vax_store_struct_return): New function.
37         (vax_extract_return_value): Ditto.
38         (vax_store_return_value): Ditto.
39         (vax_extract_struct_value_address): Ditto.
40         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
41         vax_store_struct_return.
42         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
43         (STORE_RETURN_VALUE): Use vax_store_return_value.
44         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
45
46 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
47
48         * vax-tdep.c (vax_frame_saved_pc): New function.
49         (vax_frame_args_address_correct): Ditto.
50         (vax_frame_args_address): Ditto.
51         (vax_frame_locals_address): Ditto.
52         (vax_frame_num_args): Move code to be in proximity to
53         other frame-related functions.
54         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
55         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
56         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
57         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
58         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
59
60 2002-04-22  H.J. Lu  (hjl@gnu.org)
61
62         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
63         includedir.
64
65 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
66
67         * vax-tdep.c (vax_frame_init_saved_regs): New function.
68         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
69         (FRAME_INIT_SAVED_REGS): New macro.
70
71 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
72
73         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
74
75 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
76
77         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
78         where needed.
79         (fetch_osf_core_registers): Likewise.
80         (supply_gregset): Likewise.
81
82 2002-04-22  J. Brobecker  <brobecker@gnat.com>
83   
84         * symfile.h (get_section_index): Define.
85         * symfile.c (get_section_index): New function.
86         * mdebugread.c (SC_IS_SBSS): New macro.
87         (SC_IS_BSS): Return true for the scBss storage class only, as
88         the scSBss storage class refers to the .sbss section.
89         (parse_partial_symbols): Discard the symbols which associated
90         section does not exist.
91         Make sure to use the .sbss section index for symbols which
92         storage class is scBss, rather than using the .bss section index.
93
94 2002-04-22  Jason Thorpe  <thorpej@wasabisystems.com>
95
96         * vax-tdep.c: Update copyright years.
97         (vax_register_name): New function.
98         (vax_register_byte): Ditto.
99         (vax_register_raw_size): Ditto.
100         (vax_register_virtual_size): Ditto.
101         (vax_register_virtual_type): Ditto.
102         * config/vax/tm-vax.h: Update copyright years.
103         (REGISTER_NAMES): Remove.
104         (REGISTER_NAME): Define.
105         (REGISTER_BYTE): Use vax_register_byte.
106         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
107         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
108         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
109
110 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
111
112         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
113         declaration
114         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
115
116 2002-04-21  David S. Miller  <davem@redhat.com>
117
118         * arch-utils.c (generic_prologue_frameless_p): Kill
119         SKIP_PROLOGUE_FRAMELESS_P code.
120         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
121         references.
122         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
123         * arc-tdep.c (arc_prologue_frameless_p): Implement.
124         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
125         references.
126         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
127         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
128         (sparc_gdbarch_init): Pass it to
129         set_gdbarch_prologue_frameless_p.
130
131 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
132
133         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
134         (alphabsd-nat.o): New dependency list.
135
136 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
137
138         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
139         alphafbsd-tdep.c.
140         (alpha-linux-tdep.o): New dependency list.
141         (alphafbsd-tdep.o): Likewise.
142
143 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
144
145         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
146         to here...
147         * alpha-tdep.c: ...from here.
148         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
149
150 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
151
152         * config/alpha/tm-alpha.h: Move alpha_software_single_step
153         prototype from here...
154         * alpha-tdep.h: ...to here.
155
156 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
157
158         * frame.h (selected_frame_level): Document as deprecated.
159         (frame_relative_level): Declare.
160         * stack.c (frame_relative_level): New function.
161         (selected_frame_level): Document as deprecated.
162         (select_frame): Do not set the selected_frame_level.
163
164         * stack.c (frame_info, record_selected_frame): Update.
165         (frame_command, current_frame_command): Update.
166         (up_silently_base, up_command, down_silently_base): Update.
167         (down_command): Update.
168         * inflow.c (kill_command): Update.
169         * tracepoint.c (finish_tfind_command): Update.
170         * corelow.c (core_open): Update.
171         * thread.c (info_threads_command): Update.
172         (do_captured_thread_select): Update.
173         * infcmd.c (finish_command): Update.
174         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
175
176 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
177
178         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
179
180 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
181
182         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
183         type const.
184
185 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
186
187         * alphafbsd-tdep.c: Update copyright years.  Include
188         alpha-tdep.h.
189         (alphafbsd_use_struct_convention): Make static.
190         (alphafbsd_init_abi): New function.
191         (_initialize_alphafbsd_tdep): New function.
192         * config/alpha/tm-fbsd.h: Update copyright years.
193         (USE_STRUCT_CONVENTION): Remove.
194
195 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
196
197         * alpha-tdep.c (alpha_abi_handler): New structure to describe
198         an Alpha ABI variant.
199         (alpha_abi_handler_list): Declare.
200         (alpha_gdbarch_register_os_abi): New function.
201         (alpha_gdbarch_init): Give registered ABI variant handlers a
202         chance to tweak the gdbarch once we have set up defaults.
203         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
204
205 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
206
207         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
208         to standard_coerce_float_to_double.
209         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
210
211 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
212
213         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
214         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
215         from gdbarch_tdep rather than a constant.
216         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
217         the default text address for all Alpha Unix ABIs.
218         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
219         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
220
221 2002-04-21  Jason Thorpe  <thorpej@wasabisystems.com>
222
223         * alpha-tdep.h: New file.  Includes several Alpha target constants
224         taken from...
225         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
226         let gdbarch deal with.
227         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
228         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
229         to dependency list.
230         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
231         Alpha target register names.
232         * alphabsd-nat.c: Likewise.
233         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
234         Alpha target register names.  Make serveral routines static.
235         (alpha_get_saved_register): New function.
236         (alpha_abi_names): New.
237         (process_note_abi_tag_sections): New function.
238         (get_elfosabi): New function.
239         (alpha_gdbarch_init): New function.
240         (alpha_dump_tdep): New function.
241         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
242
243 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
244
245         * frame.c (find_saved_register): Delete #ifdef
246         HAVE_REGISTER_WINDOWS code.
247         * config/sparc/tm-sparc.h: Update comments.
248         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
249
250 2002-04-21  Andrew Cagney  <ac131313@redhat.com>
251
252         * i960-tdep.c (i960_find_saved_register): New function.
253         (i960_get_saved_register): New function.
254         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
255         (i960_get_saved_register): Declare.
256         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
257
258 2002-04-20  David S. Miller  <davem@redhat.com>
259
260         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
261
262 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
263
264         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
265         instead of NUM_PSEUDO_REGS.
266
267 2002-04-20  David S. Miller  <davem@redhat.com>
268
269         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
270         GDB_MULTI_ARCH_PARTIAL
271         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
272         define, let tm-sp64.h do it.
273
274 2002-04-20  Jason Thorpe  <thorpej@wasabisystems.com>
275
276         * frame.c (find_saved_register): Avoid a NULL pointer
277         dereference and actually walk the frame list.
278
279 2002-04-20  Andrew Cagney  <ac131313@redhat.com>
280
281         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
282         sorted in most most-recent-used order.  Document.
283         * gdbarch.h, gdbarch.c: Regenerate.
284         
285 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
286
287         * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
288         (add_inferior): Call create_register_cache.
289         (clear_inferiors): Call free_register_cache.
290         (inferior_regcache_data, set_inferior_regcache_data): New functions.
291         * gdbserver/regcache.c (struct inferior_regcache_data): New.
292         (registers): Remove.
293         (get_regcache): New function.
294         (create_register_cache, free_register_cache): New functions.
295         (set_register_cache): Don't initialize the register cache here.
296         (registers_to_string, registers_from_string, register_data): Call
297         get_regcache.
298         * gdbserver/regcache.h: Add prototypes.
299         * gdbserver/server.h: Likewise.
300
301 2002-04-20  Daniel Jacobowitz  <drow@mvista.com>
302
303         * gdbserver/mem-break.c: New file.
304         * gdbserver/mem-break.h: New file.
305         * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
306         dependencies.
307         * gdbserver/inferiors.c (struct inferior_info): Add target_data
308         member.
309         (clear_inferiors): Free target_data member if set.
310         (inferior_target_data, set_inferior_target_data): New functions.
311         * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
312         (i386_stop_pc, i386_set_pc): New.  Add to the_low_target.
313         * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
314         (struct inferior_linux_data): New.
315         (linux_create_inferior): Use set_inferior_target_data.
316         (linux_attach): Likewise.  Call add_inferior.
317         (linux_wait_for_one_inferior): New function.
318         (linux_wait): Call it.
319         (linux_write_memory): Add const.
320         (initialize_low): Call set_breakpoint_data.
321         * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
322         handling members.
323         * gdbserver/server.c (attach_inferior): Remove extra add_inferior
324         call.
325         * gdbserver/server.h: Include mem-break.h.  Update inferior.c
326         prototypes.
327         * gdbserver/target.c (read_inferior_memory)
328         (write_inferior_memory): New functions.
329         * gdbserver/target.h (read_inferior_memory)
330         (write_inferior_memory): Change macros to prototypes.
331         (struct target_ops): Update comments.  Add const to write_memory
332         definition.
333
334 2002-04-19  Andrew Cagney  <ac131313@redhat.com>
335
336         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
337         instead of ->prev.
338         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
339         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
340         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
341         instead of ->prev.
342
343 2002-04-19  Elena Zannoni  <ezannoni@redhat.com>
344
345         Fix PR gdb/471.
346         * gdbtypes.c (init_simd_type): Rewrite using new functions.
347         (build_builtin_type_vec128): Ditto.
348         (append_composite_type_field): Fix calculation of type length in
349         union case.
350
351 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
352
353         * config/djgpp/README: Update.
354
355         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
356         compiler warnings.
357
358 2002-04-19  Jason Thorpe  <thorpej@wasabisystems.com>
359
360         * alpha-tdep.c (setup_arbitrary_frame): Rename...
361         (alpha_setup_arbitrary_frame): ...to this.
362         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
363         for alpha_setup_arbitrary_frame.
364
365 2002-04-18  Andrew Cagney  <cagney@redhat.com>
366
367         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
368         * gdbarch.h, gdbarch.c: Regenerate.
369         
370         * defs.h (breakpoint_from_pc_fn): Delete type definition.
371         * target.h (memory_breakpoint_from_pc): Update declaration.
372         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
373
374         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
375         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
376         * mem-break.c (memory_breakpoint_from_pc): Ditto.
377         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
378         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
379         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
380         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
381         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
382         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
383         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
384         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
385         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
386
387         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
388         const pointer.
389         * monitor.c (monitor_insert_breakpoint): Ditto.
390         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
391
392         * config/mcore/tm-mcore.h: Update copyright.
393         * mem-break.c: Ditto.
394         * xstormy16-tdep.c: Ditto.
395
396 2002-04-18  Pierre Muller  <muller@ics.u-strasbg.fr>
397
398         * p-exp.y: Add precedence rule for '^' token.
399         This removes the shift/reduce conflicts.
400         Remove the comment concerning these shift/reduce conflicts.
401
402 2002-04-18  Elena Zannoni  <ezannoni@redhat.com>
403
404         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
405         (registers_powerpc_nofp): New register set for processors
406         without floating point unit.
407
408 2002-04-18  David S. Miller  <davem@redhat.com>
409
410         * MAINTAINERS: Add myself to write-after-approval.
411
412 2002-04-17  Michael Snyder  <msnyder@redhat.com>
413
414         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
415
416 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
417
418         * rs6000-tdep.c (frame_initial_stack_address): Use
419         frame_register_read to read the alloca_reg.
420
421 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
422
423         * frame.c (find_saved_register): Find saved registers in the next
424         not prev frame.
425         Fix PR gdb/365.
426
427 2002-04-17  Andrew Cagney  <ac131313@redhat.com>
428
429         * gdbarch.sh (LANG): Set to ``c''.
430
431 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
432  
433         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
434  
435 2002-04-15  Andrew Cagney  <ac131313@redhat.com>
436
437         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
438         Update copyright.
439
440         * hpread.c (hpread_get_lntt): Add declaration.
441         Also fix PR gdb/391.
442  
443 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
444
445         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
446         * aclocal.m4, configure: Re-generate.
447         Fix PR gdb/391.
448         
449 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
450
451         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
452         instead of tm_print_insn.
453
454 2002-04-14  Elena Zannoni  <ezannoni@redhat.com>
455
456         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
457
458 2002-04-14  Andrew Cagney  <ac131313@redhat.com>
459
460         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
461         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
462         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
463
464 2002-04-12  Don Howard  <dhoward@redhat.com>
465
466         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
467         max_user_call_depth.
468         (init_cmd_lists): Initialize the new value;
469         * cli/cli-script.c (execute_user_command): Limit the call depth of
470         user defined commands.  This avoids a core-dump when user commands
471         are infinitly recursive.
472
473 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
474
475         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
476         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
477         from tdep struct instead of DEFAULT_LR_SAVE.
478         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
479         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
480         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
481
482 2002-04-12  Michael Snyder  <msnyder@redhat.com>
483
484         * Remote.c: Spelling fix.
485         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
486         If no symbol found for "sbrk", try "_sbrk".
487         (make_output_phdrs): Use bfd_section_name.
488         (gcore_copy_callback): Use bfd_section_name.
489         * eval.c: Indentation fix-ups.
490         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
491         in case it gets applied to an address that is already
492         in the instruction space.
493         * cli/cli-decode.c (help_list): Allow long lines to wrap.
494         * symfile.c: Fix indentation, long lines.
495         * source.c: White space fix-up.
496
497 2002-04-12  Andrew Cagney  <cagney@redhat.com>
498
499         * defs.h (read_relative_register_raw_bytes): Delete declaration.
500         * frame.c (frame_register_read): New function.  Return non-zero on
501         success.
502         (read_relative_register_raw_bytes_for_frame): Delete.
503         (read_relative_register_raw_bytes): Delete.
504         * frame.h (frame_register_read): Declare.
505         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
506         * sh-tdep.c: Ditto.
507         * infcmd.c (do_registers_info): Ditto.
508         * hppa-tdep.c: Ditto.
509         * rs6000-tdep.c: Ditto.
510         * h8500-tdep.c: Ditto.
511         * mips-tdep.c: Ditto.
512         * h8300-tdep.c: Ditto.
513         * z8k-tdep.c: Ditto.
514
515 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
516
517         From Jimi X <jimix@watson.ibm.com>:
518         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
519         64-bit SysV ABI.
520
521 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
522
523         From Jimi X <jimix@watson.ibm.com>:
524         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
525         bfd info.
526
527 2002-04-12  Kevin Buettner  <kevinb@redhat.com>
528
529         From Jimi X <jimix@watson.ibm.com>:
530         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
531         register sets for these processor variants.
532
533 2002-04-11  Daniel Jacobowitz  <drow@mvista.com>
534
535         * gdbserver/linux-low.c (usr_store_inferior_registers): Support
536         registers which are allowed to fail to store.
537         * gdbserver/linux-low.h (linux_target_ops): Likewise.
538         * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
539         (ppc_cannot_store_register): FPSCR may not be storable.
540         * regformats/reg-ppc.dat: Support FPSCR.
541
542 2002-04-11  Kevin Buettner  <kevinb@redhat.com>
543
544         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
545         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
546         Add fpscr as an invalid/unfetchable register.
547         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
548         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
549         (fill_fpregset): Add support for register fpscr.
550         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
551         (fill_gregset): Account for the fact that register ``mq'' might
552         not exist.
553         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
554         (registers_power): Add fpscr to register set at slot 71.
555         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
556         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
557
558 2002-04-11  Michael Snyder  <msnyder@redhat.com>
559
560         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
561         * configure: Regenerate.
562         * config.in: Regenerate.
563         * acconfig.h: Add define for _SYSCALL32.
564         * core-sol2.c: Remove #define _SYSCALL32.
565         * solib-legacy.c: Remove #define _SYSCALL32.
566
567 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
568
569         * stack.c (select_frame): Cleanup internal error message, do not
570         use %p.
571
572 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
573
574         * stack.c (select_frame): Check that selected_frame and the
575         specified level are as expected.
576         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
577         Update copyright.
578         * frame.h (struct frame_info): Add field `level'.  Update
579         copyright.
580         Work-in-progress PR gdb/464.
581
582 2002-04-10  Andrew Cagney  <ac131313@redhat.com>
583
584         * maint.c (maint_print_section_info): Rename print_section_info.
585         (print_bfd_section_info, print_objfile_section_info): Update.
586         * inferior.h (struct gdbarch): Add opaque declaration.
587         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
588         * gdbarch.h: Regenerate.
589
590 2002-04-10  Michal Ludvig  <mludvig@suse.cz>
591
592         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
593         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
594         (kernel_u_size): Added.
595         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
596         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
597
598 2002-04-04  Jim Ingham  <jingham@apple.com>
599  
600        * valarith.c (find_size_for_pointer_math): New function, either returns
601        the size for a pointer's target, returns 1 for void *, or errors for
602        incomplete types.
603        (value_add, value_sub): use find_size_for_pointer_math.
604
605 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
606
607         * linux-low.c (linux_look_up_symbols): New hook.
608         (linux_target_ops): Add linux_look_up_symbols.
609         * remote-utils.c (decode_address): New function.
610         (look_up_one_symbol): New function.
611         * server.c (handle_query): Call target look_up_symbols hook.
612         * server.h (look_up_one_symbol): Add prototype.
613         * target.h (struct target_ops): Add look_up_symbols hook.
614
615 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
616
617         * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
618         * ChangeLog: Correct paths in last ChangeLog entry.
619
620 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
621
622         * gdbserver/linux-low.h: Remove obsolete prototypes.
623         (struct linux_target_ops): New.
624         (extern the_low_target): New.
625         * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
626         (register_addr): Use the_low_target explicitly.
627         (fetch_register): Likewise.
628         (usr_fetch_inferior_registers): Likewise.
629         (usr_store_inferior_registers): Likewise.
630         * gdbserver/linux-arm-low.c (num_regs): Remove.
631         (arm_num_regs): Define.
632         (arm_regmap): Renamed from regmap, made static.
633         (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
634         made static.
635         (arm_cannot_store_register): Renamed from cannot_store_register,
636         made static.
637         (the_low_target): New.
638         * gdbserver/linux-i386-low.c (num_regs): Remove.
639         (i386_num_regs): Define.
640         (i386_regmap): Renamed from regmap, made static.
641         (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
642         made static.
643         (i386_cannot_store_register): Renamed from cannot_store_register,
644         made static.
645         (the_low_target): New.
646         * gdbserver/linux-ia64-low.c (num_regs): Remove.
647         (ia64_num_regs): Define.
648         (ia64_regmap): Renamed from regmap, made static.
649         (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
650         made static.
651         (ia64_cannot_store_register): Renamed from cannot_store_register,
652         made static.
653         (the_low_target): New.
654         * gdbserver/linux-m68k-low.c (num_regs): Remove.
655         (m68k_num_regs): Define.
656         (m68k_regmap): Renamed from regmap, made static.
657         (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
658         made static.
659         (m68k_cannot_store_register): Renamed from cannot_store_register,
660         made static.
661         (the_low_target): New.
662         * gdbserver/linux-mips-low.c (num_regs): Remove.
663         (mips_num_regs): Define.
664         (mips_regmap): Renamed from regmap, made static.
665         (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
666         made static.
667         (mips_cannot_store_register): Renamed from cannot_store_register,
668         made static.
669         (the_low_target): New.
670         * gdbserver/linux-ppc-low.c (num_regs): Remove.
671         (ppc_num_regs): Define.
672         (ppc_regmap): Renamed from regmap, made static.
673         (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
674         made static.
675         (ppc_cannot_store_register): Renamed from cannot_store_register,
676         made static.
677         (the_low_target): New.
678         * gdbserver/linux-s390-low.c (num_regs): Remove.
679         (s390_num_regs): Define.
680         (s390_regmap): Renamed from regmap, made static.
681         (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
682         made static.
683         (s390_cannot_store_register): Renamed from cannot_store_register,
684         made static.
685         (the_low_target): New.
686         * gdbserver/linux-sh-low.c (num_regs): Remove.
687         (sh_num_regs): Define.
688         (sh_regmap): Renamed from regmap, made static.
689         (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
690         made static.
691         (sh_cannot_store_register): Renamed from cannot_store_register,
692         made static.
693         (the_low_target): New.
694         * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
695         (the_low_target): New.
696
697 2002-04-09  Andrew Cagney  <ac131313@redhat.com>
698
699         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
700         override FP_REGNUM with frame->fp.  Update copyright.
701         * parse.c (num_std_regs, std_regs): Delete.
702         (target_map_name_to_register): Do not search std_regs.  Update
703         function description.
704         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
705         declarations.  Update copyright.
706         Fix PR gdb/251.
707         
708 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
709
710         * gdbserver/Makefile.in: Add stamp-h target.
711         * gdbserver/configure.in: Create stamp-h.
712         * gdbserver/configure: Regenerated.
713
714 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
715
716         * gdbserver/inferiors.c: New file.
717         * gdbserver/target.c: New file.
718         * gdbserver/target.h: New file.
719         * gdbserver/Makefile.in:  Add target.o and inferiors.o.  Update
720         dependencies.
721         * gdbserver/linux-low.c (inferior_pid): New static variable,
722         moved from server.c.
723         (linux_create_inferior): Renamed from create_inferior.
724         Call add_inferior.  Return 0 on success instead of a PID.
725         (linux_attach): Renamed from myattach.
726         (linux_kill): Renamed from kill_inferior.  Call clear_inferiors ().
727         (linux_thread_alive): Renamed from mythread_alive.
728         (linux_wait): Renamed from mywait.  Call clear_inferiors () if the
729         child dies.
730         (linux_resume): Renamed from myresume.  Add missing ``return 0''.
731         (regsets_store_inferior_registers): Correct error message.
732         Add missing ``return 0''.
733         (linux_fetch_registers): Renamed from fetch_inferior_registers.
734         (linux_store_registers): Renamed from store_inferior_registers.
735         (linux_read_memory): Renamed from read_inferior_memory.
736         (linux_write_memory): Renamed from write_inferior_memory.
737         (linux_target_ops): New structure.
738         (initialize_low): Call set_target_ops ().
739         * gdbserver/remote-utils.c (unhexify): New function.
740         (hexify): New function.
741         (input_interrupt): Send signals to ``signal_pid''.
742         * gdbserver/server.c (inferior_pid): Remove.
743         (start_inferior): Update create_inferior call.
744         (attach_inferior): Call add_inferior.
745         (handle_query): New function.
746         (main): Call handle_query for `q' packets.
747         * gdbserver/server.h: Include "target.h".  Remove obsolete prototypes.
748         Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
749
750 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
751
752         * gdbserver/Makefile.in: Add WARN_CFLAGS.  Update configury
753         dependencies.
754         * gdbserver/configure.in: Check for <string.h>
755         * gdbserver/configure: Regenerate.
756         * gdbserver/config.in: Regenerate.
757         * gdbserver/gdbreplay.c: Include needed system headers.
758         (remote_open): Remove strchr prototype.
759         * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
760         * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
761         (supply_register_by_name): Likewise.
762         (collect_register): Change buf argument to void *.
763         (collect_register_by_name): Likewise.
764         * gdbserver/regcache.h: Add missing prototypes.
765         * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
766         * gdbserver/server.c (handle_query): New function.
767         (attached): New static variable, moved out of main.
768         (main): Quiet longjmp clobber warnings.
769         * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT.  Update prototypes.
770         * gdbserver/utils.c (error): Remove NORETURN.
771         (fatal): Likewise.
772
773 2002-04-09  Daniel Jacobowitz  <drow@mvista.com>
774
775         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
776         after the last symbol in a block.
777
778 2002-04-09  Pierre Muller  <muller@ics.u-strasbg.fr>
779
780         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
781         is non zero as a found symbol.
782
783 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
784
785         * findvar.c: Include "builtin-regs.h".
786         (value_of_register): Call value_of_builtin_reg when applicable.
787         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
788         (target_map_name_to_register): Call
789         builtin_reg_map_name_to_regnum.
790         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
791         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
792         (builtin_regs_h): Define.
793         (builtin-regs.o): New target.
794         (findvar.o): Add $(builtin_regs_h).
795         * builtin-regs.c, builtin-regs.h: New files.
796         * std-regs.c: New file.
797         Partial fix for PR gdb/251.
798
799 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
800
801         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
802         it's no longer required.
803
804 2002-04-08  Andrew Cagney  <ac131313@redhat.com>
805
806         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
807
808 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
809
810         From Jimi X <jimix@watson.ibm.com>:
811         * rs6000-tdep.c (rs6000_software_single_step): Use
812         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
813         and size.  Use target_insert_breakpoint() and
814         target_remove_breakpoint() to insert and remove breakpoints
815         instead of explicit memory reads and writes.
816
817 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
818
819         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
820         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
821         ELF_OBJECT_FORMAT ifdef.
822
823 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
824
825         From Jimi X <jimix@watson.ibm.com>:
826         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
827
828 2002-04-08  Kevin Buettner  <kevinb@redhat.com>
829
830         From Jimi X <jimix@watson.ibm.com>:
831         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
832         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
833
834 2002-04-07  Mark Kettenis  <kettenis@gnu.org>
835
836         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
837         s/asprintf/xasprintf/.
838         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
839
840 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
841
842         I believe Jeff Law denies responsability for this one:
843         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
844         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
845         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
846         Work-around for PR gdb/366.
847
848 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
849
850         * remote-e7000.c (write_small, e7000_read_inferior_memory,
851         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
852         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
853
854 2002-04-07  Elena Zannoni  <ezannoni@redhat.com>
855
856         * sh-tdep.c (sh_fp_frame_init_saved_regs,
857         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
858         information.
859
860 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
861
862         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
863         maintainer.
864
865 2002-04-07  Andrew Cagney  <ac131313@redhat.com>
866
867         * README (Reporting Bugs in GDB): Document the bug web page as the
868         prefered way of submitting bugs.
869         Fix PR gdb/402.
870
871 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
872
873         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
874         -1.  Update comment.
875         * gdbarch.h, gdbarch.c: Re-generate.
876
877 2002-04-07  Andreas Schwab  <schwab@suse.de>
878
879         * m68klinux-nat.c (fill_fpregset): Properly pass address of
880         buffer to regcache_collect.
881
882 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
883
884         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
885         * gdbarch.c, gdbarch.h: Re-generate.
886
887 2002-04-06  Andrew Cagney  <ac131313@redhat.com>
888
889         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
890         declaration.  Fix -Werror.
891
892 2002-04-05  Daniel Jacobowitz  <drow@mvista.com>
893
894         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
895         * gdbarch.c: Regenerate.
896
897 2002-04-05  Michael Snyder  <msnyder@redhat.com>
898
899         * breakpoint.c (clear_command): Rewrite middle section to
900         combine two loops with identical control conditions.
901         Add a cleanup to eliminate a memory leak.
902         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
903
904 2002-04-05  H.J. Lu  (hjl@gnu.org)
905
906         * solib-svr4.c (bkpt_names): Add "__start".
907
908 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
909
910         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
911         as test for 64 bit target.
912
913 2002-04-05  Andrew Cagney  <ac131313@redhat.com>
914
915         * h8500-tdep.c (h8500_write_fp): Delete function.
916         * dwarf2cfi.c (cfi_write_fp): Document as not used.
917         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
918         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
919         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
920         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
921         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
922         (s390_write_fp):
923         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
924         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
925         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
926         (d10v_write_fp): Delete function.
927         * inferior.h (write_fp, generic_target_write_fp): Delete
928         declarations.
929         * regcache.c (generic_target_write_fp): Delete function.
930         (write_fp): Delete function.
931         * gdbarch.sh (TARGET_WRITE_FP): Delete.
932         * gdbarch.h, gdbarch.c: Regenerate.
933         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
934         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
935         (sparc64_write_fp): Delete declaration.
936         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
937         (h8500_write_fp): Delete declaration.
938
939 2002-04-04  Andrew Cagney  <ac131313@redhat.com>
940
941         * sparc-tdep.c (sparc64_write_fp): Delete.
942         (sparc_push_dummy_frame): Replace write_fp call with code to store
943         the FP directly.
944         (sparc_gdbarch_init): Do not initialize write_fp.
945
946 2002-04-05  Kevin Buettner  <kevinb@redhat.com>
947
948         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
949         clause.
950
951 2002-03-29  Jim Blandy  <jimb@redhat.com>
952
953         * stack.c (get_selected_block): Add new argument `addr_in_block',
954         used to return the exact code address we used to select the block,
955         not just the block.
956         * blockframe.c (get_frame_block, get_current_block): Same.
957         * frame.h (get_frame_block, get_current_block,
958         get_selected_block): Update declarations.
959         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
960         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
961
962 2002-04-05  Michael Snyder  <msnyder@redhat.com>
963
964         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
965         warning message.
966
967 2002-04-05  J. Brobecker  <brobecker@gnat.com>
968
969         * utils.c (xfullpath): New function.
970         * defs.h (xfullpath): Add declaration.
971         * source.c (openp): Use xfullpath in place of gdb_realpath to
972         avoid resolving the basename part of filenames when the
973         associated file is a symbolic link. This fixes a potential
974         inconsistency between the filenames known to GDB and the
975         filenames it prints in the annotations.
976         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
977         to be able to match a filename with either the real filename, or
978         the name of any symbolic link to this file.
979         (lookup_partial_symtab): Ditto.
980
981 2002-04-04  Michael Snyder  <msnyder@redhat.com>
982
983         * breakpoint.c: Add support for hardware breakpoints in overlays.
984         (overlay_events_enabled): New state variable.
985         (insert_breakpoints): Use overlay_events_enabled to decide
986         whether to attempt to set a breakpoint at the overlay load addr.
987         Handle bp_hardware_breakpoint as well as bp_breakpoint.
988         (remove_breakpoint): Use overlay_events_enabled to decide
989         whether breakpoints need to be removed from overlay load addr.
990         Handle bp_hardware_breakpoint as well as bp_breakpoint.
991         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
992         (create_overlay_event_breakpoint, enable_overlay_breakpoints, 
993         disable_overlay_breakpoints): Update overlay_events_enabled.
994
995 2002-04-04  Daniel Jacobowitz  <drow@mvista.com>
996
997         * dwarf2read.c (struct function_range): New.
998         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
999         (check_cu_functions): New.
1000         (read_file_scope): Initialize global function lists.
1001         Call dwarf_decode_line after processing children.
1002         (read_func_scope): Add to global function list.
1003         (dwarf_decode_lines): Call check_cu_functions everywhere
1004         record_line is called.  Call record_line with a linenumber
1005         of 0 to mark sequence ends.
1006
1007 2002-04-04  Michal Ludvig  <mludvig@suse.cz>
1008
1009         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI 
1010         change sync with glibc.
1011
1012 2002-04-03  Jim Blandy  <jimb@redhat.com>
1013
1014         * configure.in: Call AC_C_INLINE.
1015         * configure: Regenerated.
1016         
1017 2002-04-01  Daniel Jacobowitz  <drow@mvista.com>
1018
1019         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1020         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1021
1022 2002-03-31  Mark Kettenis  <kettenis@gnu.org>
1023
1024         * NEWS: Mention gcore support on FreeBSD/i386.
1025
1026         * fbsd-proc.c: New file.
1027         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1028         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1029
1030         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1031         while statement.
1032
1033 2002-03-29  Jim Blandy  <jimb@redhat.com>
1034
1035         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1036         unescaped newlines in string literals, but newer ones don't.  So
1037         escape them.
1038
1039 2002-03-26  Michael Snyder  <msnyder@redhat.com>
1040             Andrew Cagney <cagney@redhat.com>
1041
1042         * cli/cli-dump.c: New file.  Dump memory to file, 
1043         restore file to memory.
1044         * cli/cli-dump.h: New file.
1045         * Makefile.in: Add rules, dependencies for cli-dump.o.
1046         * NEWS: Mention new commands.
1047
1048 2002-03-28  Michael Snyder  <msnyder@redhat.com>
1049
1050         * symfile.c (symbol_file_add): Move test for null symbols to later.
1051
1052 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
1053
1054         From veksler at il.ibm.com:
1055         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1056         the xstrduped original path.
1057         Fix PR gdb/417.
1058
1059 2002-03-27  Michael Snyder  <msnyder@redhat.com>
1060
1061         * breakpoint.c (_initialize_breakpoint): Clean up help string.
1062         * infcmd.c (_initialize_infcmd): Ditto.
1063         * language.c (_initialize_language): Ditto.
1064         * symfile.c (_initialize_symfile): Ditto.
1065         * top.c (_init_main): Ditto.
1066         * cli/cli-cmds.c (init_cli_cmds): Ditto.
1067
1068 2002-03-27  Elena Zannoni  <ezannoni@redhat.com>
1069
1070         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1071         vector registers handling.
1072         (skip_prologue): Handle new AltiVec instructions.  Fill in new
1073         fields of frame data.
1074         (frame_get_saved_regs): Fill in information for AltiVec registers.
1075
1076 2002-03-27  Jim Blandy  <jimb@redhat.com>
1077
1078         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1079         a function; leave this macro here to invoke that function.
1080         (symbol_init_mangled_name): Declaration for that function.
1081         * symtab.c (symbol_init_mangled_name): New function.
1082
1083 2002-03-27  Andrew Cagney  <ac131313@redhat.com>
1084
1085         * valarith.c: Replace strerror with safe_strerror.
1086         * tracepoint.c: Ditto.
1087         * lin-lwp.c: Ditto.
1088         * go32-nat.c: Ditto.
1089         * inflow.c: Ditto.
1090         * gnu-nat.c: Ditto.
1091
1092 2002-03-27  Andreas Schwab  <schwab@suse.de>
1093
1094         * event-top.c (command_line_handler): Remove useless if.
1095
1096 2002-03-27  Andreas Jaeger  <aj@suse.de>
1097
1098         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1099         comment.
1100
1101 2002-03-27  Michal Ludvig  <mludvig@suse.cz>
1102
1103         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1104         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1105         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1106         (x86_64_linux_dr_get_status, supply_gregset),
1107         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1108         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1109         (x86_64_register_info_table): Add.
1110         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1111         (x86_64_register_raw_size, x86_64_register_virtual_type),
1112         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1113         general x86_64_register_info_table.
1114         (i386_gdbarch_init): gdbarch_register_bytes is now set
1115         dynamicaly during initialization.
1116         * regformats/reg-x86-64.dat: Synced with changes to registers above.
1117         * gdbserver/linux-x86-64-low.c: Ditto.
1118
1119 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
1120
1121         * gdbserver/server.c (main): Call target_signal_to_host_p
1122         and target_signal_to_host on signals received from the remote.
1123         * gdbserver/remote-utils.c (prepare_resume_reply): Call
1124         target_signal_from_host on signals sent to the remote.
1125         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
1126         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
1127
1128 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
1129
1130         * signals/signals.c: Include "server.h" in gdbserver build.
1131         (target_signal_from_name): Don't use STREQ.
1132         (_initialize_signals): Likewise.  Don't include function in
1133         gdbserver build.
1134
1135 2002-03-27  Daniel Jacobowitz  <drow@mvista.com>
1136
1137         * signals.c: Moved to...
1138         * signals/signals.c: Here.
1139         * Makefile (signals.o): Update.
1140
1141 2002-03-26  Jeff Law (law@redhat.com)
1142
1143         * somread.c (som_symtab_read): Remove some commented out code and
1144         updated related comments.  Do not set the minimal symbol table to
1145         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1146         in a dynamic executable.
1147         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1148         where we are unable to find the minimal symbol for the given
1149         PC value.
1150
1151 2002-03-25  Jeff Law (law@redhat.com)
1152
1153         * linux-proc.c (read_mapping): Scan up to end of line for filename.
1154
1155 2002-03-25  Michal Ludvig  <mludvig@suse.cz>
1156
1157         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1158
1159 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
1160
1161         * command.h: Update copyright.
1162         (struct cmd_list_element): Replace definition with opaque
1163         declaration.
1164         (enum cmd_types): Document that it will eventually be moved to
1165         cli/cli-decode.h
1166         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1167         (MALLOCED_REPLACEMENT): Delete macro.
1168         * Makefile.in (cli_decode_h): Add $(command_h).
1169         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1170         * top.c: Include "cli/cli-decode.h".
1171         * completer.c: Include "cli/cli-decode.h".
1172         * maint.c: Include "cli/cli-decode.h".
1173         * cli/cli-decode.h: Include "command.h".
1174         (enum command_class): Delete.
1175         (enum cmd_types): Comment out.
1176         (enum cmd_auto_boolean): Delete.
1177         (enum var_types): Delete.
1178
1179 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
1180
1181         * cli/cli-decode.c: Include "gdb_assert.h".
1182         (add_set_or_show_cmd): New static function.
1183         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
1184         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
1185         all fields, such as func, from the set command.
1186
1187 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
1188
1189         * MAINTAINERS (sh-elf): Change warning flag to -w.
1190
1191 2002-03-23  Andrew Cagney  <cagney@redhat.com>
1192
1193         * defs.h (error): Add printf format attribute.
1194         * thread-db.c (thread_from_lwp): Fix error format string.
1195         * stack.c (parse_frame_specification): Ditto.
1196         * cli/cli-decode.c (undef_cmd_error): Ditto.
1197         * scm-lang.c (scm_lookup_name): Ditto.
1198         * tracepoint.c (trace_error): Ditto.
1199         * remote-utils.c (usage): Ditto.
1200         * remote.c (compare_sections_command): Ditto.
1201         Fix PR gdb/328.
1202
1203 2002-03-22  Andrew Cagney  <ac131313@redhat.com>
1204
1205         * gdbtypes.c (append_composite_type_field): New function.
1206         (init_composite_type): New function.
1207         * gdbtypes.h (append_composite_type_field): Declare.
1208         (init_composite_type): Ditto.
1209
1210 2002-03-22  Elena Zannoni  <ezannoni@redhat.com>
1211
1212         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1213         function.
1214         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1215         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1216         structure returning convention for SYSV ABI case, but not
1217         for GNU/Linux, FreeBSD, or NetBSD.
1218
1219 2002-03-22  Daniel Jacobowitz  <drow@mvista.com>
1220
1221         * symtab.h (lookup_block_symbol): Add mangled_name argument
1222         to prototype.
1223
1224         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1225         with new mangled_name argument.
1226         * linespec.c (decode_line_1): Likewise.
1227         * valops (value_of_this): Likewise.
1228         * symtab.c (lookup_transparent_type): Likewise.
1229         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
1230         (lookup_symbol): If we are given a mangled name, pass it down
1231         to lookup_symbol_aux.
1232         (lookup_block_symbol): If we are given a mangled name to check
1233         against, only return symbols which match it.
1234
1235 2002-03-22  Christopher Faylor  <cgf@redhat.com>
1236
1237         * win32-nat.c (child_create_inferior): Check for proper shell to use
1238         here, in case the user changes it on the fly.
1239         (_initialize_inftarg): Remove shell path considerations.
1240
1241 2002-03-21  Elena Zannoni  <ezannoni@redhat.com>
1242
1243         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1244         for gdbarch_max_register_raw_size and max_register_virtual_size.
1245         Adjust copyright year.
1246
1247 2002-03-21  Daniel Jacobowitz  <drow@mvista.com>
1248
1249          * dbxread.c (process_one_symbol): Extend the first N_SLINE
1250          in a function to cover the entire beginning of the function
1251          as well if it does not already.
1252
1253 2002-03-21  Tom Rix  <trix@redhat.com>
1254
1255         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1256         (rs6000_ptrace64): Renamed from ptrace64.
1257
1258 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
1259
1260         * gdbserver/remote-utils.c (remote_open): Don't call
1261         getprotobyname, we're all using TCP here so just use
1262         IPPROTO_TCP.
1263         * gdbserver/gdbreplay.c (remote_open): Ditto.
1264
1265 2002-03-20  Martin M. Hunt  <hunt@redhat.com>
1266
1267         * regcache.c (_initialize_regcache): No need to call
1268         build_regcache() at this time; it gets called whenever
1269         the gdbarch changes.
1270
1271 2002-03-20  David O'Brien  <obrien@FreeBSD.org>
1272
1273         * sparc-nat.c:  Include sys/param.h where possible.
1274
1275 2002-03-20  Daniel Jacobowitz  <drow@mvista.com>
1276
1277         Fix PR gdb/422.
1278         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1279         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1280         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1281         complex types.
1282         * stabsread.c (rs6000_builtin_type): Likewise.
1283         (read_sun_floating_type): Likewise.
1284
1285 2002-03-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1286
1287         * stabsread.c (read_member_functions): Remove skip code for duplicate
1288         constructor/destructor methods.  Use standard parsing for these
1289         methods and just do not chain them to the list of methods after
1290         parsing.
1291
1292 2002-03-19  Alexandre Oliva  <aoliva@redhat.com>
1293
1294         * coffread.c: Remove redundant static declarations.  Replace
1295         occurrences of `PTR' with `void *'.
1296         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1297         * top.h (quit_cover): Likewise.
1298         * defs.h (catch_errors): Likewise.
1299
1300 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
1301
1302         * defs.h (XMALLOC): Define.
1303         * gdb-events.sh (XMALLOC): Delete macro.
1304         * gdb-events.c, gdb-events.h: Regenerate.
1305         * gdbarch.sh (XMALLOC): Delete macro.
1306         * gdbarch.c: Regenerate.
1307         * serial.c (XMALLOC): Delete macro.
1308         * ui-file.c (XMALLOC): Ditto.
1309         * ser-unix.h (XMALLOC): Ditto.
1310         * sh-tdep.c (XMALLOC): Ditto.
1311         * ui-out.c (XMALLOC): Ditto.
1312         * utils.c (XMALLOC): Ditto.
1313         * i386-tdep.c (XMALLOC): Ditto.
1314         * gdb-events.c (XMALLOC): Ditto.
1315         * d10v-tdep.c (XMALLOC): Ditto.
1316         * cli-out.c (XMALLOC): Ditto.
1317
1318         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1319         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1320         * ui-file.c, ui-out.c: Ditto.
1321
1322 2002-03-18  Andrew Cagney  <ac131313@redhat.com>
1323
1324         * command.h (struct cmd_list_element): Add field context.
1325         (set_cmd_context, get_cmd_context): Declare.
1326         * cli/cli-decode.h: Ditto.
1327         * cli/cli-decode.c (get_cmd_context): New function.
1328         (set_cmd_context): New function.
1329         (add_cmd): Initialize context.
1330         Part of fixing PR gdb/145 and PR gdb/146.
1331
1332 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
1333
1334         * cli/cli-decode.c (cmd_type): New function.
1335         * command.h (cmd_type): Declare.
1336         * infrun.c (set_schedlock_func): Call function cmd_type.
1337         * kod.c (kod_set_os): Call cmd_type.
1338         * cris-tdep.c (cris_version_update): Use function cmd_type.
1339         (cris_mode_update, cris_abi_update): Ditto.
1340
1341         * command.h: (execute_cmd_post_hook): Declare.
1342         (execute_cmd_pre_hook): Declare.
1343         * cli/cli-script.c (clear_hook_in_cleanup): New function.
1344         (execute_cmd_post_hook, execute_cmd_pre_hook): New
1345         functions. Execute pre/post hook while ensuring that afterwords
1346         hook_in is cleared.
1347         * top.c (execute_command): Use execute_cmd_post_hook, and
1348         execute_cmd_pre_hook to execute pre/post commands.
1349         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1350         hook_stop_stub.
1351         (hook_stop_stub): Call execute_cmd_pre_hook.
1352
1353 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
1354
1355         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
1356         set'' and this leads to a core dump.  Move xstrdup of
1357         operating_system to after check that it is not NULL.
1358
1359 2002-03-17  Andrew Cagney  <ac131313@redhat.com>
1360
1361         * kod.c (kod_set_os): Remove unnecessary check that
1362         ``command->type'' is set_cmd.
1363
1364         * valprint.c (set_input_radix): Use input_radix.
1365         (set_output_radix): Use output_radix.
1366         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1367         isn't reverted.
1368
1369 2002-03-16  Andrew Cagney  <ac131313@redhat.com>
1370
1371         * value.h (struct value): Delete field ``substring_addr''.  Change
1372         aligner fields to force_doublest_align, force_longest_align,
1373         force_core_addr_align and force_pointer_aligh.
1374
1375         * value.h (struct value): Fix typo in above change.
1376
1377 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1378
1379         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1380         to fix internal_error from ``maintenance print architecture''.
1381
1382 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1383
1384         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1385         for gcc versions after gcc-2.8.1.
1386
1387 2002-03-16  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1388
1389         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1390         for method resolution.  Restore adjustment of ``this'' pointer after
1391         calling value_struct_elt, which was accidentally removed during the
1392         HP merge.
1393
1394 2002-03-15  Andrew Cagney  <ac131313@redhat.com>
1395
1396         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1397         value_of_register.
1398         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
1399         get_saved_register.
1400         * value.h (value_of_register): Update.
1401
1402 2002-03-14  Richard Henderson  <rth@redhat.com>
1403
1404         * configure.in: Detect declaration for canonicalize_file_name.
1405         * utils.c (canonicalize_file_name): Declare, if needed.
1406         (gdb_realpath): Prefer realpath if available and usable.
1407         * config.in, configure: Rebuild.
1408
1409 2002-03-14  Richard Henderson  <rth@redhat.com>
1410
1411         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1412         a constant array bound.
1413
1414         * MAINTAINERS: Add myself to write-after-approval.
1415
1416 2002-03-14  Michael Snyder  <msnyder@redhat.com>
1417
1418         * symfile.c (syms_from_objfile): Return immediately if no syms.
1419         (symbol_file_add): Return immediately if no syms.
1420         (find_sym_fns): Return immediately if no syms.
1421
1422 2002-03-13  Michal Ludvig  <mludvig@suse.cz>
1423
1424         * gdbserver/remote-util.c (remote_open): Print remote-side's
1425         IP address when remote debugging over the network.
1426
1427 2002-03-12  David O'Brien  <obrien@FreeBSD.org>
1428
1429         * config/sparc/fbsd.mh: Fix copyright.
1430         * config/sparc/fbsd.mt: Likewise.
1431
1432 2002-03-11  Richard Earnshaw  <rearnsha@arm.com>
1433
1434         * MAINTAINERS: Fix typo in name of gdb warnings option.
1435         (x86-64): Fix formating so that this can be parsed by awk.
1436
1437 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
1438
1439         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1440         * defs.h: Include "gdb/signals.h".
1441         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1442
1443 2002-03-10  Michal Ludvig  <mludvig@suse.cz>
1444
1445         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1446         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1447         from x86-64-tdep.h
1448
1449 2002-03-10  Daniel Jacobowitz  <drow@mvista.com>
1450             Don Howard <dhoward@redhat.com>
1451
1452         * mips-tdep.c (ST0_FR): Define.
1453         (mips2_fp_compat): New function, temporarily disabled.
1454         (mips_read_fp_register_single): New function.
1455         (mips_read_fp_register_double): New function.
1456         (mips_print_register): Use them.
1457         (do_fp_register_row): Likewise.
1458
1459 2002-03-09  Andrew Cagney  <ac131313@redhat.com>
1460
1461         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1462         approval''.
1463
1464 2002-03-08  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1465
1466         * stabsread.c (read_member_functions): Fix is_stub test for
1467         static member functions, improve comment.
1468
1469 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
1470
1471         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1472         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1473         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1474         commands that set boolean values.
1475         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1476         (arm_rdi_resume): Always initialize PC.
1477         (arm_rdi_open): Don't use rslt as a boolean.
1478         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1479         (arm_rdi_fetch_registers, arm_rdi_store_registers)
1480         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1481         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1482
1483 2002-03-06  Alexandre Oliva  <aoliva@redhat.com>
1484
1485         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1486         * configure: Rebuilt.
1487
1488 2002-03-06  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1489
1490         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1491         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1492
1493 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
1494
1495         * cli/cli-decode.c (set_cmd_completer): New function.
1496         * command.h (set_cmd_completer): Declare.
1497         * cli/cli-decode.h (set_cmd_completer): Ditto.
1498
1499         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1500         * cli/cli-cmds.c (init_cli_cmds): Ditto.
1501         * win32-nat.c (_initialize_inftarg): Ditto.
1502         * remote-rdi.c (_initialize_remote_rdi): Ditto.
1503         * proc-api.c (_initialize_proc_api): Ditto.
1504         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1505         * source.c (_initialize_source): Ditto.
1506         * exec.c (_initialize_exec): Ditto.
1507         * solib.c (_initialize_solib): Ditto.
1508         * top.c (init_main): Ditto.
1509         * tracepoint.c (_initialize_tracepoint): Ditto.
1510         * symfile.c (_initialize_symfile): Ditto.
1511         * printcmd.c (_initialize_printcmd): Ditto.
1512         * infcmd.c (_initialize_infcmd): Ditto.
1513         * corefile.c (_initialize_core): Ditto.
1514
1515 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
1516
1517         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1518
1519 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
1520
1521         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1522
1523 2002-03-05  Andrew Cagney  <ac131313@redhat.com>
1524
1525         * NEWS: Update headings, 5.2 has branched.
1526
1527 2002-03-04  Daniel Jacobowitz  <drow@mvista.com>
1528
1529         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1530         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1531         (register_addr, REGISTER_RAW_SIZE): Likewise.
1532         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1533         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1534
1535 2002-03-03  Michal Ludvig <mludvig@suse.cz>
1536
1537         * MAINTAINERS (x86-64): Add myself.
1538         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1539         changed value_ptr -> struct value *
1540
1541 2002-03-01  David O'Brien  <obrien@FreeBSD.org>
1542
1543         * configure.host (sparc64-*-freebsd): Add.
1544         * configure.tgt: Likewise.
1545         * config/sparc/fbsd.mh: New file.
1546         * config/sparc/fbsd.mt: Likewise.
1547         * config/sparc/nm-fbsd.h: Likewise.
1548         * config/sparc/tm-fbsd.h: Likewise.
1549
1550 2002-03-01  Daniel Jacobowitz  <drow@mvista.com>
1551
1552         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1553         regformats/reg-s390x.dat.
1554
1555 2002-03-01  Andrew Cagney  <ac131313@redhat.com>
1556
1557         * utils.c: Add FIXME explaining true/false problem.
1558
1559 2002-02-28  Andrew Cagney  <ac131313@redhat.com>
1560
1561         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1562
1563 2002-02-28  Michael Chastain  <mec@shout.net>
1564
1565         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1566
1567 2002-02-28  Daniel Jacobowitz  <drow@mvista.com>
1568
1569         * gdbserver/linux-s390-low.c: New file.
1570         * regformats/reg-s390.dat: New file.
1571         * regformats/reg-s390x.dat: New file.
1572         * gdbserver/configure.srv: Add S/390.
1573         * gdbserver/Makefile.in: Add S/390.
1574         * configure.tgt: Enable gdbserver for S/390.
1575
1576 2002-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
1577
1578         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1579         first line of the doc string for "info dos", except at the end of
1580         the sentence, since the short help stops at the first period.
1581
1582 2002-02-28  Jason Merrill  <jason@redhat.com>
1583
1584         * dwarf2read.c (dwarf_cfi_name): Add new codes.
1585
1586 2002-02-27  Fred Fish  <fnf@redhat.com>
1587
1588         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1589         comment (dumy -> dummy).
1590
1591 2002-02-27  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1592
1593         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1594
1595 2002-02-27  Rodney Brown  <rbrown64@csc.com.au>
1596
1597       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1598
1599 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
1600
1601         * gdbserver/acconfig.h: New file.
1602         * gdbserver/i387-fp.c: New file.
1603         * gdbserver/i387-fp.h: New file.
1604         * gdbserver/linux-x86-64.c: New file.
1605         * regformats/reg-x86-64.dat: New file.
1606         * configure.tgt: Add x86_64-*-linux* gdbserver support.
1607         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1608         * gdbserver/configure.in: Add support for regsets.
1609         * gdbserver/config.in: Regenerate.
1610         * gdbserver/configure: Regenerate.
1611         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
1612         * gdbserver/linux-low.h: New file.
1613         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
1614         for regsets.
1615         * gdbserver/linux-arm-low.c: Include "linux-low.h".
1616         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1617         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1618         * gdbserver/linux-mips-low.c: Include "linux-low.h".
1619         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1620         * gdbserver/linux-sh-low.c: Include "linux-low.h".
1621         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
1622         "i387-fp.h".  Add PTRACE_GETREGS and friends.
1623         * gdbserver/regcache.c (supply_register): New function.
1624         (supply_register_by_name): New function.
1625         (collect_register): New function.
1626         (collect_register_by_name): New function.
1627
1628 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
1629
1630         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1631         (config.status): Add configure.srv dependency.
1632         (server_h): Add config.h dependency.
1633
1634 2002-02-27  Daniel Jacobowitz  <drow@mvista.com>
1635
1636         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1637         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1638         * gdbserver/configure.srv: Change i386-*-linux* to use
1639         reg-i386-linux.o.
1640
1641 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
1642
1643         * x86-64-tdep.c: Re-indent.  Update copyright date.
1644
1645 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
1646
1647         From Michal Ludvig <mludvig@suse.cz>:
1648         * x86-64-tdep.c (value.h): Delete.
1649         (gdb_assert.h): Include.
1650         (x86_64_register_convert_to_virtual,
1651         x86_64_register_convert_to_raw ): Add check which lets only
1652         floating-point values to be converted.
1653         (value_push): Delete.
1654         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1655         (i386_gdbarch_init): Number of register_bytes fixed.
1656
1657 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
1658
1659         * MAINTAINERS: Add x86-64 target.
1660
1661 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
1662
1663         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1664         * osfsolib.c (solib_map_sections): Ditto.
1665         * irix5-nat.c (solib_map_sections): Ditto.
1666         * corelow.c (gdb_check_format): Ditto.
1667         * symfile.c (symfile_bfd_open): Ditto.
1668         * solib.c (solib_map_sections): Ditto.
1669         Fix PR gdb/354.
1670
1671 2002-02-26  Andrew Cagney  <ac131313@redhat.com>
1672
1673         * remote.c (_initialize_remote): By default, disable ``e'' and
1674         ``E'' step out-of-range packets.
1675
1676 2002-02-26  Andreas Schwab  <schwab@suse.de>
1677
1678         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1679         m68k_linux_frame_saved_pc.
1680         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1681         in_sigtramp.
1682         (SIGCONTEXT_PC_OFFSET): Remove.
1683         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1684         m68k_linux_sigtramp_saved_pc): New functions.
1685         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1686         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1687         (UCONTEXT_PC_OFFSET): Define.
1688         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1689         non-RT and RT signal trampolines.
1690
1691 2002-02-26  Richard Earnshaw  <rearnsha@arm.com>
1692
1693         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1694         (TARGET_NBPG, STACK_END_ADDR): Delete
1695         (VARIABLES_INSIDE_BLOCK): Delete.
1696
1697 2002-02-25  Andrew Cagney  <ac131313@redhat.com>
1698
1699         * utils.c (perror_with_name): Make string parameter constant.
1700         (print_sys_errmsg): Ditto.
1701         (query): Ditto.
1702         * defs.h (perror_with_name): Update.
1703         (print_sys_errmsg): Update.
1704         (query): Update.
1705
1706 2002-02-25  Daniel Jacobowitz  <drow@mvista.com>
1707
1708         From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1709         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1710
1711 2002-02-25  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1712
1713         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1714         if it already matches the current architecture from the exec file.
1715         Include arch-utils.h for gdbarch_info_init prototype.
1716         * Makefile.in (rs6000-nat.o): Update dependencies.
1717
1718 2002-02-25  Eli Zaretskii  <eliz@is.elta.co.il>
1719
1720         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1721          list of exported variables.
1722
1723 2002-02-24  Daniel Jacobowitz  <drow@mvista.com>
1724
1725         * gdbserver/configure.srv: New file.
1726         * gdbserver/configure.in: Use configure.srv instead
1727         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
1728         from it.
1729         * gdbserver/configure: Regenerated.
1730         * gdbserver/terminal.h: New file.
1731         * gdbserver/Makefile.in: Update for configure changes.  Remove
1732         more unneeded include paths.
1733
1734 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
1735
1736         From wiz at danbala:
1737         * config/sparc/tm-sp64.h: Fix grammar and typos.
1738         Fix PR gdb/287.
1739
1740 2002-02-24  Andrew Cagney  <ac131313@redhat.com>
1741
1742         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1743         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
1744         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1745         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1746         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1747         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1748         * s390-tdep.c: Ditto.
1749         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1750         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1751         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1752         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1753         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1754         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1755         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1756         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1757         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1758         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1759         Fix PR gdb/378.
1760
1761 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1762
1763         * lin-thread.c: Delete file.
1764         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1765         to gdb_proc_service.h.
1766         * configure: Re-generate.
1767
1768         * ocd.c (ocd_open): Do not try to open the "ocd" device.
1769         * serial.c (serial_open): Delete check for "ocd".
1770         Fix PR gdb/349.
1771
1772         * Makefile.in (linux-thread.o): Delete target.
1773         * linux-thread.c: Delete file.
1774
1775         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
1776         renamed SH files to be consistent.
1777
1778         * symtab.c (sort_search_symbols): Use xfree.
1779
1780 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
1781
1782         * arm-linux-tdep.c (arm_linux_init_abi): Register
1783         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1784         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1785         definition with undef, since we don't want the sysvr4 definition.
1786         (SKIP_TRAMPOLINE_CODE): Likewise.
1787
1788 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1789
1790         From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1791
1792         * configure.in: (AC_CHECK_FUNCS) Added test for
1793         canonicalize_file_name Regenerated.
1794         * config.in, configure: Regenerated.
1795         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1796         defined use canonicalize_file_name.
1797
1798 2002-02-23  Michael Chastain  <mec@shout.net>
1799
1800         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1801
1802 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1803
1804         * README: Remove references to cygnus.com.
1805         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1806         dot com'' form.  Remove references to cygnus.com and sourceware.
1807
1808 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1809
1810         From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1811         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1812         1003.1-2001 no longer allows "head -1".
1813         * gdb/Makefile.in (version.c): Likewise.
1814         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1815         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1816         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
1817
1818 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1819
1820         * cli/cli-decode.c (cmd_cfunc_eq): New function.
1821         * command.h (cmd_cfunc_eq): Declare.
1822         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1823
1824         * cli/cli-cmds.h (is_complete_command): Change parameter to a
1825         ``struct cmd_list_element *''.
1826         * cli/cli-cmds.c (is_complete_command): Update.  Use
1827         cmd_cfunc_eq.
1828         * top.c (execute_command): Pass the command to
1829         is_complete_command.
1830         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1831
1832 2002-02-23  Andrew Cagney  <ac131313@redhat.com>
1833
1834         From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1835         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1836         architecture defines.
1837         * s390-tdep.c (s390_gdbarch_init): Likewise.
1838
1839 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
1840
1841         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1842         (arm_linux_push_arguments): Likewise.
1843         (arm_linux_init_abi): Register them.  Also register linux-specific
1844         call_dummy_words.
1845         (find_minsym_and_objfile): Use strcmp, not STREQ.
1846         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1847         (arm_linux_call_dummy_words): Delete declaration.
1848         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1849         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1850         declarations.
1851         (LOWEST_PC): Delete.
1852
1853 2002-02-23  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
1854
1855         * maint.c (print_section_info): Do not prepend `0x' to filepos
1856         output, it will be handled by local_hex_string_custom.
1857
1858 2002-02-23  Richard Earnshaw  <rearnsha@arm.com>
1859
1860         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1861         (store_newfpe_double, store_newfpe_extended, store_fpregister)
1862         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1863
1864 2002-02-22  Jim Blandy  <jimb@redhat.com>
1865
1866         Indicate that the bcache functions don't change the strings
1867         they're passed.
1868         * bcache.h (bcache, hash): Add `const' keywords to declarations.
1869         * bcache.c (bcache, hash): Add `const' keywords to definitions.
1870
1871 2002-02-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1872
1873         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1874
1875 2002-02-21  Christopher Faylor  <cgf@redhat.com>
1876
1877         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1878         find the complete path to a loaded DLL.
1879
1880 2002-02-21  Fred Fish  <fnf@redhat.com>
1881
1882         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1883         that marks the end of the range of a function, enter a line number
1884         entry that has a line number of zero and a PC offset that matches
1885         the end of the function.  This starts a range of PC's for which no
1886         line number information is known.
1887         * symtab.c (find_pc_sect_line): If our best fit is in a range of
1888         PC's for which no line number info is found (line number is zero)
1889         then we didn't find any valid line information.
1890         * symtab.h: Document use of zero line number entry.
1891
1892 2002-02-21  Elena Zannoni  <ezannoni@redhat.com>
1893
1894         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1895         (have_ptrace_getvrregs): Define for run time checks.
1896         (gdb_vrregset_t): New type for Altivec register handling.
1897         (fetch_register, store_register): Fetch/store altivec register
1898         when needed.
1899         (fetch_altivec_register, store_altivec_register): New functions.
1900         (supply_vrregset, fill_vrregset): New functions.
1901         (fetch_altivec_registers, store_altivec_registers): New functions.
1902         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1903         registers as well.
1904
1905 2002-02-21  Jiri Smid  <smid@suse.cz>
1906
1907         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1908
1909 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
1910
1911         * Makefile.in (armnbsd-nat.o): Update dependencies.
1912         * armnbsd-nat.c (supply_gregset): New function.  Common code to
1913         supply the integer register set.
1914         (supply_fparegset): New function.  Similar for FPA registers.
1915         (fetch_regs, fetch_fp_regs): Use them.
1916         (fetch_core_registers): Likewise.
1917         (fetch_elfcore_registers): New function.
1918         (arm_netbsd_elfcore_fns): New core-file type specification.
1919         (_initialize_arm_netbsd_nat): Register it.
1920
1921 2002-02-21  Richard Earnshaw  <rearnsha@arm.com>
1922
1923         * armnbsd-nat.c: Include gdbcore.h.
1924         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1925         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1926         'void' to declaration, to shut up ARI.
1927         (fetch_core_registers): Make static.  Rewrite using supply_register.
1928         (arm_netbsd_core_fns): New core-file type specification.
1929         (_initialize_arm_netbsd_nat): New function.
1930
1931 2002-02-21  Christopher Faylor  <cgf@redhat.com>
1932
1933         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1934         value.
1935
1936 2002-02-20  Christopher Faylor  <cgf@redhat.com>
1937
1938         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1939         fails.
1940
1941 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1942
1943         * jv-exp.y (parse_number): Change type of implicit longs
1944         to builtin_type_uint64.
1945
1946 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1947
1948         * gdbserver/linux-low.c (mywait): Change argument to waitpid
1949         to be an integer instead of a `union wait'.
1950
1951 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1952
1953         * mips-linux-nat.c: Call the operating system GNU/Linux.
1954         * mips-linux-tdep.c: Likewise.
1955         * mips-tdep.c: Likewise.
1956
1957 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1958
1959         Fix PR gdb/265.
1960         * jv-exp.y (parse_number): Handle 64-bit integers.
1961
1962 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
1963
1964         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
1965         AC_STDC_HEADERS to AC_HEADER_STDC.
1966         * gdbserver/configure: Regenerated.
1967
1968 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
1969
1970         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1971         is defined.
1972         * sparc-tdep.c (get_longjmp_target): Likewise.
1973
1974 2002-02-20  Richard Earnshaw  <rearnsha@arm.com>
1975
1976         * News: Add news about ARM and Multi-arch.  Mention the new target
1977         arm*-*-netbsd*.
1978
1979 2002-02-19  Jim Blandy  <jimb@redhat.com>
1980
1981         * stabsread.c (error_type_complaint): Improve error message.
1982
1983 2002-02-19  Daniel Jacobowitz  <drow@mvista.com>
1984
1985         * gdbserver/README: Update documentation.
1986         * gdbserver/configure.in: Update configury to match documentation.
1987         * gdbserver/Makefile.in: Likewise.
1988         * gdbserver/configure: Regenerated.
1989         * gdbserver/aclocal.m4: New file, generated by aclocal.
1990         * gdbserver/config.in: New file, generated by autoheader.
1991
1992 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
1993
1994         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1995         armnbsd-nat.c.
1996
1997 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
1998
1999         * arm-tdep.h (enum arm_float_model): New enum.
2000         (struct gdbarch_tdep): Add fp_model.
2001         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
2002         up floating-point conversions until we know the floating-point model
2003         in use by the inferior.  Don't complain about being unable to
2004         determine the ABI of the inferior when we don't have one.
2005         (arm_extract_return_value): Support different floating-point models.
2006         (arm_store_return_value): Likewise.
2007         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2008         ARM_FLOAT_SOFT.
2009         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2010
2011 2002-02-19  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
2012
2013         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2014         of ``current_gdbarch''.
2015
2016 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
2017
2018         * armnbsd-nat.c : ANSIfy all function declarations.
2019         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2020         (fetch_inferior_registers): Re-implement in terms of above.
2021         (store_register, store_regs, store_fp_register, store_fp_regs): New.
2022         (store_inferior_registers): Re-implement in terms of above.
2023
2024 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
2025
2026         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2027         kernel.
2028         * arm-linux-tdep.c: Likewise.
2029         * config/arm/tm-linux.h: Likewise.
2030
2031 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
2032
2033         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2034         * config/arm/nbsd.mt (TM_FILE): Delete.
2035         * config/arm/tm-nbsd.h: Delete.
2036
2037 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
2038
2039         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2040         Initialize CALL_DUMMY_LENGTH.
2041
2042 2002-02-19  Richard Earnshaw  <rearnsha@arm.com>
2043
2044         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2045         function.
2046         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2047         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2048         defines one thing and that is incorrect for this port.
2049         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2050
2051 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2052
2053         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2054
2055 2002-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2056
2057         * win32-nat.c (display_selector): New function. Displays information
2058         about the information returned by GetThreadSelectorEntry API function.
2059         (display_selectors): New function. Displays the infomation of
2060         the selector given as argument, or of CS, DS ans FS selectors
2061         if no argument is given.
2062         ( _initialize_inftarg): Add "w32" as info prefix command.
2063         Add "info w32 selector" as command calling display_selectors.
2064
2065 2002-02-19  Pierre Muller  <muller@ics.u-strasbg.fr>
2066
2067         * i386-tdep.c (get_longjmp_target): Fix compilation failure
2068         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2069         if not defined.
2070
2071 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
2072
2073         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2074
2075 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
2076
2077         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2078         (arm_fix_call_dummy): Call it.
2079         (arm_call_dummy_breakpoint_offset): Delete.
2080         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2081         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2082
2083 2002-02-18  Andrew Cagney  <ac131313@redhat.com>
2084
2085         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2086         Default to func_frame_chain_valid.
2087         * gdbarch.h, gdbarch.c: Re-generate.
2088         * frame.h (FRAME_CHAIN_VALID): Delete definition.
2089
2090 2002-02-18  Elena Zannoni  <ezannoni@redhat.com>
2091
2092         * ppc-linux-nat.c: Update copyright.
2093         (fetch_register, store_register): Add tid parameter, don't compute
2094         tid here.
2095         (fetch_ppc_registers, store_ppc_registers): Add tid
2096         parameter. Pass it along to callees.
2097         (fetch_inferior_registers, store_inferior_registers): Compute tid
2098         here, and pass it to calleed functions.
2099         (fill_gregset, supply_fpregset): Clean up formatting.
2100
2101 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
2102
2103         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2104         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2105
2106 2002-02-18  Richard Earnshaw  <rearnsha@arm.com>
2107
2108         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2109         * gdbarch.c gdbarch.h: Regenerate.
2110         * breakpoint.c (create_longjmp_breakpoint): Always compile this
2111         function.
2112         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2113         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2114         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2115
2116         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2117         * arm-tdep.c (arm_get_longjmp_target): New function.
2118         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
2119         this to a positive value register arm_get_longjmp_target as the
2120         longjmp handler.
2121         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2122         (arm_linux_init_abi): Set up longjmp description in tdep.
2123         * armnbsd-nat.c (get_longjmp_target): Delete.
2124         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2125         description in tdep.
2126         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2127         (get_longjmp_target): Delete declaration.
2128         (GET_LONGJMP_TARGET): Delete.
2129         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2130         (GET_LONGJMP_TARGET): Delete.
2131
2132 2002-02-17  Kevin Buettner  <kevinb@redhat.com>
2133
2134         From Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>:
2135         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2136         of ``current_gdbarch''.
2137
2138 2002-02-17  Tom Tromey  <tromey@redhat.com>
2139
2140         * cli/cli-cmds.c (compare_strings): New function.
2141         (complete_command): Only print each unique item once.
2142         * completer.h (complete_line): Declare.
2143         * completer.c (complete_line): New function.
2144         (line_completion_function): Use it.
2145
2146 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
2147
2148         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2149         * gdbarch.h, gdbarch.c: Re-generate.
2150
2151 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
2152
2153         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2154
2155 2002-02-16  Daniel Jacobowitz  <drow@mvista.com>
2156
2157         From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2158         * valops.c (value_arg_coerce): Don't take the address of a reference
2159         to convert an argument to a reference.
2160
2161 2002-02-15  Christopher Faylor  <cgf@redhat.com>
2162
2163         * win32-nat.c (get_image_name): New function.
2164         (handle_load_dll): Use get_image_name function.
2165         (get_child_debug_event): Avoid registering debug events until possibly
2166         execed process is started.
2167         (child_create_inferior): Allow invocation via shell so that command
2168         line redirection, etc.  works ok.
2169         (_initialize_inftarg): Add new command: "set shell" to control whether
2170         a shell is used to start a process.
2171
2172 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
2173
2174         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2175         instead of find_register_by_number.
2176         (cannot_store_register): Likewise.
2177
2178 2002-02-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2179
2180         * dwarf2read.c: Replace fprintf (stderr, ...) by
2181         fprintf_unfiltered (gdb_stderr, ...).
2182
2183 2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
2184
2185         * gdbserver/gdbserver.1: Document --attach.
2186
2187 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
2188
2189         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2190         descriptions.
2191         * arm-tdep.c (arm_default_arm_le_breakpoint)
2192         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2193         (arm_default_thumb_be_breakpoint): New.  Initialize them from
2194         traditional breakpoint defines.
2195         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2196         (arm_gdbarch_init): Initialize new breakpoint variables.
2197         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2198         (arm_linux_init_abi): Initialize linux-specific breakpoint.
2199         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2200         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2201         code out to ...
2202         (arm_netbsd_init_abi_common): ... here; new function.
2203         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2204         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2205         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2206         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2207
2208 2002-02-15  Richard Earnshaw  <rearnsha@arm.com>
2209
2210         * arm-tdep.h (enum arm_abi): New enum.
2211         (struct gdbarch_tdep): New structure.
2212         (LOWEST_PC): Provide a default.
2213         (arm_gdbarch_register_os_abi): Declare new function.
2214         * arm-tdep.c (arm_abi_names): New array.
2215         (process_note_abi_tag_sections): New function.
2216         (get_elfosabi): New function.
2217         (arm_gdbarch_register_os_abi): New function.
2218         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
2219         support for that ABI has been built in, then call the appropriate
2220         configuration routine.  Use gdbarch_num_regs() to get the number
2221         of registers.
2222         (arm_dump_tdep): New function.
2223         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2224         place-holder functions.
2225         (_initialize_arm_tdep): Register them.
2226         * config/arm/tm-arm.h (LOWEST_PC): Delete.
2227
2228         * armnbsd-tdep.c: New file.
2229         * Makefile.in (armnbsd-tdep.o): Add dependencies.
2230         * config/arm/nbsd.mt (TDEPFILES): Add it.
2231         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2232
2233         * armnbsd-nat.c: Include regcache.h.
2234         * Makefile.in (armnbsd-nat.o): Update dependency list.
2235
2236         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2237
2238 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
2239
2240         * gdbserver/Makefile.in: Fix typos in target rules.
2241
2242 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
2243
2244         Fix part of PR gdb/267.
2245         * linespec.c (find_methods): Handle constructors specially for now.
2246
2247 2002-02-14  Corinna Vinschen  <vinschen@redhat.com>
2248
2249         * arm-tdep.c (arm_push_arguments): Eliminate special float type
2250         handling.
2251         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2252         standard_coerce_float_to_double().
2253
2254 2002-02-14  Christopher Faylor  <cgf@redhat.com>
2255
2256         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2257         GDBINIT_FILENAME.
2258
2259 2002-02-14  Elena Zannoni  <ezannoni@redhat.com>
2260
2261         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2262         find_variant_by_name, because it confuses the multiarch
2263         framework. Return NULL if there isn't an architecture with the
2264         user supplied name, instead of forcing a different one without
2265         recording the change with the multiarch machinery.
2266         (find_variant_by_name): Delete.
2267
2268 2002-02-14  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
2269
2270         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2271         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2272
2273 2002-02-13  Martin M. Hunt  <hunt@redhat.com>
2274
2275         * stack.c (print_frame_info_base): When calling
2276         print_frame_info_listing_hook, set current_source_symtab.
2277
2278 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
2279
2280         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2281         and remove unused $(INCLUDE_DIR).
2282         Add regcache.c to OBS.
2283         Add generated register protocol files to clean target.
2284         Update dependencies for new objects, obsolete old target code.
2285
2286         * gdbserver/linux-low.c: Remove all platform-specific code to
2287         new files.  Remove various dead code.  Update to use regcache
2288         functionality.
2289         * gdbserver/remote-utils.c (fromhex): Add return statement
2290         to quiet warning.
2291         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2292         constant.
2293         (input_interrupt): Add integer parameter to match prototype
2294         of a signal handler.
2295         (outreg): Use register_data ().
2296         (prepare_resume_reply): Use gdbserver_expedite_regs.
2297         * gdbserver/server.c (main): Dynamically allocate own_buf because
2298         PBUFSIZ is no longer constant.  Use registers_to_string () and
2299         registers_from_string ().
2300         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
2301         for error (), fatal (), and warning ().  Update definition of
2302         PBUFSIZ to use regcache functionality.  Add include guard.
2303         * gdbserver/utils.c (fatal): Add missing ``const''.
2304         (warning): New function.
2305
2306         * regformats/regdat.sh: Include "regcache.h" in generated files.
2307         Provide init_registers () function.
2308         * regformats/regdef.h: Add prototype for set_register_cache ().
2309         Add include guard.
2310
2311         * gdbserver/linux-arm-low.c: New file.
2312         * gdbserver/linux-i386-low.c: New file.
2313         * gdbserver/linux-ia64-low.c: New file.
2314         * gdbserver/linux-m68k-low.c: New file.
2315         * gdbserver/linux-mips-low.c: New file.
2316         * gdbserver/linux-ppc-low.c: New file.
2317         * gdbserver/linux-sh-low.c: New file.
2318
2319         * gdbserver/regcache.c: New file.
2320         * gdbserver/regcache.h: New file.
2321
2322         * gdbserver/low-linux.c: Removed obsolete file.
2323
2324 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
2325
2326         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2327         * config/i386/linux.mt: Likewise.
2328         * config/ia64/linux.mt: Likewise.
2329         * config/m68k/linux.mh: Likewise.
2330         * config/powerpc/linux.mh: Likewise.
2331         * config/mips/linux.mt: Likewise.
2332
2333         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2334
2335         * config/i386/i386lynx.mh: Mark gdbserver variables
2336         as (currently) obsolete for this target.
2337         * config/i386/nbsd.mt: Likewise.
2338         * config/i386/nbsdelf.mt: Likewise.
2339         * config/m32r/m32r.mt: Likewise.
2340         * config/m68k/m68klynx.mh: Likewise.
2341         * config/m68k/nbsd.mt: Likewise.
2342         * config/m68k/sun3os4.mh: Likewise.
2343         * config/mips/vr5000.mt: Likewise.
2344         * config/ns32k/nbsd.mt: Likewise.
2345         * config/pa/hppabsd.mh: Likewise.
2346         * config/pa/hppaosf.mh: Likewise.
2347         * config/powerpc/nbsd.mt: Likewise.
2348         * config/rs6000/rs6000lynx.mh: Likewise.
2349         * config/s390/s390.mt: Likewise.
2350         * config/s390/s390x.mt: Likewise.
2351         * config/sparc/sparclynx.mh: Likewise.
2352         * config/sparc/sun4os4.mh: Likewise.
2353         * config/i386/x86-64linux.mt: Likewise.
2354         * config/sparc/linux.mh: Likewise.
2355
2356 2002-02-14  Daniel Jacobowitz  <drow@mvista.com>
2357
2358         * configure.tgt: Configure gdbserver only for known working
2359         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
2360         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
2361         SUBDIRS if it is configured.  Update comment for ${nativefile}.
2362         * configure: Regenerated.
2363
2364 2002-02-13  Michael Snyder  <msnyder@redhat.com>
2365
2366         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2367
2368         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2369         (default_gcore_mach): Just return 0, work around a problem in bfd.
2370         (default_gcore_target): OK to return NULL if exec_bfd is null.
2371         (make_mem_sec): Use a cast, avoid a warning.
2372
2373         * procfs.c (find_memory_regions_callback): Use a cast instead of
2374         calling host_pointer_to_address (which complains if
2375         sizeof (host pointer) != sizeof (target pointer)).
2376         (procfs_make_note_section): Avoid overflow in psargs string.
2377
2378         * procfs.c (procfs_make_note_section): Make the default
2379         implementation return an error.
2380
2381 2002-02-13  Rodney Brown  <rbrown64@csc.com.au>
2382
2383         * procfs.c (procfs_make_note_section): Provide a default definition
2384         (for alpha-dec-osf4.0f). Fix typos.
2385
2386 2002-02-13  Elena Zannoni  <ezannoni@redhat.com>
2387
2388         * linux-proc.c: Add include of regcache.h.
2389         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2390
2391 2002-02-13  Andrew Cagney  <ac131313@redhat.com>
2392
2393         From 2002-01-18 Greg McGary <greg@mcgary.org>:
2394         * memattr.c (create_mem_region): Disallow useless empty region.
2395         Regions are half-open intervals, so allow [A..B) [B..C) as
2396         non-overlapping.
2397
2398 2002-02-13  Michael Chastain <mec@shout.net>
2399
2400         * defs.h: Kill CONST_PTR.
2401         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2402         * c-lang.c (c_builtin_types): Likewise.
2403         * ch-lang.c (ch_builtin_types): Likewise.
2404         * f-lang.c (f_builtin_types): Likewise.
2405         * language.c (unknown_builtin_types): Likewise.
2406         * m2-lang.c (m2_builtin_types): Likewise.
2407         * p-lang.c (pascal_builtin_types): Likewise.
2408         * scm-lang.c (c_builtin_types): Likewise.
2409
2410 2002-02-13  Keith Seitz  <keiths@redhat.com>
2411
2412         * arm-tdep.h (arm_get_next_pc): Add declaration.
2413
2414 2002-02-13  Richard Earnshaw  <rearnsha@arm.com>
2415
2416         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
2417         with other related struct-returning functions.
2418         (arm_extract_struct_value_address): New function.
2419         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
2420         initialize float_format, double_format and long_double_format as
2421         appropriate to the endianness of the target.
2422         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2423         (arm_use_struct_convention): Delete declaration.
2424         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2425
2426 2002-02-13  Keith Seitz  <keiths@redhat.com>
2427
2428         * defs.h (core_addr_to_string_nz): New function.
2429
2430 2002-02-13  Mark Kettenis  <kettenis@gnu.org>
2431
2432         Apply missing bits of 2002-01-15 patch.
2433         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2434         (fill_fpregset): Use i387_fill_fsave.
2435
2436 2002-02-12  Keith Seitz  <keiths@redhat.com>
2437
2438         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2439         (core_addr_to_string_nz): New function.
2440
2441 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
2442
2443         * arm-linux-nat.c: Really include arm-tdep.h.
2444         * config/arm/tm-linux.h (struct type, struct value): Declare.
2445
2446 2002-02-11  Michael Snyder  <msnyder@redhat.com>
2447
2448         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2449         (gcore section): Ifdef for Solaris and Unixware only.
2450         (procfs_do_thread_registers): Unixware needs one lwpstatus
2451         per thread (not one prstatus or pstatus).
2452         (procfs_make_note_section): Iterate only over kernel threads (lwps),
2453         not over all gdb threads.  For unixware, call elfcore_write_pstatus
2454         once before iterating over threads.
2455
2456 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
2457
2458         * arm-tdep.h: New file.
2459         * arm-tdep.c: Include arm-tdep.h.
2460         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2461         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2462         (arm_print_float_info, arm_register_type, convert_to_extended)
2463         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2464         (arm_extract_return_value, arm_register_name): Make static.
2465         (arm_software_single_step): Similarly.  Fix types in declaration.
2466         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2467         (arm_store_return_value, arm_store_struct_return): New functions.
2468         (arm_gdbarch_init): Register the above functions.  Also register
2469         call_dummy_start_offset, sizeof_call_dummy_words,
2470         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2471         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2472         max_register_virtual_size, register_size.  Set up
2473         prologue_cache.saved_regs here, rather than ...
2474         (_initialize_arm_tdep): ... here.
2475         * config/arm/tm-arm.h (struct type, struct value): Delete forward
2476         declarations.
2477         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2478         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2479         (arm_print_float_info, arm_register_type, convert_to_extended)
2480         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2481         (arm_extract_return_value, arm_register_name): Delete declarations.
2482         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2483         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2484         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2485         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2486         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2487         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2488         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2489         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2490         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2491         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2492         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2493         (arm_get_next_pc): No-longer static -- these are needed by the RDI
2494         interface.
2495         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2496         * remote-rdi.c remote-rdp.c: Likewise.
2497         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2498         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2499         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2500         definition.
2501
2502         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2503         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2504         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2505         from non-ARM_ prefixed definitions.
2506         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2507         all uses of above.
2508         * remote-rdi.c remote-rdp.c: Likewise.
2509         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2510
2511 2002-02-11  Richard Earnshaw  <rearnsha@arm.com>
2512
2513         * arm-tdep.c (arm_frameless_function_invocation)
2514         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2515         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2516         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2517         (arm_pop_frame, arm_get_next_pc): Make static.
2518         (arm_gdbarch_init): Register above in gdbarch structure.
2519         (arm_read_fp): Renamed from arm_target_read_fp.
2520         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2521         * config/arm/tm-arm.h (arm_frameless_function_invocation)
2522         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2523         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2524         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2525         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2526         (arm_pc_is_thumb_dummy): Delete declarations.
2527         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2528         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2529         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2530         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2531
2532 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
2533
2534         * symtab.c (compare_search_syms): New function.
2535         (sort_search_symbols): New function.
2536         (search_symbols): Sort symbols after searching rather than
2537         before.
2538
2539 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2540
2541         * NEWS: Linux -> GNU/Linux.
2542
2543 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2544
2545         * gdbarch.sh: For for level one methods, disallow a definition
2546         when partially multi-arched.  Add comments explaining rationale.
2547         * gdbarch.h: Re-generate.
2548
2549 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2550
2551         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2552         multi-arch partial.
2553
2554 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2555
2556         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
2557         field.  Use diff -u.
2558         * gdbarch.c: Re-generate.
2559
2560 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2561
2562         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2563         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2564         partial.
2565
2566 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2567
2568         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2569         multi-arch partial.
2570         (PUSH_ARGUMENTS): Switch to using predefault.
2571         * gdbarch.c: Regenerate.
2572
2573 2002-02-10  Andrew Cagney  <ac131313@redhat.com>
2574
2575         * valops.c (PUSH_ARGUMENTS): Delete definition.
2576         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2577         partial.  Default to default_push_arguments.
2578         * gdbarch.h, gdbarch.c: Regenerate.
2579
2580 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
2581
2582         * defs.h (throw_exception): Rename return_to_top_level.  Update
2583         comments.
2584         * utils.c (error_stream, internal_verror, quit): Ditto.
2585         * top.c (throw_exception, catcher): Ditto.
2586         * sparclet-rom.c (sparclet_load): Ditto.
2587         * remote.c (interrupt_query, minitelnet): Ditto.
2588         * remote-sds.c (interrupt_query): Ditto.
2589         * remote-mips.c (mips_error, mips_kill): Ditto.
2590         * ocd.c (interrupt_query): Ditto.
2591         * monitor.c (monitor_interrupt_query): Ditto.
2592         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2593         * target.h: Update comment.
2594
2595         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2596
2597 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
2598
2599         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2600         default_double_format.
2601         * gdbarch.h, gdbarch.c: Re-generate.
2602         * findvar.c (floatformat_unknown): Delete variable definition.
2603         * doublest.h (floatformat_unknown): Delete variable declaration.
2604
2605 2002-02-09  Jim Blandy  <jimb@redhat.com>
2606
2607         * stabsread.c (read_type): Add code to parse Sun's syntax for
2608         prototyped function types.
2609
2610 2002-02-09  Andrew Cagney  <ac131313@redhat.com>
2611
2612         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2613         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2614
2615 2002-02-09  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
2616
2617         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2618         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
2619         now _initialize_xcoffsolib gets called again and overrides the
2620         commands from solib.c in a native configuration.
2621
2622 2002-02-09  Mark Kettenis  <kettenis@gnu.org>
2623
2624         * doublest.c (store_typed_floating): Don't try to return a value.
2625         Fixes PR gdb/290.
2626
2627 2002-02-08  Jim Blandy  <jimb@redhat.com>
2628
2629         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2630         is prototyped and has no arguments, print its argument list as
2631         `(void)'.
2632
2633 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
2634
2635         * MAINTAINERS (write-after-approval): Add myself.
2636         (paper-trail): I've escaped!
2637
2638 2002-02-08  Christopher Faylor  <cgf@redhat.com>
2639
2640         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2641         changes.
2642         (_initialize_check_for_gdb_ini): Ditto.
2643
2644 2002-02-08  Martin M. Hunt  <hunt@redhat.com>
2645
2646         * win32-nat.c (cygwin_pid_to_str): Fix typo.
2647         xaprintf -> xasprintf.
2648
2649 2002-02-08  Pierre Muller  <muller@ics.u-strasbg.fr>
2650
2651         * win32-nat.c: Remove use of printf and sprintf functions.
2652
2653 2002-02-08  Richard Earnshaw  <rearnsha@arm.com>
2654
2655         * arm-tdep.c (arm_frame_chain_valid): Make static.
2656         (arm_push_arguments): Likewise.
2657         (arm_gdbarch_init): New function.
2658         (_initialize_arm_tdep): Call it.
2659         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2660         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2661         (FRAME_CHAIN_VALID): Delete.
2662         (arm_frame_chain_valid): Delete declaration.
2663         (PUSH_ARGUMENTS): Delete.
2664         (arm_push_arguments): Delete declaration.
2665         (CALL_DUMMY_P): Delete.
2666
2667 2002-02-08  Andrew Cagney  <ac131313@redhat.com>
2668             Corinna Vinschen  <vinschen@redhat.com>
2669
2670         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2671         on builtin float types.
2672
2673 2002-02-08  Daniel Jacobowitz  <drow@mvista.com>
2674
2675         * utils.c: Include <curses.h> before "bfd.h".
2676         * tui/tui-hooks.c: Likewise.
2677         * tui/tui.c: Likewise.
2678         * tui/tuiCommand.c: Likewise.
2679         * tui/tuiData.c: Likewise.
2680         * tui/tuiDataWin.c: Likewise.
2681         * tui/tuiDisassem.c: Likewise.
2682         * tui/tuiGeneralWin.c: Likewise.
2683         * tui/tuiIO.c: Likewise.
2684         * tui/tuiLayout.c: Likewise.
2685         * tui/tuiRegs.c: Likewise.
2686         * tui/tuiSource.c: Likewise.
2687         * tui/tuiSourceWin.c: Likewise.
2688         * tui/tuiStack.c: Likewise.
2689         * tui/tuiWin.c: Likewise.
2690
2691 2002-02-07  Elena Zannoni  <ezannoni@redhat.com>
2692
2693         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2694         to include space for pseudoregs as well. Update loops accordingly.
2695         (sh_fp_frame_init_saved_regs): Ditto.
2696         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2697
2698 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
2699
2700         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2701         Add Richard Earnshaw to Arm maintainers.
2702
2703 2002-02-07  Andrew Cagney  <ac131313@redhat.com>
2704
2705         * defs.h (warning_begin): Delete declaration.
2706
2707         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2708         Delete macro.
2709
2710 2002-02-07  Michael Snyder  <msnyder@redhat.com>
2711
2712         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2713         Logic bug, remove misplaced else.
2714
2715 2002-02-07  Klee Dienes  <klee@apple.com>
2716
2717         * fork-inferior.c (fork_inferior): Add '!' to the list of
2718         characters that need to be quoted when building a string for the
2719         shell.  Quote '!' specifically with a backslash, since CSH chokes
2720         when trying to evaluate "str!str".
2721
2722 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
2723
2724         * rdi-share/host.h: Only provide a typedef for bool if it is not
2725         defined.
2726
2727 2002-02-04  Michael Snyder  <msnyder@redhat.com>
2728
2729         * breakpoint.h (enum bptype): Add new overlay event bp type.
2730         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2731
2732         * breakpoint.c (create_internal_breakpoint): New function.
2733         (internal_breakpoint_number): Moved into create_internal_breakpoint.
2734         (create_longjmp_breakpoint): Use create_internal_breakpoint.
2735         (create_thread_event_breakpoint): Ditto.
2736         (create_solib_event_breakpoint): Ditto.
2737         (create_overlay_event_breakpoint): New function.
2738         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2739         (update_breakpoints_after_exec): Delete and re-initialize
2740         overlay event breakpoints after an exec.  Add FIXME comment
2741         about longjmp breakpoint.
2742         (print_it_typical): Ignore overlay event breakpoints.
2743         (print_one_breakpoint): Ditto.
2744         (mention): Ditto.
2745         (bpstat_what): Do not stop for overlay event breakpoints.
2746         (delete_breakpoint): Don't delete overlay event breakpoints.
2747         (breakpoint_re_set_one): Delete the overlay event breakpoint.
2748         (breakpoint_re_set): Re-create overlay event breakpoint.
2749
2750         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2751         (overlay_manual_command): Disable overlay breakpoints.
2752         (overlay_off_command): Disable overlay breakpoints.
2753
2754 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
2755
2756         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2757         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2758         to here from config/tm-arm.h.
2759         (coff_sym_is_thumb): Make static.
2760         (arm_elf_make_msymbol_special): New function.
2761         (arm_coff_make_msymbol_special): New function.
2762         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2763         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2764         (coff_sym_is_thumb): Delete declaration.
2765         (arm_elf_make_msymbol_special): Declare.
2766         (arm_coff_make_msymbol_special): Declare.
2767         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2768         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2769
2770 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
2771
2772         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2773
2774 2002-02-06  Richard Earnshaw  <rearnsha@arm.com>
2775
2776         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2777         * gdbarch.c gdbarch.h: Regenerate.
2778         * arch-utils.c (default_print_float_info): New function.
2779         * arch-utils.h (default_print_float_info): Prototype it.
2780         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2781         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2782         (PRINT_FLOAT_INFO): Document it.
2783
2784         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2785         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2786         (PRINT_FLOAT_INFO): Define.
2787
2788 2002-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
2789
2790         * win32-nat.c (_initialize_check_for_gdb_ini):
2791         Add typecast to sprintf argument to suppress a warning.
2792
2793 2002-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>
2794
2795         * win32-nat.c (last_sig): Changed type of variable to target_signal,
2796         to allow easier handling of pass state.
2797         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2798         that gives exception name and address.
2799         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2800         and set last_sig value to ourstatus->value.sig. Some missing
2801         exceptions added.
2802         (child_continue): Correctly report continue_status.
2803         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2804         TARGET_SIGNAL_0 (new default value).
2805         (child_resume): consider sig argument passed to decide if
2806         the exception should be passed to debuggee or not.
2807
2808 2002-02-05  Michael Snyder  <msnyder@redhat.com>
2809
2810         * regcache.c (fetch_register): Call target_fetch_register
2811         only if we don't call FETCH_PSEUDO_REGISTER.
2812         (store_register): Call target_store_register only if we
2813         don't call STORE_PSEUDO_REGISTER.
2814
2815 2002-02-05  Elena Zannoni  <ezannoni@redhat.com>
2816
2817         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2818         ELF_MAKE_MSYMBOL_SPECIAL.
2819         * gdbarch.c, gdbarch.h: Regenerate.
2820         * arch-utils.c (default_make_msymbol_special): New function.
2821         * arch-utils.h (default_make_msymbol_special): Export.
2822         * elfread.c (elf_symtab_read): Compile use of
2823         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2824         multiarched.
2825         * coffread.c (coff_symtab_read): Ditto, for
2826         COFF_MAKE_MSYMBOL_SPECIAL.
2827
2828 2002-02-05  Jim Blandy  <jimb@redhat.com>
2829
2830         * solib-svr4.c (svr4_truncate_ptr): New function.
2831         (svr4_relocate_section_addresses): Do the address arithmetic with
2832         the appropriate truncation for target addresses, even when
2833         CORE_ADDR is larger than a target address.
2834
2835 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2836
2837         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2838         to (int *).
2839
2840 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2841
2842         * gdbserver/linux-low.c (kill_inferior): Remove commented out
2843         code.
2844
2845 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2846
2847         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2848
2849 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2850
2851         * gdbserver/linux-low.c: Remove unused include files.
2852
2853 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2854
2855         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2856         (read_inferior_memory): Use it.
2857         (write_inferior_memory): Likewise.
2858
2859 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2860
2861         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2862         grubbing through sys_errlist.
2863
2864 2002-02-05  Daniel Jacobowitz  <drow@mvista.com>
2865
2866         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2867
2868 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2869         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2870
2871 2002-02-04  Andrew Cagney  <ac131313@redhat.com>
2872
2873         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2874         (do_sfunc, set_cmd_sfunc): New functions.
2875
2876         * command.h (struct cmd_list_element): Add field func.
2877         * cli/cli-decode.h (struct cmd_list_element): Ditto.
2878         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2879         * cli/cli-decode.h: Ditto.
2880
2881         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2882         (help_all, help_cmd_list): Ditto.
2883         (find_cmd, complete_on_cmdlist): Ditto.
2884         * top.c (execute_command): Ditto.
2885
2886         * cli/cli-setshow.c (do_setshow_command): Call func instead of
2887         function.sfunc.
2888
2889         * infcmd.c (notice_args_read): Fix function signature.
2890
2891         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2892         * cli/cli-decode.c (add_set_cmd): Ditto.
2893         * utils.c (initialize_utils): Ditto.
2894         * maint.c (_initialize_maint_cmds): Ditto.
2895         * infrun.c (_initialize_infrun): Ditto.
2896         * demangle.c (_initialize_demangler): Ditto.
2897         * remote.c (add_packet_config_cmd): Ditto.
2898         * mips-tdep.c (_initialize_mips_tdep): Ditto.
2899         * cris-tdep.c (_initialize_cris_tdep): Ditto.
2900         * proc-api.c (_initialize_proc_api): Ditto.
2901         * kod.c (_initialize_kod): Ditto.
2902         * valprint.c (_initialize_valprint): Ditto.
2903         * top.c (init_main): Ditto.
2904         * infcmd.c (_initialize_infcmd): Ditto.
2905         * corefile.c (_initialize_core): Ditto.
2906         * arm-tdep.c (_initialize_arm_tdep): Ditto.
2907         * arch-utils.c (initialize_current_architecture): Ditto.
2908         (_initialize_gdbarch_utils): Ditto.
2909         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2910
2911         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2912         * wince.c (_initialize_inftarg): Ditto.
2913         * symfile.c (_initialize_symfile): Ditto.
2914         * mips-tdep.c (_initialize_mips_tdep): Ditto.
2915         * language.c (_initialize_language): Ditto.
2916         * arc-tdep.c (_initialize_arc_tdep): Ditto.
2917
2918 2002-02-04  Michael Snyder  <msnyder@redhat.com>
2919
2920         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2921
2922 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
2923
2924         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2925         Add rules for building the register data files.
2926
2927 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
2928
2929         * regformats/regdat.sh: Add braces to the definition of
2930         expedite_regs_${arch}.
2931
2932 2002-02-04  Daniel Jacobowitz  <drow@mvista.com>
2933
2934         * regformats/regdef.h (struct reg): Add comment describing the
2935         requirements for offset and size fields.
2936
2937 2002-02-04  Andreas Schwab  <schwab@suse.de>
2938
2939         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2940         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2941
2942 2002-02-04  Richard Earnshaw  <rearnsha@arm.com>
2943
2944         * gdbarch.sh (copyright): Update years in generated header.
2945         (SMASH_TEXT_ADDRESS): Add rule.
2946         * gdbarch.h, gdbarch.c: Re-generate.
2947         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2948         * dbxread.c: Likewise.
2949         * dwarfread.c: Likewise.
2950         * elfread.c: Likewise.
2951         * somread.c: Likewise.
2952
2953         * arm-tdep.c (arm_smash_text_address): New function.
2954         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2955
2956 2002-02-04  Pierre Muller  <muller@ics.u-strasbg.fr>
2957
2958         Add support for hardware watchpoints on win32 native.
2959         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2960         CONTEXT_DEBUG_REGISTERS.
2961         (dr variable): New variable. Static array containing a local copy
2962         of debug registers.
2963         (debug_registers_changed): New variable.  Reflects when debug registers
2964         are changed and need to be written to inferior.
2965         (debug_registers_used): New variable. Reflects when any debug register
2966         was set, used when new threads are created.
2967         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2968         i386-nat code.
2969         (thread_rec): Set dr array if id is the thread of current_event .
2970         (child_continue, child_resume): Change the debug registers for all
2971         threads if debug_registers_changed.
2972         (child_add_thread): Change the debug registers if debug_registers_used.
2973         * config/i386/cygwin.mh: Add use of i386-nat.o file.
2974         Link nm.h to new nm-cygwin.h file.
2975         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2976         of hardware registers.
2977
2978 2002-02-03  Andrew Cagney  <ac131313@redhat.com>
2979
2980         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2981         Restore behavour broken by 2002-01-20 Andrew Cagney
2982         <ac131313@redhat.com> IEEE_FLOAT removal.
2983
2984 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
2985
2986         * c-valprint.c (c_val_print): Pass a proper valaddr to
2987         cp_print_class_method.
2988         * valops.c (search_struct_method): If there is only one method
2989         and args is NULL, return that method.
2990
2991 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
2992
2993         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2994         accessing tag_name directly.
2995
2996 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
2997
2998         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2999         of accessing tag_name directly.
3000
3001 2002-02-03  Daniel Jacobowitz  <drow@mvista.com>
3002
3003         PR gdb/280
3004         * gdbtypes.c (replace_type): New function.
3005         * gdbtypes.h (replace_type): Add prototype.
3006         * stabsread.c (read_type): Use replace_type.
3007
3008 2002-02-03  Richard Earnshaw  <rearnsha@arm.com>
3009
3010         * Makefile.in (memattr.o): Add missing dependencies rule.
3011
3012 2002-02-03  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
3013
3014         * breakpoint.c (break_at_finish_command): Really export.
3015         (break_at_finish_at_depth_command): Ditto.
3016         (tbreak_at_finish_command): Ditto.
3017         * hppa-tdep.c: Include completer.h.
3018         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3019         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3020
3021 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
3022
3023         * utils.c (do_write): New function.
3024         (error_stream): Rewrite combining the code from error_begin and
3025         verror.
3026         (verror): Rewrite using error_stream.
3027         (error_begin): Delete function.
3028
3029 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
3030
3031         * utils.c (error_begin): Make static.
3032         * defs.h (error_begin): Delete declaration.
3033
3034         * linespec.c (cplusplus_error): Replace cplusplus_hint.
3035         (decode_line_1): Use cplusplus_error instead of error_begin,
3036         cplusplus_hint and return_to_top_level.
3037         * coffread.c (coff_symfile_read): Use error instead of error_begin
3038         and return_to_top_level.
3039         * infrun.c (default_skip_permanent_breakpoint): Ditto.
3040
3041 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
3042
3043         * language.h (type_error, range_error): Make string parameter
3044         constant.
3045         * language.c (warning_pre_print): Delete extern declaration.
3046         * dwarfread.c (warning_pre_print): Ditto.
3047         * language.c (type_error, range_error): Rewrite to use verror and
3048         vwarning instead of warning_begin.
3049
3050 2002-02-01  Michael Snyder  <msnyder@redhat.com>
3051
3052         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3053         (set_ignore_count): Move misplaced comment back where it belongs.
3054
3055 2002-02-01  Andrew Cagney  <ac131313@redhat.com>
3056
3057         * command.h (NO_FUNCTION): Delete macro.
3058         * cli/cli-decode.h (NO_FUNCTION): Ditto.
3059         * top.c (execute_command): Replace NO_FUNCTION with NULL.
3060         * tracepoint.c (_initialize_tracepoint): Ditto.
3061         * cli/cli-decode.c (add_set_cmd): Ditto.
3062         * cli/cli-cmds.c (init_cli_cmds): Ditto.
3063
3064 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
3065
3066         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3067         Update ``this'' pointer when calling virtual functions.
3068
3069 2002-02-01  Michael Snyder  <msnyder@redhat.com>
3070
3071         * breakpoint.c (create_temp_exception_breakpoint): Delete.
3072         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3073
3074 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
3075
3076         * regformats/reg-arm.dat: New file.
3077         * regformats/reg-i386.dat: New file.
3078         * regformats/reg-ia64.dat: New file.
3079         * regformats/reg-m68k.dat: New file.
3080         * regformats/reg-mips.dat: New file.
3081         * regformats/reg-ppc.dat: New file.
3082         * regformats/reg-sh.dat: New file.
3083         * regformats/regdef.h: New file.
3084         * regformats/regdat.sh: New file.
3085
3086 2002-02-01  Richard Earnshaw  <reanrsha@arm.com>
3087
3088         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3089         (arm_frame_args_address, arm_frame_locals_address): New functions.
3090         (arm_frame_num_args): New function.
3091         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3092         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3093         (FRMA_NUM_ARGS): Call arm_frame_num_args.
3094
3095 2002-01-31  Michael Snyder  <msnyder@redhat.com>
3096
3097         * breakpoint.c (break_at_finish_command): Export.
3098         (break_at_finish_at_depth_command): Export.
3099         (tbreak_at_finish_command): Export.
3100         (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3101         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3102         "tbreak" commands, which are HPPA specific.
3103
3104         * printcmd.c (disassemble_command): Remove an ancient
3105         artifact of an old merge.
3106
3107         * symfile.h (enum overlay_debugging_state):
3108         Define enum constant values for overlay mode.
3109         * symfile.c (overlay_debugging): Use enums instead of literals.
3110         (overlay_is_mapped, overlay_auto_command,
3111         overlay_manual_command): Ditto.
3112
3113         * breakpoint.c (insert_breakpoints, remove_breakpoint,
3114         breakpoint_here_p, breakpoint_inserted_here_p,
3115         breakpoint_thread_match, bpstat_stop_status,
3116         describe_other_breakpoints, check_duplicates, clear_command):
3117         Coding standard fixes.
3118
3119         * target.c (target_xfer_memory): Add spaces, coding standard.
3120         (do_xfer_memory): Add missing line to trust-readonly
3121         code: check bfd SEC_READONLY flag for section.
3122
3123 2002-01-31  Andrew Cagney  <ac131313@redhat.com>
3124
3125         * PROBLEMS: Fix typo, 5.1->5.1.1.
3126
3127 2002-01-30  Daniel Jacobowitz  <drow@mvista.com>
3128
3129         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3130         data symbols, since we search based on textlow and texthigh.
3131         (find_pc_sect_symtab): Likewise.
3132
3133 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
3134
3135         * defs.h (vwarning): Declare.
3136         * utils.c (vwarning): New function.
3137         (warning): Call vwarning.
3138         (warning_begin): Delete function.
3139
3140         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3141         the warning message.
3142         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3143         warning_begin.
3144
3145 2002-01-30  Michael Snyder  <msnyder@redhat.com>
3146
3147         * NEWS: Mention "set trust-readonly-sections" command.
3148         Mention generate-core-file command.
3149
3150 2002-01-15  Michael Snyder  <msnyder@redhat.com>
3151
3152         * target.c: New command, "set trust-readonly-sections on".
3153         (do_xfer_memory): Honor the suggestion to trust readonly sections
3154         by reading them from the object file instead of from the target.
3155         (initialize_targets): Register command "set trust-readonly-sections".
3156
3157 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
3158
3159         * parse.c (target_map_name_to_register): Simplify, search regs and
3160         pseudo-regs using a single loop.
3161
3162 2002-01-30  Andrew Cagney  <ac131313@redhat.com>
3163
3164         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3165
3166 2002-01-15  Rodney Brown  <rbrown64@csc.com.au>
3167
3168         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3169         * config/i386/i386v42mp.mh: Add i387-nat.o .
3170         * i386v4-nat.c: Include i387-nat.h.
3171         (supply_fpregset): Use i387_supply_fsave.
3172         (fill_fpregset): Use i387_fill_fsave.
3173
3174 2002-01-30  Richard Earnshaw  <rearnsha@arm.com>
3175
3176         * arm-tdep.c (arm_call_dummy_words): Define.
3177         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3178         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3179         (CALL_DUMMY_WORDS): Define.
3180         (arm_call_dummy_words): Declare.
3181         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3182         (arm_linux_call_dummy_words): Declare.
3183
3184 2002-01-30  Andreas Schwab  <schwab@suse.de>
3185
3186         * m68klinux-nat.c: Fix last change to use regcache_collect
3187         instead of referencing registers[] directly.
3188
3189 2002-01-29  Andrew Cagney  <ac131313@redhat.com>
3190
3191         * parse.c (target_map_name_to_register): Delete code wrapped in
3192         #ifdef REGISTER_NAME_ALIAS_HOOK.
3193
3194 2002-01-28  Michael Snyder  <msnyder@redhat.com>
3195
3196         * regcache.c (legacy_read_register_gen): Need to be able to
3197         read pseudo-register as well as real register.
3198         (legacy_write_register_gen): Ditto.
3199
3200 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
3201
3202         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3203         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3204         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3205         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3206         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3207         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3208         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3209         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3210         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3211         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3212         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3213         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3214         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3215         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3216         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3217         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3218         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3219         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3220         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3221         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3222
3223 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
3224
3225         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3226         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3227         (initialize_current_architecture): Update target_byte_order using
3228         information from BFD.
3229         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3230         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3231
3232 2002-01-28  Andrew Cagney  <ac131313@redhat.com>
3233
3234         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3235         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
3236
3237         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3238         #ifdef INVALID_FLOAT.
3239         * infcmd.c (do_registers_info): Ditto.
3240         * values.c (unpack_double): Ditto.  Add comment.
3241
3242         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3243         already commented out.
3244
3245 2002-01-26  Andreas Schwab  <schwab@suse.de>
3246
3247         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3248         * m68klinux-nat.c: Update ptrace interface for fetching/storing
3249         registers and add support for PTRACE_GETREGS.
3250
3251 2002-01-24  Andrew Cagney  <ac131313@redhat.com>
3252
3253         GDB 5.1.1 released from 5.1 branch.
3254         * NEWS: Add 5.1.1 news.
3255         * README: Sync with 5.1 branch.
3256
3257 2002-01-23  Fred Fish  <fnf@redhat.com>
3258
3259         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3260         stabstring on initial malloc.  Reallocing will copy it for us,
3261         if necessary.
3262
3263 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
3264
3265         * Makefile.in (hpread_h): Delete.
3266         (HFILES_NO_SRCDIR): Remove hpread.h.
3267         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3268         (hpread.o): Update dependencies.
3269         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3270
3271         * hp-psymtab-read.c: Remove file.
3272         * hp-symtab-read.c: Remove file.
3273         * hpread.h: Remove file.
3274
3275         * hpread.c: Merge all contents of hp-psymtab-read.c,
3276         hp-symtab-read.c and hpread.h into this file, as it was prior to
3277         January 1999.
3278
3279         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3280         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3281         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3282         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3283
3284 2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
3285
3286         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3287         fill_gregset): Call gdbarch_tdep() just once, assign result to
3288         variable and use that, instead of calling the function several
3289         times.
3290
3291 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3292
3293         * configure.host: Accept sparcv9 as alias for sparc64.
3294         * configure.tgt: Likewise.
3295
3296 2002-01-22  Kevin Buettner  <kevinb@redhat.com>
3297
3298         * solib-aix5.c (build_so_list_from_mapfile)
3299         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3300         arguments is not reversed.
3301         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3302         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3303
3304 2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
3305
3306         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3307         modified version of obsolete sh_fetch_pseudo_register.
3308         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3309         (sh4_register_read): New function.
3310         (sh_pseudo_register_write): New function. Renamed and modified
3311         version of obsolete sh_store_pseudo_register.
3312         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3313         (sh4_register_write): New function.
3314         (sh_gdbarch_init): Remove setting of gdbarch function
3315         fetch_pseudo_register and store_pseudo_register. Remove setting of
3316         register_convert_to_raw, register_convert_to_virtual,
3317         register_convertible.
3318         (sh_sh4_register_convertible): Delete. No longer needed. All is
3319         taken care by architecture specific functions
3320         register_read/register_write.
3321         (sh_sh4_register_convert_to_virtual): Make static.
3322         (sh_sh4_register_convert_to_raw): Ditto.
3323
3324 2002-01-22  Andrew Cagney  <ac131313@redhat.com>
3325
3326         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3327         (floatformat_is_nan, floatformat_mantissa): Ditto.
3328
3329         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3330         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3331         builtin_type_ieee_double_little,
3332         builtin_type_ieee_double_littlebyte_bigword,
3333         builtin_type_m68881_ext, builtin_type_i960_ext,
3334         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3335         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3336         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3337         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3338
3339 2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
3340
3341         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3342         parameter.  Set frameless flag if it exists and depended of
3343         whether the scanned function is frameless or not.
3344         (xstormy16_skip_prologue): If function is frameless, return
3345         result of xstormy16_scan_prologue().
3346         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3347         call.
3348
3349 2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
3350
3351         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3352         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3353         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3354         sh_sh4_register_byte, sh_sh4_register_raw_size,
3355         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3356         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3357         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3358         sh_store_pseudo_register, sh_do_pseudo_register): Call
3359         gdbarch_tdep() just once, assign result to variable and use that,
3360         instead of calling the function several times.
3361
3362 2002-01-20  Mark Kettenis  <kettenis@gnu.org>
3363
3364         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3365         macros instead of LAST_FPU_CTRL_REGNUM.
3366         (store_register): Likewise.
3367
3368 2002-01-21  Jim Blandy  <jimb@redhat.com>
3369
3370         * infcmd.c (run_command): Check that the `exec' target layer's BFD
3371         is up-to-date before running the program, not just when a program
3372         exits.
3373
3374 2002-01-21  Fred Fish  <fnf@redhat.com>
3375
3376         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3377         when we have found all instructions we are looking for.
3378
3379 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
3380
3381         * arm-tdep.c (arm_register_name): New function.
3382         (arm_registers_names): Make static.
3383         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3384         (arm_register_name): Declare.
3385         (REGISTER_NAME): Use it.
3386
3387 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
3388             Kevin Buettner  <kevinb@redhat.com>
3389
3390         Convert arm targets to new FRAME interface.
3391         * arm-tdep.c (struct frame_extra_info): Remove fsr.
3392         (arm_frame_find_save_regs): Delete.
3393         (arm_frame_init_saved_regs): New.
3394         (arm_init_extra_frame_info): Alloacte saved_regs as required.
3395         Allocate extra_info as required.  Convert all uses of fsr.regs
3396         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3397         to use extra_info.
3398         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3399         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3400         (check_prologue_cache, save_prologue_cache): Likewise.
3401         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3402         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3403         (FRAME_FIND_SAVED_REGS): Delete.
3404         (arm_frame_find_saved_regs): Delete prototype.
3405         (arm_frame_init_saved_regs): New prototype.
3406         (FRAME_INIT_SAVED_REGS): Define.
3407
3408 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3409
3410         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3411
3412 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3413
3414         From Jeff Law <law@redhat.com>:
3415         * infttrace.c: Include <sys/pstat.h>.
3416         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
3417         exec file if the ttrace equivalent fails.
3418
3419 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3420
3421         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3422         (closeLogFile): Ditto.
3423
3424 2002-01-20  Michael Chastain  <mec@shout.net>
3425
3426         * top.c (print_gdb_version): Bump copyright year to 2002.
3427
3428 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3429
3430         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3431         Zannoni and Eli Zaretskii.
3432
3433 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
3434
3435         * buildsym.c: Update copyright years.
3436         * c-typeprint.c: Likewise.
3437         * dwarf2read.c: Likewise.
3438         * f-typeprint.c: Likewise.
3439         * gdbtypes.c: Likewise.
3440         * gdbtypes.h: Likewise.
3441         * hp-symtab-read.c: Likewise.
3442         * hpread.c: Likewise.
3443         * mdebugread.c: Likewise.
3444         * p-typeprint.c: Likewise.
3445
3446 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3447
3448         * remote-sim.c (gdbsim_open): Simplify code testing the macro
3449         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
3450         byte-order selectable.
3451         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3452         * arch-utils.c: Ditto.
3453         (set_endian): Ditto.
3454         (set_endian_from_file): Ditto.
3455         * gdbserver/low-sim.c (create_inferior): Ditto.
3456         * gdbarch.sh: Ditto.
3457         * gdbarch.h: Re-generate.
3458         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3459         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3460         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3461         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3462         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3463         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3464         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3465         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3466         macro definition.
3467         * config/mips/tm-wince.h: Remove #undef of macro
3468         TARGET_BYTE_ORDER_SELECTABLE.
3469         * config/sh/tm-wince.h: Ditto.
3470
3471 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
3472
3473         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3474         member function fields.  Add accessor macro
3475         TYPE_FN_FIELD_ARTIFICIAL.
3476         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3477         * c-typeprint.c (c_type_print_base): Skip artificial member
3478         functions.
3479
3480 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
3481
3482         * f-typeprint.c: Delete unused function f_type_print_args.
3483         * p-typeprint.c: Delete unused function pascal_type_print_args.
3484
3485 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
3486
3487         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
3488         comment.  Add ``artificial'' to ``union field_location''.
3489
3490         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3491
3492         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3493         * mdebugread.c (parse_symbol): Likewise.
3494         * stabsread.c (define_symbol): Likewise.
3495         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3496         initializing TYPE_FIELD_BITPOS to n (obsolete).
3497         (hpread_doc_function_type): Likewise.
3498         * hpread.c (hpread_function_type): Likewise.
3499
3500 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3501
3502         * configure.in (host_makefile_frag): Only require a host makefile
3503         fragment when a native build.
3504         * configure: Re-generate.
3505
3506 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
3507
3508         * doublest.h (floatformat_from_type): Declare.
3509         * doublest.c (floatformat_from_type): New function.
3510         (convert_typed_floating): Use.
3511
3512         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3513         call to function floatformat_from_type.
3514
3515         * gdbarch.sh (IEEE_FLOAT): Delete.
3516         * gdbarch.h, gdbarch.c: Re-generate.
3517         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3518         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3519         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3520         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3521         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3522         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3523         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3524         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3525         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3526         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3527         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3528         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3529
3530         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3531         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3532         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3533         * sh-tdep.c (sh_gdbarch_init): Ditto.
3534         * mips-tdep.c (mips_gdbarch_init): Ditto.
3535         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3536         * cris-tdep.c (cris_gdbarch_init): Ditto.
3537
3538 2002-01-20  Jiri Smid  <smid@suse.cz>
3539
3540         * configure.host, configure.tgt: Support x86-64.
3541         * NEWS: Note new target x86-64.
3542
3543         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3544         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3545         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3546         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3547         x86-64-linux-nat.o): Fix dependencies.
3548
3549 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
3550
3551         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3552         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3553         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3554         * config/sparc/xm-sun4os4.h: Delete file.
3555         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3556
3557 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
3558
3559         * config/sparc/sparclynx.mh (XM_FILE): Delete.
3560         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3561         * config/m68k/m68klynx.mh (XM_FILE): Delete.
3562         * config/i386/i386lynx.mh (XM_FILE): Delete.
3563         * config/rs6000/xm-rs6000ly.h: Delete file.
3564         * config/sparc/xm-sparclynx.h: Delete file.
3565         * config/m68k/xm-m68klynx.h: Delete file.
3566         * config/i386/xm-i386lynx.h: Delete file.
3567         * config/xm-lynx.h: Delete file.
3568         * config/djgpp/fnchange.lst: Update.
3569
3570 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
3571
3572         * alpha-tdep.c (alpha_register_byte): New function.
3573         (alpha_register_raw_size): Ditto.
3574         (alpha_register_virtual_size): Ditto.
3575         (alpha_skip_prologue_internal): Renamed from
3576         alpha_skip_prologue.
3577         (alpha_skip_prologue): New version that calls
3578         alpha_skip_prologue_internal.
3579         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3580         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3581         second argument from alpha_skip_prologue.
3582         (REGISTER_BYTE): Use alpha_register_byte.
3583         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3584         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3585         (FRAMELESS_FUNCTION_INVOCATION): Use
3586         generic_frameless_function_invocation_not.
3587         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3588         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3589
3590 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
3591
3592         * config/mips/xm-news-mips.h: Delete file.
3593         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3594
3595         * config/m88k/xm-m88k.h: Delete file.
3596         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3597         * config/m88k/xm-delta88v4.h: Ditto.
3598         * config/m88k/xm-delta88.h: Ditto.
3599
3600         * config/alpha/xm-fbsd.h: Delete file.
3601         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3602
3603         * config/sparc/xm-sparc.h: Delete file.
3604         * Makefile.in (xm-sun4os4.h): Delete dependency.
3605         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3606         * config/sparc/xm-sun4os4.h: Ditto.
3607         * config/sparc/xm-linux.h: Ditto.
3608
3609         * config/i386/xm-windows.h: Delete file.
3610
3611 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
3612
3613         * utils.c: Include <sys/param.h> for MAXPATHLEN.
3614         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3615
3616 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
3617
3618         * alpha-tdep.c (alpha_call_dummy_words): New.
3619         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3620         (CALL_DUMMY_P): Define.
3621         (CALL_DUMMY_WORDS): Define.
3622         (SIZEOF_CALL_DUMMY_WORDS): Define.
3623
3624 2002-01-19  Per Bothner  <per@bothner.com>
3625
3626         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
3627         isn't NULL, which can happen with some gcj-3.x-produced code.
3628
3629 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
3630
3631         * alpha-tdep.c (alpha_register_virtual_type): New function.
3632         (alpha_init_frame_pc_first): Ditto.
3633         (alpha_fix_call_dummy): Ditto.
3634         (alpha_store_struct_return): Ditto.
3635         (alpha_extract_struct_value_address): Ditto.
3636         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3637         alpha_register_virtual_type.
3638         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3639         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3640         alpha_extract_struct_value_address.
3641         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3642         (INIT_FRAME_PC): Use init_frame_pc_noop.
3643         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3644
3645 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
3646
3647         * i386gnu-nat.c: Include "i386-tdep.h".
3648         (fetch_fpregs): Simplify code dealing with uninitialized floating
3649         point states such that it doesn't require FP7_REGNUM.
3650
3651 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3652
3653         * alpha-tdep.c (frame_extra_info): New.
3654         (alpha_find_saved_regs): Make static.  Use
3655         frame->extra_info.
3656         (alpha_frame_init_saved_regs): New function.
3657         (alpha_frame_saved_pc): Use frame->extra_info.
3658         (temp_saved_regs): Don't declare as struct frame_saved_regs.
3659         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3660         (init_extra_frame_info): Rename to...
3661         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
3662         (alpha_print_extra_frame_info): New function.
3663         (alpha_frame_locals_address): Ditto.
3664         (alpha_frame_args_address): Ditto.
3665         (alpha_pop_frame): Use frame->extra_info.
3666         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3667         alpha_frame_args_address.
3668         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3669         (alpha_find_saved_regs): Remove prototype.
3670         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3671         (EXTRA_FRAME_INFO): Remove.
3672         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3673         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3674
3675 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3676
3677         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3678         (alpha_cannot_fetch_register): Ditto.
3679         (alpha_cannot_store_register): Ditto.
3680         (alpha_register_convertible): Ditto.
3681         (alpha_use_struct_convention): Ditto.
3682         * config/alpha/tm-alpha.h: Update copyright years.
3683         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3684         (INNER_THAN): Use core_addr_lessthan.
3685         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3686         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3687         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3688         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3689         (FRAME_CHAIN): Remove unnecessary cast.
3690
3691 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
3692
3693         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3694         obsolete.
3695
3696 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
3697
3698         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
3699         * monitor.c, remote-array.c, remote-bug.c: Ditto.
3700         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3701         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3702         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3703         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3704         * x86-64-linux-nat.c: Ditto.
3705
3706 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3707
3708         * alpha-tdep.c (alpha_register_name): New function.
3709         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3710         (REGISTER_NAME): Define.
3711
3712 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3713
3714         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3715
3716 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3717
3718         * alpha-tdep.c: Update copyright years.
3719         (alpha_next_pc): New function.
3720         (alpha_software_single_step): Ditto.
3721         * config/alpha/tm-alpha.h: Add prototype for
3722         alpha_software_single_step.
3723
3724 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
3725
3726         * alphabsd-nat.c: Update copyright years.
3727         (fill_gregset): Use regcache_collect.
3728         (fill_fpregset): Likewise.
3729         (fetch_inferior_registers): Only fetch integer registers
3730         if requested to do so.
3731         (store_inferior_registers): Only store integer registers
3732         if requested to do so.
3733
3734 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
3735
3736         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3737         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3738         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3739         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3740         * config/alpha/fbsd.mh (XDEPFILES): Delete.
3741         * config/arm/linux.mh (XDEPFILES): Delete.
3742         * config/arm/nbsd.mh (XDEPFILES): Delete.
3743         * config/i386/i386dgux.mh (XDEPFILES): Delete.
3744         * config/i386/i386sol2.mh (XDEPFILES): Delete.
3745         * config/i386/i386m3.mh (XDEPFILES): Delete.
3746         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3747         * config/i386/i386gnu.mh (XDEPFILES): Delete.
3748         * config/i386/fbsd.mh (XDEPFILES): Delete.
3749         * config/i386/i386bsd.mh (XDEPFILES): Delete.
3750         * config/i386/i386sco5.mh (XDEPFILES): Delete.
3751         * config/i386/i386v4.mh (XDEPFILES): Delete.
3752         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3753         * config/i386/i386sco4.mh (XDEPFILES): Delete.
3754         * config/i386/i386aix.mh (XDEPFILES): Delete.
3755         * config/i386/go32.mh (XDEPFILES): Delete.
3756         * config/i386/cygwin.mh (XDEPFILES): Delete.
3757         * config/i386/i386lynx.mh (XDEPFILES): Delete.
3758         * config/i386/i386mach.mh (XDEPFILES): Delete.
3759         * config/i386/i386v32.mh (XDEPFILES): Delete.
3760         * config/i386/linux.mh (XDEPFILES): Delete.
3761         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3762         * config/i386/ncr3000.mh (XDEPFILES): Delete.
3763         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3764         * config/i386/i386sco.mh (XDEPFILES): Delete.
3765         * config/i386/i386v.mh (XDEPFILES): Delete.
3766         * config/i386/nbsd.mh (XDEPFILES): Delete.
3767         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3768         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3769         * config/i386/symmetry.mh (XDEPFILES): Delete.
3770         * config/i386/obsd.mh (XDEPFILES): Delete.
3771         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3772         * config/ia64/linux.mh (XDEPFILES): Delete.
3773         * config/ia64/aix.mh (XDEPFILES): Delete.
3774         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3775         * config/m68k/dpx2.mh (XDEPFILES): Delete.
3776         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3777         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3778         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3779         * config/m68k/linux.mh (XDEPFILES): Delete.
3780         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3781         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3782         * config/m68k/nbsd.mh (XDEPFILES): Delete.
3783         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3784         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3785         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3786         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3787         * config/m88k/delta88.mh (XDEPFILES): Delete.
3788         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3789         * config/m88k/m88k.mh (XDEPFILES): Delete.
3790         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3791         * config/mips/linux.mh (XDEPFILES): Delete.
3792         * config/mips/irix6.mh (XDEPFILES): Delete.
3793         * config/mips/irix5.mh (XDEPFILES): Delete.
3794         * config/mips/irix4.mh (XDEPFILES): Delete.
3795         * config/mips/irix3.mh (XDEPFILES): Delete.
3796         * config/mips/decstation.mh (XDEPFILES): Delete.
3797         * config/mips/mipsm3.mh (XDEPFILES): Delete.
3798         (NATDEPFILES): Move core-aout.o to here.
3799         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3800         * config/pa/hpux1020.mh (XDEPFILES): Delete.
3801         * config/pa/hppabsd.mh (XDEPFILES): Delete.
3802         * config/pa/hppahpux.mh (XDEPFILES): Delete.
3803         * config/pa/hpux11w.mh (XDEPFILES): Delete.
3804         * config/pa/hppaosf.mh (XDEPFILES): Delete.
3805         * config/pa/hpux11.mh (XDEPFILES): Delete.
3806         * config/powerpc/aix.mh (XDEPFILES): Delete.
3807         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3808         * config/powerpc/linux.mh (XDEPFILES): Delete.
3809         * config/romp/rtbsd.mh: Rename XDEPFILES.
3810         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3811         * config/rs6000/aix4.mh (XDEPFILES): Delete.
3812         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3813         * config/s390/s390.mh (XDEPFILES): Delete.
3814         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3815         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3816         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3817         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3818         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3819         * config/sparc/nbsd.mh (XDEPFILES): Delete.
3820         * config/sparc/linux.mh (XDEPFILES): Delete.
3821         * config/vax/vaxult.mh (XDEPFILES): Delete.
3822         * config/vax/vaxult2.mh (XDEPFILES): Delete.
3823         * Makefile.in (DEPFILES): Remove XDEPFILES.
3824
3825 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
3826
3827         * utils.c (internal_verror): Fix comments, default is yes not no.
3828         Update queries to match.  Default to quit and dump core.
3829
3830 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
3831
3832         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
3833         copyright.
3834         * defs.h, event-top.c, gdbcmd.h: Ditto.
3835         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3836         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3837         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3838         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3839         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3840         * mi/mi-main.c:Ditto.
3841
3842         * stack.c, symfile.c: Update copyright.
3843
3844 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
3845
3846         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3847         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3848         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3849         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3850
3851 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
3852
3853         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3854         * gdbserver/low-lynx.c (myattach): Likewise.
3855         * gdbserver/low-nbsd.c (myattach): Likewise.
3856         * gdbserver/low-sim.c (myattach): Likewise.
3857         * gdbserver/low-sparc.c (myattach): Likewise.
3858         * gdbserver/low-sun3.c (myattach): Likewise.
3859
3860         * gdbserver/low-linux.c (myattach): New function.
3861
3862         * gdbserver/server.c (attach_inferior): New function.
3863         (main): Handle "--attach".
3864
3865 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
3866
3867         * MAINTAINERS (language support): Daniel Jacobwitz is C++
3868         maintainer.
3869
3870 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
3871
3872         * c-typeprint.c (is_type_conversion_operator): Add additional
3873         check for non-conversion operators.
3874
3875 2002-01-15  Michael Snyder  <msnyder@redhat.com>
3876
3877         * linux-proc.c: Add "info proc" command, a la procfs.c.
3878         (read_mapping): New function, abstract and re-use code.
3879         (linux_find_memory_regions): Use new func read_mapping.
3880         (linux_info_proc_cmd): New function, implement "info proc".
3881         (_initialize_linux_proc): Add new command "info proc".
3882
3883 2002-01-15  Michael Snyder  <msnyder@redhat.com>
3884
3885         * symfile.c (generic_load): Use bfd_map_over_sections method
3886         instead of manipulating bfd structure members directly.
3887         (add_section_size_callback): New function, bfd sections callback
3888         used by generic_load.
3889         (load_sections_callback): New function, bfd sections callback
3890         used by generic_load.
3891
3892 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
3893
3894         [Based on work by Jim Blandy]
3895         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3896         (builtin_type_vec128): Export.
3897         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3898         types.
3899         (builtin_type_vec128): New builtin type for 128 bit vector
3900         registers.
3901         (build_gdbtypes): Initialize builtin_type_v16qi and
3902         builtin_type_v8hi. Create the vec128 register builtin type
3903         structure.
3904         (build_builtin_type_vec128): New function.
3905         (_initialize_gdbtypes): Register builtin_type_v16qi and
3906         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3907         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3908         AltiVec register to new builtin type.
3909
3910 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
3911
3912         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3913         to make_cv_type.
3914
3915 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
3916
3917         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3918         CLEAN_UP_REGISTER_VALUE.
3919         * regcache.c (supply_register): Update only call.
3920
3921 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
3922
3923         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3924         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3925         a29k-*-vxworks* targets as obsolete.
3926
3927 2002-01-14  Michael Snyder  <msnyder@redhat.com>
3928
3929         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3930         until we can resolve portability issues.
3931         * gregset.h: Remove references to fpxregs.
3932         * gcore.c (gcore_command): Initialize note_sec to NULL.
3933
3934 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
3935
3936         * signals.c (target_signal_to_name): Rewrite.  Only use
3937         signals[].name when in bounds and non-NULL.
3938
3939 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
3940
3941         From Petr Ledvina <ledvinap@kae.zcu.cz>:
3942         * signals.c (target_signal_to_name): Verify that SIG is within the
3943         bounds of the signals array.
3944
3945 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
3946
3947         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3948
3949 2002-01-13  Keith Seitz  <keiths@redhat.com>
3950
3951         * stack.c (print_frame_info_base): Print the frame's pc
3952         only if when print_frame_info_listing_hook is not defined.
3953
3954 2002-01-13  Keith Seitz  <keiths@redhat.com>
3955
3956         * varobj.c (varobj_set_value): Make sure that there were no
3957         errors evaluating the object before attempting to set its
3958         value.
3959         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3960         so this offset adjustment is no longer necessary.
3961         (create_child): Don't set the error flag if the child is
3962         a CPLUS_FAKE_CHILD.
3963         (value_of_child): If value_fetch_lazy fails, return NULL
3964         so that callers will be notified that an error occurred.
3965         (c_value_of_variable): Delay check of variable's validity
3966         until later. We actually want all structs and unions to have
3967         the value "{...}".
3968         Do not return "???" for variables which could not be evaluated.
3969         This error condition must be returned to the caller so that it
3970         can get the error condition from gdb.
3971         (cplus_name_of_child): Adjust index for vptr before figuring
3972         out the name of the child.
3973         (cplus_value_of_child): If a child's (real) parent is not valid,
3974         don't even bother trying to give a value for it. Just return
3975         an error. Change all instances in this function.
3976         (cplus_type_of_child): If our parent is one of the "fake"
3977         parents, we need to get at the type of the real parent, and
3978         derive the child's true type using this information.
3979
3980 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
3981
3982         From 2002-01-09 John Marshall <johnm@falch.net>:
3983         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3984         sources.redhat.com, and tweak some related URLs which had
3985         suffered from linkrot.
3986
3987 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
3988
3989         From Jeff law:
3990         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3991         structures passed in registers.
3992
3993 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
3994
3995         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3996         white space which prevented compilation.  Reported by DSK
3997         <dsk@student.unsw.edu.au>.
3998
3999 2002-01-11  Michael Snyder  <msnyder@redhat.com>
4000
4001         * symfile.c (build_section_addr_info_from_section_tab):
4002         Use bfd access method instead of manipulating bfd directly.
4003         (syms_from_objfile): Ditto.
4004         (simple_overlay_update_1): Ditto.
4005         (simple_overlay_update): Ditto.
4006         (generic_load): Ditto.
4007         (overlay_unmapped_address): FIXME comment, bfd access methods.
4008         (sections_overlap): FIXME comment, bfd access methods.
4009         (pc_in_mapped_range): FIXME comment, bfd access methods.
4010         (pc_in_unmapped_range): FIXME comment, bfd access methods.
4011         (section_is_mapped): FIXME comment, bfd access methods.
4012         (section_is_overlay): FIXME comment, bfd access methods.
4013
4014         * symfile.c (generic_load): Whitespace and long line cleanups.
4015         Remove duplicate variable, change several local variables to
4016         more appropriate data types.
4017         (print_transfer_performance): Use %lu instead of %ld for ulongs.
4018
4019 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
4020
4021         From Peter Schauer:
4022         * language.c (longest_local_hex_string_custom): Use phex_nz to
4023         convert NUM to a hex string.
4024
4025 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
4026
4027         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4028         the function.
4029         Update Copyright year.
4030
4031 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
4032
4033         * language.c (longest_raw_hex_string): Delete unused function.
4034
4035 2002-01-11  Petr Sorfa  <petrs@caldera.com>
4036
4037         * MAINTAINERS (write-after-approval): Add myself.
4038         * dwarf2read.c (read_tag_string_type): Handling of
4039         DW_AT_byte_size.
4040         (read_tag_string_type): FORTRAN fix to prevent propagation of
4041         first string size.
4042         (set_cu_language): Handling of DW_LANG_Fortran95
4043
4044 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
4045
4046         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4047         GETPID(inferior_ptid).
4048         (store_inferior_registers): Likewise.
4049
4050 2002-01-10  Jason Merrill  <jason@redhat.com>
4051
4052         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4053         Fix DW_OP_minus.
4054
4055 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
4056
4057         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4058         and bfd/elf32-sh-nbsd.c.
4059
4060 2002-01-10  Michael Snyder  <msnyder@redhat.com>
4061
4062         * NEWS: Mention --pid and corefile/proc-id behavior change.
4063
4064         * Makefile.in: Add rules for gcore.o and linux-proc.o.
4065         * gcore.c: Include cli/cli-decode.h instead of command.h.
4066
4067         * main.c (captured_main): Add new command line option "--pid".
4068         If the second command line argument (following the symbol-file)
4069         begins with a digit, try to attach to it before trying to open
4070         it as a corefile.
4071         (print_gdb_help): Document the "--pid" argument.
4072
4073 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
4074
4075         * completer.c (command_completer): New function.
4076
4077         * completer.h <command_completer>: Add prototype.
4078
4079         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4080         completer for the "help" command.
4081
4082 2002-01-09  Jason Merrill  <jason@redhat.com>
4083
4084         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4085
4086 2002-01-09  Michael Snyder  <msnyder@redhat.com>
4087
4088         * i386-linux-nat.c (fill_fpxregset): Make global.
4089         (store_fpxregset): Ditto.
4090
4091         * gregset.h (gdb_fpxregset_t): Define.
4092         (supply_fpxregset): Prototype.
4093         (fill_fpxregset): Prototype.
4094
4095         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4096
4097 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
4098
4099         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4100         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4101         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4102
4103 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
4104
4105         * MAINTAINERS: Update target maintainer rules so that any
4106         Maintainer can approve a tested patch for a maintenance-only
4107         target.
4108
4109 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
4110
4111         * MAINTAINERS (write-after-approval): Add myself.
4112
4113         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4114         IN_SIGTRAMP.
4115
4116 2002-01-08  Michael Snyder  <msnyder@redhat.com>
4117
4118         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4119         real name of the executable, rather than the /proc name.
4120
4121 2002-01-03  Michael Snyder  <msnyder@redhat.com>
4122
4123         Implement a "generate-core-file" command in gdb, save target state.
4124         * gcore.c: New file.  Implement new command 'generate-core-file'.
4125         Save a corefile image of the current state of the inferior.
4126         * linux-proc.c: Add linux-specific code for saving corefiles.
4127         * target.h (struct target_ops): Add new target vectors for saving
4128         corefiles; to_find_memory_regions and to_make_corefile_notes.
4129         (target_find_memory_regions): New macro.
4130         (target_make_corefile_notes): New macro.
4131         * target.c (update_current_target): Inherit new target methods.
4132         (dummy_find_memory_regions): New place-holder method.
4133         (dummy_make_corefile_notes): New place-holder method.
4134         (init_dummy_target): Initialize new dummy target vectors.
4135         * exec.c (exec_set_find_memory_regions): New function.
4136         Allow the exec_ops vector for memory regions to be taken over.
4137         (exec_make_note_section): New function, target vector method.
4138         * defs.h (exec_set_find_memory_regions): Export prototype.
4139         * procfs.c (proc_find_memory_regions): New function, corefile method.
4140         (procfs_make_note_section): New function, corefile method.
4141         (init_procfs_ops): Set new target vector pointers.
4142         (find_memory_regions_callback): New function.
4143         (procfs_do_thread_registers): New function.
4144         (procfs_corefile_thread_callback): New function.
4145         * sol-thread.c (sol_find_memory_regions): New function.
4146         (sol_make_note_section): New function.
4147         (init_sol_thread_ops): Initialize new target vectors.
4148         * inftarg.c (inftarg_set_find_memory_regions): New function.
4149         Allow to_find_memory_regions vector to be taken over.
4150         (inftarg_set_make_corefile_notes): New function.
4151         Allow to_make_corefile_notes vector to be taken over.
4152         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4153         interface layer if not target_has_execution (may be a corefile).
4154         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4155         * config/sparc/sun4sol2.mh: Ditto.
4156         * config/alpha/alpha-linux.mh: Ditto.
4157         * config/arm/linux.mh: Ditto.
4158         * config/i386/x86-64linux.mh: Ditto.
4159         * config/ia64/linux.mh: Ditto.
4160         * config/m68k/linux.mh: Ditto.
4161         * config/mips/linux.mh: Ditto.
4162         * config/powerpc/linux.mh: Ditto.
4163         * config/sparc/linux.mh: Ditto.
4164
4165 2002-01-07  Michael Snyder  <msnyder@redhat.com>
4166
4167         * arm-linux-nat.c: Remove references to regcache.c internal data
4168         (registers[] and register_valid[]).
4169
4170 2002-01-07  Michael Snyder  <msnyder@redhat.com>
4171
4172         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
4173         so that attaching to a pid will automatically read the process's
4174         symbol file and shlibs.
4175         * Makefile.in: Add rule for linux-proc.o.
4176         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4177         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4178         * config/arm/linux.mh: Ditto.
4179         * config/i386/linux.mh: Ditto.
4180         * config/i386/x86-64linux.mh: Ditto.
4181         * config/ia64/linux.mh: Ditto.
4182         * config/m68k/linux.mh: Ditto.
4183         * config/mips/linux.mh: Ditto.
4184         * config/powerpc/linux.mh: Ditto.
4185         * config/sparc/linux.mh: Ditto.
4186
4187 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
4188
4189         * win32-nat.c: Add i386-tdep.h dependency.
4190
4191 2002-01-07  Michael Snyder  <msnyder@redhat.com>
4192
4193         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4194         instead of bfd_get_arch_size.  Don't bail out just because
4195         there's no exec_bfd.
4196
4197         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4198         * p-valprint.c (pascal_object_print_value): Ditto.
4199         * somread.c (som_symtab_read): Ditto.
4200         * symfile.c (simple_free_overlay_region_table): Ditto.
4201         * valops.c (value_assign): Ditto.
4202
4203         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4204         use tilde_expand and strerror for opening save-tracepoints file.
4205
4206         * thread-db.c (thread_db_new_objfile): Indendation fix.
4207
4208         * infptrace.c (GDB_MAX_ALLOCA): New define.
4209         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4210         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4211         can be overridden with whatever value is appropriate to the host).
4212         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4213         alloca to allocate potentially large buffer.
4214         * rs6000-nat.c (child_xfer_memory): Ditto.
4215         * symm-nat.c (child_xfer_memory): Ditto.
4216         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4217
4218 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
4219
4220         From Nick Clifton  <nickc@redhat.com>
4221         * d10v-tdep.c: Set STACK_START to 0x200bffe.
4222
4223 2002-01-07  Michael Snyder  <msnyder@redhat.com>
4224
4225         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4226         Don't use exec_bfd if it's NULL.
4227
4228 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
4229
4230         * valops.c (value_arg_coerce): Fix formatting.
4231
4232 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
4233
4234         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4235         * gnu-nat.c: Ditto.
4236
4237 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
4238
4239         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4240         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4241         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4242         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4243         z8k-coff have not been multi-arched.  Update z8k-coff build
4244         status.
4245
4246 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
4247
4248         * MAINTAINERS: Mark a29k target as obsolete.
4249         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4250         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
4251         comments.
4252         * NEWS: Note that a29k targets are obsolete.
4253         * a29k-tdep.c: Mark as obsolete.
4254         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4255         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4256         a29k-*-vxworks* targets as obsolete.
4257         * remote-adapt.c: Obsolete.
4258         * remote-eb.c: Obsolete.
4259         * remote-mm.c: Obsolete.
4260         * remote-udi.c: Obsolete.
4261         * config/a29k/a29k-udi.mt: Obsolete.
4262         * config/a29k/a29k.mt: Obsolete.
4263         * config/a29k/tm-a29k.h: Obsolete.
4264         * config/a29k/tm-vx29k.h: Obsolete.
4265         * config/a29k/vx29k.mt: Obsolete.
4266
4267 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
4268
4269         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4270         with BFD_ENDIAN_BIG.
4271
4272 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
4273
4274         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4275         * configure, config.in: Re-generate.
4276         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4277         * defs.h: Do not include <endian.h>.
4278
4279 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
4280
4281         * acconfig.h (HAVE_PT_GETXMMREGS): New.
4282         * config.in: Regenerate.
4283         * configure.in: Update copyright years.
4284         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4285         * configure: Regenerate.
4286         * i386bsd-nat.c: Update copyright years.
4287         (fill_gregset): Use regcache_collect.
4288         (fetch_inferior_registers): Only fetch integer registers
4289         if requested to do so.  Add support for XMM registers
4290         using PT_GETXMMREGS.
4291         (store_inferior_registers): Only store integer registers
4292         if requested to do so.  Add support for XMM registers
4293         using PT_SETXMMREGS.
4294         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4295         (store_inferior_registers): Remove.
4296         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4297         (fetch_elfcore_registers): New function.
4298         (i386nbsd_elfcore_fns): New.
4299         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4300         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4301         i386bsd-nat.o.
4302         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4303         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4304         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4305         * config/i386/tm-nbsd.h: Update copyright years.
4306         (HAVE_SSE_REGS): Define.
4307         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4308         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4309         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4310         (SIGCONTEXT_PC_OFFSET): Remove.
4311         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4312
4313 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
4314
4315         * configure.tgt: Remove powerpc-*-macos* target.
4316         * config/m68k/xm-mpw.h: Delete file.
4317         * config/xm-mpw.h: Delete file.
4318         * ser-mac.c: Delete file.
4319         * mpw-make.sed: Delete file.
4320         * mpw-config.in: Delete file.
4321         * mac-xdep.c: Delete file.
4322         * mac-gdb.r: Delete file.
4323         * mac-defs.h: Delete file.
4324         * mac-nat.c: Delete file.
4325         * config/powerpc/macos.mh: Delete file.
4326         * config/powerpc/macos.mt: Delete file.
4327         * config/powerpc/nm-macos.h: Delete file.
4328         * config/powerpc/tm-macos.h: Delete file.
4329         * source.c (openp, open_source_file): Remove obsolete code.
4330         * top.c (gdb_readline): Ditto.
4331         * utils.c (query): Ditto.
4332         * event-top.c (display_gdb_prompt): Ditto.
4333         * Makefile.in (ser-mac.o): Delete obsolete target.
4334         * NEWS: Update.
4335
4336 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
4337
4338         * defs.h (BIG_ENDIAN): Delete macro definition.
4339         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4340         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4341         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4342         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4343         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4344         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4345         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4346         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4347         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4348         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4349         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4350         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4351         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4352         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4353         * gdbarch.c: Re-generate.
4354
4355 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
4356
4357         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4358         for core files.
4359
4360 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
4361
4362         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4363
4364 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
4365
4366         * value.h (value_ptr): Delete typedef.
4367
4368 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
4369
4370         * i386nbsd-nat.c: Update copyright years.
4371         Include i386-tdep.h.
4372
4373 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
4374
4375         * stabsread.c: Update copyright years.
4376
4377         From Debashis Mahata <debashis.mahata@wipro.com>:
4378         (read_struct_fields): Deal with Sun C compiler erroneous stab
4379         output for structs and unions.
4380         Fix PR gdb/269.
4381
4382 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
4383
4384         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4385         prototype.
4386
4387 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
4388
4389         * cp-abi.c: Fix whitespace.
4390         (baseclass_offset): New wrapper function.
4391         * cp-abi.h (baseclass_offset): Add prototype.
4392         (struct cp_abi_ops): Add baseclass_offset pointer.
4393
4394         * valops.c (vb_match): Move to...
4395         * gnu-v2-abi.c (vb_match): here.
4396         * valops.c (baseclass_offset): Move to...
4397         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4398
4399         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4400
4401         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4402         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4403         * hpacc-abi.c (init_hpacc_ops): Likewise.
4404
4405 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
4406
4407         * valops.c (find_overload_match): Accept obj as a
4408         reference parameter.  Update it before returning.
4409         * value.h (find_overload_match): Update prototype.
4410         * eval.c (evaluate_subexp_standard): Pass object to
4411         find_overload_match by reference.
4412
4413 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
4414
4415         * valarith.c: Replace value_ptr with struct value pointer.  Remove
4416         register attribute from value declarations.
4417         * valops.c: Ditto.
4418         * value.h: Ditto.
4419         * scm-lang.c (scm_lookup_name): Ditto.
4420
4421 2002-01-03  Michael Snyder  <msnyder@redhat.com>
4422
4423         Abstract the functionality of iterating over mapped memory
4424         regions into a general purpose iterator function.
4425         * procfs.c (iterate_over_mappings): New function, general purpose
4426         iterator for memory sections.
4427         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4428         (solib_mappings_callback): New function, callback for above.
4429         (info_proc_mappings): Reimpliment using iterate_over_mappings.
4430         (info_mappings_callback): New function, callback for above.
4431
4432         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4433
4434 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
4435
4436         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4437         * i386-tdep.c: Include "elf-bfd.h".
4438         (process_note_abi_tag_sections): New function.
4439         (i386_gdbarch_init): Add code to recognize various OS/ABI
4440         combinations.
4441
4442         * maint.c (_initialize_maint_cmds): Add missing \ in
4443         string-literal.
4444
4445 For older changes see ChangeLog-2001
4446 \f
4447 Local Variables:
4448 mode: change-log
4449 left-margin: 8
4450 fill-column: 74
4451 version-control: never
4452 End: