1 2002-05-09 Mark Kettenis <kettenis@gnu.org>
3 * i386-tdep.h (i386_abi): New enum.
4 (struct gdbarch_tdep): Replace os_ident member with abi.
5 (i386_gdbarch_register_os_abi): New prototype.
6 * i386-tdep.c (i386_abi_names): New array.
7 (process_note_abi_tag_sections): Removed.
8 (process_note_sections): New function.
9 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10 (struct i386_abi_handler): New struct.
11 (i386_abi_handler_list): New variable.
12 (i386_gdbarch_register_os_abi): New function.
13 (i386_gdbarch_init): Adapt for the changes given above.
15 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
17 * gregset.h: Say "GNU/Linux".
19 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
21 * gdbtypes.c : Add new builtin type for 64 bit vectors.
22 (build_gdbtypes): Build builtin_type_v2_float.
23 (_initialize_gdbtypes): Register new builtin type.
25 2002-05-08 Andrew Cagney <ac131313@redhat.com>
27 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
28 (clear_gdbarch_swap): New function.
29 (initialize_non_multiarch): Call.
30 (gdbarch_update_p): Before calling init(), swap out and clear the
31 existing architecture.
32 * gdbarch.c: Regenerate.
34 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
36 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
39 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
41 * sh-nbsd-nat.c: Rename to...
42 * shnbsd-nat.c: ...this.
43 * sh-nbsd-tdep.c: Rename to...
44 * shnbsd-tdep.c: ...this.
45 * sh-nbsd-tdep.h: Rename to...
46 * shnbsd-tdep.h: ...this.
47 * config/sh/nbsd.mh: Use shnbsd-nat.o.
48 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
50 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
52 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
53 concatenation for command help messages.
55 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
57 * NEWS: Note new sh*-*-netbsdelf* configuration.
58 * configure.host: Set gdb_host_cpu to sh for all sh*.
59 (sh*-*-netbsdelf*): New host.
60 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
61 (sh*-*-netbsdelf*): New target.
62 * sh-nbsd-nat.c: New file.
63 * sh-nbsd-tdep.c: New file.
64 * sh-nbsd-tdep.h: New file.
65 * config/sh/nbsd.mh: New file.
66 * config/sh/nbsd.mt: New file.
67 * config/sh/nm-nbsd.h: New file.
68 * config/sh/tm-nbsd.h: New file.
70 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
72 * sh-tdep.c (sh_osabi_names): Declare.
73 (process_note_abi_tag_sections): New function.
74 (get_elfosabi): Ditto.
75 (sh_gdbarch_register_os_abi): Ditto.
76 (sh_dump_tdep): Ditto.
77 _initialize_sh_tdep): Use gdbarch_register to register
78 sh_gdbarch_init and sh_dump_tdep.
79 * config/sh/tm-sh.h (sh_osabi): Declare.
80 (gdbarch_tdep): Add sh_osabi and osabi_name members.
82 2002-05-07 Andrew Cagney <ac131313@redhat.com>
84 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
85 (thumb_scan_prologue): Ditto.
86 (arm_find_callers_reg): Ditto.
87 (arm_frame_chain): Ditto.
88 (arm_init_extra_frame_info): Ditto.
89 (arm_frame_saved_pc): Ditto.
90 (arm_pop_frame): Ditto.
91 (arm_push_return_address): New function.
92 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
93 call_dummy_location, call_dummy_breakpoint_offset_p,
94 call_dummy_breakpoint_offset, call_dummy_p,
95 call_dummy_stack_adjust_p, call_dummy_words,
96 sizeof_call_dummy_words, call_dummy_start_offset,
97 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
98 call_dummy_address, push_return_address and push_dummy_frame for
101 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
103 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
104 size computation for alloca.
105 (sh_fp_frame_init_saved_regs): Likewise.
107 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
109 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
110 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
111 * arm-tdep.c (arm_store_return_value): Use them.
112 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
113 * remote-rdp.c (remote_rdp_fetch_register): Use
114 ARM_MAX_REGISTER_RAW_SIZE.
115 (remote_rdp_store_register): Likewise.
117 2002-05-07 Michal Ludvig <mludvig@suse.cz>
119 * dwarf2cfi.c: Code cleanup, removed unused variables,
120 added default labels to switch {} statements.
121 * x86-64-tdep.c: Ditto.
122 * x86-64-linux-nat.c: Ditto.
124 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
126 * solib.h: Protect against multiple inclusion.
128 2002-05-06 Jim Blandy <jimb@redhat.com>
130 Separate the job of reading the line number info statement program
131 header (...expialidocious) out into its own function.
132 * dwarf2read.c (struct line_head, struct filenames, struct
133 directories): Replace with...
134 (struct line_header): New structure, containing the full
135 contents of the statement program header, including the
136 include directory and file name tables.
137 (read_file_scope): If we have line number info, instead of just
138 calling dwarf_decode_lines to do all the work, call
139 dwarf_decode_line_header first to get a `struct line_header'
140 containing the data in the statement program header, and then
141 pass that to dwarf_decode_lines, which will pick up where that
142 left off. Be sure to clean up the `struct line_header' object.
143 (dwarf_decode_line_header, free_line_header, add_include_dir,
144 add_file_name): New functions.
145 (dwarf_decode_lines): Move all the code to read the statement
146 program header into dwarf_decode_line_header. Take the line
147 header it built as the first argument, instead of the offset to
148 the compilation unit's line number info. Use the new `struct
149 line_header' type instead of the old structures. No need to do
150 cleanups here now, since we don't allocate anything.
151 (dwarf2_statement_list_fits_in_line_number_section,
152 dwarf2_line_header_too_long): New complaints.
154 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
156 * gdbtypes.c (init_vector_type): New function.
157 (build_builtin_type_vec128): Simplify the representation of SIMD
159 (build_gdbtypes): Initialize new builtin vector types.
160 (_initialize_gdbtypes): Register new vector types with gdbarch.
161 (builtin_type_v4_float, builtin_type_v4_int32,
162 builtin_type_v8_int16, builtin_type_v16_int8,
163 builtin_type_v2_int32, builtin_type_v4_int16,
164 builtin_type_v8_int8): New (renamed) SIMD types.
166 2002-05-06 Mark Kettenis <kettenis@gnu.org>
168 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
169 (i387_fill_fxsave): Likewise.
171 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
173 * alpha-tdep.c (alpha_extract_return_value): Don't use
174 non-constant array size in prototype.
176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
178 From Brian Taylor <briant at model dot com>:
179 * ui-out.c (ui_out_field_core_addr): Use the function
180 longest_local_hex_string_custom'to format addresses > 32 bits
183 * ui-out.c (ui_out_field_core_addr): Update comment.
185 2002-05-04 Andrew Cagney <ac131313@redhat.com>
187 * stack.c (select_and_print_frame): Make static. Delete the
189 (func_command): Update call.
190 (select_frame_command): Delete code computing the frame level.
191 * frame.h (select_and_print_frame): Delete declaration.
193 2002-05-04 Andrew Cagney <ac131313@redhat.com>
195 * sparc-tdep.c (sparc_get_saved_register): Comment why
196 get_prev_frame call is safe.
198 2002-05-04 Andrew Cagney <ac131313@redhat.com>
200 * frame.h (select_frame): Delete level parameter.
201 * stack.c (select_frame): Update. Use frame_relative_level to
202 obtain the frame's level.
203 (select_and_print_frame): Update call.
204 (select_frame_command): Ditto.
205 (up_silently_base): Ditto.
206 (down_silently_base): Ditto.
207 * ocd.c (ocd_start_remote): Ditto.
208 * remote-rdp.c (remote_rdp_open): Ditto.
209 * remote-mips.c (mips_initialize): Ditto.
210 (common_open): Ditto.
211 * remote-e7000.c (e7000_start_remote): Ditto.
212 * m3-nat.c (select_thread): Ditto.
213 * hppa-tdep.c (child_get_current_exception_event): Ditto.
214 (child_get_current_exception_event): Ditto.
215 * varobj.c (varobj_create): Ditto.
216 (varobj_update): Ditto.
217 (c_value_of_root): Ditto.
218 * tracepoint.c (finish_tfind_command): Ditto.
219 * corelow.c (core_open): Ditto.
220 * arch-utils.c (generic_prepare_to_proceed): Ditto.
221 * thread.c (info_threads_command): Ditto.
222 (switch_to_thread): Ditto.
223 * infrun.c (normal_stop): Ditto.
224 (restore_selected_frame): Ditto.
225 (restore_inferior_status): Ditto.
226 * breakpoint.c (insert_breakpoints): Ditto.
227 (watchpoint_check): Ditto.
228 (bpstat_stop_status): Ditto.
229 (do_enable_breakpoint): Ditto.
230 * blockframe.c (flush_cached_frames): Ditto.
231 (reinit_frame_cache): Ditto.
233 2002-05-04 Andrew Cagney <ac131313@redhat.com>
235 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
238 2002-05-04 Jim Blandy <jimb@redhat.com>
240 * gdbtypes.c (replace_type): Doc fix.
242 2002-05-04 Andrew Cagney <ac131313@redhat.com>
244 * valprint.c (strcat_longest): Delete commented out function.
247 2002-05-04 Andrew Cagney <ac131313@redhat.com>
249 * MAINTAINERS: Mark a29k as deleted.
250 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
251 Move new configurations to the top.
252 * configure.tgt: Remove a29k.
253 * config/a29k/tm-vx29k.h: Delete.
254 * config/a29k/vx29k.mt: Delete.
255 * config/a29k/tm-a29k.h: Delete.
256 * config/a29k/a29k-udi.mt: Delete.
257 * config/a29k/a29k.mt: Delete.
258 * a29k-tdep.c: Delete.
259 * remote-udi.c: Delete.
260 * remote-mm.c: Delete.
261 * remote-eb.c: Delete.
262 * remote-adapt.c: Delete.
263 * Makefile.in: Remove obsolete code.
264 * gdbserver/Makefile.in: Ditto.
265 * config/s390/s390x.mt: Ditto.
266 * config/s390/s390.mt: Ditto.
267 * config/sparc/sparclynx.mh: Ditto.
268 * config/sparc/linux.mh: Ditto.
269 * config/pa/hppaosf.mh: Ditto.
270 * config/pa/hppabsd.mh: Ditto.
271 * config/ns32k/nbsd.mt: Ditto.
272 * config/mips/vr5000.mt: Ditto.
273 * config/m68k/sun3os4.mh: Ditto.
274 * config/m68k/nbsd.mt: Ditto.
275 * config/m68k/m68klynx.mh: Ditto.
276 * config/m32r/m32r.mt: Ditto.
277 * config/i386/x86-64linux.mt: Ditto.
278 * config/i386/nbsdelf.mt: Ditto.
279 * config/i386/nbsd.mt: Ditto.
280 * config/i386/i386lynx.mh: Ditto.
282 2002-05-04 Andrew Cagney <ac131313@redhat.com>
284 * target.c (debug_print_register): New function. Handle oversize
286 (debug_to_fetch_registers): Call.
287 (debug_to_store_registers): Call.
289 2002-05-03 Jim Blandy <jimb@redhat.com>
291 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
292 (read_type): Doc fix.
293 * gdbtypes.c (replace_type): Doc fix.
295 * stabsread.c (multiply_defined_struct): New complaint.
296 (read_struct_type): If the type we were passed isn't empty, or
297 incomplete, don't read the new struct type into it; complain,
298 and return the original type unchanged. Take a new `type_code'
299 argument, which is the type code for the new type.
300 (read_type): Rather than storing the type's type code here, pass
301 it as an argument to read_struct_type, and let that take care of
302 storing it. That way, we don't overwrite the original type code,
303 so read_struct_type can use it to decide whether we're overwriting
304 something we shouldn't.
305 (complain_about_struct_wipeout): New function.
307 2002-05-03 Andrew Cagney <ac131313@redhat.com>
309 * gdbarch.sh: Assert that gdbarch is non-NULL.
310 * gdbarch.c: Regenerate.
312 2002-05-03 Jason Merrill <jason@redhat.com>
314 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
317 2002-05-03 Michal Ludvig <mludvig@suse.cz>
319 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
320 (x86_64_dwarf2gdb_regno_map_length),
321 (x86_64_dwarf2_reg_to_regnum): Added.
322 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
323 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
324 (_initialize_x86_64_tdep): Synced with the change above.
325 (x86_64_skip_prologue): Reformulated message.
327 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
329 * f-exp.y: Also use new prev_lexptr variable
330 to improve error reporting. Based on Michael Snyder
331 2002-04-24 dated patch to c-exp.y.
332 * jv-exp.y: Likewise.
333 * m2-exp.y: Likewise.
335 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
337 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
338 we are dealing with vectors.
340 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
342 * config/m68k/tm-nbsd.h: Obvious fix,
343 correct machine name.
345 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
347 * p-typeprint.c (pascal_type_print_base): Add support
348 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
350 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
352 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
353 for fondamental pascal 'char' type.
355 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
357 * p-lang.h (is_pascal_string_type): Declaration changed,
358 new sixth argument of type char ** added.
359 * p-lang.c (is_pascal_string_type): Implementation
360 changed. Args length_pos, length_size, string_pos, char_size
361 can now be NULL. New argument arrayname set to the field
362 name of the char array. Return value set to char array
363 field index plus one.
364 * p-valprint.c (pascal_val_print): Adapt to new declaration of
365 is_pascal_string_type function.
367 2002-05-02 Andrew Cagney <cagney@redhat.com>
369 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
370 <cagney@redhat.com> change.
371 * gdbarch.c: Regenerate.
373 2002-05-02 Andrew Cagney <cagney@redhat.com>
375 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
376 before probing for a new one. Detect errorenous gdbarch_init
378 * gdbarch.c: Regenerate.
380 2002-05-01 Andrew Cagney <cagney@redhat.com>
382 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
383 * config/mcore/tm-mcore.h: Ditto. Update copyright.
384 * config/v850/tm-v850.h: Ditto. Update copyright.
386 2002-04-30 Andrew Cagney <ac131313@redhat.com>
388 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
391 2002-04-30 Michael Snyder <msnyder@redhat.com>
393 * arm-tdep.c: Whitespace clean-ups.
394 (arm_skip_prologue): Fix thinko; two lines
395 should have been removed as part of 4/24 change.
397 2002-04-30 Kevin Buettner <kevinb@redhat.com>
399 * rs6000-tdep.c: Added comment describing how fpscr register
402 2002-04-30 Michael Snyder <msnyder@redhat.com>
404 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
406 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
408 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
409 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
410 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
412 2002-04-29 Kevin Buettner <kevinb@redhat.com>
414 From Louis Hamilton <hamilton@redhat.com>:
415 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
416 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
417 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
418 not bfd-private xcoff data, to determine wordsize.
419 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
421 2002-04-29 Andrew Cagney <ac131313@redhat.com>
423 GDB 5.2 released from 5.2 branch.
425 2002-04-29 Michal Ludvig <mludvig@suse.cz>
427 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
428 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
429 (x86_64_register_info_table): Added comments with register numbers.
431 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
433 * rs6000-tdep.c (rs6000_extract_return_value,
434 rs6000_store_return_value): Handle returning vectors.
435 (rs6000_gdbarch_init): Use
436 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
437 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
439 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
441 (ppc_sysv_abi_push_arguments): Handle vector parameters.
442 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
444 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
446 * hpread.c (hpread_psymtab_to_symtab_1,
447 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
448 with fprintf_unfiltered (gdb_stderr,...).
450 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
452 * remote-array.c (printf_monitor, write_monitor,
453 array_insert_breakpoint, array_remove_breakpoint ):
454 Replace fprintf (stderr,...
455 with fprintf_unfiltered (gdb_stderr,....
456 * remote-es.c: Likewise.
457 * remote-os9k.c: Likewise.
458 * remote-st.c: Likewise.
460 2002-04-28 Andreas Schwab <schwab@suse.de>
462 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
463 linux-proc.o and gcore.o.
465 2002-04-26 Michal Ludvig <mludvig@suse.cz>
467 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
468 code without frame pointers.
470 2002-04-26 Andrew Cagney <ac131313@redhat.com>
472 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
475 2002-04-26 Ben Elliston <bje@redhat.com>
477 * target.c (do_xfer_memory): Correct reference to the new option
478 "trust-readonly-sections".
480 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
482 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
483 * gdbtypes.c (recursive_dump_type): Output the vector flag.
484 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
486 (read_array_type): Record the fact that this array type is really a
487 vector (i.e. are passed in by value).
489 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
491 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
492 * alpha-tdep.c (alpha_sigcontext_addr): New function.
493 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
494 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
495 * alpha-linux-tdep.c: Include frame.h.
496 (alpha_linux_sigcontext_addr): New function.
497 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
498 alpha_linux_sigcontext_addr.
499 * alpha-osf1-tdep.c: Include gdbcore.h.
500 (alpha_osf1_sigcontext_addr): New function.
501 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
502 alpha_osf1_sigcontext_addr.
503 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
504 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
506 2002-04-26 Andrew Cagney <ac131313@redhat.com>
508 * stack.c (selected_frame_level):
509 (select_frame): Do not set selected_frame_level.
510 * frame.h (selected_frame_level): Delete declaration.
512 2002-04-26 Andrew Cagney <ac131313@redhat.com>
514 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
515 convert_from_func_ptr-addr when AIX / PowerOpen.
517 2002-04-25 Andrew Cagney <ac131313@redhat.com>
519 * valops.c (hand_function_call): Call
520 generic_save_call_dummy_addr.
521 * frame.h (generic_save_call_dummy_addr): Declare.
522 * blockframe.c (struct dummy_frame): Add fields call_lo and
524 (generic_find_dummy_frame): Check for PC in range call_lo to
525 call_hi instead of entry_point_address.
526 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
527 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
528 (generic_save_call_dummy_addr): New function.
530 2002-04-24 David S. Miller <davem@redhat.com>
532 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
534 (sparc_skip_prologue): Kill frameless_p arg, and use line number
535 information to find prologue when possible.
536 (sparc_prologue_frameless_p): Call examine_prologue directly.
537 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
538 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
540 (SKIP_PROLOGUE): Likewise.
542 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
544 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
545 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
546 indicate that the condition it was testing is always true.
547 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
548 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
549 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
551 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
553 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
554 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
555 tdep->jb_pc and tdep->jb_elt_size.
556 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
557 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
558 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
559 * alpha-nat.c (get_longjmp_target): Remove.
560 (JB_ELEMENT_SIZE): Ditto.
562 * alpha-tdep.c (alpha_get_longjmp_target): New function.
563 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
564 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
565 to alpha_get_longjmp_target.
566 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
567 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
568 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
570 2002-04-25 Andrew Cagney <ac131313@redhat.com>
572 * README: Update to GDB 5.2.
574 2002-04-25 Andrew Cagney <ac131313@redhat.com>
576 * gdbarch.sh (LC_ALL): Set to `c'.
578 2002-04-25 Theodore A. Roth <troth@verinet.com>
580 * avr-tdep.c: Ran through gdb_indent.sh.
582 2002-04-25 Theodore A. Roth <troth@verinet.com>
584 * MAINTAINERS: Add myself as AVR maintainer.
585 * NEWS: Note new target avr.
587 2002-04-25 Theodore A. Roth <troth@verinet.com>
589 * Makefile.in: Add support for AVR target.
590 * configure.tgt: Add support for AVR target.
591 * avr-tdep.c: New file
592 * config/avr/avr.mt: New file.
594 2002-04-25 Theodore A. Roth <troth@verinet.com>
596 * MAINTAINERS: Add myself to write-after-approval.
598 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
600 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
601 with fprintf_unfiltered (gdb_stderr,....
603 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
606 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
608 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
610 * p-exp.y: Also use new prev_lexptr variable
611 to improve error reporting. Based on Michael Snyder
612 2002-04-24 dated patch to c-exp.y.
614 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
616 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
617 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
618 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
620 * config/alpha/tm-alpha.h: Remove forward decls of struct type
622 (FUNCTION_START_OFFSET): Remove.
625 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
627 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
630 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
632 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
633 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
634 alpha_linux_pc_in_sigtramp.
635 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
636 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
637 alpha_osf1_pc_in_sigtramp.
638 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
639 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
640 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
641 alphafbsd_pc_in_sigtramp.
642 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
643 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
644 alphanbsd_pc_in_sigtramp.
645 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
646 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
648 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
650 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
652 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
654 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
656 (alphanbsd-nat.o): New dependency list.
657 (alphanbsd-tdep.o): Ditto.
658 * NEWS: Note new native NetBSD/alpha configuration.
659 * alphanbsd-nat.c: New file.
660 * alphanbsd-tdep.c: Ditto.
661 * configure.host (alpha*-*-netbsd*): New host.
662 * configure.tgt (alpha*-*-netbsd*): New target.
663 * config/alpha/nbsd.mh: New file.
664 * config/alpha/nbsd.mt: Ditto.
665 * config/alpha/nm-nbsd.h: Ditto.
666 * config/alpha/tm-nbsd.h: Ditto.
668 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
670 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
671 (alpha-osf1-tdep.o): New dependency list.
672 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
673 and skip_sigtramp_frame members.
674 * alpha-linux-tdep.c: Include gdbcore.h.
675 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
676 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
677 * alpha-osf1-tdep.c: New file.
678 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
680 (alpha_frame_past_sigtramp_frame): New function.
681 (alpha_dynamic_sigtramp_offset): Ditto.
682 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
683 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
684 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
685 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
686 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
687 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
688 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
689 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
690 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
691 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
692 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
693 to find_solib_trampoline_target.
694 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
695 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
696 (SKIP_TRAMPOLINE_CODE): Remove.
697 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
698 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
699 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
700 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
701 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
702 (PROC_SIGTRAMP_MAGIC): Ditto.
703 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
704 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
705 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
706 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
707 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
709 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
711 * NEWS: Note that Alpha targets are now multi-arch.
713 2002-04-24 Michael Snyder <msnyder@redhat.com>
715 * parser-defs.h (prev_lexptr): New external variable.
716 * parse.c (parse_exp_1): Set prev_lexptr to null before
717 calling the language-specific parser.
718 * c-exp.y (yylex): Set prev_lexptr to start of current token.
719 (yyerror): Use prev_lexptr in error reporting.
721 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
723 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
724 * gregset.h: If FILL_FPXREGSET is defined, provide
725 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
726 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
727 is defined, call fill_fpxregset.
729 2002-04-24 Roland McGrath <roland@frob.com>
731 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
732 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
733 (supply_gregset, supply_fpregset): New functions.
735 * gnu-nat.c (gnu_find_memory_regions): New function.
736 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
737 (gnu_xfer_memory): Add a cast.
739 2002-04-24 Michael Snyder <msnyder@redhat.com>
741 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
742 loop. Add handling for "str lr, [sp, #-4]!" and for saves
743 of argument regs ("str r(0123), [r11, #-nn"]).
744 (arm_skip_prologue): Better handling for frameless functions.
745 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
746 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
748 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
750 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
751 NUM_PSEUDO_REGS can be used.
753 2002-04-24 Andrew Cagney <ac131313@redhat.com>
755 * arch-utils.h: Update copyright.
757 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
758 * gdbarch.h, gdbarch.c: Re-generate.
760 * inferior.h (IN_SIGTRAMP): Delete definition.
761 * arch-utils.c (legacy_pc_in_sigtramp): New function.
762 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
764 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
765 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
766 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
767 (find_proc_framesize): Ditto.
768 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
769 (alpha_init_extra_frame_info): Ditto.
770 * infrun.c (handle_inferior_event): Ditto.
771 (handle_inferior_event): Ditto.
772 (check_sigtramp2): Ditto.
773 * blockframe.c (create_new_frame): Ditto.
774 (get_prev_frame): Ditto.
775 * ppc-linux-tdep.c: Update comments.
776 * i386-linux-tdep.c: Update comments.
777 * breakpoint.c (bpstat_what): Update comment.
779 2002-04-24 Michal Ludvig <mludvig@suse.cz>
781 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
782 (regsets_store_inferior_registers): Removed cast to int from
784 * gdbserver/regcache.h: Added declaration of struct inferior_info.
786 2002-04-24 David S. Miller <davem@redhat.com>
788 * i960-tdep.c (register_in_window_p): New function.
789 (i960_find_saved_register): Use it instead of
790 REGISTER_IN_WINDOW_P.
791 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
793 * symtab.h (find_stab_function_addr): Kill extern.
794 * minsyms.c (find_stab_function_addr): Remove from here...
795 * dbxread.c: ... to here, and mark it static.
797 2002-04-20 David S. Miller <davem@redhat.com>
799 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
800 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
802 2002-04-21 David S. Miller <davem@redhat.com>
804 * remote-vxsparc.c (vx_read_register): Fix typo, we want
805 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
806 (vx_write_register): Likewise.
808 2002-04-23 J. Brobecker <brobecker@gnat.com>
810 * source.c (is_regular_file): New function.
811 (openp): Check wether file to open is a regular file
812 to avoid opening directories.
814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
816 * findvar.c (extract_signed_integer): Cast printf argument
817 to suppress format warning.
818 (extract_unsigned_integer): Likewise.
819 * infcmd.c (registers_info): Likewise.
820 * top.c (get_prompt_1): Likewise.
821 * valops.c (value_assign): Likewise.
822 * valprint.c (print_decimal): Likewise.
824 2002-04-22 H.J. Lu (hjl@gnu.org)
826 * c-exp.y (typebase): Support
828 [long|long long|short] [signed|unsigned] [int|]
832 signed [long|long long|short] int
834 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
836 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
838 * vax-tdep.h: New file.
839 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
840 Make several routines static.
841 (vax_get_saved_register): New function.
842 (vax_gdbarch_init): New function.
843 (_initialize_vax_tdep): Register vax_gdbarch_init.
844 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
845 Remove macros now under the control of gdbarch.
847 2002-04-22 Michael Snyder <msnyder@redhat.com>
849 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
850 Some whitespace and coding standards tweaks.
852 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
854 * vax-tdep.c: Include regcache.h.
855 (vax_call_dummy_words): New.
856 (sizeof_vax_call_dummy_words): New.
857 (vax_fix_call_dummy): New function.
858 (vax_saved_pc_after_call): Ditto.
859 * config/vax/tm-vax.h: Don't include regcache.h.
860 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
861 (CALL_DUMMY): Remove.
862 (CALL_DUMMY_WORDS): Define.
863 (SIZEOF_CALL_DUMMY_WORDS): Define.
864 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
866 2002-04-18 Michael Snyder <msnyder@redhat.com>
868 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
870 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
872 * vax-tdep.c (vax_frame_chain): New function.
873 (vax_push_dummy_frame): Ditto.
874 (vax_pop_frame): Ditto.
875 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
876 (FRAMELESS_FUNCTION_INVOCATION): Use
877 generic_frameless_function_invocation_not.
878 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
879 (POP_FRAME): Use vax_pop_frame.
881 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
883 * vax-tdep.c (vax_store_struct_return): New function.
884 (vax_extract_return_value): Ditto.
885 (vax_store_return_value): Ditto.
886 (vax_extract_struct_value_address): Ditto.
887 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
888 vax_store_struct_return.
889 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
890 (STORE_RETURN_VALUE): Use vax_store_return_value.
891 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
895 * vax-tdep.c (vax_frame_saved_pc): New function.
896 (vax_frame_args_address_correct): Ditto.
897 (vax_frame_args_address): Ditto.
898 (vax_frame_locals_address): Ditto.
899 (vax_frame_num_args): Move code to be in proximity to
900 other frame-related functions.
901 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
902 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
903 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
904 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
905 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
907 2002-04-22 H.J. Lu (hjl@gnu.org)
909 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
912 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
914 * vax-tdep.c (vax_frame_init_saved_regs): New function.
915 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
916 (FRAME_INIT_SAVED_REGS): New macro.
918 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
920 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
922 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
924 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
926 (fetch_osf_core_registers): Likewise.
927 (supply_gregset): Likewise.
929 2002-04-22 J. Brobecker <brobecker@gnat.com>
931 * symfile.h (get_section_index): Define.
932 * symfile.c (get_section_index): New function.
933 * mdebugread.c (SC_IS_SBSS): New macro.
934 (SC_IS_BSS): Return true for the scBss storage class only, as
935 the scSBss storage class refers to the .sbss section.
936 (parse_partial_symbols): Discard the symbols which associated
937 section does not exist.
938 Make sure to use the .sbss section index for symbols which
939 storage class is scBss, rather than using the .bss section index.
941 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
943 * vax-tdep.c: Update copyright years.
944 (vax_register_name): New function.
945 (vax_register_byte): Ditto.
946 (vax_register_raw_size): Ditto.
947 (vax_register_virtual_size): Ditto.
948 (vax_register_virtual_type): Ditto.
949 * config/vax/tm-vax.h: Update copyright years.
950 (REGISTER_NAMES): Remove.
951 (REGISTER_NAME): Define.
952 (REGISTER_BYTE): Use vax_register_byte.
953 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
954 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
955 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
957 2002-04-21 Andrew Cagney <ac131313@redhat.com>
959 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
961 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
963 2002-04-21 David S. Miller <davem@redhat.com>
965 * arch-utils.c (generic_prologue_frameless_p): Kill
966 SKIP_PROLOGUE_FRAMELESS_P code.
967 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
969 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
970 * arc-tdep.c (arc_prologue_frameless_p): Implement.
971 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
973 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
974 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
975 (sparc_gdbarch_init): Pass it to
976 set_gdbarch_prologue_frameless_p.
978 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
980 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
981 (alphabsd-nat.o): New dependency list.
983 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
985 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
987 (alpha-linux-tdep.o): New dependency list.
988 (alphafbsd-tdep.o): Likewise.
990 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
992 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
994 * alpha-tdep.c: ...from here.
995 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
997 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
999 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1000 prototype from here...
1001 * alpha-tdep.h: ...to here.
1003 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1005 * frame.h (selected_frame_level): Document as deprecated.
1006 (frame_relative_level): Declare.
1007 * stack.c (frame_relative_level): New function.
1008 (selected_frame_level): Document as deprecated.
1009 (select_frame): Do not set the selected_frame_level.
1011 * stack.c (frame_info, record_selected_frame): Update.
1012 (frame_command, current_frame_command): Update.
1013 (up_silently_base, up_command, down_silently_base): Update.
1014 (down_command): Update.
1015 * inflow.c (kill_command): Update.
1016 * tracepoint.c (finish_tfind_command): Update.
1017 * corelow.c (core_open): Update.
1018 * thread.c (info_threads_command): Update.
1019 (do_captured_thread_select): Update.
1020 * infcmd.c (finish_command): Update.
1021 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1023 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1025 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1027 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1029 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1032 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1034 * alphafbsd-tdep.c: Update copyright years. Include
1036 (alphafbsd_use_struct_convention): Make static.
1037 (alphafbsd_init_abi): New function.
1038 (_initialize_alphafbsd_tdep): New function.
1039 * config/alpha/tm-fbsd.h: Update copyright years.
1040 (USE_STRUCT_CONVENTION): Remove.
1042 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1044 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1045 an Alpha ABI variant.
1046 (alpha_abi_handler_list): Declare.
1047 (alpha_gdbarch_register_os_abi): New function.
1048 (alpha_gdbarch_init): Give registered ABI variant handlers a
1049 chance to tweak the gdbarch once we have set up defaults.
1050 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1052 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1054 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1055 to standard_coerce_float_to_double.
1056 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1058 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1060 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1061 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1062 from gdbarch_tdep rather than a constant.
1063 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1064 the default text address for all Alpha Unix ABIs.
1065 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1066 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1068 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1070 * alpha-tdep.h: New file. Includes several Alpha target constants
1072 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1073 let gdbarch deal with.
1074 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1075 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1077 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1078 Alpha target register names.
1079 * alphabsd-nat.c: Likewise.
1080 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1081 Alpha target register names. Make serveral routines static.
1082 (alpha_get_saved_register): New function.
1083 (alpha_abi_names): New.
1084 (process_note_abi_tag_sections): New function.
1085 (get_elfosabi): New function.
1086 (alpha_gdbarch_init): New function.
1087 (alpha_dump_tdep): New function.
1088 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1090 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1092 * frame.c (find_saved_register): Delete #ifdef
1093 HAVE_REGISTER_WINDOWS code.
1094 * config/sparc/tm-sparc.h: Update comments.
1095 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1097 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1099 * i960-tdep.c (i960_find_saved_register): New function.
1100 (i960_get_saved_register): New function.
1101 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1102 (i960_get_saved_register): Declare.
1103 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1105 2002-04-20 David S. Miller <davem@redhat.com>
1107 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1109 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1111 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1112 instead of NUM_PSEUDO_REGS.
1114 2002-04-20 David S. Miller <davem@redhat.com>
1116 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1117 GDB_MULTI_ARCH_PARTIAL
1118 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1119 define, let tm-sp64.h do it.
1121 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1123 * frame.c (find_saved_register): Avoid a NULL pointer
1124 dereference and actually walk the frame list.
1126 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1128 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1129 sorted in most most-recent-used order. Document.
1130 * gdbarch.h, gdbarch.c: Regenerate.
1132 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1134 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1135 (add_inferior): Call create_register_cache.
1136 (clear_inferiors): Call free_register_cache.
1137 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1138 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1139 (registers): Remove.
1140 (get_regcache): New function.
1141 (create_register_cache, free_register_cache): New functions.
1142 (set_register_cache): Don't initialize the register cache here.
1143 (registers_to_string, registers_from_string, register_data): Call
1145 * gdbserver/regcache.h: Add prototypes.
1146 * gdbserver/server.h: Likewise.
1148 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1150 * gdbserver/mem-break.c: New file.
1151 * gdbserver/mem-break.h: New file.
1152 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1154 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1156 (clear_inferiors): Free target_data member if set.
1157 (inferior_target_data, set_inferior_target_data): New functions.
1158 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1159 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1160 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1161 (struct inferior_linux_data): New.
1162 (linux_create_inferior): Use set_inferior_target_data.
1163 (linux_attach): Likewise. Call add_inferior.
1164 (linux_wait_for_one_inferior): New function.
1165 (linux_wait): Call it.
1166 (linux_write_memory): Add const.
1167 (initialize_low): Call set_breakpoint_data.
1168 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1170 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1172 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1174 * gdbserver/target.c (read_inferior_memory)
1175 (write_inferior_memory): New functions.
1176 * gdbserver/target.h (read_inferior_memory)
1177 (write_inferior_memory): Change macros to prototypes.
1178 (struct target_ops): Update comments. Add const to write_memory
1181 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1183 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1185 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1186 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1187 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1190 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1193 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1194 (build_builtin_type_vec128): Ditto.
1195 (append_composite_type_field): Fix calculation of type length in
1198 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1200 * config/djgpp/README: Update.
1202 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1205 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1207 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1208 (alpha_setup_arbitrary_frame): ...to this.
1209 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1210 for alpha_setup_arbitrary_frame.
1212 2002-04-18 Andrew Cagney <cagney@redhat.com>
1214 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1215 * gdbarch.h, gdbarch.c: Regenerate.
1217 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1218 * target.h (memory_breakpoint_from_pc): Update declaration.
1219 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1221 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1222 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1223 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1224 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1225 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1226 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1227 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1228 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1229 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1230 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1231 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1232 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1234 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1236 * monitor.c (monitor_insert_breakpoint): Ditto.
1237 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1239 * config/mcore/tm-mcore.h: Update copyright.
1240 * mem-break.c: Ditto.
1241 * xstormy16-tdep.c: Ditto.
1243 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1245 * p-exp.y: Add precedence rule for '^' token.
1246 This removes the shift/reduce conflicts.
1247 Remove the comment concerning these shift/reduce conflicts.
1249 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1251 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1252 (registers_powerpc_nofp): New register set for processors
1253 without floating point unit.
1255 2002-04-18 David S. Miller <davem@redhat.com>
1257 * MAINTAINERS: Add myself to write-after-approval.
1259 2002-04-17 Michael Snyder <msnyder@redhat.com>
1261 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1263 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1265 * rs6000-tdep.c (frame_initial_stack_address): Use
1266 frame_register_read to read the alloca_reg.
1268 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1270 * frame.c (find_saved_register): Find saved registers in the next
1274 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1276 * gdbarch.sh (LANG): Set to ``c''.
1278 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1280 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1282 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1284 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1287 * hpread.c (hpread_get_lntt): Add declaration.
1288 Also fix PR gdb/391.
1290 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1292 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1293 * aclocal.m4, configure: Re-generate.
1296 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1298 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1299 instead of tm_print_insn.
1301 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1303 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1305 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1307 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1308 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1309 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1311 2002-04-12 Don Howard <dhoward@redhat.com>
1313 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1314 max_user_call_depth.
1315 (init_cmd_lists): Initialize the new value;
1316 * cli/cli-script.c (execute_user_command): Limit the call depth of
1317 user defined commands. This avoids a core-dump when user commands
1318 are infinitly recursive.
1320 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1322 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1323 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1324 from tdep struct instead of DEFAULT_LR_SAVE.
1325 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1326 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1327 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1329 2002-04-12 Michael Snyder <msnyder@redhat.com>
1331 * Remote.c: Spelling fix.
1332 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1333 If no symbol found for "sbrk", try "_sbrk".
1334 (make_output_phdrs): Use bfd_section_name.
1335 (gcore_copy_callback): Use bfd_section_name.
1336 * eval.c: Indentation fix-ups.
1337 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1338 in case it gets applied to an address that is already
1339 in the instruction space.
1340 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1341 * symfile.c: Fix indentation, long lines.
1342 * source.c: White space fix-up.
1344 2002-04-12 Andrew Cagney <cagney@redhat.com>
1346 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1347 * frame.c (frame_register_read): New function. Return non-zero on
1349 (read_relative_register_raw_bytes_for_frame): Delete.
1350 (read_relative_register_raw_bytes): Delete.
1351 * frame.h (frame_register_read): Declare.
1352 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1354 * infcmd.c (do_registers_info): Ditto.
1355 * hppa-tdep.c: Ditto.
1356 * rs6000-tdep.c: Ditto.
1357 * h8500-tdep.c: Ditto.
1358 * mips-tdep.c: Ditto.
1359 * h8300-tdep.c: Ditto.
1360 * z8k-tdep.c: Ditto.
1362 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1364 From Jimi X <jimix@watson.ibm.com>:
1365 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1368 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1370 From Jimi X <jimix@watson.ibm.com>:
1371 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1374 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1376 From Jimi X <jimix@watson.ibm.com>:
1377 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1378 register sets for these processor variants.
1380 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1382 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1383 registers which are allowed to fail to store.
1384 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1385 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1386 (ppc_cannot_store_register): FPSCR may not be storable.
1387 * regformats/reg-ppc.dat: Support FPSCR.
1389 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1391 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1392 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1393 Add fpscr as an invalid/unfetchable register.
1394 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1395 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1396 (fill_fpregset): Add support for register fpscr.
1397 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1398 (fill_gregset): Account for the fact that register ``mq'' might
1400 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1401 (registers_power): Add fpscr to register set at slot 71.
1402 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1403 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1405 2002-04-11 Michael Snyder <msnyder@redhat.com>
1407 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1408 * configure: Regenerate.
1409 * config.in: Regenerate.
1410 * acconfig.h: Add define for _SYSCALL32.
1411 * core-sol2.c: Remove #define _SYSCALL32.
1412 * solib-legacy.c: Remove #define _SYSCALL32.
1414 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1416 * stack.c (select_frame): Cleanup internal error message, do not
1419 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1421 * stack.c (select_frame): Check that selected_frame and the
1422 specified level are as expected.
1423 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1425 * frame.h (struct frame_info): Add field `level'. Update
1427 Work-in-progress PR gdb/464.
1429 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1431 * maint.c (maint_print_section_info): Rename print_section_info.
1432 (print_bfd_section_info, print_objfile_section_info): Update.
1433 * inferior.h (struct gdbarch): Add opaque declaration.
1434 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1435 * gdbarch.h: Regenerate.
1437 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1439 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1440 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1441 (kernel_u_size): Added.
1442 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1443 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1445 2002-04-04 Jim Ingham <jingham@apple.com>
1447 * valarith.c (find_size_for_pointer_math): New function, either returns
1448 the size for a pointer's target, returns 1 for void *, or errors for
1450 (value_add, value_sub): use find_size_for_pointer_math.
1452 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1454 * linux-low.c (linux_look_up_symbols): New hook.
1455 (linux_target_ops): Add linux_look_up_symbols.
1456 * remote-utils.c (decode_address): New function.
1457 (look_up_one_symbol): New function.
1458 * server.c (handle_query): Call target look_up_symbols hook.
1459 * server.h (look_up_one_symbol): Add prototype.
1460 * target.h (struct target_ops): Add look_up_symbols hook.
1462 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1464 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1465 * ChangeLog: Correct paths in last ChangeLog entry.
1467 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1469 * gdbserver/linux-low.h: Remove obsolete prototypes.
1470 (struct linux_target_ops): New.
1471 (extern the_low_target): New.
1472 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1473 (register_addr): Use the_low_target explicitly.
1474 (fetch_register): Likewise.
1475 (usr_fetch_inferior_registers): Likewise.
1476 (usr_store_inferior_registers): Likewise.
1477 * gdbserver/linux-arm-low.c (num_regs): Remove.
1478 (arm_num_regs): Define.
1479 (arm_regmap): Renamed from regmap, made static.
1480 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1482 (arm_cannot_store_register): Renamed from cannot_store_register,
1484 (the_low_target): New.
1485 * gdbserver/linux-i386-low.c (num_regs): Remove.
1486 (i386_num_regs): Define.
1487 (i386_regmap): Renamed from regmap, made static.
1488 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1490 (i386_cannot_store_register): Renamed from cannot_store_register,
1492 (the_low_target): New.
1493 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1494 (ia64_num_regs): Define.
1495 (ia64_regmap): Renamed from regmap, made static.
1496 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1498 (ia64_cannot_store_register): Renamed from cannot_store_register,
1500 (the_low_target): New.
1501 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1502 (m68k_num_regs): Define.
1503 (m68k_regmap): Renamed from regmap, made static.
1504 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1506 (m68k_cannot_store_register): Renamed from cannot_store_register,
1508 (the_low_target): New.
1509 * gdbserver/linux-mips-low.c (num_regs): Remove.
1510 (mips_num_regs): Define.
1511 (mips_regmap): Renamed from regmap, made static.
1512 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1514 (mips_cannot_store_register): Renamed from cannot_store_register,
1516 (the_low_target): New.
1517 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1518 (ppc_num_regs): Define.
1519 (ppc_regmap): Renamed from regmap, made static.
1520 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1522 (ppc_cannot_store_register): Renamed from cannot_store_register,
1524 (the_low_target): New.
1525 * gdbserver/linux-s390-low.c (num_regs): Remove.
1526 (s390_num_regs): Define.
1527 (s390_regmap): Renamed from regmap, made static.
1528 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1530 (s390_cannot_store_register): Renamed from cannot_store_register,
1532 (the_low_target): New.
1533 * gdbserver/linux-sh-low.c (num_regs): Remove.
1534 (sh_num_regs): Define.
1535 (sh_regmap): Renamed from regmap, made static.
1536 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1538 (sh_cannot_store_register): Renamed from cannot_store_register,
1540 (the_low_target): New.
1541 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1542 (the_low_target): New.
1544 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1546 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1547 override FP_REGNUM with frame->fp. Update copyright.
1548 * parse.c (num_std_regs, std_regs): Delete.
1549 (target_map_name_to_register): Do not search std_regs. Update
1550 function description.
1551 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1552 declarations. Update copyright.
1555 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1557 * gdbserver/Makefile.in: Add stamp-h target.
1558 * gdbserver/configure.in: Create stamp-h.
1559 * gdbserver/configure: Regenerated.
1561 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1563 * gdbserver/inferiors.c: New file.
1564 * gdbserver/target.c: New file.
1565 * gdbserver/target.h: New file.
1566 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1568 * gdbserver/linux-low.c (inferior_pid): New static variable,
1569 moved from server.c.
1570 (linux_create_inferior): Renamed from create_inferior.
1571 Call add_inferior. Return 0 on success instead of a PID.
1572 (linux_attach): Renamed from myattach.
1573 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1574 (linux_thread_alive): Renamed from mythread_alive.
1575 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1577 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1578 (regsets_store_inferior_registers): Correct error message.
1579 Add missing ``return 0''.
1580 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1581 (linux_store_registers): Renamed from store_inferior_registers.
1582 (linux_read_memory): Renamed from read_inferior_memory.
1583 (linux_write_memory): Renamed from write_inferior_memory.
1584 (linux_target_ops): New structure.
1585 (initialize_low): Call set_target_ops ().
1586 * gdbserver/remote-utils.c (unhexify): New function.
1587 (hexify): New function.
1588 (input_interrupt): Send signals to ``signal_pid''.
1589 * gdbserver/server.c (inferior_pid): Remove.
1590 (start_inferior): Update create_inferior call.
1591 (attach_inferior): Call add_inferior.
1592 (handle_query): New function.
1593 (main): Call handle_query for `q' packets.
1594 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1595 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1597 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1599 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1601 * gdbserver/configure.in: Check for <string.h>
1602 * gdbserver/configure: Regenerate.
1603 * gdbserver/config.in: Regenerate.
1604 * gdbserver/gdbreplay.c: Include needed system headers.
1605 (remote_open): Remove strchr prototype.
1606 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1607 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1608 (supply_register_by_name): Likewise.
1609 (collect_register): Change buf argument to void *.
1610 (collect_register_by_name): Likewise.
1611 * gdbserver/regcache.h: Add missing prototypes.
1612 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1613 * gdbserver/server.c (handle_query): New function.
1614 (attached): New static variable, moved out of main.
1615 (main): Quiet longjmp clobber warnings.
1616 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1617 * gdbserver/utils.c (error): Remove NORETURN.
1620 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1622 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1623 after the last symbol in a block.
1625 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1627 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1628 is non zero as a found symbol.
1630 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1632 * findvar.c: Include "builtin-regs.h".
1633 (value_of_register): Call value_of_builtin_reg when applicable.
1634 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1635 (target_map_name_to_register): Call
1636 builtin_reg_map_name_to_regnum.
1637 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1638 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1639 (builtin_regs_h): Define.
1640 (builtin-regs.o): New target.
1641 (findvar.o): Add $(builtin_regs_h).
1642 * builtin-regs.c, builtin-regs.h: New files.
1643 * std-regs.c: New file.
1644 Partial fix for PR gdb/251.
1646 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1648 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1649 it's no longer required.
1651 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1653 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1655 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1657 From Jimi X <jimix@watson.ibm.com>:
1658 * rs6000-tdep.c (rs6000_software_single_step): Use
1659 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1660 and size. Use target_insert_breakpoint() and
1661 target_remove_breakpoint() to insert and remove breakpoints
1662 instead of explicit memory reads and writes.
1664 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1666 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1667 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1668 ELF_OBJECT_FORMAT ifdef.
1670 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1672 From Jimi X <jimix@watson.ibm.com>:
1673 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1675 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1677 From Jimi X <jimix@watson.ibm.com>:
1678 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1679 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1681 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1683 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1684 s/asprintf/xasprintf/.
1685 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1687 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1689 I believe Jeff Law denies responsability for this one:
1690 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1691 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1692 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1693 Work-around for PR gdb/366.
1695 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1697 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1698 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1699 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1701 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1703 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1704 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1707 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1709 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1712 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1714 * README (Reporting Bugs in GDB): Document the bug web page as the
1715 prefered way of submitting bugs.
1718 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1720 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1722 * gdbarch.h, gdbarch.c: Re-generate.
1724 2002-04-07 Andreas Schwab <schwab@suse.de>
1726 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1727 buffer to regcache_collect.
1729 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1731 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1732 * gdbarch.c, gdbarch.h: Re-generate.
1734 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1736 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1737 declaration. Fix -Werror.
1739 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1741 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1742 * gdbarch.c: Regenerate.
1744 2002-04-05 Michael Snyder <msnyder@redhat.com>
1746 * breakpoint.c (clear_command): Rewrite middle section to
1747 combine two loops with identical control conditions.
1748 Add a cleanup to eliminate a memory leak.
1749 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1751 2002-04-05 H.J. Lu (hjl@gnu.org)
1753 * solib-svr4.c (bkpt_names): Add "__start".
1755 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1757 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1758 as test for 64 bit target.
1760 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1762 * h8500-tdep.c (h8500_write_fp): Delete function.
1763 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1764 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1765 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1767 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1768 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1770 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1771 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1772 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1773 (d10v_write_fp): Delete function.
1774 * inferior.h (write_fp, generic_target_write_fp): Delete
1776 * regcache.c (generic_target_write_fp): Delete function.
1777 (write_fp): Delete function.
1778 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1779 * gdbarch.h, gdbarch.c: Regenerate.
1780 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1781 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1782 (sparc64_write_fp): Delete declaration.
1783 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1784 (h8500_write_fp): Delete declaration.
1786 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1788 * sparc-tdep.c (sparc64_write_fp): Delete.
1789 (sparc_push_dummy_frame): Replace write_fp call with code to store
1791 (sparc_gdbarch_init): Do not initialize write_fp.
1793 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1795 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1798 2002-03-29 Jim Blandy <jimb@redhat.com>
1800 * stack.c (get_selected_block): Add new argument `addr_in_block',
1801 used to return the exact code address we used to select the block,
1803 * blockframe.c (get_frame_block, get_current_block): Same.
1804 * frame.h (get_frame_block, get_current_block,
1805 get_selected_block): Update declarations.
1806 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1807 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1809 2002-04-05 Michael Snyder <msnyder@redhat.com>
1811 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1814 2002-04-05 J. Brobecker <brobecker@gnat.com>
1816 * utils.c (xfullpath): New function.
1817 * defs.h (xfullpath): Add declaration.
1818 * source.c (openp): Use xfullpath in place of gdb_realpath to
1819 avoid resolving the basename part of filenames when the
1820 associated file is a symbolic link. This fixes a potential
1821 inconsistency between the filenames known to GDB and the
1822 filenames it prints in the annotations.
1823 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1824 to be able to match a filename with either the real filename, or
1825 the name of any symbolic link to this file.
1826 (lookup_partial_symtab): Ditto.
1828 2002-04-04 Michael Snyder <msnyder@redhat.com>
1830 * breakpoint.c: Add support for hardware breakpoints in overlays.
1831 (overlay_events_enabled): New state variable.
1832 (insert_breakpoints): Use overlay_events_enabled to decide
1833 whether to attempt to set a breakpoint at the overlay load addr.
1834 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1835 (remove_breakpoint): Use overlay_events_enabled to decide
1836 whether breakpoints need to be removed from overlay load addr.
1837 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1838 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1839 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1840 disable_overlay_breakpoints): Update overlay_events_enabled.
1842 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1844 * dwarf2read.c (struct function_range): New.
1845 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1846 (check_cu_functions): New.
1847 (read_file_scope): Initialize global function lists.
1848 Call dwarf_decode_line after processing children.
1849 (read_func_scope): Add to global function list.
1850 (dwarf_decode_lines): Call check_cu_functions everywhere
1851 record_line is called. Call record_line with a linenumber
1852 of 0 to mark sequence ends.
1854 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1856 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1857 change sync with glibc.
1859 2002-04-03 Jim Blandy <jimb@redhat.com>
1861 * configure.in: Call AC_C_INLINE.
1862 * configure: Regenerated.
1864 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1866 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1867 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1869 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1871 * NEWS: Mention gcore support on FreeBSD/i386.
1873 * fbsd-proc.c: New file.
1874 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1875 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1877 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1880 2002-03-29 Jim Blandy <jimb@redhat.com>
1882 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1883 unescaped newlines in string literals, but newer ones don't. So
1886 2002-03-26 Michael Snyder <msnyder@redhat.com>
1887 Andrew Cagney <cagney@redhat.com>
1889 * cli/cli-dump.c: New file. Dump memory to file,
1890 restore file to memory.
1891 * cli/cli-dump.h: New file.
1892 * Makefile.in: Add rules, dependencies for cli-dump.o.
1893 * NEWS: Mention new commands.
1895 2002-03-28 Michael Snyder <msnyder@redhat.com>
1897 * symfile.c (symbol_file_add): Move test for null symbols to later.
1899 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1901 From veksler at il.ibm.com:
1902 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1903 the xstrduped original path.
1906 2002-03-27 Michael Snyder <msnyder@redhat.com>
1908 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1909 * infcmd.c (_initialize_infcmd): Ditto.
1910 * language.c (_initialize_language): Ditto.
1911 * symfile.c (_initialize_symfile): Ditto.
1912 * top.c (_init_main): Ditto.
1913 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1915 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1917 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1918 vector registers handling.
1919 (skip_prologue): Handle new AltiVec instructions. Fill in new
1920 fields of frame data.
1921 (frame_get_saved_regs): Fill in information for AltiVec registers.
1923 2002-03-27 Jim Blandy <jimb@redhat.com>
1925 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1926 a function; leave this macro here to invoke that function.
1927 (symbol_init_mangled_name): Declaration for that function.
1928 * symtab.c (symbol_init_mangled_name): New function.
1930 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1932 * valarith.c: Replace strerror with safe_strerror.
1933 * tracepoint.c: Ditto.
1935 * go32-nat.c: Ditto.
1939 2002-03-27 Andreas Schwab <schwab@suse.de>
1941 * event-top.c (command_line_handler): Remove useless if.
1943 2002-03-27 Andreas Jaeger <aj@suse.de>
1945 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1948 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1950 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1951 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1952 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1953 (x86_64_linux_dr_get_status, supply_gregset),
1954 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1955 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1956 (x86_64_register_info_table): Add.
1957 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1958 (x86_64_register_raw_size, x86_64_register_virtual_type),
1959 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1960 general x86_64_register_info_table.
1961 (i386_gdbarch_init): gdbarch_register_bytes is now set
1962 dynamicaly during initialization.
1963 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1964 * gdbserver/linux-x86-64-low.c: Ditto.
1966 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1968 * gdbserver/server.c (main): Call target_signal_to_host_p
1969 and target_signal_to_host on signals received from the remote.
1970 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1971 target_signal_from_host on signals sent to the remote.
1972 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1973 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1975 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1977 * signals/signals.c: Include "server.h" in gdbserver build.
1978 (target_signal_from_name): Don't use STREQ.
1979 (_initialize_signals): Likewise. Don't include function in
1982 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1984 * signals.c: Moved to...
1985 * signals/signals.c: Here.
1986 * Makefile (signals.o): Update.
1988 2002-03-26 Jeff Law (law@redhat.com)
1990 * somread.c (som_symtab_read): Remove some commented out code and
1991 updated related comments. Do not set the minimal symbol table to
1992 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1993 in a dynamic executable.
1994 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1995 where we are unable to find the minimal symbol for the given
1998 2002-03-25 Jeff Law (law@redhat.com)
2000 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2002 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2004 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2006 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2008 * command.h: Update copyright.
2009 (struct cmd_list_element): Replace definition with opaque
2011 (enum cmd_types): Document that it will eventually be moved to
2013 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2014 (MALLOCED_REPLACEMENT): Delete macro.
2015 * Makefile.in (cli_decode_h): Add $(command_h).
2016 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2017 * top.c: Include "cli/cli-decode.h".
2018 * completer.c: Include "cli/cli-decode.h".
2019 * maint.c: Include "cli/cli-decode.h".
2020 * cli/cli-decode.h: Include "command.h".
2021 (enum command_class): Delete.
2022 (enum cmd_types): Comment out.
2023 (enum cmd_auto_boolean): Delete.
2024 (enum var_types): Delete.
2026 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2028 * cli/cli-decode.c: Include "gdb_assert.h".
2029 (add_set_or_show_cmd): New static function.
2030 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2031 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2032 all fields, such as func, from the set command.
2034 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2036 * MAINTAINERS (sh-elf): Change warning flag to -w.
2038 2002-03-23 Andrew Cagney <cagney@redhat.com>
2040 * defs.h (error): Add printf format attribute.
2041 * thread-db.c (thread_from_lwp): Fix error format string.
2042 * stack.c (parse_frame_specification): Ditto.
2043 * cli/cli-decode.c (undef_cmd_error): Ditto.
2044 * scm-lang.c (scm_lookup_name): Ditto.
2045 * tracepoint.c (trace_error): Ditto.
2046 * remote-utils.c (usage): Ditto.
2047 * remote.c (compare_sections_command): Ditto.
2050 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2052 * gdbtypes.c (append_composite_type_field): New function.
2053 (init_composite_type): New function.
2054 * gdbtypes.h (append_composite_type_field): Declare.
2055 (init_composite_type): Ditto.
2057 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2059 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2061 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2062 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2063 structure returning convention for SYSV ABI case, but not
2064 for GNU/Linux, FreeBSD, or NetBSD.
2066 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2068 * symtab.h (lookup_block_symbol): Add mangled_name argument
2071 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2072 with new mangled_name argument.
2073 * linespec.c (decode_line_1): Likewise.
2074 * valops (value_of_this): Likewise.
2075 * symtab.c (lookup_transparent_type): Likewise.
2076 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2077 (lookup_symbol): If we are given a mangled name, pass it down
2078 to lookup_symbol_aux.
2079 (lookup_block_symbol): If we are given a mangled name to check
2080 against, only return symbols which match it.
2082 2002-03-22 Christopher Faylor <cgf@redhat.com>
2084 * win32-nat.c (child_create_inferior): Check for proper shell to use
2085 here, in case the user changes it on the fly.
2086 (_initialize_inftarg): Remove shell path considerations.
2088 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2090 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2091 for gdbarch_max_register_raw_size and max_register_virtual_size.
2092 Adjust copyright year.
2094 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2096 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2097 in a function to cover the entire beginning of the function
2098 as well if it does not already.
2100 2002-03-21 Tom Rix <trix@redhat.com>
2102 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2103 (rs6000_ptrace64): Renamed from ptrace64.
2105 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2107 * gdbserver/remote-utils.c (remote_open): Don't call
2108 getprotobyname, we're all using TCP here so just use
2110 * gdbserver/gdbreplay.c (remote_open): Ditto.
2112 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2114 * regcache.c (_initialize_regcache): No need to call
2115 build_regcache() at this time; it gets called whenever
2116 the gdbarch changes.
2118 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2120 * sparc-nat.c: Include sys/param.h where possible.
2122 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2125 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2126 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2127 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2129 * stabsread.c (rs6000_builtin_type): Likewise.
2130 (read_sun_floating_type): Likewise.
2132 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2134 * stabsread.c (read_member_functions): Remove skip code for duplicate
2135 constructor/destructor methods. Use standard parsing for these
2136 methods and just do not chain them to the list of methods after
2139 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2141 * coffread.c: Remove redundant static declarations. Replace
2142 occurrences of `PTR' with `void *'.
2143 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2144 * top.h (quit_cover): Likewise.
2145 * defs.h (catch_errors): Likewise.
2147 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2149 * defs.h (XMALLOC): Define.
2150 * gdb-events.sh (XMALLOC): Delete macro.
2151 * gdb-events.c, gdb-events.h: Regenerate.
2152 * gdbarch.sh (XMALLOC): Delete macro.
2153 * gdbarch.c: Regenerate.
2154 * serial.c (XMALLOC): Delete macro.
2155 * ui-file.c (XMALLOC): Ditto.
2156 * ser-unix.h (XMALLOC): Ditto.
2157 * sh-tdep.c (XMALLOC): Ditto.
2158 * ui-out.c (XMALLOC): Ditto.
2159 * utils.c (XMALLOC): Ditto.
2160 * i386-tdep.c (XMALLOC): Ditto.
2161 * gdb-events.c (XMALLOC): Ditto.
2162 * d10v-tdep.c (XMALLOC): Ditto.
2163 * cli-out.c (XMALLOC): Ditto.
2165 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2166 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2167 * ui-file.c, ui-out.c: Ditto.
2169 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2171 * command.h (struct cmd_list_element): Add field context.
2172 (set_cmd_context, get_cmd_context): Declare.
2173 * cli/cli-decode.h: Ditto.
2174 * cli/cli-decode.c (get_cmd_context): New function.
2175 (set_cmd_context): New function.
2176 (add_cmd): Initialize context.
2177 Part of fixing PR gdb/145 and PR gdb/146.
2179 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2181 * cli/cli-decode.c (cmd_type): New function.
2182 * command.h (cmd_type): Declare.
2183 * infrun.c (set_schedlock_func): Call function cmd_type.
2184 * kod.c (kod_set_os): Call cmd_type.
2185 * cris-tdep.c (cris_version_update): Use function cmd_type.
2186 (cris_mode_update, cris_abi_update): Ditto.
2188 * command.h: (execute_cmd_post_hook): Declare.
2189 (execute_cmd_pre_hook): Declare.
2190 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2191 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2192 functions. Execute pre/post hook while ensuring that afterwords
2194 * top.c (execute_command): Use execute_cmd_post_hook, and
2195 execute_cmd_pre_hook to execute pre/post commands.
2196 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2198 (hook_stop_stub): Call execute_cmd_pre_hook.
2200 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2202 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2203 set'' and this leads to a core dump. Move xstrdup of
2204 operating_system to after check that it is not NULL.
2206 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2208 * kod.c (kod_set_os): Remove unnecessary check that
2209 ``command->type'' is set_cmd.
2211 * valprint.c (set_input_radix): Use input_radix.
2212 (set_output_radix): Use output_radix.
2213 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2216 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2218 * value.h (struct value): Delete field ``substring_addr''. Change
2219 aligner fields to force_doublest_align, force_longest_align,
2220 force_core_addr_align and force_pointer_aligh.
2222 * value.h (struct value): Fix typo in above change.
2224 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2226 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2227 to fix internal_error from ``maintenance print architecture''.
2229 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2231 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2232 for gcc versions after gcc-2.8.1.
2234 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2236 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2237 for method resolution. Restore adjustment of ``this'' pointer after
2238 calling value_struct_elt, which was accidentally removed during the
2241 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2243 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2245 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2247 * value.h (value_of_register): Update.
2249 2002-03-14 Richard Henderson <rth@redhat.com>
2251 * configure.in: Detect declaration for canonicalize_file_name.
2252 * utils.c (canonicalize_file_name): Declare, if needed.
2253 (gdb_realpath): Prefer realpath if available and usable.
2254 * config.in, configure: Rebuild.
2256 2002-03-14 Richard Henderson <rth@redhat.com>
2258 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2259 a constant array bound.
2261 * MAINTAINERS: Add myself to write-after-approval.
2263 2002-03-14 Michael Snyder <msnyder@redhat.com>
2265 * symfile.c (syms_from_objfile): Return immediately if no syms.
2266 (symbol_file_add): Return immediately if no syms.
2267 (find_sym_fns): Return immediately if no syms.
2269 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2271 * gdbserver/remote-util.c (remote_open): Print remote-side's
2272 IP address when remote debugging over the network.
2274 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2276 * config/sparc/fbsd.mh: Fix copyright.
2277 * config/sparc/fbsd.mt: Likewise.
2279 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2281 * MAINTAINERS: Fix typo in name of gdb warnings option.
2282 (x86-64): Fix formating so that this can be parsed by awk.
2284 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2286 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2287 * defs.h: Include "gdb/signals.h".
2288 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2290 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2292 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2293 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2296 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2297 Don Howard <dhoward@redhat.com>
2299 * mips-tdep.c (ST0_FR): Define.
2300 (mips2_fp_compat): New function, temporarily disabled.
2301 (mips_read_fp_register_single): New function.
2302 (mips_read_fp_register_double): New function.
2303 (mips_print_register): Use them.
2304 (do_fp_register_row): Likewise.
2306 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2308 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2311 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2313 * stabsread.c (read_member_functions): Fix is_stub test for
2314 static member functions, improve comment.
2316 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2318 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2319 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2320 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2321 commands that set boolean values.
2322 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2323 (arm_rdi_resume): Always initialize PC.
2324 (arm_rdi_open): Don't use rslt as a boolean.
2325 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2326 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2327 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2328 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2330 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2332 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2333 * configure: Rebuilt.
2335 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2337 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2338 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2340 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2342 * cli/cli-decode.c (set_cmd_completer): New function.
2343 * command.h (set_cmd_completer): Declare.
2344 * cli/cli-decode.h (set_cmd_completer): Ditto.
2346 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2347 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2348 * win32-nat.c (_initialize_inftarg): Ditto.
2349 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2350 * proc-api.c (_initialize_proc_api): Ditto.
2351 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2352 * source.c (_initialize_source): Ditto.
2353 * exec.c (_initialize_exec): Ditto.
2354 * solib.c (_initialize_solib): Ditto.
2355 * top.c (init_main): Ditto.
2356 * tracepoint.c (_initialize_tracepoint): Ditto.
2357 * symfile.c (_initialize_symfile): Ditto.
2358 * printcmd.c (_initialize_printcmd): Ditto.
2359 * infcmd.c (_initialize_infcmd): Ditto.
2360 * corefile.c (_initialize_core): Ditto.
2362 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2364 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2366 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2368 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2370 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2372 * NEWS: Update headings, 5.2 has branched.
2374 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2376 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2377 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2378 (register_addr, REGISTER_RAW_SIZE): Likewise.
2379 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2380 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2382 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2384 * MAINTAINERS (x86-64): Add myself.
2385 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2386 changed value_ptr -> struct value *
2388 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2390 * configure.host (sparc64-*-freebsd): Add.
2391 * configure.tgt: Likewise.
2392 * config/sparc/fbsd.mh: New file.
2393 * config/sparc/fbsd.mt: Likewise.
2394 * config/sparc/nm-fbsd.h: Likewise.
2395 * config/sparc/tm-fbsd.h: Likewise.
2397 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2399 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2400 regformats/reg-s390x.dat.
2402 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2404 * utils.c: Add FIXME explaining true/false problem.
2406 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2408 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2410 2002-02-28 Michael Chastain <mec@shout.net>
2412 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2414 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2416 * gdbserver/linux-s390-low.c: New file.
2417 * regformats/reg-s390.dat: New file.
2418 * regformats/reg-s390x.dat: New file.
2419 * gdbserver/configure.srv: Add S/390.
2420 * gdbserver/Makefile.in: Add S/390.
2421 * configure.tgt: Enable gdbserver for S/390.
2423 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2425 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2426 first line of the doc string for "info dos", except at the end of
2427 the sentence, since the short help stops at the first period.
2429 2002-02-28 Jason Merrill <jason@redhat.com>
2431 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2433 2002-02-27 Fred Fish <fnf@redhat.com>
2435 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2436 comment (dumy -> dummy).
2438 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2440 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2442 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2444 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2446 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2448 * gdbserver/acconfig.h: New file.
2449 * gdbserver/i387-fp.c: New file.
2450 * gdbserver/i387-fp.h: New file.
2451 * gdbserver/linux-x86-64.c: New file.
2452 * regformats/reg-x86-64.dat: New file.
2453 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2454 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2455 * gdbserver/configure.in: Add support for regsets.
2456 * gdbserver/config.in: Regenerate.
2457 * gdbserver/configure: Regenerate.
2458 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2459 * gdbserver/linux-low.h: New file.
2460 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2462 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2463 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2464 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2465 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2466 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2467 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2468 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2469 "i387-fp.h". Add PTRACE_GETREGS and friends.
2470 * gdbserver/regcache.c (supply_register): New function.
2471 (supply_register_by_name): New function.
2472 (collect_register): New function.
2473 (collect_register_by_name): New function.
2475 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2477 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2478 (config.status): Add configure.srv dependency.
2479 (server_h): Add config.h dependency.
2481 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2483 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2484 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2485 * gdbserver/configure.srv: Change i386-*-linux* to use
2488 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2490 * x86-64-tdep.c: Re-indent. Update copyright date.
2492 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2494 From Michal Ludvig <mludvig@suse.cz>:
2495 * x86-64-tdep.c (value.h): Delete.
2496 (gdb_assert.h): Include.
2497 (x86_64_register_convert_to_virtual,
2498 x86_64_register_convert_to_raw ): Add check which lets only
2499 floating-point values to be converted.
2500 (value_push): Delete.
2501 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2502 (i386_gdbarch_init): Number of register_bytes fixed.
2504 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2506 * MAINTAINERS: Add x86-64 target.
2508 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2510 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2511 * osfsolib.c (solib_map_sections): Ditto.
2512 * irix5-nat.c (solib_map_sections): Ditto.
2513 * corelow.c (gdb_check_format): Ditto.
2514 * symfile.c (symfile_bfd_open): Ditto.
2515 * solib.c (solib_map_sections): Ditto.
2518 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2520 * remote.c (_initialize_remote): By default, disable ``e'' and
2521 ``E'' step out-of-range packets.
2523 2002-02-26 Andreas Schwab <schwab@suse.de>
2525 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2526 m68k_linux_frame_saved_pc.
2527 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2529 (SIGCONTEXT_PC_OFFSET): Remove.
2530 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2531 m68k_linux_sigtramp_saved_pc): New functions.
2532 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2533 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2534 (UCONTEXT_PC_OFFSET): Define.
2535 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2536 non-RT and RT signal trampolines.
2538 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2540 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2541 (TARGET_NBPG, STACK_END_ADDR): Delete
2542 (VARIABLES_INSIDE_BLOCK): Delete.
2544 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2546 * utils.c (perror_with_name): Make string parameter constant.
2547 (print_sys_errmsg): Ditto.
2549 * defs.h (perror_with_name): Update.
2550 (print_sys_errmsg): Update.
2553 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2555 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2556 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2558 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2560 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2561 if it already matches the current architecture from the exec file.
2562 Include arch-utils.h for gdbarch_info_init prototype.
2563 * Makefile.in (rs6000-nat.o): Update dependencies.
2565 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2567 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2568 list of exported variables.
2570 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2572 * gdbserver/configure.srv: New file.
2573 * gdbserver/configure.in: Use configure.srv instead
2574 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2576 * gdbserver/configure: Regenerated.
2577 * gdbserver/terminal.h: New file.
2578 * gdbserver/Makefile.in: Update for configure changes. Remove
2579 more unneeded include paths.
2581 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2583 From wiz at danbala:
2584 * config/sparc/tm-sp64.h: Fix grammar and typos.
2587 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2589 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2590 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2591 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2592 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2593 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2594 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2595 * s390-tdep.c: Ditto.
2596 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2597 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2598 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2599 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2600 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2601 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2602 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2603 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2604 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2605 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2608 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2610 * lin-thread.c: Delete file.
2611 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2612 to gdb_proc_service.h.
2613 * configure: Re-generate.
2615 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2616 * serial.c (serial_open): Delete check for "ocd".
2619 * Makefile.in (linux-thread.o): Delete target.
2620 * linux-thread.c: Delete file.
2622 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2623 renamed SH files to be consistent.
2625 * symtab.c (sort_search_symbols): Use xfree.
2627 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2629 * arm-linux-tdep.c (arm_linux_init_abi): Register
2630 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2631 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2632 definition with undef, since we don't want the sysvr4 definition.
2633 (SKIP_TRAMPOLINE_CODE): Likewise.
2635 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2637 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2639 * configure.in: (AC_CHECK_FUNCS) Added test for
2640 canonicalize_file_name Regenerated.
2641 * config.in, configure: Regenerated.
2642 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2643 defined use canonicalize_file_name.
2645 2002-02-23 Michael Chastain <mec@shout.net>
2647 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2649 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2651 * README: Remove references to cygnus.com.
2652 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2653 dot com'' form. Remove references to cygnus.com and sourceware.
2655 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2657 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2658 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2659 1003.1-2001 no longer allows "head -1".
2660 * gdb/Makefile.in (version.c): Likewise.
2661 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2662 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2663 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2665 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2667 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2668 * command.h (cmd_cfunc_eq): Declare.
2669 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2671 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2672 ``struct cmd_list_element *''.
2673 * cli/cli-cmds.c (is_complete_command): Update. Use
2675 * top.c (execute_command): Pass the command to
2676 is_complete_command.
2677 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2679 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2681 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2682 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2683 architecture defines.
2684 * s390-tdep.c (s390_gdbarch_init): Likewise.
2686 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2688 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2689 (arm_linux_push_arguments): Likewise.
2690 (arm_linux_init_abi): Register them. Also register linux-specific
2692 (find_minsym_and_objfile): Use strcmp, not STREQ.
2693 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2694 (arm_linux_call_dummy_words): Delete declaration.
2695 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2696 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2698 (LOWEST_PC): Delete.
2700 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2702 * maint.c (print_section_info): Do not prepend `0x' to filepos
2703 output, it will be handled by local_hex_string_custom.
2705 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2707 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2708 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2709 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2711 2002-02-22 Jim Blandy <jimb@redhat.com>
2713 Indicate that the bcache functions don't change the strings
2715 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2716 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2718 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2720 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2722 2002-02-21 Christopher Faylor <cgf@redhat.com>
2724 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2725 find the complete path to a loaded DLL.
2727 2002-02-21 Fred Fish <fnf@redhat.com>
2729 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2730 that marks the end of the range of a function, enter a line number
2731 entry that has a line number of zero and a PC offset that matches
2732 the end of the function. This starts a range of PC's for which no
2733 line number information is known.
2734 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2735 PC's for which no line number info is found (line number is zero)
2736 then we didn't find any valid line information.
2737 * symtab.h: Document use of zero line number entry.
2739 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2741 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2742 (have_ptrace_getvrregs): Define for run time checks.
2743 (gdb_vrregset_t): New type for Altivec register handling.
2744 (fetch_register, store_register): Fetch/store altivec register
2746 (fetch_altivec_register, store_altivec_register): New functions.
2747 (supply_vrregset, fill_vrregset): New functions.
2748 (fetch_altivec_registers, store_altivec_registers): New functions.
2749 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2752 2002-02-21 Jiri Smid <smid@suse.cz>
2754 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2756 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2758 * Makefile.in (armnbsd-nat.o): Update dependencies.
2759 * armnbsd-nat.c (supply_gregset): New function. Common code to
2760 supply the integer register set.
2761 (supply_fparegset): New function. Similar for FPA registers.
2762 (fetch_regs, fetch_fp_regs): Use them.
2763 (fetch_core_registers): Likewise.
2764 (fetch_elfcore_registers): New function.
2765 (arm_netbsd_elfcore_fns): New core-file type specification.
2766 (_initialize_arm_netbsd_nat): Register it.
2768 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2770 * armnbsd-nat.c: Include gdbcore.h.
2771 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2772 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2773 'void' to declaration, to shut up ARI.
2774 (fetch_core_registers): Make static. Rewrite using supply_register.
2775 (arm_netbsd_core_fns): New core-file type specification.
2776 (_initialize_arm_netbsd_nat): New function.
2778 2002-02-21 Christopher Faylor <cgf@redhat.com>
2780 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2783 2002-02-20 Christopher Faylor <cgf@redhat.com>
2785 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2788 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2790 * jv-exp.y (parse_number): Change type of implicit longs
2791 to builtin_type_uint64.
2793 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2795 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2796 to be an integer instead of a `union wait'.
2798 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2800 * mips-linux-nat.c: Call the operating system GNU/Linux.
2801 * mips-linux-tdep.c: Likewise.
2802 * mips-tdep.c: Likewise.
2804 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2807 * jv-exp.y (parse_number): Handle 64-bit integers.
2809 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2811 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2812 AC_STDC_HEADERS to AC_HEADER_STDC.
2813 * gdbserver/configure: Regenerated.
2815 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2817 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2819 * sparc-tdep.c (get_longjmp_target): Likewise.
2821 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2823 * News: Add news about ARM and Multi-arch. Mention the new target
2826 2002-02-19 Jim Blandy <jimb@redhat.com>
2828 * stabsread.c (error_type_complaint): Improve error message.
2830 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2832 * gdbserver/README: Update documentation.
2833 * gdbserver/configure.in: Update configury to match documentation.
2834 * gdbserver/Makefile.in: Likewise.
2835 * gdbserver/configure: Regenerated.
2836 * gdbserver/aclocal.m4: New file, generated by aclocal.
2837 * gdbserver/config.in: New file, generated by autoheader.
2839 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2841 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2844 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2846 * arm-tdep.h (enum arm_float_model): New enum.
2847 (struct gdbarch_tdep): Add fp_model.
2848 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2849 up floating-point conversions until we know the floating-point model
2850 in use by the inferior. Don't complain about being unable to
2851 determine the ABI of the inferior when we don't have one.
2852 (arm_extract_return_value): Support different floating-point models.
2853 (arm_store_return_value): Likewise.
2854 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2856 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2858 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2860 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2861 of ``current_gdbarch''.
2863 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2865 * armnbsd-nat.c : ANSIfy all function declarations.
2866 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2867 (fetch_inferior_registers): Re-implement in terms of above.
2868 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2869 (store_inferior_registers): Re-implement in terms of above.
2871 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2873 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2875 * arm-linux-tdep.c: Likewise.
2876 * config/arm/tm-linux.h: Likewise.
2878 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2880 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2881 * config/arm/nbsd.mt (TM_FILE): Delete.
2882 * config/arm/tm-nbsd.h: Delete.
2884 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2886 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2887 Initialize CALL_DUMMY_LENGTH.
2889 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2891 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2893 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2894 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2895 defines one thing and that is incorrect for this port.
2896 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2898 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2900 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2902 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2904 * win32-nat.c (display_selector): New function. Displays information
2905 about the information returned by GetThreadSelectorEntry API function.
2906 (display_selectors): New function. Displays the infomation of
2907 the selector given as argument, or of CS, DS ans FS selectors
2908 if no argument is given.
2909 ( _initialize_inftarg): Add "w32" as info prefix command.
2910 Add "info w32 selector" as command calling display_selectors.
2912 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2914 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2915 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2918 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2920 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2922 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2924 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2925 (arm_fix_call_dummy): Call it.
2926 (arm_call_dummy_breakpoint_offset): Delete.
2927 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2928 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2930 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2932 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2933 Default to func_frame_chain_valid.
2934 * gdbarch.h, gdbarch.c: Re-generate.
2935 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2937 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2939 * ppc-linux-nat.c: Update copyright.
2940 (fetch_register, store_register): Add tid parameter, don't compute
2942 (fetch_ppc_registers, store_ppc_registers): Add tid
2943 parameter. Pass it along to callees.
2944 (fetch_inferior_registers, store_inferior_registers): Compute tid
2945 here, and pass it to calleed functions.
2946 (fill_gregset, supply_fpregset): Clean up formatting.
2948 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2950 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2951 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2953 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2955 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2956 * gdbarch.c gdbarch.h: Regenerate.
2957 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2959 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2960 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2961 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2963 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2964 * arm-tdep.c (arm_get_longjmp_target): New function.
2965 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2966 this to a positive value register arm_get_longjmp_target as the
2968 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2969 (arm_linux_init_abi): Set up longjmp description in tdep.
2970 * armnbsd-nat.c (get_longjmp_target): Delete.
2971 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2972 description in tdep.
2973 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2974 (get_longjmp_target): Delete declaration.
2975 (GET_LONGJMP_TARGET): Delete.
2976 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2977 (GET_LONGJMP_TARGET): Delete.
2979 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2981 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2982 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2983 of ``current_gdbarch''.
2985 2002-02-17 Tom Tromey <tromey@redhat.com>
2987 * cli/cli-cmds.c (compare_strings): New function.
2988 (complete_command): Only print each unique item once.
2989 * completer.h (complete_line): Declare.
2990 * completer.c (complete_line): New function.
2991 (line_completion_function): Use it.
2993 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2995 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2996 * gdbarch.h, gdbarch.c: Re-generate.
2998 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3000 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3002 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3004 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3005 * valops.c (value_arg_coerce): Don't take the address of a reference
3006 to convert an argument to a reference.
3008 2002-02-15 Christopher Faylor <cgf@redhat.com>
3010 * win32-nat.c (get_image_name): New function.
3011 (handle_load_dll): Use get_image_name function.
3012 (get_child_debug_event): Avoid registering debug events until possibly
3013 execed process is started.
3014 (child_create_inferior): Allow invocation via shell so that command
3015 line redirection, etc. works ok.
3016 (_initialize_inftarg): Add new command: "set shell" to control whether
3017 a shell is used to start a process.
3019 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3021 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3022 instead of find_register_by_number.
3023 (cannot_store_register): Likewise.
3025 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3027 * dwarf2read.c: Replace fprintf (stderr, ...) by
3028 fprintf_unfiltered (gdb_stderr, ...).
3030 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3032 * gdbserver/gdbserver.1: Document --attach.
3034 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3036 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3038 * arm-tdep.c (arm_default_arm_le_breakpoint)
3039 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3040 (arm_default_thumb_be_breakpoint): New. Initialize them from
3041 traditional breakpoint defines.
3042 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3043 (arm_gdbarch_init): Initialize new breakpoint variables.
3044 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3045 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3046 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3047 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3049 (arm_netbsd_init_abi_common): ... here; new function.
3050 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3051 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3052 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3053 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3055 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3057 * arm-tdep.h (enum arm_abi): New enum.
3058 (struct gdbarch_tdep): New structure.
3059 (LOWEST_PC): Provide a default.
3060 (arm_gdbarch_register_os_abi): Declare new function.
3061 * arm-tdep.c (arm_abi_names): New array.
3062 (process_note_abi_tag_sections): New function.
3063 (get_elfosabi): New function.
3064 (arm_gdbarch_register_os_abi): New function.
3065 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3066 support for that ABI has been built in, then call the appropriate
3067 configuration routine. Use gdbarch_num_regs() to get the number
3069 (arm_dump_tdep): New function.
3070 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3071 place-holder functions.
3072 (_initialize_arm_tdep): Register them.
3073 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3075 * armnbsd-tdep.c: New file.
3076 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3077 * config/arm/nbsd.mt (TDEPFILES): Add it.
3078 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3080 * armnbsd-nat.c: Include regcache.h.
3081 * Makefile.in (armnbsd-nat.o): Update dependency list.
3083 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3085 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3087 * gdbserver/Makefile.in: Fix typos in target rules.
3089 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3091 Fix part of PR gdb/267.
3092 * linespec.c (find_methods): Handle constructors specially for now.
3094 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3096 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3098 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3099 standard_coerce_float_to_double().
3101 2002-02-14 Christopher Faylor <cgf@redhat.com>
3103 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3106 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3108 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3109 find_variant_by_name, because it confuses the multiarch
3110 framework. Return NULL if there isn't an architecture with the
3111 user supplied name, instead of forcing a different one without
3112 recording the change with the multiarch machinery.
3113 (find_variant_by_name): Delete.
3115 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3117 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3118 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3120 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3122 * stack.c (print_frame_info_base): When calling
3123 print_frame_info_listing_hook, set current_source_symtab.
3125 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3127 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3128 and remove unused $(INCLUDE_DIR).
3129 Add regcache.c to OBS.
3130 Add generated register protocol files to clean target.
3131 Update dependencies for new objects, obsolete old target code.
3133 * gdbserver/linux-low.c: Remove all platform-specific code to
3134 new files. Remove various dead code. Update to use regcache
3136 * gdbserver/remote-utils.c (fromhex): Add return statement
3138 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3140 (input_interrupt): Add integer parameter to match prototype
3141 of a signal handler.
3142 (outreg): Use register_data ().
3143 (prepare_resume_reply): Use gdbserver_expedite_regs.
3144 * gdbserver/server.c (main): Dynamically allocate own_buf because
3145 PBUFSIZ is no longer constant. Use registers_to_string () and
3146 registers_from_string ().
3147 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3148 for error (), fatal (), and warning (). Update definition of
3149 PBUFSIZ to use regcache functionality. Add include guard.
3150 * gdbserver/utils.c (fatal): Add missing ``const''.
3151 (warning): New function.
3153 * regformats/regdat.sh: Include "regcache.h" in generated files.
3154 Provide init_registers () function.
3155 * regformats/regdef.h: Add prototype for set_register_cache ().
3158 * gdbserver/linux-arm-low.c: New file.
3159 * gdbserver/linux-i386-low.c: New file.
3160 * gdbserver/linux-ia64-low.c: New file.
3161 * gdbserver/linux-m68k-low.c: New file.
3162 * gdbserver/linux-mips-low.c: New file.
3163 * gdbserver/linux-ppc-low.c: New file.
3164 * gdbserver/linux-sh-low.c: New file.
3166 * gdbserver/regcache.c: New file.
3167 * gdbserver/regcache.h: New file.
3169 * gdbserver/low-linux.c: Removed obsolete file.
3171 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3173 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3174 * config/i386/linux.mt: Likewise.
3175 * config/ia64/linux.mt: Likewise.
3176 * config/m68k/linux.mh: Likewise.
3177 * config/powerpc/linux.mh: Likewise.
3178 * config/mips/linux.mt: Likewise.
3180 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3182 * config/i386/i386lynx.mh: Mark gdbserver variables
3183 as (currently) obsolete for this target.
3184 * config/i386/nbsd.mt: Likewise.
3185 * config/i386/nbsdelf.mt: Likewise.
3186 * config/m32r/m32r.mt: Likewise.
3187 * config/m68k/m68klynx.mh: Likewise.
3188 * config/m68k/nbsd.mt: Likewise.
3189 * config/m68k/sun3os4.mh: Likewise.
3190 * config/mips/vr5000.mt: Likewise.
3191 * config/ns32k/nbsd.mt: Likewise.
3192 * config/pa/hppabsd.mh: Likewise.
3193 * config/pa/hppaosf.mh: Likewise.
3194 * config/powerpc/nbsd.mt: Likewise.
3195 * config/rs6000/rs6000lynx.mh: Likewise.
3196 * config/s390/s390.mt: Likewise.
3197 * config/s390/s390x.mt: Likewise.
3198 * config/sparc/sparclynx.mh: Likewise.
3199 * config/sparc/sun4os4.mh: Likewise.
3200 * config/i386/x86-64linux.mt: Likewise.
3201 * config/sparc/linux.mh: Likewise.
3203 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3205 * configure.tgt: Configure gdbserver only for known working
3206 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3207 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3208 SUBDIRS if it is configured. Update comment for ${nativefile}.
3209 * configure: Regenerated.
3211 2002-02-13 Michael Snyder <msnyder@redhat.com>
3213 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3215 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3216 (default_gcore_mach): Just return 0, work around a problem in bfd.
3217 (default_gcore_target): OK to return NULL if exec_bfd is null.
3218 (make_mem_sec): Use a cast, avoid a warning.
3220 * procfs.c (find_memory_regions_callback): Use a cast instead of
3221 calling host_pointer_to_address (which complains if
3222 sizeof (host pointer) != sizeof (target pointer)).
3223 (procfs_make_note_section): Avoid overflow in psargs string.
3225 * procfs.c (procfs_make_note_section): Make the default
3226 implementation return an error.
3228 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3230 * procfs.c (procfs_make_note_section): Provide a default definition
3231 (for alpha-dec-osf4.0f). Fix typos.
3233 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3235 * linux-proc.c: Add include of regcache.h.
3236 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3238 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3240 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3241 * memattr.c (create_mem_region): Disallow useless empty region.
3242 Regions are half-open intervals, so allow [A..B) [B..C) as
3245 2002-02-13 Michael Chastain <mec@shout.net>
3247 * defs.h: Kill CONST_PTR.
3248 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3249 * c-lang.c (c_builtin_types): Likewise.
3250 * ch-lang.c (ch_builtin_types): Likewise.
3251 * f-lang.c (f_builtin_types): Likewise.
3252 * language.c (unknown_builtin_types): Likewise.
3253 * m2-lang.c (m2_builtin_types): Likewise.
3254 * p-lang.c (pascal_builtin_types): Likewise.
3255 * scm-lang.c (c_builtin_types): Likewise.
3257 2002-02-13 Keith Seitz <keiths@redhat.com>
3259 * arm-tdep.h (arm_get_next_pc): Add declaration.
3261 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3263 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3264 with other related struct-returning functions.
3265 (arm_extract_struct_value_address): New function.
3266 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3267 initialize float_format, double_format and long_double_format as
3268 appropriate to the endianness of the target.
3269 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3270 (arm_use_struct_convention): Delete declaration.
3271 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3273 2002-02-13 Keith Seitz <keiths@redhat.com>
3275 * defs.h (core_addr_to_string_nz): New function.
3277 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3279 Apply missing bits of 2002-01-15 patch.
3280 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3281 (fill_fpregset): Use i387_fill_fsave.
3283 2002-02-12 Keith Seitz <keiths@redhat.com>
3285 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3286 (core_addr_to_string_nz): New function.
3288 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3290 * arm-linux-nat.c: Really include arm-tdep.h.
3291 * config/arm/tm-linux.h (struct type, struct value): Declare.
3293 2002-02-11 Michael Snyder <msnyder@redhat.com>
3295 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3296 (gcore section): Ifdef for Solaris and Unixware only.
3297 (procfs_do_thread_registers): Unixware needs one lwpstatus
3298 per thread (not one prstatus or pstatus).
3299 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3300 not over all gdb threads. For unixware, call elfcore_write_pstatus
3301 once before iterating over threads.
3303 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3305 * arm-tdep.h: New file.
3306 * arm-tdep.c: Include arm-tdep.h.
3307 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3308 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3309 (arm_print_float_info, arm_register_type, convert_to_extended)
3310 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3311 (arm_extract_return_value, arm_register_name): Make static.
3312 (arm_software_single_step): Similarly. Fix types in declaration.
3313 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3314 (arm_store_return_value, arm_store_struct_return): New functions.
3315 (arm_gdbarch_init): Register the above functions. Also register
3316 call_dummy_start_offset, sizeof_call_dummy_words,
3317 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3318 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3319 max_register_virtual_size, register_size. Set up
3320 prologue_cache.saved_regs here, rather than ...
3321 (_initialize_arm_tdep): ... here.
3322 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3324 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3325 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3326 (arm_print_float_info, arm_register_type, convert_to_extended)
3327 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3328 (arm_extract_return_value, arm_register_name): Delete declarations.
3329 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3330 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3331 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3332 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3333 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3334 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3335 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3336 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3337 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3338 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3339 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3340 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3342 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3343 * remote-rdi.c remote-rdp.c: Likewise.
3344 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3345 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3346 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3349 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3350 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3351 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3352 from non-ARM_ prefixed definitions.
3353 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3355 * remote-rdi.c remote-rdp.c: Likewise.
3356 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3358 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3360 * arm-tdep.c (arm_frameless_function_invocation)
3361 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3362 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3363 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3364 (arm_pop_frame, arm_get_next_pc): Make static.
3365 (arm_gdbarch_init): Register above in gdbarch structure.
3366 (arm_read_fp): Renamed from arm_target_read_fp.
3367 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3368 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3369 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3370 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3371 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3372 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3373 (arm_pc_is_thumb_dummy): Delete declarations.
3374 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3375 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3376 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3377 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3379 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3381 * symtab.c (compare_search_syms): New function.
3382 (sort_search_symbols): New function.
3383 (search_symbols): Sort symbols after searching rather than
3386 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3388 * NEWS: Linux -> GNU/Linux.
3390 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3392 * gdbarch.sh: For for level one methods, disallow a definition
3393 when partially multi-arched. Add comments explaining rationale.
3394 * gdbarch.h: Re-generate.
3396 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3398 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3401 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3403 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3405 * gdbarch.c: Re-generate.
3407 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3409 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3410 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3413 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3415 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3417 (PUSH_ARGUMENTS): Switch to using predefault.
3418 * gdbarch.c: Regenerate.
3420 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3422 * valops.c (PUSH_ARGUMENTS): Delete definition.
3423 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3424 partial. Default to default_push_arguments.
3425 * gdbarch.h, gdbarch.c: Regenerate.
3427 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3429 * defs.h (throw_exception): Rename return_to_top_level. Update
3431 * utils.c (error_stream, internal_verror, quit): Ditto.
3432 * top.c (throw_exception, catcher): Ditto.
3433 * sparclet-rom.c (sparclet_load): Ditto.
3434 * remote.c (interrupt_query, minitelnet): Ditto.
3435 * remote-sds.c (interrupt_query): Ditto.
3436 * remote-mips.c (mips_error, mips_kill): Ditto.
3437 * ocd.c (interrupt_query): Ditto.
3438 * monitor.c (monitor_interrupt_query): Ditto.
3439 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3440 * target.h: Update comment.
3442 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3444 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3446 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3447 default_double_format.
3448 * gdbarch.h, gdbarch.c: Re-generate.
3449 * findvar.c (floatformat_unknown): Delete variable definition.
3450 * doublest.h (floatformat_unknown): Delete variable declaration.
3452 2002-02-09 Jim Blandy <jimb@redhat.com>
3454 * stabsread.c (read_type): Add code to parse Sun's syntax for
3455 prototyped function types.
3457 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3459 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3460 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3462 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3464 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3465 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3466 now _initialize_xcoffsolib gets called again and overrides the
3467 commands from solib.c in a native configuration.
3469 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3471 * doublest.c (store_typed_floating): Don't try to return a value.
3474 2002-02-08 Jim Blandy <jimb@redhat.com>
3476 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3477 is prototyped and has no arguments, print its argument list as
3480 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3482 * MAINTAINERS (write-after-approval): Add myself.
3483 (paper-trail): I've escaped!
3485 2002-02-08 Christopher Faylor <cgf@redhat.com>
3487 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3489 (_initialize_check_for_gdb_ini): Ditto.
3491 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3493 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3494 xaprintf -> xasprintf.
3496 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3498 * win32-nat.c: Remove use of printf and sprintf functions.
3500 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3502 * arm-tdep.c (arm_frame_chain_valid): Make static.
3503 (arm_push_arguments): Likewise.
3504 (arm_gdbarch_init): New function.
3505 (_initialize_arm_tdep): Call it.
3506 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3507 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3508 (FRAME_CHAIN_VALID): Delete.
3509 (arm_frame_chain_valid): Delete declaration.
3510 (PUSH_ARGUMENTS): Delete.
3511 (arm_push_arguments): Delete declaration.
3512 (CALL_DUMMY_P): Delete.
3514 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3515 Corinna Vinschen <vinschen@redhat.com>
3517 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3518 on builtin float types.
3520 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3522 * utils.c: Include <curses.h> before "bfd.h".
3523 * tui/tui-hooks.c: Likewise.
3524 * tui/tui.c: Likewise.
3525 * tui/tuiCommand.c: Likewise.
3526 * tui/tuiData.c: Likewise.
3527 * tui/tuiDataWin.c: Likewise.
3528 * tui/tuiDisassem.c: Likewise.
3529 * tui/tuiGeneralWin.c: Likewise.
3530 * tui/tuiIO.c: Likewise.
3531 * tui/tuiLayout.c: Likewise.
3532 * tui/tuiRegs.c: Likewise.
3533 * tui/tuiSource.c: Likewise.
3534 * tui/tuiSourceWin.c: Likewise.
3535 * tui/tuiStack.c: Likewise.
3536 * tui/tuiWin.c: Likewise.
3538 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3540 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3541 to include space for pseudoregs as well. Update loops accordingly.
3542 (sh_fp_frame_init_saved_regs): Ditto.
3543 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3545 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3547 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3548 Add Richard Earnshaw to Arm maintainers.
3550 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3552 * defs.h (warning_begin): Delete declaration.
3554 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3557 2002-02-07 Michael Snyder <msnyder@redhat.com>
3559 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3560 Logic bug, remove misplaced else.
3562 2002-02-07 Klee Dienes <klee@apple.com>
3564 * fork-inferior.c (fork_inferior): Add '!' to the list of
3565 characters that need to be quoted when building a string for the
3566 shell. Quote '!' specifically with a backslash, since CSH chokes
3567 when trying to evaluate "str!str".
3569 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3571 * rdi-share/host.h: Only provide a typedef for bool if it is not
3574 2002-02-04 Michael Snyder <msnyder@redhat.com>
3576 * breakpoint.h (enum bptype): Add new overlay event bp type.
3577 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3579 * breakpoint.c (create_internal_breakpoint): New function.
3580 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3581 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3582 (create_thread_event_breakpoint): Ditto.
3583 (create_solib_event_breakpoint): Ditto.
3584 (create_overlay_event_breakpoint): New function.
3585 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3586 (update_breakpoints_after_exec): Delete and re-initialize
3587 overlay event breakpoints after an exec. Add FIXME comment
3588 about longjmp breakpoint.
3589 (print_it_typical): Ignore overlay event breakpoints.
3590 (print_one_breakpoint): Ditto.
3592 (bpstat_what): Do not stop for overlay event breakpoints.
3593 (delete_breakpoint): Don't delete overlay event breakpoints.
3594 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3595 (breakpoint_re_set): Re-create overlay event breakpoint.
3597 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3598 (overlay_manual_command): Disable overlay breakpoints.
3599 (overlay_off_command): Disable overlay breakpoints.
3601 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3603 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3604 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3605 to here from config/tm-arm.h.
3606 (coff_sym_is_thumb): Make static.
3607 (arm_elf_make_msymbol_special): New function.
3608 (arm_coff_make_msymbol_special): New function.
3609 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3610 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3611 (coff_sym_is_thumb): Delete declaration.
3612 (arm_elf_make_msymbol_special): Declare.
3613 (arm_coff_make_msymbol_special): Declare.
3614 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3615 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3617 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3619 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3621 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3623 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3624 * gdbarch.c gdbarch.h: Regenerate.
3625 * arch-utils.c (default_print_float_info): New function.
3626 * arch-utils.h (default_print_float_info): Prototype it.
3627 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3628 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3629 (PRINT_FLOAT_INFO): Document it.
3631 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3632 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3633 (PRINT_FLOAT_INFO): Define.
3635 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3637 * win32-nat.c (_initialize_check_for_gdb_ini):
3638 Add typecast to sprintf argument to suppress a warning.
3640 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3642 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3643 to allow easier handling of pass state.
3644 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3645 that gives exception name and address.
3646 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3647 and set last_sig value to ourstatus->value.sig. Some missing
3649 (child_continue): Correctly report continue_status.
3650 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3651 TARGET_SIGNAL_0 (new default value).
3652 (child_resume): consider sig argument passed to decide if
3653 the exception should be passed to debuggee or not.
3655 2002-02-05 Michael Snyder <msnyder@redhat.com>
3657 * regcache.c (fetch_register): Call target_fetch_register
3658 only if we don't call FETCH_PSEUDO_REGISTER.
3659 (store_register): Call target_store_register only if we
3660 don't call STORE_PSEUDO_REGISTER.
3662 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3664 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3665 ELF_MAKE_MSYMBOL_SPECIAL.
3666 * gdbarch.c, gdbarch.h: Regenerate.
3667 * arch-utils.c (default_make_msymbol_special): New function.
3668 * arch-utils.h (default_make_msymbol_special): Export.
3669 * elfread.c (elf_symtab_read): Compile use of
3670 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3672 * coffread.c (coff_symtab_read): Ditto, for
3673 COFF_MAKE_MSYMBOL_SPECIAL.
3675 2002-02-05 Jim Blandy <jimb@redhat.com>
3677 * solib-svr4.c (svr4_truncate_ptr): New function.
3678 (svr4_relocate_section_addresses): Do the address arithmetic with
3679 the appropriate truncation for target addresses, even when
3680 CORE_ADDR is larger than a target address.
3682 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3684 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3687 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3689 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3692 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3694 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3696 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3698 * gdbserver/linux-low.c: Remove unused include files.
3700 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3702 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3703 (read_inferior_memory): Use it.
3704 (write_inferior_memory): Likewise.
3706 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3708 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3709 grubbing through sys_errlist.
3711 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3713 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3715 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3716 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3718 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3720 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3721 (do_sfunc, set_cmd_sfunc): New functions.
3723 * command.h (struct cmd_list_element): Add field func.
3724 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3725 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3726 * cli/cli-decode.h: Ditto.
3728 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3729 (help_all, help_cmd_list): Ditto.
3730 (find_cmd, complete_on_cmdlist): Ditto.
3731 * top.c (execute_command): Ditto.
3733 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3736 * infcmd.c (notice_args_read): Fix function signature.
3738 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3739 * cli/cli-decode.c (add_set_cmd): Ditto.
3740 * utils.c (initialize_utils): Ditto.
3741 * maint.c (_initialize_maint_cmds): Ditto.
3742 * infrun.c (_initialize_infrun): Ditto.
3743 * demangle.c (_initialize_demangler): Ditto.
3744 * remote.c (add_packet_config_cmd): Ditto.
3745 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3746 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3747 * proc-api.c (_initialize_proc_api): Ditto.
3748 * kod.c (_initialize_kod): Ditto.
3749 * valprint.c (_initialize_valprint): Ditto.
3750 * top.c (init_main): Ditto.
3751 * infcmd.c (_initialize_infcmd): Ditto.
3752 * corefile.c (_initialize_core): Ditto.
3753 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3754 * arch-utils.c (initialize_current_architecture): Ditto.
3755 (_initialize_gdbarch_utils): Ditto.
3756 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3758 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3759 * wince.c (_initialize_inftarg): Ditto.
3760 * symfile.c (_initialize_symfile): Ditto.
3761 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3762 * language.c (_initialize_language): Ditto.
3763 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3765 2002-02-04 Michael Snyder <msnyder@redhat.com>
3767 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3769 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3771 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3772 Add rules for building the register data files.
3774 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3776 * regformats/regdat.sh: Add braces to the definition of
3777 expedite_regs_${arch}.
3779 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3781 * regformats/regdef.h (struct reg): Add comment describing the
3782 requirements for offset and size fields.
3784 2002-02-04 Andreas Schwab <schwab@suse.de>
3786 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3787 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3789 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3791 * gdbarch.sh (copyright): Update years in generated header.
3792 (SMASH_TEXT_ADDRESS): Add rule.
3793 * gdbarch.h, gdbarch.c: Re-generate.
3794 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3795 * dbxread.c: Likewise.
3796 * dwarfread.c: Likewise.
3797 * elfread.c: Likewise.
3798 * somread.c: Likewise.
3800 * arm-tdep.c (arm_smash_text_address): New function.
3801 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3803 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3805 Add support for hardware watchpoints on win32 native.
3806 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3807 CONTEXT_DEBUG_REGISTERS.
3808 (dr variable): New variable. Static array containing a local copy
3810 (debug_registers_changed): New variable. Reflects when debug registers
3811 are changed and need to be written to inferior.
3812 (debug_registers_used): New variable. Reflects when any debug register
3813 was set, used when new threads are created.
3814 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3816 (thread_rec): Set dr array if id is the thread of current_event .
3817 (child_continue, child_resume): Change the debug registers for all
3818 threads if debug_registers_changed.
3819 (child_add_thread): Change the debug registers if debug_registers_used.
3820 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3821 Link nm.h to new nm-cygwin.h file.
3822 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3823 of hardware registers.
3825 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3827 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3828 Restore behavour broken by 2002-01-20 Andrew Cagney
3829 <ac131313@redhat.com> IEEE_FLOAT removal.
3831 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3833 * c-valprint.c (c_val_print): Pass a proper valaddr to
3834 cp_print_class_method.
3835 * valops.c (search_struct_method): If there is only one method
3836 and args is NULL, return that method.
3838 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3840 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3841 accessing tag_name directly.
3843 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3845 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3846 of accessing tag_name directly.
3848 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3851 * gdbtypes.c (replace_type): New function.
3852 * gdbtypes.h (replace_type): Add prototype.
3853 * stabsread.c (read_type): Use replace_type.
3855 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3857 * Makefile.in (memattr.o): Add missing dependencies rule.
3859 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3861 * breakpoint.c (break_at_finish_command): Really export.
3862 (break_at_finish_at_depth_command): Ditto.
3863 (tbreak_at_finish_command): Ditto.
3864 * hppa-tdep.c: Include completer.h.
3865 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3866 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3868 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3870 * utils.c (do_write): New function.
3871 (error_stream): Rewrite combining the code from error_begin and
3873 (verror): Rewrite using error_stream.
3874 (error_begin): Delete function.
3876 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3878 * utils.c (error_begin): Make static.
3879 * defs.h (error_begin): Delete declaration.
3881 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3882 (decode_line_1): Use cplusplus_error instead of error_begin,
3883 cplusplus_hint and return_to_top_level.
3884 * coffread.c (coff_symfile_read): Use error instead of error_begin
3885 and return_to_top_level.
3886 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3888 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3890 * language.h (type_error, range_error): Make string parameter
3892 * language.c (warning_pre_print): Delete extern declaration.
3893 * dwarfread.c (warning_pre_print): Ditto.
3894 * language.c (type_error, range_error): Rewrite to use verror and
3895 vwarning instead of warning_begin.
3897 2002-02-01 Michael Snyder <msnyder@redhat.com>
3899 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3900 (set_ignore_count): Move misplaced comment back where it belongs.
3902 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3904 * command.h (NO_FUNCTION): Delete macro.
3905 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3906 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3907 * tracepoint.c (_initialize_tracepoint): Ditto.
3908 * cli/cli-decode.c (add_set_cmd): Ditto.
3909 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3911 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3913 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3914 Update ``this'' pointer when calling virtual functions.
3916 2002-02-01 Michael Snyder <msnyder@redhat.com>
3918 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3919 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3921 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3923 * regformats/reg-arm.dat: New file.
3924 * regformats/reg-i386.dat: New file.
3925 * regformats/reg-ia64.dat: New file.
3926 * regformats/reg-m68k.dat: New file.
3927 * regformats/reg-mips.dat: New file.
3928 * regformats/reg-ppc.dat: New file.
3929 * regformats/reg-sh.dat: New file.
3930 * regformats/regdef.h: New file.
3931 * regformats/regdat.sh: New file.
3933 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3935 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3936 (arm_frame_args_address, arm_frame_locals_address): New functions.
3937 (arm_frame_num_args): New function.
3938 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3939 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3940 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3942 2002-01-31 Michael Snyder <msnyder@redhat.com>
3944 * breakpoint.c (break_at_finish_command): Export.
3945 (break_at_finish_at_depth_command): Export.
3946 (tbreak_at_finish_command): Export.
3947 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3948 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3949 "tbreak" commands, which are HPPA specific.
3951 * printcmd.c (disassemble_command): Remove an ancient
3952 artifact of an old merge.
3954 * symfile.h (enum overlay_debugging_state):
3955 Define enum constant values for overlay mode.
3956 * symfile.c (overlay_debugging): Use enums instead of literals.
3957 (overlay_is_mapped, overlay_auto_command,
3958 overlay_manual_command): Ditto.
3960 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3961 breakpoint_here_p, breakpoint_inserted_here_p,
3962 breakpoint_thread_match, bpstat_stop_status,
3963 describe_other_breakpoints, check_duplicates, clear_command):
3964 Coding standard fixes.
3966 * target.c (target_xfer_memory): Add spaces, coding standard.
3967 (do_xfer_memory): Add missing line to trust-readonly
3968 code: check bfd SEC_READONLY flag for section.
3970 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3972 * PROBLEMS: Fix typo, 5.1->5.1.1.
3974 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3976 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3977 data symbols, since we search based on textlow and texthigh.
3978 (find_pc_sect_symtab): Likewise.
3980 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3982 * defs.h (vwarning): Declare.
3983 * utils.c (vwarning): New function.
3984 (warning): Call vwarning.
3985 (warning_begin): Delete function.
3987 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3988 the warning message.
3989 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3992 2002-01-30 Michael Snyder <msnyder@redhat.com>
3994 * NEWS: Mention "set trust-readonly-sections" command.
3995 Mention generate-core-file command.
3997 2002-01-15 Michael Snyder <msnyder@redhat.com>
3999 * target.c: New command, "set trust-readonly-sections on".
4000 (do_xfer_memory): Honor the suggestion to trust readonly sections
4001 by reading them from the object file instead of from the target.
4002 (initialize_targets): Register command "set trust-readonly-sections".
4004 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4006 * parse.c (target_map_name_to_register): Simplify, search regs and
4007 pseudo-regs using a single loop.
4009 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4011 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4013 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4015 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4016 * config/i386/i386v42mp.mh: Add i387-nat.o .
4017 * i386v4-nat.c: Include i387-nat.h.
4018 (supply_fpregset): Use i387_supply_fsave.
4019 (fill_fpregset): Use i387_fill_fsave.
4021 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4023 * arm-tdep.c (arm_call_dummy_words): Define.
4024 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4025 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4026 (CALL_DUMMY_WORDS): Define.
4027 (arm_call_dummy_words): Declare.
4028 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4029 (arm_linux_call_dummy_words): Declare.
4031 2002-01-30 Andreas Schwab <schwab@suse.de>
4033 * m68klinux-nat.c: Fix last change to use regcache_collect
4034 instead of referencing registers[] directly.
4036 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4038 * parse.c (target_map_name_to_register): Delete code wrapped in
4039 #ifdef REGISTER_NAME_ALIAS_HOOK.
4041 2002-01-28 Michael Snyder <msnyder@redhat.com>
4043 * regcache.c (legacy_read_register_gen): Need to be able to
4044 read pseudo-register as well as real register.
4045 (legacy_write_register_gen): Ditto.
4047 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4049 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4050 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4051 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4052 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4053 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4054 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4055 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4056 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4057 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4058 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4059 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4060 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4061 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4062 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4063 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4064 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4065 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4066 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4067 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4068 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4070 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4072 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4073 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4074 (initialize_current_architecture): Update target_byte_order using
4075 information from BFD.
4076 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4077 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4079 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4081 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4082 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4084 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4085 #ifdef INVALID_FLOAT.
4086 * infcmd.c (do_registers_info): Ditto.
4087 * values.c (unpack_double): Ditto. Add comment.
4089 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4090 already commented out.
4092 2002-01-26 Andreas Schwab <schwab@suse.de>
4094 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4095 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4096 registers and add support for PTRACE_GETREGS.
4098 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4100 GDB 5.1.1 released from 5.1 branch.
4101 * NEWS: Add 5.1.1 news.
4102 * README: Sync with 5.1 branch.
4104 2002-01-23 Fred Fish <fnf@redhat.com>
4106 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4107 stabstring on initial malloc. Reallocing will copy it for us,
4110 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4112 * Makefile.in (hpread_h): Delete.
4113 (HFILES_NO_SRCDIR): Remove hpread.h.
4114 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4115 (hpread.o): Update dependencies.
4116 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4118 * hp-psymtab-read.c: Remove file.
4119 * hp-symtab-read.c: Remove file.
4120 * hpread.h: Remove file.
4122 * hpread.c: Merge all contents of hp-psymtab-read.c,
4123 hp-symtab-read.c and hpread.h into this file, as it was prior to
4126 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4127 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4128 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4129 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4131 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4133 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4134 fill_gregset): Call gdbarch_tdep() just once, assign result to
4135 variable and use that, instead of calling the function several
4138 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4140 * configure.host: Accept sparcv9 as alias for sparc64.
4141 * configure.tgt: Likewise.
4143 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4145 * solib-aix5.c (build_so_list_from_mapfile)
4146 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4147 arguments is not reversed.
4148 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4149 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4151 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4153 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4154 modified version of obsolete sh_fetch_pseudo_register.
4155 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4156 (sh4_register_read): New function.
4157 (sh_pseudo_register_write): New function. Renamed and modified
4158 version of obsolete sh_store_pseudo_register.
4159 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4160 (sh4_register_write): New function.
4161 (sh_gdbarch_init): Remove setting of gdbarch function
4162 fetch_pseudo_register and store_pseudo_register. Remove setting of
4163 register_convert_to_raw, register_convert_to_virtual,
4164 register_convertible.
4165 (sh_sh4_register_convertible): Delete. No longer needed. All is
4166 taken care by architecture specific functions
4167 register_read/register_write.
4168 (sh_sh4_register_convert_to_virtual): Make static.
4169 (sh_sh4_register_convert_to_raw): Ditto.
4171 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4173 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4174 (floatformat_is_nan, floatformat_mantissa): Ditto.
4176 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4177 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4178 builtin_type_ieee_double_little,
4179 builtin_type_ieee_double_littlebyte_bigword,
4180 builtin_type_m68881_ext, builtin_type_i960_ext,
4181 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4182 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4183 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4184 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4186 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4188 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4189 parameter. Set frameless flag if it exists and depended of
4190 whether the scanned function is frameless or not.
4191 (xstormy16_skip_prologue): If function is frameless, return
4192 result of xstormy16_scan_prologue().
4193 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4196 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4198 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4199 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4200 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4201 sh_sh4_register_byte, sh_sh4_register_raw_size,
4202 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4203 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4204 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4205 sh_store_pseudo_register, sh_do_pseudo_register): Call
4206 gdbarch_tdep() just once, assign result to variable and use that,
4207 instead of calling the function several times.
4209 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4211 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4212 macros instead of LAST_FPU_CTRL_REGNUM.
4213 (store_register): Likewise.
4215 2002-01-21 Jim Blandy <jimb@redhat.com>
4217 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4218 is up-to-date before running the program, not just when a program
4221 2002-01-21 Fred Fish <fnf@redhat.com>
4223 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4224 when we have found all instructions we are looking for.
4226 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4228 * arm-tdep.c (arm_register_name): New function.
4229 (arm_registers_names): Make static.
4230 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4231 (arm_register_name): Declare.
4232 (REGISTER_NAME): Use it.
4234 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4235 Kevin Buettner <kevinb@redhat.com>
4237 Convert arm targets to new FRAME interface.
4238 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4239 (arm_frame_find_save_regs): Delete.
4240 (arm_frame_init_saved_regs): New.
4241 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4242 Allocate extra_info as required. Convert all uses of fsr.regs
4243 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4245 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4246 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4247 (check_prologue_cache, save_prologue_cache): Likewise.
4248 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4249 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4250 (FRAME_FIND_SAVED_REGS): Delete.
4251 (arm_frame_find_saved_regs): Delete prototype.
4252 (arm_frame_init_saved_regs): New prototype.
4253 (FRAME_INIT_SAVED_REGS): Define.
4255 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4257 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4259 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4261 From Jeff Law <law@redhat.com>:
4262 * infttrace.c: Include <sys/pstat.h>.
4263 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4264 exec file if the ttrace equivalent fails.
4266 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4268 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4269 (closeLogFile): Ditto.
4271 2002-01-20 Michael Chastain <mec@shout.net>
4273 * top.c (print_gdb_version): Bump copyright year to 2002.
4275 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4277 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4278 Zannoni and Eli Zaretskii.
4280 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4282 * buildsym.c: Update copyright years.
4283 * c-typeprint.c: Likewise.
4284 * dwarf2read.c: Likewise.
4285 * f-typeprint.c: Likewise.
4286 * gdbtypes.c: Likewise.
4287 * gdbtypes.h: Likewise.
4288 * hp-symtab-read.c: Likewise.
4289 * hpread.c: Likewise.
4290 * mdebugread.c: Likewise.
4291 * p-typeprint.c: Likewise.
4293 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4295 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4296 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4297 byte-order selectable.
4298 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4299 * arch-utils.c: Ditto.
4300 (set_endian): Ditto.
4301 (set_endian_from_file): Ditto.
4302 * gdbserver/low-sim.c (create_inferior): Ditto.
4303 * gdbarch.sh: Ditto.
4304 * gdbarch.h: Re-generate.
4305 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4306 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4307 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4308 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4309 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4310 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4311 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4312 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4314 * config/mips/tm-wince.h: Remove #undef of macro
4315 TARGET_BYTE_ORDER_SELECTABLE.
4316 * config/sh/tm-wince.h: Ditto.
4318 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4320 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4321 member function fields. Add accessor macro
4322 TYPE_FN_FIELD_ARTIFICIAL.
4323 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4324 * c-typeprint.c (c_type_print_base): Skip artificial member
4327 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4329 * f-typeprint.c: Delete unused function f_type_print_args.
4330 * p-typeprint.c: Delete unused function pascal_type_print_args.
4332 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4334 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4335 comment. Add ``artificial'' to ``union field_location''.
4337 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4339 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4340 * mdebugread.c (parse_symbol): Likewise.
4341 * stabsread.c (define_symbol): Likewise.
4342 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4343 initializing TYPE_FIELD_BITPOS to n (obsolete).
4344 (hpread_doc_function_type): Likewise.
4345 * hpread.c (hpread_function_type): Likewise.
4347 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4349 * configure.in (host_makefile_frag): Only require a host makefile
4350 fragment when a native build.
4351 * configure: Re-generate.
4353 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4355 * doublest.h (floatformat_from_type): Declare.
4356 * doublest.c (floatformat_from_type): New function.
4357 (convert_typed_floating): Use.
4359 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4360 call to function floatformat_from_type.
4362 * gdbarch.sh (IEEE_FLOAT): Delete.
4363 * gdbarch.h, gdbarch.c: Re-generate.
4364 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4365 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4366 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4367 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4368 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4369 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4370 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4371 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4372 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4373 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4374 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4375 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4377 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4378 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4379 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4380 * sh-tdep.c (sh_gdbarch_init): Ditto.
4381 * mips-tdep.c (mips_gdbarch_init): Ditto.
4382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4383 * cris-tdep.c (cris_gdbarch_init): Ditto.
4385 2002-01-20 Jiri Smid <smid@suse.cz>
4387 * configure.host, configure.tgt: Support x86-64.
4388 * NEWS: Note new target x86-64.
4390 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4391 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4392 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4393 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4394 x86-64-linux-nat.o): Fix dependencies.
4396 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4398 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4399 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4400 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4401 * config/sparc/xm-sun4os4.h: Delete file.
4402 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4404 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4406 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4407 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4408 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4409 * config/i386/i386lynx.mh (XM_FILE): Delete.
4410 * config/rs6000/xm-rs6000ly.h: Delete file.
4411 * config/sparc/xm-sparclynx.h: Delete file.
4412 * config/m68k/xm-m68klynx.h: Delete file.
4413 * config/i386/xm-i386lynx.h: Delete file.
4414 * config/xm-lynx.h: Delete file.
4415 * config/djgpp/fnchange.lst: Update.
4417 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4419 * alpha-tdep.c (alpha_register_byte): New function.
4420 (alpha_register_raw_size): Ditto.
4421 (alpha_register_virtual_size): Ditto.
4422 (alpha_skip_prologue_internal): Renamed from
4423 alpha_skip_prologue.
4424 (alpha_skip_prologue): New version that calls
4425 alpha_skip_prologue_internal.
4426 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4427 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4428 second argument from alpha_skip_prologue.
4429 (REGISTER_BYTE): Use alpha_register_byte.
4430 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4431 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4432 (FRAMELESS_FUNCTION_INVOCATION): Use
4433 generic_frameless_function_invocation_not.
4434 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4435 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4437 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4439 * config/mips/xm-news-mips.h: Delete file.
4440 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4442 * config/m88k/xm-m88k.h: Delete file.
4443 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4444 * config/m88k/xm-delta88v4.h: Ditto.
4445 * config/m88k/xm-delta88.h: Ditto.
4447 * config/alpha/xm-fbsd.h: Delete file.
4448 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4450 * config/sparc/xm-sparc.h: Delete file.
4451 * Makefile.in (xm-sun4os4.h): Delete dependency.
4452 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4453 * config/sparc/xm-sun4os4.h: Ditto.
4454 * config/sparc/xm-linux.h: Ditto.
4456 * config/i386/xm-windows.h: Delete file.
4458 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4460 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4461 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4463 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4465 * alpha-tdep.c (alpha_call_dummy_words): New.
4466 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4467 (CALL_DUMMY_P): Define.
4468 (CALL_DUMMY_WORDS): Define.
4469 (SIZEOF_CALL_DUMMY_WORDS): Define.
4471 2002-01-19 Per Bothner <per@bothner.com>
4473 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4474 isn't NULL, which can happen with some gcj-3.x-produced code.
4476 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4478 * alpha-tdep.c (alpha_register_virtual_type): New function.
4479 (alpha_init_frame_pc_first): Ditto.
4480 (alpha_fix_call_dummy): Ditto.
4481 (alpha_store_struct_return): Ditto.
4482 (alpha_extract_struct_value_address): Ditto.
4483 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4484 alpha_register_virtual_type.
4485 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4486 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4487 alpha_extract_struct_value_address.
4488 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4489 (INIT_FRAME_PC): Use init_frame_pc_noop.
4490 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4492 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4494 * i386gnu-nat.c: Include "i386-tdep.h".
4495 (fetch_fpregs): Simplify code dealing with uninitialized floating
4496 point states such that it doesn't require FP7_REGNUM.
4498 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4500 * alpha-tdep.c (frame_extra_info): New.
4501 (alpha_find_saved_regs): Make static. Use
4503 (alpha_frame_init_saved_regs): New function.
4504 (alpha_frame_saved_pc): Use frame->extra_info.
4505 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4506 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4507 (init_extra_frame_info): Rename to...
4508 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4509 (alpha_print_extra_frame_info): New function.
4510 (alpha_frame_locals_address): Ditto.
4511 (alpha_frame_args_address): Ditto.
4512 (alpha_pop_frame): Use frame->extra_info.
4513 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4514 alpha_frame_args_address.
4515 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4516 (alpha_find_saved_regs): Remove prototype.
4517 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4518 (EXTRA_FRAME_INFO): Remove.
4519 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4520 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4522 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4524 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4525 (alpha_cannot_fetch_register): Ditto.
4526 (alpha_cannot_store_register): Ditto.
4527 (alpha_register_convertible): Ditto.
4528 (alpha_use_struct_convention): Ditto.
4529 * config/alpha/tm-alpha.h: Update copyright years.
4530 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4531 (INNER_THAN): Use core_addr_lessthan.
4532 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4533 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4534 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4535 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4536 (FRAME_CHAIN): Remove unnecessary cast.
4538 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4540 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4543 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4545 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4546 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4547 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4548 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4549 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4550 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4551 * x86-64-linux-nat.c: Ditto.
4553 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4555 * alpha-tdep.c (alpha_register_name): New function.
4556 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4557 (REGISTER_NAME): Define.
4559 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4561 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4563 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4565 * alpha-tdep.c: Update copyright years.
4566 (alpha_next_pc): New function.
4567 (alpha_software_single_step): Ditto.
4568 * config/alpha/tm-alpha.h: Add prototype for
4569 alpha_software_single_step.
4571 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4573 * alphabsd-nat.c: Update copyright years.
4574 (fill_gregset): Use regcache_collect.
4575 (fill_fpregset): Likewise.
4576 (fetch_inferior_registers): Only fetch integer registers
4577 if requested to do so.
4578 (store_inferior_registers): Only store integer registers
4579 if requested to do so.
4581 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4583 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4584 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4585 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4586 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4587 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4588 * config/arm/linux.mh (XDEPFILES): Delete.
4589 * config/arm/nbsd.mh (XDEPFILES): Delete.
4590 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4591 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4592 * config/i386/i386m3.mh (XDEPFILES): Delete.
4593 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4594 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4595 * config/i386/fbsd.mh (XDEPFILES): Delete.
4596 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4597 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4598 * config/i386/i386v4.mh (XDEPFILES): Delete.
4599 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4600 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4601 * config/i386/i386aix.mh (XDEPFILES): Delete.
4602 * config/i386/go32.mh (XDEPFILES): Delete.
4603 * config/i386/cygwin.mh (XDEPFILES): Delete.
4604 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4605 * config/i386/i386mach.mh (XDEPFILES): Delete.
4606 * config/i386/i386v32.mh (XDEPFILES): Delete.
4607 * config/i386/linux.mh (XDEPFILES): Delete.
4608 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4609 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4610 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4611 * config/i386/i386sco.mh (XDEPFILES): Delete.
4612 * config/i386/i386v.mh (XDEPFILES): Delete.
4613 * config/i386/nbsd.mh (XDEPFILES): Delete.
4614 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4615 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4616 * config/i386/symmetry.mh (XDEPFILES): Delete.
4617 * config/i386/obsd.mh (XDEPFILES): Delete.
4618 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4619 * config/ia64/linux.mh (XDEPFILES): Delete.
4620 * config/ia64/aix.mh (XDEPFILES): Delete.
4621 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4622 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4623 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4624 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4625 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4626 * config/m68k/linux.mh (XDEPFILES): Delete.
4627 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4628 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4629 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4630 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4631 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4632 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4633 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4634 * config/m88k/delta88.mh (XDEPFILES): Delete.
4635 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4636 * config/m88k/m88k.mh (XDEPFILES): Delete.
4637 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4638 * config/mips/linux.mh (XDEPFILES): Delete.
4639 * config/mips/irix6.mh (XDEPFILES): Delete.
4640 * config/mips/irix5.mh (XDEPFILES): Delete.
4641 * config/mips/irix4.mh (XDEPFILES): Delete.
4642 * config/mips/irix3.mh (XDEPFILES): Delete.
4643 * config/mips/decstation.mh (XDEPFILES): Delete.
4644 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4645 (NATDEPFILES): Move core-aout.o to here.
4646 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4647 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4648 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4649 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4650 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4651 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4652 * config/pa/hpux11.mh (XDEPFILES): Delete.
4653 * config/powerpc/aix.mh (XDEPFILES): Delete.
4654 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4655 * config/powerpc/linux.mh (XDEPFILES): Delete.
4656 * config/romp/rtbsd.mh: Rename XDEPFILES.
4657 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4658 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4659 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4660 * config/s390/s390.mh (XDEPFILES): Delete.
4661 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4662 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4663 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4664 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4665 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4666 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4667 * config/sparc/linux.mh (XDEPFILES): Delete.
4668 * config/vax/vaxult.mh (XDEPFILES): Delete.
4669 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4670 * Makefile.in (DEPFILES): Remove XDEPFILES.
4672 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4674 * utils.c (internal_verror): Fix comments, default is yes not no.
4675 Update queries to match. Default to quit and dump core.
4677 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4679 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4681 * defs.h, event-top.c, gdbcmd.h: Ditto.
4682 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4683 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4684 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4685 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4686 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4687 * mi/mi-main.c:Ditto.
4689 * stack.c, symfile.c: Update copyright.
4691 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4693 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4694 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4695 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4696 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4698 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4700 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4701 * gdbserver/low-lynx.c (myattach): Likewise.
4702 * gdbserver/low-nbsd.c (myattach): Likewise.
4703 * gdbserver/low-sim.c (myattach): Likewise.
4704 * gdbserver/low-sparc.c (myattach): Likewise.
4705 * gdbserver/low-sun3.c (myattach): Likewise.
4707 * gdbserver/low-linux.c (myattach): New function.
4709 * gdbserver/server.c (attach_inferior): New function.
4710 (main): Handle "--attach".
4712 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4714 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4717 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4719 * c-typeprint.c (is_type_conversion_operator): Add additional
4720 check for non-conversion operators.
4722 2002-01-15 Michael Snyder <msnyder@redhat.com>
4724 * linux-proc.c: Add "info proc" command, a la procfs.c.
4725 (read_mapping): New function, abstract and re-use code.
4726 (linux_find_memory_regions): Use new func read_mapping.
4727 (linux_info_proc_cmd): New function, implement "info proc".
4728 (_initialize_linux_proc): Add new command "info proc".
4730 2002-01-15 Michael Snyder <msnyder@redhat.com>
4732 * symfile.c (generic_load): Use bfd_map_over_sections method
4733 instead of manipulating bfd structure members directly.
4734 (add_section_size_callback): New function, bfd sections callback
4735 used by generic_load.
4736 (load_sections_callback): New function, bfd sections callback
4737 used by generic_load.
4739 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4741 [Based on work by Jim Blandy]
4742 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4743 (builtin_type_vec128): Export.
4744 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4746 (builtin_type_vec128): New builtin type for 128 bit vector
4748 (build_gdbtypes): Initialize builtin_type_v16qi and
4749 builtin_type_v8hi. Create the vec128 register builtin type
4751 (build_builtin_type_vec128): New function.
4752 (_initialize_gdbtypes): Register builtin_type_v16qi and
4753 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4754 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4755 AltiVec register to new builtin type.
4757 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4759 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4762 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4764 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4765 CLEAN_UP_REGISTER_VALUE.
4766 * regcache.c (supply_register): Update only call.
4768 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4770 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4771 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4772 a29k-*-vxworks* targets as obsolete.
4774 2002-01-14 Michael Snyder <msnyder@redhat.com>
4776 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4777 until we can resolve portability issues.
4778 * gregset.h: Remove references to fpxregs.
4779 * gcore.c (gcore_command): Initialize note_sec to NULL.
4781 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4783 * signals.c (target_signal_to_name): Rewrite. Only use
4784 signals[].name when in bounds and non-NULL.
4786 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4788 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4789 * signals.c (target_signal_to_name): Verify that SIG is within the
4790 bounds of the signals array.
4792 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4794 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4796 2002-01-13 Keith Seitz <keiths@redhat.com>
4798 * stack.c (print_frame_info_base): Print the frame's pc
4799 only if when print_frame_info_listing_hook is not defined.
4801 2002-01-13 Keith Seitz <keiths@redhat.com>
4803 * varobj.c (varobj_set_value): Make sure that there were no
4804 errors evaluating the object before attempting to set its
4806 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4807 so this offset adjustment is no longer necessary.
4808 (create_child): Don't set the error flag if the child is
4810 (value_of_child): If value_fetch_lazy fails, return NULL
4811 so that callers will be notified that an error occurred.
4812 (c_value_of_variable): Delay check of variable's validity
4813 until later. We actually want all structs and unions to have
4815 Do not return "???" for variables which could not be evaluated.
4816 This error condition must be returned to the caller so that it
4817 can get the error condition from gdb.
4818 (cplus_name_of_child): Adjust index for vptr before figuring
4819 out the name of the child.
4820 (cplus_value_of_child): If a child's (real) parent is not valid,
4821 don't even bother trying to give a value for it. Just return
4822 an error. Change all instances in this function.
4823 (cplus_type_of_child): If our parent is one of the "fake"
4824 parents, we need to get at the type of the real parent, and
4825 derive the child's true type using this information.
4827 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4829 From 2002-01-09 John Marshall <johnm@falch.net>:
4830 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4831 sources.redhat.com, and tweak some related URLs which had
4832 suffered from linkrot.
4834 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4837 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4838 structures passed in registers.
4840 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4842 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4843 white space which prevented compilation. Reported by DSK
4844 <dsk@student.unsw.edu.au>.
4846 2002-01-11 Michael Snyder <msnyder@redhat.com>
4848 * symfile.c (build_section_addr_info_from_section_tab):
4849 Use bfd access method instead of manipulating bfd directly.
4850 (syms_from_objfile): Ditto.
4851 (simple_overlay_update_1): Ditto.
4852 (simple_overlay_update): Ditto.
4853 (generic_load): Ditto.
4854 (overlay_unmapped_address): FIXME comment, bfd access methods.
4855 (sections_overlap): FIXME comment, bfd access methods.
4856 (pc_in_mapped_range): FIXME comment, bfd access methods.
4857 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4858 (section_is_mapped): FIXME comment, bfd access methods.
4859 (section_is_overlay): FIXME comment, bfd access methods.
4861 * symfile.c (generic_load): Whitespace and long line cleanups.
4862 Remove duplicate variable, change several local variables to
4863 more appropriate data types.
4864 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4866 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4869 * language.c (longest_local_hex_string_custom): Use phex_nz to
4870 convert NUM to a hex string.
4872 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4874 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4876 Update Copyright year.
4878 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4880 * language.c (longest_raw_hex_string): Delete unused function.
4882 2002-01-11 Petr Sorfa <petrs@caldera.com>
4884 * MAINTAINERS (write-after-approval): Add myself.
4885 * dwarf2read.c (read_tag_string_type): Handling of
4887 (read_tag_string_type): FORTRAN fix to prevent propagation of
4889 (set_cu_language): Handling of DW_LANG_Fortran95
4891 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4893 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4894 GETPID(inferior_ptid).
4895 (store_inferior_registers): Likewise.
4897 2002-01-10 Jason Merrill <jason@redhat.com>
4899 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4902 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4904 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4905 and bfd/elf32-sh-nbsd.c.
4907 2002-01-10 Michael Snyder <msnyder@redhat.com>
4909 * NEWS: Mention --pid and corefile/proc-id behavior change.
4911 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4912 * gcore.c: Include cli/cli-decode.h instead of command.h.
4914 * main.c (captured_main): Add new command line option "--pid".
4915 If the second command line argument (following the symbol-file)
4916 begins with a digit, try to attach to it before trying to open
4918 (print_gdb_help): Document the "--pid" argument.
4920 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4922 * completer.c (command_completer): New function.
4924 * completer.h <command_completer>: Add prototype.
4926 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4927 completer for the "help" command.
4929 2002-01-09 Jason Merrill <jason@redhat.com>
4931 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4933 2002-01-09 Michael Snyder <msnyder@redhat.com>
4935 * i386-linux-nat.c (fill_fpxregset): Make global.
4936 (store_fpxregset): Ditto.
4938 * gregset.h (gdb_fpxregset_t): Define.
4939 (supply_fpxregset): Prototype.
4940 (fill_fpxregset): Prototype.
4942 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4944 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4946 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4947 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4948 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4950 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4952 * MAINTAINERS: Update target maintainer rules so that any
4953 Maintainer can approve a tested patch for a maintenance-only
4956 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4958 * MAINTAINERS (write-after-approval): Add myself.
4960 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4963 2002-01-08 Michael Snyder <msnyder@redhat.com>
4965 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4966 real name of the executable, rather than the /proc name.
4968 2002-01-03 Michael Snyder <msnyder@redhat.com>
4970 Implement a "generate-core-file" command in gdb, save target state.
4971 * gcore.c: New file. Implement new command 'generate-core-file'.
4972 Save a corefile image of the current state of the inferior.
4973 * linux-proc.c: Add linux-specific code for saving corefiles.
4974 * target.h (struct target_ops): Add new target vectors for saving
4975 corefiles; to_find_memory_regions and to_make_corefile_notes.
4976 (target_find_memory_regions): New macro.
4977 (target_make_corefile_notes): New macro.
4978 * target.c (update_current_target): Inherit new target methods.
4979 (dummy_find_memory_regions): New place-holder method.
4980 (dummy_make_corefile_notes): New place-holder method.
4981 (init_dummy_target): Initialize new dummy target vectors.
4982 * exec.c (exec_set_find_memory_regions): New function.
4983 Allow the exec_ops vector for memory regions to be taken over.
4984 (exec_make_note_section): New function, target vector method.
4985 * defs.h (exec_set_find_memory_regions): Export prototype.
4986 * procfs.c (proc_find_memory_regions): New function, corefile method.
4987 (procfs_make_note_section): New function, corefile method.
4988 (init_procfs_ops): Set new target vector pointers.
4989 (find_memory_regions_callback): New function.
4990 (procfs_do_thread_registers): New function.
4991 (procfs_corefile_thread_callback): New function.
4992 * sol-thread.c (sol_find_memory_regions): New function.
4993 (sol_make_note_section): New function.
4994 (init_sol_thread_ops): Initialize new target vectors.
4995 * inftarg.c (inftarg_set_find_memory_regions): New function.
4996 Allow to_find_memory_regions vector to be taken over.
4997 (inftarg_set_make_corefile_notes): New function.
4998 Allow to_make_corefile_notes vector to be taken over.
4999 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5000 interface layer if not target_has_execution (may be a corefile).
5001 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5002 * config/sparc/sun4sol2.mh: Ditto.
5003 * config/alpha/alpha-linux.mh: Ditto.
5004 * config/arm/linux.mh: Ditto.
5005 * config/i386/x86-64linux.mh: Ditto.
5006 * config/ia64/linux.mh: Ditto.
5007 * config/m68k/linux.mh: Ditto.
5008 * config/mips/linux.mh: Ditto.
5009 * config/powerpc/linux.mh: Ditto.
5010 * config/sparc/linux.mh: Ditto.
5012 2002-01-07 Michael Snyder <msnyder@redhat.com>
5014 * arm-linux-nat.c: Remove references to regcache.c internal data
5015 (registers[] and register_valid[]).
5017 2002-01-07 Michael Snyder <msnyder@redhat.com>
5019 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5020 so that attaching to a pid will automatically read the process's
5021 symbol file and shlibs.
5022 * Makefile.in: Add rule for linux-proc.o.
5023 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5024 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5025 * config/arm/linux.mh: Ditto.
5026 * config/i386/linux.mh: Ditto.
5027 * config/i386/x86-64linux.mh: Ditto.
5028 * config/ia64/linux.mh: Ditto.
5029 * config/m68k/linux.mh: Ditto.
5030 * config/mips/linux.mh: Ditto.
5031 * config/powerpc/linux.mh: Ditto.
5032 * config/sparc/linux.mh: Ditto.
5034 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5036 * win32-nat.c: Add i386-tdep.h dependency.
5038 2002-01-07 Michael Snyder <msnyder@redhat.com>
5040 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5041 instead of bfd_get_arch_size. Don't bail out just because
5042 there's no exec_bfd.
5044 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5045 * p-valprint.c (pascal_object_print_value): Ditto.
5046 * somread.c (som_symtab_read): Ditto.
5047 * symfile.c (simple_free_overlay_region_table): Ditto.
5048 * valops.c (value_assign): Ditto.
5050 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5051 use tilde_expand and strerror for opening save-tracepoints file.
5053 * thread-db.c (thread_db_new_objfile): Indendation fix.
5055 * infptrace.c (GDB_MAX_ALLOCA): New define.
5056 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5057 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5058 can be overridden with whatever value is appropriate to the host).
5059 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5060 alloca to allocate potentially large buffer.
5061 * rs6000-nat.c (child_xfer_memory): Ditto.
5062 * symm-nat.c (child_xfer_memory): Ditto.
5063 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5065 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5067 From Nick Clifton <nickc@redhat.com>
5068 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5070 2002-01-07 Michael Snyder <msnyder@redhat.com>
5072 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5073 Don't use exec_bfd if it's NULL.
5075 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5077 * valops.c (value_arg_coerce): Fix formatting.
5079 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5081 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5084 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5086 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5087 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5088 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5089 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5090 z8k-coff have not been multi-arched. Update z8k-coff build
5093 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5095 * MAINTAINERS: Mark a29k target as obsolete.
5096 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5097 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5099 * NEWS: Note that a29k targets are obsolete.
5100 * a29k-tdep.c: Mark as obsolete.
5101 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5102 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5103 a29k-*-vxworks* targets as obsolete.
5104 * remote-adapt.c: Obsolete.
5105 * remote-eb.c: Obsolete.
5106 * remote-mm.c: Obsolete.
5107 * remote-udi.c: Obsolete.
5108 * config/a29k/a29k-udi.mt: Obsolete.
5109 * config/a29k/a29k.mt: Obsolete.
5110 * config/a29k/tm-a29k.h: Obsolete.
5111 * config/a29k/tm-vx29k.h: Obsolete.
5112 * config/a29k/vx29k.mt: Obsolete.
5114 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5116 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5117 with BFD_ENDIAN_BIG.
5119 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5121 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5122 * configure, config.in: Re-generate.
5123 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5124 * defs.h: Do not include <endian.h>.
5126 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5128 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5129 * config.in: Regenerate.
5130 * configure.in: Update copyright years.
5131 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5132 * configure: Regenerate.
5133 * i386bsd-nat.c: Update copyright years.
5134 (fill_gregset): Use regcache_collect.
5135 (fetch_inferior_registers): Only fetch integer registers
5136 if requested to do so. Add support for XMM registers
5137 using PT_GETXMMREGS.
5138 (store_inferior_registers): Only store integer registers
5139 if requested to do so. Add support for XMM registers
5140 using PT_SETXMMREGS.
5141 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5142 (store_inferior_registers): Remove.
5143 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5144 (fetch_elfcore_registers): New function.
5145 (i386nbsd_elfcore_fns): New.
5146 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5147 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5149 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5150 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5151 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5152 * config/i386/tm-nbsd.h: Update copyright years.
5153 (HAVE_SSE_REGS): Define.
5154 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5155 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5156 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5157 (SIGCONTEXT_PC_OFFSET): Remove.
5158 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5160 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5162 * configure.tgt: Remove powerpc-*-macos* target.
5163 * config/m68k/xm-mpw.h: Delete file.
5164 * config/xm-mpw.h: Delete file.
5165 * ser-mac.c: Delete file.
5166 * mpw-make.sed: Delete file.
5167 * mpw-config.in: Delete file.
5168 * mac-xdep.c: Delete file.
5169 * mac-gdb.r: Delete file.
5170 * mac-defs.h: Delete file.
5171 * mac-nat.c: Delete file.
5172 * config/powerpc/macos.mh: Delete file.
5173 * config/powerpc/macos.mt: Delete file.
5174 * config/powerpc/nm-macos.h: Delete file.
5175 * config/powerpc/tm-macos.h: Delete file.
5176 * source.c (openp, open_source_file): Remove obsolete code.
5177 * top.c (gdb_readline): Ditto.
5178 * utils.c (query): Ditto.
5179 * event-top.c (display_gdb_prompt): Ditto.
5180 * Makefile.in (ser-mac.o): Delete obsolete target.
5183 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5185 * defs.h (BIG_ENDIAN): Delete macro definition.
5186 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5187 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5188 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5189 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5190 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5191 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5192 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5193 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5194 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5195 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5196 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5197 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5198 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5199 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5200 * gdbarch.c: Re-generate.
5202 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5204 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5207 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5209 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5211 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5213 * value.h (value_ptr): Delete typedef.
5215 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5217 * i386nbsd-nat.c: Update copyright years.
5218 Include i386-tdep.h.
5220 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5222 * stabsread.c: Update copyright years.
5224 From Debashis Mahata <debashis.mahata@wipro.com>:
5225 (read_struct_fields): Deal with Sun C compiler erroneous stab
5226 output for structs and unions.
5229 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5231 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5234 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5236 * cp-abi.c: Fix whitespace.
5237 (baseclass_offset): New wrapper function.
5238 * cp-abi.h (baseclass_offset): Add prototype.
5239 (struct cp_abi_ops): Add baseclass_offset pointer.
5241 * valops.c (vb_match): Move to...
5242 * gnu-v2-abi.c (vb_match): here.
5243 * valops.c (baseclass_offset): Move to...
5244 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5246 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5248 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5249 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5250 * hpacc-abi.c (init_hpacc_ops): Likewise.
5252 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5254 * valops.c (find_overload_match): Accept obj as a
5255 reference parameter. Update it before returning.
5256 * value.h (find_overload_match): Update prototype.
5257 * eval.c (evaluate_subexp_standard): Pass object to
5258 find_overload_match by reference.
5260 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5262 * valarith.c: Replace value_ptr with struct value pointer. Remove
5263 register attribute from value declarations.
5266 * scm-lang.c (scm_lookup_name): Ditto.
5268 2002-01-03 Michael Snyder <msnyder@redhat.com>
5270 Abstract the functionality of iterating over mapped memory
5271 regions into a general purpose iterator function.
5272 * procfs.c (iterate_over_mappings): New function, general purpose
5273 iterator for memory sections.
5274 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5275 (solib_mappings_callback): New function, callback for above.
5276 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5277 (info_mappings_callback): New function, callback for above.
5279 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5281 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5283 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5284 * i386-tdep.c: Include "elf-bfd.h".
5285 (process_note_abi_tag_sections): New function.
5286 (i386_gdbarch_init): Add code to recognize various OS/ABI
5289 * maint.c (_initialize_maint_cmds): Add missing \ in
5292 For older changes see ChangeLog-2001
5298 version-control: never