1 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
3 * gdbtypes.c (init_vector_type): New function.
4 (build_builtin_type_vec128): Simplify the representation of SIMD
6 (build_gdbtypes): Initialize new builtin vector types.
7 (_initialize_gdbtypes): Register new vector types with gdbarch.
8 (builtin_type_v4_float, builtin_type_v4_int32,
9 builtin_type_v8_int16, builtin_type_v16_int8,
10 builtin_type_v2_int32, builtin_type_v4_int16,
11 builtin_type_v8_int8): New (renamed) SIMD types.
13 2002-05-06 Mark Kettenis <kettenis@gnu.org>
15 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
16 (i387_fill_fxsave): Likewise.
18 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
20 * alpha-tdep.c (alpha_extract_return_value): Don't use
21 non-constant array size in prototype.
23 2002-05-04 Andrew Cagney <ac131313@redhat.com>
25 From Brian Taylor <briant at model dot com>:
26 * ui-out.c (ui_out_field_core_addr): Use the function
27 longest_local_hex_string_custom'to format addresses > 32 bits
30 * ui-out.c (ui_out_field_core_addr): Update comment.
32 2002-05-04 Andrew Cagney <ac131313@redhat.com>
34 * stack.c (select_and_print_frame): Make static. Delete the
36 (func_command): Update call.
37 (select_frame_command): Delete code computing the frame level.
38 * frame.h (select_and_print_frame): Delete declaration.
40 2002-05-04 Andrew Cagney <ac131313@redhat.com>
42 * sparc-tdep.c (sparc_get_saved_register): Comment why
43 get_prev_frame call is safe.
45 2002-05-04 Andrew Cagney <ac131313@redhat.com>
47 * frame.h (select_frame): Delete level parameter.
48 * stack.c (select_frame): Update. Use frame_relative_level to
49 obtain the frame's level.
50 (select_and_print_frame): Update call.
51 (select_frame_command): Ditto.
52 (up_silently_base): Ditto.
53 (down_silently_base): Ditto.
54 * ocd.c (ocd_start_remote): Ditto.
55 * remote-rdp.c (remote_rdp_open): Ditto.
56 * remote-mips.c (mips_initialize): Ditto.
58 * remote-e7000.c (e7000_start_remote): Ditto.
59 * m3-nat.c (select_thread): Ditto.
60 * hppa-tdep.c (child_get_current_exception_event): Ditto.
61 (child_get_current_exception_event): Ditto.
62 * varobj.c (varobj_create): Ditto.
63 (varobj_update): Ditto.
64 (c_value_of_root): Ditto.
65 * tracepoint.c (finish_tfind_command): Ditto.
66 * corelow.c (core_open): Ditto.
67 * arch-utils.c (generic_prepare_to_proceed): Ditto.
68 * thread.c (info_threads_command): Ditto.
69 (switch_to_thread): Ditto.
70 * infrun.c (normal_stop): Ditto.
71 (restore_selected_frame): Ditto.
72 (restore_inferior_status): Ditto.
73 * breakpoint.c (insert_breakpoints): Ditto.
74 (watchpoint_check): Ditto.
75 (bpstat_stop_status): Ditto.
76 (do_enable_breakpoint): Ditto.
77 * blockframe.c (flush_cached_frames): Ditto.
78 (reinit_frame_cache): Ditto.
80 2002-05-04 Andrew Cagney <ac131313@redhat.com>
82 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
85 2002-05-04 Jim Blandy <jimb@redhat.com>
87 * gdbtypes.c (replace_type): Doc fix.
89 2002-05-04 Andrew Cagney <ac131313@redhat.com>
91 * valprint.c (strcat_longest): Delete commented out function.
94 2002-05-04 Andrew Cagney <ac131313@redhat.com>
96 * MAINTAINERS: Mark a29k as deleted.
97 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
98 Move new configurations to the top.
99 * configure.tgt: Remove a29k.
100 * config/a29k/tm-vx29k.h: Delete.
101 * config/a29k/vx29k.mt: Delete.
102 * config/a29k/tm-a29k.h: Delete.
103 * config/a29k/a29k-udi.mt: Delete.
104 * config/a29k/a29k.mt: Delete.
105 * a29k-tdep.c: Delete.
106 * remote-udi.c: Delete.
107 * remote-mm.c: Delete.
108 * remote-eb.c: Delete.
109 * remote-adapt.c: Delete.
110 * Makefile.in: Remove obsolete code.
111 * gdbserver/Makefile.in: Ditto.
112 * config/s390/s390x.mt: Ditto.
113 * config/s390/s390.mt: Ditto.
114 * config/sparc/sparclynx.mh: Ditto.
115 * config/sparc/linux.mh: Ditto.
116 * config/pa/hppaosf.mh: Ditto.
117 * config/pa/hppabsd.mh: Ditto.
118 * config/ns32k/nbsd.mt: Ditto.
119 * config/mips/vr5000.mt: Ditto.
120 * config/m68k/sun3os4.mh: Ditto.
121 * config/m68k/nbsd.mt: Ditto.
122 * config/m68k/m68klynx.mh: Ditto.
123 * config/m32r/m32r.mt: Ditto.
124 * config/i386/x86-64linux.mt: Ditto.
125 * config/i386/nbsdelf.mt: Ditto.
126 * config/i386/nbsd.mt: Ditto.
127 * config/i386/i386lynx.mh: Ditto.
129 2002-05-04 Andrew Cagney <ac131313@redhat.com>
131 * target.c (debug_print_register): New function. Handle oversize
133 (debug_to_fetch_registers): Call.
134 (debug_to_store_registers): Call.
136 2002-05-03 Jim Blandy <jimb@redhat.com>
138 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
139 (read_type): Doc fix.
140 * gdbtypes.c (replace_type): Doc fix.
142 * stabsread.c (multiply_defined_struct): New complaint.
143 (read_struct_type): If the type we were passed isn't empty, or
144 incomplete, don't read the new struct type into it; complain,
145 and return the original type unchanged. Take a new `type_code'
146 argument, which is the type code for the new type.
147 (read_type): Rather than storing the type's type code here, pass
148 it as an argument to read_struct_type, and let that take care of
149 storing it. That way, we don't overwrite the original type code,
150 so read_struct_type can use it to decide whether we're overwriting
151 something we shouldn't.
152 (complain_about_struct_wipeout): New function.
154 2002-05-03 Andrew Cagney <ac131313@redhat.com>
156 * gdbarch.sh: Assert that gdbarch is non-NULL.
157 * gdbarch.c: Regenerate.
159 2002-05-03 Jason Merrill <jason@redhat.com>
161 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
164 2002-05-03 Michal Ludvig <mludvig@suse.cz>
166 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
167 (x86_64_dwarf2gdb_regno_map_length),
168 (x86_64_dwarf2_reg_to_regnum): Added.
169 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
170 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
171 (_initialize_x86_64_tdep): Synced with the change above.
172 (x86_64_skip_prologue): Reformulated message.
174 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
176 * f-exp.y: Also use new prev_lexptr variable
177 to improve error reporting. Based on Michael Snyder
178 2002-04-24 dated patch to c-exp.y.
179 * jv-exp.y: Likewise.
180 * m2-exp.y: Likewise.
182 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
184 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
185 we are dealing with vectors.
187 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
189 * config/m68k/tm-nbsd.h: Obvious fix,
190 correct machine name.
192 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
194 * p-typeprint.c (pascal_type_print_base): Add support
195 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
197 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
199 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
200 for fondamental pascal 'char' type.
202 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
204 * p-lang.h (is_pascal_string_type): Declaration changed,
205 new sixth argument of type char ** added.
206 * p-lang.c (is_pascal_string_type): Implementation
207 changed. Args length_pos, length_size, string_pos, char_size
208 can now be NULL. New argument arrayname set to the field
209 name of the char array. Return value set to char array
210 field index plus one.
211 * p-valprint.c (pascal_val_print): Adapt to new declaration of
212 is_pascal_string_type function.
214 2002-05-02 Andrew Cagney <cagney@redhat.com>
216 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
217 <cagney@redhat.com> change.
218 * gdbarch.c: Regenerate.
220 2002-05-02 Andrew Cagney <cagney@redhat.com>
222 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
223 before probing for a new one. Detect errorenous gdbarch_init
225 * gdbarch.c: Regenerate.
227 2002-05-01 Andrew Cagney <cagney@redhat.com>
229 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
230 * config/mcore/tm-mcore.h: Ditto. Update copyright.
231 * config/v850/tm-v850.h: Ditto. Update copyright.
233 2002-04-30 Andrew Cagney <ac131313@redhat.com>
235 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
238 2002-04-30 Michael Snyder <msnyder@redhat.com>
240 * arm-tdep.c: Whitespace clean-ups.
241 (arm_skip_prologue): Fix thinko; two lines
242 should have been removed as part of 4/24 change.
244 2002-04-30 Kevin Buettner <kevinb@redhat.com>
246 * rs6000-tdep.c: Added comment describing how fpscr register
249 2002-04-30 Michael Snyder <msnyder@redhat.com>
251 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
253 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
255 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
256 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
257 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
259 2002-04-29 Kevin Buettner <kevinb@redhat.com>
261 From Louis Hamilton <hamilton@redhat.com>:
262 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
263 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
264 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
265 not bfd-private xcoff data, to determine wordsize.
266 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
268 2002-04-29 Andrew Cagney <ac131313@redhat.com>
270 GDB 5.2 released from 5.2 branch.
272 2002-04-29 Michal Ludvig <mludvig@suse.cz>
274 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
275 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
276 (x86_64_register_info_table): Added comments with register numbers.
278 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
280 * rs6000-tdep.c (rs6000_extract_return_value,
281 rs6000_store_return_value): Handle returning vectors.
282 (rs6000_gdbarch_init): Use
283 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
284 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
286 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
288 (ppc_sysv_abi_push_arguments): Handle vector parameters.
289 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
291 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
293 * hpread.c (hpread_psymtab_to_symtab_1,
294 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
295 with fprintf_unfiltered (gdb_stderr,...).
297 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
299 * remote-array.c (printf_monitor, write_monitor,
300 array_insert_breakpoint, array_remove_breakpoint ):
301 Replace fprintf (stderr,...
302 with fprintf_unfiltered (gdb_stderr,....
303 * remote-es.c: Likewise.
304 * remote-os9k.c: Likewise.
305 * remote-st.c: Likewise.
307 2002-04-28 Andreas Schwab <schwab@suse.de>
309 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
310 linux-proc.o and gcore.o.
312 2002-04-26 Michal Ludvig <mludvig@suse.cz>
314 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
315 code without frame pointers.
317 2002-04-26 Andrew Cagney <ac131313@redhat.com>
319 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
322 2002-04-26 Ben Elliston <bje@redhat.com>
324 * target.c (do_xfer_memory): Correct reference to the new option
325 "trust-readonly-sections".
327 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
329 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
330 * gdbtypes.c (recursive_dump_type): Output the vector flag.
331 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
333 (read_array_type): Record the fact that this array type is really a
334 vector (i.e. are passed in by value).
336 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
338 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
339 * alpha-tdep.c (alpha_sigcontext_addr): New function.
340 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
341 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
342 * alpha-linux-tdep.c: Include frame.h.
343 (alpha_linux_sigcontext_addr): New function.
344 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
345 alpha_linux_sigcontext_addr.
346 * alpha-osf1-tdep.c: Include gdbcore.h.
347 (alpha_osf1_sigcontext_addr): New function.
348 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
349 alpha_osf1_sigcontext_addr.
350 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
351 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
353 2002-04-26 Andrew Cagney <ac131313@redhat.com>
355 * stack.c (selected_frame_level):
356 (select_frame): Do not set selected_frame_level.
357 * frame.h (selected_frame_level): Delete declaration.
359 2002-04-26 Andrew Cagney <ac131313@redhat.com>
361 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
362 convert_from_func_ptr-addr when AIX / PowerOpen.
364 2002-04-25 Andrew Cagney <ac131313@redhat.com>
366 * valops.c (hand_function_call): Call
367 generic_save_call_dummy_addr.
368 * frame.h (generic_save_call_dummy_addr): Declare.
369 * blockframe.c (struct dummy_frame): Add fields call_lo and
371 (generic_find_dummy_frame): Check for PC in range call_lo to
372 call_hi instead of entry_point_address.
373 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
374 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
375 (generic_save_call_dummy_addr): New function.
377 2002-04-24 David S. Miller <davem@redhat.com>
379 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
381 (sparc_skip_prologue): Kill frameless_p arg, and use line number
382 information to find prologue when possible.
383 (sparc_prologue_frameless_p): Call examine_prologue directly.
384 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
385 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
387 (SKIP_PROLOGUE): Likewise.
389 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
391 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
392 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
393 indicate that the condition it was testing is always true.
394 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
395 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
396 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
398 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
400 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
401 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
402 tdep->jb_pc and tdep->jb_elt_size.
403 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
404 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
405 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
406 * alpha-nat.c (get_longjmp_target): Remove.
407 (JB_ELEMENT_SIZE): Ditto.
409 * alpha-tdep.c (alpha_get_longjmp_target): New function.
410 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
411 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
412 to alpha_get_longjmp_target.
413 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
414 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
415 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
417 2002-04-25 Andrew Cagney <ac131313@redhat.com>
419 * README: Update to GDB 5.2.
421 2002-04-25 Andrew Cagney <ac131313@redhat.com>
423 * gdbarch.sh (LC_ALL): Set to `c'.
425 2002-04-25 Theodore A. Roth <troth@verinet.com>
427 * avr-tdep.c: Ran through gdb_indent.sh.
429 2002-04-25 Theodore A. Roth <troth@verinet.com>
431 * MAINTAINERS: Add myself as AVR maintainer.
432 * NEWS: Note new target avr.
434 2002-04-25 Theodore A. Roth <troth@verinet.com>
436 * Makefile.in: Add support for AVR target.
437 * configure.tgt: Add support for AVR target.
438 * avr-tdep.c: New file
439 * config/avr/avr.mt: New file.
441 2002-04-25 Theodore A. Roth <troth@verinet.com>
443 * MAINTAINERS: Add myself to write-after-approval.
445 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
447 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
448 with fprintf_unfiltered (gdb_stderr,....
450 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
453 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
455 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
457 * p-exp.y: Also use new prev_lexptr variable
458 to improve error reporting. Based on Michael Snyder
459 2002-04-24 dated patch to c-exp.y.
461 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
463 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
464 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
465 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
467 * config/alpha/tm-alpha.h: Remove forward decls of struct type
469 (FUNCTION_START_OFFSET): Remove.
472 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
474 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
477 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
479 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
480 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
481 alpha_linux_pc_in_sigtramp.
482 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
483 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
484 alpha_osf1_pc_in_sigtramp.
485 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
486 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
487 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
488 alphafbsd_pc_in_sigtramp.
489 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
490 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
491 alphanbsd_pc_in_sigtramp.
492 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
493 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
495 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
497 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
499 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
501 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
503 (alphanbsd-nat.o): New dependency list.
504 (alphanbsd-tdep.o): Ditto.
505 * NEWS: Note new native NetBSD/alpha configuration.
506 * alphanbsd-nat.c: New file.
507 * alphanbsd-tdep.c: Ditto.
508 * configure.host (alpha*-*-netbsd*): New host.
509 * configure.tgt (alpha*-*-netbsd*): New target.
510 * config/alpha/nbsd.mh: New file.
511 * config/alpha/nbsd.mt: Ditto.
512 * config/alpha/nm-nbsd.h: Ditto.
513 * config/alpha/tm-nbsd.h: Ditto.
515 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
517 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
518 (alpha-osf1-tdep.o): New dependency list.
519 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
520 and skip_sigtramp_frame members.
521 * alpha-linux-tdep.c: Include gdbcore.h.
522 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
523 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
524 * alpha-osf1-tdep.c: New file.
525 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
527 (alpha_frame_past_sigtramp_frame): New function.
528 (alpha_dynamic_sigtramp_offset): Ditto.
529 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
530 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
531 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
532 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
533 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
534 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
535 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
536 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
537 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
538 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
539 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
540 to find_solib_trampoline_target.
541 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
542 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
543 (SKIP_TRAMPOLINE_CODE): Remove.
544 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
545 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
546 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
547 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
548 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
549 (PROC_SIGTRAMP_MAGIC): Ditto.
550 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
551 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
552 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
553 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
554 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
556 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
558 * NEWS: Note that Alpha targets are now multi-arch.
560 2002-04-24 Michael Snyder <msnyder@redhat.com>
562 * parser-defs.h (prev_lexptr): New external variable.
563 * parse.c (parse_exp_1): Set prev_lexptr to null before
564 calling the language-specific parser.
565 * c-exp.y (yylex): Set prev_lexptr to start of current token.
566 (yyerror): Use prev_lexptr in error reporting.
568 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
570 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
571 * gregset.h: If FILL_FPXREGSET is defined, provide
572 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
573 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
574 is defined, call fill_fpxregset.
576 2002-04-24 Roland McGrath <roland@frob.com>
578 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
579 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
580 (supply_gregset, supply_fpregset): New functions.
582 * gnu-nat.c (gnu_find_memory_regions): New function.
583 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
584 (gnu_xfer_memory): Add a cast.
586 2002-04-24 Michael Snyder <msnyder@redhat.com>
588 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
589 loop. Add handling for "str lr, [sp, #-4]!" and for saves
590 of argument regs ("str r(0123), [r11, #-nn"]).
591 (arm_skip_prologue): Better handling for frameless functions.
592 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
593 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
595 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
597 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
598 NUM_PSEUDO_REGS can be used.
600 2002-04-24 Andrew Cagney <ac131313@redhat.com>
602 * arch-utils.h: Update copyright.
604 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
605 * gdbarch.h, gdbarch.c: Re-generate.
607 * inferior.h (IN_SIGTRAMP): Delete definition.
608 * arch-utils.c (legacy_pc_in_sigtramp): New function.
609 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
611 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
612 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
613 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
614 (find_proc_framesize): Ditto.
615 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
616 (alpha_init_extra_frame_info): Ditto.
617 * infrun.c (handle_inferior_event): Ditto.
618 (handle_inferior_event): Ditto.
619 (check_sigtramp2): Ditto.
620 * blockframe.c (create_new_frame): Ditto.
621 (get_prev_frame): Ditto.
622 * ppc-linux-tdep.c: Update comments.
623 * i386-linux-tdep.c: Update comments.
624 * breakpoint.c (bpstat_what): Update comment.
626 2002-04-24 Michal Ludvig <mludvig@suse.cz>
628 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
629 (regsets_store_inferior_registers): Removed cast to int from
631 * gdbserver/regcache.h: Added declaration of struct inferior_info.
633 2002-04-24 David S. Miller <davem@redhat.com>
635 * i960-tdep.c (register_in_window_p): New function.
636 (i960_find_saved_register): Use it instead of
637 REGISTER_IN_WINDOW_P.
638 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
640 * symtab.h (find_stab_function_addr): Kill extern.
641 * minsyms.c (find_stab_function_addr): Remove from here...
642 * dbxread.c: ... to here, and mark it static.
644 2002-04-20 David S. Miller <davem@redhat.com>
646 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
647 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
649 2002-04-21 David S. Miller <davem@redhat.com>
651 * remote-vxsparc.c (vx_read_register): Fix typo, we want
652 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
653 (vx_write_register): Likewise.
655 2002-04-23 J. Brobecker <brobecker@gnat.com>
657 * source.c (is_regular_file): New function.
658 (openp): Check wether file to open is a regular file
659 to avoid opening directories.
661 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
663 * findvar.c (extract_signed_integer): Cast printf argument
664 to suppress format warning.
665 (extract_unsigned_integer): Likewise.
666 * infcmd.c (registers_info): Likewise.
667 * top.c (get_prompt_1): Likewise.
668 * valops.c (value_assign): Likewise.
669 * valprint.c (print_decimal): Likewise.
671 2002-04-22 H.J. Lu (hjl@gnu.org)
673 * c-exp.y (typebase): Support
675 [long|long long|short] [signed|unsigned] [int|]
679 signed [long|long long|short] int
681 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
683 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
685 * vax-tdep.h: New file.
686 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
687 Make several routines static.
688 (vax_get_saved_register): New function.
689 (vax_gdbarch_init): New function.
690 (_initialize_vax_tdep): Register vax_gdbarch_init.
691 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
692 Remove macros now under the control of gdbarch.
694 2002-04-22 Michael Snyder <msnyder@redhat.com>
696 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
697 Some whitespace and coding standards tweaks.
699 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
701 * vax-tdep.c: Include regcache.h.
702 (vax_call_dummy_words): New.
703 (sizeof_vax_call_dummy_words): New.
704 (vax_fix_call_dummy): New function.
705 (vax_saved_pc_after_call): Ditto.
706 * config/vax/tm-vax.h: Don't include regcache.h.
707 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
708 (CALL_DUMMY): Remove.
709 (CALL_DUMMY_WORDS): Define.
710 (SIZEOF_CALL_DUMMY_WORDS): Define.
711 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
713 2002-04-18 Michael Snyder <msnyder@redhat.com>
715 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
717 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
719 * vax-tdep.c (vax_frame_chain): New function.
720 (vax_push_dummy_frame): Ditto.
721 (vax_pop_frame): Ditto.
722 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
723 (FRAMELESS_FUNCTION_INVOCATION): Use
724 generic_frameless_function_invocation_not.
725 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
726 (POP_FRAME): Use vax_pop_frame.
728 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
730 * vax-tdep.c (vax_store_struct_return): New function.
731 (vax_extract_return_value): Ditto.
732 (vax_store_return_value): Ditto.
733 (vax_extract_struct_value_address): Ditto.
734 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
735 vax_store_struct_return.
736 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
737 (STORE_RETURN_VALUE): Use vax_store_return_value.
738 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
740 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
742 * vax-tdep.c (vax_frame_saved_pc): New function.
743 (vax_frame_args_address_correct): Ditto.
744 (vax_frame_args_address): Ditto.
745 (vax_frame_locals_address): Ditto.
746 (vax_frame_num_args): Move code to be in proximity to
747 other frame-related functions.
748 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
749 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
750 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
751 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
752 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
754 2002-04-22 H.J. Lu (hjl@gnu.org)
756 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
759 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
761 * vax-tdep.c (vax_frame_init_saved_regs): New function.
762 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
763 (FRAME_INIT_SAVED_REGS): New macro.
765 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
767 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
769 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
771 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
773 (fetch_osf_core_registers): Likewise.
774 (supply_gregset): Likewise.
776 2002-04-22 J. Brobecker <brobecker@gnat.com>
778 * symfile.h (get_section_index): Define.
779 * symfile.c (get_section_index): New function.
780 * mdebugread.c (SC_IS_SBSS): New macro.
781 (SC_IS_BSS): Return true for the scBss storage class only, as
782 the scSBss storage class refers to the .sbss section.
783 (parse_partial_symbols): Discard the symbols which associated
784 section does not exist.
785 Make sure to use the .sbss section index for symbols which
786 storage class is scBss, rather than using the .bss section index.
788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
790 * vax-tdep.c: Update copyright years.
791 (vax_register_name): New function.
792 (vax_register_byte): Ditto.
793 (vax_register_raw_size): Ditto.
794 (vax_register_virtual_size): Ditto.
795 (vax_register_virtual_type): Ditto.
796 * config/vax/tm-vax.h: Update copyright years.
797 (REGISTER_NAMES): Remove.
798 (REGISTER_NAME): Define.
799 (REGISTER_BYTE): Use vax_register_byte.
800 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
801 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
802 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
804 2002-04-21 Andrew Cagney <ac131313@redhat.com>
806 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
808 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
810 2002-04-21 David S. Miller <davem@redhat.com>
812 * arch-utils.c (generic_prologue_frameless_p): Kill
813 SKIP_PROLOGUE_FRAMELESS_P code.
814 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
816 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
817 * arc-tdep.c (arc_prologue_frameless_p): Implement.
818 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
820 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
821 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
822 (sparc_gdbarch_init): Pass it to
823 set_gdbarch_prologue_frameless_p.
825 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
827 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
828 (alphabsd-nat.o): New dependency list.
830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
832 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
834 (alpha-linux-tdep.o): New dependency list.
835 (alphafbsd-tdep.o): Likewise.
837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
839 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
841 * alpha-tdep.c: ...from here.
842 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
844 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
846 * config/alpha/tm-alpha.h: Move alpha_software_single_step
847 prototype from here...
848 * alpha-tdep.h: ...to here.
850 2002-04-21 Andrew Cagney <ac131313@redhat.com>
852 * frame.h (selected_frame_level): Document as deprecated.
853 (frame_relative_level): Declare.
854 * stack.c (frame_relative_level): New function.
855 (selected_frame_level): Document as deprecated.
856 (select_frame): Do not set the selected_frame_level.
858 * stack.c (frame_info, record_selected_frame): Update.
859 (frame_command, current_frame_command): Update.
860 (up_silently_base, up_command, down_silently_base): Update.
861 (down_command): Update.
862 * inflow.c (kill_command): Update.
863 * tracepoint.c (finish_tfind_command): Update.
864 * corelow.c (core_open): Update.
865 * thread.c (info_threads_command): Update.
866 (do_captured_thread_select): Update.
867 * infcmd.c (finish_command): Update.
868 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
870 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
872 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
874 2002-04-21 Andrew Cagney <ac131313@redhat.com>
876 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
879 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
881 * alphafbsd-tdep.c: Update copyright years. Include
883 (alphafbsd_use_struct_convention): Make static.
884 (alphafbsd_init_abi): New function.
885 (_initialize_alphafbsd_tdep): New function.
886 * config/alpha/tm-fbsd.h: Update copyright years.
887 (USE_STRUCT_CONVENTION): Remove.
889 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
891 * alpha-tdep.c (alpha_abi_handler): New structure to describe
892 an Alpha ABI variant.
893 (alpha_abi_handler_list): Declare.
894 (alpha_gdbarch_register_os_abi): New function.
895 (alpha_gdbarch_init): Give registered ABI variant handlers a
896 chance to tweak the gdbarch once we have set up defaults.
897 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
899 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
901 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
902 to standard_coerce_float_to_double.
903 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
905 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
907 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
908 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
909 from gdbarch_tdep rather than a constant.
910 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
911 the default text address for all Alpha Unix ABIs.
912 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
913 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
915 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
917 * alpha-tdep.h: New file. Includes several Alpha target constants
919 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
920 let gdbarch deal with.
921 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
922 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
924 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
925 Alpha target register names.
926 * alphabsd-nat.c: Likewise.
927 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
928 Alpha target register names. Make serveral routines static.
929 (alpha_get_saved_register): New function.
930 (alpha_abi_names): New.
931 (process_note_abi_tag_sections): New function.
932 (get_elfosabi): New function.
933 (alpha_gdbarch_init): New function.
934 (alpha_dump_tdep): New function.
935 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
937 2002-04-21 Andrew Cagney <ac131313@redhat.com>
939 * frame.c (find_saved_register): Delete #ifdef
940 HAVE_REGISTER_WINDOWS code.
941 * config/sparc/tm-sparc.h: Update comments.
942 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
944 2002-04-21 Andrew Cagney <ac131313@redhat.com>
946 * i960-tdep.c (i960_find_saved_register): New function.
947 (i960_get_saved_register): New function.
948 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
949 (i960_get_saved_register): Declare.
950 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
952 2002-04-20 David S. Miller <davem@redhat.com>
954 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
956 2002-04-20 Andrew Cagney <ac131313@redhat.com>
958 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
959 instead of NUM_PSEUDO_REGS.
961 2002-04-20 David S. Miller <davem@redhat.com>
963 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
964 GDB_MULTI_ARCH_PARTIAL
965 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
966 define, let tm-sp64.h do it.
968 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
970 * frame.c (find_saved_register): Avoid a NULL pointer
971 dereference and actually walk the frame list.
973 2002-04-20 Andrew Cagney <ac131313@redhat.com>
975 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
976 sorted in most most-recent-used order. Document.
977 * gdbarch.h, gdbarch.c: Regenerate.
979 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
981 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
982 (add_inferior): Call create_register_cache.
983 (clear_inferiors): Call free_register_cache.
984 (inferior_regcache_data, set_inferior_regcache_data): New functions.
985 * gdbserver/regcache.c (struct inferior_regcache_data): New.
987 (get_regcache): New function.
988 (create_register_cache, free_register_cache): New functions.
989 (set_register_cache): Don't initialize the register cache here.
990 (registers_to_string, registers_from_string, register_data): Call
992 * gdbserver/regcache.h: Add prototypes.
993 * gdbserver/server.h: Likewise.
995 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
997 * gdbserver/mem-break.c: New file.
998 * gdbserver/mem-break.h: New file.
999 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1001 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1003 (clear_inferiors): Free target_data member if set.
1004 (inferior_target_data, set_inferior_target_data): New functions.
1005 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1006 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1007 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1008 (struct inferior_linux_data): New.
1009 (linux_create_inferior): Use set_inferior_target_data.
1010 (linux_attach): Likewise. Call add_inferior.
1011 (linux_wait_for_one_inferior): New function.
1012 (linux_wait): Call it.
1013 (linux_write_memory): Add const.
1014 (initialize_low): Call set_breakpoint_data.
1015 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1017 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1019 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1021 * gdbserver/target.c (read_inferior_memory)
1022 (write_inferior_memory): New functions.
1023 * gdbserver/target.h (read_inferior_memory)
1024 (write_inferior_memory): Change macros to prototypes.
1025 (struct target_ops): Update comments. Add const to write_memory
1028 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1030 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1032 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1033 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1034 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1037 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1040 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1041 (build_builtin_type_vec128): Ditto.
1042 (append_composite_type_field): Fix calculation of type length in
1045 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1047 * config/djgpp/README: Update.
1049 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1052 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1054 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1055 (alpha_setup_arbitrary_frame): ...to this.
1056 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1057 for alpha_setup_arbitrary_frame.
1059 2002-04-18 Andrew Cagney <cagney@redhat.com>
1061 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1062 * gdbarch.h, gdbarch.c: Regenerate.
1064 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1065 * target.h (memory_breakpoint_from_pc): Update declaration.
1066 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1068 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1069 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1070 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1071 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1072 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1073 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1074 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1075 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1076 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1077 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1078 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1079 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1081 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1083 * monitor.c (monitor_insert_breakpoint): Ditto.
1084 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1086 * config/mcore/tm-mcore.h: Update copyright.
1087 * mem-break.c: Ditto.
1088 * xstormy16-tdep.c: Ditto.
1090 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1092 * p-exp.y: Add precedence rule for '^' token.
1093 This removes the shift/reduce conflicts.
1094 Remove the comment concerning these shift/reduce conflicts.
1096 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1098 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1099 (registers_powerpc_nofp): New register set for processors
1100 without floating point unit.
1102 2002-04-18 David S. Miller <davem@redhat.com>
1104 * MAINTAINERS: Add myself to write-after-approval.
1106 2002-04-17 Michael Snyder <msnyder@redhat.com>
1108 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1110 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1112 * rs6000-tdep.c (frame_initial_stack_address): Use
1113 frame_register_read to read the alloca_reg.
1115 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1117 * frame.c (find_saved_register): Find saved registers in the next
1121 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1123 * gdbarch.sh (LANG): Set to ``c''.
1125 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1127 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1129 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1131 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1134 * hpread.c (hpread_get_lntt): Add declaration.
1135 Also fix PR gdb/391.
1137 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1139 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1140 * aclocal.m4, configure: Re-generate.
1143 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1145 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1146 instead of tm_print_insn.
1148 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1150 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1152 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1154 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1155 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1156 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1158 2002-04-12 Don Howard <dhoward@redhat.com>
1160 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1161 max_user_call_depth.
1162 (init_cmd_lists): Initialize the new value;
1163 * cli/cli-script.c (execute_user_command): Limit the call depth of
1164 user defined commands. This avoids a core-dump when user commands
1165 are infinitly recursive.
1167 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1169 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1170 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1171 from tdep struct instead of DEFAULT_LR_SAVE.
1172 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1173 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1174 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1176 2002-04-12 Michael Snyder <msnyder@redhat.com>
1178 * Remote.c: Spelling fix.
1179 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1180 If no symbol found for "sbrk", try "_sbrk".
1181 (make_output_phdrs): Use bfd_section_name.
1182 (gcore_copy_callback): Use bfd_section_name.
1183 * eval.c: Indentation fix-ups.
1184 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1185 in case it gets applied to an address that is already
1186 in the instruction space.
1187 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1188 * symfile.c: Fix indentation, long lines.
1189 * source.c: White space fix-up.
1191 2002-04-12 Andrew Cagney <cagney@redhat.com>
1193 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1194 * frame.c (frame_register_read): New function. Return non-zero on
1196 (read_relative_register_raw_bytes_for_frame): Delete.
1197 (read_relative_register_raw_bytes): Delete.
1198 * frame.h (frame_register_read): Declare.
1199 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1201 * infcmd.c (do_registers_info): Ditto.
1202 * hppa-tdep.c: Ditto.
1203 * rs6000-tdep.c: Ditto.
1204 * h8500-tdep.c: Ditto.
1205 * mips-tdep.c: Ditto.
1206 * h8300-tdep.c: Ditto.
1207 * z8k-tdep.c: Ditto.
1209 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1211 From Jimi X <jimix@watson.ibm.com>:
1212 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1215 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1217 From Jimi X <jimix@watson.ibm.com>:
1218 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1221 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1223 From Jimi X <jimix@watson.ibm.com>:
1224 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1225 register sets for these processor variants.
1227 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1229 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1230 registers which are allowed to fail to store.
1231 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1232 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1233 (ppc_cannot_store_register): FPSCR may not be storable.
1234 * regformats/reg-ppc.dat: Support FPSCR.
1236 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1238 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1239 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1240 Add fpscr as an invalid/unfetchable register.
1241 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1242 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1243 (fill_fpregset): Add support for register fpscr.
1244 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1245 (fill_gregset): Account for the fact that register ``mq'' might
1247 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1248 (registers_power): Add fpscr to register set at slot 71.
1249 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1250 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1252 2002-04-11 Michael Snyder <msnyder@redhat.com>
1254 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1255 * configure: Regenerate.
1256 * config.in: Regenerate.
1257 * acconfig.h: Add define for _SYSCALL32.
1258 * core-sol2.c: Remove #define _SYSCALL32.
1259 * solib-legacy.c: Remove #define _SYSCALL32.
1261 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1263 * stack.c (select_frame): Cleanup internal error message, do not
1266 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1268 * stack.c (select_frame): Check that selected_frame and the
1269 specified level are as expected.
1270 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1272 * frame.h (struct frame_info): Add field `level'. Update
1274 Work-in-progress PR gdb/464.
1276 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1278 * maint.c (maint_print_section_info): Rename print_section_info.
1279 (print_bfd_section_info, print_objfile_section_info): Update.
1280 * inferior.h (struct gdbarch): Add opaque declaration.
1281 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1282 * gdbarch.h: Regenerate.
1284 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1286 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1287 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1288 (kernel_u_size): Added.
1289 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1290 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1292 2002-04-04 Jim Ingham <jingham@apple.com>
1294 * valarith.c (find_size_for_pointer_math): New function, either returns
1295 the size for a pointer's target, returns 1 for void *, or errors for
1297 (value_add, value_sub): use find_size_for_pointer_math.
1299 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1301 * linux-low.c (linux_look_up_symbols): New hook.
1302 (linux_target_ops): Add linux_look_up_symbols.
1303 * remote-utils.c (decode_address): New function.
1304 (look_up_one_symbol): New function.
1305 * server.c (handle_query): Call target look_up_symbols hook.
1306 * server.h (look_up_one_symbol): Add prototype.
1307 * target.h (struct target_ops): Add look_up_symbols hook.
1309 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1311 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1312 * ChangeLog: Correct paths in last ChangeLog entry.
1314 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1316 * gdbserver/linux-low.h: Remove obsolete prototypes.
1317 (struct linux_target_ops): New.
1318 (extern the_low_target): New.
1319 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1320 (register_addr): Use the_low_target explicitly.
1321 (fetch_register): Likewise.
1322 (usr_fetch_inferior_registers): Likewise.
1323 (usr_store_inferior_registers): Likewise.
1324 * gdbserver/linux-arm-low.c (num_regs): Remove.
1325 (arm_num_regs): Define.
1326 (arm_regmap): Renamed from regmap, made static.
1327 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1329 (arm_cannot_store_register): Renamed from cannot_store_register,
1331 (the_low_target): New.
1332 * gdbserver/linux-i386-low.c (num_regs): Remove.
1333 (i386_num_regs): Define.
1334 (i386_regmap): Renamed from regmap, made static.
1335 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1337 (i386_cannot_store_register): Renamed from cannot_store_register,
1339 (the_low_target): New.
1340 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1341 (ia64_num_regs): Define.
1342 (ia64_regmap): Renamed from regmap, made static.
1343 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1345 (ia64_cannot_store_register): Renamed from cannot_store_register,
1347 (the_low_target): New.
1348 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1349 (m68k_num_regs): Define.
1350 (m68k_regmap): Renamed from regmap, made static.
1351 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1353 (m68k_cannot_store_register): Renamed from cannot_store_register,
1355 (the_low_target): New.
1356 * gdbserver/linux-mips-low.c (num_regs): Remove.
1357 (mips_num_regs): Define.
1358 (mips_regmap): Renamed from regmap, made static.
1359 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1361 (mips_cannot_store_register): Renamed from cannot_store_register,
1363 (the_low_target): New.
1364 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1365 (ppc_num_regs): Define.
1366 (ppc_regmap): Renamed from regmap, made static.
1367 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1369 (ppc_cannot_store_register): Renamed from cannot_store_register,
1371 (the_low_target): New.
1372 * gdbserver/linux-s390-low.c (num_regs): Remove.
1373 (s390_num_regs): Define.
1374 (s390_regmap): Renamed from regmap, made static.
1375 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1377 (s390_cannot_store_register): Renamed from cannot_store_register,
1379 (the_low_target): New.
1380 * gdbserver/linux-sh-low.c (num_regs): Remove.
1381 (sh_num_regs): Define.
1382 (sh_regmap): Renamed from regmap, made static.
1383 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1385 (sh_cannot_store_register): Renamed from cannot_store_register,
1387 (the_low_target): New.
1388 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1389 (the_low_target): New.
1391 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1393 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1394 override FP_REGNUM with frame->fp. Update copyright.
1395 * parse.c (num_std_regs, std_regs): Delete.
1396 (target_map_name_to_register): Do not search std_regs. Update
1397 function description.
1398 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1399 declarations. Update copyright.
1402 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1404 * gdbserver/Makefile.in: Add stamp-h target.
1405 * gdbserver/configure.in: Create stamp-h.
1406 * gdbserver/configure: Regenerated.
1408 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1410 * gdbserver/inferiors.c: New file.
1411 * gdbserver/target.c: New file.
1412 * gdbserver/target.h: New file.
1413 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1415 * gdbserver/linux-low.c (inferior_pid): New static variable,
1416 moved from server.c.
1417 (linux_create_inferior): Renamed from create_inferior.
1418 Call add_inferior. Return 0 on success instead of a PID.
1419 (linux_attach): Renamed from myattach.
1420 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1421 (linux_thread_alive): Renamed from mythread_alive.
1422 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1424 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1425 (regsets_store_inferior_registers): Correct error message.
1426 Add missing ``return 0''.
1427 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1428 (linux_store_registers): Renamed from store_inferior_registers.
1429 (linux_read_memory): Renamed from read_inferior_memory.
1430 (linux_write_memory): Renamed from write_inferior_memory.
1431 (linux_target_ops): New structure.
1432 (initialize_low): Call set_target_ops ().
1433 * gdbserver/remote-utils.c (unhexify): New function.
1434 (hexify): New function.
1435 (input_interrupt): Send signals to ``signal_pid''.
1436 * gdbserver/server.c (inferior_pid): Remove.
1437 (start_inferior): Update create_inferior call.
1438 (attach_inferior): Call add_inferior.
1439 (handle_query): New function.
1440 (main): Call handle_query for `q' packets.
1441 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1442 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1444 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1446 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1448 * gdbserver/configure.in: Check for <string.h>
1449 * gdbserver/configure: Regenerate.
1450 * gdbserver/config.in: Regenerate.
1451 * gdbserver/gdbreplay.c: Include needed system headers.
1452 (remote_open): Remove strchr prototype.
1453 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1454 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1455 (supply_register_by_name): Likewise.
1456 (collect_register): Change buf argument to void *.
1457 (collect_register_by_name): Likewise.
1458 * gdbserver/regcache.h: Add missing prototypes.
1459 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1460 * gdbserver/server.c (handle_query): New function.
1461 (attached): New static variable, moved out of main.
1462 (main): Quiet longjmp clobber warnings.
1463 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1464 * gdbserver/utils.c (error): Remove NORETURN.
1467 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1469 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1470 after the last symbol in a block.
1472 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1474 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1475 is non zero as a found symbol.
1477 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1479 * findvar.c: Include "builtin-regs.h".
1480 (value_of_register): Call value_of_builtin_reg when applicable.
1481 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1482 (target_map_name_to_register): Call
1483 builtin_reg_map_name_to_regnum.
1484 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1485 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1486 (builtin_regs_h): Define.
1487 (builtin-regs.o): New target.
1488 (findvar.o): Add $(builtin_regs_h).
1489 * builtin-regs.c, builtin-regs.h: New files.
1490 * std-regs.c: New file.
1491 Partial fix for PR gdb/251.
1493 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1495 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1496 it's no longer required.
1498 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1500 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1502 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1504 From Jimi X <jimix@watson.ibm.com>:
1505 * rs6000-tdep.c (rs6000_software_single_step): Use
1506 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1507 and size. Use target_insert_breakpoint() and
1508 target_remove_breakpoint() to insert and remove breakpoints
1509 instead of explicit memory reads and writes.
1511 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1513 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1514 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1515 ELF_OBJECT_FORMAT ifdef.
1517 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1519 From Jimi X <jimix@watson.ibm.com>:
1520 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1522 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1524 From Jimi X <jimix@watson.ibm.com>:
1525 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1526 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1528 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1530 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1531 s/asprintf/xasprintf/.
1532 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1534 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1536 I believe Jeff Law denies responsability for this one:
1537 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1538 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1539 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1540 Work-around for PR gdb/366.
1542 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1544 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1545 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1546 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1548 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1550 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1551 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1554 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1556 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1559 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1561 * README (Reporting Bugs in GDB): Document the bug web page as the
1562 prefered way of submitting bugs.
1565 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1567 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1569 * gdbarch.h, gdbarch.c: Re-generate.
1571 2002-04-07 Andreas Schwab <schwab@suse.de>
1573 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1574 buffer to regcache_collect.
1576 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1578 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1579 * gdbarch.c, gdbarch.h: Re-generate.
1581 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1583 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1584 declaration. Fix -Werror.
1586 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1588 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1589 * gdbarch.c: Regenerate.
1591 2002-04-05 Michael Snyder <msnyder@redhat.com>
1593 * breakpoint.c (clear_command): Rewrite middle section to
1594 combine two loops with identical control conditions.
1595 Add a cleanup to eliminate a memory leak.
1596 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1598 2002-04-05 H.J. Lu (hjl@gnu.org)
1600 * solib-svr4.c (bkpt_names): Add "__start".
1602 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1604 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1605 as test for 64 bit target.
1607 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1609 * h8500-tdep.c (h8500_write_fp): Delete function.
1610 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1611 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1612 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1614 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1615 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1617 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1618 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1619 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1620 (d10v_write_fp): Delete function.
1621 * inferior.h (write_fp, generic_target_write_fp): Delete
1623 * regcache.c (generic_target_write_fp): Delete function.
1624 (write_fp): Delete function.
1625 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1626 * gdbarch.h, gdbarch.c: Regenerate.
1627 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1628 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1629 (sparc64_write_fp): Delete declaration.
1630 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1631 (h8500_write_fp): Delete declaration.
1633 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1635 * sparc-tdep.c (sparc64_write_fp): Delete.
1636 (sparc_push_dummy_frame): Replace write_fp call with code to store
1638 (sparc_gdbarch_init): Do not initialize write_fp.
1640 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1642 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1645 2002-03-29 Jim Blandy <jimb@redhat.com>
1647 * stack.c (get_selected_block): Add new argument `addr_in_block',
1648 used to return the exact code address we used to select the block,
1650 * blockframe.c (get_frame_block, get_current_block): Same.
1651 * frame.h (get_frame_block, get_current_block,
1652 get_selected_block): Update declarations.
1653 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1654 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1656 2002-04-05 Michael Snyder <msnyder@redhat.com>
1658 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1661 2002-04-05 J. Brobecker <brobecker@gnat.com>
1663 * utils.c (xfullpath): New function.
1664 * defs.h (xfullpath): Add declaration.
1665 * source.c (openp): Use xfullpath in place of gdb_realpath to
1666 avoid resolving the basename part of filenames when the
1667 associated file is a symbolic link. This fixes a potential
1668 inconsistency between the filenames known to GDB and the
1669 filenames it prints in the annotations.
1670 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1671 to be able to match a filename with either the real filename, or
1672 the name of any symbolic link to this file.
1673 (lookup_partial_symtab): Ditto.
1675 2002-04-04 Michael Snyder <msnyder@redhat.com>
1677 * breakpoint.c: Add support for hardware breakpoints in overlays.
1678 (overlay_events_enabled): New state variable.
1679 (insert_breakpoints): Use overlay_events_enabled to decide
1680 whether to attempt to set a breakpoint at the overlay load addr.
1681 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1682 (remove_breakpoint): Use overlay_events_enabled to decide
1683 whether breakpoints need to be removed from overlay load addr.
1684 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1685 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1686 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1687 disable_overlay_breakpoints): Update overlay_events_enabled.
1689 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1691 * dwarf2read.c (struct function_range): New.
1692 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1693 (check_cu_functions): New.
1694 (read_file_scope): Initialize global function lists.
1695 Call dwarf_decode_line after processing children.
1696 (read_func_scope): Add to global function list.
1697 (dwarf_decode_lines): Call check_cu_functions everywhere
1698 record_line is called. Call record_line with a linenumber
1699 of 0 to mark sequence ends.
1701 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1703 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1704 change sync with glibc.
1706 2002-04-03 Jim Blandy <jimb@redhat.com>
1708 * configure.in: Call AC_C_INLINE.
1709 * configure: Regenerated.
1711 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1713 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1714 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1716 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1718 * NEWS: Mention gcore support on FreeBSD/i386.
1720 * fbsd-proc.c: New file.
1721 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1722 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1724 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1727 2002-03-29 Jim Blandy <jimb@redhat.com>
1729 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1730 unescaped newlines in string literals, but newer ones don't. So
1733 2002-03-26 Michael Snyder <msnyder@redhat.com>
1734 Andrew Cagney <cagney@redhat.com>
1736 * cli/cli-dump.c: New file. Dump memory to file,
1737 restore file to memory.
1738 * cli/cli-dump.h: New file.
1739 * Makefile.in: Add rules, dependencies for cli-dump.o.
1740 * NEWS: Mention new commands.
1742 2002-03-28 Michael Snyder <msnyder@redhat.com>
1744 * symfile.c (symbol_file_add): Move test for null symbols to later.
1746 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1748 From veksler at il.ibm.com:
1749 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1750 the xstrduped original path.
1753 2002-03-27 Michael Snyder <msnyder@redhat.com>
1755 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1756 * infcmd.c (_initialize_infcmd): Ditto.
1757 * language.c (_initialize_language): Ditto.
1758 * symfile.c (_initialize_symfile): Ditto.
1759 * top.c (_init_main): Ditto.
1760 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1762 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1764 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1765 vector registers handling.
1766 (skip_prologue): Handle new AltiVec instructions. Fill in new
1767 fields of frame data.
1768 (frame_get_saved_regs): Fill in information for AltiVec registers.
1770 2002-03-27 Jim Blandy <jimb@redhat.com>
1772 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1773 a function; leave this macro here to invoke that function.
1774 (symbol_init_mangled_name): Declaration for that function.
1775 * symtab.c (symbol_init_mangled_name): New function.
1777 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1779 * valarith.c: Replace strerror with safe_strerror.
1780 * tracepoint.c: Ditto.
1782 * go32-nat.c: Ditto.
1786 2002-03-27 Andreas Schwab <schwab@suse.de>
1788 * event-top.c (command_line_handler): Remove useless if.
1790 2002-03-27 Andreas Jaeger <aj@suse.de>
1792 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1795 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1797 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1798 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1799 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1800 (x86_64_linux_dr_get_status, supply_gregset),
1801 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1802 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1803 (x86_64_register_info_table): Add.
1804 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1805 (x86_64_register_raw_size, x86_64_register_virtual_type),
1806 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1807 general x86_64_register_info_table.
1808 (i386_gdbarch_init): gdbarch_register_bytes is now set
1809 dynamicaly during initialization.
1810 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1811 * gdbserver/linux-x86-64-low.c: Ditto.
1813 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1815 * gdbserver/server.c (main): Call target_signal_to_host_p
1816 and target_signal_to_host on signals received from the remote.
1817 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1818 target_signal_from_host on signals sent to the remote.
1819 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1820 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1822 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1824 * signals/signals.c: Include "server.h" in gdbserver build.
1825 (target_signal_from_name): Don't use STREQ.
1826 (_initialize_signals): Likewise. Don't include function in
1829 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1831 * signals.c: Moved to...
1832 * signals/signals.c: Here.
1833 * Makefile (signals.o): Update.
1835 2002-03-26 Jeff Law (law@redhat.com)
1837 * somread.c (som_symtab_read): Remove some commented out code and
1838 updated related comments. Do not set the minimal symbol table to
1839 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1840 in a dynamic executable.
1841 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1842 where we are unable to find the minimal symbol for the given
1845 2002-03-25 Jeff Law (law@redhat.com)
1847 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1849 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1851 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1853 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1855 * command.h: Update copyright.
1856 (struct cmd_list_element): Replace definition with opaque
1858 (enum cmd_types): Document that it will eventually be moved to
1860 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1861 (MALLOCED_REPLACEMENT): Delete macro.
1862 * Makefile.in (cli_decode_h): Add $(command_h).
1863 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1864 * top.c: Include "cli/cli-decode.h".
1865 * completer.c: Include "cli/cli-decode.h".
1866 * maint.c: Include "cli/cli-decode.h".
1867 * cli/cli-decode.h: Include "command.h".
1868 (enum command_class): Delete.
1869 (enum cmd_types): Comment out.
1870 (enum cmd_auto_boolean): Delete.
1871 (enum var_types): Delete.
1873 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1875 * cli/cli-decode.c: Include "gdb_assert.h".
1876 (add_set_or_show_cmd): New static function.
1877 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1878 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1879 all fields, such as func, from the set command.
1881 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1883 * MAINTAINERS (sh-elf): Change warning flag to -w.
1885 2002-03-23 Andrew Cagney <cagney@redhat.com>
1887 * defs.h (error): Add printf format attribute.
1888 * thread-db.c (thread_from_lwp): Fix error format string.
1889 * stack.c (parse_frame_specification): Ditto.
1890 * cli/cli-decode.c (undef_cmd_error): Ditto.
1891 * scm-lang.c (scm_lookup_name): Ditto.
1892 * tracepoint.c (trace_error): Ditto.
1893 * remote-utils.c (usage): Ditto.
1894 * remote.c (compare_sections_command): Ditto.
1897 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1899 * gdbtypes.c (append_composite_type_field): New function.
1900 (init_composite_type): New function.
1901 * gdbtypes.h (append_composite_type_field): Declare.
1902 (init_composite_type): Ditto.
1904 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1906 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1908 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1909 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1910 structure returning convention for SYSV ABI case, but not
1911 for GNU/Linux, FreeBSD, or NetBSD.
1913 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1915 * symtab.h (lookup_block_symbol): Add mangled_name argument
1918 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1919 with new mangled_name argument.
1920 * linespec.c (decode_line_1): Likewise.
1921 * valops (value_of_this): Likewise.
1922 * symtab.c (lookup_transparent_type): Likewise.
1923 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1924 (lookup_symbol): If we are given a mangled name, pass it down
1925 to lookup_symbol_aux.
1926 (lookup_block_symbol): If we are given a mangled name to check
1927 against, only return symbols which match it.
1929 2002-03-22 Christopher Faylor <cgf@redhat.com>
1931 * win32-nat.c (child_create_inferior): Check for proper shell to use
1932 here, in case the user changes it on the fly.
1933 (_initialize_inftarg): Remove shell path considerations.
1935 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1937 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1938 for gdbarch_max_register_raw_size and max_register_virtual_size.
1939 Adjust copyright year.
1941 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1943 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1944 in a function to cover the entire beginning of the function
1945 as well if it does not already.
1947 2002-03-21 Tom Rix <trix@redhat.com>
1949 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1950 (rs6000_ptrace64): Renamed from ptrace64.
1952 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1954 * gdbserver/remote-utils.c (remote_open): Don't call
1955 getprotobyname, we're all using TCP here so just use
1957 * gdbserver/gdbreplay.c (remote_open): Ditto.
1959 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1961 * regcache.c (_initialize_regcache): No need to call
1962 build_regcache() at this time; it gets called whenever
1963 the gdbarch changes.
1965 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1967 * sparc-nat.c: Include sys/param.h where possible.
1969 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1972 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1973 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1974 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1976 * stabsread.c (rs6000_builtin_type): Likewise.
1977 (read_sun_floating_type): Likewise.
1979 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1981 * stabsread.c (read_member_functions): Remove skip code for duplicate
1982 constructor/destructor methods. Use standard parsing for these
1983 methods and just do not chain them to the list of methods after
1986 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1988 * coffread.c: Remove redundant static declarations. Replace
1989 occurrences of `PTR' with `void *'.
1990 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1991 * top.h (quit_cover): Likewise.
1992 * defs.h (catch_errors): Likewise.
1994 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1996 * defs.h (XMALLOC): Define.
1997 * gdb-events.sh (XMALLOC): Delete macro.
1998 * gdb-events.c, gdb-events.h: Regenerate.
1999 * gdbarch.sh (XMALLOC): Delete macro.
2000 * gdbarch.c: Regenerate.
2001 * serial.c (XMALLOC): Delete macro.
2002 * ui-file.c (XMALLOC): Ditto.
2003 * ser-unix.h (XMALLOC): Ditto.
2004 * sh-tdep.c (XMALLOC): Ditto.
2005 * ui-out.c (XMALLOC): Ditto.
2006 * utils.c (XMALLOC): Ditto.
2007 * i386-tdep.c (XMALLOC): Ditto.
2008 * gdb-events.c (XMALLOC): Ditto.
2009 * d10v-tdep.c (XMALLOC): Ditto.
2010 * cli-out.c (XMALLOC): Ditto.
2012 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2013 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2014 * ui-file.c, ui-out.c: Ditto.
2016 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2018 * command.h (struct cmd_list_element): Add field context.
2019 (set_cmd_context, get_cmd_context): Declare.
2020 * cli/cli-decode.h: Ditto.
2021 * cli/cli-decode.c (get_cmd_context): New function.
2022 (set_cmd_context): New function.
2023 (add_cmd): Initialize context.
2024 Part of fixing PR gdb/145 and PR gdb/146.
2026 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2028 * cli/cli-decode.c (cmd_type): New function.
2029 * command.h (cmd_type): Declare.
2030 * infrun.c (set_schedlock_func): Call function cmd_type.
2031 * kod.c (kod_set_os): Call cmd_type.
2032 * cris-tdep.c (cris_version_update): Use function cmd_type.
2033 (cris_mode_update, cris_abi_update): Ditto.
2035 * command.h: (execute_cmd_post_hook): Declare.
2036 (execute_cmd_pre_hook): Declare.
2037 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2038 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2039 functions. Execute pre/post hook while ensuring that afterwords
2041 * top.c (execute_command): Use execute_cmd_post_hook, and
2042 execute_cmd_pre_hook to execute pre/post commands.
2043 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2045 (hook_stop_stub): Call execute_cmd_pre_hook.
2047 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2049 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2050 set'' and this leads to a core dump. Move xstrdup of
2051 operating_system to after check that it is not NULL.
2053 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2055 * kod.c (kod_set_os): Remove unnecessary check that
2056 ``command->type'' is set_cmd.
2058 * valprint.c (set_input_radix): Use input_radix.
2059 (set_output_radix): Use output_radix.
2060 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2063 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2065 * value.h (struct value): Delete field ``substring_addr''. Change
2066 aligner fields to force_doublest_align, force_longest_align,
2067 force_core_addr_align and force_pointer_aligh.
2069 * value.h (struct value): Fix typo in above change.
2071 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2073 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2074 to fix internal_error from ``maintenance print architecture''.
2076 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2078 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2079 for gcc versions after gcc-2.8.1.
2081 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2083 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2084 for method resolution. Restore adjustment of ``this'' pointer after
2085 calling value_struct_elt, which was accidentally removed during the
2088 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2090 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2092 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2094 * value.h (value_of_register): Update.
2096 2002-03-14 Richard Henderson <rth@redhat.com>
2098 * configure.in: Detect declaration for canonicalize_file_name.
2099 * utils.c (canonicalize_file_name): Declare, if needed.
2100 (gdb_realpath): Prefer realpath if available and usable.
2101 * config.in, configure: Rebuild.
2103 2002-03-14 Richard Henderson <rth@redhat.com>
2105 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2106 a constant array bound.
2108 * MAINTAINERS: Add myself to write-after-approval.
2110 2002-03-14 Michael Snyder <msnyder@redhat.com>
2112 * symfile.c (syms_from_objfile): Return immediately if no syms.
2113 (symbol_file_add): Return immediately if no syms.
2114 (find_sym_fns): Return immediately if no syms.
2116 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2118 * gdbserver/remote-util.c (remote_open): Print remote-side's
2119 IP address when remote debugging over the network.
2121 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2123 * config/sparc/fbsd.mh: Fix copyright.
2124 * config/sparc/fbsd.mt: Likewise.
2126 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2128 * MAINTAINERS: Fix typo in name of gdb warnings option.
2129 (x86-64): Fix formating so that this can be parsed by awk.
2131 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2133 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2134 * defs.h: Include "gdb/signals.h".
2135 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2137 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2139 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2140 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2143 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2144 Don Howard <dhoward@redhat.com>
2146 * mips-tdep.c (ST0_FR): Define.
2147 (mips2_fp_compat): New function, temporarily disabled.
2148 (mips_read_fp_register_single): New function.
2149 (mips_read_fp_register_double): New function.
2150 (mips_print_register): Use them.
2151 (do_fp_register_row): Likewise.
2153 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2155 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2158 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2160 * stabsread.c (read_member_functions): Fix is_stub test for
2161 static member functions, improve comment.
2163 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2165 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2166 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2167 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2168 commands that set boolean values.
2169 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2170 (arm_rdi_resume): Always initialize PC.
2171 (arm_rdi_open): Don't use rslt as a boolean.
2172 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2173 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2174 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2175 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2177 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2179 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2180 * configure: Rebuilt.
2182 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2184 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2185 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2187 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2189 * cli/cli-decode.c (set_cmd_completer): New function.
2190 * command.h (set_cmd_completer): Declare.
2191 * cli/cli-decode.h (set_cmd_completer): Ditto.
2193 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2194 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2195 * win32-nat.c (_initialize_inftarg): Ditto.
2196 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2197 * proc-api.c (_initialize_proc_api): Ditto.
2198 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2199 * source.c (_initialize_source): Ditto.
2200 * exec.c (_initialize_exec): Ditto.
2201 * solib.c (_initialize_solib): Ditto.
2202 * top.c (init_main): Ditto.
2203 * tracepoint.c (_initialize_tracepoint): Ditto.
2204 * symfile.c (_initialize_symfile): Ditto.
2205 * printcmd.c (_initialize_printcmd): Ditto.
2206 * infcmd.c (_initialize_infcmd): Ditto.
2207 * corefile.c (_initialize_core): Ditto.
2209 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2211 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2213 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2215 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2217 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2219 * NEWS: Update headings, 5.2 has branched.
2221 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2223 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2224 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2225 (register_addr, REGISTER_RAW_SIZE): Likewise.
2226 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2227 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2229 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2231 * MAINTAINERS (x86-64): Add myself.
2232 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2233 changed value_ptr -> struct value *
2235 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2237 * configure.host (sparc64-*-freebsd): Add.
2238 * configure.tgt: Likewise.
2239 * config/sparc/fbsd.mh: New file.
2240 * config/sparc/fbsd.mt: Likewise.
2241 * config/sparc/nm-fbsd.h: Likewise.
2242 * config/sparc/tm-fbsd.h: Likewise.
2244 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2246 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2247 regformats/reg-s390x.dat.
2249 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2251 * utils.c: Add FIXME explaining true/false problem.
2253 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2255 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2257 2002-02-28 Michael Chastain <mec@shout.net>
2259 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2261 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2263 * gdbserver/linux-s390-low.c: New file.
2264 * regformats/reg-s390.dat: New file.
2265 * regformats/reg-s390x.dat: New file.
2266 * gdbserver/configure.srv: Add S/390.
2267 * gdbserver/Makefile.in: Add S/390.
2268 * configure.tgt: Enable gdbserver for S/390.
2270 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2272 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2273 first line of the doc string for "info dos", except at the end of
2274 the sentence, since the short help stops at the first period.
2276 2002-02-28 Jason Merrill <jason@redhat.com>
2278 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2280 2002-02-27 Fred Fish <fnf@redhat.com>
2282 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2283 comment (dumy -> dummy).
2285 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2287 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2289 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2291 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2293 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2295 * gdbserver/acconfig.h: New file.
2296 * gdbserver/i387-fp.c: New file.
2297 * gdbserver/i387-fp.h: New file.
2298 * gdbserver/linux-x86-64.c: New file.
2299 * regformats/reg-x86-64.dat: New file.
2300 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2301 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2302 * gdbserver/configure.in: Add support for regsets.
2303 * gdbserver/config.in: Regenerate.
2304 * gdbserver/configure: Regenerate.
2305 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2306 * gdbserver/linux-low.h: New file.
2307 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2309 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2310 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2311 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2312 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2313 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2314 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2315 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2316 "i387-fp.h". Add PTRACE_GETREGS and friends.
2317 * gdbserver/regcache.c (supply_register): New function.
2318 (supply_register_by_name): New function.
2319 (collect_register): New function.
2320 (collect_register_by_name): New function.
2322 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2324 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2325 (config.status): Add configure.srv dependency.
2326 (server_h): Add config.h dependency.
2328 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2330 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2331 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2332 * gdbserver/configure.srv: Change i386-*-linux* to use
2335 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2337 * x86-64-tdep.c: Re-indent. Update copyright date.
2339 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2341 From Michal Ludvig <mludvig@suse.cz>:
2342 * x86-64-tdep.c (value.h): Delete.
2343 (gdb_assert.h): Include.
2344 (x86_64_register_convert_to_virtual,
2345 x86_64_register_convert_to_raw ): Add check which lets only
2346 floating-point values to be converted.
2347 (value_push): Delete.
2348 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2349 (i386_gdbarch_init): Number of register_bytes fixed.
2351 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2353 * MAINTAINERS: Add x86-64 target.
2355 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2357 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2358 * osfsolib.c (solib_map_sections): Ditto.
2359 * irix5-nat.c (solib_map_sections): Ditto.
2360 * corelow.c (gdb_check_format): Ditto.
2361 * symfile.c (symfile_bfd_open): Ditto.
2362 * solib.c (solib_map_sections): Ditto.
2365 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2367 * remote.c (_initialize_remote): By default, disable ``e'' and
2368 ``E'' step out-of-range packets.
2370 2002-02-26 Andreas Schwab <schwab@suse.de>
2372 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2373 m68k_linux_frame_saved_pc.
2374 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2376 (SIGCONTEXT_PC_OFFSET): Remove.
2377 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2378 m68k_linux_sigtramp_saved_pc): New functions.
2379 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2380 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2381 (UCONTEXT_PC_OFFSET): Define.
2382 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2383 non-RT and RT signal trampolines.
2385 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2387 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2388 (TARGET_NBPG, STACK_END_ADDR): Delete
2389 (VARIABLES_INSIDE_BLOCK): Delete.
2391 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2393 * utils.c (perror_with_name): Make string parameter constant.
2394 (print_sys_errmsg): Ditto.
2396 * defs.h (perror_with_name): Update.
2397 (print_sys_errmsg): Update.
2400 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2402 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2403 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2405 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2407 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2408 if it already matches the current architecture from the exec file.
2409 Include arch-utils.h for gdbarch_info_init prototype.
2410 * Makefile.in (rs6000-nat.o): Update dependencies.
2412 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2414 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2415 list of exported variables.
2417 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2419 * gdbserver/configure.srv: New file.
2420 * gdbserver/configure.in: Use configure.srv instead
2421 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2423 * gdbserver/configure: Regenerated.
2424 * gdbserver/terminal.h: New file.
2425 * gdbserver/Makefile.in: Update for configure changes. Remove
2426 more unneeded include paths.
2428 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2430 From wiz at danbala:
2431 * config/sparc/tm-sp64.h: Fix grammar and typos.
2434 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2436 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2437 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2438 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2439 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2440 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2441 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2442 * s390-tdep.c: Ditto.
2443 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2444 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2445 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2446 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2447 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2448 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2449 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2450 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2451 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2452 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2455 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2457 * lin-thread.c: Delete file.
2458 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2459 to gdb_proc_service.h.
2460 * configure: Re-generate.
2462 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2463 * serial.c (serial_open): Delete check for "ocd".
2466 * Makefile.in (linux-thread.o): Delete target.
2467 * linux-thread.c: Delete file.
2469 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2470 renamed SH files to be consistent.
2472 * symtab.c (sort_search_symbols): Use xfree.
2474 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2476 * arm-linux-tdep.c (arm_linux_init_abi): Register
2477 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2478 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2479 definition with undef, since we don't want the sysvr4 definition.
2480 (SKIP_TRAMPOLINE_CODE): Likewise.
2482 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2484 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2486 * configure.in: (AC_CHECK_FUNCS) Added test for
2487 canonicalize_file_name Regenerated.
2488 * config.in, configure: Regenerated.
2489 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2490 defined use canonicalize_file_name.
2492 2002-02-23 Michael Chastain <mec@shout.net>
2494 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2496 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2498 * README: Remove references to cygnus.com.
2499 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2500 dot com'' form. Remove references to cygnus.com and sourceware.
2502 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2504 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2505 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2506 1003.1-2001 no longer allows "head -1".
2507 * gdb/Makefile.in (version.c): Likewise.
2508 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2509 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2510 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2512 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2514 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2515 * command.h (cmd_cfunc_eq): Declare.
2516 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2518 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2519 ``struct cmd_list_element *''.
2520 * cli/cli-cmds.c (is_complete_command): Update. Use
2522 * top.c (execute_command): Pass the command to
2523 is_complete_command.
2524 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2526 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2528 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2529 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2530 architecture defines.
2531 * s390-tdep.c (s390_gdbarch_init): Likewise.
2533 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2535 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2536 (arm_linux_push_arguments): Likewise.
2537 (arm_linux_init_abi): Register them. Also register linux-specific
2539 (find_minsym_and_objfile): Use strcmp, not STREQ.
2540 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2541 (arm_linux_call_dummy_words): Delete declaration.
2542 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2543 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2545 (LOWEST_PC): Delete.
2547 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2549 * maint.c (print_section_info): Do not prepend `0x' to filepos
2550 output, it will be handled by local_hex_string_custom.
2552 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2554 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2555 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2556 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2558 2002-02-22 Jim Blandy <jimb@redhat.com>
2560 Indicate that the bcache functions don't change the strings
2562 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2563 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2565 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2567 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2569 2002-02-21 Christopher Faylor <cgf@redhat.com>
2571 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2572 find the complete path to a loaded DLL.
2574 2002-02-21 Fred Fish <fnf@redhat.com>
2576 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2577 that marks the end of the range of a function, enter a line number
2578 entry that has a line number of zero and a PC offset that matches
2579 the end of the function. This starts a range of PC's for which no
2580 line number information is known.
2581 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2582 PC's for which no line number info is found (line number is zero)
2583 then we didn't find any valid line information.
2584 * symtab.h: Document use of zero line number entry.
2586 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2588 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2589 (have_ptrace_getvrregs): Define for run time checks.
2590 (gdb_vrregset_t): New type for Altivec register handling.
2591 (fetch_register, store_register): Fetch/store altivec register
2593 (fetch_altivec_register, store_altivec_register): New functions.
2594 (supply_vrregset, fill_vrregset): New functions.
2595 (fetch_altivec_registers, store_altivec_registers): New functions.
2596 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2599 2002-02-21 Jiri Smid <smid@suse.cz>
2601 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2603 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2605 * Makefile.in (armnbsd-nat.o): Update dependencies.
2606 * armnbsd-nat.c (supply_gregset): New function. Common code to
2607 supply the integer register set.
2608 (supply_fparegset): New function. Similar for FPA registers.
2609 (fetch_regs, fetch_fp_regs): Use them.
2610 (fetch_core_registers): Likewise.
2611 (fetch_elfcore_registers): New function.
2612 (arm_netbsd_elfcore_fns): New core-file type specification.
2613 (_initialize_arm_netbsd_nat): Register it.
2615 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2617 * armnbsd-nat.c: Include gdbcore.h.
2618 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2619 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2620 'void' to declaration, to shut up ARI.
2621 (fetch_core_registers): Make static. Rewrite using supply_register.
2622 (arm_netbsd_core_fns): New core-file type specification.
2623 (_initialize_arm_netbsd_nat): New function.
2625 2002-02-21 Christopher Faylor <cgf@redhat.com>
2627 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2630 2002-02-20 Christopher Faylor <cgf@redhat.com>
2632 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2635 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2637 * jv-exp.y (parse_number): Change type of implicit longs
2638 to builtin_type_uint64.
2640 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2642 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2643 to be an integer instead of a `union wait'.
2645 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2647 * mips-linux-nat.c: Call the operating system GNU/Linux.
2648 * mips-linux-tdep.c: Likewise.
2649 * mips-tdep.c: Likewise.
2651 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2654 * jv-exp.y (parse_number): Handle 64-bit integers.
2656 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2658 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2659 AC_STDC_HEADERS to AC_HEADER_STDC.
2660 * gdbserver/configure: Regenerated.
2662 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2664 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2666 * sparc-tdep.c (get_longjmp_target): Likewise.
2668 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2670 * News: Add news about ARM and Multi-arch. Mention the new target
2673 2002-02-19 Jim Blandy <jimb@redhat.com>
2675 * stabsread.c (error_type_complaint): Improve error message.
2677 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2679 * gdbserver/README: Update documentation.
2680 * gdbserver/configure.in: Update configury to match documentation.
2681 * gdbserver/Makefile.in: Likewise.
2682 * gdbserver/configure: Regenerated.
2683 * gdbserver/aclocal.m4: New file, generated by aclocal.
2684 * gdbserver/config.in: New file, generated by autoheader.
2686 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2688 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2691 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2693 * arm-tdep.h (enum arm_float_model): New enum.
2694 (struct gdbarch_tdep): Add fp_model.
2695 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2696 up floating-point conversions until we know the floating-point model
2697 in use by the inferior. Don't complain about being unable to
2698 determine the ABI of the inferior when we don't have one.
2699 (arm_extract_return_value): Support different floating-point models.
2700 (arm_store_return_value): Likewise.
2701 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2703 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2705 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2707 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2708 of ``current_gdbarch''.
2710 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2712 * armnbsd-nat.c : ANSIfy all function declarations.
2713 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2714 (fetch_inferior_registers): Re-implement in terms of above.
2715 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2716 (store_inferior_registers): Re-implement in terms of above.
2718 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2720 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2722 * arm-linux-tdep.c: Likewise.
2723 * config/arm/tm-linux.h: Likewise.
2725 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2727 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2728 * config/arm/nbsd.mt (TM_FILE): Delete.
2729 * config/arm/tm-nbsd.h: Delete.
2731 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2733 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2734 Initialize CALL_DUMMY_LENGTH.
2736 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2738 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2740 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2741 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2742 defines one thing and that is incorrect for this port.
2743 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2745 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2747 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2749 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2751 * win32-nat.c (display_selector): New function. Displays information
2752 about the information returned by GetThreadSelectorEntry API function.
2753 (display_selectors): New function. Displays the infomation of
2754 the selector given as argument, or of CS, DS ans FS selectors
2755 if no argument is given.
2756 ( _initialize_inftarg): Add "w32" as info prefix command.
2757 Add "info w32 selector" as command calling display_selectors.
2759 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2761 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2762 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2765 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2767 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2769 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2771 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2772 (arm_fix_call_dummy): Call it.
2773 (arm_call_dummy_breakpoint_offset): Delete.
2774 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2775 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2777 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2779 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2780 Default to func_frame_chain_valid.
2781 * gdbarch.h, gdbarch.c: Re-generate.
2782 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2784 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2786 * ppc-linux-nat.c: Update copyright.
2787 (fetch_register, store_register): Add tid parameter, don't compute
2789 (fetch_ppc_registers, store_ppc_registers): Add tid
2790 parameter. Pass it along to callees.
2791 (fetch_inferior_registers, store_inferior_registers): Compute tid
2792 here, and pass it to calleed functions.
2793 (fill_gregset, supply_fpregset): Clean up formatting.
2795 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2797 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2798 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2800 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2802 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2803 * gdbarch.c gdbarch.h: Regenerate.
2804 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2806 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2807 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2808 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2810 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2811 * arm-tdep.c (arm_get_longjmp_target): New function.
2812 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2813 this to a positive value register arm_get_longjmp_target as the
2815 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2816 (arm_linux_init_abi): Set up longjmp description in tdep.
2817 * armnbsd-nat.c (get_longjmp_target): Delete.
2818 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2819 description in tdep.
2820 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2821 (get_longjmp_target): Delete declaration.
2822 (GET_LONGJMP_TARGET): Delete.
2823 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2824 (GET_LONGJMP_TARGET): Delete.
2826 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2828 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2829 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2830 of ``current_gdbarch''.
2832 2002-02-17 Tom Tromey <tromey@redhat.com>
2834 * cli/cli-cmds.c (compare_strings): New function.
2835 (complete_command): Only print each unique item once.
2836 * completer.h (complete_line): Declare.
2837 * completer.c (complete_line): New function.
2838 (line_completion_function): Use it.
2840 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2842 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2843 * gdbarch.h, gdbarch.c: Re-generate.
2845 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2847 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2849 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2851 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2852 * valops.c (value_arg_coerce): Don't take the address of a reference
2853 to convert an argument to a reference.
2855 2002-02-15 Christopher Faylor <cgf@redhat.com>
2857 * win32-nat.c (get_image_name): New function.
2858 (handle_load_dll): Use get_image_name function.
2859 (get_child_debug_event): Avoid registering debug events until possibly
2860 execed process is started.
2861 (child_create_inferior): Allow invocation via shell so that command
2862 line redirection, etc. works ok.
2863 (_initialize_inftarg): Add new command: "set shell" to control whether
2864 a shell is used to start a process.
2866 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2868 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2869 instead of find_register_by_number.
2870 (cannot_store_register): Likewise.
2872 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2874 * dwarf2read.c: Replace fprintf (stderr, ...) by
2875 fprintf_unfiltered (gdb_stderr, ...).
2877 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2879 * gdbserver/gdbserver.1: Document --attach.
2881 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2883 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2885 * arm-tdep.c (arm_default_arm_le_breakpoint)
2886 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2887 (arm_default_thumb_be_breakpoint): New. Initialize them from
2888 traditional breakpoint defines.
2889 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2890 (arm_gdbarch_init): Initialize new breakpoint variables.
2891 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2892 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2893 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2894 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2896 (arm_netbsd_init_abi_common): ... here; new function.
2897 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2898 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2899 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2900 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2902 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2904 * arm-tdep.h (enum arm_abi): New enum.
2905 (struct gdbarch_tdep): New structure.
2906 (LOWEST_PC): Provide a default.
2907 (arm_gdbarch_register_os_abi): Declare new function.
2908 * arm-tdep.c (arm_abi_names): New array.
2909 (process_note_abi_tag_sections): New function.
2910 (get_elfosabi): New function.
2911 (arm_gdbarch_register_os_abi): New function.
2912 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2913 support for that ABI has been built in, then call the appropriate
2914 configuration routine. Use gdbarch_num_regs() to get the number
2916 (arm_dump_tdep): New function.
2917 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2918 place-holder functions.
2919 (_initialize_arm_tdep): Register them.
2920 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2922 * armnbsd-tdep.c: New file.
2923 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2924 * config/arm/nbsd.mt (TDEPFILES): Add it.
2925 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2927 * armnbsd-nat.c: Include regcache.h.
2928 * Makefile.in (armnbsd-nat.o): Update dependency list.
2930 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2932 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2934 * gdbserver/Makefile.in: Fix typos in target rules.
2936 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2938 Fix part of PR gdb/267.
2939 * linespec.c (find_methods): Handle constructors specially for now.
2941 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2943 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2945 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2946 standard_coerce_float_to_double().
2948 2002-02-14 Christopher Faylor <cgf@redhat.com>
2950 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2953 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2955 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2956 find_variant_by_name, because it confuses the multiarch
2957 framework. Return NULL if there isn't an architecture with the
2958 user supplied name, instead of forcing a different one without
2959 recording the change with the multiarch machinery.
2960 (find_variant_by_name): Delete.
2962 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2964 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2965 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2967 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2969 * stack.c (print_frame_info_base): When calling
2970 print_frame_info_listing_hook, set current_source_symtab.
2972 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2974 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2975 and remove unused $(INCLUDE_DIR).
2976 Add regcache.c to OBS.
2977 Add generated register protocol files to clean target.
2978 Update dependencies for new objects, obsolete old target code.
2980 * gdbserver/linux-low.c: Remove all platform-specific code to
2981 new files. Remove various dead code. Update to use regcache
2983 * gdbserver/remote-utils.c (fromhex): Add return statement
2985 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2987 (input_interrupt): Add integer parameter to match prototype
2988 of a signal handler.
2989 (outreg): Use register_data ().
2990 (prepare_resume_reply): Use gdbserver_expedite_regs.
2991 * gdbserver/server.c (main): Dynamically allocate own_buf because
2992 PBUFSIZ is no longer constant. Use registers_to_string () and
2993 registers_from_string ().
2994 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2995 for error (), fatal (), and warning (). Update definition of
2996 PBUFSIZ to use regcache functionality. Add include guard.
2997 * gdbserver/utils.c (fatal): Add missing ``const''.
2998 (warning): New function.
3000 * regformats/regdat.sh: Include "regcache.h" in generated files.
3001 Provide init_registers () function.
3002 * regformats/regdef.h: Add prototype for set_register_cache ().
3005 * gdbserver/linux-arm-low.c: New file.
3006 * gdbserver/linux-i386-low.c: New file.
3007 * gdbserver/linux-ia64-low.c: New file.
3008 * gdbserver/linux-m68k-low.c: New file.
3009 * gdbserver/linux-mips-low.c: New file.
3010 * gdbserver/linux-ppc-low.c: New file.
3011 * gdbserver/linux-sh-low.c: New file.
3013 * gdbserver/regcache.c: New file.
3014 * gdbserver/regcache.h: New file.
3016 * gdbserver/low-linux.c: Removed obsolete file.
3018 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3020 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3021 * config/i386/linux.mt: Likewise.
3022 * config/ia64/linux.mt: Likewise.
3023 * config/m68k/linux.mh: Likewise.
3024 * config/powerpc/linux.mh: Likewise.
3025 * config/mips/linux.mt: Likewise.
3027 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3029 * config/i386/i386lynx.mh: Mark gdbserver variables
3030 as (currently) obsolete for this target.
3031 * config/i386/nbsd.mt: Likewise.
3032 * config/i386/nbsdelf.mt: Likewise.
3033 * config/m32r/m32r.mt: Likewise.
3034 * config/m68k/m68klynx.mh: Likewise.
3035 * config/m68k/nbsd.mt: Likewise.
3036 * config/m68k/sun3os4.mh: Likewise.
3037 * config/mips/vr5000.mt: Likewise.
3038 * config/ns32k/nbsd.mt: Likewise.
3039 * config/pa/hppabsd.mh: Likewise.
3040 * config/pa/hppaosf.mh: Likewise.
3041 * config/powerpc/nbsd.mt: Likewise.
3042 * config/rs6000/rs6000lynx.mh: Likewise.
3043 * config/s390/s390.mt: Likewise.
3044 * config/s390/s390x.mt: Likewise.
3045 * config/sparc/sparclynx.mh: Likewise.
3046 * config/sparc/sun4os4.mh: Likewise.
3047 * config/i386/x86-64linux.mt: Likewise.
3048 * config/sparc/linux.mh: Likewise.
3050 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3052 * configure.tgt: Configure gdbserver only for known working
3053 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3054 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3055 SUBDIRS if it is configured. Update comment for ${nativefile}.
3056 * configure: Regenerated.
3058 2002-02-13 Michael Snyder <msnyder@redhat.com>
3060 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3062 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3063 (default_gcore_mach): Just return 0, work around a problem in bfd.
3064 (default_gcore_target): OK to return NULL if exec_bfd is null.
3065 (make_mem_sec): Use a cast, avoid a warning.
3067 * procfs.c (find_memory_regions_callback): Use a cast instead of
3068 calling host_pointer_to_address (which complains if
3069 sizeof (host pointer) != sizeof (target pointer)).
3070 (procfs_make_note_section): Avoid overflow in psargs string.
3072 * procfs.c (procfs_make_note_section): Make the default
3073 implementation return an error.
3075 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3077 * procfs.c (procfs_make_note_section): Provide a default definition
3078 (for alpha-dec-osf4.0f). Fix typos.
3080 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3082 * linux-proc.c: Add include of regcache.h.
3083 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3085 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3087 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3088 * memattr.c (create_mem_region): Disallow useless empty region.
3089 Regions are half-open intervals, so allow [A..B) [B..C) as
3092 2002-02-13 Michael Chastain <mec@shout.net>
3094 * defs.h: Kill CONST_PTR.
3095 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3096 * c-lang.c (c_builtin_types): Likewise.
3097 * ch-lang.c (ch_builtin_types): Likewise.
3098 * f-lang.c (f_builtin_types): Likewise.
3099 * language.c (unknown_builtin_types): Likewise.
3100 * m2-lang.c (m2_builtin_types): Likewise.
3101 * p-lang.c (pascal_builtin_types): Likewise.
3102 * scm-lang.c (c_builtin_types): Likewise.
3104 2002-02-13 Keith Seitz <keiths@redhat.com>
3106 * arm-tdep.h (arm_get_next_pc): Add declaration.
3108 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3110 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3111 with other related struct-returning functions.
3112 (arm_extract_struct_value_address): New function.
3113 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3114 initialize float_format, double_format and long_double_format as
3115 appropriate to the endianness of the target.
3116 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3117 (arm_use_struct_convention): Delete declaration.
3118 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3120 2002-02-13 Keith Seitz <keiths@redhat.com>
3122 * defs.h (core_addr_to_string_nz): New function.
3124 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3126 Apply missing bits of 2002-01-15 patch.
3127 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3128 (fill_fpregset): Use i387_fill_fsave.
3130 2002-02-12 Keith Seitz <keiths@redhat.com>
3132 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3133 (core_addr_to_string_nz): New function.
3135 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3137 * arm-linux-nat.c: Really include arm-tdep.h.
3138 * config/arm/tm-linux.h (struct type, struct value): Declare.
3140 2002-02-11 Michael Snyder <msnyder@redhat.com>
3142 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3143 (gcore section): Ifdef for Solaris and Unixware only.
3144 (procfs_do_thread_registers): Unixware needs one lwpstatus
3145 per thread (not one prstatus or pstatus).
3146 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3147 not over all gdb threads. For unixware, call elfcore_write_pstatus
3148 once before iterating over threads.
3150 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3152 * arm-tdep.h: New file.
3153 * arm-tdep.c: Include arm-tdep.h.
3154 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3155 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3156 (arm_print_float_info, arm_register_type, convert_to_extended)
3157 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3158 (arm_extract_return_value, arm_register_name): Make static.
3159 (arm_software_single_step): Similarly. Fix types in declaration.
3160 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3161 (arm_store_return_value, arm_store_struct_return): New functions.
3162 (arm_gdbarch_init): Register the above functions. Also register
3163 call_dummy_start_offset, sizeof_call_dummy_words,
3164 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3165 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3166 max_register_virtual_size, register_size. Set up
3167 prologue_cache.saved_regs here, rather than ...
3168 (_initialize_arm_tdep): ... here.
3169 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3171 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3172 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3173 (arm_print_float_info, arm_register_type, convert_to_extended)
3174 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3175 (arm_extract_return_value, arm_register_name): Delete declarations.
3176 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3177 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3178 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3179 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3180 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3181 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3182 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3183 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3184 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3185 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3186 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3187 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3189 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3190 * remote-rdi.c remote-rdp.c: Likewise.
3191 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3192 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3193 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3196 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3197 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3198 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3199 from non-ARM_ prefixed definitions.
3200 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3202 * remote-rdi.c remote-rdp.c: Likewise.
3203 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3205 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3207 * arm-tdep.c (arm_frameless_function_invocation)
3208 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3209 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3210 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3211 (arm_pop_frame, arm_get_next_pc): Make static.
3212 (arm_gdbarch_init): Register above in gdbarch structure.
3213 (arm_read_fp): Renamed from arm_target_read_fp.
3214 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3215 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3216 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3217 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3218 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3219 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3220 (arm_pc_is_thumb_dummy): Delete declarations.
3221 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3222 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3223 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3224 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3226 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3228 * symtab.c (compare_search_syms): New function.
3229 (sort_search_symbols): New function.
3230 (search_symbols): Sort symbols after searching rather than
3233 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3235 * NEWS: Linux -> GNU/Linux.
3237 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3239 * gdbarch.sh: For for level one methods, disallow a definition
3240 when partially multi-arched. Add comments explaining rationale.
3241 * gdbarch.h: Re-generate.
3243 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3245 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3248 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3250 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3252 * gdbarch.c: Re-generate.
3254 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3256 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3257 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3260 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3262 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3264 (PUSH_ARGUMENTS): Switch to using predefault.
3265 * gdbarch.c: Regenerate.
3267 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3269 * valops.c (PUSH_ARGUMENTS): Delete definition.
3270 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3271 partial. Default to default_push_arguments.
3272 * gdbarch.h, gdbarch.c: Regenerate.
3274 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3276 * defs.h (throw_exception): Rename return_to_top_level. Update
3278 * utils.c (error_stream, internal_verror, quit): Ditto.
3279 * top.c (throw_exception, catcher): Ditto.
3280 * sparclet-rom.c (sparclet_load): Ditto.
3281 * remote.c (interrupt_query, minitelnet): Ditto.
3282 * remote-sds.c (interrupt_query): Ditto.
3283 * remote-mips.c (mips_error, mips_kill): Ditto.
3284 * ocd.c (interrupt_query): Ditto.
3285 * monitor.c (monitor_interrupt_query): Ditto.
3286 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3287 * target.h: Update comment.
3289 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3291 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3293 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3294 default_double_format.
3295 * gdbarch.h, gdbarch.c: Re-generate.
3296 * findvar.c (floatformat_unknown): Delete variable definition.
3297 * doublest.h (floatformat_unknown): Delete variable declaration.
3299 2002-02-09 Jim Blandy <jimb@redhat.com>
3301 * stabsread.c (read_type): Add code to parse Sun's syntax for
3302 prototyped function types.
3304 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3306 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3307 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3309 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3311 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3312 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3313 now _initialize_xcoffsolib gets called again and overrides the
3314 commands from solib.c in a native configuration.
3316 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3318 * doublest.c (store_typed_floating): Don't try to return a value.
3321 2002-02-08 Jim Blandy <jimb@redhat.com>
3323 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3324 is prototyped and has no arguments, print its argument list as
3327 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3329 * MAINTAINERS (write-after-approval): Add myself.
3330 (paper-trail): I've escaped!
3332 2002-02-08 Christopher Faylor <cgf@redhat.com>
3334 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3336 (_initialize_check_for_gdb_ini): Ditto.
3338 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3340 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3341 xaprintf -> xasprintf.
3343 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3345 * win32-nat.c: Remove use of printf and sprintf functions.
3347 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3349 * arm-tdep.c (arm_frame_chain_valid): Make static.
3350 (arm_push_arguments): Likewise.
3351 (arm_gdbarch_init): New function.
3352 (_initialize_arm_tdep): Call it.
3353 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3354 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3355 (FRAME_CHAIN_VALID): Delete.
3356 (arm_frame_chain_valid): Delete declaration.
3357 (PUSH_ARGUMENTS): Delete.
3358 (arm_push_arguments): Delete declaration.
3359 (CALL_DUMMY_P): Delete.
3361 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3362 Corinna Vinschen <vinschen@redhat.com>
3364 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3365 on builtin float types.
3367 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3369 * utils.c: Include <curses.h> before "bfd.h".
3370 * tui/tui-hooks.c: Likewise.
3371 * tui/tui.c: Likewise.
3372 * tui/tuiCommand.c: Likewise.
3373 * tui/tuiData.c: Likewise.
3374 * tui/tuiDataWin.c: Likewise.
3375 * tui/tuiDisassem.c: Likewise.
3376 * tui/tuiGeneralWin.c: Likewise.
3377 * tui/tuiIO.c: Likewise.
3378 * tui/tuiLayout.c: Likewise.
3379 * tui/tuiRegs.c: Likewise.
3380 * tui/tuiSource.c: Likewise.
3381 * tui/tuiSourceWin.c: Likewise.
3382 * tui/tuiStack.c: Likewise.
3383 * tui/tuiWin.c: Likewise.
3385 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3387 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3388 to include space for pseudoregs as well. Update loops accordingly.
3389 (sh_fp_frame_init_saved_regs): Ditto.
3390 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3392 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3394 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3395 Add Richard Earnshaw to Arm maintainers.
3397 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3399 * defs.h (warning_begin): Delete declaration.
3401 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3404 2002-02-07 Michael Snyder <msnyder@redhat.com>
3406 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3407 Logic bug, remove misplaced else.
3409 2002-02-07 Klee Dienes <klee@apple.com>
3411 * fork-inferior.c (fork_inferior): Add '!' to the list of
3412 characters that need to be quoted when building a string for the
3413 shell. Quote '!' specifically with a backslash, since CSH chokes
3414 when trying to evaluate "str!str".
3416 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3418 * rdi-share/host.h: Only provide a typedef for bool if it is not
3421 2002-02-04 Michael Snyder <msnyder@redhat.com>
3423 * breakpoint.h (enum bptype): Add new overlay event bp type.
3424 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3426 * breakpoint.c (create_internal_breakpoint): New function.
3427 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3428 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3429 (create_thread_event_breakpoint): Ditto.
3430 (create_solib_event_breakpoint): Ditto.
3431 (create_overlay_event_breakpoint): New function.
3432 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3433 (update_breakpoints_after_exec): Delete and re-initialize
3434 overlay event breakpoints after an exec. Add FIXME comment
3435 about longjmp breakpoint.
3436 (print_it_typical): Ignore overlay event breakpoints.
3437 (print_one_breakpoint): Ditto.
3439 (bpstat_what): Do not stop for overlay event breakpoints.
3440 (delete_breakpoint): Don't delete overlay event breakpoints.
3441 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3442 (breakpoint_re_set): Re-create overlay event breakpoint.
3444 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3445 (overlay_manual_command): Disable overlay breakpoints.
3446 (overlay_off_command): Disable overlay breakpoints.
3448 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3450 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3451 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3452 to here from config/tm-arm.h.
3453 (coff_sym_is_thumb): Make static.
3454 (arm_elf_make_msymbol_special): New function.
3455 (arm_coff_make_msymbol_special): New function.
3456 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3457 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3458 (coff_sym_is_thumb): Delete declaration.
3459 (arm_elf_make_msymbol_special): Declare.
3460 (arm_coff_make_msymbol_special): Declare.
3461 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3462 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3464 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3466 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3468 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3470 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3471 * gdbarch.c gdbarch.h: Regenerate.
3472 * arch-utils.c (default_print_float_info): New function.
3473 * arch-utils.h (default_print_float_info): Prototype it.
3474 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3475 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3476 (PRINT_FLOAT_INFO): Document it.
3478 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3479 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3480 (PRINT_FLOAT_INFO): Define.
3482 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3484 * win32-nat.c (_initialize_check_for_gdb_ini):
3485 Add typecast to sprintf argument to suppress a warning.
3487 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3489 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3490 to allow easier handling of pass state.
3491 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3492 that gives exception name and address.
3493 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3494 and set last_sig value to ourstatus->value.sig. Some missing
3496 (child_continue): Correctly report continue_status.
3497 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3498 TARGET_SIGNAL_0 (new default value).
3499 (child_resume): consider sig argument passed to decide if
3500 the exception should be passed to debuggee or not.
3502 2002-02-05 Michael Snyder <msnyder@redhat.com>
3504 * regcache.c (fetch_register): Call target_fetch_register
3505 only if we don't call FETCH_PSEUDO_REGISTER.
3506 (store_register): Call target_store_register only if we
3507 don't call STORE_PSEUDO_REGISTER.
3509 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3511 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3512 ELF_MAKE_MSYMBOL_SPECIAL.
3513 * gdbarch.c, gdbarch.h: Regenerate.
3514 * arch-utils.c (default_make_msymbol_special): New function.
3515 * arch-utils.h (default_make_msymbol_special): Export.
3516 * elfread.c (elf_symtab_read): Compile use of
3517 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3519 * coffread.c (coff_symtab_read): Ditto, for
3520 COFF_MAKE_MSYMBOL_SPECIAL.
3522 2002-02-05 Jim Blandy <jimb@redhat.com>
3524 * solib-svr4.c (svr4_truncate_ptr): New function.
3525 (svr4_relocate_section_addresses): Do the address arithmetic with
3526 the appropriate truncation for target addresses, even when
3527 CORE_ADDR is larger than a target address.
3529 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3531 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3534 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3536 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3539 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3541 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3543 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3545 * gdbserver/linux-low.c: Remove unused include files.
3547 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3549 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3550 (read_inferior_memory): Use it.
3551 (write_inferior_memory): Likewise.
3553 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3555 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3556 grubbing through sys_errlist.
3558 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3560 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3562 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3563 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3565 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3567 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3568 (do_sfunc, set_cmd_sfunc): New functions.
3570 * command.h (struct cmd_list_element): Add field func.
3571 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3572 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3573 * cli/cli-decode.h: Ditto.
3575 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3576 (help_all, help_cmd_list): Ditto.
3577 (find_cmd, complete_on_cmdlist): Ditto.
3578 * top.c (execute_command): Ditto.
3580 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3583 * infcmd.c (notice_args_read): Fix function signature.
3585 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3586 * cli/cli-decode.c (add_set_cmd): Ditto.
3587 * utils.c (initialize_utils): Ditto.
3588 * maint.c (_initialize_maint_cmds): Ditto.
3589 * infrun.c (_initialize_infrun): Ditto.
3590 * demangle.c (_initialize_demangler): Ditto.
3591 * remote.c (add_packet_config_cmd): Ditto.
3592 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3593 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3594 * proc-api.c (_initialize_proc_api): Ditto.
3595 * kod.c (_initialize_kod): Ditto.
3596 * valprint.c (_initialize_valprint): Ditto.
3597 * top.c (init_main): Ditto.
3598 * infcmd.c (_initialize_infcmd): Ditto.
3599 * corefile.c (_initialize_core): Ditto.
3600 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3601 * arch-utils.c (initialize_current_architecture): Ditto.
3602 (_initialize_gdbarch_utils): Ditto.
3603 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3605 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3606 * wince.c (_initialize_inftarg): Ditto.
3607 * symfile.c (_initialize_symfile): Ditto.
3608 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3609 * language.c (_initialize_language): Ditto.
3610 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3612 2002-02-04 Michael Snyder <msnyder@redhat.com>
3614 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3616 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3618 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3619 Add rules for building the register data files.
3621 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3623 * regformats/regdat.sh: Add braces to the definition of
3624 expedite_regs_${arch}.
3626 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3628 * regformats/regdef.h (struct reg): Add comment describing the
3629 requirements for offset and size fields.
3631 2002-02-04 Andreas Schwab <schwab@suse.de>
3633 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3634 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3636 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3638 * gdbarch.sh (copyright): Update years in generated header.
3639 (SMASH_TEXT_ADDRESS): Add rule.
3640 * gdbarch.h, gdbarch.c: Re-generate.
3641 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3642 * dbxread.c: Likewise.
3643 * dwarfread.c: Likewise.
3644 * elfread.c: Likewise.
3645 * somread.c: Likewise.
3647 * arm-tdep.c (arm_smash_text_address): New function.
3648 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3650 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3652 Add support for hardware watchpoints on win32 native.
3653 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3654 CONTEXT_DEBUG_REGISTERS.
3655 (dr variable): New variable. Static array containing a local copy
3657 (debug_registers_changed): New variable. Reflects when debug registers
3658 are changed and need to be written to inferior.
3659 (debug_registers_used): New variable. Reflects when any debug register
3660 was set, used when new threads are created.
3661 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3663 (thread_rec): Set dr array if id is the thread of current_event .
3664 (child_continue, child_resume): Change the debug registers for all
3665 threads if debug_registers_changed.
3666 (child_add_thread): Change the debug registers if debug_registers_used.
3667 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3668 Link nm.h to new nm-cygwin.h file.
3669 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3670 of hardware registers.
3672 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3674 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3675 Restore behavour broken by 2002-01-20 Andrew Cagney
3676 <ac131313@redhat.com> IEEE_FLOAT removal.
3678 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3680 * c-valprint.c (c_val_print): Pass a proper valaddr to
3681 cp_print_class_method.
3682 * valops.c (search_struct_method): If there is only one method
3683 and args is NULL, return that method.
3685 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3687 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3688 accessing tag_name directly.
3690 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3692 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3693 of accessing tag_name directly.
3695 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3698 * gdbtypes.c (replace_type): New function.
3699 * gdbtypes.h (replace_type): Add prototype.
3700 * stabsread.c (read_type): Use replace_type.
3702 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3704 * Makefile.in (memattr.o): Add missing dependencies rule.
3706 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3708 * breakpoint.c (break_at_finish_command): Really export.
3709 (break_at_finish_at_depth_command): Ditto.
3710 (tbreak_at_finish_command): Ditto.
3711 * hppa-tdep.c: Include completer.h.
3712 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3713 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3715 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3717 * utils.c (do_write): New function.
3718 (error_stream): Rewrite combining the code from error_begin and
3720 (verror): Rewrite using error_stream.
3721 (error_begin): Delete function.
3723 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3725 * utils.c (error_begin): Make static.
3726 * defs.h (error_begin): Delete declaration.
3728 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3729 (decode_line_1): Use cplusplus_error instead of error_begin,
3730 cplusplus_hint and return_to_top_level.
3731 * coffread.c (coff_symfile_read): Use error instead of error_begin
3732 and return_to_top_level.
3733 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3735 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3737 * language.h (type_error, range_error): Make string parameter
3739 * language.c (warning_pre_print): Delete extern declaration.
3740 * dwarfread.c (warning_pre_print): Ditto.
3741 * language.c (type_error, range_error): Rewrite to use verror and
3742 vwarning instead of warning_begin.
3744 2002-02-01 Michael Snyder <msnyder@redhat.com>
3746 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3747 (set_ignore_count): Move misplaced comment back where it belongs.
3749 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3751 * command.h (NO_FUNCTION): Delete macro.
3752 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3753 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3754 * tracepoint.c (_initialize_tracepoint): Ditto.
3755 * cli/cli-decode.c (add_set_cmd): Ditto.
3756 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3758 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3760 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3761 Update ``this'' pointer when calling virtual functions.
3763 2002-02-01 Michael Snyder <msnyder@redhat.com>
3765 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3766 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3768 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3770 * regformats/reg-arm.dat: New file.
3771 * regformats/reg-i386.dat: New file.
3772 * regformats/reg-ia64.dat: New file.
3773 * regformats/reg-m68k.dat: New file.
3774 * regformats/reg-mips.dat: New file.
3775 * regformats/reg-ppc.dat: New file.
3776 * regformats/reg-sh.dat: New file.
3777 * regformats/regdef.h: New file.
3778 * regformats/regdat.sh: New file.
3780 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3782 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3783 (arm_frame_args_address, arm_frame_locals_address): New functions.
3784 (arm_frame_num_args): New function.
3785 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3786 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3787 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3789 2002-01-31 Michael Snyder <msnyder@redhat.com>
3791 * breakpoint.c (break_at_finish_command): Export.
3792 (break_at_finish_at_depth_command): Export.
3793 (tbreak_at_finish_command): Export.
3794 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3795 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3796 "tbreak" commands, which are HPPA specific.
3798 * printcmd.c (disassemble_command): Remove an ancient
3799 artifact of an old merge.
3801 * symfile.h (enum overlay_debugging_state):
3802 Define enum constant values for overlay mode.
3803 * symfile.c (overlay_debugging): Use enums instead of literals.
3804 (overlay_is_mapped, overlay_auto_command,
3805 overlay_manual_command): Ditto.
3807 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3808 breakpoint_here_p, breakpoint_inserted_here_p,
3809 breakpoint_thread_match, bpstat_stop_status,
3810 describe_other_breakpoints, check_duplicates, clear_command):
3811 Coding standard fixes.
3813 * target.c (target_xfer_memory): Add spaces, coding standard.
3814 (do_xfer_memory): Add missing line to trust-readonly
3815 code: check bfd SEC_READONLY flag for section.
3817 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3819 * PROBLEMS: Fix typo, 5.1->5.1.1.
3821 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3823 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3824 data symbols, since we search based on textlow and texthigh.
3825 (find_pc_sect_symtab): Likewise.
3827 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3829 * defs.h (vwarning): Declare.
3830 * utils.c (vwarning): New function.
3831 (warning): Call vwarning.
3832 (warning_begin): Delete function.
3834 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3835 the warning message.
3836 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3839 2002-01-30 Michael Snyder <msnyder@redhat.com>
3841 * NEWS: Mention "set trust-readonly-sections" command.
3842 Mention generate-core-file command.
3844 2002-01-15 Michael Snyder <msnyder@redhat.com>
3846 * target.c: New command, "set trust-readonly-sections on".
3847 (do_xfer_memory): Honor the suggestion to trust readonly sections
3848 by reading them from the object file instead of from the target.
3849 (initialize_targets): Register command "set trust-readonly-sections".
3851 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3853 * parse.c (target_map_name_to_register): Simplify, search regs and
3854 pseudo-regs using a single loop.
3856 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3858 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3860 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3862 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3863 * config/i386/i386v42mp.mh: Add i387-nat.o .
3864 * i386v4-nat.c: Include i387-nat.h.
3865 (supply_fpregset): Use i387_supply_fsave.
3866 (fill_fpregset): Use i387_fill_fsave.
3868 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3870 * arm-tdep.c (arm_call_dummy_words): Define.
3871 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3872 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3873 (CALL_DUMMY_WORDS): Define.
3874 (arm_call_dummy_words): Declare.
3875 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3876 (arm_linux_call_dummy_words): Declare.
3878 2002-01-30 Andreas Schwab <schwab@suse.de>
3880 * m68klinux-nat.c: Fix last change to use regcache_collect
3881 instead of referencing registers[] directly.
3883 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3885 * parse.c (target_map_name_to_register): Delete code wrapped in
3886 #ifdef REGISTER_NAME_ALIAS_HOOK.
3888 2002-01-28 Michael Snyder <msnyder@redhat.com>
3890 * regcache.c (legacy_read_register_gen): Need to be able to
3891 read pseudo-register as well as real register.
3892 (legacy_write_register_gen): Ditto.
3894 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3896 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3897 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3898 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3899 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3900 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3901 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3902 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3903 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3904 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3905 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3906 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3907 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3908 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3909 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3910 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3911 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3912 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3913 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3914 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3915 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3917 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3919 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3920 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3921 (initialize_current_architecture): Update target_byte_order using
3922 information from BFD.
3923 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3924 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3926 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3928 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3929 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3931 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3932 #ifdef INVALID_FLOAT.
3933 * infcmd.c (do_registers_info): Ditto.
3934 * values.c (unpack_double): Ditto. Add comment.
3936 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3937 already commented out.
3939 2002-01-26 Andreas Schwab <schwab@suse.de>
3941 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3942 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3943 registers and add support for PTRACE_GETREGS.
3945 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3947 GDB 5.1.1 released from 5.1 branch.
3948 * NEWS: Add 5.1.1 news.
3949 * README: Sync with 5.1 branch.
3951 2002-01-23 Fred Fish <fnf@redhat.com>
3953 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3954 stabstring on initial malloc. Reallocing will copy it for us,
3957 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3959 * Makefile.in (hpread_h): Delete.
3960 (HFILES_NO_SRCDIR): Remove hpread.h.
3961 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3962 (hpread.o): Update dependencies.
3963 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3965 * hp-psymtab-read.c: Remove file.
3966 * hp-symtab-read.c: Remove file.
3967 * hpread.h: Remove file.
3969 * hpread.c: Merge all contents of hp-psymtab-read.c,
3970 hp-symtab-read.c and hpread.h into this file, as it was prior to
3973 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3974 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3975 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3976 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3978 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3980 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3981 fill_gregset): Call gdbarch_tdep() just once, assign result to
3982 variable and use that, instead of calling the function several
3985 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3987 * configure.host: Accept sparcv9 as alias for sparc64.
3988 * configure.tgt: Likewise.
3990 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3992 * solib-aix5.c (build_so_list_from_mapfile)
3993 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3994 arguments is not reversed.
3995 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3996 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3998 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4000 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4001 modified version of obsolete sh_fetch_pseudo_register.
4002 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4003 (sh4_register_read): New function.
4004 (sh_pseudo_register_write): New function. Renamed and modified
4005 version of obsolete sh_store_pseudo_register.
4006 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4007 (sh4_register_write): New function.
4008 (sh_gdbarch_init): Remove setting of gdbarch function
4009 fetch_pseudo_register and store_pseudo_register. Remove setting of
4010 register_convert_to_raw, register_convert_to_virtual,
4011 register_convertible.
4012 (sh_sh4_register_convertible): Delete. No longer needed. All is
4013 taken care by architecture specific functions
4014 register_read/register_write.
4015 (sh_sh4_register_convert_to_virtual): Make static.
4016 (sh_sh4_register_convert_to_raw): Ditto.
4018 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4020 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4021 (floatformat_is_nan, floatformat_mantissa): Ditto.
4023 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4024 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4025 builtin_type_ieee_double_little,
4026 builtin_type_ieee_double_littlebyte_bigword,
4027 builtin_type_m68881_ext, builtin_type_i960_ext,
4028 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4029 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4030 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4031 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4033 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4035 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4036 parameter. Set frameless flag if it exists and depended of
4037 whether the scanned function is frameless or not.
4038 (xstormy16_skip_prologue): If function is frameless, return
4039 result of xstormy16_scan_prologue().
4040 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4043 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4045 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4046 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4047 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4048 sh_sh4_register_byte, sh_sh4_register_raw_size,
4049 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4050 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4051 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4052 sh_store_pseudo_register, sh_do_pseudo_register): Call
4053 gdbarch_tdep() just once, assign result to variable and use that,
4054 instead of calling the function several times.
4056 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4058 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4059 macros instead of LAST_FPU_CTRL_REGNUM.
4060 (store_register): Likewise.
4062 2002-01-21 Jim Blandy <jimb@redhat.com>
4064 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4065 is up-to-date before running the program, not just when a program
4068 2002-01-21 Fred Fish <fnf@redhat.com>
4070 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4071 when we have found all instructions we are looking for.
4073 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4075 * arm-tdep.c (arm_register_name): New function.
4076 (arm_registers_names): Make static.
4077 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4078 (arm_register_name): Declare.
4079 (REGISTER_NAME): Use it.
4081 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4082 Kevin Buettner <kevinb@redhat.com>
4084 Convert arm targets to new FRAME interface.
4085 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4086 (arm_frame_find_save_regs): Delete.
4087 (arm_frame_init_saved_regs): New.
4088 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4089 Allocate extra_info as required. Convert all uses of fsr.regs
4090 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4092 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4093 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4094 (check_prologue_cache, save_prologue_cache): Likewise.
4095 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4096 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4097 (FRAME_FIND_SAVED_REGS): Delete.
4098 (arm_frame_find_saved_regs): Delete prototype.
4099 (arm_frame_init_saved_regs): New prototype.
4100 (FRAME_INIT_SAVED_REGS): Define.
4102 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4104 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4106 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4108 From Jeff Law <law@redhat.com>:
4109 * infttrace.c: Include <sys/pstat.h>.
4110 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4111 exec file if the ttrace equivalent fails.
4113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4115 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4116 (closeLogFile): Ditto.
4118 2002-01-20 Michael Chastain <mec@shout.net>
4120 * top.c (print_gdb_version): Bump copyright year to 2002.
4122 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4124 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4125 Zannoni and Eli Zaretskii.
4127 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4129 * buildsym.c: Update copyright years.
4130 * c-typeprint.c: Likewise.
4131 * dwarf2read.c: Likewise.
4132 * f-typeprint.c: Likewise.
4133 * gdbtypes.c: Likewise.
4134 * gdbtypes.h: Likewise.
4135 * hp-symtab-read.c: Likewise.
4136 * hpread.c: Likewise.
4137 * mdebugread.c: Likewise.
4138 * p-typeprint.c: Likewise.
4140 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4142 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4143 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4144 byte-order selectable.
4145 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4146 * arch-utils.c: Ditto.
4147 (set_endian): Ditto.
4148 (set_endian_from_file): Ditto.
4149 * gdbserver/low-sim.c (create_inferior): Ditto.
4150 * gdbarch.sh: Ditto.
4151 * gdbarch.h: Re-generate.
4152 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4153 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4154 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4155 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4156 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4157 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4158 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4159 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4161 * config/mips/tm-wince.h: Remove #undef of macro
4162 TARGET_BYTE_ORDER_SELECTABLE.
4163 * config/sh/tm-wince.h: Ditto.
4165 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4167 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4168 member function fields. Add accessor macro
4169 TYPE_FN_FIELD_ARTIFICIAL.
4170 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4171 * c-typeprint.c (c_type_print_base): Skip artificial member
4174 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4176 * f-typeprint.c: Delete unused function f_type_print_args.
4177 * p-typeprint.c: Delete unused function pascal_type_print_args.
4179 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4181 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4182 comment. Add ``artificial'' to ``union field_location''.
4184 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4186 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4187 * mdebugread.c (parse_symbol): Likewise.
4188 * stabsread.c (define_symbol): Likewise.
4189 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4190 initializing TYPE_FIELD_BITPOS to n (obsolete).
4191 (hpread_doc_function_type): Likewise.
4192 * hpread.c (hpread_function_type): Likewise.
4194 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4196 * configure.in (host_makefile_frag): Only require a host makefile
4197 fragment when a native build.
4198 * configure: Re-generate.
4200 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4202 * doublest.h (floatformat_from_type): Declare.
4203 * doublest.c (floatformat_from_type): New function.
4204 (convert_typed_floating): Use.
4206 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4207 call to function floatformat_from_type.
4209 * gdbarch.sh (IEEE_FLOAT): Delete.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4212 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4213 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4214 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4215 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4216 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4217 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4218 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4219 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4220 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4221 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4222 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4224 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4225 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4226 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4227 * sh-tdep.c (sh_gdbarch_init): Ditto.
4228 * mips-tdep.c (mips_gdbarch_init): Ditto.
4229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4230 * cris-tdep.c (cris_gdbarch_init): Ditto.
4232 2002-01-20 Jiri Smid <smid@suse.cz>
4234 * configure.host, configure.tgt: Support x86-64.
4235 * NEWS: Note new target x86-64.
4237 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4238 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4239 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4240 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4241 x86-64-linux-nat.o): Fix dependencies.
4243 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4245 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4246 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4247 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4248 * config/sparc/xm-sun4os4.h: Delete file.
4249 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4251 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4253 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4254 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4255 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4256 * config/i386/i386lynx.mh (XM_FILE): Delete.
4257 * config/rs6000/xm-rs6000ly.h: Delete file.
4258 * config/sparc/xm-sparclynx.h: Delete file.
4259 * config/m68k/xm-m68klynx.h: Delete file.
4260 * config/i386/xm-i386lynx.h: Delete file.
4261 * config/xm-lynx.h: Delete file.
4262 * config/djgpp/fnchange.lst: Update.
4264 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4266 * alpha-tdep.c (alpha_register_byte): New function.
4267 (alpha_register_raw_size): Ditto.
4268 (alpha_register_virtual_size): Ditto.
4269 (alpha_skip_prologue_internal): Renamed from
4270 alpha_skip_prologue.
4271 (alpha_skip_prologue): New version that calls
4272 alpha_skip_prologue_internal.
4273 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4274 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4275 second argument from alpha_skip_prologue.
4276 (REGISTER_BYTE): Use alpha_register_byte.
4277 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4278 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4279 (FRAMELESS_FUNCTION_INVOCATION): Use
4280 generic_frameless_function_invocation_not.
4281 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4282 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4284 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4286 * config/mips/xm-news-mips.h: Delete file.
4287 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4289 * config/m88k/xm-m88k.h: Delete file.
4290 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4291 * config/m88k/xm-delta88v4.h: Ditto.
4292 * config/m88k/xm-delta88.h: Ditto.
4294 * config/alpha/xm-fbsd.h: Delete file.
4295 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4297 * config/sparc/xm-sparc.h: Delete file.
4298 * Makefile.in (xm-sun4os4.h): Delete dependency.
4299 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4300 * config/sparc/xm-sun4os4.h: Ditto.
4301 * config/sparc/xm-linux.h: Ditto.
4303 * config/i386/xm-windows.h: Delete file.
4305 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4307 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4308 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4310 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4312 * alpha-tdep.c (alpha_call_dummy_words): New.
4313 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4314 (CALL_DUMMY_P): Define.
4315 (CALL_DUMMY_WORDS): Define.
4316 (SIZEOF_CALL_DUMMY_WORDS): Define.
4318 2002-01-19 Per Bothner <per@bothner.com>
4320 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4321 isn't NULL, which can happen with some gcj-3.x-produced code.
4323 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4325 * alpha-tdep.c (alpha_register_virtual_type): New function.
4326 (alpha_init_frame_pc_first): Ditto.
4327 (alpha_fix_call_dummy): Ditto.
4328 (alpha_store_struct_return): Ditto.
4329 (alpha_extract_struct_value_address): Ditto.
4330 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4331 alpha_register_virtual_type.
4332 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4333 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4334 alpha_extract_struct_value_address.
4335 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4336 (INIT_FRAME_PC): Use init_frame_pc_noop.
4337 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4339 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4341 * i386gnu-nat.c: Include "i386-tdep.h".
4342 (fetch_fpregs): Simplify code dealing with uninitialized floating
4343 point states such that it doesn't require FP7_REGNUM.
4345 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4347 * alpha-tdep.c (frame_extra_info): New.
4348 (alpha_find_saved_regs): Make static. Use
4350 (alpha_frame_init_saved_regs): New function.
4351 (alpha_frame_saved_pc): Use frame->extra_info.
4352 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4353 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4354 (init_extra_frame_info): Rename to...
4355 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4356 (alpha_print_extra_frame_info): New function.
4357 (alpha_frame_locals_address): Ditto.
4358 (alpha_frame_args_address): Ditto.
4359 (alpha_pop_frame): Use frame->extra_info.
4360 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4361 alpha_frame_args_address.
4362 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4363 (alpha_find_saved_regs): Remove prototype.
4364 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4365 (EXTRA_FRAME_INFO): Remove.
4366 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4367 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4369 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4371 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4372 (alpha_cannot_fetch_register): Ditto.
4373 (alpha_cannot_store_register): Ditto.
4374 (alpha_register_convertible): Ditto.
4375 (alpha_use_struct_convention): Ditto.
4376 * config/alpha/tm-alpha.h: Update copyright years.
4377 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4378 (INNER_THAN): Use core_addr_lessthan.
4379 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4380 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4381 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4382 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4383 (FRAME_CHAIN): Remove unnecessary cast.
4385 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4387 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4390 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4392 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4393 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4394 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4395 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4396 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4397 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4398 * x86-64-linux-nat.c: Ditto.
4400 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4402 * alpha-tdep.c (alpha_register_name): New function.
4403 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4404 (REGISTER_NAME): Define.
4406 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4408 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4410 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4412 * alpha-tdep.c: Update copyright years.
4413 (alpha_next_pc): New function.
4414 (alpha_software_single_step): Ditto.
4415 * config/alpha/tm-alpha.h: Add prototype for
4416 alpha_software_single_step.
4418 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4420 * alphabsd-nat.c: Update copyright years.
4421 (fill_gregset): Use regcache_collect.
4422 (fill_fpregset): Likewise.
4423 (fetch_inferior_registers): Only fetch integer registers
4424 if requested to do so.
4425 (store_inferior_registers): Only store integer registers
4426 if requested to do so.
4428 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4430 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4431 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4432 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4433 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4434 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4435 * config/arm/linux.mh (XDEPFILES): Delete.
4436 * config/arm/nbsd.mh (XDEPFILES): Delete.
4437 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4438 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4439 * config/i386/i386m3.mh (XDEPFILES): Delete.
4440 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4441 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4442 * config/i386/fbsd.mh (XDEPFILES): Delete.
4443 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4444 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4445 * config/i386/i386v4.mh (XDEPFILES): Delete.
4446 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4447 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4448 * config/i386/i386aix.mh (XDEPFILES): Delete.
4449 * config/i386/go32.mh (XDEPFILES): Delete.
4450 * config/i386/cygwin.mh (XDEPFILES): Delete.
4451 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4452 * config/i386/i386mach.mh (XDEPFILES): Delete.
4453 * config/i386/i386v32.mh (XDEPFILES): Delete.
4454 * config/i386/linux.mh (XDEPFILES): Delete.
4455 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4456 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4457 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4458 * config/i386/i386sco.mh (XDEPFILES): Delete.
4459 * config/i386/i386v.mh (XDEPFILES): Delete.
4460 * config/i386/nbsd.mh (XDEPFILES): Delete.
4461 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4462 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4463 * config/i386/symmetry.mh (XDEPFILES): Delete.
4464 * config/i386/obsd.mh (XDEPFILES): Delete.
4465 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4466 * config/ia64/linux.mh (XDEPFILES): Delete.
4467 * config/ia64/aix.mh (XDEPFILES): Delete.
4468 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4469 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4470 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4471 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4472 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4473 * config/m68k/linux.mh (XDEPFILES): Delete.
4474 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4475 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4476 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4477 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4478 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4479 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4480 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4481 * config/m88k/delta88.mh (XDEPFILES): Delete.
4482 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4483 * config/m88k/m88k.mh (XDEPFILES): Delete.
4484 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4485 * config/mips/linux.mh (XDEPFILES): Delete.
4486 * config/mips/irix6.mh (XDEPFILES): Delete.
4487 * config/mips/irix5.mh (XDEPFILES): Delete.
4488 * config/mips/irix4.mh (XDEPFILES): Delete.
4489 * config/mips/irix3.mh (XDEPFILES): Delete.
4490 * config/mips/decstation.mh (XDEPFILES): Delete.
4491 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4492 (NATDEPFILES): Move core-aout.o to here.
4493 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4494 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4495 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4496 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4497 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4498 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4499 * config/pa/hpux11.mh (XDEPFILES): Delete.
4500 * config/powerpc/aix.mh (XDEPFILES): Delete.
4501 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4502 * config/powerpc/linux.mh (XDEPFILES): Delete.
4503 * config/romp/rtbsd.mh: Rename XDEPFILES.
4504 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4505 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4506 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4507 * config/s390/s390.mh (XDEPFILES): Delete.
4508 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4509 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4510 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4511 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4512 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4513 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4514 * config/sparc/linux.mh (XDEPFILES): Delete.
4515 * config/vax/vaxult.mh (XDEPFILES): Delete.
4516 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4517 * Makefile.in (DEPFILES): Remove XDEPFILES.
4519 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4521 * utils.c (internal_verror): Fix comments, default is yes not no.
4522 Update queries to match. Default to quit and dump core.
4524 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4526 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4528 * defs.h, event-top.c, gdbcmd.h: Ditto.
4529 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4530 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4531 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4532 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4533 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4534 * mi/mi-main.c:Ditto.
4536 * stack.c, symfile.c: Update copyright.
4538 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4540 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4541 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4542 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4543 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4545 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4547 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4548 * gdbserver/low-lynx.c (myattach): Likewise.
4549 * gdbserver/low-nbsd.c (myattach): Likewise.
4550 * gdbserver/low-sim.c (myattach): Likewise.
4551 * gdbserver/low-sparc.c (myattach): Likewise.
4552 * gdbserver/low-sun3.c (myattach): Likewise.
4554 * gdbserver/low-linux.c (myattach): New function.
4556 * gdbserver/server.c (attach_inferior): New function.
4557 (main): Handle "--attach".
4559 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4561 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4564 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4566 * c-typeprint.c (is_type_conversion_operator): Add additional
4567 check for non-conversion operators.
4569 2002-01-15 Michael Snyder <msnyder@redhat.com>
4571 * linux-proc.c: Add "info proc" command, a la procfs.c.
4572 (read_mapping): New function, abstract and re-use code.
4573 (linux_find_memory_regions): Use new func read_mapping.
4574 (linux_info_proc_cmd): New function, implement "info proc".
4575 (_initialize_linux_proc): Add new command "info proc".
4577 2002-01-15 Michael Snyder <msnyder@redhat.com>
4579 * symfile.c (generic_load): Use bfd_map_over_sections method
4580 instead of manipulating bfd structure members directly.
4581 (add_section_size_callback): New function, bfd sections callback
4582 used by generic_load.
4583 (load_sections_callback): New function, bfd sections callback
4584 used by generic_load.
4586 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4588 [Based on work by Jim Blandy]
4589 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4590 (builtin_type_vec128): Export.
4591 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4593 (builtin_type_vec128): New builtin type for 128 bit vector
4595 (build_gdbtypes): Initialize builtin_type_v16qi and
4596 builtin_type_v8hi. Create the vec128 register builtin type
4598 (build_builtin_type_vec128): New function.
4599 (_initialize_gdbtypes): Register builtin_type_v16qi and
4600 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4601 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4602 AltiVec register to new builtin type.
4604 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4606 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4609 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4611 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4612 CLEAN_UP_REGISTER_VALUE.
4613 * regcache.c (supply_register): Update only call.
4615 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4617 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4618 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4619 a29k-*-vxworks* targets as obsolete.
4621 2002-01-14 Michael Snyder <msnyder@redhat.com>
4623 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4624 until we can resolve portability issues.
4625 * gregset.h: Remove references to fpxregs.
4626 * gcore.c (gcore_command): Initialize note_sec to NULL.
4628 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4630 * signals.c (target_signal_to_name): Rewrite. Only use
4631 signals[].name when in bounds and non-NULL.
4633 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4635 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4636 * signals.c (target_signal_to_name): Verify that SIG is within the
4637 bounds of the signals array.
4639 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4641 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4643 2002-01-13 Keith Seitz <keiths@redhat.com>
4645 * stack.c (print_frame_info_base): Print the frame's pc
4646 only if when print_frame_info_listing_hook is not defined.
4648 2002-01-13 Keith Seitz <keiths@redhat.com>
4650 * varobj.c (varobj_set_value): Make sure that there were no
4651 errors evaluating the object before attempting to set its
4653 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4654 so this offset adjustment is no longer necessary.
4655 (create_child): Don't set the error flag if the child is
4657 (value_of_child): If value_fetch_lazy fails, return NULL
4658 so that callers will be notified that an error occurred.
4659 (c_value_of_variable): Delay check of variable's validity
4660 until later. We actually want all structs and unions to have
4662 Do not return "???" for variables which could not be evaluated.
4663 This error condition must be returned to the caller so that it
4664 can get the error condition from gdb.
4665 (cplus_name_of_child): Adjust index for vptr before figuring
4666 out the name of the child.
4667 (cplus_value_of_child): If a child's (real) parent is not valid,
4668 don't even bother trying to give a value for it. Just return
4669 an error. Change all instances in this function.
4670 (cplus_type_of_child): If our parent is one of the "fake"
4671 parents, we need to get at the type of the real parent, and
4672 derive the child's true type using this information.
4674 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4676 From 2002-01-09 John Marshall <johnm@falch.net>:
4677 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4678 sources.redhat.com, and tweak some related URLs which had
4679 suffered from linkrot.
4681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4684 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4685 structures passed in registers.
4687 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4689 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4690 white space which prevented compilation. Reported by DSK
4691 <dsk@student.unsw.edu.au>.
4693 2002-01-11 Michael Snyder <msnyder@redhat.com>
4695 * symfile.c (build_section_addr_info_from_section_tab):
4696 Use bfd access method instead of manipulating bfd directly.
4697 (syms_from_objfile): Ditto.
4698 (simple_overlay_update_1): Ditto.
4699 (simple_overlay_update): Ditto.
4700 (generic_load): Ditto.
4701 (overlay_unmapped_address): FIXME comment, bfd access methods.
4702 (sections_overlap): FIXME comment, bfd access methods.
4703 (pc_in_mapped_range): FIXME comment, bfd access methods.
4704 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4705 (section_is_mapped): FIXME comment, bfd access methods.
4706 (section_is_overlay): FIXME comment, bfd access methods.
4708 * symfile.c (generic_load): Whitespace and long line cleanups.
4709 Remove duplicate variable, change several local variables to
4710 more appropriate data types.
4711 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4713 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4716 * language.c (longest_local_hex_string_custom): Use phex_nz to
4717 convert NUM to a hex string.
4719 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4721 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4723 Update Copyright year.
4725 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4727 * language.c (longest_raw_hex_string): Delete unused function.
4729 2002-01-11 Petr Sorfa <petrs@caldera.com>
4731 * MAINTAINERS (write-after-approval): Add myself.
4732 * dwarf2read.c (read_tag_string_type): Handling of
4734 (read_tag_string_type): FORTRAN fix to prevent propagation of
4736 (set_cu_language): Handling of DW_LANG_Fortran95
4738 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4740 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4741 GETPID(inferior_ptid).
4742 (store_inferior_registers): Likewise.
4744 2002-01-10 Jason Merrill <jason@redhat.com>
4746 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4749 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4751 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4752 and bfd/elf32-sh-nbsd.c.
4754 2002-01-10 Michael Snyder <msnyder@redhat.com>
4756 * NEWS: Mention --pid and corefile/proc-id behavior change.
4758 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4759 * gcore.c: Include cli/cli-decode.h instead of command.h.
4761 * main.c (captured_main): Add new command line option "--pid".
4762 If the second command line argument (following the symbol-file)
4763 begins with a digit, try to attach to it before trying to open
4765 (print_gdb_help): Document the "--pid" argument.
4767 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4769 * completer.c (command_completer): New function.
4771 * completer.h <command_completer>: Add prototype.
4773 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4774 completer for the "help" command.
4776 2002-01-09 Jason Merrill <jason@redhat.com>
4778 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4780 2002-01-09 Michael Snyder <msnyder@redhat.com>
4782 * i386-linux-nat.c (fill_fpxregset): Make global.
4783 (store_fpxregset): Ditto.
4785 * gregset.h (gdb_fpxregset_t): Define.
4786 (supply_fpxregset): Prototype.
4787 (fill_fpxregset): Prototype.
4789 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4791 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4793 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4794 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4795 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4797 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4799 * MAINTAINERS: Update target maintainer rules so that any
4800 Maintainer can approve a tested patch for a maintenance-only
4803 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4805 * MAINTAINERS (write-after-approval): Add myself.
4807 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4810 2002-01-08 Michael Snyder <msnyder@redhat.com>
4812 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4813 real name of the executable, rather than the /proc name.
4815 2002-01-03 Michael Snyder <msnyder@redhat.com>
4817 Implement a "generate-core-file" command in gdb, save target state.
4818 * gcore.c: New file. Implement new command 'generate-core-file'.
4819 Save a corefile image of the current state of the inferior.
4820 * linux-proc.c: Add linux-specific code for saving corefiles.
4821 * target.h (struct target_ops): Add new target vectors for saving
4822 corefiles; to_find_memory_regions and to_make_corefile_notes.
4823 (target_find_memory_regions): New macro.
4824 (target_make_corefile_notes): New macro.
4825 * target.c (update_current_target): Inherit new target methods.
4826 (dummy_find_memory_regions): New place-holder method.
4827 (dummy_make_corefile_notes): New place-holder method.
4828 (init_dummy_target): Initialize new dummy target vectors.
4829 * exec.c (exec_set_find_memory_regions): New function.
4830 Allow the exec_ops vector for memory regions to be taken over.
4831 (exec_make_note_section): New function, target vector method.
4832 * defs.h (exec_set_find_memory_regions): Export prototype.
4833 * procfs.c (proc_find_memory_regions): New function, corefile method.
4834 (procfs_make_note_section): New function, corefile method.
4835 (init_procfs_ops): Set new target vector pointers.
4836 (find_memory_regions_callback): New function.
4837 (procfs_do_thread_registers): New function.
4838 (procfs_corefile_thread_callback): New function.
4839 * sol-thread.c (sol_find_memory_regions): New function.
4840 (sol_make_note_section): New function.
4841 (init_sol_thread_ops): Initialize new target vectors.
4842 * inftarg.c (inftarg_set_find_memory_regions): New function.
4843 Allow to_find_memory_regions vector to be taken over.
4844 (inftarg_set_make_corefile_notes): New function.
4845 Allow to_make_corefile_notes vector to be taken over.
4846 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4847 interface layer if not target_has_execution (may be a corefile).
4848 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4849 * config/sparc/sun4sol2.mh: Ditto.
4850 * config/alpha/alpha-linux.mh: Ditto.
4851 * config/arm/linux.mh: Ditto.
4852 * config/i386/x86-64linux.mh: Ditto.
4853 * config/ia64/linux.mh: Ditto.
4854 * config/m68k/linux.mh: Ditto.
4855 * config/mips/linux.mh: Ditto.
4856 * config/powerpc/linux.mh: Ditto.
4857 * config/sparc/linux.mh: Ditto.
4859 2002-01-07 Michael Snyder <msnyder@redhat.com>
4861 * arm-linux-nat.c: Remove references to regcache.c internal data
4862 (registers[] and register_valid[]).
4864 2002-01-07 Michael Snyder <msnyder@redhat.com>
4866 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4867 so that attaching to a pid will automatically read the process's
4868 symbol file and shlibs.
4869 * Makefile.in: Add rule for linux-proc.o.
4870 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4871 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4872 * config/arm/linux.mh: Ditto.
4873 * config/i386/linux.mh: Ditto.
4874 * config/i386/x86-64linux.mh: Ditto.
4875 * config/ia64/linux.mh: Ditto.
4876 * config/m68k/linux.mh: Ditto.
4877 * config/mips/linux.mh: Ditto.
4878 * config/powerpc/linux.mh: Ditto.
4879 * config/sparc/linux.mh: Ditto.
4881 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4883 * win32-nat.c: Add i386-tdep.h dependency.
4885 2002-01-07 Michael Snyder <msnyder@redhat.com>
4887 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4888 instead of bfd_get_arch_size. Don't bail out just because
4889 there's no exec_bfd.
4891 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4892 * p-valprint.c (pascal_object_print_value): Ditto.
4893 * somread.c (som_symtab_read): Ditto.
4894 * symfile.c (simple_free_overlay_region_table): Ditto.
4895 * valops.c (value_assign): Ditto.
4897 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4898 use tilde_expand and strerror for opening save-tracepoints file.
4900 * thread-db.c (thread_db_new_objfile): Indendation fix.
4902 * infptrace.c (GDB_MAX_ALLOCA): New define.
4903 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4904 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4905 can be overridden with whatever value is appropriate to the host).
4906 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4907 alloca to allocate potentially large buffer.
4908 * rs6000-nat.c (child_xfer_memory): Ditto.
4909 * symm-nat.c (child_xfer_memory): Ditto.
4910 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4912 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4914 From Nick Clifton <nickc@redhat.com>
4915 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4917 2002-01-07 Michael Snyder <msnyder@redhat.com>
4919 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4920 Don't use exec_bfd if it's NULL.
4922 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4924 * valops.c (value_arg_coerce): Fix formatting.
4926 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4928 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4931 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4933 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4934 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4935 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4936 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4937 z8k-coff have not been multi-arched. Update z8k-coff build
4940 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4942 * MAINTAINERS: Mark a29k target as obsolete.
4943 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4944 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4946 * NEWS: Note that a29k targets are obsolete.
4947 * a29k-tdep.c: Mark as obsolete.
4948 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4949 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4950 a29k-*-vxworks* targets as obsolete.
4951 * remote-adapt.c: Obsolete.
4952 * remote-eb.c: Obsolete.
4953 * remote-mm.c: Obsolete.
4954 * remote-udi.c: Obsolete.
4955 * config/a29k/a29k-udi.mt: Obsolete.
4956 * config/a29k/a29k.mt: Obsolete.
4957 * config/a29k/tm-a29k.h: Obsolete.
4958 * config/a29k/tm-vx29k.h: Obsolete.
4959 * config/a29k/vx29k.mt: Obsolete.
4961 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4963 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4964 with BFD_ENDIAN_BIG.
4966 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4968 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4969 * configure, config.in: Re-generate.
4970 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4971 * defs.h: Do not include <endian.h>.
4973 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4975 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4976 * config.in: Regenerate.
4977 * configure.in: Update copyright years.
4978 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4979 * configure: Regenerate.
4980 * i386bsd-nat.c: Update copyright years.
4981 (fill_gregset): Use regcache_collect.
4982 (fetch_inferior_registers): Only fetch integer registers
4983 if requested to do so. Add support for XMM registers
4984 using PT_GETXMMREGS.
4985 (store_inferior_registers): Only store integer registers
4986 if requested to do so. Add support for XMM registers
4987 using PT_SETXMMREGS.
4988 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4989 (store_inferior_registers): Remove.
4990 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4991 (fetch_elfcore_registers): New function.
4992 (i386nbsd_elfcore_fns): New.
4993 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4994 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4996 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4997 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4998 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4999 * config/i386/tm-nbsd.h: Update copyright years.
5000 (HAVE_SSE_REGS): Define.
5001 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5002 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5003 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5004 (SIGCONTEXT_PC_OFFSET): Remove.
5005 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5007 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5009 * configure.tgt: Remove powerpc-*-macos* target.
5010 * config/m68k/xm-mpw.h: Delete file.
5011 * config/xm-mpw.h: Delete file.
5012 * ser-mac.c: Delete file.
5013 * mpw-make.sed: Delete file.
5014 * mpw-config.in: Delete file.
5015 * mac-xdep.c: Delete file.
5016 * mac-gdb.r: Delete file.
5017 * mac-defs.h: Delete file.
5018 * mac-nat.c: Delete file.
5019 * config/powerpc/macos.mh: Delete file.
5020 * config/powerpc/macos.mt: Delete file.
5021 * config/powerpc/nm-macos.h: Delete file.
5022 * config/powerpc/tm-macos.h: Delete file.
5023 * source.c (openp, open_source_file): Remove obsolete code.
5024 * top.c (gdb_readline): Ditto.
5025 * utils.c (query): Ditto.
5026 * event-top.c (display_gdb_prompt): Ditto.
5027 * Makefile.in (ser-mac.o): Delete obsolete target.
5030 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5032 * defs.h (BIG_ENDIAN): Delete macro definition.
5033 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5034 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5035 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5036 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5037 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5038 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5039 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5040 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5041 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5042 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5043 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5044 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5045 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5046 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5047 * gdbarch.c: Re-generate.
5049 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5051 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5054 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5056 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5058 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5060 * value.h (value_ptr): Delete typedef.
5062 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5064 * i386nbsd-nat.c: Update copyright years.
5065 Include i386-tdep.h.
5067 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5069 * stabsread.c: Update copyright years.
5071 From Debashis Mahata <debashis.mahata@wipro.com>:
5072 (read_struct_fields): Deal with Sun C compiler erroneous stab
5073 output for structs and unions.
5076 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5078 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5081 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5083 * cp-abi.c: Fix whitespace.
5084 (baseclass_offset): New wrapper function.
5085 * cp-abi.h (baseclass_offset): Add prototype.
5086 (struct cp_abi_ops): Add baseclass_offset pointer.
5088 * valops.c (vb_match): Move to...
5089 * gnu-v2-abi.c (vb_match): here.
5090 * valops.c (baseclass_offset): Move to...
5091 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5093 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5095 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5096 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5097 * hpacc-abi.c (init_hpacc_ops): Likewise.
5099 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5101 * valops.c (find_overload_match): Accept obj as a
5102 reference parameter. Update it before returning.
5103 * value.h (find_overload_match): Update prototype.
5104 * eval.c (evaluate_subexp_standard): Pass object to
5105 find_overload_match by reference.
5107 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5109 * valarith.c: Replace value_ptr with struct value pointer. Remove
5110 register attribute from value declarations.
5113 * scm-lang.c (scm_lookup_name): Ditto.
5115 2002-01-03 Michael Snyder <msnyder@redhat.com>
5117 Abstract the functionality of iterating over mapped memory
5118 regions into a general purpose iterator function.
5119 * procfs.c (iterate_over_mappings): New function, general purpose
5120 iterator for memory sections.
5121 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5122 (solib_mappings_callback): New function, callback for above.
5123 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5124 (info_mappings_callback): New function, callback for above.
5126 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5128 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5130 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5131 * i386-tdep.c: Include "elf-bfd.h".
5132 (process_note_abi_tag_sections): New function.
5133 (i386_gdbarch_init): Add code to recognize various OS/ABI
5136 * maint.c (_initialize_maint_cmds): Add missing \ in
5139 For older changes see ChangeLog-2001
5145 version-control: never