1 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
3 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5 * arm-tdep.c (arm_store_return_value): Use them.
6 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7 * remote-rdp.c (remote_rdp_fetch_register): Use
8 ARM_MAX_REGISTER_RAW_SIZE.
9 (remote_rdp_store_register): Likewise.
11 2002-05-07 Michal Ludvig <mludvig@suse.cz>
13 * dwarf2cfi.c: Code cleanup, removed unused variables,
14 added default labels to switch {} statements.
15 * x86-64-tdep.c: Ditto.
16 * x86-64-linux-nat.c: Ditto.
18 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
20 * solib.h: Protect against multiple inclusion.
22 2002-05-06 Jim Blandy <jimb@redhat.com>
24 Separate the job of reading the line number info statement program
25 header (...expialidocious) out into its own function.
26 * dwarf2read.c (struct line_head, struct filenames, struct
27 directories): Replace with...
28 (struct line_header): New structure, containing the full
29 contents of the statement program header, including the
30 include directory and file name tables.
31 (read_file_scope): If we have line number info, instead of just
32 calling dwarf_decode_lines to do all the work, call
33 dwarf_decode_line_header first to get a `struct line_header'
34 containing the data in the statement program header, and then
35 pass that to dwarf_decode_lines, which will pick up where that
36 left off. Be sure to clean up the `struct line_header' object.
37 (dwarf_decode_line_header, free_line_header, add_include_dir,
38 add_file_name): New functions.
39 (dwarf_decode_lines): Move all the code to read the statement
40 program header into dwarf_decode_line_header. Take the line
41 header it built as the first argument, instead of the offset to
42 the compilation unit's line number info. Use the new `struct
43 line_header' type instead of the old structures. No need to do
44 cleanups here now, since we don't allocate anything.
45 (dwarf2_statement_list_fits_in_line_number_section,
46 dwarf2_line_header_too_long): New complaints.
48 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
50 * gdbtypes.c (init_vector_type): New function.
51 (build_builtin_type_vec128): Simplify the representation of SIMD
53 (build_gdbtypes): Initialize new builtin vector types.
54 (_initialize_gdbtypes): Register new vector types with gdbarch.
55 (builtin_type_v4_float, builtin_type_v4_int32,
56 builtin_type_v8_int16, builtin_type_v16_int8,
57 builtin_type_v2_int32, builtin_type_v4_int16,
58 builtin_type_v8_int8): New (renamed) SIMD types.
60 2002-05-06 Mark Kettenis <kettenis@gnu.org>
62 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
63 (i387_fill_fxsave): Likewise.
65 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
67 * alpha-tdep.c (alpha_extract_return_value): Don't use
68 non-constant array size in prototype.
70 2002-05-04 Andrew Cagney <ac131313@redhat.com>
72 From Brian Taylor <briant at model dot com>:
73 * ui-out.c (ui_out_field_core_addr): Use the function
74 longest_local_hex_string_custom'to format addresses > 32 bits
77 * ui-out.c (ui_out_field_core_addr): Update comment.
79 2002-05-04 Andrew Cagney <ac131313@redhat.com>
81 * stack.c (select_and_print_frame): Make static. Delete the
83 (func_command): Update call.
84 (select_frame_command): Delete code computing the frame level.
85 * frame.h (select_and_print_frame): Delete declaration.
87 2002-05-04 Andrew Cagney <ac131313@redhat.com>
89 * sparc-tdep.c (sparc_get_saved_register): Comment why
90 get_prev_frame call is safe.
92 2002-05-04 Andrew Cagney <ac131313@redhat.com>
94 * frame.h (select_frame): Delete level parameter.
95 * stack.c (select_frame): Update. Use frame_relative_level to
96 obtain the frame's level.
97 (select_and_print_frame): Update call.
98 (select_frame_command): Ditto.
99 (up_silently_base): Ditto.
100 (down_silently_base): Ditto.
101 * ocd.c (ocd_start_remote): Ditto.
102 * remote-rdp.c (remote_rdp_open): Ditto.
103 * remote-mips.c (mips_initialize): Ditto.
104 (common_open): Ditto.
105 * remote-e7000.c (e7000_start_remote): Ditto.
106 * m3-nat.c (select_thread): Ditto.
107 * hppa-tdep.c (child_get_current_exception_event): Ditto.
108 (child_get_current_exception_event): Ditto.
109 * varobj.c (varobj_create): Ditto.
110 (varobj_update): Ditto.
111 (c_value_of_root): Ditto.
112 * tracepoint.c (finish_tfind_command): Ditto.
113 * corelow.c (core_open): Ditto.
114 * arch-utils.c (generic_prepare_to_proceed): Ditto.
115 * thread.c (info_threads_command): Ditto.
116 (switch_to_thread): Ditto.
117 * infrun.c (normal_stop): Ditto.
118 (restore_selected_frame): Ditto.
119 (restore_inferior_status): Ditto.
120 * breakpoint.c (insert_breakpoints): Ditto.
121 (watchpoint_check): Ditto.
122 (bpstat_stop_status): Ditto.
123 (do_enable_breakpoint): Ditto.
124 * blockframe.c (flush_cached_frames): Ditto.
125 (reinit_frame_cache): Ditto.
127 2002-05-04 Andrew Cagney <ac131313@redhat.com>
129 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
132 2002-05-04 Jim Blandy <jimb@redhat.com>
134 * gdbtypes.c (replace_type): Doc fix.
136 2002-05-04 Andrew Cagney <ac131313@redhat.com>
138 * valprint.c (strcat_longest): Delete commented out function.
141 2002-05-04 Andrew Cagney <ac131313@redhat.com>
143 * MAINTAINERS: Mark a29k as deleted.
144 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
145 Move new configurations to the top.
146 * configure.tgt: Remove a29k.
147 * config/a29k/tm-vx29k.h: Delete.
148 * config/a29k/vx29k.mt: Delete.
149 * config/a29k/tm-a29k.h: Delete.
150 * config/a29k/a29k-udi.mt: Delete.
151 * config/a29k/a29k.mt: Delete.
152 * a29k-tdep.c: Delete.
153 * remote-udi.c: Delete.
154 * remote-mm.c: Delete.
155 * remote-eb.c: Delete.
156 * remote-adapt.c: Delete.
157 * Makefile.in: Remove obsolete code.
158 * gdbserver/Makefile.in: Ditto.
159 * config/s390/s390x.mt: Ditto.
160 * config/s390/s390.mt: Ditto.
161 * config/sparc/sparclynx.mh: Ditto.
162 * config/sparc/linux.mh: Ditto.
163 * config/pa/hppaosf.mh: Ditto.
164 * config/pa/hppabsd.mh: Ditto.
165 * config/ns32k/nbsd.mt: Ditto.
166 * config/mips/vr5000.mt: Ditto.
167 * config/m68k/sun3os4.mh: Ditto.
168 * config/m68k/nbsd.mt: Ditto.
169 * config/m68k/m68klynx.mh: Ditto.
170 * config/m32r/m32r.mt: Ditto.
171 * config/i386/x86-64linux.mt: Ditto.
172 * config/i386/nbsdelf.mt: Ditto.
173 * config/i386/nbsd.mt: Ditto.
174 * config/i386/i386lynx.mh: Ditto.
176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
178 * target.c (debug_print_register): New function. Handle oversize
180 (debug_to_fetch_registers): Call.
181 (debug_to_store_registers): Call.
183 2002-05-03 Jim Blandy <jimb@redhat.com>
185 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
186 (read_type): Doc fix.
187 * gdbtypes.c (replace_type): Doc fix.
189 * stabsread.c (multiply_defined_struct): New complaint.
190 (read_struct_type): If the type we were passed isn't empty, or
191 incomplete, don't read the new struct type into it; complain,
192 and return the original type unchanged. Take a new `type_code'
193 argument, which is the type code for the new type.
194 (read_type): Rather than storing the type's type code here, pass
195 it as an argument to read_struct_type, and let that take care of
196 storing it. That way, we don't overwrite the original type code,
197 so read_struct_type can use it to decide whether we're overwriting
198 something we shouldn't.
199 (complain_about_struct_wipeout): New function.
201 2002-05-03 Andrew Cagney <ac131313@redhat.com>
203 * gdbarch.sh: Assert that gdbarch is non-NULL.
204 * gdbarch.c: Regenerate.
206 2002-05-03 Jason Merrill <jason@redhat.com>
208 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
211 2002-05-03 Michal Ludvig <mludvig@suse.cz>
213 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
214 (x86_64_dwarf2gdb_regno_map_length),
215 (x86_64_dwarf2_reg_to_regnum): Added.
216 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
217 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
218 (_initialize_x86_64_tdep): Synced with the change above.
219 (x86_64_skip_prologue): Reformulated message.
221 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
223 * f-exp.y: Also use new prev_lexptr variable
224 to improve error reporting. Based on Michael Snyder
225 2002-04-24 dated patch to c-exp.y.
226 * jv-exp.y: Likewise.
227 * m2-exp.y: Likewise.
229 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
231 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
232 we are dealing with vectors.
234 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
236 * config/m68k/tm-nbsd.h: Obvious fix,
237 correct machine name.
239 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
241 * p-typeprint.c (pascal_type_print_base): Add support
242 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
244 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
246 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
247 for fondamental pascal 'char' type.
249 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
251 * p-lang.h (is_pascal_string_type): Declaration changed,
252 new sixth argument of type char ** added.
253 * p-lang.c (is_pascal_string_type): Implementation
254 changed. Args length_pos, length_size, string_pos, char_size
255 can now be NULL. New argument arrayname set to the field
256 name of the char array. Return value set to char array
257 field index plus one.
258 * p-valprint.c (pascal_val_print): Adapt to new declaration of
259 is_pascal_string_type function.
261 2002-05-02 Andrew Cagney <cagney@redhat.com>
263 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
264 <cagney@redhat.com> change.
265 * gdbarch.c: Regenerate.
267 2002-05-02 Andrew Cagney <cagney@redhat.com>
269 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
270 before probing for a new one. Detect errorenous gdbarch_init
272 * gdbarch.c: Regenerate.
274 2002-05-01 Andrew Cagney <cagney@redhat.com>
276 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
277 * config/mcore/tm-mcore.h: Ditto. Update copyright.
278 * config/v850/tm-v850.h: Ditto. Update copyright.
280 2002-04-30 Andrew Cagney <ac131313@redhat.com>
282 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
285 2002-04-30 Michael Snyder <msnyder@redhat.com>
287 * arm-tdep.c: Whitespace clean-ups.
288 (arm_skip_prologue): Fix thinko; two lines
289 should have been removed as part of 4/24 change.
291 2002-04-30 Kevin Buettner <kevinb@redhat.com>
293 * rs6000-tdep.c: Added comment describing how fpscr register
296 2002-04-30 Michael Snyder <msnyder@redhat.com>
298 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
300 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
302 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
303 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
304 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
306 2002-04-29 Kevin Buettner <kevinb@redhat.com>
308 From Louis Hamilton <hamilton@redhat.com>:
309 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
310 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
311 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
312 not bfd-private xcoff data, to determine wordsize.
313 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
315 2002-04-29 Andrew Cagney <ac131313@redhat.com>
317 GDB 5.2 released from 5.2 branch.
319 2002-04-29 Michal Ludvig <mludvig@suse.cz>
321 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
322 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
323 (x86_64_register_info_table): Added comments with register numbers.
325 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
327 * rs6000-tdep.c (rs6000_extract_return_value,
328 rs6000_store_return_value): Handle returning vectors.
329 (rs6000_gdbarch_init): Use
330 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
331 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
333 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
335 (ppc_sysv_abi_push_arguments): Handle vector parameters.
336 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
338 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
340 * hpread.c (hpread_psymtab_to_symtab_1,
341 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
342 with fprintf_unfiltered (gdb_stderr,...).
344 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
346 * remote-array.c (printf_monitor, write_monitor,
347 array_insert_breakpoint, array_remove_breakpoint ):
348 Replace fprintf (stderr,...
349 with fprintf_unfiltered (gdb_stderr,....
350 * remote-es.c: Likewise.
351 * remote-os9k.c: Likewise.
352 * remote-st.c: Likewise.
354 2002-04-28 Andreas Schwab <schwab@suse.de>
356 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
357 linux-proc.o and gcore.o.
359 2002-04-26 Michal Ludvig <mludvig@suse.cz>
361 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
362 code without frame pointers.
364 2002-04-26 Andrew Cagney <ac131313@redhat.com>
366 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
369 2002-04-26 Ben Elliston <bje@redhat.com>
371 * target.c (do_xfer_memory): Correct reference to the new option
372 "trust-readonly-sections".
374 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
376 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
377 * gdbtypes.c (recursive_dump_type): Output the vector flag.
378 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
380 (read_array_type): Record the fact that this array type is really a
381 vector (i.e. are passed in by value).
383 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
385 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
386 * alpha-tdep.c (alpha_sigcontext_addr): New function.
387 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
388 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
389 * alpha-linux-tdep.c: Include frame.h.
390 (alpha_linux_sigcontext_addr): New function.
391 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
392 alpha_linux_sigcontext_addr.
393 * alpha-osf1-tdep.c: Include gdbcore.h.
394 (alpha_osf1_sigcontext_addr): New function.
395 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
396 alpha_osf1_sigcontext_addr.
397 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
398 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
400 2002-04-26 Andrew Cagney <ac131313@redhat.com>
402 * stack.c (selected_frame_level):
403 (select_frame): Do not set selected_frame_level.
404 * frame.h (selected_frame_level): Delete declaration.
406 2002-04-26 Andrew Cagney <ac131313@redhat.com>
408 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
409 convert_from_func_ptr-addr when AIX / PowerOpen.
411 2002-04-25 Andrew Cagney <ac131313@redhat.com>
413 * valops.c (hand_function_call): Call
414 generic_save_call_dummy_addr.
415 * frame.h (generic_save_call_dummy_addr): Declare.
416 * blockframe.c (struct dummy_frame): Add fields call_lo and
418 (generic_find_dummy_frame): Check for PC in range call_lo to
419 call_hi instead of entry_point_address.
420 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
421 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
422 (generic_save_call_dummy_addr): New function.
424 2002-04-24 David S. Miller <davem@redhat.com>
426 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
428 (sparc_skip_prologue): Kill frameless_p arg, and use line number
429 information to find prologue when possible.
430 (sparc_prologue_frameless_p): Call examine_prologue directly.
431 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
432 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
434 (SKIP_PROLOGUE): Likewise.
436 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
438 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
439 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
440 indicate that the condition it was testing is always true.
441 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
442 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
443 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
445 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
447 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
448 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
449 tdep->jb_pc and tdep->jb_elt_size.
450 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
451 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
452 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
453 * alpha-nat.c (get_longjmp_target): Remove.
454 (JB_ELEMENT_SIZE): Ditto.
456 * alpha-tdep.c (alpha_get_longjmp_target): New function.
457 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
458 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
459 to alpha_get_longjmp_target.
460 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
461 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
462 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
464 2002-04-25 Andrew Cagney <ac131313@redhat.com>
466 * README: Update to GDB 5.2.
468 2002-04-25 Andrew Cagney <ac131313@redhat.com>
470 * gdbarch.sh (LC_ALL): Set to `c'.
472 2002-04-25 Theodore A. Roth <troth@verinet.com>
474 * avr-tdep.c: Ran through gdb_indent.sh.
476 2002-04-25 Theodore A. Roth <troth@verinet.com>
478 * MAINTAINERS: Add myself as AVR maintainer.
479 * NEWS: Note new target avr.
481 2002-04-25 Theodore A. Roth <troth@verinet.com>
483 * Makefile.in: Add support for AVR target.
484 * configure.tgt: Add support for AVR target.
485 * avr-tdep.c: New file
486 * config/avr/avr.mt: New file.
488 2002-04-25 Theodore A. Roth <troth@verinet.com>
490 * MAINTAINERS: Add myself to write-after-approval.
492 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
494 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
495 with fprintf_unfiltered (gdb_stderr,....
497 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
500 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
502 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
504 * p-exp.y: Also use new prev_lexptr variable
505 to improve error reporting. Based on Michael Snyder
506 2002-04-24 dated patch to c-exp.y.
508 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
510 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
511 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
512 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
514 * config/alpha/tm-alpha.h: Remove forward decls of struct type
516 (FUNCTION_START_OFFSET): Remove.
519 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
521 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
524 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
526 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
527 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
528 alpha_linux_pc_in_sigtramp.
529 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
530 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
531 alpha_osf1_pc_in_sigtramp.
532 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
533 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
534 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
535 alphafbsd_pc_in_sigtramp.
536 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
537 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
538 alphanbsd_pc_in_sigtramp.
539 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
540 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
542 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
544 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
546 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
548 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
550 (alphanbsd-nat.o): New dependency list.
551 (alphanbsd-tdep.o): Ditto.
552 * NEWS: Note new native NetBSD/alpha configuration.
553 * alphanbsd-nat.c: New file.
554 * alphanbsd-tdep.c: Ditto.
555 * configure.host (alpha*-*-netbsd*): New host.
556 * configure.tgt (alpha*-*-netbsd*): New target.
557 * config/alpha/nbsd.mh: New file.
558 * config/alpha/nbsd.mt: Ditto.
559 * config/alpha/nm-nbsd.h: Ditto.
560 * config/alpha/tm-nbsd.h: Ditto.
562 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
564 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
565 (alpha-osf1-tdep.o): New dependency list.
566 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
567 and skip_sigtramp_frame members.
568 * alpha-linux-tdep.c: Include gdbcore.h.
569 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
570 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
571 * alpha-osf1-tdep.c: New file.
572 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
574 (alpha_frame_past_sigtramp_frame): New function.
575 (alpha_dynamic_sigtramp_offset): Ditto.
576 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
577 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
578 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
579 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
580 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
581 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
582 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
583 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
584 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
585 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
586 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
587 to find_solib_trampoline_target.
588 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
589 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
590 (SKIP_TRAMPOLINE_CODE): Remove.
591 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
592 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
593 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
594 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
595 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
596 (PROC_SIGTRAMP_MAGIC): Ditto.
597 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
598 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
599 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
600 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
601 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
603 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
605 * NEWS: Note that Alpha targets are now multi-arch.
607 2002-04-24 Michael Snyder <msnyder@redhat.com>
609 * parser-defs.h (prev_lexptr): New external variable.
610 * parse.c (parse_exp_1): Set prev_lexptr to null before
611 calling the language-specific parser.
612 * c-exp.y (yylex): Set prev_lexptr to start of current token.
613 (yyerror): Use prev_lexptr in error reporting.
615 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
617 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
618 * gregset.h: If FILL_FPXREGSET is defined, provide
619 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
620 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
621 is defined, call fill_fpxregset.
623 2002-04-24 Roland McGrath <roland@frob.com>
625 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
626 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
627 (supply_gregset, supply_fpregset): New functions.
629 * gnu-nat.c (gnu_find_memory_regions): New function.
630 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
631 (gnu_xfer_memory): Add a cast.
633 2002-04-24 Michael Snyder <msnyder@redhat.com>
635 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
636 loop. Add handling for "str lr, [sp, #-4]!" and for saves
637 of argument regs ("str r(0123), [r11, #-nn"]).
638 (arm_skip_prologue): Better handling for frameless functions.
639 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
640 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
642 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
644 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
645 NUM_PSEUDO_REGS can be used.
647 2002-04-24 Andrew Cagney <ac131313@redhat.com>
649 * arch-utils.h: Update copyright.
651 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
652 * gdbarch.h, gdbarch.c: Re-generate.
654 * inferior.h (IN_SIGTRAMP): Delete definition.
655 * arch-utils.c (legacy_pc_in_sigtramp): New function.
656 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
658 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
659 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
660 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
661 (find_proc_framesize): Ditto.
662 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
663 (alpha_init_extra_frame_info): Ditto.
664 * infrun.c (handle_inferior_event): Ditto.
665 (handle_inferior_event): Ditto.
666 (check_sigtramp2): Ditto.
667 * blockframe.c (create_new_frame): Ditto.
668 (get_prev_frame): Ditto.
669 * ppc-linux-tdep.c: Update comments.
670 * i386-linux-tdep.c: Update comments.
671 * breakpoint.c (bpstat_what): Update comment.
673 2002-04-24 Michal Ludvig <mludvig@suse.cz>
675 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
676 (regsets_store_inferior_registers): Removed cast to int from
678 * gdbserver/regcache.h: Added declaration of struct inferior_info.
680 2002-04-24 David S. Miller <davem@redhat.com>
682 * i960-tdep.c (register_in_window_p): New function.
683 (i960_find_saved_register): Use it instead of
684 REGISTER_IN_WINDOW_P.
685 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
687 * symtab.h (find_stab_function_addr): Kill extern.
688 * minsyms.c (find_stab_function_addr): Remove from here...
689 * dbxread.c: ... to here, and mark it static.
691 2002-04-20 David S. Miller <davem@redhat.com>
693 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
694 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
696 2002-04-21 David S. Miller <davem@redhat.com>
698 * remote-vxsparc.c (vx_read_register): Fix typo, we want
699 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
700 (vx_write_register): Likewise.
702 2002-04-23 J. Brobecker <brobecker@gnat.com>
704 * source.c (is_regular_file): New function.
705 (openp): Check wether file to open is a regular file
706 to avoid opening directories.
708 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
710 * findvar.c (extract_signed_integer): Cast printf argument
711 to suppress format warning.
712 (extract_unsigned_integer): Likewise.
713 * infcmd.c (registers_info): Likewise.
714 * top.c (get_prompt_1): Likewise.
715 * valops.c (value_assign): Likewise.
716 * valprint.c (print_decimal): Likewise.
718 2002-04-22 H.J. Lu (hjl@gnu.org)
720 * c-exp.y (typebase): Support
722 [long|long long|short] [signed|unsigned] [int|]
726 signed [long|long long|short] int
728 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
730 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
732 * vax-tdep.h: New file.
733 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
734 Make several routines static.
735 (vax_get_saved_register): New function.
736 (vax_gdbarch_init): New function.
737 (_initialize_vax_tdep): Register vax_gdbarch_init.
738 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
739 Remove macros now under the control of gdbarch.
741 2002-04-22 Michael Snyder <msnyder@redhat.com>
743 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
744 Some whitespace and coding standards tweaks.
746 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
748 * vax-tdep.c: Include regcache.h.
749 (vax_call_dummy_words): New.
750 (sizeof_vax_call_dummy_words): New.
751 (vax_fix_call_dummy): New function.
752 (vax_saved_pc_after_call): Ditto.
753 * config/vax/tm-vax.h: Don't include regcache.h.
754 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
755 (CALL_DUMMY): Remove.
756 (CALL_DUMMY_WORDS): Define.
757 (SIZEOF_CALL_DUMMY_WORDS): Define.
758 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
760 2002-04-18 Michael Snyder <msnyder@redhat.com>
762 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
764 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
766 * vax-tdep.c (vax_frame_chain): New function.
767 (vax_push_dummy_frame): Ditto.
768 (vax_pop_frame): Ditto.
769 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
770 (FRAMELESS_FUNCTION_INVOCATION): Use
771 generic_frameless_function_invocation_not.
772 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
773 (POP_FRAME): Use vax_pop_frame.
775 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
777 * vax-tdep.c (vax_store_struct_return): New function.
778 (vax_extract_return_value): Ditto.
779 (vax_store_return_value): Ditto.
780 (vax_extract_struct_value_address): Ditto.
781 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
782 vax_store_struct_return.
783 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
784 (STORE_RETURN_VALUE): Use vax_store_return_value.
785 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
787 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
789 * vax-tdep.c (vax_frame_saved_pc): New function.
790 (vax_frame_args_address_correct): Ditto.
791 (vax_frame_args_address): Ditto.
792 (vax_frame_locals_address): Ditto.
793 (vax_frame_num_args): Move code to be in proximity to
794 other frame-related functions.
795 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
796 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
797 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
798 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
799 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
801 2002-04-22 H.J. Lu (hjl@gnu.org)
803 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
806 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
808 * vax-tdep.c (vax_frame_init_saved_regs): New function.
809 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
810 (FRAME_INIT_SAVED_REGS): New macro.
812 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
814 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
818 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
820 (fetch_osf_core_registers): Likewise.
821 (supply_gregset): Likewise.
823 2002-04-22 J. Brobecker <brobecker@gnat.com>
825 * symfile.h (get_section_index): Define.
826 * symfile.c (get_section_index): New function.
827 * mdebugread.c (SC_IS_SBSS): New macro.
828 (SC_IS_BSS): Return true for the scBss storage class only, as
829 the scSBss storage class refers to the .sbss section.
830 (parse_partial_symbols): Discard the symbols which associated
831 section does not exist.
832 Make sure to use the .sbss section index for symbols which
833 storage class is scBss, rather than using the .bss section index.
835 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
837 * vax-tdep.c: Update copyright years.
838 (vax_register_name): New function.
839 (vax_register_byte): Ditto.
840 (vax_register_raw_size): Ditto.
841 (vax_register_virtual_size): Ditto.
842 (vax_register_virtual_type): Ditto.
843 * config/vax/tm-vax.h: Update copyright years.
844 (REGISTER_NAMES): Remove.
845 (REGISTER_NAME): Define.
846 (REGISTER_BYTE): Use vax_register_byte.
847 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
848 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
849 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
851 2002-04-21 Andrew Cagney <ac131313@redhat.com>
853 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
855 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
857 2002-04-21 David S. Miller <davem@redhat.com>
859 * arch-utils.c (generic_prologue_frameless_p): Kill
860 SKIP_PROLOGUE_FRAMELESS_P code.
861 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
863 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
864 * arc-tdep.c (arc_prologue_frameless_p): Implement.
865 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
867 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
868 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
869 (sparc_gdbarch_init): Pass it to
870 set_gdbarch_prologue_frameless_p.
872 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
874 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
875 (alphabsd-nat.o): New dependency list.
877 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
879 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
881 (alpha-linux-tdep.o): New dependency list.
882 (alphafbsd-tdep.o): Likewise.
884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
886 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
888 * alpha-tdep.c: ...from here.
889 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
891 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
893 * config/alpha/tm-alpha.h: Move alpha_software_single_step
894 prototype from here...
895 * alpha-tdep.h: ...to here.
897 2002-04-21 Andrew Cagney <ac131313@redhat.com>
899 * frame.h (selected_frame_level): Document as deprecated.
900 (frame_relative_level): Declare.
901 * stack.c (frame_relative_level): New function.
902 (selected_frame_level): Document as deprecated.
903 (select_frame): Do not set the selected_frame_level.
905 * stack.c (frame_info, record_selected_frame): Update.
906 (frame_command, current_frame_command): Update.
907 (up_silently_base, up_command, down_silently_base): Update.
908 (down_command): Update.
909 * inflow.c (kill_command): Update.
910 * tracepoint.c (finish_tfind_command): Update.
911 * corelow.c (core_open): Update.
912 * thread.c (info_threads_command): Update.
913 (do_captured_thread_select): Update.
914 * infcmd.c (finish_command): Update.
915 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
917 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
919 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
921 2002-04-21 Andrew Cagney <ac131313@redhat.com>
923 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
926 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
928 * alphafbsd-tdep.c: Update copyright years. Include
930 (alphafbsd_use_struct_convention): Make static.
931 (alphafbsd_init_abi): New function.
932 (_initialize_alphafbsd_tdep): New function.
933 * config/alpha/tm-fbsd.h: Update copyright years.
934 (USE_STRUCT_CONVENTION): Remove.
936 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
938 * alpha-tdep.c (alpha_abi_handler): New structure to describe
939 an Alpha ABI variant.
940 (alpha_abi_handler_list): Declare.
941 (alpha_gdbarch_register_os_abi): New function.
942 (alpha_gdbarch_init): Give registered ABI variant handlers a
943 chance to tweak the gdbarch once we have set up defaults.
944 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
946 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
948 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
949 to standard_coerce_float_to_double.
950 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
952 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
954 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
955 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
956 from gdbarch_tdep rather than a constant.
957 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
958 the default text address for all Alpha Unix ABIs.
959 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
960 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
962 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
964 * alpha-tdep.h: New file. Includes several Alpha target constants
966 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
967 let gdbarch deal with.
968 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
969 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
971 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
972 Alpha target register names.
973 * alphabsd-nat.c: Likewise.
974 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
975 Alpha target register names. Make serveral routines static.
976 (alpha_get_saved_register): New function.
977 (alpha_abi_names): New.
978 (process_note_abi_tag_sections): New function.
979 (get_elfosabi): New function.
980 (alpha_gdbarch_init): New function.
981 (alpha_dump_tdep): New function.
982 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
984 2002-04-21 Andrew Cagney <ac131313@redhat.com>
986 * frame.c (find_saved_register): Delete #ifdef
987 HAVE_REGISTER_WINDOWS code.
988 * config/sparc/tm-sparc.h: Update comments.
989 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
991 2002-04-21 Andrew Cagney <ac131313@redhat.com>
993 * i960-tdep.c (i960_find_saved_register): New function.
994 (i960_get_saved_register): New function.
995 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
996 (i960_get_saved_register): Declare.
997 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
999 2002-04-20 David S. Miller <davem@redhat.com>
1001 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1003 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1005 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1006 instead of NUM_PSEUDO_REGS.
1008 2002-04-20 David S. Miller <davem@redhat.com>
1010 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1011 GDB_MULTI_ARCH_PARTIAL
1012 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1013 define, let tm-sp64.h do it.
1015 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1017 * frame.c (find_saved_register): Avoid a NULL pointer
1018 dereference and actually walk the frame list.
1020 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1022 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1023 sorted in most most-recent-used order. Document.
1024 * gdbarch.h, gdbarch.c: Regenerate.
1026 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1028 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1029 (add_inferior): Call create_register_cache.
1030 (clear_inferiors): Call free_register_cache.
1031 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1032 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1033 (registers): Remove.
1034 (get_regcache): New function.
1035 (create_register_cache, free_register_cache): New functions.
1036 (set_register_cache): Don't initialize the register cache here.
1037 (registers_to_string, registers_from_string, register_data): Call
1039 * gdbserver/regcache.h: Add prototypes.
1040 * gdbserver/server.h: Likewise.
1042 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1044 * gdbserver/mem-break.c: New file.
1045 * gdbserver/mem-break.h: New file.
1046 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1048 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1050 (clear_inferiors): Free target_data member if set.
1051 (inferior_target_data, set_inferior_target_data): New functions.
1052 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1053 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1054 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1055 (struct inferior_linux_data): New.
1056 (linux_create_inferior): Use set_inferior_target_data.
1057 (linux_attach): Likewise. Call add_inferior.
1058 (linux_wait_for_one_inferior): New function.
1059 (linux_wait): Call it.
1060 (linux_write_memory): Add const.
1061 (initialize_low): Call set_breakpoint_data.
1062 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1064 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1066 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1068 * gdbserver/target.c (read_inferior_memory)
1069 (write_inferior_memory): New functions.
1070 * gdbserver/target.h (read_inferior_memory)
1071 (write_inferior_memory): Change macros to prototypes.
1072 (struct target_ops): Update comments. Add const to write_memory
1075 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1077 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1079 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1080 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1081 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1084 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1087 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1088 (build_builtin_type_vec128): Ditto.
1089 (append_composite_type_field): Fix calculation of type length in
1092 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1094 * config/djgpp/README: Update.
1096 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1099 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1101 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1102 (alpha_setup_arbitrary_frame): ...to this.
1103 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1104 for alpha_setup_arbitrary_frame.
1106 2002-04-18 Andrew Cagney <cagney@redhat.com>
1108 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1109 * gdbarch.h, gdbarch.c: Regenerate.
1111 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1112 * target.h (memory_breakpoint_from_pc): Update declaration.
1113 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1115 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1116 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1117 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1118 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1119 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1120 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1121 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1122 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1123 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1124 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1125 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1126 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1128 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1130 * monitor.c (monitor_insert_breakpoint): Ditto.
1131 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1133 * config/mcore/tm-mcore.h: Update copyright.
1134 * mem-break.c: Ditto.
1135 * xstormy16-tdep.c: Ditto.
1137 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1139 * p-exp.y: Add precedence rule for '^' token.
1140 This removes the shift/reduce conflicts.
1141 Remove the comment concerning these shift/reduce conflicts.
1143 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1145 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1146 (registers_powerpc_nofp): New register set for processors
1147 without floating point unit.
1149 2002-04-18 David S. Miller <davem@redhat.com>
1151 * MAINTAINERS: Add myself to write-after-approval.
1153 2002-04-17 Michael Snyder <msnyder@redhat.com>
1155 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1157 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1159 * rs6000-tdep.c (frame_initial_stack_address): Use
1160 frame_register_read to read the alloca_reg.
1162 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1164 * frame.c (find_saved_register): Find saved registers in the next
1168 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1170 * gdbarch.sh (LANG): Set to ``c''.
1172 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1174 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1176 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1178 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1181 * hpread.c (hpread_get_lntt): Add declaration.
1182 Also fix PR gdb/391.
1184 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1186 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1187 * aclocal.m4, configure: Re-generate.
1190 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1192 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1193 instead of tm_print_insn.
1195 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1197 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1199 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1201 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1202 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1203 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1205 2002-04-12 Don Howard <dhoward@redhat.com>
1207 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1208 max_user_call_depth.
1209 (init_cmd_lists): Initialize the new value;
1210 * cli/cli-script.c (execute_user_command): Limit the call depth of
1211 user defined commands. This avoids a core-dump when user commands
1212 are infinitly recursive.
1214 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1216 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1217 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1218 from tdep struct instead of DEFAULT_LR_SAVE.
1219 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1220 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1221 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1223 2002-04-12 Michael Snyder <msnyder@redhat.com>
1225 * Remote.c: Spelling fix.
1226 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1227 If no symbol found for "sbrk", try "_sbrk".
1228 (make_output_phdrs): Use bfd_section_name.
1229 (gcore_copy_callback): Use bfd_section_name.
1230 * eval.c: Indentation fix-ups.
1231 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1232 in case it gets applied to an address that is already
1233 in the instruction space.
1234 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1235 * symfile.c: Fix indentation, long lines.
1236 * source.c: White space fix-up.
1238 2002-04-12 Andrew Cagney <cagney@redhat.com>
1240 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1241 * frame.c (frame_register_read): New function. Return non-zero on
1243 (read_relative_register_raw_bytes_for_frame): Delete.
1244 (read_relative_register_raw_bytes): Delete.
1245 * frame.h (frame_register_read): Declare.
1246 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1248 * infcmd.c (do_registers_info): Ditto.
1249 * hppa-tdep.c: Ditto.
1250 * rs6000-tdep.c: Ditto.
1251 * h8500-tdep.c: Ditto.
1252 * mips-tdep.c: Ditto.
1253 * h8300-tdep.c: Ditto.
1254 * z8k-tdep.c: Ditto.
1256 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1258 From Jimi X <jimix@watson.ibm.com>:
1259 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1262 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1264 From Jimi X <jimix@watson.ibm.com>:
1265 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1268 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1270 From Jimi X <jimix@watson.ibm.com>:
1271 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1272 register sets for these processor variants.
1274 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1276 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1277 registers which are allowed to fail to store.
1278 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1279 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1280 (ppc_cannot_store_register): FPSCR may not be storable.
1281 * regformats/reg-ppc.dat: Support FPSCR.
1283 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1285 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1286 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1287 Add fpscr as an invalid/unfetchable register.
1288 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1289 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1290 (fill_fpregset): Add support for register fpscr.
1291 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1292 (fill_gregset): Account for the fact that register ``mq'' might
1294 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1295 (registers_power): Add fpscr to register set at slot 71.
1296 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1297 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1299 2002-04-11 Michael Snyder <msnyder@redhat.com>
1301 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1302 * configure: Regenerate.
1303 * config.in: Regenerate.
1304 * acconfig.h: Add define for _SYSCALL32.
1305 * core-sol2.c: Remove #define _SYSCALL32.
1306 * solib-legacy.c: Remove #define _SYSCALL32.
1308 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1310 * stack.c (select_frame): Cleanup internal error message, do not
1313 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1315 * stack.c (select_frame): Check that selected_frame and the
1316 specified level are as expected.
1317 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1319 * frame.h (struct frame_info): Add field `level'. Update
1321 Work-in-progress PR gdb/464.
1323 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1325 * maint.c (maint_print_section_info): Rename print_section_info.
1326 (print_bfd_section_info, print_objfile_section_info): Update.
1327 * inferior.h (struct gdbarch): Add opaque declaration.
1328 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1329 * gdbarch.h: Regenerate.
1331 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1333 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1334 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1335 (kernel_u_size): Added.
1336 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1337 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1339 2002-04-04 Jim Ingham <jingham@apple.com>
1341 * valarith.c (find_size_for_pointer_math): New function, either returns
1342 the size for a pointer's target, returns 1 for void *, or errors for
1344 (value_add, value_sub): use find_size_for_pointer_math.
1346 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1348 * linux-low.c (linux_look_up_symbols): New hook.
1349 (linux_target_ops): Add linux_look_up_symbols.
1350 * remote-utils.c (decode_address): New function.
1351 (look_up_one_symbol): New function.
1352 * server.c (handle_query): Call target look_up_symbols hook.
1353 * server.h (look_up_one_symbol): Add prototype.
1354 * target.h (struct target_ops): Add look_up_symbols hook.
1356 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1358 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1359 * ChangeLog: Correct paths in last ChangeLog entry.
1361 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1363 * gdbserver/linux-low.h: Remove obsolete prototypes.
1364 (struct linux_target_ops): New.
1365 (extern the_low_target): New.
1366 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1367 (register_addr): Use the_low_target explicitly.
1368 (fetch_register): Likewise.
1369 (usr_fetch_inferior_registers): Likewise.
1370 (usr_store_inferior_registers): Likewise.
1371 * gdbserver/linux-arm-low.c (num_regs): Remove.
1372 (arm_num_regs): Define.
1373 (arm_regmap): Renamed from regmap, made static.
1374 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1376 (arm_cannot_store_register): Renamed from cannot_store_register,
1378 (the_low_target): New.
1379 * gdbserver/linux-i386-low.c (num_regs): Remove.
1380 (i386_num_regs): Define.
1381 (i386_regmap): Renamed from regmap, made static.
1382 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1384 (i386_cannot_store_register): Renamed from cannot_store_register,
1386 (the_low_target): New.
1387 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1388 (ia64_num_regs): Define.
1389 (ia64_regmap): Renamed from regmap, made static.
1390 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1392 (ia64_cannot_store_register): Renamed from cannot_store_register,
1394 (the_low_target): New.
1395 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1396 (m68k_num_regs): Define.
1397 (m68k_regmap): Renamed from regmap, made static.
1398 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1400 (m68k_cannot_store_register): Renamed from cannot_store_register,
1402 (the_low_target): New.
1403 * gdbserver/linux-mips-low.c (num_regs): Remove.
1404 (mips_num_regs): Define.
1405 (mips_regmap): Renamed from regmap, made static.
1406 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1408 (mips_cannot_store_register): Renamed from cannot_store_register,
1410 (the_low_target): New.
1411 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1412 (ppc_num_regs): Define.
1413 (ppc_regmap): Renamed from regmap, made static.
1414 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1416 (ppc_cannot_store_register): Renamed from cannot_store_register,
1418 (the_low_target): New.
1419 * gdbserver/linux-s390-low.c (num_regs): Remove.
1420 (s390_num_regs): Define.
1421 (s390_regmap): Renamed from regmap, made static.
1422 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1424 (s390_cannot_store_register): Renamed from cannot_store_register,
1426 (the_low_target): New.
1427 * gdbserver/linux-sh-low.c (num_regs): Remove.
1428 (sh_num_regs): Define.
1429 (sh_regmap): Renamed from regmap, made static.
1430 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1432 (sh_cannot_store_register): Renamed from cannot_store_register,
1434 (the_low_target): New.
1435 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1436 (the_low_target): New.
1438 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1440 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1441 override FP_REGNUM with frame->fp. Update copyright.
1442 * parse.c (num_std_regs, std_regs): Delete.
1443 (target_map_name_to_register): Do not search std_regs. Update
1444 function description.
1445 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1446 declarations. Update copyright.
1449 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1451 * gdbserver/Makefile.in: Add stamp-h target.
1452 * gdbserver/configure.in: Create stamp-h.
1453 * gdbserver/configure: Regenerated.
1455 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1457 * gdbserver/inferiors.c: New file.
1458 * gdbserver/target.c: New file.
1459 * gdbserver/target.h: New file.
1460 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1462 * gdbserver/linux-low.c (inferior_pid): New static variable,
1463 moved from server.c.
1464 (linux_create_inferior): Renamed from create_inferior.
1465 Call add_inferior. Return 0 on success instead of a PID.
1466 (linux_attach): Renamed from myattach.
1467 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1468 (linux_thread_alive): Renamed from mythread_alive.
1469 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1471 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1472 (regsets_store_inferior_registers): Correct error message.
1473 Add missing ``return 0''.
1474 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1475 (linux_store_registers): Renamed from store_inferior_registers.
1476 (linux_read_memory): Renamed from read_inferior_memory.
1477 (linux_write_memory): Renamed from write_inferior_memory.
1478 (linux_target_ops): New structure.
1479 (initialize_low): Call set_target_ops ().
1480 * gdbserver/remote-utils.c (unhexify): New function.
1481 (hexify): New function.
1482 (input_interrupt): Send signals to ``signal_pid''.
1483 * gdbserver/server.c (inferior_pid): Remove.
1484 (start_inferior): Update create_inferior call.
1485 (attach_inferior): Call add_inferior.
1486 (handle_query): New function.
1487 (main): Call handle_query for `q' packets.
1488 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1489 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1491 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1493 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1495 * gdbserver/configure.in: Check for <string.h>
1496 * gdbserver/configure: Regenerate.
1497 * gdbserver/config.in: Regenerate.
1498 * gdbserver/gdbreplay.c: Include needed system headers.
1499 (remote_open): Remove strchr prototype.
1500 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1501 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1502 (supply_register_by_name): Likewise.
1503 (collect_register): Change buf argument to void *.
1504 (collect_register_by_name): Likewise.
1505 * gdbserver/regcache.h: Add missing prototypes.
1506 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1507 * gdbserver/server.c (handle_query): New function.
1508 (attached): New static variable, moved out of main.
1509 (main): Quiet longjmp clobber warnings.
1510 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1511 * gdbserver/utils.c (error): Remove NORETURN.
1514 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1516 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1517 after the last symbol in a block.
1519 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1521 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1522 is non zero as a found symbol.
1524 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1526 * findvar.c: Include "builtin-regs.h".
1527 (value_of_register): Call value_of_builtin_reg when applicable.
1528 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1529 (target_map_name_to_register): Call
1530 builtin_reg_map_name_to_regnum.
1531 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1532 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1533 (builtin_regs_h): Define.
1534 (builtin-regs.o): New target.
1535 (findvar.o): Add $(builtin_regs_h).
1536 * builtin-regs.c, builtin-regs.h: New files.
1537 * std-regs.c: New file.
1538 Partial fix for PR gdb/251.
1540 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1542 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1543 it's no longer required.
1545 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1547 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1549 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1551 From Jimi X <jimix@watson.ibm.com>:
1552 * rs6000-tdep.c (rs6000_software_single_step): Use
1553 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1554 and size. Use target_insert_breakpoint() and
1555 target_remove_breakpoint() to insert and remove breakpoints
1556 instead of explicit memory reads and writes.
1558 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1560 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1561 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1562 ELF_OBJECT_FORMAT ifdef.
1564 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1566 From Jimi X <jimix@watson.ibm.com>:
1567 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1569 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1571 From Jimi X <jimix@watson.ibm.com>:
1572 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1573 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1575 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1577 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1578 s/asprintf/xasprintf/.
1579 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1581 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1583 I believe Jeff Law denies responsability for this one:
1584 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1585 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1586 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1587 Work-around for PR gdb/366.
1589 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1591 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1592 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1593 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1595 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1597 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1598 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1601 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1603 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1606 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1608 * README (Reporting Bugs in GDB): Document the bug web page as the
1609 prefered way of submitting bugs.
1612 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1614 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1616 * gdbarch.h, gdbarch.c: Re-generate.
1618 2002-04-07 Andreas Schwab <schwab@suse.de>
1620 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1621 buffer to regcache_collect.
1623 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1625 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1626 * gdbarch.c, gdbarch.h: Re-generate.
1628 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1630 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1631 declaration. Fix -Werror.
1633 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1635 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1636 * gdbarch.c: Regenerate.
1638 2002-04-05 Michael Snyder <msnyder@redhat.com>
1640 * breakpoint.c (clear_command): Rewrite middle section to
1641 combine two loops with identical control conditions.
1642 Add a cleanup to eliminate a memory leak.
1643 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1645 2002-04-05 H.J. Lu (hjl@gnu.org)
1647 * solib-svr4.c (bkpt_names): Add "__start".
1649 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1651 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1652 as test for 64 bit target.
1654 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1656 * h8500-tdep.c (h8500_write_fp): Delete function.
1657 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1658 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1659 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1661 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1662 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1664 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1665 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1666 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1667 (d10v_write_fp): Delete function.
1668 * inferior.h (write_fp, generic_target_write_fp): Delete
1670 * regcache.c (generic_target_write_fp): Delete function.
1671 (write_fp): Delete function.
1672 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1673 * gdbarch.h, gdbarch.c: Regenerate.
1674 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1675 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1676 (sparc64_write_fp): Delete declaration.
1677 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1678 (h8500_write_fp): Delete declaration.
1680 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1682 * sparc-tdep.c (sparc64_write_fp): Delete.
1683 (sparc_push_dummy_frame): Replace write_fp call with code to store
1685 (sparc_gdbarch_init): Do not initialize write_fp.
1687 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1689 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1692 2002-03-29 Jim Blandy <jimb@redhat.com>
1694 * stack.c (get_selected_block): Add new argument `addr_in_block',
1695 used to return the exact code address we used to select the block,
1697 * blockframe.c (get_frame_block, get_current_block): Same.
1698 * frame.h (get_frame_block, get_current_block,
1699 get_selected_block): Update declarations.
1700 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1701 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1703 2002-04-05 Michael Snyder <msnyder@redhat.com>
1705 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1708 2002-04-05 J. Brobecker <brobecker@gnat.com>
1710 * utils.c (xfullpath): New function.
1711 * defs.h (xfullpath): Add declaration.
1712 * source.c (openp): Use xfullpath in place of gdb_realpath to
1713 avoid resolving the basename part of filenames when the
1714 associated file is a symbolic link. This fixes a potential
1715 inconsistency between the filenames known to GDB and the
1716 filenames it prints in the annotations.
1717 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1718 to be able to match a filename with either the real filename, or
1719 the name of any symbolic link to this file.
1720 (lookup_partial_symtab): Ditto.
1722 2002-04-04 Michael Snyder <msnyder@redhat.com>
1724 * breakpoint.c: Add support for hardware breakpoints in overlays.
1725 (overlay_events_enabled): New state variable.
1726 (insert_breakpoints): Use overlay_events_enabled to decide
1727 whether to attempt to set a breakpoint at the overlay load addr.
1728 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1729 (remove_breakpoint): Use overlay_events_enabled to decide
1730 whether breakpoints need to be removed from overlay load addr.
1731 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1732 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1733 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1734 disable_overlay_breakpoints): Update overlay_events_enabled.
1736 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1738 * dwarf2read.c (struct function_range): New.
1739 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1740 (check_cu_functions): New.
1741 (read_file_scope): Initialize global function lists.
1742 Call dwarf_decode_line after processing children.
1743 (read_func_scope): Add to global function list.
1744 (dwarf_decode_lines): Call check_cu_functions everywhere
1745 record_line is called. Call record_line with a linenumber
1746 of 0 to mark sequence ends.
1748 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1750 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1751 change sync with glibc.
1753 2002-04-03 Jim Blandy <jimb@redhat.com>
1755 * configure.in: Call AC_C_INLINE.
1756 * configure: Regenerated.
1758 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1760 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1761 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1763 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1765 * NEWS: Mention gcore support on FreeBSD/i386.
1767 * fbsd-proc.c: New file.
1768 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1769 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1771 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1774 2002-03-29 Jim Blandy <jimb@redhat.com>
1776 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1777 unescaped newlines in string literals, but newer ones don't. So
1780 2002-03-26 Michael Snyder <msnyder@redhat.com>
1781 Andrew Cagney <cagney@redhat.com>
1783 * cli/cli-dump.c: New file. Dump memory to file,
1784 restore file to memory.
1785 * cli/cli-dump.h: New file.
1786 * Makefile.in: Add rules, dependencies for cli-dump.o.
1787 * NEWS: Mention new commands.
1789 2002-03-28 Michael Snyder <msnyder@redhat.com>
1791 * symfile.c (symbol_file_add): Move test for null symbols to later.
1793 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1795 From veksler at il.ibm.com:
1796 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1797 the xstrduped original path.
1800 2002-03-27 Michael Snyder <msnyder@redhat.com>
1802 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1803 * infcmd.c (_initialize_infcmd): Ditto.
1804 * language.c (_initialize_language): Ditto.
1805 * symfile.c (_initialize_symfile): Ditto.
1806 * top.c (_init_main): Ditto.
1807 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1809 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1811 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1812 vector registers handling.
1813 (skip_prologue): Handle new AltiVec instructions. Fill in new
1814 fields of frame data.
1815 (frame_get_saved_regs): Fill in information for AltiVec registers.
1817 2002-03-27 Jim Blandy <jimb@redhat.com>
1819 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1820 a function; leave this macro here to invoke that function.
1821 (symbol_init_mangled_name): Declaration for that function.
1822 * symtab.c (symbol_init_mangled_name): New function.
1824 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1826 * valarith.c: Replace strerror with safe_strerror.
1827 * tracepoint.c: Ditto.
1829 * go32-nat.c: Ditto.
1833 2002-03-27 Andreas Schwab <schwab@suse.de>
1835 * event-top.c (command_line_handler): Remove useless if.
1837 2002-03-27 Andreas Jaeger <aj@suse.de>
1839 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1842 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1844 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1845 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1846 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1847 (x86_64_linux_dr_get_status, supply_gregset),
1848 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1849 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1850 (x86_64_register_info_table): Add.
1851 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1852 (x86_64_register_raw_size, x86_64_register_virtual_type),
1853 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1854 general x86_64_register_info_table.
1855 (i386_gdbarch_init): gdbarch_register_bytes is now set
1856 dynamicaly during initialization.
1857 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1858 * gdbserver/linux-x86-64-low.c: Ditto.
1860 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1862 * gdbserver/server.c (main): Call target_signal_to_host_p
1863 and target_signal_to_host on signals received from the remote.
1864 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1865 target_signal_from_host on signals sent to the remote.
1866 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1867 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1869 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1871 * signals/signals.c: Include "server.h" in gdbserver build.
1872 (target_signal_from_name): Don't use STREQ.
1873 (_initialize_signals): Likewise. Don't include function in
1876 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1878 * signals.c: Moved to...
1879 * signals/signals.c: Here.
1880 * Makefile (signals.o): Update.
1882 2002-03-26 Jeff Law (law@redhat.com)
1884 * somread.c (som_symtab_read): Remove some commented out code and
1885 updated related comments. Do not set the minimal symbol table to
1886 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1887 in a dynamic executable.
1888 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1889 where we are unable to find the minimal symbol for the given
1892 2002-03-25 Jeff Law (law@redhat.com)
1894 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1896 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1898 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1900 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1902 * command.h: Update copyright.
1903 (struct cmd_list_element): Replace definition with opaque
1905 (enum cmd_types): Document that it will eventually be moved to
1907 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1908 (MALLOCED_REPLACEMENT): Delete macro.
1909 * Makefile.in (cli_decode_h): Add $(command_h).
1910 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1911 * top.c: Include "cli/cli-decode.h".
1912 * completer.c: Include "cli/cli-decode.h".
1913 * maint.c: Include "cli/cli-decode.h".
1914 * cli/cli-decode.h: Include "command.h".
1915 (enum command_class): Delete.
1916 (enum cmd_types): Comment out.
1917 (enum cmd_auto_boolean): Delete.
1918 (enum var_types): Delete.
1920 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1922 * cli/cli-decode.c: Include "gdb_assert.h".
1923 (add_set_or_show_cmd): New static function.
1924 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1925 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1926 all fields, such as func, from the set command.
1928 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1930 * MAINTAINERS (sh-elf): Change warning flag to -w.
1932 2002-03-23 Andrew Cagney <cagney@redhat.com>
1934 * defs.h (error): Add printf format attribute.
1935 * thread-db.c (thread_from_lwp): Fix error format string.
1936 * stack.c (parse_frame_specification): Ditto.
1937 * cli/cli-decode.c (undef_cmd_error): Ditto.
1938 * scm-lang.c (scm_lookup_name): Ditto.
1939 * tracepoint.c (trace_error): Ditto.
1940 * remote-utils.c (usage): Ditto.
1941 * remote.c (compare_sections_command): Ditto.
1944 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1946 * gdbtypes.c (append_composite_type_field): New function.
1947 (init_composite_type): New function.
1948 * gdbtypes.h (append_composite_type_field): Declare.
1949 (init_composite_type): Ditto.
1951 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1953 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1955 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1956 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1957 structure returning convention for SYSV ABI case, but not
1958 for GNU/Linux, FreeBSD, or NetBSD.
1960 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1962 * symtab.h (lookup_block_symbol): Add mangled_name argument
1965 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1966 with new mangled_name argument.
1967 * linespec.c (decode_line_1): Likewise.
1968 * valops (value_of_this): Likewise.
1969 * symtab.c (lookup_transparent_type): Likewise.
1970 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1971 (lookup_symbol): If we are given a mangled name, pass it down
1972 to lookup_symbol_aux.
1973 (lookup_block_symbol): If we are given a mangled name to check
1974 against, only return symbols which match it.
1976 2002-03-22 Christopher Faylor <cgf@redhat.com>
1978 * win32-nat.c (child_create_inferior): Check for proper shell to use
1979 here, in case the user changes it on the fly.
1980 (_initialize_inftarg): Remove shell path considerations.
1982 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1984 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1985 for gdbarch_max_register_raw_size and max_register_virtual_size.
1986 Adjust copyright year.
1988 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1990 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1991 in a function to cover the entire beginning of the function
1992 as well if it does not already.
1994 2002-03-21 Tom Rix <trix@redhat.com>
1996 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1997 (rs6000_ptrace64): Renamed from ptrace64.
1999 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2001 * gdbserver/remote-utils.c (remote_open): Don't call
2002 getprotobyname, we're all using TCP here so just use
2004 * gdbserver/gdbreplay.c (remote_open): Ditto.
2006 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2008 * regcache.c (_initialize_regcache): No need to call
2009 build_regcache() at this time; it gets called whenever
2010 the gdbarch changes.
2012 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2014 * sparc-nat.c: Include sys/param.h where possible.
2016 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2019 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2020 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2021 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2023 * stabsread.c (rs6000_builtin_type): Likewise.
2024 (read_sun_floating_type): Likewise.
2026 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2028 * stabsread.c (read_member_functions): Remove skip code for duplicate
2029 constructor/destructor methods. Use standard parsing for these
2030 methods and just do not chain them to the list of methods after
2033 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2035 * coffread.c: Remove redundant static declarations. Replace
2036 occurrences of `PTR' with `void *'.
2037 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2038 * top.h (quit_cover): Likewise.
2039 * defs.h (catch_errors): Likewise.
2041 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2043 * defs.h (XMALLOC): Define.
2044 * gdb-events.sh (XMALLOC): Delete macro.
2045 * gdb-events.c, gdb-events.h: Regenerate.
2046 * gdbarch.sh (XMALLOC): Delete macro.
2047 * gdbarch.c: Regenerate.
2048 * serial.c (XMALLOC): Delete macro.
2049 * ui-file.c (XMALLOC): Ditto.
2050 * ser-unix.h (XMALLOC): Ditto.
2051 * sh-tdep.c (XMALLOC): Ditto.
2052 * ui-out.c (XMALLOC): Ditto.
2053 * utils.c (XMALLOC): Ditto.
2054 * i386-tdep.c (XMALLOC): Ditto.
2055 * gdb-events.c (XMALLOC): Ditto.
2056 * d10v-tdep.c (XMALLOC): Ditto.
2057 * cli-out.c (XMALLOC): Ditto.
2059 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2060 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2061 * ui-file.c, ui-out.c: Ditto.
2063 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2065 * command.h (struct cmd_list_element): Add field context.
2066 (set_cmd_context, get_cmd_context): Declare.
2067 * cli/cli-decode.h: Ditto.
2068 * cli/cli-decode.c (get_cmd_context): New function.
2069 (set_cmd_context): New function.
2070 (add_cmd): Initialize context.
2071 Part of fixing PR gdb/145 and PR gdb/146.
2073 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2075 * cli/cli-decode.c (cmd_type): New function.
2076 * command.h (cmd_type): Declare.
2077 * infrun.c (set_schedlock_func): Call function cmd_type.
2078 * kod.c (kod_set_os): Call cmd_type.
2079 * cris-tdep.c (cris_version_update): Use function cmd_type.
2080 (cris_mode_update, cris_abi_update): Ditto.
2082 * command.h: (execute_cmd_post_hook): Declare.
2083 (execute_cmd_pre_hook): Declare.
2084 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2085 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2086 functions. Execute pre/post hook while ensuring that afterwords
2088 * top.c (execute_command): Use execute_cmd_post_hook, and
2089 execute_cmd_pre_hook to execute pre/post commands.
2090 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2092 (hook_stop_stub): Call execute_cmd_pre_hook.
2094 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2096 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2097 set'' and this leads to a core dump. Move xstrdup of
2098 operating_system to after check that it is not NULL.
2100 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2102 * kod.c (kod_set_os): Remove unnecessary check that
2103 ``command->type'' is set_cmd.
2105 * valprint.c (set_input_radix): Use input_radix.
2106 (set_output_radix): Use output_radix.
2107 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2110 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2112 * value.h (struct value): Delete field ``substring_addr''. Change
2113 aligner fields to force_doublest_align, force_longest_align,
2114 force_core_addr_align and force_pointer_aligh.
2116 * value.h (struct value): Fix typo in above change.
2118 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2120 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2121 to fix internal_error from ``maintenance print architecture''.
2123 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2125 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2126 for gcc versions after gcc-2.8.1.
2128 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2130 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2131 for method resolution. Restore adjustment of ``this'' pointer after
2132 calling value_struct_elt, which was accidentally removed during the
2135 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2137 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2139 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2141 * value.h (value_of_register): Update.
2143 2002-03-14 Richard Henderson <rth@redhat.com>
2145 * configure.in: Detect declaration for canonicalize_file_name.
2146 * utils.c (canonicalize_file_name): Declare, if needed.
2147 (gdb_realpath): Prefer realpath if available and usable.
2148 * config.in, configure: Rebuild.
2150 2002-03-14 Richard Henderson <rth@redhat.com>
2152 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2153 a constant array bound.
2155 * MAINTAINERS: Add myself to write-after-approval.
2157 2002-03-14 Michael Snyder <msnyder@redhat.com>
2159 * symfile.c (syms_from_objfile): Return immediately if no syms.
2160 (symbol_file_add): Return immediately if no syms.
2161 (find_sym_fns): Return immediately if no syms.
2163 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2165 * gdbserver/remote-util.c (remote_open): Print remote-side's
2166 IP address when remote debugging over the network.
2168 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2170 * config/sparc/fbsd.mh: Fix copyright.
2171 * config/sparc/fbsd.mt: Likewise.
2173 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2175 * MAINTAINERS: Fix typo in name of gdb warnings option.
2176 (x86-64): Fix formating so that this can be parsed by awk.
2178 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2180 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2181 * defs.h: Include "gdb/signals.h".
2182 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2184 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2186 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2187 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2190 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2191 Don Howard <dhoward@redhat.com>
2193 * mips-tdep.c (ST0_FR): Define.
2194 (mips2_fp_compat): New function, temporarily disabled.
2195 (mips_read_fp_register_single): New function.
2196 (mips_read_fp_register_double): New function.
2197 (mips_print_register): Use them.
2198 (do_fp_register_row): Likewise.
2200 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2202 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2205 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2207 * stabsread.c (read_member_functions): Fix is_stub test for
2208 static member functions, improve comment.
2210 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2212 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2213 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2214 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2215 commands that set boolean values.
2216 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2217 (arm_rdi_resume): Always initialize PC.
2218 (arm_rdi_open): Don't use rslt as a boolean.
2219 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2220 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2221 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2222 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2224 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2226 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2227 * configure: Rebuilt.
2229 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2231 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2232 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2234 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2236 * cli/cli-decode.c (set_cmd_completer): New function.
2237 * command.h (set_cmd_completer): Declare.
2238 * cli/cli-decode.h (set_cmd_completer): Ditto.
2240 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2241 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2242 * win32-nat.c (_initialize_inftarg): Ditto.
2243 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2244 * proc-api.c (_initialize_proc_api): Ditto.
2245 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2246 * source.c (_initialize_source): Ditto.
2247 * exec.c (_initialize_exec): Ditto.
2248 * solib.c (_initialize_solib): Ditto.
2249 * top.c (init_main): Ditto.
2250 * tracepoint.c (_initialize_tracepoint): Ditto.
2251 * symfile.c (_initialize_symfile): Ditto.
2252 * printcmd.c (_initialize_printcmd): Ditto.
2253 * infcmd.c (_initialize_infcmd): Ditto.
2254 * corefile.c (_initialize_core): Ditto.
2256 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2258 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2260 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2262 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2264 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2266 * NEWS: Update headings, 5.2 has branched.
2268 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2270 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2271 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2272 (register_addr, REGISTER_RAW_SIZE): Likewise.
2273 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2274 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2276 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2278 * MAINTAINERS (x86-64): Add myself.
2279 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2280 changed value_ptr -> struct value *
2282 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2284 * configure.host (sparc64-*-freebsd): Add.
2285 * configure.tgt: Likewise.
2286 * config/sparc/fbsd.mh: New file.
2287 * config/sparc/fbsd.mt: Likewise.
2288 * config/sparc/nm-fbsd.h: Likewise.
2289 * config/sparc/tm-fbsd.h: Likewise.
2291 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2293 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2294 regformats/reg-s390x.dat.
2296 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2298 * utils.c: Add FIXME explaining true/false problem.
2300 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2302 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2304 2002-02-28 Michael Chastain <mec@shout.net>
2306 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2308 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2310 * gdbserver/linux-s390-low.c: New file.
2311 * regformats/reg-s390.dat: New file.
2312 * regformats/reg-s390x.dat: New file.
2313 * gdbserver/configure.srv: Add S/390.
2314 * gdbserver/Makefile.in: Add S/390.
2315 * configure.tgt: Enable gdbserver for S/390.
2317 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2319 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2320 first line of the doc string for "info dos", except at the end of
2321 the sentence, since the short help stops at the first period.
2323 2002-02-28 Jason Merrill <jason@redhat.com>
2325 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2327 2002-02-27 Fred Fish <fnf@redhat.com>
2329 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2330 comment (dumy -> dummy).
2332 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2334 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2336 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2338 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2340 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2342 * gdbserver/acconfig.h: New file.
2343 * gdbserver/i387-fp.c: New file.
2344 * gdbserver/i387-fp.h: New file.
2345 * gdbserver/linux-x86-64.c: New file.
2346 * regformats/reg-x86-64.dat: New file.
2347 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2348 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2349 * gdbserver/configure.in: Add support for regsets.
2350 * gdbserver/config.in: Regenerate.
2351 * gdbserver/configure: Regenerate.
2352 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2353 * gdbserver/linux-low.h: New file.
2354 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2356 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2357 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2358 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2359 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2360 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2361 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2362 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2363 "i387-fp.h". Add PTRACE_GETREGS and friends.
2364 * gdbserver/regcache.c (supply_register): New function.
2365 (supply_register_by_name): New function.
2366 (collect_register): New function.
2367 (collect_register_by_name): New function.
2369 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2371 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2372 (config.status): Add configure.srv dependency.
2373 (server_h): Add config.h dependency.
2375 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2377 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2378 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2379 * gdbserver/configure.srv: Change i386-*-linux* to use
2382 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2384 * x86-64-tdep.c: Re-indent. Update copyright date.
2386 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2388 From Michal Ludvig <mludvig@suse.cz>:
2389 * x86-64-tdep.c (value.h): Delete.
2390 (gdb_assert.h): Include.
2391 (x86_64_register_convert_to_virtual,
2392 x86_64_register_convert_to_raw ): Add check which lets only
2393 floating-point values to be converted.
2394 (value_push): Delete.
2395 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2396 (i386_gdbarch_init): Number of register_bytes fixed.
2398 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2400 * MAINTAINERS: Add x86-64 target.
2402 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2404 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2405 * osfsolib.c (solib_map_sections): Ditto.
2406 * irix5-nat.c (solib_map_sections): Ditto.
2407 * corelow.c (gdb_check_format): Ditto.
2408 * symfile.c (symfile_bfd_open): Ditto.
2409 * solib.c (solib_map_sections): Ditto.
2412 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2414 * remote.c (_initialize_remote): By default, disable ``e'' and
2415 ``E'' step out-of-range packets.
2417 2002-02-26 Andreas Schwab <schwab@suse.de>
2419 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2420 m68k_linux_frame_saved_pc.
2421 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2423 (SIGCONTEXT_PC_OFFSET): Remove.
2424 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2425 m68k_linux_sigtramp_saved_pc): New functions.
2426 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2427 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2428 (UCONTEXT_PC_OFFSET): Define.
2429 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2430 non-RT and RT signal trampolines.
2432 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2434 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2435 (TARGET_NBPG, STACK_END_ADDR): Delete
2436 (VARIABLES_INSIDE_BLOCK): Delete.
2438 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2440 * utils.c (perror_with_name): Make string parameter constant.
2441 (print_sys_errmsg): Ditto.
2443 * defs.h (perror_with_name): Update.
2444 (print_sys_errmsg): Update.
2447 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2449 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2450 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2452 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2454 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2455 if it already matches the current architecture from the exec file.
2456 Include arch-utils.h for gdbarch_info_init prototype.
2457 * Makefile.in (rs6000-nat.o): Update dependencies.
2459 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2461 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2462 list of exported variables.
2464 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2466 * gdbserver/configure.srv: New file.
2467 * gdbserver/configure.in: Use configure.srv instead
2468 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2470 * gdbserver/configure: Regenerated.
2471 * gdbserver/terminal.h: New file.
2472 * gdbserver/Makefile.in: Update for configure changes. Remove
2473 more unneeded include paths.
2475 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2477 From wiz at danbala:
2478 * config/sparc/tm-sp64.h: Fix grammar and typos.
2481 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2483 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2484 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2485 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2486 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2487 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2488 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2489 * s390-tdep.c: Ditto.
2490 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2491 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2492 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2493 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2494 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2495 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2496 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2497 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2498 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2499 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2502 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2504 * lin-thread.c: Delete file.
2505 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2506 to gdb_proc_service.h.
2507 * configure: Re-generate.
2509 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2510 * serial.c (serial_open): Delete check for "ocd".
2513 * Makefile.in (linux-thread.o): Delete target.
2514 * linux-thread.c: Delete file.
2516 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2517 renamed SH files to be consistent.
2519 * symtab.c (sort_search_symbols): Use xfree.
2521 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2523 * arm-linux-tdep.c (arm_linux_init_abi): Register
2524 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2525 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2526 definition with undef, since we don't want the sysvr4 definition.
2527 (SKIP_TRAMPOLINE_CODE): Likewise.
2529 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2531 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2533 * configure.in: (AC_CHECK_FUNCS) Added test for
2534 canonicalize_file_name Regenerated.
2535 * config.in, configure: Regenerated.
2536 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2537 defined use canonicalize_file_name.
2539 2002-02-23 Michael Chastain <mec@shout.net>
2541 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2543 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2545 * README: Remove references to cygnus.com.
2546 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2547 dot com'' form. Remove references to cygnus.com and sourceware.
2549 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2551 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2552 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2553 1003.1-2001 no longer allows "head -1".
2554 * gdb/Makefile.in (version.c): Likewise.
2555 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2556 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2557 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2559 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2561 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2562 * command.h (cmd_cfunc_eq): Declare.
2563 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2565 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2566 ``struct cmd_list_element *''.
2567 * cli/cli-cmds.c (is_complete_command): Update. Use
2569 * top.c (execute_command): Pass the command to
2570 is_complete_command.
2571 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2573 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2575 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2576 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2577 architecture defines.
2578 * s390-tdep.c (s390_gdbarch_init): Likewise.
2580 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2582 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2583 (arm_linux_push_arguments): Likewise.
2584 (arm_linux_init_abi): Register them. Also register linux-specific
2586 (find_minsym_and_objfile): Use strcmp, not STREQ.
2587 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2588 (arm_linux_call_dummy_words): Delete declaration.
2589 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2590 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2592 (LOWEST_PC): Delete.
2594 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2596 * maint.c (print_section_info): Do not prepend `0x' to filepos
2597 output, it will be handled by local_hex_string_custom.
2599 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2601 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2602 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2603 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2605 2002-02-22 Jim Blandy <jimb@redhat.com>
2607 Indicate that the bcache functions don't change the strings
2609 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2610 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2612 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2614 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2616 2002-02-21 Christopher Faylor <cgf@redhat.com>
2618 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2619 find the complete path to a loaded DLL.
2621 2002-02-21 Fred Fish <fnf@redhat.com>
2623 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2624 that marks the end of the range of a function, enter a line number
2625 entry that has a line number of zero and a PC offset that matches
2626 the end of the function. This starts a range of PC's for which no
2627 line number information is known.
2628 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2629 PC's for which no line number info is found (line number is zero)
2630 then we didn't find any valid line information.
2631 * symtab.h: Document use of zero line number entry.
2633 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2635 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2636 (have_ptrace_getvrregs): Define for run time checks.
2637 (gdb_vrregset_t): New type for Altivec register handling.
2638 (fetch_register, store_register): Fetch/store altivec register
2640 (fetch_altivec_register, store_altivec_register): New functions.
2641 (supply_vrregset, fill_vrregset): New functions.
2642 (fetch_altivec_registers, store_altivec_registers): New functions.
2643 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2646 2002-02-21 Jiri Smid <smid@suse.cz>
2648 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2650 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2652 * Makefile.in (armnbsd-nat.o): Update dependencies.
2653 * armnbsd-nat.c (supply_gregset): New function. Common code to
2654 supply the integer register set.
2655 (supply_fparegset): New function. Similar for FPA registers.
2656 (fetch_regs, fetch_fp_regs): Use them.
2657 (fetch_core_registers): Likewise.
2658 (fetch_elfcore_registers): New function.
2659 (arm_netbsd_elfcore_fns): New core-file type specification.
2660 (_initialize_arm_netbsd_nat): Register it.
2662 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2664 * armnbsd-nat.c: Include gdbcore.h.
2665 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2666 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2667 'void' to declaration, to shut up ARI.
2668 (fetch_core_registers): Make static. Rewrite using supply_register.
2669 (arm_netbsd_core_fns): New core-file type specification.
2670 (_initialize_arm_netbsd_nat): New function.
2672 2002-02-21 Christopher Faylor <cgf@redhat.com>
2674 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2677 2002-02-20 Christopher Faylor <cgf@redhat.com>
2679 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2682 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2684 * jv-exp.y (parse_number): Change type of implicit longs
2685 to builtin_type_uint64.
2687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2689 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2690 to be an integer instead of a `union wait'.
2692 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2694 * mips-linux-nat.c: Call the operating system GNU/Linux.
2695 * mips-linux-tdep.c: Likewise.
2696 * mips-tdep.c: Likewise.
2698 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2701 * jv-exp.y (parse_number): Handle 64-bit integers.
2703 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2705 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2706 AC_STDC_HEADERS to AC_HEADER_STDC.
2707 * gdbserver/configure: Regenerated.
2709 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2711 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2713 * sparc-tdep.c (get_longjmp_target): Likewise.
2715 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2717 * News: Add news about ARM and Multi-arch. Mention the new target
2720 2002-02-19 Jim Blandy <jimb@redhat.com>
2722 * stabsread.c (error_type_complaint): Improve error message.
2724 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2726 * gdbserver/README: Update documentation.
2727 * gdbserver/configure.in: Update configury to match documentation.
2728 * gdbserver/Makefile.in: Likewise.
2729 * gdbserver/configure: Regenerated.
2730 * gdbserver/aclocal.m4: New file, generated by aclocal.
2731 * gdbserver/config.in: New file, generated by autoheader.
2733 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2735 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2738 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2740 * arm-tdep.h (enum arm_float_model): New enum.
2741 (struct gdbarch_tdep): Add fp_model.
2742 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2743 up floating-point conversions until we know the floating-point model
2744 in use by the inferior. Don't complain about being unable to
2745 determine the ABI of the inferior when we don't have one.
2746 (arm_extract_return_value): Support different floating-point models.
2747 (arm_store_return_value): Likewise.
2748 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2750 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2752 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2754 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2755 of ``current_gdbarch''.
2757 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2759 * armnbsd-nat.c : ANSIfy all function declarations.
2760 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2761 (fetch_inferior_registers): Re-implement in terms of above.
2762 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2763 (store_inferior_registers): Re-implement in terms of above.
2765 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2767 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2769 * arm-linux-tdep.c: Likewise.
2770 * config/arm/tm-linux.h: Likewise.
2772 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2774 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2775 * config/arm/nbsd.mt (TM_FILE): Delete.
2776 * config/arm/tm-nbsd.h: Delete.
2778 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2780 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2781 Initialize CALL_DUMMY_LENGTH.
2783 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2785 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2787 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2788 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2789 defines one thing and that is incorrect for this port.
2790 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2792 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2794 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2796 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2798 * win32-nat.c (display_selector): New function. Displays information
2799 about the information returned by GetThreadSelectorEntry API function.
2800 (display_selectors): New function. Displays the infomation of
2801 the selector given as argument, or of CS, DS ans FS selectors
2802 if no argument is given.
2803 ( _initialize_inftarg): Add "w32" as info prefix command.
2804 Add "info w32 selector" as command calling display_selectors.
2806 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2808 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2809 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2812 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2814 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2816 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2818 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2819 (arm_fix_call_dummy): Call it.
2820 (arm_call_dummy_breakpoint_offset): Delete.
2821 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2822 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2824 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2826 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2827 Default to func_frame_chain_valid.
2828 * gdbarch.h, gdbarch.c: Re-generate.
2829 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2831 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2833 * ppc-linux-nat.c: Update copyright.
2834 (fetch_register, store_register): Add tid parameter, don't compute
2836 (fetch_ppc_registers, store_ppc_registers): Add tid
2837 parameter. Pass it along to callees.
2838 (fetch_inferior_registers, store_inferior_registers): Compute tid
2839 here, and pass it to calleed functions.
2840 (fill_gregset, supply_fpregset): Clean up formatting.
2842 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2844 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2845 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2847 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2849 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2850 * gdbarch.c gdbarch.h: Regenerate.
2851 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2853 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2854 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2855 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2857 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2858 * arm-tdep.c (arm_get_longjmp_target): New function.
2859 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2860 this to a positive value register arm_get_longjmp_target as the
2862 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2863 (arm_linux_init_abi): Set up longjmp description in tdep.
2864 * armnbsd-nat.c (get_longjmp_target): Delete.
2865 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2866 description in tdep.
2867 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2868 (get_longjmp_target): Delete declaration.
2869 (GET_LONGJMP_TARGET): Delete.
2870 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2871 (GET_LONGJMP_TARGET): Delete.
2873 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2875 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2876 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2877 of ``current_gdbarch''.
2879 2002-02-17 Tom Tromey <tromey@redhat.com>
2881 * cli/cli-cmds.c (compare_strings): New function.
2882 (complete_command): Only print each unique item once.
2883 * completer.h (complete_line): Declare.
2884 * completer.c (complete_line): New function.
2885 (line_completion_function): Use it.
2887 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2889 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2890 * gdbarch.h, gdbarch.c: Re-generate.
2892 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2894 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2896 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2898 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2899 * valops.c (value_arg_coerce): Don't take the address of a reference
2900 to convert an argument to a reference.
2902 2002-02-15 Christopher Faylor <cgf@redhat.com>
2904 * win32-nat.c (get_image_name): New function.
2905 (handle_load_dll): Use get_image_name function.
2906 (get_child_debug_event): Avoid registering debug events until possibly
2907 execed process is started.
2908 (child_create_inferior): Allow invocation via shell so that command
2909 line redirection, etc. works ok.
2910 (_initialize_inftarg): Add new command: "set shell" to control whether
2911 a shell is used to start a process.
2913 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2915 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2916 instead of find_register_by_number.
2917 (cannot_store_register): Likewise.
2919 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2921 * dwarf2read.c: Replace fprintf (stderr, ...) by
2922 fprintf_unfiltered (gdb_stderr, ...).
2924 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2926 * gdbserver/gdbserver.1: Document --attach.
2928 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2930 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2932 * arm-tdep.c (arm_default_arm_le_breakpoint)
2933 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2934 (arm_default_thumb_be_breakpoint): New. Initialize them from
2935 traditional breakpoint defines.
2936 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2937 (arm_gdbarch_init): Initialize new breakpoint variables.
2938 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2939 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2940 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2941 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2943 (arm_netbsd_init_abi_common): ... here; new function.
2944 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2945 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2946 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2947 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2949 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2951 * arm-tdep.h (enum arm_abi): New enum.
2952 (struct gdbarch_tdep): New structure.
2953 (LOWEST_PC): Provide a default.
2954 (arm_gdbarch_register_os_abi): Declare new function.
2955 * arm-tdep.c (arm_abi_names): New array.
2956 (process_note_abi_tag_sections): New function.
2957 (get_elfosabi): New function.
2958 (arm_gdbarch_register_os_abi): New function.
2959 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2960 support for that ABI has been built in, then call the appropriate
2961 configuration routine. Use gdbarch_num_regs() to get the number
2963 (arm_dump_tdep): New function.
2964 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2965 place-holder functions.
2966 (_initialize_arm_tdep): Register them.
2967 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2969 * armnbsd-tdep.c: New file.
2970 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2971 * config/arm/nbsd.mt (TDEPFILES): Add it.
2972 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2974 * armnbsd-nat.c: Include regcache.h.
2975 * Makefile.in (armnbsd-nat.o): Update dependency list.
2977 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2979 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2981 * gdbserver/Makefile.in: Fix typos in target rules.
2983 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2985 Fix part of PR gdb/267.
2986 * linespec.c (find_methods): Handle constructors specially for now.
2988 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2990 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2992 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2993 standard_coerce_float_to_double().
2995 2002-02-14 Christopher Faylor <cgf@redhat.com>
2997 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3000 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3002 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3003 find_variant_by_name, because it confuses the multiarch
3004 framework. Return NULL if there isn't an architecture with the
3005 user supplied name, instead of forcing a different one without
3006 recording the change with the multiarch machinery.
3007 (find_variant_by_name): Delete.
3009 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3011 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3012 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3014 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3016 * stack.c (print_frame_info_base): When calling
3017 print_frame_info_listing_hook, set current_source_symtab.
3019 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3021 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3022 and remove unused $(INCLUDE_DIR).
3023 Add regcache.c to OBS.
3024 Add generated register protocol files to clean target.
3025 Update dependencies for new objects, obsolete old target code.
3027 * gdbserver/linux-low.c: Remove all platform-specific code to
3028 new files. Remove various dead code. Update to use regcache
3030 * gdbserver/remote-utils.c (fromhex): Add return statement
3032 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3034 (input_interrupt): Add integer parameter to match prototype
3035 of a signal handler.
3036 (outreg): Use register_data ().
3037 (prepare_resume_reply): Use gdbserver_expedite_regs.
3038 * gdbserver/server.c (main): Dynamically allocate own_buf because
3039 PBUFSIZ is no longer constant. Use registers_to_string () and
3040 registers_from_string ().
3041 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3042 for error (), fatal (), and warning (). Update definition of
3043 PBUFSIZ to use regcache functionality. Add include guard.
3044 * gdbserver/utils.c (fatal): Add missing ``const''.
3045 (warning): New function.
3047 * regformats/regdat.sh: Include "regcache.h" in generated files.
3048 Provide init_registers () function.
3049 * regformats/regdef.h: Add prototype for set_register_cache ().
3052 * gdbserver/linux-arm-low.c: New file.
3053 * gdbserver/linux-i386-low.c: New file.
3054 * gdbserver/linux-ia64-low.c: New file.
3055 * gdbserver/linux-m68k-low.c: New file.
3056 * gdbserver/linux-mips-low.c: New file.
3057 * gdbserver/linux-ppc-low.c: New file.
3058 * gdbserver/linux-sh-low.c: New file.
3060 * gdbserver/regcache.c: New file.
3061 * gdbserver/regcache.h: New file.
3063 * gdbserver/low-linux.c: Removed obsolete file.
3065 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3067 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3068 * config/i386/linux.mt: Likewise.
3069 * config/ia64/linux.mt: Likewise.
3070 * config/m68k/linux.mh: Likewise.
3071 * config/powerpc/linux.mh: Likewise.
3072 * config/mips/linux.mt: Likewise.
3074 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3076 * config/i386/i386lynx.mh: Mark gdbserver variables
3077 as (currently) obsolete for this target.
3078 * config/i386/nbsd.mt: Likewise.
3079 * config/i386/nbsdelf.mt: Likewise.
3080 * config/m32r/m32r.mt: Likewise.
3081 * config/m68k/m68klynx.mh: Likewise.
3082 * config/m68k/nbsd.mt: Likewise.
3083 * config/m68k/sun3os4.mh: Likewise.
3084 * config/mips/vr5000.mt: Likewise.
3085 * config/ns32k/nbsd.mt: Likewise.
3086 * config/pa/hppabsd.mh: Likewise.
3087 * config/pa/hppaosf.mh: Likewise.
3088 * config/powerpc/nbsd.mt: Likewise.
3089 * config/rs6000/rs6000lynx.mh: Likewise.
3090 * config/s390/s390.mt: Likewise.
3091 * config/s390/s390x.mt: Likewise.
3092 * config/sparc/sparclynx.mh: Likewise.
3093 * config/sparc/sun4os4.mh: Likewise.
3094 * config/i386/x86-64linux.mt: Likewise.
3095 * config/sparc/linux.mh: Likewise.
3097 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3099 * configure.tgt: Configure gdbserver only for known working
3100 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3101 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3102 SUBDIRS if it is configured. Update comment for ${nativefile}.
3103 * configure: Regenerated.
3105 2002-02-13 Michael Snyder <msnyder@redhat.com>
3107 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3109 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3110 (default_gcore_mach): Just return 0, work around a problem in bfd.
3111 (default_gcore_target): OK to return NULL if exec_bfd is null.
3112 (make_mem_sec): Use a cast, avoid a warning.
3114 * procfs.c (find_memory_regions_callback): Use a cast instead of
3115 calling host_pointer_to_address (which complains if
3116 sizeof (host pointer) != sizeof (target pointer)).
3117 (procfs_make_note_section): Avoid overflow in psargs string.
3119 * procfs.c (procfs_make_note_section): Make the default
3120 implementation return an error.
3122 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3124 * procfs.c (procfs_make_note_section): Provide a default definition
3125 (for alpha-dec-osf4.0f). Fix typos.
3127 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3129 * linux-proc.c: Add include of regcache.h.
3130 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3132 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3134 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3135 * memattr.c (create_mem_region): Disallow useless empty region.
3136 Regions are half-open intervals, so allow [A..B) [B..C) as
3139 2002-02-13 Michael Chastain <mec@shout.net>
3141 * defs.h: Kill CONST_PTR.
3142 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3143 * c-lang.c (c_builtin_types): Likewise.
3144 * ch-lang.c (ch_builtin_types): Likewise.
3145 * f-lang.c (f_builtin_types): Likewise.
3146 * language.c (unknown_builtin_types): Likewise.
3147 * m2-lang.c (m2_builtin_types): Likewise.
3148 * p-lang.c (pascal_builtin_types): Likewise.
3149 * scm-lang.c (c_builtin_types): Likewise.
3151 2002-02-13 Keith Seitz <keiths@redhat.com>
3153 * arm-tdep.h (arm_get_next_pc): Add declaration.
3155 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3157 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3158 with other related struct-returning functions.
3159 (arm_extract_struct_value_address): New function.
3160 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3161 initialize float_format, double_format and long_double_format as
3162 appropriate to the endianness of the target.
3163 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3164 (arm_use_struct_convention): Delete declaration.
3165 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3167 2002-02-13 Keith Seitz <keiths@redhat.com>
3169 * defs.h (core_addr_to_string_nz): New function.
3171 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3173 Apply missing bits of 2002-01-15 patch.
3174 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3175 (fill_fpregset): Use i387_fill_fsave.
3177 2002-02-12 Keith Seitz <keiths@redhat.com>
3179 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3180 (core_addr_to_string_nz): New function.
3182 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3184 * arm-linux-nat.c: Really include arm-tdep.h.
3185 * config/arm/tm-linux.h (struct type, struct value): Declare.
3187 2002-02-11 Michael Snyder <msnyder@redhat.com>
3189 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3190 (gcore section): Ifdef for Solaris and Unixware only.
3191 (procfs_do_thread_registers): Unixware needs one lwpstatus
3192 per thread (not one prstatus or pstatus).
3193 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3194 not over all gdb threads. For unixware, call elfcore_write_pstatus
3195 once before iterating over threads.
3197 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3199 * arm-tdep.h: New file.
3200 * arm-tdep.c: Include arm-tdep.h.
3201 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3202 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3203 (arm_print_float_info, arm_register_type, convert_to_extended)
3204 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3205 (arm_extract_return_value, arm_register_name): Make static.
3206 (arm_software_single_step): Similarly. Fix types in declaration.
3207 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3208 (arm_store_return_value, arm_store_struct_return): New functions.
3209 (arm_gdbarch_init): Register the above functions. Also register
3210 call_dummy_start_offset, sizeof_call_dummy_words,
3211 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3212 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3213 max_register_virtual_size, register_size. Set up
3214 prologue_cache.saved_regs here, rather than ...
3215 (_initialize_arm_tdep): ... here.
3216 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3218 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3219 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3220 (arm_print_float_info, arm_register_type, convert_to_extended)
3221 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3222 (arm_extract_return_value, arm_register_name): Delete declarations.
3223 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3224 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3225 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3226 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3227 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3228 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3229 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3230 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3231 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3232 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3233 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3234 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3236 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3237 * remote-rdi.c remote-rdp.c: Likewise.
3238 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3239 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3240 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3243 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3244 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3245 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3246 from non-ARM_ prefixed definitions.
3247 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3249 * remote-rdi.c remote-rdp.c: Likewise.
3250 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3252 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3254 * arm-tdep.c (arm_frameless_function_invocation)
3255 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3256 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3257 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3258 (arm_pop_frame, arm_get_next_pc): Make static.
3259 (arm_gdbarch_init): Register above in gdbarch structure.
3260 (arm_read_fp): Renamed from arm_target_read_fp.
3261 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3262 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3263 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3264 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3265 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3266 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3267 (arm_pc_is_thumb_dummy): Delete declarations.
3268 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3269 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3270 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3271 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3273 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3275 * symtab.c (compare_search_syms): New function.
3276 (sort_search_symbols): New function.
3277 (search_symbols): Sort symbols after searching rather than
3280 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3282 * NEWS: Linux -> GNU/Linux.
3284 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3286 * gdbarch.sh: For for level one methods, disallow a definition
3287 when partially multi-arched. Add comments explaining rationale.
3288 * gdbarch.h: Re-generate.
3290 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3292 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3295 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3297 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3299 * gdbarch.c: Re-generate.
3301 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3303 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3304 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3307 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3309 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3311 (PUSH_ARGUMENTS): Switch to using predefault.
3312 * gdbarch.c: Regenerate.
3314 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3316 * valops.c (PUSH_ARGUMENTS): Delete definition.
3317 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3318 partial. Default to default_push_arguments.
3319 * gdbarch.h, gdbarch.c: Regenerate.
3321 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3323 * defs.h (throw_exception): Rename return_to_top_level. Update
3325 * utils.c (error_stream, internal_verror, quit): Ditto.
3326 * top.c (throw_exception, catcher): Ditto.
3327 * sparclet-rom.c (sparclet_load): Ditto.
3328 * remote.c (interrupt_query, minitelnet): Ditto.
3329 * remote-sds.c (interrupt_query): Ditto.
3330 * remote-mips.c (mips_error, mips_kill): Ditto.
3331 * ocd.c (interrupt_query): Ditto.
3332 * monitor.c (monitor_interrupt_query): Ditto.
3333 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3334 * target.h: Update comment.
3336 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3338 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3340 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3341 default_double_format.
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343 * findvar.c (floatformat_unknown): Delete variable definition.
3344 * doublest.h (floatformat_unknown): Delete variable declaration.
3346 2002-02-09 Jim Blandy <jimb@redhat.com>
3348 * stabsread.c (read_type): Add code to parse Sun's syntax for
3349 prototyped function types.
3351 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3353 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3354 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3356 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3358 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3359 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3360 now _initialize_xcoffsolib gets called again and overrides the
3361 commands from solib.c in a native configuration.
3363 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3365 * doublest.c (store_typed_floating): Don't try to return a value.
3368 2002-02-08 Jim Blandy <jimb@redhat.com>
3370 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3371 is prototyped and has no arguments, print its argument list as
3374 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3376 * MAINTAINERS (write-after-approval): Add myself.
3377 (paper-trail): I've escaped!
3379 2002-02-08 Christopher Faylor <cgf@redhat.com>
3381 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3383 (_initialize_check_for_gdb_ini): Ditto.
3385 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3387 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3388 xaprintf -> xasprintf.
3390 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3392 * win32-nat.c: Remove use of printf and sprintf functions.
3394 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3396 * arm-tdep.c (arm_frame_chain_valid): Make static.
3397 (arm_push_arguments): Likewise.
3398 (arm_gdbarch_init): New function.
3399 (_initialize_arm_tdep): Call it.
3400 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3401 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3402 (FRAME_CHAIN_VALID): Delete.
3403 (arm_frame_chain_valid): Delete declaration.
3404 (PUSH_ARGUMENTS): Delete.
3405 (arm_push_arguments): Delete declaration.
3406 (CALL_DUMMY_P): Delete.
3408 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3409 Corinna Vinschen <vinschen@redhat.com>
3411 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3412 on builtin float types.
3414 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3416 * utils.c: Include <curses.h> before "bfd.h".
3417 * tui/tui-hooks.c: Likewise.
3418 * tui/tui.c: Likewise.
3419 * tui/tuiCommand.c: Likewise.
3420 * tui/tuiData.c: Likewise.
3421 * tui/tuiDataWin.c: Likewise.
3422 * tui/tuiDisassem.c: Likewise.
3423 * tui/tuiGeneralWin.c: Likewise.
3424 * tui/tuiIO.c: Likewise.
3425 * tui/tuiLayout.c: Likewise.
3426 * tui/tuiRegs.c: Likewise.
3427 * tui/tuiSource.c: Likewise.
3428 * tui/tuiSourceWin.c: Likewise.
3429 * tui/tuiStack.c: Likewise.
3430 * tui/tuiWin.c: Likewise.
3432 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3434 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3435 to include space for pseudoregs as well. Update loops accordingly.
3436 (sh_fp_frame_init_saved_regs): Ditto.
3437 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3439 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3441 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3442 Add Richard Earnshaw to Arm maintainers.
3444 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3446 * defs.h (warning_begin): Delete declaration.
3448 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3451 2002-02-07 Michael Snyder <msnyder@redhat.com>
3453 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3454 Logic bug, remove misplaced else.
3456 2002-02-07 Klee Dienes <klee@apple.com>
3458 * fork-inferior.c (fork_inferior): Add '!' to the list of
3459 characters that need to be quoted when building a string for the
3460 shell. Quote '!' specifically with a backslash, since CSH chokes
3461 when trying to evaluate "str!str".
3463 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3465 * rdi-share/host.h: Only provide a typedef for bool if it is not
3468 2002-02-04 Michael Snyder <msnyder@redhat.com>
3470 * breakpoint.h (enum bptype): Add new overlay event bp type.
3471 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3473 * breakpoint.c (create_internal_breakpoint): New function.
3474 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3475 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3476 (create_thread_event_breakpoint): Ditto.
3477 (create_solib_event_breakpoint): Ditto.
3478 (create_overlay_event_breakpoint): New function.
3479 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3480 (update_breakpoints_after_exec): Delete and re-initialize
3481 overlay event breakpoints after an exec. Add FIXME comment
3482 about longjmp breakpoint.
3483 (print_it_typical): Ignore overlay event breakpoints.
3484 (print_one_breakpoint): Ditto.
3486 (bpstat_what): Do not stop for overlay event breakpoints.
3487 (delete_breakpoint): Don't delete overlay event breakpoints.
3488 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3489 (breakpoint_re_set): Re-create overlay event breakpoint.
3491 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3492 (overlay_manual_command): Disable overlay breakpoints.
3493 (overlay_off_command): Disable overlay breakpoints.
3495 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3497 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3498 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3499 to here from config/tm-arm.h.
3500 (coff_sym_is_thumb): Make static.
3501 (arm_elf_make_msymbol_special): New function.
3502 (arm_coff_make_msymbol_special): New function.
3503 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3504 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3505 (coff_sym_is_thumb): Delete declaration.
3506 (arm_elf_make_msymbol_special): Declare.
3507 (arm_coff_make_msymbol_special): Declare.
3508 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3509 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3511 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3513 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3515 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3517 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3518 * gdbarch.c gdbarch.h: Regenerate.
3519 * arch-utils.c (default_print_float_info): New function.
3520 * arch-utils.h (default_print_float_info): Prototype it.
3521 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3522 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3523 (PRINT_FLOAT_INFO): Document it.
3525 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3526 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3527 (PRINT_FLOAT_INFO): Define.
3529 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3531 * win32-nat.c (_initialize_check_for_gdb_ini):
3532 Add typecast to sprintf argument to suppress a warning.
3534 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3536 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3537 to allow easier handling of pass state.
3538 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3539 that gives exception name and address.
3540 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3541 and set last_sig value to ourstatus->value.sig. Some missing
3543 (child_continue): Correctly report continue_status.
3544 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3545 TARGET_SIGNAL_0 (new default value).
3546 (child_resume): consider sig argument passed to decide if
3547 the exception should be passed to debuggee or not.
3549 2002-02-05 Michael Snyder <msnyder@redhat.com>
3551 * regcache.c (fetch_register): Call target_fetch_register
3552 only if we don't call FETCH_PSEUDO_REGISTER.
3553 (store_register): Call target_store_register only if we
3554 don't call STORE_PSEUDO_REGISTER.
3556 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3558 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3559 ELF_MAKE_MSYMBOL_SPECIAL.
3560 * gdbarch.c, gdbarch.h: Regenerate.
3561 * arch-utils.c (default_make_msymbol_special): New function.
3562 * arch-utils.h (default_make_msymbol_special): Export.
3563 * elfread.c (elf_symtab_read): Compile use of
3564 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3566 * coffread.c (coff_symtab_read): Ditto, for
3567 COFF_MAKE_MSYMBOL_SPECIAL.
3569 2002-02-05 Jim Blandy <jimb@redhat.com>
3571 * solib-svr4.c (svr4_truncate_ptr): New function.
3572 (svr4_relocate_section_addresses): Do the address arithmetic with
3573 the appropriate truncation for target addresses, even when
3574 CORE_ADDR is larger than a target address.
3576 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3578 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3581 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3583 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3586 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3588 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3590 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3592 * gdbserver/linux-low.c: Remove unused include files.
3594 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3596 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3597 (read_inferior_memory): Use it.
3598 (write_inferior_memory): Likewise.
3600 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3602 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3603 grubbing through sys_errlist.
3605 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3607 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3609 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3610 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3612 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3614 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3615 (do_sfunc, set_cmd_sfunc): New functions.
3617 * command.h (struct cmd_list_element): Add field func.
3618 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3619 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3620 * cli/cli-decode.h: Ditto.
3622 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3623 (help_all, help_cmd_list): Ditto.
3624 (find_cmd, complete_on_cmdlist): Ditto.
3625 * top.c (execute_command): Ditto.
3627 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3630 * infcmd.c (notice_args_read): Fix function signature.
3632 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3633 * cli/cli-decode.c (add_set_cmd): Ditto.
3634 * utils.c (initialize_utils): Ditto.
3635 * maint.c (_initialize_maint_cmds): Ditto.
3636 * infrun.c (_initialize_infrun): Ditto.
3637 * demangle.c (_initialize_demangler): Ditto.
3638 * remote.c (add_packet_config_cmd): Ditto.
3639 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3640 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3641 * proc-api.c (_initialize_proc_api): Ditto.
3642 * kod.c (_initialize_kod): Ditto.
3643 * valprint.c (_initialize_valprint): Ditto.
3644 * top.c (init_main): Ditto.
3645 * infcmd.c (_initialize_infcmd): Ditto.
3646 * corefile.c (_initialize_core): Ditto.
3647 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3648 * arch-utils.c (initialize_current_architecture): Ditto.
3649 (_initialize_gdbarch_utils): Ditto.
3650 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3652 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3653 * wince.c (_initialize_inftarg): Ditto.
3654 * symfile.c (_initialize_symfile): Ditto.
3655 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3656 * language.c (_initialize_language): Ditto.
3657 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3659 2002-02-04 Michael Snyder <msnyder@redhat.com>
3661 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3663 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3665 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3666 Add rules for building the register data files.
3668 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3670 * regformats/regdat.sh: Add braces to the definition of
3671 expedite_regs_${arch}.
3673 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3675 * regformats/regdef.h (struct reg): Add comment describing the
3676 requirements for offset and size fields.
3678 2002-02-04 Andreas Schwab <schwab@suse.de>
3680 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3681 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3683 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3685 * gdbarch.sh (copyright): Update years in generated header.
3686 (SMASH_TEXT_ADDRESS): Add rule.
3687 * gdbarch.h, gdbarch.c: Re-generate.
3688 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3689 * dbxread.c: Likewise.
3690 * dwarfread.c: Likewise.
3691 * elfread.c: Likewise.
3692 * somread.c: Likewise.
3694 * arm-tdep.c (arm_smash_text_address): New function.
3695 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3697 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3699 Add support for hardware watchpoints on win32 native.
3700 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3701 CONTEXT_DEBUG_REGISTERS.
3702 (dr variable): New variable. Static array containing a local copy
3704 (debug_registers_changed): New variable. Reflects when debug registers
3705 are changed and need to be written to inferior.
3706 (debug_registers_used): New variable. Reflects when any debug register
3707 was set, used when new threads are created.
3708 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3710 (thread_rec): Set dr array if id is the thread of current_event .
3711 (child_continue, child_resume): Change the debug registers for all
3712 threads if debug_registers_changed.
3713 (child_add_thread): Change the debug registers if debug_registers_used.
3714 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3715 Link nm.h to new nm-cygwin.h file.
3716 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3717 of hardware registers.
3719 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3721 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3722 Restore behavour broken by 2002-01-20 Andrew Cagney
3723 <ac131313@redhat.com> IEEE_FLOAT removal.
3725 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3727 * c-valprint.c (c_val_print): Pass a proper valaddr to
3728 cp_print_class_method.
3729 * valops.c (search_struct_method): If there is only one method
3730 and args is NULL, return that method.
3732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3734 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3735 accessing tag_name directly.
3737 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3739 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3740 of accessing tag_name directly.
3742 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3745 * gdbtypes.c (replace_type): New function.
3746 * gdbtypes.h (replace_type): Add prototype.
3747 * stabsread.c (read_type): Use replace_type.
3749 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3751 * Makefile.in (memattr.o): Add missing dependencies rule.
3753 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3755 * breakpoint.c (break_at_finish_command): Really export.
3756 (break_at_finish_at_depth_command): Ditto.
3757 (tbreak_at_finish_command): Ditto.
3758 * hppa-tdep.c: Include completer.h.
3759 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3760 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3762 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3764 * utils.c (do_write): New function.
3765 (error_stream): Rewrite combining the code from error_begin and
3767 (verror): Rewrite using error_stream.
3768 (error_begin): Delete function.
3770 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3772 * utils.c (error_begin): Make static.
3773 * defs.h (error_begin): Delete declaration.
3775 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3776 (decode_line_1): Use cplusplus_error instead of error_begin,
3777 cplusplus_hint and return_to_top_level.
3778 * coffread.c (coff_symfile_read): Use error instead of error_begin
3779 and return_to_top_level.
3780 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3782 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3784 * language.h (type_error, range_error): Make string parameter
3786 * language.c (warning_pre_print): Delete extern declaration.
3787 * dwarfread.c (warning_pre_print): Ditto.
3788 * language.c (type_error, range_error): Rewrite to use verror and
3789 vwarning instead of warning_begin.
3791 2002-02-01 Michael Snyder <msnyder@redhat.com>
3793 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3794 (set_ignore_count): Move misplaced comment back where it belongs.
3796 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3798 * command.h (NO_FUNCTION): Delete macro.
3799 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3800 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3801 * tracepoint.c (_initialize_tracepoint): Ditto.
3802 * cli/cli-decode.c (add_set_cmd): Ditto.
3803 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3805 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3807 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3808 Update ``this'' pointer when calling virtual functions.
3810 2002-02-01 Michael Snyder <msnyder@redhat.com>
3812 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3813 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3815 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3817 * regformats/reg-arm.dat: New file.
3818 * regformats/reg-i386.dat: New file.
3819 * regformats/reg-ia64.dat: New file.
3820 * regformats/reg-m68k.dat: New file.
3821 * regformats/reg-mips.dat: New file.
3822 * regformats/reg-ppc.dat: New file.
3823 * regformats/reg-sh.dat: New file.
3824 * regformats/regdef.h: New file.
3825 * regformats/regdat.sh: New file.
3827 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3829 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3830 (arm_frame_args_address, arm_frame_locals_address): New functions.
3831 (arm_frame_num_args): New function.
3832 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3833 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3834 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3836 2002-01-31 Michael Snyder <msnyder@redhat.com>
3838 * breakpoint.c (break_at_finish_command): Export.
3839 (break_at_finish_at_depth_command): Export.
3840 (tbreak_at_finish_command): Export.
3841 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3842 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3843 "tbreak" commands, which are HPPA specific.
3845 * printcmd.c (disassemble_command): Remove an ancient
3846 artifact of an old merge.
3848 * symfile.h (enum overlay_debugging_state):
3849 Define enum constant values for overlay mode.
3850 * symfile.c (overlay_debugging): Use enums instead of literals.
3851 (overlay_is_mapped, overlay_auto_command,
3852 overlay_manual_command): Ditto.
3854 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3855 breakpoint_here_p, breakpoint_inserted_here_p,
3856 breakpoint_thread_match, bpstat_stop_status,
3857 describe_other_breakpoints, check_duplicates, clear_command):
3858 Coding standard fixes.
3860 * target.c (target_xfer_memory): Add spaces, coding standard.
3861 (do_xfer_memory): Add missing line to trust-readonly
3862 code: check bfd SEC_READONLY flag for section.
3864 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3866 * PROBLEMS: Fix typo, 5.1->5.1.1.
3868 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3870 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3871 data symbols, since we search based on textlow and texthigh.
3872 (find_pc_sect_symtab): Likewise.
3874 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3876 * defs.h (vwarning): Declare.
3877 * utils.c (vwarning): New function.
3878 (warning): Call vwarning.
3879 (warning_begin): Delete function.
3881 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3882 the warning message.
3883 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3886 2002-01-30 Michael Snyder <msnyder@redhat.com>
3888 * NEWS: Mention "set trust-readonly-sections" command.
3889 Mention generate-core-file command.
3891 2002-01-15 Michael Snyder <msnyder@redhat.com>
3893 * target.c: New command, "set trust-readonly-sections on".
3894 (do_xfer_memory): Honor the suggestion to trust readonly sections
3895 by reading them from the object file instead of from the target.
3896 (initialize_targets): Register command "set trust-readonly-sections".
3898 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3900 * parse.c (target_map_name_to_register): Simplify, search regs and
3901 pseudo-regs using a single loop.
3903 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3905 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3907 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3909 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3910 * config/i386/i386v42mp.mh: Add i387-nat.o .
3911 * i386v4-nat.c: Include i387-nat.h.
3912 (supply_fpregset): Use i387_supply_fsave.
3913 (fill_fpregset): Use i387_fill_fsave.
3915 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3917 * arm-tdep.c (arm_call_dummy_words): Define.
3918 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3919 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3920 (CALL_DUMMY_WORDS): Define.
3921 (arm_call_dummy_words): Declare.
3922 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3923 (arm_linux_call_dummy_words): Declare.
3925 2002-01-30 Andreas Schwab <schwab@suse.de>
3927 * m68klinux-nat.c: Fix last change to use regcache_collect
3928 instead of referencing registers[] directly.
3930 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3932 * parse.c (target_map_name_to_register): Delete code wrapped in
3933 #ifdef REGISTER_NAME_ALIAS_HOOK.
3935 2002-01-28 Michael Snyder <msnyder@redhat.com>
3937 * regcache.c (legacy_read_register_gen): Need to be able to
3938 read pseudo-register as well as real register.
3939 (legacy_write_register_gen): Ditto.
3941 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3943 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3944 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3945 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3946 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3947 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3948 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3949 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3950 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3951 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3952 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3953 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3954 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3955 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3956 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3957 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3958 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3959 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3960 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3961 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3962 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3964 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3966 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3967 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3968 (initialize_current_architecture): Update target_byte_order using
3969 information from BFD.
3970 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3971 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3973 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3975 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3976 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3978 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3979 #ifdef INVALID_FLOAT.
3980 * infcmd.c (do_registers_info): Ditto.
3981 * values.c (unpack_double): Ditto. Add comment.
3983 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3984 already commented out.
3986 2002-01-26 Andreas Schwab <schwab@suse.de>
3988 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3989 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3990 registers and add support for PTRACE_GETREGS.
3992 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3994 GDB 5.1.1 released from 5.1 branch.
3995 * NEWS: Add 5.1.1 news.
3996 * README: Sync with 5.1 branch.
3998 2002-01-23 Fred Fish <fnf@redhat.com>
4000 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4001 stabstring on initial malloc. Reallocing will copy it for us,
4004 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4006 * Makefile.in (hpread_h): Delete.
4007 (HFILES_NO_SRCDIR): Remove hpread.h.
4008 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4009 (hpread.o): Update dependencies.
4010 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4012 * hp-psymtab-read.c: Remove file.
4013 * hp-symtab-read.c: Remove file.
4014 * hpread.h: Remove file.
4016 * hpread.c: Merge all contents of hp-psymtab-read.c,
4017 hp-symtab-read.c and hpread.h into this file, as it was prior to
4020 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4021 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4022 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4023 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4025 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4027 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4028 fill_gregset): Call gdbarch_tdep() just once, assign result to
4029 variable and use that, instead of calling the function several
4032 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4034 * configure.host: Accept sparcv9 as alias for sparc64.
4035 * configure.tgt: Likewise.
4037 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4039 * solib-aix5.c (build_so_list_from_mapfile)
4040 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4041 arguments is not reversed.
4042 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4043 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4045 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4047 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4048 modified version of obsolete sh_fetch_pseudo_register.
4049 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4050 (sh4_register_read): New function.
4051 (sh_pseudo_register_write): New function. Renamed and modified
4052 version of obsolete sh_store_pseudo_register.
4053 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4054 (sh4_register_write): New function.
4055 (sh_gdbarch_init): Remove setting of gdbarch function
4056 fetch_pseudo_register and store_pseudo_register. Remove setting of
4057 register_convert_to_raw, register_convert_to_virtual,
4058 register_convertible.
4059 (sh_sh4_register_convertible): Delete. No longer needed. All is
4060 taken care by architecture specific functions
4061 register_read/register_write.
4062 (sh_sh4_register_convert_to_virtual): Make static.
4063 (sh_sh4_register_convert_to_raw): Ditto.
4065 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4067 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4068 (floatformat_is_nan, floatformat_mantissa): Ditto.
4070 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4071 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4072 builtin_type_ieee_double_little,
4073 builtin_type_ieee_double_littlebyte_bigword,
4074 builtin_type_m68881_ext, builtin_type_i960_ext,
4075 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4076 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4077 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4078 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4080 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4082 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4083 parameter. Set frameless flag if it exists and depended of
4084 whether the scanned function is frameless or not.
4085 (xstormy16_skip_prologue): If function is frameless, return
4086 result of xstormy16_scan_prologue().
4087 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4090 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4092 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4093 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4094 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4095 sh_sh4_register_byte, sh_sh4_register_raw_size,
4096 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4097 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4098 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4099 sh_store_pseudo_register, sh_do_pseudo_register): Call
4100 gdbarch_tdep() just once, assign result to variable and use that,
4101 instead of calling the function several times.
4103 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4105 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4106 macros instead of LAST_FPU_CTRL_REGNUM.
4107 (store_register): Likewise.
4109 2002-01-21 Jim Blandy <jimb@redhat.com>
4111 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4112 is up-to-date before running the program, not just when a program
4115 2002-01-21 Fred Fish <fnf@redhat.com>
4117 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4118 when we have found all instructions we are looking for.
4120 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4122 * arm-tdep.c (arm_register_name): New function.
4123 (arm_registers_names): Make static.
4124 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4125 (arm_register_name): Declare.
4126 (REGISTER_NAME): Use it.
4128 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4129 Kevin Buettner <kevinb@redhat.com>
4131 Convert arm targets to new FRAME interface.
4132 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4133 (arm_frame_find_save_regs): Delete.
4134 (arm_frame_init_saved_regs): New.
4135 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4136 Allocate extra_info as required. Convert all uses of fsr.regs
4137 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4139 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4140 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4141 (check_prologue_cache, save_prologue_cache): Likewise.
4142 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4143 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4144 (FRAME_FIND_SAVED_REGS): Delete.
4145 (arm_frame_find_saved_regs): Delete prototype.
4146 (arm_frame_init_saved_regs): New prototype.
4147 (FRAME_INIT_SAVED_REGS): Define.
4149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4151 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4153 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4155 From Jeff Law <law@redhat.com>:
4156 * infttrace.c: Include <sys/pstat.h>.
4157 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4158 exec file if the ttrace equivalent fails.
4160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4162 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4163 (closeLogFile): Ditto.
4165 2002-01-20 Michael Chastain <mec@shout.net>
4167 * top.c (print_gdb_version): Bump copyright year to 2002.
4169 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4171 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4172 Zannoni and Eli Zaretskii.
4174 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4176 * buildsym.c: Update copyright years.
4177 * c-typeprint.c: Likewise.
4178 * dwarf2read.c: Likewise.
4179 * f-typeprint.c: Likewise.
4180 * gdbtypes.c: Likewise.
4181 * gdbtypes.h: Likewise.
4182 * hp-symtab-read.c: Likewise.
4183 * hpread.c: Likewise.
4184 * mdebugread.c: Likewise.
4185 * p-typeprint.c: Likewise.
4187 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4189 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4190 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4191 byte-order selectable.
4192 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4193 * arch-utils.c: Ditto.
4194 (set_endian): Ditto.
4195 (set_endian_from_file): Ditto.
4196 * gdbserver/low-sim.c (create_inferior): Ditto.
4197 * gdbarch.sh: Ditto.
4198 * gdbarch.h: Re-generate.
4199 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4200 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4201 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4202 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4203 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4204 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4205 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4206 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4208 * config/mips/tm-wince.h: Remove #undef of macro
4209 TARGET_BYTE_ORDER_SELECTABLE.
4210 * config/sh/tm-wince.h: Ditto.
4212 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4214 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4215 member function fields. Add accessor macro
4216 TYPE_FN_FIELD_ARTIFICIAL.
4217 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4218 * c-typeprint.c (c_type_print_base): Skip artificial member
4221 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4223 * f-typeprint.c: Delete unused function f_type_print_args.
4224 * p-typeprint.c: Delete unused function pascal_type_print_args.
4226 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4228 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4229 comment. Add ``artificial'' to ``union field_location''.
4231 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4233 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4234 * mdebugread.c (parse_symbol): Likewise.
4235 * stabsread.c (define_symbol): Likewise.
4236 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4237 initializing TYPE_FIELD_BITPOS to n (obsolete).
4238 (hpread_doc_function_type): Likewise.
4239 * hpread.c (hpread_function_type): Likewise.
4241 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4243 * configure.in (host_makefile_frag): Only require a host makefile
4244 fragment when a native build.
4245 * configure: Re-generate.
4247 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4249 * doublest.h (floatformat_from_type): Declare.
4250 * doublest.c (floatformat_from_type): New function.
4251 (convert_typed_floating): Use.
4253 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4254 call to function floatformat_from_type.
4256 * gdbarch.sh (IEEE_FLOAT): Delete.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4259 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4260 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4261 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4262 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4263 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4264 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4265 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4266 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4267 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4268 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4269 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4271 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4272 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4273 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4274 * sh-tdep.c (sh_gdbarch_init): Ditto.
4275 * mips-tdep.c (mips_gdbarch_init): Ditto.
4276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4277 * cris-tdep.c (cris_gdbarch_init): Ditto.
4279 2002-01-20 Jiri Smid <smid@suse.cz>
4281 * configure.host, configure.tgt: Support x86-64.
4282 * NEWS: Note new target x86-64.
4284 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4285 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4286 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4287 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4288 x86-64-linux-nat.o): Fix dependencies.
4290 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4292 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4293 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4294 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4295 * config/sparc/xm-sun4os4.h: Delete file.
4296 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4298 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4300 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4301 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4302 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4303 * config/i386/i386lynx.mh (XM_FILE): Delete.
4304 * config/rs6000/xm-rs6000ly.h: Delete file.
4305 * config/sparc/xm-sparclynx.h: Delete file.
4306 * config/m68k/xm-m68klynx.h: Delete file.
4307 * config/i386/xm-i386lynx.h: Delete file.
4308 * config/xm-lynx.h: Delete file.
4309 * config/djgpp/fnchange.lst: Update.
4311 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4313 * alpha-tdep.c (alpha_register_byte): New function.
4314 (alpha_register_raw_size): Ditto.
4315 (alpha_register_virtual_size): Ditto.
4316 (alpha_skip_prologue_internal): Renamed from
4317 alpha_skip_prologue.
4318 (alpha_skip_prologue): New version that calls
4319 alpha_skip_prologue_internal.
4320 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4321 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4322 second argument from alpha_skip_prologue.
4323 (REGISTER_BYTE): Use alpha_register_byte.
4324 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4325 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4326 (FRAMELESS_FUNCTION_INVOCATION): Use
4327 generic_frameless_function_invocation_not.
4328 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4329 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4331 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4333 * config/mips/xm-news-mips.h: Delete file.
4334 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4336 * config/m88k/xm-m88k.h: Delete file.
4337 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4338 * config/m88k/xm-delta88v4.h: Ditto.
4339 * config/m88k/xm-delta88.h: Ditto.
4341 * config/alpha/xm-fbsd.h: Delete file.
4342 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4344 * config/sparc/xm-sparc.h: Delete file.
4345 * Makefile.in (xm-sun4os4.h): Delete dependency.
4346 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4347 * config/sparc/xm-sun4os4.h: Ditto.
4348 * config/sparc/xm-linux.h: Ditto.
4350 * config/i386/xm-windows.h: Delete file.
4352 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4354 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4355 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4357 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4359 * alpha-tdep.c (alpha_call_dummy_words): New.
4360 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4361 (CALL_DUMMY_P): Define.
4362 (CALL_DUMMY_WORDS): Define.
4363 (SIZEOF_CALL_DUMMY_WORDS): Define.
4365 2002-01-19 Per Bothner <per@bothner.com>
4367 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4368 isn't NULL, which can happen with some gcj-3.x-produced code.
4370 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4372 * alpha-tdep.c (alpha_register_virtual_type): New function.
4373 (alpha_init_frame_pc_first): Ditto.
4374 (alpha_fix_call_dummy): Ditto.
4375 (alpha_store_struct_return): Ditto.
4376 (alpha_extract_struct_value_address): Ditto.
4377 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4378 alpha_register_virtual_type.
4379 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4380 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4381 alpha_extract_struct_value_address.
4382 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4383 (INIT_FRAME_PC): Use init_frame_pc_noop.
4384 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4386 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4388 * i386gnu-nat.c: Include "i386-tdep.h".
4389 (fetch_fpregs): Simplify code dealing with uninitialized floating
4390 point states such that it doesn't require FP7_REGNUM.
4392 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4394 * alpha-tdep.c (frame_extra_info): New.
4395 (alpha_find_saved_regs): Make static. Use
4397 (alpha_frame_init_saved_regs): New function.
4398 (alpha_frame_saved_pc): Use frame->extra_info.
4399 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4400 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4401 (init_extra_frame_info): Rename to...
4402 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4403 (alpha_print_extra_frame_info): New function.
4404 (alpha_frame_locals_address): Ditto.
4405 (alpha_frame_args_address): Ditto.
4406 (alpha_pop_frame): Use frame->extra_info.
4407 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4408 alpha_frame_args_address.
4409 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4410 (alpha_find_saved_regs): Remove prototype.
4411 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4412 (EXTRA_FRAME_INFO): Remove.
4413 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4414 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4416 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4418 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4419 (alpha_cannot_fetch_register): Ditto.
4420 (alpha_cannot_store_register): Ditto.
4421 (alpha_register_convertible): Ditto.
4422 (alpha_use_struct_convention): Ditto.
4423 * config/alpha/tm-alpha.h: Update copyright years.
4424 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4425 (INNER_THAN): Use core_addr_lessthan.
4426 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4427 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4428 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4429 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4430 (FRAME_CHAIN): Remove unnecessary cast.
4432 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4434 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4437 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4439 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4440 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4441 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4442 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4443 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4444 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4445 * x86-64-linux-nat.c: Ditto.
4447 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4449 * alpha-tdep.c (alpha_register_name): New function.
4450 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4451 (REGISTER_NAME): Define.
4453 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4455 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4457 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4459 * alpha-tdep.c: Update copyright years.
4460 (alpha_next_pc): New function.
4461 (alpha_software_single_step): Ditto.
4462 * config/alpha/tm-alpha.h: Add prototype for
4463 alpha_software_single_step.
4465 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4467 * alphabsd-nat.c: Update copyright years.
4468 (fill_gregset): Use regcache_collect.
4469 (fill_fpregset): Likewise.
4470 (fetch_inferior_registers): Only fetch integer registers
4471 if requested to do so.
4472 (store_inferior_registers): Only store integer registers
4473 if requested to do so.
4475 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4477 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4478 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4479 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4480 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4481 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4482 * config/arm/linux.mh (XDEPFILES): Delete.
4483 * config/arm/nbsd.mh (XDEPFILES): Delete.
4484 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4485 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4486 * config/i386/i386m3.mh (XDEPFILES): Delete.
4487 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4488 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4489 * config/i386/fbsd.mh (XDEPFILES): Delete.
4490 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4491 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4492 * config/i386/i386v4.mh (XDEPFILES): Delete.
4493 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4494 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4495 * config/i386/i386aix.mh (XDEPFILES): Delete.
4496 * config/i386/go32.mh (XDEPFILES): Delete.
4497 * config/i386/cygwin.mh (XDEPFILES): Delete.
4498 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4499 * config/i386/i386mach.mh (XDEPFILES): Delete.
4500 * config/i386/i386v32.mh (XDEPFILES): Delete.
4501 * config/i386/linux.mh (XDEPFILES): Delete.
4502 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4503 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4504 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4505 * config/i386/i386sco.mh (XDEPFILES): Delete.
4506 * config/i386/i386v.mh (XDEPFILES): Delete.
4507 * config/i386/nbsd.mh (XDEPFILES): Delete.
4508 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4509 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4510 * config/i386/symmetry.mh (XDEPFILES): Delete.
4511 * config/i386/obsd.mh (XDEPFILES): Delete.
4512 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4513 * config/ia64/linux.mh (XDEPFILES): Delete.
4514 * config/ia64/aix.mh (XDEPFILES): Delete.
4515 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4516 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4517 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4518 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4519 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4520 * config/m68k/linux.mh (XDEPFILES): Delete.
4521 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4522 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4523 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4524 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4525 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4526 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4527 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4528 * config/m88k/delta88.mh (XDEPFILES): Delete.
4529 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4530 * config/m88k/m88k.mh (XDEPFILES): Delete.
4531 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4532 * config/mips/linux.mh (XDEPFILES): Delete.
4533 * config/mips/irix6.mh (XDEPFILES): Delete.
4534 * config/mips/irix5.mh (XDEPFILES): Delete.
4535 * config/mips/irix4.mh (XDEPFILES): Delete.
4536 * config/mips/irix3.mh (XDEPFILES): Delete.
4537 * config/mips/decstation.mh (XDEPFILES): Delete.
4538 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4539 (NATDEPFILES): Move core-aout.o to here.
4540 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4541 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4542 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4543 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4544 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4545 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4546 * config/pa/hpux11.mh (XDEPFILES): Delete.
4547 * config/powerpc/aix.mh (XDEPFILES): Delete.
4548 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4549 * config/powerpc/linux.mh (XDEPFILES): Delete.
4550 * config/romp/rtbsd.mh: Rename XDEPFILES.
4551 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4552 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4553 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4554 * config/s390/s390.mh (XDEPFILES): Delete.
4555 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4556 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4557 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4558 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4559 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4560 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4561 * config/sparc/linux.mh (XDEPFILES): Delete.
4562 * config/vax/vaxult.mh (XDEPFILES): Delete.
4563 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4564 * Makefile.in (DEPFILES): Remove XDEPFILES.
4566 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4568 * utils.c (internal_verror): Fix comments, default is yes not no.
4569 Update queries to match. Default to quit and dump core.
4571 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4573 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4575 * defs.h, event-top.c, gdbcmd.h: Ditto.
4576 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4577 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4578 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4579 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4580 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4581 * mi/mi-main.c:Ditto.
4583 * stack.c, symfile.c: Update copyright.
4585 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4587 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4588 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4589 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4590 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4592 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4594 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4595 * gdbserver/low-lynx.c (myattach): Likewise.
4596 * gdbserver/low-nbsd.c (myattach): Likewise.
4597 * gdbserver/low-sim.c (myattach): Likewise.
4598 * gdbserver/low-sparc.c (myattach): Likewise.
4599 * gdbserver/low-sun3.c (myattach): Likewise.
4601 * gdbserver/low-linux.c (myattach): New function.
4603 * gdbserver/server.c (attach_inferior): New function.
4604 (main): Handle "--attach".
4606 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4608 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4611 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4613 * c-typeprint.c (is_type_conversion_operator): Add additional
4614 check for non-conversion operators.
4616 2002-01-15 Michael Snyder <msnyder@redhat.com>
4618 * linux-proc.c: Add "info proc" command, a la procfs.c.
4619 (read_mapping): New function, abstract and re-use code.
4620 (linux_find_memory_regions): Use new func read_mapping.
4621 (linux_info_proc_cmd): New function, implement "info proc".
4622 (_initialize_linux_proc): Add new command "info proc".
4624 2002-01-15 Michael Snyder <msnyder@redhat.com>
4626 * symfile.c (generic_load): Use bfd_map_over_sections method
4627 instead of manipulating bfd structure members directly.
4628 (add_section_size_callback): New function, bfd sections callback
4629 used by generic_load.
4630 (load_sections_callback): New function, bfd sections callback
4631 used by generic_load.
4633 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4635 [Based on work by Jim Blandy]
4636 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4637 (builtin_type_vec128): Export.
4638 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4640 (builtin_type_vec128): New builtin type for 128 bit vector
4642 (build_gdbtypes): Initialize builtin_type_v16qi and
4643 builtin_type_v8hi. Create the vec128 register builtin type
4645 (build_builtin_type_vec128): New function.
4646 (_initialize_gdbtypes): Register builtin_type_v16qi and
4647 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4648 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4649 AltiVec register to new builtin type.
4651 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4653 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4656 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4658 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4659 CLEAN_UP_REGISTER_VALUE.
4660 * regcache.c (supply_register): Update only call.
4662 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4664 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4665 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4666 a29k-*-vxworks* targets as obsolete.
4668 2002-01-14 Michael Snyder <msnyder@redhat.com>
4670 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4671 until we can resolve portability issues.
4672 * gregset.h: Remove references to fpxregs.
4673 * gcore.c (gcore_command): Initialize note_sec to NULL.
4675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4677 * signals.c (target_signal_to_name): Rewrite. Only use
4678 signals[].name when in bounds and non-NULL.
4680 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4682 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4683 * signals.c (target_signal_to_name): Verify that SIG is within the
4684 bounds of the signals array.
4686 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4688 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4690 2002-01-13 Keith Seitz <keiths@redhat.com>
4692 * stack.c (print_frame_info_base): Print the frame's pc
4693 only if when print_frame_info_listing_hook is not defined.
4695 2002-01-13 Keith Seitz <keiths@redhat.com>
4697 * varobj.c (varobj_set_value): Make sure that there were no
4698 errors evaluating the object before attempting to set its
4700 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4701 so this offset adjustment is no longer necessary.
4702 (create_child): Don't set the error flag if the child is
4704 (value_of_child): If value_fetch_lazy fails, return NULL
4705 so that callers will be notified that an error occurred.
4706 (c_value_of_variable): Delay check of variable's validity
4707 until later. We actually want all structs and unions to have
4709 Do not return "???" for variables which could not be evaluated.
4710 This error condition must be returned to the caller so that it
4711 can get the error condition from gdb.
4712 (cplus_name_of_child): Adjust index for vptr before figuring
4713 out the name of the child.
4714 (cplus_value_of_child): If a child's (real) parent is not valid,
4715 don't even bother trying to give a value for it. Just return
4716 an error. Change all instances in this function.
4717 (cplus_type_of_child): If our parent is one of the "fake"
4718 parents, we need to get at the type of the real parent, and
4719 derive the child's true type using this information.
4721 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4723 From 2002-01-09 John Marshall <johnm@falch.net>:
4724 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4725 sources.redhat.com, and tweak some related URLs which had
4726 suffered from linkrot.
4728 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4731 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4732 structures passed in registers.
4734 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4736 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4737 white space which prevented compilation. Reported by DSK
4738 <dsk@student.unsw.edu.au>.
4740 2002-01-11 Michael Snyder <msnyder@redhat.com>
4742 * symfile.c (build_section_addr_info_from_section_tab):
4743 Use bfd access method instead of manipulating bfd directly.
4744 (syms_from_objfile): Ditto.
4745 (simple_overlay_update_1): Ditto.
4746 (simple_overlay_update): Ditto.
4747 (generic_load): Ditto.
4748 (overlay_unmapped_address): FIXME comment, bfd access methods.
4749 (sections_overlap): FIXME comment, bfd access methods.
4750 (pc_in_mapped_range): FIXME comment, bfd access methods.
4751 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4752 (section_is_mapped): FIXME comment, bfd access methods.
4753 (section_is_overlay): FIXME comment, bfd access methods.
4755 * symfile.c (generic_load): Whitespace and long line cleanups.
4756 Remove duplicate variable, change several local variables to
4757 more appropriate data types.
4758 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4760 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4763 * language.c (longest_local_hex_string_custom): Use phex_nz to
4764 convert NUM to a hex string.
4766 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4768 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4770 Update Copyright year.
4772 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4774 * language.c (longest_raw_hex_string): Delete unused function.
4776 2002-01-11 Petr Sorfa <petrs@caldera.com>
4778 * MAINTAINERS (write-after-approval): Add myself.
4779 * dwarf2read.c (read_tag_string_type): Handling of
4781 (read_tag_string_type): FORTRAN fix to prevent propagation of
4783 (set_cu_language): Handling of DW_LANG_Fortran95
4785 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4787 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4788 GETPID(inferior_ptid).
4789 (store_inferior_registers): Likewise.
4791 2002-01-10 Jason Merrill <jason@redhat.com>
4793 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4796 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4798 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4799 and bfd/elf32-sh-nbsd.c.
4801 2002-01-10 Michael Snyder <msnyder@redhat.com>
4803 * NEWS: Mention --pid and corefile/proc-id behavior change.
4805 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4806 * gcore.c: Include cli/cli-decode.h instead of command.h.
4808 * main.c (captured_main): Add new command line option "--pid".
4809 If the second command line argument (following the symbol-file)
4810 begins with a digit, try to attach to it before trying to open
4812 (print_gdb_help): Document the "--pid" argument.
4814 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4816 * completer.c (command_completer): New function.
4818 * completer.h <command_completer>: Add prototype.
4820 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4821 completer for the "help" command.
4823 2002-01-09 Jason Merrill <jason@redhat.com>
4825 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4827 2002-01-09 Michael Snyder <msnyder@redhat.com>
4829 * i386-linux-nat.c (fill_fpxregset): Make global.
4830 (store_fpxregset): Ditto.
4832 * gregset.h (gdb_fpxregset_t): Define.
4833 (supply_fpxregset): Prototype.
4834 (fill_fpxregset): Prototype.
4836 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4838 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4840 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4841 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4842 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4844 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4846 * MAINTAINERS: Update target maintainer rules so that any
4847 Maintainer can approve a tested patch for a maintenance-only
4850 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4852 * MAINTAINERS (write-after-approval): Add myself.
4854 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4857 2002-01-08 Michael Snyder <msnyder@redhat.com>
4859 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4860 real name of the executable, rather than the /proc name.
4862 2002-01-03 Michael Snyder <msnyder@redhat.com>
4864 Implement a "generate-core-file" command in gdb, save target state.
4865 * gcore.c: New file. Implement new command 'generate-core-file'.
4866 Save a corefile image of the current state of the inferior.
4867 * linux-proc.c: Add linux-specific code for saving corefiles.
4868 * target.h (struct target_ops): Add new target vectors for saving
4869 corefiles; to_find_memory_regions and to_make_corefile_notes.
4870 (target_find_memory_regions): New macro.
4871 (target_make_corefile_notes): New macro.
4872 * target.c (update_current_target): Inherit new target methods.
4873 (dummy_find_memory_regions): New place-holder method.
4874 (dummy_make_corefile_notes): New place-holder method.
4875 (init_dummy_target): Initialize new dummy target vectors.
4876 * exec.c (exec_set_find_memory_regions): New function.
4877 Allow the exec_ops vector for memory regions to be taken over.
4878 (exec_make_note_section): New function, target vector method.
4879 * defs.h (exec_set_find_memory_regions): Export prototype.
4880 * procfs.c (proc_find_memory_regions): New function, corefile method.
4881 (procfs_make_note_section): New function, corefile method.
4882 (init_procfs_ops): Set new target vector pointers.
4883 (find_memory_regions_callback): New function.
4884 (procfs_do_thread_registers): New function.
4885 (procfs_corefile_thread_callback): New function.
4886 * sol-thread.c (sol_find_memory_regions): New function.
4887 (sol_make_note_section): New function.
4888 (init_sol_thread_ops): Initialize new target vectors.
4889 * inftarg.c (inftarg_set_find_memory_regions): New function.
4890 Allow to_find_memory_regions vector to be taken over.
4891 (inftarg_set_make_corefile_notes): New function.
4892 Allow to_make_corefile_notes vector to be taken over.
4893 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4894 interface layer if not target_has_execution (may be a corefile).
4895 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4896 * config/sparc/sun4sol2.mh: Ditto.
4897 * config/alpha/alpha-linux.mh: Ditto.
4898 * config/arm/linux.mh: Ditto.
4899 * config/i386/x86-64linux.mh: Ditto.
4900 * config/ia64/linux.mh: Ditto.
4901 * config/m68k/linux.mh: Ditto.
4902 * config/mips/linux.mh: Ditto.
4903 * config/powerpc/linux.mh: Ditto.
4904 * config/sparc/linux.mh: Ditto.
4906 2002-01-07 Michael Snyder <msnyder@redhat.com>
4908 * arm-linux-nat.c: Remove references to regcache.c internal data
4909 (registers[] and register_valid[]).
4911 2002-01-07 Michael Snyder <msnyder@redhat.com>
4913 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4914 so that attaching to a pid will automatically read the process's
4915 symbol file and shlibs.
4916 * Makefile.in: Add rule for linux-proc.o.
4917 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4918 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4919 * config/arm/linux.mh: Ditto.
4920 * config/i386/linux.mh: Ditto.
4921 * config/i386/x86-64linux.mh: Ditto.
4922 * config/ia64/linux.mh: Ditto.
4923 * config/m68k/linux.mh: Ditto.
4924 * config/mips/linux.mh: Ditto.
4925 * config/powerpc/linux.mh: Ditto.
4926 * config/sparc/linux.mh: Ditto.
4928 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4930 * win32-nat.c: Add i386-tdep.h dependency.
4932 2002-01-07 Michael Snyder <msnyder@redhat.com>
4934 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4935 instead of bfd_get_arch_size. Don't bail out just because
4936 there's no exec_bfd.
4938 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4939 * p-valprint.c (pascal_object_print_value): Ditto.
4940 * somread.c (som_symtab_read): Ditto.
4941 * symfile.c (simple_free_overlay_region_table): Ditto.
4942 * valops.c (value_assign): Ditto.
4944 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4945 use tilde_expand and strerror for opening save-tracepoints file.
4947 * thread-db.c (thread_db_new_objfile): Indendation fix.
4949 * infptrace.c (GDB_MAX_ALLOCA): New define.
4950 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4951 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4952 can be overridden with whatever value is appropriate to the host).
4953 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4954 alloca to allocate potentially large buffer.
4955 * rs6000-nat.c (child_xfer_memory): Ditto.
4956 * symm-nat.c (child_xfer_memory): Ditto.
4957 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4959 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4961 From Nick Clifton <nickc@redhat.com>
4962 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4964 2002-01-07 Michael Snyder <msnyder@redhat.com>
4966 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4967 Don't use exec_bfd if it's NULL.
4969 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4971 * valops.c (value_arg_coerce): Fix formatting.
4973 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4975 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4978 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4980 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4981 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4982 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4983 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4984 z8k-coff have not been multi-arched. Update z8k-coff build
4987 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4989 * MAINTAINERS: Mark a29k target as obsolete.
4990 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4991 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4993 * NEWS: Note that a29k targets are obsolete.
4994 * a29k-tdep.c: Mark as obsolete.
4995 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4996 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4997 a29k-*-vxworks* targets as obsolete.
4998 * remote-adapt.c: Obsolete.
4999 * remote-eb.c: Obsolete.
5000 * remote-mm.c: Obsolete.
5001 * remote-udi.c: Obsolete.
5002 * config/a29k/a29k-udi.mt: Obsolete.
5003 * config/a29k/a29k.mt: Obsolete.
5004 * config/a29k/tm-a29k.h: Obsolete.
5005 * config/a29k/tm-vx29k.h: Obsolete.
5006 * config/a29k/vx29k.mt: Obsolete.
5008 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5010 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5011 with BFD_ENDIAN_BIG.
5013 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5015 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5016 * configure, config.in: Re-generate.
5017 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5018 * defs.h: Do not include <endian.h>.
5020 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5022 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5023 * config.in: Regenerate.
5024 * configure.in: Update copyright years.
5025 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5026 * configure: Regenerate.
5027 * i386bsd-nat.c: Update copyright years.
5028 (fill_gregset): Use regcache_collect.
5029 (fetch_inferior_registers): Only fetch integer registers
5030 if requested to do so. Add support for XMM registers
5031 using PT_GETXMMREGS.
5032 (store_inferior_registers): Only store integer registers
5033 if requested to do so. Add support for XMM registers
5034 using PT_SETXMMREGS.
5035 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5036 (store_inferior_registers): Remove.
5037 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5038 (fetch_elfcore_registers): New function.
5039 (i386nbsd_elfcore_fns): New.
5040 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5041 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5043 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5044 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5045 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5046 * config/i386/tm-nbsd.h: Update copyright years.
5047 (HAVE_SSE_REGS): Define.
5048 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5049 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5050 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5051 (SIGCONTEXT_PC_OFFSET): Remove.
5052 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5054 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5056 * configure.tgt: Remove powerpc-*-macos* target.
5057 * config/m68k/xm-mpw.h: Delete file.
5058 * config/xm-mpw.h: Delete file.
5059 * ser-mac.c: Delete file.
5060 * mpw-make.sed: Delete file.
5061 * mpw-config.in: Delete file.
5062 * mac-xdep.c: Delete file.
5063 * mac-gdb.r: Delete file.
5064 * mac-defs.h: Delete file.
5065 * mac-nat.c: Delete file.
5066 * config/powerpc/macos.mh: Delete file.
5067 * config/powerpc/macos.mt: Delete file.
5068 * config/powerpc/nm-macos.h: Delete file.
5069 * config/powerpc/tm-macos.h: Delete file.
5070 * source.c (openp, open_source_file): Remove obsolete code.
5071 * top.c (gdb_readline): Ditto.
5072 * utils.c (query): Ditto.
5073 * event-top.c (display_gdb_prompt): Ditto.
5074 * Makefile.in (ser-mac.o): Delete obsolete target.
5077 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5079 * defs.h (BIG_ENDIAN): Delete macro definition.
5080 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5081 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5082 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5083 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5084 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5085 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5086 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5087 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5088 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5089 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5090 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5091 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5092 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5093 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5094 * gdbarch.c: Re-generate.
5096 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5098 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5101 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5103 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5105 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5107 * value.h (value_ptr): Delete typedef.
5109 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5111 * i386nbsd-nat.c: Update copyright years.
5112 Include i386-tdep.h.
5114 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5116 * stabsread.c: Update copyright years.
5118 From Debashis Mahata <debashis.mahata@wipro.com>:
5119 (read_struct_fields): Deal with Sun C compiler erroneous stab
5120 output for structs and unions.
5123 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5125 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5128 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5130 * cp-abi.c: Fix whitespace.
5131 (baseclass_offset): New wrapper function.
5132 * cp-abi.h (baseclass_offset): Add prototype.
5133 (struct cp_abi_ops): Add baseclass_offset pointer.
5135 * valops.c (vb_match): Move to...
5136 * gnu-v2-abi.c (vb_match): here.
5137 * valops.c (baseclass_offset): Move to...
5138 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5140 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5142 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5143 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5144 * hpacc-abi.c (init_hpacc_ops): Likewise.
5146 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5148 * valops.c (find_overload_match): Accept obj as a
5149 reference parameter. Update it before returning.
5150 * value.h (find_overload_match): Update prototype.
5151 * eval.c (evaluate_subexp_standard): Pass object to
5152 find_overload_match by reference.
5154 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5156 * valarith.c: Replace value_ptr with struct value pointer. Remove
5157 register attribute from value declarations.
5160 * scm-lang.c (scm_lookup_name): Ditto.
5162 2002-01-03 Michael Snyder <msnyder@redhat.com>
5164 Abstract the functionality of iterating over mapped memory
5165 regions into a general purpose iterator function.
5166 * procfs.c (iterate_over_mappings): New function, general purpose
5167 iterator for memory sections.
5168 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5169 (solib_mappings_callback): New function, callback for above.
5170 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5171 (info_mappings_callback): New function, callback for above.
5173 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5175 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5177 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5178 * i386-tdep.c: Include "elf-bfd.h".
5179 (process_note_abi_tag_sections): New function.
5180 (i386_gdbarch_init): Add code to recognize various OS/ABI
5183 * maint.c (_initialize_maint_cmds): Add missing \ in
5186 For older changes see ChangeLog-2001
5192 version-control: never