1 2002-05-08 Andrew Cagney <ac131313@redhat.com>
3 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4 (clear_gdbarch_swap): New function.
5 (initialize_non_multiarch): Call.
6 (gdbarch_update_p): Before calling init(), swap out and clear the
8 * gdbarch.c: Regenerate.
10 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
12 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
15 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
17 * sh-nbsd-nat.c: Rename to...
18 * shnbsd-nat.c: ...this.
19 * sh-nbsd-tdep.c: Rename to...
20 * shnbsd-tdep.c: ...this.
21 * sh-nbsd-tdep.h: Rename to...
22 * shnbsd-tdep.h: ...this.
23 * config/sh/nbsd.mh: Use shnbsd-nat.o.
24 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
26 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
28 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
29 concatenation for command help messages.
31 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
33 * NEWS: Note new sh*-*-netbsdelf* configuration.
34 * configure.host: Set gdb_host_cpu to sh for all sh*.
35 (sh*-*-netbsdelf*): New host.
36 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
37 (sh*-*-netbsdelf*): New target.
38 * sh-nbsd-nat.c: New file.
39 * sh-nbsd-tdep.c: New file.
40 * sh-nbsd-tdep.h: New file.
41 * config/sh/nbsd.mh: New file.
42 * config/sh/nbsd.mt: New file.
43 * config/sh/nm-nbsd.h: New file.
44 * config/sh/tm-nbsd.h: New file.
46 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
48 * sh-tdep.c (sh_osabi_names): Declare.
49 (process_note_abi_tag_sections): New function.
50 (get_elfosabi): Ditto.
51 (sh_gdbarch_register_os_abi): Ditto.
52 (sh_dump_tdep): Ditto.
53 _initialize_sh_tdep): Use gdbarch_register to register
54 sh_gdbarch_init and sh_dump_tdep.
55 * config/sh/tm-sh.h (sh_osabi): Declare.
56 (gdbarch_tdep): Add sh_osabi and osabi_name members.
58 2002-05-07 Andrew Cagney <ac131313@redhat.com>
60 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
61 (thumb_scan_prologue): Ditto.
62 (arm_find_callers_reg): Ditto.
63 (arm_frame_chain): Ditto.
64 (arm_init_extra_frame_info): Ditto.
65 (arm_frame_saved_pc): Ditto.
66 (arm_pop_frame): Ditto.
67 (arm_push_return_address): New function.
68 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
69 call_dummy_location, call_dummy_breakpoint_offset_p,
70 call_dummy_breakpoint_offset, call_dummy_p,
71 call_dummy_stack_adjust_p, call_dummy_words,
72 sizeof_call_dummy_words, call_dummy_start_offset,
73 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
74 call_dummy_address, push_return_address and push_dummy_frame for
77 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
79 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
80 size computation for alloca.
81 (sh_fp_frame_init_saved_regs): Likewise.
83 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
85 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
86 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
87 * arm-tdep.c (arm_store_return_value): Use them.
88 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
89 * remote-rdp.c (remote_rdp_fetch_register): Use
90 ARM_MAX_REGISTER_RAW_SIZE.
91 (remote_rdp_store_register): Likewise.
93 2002-05-07 Michal Ludvig <mludvig@suse.cz>
95 * dwarf2cfi.c: Code cleanup, removed unused variables,
96 added default labels to switch {} statements.
97 * x86-64-tdep.c: Ditto.
98 * x86-64-linux-nat.c: Ditto.
100 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
102 * solib.h: Protect against multiple inclusion.
104 2002-05-06 Jim Blandy <jimb@redhat.com>
106 Separate the job of reading the line number info statement program
107 header (...expialidocious) out into its own function.
108 * dwarf2read.c (struct line_head, struct filenames, struct
109 directories): Replace with...
110 (struct line_header): New structure, containing the full
111 contents of the statement program header, including the
112 include directory and file name tables.
113 (read_file_scope): If we have line number info, instead of just
114 calling dwarf_decode_lines to do all the work, call
115 dwarf_decode_line_header first to get a `struct line_header'
116 containing the data in the statement program header, and then
117 pass that to dwarf_decode_lines, which will pick up where that
118 left off. Be sure to clean up the `struct line_header' object.
119 (dwarf_decode_line_header, free_line_header, add_include_dir,
120 add_file_name): New functions.
121 (dwarf_decode_lines): Move all the code to read the statement
122 program header into dwarf_decode_line_header. Take the line
123 header it built as the first argument, instead of the offset to
124 the compilation unit's line number info. Use the new `struct
125 line_header' type instead of the old structures. No need to do
126 cleanups here now, since we don't allocate anything.
127 (dwarf2_statement_list_fits_in_line_number_section,
128 dwarf2_line_header_too_long): New complaints.
130 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
132 * gdbtypes.c (init_vector_type): New function.
133 (build_builtin_type_vec128): Simplify the representation of SIMD
135 (build_gdbtypes): Initialize new builtin vector types.
136 (_initialize_gdbtypes): Register new vector types with gdbarch.
137 (builtin_type_v4_float, builtin_type_v4_int32,
138 builtin_type_v8_int16, builtin_type_v16_int8,
139 builtin_type_v2_int32, builtin_type_v4_int16,
140 builtin_type_v8_int8): New (renamed) SIMD types.
142 2002-05-06 Mark Kettenis <kettenis@gnu.org>
144 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
145 (i387_fill_fxsave): Likewise.
147 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
149 * alpha-tdep.c (alpha_extract_return_value): Don't use
150 non-constant array size in prototype.
152 2002-05-04 Andrew Cagney <ac131313@redhat.com>
154 From Brian Taylor <briant at model dot com>:
155 * ui-out.c (ui_out_field_core_addr): Use the function
156 longest_local_hex_string_custom'to format addresses > 32 bits
159 * ui-out.c (ui_out_field_core_addr): Update comment.
161 2002-05-04 Andrew Cagney <ac131313@redhat.com>
163 * stack.c (select_and_print_frame): Make static. Delete the
165 (func_command): Update call.
166 (select_frame_command): Delete code computing the frame level.
167 * frame.h (select_and_print_frame): Delete declaration.
169 2002-05-04 Andrew Cagney <ac131313@redhat.com>
171 * sparc-tdep.c (sparc_get_saved_register): Comment why
172 get_prev_frame call is safe.
174 2002-05-04 Andrew Cagney <ac131313@redhat.com>
176 * frame.h (select_frame): Delete level parameter.
177 * stack.c (select_frame): Update. Use frame_relative_level to
178 obtain the frame's level.
179 (select_and_print_frame): Update call.
180 (select_frame_command): Ditto.
181 (up_silently_base): Ditto.
182 (down_silently_base): Ditto.
183 * ocd.c (ocd_start_remote): Ditto.
184 * remote-rdp.c (remote_rdp_open): Ditto.
185 * remote-mips.c (mips_initialize): Ditto.
186 (common_open): Ditto.
187 * remote-e7000.c (e7000_start_remote): Ditto.
188 * m3-nat.c (select_thread): Ditto.
189 * hppa-tdep.c (child_get_current_exception_event): Ditto.
190 (child_get_current_exception_event): Ditto.
191 * varobj.c (varobj_create): Ditto.
192 (varobj_update): Ditto.
193 (c_value_of_root): Ditto.
194 * tracepoint.c (finish_tfind_command): Ditto.
195 * corelow.c (core_open): Ditto.
196 * arch-utils.c (generic_prepare_to_proceed): Ditto.
197 * thread.c (info_threads_command): Ditto.
198 (switch_to_thread): Ditto.
199 * infrun.c (normal_stop): Ditto.
200 (restore_selected_frame): Ditto.
201 (restore_inferior_status): Ditto.
202 * breakpoint.c (insert_breakpoints): Ditto.
203 (watchpoint_check): Ditto.
204 (bpstat_stop_status): Ditto.
205 (do_enable_breakpoint): Ditto.
206 * blockframe.c (flush_cached_frames): Ditto.
207 (reinit_frame_cache): Ditto.
209 2002-05-04 Andrew Cagney <ac131313@redhat.com>
211 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
214 2002-05-04 Jim Blandy <jimb@redhat.com>
216 * gdbtypes.c (replace_type): Doc fix.
218 2002-05-04 Andrew Cagney <ac131313@redhat.com>
220 * valprint.c (strcat_longest): Delete commented out function.
223 2002-05-04 Andrew Cagney <ac131313@redhat.com>
225 * MAINTAINERS: Mark a29k as deleted.
226 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
227 Move new configurations to the top.
228 * configure.tgt: Remove a29k.
229 * config/a29k/tm-vx29k.h: Delete.
230 * config/a29k/vx29k.mt: Delete.
231 * config/a29k/tm-a29k.h: Delete.
232 * config/a29k/a29k-udi.mt: Delete.
233 * config/a29k/a29k.mt: Delete.
234 * a29k-tdep.c: Delete.
235 * remote-udi.c: Delete.
236 * remote-mm.c: Delete.
237 * remote-eb.c: Delete.
238 * remote-adapt.c: Delete.
239 * Makefile.in: Remove obsolete code.
240 * gdbserver/Makefile.in: Ditto.
241 * config/s390/s390x.mt: Ditto.
242 * config/s390/s390.mt: Ditto.
243 * config/sparc/sparclynx.mh: Ditto.
244 * config/sparc/linux.mh: Ditto.
245 * config/pa/hppaosf.mh: Ditto.
246 * config/pa/hppabsd.mh: Ditto.
247 * config/ns32k/nbsd.mt: Ditto.
248 * config/mips/vr5000.mt: Ditto.
249 * config/m68k/sun3os4.mh: Ditto.
250 * config/m68k/nbsd.mt: Ditto.
251 * config/m68k/m68klynx.mh: Ditto.
252 * config/m32r/m32r.mt: Ditto.
253 * config/i386/x86-64linux.mt: Ditto.
254 * config/i386/nbsdelf.mt: Ditto.
255 * config/i386/nbsd.mt: Ditto.
256 * config/i386/i386lynx.mh: Ditto.
258 2002-05-04 Andrew Cagney <ac131313@redhat.com>
260 * target.c (debug_print_register): New function. Handle oversize
262 (debug_to_fetch_registers): Call.
263 (debug_to_store_registers): Call.
265 2002-05-03 Jim Blandy <jimb@redhat.com>
267 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
268 (read_type): Doc fix.
269 * gdbtypes.c (replace_type): Doc fix.
271 * stabsread.c (multiply_defined_struct): New complaint.
272 (read_struct_type): If the type we were passed isn't empty, or
273 incomplete, don't read the new struct type into it; complain,
274 and return the original type unchanged. Take a new `type_code'
275 argument, which is the type code for the new type.
276 (read_type): Rather than storing the type's type code here, pass
277 it as an argument to read_struct_type, and let that take care of
278 storing it. That way, we don't overwrite the original type code,
279 so read_struct_type can use it to decide whether we're overwriting
280 something we shouldn't.
281 (complain_about_struct_wipeout): New function.
283 2002-05-03 Andrew Cagney <ac131313@redhat.com>
285 * gdbarch.sh: Assert that gdbarch is non-NULL.
286 * gdbarch.c: Regenerate.
288 2002-05-03 Jason Merrill <jason@redhat.com>
290 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
293 2002-05-03 Michal Ludvig <mludvig@suse.cz>
295 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
296 (x86_64_dwarf2gdb_regno_map_length),
297 (x86_64_dwarf2_reg_to_regnum): Added.
298 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
299 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
300 (_initialize_x86_64_tdep): Synced with the change above.
301 (x86_64_skip_prologue): Reformulated message.
303 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
305 * f-exp.y: Also use new prev_lexptr variable
306 to improve error reporting. Based on Michael Snyder
307 2002-04-24 dated patch to c-exp.y.
308 * jv-exp.y: Likewise.
309 * m2-exp.y: Likewise.
311 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
313 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
314 we are dealing with vectors.
316 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
318 * config/m68k/tm-nbsd.h: Obvious fix,
319 correct machine name.
321 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
323 * p-typeprint.c (pascal_type_print_base): Add support
324 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
326 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
328 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
329 for fondamental pascal 'char' type.
331 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
333 * p-lang.h (is_pascal_string_type): Declaration changed,
334 new sixth argument of type char ** added.
335 * p-lang.c (is_pascal_string_type): Implementation
336 changed. Args length_pos, length_size, string_pos, char_size
337 can now be NULL. New argument arrayname set to the field
338 name of the char array. Return value set to char array
339 field index plus one.
340 * p-valprint.c (pascal_val_print): Adapt to new declaration of
341 is_pascal_string_type function.
343 2002-05-02 Andrew Cagney <cagney@redhat.com>
345 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
346 <cagney@redhat.com> change.
347 * gdbarch.c: Regenerate.
349 2002-05-02 Andrew Cagney <cagney@redhat.com>
351 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
352 before probing for a new one. Detect errorenous gdbarch_init
354 * gdbarch.c: Regenerate.
356 2002-05-01 Andrew Cagney <cagney@redhat.com>
358 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
359 * config/mcore/tm-mcore.h: Ditto. Update copyright.
360 * config/v850/tm-v850.h: Ditto. Update copyright.
362 2002-04-30 Andrew Cagney <ac131313@redhat.com>
364 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
367 2002-04-30 Michael Snyder <msnyder@redhat.com>
369 * arm-tdep.c: Whitespace clean-ups.
370 (arm_skip_prologue): Fix thinko; two lines
371 should have been removed as part of 4/24 change.
373 2002-04-30 Kevin Buettner <kevinb@redhat.com>
375 * rs6000-tdep.c: Added comment describing how fpscr register
378 2002-04-30 Michael Snyder <msnyder@redhat.com>
380 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
382 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
384 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
385 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
386 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
388 2002-04-29 Kevin Buettner <kevinb@redhat.com>
390 From Louis Hamilton <hamilton@redhat.com>:
391 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
392 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
393 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
394 not bfd-private xcoff data, to determine wordsize.
395 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
397 2002-04-29 Andrew Cagney <ac131313@redhat.com>
399 GDB 5.2 released from 5.2 branch.
401 2002-04-29 Michal Ludvig <mludvig@suse.cz>
403 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
404 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
405 (x86_64_register_info_table): Added comments with register numbers.
407 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
409 * rs6000-tdep.c (rs6000_extract_return_value,
410 rs6000_store_return_value): Handle returning vectors.
411 (rs6000_gdbarch_init): Use
412 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
413 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
415 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
417 (ppc_sysv_abi_push_arguments): Handle vector parameters.
418 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
420 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
422 * hpread.c (hpread_psymtab_to_symtab_1,
423 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
424 with fprintf_unfiltered (gdb_stderr,...).
426 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
428 * remote-array.c (printf_monitor, write_monitor,
429 array_insert_breakpoint, array_remove_breakpoint ):
430 Replace fprintf (stderr,...
431 with fprintf_unfiltered (gdb_stderr,....
432 * remote-es.c: Likewise.
433 * remote-os9k.c: Likewise.
434 * remote-st.c: Likewise.
436 2002-04-28 Andreas Schwab <schwab@suse.de>
438 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
439 linux-proc.o and gcore.o.
441 2002-04-26 Michal Ludvig <mludvig@suse.cz>
443 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
444 code without frame pointers.
446 2002-04-26 Andrew Cagney <ac131313@redhat.com>
448 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
451 2002-04-26 Ben Elliston <bje@redhat.com>
453 * target.c (do_xfer_memory): Correct reference to the new option
454 "trust-readonly-sections".
456 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
458 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
459 * gdbtypes.c (recursive_dump_type): Output the vector flag.
460 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
462 (read_array_type): Record the fact that this array type is really a
463 vector (i.e. are passed in by value).
465 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
467 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
468 * alpha-tdep.c (alpha_sigcontext_addr): New function.
469 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
470 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
471 * alpha-linux-tdep.c: Include frame.h.
472 (alpha_linux_sigcontext_addr): New function.
473 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
474 alpha_linux_sigcontext_addr.
475 * alpha-osf1-tdep.c: Include gdbcore.h.
476 (alpha_osf1_sigcontext_addr): New function.
477 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
478 alpha_osf1_sigcontext_addr.
479 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
480 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
482 2002-04-26 Andrew Cagney <ac131313@redhat.com>
484 * stack.c (selected_frame_level):
485 (select_frame): Do not set selected_frame_level.
486 * frame.h (selected_frame_level): Delete declaration.
488 2002-04-26 Andrew Cagney <ac131313@redhat.com>
490 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
491 convert_from_func_ptr-addr when AIX / PowerOpen.
493 2002-04-25 Andrew Cagney <ac131313@redhat.com>
495 * valops.c (hand_function_call): Call
496 generic_save_call_dummy_addr.
497 * frame.h (generic_save_call_dummy_addr): Declare.
498 * blockframe.c (struct dummy_frame): Add fields call_lo and
500 (generic_find_dummy_frame): Check for PC in range call_lo to
501 call_hi instead of entry_point_address.
502 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
503 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
504 (generic_save_call_dummy_addr): New function.
506 2002-04-24 David S. Miller <davem@redhat.com>
508 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
510 (sparc_skip_prologue): Kill frameless_p arg, and use line number
511 information to find prologue when possible.
512 (sparc_prologue_frameless_p): Call examine_prologue directly.
513 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
514 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
516 (SKIP_PROLOGUE): Likewise.
518 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
520 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
521 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
522 indicate that the condition it was testing is always true.
523 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
524 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
525 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
527 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
529 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
530 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
531 tdep->jb_pc and tdep->jb_elt_size.
532 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
533 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
534 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
535 * alpha-nat.c (get_longjmp_target): Remove.
536 (JB_ELEMENT_SIZE): Ditto.
538 * alpha-tdep.c (alpha_get_longjmp_target): New function.
539 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
540 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
541 to alpha_get_longjmp_target.
542 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
543 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
544 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
546 2002-04-25 Andrew Cagney <ac131313@redhat.com>
548 * README: Update to GDB 5.2.
550 2002-04-25 Andrew Cagney <ac131313@redhat.com>
552 * gdbarch.sh (LC_ALL): Set to `c'.
554 2002-04-25 Theodore A. Roth <troth@verinet.com>
556 * avr-tdep.c: Ran through gdb_indent.sh.
558 2002-04-25 Theodore A. Roth <troth@verinet.com>
560 * MAINTAINERS: Add myself as AVR maintainer.
561 * NEWS: Note new target avr.
563 2002-04-25 Theodore A. Roth <troth@verinet.com>
565 * Makefile.in: Add support for AVR target.
566 * configure.tgt: Add support for AVR target.
567 * avr-tdep.c: New file
568 * config/avr/avr.mt: New file.
570 2002-04-25 Theodore A. Roth <troth@verinet.com>
572 * MAINTAINERS: Add myself to write-after-approval.
574 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
576 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
577 with fprintf_unfiltered (gdb_stderr,....
579 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
582 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
584 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
586 * p-exp.y: Also use new prev_lexptr variable
587 to improve error reporting. Based on Michael Snyder
588 2002-04-24 dated patch to c-exp.y.
590 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
592 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
593 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
594 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
596 * config/alpha/tm-alpha.h: Remove forward decls of struct type
598 (FUNCTION_START_OFFSET): Remove.
601 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
603 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
606 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
608 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
609 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
610 alpha_linux_pc_in_sigtramp.
611 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
612 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
613 alpha_osf1_pc_in_sigtramp.
614 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
615 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
616 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
617 alphafbsd_pc_in_sigtramp.
618 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
619 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
620 alphanbsd_pc_in_sigtramp.
621 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
622 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
624 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
626 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
628 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
630 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
632 (alphanbsd-nat.o): New dependency list.
633 (alphanbsd-tdep.o): Ditto.
634 * NEWS: Note new native NetBSD/alpha configuration.
635 * alphanbsd-nat.c: New file.
636 * alphanbsd-tdep.c: Ditto.
637 * configure.host (alpha*-*-netbsd*): New host.
638 * configure.tgt (alpha*-*-netbsd*): New target.
639 * config/alpha/nbsd.mh: New file.
640 * config/alpha/nbsd.mt: Ditto.
641 * config/alpha/nm-nbsd.h: Ditto.
642 * config/alpha/tm-nbsd.h: Ditto.
644 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
646 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
647 (alpha-osf1-tdep.o): New dependency list.
648 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
649 and skip_sigtramp_frame members.
650 * alpha-linux-tdep.c: Include gdbcore.h.
651 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
652 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
653 * alpha-osf1-tdep.c: New file.
654 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
656 (alpha_frame_past_sigtramp_frame): New function.
657 (alpha_dynamic_sigtramp_offset): Ditto.
658 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
659 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
660 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
661 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
662 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
663 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
664 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
665 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
666 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
667 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
668 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
669 to find_solib_trampoline_target.
670 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
671 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
672 (SKIP_TRAMPOLINE_CODE): Remove.
673 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
674 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
675 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
676 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
677 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
678 (PROC_SIGTRAMP_MAGIC): Ditto.
679 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
680 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
681 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
682 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
683 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
685 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
687 * NEWS: Note that Alpha targets are now multi-arch.
689 2002-04-24 Michael Snyder <msnyder@redhat.com>
691 * parser-defs.h (prev_lexptr): New external variable.
692 * parse.c (parse_exp_1): Set prev_lexptr to null before
693 calling the language-specific parser.
694 * c-exp.y (yylex): Set prev_lexptr to start of current token.
695 (yyerror): Use prev_lexptr in error reporting.
697 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
699 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
700 * gregset.h: If FILL_FPXREGSET is defined, provide
701 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
702 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
703 is defined, call fill_fpxregset.
705 2002-04-24 Roland McGrath <roland@frob.com>
707 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
708 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
709 (supply_gregset, supply_fpregset): New functions.
711 * gnu-nat.c (gnu_find_memory_regions): New function.
712 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
713 (gnu_xfer_memory): Add a cast.
715 2002-04-24 Michael Snyder <msnyder@redhat.com>
717 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
718 loop. Add handling for "str lr, [sp, #-4]!" and for saves
719 of argument regs ("str r(0123), [r11, #-nn"]).
720 (arm_skip_prologue): Better handling for frameless functions.
721 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
722 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
724 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
726 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
727 NUM_PSEUDO_REGS can be used.
729 2002-04-24 Andrew Cagney <ac131313@redhat.com>
731 * arch-utils.h: Update copyright.
733 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
734 * gdbarch.h, gdbarch.c: Re-generate.
736 * inferior.h (IN_SIGTRAMP): Delete definition.
737 * arch-utils.c (legacy_pc_in_sigtramp): New function.
738 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
740 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
741 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
742 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
743 (find_proc_framesize): Ditto.
744 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
745 (alpha_init_extra_frame_info): Ditto.
746 * infrun.c (handle_inferior_event): Ditto.
747 (handle_inferior_event): Ditto.
748 (check_sigtramp2): Ditto.
749 * blockframe.c (create_new_frame): Ditto.
750 (get_prev_frame): Ditto.
751 * ppc-linux-tdep.c: Update comments.
752 * i386-linux-tdep.c: Update comments.
753 * breakpoint.c (bpstat_what): Update comment.
755 2002-04-24 Michal Ludvig <mludvig@suse.cz>
757 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
758 (regsets_store_inferior_registers): Removed cast to int from
760 * gdbserver/regcache.h: Added declaration of struct inferior_info.
762 2002-04-24 David S. Miller <davem@redhat.com>
764 * i960-tdep.c (register_in_window_p): New function.
765 (i960_find_saved_register): Use it instead of
766 REGISTER_IN_WINDOW_P.
767 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
769 * symtab.h (find_stab_function_addr): Kill extern.
770 * minsyms.c (find_stab_function_addr): Remove from here...
771 * dbxread.c: ... to here, and mark it static.
773 2002-04-20 David S. Miller <davem@redhat.com>
775 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
776 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
778 2002-04-21 David S. Miller <davem@redhat.com>
780 * remote-vxsparc.c (vx_read_register): Fix typo, we want
781 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
782 (vx_write_register): Likewise.
784 2002-04-23 J. Brobecker <brobecker@gnat.com>
786 * source.c (is_regular_file): New function.
787 (openp): Check wether file to open is a regular file
788 to avoid opening directories.
790 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
792 * findvar.c (extract_signed_integer): Cast printf argument
793 to suppress format warning.
794 (extract_unsigned_integer): Likewise.
795 * infcmd.c (registers_info): Likewise.
796 * top.c (get_prompt_1): Likewise.
797 * valops.c (value_assign): Likewise.
798 * valprint.c (print_decimal): Likewise.
800 2002-04-22 H.J. Lu (hjl@gnu.org)
802 * c-exp.y (typebase): Support
804 [long|long long|short] [signed|unsigned] [int|]
808 signed [long|long long|short] int
810 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
812 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
814 * vax-tdep.h: New file.
815 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
816 Make several routines static.
817 (vax_get_saved_register): New function.
818 (vax_gdbarch_init): New function.
819 (_initialize_vax_tdep): Register vax_gdbarch_init.
820 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
821 Remove macros now under the control of gdbarch.
823 2002-04-22 Michael Snyder <msnyder@redhat.com>
825 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
826 Some whitespace and coding standards tweaks.
828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
830 * vax-tdep.c: Include regcache.h.
831 (vax_call_dummy_words): New.
832 (sizeof_vax_call_dummy_words): New.
833 (vax_fix_call_dummy): New function.
834 (vax_saved_pc_after_call): Ditto.
835 * config/vax/tm-vax.h: Don't include regcache.h.
836 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
837 (CALL_DUMMY): Remove.
838 (CALL_DUMMY_WORDS): Define.
839 (SIZEOF_CALL_DUMMY_WORDS): Define.
840 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
842 2002-04-18 Michael Snyder <msnyder@redhat.com>
844 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
846 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
848 * vax-tdep.c (vax_frame_chain): New function.
849 (vax_push_dummy_frame): Ditto.
850 (vax_pop_frame): Ditto.
851 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
852 (FRAMELESS_FUNCTION_INVOCATION): Use
853 generic_frameless_function_invocation_not.
854 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
855 (POP_FRAME): Use vax_pop_frame.
857 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
859 * vax-tdep.c (vax_store_struct_return): New function.
860 (vax_extract_return_value): Ditto.
861 (vax_store_return_value): Ditto.
862 (vax_extract_struct_value_address): Ditto.
863 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
864 vax_store_struct_return.
865 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
866 (STORE_RETURN_VALUE): Use vax_store_return_value.
867 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
869 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
871 * vax-tdep.c (vax_frame_saved_pc): New function.
872 (vax_frame_args_address_correct): Ditto.
873 (vax_frame_args_address): Ditto.
874 (vax_frame_locals_address): Ditto.
875 (vax_frame_num_args): Move code to be in proximity to
876 other frame-related functions.
877 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
878 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
879 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
880 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
881 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
883 2002-04-22 H.J. Lu (hjl@gnu.org)
885 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
888 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
890 * vax-tdep.c (vax_frame_init_saved_regs): New function.
891 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
892 (FRAME_INIT_SAVED_REGS): New macro.
894 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
896 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
898 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
900 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
902 (fetch_osf_core_registers): Likewise.
903 (supply_gregset): Likewise.
905 2002-04-22 J. Brobecker <brobecker@gnat.com>
907 * symfile.h (get_section_index): Define.
908 * symfile.c (get_section_index): New function.
909 * mdebugread.c (SC_IS_SBSS): New macro.
910 (SC_IS_BSS): Return true for the scBss storage class only, as
911 the scSBss storage class refers to the .sbss section.
912 (parse_partial_symbols): Discard the symbols which associated
913 section does not exist.
914 Make sure to use the .sbss section index for symbols which
915 storage class is scBss, rather than using the .bss section index.
917 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
919 * vax-tdep.c: Update copyright years.
920 (vax_register_name): New function.
921 (vax_register_byte): Ditto.
922 (vax_register_raw_size): Ditto.
923 (vax_register_virtual_size): Ditto.
924 (vax_register_virtual_type): Ditto.
925 * config/vax/tm-vax.h: Update copyright years.
926 (REGISTER_NAMES): Remove.
927 (REGISTER_NAME): Define.
928 (REGISTER_BYTE): Use vax_register_byte.
929 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
930 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
931 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
933 2002-04-21 Andrew Cagney <ac131313@redhat.com>
935 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
937 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
939 2002-04-21 David S. Miller <davem@redhat.com>
941 * arch-utils.c (generic_prologue_frameless_p): Kill
942 SKIP_PROLOGUE_FRAMELESS_P code.
943 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
945 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
946 * arc-tdep.c (arc_prologue_frameless_p): Implement.
947 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
949 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
950 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
951 (sparc_gdbarch_init): Pass it to
952 set_gdbarch_prologue_frameless_p.
954 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
956 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
957 (alphabsd-nat.o): New dependency list.
959 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
961 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
963 (alpha-linux-tdep.o): New dependency list.
964 (alphafbsd-tdep.o): Likewise.
966 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
968 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
970 * alpha-tdep.c: ...from here.
971 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
973 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
975 * config/alpha/tm-alpha.h: Move alpha_software_single_step
976 prototype from here...
977 * alpha-tdep.h: ...to here.
979 2002-04-21 Andrew Cagney <ac131313@redhat.com>
981 * frame.h (selected_frame_level): Document as deprecated.
982 (frame_relative_level): Declare.
983 * stack.c (frame_relative_level): New function.
984 (selected_frame_level): Document as deprecated.
985 (select_frame): Do not set the selected_frame_level.
987 * stack.c (frame_info, record_selected_frame): Update.
988 (frame_command, current_frame_command): Update.
989 (up_silently_base, up_command, down_silently_base): Update.
990 (down_command): Update.
991 * inflow.c (kill_command): Update.
992 * tracepoint.c (finish_tfind_command): Update.
993 * corelow.c (core_open): Update.
994 * thread.c (info_threads_command): Update.
995 (do_captured_thread_select): Update.
996 * infcmd.c (finish_command): Update.
997 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
999 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1001 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1003 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1005 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1008 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1010 * alphafbsd-tdep.c: Update copyright years. Include
1012 (alphafbsd_use_struct_convention): Make static.
1013 (alphafbsd_init_abi): New function.
1014 (_initialize_alphafbsd_tdep): New function.
1015 * config/alpha/tm-fbsd.h: Update copyright years.
1016 (USE_STRUCT_CONVENTION): Remove.
1018 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1020 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1021 an Alpha ABI variant.
1022 (alpha_abi_handler_list): Declare.
1023 (alpha_gdbarch_register_os_abi): New function.
1024 (alpha_gdbarch_init): Give registered ABI variant handlers a
1025 chance to tweak the gdbarch once we have set up defaults.
1026 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1028 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1030 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1031 to standard_coerce_float_to_double.
1032 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1034 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1036 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1037 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1038 from gdbarch_tdep rather than a constant.
1039 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1040 the default text address for all Alpha Unix ABIs.
1041 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1042 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1044 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1046 * alpha-tdep.h: New file. Includes several Alpha target constants
1048 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1049 let gdbarch deal with.
1050 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1051 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1053 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1054 Alpha target register names.
1055 * alphabsd-nat.c: Likewise.
1056 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1057 Alpha target register names. Make serveral routines static.
1058 (alpha_get_saved_register): New function.
1059 (alpha_abi_names): New.
1060 (process_note_abi_tag_sections): New function.
1061 (get_elfosabi): New function.
1062 (alpha_gdbarch_init): New function.
1063 (alpha_dump_tdep): New function.
1064 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1066 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1068 * frame.c (find_saved_register): Delete #ifdef
1069 HAVE_REGISTER_WINDOWS code.
1070 * config/sparc/tm-sparc.h: Update comments.
1071 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1073 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1075 * i960-tdep.c (i960_find_saved_register): New function.
1076 (i960_get_saved_register): New function.
1077 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1078 (i960_get_saved_register): Declare.
1079 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1081 2002-04-20 David S. Miller <davem@redhat.com>
1083 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1085 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1087 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1088 instead of NUM_PSEUDO_REGS.
1090 2002-04-20 David S. Miller <davem@redhat.com>
1092 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1093 GDB_MULTI_ARCH_PARTIAL
1094 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1095 define, let tm-sp64.h do it.
1097 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1099 * frame.c (find_saved_register): Avoid a NULL pointer
1100 dereference and actually walk the frame list.
1102 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1104 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1105 sorted in most most-recent-used order. Document.
1106 * gdbarch.h, gdbarch.c: Regenerate.
1108 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1110 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1111 (add_inferior): Call create_register_cache.
1112 (clear_inferiors): Call free_register_cache.
1113 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1114 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1115 (registers): Remove.
1116 (get_regcache): New function.
1117 (create_register_cache, free_register_cache): New functions.
1118 (set_register_cache): Don't initialize the register cache here.
1119 (registers_to_string, registers_from_string, register_data): Call
1121 * gdbserver/regcache.h: Add prototypes.
1122 * gdbserver/server.h: Likewise.
1124 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1126 * gdbserver/mem-break.c: New file.
1127 * gdbserver/mem-break.h: New file.
1128 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1130 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1132 (clear_inferiors): Free target_data member if set.
1133 (inferior_target_data, set_inferior_target_data): New functions.
1134 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1135 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1136 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1137 (struct inferior_linux_data): New.
1138 (linux_create_inferior): Use set_inferior_target_data.
1139 (linux_attach): Likewise. Call add_inferior.
1140 (linux_wait_for_one_inferior): New function.
1141 (linux_wait): Call it.
1142 (linux_write_memory): Add const.
1143 (initialize_low): Call set_breakpoint_data.
1144 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1146 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1148 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1150 * gdbserver/target.c (read_inferior_memory)
1151 (write_inferior_memory): New functions.
1152 * gdbserver/target.h (read_inferior_memory)
1153 (write_inferior_memory): Change macros to prototypes.
1154 (struct target_ops): Update comments. Add const to write_memory
1157 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1159 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1161 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1162 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1163 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1166 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1169 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1170 (build_builtin_type_vec128): Ditto.
1171 (append_composite_type_field): Fix calculation of type length in
1174 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1176 * config/djgpp/README: Update.
1178 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1181 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1183 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1184 (alpha_setup_arbitrary_frame): ...to this.
1185 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1186 for alpha_setup_arbitrary_frame.
1188 2002-04-18 Andrew Cagney <cagney@redhat.com>
1190 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1191 * gdbarch.h, gdbarch.c: Regenerate.
1193 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1194 * target.h (memory_breakpoint_from_pc): Update declaration.
1195 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1197 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1198 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1199 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1200 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1201 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1202 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1203 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1204 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1205 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1206 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1207 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1208 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1210 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1212 * monitor.c (monitor_insert_breakpoint): Ditto.
1213 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1215 * config/mcore/tm-mcore.h: Update copyright.
1216 * mem-break.c: Ditto.
1217 * xstormy16-tdep.c: Ditto.
1219 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1221 * p-exp.y: Add precedence rule for '^' token.
1222 This removes the shift/reduce conflicts.
1223 Remove the comment concerning these shift/reduce conflicts.
1225 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1227 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1228 (registers_powerpc_nofp): New register set for processors
1229 without floating point unit.
1231 2002-04-18 David S. Miller <davem@redhat.com>
1233 * MAINTAINERS: Add myself to write-after-approval.
1235 2002-04-17 Michael Snyder <msnyder@redhat.com>
1237 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1239 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1241 * rs6000-tdep.c (frame_initial_stack_address): Use
1242 frame_register_read to read the alloca_reg.
1244 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1246 * frame.c (find_saved_register): Find saved registers in the next
1250 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1252 * gdbarch.sh (LANG): Set to ``c''.
1254 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1256 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1258 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1260 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1263 * hpread.c (hpread_get_lntt): Add declaration.
1264 Also fix PR gdb/391.
1266 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1268 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1269 * aclocal.m4, configure: Re-generate.
1272 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1274 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1275 instead of tm_print_insn.
1277 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1279 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1281 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1283 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1284 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1285 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1287 2002-04-12 Don Howard <dhoward@redhat.com>
1289 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1290 max_user_call_depth.
1291 (init_cmd_lists): Initialize the new value;
1292 * cli/cli-script.c (execute_user_command): Limit the call depth of
1293 user defined commands. This avoids a core-dump when user commands
1294 are infinitly recursive.
1296 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1298 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1299 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1300 from tdep struct instead of DEFAULT_LR_SAVE.
1301 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1302 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1303 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1305 2002-04-12 Michael Snyder <msnyder@redhat.com>
1307 * Remote.c: Spelling fix.
1308 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1309 If no symbol found for "sbrk", try "_sbrk".
1310 (make_output_phdrs): Use bfd_section_name.
1311 (gcore_copy_callback): Use bfd_section_name.
1312 * eval.c: Indentation fix-ups.
1313 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1314 in case it gets applied to an address that is already
1315 in the instruction space.
1316 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1317 * symfile.c: Fix indentation, long lines.
1318 * source.c: White space fix-up.
1320 2002-04-12 Andrew Cagney <cagney@redhat.com>
1322 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1323 * frame.c (frame_register_read): New function. Return non-zero on
1325 (read_relative_register_raw_bytes_for_frame): Delete.
1326 (read_relative_register_raw_bytes): Delete.
1327 * frame.h (frame_register_read): Declare.
1328 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1330 * infcmd.c (do_registers_info): Ditto.
1331 * hppa-tdep.c: Ditto.
1332 * rs6000-tdep.c: Ditto.
1333 * h8500-tdep.c: Ditto.
1334 * mips-tdep.c: Ditto.
1335 * h8300-tdep.c: Ditto.
1336 * z8k-tdep.c: Ditto.
1338 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1340 From Jimi X <jimix@watson.ibm.com>:
1341 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1344 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1346 From Jimi X <jimix@watson.ibm.com>:
1347 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1350 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1352 From Jimi X <jimix@watson.ibm.com>:
1353 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1354 register sets for these processor variants.
1356 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1358 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1359 registers which are allowed to fail to store.
1360 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1361 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1362 (ppc_cannot_store_register): FPSCR may not be storable.
1363 * regformats/reg-ppc.dat: Support FPSCR.
1365 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1367 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1368 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1369 Add fpscr as an invalid/unfetchable register.
1370 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1371 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1372 (fill_fpregset): Add support for register fpscr.
1373 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1374 (fill_gregset): Account for the fact that register ``mq'' might
1376 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1377 (registers_power): Add fpscr to register set at slot 71.
1378 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1379 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1381 2002-04-11 Michael Snyder <msnyder@redhat.com>
1383 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1384 * configure: Regenerate.
1385 * config.in: Regenerate.
1386 * acconfig.h: Add define for _SYSCALL32.
1387 * core-sol2.c: Remove #define _SYSCALL32.
1388 * solib-legacy.c: Remove #define _SYSCALL32.
1390 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1392 * stack.c (select_frame): Cleanup internal error message, do not
1395 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1397 * stack.c (select_frame): Check that selected_frame and the
1398 specified level are as expected.
1399 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1401 * frame.h (struct frame_info): Add field `level'. Update
1403 Work-in-progress PR gdb/464.
1405 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1407 * maint.c (maint_print_section_info): Rename print_section_info.
1408 (print_bfd_section_info, print_objfile_section_info): Update.
1409 * inferior.h (struct gdbarch): Add opaque declaration.
1410 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1411 * gdbarch.h: Regenerate.
1413 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1415 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1416 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1417 (kernel_u_size): Added.
1418 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1419 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1421 2002-04-04 Jim Ingham <jingham@apple.com>
1423 * valarith.c (find_size_for_pointer_math): New function, either returns
1424 the size for a pointer's target, returns 1 for void *, or errors for
1426 (value_add, value_sub): use find_size_for_pointer_math.
1428 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1430 * linux-low.c (linux_look_up_symbols): New hook.
1431 (linux_target_ops): Add linux_look_up_symbols.
1432 * remote-utils.c (decode_address): New function.
1433 (look_up_one_symbol): New function.
1434 * server.c (handle_query): Call target look_up_symbols hook.
1435 * server.h (look_up_one_symbol): Add prototype.
1436 * target.h (struct target_ops): Add look_up_symbols hook.
1438 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1440 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1441 * ChangeLog: Correct paths in last ChangeLog entry.
1443 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1445 * gdbserver/linux-low.h: Remove obsolete prototypes.
1446 (struct linux_target_ops): New.
1447 (extern the_low_target): New.
1448 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1449 (register_addr): Use the_low_target explicitly.
1450 (fetch_register): Likewise.
1451 (usr_fetch_inferior_registers): Likewise.
1452 (usr_store_inferior_registers): Likewise.
1453 * gdbserver/linux-arm-low.c (num_regs): Remove.
1454 (arm_num_regs): Define.
1455 (arm_regmap): Renamed from regmap, made static.
1456 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1458 (arm_cannot_store_register): Renamed from cannot_store_register,
1460 (the_low_target): New.
1461 * gdbserver/linux-i386-low.c (num_regs): Remove.
1462 (i386_num_regs): Define.
1463 (i386_regmap): Renamed from regmap, made static.
1464 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1466 (i386_cannot_store_register): Renamed from cannot_store_register,
1468 (the_low_target): New.
1469 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1470 (ia64_num_regs): Define.
1471 (ia64_regmap): Renamed from regmap, made static.
1472 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1474 (ia64_cannot_store_register): Renamed from cannot_store_register,
1476 (the_low_target): New.
1477 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1478 (m68k_num_regs): Define.
1479 (m68k_regmap): Renamed from regmap, made static.
1480 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1482 (m68k_cannot_store_register): Renamed from cannot_store_register,
1484 (the_low_target): New.
1485 * gdbserver/linux-mips-low.c (num_regs): Remove.
1486 (mips_num_regs): Define.
1487 (mips_regmap): Renamed from regmap, made static.
1488 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1490 (mips_cannot_store_register): Renamed from cannot_store_register,
1492 (the_low_target): New.
1493 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1494 (ppc_num_regs): Define.
1495 (ppc_regmap): Renamed from regmap, made static.
1496 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1498 (ppc_cannot_store_register): Renamed from cannot_store_register,
1500 (the_low_target): New.
1501 * gdbserver/linux-s390-low.c (num_regs): Remove.
1502 (s390_num_regs): Define.
1503 (s390_regmap): Renamed from regmap, made static.
1504 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1506 (s390_cannot_store_register): Renamed from cannot_store_register,
1508 (the_low_target): New.
1509 * gdbserver/linux-sh-low.c (num_regs): Remove.
1510 (sh_num_regs): Define.
1511 (sh_regmap): Renamed from regmap, made static.
1512 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1514 (sh_cannot_store_register): Renamed from cannot_store_register,
1516 (the_low_target): New.
1517 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1518 (the_low_target): New.
1520 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1522 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1523 override FP_REGNUM with frame->fp. Update copyright.
1524 * parse.c (num_std_regs, std_regs): Delete.
1525 (target_map_name_to_register): Do not search std_regs. Update
1526 function description.
1527 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1528 declarations. Update copyright.
1531 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1533 * gdbserver/Makefile.in: Add stamp-h target.
1534 * gdbserver/configure.in: Create stamp-h.
1535 * gdbserver/configure: Regenerated.
1537 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1539 * gdbserver/inferiors.c: New file.
1540 * gdbserver/target.c: New file.
1541 * gdbserver/target.h: New file.
1542 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1544 * gdbserver/linux-low.c (inferior_pid): New static variable,
1545 moved from server.c.
1546 (linux_create_inferior): Renamed from create_inferior.
1547 Call add_inferior. Return 0 on success instead of a PID.
1548 (linux_attach): Renamed from myattach.
1549 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1550 (linux_thread_alive): Renamed from mythread_alive.
1551 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1553 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1554 (regsets_store_inferior_registers): Correct error message.
1555 Add missing ``return 0''.
1556 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1557 (linux_store_registers): Renamed from store_inferior_registers.
1558 (linux_read_memory): Renamed from read_inferior_memory.
1559 (linux_write_memory): Renamed from write_inferior_memory.
1560 (linux_target_ops): New structure.
1561 (initialize_low): Call set_target_ops ().
1562 * gdbserver/remote-utils.c (unhexify): New function.
1563 (hexify): New function.
1564 (input_interrupt): Send signals to ``signal_pid''.
1565 * gdbserver/server.c (inferior_pid): Remove.
1566 (start_inferior): Update create_inferior call.
1567 (attach_inferior): Call add_inferior.
1568 (handle_query): New function.
1569 (main): Call handle_query for `q' packets.
1570 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1571 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1573 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1575 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1577 * gdbserver/configure.in: Check for <string.h>
1578 * gdbserver/configure: Regenerate.
1579 * gdbserver/config.in: Regenerate.
1580 * gdbserver/gdbreplay.c: Include needed system headers.
1581 (remote_open): Remove strchr prototype.
1582 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1583 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1584 (supply_register_by_name): Likewise.
1585 (collect_register): Change buf argument to void *.
1586 (collect_register_by_name): Likewise.
1587 * gdbserver/regcache.h: Add missing prototypes.
1588 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1589 * gdbserver/server.c (handle_query): New function.
1590 (attached): New static variable, moved out of main.
1591 (main): Quiet longjmp clobber warnings.
1592 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1593 * gdbserver/utils.c (error): Remove NORETURN.
1596 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1598 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1599 after the last symbol in a block.
1601 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1603 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1604 is non zero as a found symbol.
1606 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1608 * findvar.c: Include "builtin-regs.h".
1609 (value_of_register): Call value_of_builtin_reg when applicable.
1610 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1611 (target_map_name_to_register): Call
1612 builtin_reg_map_name_to_regnum.
1613 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1614 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1615 (builtin_regs_h): Define.
1616 (builtin-regs.o): New target.
1617 (findvar.o): Add $(builtin_regs_h).
1618 * builtin-regs.c, builtin-regs.h: New files.
1619 * std-regs.c: New file.
1620 Partial fix for PR gdb/251.
1622 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1624 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1625 it's no longer required.
1627 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1629 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1631 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1633 From Jimi X <jimix@watson.ibm.com>:
1634 * rs6000-tdep.c (rs6000_software_single_step): Use
1635 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1636 and size. Use target_insert_breakpoint() and
1637 target_remove_breakpoint() to insert and remove breakpoints
1638 instead of explicit memory reads and writes.
1640 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1642 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1643 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1644 ELF_OBJECT_FORMAT ifdef.
1646 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1648 From Jimi X <jimix@watson.ibm.com>:
1649 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1651 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1653 From Jimi X <jimix@watson.ibm.com>:
1654 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1655 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1657 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1659 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1660 s/asprintf/xasprintf/.
1661 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1663 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1665 I believe Jeff Law denies responsability for this one:
1666 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1667 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1668 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1669 Work-around for PR gdb/366.
1671 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1673 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1674 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1675 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1677 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1679 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1680 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1683 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1685 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1688 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1690 * README (Reporting Bugs in GDB): Document the bug web page as the
1691 prefered way of submitting bugs.
1694 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1696 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1698 * gdbarch.h, gdbarch.c: Re-generate.
1700 2002-04-07 Andreas Schwab <schwab@suse.de>
1702 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1703 buffer to regcache_collect.
1705 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1707 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1708 * gdbarch.c, gdbarch.h: Re-generate.
1710 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1712 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1713 declaration. Fix -Werror.
1715 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1717 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1718 * gdbarch.c: Regenerate.
1720 2002-04-05 Michael Snyder <msnyder@redhat.com>
1722 * breakpoint.c (clear_command): Rewrite middle section to
1723 combine two loops with identical control conditions.
1724 Add a cleanup to eliminate a memory leak.
1725 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1727 2002-04-05 H.J. Lu (hjl@gnu.org)
1729 * solib-svr4.c (bkpt_names): Add "__start".
1731 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1733 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1734 as test for 64 bit target.
1736 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1738 * h8500-tdep.c (h8500_write_fp): Delete function.
1739 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1740 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1741 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1743 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1744 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1746 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1747 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1748 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1749 (d10v_write_fp): Delete function.
1750 * inferior.h (write_fp, generic_target_write_fp): Delete
1752 * regcache.c (generic_target_write_fp): Delete function.
1753 (write_fp): Delete function.
1754 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1755 * gdbarch.h, gdbarch.c: Regenerate.
1756 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1757 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1758 (sparc64_write_fp): Delete declaration.
1759 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1760 (h8500_write_fp): Delete declaration.
1762 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1764 * sparc-tdep.c (sparc64_write_fp): Delete.
1765 (sparc_push_dummy_frame): Replace write_fp call with code to store
1767 (sparc_gdbarch_init): Do not initialize write_fp.
1769 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1771 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1774 2002-03-29 Jim Blandy <jimb@redhat.com>
1776 * stack.c (get_selected_block): Add new argument `addr_in_block',
1777 used to return the exact code address we used to select the block,
1779 * blockframe.c (get_frame_block, get_current_block): Same.
1780 * frame.h (get_frame_block, get_current_block,
1781 get_selected_block): Update declarations.
1782 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1783 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1785 2002-04-05 Michael Snyder <msnyder@redhat.com>
1787 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1790 2002-04-05 J. Brobecker <brobecker@gnat.com>
1792 * utils.c (xfullpath): New function.
1793 * defs.h (xfullpath): Add declaration.
1794 * source.c (openp): Use xfullpath in place of gdb_realpath to
1795 avoid resolving the basename part of filenames when the
1796 associated file is a symbolic link. This fixes a potential
1797 inconsistency between the filenames known to GDB and the
1798 filenames it prints in the annotations.
1799 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1800 to be able to match a filename with either the real filename, or
1801 the name of any symbolic link to this file.
1802 (lookup_partial_symtab): Ditto.
1804 2002-04-04 Michael Snyder <msnyder@redhat.com>
1806 * breakpoint.c: Add support for hardware breakpoints in overlays.
1807 (overlay_events_enabled): New state variable.
1808 (insert_breakpoints): Use overlay_events_enabled to decide
1809 whether to attempt to set a breakpoint at the overlay load addr.
1810 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1811 (remove_breakpoint): Use overlay_events_enabled to decide
1812 whether breakpoints need to be removed from overlay load addr.
1813 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1814 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1815 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1816 disable_overlay_breakpoints): Update overlay_events_enabled.
1818 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1820 * dwarf2read.c (struct function_range): New.
1821 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1822 (check_cu_functions): New.
1823 (read_file_scope): Initialize global function lists.
1824 Call dwarf_decode_line after processing children.
1825 (read_func_scope): Add to global function list.
1826 (dwarf_decode_lines): Call check_cu_functions everywhere
1827 record_line is called. Call record_line with a linenumber
1828 of 0 to mark sequence ends.
1830 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1832 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1833 change sync with glibc.
1835 2002-04-03 Jim Blandy <jimb@redhat.com>
1837 * configure.in: Call AC_C_INLINE.
1838 * configure: Regenerated.
1840 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1842 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1843 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1845 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1847 * NEWS: Mention gcore support on FreeBSD/i386.
1849 * fbsd-proc.c: New file.
1850 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1851 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1853 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1856 2002-03-29 Jim Blandy <jimb@redhat.com>
1858 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1859 unescaped newlines in string literals, but newer ones don't. So
1862 2002-03-26 Michael Snyder <msnyder@redhat.com>
1863 Andrew Cagney <cagney@redhat.com>
1865 * cli/cli-dump.c: New file. Dump memory to file,
1866 restore file to memory.
1867 * cli/cli-dump.h: New file.
1868 * Makefile.in: Add rules, dependencies for cli-dump.o.
1869 * NEWS: Mention new commands.
1871 2002-03-28 Michael Snyder <msnyder@redhat.com>
1873 * symfile.c (symbol_file_add): Move test for null symbols to later.
1875 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1877 From veksler at il.ibm.com:
1878 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1879 the xstrduped original path.
1882 2002-03-27 Michael Snyder <msnyder@redhat.com>
1884 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1885 * infcmd.c (_initialize_infcmd): Ditto.
1886 * language.c (_initialize_language): Ditto.
1887 * symfile.c (_initialize_symfile): Ditto.
1888 * top.c (_init_main): Ditto.
1889 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1891 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1893 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1894 vector registers handling.
1895 (skip_prologue): Handle new AltiVec instructions. Fill in new
1896 fields of frame data.
1897 (frame_get_saved_regs): Fill in information for AltiVec registers.
1899 2002-03-27 Jim Blandy <jimb@redhat.com>
1901 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1902 a function; leave this macro here to invoke that function.
1903 (symbol_init_mangled_name): Declaration for that function.
1904 * symtab.c (symbol_init_mangled_name): New function.
1906 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1908 * valarith.c: Replace strerror with safe_strerror.
1909 * tracepoint.c: Ditto.
1911 * go32-nat.c: Ditto.
1915 2002-03-27 Andreas Schwab <schwab@suse.de>
1917 * event-top.c (command_line_handler): Remove useless if.
1919 2002-03-27 Andreas Jaeger <aj@suse.de>
1921 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1924 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1926 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1927 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1928 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1929 (x86_64_linux_dr_get_status, supply_gregset),
1930 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1931 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1932 (x86_64_register_info_table): Add.
1933 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1934 (x86_64_register_raw_size, x86_64_register_virtual_type),
1935 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1936 general x86_64_register_info_table.
1937 (i386_gdbarch_init): gdbarch_register_bytes is now set
1938 dynamicaly during initialization.
1939 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1940 * gdbserver/linux-x86-64-low.c: Ditto.
1942 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1944 * gdbserver/server.c (main): Call target_signal_to_host_p
1945 and target_signal_to_host on signals received from the remote.
1946 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1947 target_signal_from_host on signals sent to the remote.
1948 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1949 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1951 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1953 * signals/signals.c: Include "server.h" in gdbserver build.
1954 (target_signal_from_name): Don't use STREQ.
1955 (_initialize_signals): Likewise. Don't include function in
1958 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1960 * signals.c: Moved to...
1961 * signals/signals.c: Here.
1962 * Makefile (signals.o): Update.
1964 2002-03-26 Jeff Law (law@redhat.com)
1966 * somread.c (som_symtab_read): Remove some commented out code and
1967 updated related comments. Do not set the minimal symbol table to
1968 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1969 in a dynamic executable.
1970 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1971 where we are unable to find the minimal symbol for the given
1974 2002-03-25 Jeff Law (law@redhat.com)
1976 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1978 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1980 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1982 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1984 * command.h: Update copyright.
1985 (struct cmd_list_element): Replace definition with opaque
1987 (enum cmd_types): Document that it will eventually be moved to
1989 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1990 (MALLOCED_REPLACEMENT): Delete macro.
1991 * Makefile.in (cli_decode_h): Add $(command_h).
1992 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1993 * top.c: Include "cli/cli-decode.h".
1994 * completer.c: Include "cli/cli-decode.h".
1995 * maint.c: Include "cli/cli-decode.h".
1996 * cli/cli-decode.h: Include "command.h".
1997 (enum command_class): Delete.
1998 (enum cmd_types): Comment out.
1999 (enum cmd_auto_boolean): Delete.
2000 (enum var_types): Delete.
2002 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2004 * cli/cli-decode.c: Include "gdb_assert.h".
2005 (add_set_or_show_cmd): New static function.
2006 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2007 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2008 all fields, such as func, from the set command.
2010 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2012 * MAINTAINERS (sh-elf): Change warning flag to -w.
2014 2002-03-23 Andrew Cagney <cagney@redhat.com>
2016 * defs.h (error): Add printf format attribute.
2017 * thread-db.c (thread_from_lwp): Fix error format string.
2018 * stack.c (parse_frame_specification): Ditto.
2019 * cli/cli-decode.c (undef_cmd_error): Ditto.
2020 * scm-lang.c (scm_lookup_name): Ditto.
2021 * tracepoint.c (trace_error): Ditto.
2022 * remote-utils.c (usage): Ditto.
2023 * remote.c (compare_sections_command): Ditto.
2026 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2028 * gdbtypes.c (append_composite_type_field): New function.
2029 (init_composite_type): New function.
2030 * gdbtypes.h (append_composite_type_field): Declare.
2031 (init_composite_type): Ditto.
2033 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2035 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2037 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2038 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2039 structure returning convention for SYSV ABI case, but not
2040 for GNU/Linux, FreeBSD, or NetBSD.
2042 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2044 * symtab.h (lookup_block_symbol): Add mangled_name argument
2047 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2048 with new mangled_name argument.
2049 * linespec.c (decode_line_1): Likewise.
2050 * valops (value_of_this): Likewise.
2051 * symtab.c (lookup_transparent_type): Likewise.
2052 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2053 (lookup_symbol): If we are given a mangled name, pass it down
2054 to lookup_symbol_aux.
2055 (lookup_block_symbol): If we are given a mangled name to check
2056 against, only return symbols which match it.
2058 2002-03-22 Christopher Faylor <cgf@redhat.com>
2060 * win32-nat.c (child_create_inferior): Check for proper shell to use
2061 here, in case the user changes it on the fly.
2062 (_initialize_inftarg): Remove shell path considerations.
2064 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2066 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2067 for gdbarch_max_register_raw_size and max_register_virtual_size.
2068 Adjust copyright year.
2070 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2072 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2073 in a function to cover the entire beginning of the function
2074 as well if it does not already.
2076 2002-03-21 Tom Rix <trix@redhat.com>
2078 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2079 (rs6000_ptrace64): Renamed from ptrace64.
2081 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2083 * gdbserver/remote-utils.c (remote_open): Don't call
2084 getprotobyname, we're all using TCP here so just use
2086 * gdbserver/gdbreplay.c (remote_open): Ditto.
2088 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2090 * regcache.c (_initialize_regcache): No need to call
2091 build_regcache() at this time; it gets called whenever
2092 the gdbarch changes.
2094 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2096 * sparc-nat.c: Include sys/param.h where possible.
2098 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2101 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2102 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2103 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2105 * stabsread.c (rs6000_builtin_type): Likewise.
2106 (read_sun_floating_type): Likewise.
2108 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2110 * stabsread.c (read_member_functions): Remove skip code for duplicate
2111 constructor/destructor methods. Use standard parsing for these
2112 methods and just do not chain them to the list of methods after
2115 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2117 * coffread.c: Remove redundant static declarations. Replace
2118 occurrences of `PTR' with `void *'.
2119 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2120 * top.h (quit_cover): Likewise.
2121 * defs.h (catch_errors): Likewise.
2123 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2125 * defs.h (XMALLOC): Define.
2126 * gdb-events.sh (XMALLOC): Delete macro.
2127 * gdb-events.c, gdb-events.h: Regenerate.
2128 * gdbarch.sh (XMALLOC): Delete macro.
2129 * gdbarch.c: Regenerate.
2130 * serial.c (XMALLOC): Delete macro.
2131 * ui-file.c (XMALLOC): Ditto.
2132 * ser-unix.h (XMALLOC): Ditto.
2133 * sh-tdep.c (XMALLOC): Ditto.
2134 * ui-out.c (XMALLOC): Ditto.
2135 * utils.c (XMALLOC): Ditto.
2136 * i386-tdep.c (XMALLOC): Ditto.
2137 * gdb-events.c (XMALLOC): Ditto.
2138 * d10v-tdep.c (XMALLOC): Ditto.
2139 * cli-out.c (XMALLOC): Ditto.
2141 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2142 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2143 * ui-file.c, ui-out.c: Ditto.
2145 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2147 * command.h (struct cmd_list_element): Add field context.
2148 (set_cmd_context, get_cmd_context): Declare.
2149 * cli/cli-decode.h: Ditto.
2150 * cli/cli-decode.c (get_cmd_context): New function.
2151 (set_cmd_context): New function.
2152 (add_cmd): Initialize context.
2153 Part of fixing PR gdb/145 and PR gdb/146.
2155 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2157 * cli/cli-decode.c (cmd_type): New function.
2158 * command.h (cmd_type): Declare.
2159 * infrun.c (set_schedlock_func): Call function cmd_type.
2160 * kod.c (kod_set_os): Call cmd_type.
2161 * cris-tdep.c (cris_version_update): Use function cmd_type.
2162 (cris_mode_update, cris_abi_update): Ditto.
2164 * command.h: (execute_cmd_post_hook): Declare.
2165 (execute_cmd_pre_hook): Declare.
2166 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2167 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2168 functions. Execute pre/post hook while ensuring that afterwords
2170 * top.c (execute_command): Use execute_cmd_post_hook, and
2171 execute_cmd_pre_hook to execute pre/post commands.
2172 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2174 (hook_stop_stub): Call execute_cmd_pre_hook.
2176 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2178 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2179 set'' and this leads to a core dump. Move xstrdup of
2180 operating_system to after check that it is not NULL.
2182 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2184 * kod.c (kod_set_os): Remove unnecessary check that
2185 ``command->type'' is set_cmd.
2187 * valprint.c (set_input_radix): Use input_radix.
2188 (set_output_radix): Use output_radix.
2189 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2192 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2194 * value.h (struct value): Delete field ``substring_addr''. Change
2195 aligner fields to force_doublest_align, force_longest_align,
2196 force_core_addr_align and force_pointer_aligh.
2198 * value.h (struct value): Fix typo in above change.
2200 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2202 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2203 to fix internal_error from ``maintenance print architecture''.
2205 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2207 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2208 for gcc versions after gcc-2.8.1.
2210 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2212 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2213 for method resolution. Restore adjustment of ``this'' pointer after
2214 calling value_struct_elt, which was accidentally removed during the
2217 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2219 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2221 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2223 * value.h (value_of_register): Update.
2225 2002-03-14 Richard Henderson <rth@redhat.com>
2227 * configure.in: Detect declaration for canonicalize_file_name.
2228 * utils.c (canonicalize_file_name): Declare, if needed.
2229 (gdb_realpath): Prefer realpath if available and usable.
2230 * config.in, configure: Rebuild.
2232 2002-03-14 Richard Henderson <rth@redhat.com>
2234 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2235 a constant array bound.
2237 * MAINTAINERS: Add myself to write-after-approval.
2239 2002-03-14 Michael Snyder <msnyder@redhat.com>
2241 * symfile.c (syms_from_objfile): Return immediately if no syms.
2242 (symbol_file_add): Return immediately if no syms.
2243 (find_sym_fns): Return immediately if no syms.
2245 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2247 * gdbserver/remote-util.c (remote_open): Print remote-side's
2248 IP address when remote debugging over the network.
2250 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2252 * config/sparc/fbsd.mh: Fix copyright.
2253 * config/sparc/fbsd.mt: Likewise.
2255 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2257 * MAINTAINERS: Fix typo in name of gdb warnings option.
2258 (x86-64): Fix formating so that this can be parsed by awk.
2260 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2262 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2263 * defs.h: Include "gdb/signals.h".
2264 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2266 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2268 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2269 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2272 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2273 Don Howard <dhoward@redhat.com>
2275 * mips-tdep.c (ST0_FR): Define.
2276 (mips2_fp_compat): New function, temporarily disabled.
2277 (mips_read_fp_register_single): New function.
2278 (mips_read_fp_register_double): New function.
2279 (mips_print_register): Use them.
2280 (do_fp_register_row): Likewise.
2282 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2284 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2287 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2289 * stabsread.c (read_member_functions): Fix is_stub test for
2290 static member functions, improve comment.
2292 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2294 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2295 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2296 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2297 commands that set boolean values.
2298 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2299 (arm_rdi_resume): Always initialize PC.
2300 (arm_rdi_open): Don't use rslt as a boolean.
2301 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2302 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2303 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2304 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2306 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2308 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2309 * configure: Rebuilt.
2311 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2313 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2314 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2316 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2318 * cli/cli-decode.c (set_cmd_completer): New function.
2319 * command.h (set_cmd_completer): Declare.
2320 * cli/cli-decode.h (set_cmd_completer): Ditto.
2322 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2323 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2324 * win32-nat.c (_initialize_inftarg): Ditto.
2325 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2326 * proc-api.c (_initialize_proc_api): Ditto.
2327 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2328 * source.c (_initialize_source): Ditto.
2329 * exec.c (_initialize_exec): Ditto.
2330 * solib.c (_initialize_solib): Ditto.
2331 * top.c (init_main): Ditto.
2332 * tracepoint.c (_initialize_tracepoint): Ditto.
2333 * symfile.c (_initialize_symfile): Ditto.
2334 * printcmd.c (_initialize_printcmd): Ditto.
2335 * infcmd.c (_initialize_infcmd): Ditto.
2336 * corefile.c (_initialize_core): Ditto.
2338 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2340 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2342 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2344 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2346 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2348 * NEWS: Update headings, 5.2 has branched.
2350 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2352 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2353 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2354 (register_addr, REGISTER_RAW_SIZE): Likewise.
2355 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2356 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2358 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2360 * MAINTAINERS (x86-64): Add myself.
2361 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2362 changed value_ptr -> struct value *
2364 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2366 * configure.host (sparc64-*-freebsd): Add.
2367 * configure.tgt: Likewise.
2368 * config/sparc/fbsd.mh: New file.
2369 * config/sparc/fbsd.mt: Likewise.
2370 * config/sparc/nm-fbsd.h: Likewise.
2371 * config/sparc/tm-fbsd.h: Likewise.
2373 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2375 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2376 regformats/reg-s390x.dat.
2378 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2380 * utils.c: Add FIXME explaining true/false problem.
2382 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2384 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2386 2002-02-28 Michael Chastain <mec@shout.net>
2388 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2390 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2392 * gdbserver/linux-s390-low.c: New file.
2393 * regformats/reg-s390.dat: New file.
2394 * regformats/reg-s390x.dat: New file.
2395 * gdbserver/configure.srv: Add S/390.
2396 * gdbserver/Makefile.in: Add S/390.
2397 * configure.tgt: Enable gdbserver for S/390.
2399 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2401 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2402 first line of the doc string for "info dos", except at the end of
2403 the sentence, since the short help stops at the first period.
2405 2002-02-28 Jason Merrill <jason@redhat.com>
2407 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2409 2002-02-27 Fred Fish <fnf@redhat.com>
2411 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2412 comment (dumy -> dummy).
2414 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2416 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2418 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2420 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2422 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2424 * gdbserver/acconfig.h: New file.
2425 * gdbserver/i387-fp.c: New file.
2426 * gdbserver/i387-fp.h: New file.
2427 * gdbserver/linux-x86-64.c: New file.
2428 * regformats/reg-x86-64.dat: New file.
2429 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2430 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2431 * gdbserver/configure.in: Add support for regsets.
2432 * gdbserver/config.in: Regenerate.
2433 * gdbserver/configure: Regenerate.
2434 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2435 * gdbserver/linux-low.h: New file.
2436 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2438 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2439 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2440 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2441 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2442 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2443 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2444 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2445 "i387-fp.h". Add PTRACE_GETREGS and friends.
2446 * gdbserver/regcache.c (supply_register): New function.
2447 (supply_register_by_name): New function.
2448 (collect_register): New function.
2449 (collect_register_by_name): New function.
2451 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2453 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2454 (config.status): Add configure.srv dependency.
2455 (server_h): Add config.h dependency.
2457 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2459 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2460 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2461 * gdbserver/configure.srv: Change i386-*-linux* to use
2464 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2466 * x86-64-tdep.c: Re-indent. Update copyright date.
2468 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2470 From Michal Ludvig <mludvig@suse.cz>:
2471 * x86-64-tdep.c (value.h): Delete.
2472 (gdb_assert.h): Include.
2473 (x86_64_register_convert_to_virtual,
2474 x86_64_register_convert_to_raw ): Add check which lets only
2475 floating-point values to be converted.
2476 (value_push): Delete.
2477 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2478 (i386_gdbarch_init): Number of register_bytes fixed.
2480 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2482 * MAINTAINERS: Add x86-64 target.
2484 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2486 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2487 * osfsolib.c (solib_map_sections): Ditto.
2488 * irix5-nat.c (solib_map_sections): Ditto.
2489 * corelow.c (gdb_check_format): Ditto.
2490 * symfile.c (symfile_bfd_open): Ditto.
2491 * solib.c (solib_map_sections): Ditto.
2494 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2496 * remote.c (_initialize_remote): By default, disable ``e'' and
2497 ``E'' step out-of-range packets.
2499 2002-02-26 Andreas Schwab <schwab@suse.de>
2501 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2502 m68k_linux_frame_saved_pc.
2503 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2505 (SIGCONTEXT_PC_OFFSET): Remove.
2506 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2507 m68k_linux_sigtramp_saved_pc): New functions.
2508 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2509 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2510 (UCONTEXT_PC_OFFSET): Define.
2511 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2512 non-RT and RT signal trampolines.
2514 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2516 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2517 (TARGET_NBPG, STACK_END_ADDR): Delete
2518 (VARIABLES_INSIDE_BLOCK): Delete.
2520 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2522 * utils.c (perror_with_name): Make string parameter constant.
2523 (print_sys_errmsg): Ditto.
2525 * defs.h (perror_with_name): Update.
2526 (print_sys_errmsg): Update.
2529 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2531 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2532 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2534 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2536 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2537 if it already matches the current architecture from the exec file.
2538 Include arch-utils.h for gdbarch_info_init prototype.
2539 * Makefile.in (rs6000-nat.o): Update dependencies.
2541 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2543 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2544 list of exported variables.
2546 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2548 * gdbserver/configure.srv: New file.
2549 * gdbserver/configure.in: Use configure.srv instead
2550 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2552 * gdbserver/configure: Regenerated.
2553 * gdbserver/terminal.h: New file.
2554 * gdbserver/Makefile.in: Update for configure changes. Remove
2555 more unneeded include paths.
2557 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2559 From wiz at danbala:
2560 * config/sparc/tm-sp64.h: Fix grammar and typos.
2563 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2565 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2566 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2567 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2568 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2569 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2570 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2571 * s390-tdep.c: Ditto.
2572 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2573 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2574 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2575 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2576 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2577 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2578 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2579 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2580 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2581 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2584 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2586 * lin-thread.c: Delete file.
2587 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2588 to gdb_proc_service.h.
2589 * configure: Re-generate.
2591 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2592 * serial.c (serial_open): Delete check for "ocd".
2595 * Makefile.in (linux-thread.o): Delete target.
2596 * linux-thread.c: Delete file.
2598 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2599 renamed SH files to be consistent.
2601 * symtab.c (sort_search_symbols): Use xfree.
2603 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2605 * arm-linux-tdep.c (arm_linux_init_abi): Register
2606 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2607 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2608 definition with undef, since we don't want the sysvr4 definition.
2609 (SKIP_TRAMPOLINE_CODE): Likewise.
2611 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2613 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2615 * configure.in: (AC_CHECK_FUNCS) Added test for
2616 canonicalize_file_name Regenerated.
2617 * config.in, configure: Regenerated.
2618 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2619 defined use canonicalize_file_name.
2621 2002-02-23 Michael Chastain <mec@shout.net>
2623 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2625 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2627 * README: Remove references to cygnus.com.
2628 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2629 dot com'' form. Remove references to cygnus.com and sourceware.
2631 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2633 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2634 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2635 1003.1-2001 no longer allows "head -1".
2636 * gdb/Makefile.in (version.c): Likewise.
2637 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2638 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2639 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2641 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2643 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2644 * command.h (cmd_cfunc_eq): Declare.
2645 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2647 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2648 ``struct cmd_list_element *''.
2649 * cli/cli-cmds.c (is_complete_command): Update. Use
2651 * top.c (execute_command): Pass the command to
2652 is_complete_command.
2653 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2655 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2657 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2658 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2659 architecture defines.
2660 * s390-tdep.c (s390_gdbarch_init): Likewise.
2662 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2664 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2665 (arm_linux_push_arguments): Likewise.
2666 (arm_linux_init_abi): Register them. Also register linux-specific
2668 (find_minsym_and_objfile): Use strcmp, not STREQ.
2669 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2670 (arm_linux_call_dummy_words): Delete declaration.
2671 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2672 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2674 (LOWEST_PC): Delete.
2676 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2678 * maint.c (print_section_info): Do not prepend `0x' to filepos
2679 output, it will be handled by local_hex_string_custom.
2681 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2683 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2684 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2685 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2687 2002-02-22 Jim Blandy <jimb@redhat.com>
2689 Indicate that the bcache functions don't change the strings
2691 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2692 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2694 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2696 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2698 2002-02-21 Christopher Faylor <cgf@redhat.com>
2700 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2701 find the complete path to a loaded DLL.
2703 2002-02-21 Fred Fish <fnf@redhat.com>
2705 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2706 that marks the end of the range of a function, enter a line number
2707 entry that has a line number of zero and a PC offset that matches
2708 the end of the function. This starts a range of PC's for which no
2709 line number information is known.
2710 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2711 PC's for which no line number info is found (line number is zero)
2712 then we didn't find any valid line information.
2713 * symtab.h: Document use of zero line number entry.
2715 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2717 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2718 (have_ptrace_getvrregs): Define for run time checks.
2719 (gdb_vrregset_t): New type for Altivec register handling.
2720 (fetch_register, store_register): Fetch/store altivec register
2722 (fetch_altivec_register, store_altivec_register): New functions.
2723 (supply_vrregset, fill_vrregset): New functions.
2724 (fetch_altivec_registers, store_altivec_registers): New functions.
2725 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2728 2002-02-21 Jiri Smid <smid@suse.cz>
2730 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2732 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2734 * Makefile.in (armnbsd-nat.o): Update dependencies.
2735 * armnbsd-nat.c (supply_gregset): New function. Common code to
2736 supply the integer register set.
2737 (supply_fparegset): New function. Similar for FPA registers.
2738 (fetch_regs, fetch_fp_regs): Use them.
2739 (fetch_core_registers): Likewise.
2740 (fetch_elfcore_registers): New function.
2741 (arm_netbsd_elfcore_fns): New core-file type specification.
2742 (_initialize_arm_netbsd_nat): Register it.
2744 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2746 * armnbsd-nat.c: Include gdbcore.h.
2747 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2748 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2749 'void' to declaration, to shut up ARI.
2750 (fetch_core_registers): Make static. Rewrite using supply_register.
2751 (arm_netbsd_core_fns): New core-file type specification.
2752 (_initialize_arm_netbsd_nat): New function.
2754 2002-02-21 Christopher Faylor <cgf@redhat.com>
2756 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2759 2002-02-20 Christopher Faylor <cgf@redhat.com>
2761 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2764 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2766 * jv-exp.y (parse_number): Change type of implicit longs
2767 to builtin_type_uint64.
2769 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2771 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2772 to be an integer instead of a `union wait'.
2774 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2776 * mips-linux-nat.c: Call the operating system GNU/Linux.
2777 * mips-linux-tdep.c: Likewise.
2778 * mips-tdep.c: Likewise.
2780 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2783 * jv-exp.y (parse_number): Handle 64-bit integers.
2785 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2787 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2788 AC_STDC_HEADERS to AC_HEADER_STDC.
2789 * gdbserver/configure: Regenerated.
2791 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2793 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2795 * sparc-tdep.c (get_longjmp_target): Likewise.
2797 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2799 * News: Add news about ARM and Multi-arch. Mention the new target
2802 2002-02-19 Jim Blandy <jimb@redhat.com>
2804 * stabsread.c (error_type_complaint): Improve error message.
2806 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2808 * gdbserver/README: Update documentation.
2809 * gdbserver/configure.in: Update configury to match documentation.
2810 * gdbserver/Makefile.in: Likewise.
2811 * gdbserver/configure: Regenerated.
2812 * gdbserver/aclocal.m4: New file, generated by aclocal.
2813 * gdbserver/config.in: New file, generated by autoheader.
2815 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2817 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2820 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2822 * arm-tdep.h (enum arm_float_model): New enum.
2823 (struct gdbarch_tdep): Add fp_model.
2824 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2825 up floating-point conversions until we know the floating-point model
2826 in use by the inferior. Don't complain about being unable to
2827 determine the ABI of the inferior when we don't have one.
2828 (arm_extract_return_value): Support different floating-point models.
2829 (arm_store_return_value): Likewise.
2830 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2832 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2834 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2836 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2837 of ``current_gdbarch''.
2839 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2841 * armnbsd-nat.c : ANSIfy all function declarations.
2842 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2843 (fetch_inferior_registers): Re-implement in terms of above.
2844 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2845 (store_inferior_registers): Re-implement in terms of above.
2847 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2849 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2851 * arm-linux-tdep.c: Likewise.
2852 * config/arm/tm-linux.h: Likewise.
2854 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2856 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2857 * config/arm/nbsd.mt (TM_FILE): Delete.
2858 * config/arm/tm-nbsd.h: Delete.
2860 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2862 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2863 Initialize CALL_DUMMY_LENGTH.
2865 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2867 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2869 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2870 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2871 defines one thing and that is incorrect for this port.
2872 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2874 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2876 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2878 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2880 * win32-nat.c (display_selector): New function. Displays information
2881 about the information returned by GetThreadSelectorEntry API function.
2882 (display_selectors): New function. Displays the infomation of
2883 the selector given as argument, or of CS, DS ans FS selectors
2884 if no argument is given.
2885 ( _initialize_inftarg): Add "w32" as info prefix command.
2886 Add "info w32 selector" as command calling display_selectors.
2888 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2890 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2891 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2894 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2896 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2898 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2900 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2901 (arm_fix_call_dummy): Call it.
2902 (arm_call_dummy_breakpoint_offset): Delete.
2903 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2904 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2906 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2908 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2909 Default to func_frame_chain_valid.
2910 * gdbarch.h, gdbarch.c: Re-generate.
2911 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2913 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2915 * ppc-linux-nat.c: Update copyright.
2916 (fetch_register, store_register): Add tid parameter, don't compute
2918 (fetch_ppc_registers, store_ppc_registers): Add tid
2919 parameter. Pass it along to callees.
2920 (fetch_inferior_registers, store_inferior_registers): Compute tid
2921 here, and pass it to calleed functions.
2922 (fill_gregset, supply_fpregset): Clean up formatting.
2924 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2926 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2927 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2929 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2931 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2932 * gdbarch.c gdbarch.h: Regenerate.
2933 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2935 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2936 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2937 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2939 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2940 * arm-tdep.c (arm_get_longjmp_target): New function.
2941 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2942 this to a positive value register arm_get_longjmp_target as the
2944 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2945 (arm_linux_init_abi): Set up longjmp description in tdep.
2946 * armnbsd-nat.c (get_longjmp_target): Delete.
2947 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2948 description in tdep.
2949 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2950 (get_longjmp_target): Delete declaration.
2951 (GET_LONGJMP_TARGET): Delete.
2952 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2953 (GET_LONGJMP_TARGET): Delete.
2955 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2957 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2958 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2959 of ``current_gdbarch''.
2961 2002-02-17 Tom Tromey <tromey@redhat.com>
2963 * cli/cli-cmds.c (compare_strings): New function.
2964 (complete_command): Only print each unique item once.
2965 * completer.h (complete_line): Declare.
2966 * completer.c (complete_line): New function.
2967 (line_completion_function): Use it.
2969 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2971 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2972 * gdbarch.h, gdbarch.c: Re-generate.
2974 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2976 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2978 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2980 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2981 * valops.c (value_arg_coerce): Don't take the address of a reference
2982 to convert an argument to a reference.
2984 2002-02-15 Christopher Faylor <cgf@redhat.com>
2986 * win32-nat.c (get_image_name): New function.
2987 (handle_load_dll): Use get_image_name function.
2988 (get_child_debug_event): Avoid registering debug events until possibly
2989 execed process is started.
2990 (child_create_inferior): Allow invocation via shell so that command
2991 line redirection, etc. works ok.
2992 (_initialize_inftarg): Add new command: "set shell" to control whether
2993 a shell is used to start a process.
2995 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2997 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2998 instead of find_register_by_number.
2999 (cannot_store_register): Likewise.
3001 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3003 * dwarf2read.c: Replace fprintf (stderr, ...) by
3004 fprintf_unfiltered (gdb_stderr, ...).
3006 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3008 * gdbserver/gdbserver.1: Document --attach.
3010 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3012 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3014 * arm-tdep.c (arm_default_arm_le_breakpoint)
3015 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3016 (arm_default_thumb_be_breakpoint): New. Initialize them from
3017 traditional breakpoint defines.
3018 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3019 (arm_gdbarch_init): Initialize new breakpoint variables.
3020 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3021 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3022 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3023 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3025 (arm_netbsd_init_abi_common): ... here; new function.
3026 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3027 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3028 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3029 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3031 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3033 * arm-tdep.h (enum arm_abi): New enum.
3034 (struct gdbarch_tdep): New structure.
3035 (LOWEST_PC): Provide a default.
3036 (arm_gdbarch_register_os_abi): Declare new function.
3037 * arm-tdep.c (arm_abi_names): New array.
3038 (process_note_abi_tag_sections): New function.
3039 (get_elfosabi): New function.
3040 (arm_gdbarch_register_os_abi): New function.
3041 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3042 support for that ABI has been built in, then call the appropriate
3043 configuration routine. Use gdbarch_num_regs() to get the number
3045 (arm_dump_tdep): New function.
3046 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3047 place-holder functions.
3048 (_initialize_arm_tdep): Register them.
3049 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3051 * armnbsd-tdep.c: New file.
3052 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3053 * config/arm/nbsd.mt (TDEPFILES): Add it.
3054 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3056 * armnbsd-nat.c: Include regcache.h.
3057 * Makefile.in (armnbsd-nat.o): Update dependency list.
3059 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3061 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3063 * gdbserver/Makefile.in: Fix typos in target rules.
3065 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3067 Fix part of PR gdb/267.
3068 * linespec.c (find_methods): Handle constructors specially for now.
3070 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3072 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3074 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3075 standard_coerce_float_to_double().
3077 2002-02-14 Christopher Faylor <cgf@redhat.com>
3079 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3082 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3084 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3085 find_variant_by_name, because it confuses the multiarch
3086 framework. Return NULL if there isn't an architecture with the
3087 user supplied name, instead of forcing a different one without
3088 recording the change with the multiarch machinery.
3089 (find_variant_by_name): Delete.
3091 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3093 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3094 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3096 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3098 * stack.c (print_frame_info_base): When calling
3099 print_frame_info_listing_hook, set current_source_symtab.
3101 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3103 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3104 and remove unused $(INCLUDE_DIR).
3105 Add regcache.c to OBS.
3106 Add generated register protocol files to clean target.
3107 Update dependencies for new objects, obsolete old target code.
3109 * gdbserver/linux-low.c: Remove all platform-specific code to
3110 new files. Remove various dead code. Update to use regcache
3112 * gdbserver/remote-utils.c (fromhex): Add return statement
3114 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3116 (input_interrupt): Add integer parameter to match prototype
3117 of a signal handler.
3118 (outreg): Use register_data ().
3119 (prepare_resume_reply): Use gdbserver_expedite_regs.
3120 * gdbserver/server.c (main): Dynamically allocate own_buf because
3121 PBUFSIZ is no longer constant. Use registers_to_string () and
3122 registers_from_string ().
3123 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3124 for error (), fatal (), and warning (). Update definition of
3125 PBUFSIZ to use regcache functionality. Add include guard.
3126 * gdbserver/utils.c (fatal): Add missing ``const''.
3127 (warning): New function.
3129 * regformats/regdat.sh: Include "regcache.h" in generated files.
3130 Provide init_registers () function.
3131 * regformats/regdef.h: Add prototype for set_register_cache ().
3134 * gdbserver/linux-arm-low.c: New file.
3135 * gdbserver/linux-i386-low.c: New file.
3136 * gdbserver/linux-ia64-low.c: New file.
3137 * gdbserver/linux-m68k-low.c: New file.
3138 * gdbserver/linux-mips-low.c: New file.
3139 * gdbserver/linux-ppc-low.c: New file.
3140 * gdbserver/linux-sh-low.c: New file.
3142 * gdbserver/regcache.c: New file.
3143 * gdbserver/regcache.h: New file.
3145 * gdbserver/low-linux.c: Removed obsolete file.
3147 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3149 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3150 * config/i386/linux.mt: Likewise.
3151 * config/ia64/linux.mt: Likewise.
3152 * config/m68k/linux.mh: Likewise.
3153 * config/powerpc/linux.mh: Likewise.
3154 * config/mips/linux.mt: Likewise.
3156 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3158 * config/i386/i386lynx.mh: Mark gdbserver variables
3159 as (currently) obsolete for this target.
3160 * config/i386/nbsd.mt: Likewise.
3161 * config/i386/nbsdelf.mt: Likewise.
3162 * config/m32r/m32r.mt: Likewise.
3163 * config/m68k/m68klynx.mh: Likewise.
3164 * config/m68k/nbsd.mt: Likewise.
3165 * config/m68k/sun3os4.mh: Likewise.
3166 * config/mips/vr5000.mt: Likewise.
3167 * config/ns32k/nbsd.mt: Likewise.
3168 * config/pa/hppabsd.mh: Likewise.
3169 * config/pa/hppaosf.mh: Likewise.
3170 * config/powerpc/nbsd.mt: Likewise.
3171 * config/rs6000/rs6000lynx.mh: Likewise.
3172 * config/s390/s390.mt: Likewise.
3173 * config/s390/s390x.mt: Likewise.
3174 * config/sparc/sparclynx.mh: Likewise.
3175 * config/sparc/sun4os4.mh: Likewise.
3176 * config/i386/x86-64linux.mt: Likewise.
3177 * config/sparc/linux.mh: Likewise.
3179 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3181 * configure.tgt: Configure gdbserver only for known working
3182 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3183 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3184 SUBDIRS if it is configured. Update comment for ${nativefile}.
3185 * configure: Regenerated.
3187 2002-02-13 Michael Snyder <msnyder@redhat.com>
3189 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3191 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3192 (default_gcore_mach): Just return 0, work around a problem in bfd.
3193 (default_gcore_target): OK to return NULL if exec_bfd is null.
3194 (make_mem_sec): Use a cast, avoid a warning.
3196 * procfs.c (find_memory_regions_callback): Use a cast instead of
3197 calling host_pointer_to_address (which complains if
3198 sizeof (host pointer) != sizeof (target pointer)).
3199 (procfs_make_note_section): Avoid overflow in psargs string.
3201 * procfs.c (procfs_make_note_section): Make the default
3202 implementation return an error.
3204 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3206 * procfs.c (procfs_make_note_section): Provide a default definition
3207 (for alpha-dec-osf4.0f). Fix typos.
3209 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3211 * linux-proc.c: Add include of regcache.h.
3212 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3214 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3216 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3217 * memattr.c (create_mem_region): Disallow useless empty region.
3218 Regions are half-open intervals, so allow [A..B) [B..C) as
3221 2002-02-13 Michael Chastain <mec@shout.net>
3223 * defs.h: Kill CONST_PTR.
3224 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3225 * c-lang.c (c_builtin_types): Likewise.
3226 * ch-lang.c (ch_builtin_types): Likewise.
3227 * f-lang.c (f_builtin_types): Likewise.
3228 * language.c (unknown_builtin_types): Likewise.
3229 * m2-lang.c (m2_builtin_types): Likewise.
3230 * p-lang.c (pascal_builtin_types): Likewise.
3231 * scm-lang.c (c_builtin_types): Likewise.
3233 2002-02-13 Keith Seitz <keiths@redhat.com>
3235 * arm-tdep.h (arm_get_next_pc): Add declaration.
3237 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3239 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3240 with other related struct-returning functions.
3241 (arm_extract_struct_value_address): New function.
3242 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3243 initialize float_format, double_format and long_double_format as
3244 appropriate to the endianness of the target.
3245 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3246 (arm_use_struct_convention): Delete declaration.
3247 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3249 2002-02-13 Keith Seitz <keiths@redhat.com>
3251 * defs.h (core_addr_to_string_nz): New function.
3253 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3255 Apply missing bits of 2002-01-15 patch.
3256 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3257 (fill_fpregset): Use i387_fill_fsave.
3259 2002-02-12 Keith Seitz <keiths@redhat.com>
3261 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3262 (core_addr_to_string_nz): New function.
3264 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3266 * arm-linux-nat.c: Really include arm-tdep.h.
3267 * config/arm/tm-linux.h (struct type, struct value): Declare.
3269 2002-02-11 Michael Snyder <msnyder@redhat.com>
3271 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3272 (gcore section): Ifdef for Solaris and Unixware only.
3273 (procfs_do_thread_registers): Unixware needs one lwpstatus
3274 per thread (not one prstatus or pstatus).
3275 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3276 not over all gdb threads. For unixware, call elfcore_write_pstatus
3277 once before iterating over threads.
3279 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3281 * arm-tdep.h: New file.
3282 * arm-tdep.c: Include arm-tdep.h.
3283 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3284 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3285 (arm_print_float_info, arm_register_type, convert_to_extended)
3286 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3287 (arm_extract_return_value, arm_register_name): Make static.
3288 (arm_software_single_step): Similarly. Fix types in declaration.
3289 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3290 (arm_store_return_value, arm_store_struct_return): New functions.
3291 (arm_gdbarch_init): Register the above functions. Also register
3292 call_dummy_start_offset, sizeof_call_dummy_words,
3293 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3294 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3295 max_register_virtual_size, register_size. Set up
3296 prologue_cache.saved_regs here, rather than ...
3297 (_initialize_arm_tdep): ... here.
3298 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3300 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3301 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3302 (arm_print_float_info, arm_register_type, convert_to_extended)
3303 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3304 (arm_extract_return_value, arm_register_name): Delete declarations.
3305 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3306 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3307 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3308 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3309 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3310 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3311 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3312 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3313 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3314 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3315 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3316 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3318 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3319 * remote-rdi.c remote-rdp.c: Likewise.
3320 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3321 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3322 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3325 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3326 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3327 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3328 from non-ARM_ prefixed definitions.
3329 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3331 * remote-rdi.c remote-rdp.c: Likewise.
3332 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3334 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3336 * arm-tdep.c (arm_frameless_function_invocation)
3337 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3338 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3339 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3340 (arm_pop_frame, arm_get_next_pc): Make static.
3341 (arm_gdbarch_init): Register above in gdbarch structure.
3342 (arm_read_fp): Renamed from arm_target_read_fp.
3343 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3344 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3345 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3346 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3347 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3348 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3349 (arm_pc_is_thumb_dummy): Delete declarations.
3350 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3351 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3352 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3353 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3355 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3357 * symtab.c (compare_search_syms): New function.
3358 (sort_search_symbols): New function.
3359 (search_symbols): Sort symbols after searching rather than
3362 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3364 * NEWS: Linux -> GNU/Linux.
3366 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3368 * gdbarch.sh: For for level one methods, disallow a definition
3369 when partially multi-arched. Add comments explaining rationale.
3370 * gdbarch.h: Re-generate.
3372 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3374 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3377 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3379 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3381 * gdbarch.c: Re-generate.
3383 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3385 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3386 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3389 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3391 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3393 (PUSH_ARGUMENTS): Switch to using predefault.
3394 * gdbarch.c: Regenerate.
3396 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3398 * valops.c (PUSH_ARGUMENTS): Delete definition.
3399 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3400 partial. Default to default_push_arguments.
3401 * gdbarch.h, gdbarch.c: Regenerate.
3403 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3405 * defs.h (throw_exception): Rename return_to_top_level. Update
3407 * utils.c (error_stream, internal_verror, quit): Ditto.
3408 * top.c (throw_exception, catcher): Ditto.
3409 * sparclet-rom.c (sparclet_load): Ditto.
3410 * remote.c (interrupt_query, minitelnet): Ditto.
3411 * remote-sds.c (interrupt_query): Ditto.
3412 * remote-mips.c (mips_error, mips_kill): Ditto.
3413 * ocd.c (interrupt_query): Ditto.
3414 * monitor.c (monitor_interrupt_query): Ditto.
3415 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3416 * target.h: Update comment.
3418 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3420 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3422 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3423 default_double_format.
3424 * gdbarch.h, gdbarch.c: Re-generate.
3425 * findvar.c (floatformat_unknown): Delete variable definition.
3426 * doublest.h (floatformat_unknown): Delete variable declaration.
3428 2002-02-09 Jim Blandy <jimb@redhat.com>
3430 * stabsread.c (read_type): Add code to parse Sun's syntax for
3431 prototyped function types.
3433 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3435 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3436 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3438 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3440 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3441 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3442 now _initialize_xcoffsolib gets called again and overrides the
3443 commands from solib.c in a native configuration.
3445 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3447 * doublest.c (store_typed_floating): Don't try to return a value.
3450 2002-02-08 Jim Blandy <jimb@redhat.com>
3452 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3453 is prototyped and has no arguments, print its argument list as
3456 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3458 * MAINTAINERS (write-after-approval): Add myself.
3459 (paper-trail): I've escaped!
3461 2002-02-08 Christopher Faylor <cgf@redhat.com>
3463 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3465 (_initialize_check_for_gdb_ini): Ditto.
3467 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3469 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3470 xaprintf -> xasprintf.
3472 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3474 * win32-nat.c: Remove use of printf and sprintf functions.
3476 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3478 * arm-tdep.c (arm_frame_chain_valid): Make static.
3479 (arm_push_arguments): Likewise.
3480 (arm_gdbarch_init): New function.
3481 (_initialize_arm_tdep): Call it.
3482 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3483 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3484 (FRAME_CHAIN_VALID): Delete.
3485 (arm_frame_chain_valid): Delete declaration.
3486 (PUSH_ARGUMENTS): Delete.
3487 (arm_push_arguments): Delete declaration.
3488 (CALL_DUMMY_P): Delete.
3490 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3491 Corinna Vinschen <vinschen@redhat.com>
3493 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3494 on builtin float types.
3496 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3498 * utils.c: Include <curses.h> before "bfd.h".
3499 * tui/tui-hooks.c: Likewise.
3500 * tui/tui.c: Likewise.
3501 * tui/tuiCommand.c: Likewise.
3502 * tui/tuiData.c: Likewise.
3503 * tui/tuiDataWin.c: Likewise.
3504 * tui/tuiDisassem.c: Likewise.
3505 * tui/tuiGeneralWin.c: Likewise.
3506 * tui/tuiIO.c: Likewise.
3507 * tui/tuiLayout.c: Likewise.
3508 * tui/tuiRegs.c: Likewise.
3509 * tui/tuiSource.c: Likewise.
3510 * tui/tuiSourceWin.c: Likewise.
3511 * tui/tuiStack.c: Likewise.
3512 * tui/tuiWin.c: Likewise.
3514 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3516 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3517 to include space for pseudoregs as well. Update loops accordingly.
3518 (sh_fp_frame_init_saved_regs): Ditto.
3519 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3521 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3523 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3524 Add Richard Earnshaw to Arm maintainers.
3526 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3528 * defs.h (warning_begin): Delete declaration.
3530 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3533 2002-02-07 Michael Snyder <msnyder@redhat.com>
3535 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3536 Logic bug, remove misplaced else.
3538 2002-02-07 Klee Dienes <klee@apple.com>
3540 * fork-inferior.c (fork_inferior): Add '!' to the list of
3541 characters that need to be quoted when building a string for the
3542 shell. Quote '!' specifically with a backslash, since CSH chokes
3543 when trying to evaluate "str!str".
3545 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3547 * rdi-share/host.h: Only provide a typedef for bool if it is not
3550 2002-02-04 Michael Snyder <msnyder@redhat.com>
3552 * breakpoint.h (enum bptype): Add new overlay event bp type.
3553 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3555 * breakpoint.c (create_internal_breakpoint): New function.
3556 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3557 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3558 (create_thread_event_breakpoint): Ditto.
3559 (create_solib_event_breakpoint): Ditto.
3560 (create_overlay_event_breakpoint): New function.
3561 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3562 (update_breakpoints_after_exec): Delete and re-initialize
3563 overlay event breakpoints after an exec. Add FIXME comment
3564 about longjmp breakpoint.
3565 (print_it_typical): Ignore overlay event breakpoints.
3566 (print_one_breakpoint): Ditto.
3568 (bpstat_what): Do not stop for overlay event breakpoints.
3569 (delete_breakpoint): Don't delete overlay event breakpoints.
3570 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3571 (breakpoint_re_set): Re-create overlay event breakpoint.
3573 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3574 (overlay_manual_command): Disable overlay breakpoints.
3575 (overlay_off_command): Disable overlay breakpoints.
3577 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3579 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3580 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3581 to here from config/tm-arm.h.
3582 (coff_sym_is_thumb): Make static.
3583 (arm_elf_make_msymbol_special): New function.
3584 (arm_coff_make_msymbol_special): New function.
3585 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3586 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3587 (coff_sym_is_thumb): Delete declaration.
3588 (arm_elf_make_msymbol_special): Declare.
3589 (arm_coff_make_msymbol_special): Declare.
3590 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3591 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3593 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3595 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3597 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3599 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3600 * gdbarch.c gdbarch.h: Regenerate.
3601 * arch-utils.c (default_print_float_info): New function.
3602 * arch-utils.h (default_print_float_info): Prototype it.
3603 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3604 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3605 (PRINT_FLOAT_INFO): Document it.
3607 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3608 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3609 (PRINT_FLOAT_INFO): Define.
3611 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3613 * win32-nat.c (_initialize_check_for_gdb_ini):
3614 Add typecast to sprintf argument to suppress a warning.
3616 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3618 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3619 to allow easier handling of pass state.
3620 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3621 that gives exception name and address.
3622 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3623 and set last_sig value to ourstatus->value.sig. Some missing
3625 (child_continue): Correctly report continue_status.
3626 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3627 TARGET_SIGNAL_0 (new default value).
3628 (child_resume): consider sig argument passed to decide if
3629 the exception should be passed to debuggee or not.
3631 2002-02-05 Michael Snyder <msnyder@redhat.com>
3633 * regcache.c (fetch_register): Call target_fetch_register
3634 only if we don't call FETCH_PSEUDO_REGISTER.
3635 (store_register): Call target_store_register only if we
3636 don't call STORE_PSEUDO_REGISTER.
3638 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3640 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3641 ELF_MAKE_MSYMBOL_SPECIAL.
3642 * gdbarch.c, gdbarch.h: Regenerate.
3643 * arch-utils.c (default_make_msymbol_special): New function.
3644 * arch-utils.h (default_make_msymbol_special): Export.
3645 * elfread.c (elf_symtab_read): Compile use of
3646 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3648 * coffread.c (coff_symtab_read): Ditto, for
3649 COFF_MAKE_MSYMBOL_SPECIAL.
3651 2002-02-05 Jim Blandy <jimb@redhat.com>
3653 * solib-svr4.c (svr4_truncate_ptr): New function.
3654 (svr4_relocate_section_addresses): Do the address arithmetic with
3655 the appropriate truncation for target addresses, even when
3656 CORE_ADDR is larger than a target address.
3658 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3660 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3663 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3665 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3668 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3670 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3672 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3674 * gdbserver/linux-low.c: Remove unused include files.
3676 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3678 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3679 (read_inferior_memory): Use it.
3680 (write_inferior_memory): Likewise.
3682 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3684 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3685 grubbing through sys_errlist.
3687 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3689 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3691 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3692 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3694 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3696 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3697 (do_sfunc, set_cmd_sfunc): New functions.
3699 * command.h (struct cmd_list_element): Add field func.
3700 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3701 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3702 * cli/cli-decode.h: Ditto.
3704 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3705 (help_all, help_cmd_list): Ditto.
3706 (find_cmd, complete_on_cmdlist): Ditto.
3707 * top.c (execute_command): Ditto.
3709 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3712 * infcmd.c (notice_args_read): Fix function signature.
3714 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3715 * cli/cli-decode.c (add_set_cmd): Ditto.
3716 * utils.c (initialize_utils): Ditto.
3717 * maint.c (_initialize_maint_cmds): Ditto.
3718 * infrun.c (_initialize_infrun): Ditto.
3719 * demangle.c (_initialize_demangler): Ditto.
3720 * remote.c (add_packet_config_cmd): Ditto.
3721 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3722 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3723 * proc-api.c (_initialize_proc_api): Ditto.
3724 * kod.c (_initialize_kod): Ditto.
3725 * valprint.c (_initialize_valprint): Ditto.
3726 * top.c (init_main): Ditto.
3727 * infcmd.c (_initialize_infcmd): Ditto.
3728 * corefile.c (_initialize_core): Ditto.
3729 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3730 * arch-utils.c (initialize_current_architecture): Ditto.
3731 (_initialize_gdbarch_utils): Ditto.
3732 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3734 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3735 * wince.c (_initialize_inftarg): Ditto.
3736 * symfile.c (_initialize_symfile): Ditto.
3737 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3738 * language.c (_initialize_language): Ditto.
3739 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3741 2002-02-04 Michael Snyder <msnyder@redhat.com>
3743 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3745 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3747 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3748 Add rules for building the register data files.
3750 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3752 * regformats/regdat.sh: Add braces to the definition of
3753 expedite_regs_${arch}.
3755 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3757 * regformats/regdef.h (struct reg): Add comment describing the
3758 requirements for offset and size fields.
3760 2002-02-04 Andreas Schwab <schwab@suse.de>
3762 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3763 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3765 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3767 * gdbarch.sh (copyright): Update years in generated header.
3768 (SMASH_TEXT_ADDRESS): Add rule.
3769 * gdbarch.h, gdbarch.c: Re-generate.
3770 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3771 * dbxread.c: Likewise.
3772 * dwarfread.c: Likewise.
3773 * elfread.c: Likewise.
3774 * somread.c: Likewise.
3776 * arm-tdep.c (arm_smash_text_address): New function.
3777 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3779 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3781 Add support for hardware watchpoints on win32 native.
3782 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3783 CONTEXT_DEBUG_REGISTERS.
3784 (dr variable): New variable. Static array containing a local copy
3786 (debug_registers_changed): New variable. Reflects when debug registers
3787 are changed and need to be written to inferior.
3788 (debug_registers_used): New variable. Reflects when any debug register
3789 was set, used when new threads are created.
3790 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3792 (thread_rec): Set dr array if id is the thread of current_event .
3793 (child_continue, child_resume): Change the debug registers for all
3794 threads if debug_registers_changed.
3795 (child_add_thread): Change the debug registers if debug_registers_used.
3796 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3797 Link nm.h to new nm-cygwin.h file.
3798 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3799 of hardware registers.
3801 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3803 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3804 Restore behavour broken by 2002-01-20 Andrew Cagney
3805 <ac131313@redhat.com> IEEE_FLOAT removal.
3807 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3809 * c-valprint.c (c_val_print): Pass a proper valaddr to
3810 cp_print_class_method.
3811 * valops.c (search_struct_method): If there is only one method
3812 and args is NULL, return that method.
3814 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3816 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3817 accessing tag_name directly.
3819 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3821 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3822 of accessing tag_name directly.
3824 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3827 * gdbtypes.c (replace_type): New function.
3828 * gdbtypes.h (replace_type): Add prototype.
3829 * stabsread.c (read_type): Use replace_type.
3831 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3833 * Makefile.in (memattr.o): Add missing dependencies rule.
3835 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3837 * breakpoint.c (break_at_finish_command): Really export.
3838 (break_at_finish_at_depth_command): Ditto.
3839 (tbreak_at_finish_command): Ditto.
3840 * hppa-tdep.c: Include completer.h.
3841 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3842 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3844 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3846 * utils.c (do_write): New function.
3847 (error_stream): Rewrite combining the code from error_begin and
3849 (verror): Rewrite using error_stream.
3850 (error_begin): Delete function.
3852 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3854 * utils.c (error_begin): Make static.
3855 * defs.h (error_begin): Delete declaration.
3857 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3858 (decode_line_1): Use cplusplus_error instead of error_begin,
3859 cplusplus_hint and return_to_top_level.
3860 * coffread.c (coff_symfile_read): Use error instead of error_begin
3861 and return_to_top_level.
3862 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3864 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3866 * language.h (type_error, range_error): Make string parameter
3868 * language.c (warning_pre_print): Delete extern declaration.
3869 * dwarfread.c (warning_pre_print): Ditto.
3870 * language.c (type_error, range_error): Rewrite to use verror and
3871 vwarning instead of warning_begin.
3873 2002-02-01 Michael Snyder <msnyder@redhat.com>
3875 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3876 (set_ignore_count): Move misplaced comment back where it belongs.
3878 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3880 * command.h (NO_FUNCTION): Delete macro.
3881 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3882 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3883 * tracepoint.c (_initialize_tracepoint): Ditto.
3884 * cli/cli-decode.c (add_set_cmd): Ditto.
3885 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3887 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3889 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3890 Update ``this'' pointer when calling virtual functions.
3892 2002-02-01 Michael Snyder <msnyder@redhat.com>
3894 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3895 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3897 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3899 * regformats/reg-arm.dat: New file.
3900 * regformats/reg-i386.dat: New file.
3901 * regformats/reg-ia64.dat: New file.
3902 * regformats/reg-m68k.dat: New file.
3903 * regformats/reg-mips.dat: New file.
3904 * regformats/reg-ppc.dat: New file.
3905 * regformats/reg-sh.dat: New file.
3906 * regformats/regdef.h: New file.
3907 * regformats/regdat.sh: New file.
3909 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3911 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3912 (arm_frame_args_address, arm_frame_locals_address): New functions.
3913 (arm_frame_num_args): New function.
3914 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3915 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3916 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3918 2002-01-31 Michael Snyder <msnyder@redhat.com>
3920 * breakpoint.c (break_at_finish_command): Export.
3921 (break_at_finish_at_depth_command): Export.
3922 (tbreak_at_finish_command): Export.
3923 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3924 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3925 "tbreak" commands, which are HPPA specific.
3927 * printcmd.c (disassemble_command): Remove an ancient
3928 artifact of an old merge.
3930 * symfile.h (enum overlay_debugging_state):
3931 Define enum constant values for overlay mode.
3932 * symfile.c (overlay_debugging): Use enums instead of literals.
3933 (overlay_is_mapped, overlay_auto_command,
3934 overlay_manual_command): Ditto.
3936 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3937 breakpoint_here_p, breakpoint_inserted_here_p,
3938 breakpoint_thread_match, bpstat_stop_status,
3939 describe_other_breakpoints, check_duplicates, clear_command):
3940 Coding standard fixes.
3942 * target.c (target_xfer_memory): Add spaces, coding standard.
3943 (do_xfer_memory): Add missing line to trust-readonly
3944 code: check bfd SEC_READONLY flag for section.
3946 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3948 * PROBLEMS: Fix typo, 5.1->5.1.1.
3950 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3952 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3953 data symbols, since we search based on textlow and texthigh.
3954 (find_pc_sect_symtab): Likewise.
3956 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3958 * defs.h (vwarning): Declare.
3959 * utils.c (vwarning): New function.
3960 (warning): Call vwarning.
3961 (warning_begin): Delete function.
3963 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3964 the warning message.
3965 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3968 2002-01-30 Michael Snyder <msnyder@redhat.com>
3970 * NEWS: Mention "set trust-readonly-sections" command.
3971 Mention generate-core-file command.
3973 2002-01-15 Michael Snyder <msnyder@redhat.com>
3975 * target.c: New command, "set trust-readonly-sections on".
3976 (do_xfer_memory): Honor the suggestion to trust readonly sections
3977 by reading them from the object file instead of from the target.
3978 (initialize_targets): Register command "set trust-readonly-sections".
3980 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3982 * parse.c (target_map_name_to_register): Simplify, search regs and
3983 pseudo-regs using a single loop.
3985 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3987 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3989 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3991 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3992 * config/i386/i386v42mp.mh: Add i387-nat.o .
3993 * i386v4-nat.c: Include i387-nat.h.
3994 (supply_fpregset): Use i387_supply_fsave.
3995 (fill_fpregset): Use i387_fill_fsave.
3997 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3999 * arm-tdep.c (arm_call_dummy_words): Define.
4000 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4001 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4002 (CALL_DUMMY_WORDS): Define.
4003 (arm_call_dummy_words): Declare.
4004 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4005 (arm_linux_call_dummy_words): Declare.
4007 2002-01-30 Andreas Schwab <schwab@suse.de>
4009 * m68klinux-nat.c: Fix last change to use regcache_collect
4010 instead of referencing registers[] directly.
4012 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4014 * parse.c (target_map_name_to_register): Delete code wrapped in
4015 #ifdef REGISTER_NAME_ALIAS_HOOK.
4017 2002-01-28 Michael Snyder <msnyder@redhat.com>
4019 * regcache.c (legacy_read_register_gen): Need to be able to
4020 read pseudo-register as well as real register.
4021 (legacy_write_register_gen): Ditto.
4023 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4025 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4026 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4027 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4028 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4029 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4030 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4031 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4032 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4033 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4034 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4035 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4036 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4037 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4038 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4039 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4040 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4041 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4042 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4043 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4044 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4046 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4048 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4049 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4050 (initialize_current_architecture): Update target_byte_order using
4051 information from BFD.
4052 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4053 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4055 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4057 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4058 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4060 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4061 #ifdef INVALID_FLOAT.
4062 * infcmd.c (do_registers_info): Ditto.
4063 * values.c (unpack_double): Ditto. Add comment.
4065 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4066 already commented out.
4068 2002-01-26 Andreas Schwab <schwab@suse.de>
4070 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4071 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4072 registers and add support for PTRACE_GETREGS.
4074 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4076 GDB 5.1.1 released from 5.1 branch.
4077 * NEWS: Add 5.1.1 news.
4078 * README: Sync with 5.1 branch.
4080 2002-01-23 Fred Fish <fnf@redhat.com>
4082 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4083 stabstring on initial malloc. Reallocing will copy it for us,
4086 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4088 * Makefile.in (hpread_h): Delete.
4089 (HFILES_NO_SRCDIR): Remove hpread.h.
4090 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4091 (hpread.o): Update dependencies.
4092 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4094 * hp-psymtab-read.c: Remove file.
4095 * hp-symtab-read.c: Remove file.
4096 * hpread.h: Remove file.
4098 * hpread.c: Merge all contents of hp-psymtab-read.c,
4099 hp-symtab-read.c and hpread.h into this file, as it was prior to
4102 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4103 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4104 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4105 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4107 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4109 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4110 fill_gregset): Call gdbarch_tdep() just once, assign result to
4111 variable and use that, instead of calling the function several
4114 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4116 * configure.host: Accept sparcv9 as alias for sparc64.
4117 * configure.tgt: Likewise.
4119 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4121 * solib-aix5.c (build_so_list_from_mapfile)
4122 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4123 arguments is not reversed.
4124 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4125 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4127 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4129 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4130 modified version of obsolete sh_fetch_pseudo_register.
4131 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4132 (sh4_register_read): New function.
4133 (sh_pseudo_register_write): New function. Renamed and modified
4134 version of obsolete sh_store_pseudo_register.
4135 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4136 (sh4_register_write): New function.
4137 (sh_gdbarch_init): Remove setting of gdbarch function
4138 fetch_pseudo_register and store_pseudo_register. Remove setting of
4139 register_convert_to_raw, register_convert_to_virtual,
4140 register_convertible.
4141 (sh_sh4_register_convertible): Delete. No longer needed. All is
4142 taken care by architecture specific functions
4143 register_read/register_write.
4144 (sh_sh4_register_convert_to_virtual): Make static.
4145 (sh_sh4_register_convert_to_raw): Ditto.
4147 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4149 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4150 (floatformat_is_nan, floatformat_mantissa): Ditto.
4152 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4153 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4154 builtin_type_ieee_double_little,
4155 builtin_type_ieee_double_littlebyte_bigword,
4156 builtin_type_m68881_ext, builtin_type_i960_ext,
4157 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4158 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4159 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4160 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4162 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4164 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4165 parameter. Set frameless flag if it exists and depended of
4166 whether the scanned function is frameless or not.
4167 (xstormy16_skip_prologue): If function is frameless, return
4168 result of xstormy16_scan_prologue().
4169 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4172 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4174 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4175 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4176 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4177 sh_sh4_register_byte, sh_sh4_register_raw_size,
4178 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4179 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4180 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4181 sh_store_pseudo_register, sh_do_pseudo_register): Call
4182 gdbarch_tdep() just once, assign result to variable and use that,
4183 instead of calling the function several times.
4185 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4187 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4188 macros instead of LAST_FPU_CTRL_REGNUM.
4189 (store_register): Likewise.
4191 2002-01-21 Jim Blandy <jimb@redhat.com>
4193 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4194 is up-to-date before running the program, not just when a program
4197 2002-01-21 Fred Fish <fnf@redhat.com>
4199 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4200 when we have found all instructions we are looking for.
4202 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4204 * arm-tdep.c (arm_register_name): New function.
4205 (arm_registers_names): Make static.
4206 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4207 (arm_register_name): Declare.
4208 (REGISTER_NAME): Use it.
4210 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4211 Kevin Buettner <kevinb@redhat.com>
4213 Convert arm targets to new FRAME interface.
4214 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4215 (arm_frame_find_save_regs): Delete.
4216 (arm_frame_init_saved_regs): New.
4217 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4218 Allocate extra_info as required. Convert all uses of fsr.regs
4219 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4221 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4222 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4223 (check_prologue_cache, save_prologue_cache): Likewise.
4224 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4225 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4226 (FRAME_FIND_SAVED_REGS): Delete.
4227 (arm_frame_find_saved_regs): Delete prototype.
4228 (arm_frame_init_saved_regs): New prototype.
4229 (FRAME_INIT_SAVED_REGS): Define.
4231 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4233 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4235 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4237 From Jeff Law <law@redhat.com>:
4238 * infttrace.c: Include <sys/pstat.h>.
4239 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4240 exec file if the ttrace equivalent fails.
4242 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4244 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4245 (closeLogFile): Ditto.
4247 2002-01-20 Michael Chastain <mec@shout.net>
4249 * top.c (print_gdb_version): Bump copyright year to 2002.
4251 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4253 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4254 Zannoni and Eli Zaretskii.
4256 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4258 * buildsym.c: Update copyright years.
4259 * c-typeprint.c: Likewise.
4260 * dwarf2read.c: Likewise.
4261 * f-typeprint.c: Likewise.
4262 * gdbtypes.c: Likewise.
4263 * gdbtypes.h: Likewise.
4264 * hp-symtab-read.c: Likewise.
4265 * hpread.c: Likewise.
4266 * mdebugread.c: Likewise.
4267 * p-typeprint.c: Likewise.
4269 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4271 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4272 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4273 byte-order selectable.
4274 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4275 * arch-utils.c: Ditto.
4276 (set_endian): Ditto.
4277 (set_endian_from_file): Ditto.
4278 * gdbserver/low-sim.c (create_inferior): Ditto.
4279 * gdbarch.sh: Ditto.
4280 * gdbarch.h: Re-generate.
4281 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4282 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4283 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4284 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4285 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4286 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4287 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4288 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4290 * config/mips/tm-wince.h: Remove #undef of macro
4291 TARGET_BYTE_ORDER_SELECTABLE.
4292 * config/sh/tm-wince.h: Ditto.
4294 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4296 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4297 member function fields. Add accessor macro
4298 TYPE_FN_FIELD_ARTIFICIAL.
4299 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4300 * c-typeprint.c (c_type_print_base): Skip artificial member
4303 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4305 * f-typeprint.c: Delete unused function f_type_print_args.
4306 * p-typeprint.c: Delete unused function pascal_type_print_args.
4308 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4310 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4311 comment. Add ``artificial'' to ``union field_location''.
4313 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4315 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4316 * mdebugread.c (parse_symbol): Likewise.
4317 * stabsread.c (define_symbol): Likewise.
4318 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4319 initializing TYPE_FIELD_BITPOS to n (obsolete).
4320 (hpread_doc_function_type): Likewise.
4321 * hpread.c (hpread_function_type): Likewise.
4323 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4325 * configure.in (host_makefile_frag): Only require a host makefile
4326 fragment when a native build.
4327 * configure: Re-generate.
4329 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4331 * doublest.h (floatformat_from_type): Declare.
4332 * doublest.c (floatformat_from_type): New function.
4333 (convert_typed_floating): Use.
4335 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4336 call to function floatformat_from_type.
4338 * gdbarch.sh (IEEE_FLOAT): Delete.
4339 * gdbarch.h, gdbarch.c: Re-generate.
4340 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4341 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4342 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4343 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4344 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4345 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4346 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4347 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4348 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4349 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4350 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4351 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4353 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4354 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4355 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4356 * sh-tdep.c (sh_gdbarch_init): Ditto.
4357 * mips-tdep.c (mips_gdbarch_init): Ditto.
4358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4359 * cris-tdep.c (cris_gdbarch_init): Ditto.
4361 2002-01-20 Jiri Smid <smid@suse.cz>
4363 * configure.host, configure.tgt: Support x86-64.
4364 * NEWS: Note new target x86-64.
4366 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4367 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4368 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4369 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4370 x86-64-linux-nat.o): Fix dependencies.
4372 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4374 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4375 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4376 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4377 * config/sparc/xm-sun4os4.h: Delete file.
4378 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4380 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4382 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4383 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4384 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4385 * config/i386/i386lynx.mh (XM_FILE): Delete.
4386 * config/rs6000/xm-rs6000ly.h: Delete file.
4387 * config/sparc/xm-sparclynx.h: Delete file.
4388 * config/m68k/xm-m68klynx.h: Delete file.
4389 * config/i386/xm-i386lynx.h: Delete file.
4390 * config/xm-lynx.h: Delete file.
4391 * config/djgpp/fnchange.lst: Update.
4393 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4395 * alpha-tdep.c (alpha_register_byte): New function.
4396 (alpha_register_raw_size): Ditto.
4397 (alpha_register_virtual_size): Ditto.
4398 (alpha_skip_prologue_internal): Renamed from
4399 alpha_skip_prologue.
4400 (alpha_skip_prologue): New version that calls
4401 alpha_skip_prologue_internal.
4402 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4403 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4404 second argument from alpha_skip_prologue.
4405 (REGISTER_BYTE): Use alpha_register_byte.
4406 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4407 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4408 (FRAMELESS_FUNCTION_INVOCATION): Use
4409 generic_frameless_function_invocation_not.
4410 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4411 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4413 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4415 * config/mips/xm-news-mips.h: Delete file.
4416 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4418 * config/m88k/xm-m88k.h: Delete file.
4419 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4420 * config/m88k/xm-delta88v4.h: Ditto.
4421 * config/m88k/xm-delta88.h: Ditto.
4423 * config/alpha/xm-fbsd.h: Delete file.
4424 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4426 * config/sparc/xm-sparc.h: Delete file.
4427 * Makefile.in (xm-sun4os4.h): Delete dependency.
4428 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4429 * config/sparc/xm-sun4os4.h: Ditto.
4430 * config/sparc/xm-linux.h: Ditto.
4432 * config/i386/xm-windows.h: Delete file.
4434 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4436 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4437 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4439 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4441 * alpha-tdep.c (alpha_call_dummy_words): New.
4442 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4443 (CALL_DUMMY_P): Define.
4444 (CALL_DUMMY_WORDS): Define.
4445 (SIZEOF_CALL_DUMMY_WORDS): Define.
4447 2002-01-19 Per Bothner <per@bothner.com>
4449 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4450 isn't NULL, which can happen with some gcj-3.x-produced code.
4452 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4454 * alpha-tdep.c (alpha_register_virtual_type): New function.
4455 (alpha_init_frame_pc_first): Ditto.
4456 (alpha_fix_call_dummy): Ditto.
4457 (alpha_store_struct_return): Ditto.
4458 (alpha_extract_struct_value_address): Ditto.
4459 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4460 alpha_register_virtual_type.
4461 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4462 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4463 alpha_extract_struct_value_address.
4464 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4465 (INIT_FRAME_PC): Use init_frame_pc_noop.
4466 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4468 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4470 * i386gnu-nat.c: Include "i386-tdep.h".
4471 (fetch_fpregs): Simplify code dealing with uninitialized floating
4472 point states such that it doesn't require FP7_REGNUM.
4474 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4476 * alpha-tdep.c (frame_extra_info): New.
4477 (alpha_find_saved_regs): Make static. Use
4479 (alpha_frame_init_saved_regs): New function.
4480 (alpha_frame_saved_pc): Use frame->extra_info.
4481 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4482 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4483 (init_extra_frame_info): Rename to...
4484 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4485 (alpha_print_extra_frame_info): New function.
4486 (alpha_frame_locals_address): Ditto.
4487 (alpha_frame_args_address): Ditto.
4488 (alpha_pop_frame): Use frame->extra_info.
4489 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4490 alpha_frame_args_address.
4491 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4492 (alpha_find_saved_regs): Remove prototype.
4493 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4494 (EXTRA_FRAME_INFO): Remove.
4495 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4496 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4498 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4500 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4501 (alpha_cannot_fetch_register): Ditto.
4502 (alpha_cannot_store_register): Ditto.
4503 (alpha_register_convertible): Ditto.
4504 (alpha_use_struct_convention): Ditto.
4505 * config/alpha/tm-alpha.h: Update copyright years.
4506 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4507 (INNER_THAN): Use core_addr_lessthan.
4508 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4509 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4510 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4511 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4512 (FRAME_CHAIN): Remove unnecessary cast.
4514 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4516 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4519 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4521 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4522 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4523 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4524 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4525 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4526 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4527 * x86-64-linux-nat.c: Ditto.
4529 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4531 * alpha-tdep.c (alpha_register_name): New function.
4532 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4533 (REGISTER_NAME): Define.
4535 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4537 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4539 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4541 * alpha-tdep.c: Update copyright years.
4542 (alpha_next_pc): New function.
4543 (alpha_software_single_step): Ditto.
4544 * config/alpha/tm-alpha.h: Add prototype for
4545 alpha_software_single_step.
4547 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4549 * alphabsd-nat.c: Update copyright years.
4550 (fill_gregset): Use regcache_collect.
4551 (fill_fpregset): Likewise.
4552 (fetch_inferior_registers): Only fetch integer registers
4553 if requested to do so.
4554 (store_inferior_registers): Only store integer registers
4555 if requested to do so.
4557 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4559 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4560 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4561 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4562 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4563 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4564 * config/arm/linux.mh (XDEPFILES): Delete.
4565 * config/arm/nbsd.mh (XDEPFILES): Delete.
4566 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4567 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4568 * config/i386/i386m3.mh (XDEPFILES): Delete.
4569 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4570 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4571 * config/i386/fbsd.mh (XDEPFILES): Delete.
4572 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4573 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4574 * config/i386/i386v4.mh (XDEPFILES): Delete.
4575 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4576 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4577 * config/i386/i386aix.mh (XDEPFILES): Delete.
4578 * config/i386/go32.mh (XDEPFILES): Delete.
4579 * config/i386/cygwin.mh (XDEPFILES): Delete.
4580 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4581 * config/i386/i386mach.mh (XDEPFILES): Delete.
4582 * config/i386/i386v32.mh (XDEPFILES): Delete.
4583 * config/i386/linux.mh (XDEPFILES): Delete.
4584 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4585 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4586 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4587 * config/i386/i386sco.mh (XDEPFILES): Delete.
4588 * config/i386/i386v.mh (XDEPFILES): Delete.
4589 * config/i386/nbsd.mh (XDEPFILES): Delete.
4590 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4591 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4592 * config/i386/symmetry.mh (XDEPFILES): Delete.
4593 * config/i386/obsd.mh (XDEPFILES): Delete.
4594 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4595 * config/ia64/linux.mh (XDEPFILES): Delete.
4596 * config/ia64/aix.mh (XDEPFILES): Delete.
4597 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4598 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4599 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4600 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4601 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4602 * config/m68k/linux.mh (XDEPFILES): Delete.
4603 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4604 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4605 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4606 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4607 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4608 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4609 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4610 * config/m88k/delta88.mh (XDEPFILES): Delete.
4611 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4612 * config/m88k/m88k.mh (XDEPFILES): Delete.
4613 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4614 * config/mips/linux.mh (XDEPFILES): Delete.
4615 * config/mips/irix6.mh (XDEPFILES): Delete.
4616 * config/mips/irix5.mh (XDEPFILES): Delete.
4617 * config/mips/irix4.mh (XDEPFILES): Delete.
4618 * config/mips/irix3.mh (XDEPFILES): Delete.
4619 * config/mips/decstation.mh (XDEPFILES): Delete.
4620 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4621 (NATDEPFILES): Move core-aout.o to here.
4622 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4623 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4624 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4625 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4626 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4627 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4628 * config/pa/hpux11.mh (XDEPFILES): Delete.
4629 * config/powerpc/aix.mh (XDEPFILES): Delete.
4630 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4631 * config/powerpc/linux.mh (XDEPFILES): Delete.
4632 * config/romp/rtbsd.mh: Rename XDEPFILES.
4633 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4634 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4635 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4636 * config/s390/s390.mh (XDEPFILES): Delete.
4637 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4638 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4639 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4640 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4641 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4642 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4643 * config/sparc/linux.mh (XDEPFILES): Delete.
4644 * config/vax/vaxult.mh (XDEPFILES): Delete.
4645 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4646 * Makefile.in (DEPFILES): Remove XDEPFILES.
4648 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4650 * utils.c (internal_verror): Fix comments, default is yes not no.
4651 Update queries to match. Default to quit and dump core.
4653 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4655 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4657 * defs.h, event-top.c, gdbcmd.h: Ditto.
4658 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4659 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4660 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4661 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4662 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4663 * mi/mi-main.c:Ditto.
4665 * stack.c, symfile.c: Update copyright.
4667 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4669 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4670 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4671 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4672 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4674 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4676 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4677 * gdbserver/low-lynx.c (myattach): Likewise.
4678 * gdbserver/low-nbsd.c (myattach): Likewise.
4679 * gdbserver/low-sim.c (myattach): Likewise.
4680 * gdbserver/low-sparc.c (myattach): Likewise.
4681 * gdbserver/low-sun3.c (myattach): Likewise.
4683 * gdbserver/low-linux.c (myattach): New function.
4685 * gdbserver/server.c (attach_inferior): New function.
4686 (main): Handle "--attach".
4688 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4690 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4693 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4695 * c-typeprint.c (is_type_conversion_operator): Add additional
4696 check for non-conversion operators.
4698 2002-01-15 Michael Snyder <msnyder@redhat.com>
4700 * linux-proc.c: Add "info proc" command, a la procfs.c.
4701 (read_mapping): New function, abstract and re-use code.
4702 (linux_find_memory_regions): Use new func read_mapping.
4703 (linux_info_proc_cmd): New function, implement "info proc".
4704 (_initialize_linux_proc): Add new command "info proc".
4706 2002-01-15 Michael Snyder <msnyder@redhat.com>
4708 * symfile.c (generic_load): Use bfd_map_over_sections method
4709 instead of manipulating bfd structure members directly.
4710 (add_section_size_callback): New function, bfd sections callback
4711 used by generic_load.
4712 (load_sections_callback): New function, bfd sections callback
4713 used by generic_load.
4715 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4717 [Based on work by Jim Blandy]
4718 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4719 (builtin_type_vec128): Export.
4720 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4722 (builtin_type_vec128): New builtin type for 128 bit vector
4724 (build_gdbtypes): Initialize builtin_type_v16qi and
4725 builtin_type_v8hi. Create the vec128 register builtin type
4727 (build_builtin_type_vec128): New function.
4728 (_initialize_gdbtypes): Register builtin_type_v16qi and
4729 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4730 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4731 AltiVec register to new builtin type.
4733 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4735 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4738 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4740 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4741 CLEAN_UP_REGISTER_VALUE.
4742 * regcache.c (supply_register): Update only call.
4744 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4746 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4747 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4748 a29k-*-vxworks* targets as obsolete.
4750 2002-01-14 Michael Snyder <msnyder@redhat.com>
4752 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4753 until we can resolve portability issues.
4754 * gregset.h: Remove references to fpxregs.
4755 * gcore.c (gcore_command): Initialize note_sec to NULL.
4757 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4759 * signals.c (target_signal_to_name): Rewrite. Only use
4760 signals[].name when in bounds and non-NULL.
4762 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4764 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4765 * signals.c (target_signal_to_name): Verify that SIG is within the
4766 bounds of the signals array.
4768 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4770 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4772 2002-01-13 Keith Seitz <keiths@redhat.com>
4774 * stack.c (print_frame_info_base): Print the frame's pc
4775 only if when print_frame_info_listing_hook is not defined.
4777 2002-01-13 Keith Seitz <keiths@redhat.com>
4779 * varobj.c (varobj_set_value): Make sure that there were no
4780 errors evaluating the object before attempting to set its
4782 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4783 so this offset adjustment is no longer necessary.
4784 (create_child): Don't set the error flag if the child is
4786 (value_of_child): If value_fetch_lazy fails, return NULL
4787 so that callers will be notified that an error occurred.
4788 (c_value_of_variable): Delay check of variable's validity
4789 until later. We actually want all structs and unions to have
4791 Do not return "???" for variables which could not be evaluated.
4792 This error condition must be returned to the caller so that it
4793 can get the error condition from gdb.
4794 (cplus_name_of_child): Adjust index for vptr before figuring
4795 out the name of the child.
4796 (cplus_value_of_child): If a child's (real) parent is not valid,
4797 don't even bother trying to give a value for it. Just return
4798 an error. Change all instances in this function.
4799 (cplus_type_of_child): If our parent is one of the "fake"
4800 parents, we need to get at the type of the real parent, and
4801 derive the child's true type using this information.
4803 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4805 From 2002-01-09 John Marshall <johnm@falch.net>:
4806 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4807 sources.redhat.com, and tweak some related URLs which had
4808 suffered from linkrot.
4810 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4813 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4814 structures passed in registers.
4816 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4818 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4819 white space which prevented compilation. Reported by DSK
4820 <dsk@student.unsw.edu.au>.
4822 2002-01-11 Michael Snyder <msnyder@redhat.com>
4824 * symfile.c (build_section_addr_info_from_section_tab):
4825 Use bfd access method instead of manipulating bfd directly.
4826 (syms_from_objfile): Ditto.
4827 (simple_overlay_update_1): Ditto.
4828 (simple_overlay_update): Ditto.
4829 (generic_load): Ditto.
4830 (overlay_unmapped_address): FIXME comment, bfd access methods.
4831 (sections_overlap): FIXME comment, bfd access methods.
4832 (pc_in_mapped_range): FIXME comment, bfd access methods.
4833 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4834 (section_is_mapped): FIXME comment, bfd access methods.
4835 (section_is_overlay): FIXME comment, bfd access methods.
4837 * symfile.c (generic_load): Whitespace and long line cleanups.
4838 Remove duplicate variable, change several local variables to
4839 more appropriate data types.
4840 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4842 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4845 * language.c (longest_local_hex_string_custom): Use phex_nz to
4846 convert NUM to a hex string.
4848 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4850 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4852 Update Copyright year.
4854 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4856 * language.c (longest_raw_hex_string): Delete unused function.
4858 2002-01-11 Petr Sorfa <petrs@caldera.com>
4860 * MAINTAINERS (write-after-approval): Add myself.
4861 * dwarf2read.c (read_tag_string_type): Handling of
4863 (read_tag_string_type): FORTRAN fix to prevent propagation of
4865 (set_cu_language): Handling of DW_LANG_Fortran95
4867 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4869 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4870 GETPID(inferior_ptid).
4871 (store_inferior_registers): Likewise.
4873 2002-01-10 Jason Merrill <jason@redhat.com>
4875 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4878 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4880 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4881 and bfd/elf32-sh-nbsd.c.
4883 2002-01-10 Michael Snyder <msnyder@redhat.com>
4885 * NEWS: Mention --pid and corefile/proc-id behavior change.
4887 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4888 * gcore.c: Include cli/cli-decode.h instead of command.h.
4890 * main.c (captured_main): Add new command line option "--pid".
4891 If the second command line argument (following the symbol-file)
4892 begins with a digit, try to attach to it before trying to open
4894 (print_gdb_help): Document the "--pid" argument.
4896 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4898 * completer.c (command_completer): New function.
4900 * completer.h <command_completer>: Add prototype.
4902 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4903 completer for the "help" command.
4905 2002-01-09 Jason Merrill <jason@redhat.com>
4907 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4909 2002-01-09 Michael Snyder <msnyder@redhat.com>
4911 * i386-linux-nat.c (fill_fpxregset): Make global.
4912 (store_fpxregset): Ditto.
4914 * gregset.h (gdb_fpxregset_t): Define.
4915 (supply_fpxregset): Prototype.
4916 (fill_fpxregset): Prototype.
4918 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4920 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4922 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4923 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4924 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4926 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4928 * MAINTAINERS: Update target maintainer rules so that any
4929 Maintainer can approve a tested patch for a maintenance-only
4932 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4934 * MAINTAINERS (write-after-approval): Add myself.
4936 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4939 2002-01-08 Michael Snyder <msnyder@redhat.com>
4941 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4942 real name of the executable, rather than the /proc name.
4944 2002-01-03 Michael Snyder <msnyder@redhat.com>
4946 Implement a "generate-core-file" command in gdb, save target state.
4947 * gcore.c: New file. Implement new command 'generate-core-file'.
4948 Save a corefile image of the current state of the inferior.
4949 * linux-proc.c: Add linux-specific code for saving corefiles.
4950 * target.h (struct target_ops): Add new target vectors for saving
4951 corefiles; to_find_memory_regions and to_make_corefile_notes.
4952 (target_find_memory_regions): New macro.
4953 (target_make_corefile_notes): New macro.
4954 * target.c (update_current_target): Inherit new target methods.
4955 (dummy_find_memory_regions): New place-holder method.
4956 (dummy_make_corefile_notes): New place-holder method.
4957 (init_dummy_target): Initialize new dummy target vectors.
4958 * exec.c (exec_set_find_memory_regions): New function.
4959 Allow the exec_ops vector for memory regions to be taken over.
4960 (exec_make_note_section): New function, target vector method.
4961 * defs.h (exec_set_find_memory_regions): Export prototype.
4962 * procfs.c (proc_find_memory_regions): New function, corefile method.
4963 (procfs_make_note_section): New function, corefile method.
4964 (init_procfs_ops): Set new target vector pointers.
4965 (find_memory_regions_callback): New function.
4966 (procfs_do_thread_registers): New function.
4967 (procfs_corefile_thread_callback): New function.
4968 * sol-thread.c (sol_find_memory_regions): New function.
4969 (sol_make_note_section): New function.
4970 (init_sol_thread_ops): Initialize new target vectors.
4971 * inftarg.c (inftarg_set_find_memory_regions): New function.
4972 Allow to_find_memory_regions vector to be taken over.
4973 (inftarg_set_make_corefile_notes): New function.
4974 Allow to_make_corefile_notes vector to be taken over.
4975 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4976 interface layer if not target_has_execution (may be a corefile).
4977 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4978 * config/sparc/sun4sol2.mh: Ditto.
4979 * config/alpha/alpha-linux.mh: Ditto.
4980 * config/arm/linux.mh: Ditto.
4981 * config/i386/x86-64linux.mh: Ditto.
4982 * config/ia64/linux.mh: Ditto.
4983 * config/m68k/linux.mh: Ditto.
4984 * config/mips/linux.mh: Ditto.
4985 * config/powerpc/linux.mh: Ditto.
4986 * config/sparc/linux.mh: Ditto.
4988 2002-01-07 Michael Snyder <msnyder@redhat.com>
4990 * arm-linux-nat.c: Remove references to regcache.c internal data
4991 (registers[] and register_valid[]).
4993 2002-01-07 Michael Snyder <msnyder@redhat.com>
4995 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4996 so that attaching to a pid will automatically read the process's
4997 symbol file and shlibs.
4998 * Makefile.in: Add rule for linux-proc.o.
4999 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5000 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5001 * config/arm/linux.mh: Ditto.
5002 * config/i386/linux.mh: Ditto.
5003 * config/i386/x86-64linux.mh: Ditto.
5004 * config/ia64/linux.mh: Ditto.
5005 * config/m68k/linux.mh: Ditto.
5006 * config/mips/linux.mh: Ditto.
5007 * config/powerpc/linux.mh: Ditto.
5008 * config/sparc/linux.mh: Ditto.
5010 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5012 * win32-nat.c: Add i386-tdep.h dependency.
5014 2002-01-07 Michael Snyder <msnyder@redhat.com>
5016 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5017 instead of bfd_get_arch_size. Don't bail out just because
5018 there's no exec_bfd.
5020 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5021 * p-valprint.c (pascal_object_print_value): Ditto.
5022 * somread.c (som_symtab_read): Ditto.
5023 * symfile.c (simple_free_overlay_region_table): Ditto.
5024 * valops.c (value_assign): Ditto.
5026 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5027 use tilde_expand and strerror for opening save-tracepoints file.
5029 * thread-db.c (thread_db_new_objfile): Indendation fix.
5031 * infptrace.c (GDB_MAX_ALLOCA): New define.
5032 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5033 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5034 can be overridden with whatever value is appropriate to the host).
5035 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5036 alloca to allocate potentially large buffer.
5037 * rs6000-nat.c (child_xfer_memory): Ditto.
5038 * symm-nat.c (child_xfer_memory): Ditto.
5039 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5041 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5043 From Nick Clifton <nickc@redhat.com>
5044 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5046 2002-01-07 Michael Snyder <msnyder@redhat.com>
5048 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5049 Don't use exec_bfd if it's NULL.
5051 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5053 * valops.c (value_arg_coerce): Fix formatting.
5055 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5057 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5060 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5062 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5063 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5064 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5065 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5066 z8k-coff have not been multi-arched. Update z8k-coff build
5069 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5071 * MAINTAINERS: Mark a29k target as obsolete.
5072 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5073 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5075 * NEWS: Note that a29k targets are obsolete.
5076 * a29k-tdep.c: Mark as obsolete.
5077 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5078 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5079 a29k-*-vxworks* targets as obsolete.
5080 * remote-adapt.c: Obsolete.
5081 * remote-eb.c: Obsolete.
5082 * remote-mm.c: Obsolete.
5083 * remote-udi.c: Obsolete.
5084 * config/a29k/a29k-udi.mt: Obsolete.
5085 * config/a29k/a29k.mt: Obsolete.
5086 * config/a29k/tm-a29k.h: Obsolete.
5087 * config/a29k/tm-vx29k.h: Obsolete.
5088 * config/a29k/vx29k.mt: Obsolete.
5090 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5092 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5093 with BFD_ENDIAN_BIG.
5095 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5097 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5098 * configure, config.in: Re-generate.
5099 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5100 * defs.h: Do not include <endian.h>.
5102 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5104 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5105 * config.in: Regenerate.
5106 * configure.in: Update copyright years.
5107 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5108 * configure: Regenerate.
5109 * i386bsd-nat.c: Update copyright years.
5110 (fill_gregset): Use regcache_collect.
5111 (fetch_inferior_registers): Only fetch integer registers
5112 if requested to do so. Add support for XMM registers
5113 using PT_GETXMMREGS.
5114 (store_inferior_registers): Only store integer registers
5115 if requested to do so. Add support for XMM registers
5116 using PT_SETXMMREGS.
5117 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5118 (store_inferior_registers): Remove.
5119 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5120 (fetch_elfcore_registers): New function.
5121 (i386nbsd_elfcore_fns): New.
5122 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5123 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5125 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5126 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5127 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5128 * config/i386/tm-nbsd.h: Update copyright years.
5129 (HAVE_SSE_REGS): Define.
5130 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5131 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5132 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5133 (SIGCONTEXT_PC_OFFSET): Remove.
5134 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5136 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5138 * configure.tgt: Remove powerpc-*-macos* target.
5139 * config/m68k/xm-mpw.h: Delete file.
5140 * config/xm-mpw.h: Delete file.
5141 * ser-mac.c: Delete file.
5142 * mpw-make.sed: Delete file.
5143 * mpw-config.in: Delete file.
5144 * mac-xdep.c: Delete file.
5145 * mac-gdb.r: Delete file.
5146 * mac-defs.h: Delete file.
5147 * mac-nat.c: Delete file.
5148 * config/powerpc/macos.mh: Delete file.
5149 * config/powerpc/macos.mt: Delete file.
5150 * config/powerpc/nm-macos.h: Delete file.
5151 * config/powerpc/tm-macos.h: Delete file.
5152 * source.c (openp, open_source_file): Remove obsolete code.
5153 * top.c (gdb_readline): Ditto.
5154 * utils.c (query): Ditto.
5155 * event-top.c (display_gdb_prompt): Ditto.
5156 * Makefile.in (ser-mac.o): Delete obsolete target.
5159 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5161 * defs.h (BIG_ENDIAN): Delete macro definition.
5162 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5163 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5164 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5165 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5166 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5167 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5168 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5169 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5170 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5171 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5172 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5173 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5174 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5175 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5176 * gdbarch.c: Re-generate.
5178 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5180 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5183 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5185 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5187 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5189 * value.h (value_ptr): Delete typedef.
5191 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5193 * i386nbsd-nat.c: Update copyright years.
5194 Include i386-tdep.h.
5196 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5198 * stabsread.c: Update copyright years.
5200 From Debashis Mahata <debashis.mahata@wipro.com>:
5201 (read_struct_fields): Deal with Sun C compiler erroneous stab
5202 output for structs and unions.
5205 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5207 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5210 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5212 * cp-abi.c: Fix whitespace.
5213 (baseclass_offset): New wrapper function.
5214 * cp-abi.h (baseclass_offset): Add prototype.
5215 (struct cp_abi_ops): Add baseclass_offset pointer.
5217 * valops.c (vb_match): Move to...
5218 * gnu-v2-abi.c (vb_match): here.
5219 * valops.c (baseclass_offset): Move to...
5220 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5222 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5224 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5225 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5226 * hpacc-abi.c (init_hpacc_ops): Likewise.
5228 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5230 * valops.c (find_overload_match): Accept obj as a
5231 reference parameter. Update it before returning.
5232 * value.h (find_overload_match): Update prototype.
5233 * eval.c (evaluate_subexp_standard): Pass object to
5234 find_overload_match by reference.
5236 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5238 * valarith.c: Replace value_ptr with struct value pointer. Remove
5239 register attribute from value declarations.
5242 * scm-lang.c (scm_lookup_name): Ditto.
5244 2002-01-03 Michael Snyder <msnyder@redhat.com>
5246 Abstract the functionality of iterating over mapped memory
5247 regions into a general purpose iterator function.
5248 * procfs.c (iterate_over_mappings): New function, general purpose
5249 iterator for memory sections.
5250 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5251 (solib_mappings_callback): New function, callback for above.
5252 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5253 (info_mappings_callback): New function, callback for above.
5255 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5257 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5259 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5260 * i386-tdep.c: Include "elf-bfd.h".
5261 (process_note_abi_tag_sections): New function.
5262 (i386_gdbarch_init): Add code to recognize various OS/ABI
5265 * maint.c (_initialize_maint_cmds): Add missing \ in
5268 For older changes see ChangeLog-2001
5274 version-control: never