1 2002-05-09 Michael Snyder <msnyder@redhat.com>
3 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7 (arm_skip_prologue): Ditto. Also make disassembly
8 order-independent by placing it in a loop.
10 2002-05-06 Michael Snyder <msnyder@redhat.com>
12 * stabsread.c (read_type): Add recognition for new attribute:
13 "@V;" means that an array type is actually a vector.
14 This is analogous to the vector flag that's been added to dwarf2.
16 2002-05-09 Mark Kettenis <kettenis@gnu.org>
18 * i386-tdep.h (i386_abi): New enum.
19 (struct gdbarch_tdep): Replace os_ident member with abi.
20 (i386_gdbarch_register_os_abi): New prototype.
21 * i386-tdep.c (i386_abi_names): New array.
22 (process_note_abi_tag_sections): Removed.
23 (process_note_sections): New function.
24 (i386_elf_abi_from_note, i386_elf_abi): New functions.
25 (struct i386_abi_handler): New struct.
26 (i386_abi_handler_list): New variable.
27 (i386_gdbarch_register_os_abi): New function.
28 (i386_gdbarch_init): Adapt for the changes given above.
30 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
32 * gregset.h: Say "GNU/Linux".
34 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
36 * gdbtypes.c : Add new builtin type for 64 bit vectors.
37 (build_gdbtypes): Build builtin_type_v2_float.
38 (_initialize_gdbtypes): Register new builtin type.
40 2002-05-08 Andrew Cagney <ac131313@redhat.com>
42 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
43 (clear_gdbarch_swap): New function.
44 (initialize_non_multiarch): Call.
45 (gdbarch_update_p): Before calling init(), swap out and clear the
46 existing architecture.
47 * gdbarch.c: Regenerate.
49 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
51 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
54 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
56 * sh-nbsd-nat.c: Rename to...
57 * shnbsd-nat.c: ...this.
58 * sh-nbsd-tdep.c: Rename to...
59 * shnbsd-tdep.c: ...this.
60 * sh-nbsd-tdep.h: Rename to...
61 * shnbsd-tdep.h: ...this.
62 * config/sh/nbsd.mh: Use shnbsd-nat.o.
63 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
65 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
67 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
68 concatenation for command help messages.
70 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
72 * NEWS: Note new sh*-*-netbsdelf* configuration.
73 * configure.host: Set gdb_host_cpu to sh for all sh*.
74 (sh*-*-netbsdelf*): New host.
75 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
76 (sh*-*-netbsdelf*): New target.
77 * sh-nbsd-nat.c: New file.
78 * sh-nbsd-tdep.c: New file.
79 * sh-nbsd-tdep.h: New file.
80 * config/sh/nbsd.mh: New file.
81 * config/sh/nbsd.mt: New file.
82 * config/sh/nm-nbsd.h: New file.
83 * config/sh/tm-nbsd.h: New file.
85 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
87 * sh-tdep.c (sh_osabi_names): Declare.
88 (process_note_abi_tag_sections): New function.
89 (get_elfosabi): Ditto.
90 (sh_gdbarch_register_os_abi): Ditto.
91 (sh_dump_tdep): Ditto.
92 _initialize_sh_tdep): Use gdbarch_register to register
93 sh_gdbarch_init and sh_dump_tdep.
94 * config/sh/tm-sh.h (sh_osabi): Declare.
95 (gdbarch_tdep): Add sh_osabi and osabi_name members.
97 2002-05-07 Andrew Cagney <ac131313@redhat.com>
99 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
100 (thumb_scan_prologue): Ditto.
101 (arm_find_callers_reg): Ditto.
102 (arm_frame_chain): Ditto.
103 (arm_init_extra_frame_info): Ditto.
104 (arm_frame_saved_pc): Ditto.
105 (arm_pop_frame): Ditto.
106 (arm_push_return_address): New function.
107 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
108 call_dummy_location, call_dummy_breakpoint_offset_p,
109 call_dummy_breakpoint_offset, call_dummy_p,
110 call_dummy_stack_adjust_p, call_dummy_words,
111 sizeof_call_dummy_words, call_dummy_start_offset,
112 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
113 call_dummy_address, push_return_address and push_dummy_frame for
114 generic dummy frames.
116 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
118 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
119 size computation for alloca.
120 (sh_fp_frame_init_saved_regs): Likewise.
122 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
124 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
125 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
126 * arm-tdep.c (arm_store_return_value): Use them.
127 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
128 * remote-rdp.c (remote_rdp_fetch_register): Use
129 ARM_MAX_REGISTER_RAW_SIZE.
130 (remote_rdp_store_register): Likewise.
132 2002-05-07 Michal Ludvig <mludvig@suse.cz>
134 * dwarf2cfi.c: Code cleanup, removed unused variables,
135 added default labels to switch {} statements.
136 * x86-64-tdep.c: Ditto.
137 * x86-64-linux-nat.c: Ditto.
139 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
141 * solib.h: Protect against multiple inclusion.
143 2002-05-06 Jim Blandy <jimb@redhat.com>
145 Separate the job of reading the line number info statement program
146 header (...expialidocious) out into its own function.
147 * dwarf2read.c (struct line_head, struct filenames, struct
148 directories): Replace with...
149 (struct line_header): New structure, containing the full
150 contents of the statement program header, including the
151 include directory and file name tables.
152 (read_file_scope): If we have line number info, instead of just
153 calling dwarf_decode_lines to do all the work, call
154 dwarf_decode_line_header first to get a `struct line_header'
155 containing the data in the statement program header, and then
156 pass that to dwarf_decode_lines, which will pick up where that
157 left off. Be sure to clean up the `struct line_header' object.
158 (dwarf_decode_line_header, free_line_header, add_include_dir,
159 add_file_name): New functions.
160 (dwarf_decode_lines): Move all the code to read the statement
161 program header into dwarf_decode_line_header. Take the line
162 header it built as the first argument, instead of the offset to
163 the compilation unit's line number info. Use the new `struct
164 line_header' type instead of the old structures. No need to do
165 cleanups here now, since we don't allocate anything.
166 (dwarf2_statement_list_fits_in_line_number_section,
167 dwarf2_line_header_too_long): New complaints.
169 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
171 * gdbtypes.c (init_vector_type): New function.
172 (build_builtin_type_vec128): Simplify the representation of SIMD
174 (build_gdbtypes): Initialize new builtin vector types.
175 (_initialize_gdbtypes): Register new vector types with gdbarch.
176 (builtin_type_v4_float, builtin_type_v4_int32,
177 builtin_type_v8_int16, builtin_type_v16_int8,
178 builtin_type_v2_int32, builtin_type_v4_int16,
179 builtin_type_v8_int8): New (renamed) SIMD types.
181 2002-05-06 Mark Kettenis <kettenis@gnu.org>
183 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
184 (i387_fill_fxsave): Likewise.
186 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
188 * alpha-tdep.c (alpha_extract_return_value): Don't use
189 non-constant array size in prototype.
191 2002-05-04 Andrew Cagney <ac131313@redhat.com>
193 From Brian Taylor <briant at model dot com>:
194 * ui-out.c (ui_out_field_core_addr): Use the function
195 longest_local_hex_string_custom'to format addresses > 32 bits
198 * ui-out.c (ui_out_field_core_addr): Update comment.
200 2002-05-04 Andrew Cagney <ac131313@redhat.com>
202 * stack.c (select_and_print_frame): Make static. Delete the
204 (func_command): Update call.
205 (select_frame_command): Delete code computing the frame level.
206 * frame.h (select_and_print_frame): Delete declaration.
208 2002-05-04 Andrew Cagney <ac131313@redhat.com>
210 * sparc-tdep.c (sparc_get_saved_register): Comment why
211 get_prev_frame call is safe.
213 2002-05-04 Andrew Cagney <ac131313@redhat.com>
215 * frame.h (select_frame): Delete level parameter.
216 * stack.c (select_frame): Update. Use frame_relative_level to
217 obtain the frame's level.
218 (select_and_print_frame): Update call.
219 (select_frame_command): Ditto.
220 (up_silently_base): Ditto.
221 (down_silently_base): Ditto.
222 * ocd.c (ocd_start_remote): Ditto.
223 * remote-rdp.c (remote_rdp_open): Ditto.
224 * remote-mips.c (mips_initialize): Ditto.
225 (common_open): Ditto.
226 * remote-e7000.c (e7000_start_remote): Ditto.
227 * m3-nat.c (select_thread): Ditto.
228 * hppa-tdep.c (child_get_current_exception_event): Ditto.
229 (child_get_current_exception_event): Ditto.
230 * varobj.c (varobj_create): Ditto.
231 (varobj_update): Ditto.
232 (c_value_of_root): Ditto.
233 * tracepoint.c (finish_tfind_command): Ditto.
234 * corelow.c (core_open): Ditto.
235 * arch-utils.c (generic_prepare_to_proceed): Ditto.
236 * thread.c (info_threads_command): Ditto.
237 (switch_to_thread): Ditto.
238 * infrun.c (normal_stop): Ditto.
239 (restore_selected_frame): Ditto.
240 (restore_inferior_status): Ditto.
241 * breakpoint.c (insert_breakpoints): Ditto.
242 (watchpoint_check): Ditto.
243 (bpstat_stop_status): Ditto.
244 (do_enable_breakpoint): Ditto.
245 * blockframe.c (flush_cached_frames): Ditto.
246 (reinit_frame_cache): Ditto.
248 2002-05-04 Andrew Cagney <ac131313@redhat.com>
250 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
253 2002-05-04 Jim Blandy <jimb@redhat.com>
255 * gdbtypes.c (replace_type): Doc fix.
257 2002-05-04 Andrew Cagney <ac131313@redhat.com>
259 * valprint.c (strcat_longest): Delete commented out function.
262 2002-05-04 Andrew Cagney <ac131313@redhat.com>
264 * MAINTAINERS: Mark a29k as deleted.
265 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
266 Move new configurations to the top.
267 * configure.tgt: Remove a29k.
268 * config/a29k/tm-vx29k.h: Delete.
269 * config/a29k/vx29k.mt: Delete.
270 * config/a29k/tm-a29k.h: Delete.
271 * config/a29k/a29k-udi.mt: Delete.
272 * config/a29k/a29k.mt: Delete.
273 * a29k-tdep.c: Delete.
274 * remote-udi.c: Delete.
275 * remote-mm.c: Delete.
276 * remote-eb.c: Delete.
277 * remote-adapt.c: Delete.
278 * Makefile.in: Remove obsolete code.
279 * gdbserver/Makefile.in: Ditto.
280 * config/s390/s390x.mt: Ditto.
281 * config/s390/s390.mt: Ditto.
282 * config/sparc/sparclynx.mh: Ditto.
283 * config/sparc/linux.mh: Ditto.
284 * config/pa/hppaosf.mh: Ditto.
285 * config/pa/hppabsd.mh: Ditto.
286 * config/ns32k/nbsd.mt: Ditto.
287 * config/mips/vr5000.mt: Ditto.
288 * config/m68k/sun3os4.mh: Ditto.
289 * config/m68k/nbsd.mt: Ditto.
290 * config/m68k/m68klynx.mh: Ditto.
291 * config/m32r/m32r.mt: Ditto.
292 * config/i386/x86-64linux.mt: Ditto.
293 * config/i386/nbsdelf.mt: Ditto.
294 * config/i386/nbsd.mt: Ditto.
295 * config/i386/i386lynx.mh: Ditto.
297 2002-05-04 Andrew Cagney <ac131313@redhat.com>
299 * target.c (debug_print_register): New function. Handle oversize
301 (debug_to_fetch_registers): Call.
302 (debug_to_store_registers): Call.
304 2002-05-03 Jim Blandy <jimb@redhat.com>
306 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
307 (read_type): Doc fix.
308 * gdbtypes.c (replace_type): Doc fix.
310 * stabsread.c (multiply_defined_struct): New complaint.
311 (read_struct_type): If the type we were passed isn't empty, or
312 incomplete, don't read the new struct type into it; complain,
313 and return the original type unchanged. Take a new `type_code'
314 argument, which is the type code for the new type.
315 (read_type): Rather than storing the type's type code here, pass
316 it as an argument to read_struct_type, and let that take care of
317 storing it. That way, we don't overwrite the original type code,
318 so read_struct_type can use it to decide whether we're overwriting
319 something we shouldn't.
320 (complain_about_struct_wipeout): New function.
322 2002-05-03 Andrew Cagney <ac131313@redhat.com>
324 * gdbarch.sh: Assert that gdbarch is non-NULL.
325 * gdbarch.c: Regenerate.
327 2002-05-03 Jason Merrill <jason@redhat.com>
329 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
332 2002-05-03 Michal Ludvig <mludvig@suse.cz>
334 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
335 (x86_64_dwarf2gdb_regno_map_length),
336 (x86_64_dwarf2_reg_to_regnum): Added.
337 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
338 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
339 (_initialize_x86_64_tdep): Synced with the change above.
340 (x86_64_skip_prologue): Reformulated message.
342 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
344 * f-exp.y: Also use new prev_lexptr variable
345 to improve error reporting. Based on Michael Snyder
346 2002-04-24 dated patch to c-exp.y.
347 * jv-exp.y: Likewise.
348 * m2-exp.y: Likewise.
350 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
352 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
353 we are dealing with vectors.
355 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
357 * config/m68k/tm-nbsd.h: Obvious fix,
358 correct machine name.
360 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
362 * p-typeprint.c (pascal_type_print_base): Add support
363 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
365 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
367 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
368 for fondamental pascal 'char' type.
370 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
372 * p-lang.h (is_pascal_string_type): Declaration changed,
373 new sixth argument of type char ** added.
374 * p-lang.c (is_pascal_string_type): Implementation
375 changed. Args length_pos, length_size, string_pos, char_size
376 can now be NULL. New argument arrayname set to the field
377 name of the char array. Return value set to char array
378 field index plus one.
379 * p-valprint.c (pascal_val_print): Adapt to new declaration of
380 is_pascal_string_type function.
382 2002-05-02 Andrew Cagney <cagney@redhat.com>
384 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
385 <cagney@redhat.com> change.
386 * gdbarch.c: Regenerate.
388 2002-05-02 Andrew Cagney <cagney@redhat.com>
390 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
391 before probing for a new one. Detect errorenous gdbarch_init
393 * gdbarch.c: Regenerate.
395 2002-05-01 Andrew Cagney <cagney@redhat.com>
397 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
398 * config/mcore/tm-mcore.h: Ditto. Update copyright.
399 * config/v850/tm-v850.h: Ditto. Update copyright.
401 2002-04-30 Andrew Cagney <ac131313@redhat.com>
403 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
406 2002-04-30 Michael Snyder <msnyder@redhat.com>
408 * arm-tdep.c: Whitespace clean-ups.
409 (arm_skip_prologue): Fix thinko; two lines
410 should have been removed as part of 4/24 change.
412 2002-04-30 Kevin Buettner <kevinb@redhat.com>
414 * rs6000-tdep.c: Added comment describing how fpscr register
417 2002-04-30 Michael Snyder <msnyder@redhat.com>
419 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
421 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
423 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
424 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
425 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
427 2002-04-29 Kevin Buettner <kevinb@redhat.com>
429 From Louis Hamilton <hamilton@redhat.com>:
430 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
431 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
432 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
433 not bfd-private xcoff data, to determine wordsize.
434 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
436 2002-04-29 Andrew Cagney <ac131313@redhat.com>
438 GDB 5.2 released from 5.2 branch.
440 2002-04-29 Michal Ludvig <mludvig@suse.cz>
442 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
443 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
444 (x86_64_register_info_table): Added comments with register numbers.
446 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
448 * rs6000-tdep.c (rs6000_extract_return_value,
449 rs6000_store_return_value): Handle returning vectors.
450 (rs6000_gdbarch_init): Use
451 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
452 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
454 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
456 (ppc_sysv_abi_push_arguments): Handle vector parameters.
457 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
459 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
461 * hpread.c (hpread_psymtab_to_symtab_1,
462 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
463 with fprintf_unfiltered (gdb_stderr,...).
465 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
467 * remote-array.c (printf_monitor, write_monitor,
468 array_insert_breakpoint, array_remove_breakpoint ):
469 Replace fprintf (stderr,...
470 with fprintf_unfiltered (gdb_stderr,....
471 * remote-es.c: Likewise.
472 * remote-os9k.c: Likewise.
473 * remote-st.c: Likewise.
475 2002-04-28 Andreas Schwab <schwab@suse.de>
477 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
478 linux-proc.o and gcore.o.
480 2002-04-26 Michal Ludvig <mludvig@suse.cz>
482 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
483 code without frame pointers.
485 2002-04-26 Andrew Cagney <ac131313@redhat.com>
487 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
490 2002-04-26 Ben Elliston <bje@redhat.com>
492 * target.c (do_xfer_memory): Correct reference to the new option
493 "trust-readonly-sections".
495 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
497 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
498 * gdbtypes.c (recursive_dump_type): Output the vector flag.
499 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
501 (read_array_type): Record the fact that this array type is really a
502 vector (i.e. are passed in by value).
504 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
506 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
507 * alpha-tdep.c (alpha_sigcontext_addr): New function.
508 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
509 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
510 * alpha-linux-tdep.c: Include frame.h.
511 (alpha_linux_sigcontext_addr): New function.
512 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
513 alpha_linux_sigcontext_addr.
514 * alpha-osf1-tdep.c: Include gdbcore.h.
515 (alpha_osf1_sigcontext_addr): New function.
516 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
517 alpha_osf1_sigcontext_addr.
518 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
519 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
521 2002-04-26 Andrew Cagney <ac131313@redhat.com>
523 * stack.c (selected_frame_level):
524 (select_frame): Do not set selected_frame_level.
525 * frame.h (selected_frame_level): Delete declaration.
527 2002-04-26 Andrew Cagney <ac131313@redhat.com>
529 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
530 convert_from_func_ptr-addr when AIX / PowerOpen.
532 2002-04-25 Andrew Cagney <ac131313@redhat.com>
534 * valops.c (hand_function_call): Call
535 generic_save_call_dummy_addr.
536 * frame.h (generic_save_call_dummy_addr): Declare.
537 * blockframe.c (struct dummy_frame): Add fields call_lo and
539 (generic_find_dummy_frame): Check for PC in range call_lo to
540 call_hi instead of entry_point_address.
541 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
542 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
543 (generic_save_call_dummy_addr): New function.
545 2002-04-24 David S. Miller <davem@redhat.com>
547 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
549 (sparc_skip_prologue): Kill frameless_p arg, and use line number
550 information to find prologue when possible.
551 (sparc_prologue_frameless_p): Call examine_prologue directly.
552 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
553 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
555 (SKIP_PROLOGUE): Likewise.
557 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
559 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
560 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
561 indicate that the condition it was testing is always true.
562 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
563 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
564 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
566 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
568 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
569 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
570 tdep->jb_pc and tdep->jb_elt_size.
571 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
572 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
573 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
574 * alpha-nat.c (get_longjmp_target): Remove.
575 (JB_ELEMENT_SIZE): Ditto.
577 * alpha-tdep.c (alpha_get_longjmp_target): New function.
578 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
579 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
580 to alpha_get_longjmp_target.
581 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
582 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
583 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
585 2002-04-25 Andrew Cagney <ac131313@redhat.com>
587 * README: Update to GDB 5.2.
589 2002-04-25 Andrew Cagney <ac131313@redhat.com>
591 * gdbarch.sh (LC_ALL): Set to `c'.
593 2002-04-25 Theodore A. Roth <troth@verinet.com>
595 * avr-tdep.c: Ran through gdb_indent.sh.
597 2002-04-25 Theodore A. Roth <troth@verinet.com>
599 * MAINTAINERS: Add myself as AVR maintainer.
600 * NEWS: Note new target avr.
602 2002-04-25 Theodore A. Roth <troth@verinet.com>
604 * Makefile.in: Add support for AVR target.
605 * configure.tgt: Add support for AVR target.
606 * avr-tdep.c: New file
607 * config/avr/avr.mt: New file.
609 2002-04-25 Theodore A. Roth <troth@verinet.com>
611 * MAINTAINERS: Add myself to write-after-approval.
613 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
615 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
616 with fprintf_unfiltered (gdb_stderr,....
618 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
621 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
623 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
625 * p-exp.y: Also use new prev_lexptr variable
626 to improve error reporting. Based on Michael Snyder
627 2002-04-24 dated patch to c-exp.y.
629 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
631 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
632 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
633 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
635 * config/alpha/tm-alpha.h: Remove forward decls of struct type
637 (FUNCTION_START_OFFSET): Remove.
640 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
642 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
645 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
647 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
648 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
649 alpha_linux_pc_in_sigtramp.
650 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
651 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
652 alpha_osf1_pc_in_sigtramp.
653 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
654 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
655 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
656 alphafbsd_pc_in_sigtramp.
657 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
658 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
659 alphanbsd_pc_in_sigtramp.
660 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
661 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
663 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
665 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
667 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
669 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
671 (alphanbsd-nat.o): New dependency list.
672 (alphanbsd-tdep.o): Ditto.
673 * NEWS: Note new native NetBSD/alpha configuration.
674 * alphanbsd-nat.c: New file.
675 * alphanbsd-tdep.c: Ditto.
676 * configure.host (alpha*-*-netbsd*): New host.
677 * configure.tgt (alpha*-*-netbsd*): New target.
678 * config/alpha/nbsd.mh: New file.
679 * config/alpha/nbsd.mt: Ditto.
680 * config/alpha/nm-nbsd.h: Ditto.
681 * config/alpha/tm-nbsd.h: Ditto.
683 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
685 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
686 (alpha-osf1-tdep.o): New dependency list.
687 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
688 and skip_sigtramp_frame members.
689 * alpha-linux-tdep.c: Include gdbcore.h.
690 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
691 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
692 * alpha-osf1-tdep.c: New file.
693 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
695 (alpha_frame_past_sigtramp_frame): New function.
696 (alpha_dynamic_sigtramp_offset): Ditto.
697 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
698 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
699 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
700 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
701 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
702 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
703 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
704 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
705 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
706 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
707 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
708 to find_solib_trampoline_target.
709 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
710 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
711 (SKIP_TRAMPOLINE_CODE): Remove.
712 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
713 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
714 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
715 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
716 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
717 (PROC_SIGTRAMP_MAGIC): Ditto.
718 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
719 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
720 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
721 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
722 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
724 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
726 * NEWS: Note that Alpha targets are now multi-arch.
728 2002-04-24 Michael Snyder <msnyder@redhat.com>
730 * parser-defs.h (prev_lexptr): New external variable.
731 * parse.c (parse_exp_1): Set prev_lexptr to null before
732 calling the language-specific parser.
733 * c-exp.y (yylex): Set prev_lexptr to start of current token.
734 (yyerror): Use prev_lexptr in error reporting.
736 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
738 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
739 * gregset.h: If FILL_FPXREGSET is defined, provide
740 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
741 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
742 is defined, call fill_fpxregset.
744 2002-04-24 Roland McGrath <roland@frob.com>
746 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
747 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
748 (supply_gregset, supply_fpregset): New functions.
750 * gnu-nat.c (gnu_find_memory_regions): New function.
751 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
752 (gnu_xfer_memory): Add a cast.
754 2002-04-24 Michael Snyder <msnyder@redhat.com>
756 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
757 loop. Add handling for "str lr, [sp, #-4]!" and for saves
758 of argument regs ("str r(0123), [r11, #-nn"]).
759 (arm_skip_prologue): Better handling for frameless functions.
760 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
761 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
763 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
765 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
766 NUM_PSEUDO_REGS can be used.
768 2002-04-24 Andrew Cagney <ac131313@redhat.com>
770 * arch-utils.h: Update copyright.
772 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
773 * gdbarch.h, gdbarch.c: Re-generate.
775 * inferior.h (IN_SIGTRAMP): Delete definition.
776 * arch-utils.c (legacy_pc_in_sigtramp): New function.
777 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
779 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
780 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
781 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
782 (find_proc_framesize): Ditto.
783 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
784 (alpha_init_extra_frame_info): Ditto.
785 * infrun.c (handle_inferior_event): Ditto.
786 (handle_inferior_event): Ditto.
787 (check_sigtramp2): Ditto.
788 * blockframe.c (create_new_frame): Ditto.
789 (get_prev_frame): Ditto.
790 * ppc-linux-tdep.c: Update comments.
791 * i386-linux-tdep.c: Update comments.
792 * breakpoint.c (bpstat_what): Update comment.
794 2002-04-24 Michal Ludvig <mludvig@suse.cz>
796 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
797 (regsets_store_inferior_registers): Removed cast to int from
799 * gdbserver/regcache.h: Added declaration of struct inferior_info.
801 2002-04-24 David S. Miller <davem@redhat.com>
803 * i960-tdep.c (register_in_window_p): New function.
804 (i960_find_saved_register): Use it instead of
805 REGISTER_IN_WINDOW_P.
806 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
808 * symtab.h (find_stab_function_addr): Kill extern.
809 * minsyms.c (find_stab_function_addr): Remove from here...
810 * dbxread.c: ... to here, and mark it static.
812 2002-04-20 David S. Miller <davem@redhat.com>
814 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
815 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
817 2002-04-21 David S. Miller <davem@redhat.com>
819 * remote-vxsparc.c (vx_read_register): Fix typo, we want
820 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
821 (vx_write_register): Likewise.
823 2002-04-23 J. Brobecker <brobecker@gnat.com>
825 * source.c (is_regular_file): New function.
826 (openp): Check wether file to open is a regular file
827 to avoid opening directories.
829 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
831 * findvar.c (extract_signed_integer): Cast printf argument
832 to suppress format warning.
833 (extract_unsigned_integer): Likewise.
834 * infcmd.c (registers_info): Likewise.
835 * top.c (get_prompt_1): Likewise.
836 * valops.c (value_assign): Likewise.
837 * valprint.c (print_decimal): Likewise.
839 2002-04-22 H.J. Lu (hjl@gnu.org)
841 * c-exp.y (typebase): Support
843 [long|long long|short] [signed|unsigned] [int|]
847 signed [long|long long|short] int
849 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
851 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
853 * vax-tdep.h: New file.
854 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
855 Make several routines static.
856 (vax_get_saved_register): New function.
857 (vax_gdbarch_init): New function.
858 (_initialize_vax_tdep): Register vax_gdbarch_init.
859 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
860 Remove macros now under the control of gdbarch.
862 2002-04-22 Michael Snyder <msnyder@redhat.com>
864 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
865 Some whitespace and coding standards tweaks.
867 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
869 * vax-tdep.c: Include regcache.h.
870 (vax_call_dummy_words): New.
871 (sizeof_vax_call_dummy_words): New.
872 (vax_fix_call_dummy): New function.
873 (vax_saved_pc_after_call): Ditto.
874 * config/vax/tm-vax.h: Don't include regcache.h.
875 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
876 (CALL_DUMMY): Remove.
877 (CALL_DUMMY_WORDS): Define.
878 (SIZEOF_CALL_DUMMY_WORDS): Define.
879 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
881 2002-04-18 Michael Snyder <msnyder@redhat.com>
883 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
885 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
887 * vax-tdep.c (vax_frame_chain): New function.
888 (vax_push_dummy_frame): Ditto.
889 (vax_pop_frame): Ditto.
890 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
891 (FRAMELESS_FUNCTION_INVOCATION): Use
892 generic_frameless_function_invocation_not.
893 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
894 (POP_FRAME): Use vax_pop_frame.
896 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
898 * vax-tdep.c (vax_store_struct_return): New function.
899 (vax_extract_return_value): Ditto.
900 (vax_store_return_value): Ditto.
901 (vax_extract_struct_value_address): Ditto.
902 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
903 vax_store_struct_return.
904 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
905 (STORE_RETURN_VALUE): Use vax_store_return_value.
906 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
908 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
910 * vax-tdep.c (vax_frame_saved_pc): New function.
911 (vax_frame_args_address_correct): Ditto.
912 (vax_frame_args_address): Ditto.
913 (vax_frame_locals_address): Ditto.
914 (vax_frame_num_args): Move code to be in proximity to
915 other frame-related functions.
916 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
917 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
918 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
919 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
920 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
922 2002-04-22 H.J. Lu (hjl@gnu.org)
924 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
927 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
929 * vax-tdep.c (vax_frame_init_saved_regs): New function.
930 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
931 (FRAME_INIT_SAVED_REGS): New macro.
933 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
935 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
937 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
939 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
941 (fetch_osf_core_registers): Likewise.
942 (supply_gregset): Likewise.
944 2002-04-22 J. Brobecker <brobecker@gnat.com>
946 * symfile.h (get_section_index): Define.
947 * symfile.c (get_section_index): New function.
948 * mdebugread.c (SC_IS_SBSS): New macro.
949 (SC_IS_BSS): Return true for the scBss storage class only, as
950 the scSBss storage class refers to the .sbss section.
951 (parse_partial_symbols): Discard the symbols which associated
952 section does not exist.
953 Make sure to use the .sbss section index for symbols which
954 storage class is scBss, rather than using the .bss section index.
956 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
958 * vax-tdep.c: Update copyright years.
959 (vax_register_name): New function.
960 (vax_register_byte): Ditto.
961 (vax_register_raw_size): Ditto.
962 (vax_register_virtual_size): Ditto.
963 (vax_register_virtual_type): Ditto.
964 * config/vax/tm-vax.h: Update copyright years.
965 (REGISTER_NAMES): Remove.
966 (REGISTER_NAME): Define.
967 (REGISTER_BYTE): Use vax_register_byte.
968 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
969 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
970 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
972 2002-04-21 Andrew Cagney <ac131313@redhat.com>
974 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
976 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
978 2002-04-21 David S. Miller <davem@redhat.com>
980 * arch-utils.c (generic_prologue_frameless_p): Kill
981 SKIP_PROLOGUE_FRAMELESS_P code.
982 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
984 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
985 * arc-tdep.c (arc_prologue_frameless_p): Implement.
986 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
988 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
989 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
990 (sparc_gdbarch_init): Pass it to
991 set_gdbarch_prologue_frameless_p.
993 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
995 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
996 (alphabsd-nat.o): New dependency list.
998 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1000 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1002 (alpha-linux-tdep.o): New dependency list.
1003 (alphafbsd-tdep.o): Likewise.
1005 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1007 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1009 * alpha-tdep.c: ...from here.
1010 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1012 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1014 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1015 prototype from here...
1016 * alpha-tdep.h: ...to here.
1018 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1020 * frame.h (selected_frame_level): Document as deprecated.
1021 (frame_relative_level): Declare.
1022 * stack.c (frame_relative_level): New function.
1023 (selected_frame_level): Document as deprecated.
1024 (select_frame): Do not set the selected_frame_level.
1026 * stack.c (frame_info, record_selected_frame): Update.
1027 (frame_command, current_frame_command): Update.
1028 (up_silently_base, up_command, down_silently_base): Update.
1029 (down_command): Update.
1030 * inflow.c (kill_command): Update.
1031 * tracepoint.c (finish_tfind_command): Update.
1032 * corelow.c (core_open): Update.
1033 * thread.c (info_threads_command): Update.
1034 (do_captured_thread_select): Update.
1035 * infcmd.c (finish_command): Update.
1036 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1040 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1042 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1044 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1047 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1049 * alphafbsd-tdep.c: Update copyright years. Include
1051 (alphafbsd_use_struct_convention): Make static.
1052 (alphafbsd_init_abi): New function.
1053 (_initialize_alphafbsd_tdep): New function.
1054 * config/alpha/tm-fbsd.h: Update copyright years.
1055 (USE_STRUCT_CONVENTION): Remove.
1057 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1059 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1060 an Alpha ABI variant.
1061 (alpha_abi_handler_list): Declare.
1062 (alpha_gdbarch_register_os_abi): New function.
1063 (alpha_gdbarch_init): Give registered ABI variant handlers a
1064 chance to tweak the gdbarch once we have set up defaults.
1065 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1067 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1069 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1070 to standard_coerce_float_to_double.
1071 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1073 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1075 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1076 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1077 from gdbarch_tdep rather than a constant.
1078 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1079 the default text address for all Alpha Unix ABIs.
1080 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1081 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1083 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1085 * alpha-tdep.h: New file. Includes several Alpha target constants
1087 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1088 let gdbarch deal with.
1089 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1090 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1092 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1093 Alpha target register names.
1094 * alphabsd-nat.c: Likewise.
1095 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1096 Alpha target register names. Make serveral routines static.
1097 (alpha_get_saved_register): New function.
1098 (alpha_abi_names): New.
1099 (process_note_abi_tag_sections): New function.
1100 (get_elfosabi): New function.
1101 (alpha_gdbarch_init): New function.
1102 (alpha_dump_tdep): New function.
1103 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1105 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1107 * frame.c (find_saved_register): Delete #ifdef
1108 HAVE_REGISTER_WINDOWS code.
1109 * config/sparc/tm-sparc.h: Update comments.
1110 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1112 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1114 * i960-tdep.c (i960_find_saved_register): New function.
1115 (i960_get_saved_register): New function.
1116 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1117 (i960_get_saved_register): Declare.
1118 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1120 2002-04-20 David S. Miller <davem@redhat.com>
1122 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1124 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1126 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1127 instead of NUM_PSEUDO_REGS.
1129 2002-04-20 David S. Miller <davem@redhat.com>
1131 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1132 GDB_MULTI_ARCH_PARTIAL
1133 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1134 define, let tm-sp64.h do it.
1136 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1138 * frame.c (find_saved_register): Avoid a NULL pointer
1139 dereference and actually walk the frame list.
1141 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1143 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1144 sorted in most most-recent-used order. Document.
1145 * gdbarch.h, gdbarch.c: Regenerate.
1147 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1149 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1150 (add_inferior): Call create_register_cache.
1151 (clear_inferiors): Call free_register_cache.
1152 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1153 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1154 (registers): Remove.
1155 (get_regcache): New function.
1156 (create_register_cache, free_register_cache): New functions.
1157 (set_register_cache): Don't initialize the register cache here.
1158 (registers_to_string, registers_from_string, register_data): Call
1160 * gdbserver/regcache.h: Add prototypes.
1161 * gdbserver/server.h: Likewise.
1163 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1165 * gdbserver/mem-break.c: New file.
1166 * gdbserver/mem-break.h: New file.
1167 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1169 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1171 (clear_inferiors): Free target_data member if set.
1172 (inferior_target_data, set_inferior_target_data): New functions.
1173 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1174 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1175 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1176 (struct inferior_linux_data): New.
1177 (linux_create_inferior): Use set_inferior_target_data.
1178 (linux_attach): Likewise. Call add_inferior.
1179 (linux_wait_for_one_inferior): New function.
1180 (linux_wait): Call it.
1181 (linux_write_memory): Add const.
1182 (initialize_low): Call set_breakpoint_data.
1183 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1185 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1187 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1189 * gdbserver/target.c (read_inferior_memory)
1190 (write_inferior_memory): New functions.
1191 * gdbserver/target.h (read_inferior_memory)
1192 (write_inferior_memory): Change macros to prototypes.
1193 (struct target_ops): Update comments. Add const to write_memory
1196 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1198 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1200 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1201 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1202 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1205 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1208 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1209 (build_builtin_type_vec128): Ditto.
1210 (append_composite_type_field): Fix calculation of type length in
1213 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1215 * config/djgpp/README: Update.
1217 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1220 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1222 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1223 (alpha_setup_arbitrary_frame): ...to this.
1224 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1225 for alpha_setup_arbitrary_frame.
1227 2002-04-18 Andrew Cagney <cagney@redhat.com>
1229 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1230 * gdbarch.h, gdbarch.c: Regenerate.
1232 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1233 * target.h (memory_breakpoint_from_pc): Update declaration.
1234 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1236 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1237 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1238 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1239 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1240 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1241 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1242 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1243 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1244 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1245 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1246 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1247 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1249 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1251 * monitor.c (monitor_insert_breakpoint): Ditto.
1252 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1254 * config/mcore/tm-mcore.h: Update copyright.
1255 * mem-break.c: Ditto.
1256 * xstormy16-tdep.c: Ditto.
1258 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1260 * p-exp.y: Add precedence rule for '^' token.
1261 This removes the shift/reduce conflicts.
1262 Remove the comment concerning these shift/reduce conflicts.
1264 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1266 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1267 (registers_powerpc_nofp): New register set for processors
1268 without floating point unit.
1270 2002-04-18 David S. Miller <davem@redhat.com>
1272 * MAINTAINERS: Add myself to write-after-approval.
1274 2002-04-17 Michael Snyder <msnyder@redhat.com>
1276 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1278 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1280 * rs6000-tdep.c (frame_initial_stack_address): Use
1281 frame_register_read to read the alloca_reg.
1283 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1285 * frame.c (find_saved_register): Find saved registers in the next
1289 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1291 * gdbarch.sh (LANG): Set to ``c''.
1293 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1295 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1297 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1299 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1302 * hpread.c (hpread_get_lntt): Add declaration.
1303 Also fix PR gdb/391.
1305 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1307 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1308 * aclocal.m4, configure: Re-generate.
1311 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1313 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1314 instead of tm_print_insn.
1316 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1318 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1320 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1322 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1323 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1324 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1326 2002-04-12 Don Howard <dhoward@redhat.com>
1328 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1329 max_user_call_depth.
1330 (init_cmd_lists): Initialize the new value;
1331 * cli/cli-script.c (execute_user_command): Limit the call depth of
1332 user defined commands. This avoids a core-dump when user commands
1333 are infinitly recursive.
1335 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1337 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1338 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1339 from tdep struct instead of DEFAULT_LR_SAVE.
1340 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1341 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1342 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1344 2002-04-12 Michael Snyder <msnyder@redhat.com>
1346 * Remote.c: Spelling fix.
1347 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1348 If no symbol found for "sbrk", try "_sbrk".
1349 (make_output_phdrs): Use bfd_section_name.
1350 (gcore_copy_callback): Use bfd_section_name.
1351 * eval.c: Indentation fix-ups.
1352 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1353 in case it gets applied to an address that is already
1354 in the instruction space.
1355 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1356 * symfile.c: Fix indentation, long lines.
1357 * source.c: White space fix-up.
1359 2002-04-12 Andrew Cagney <cagney@redhat.com>
1361 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1362 * frame.c (frame_register_read): New function. Return non-zero on
1364 (read_relative_register_raw_bytes_for_frame): Delete.
1365 (read_relative_register_raw_bytes): Delete.
1366 * frame.h (frame_register_read): Declare.
1367 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1369 * infcmd.c (do_registers_info): Ditto.
1370 * hppa-tdep.c: Ditto.
1371 * rs6000-tdep.c: Ditto.
1372 * h8500-tdep.c: Ditto.
1373 * mips-tdep.c: Ditto.
1374 * h8300-tdep.c: Ditto.
1375 * z8k-tdep.c: Ditto.
1377 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1379 From Jimi X <jimix@watson.ibm.com>:
1380 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1383 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1385 From Jimi X <jimix@watson.ibm.com>:
1386 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1389 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1391 From Jimi X <jimix@watson.ibm.com>:
1392 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1393 register sets for these processor variants.
1395 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1397 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1398 registers which are allowed to fail to store.
1399 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1400 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1401 (ppc_cannot_store_register): FPSCR may not be storable.
1402 * regformats/reg-ppc.dat: Support FPSCR.
1404 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1406 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1407 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1408 Add fpscr as an invalid/unfetchable register.
1409 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1410 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1411 (fill_fpregset): Add support for register fpscr.
1412 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1413 (fill_gregset): Account for the fact that register ``mq'' might
1415 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1416 (registers_power): Add fpscr to register set at slot 71.
1417 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1418 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1420 2002-04-11 Michael Snyder <msnyder@redhat.com>
1422 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1423 * configure: Regenerate.
1424 * config.in: Regenerate.
1425 * acconfig.h: Add define for _SYSCALL32.
1426 * core-sol2.c: Remove #define _SYSCALL32.
1427 * solib-legacy.c: Remove #define _SYSCALL32.
1429 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1431 * stack.c (select_frame): Cleanup internal error message, do not
1434 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1436 * stack.c (select_frame): Check that selected_frame and the
1437 specified level are as expected.
1438 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1440 * frame.h (struct frame_info): Add field `level'. Update
1442 Work-in-progress PR gdb/464.
1444 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1446 * maint.c (maint_print_section_info): Rename print_section_info.
1447 (print_bfd_section_info, print_objfile_section_info): Update.
1448 * inferior.h (struct gdbarch): Add opaque declaration.
1449 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1450 * gdbarch.h: Regenerate.
1452 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1454 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1455 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1456 (kernel_u_size): Added.
1457 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1458 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1460 2002-04-04 Jim Ingham <jingham@apple.com>
1462 * valarith.c (find_size_for_pointer_math): New function, either returns
1463 the size for a pointer's target, returns 1 for void *, or errors for
1465 (value_add, value_sub): use find_size_for_pointer_math.
1467 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1469 * linux-low.c (linux_look_up_symbols): New hook.
1470 (linux_target_ops): Add linux_look_up_symbols.
1471 * remote-utils.c (decode_address): New function.
1472 (look_up_one_symbol): New function.
1473 * server.c (handle_query): Call target look_up_symbols hook.
1474 * server.h (look_up_one_symbol): Add prototype.
1475 * target.h (struct target_ops): Add look_up_symbols hook.
1477 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1479 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1480 * ChangeLog: Correct paths in last ChangeLog entry.
1482 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1484 * gdbserver/linux-low.h: Remove obsolete prototypes.
1485 (struct linux_target_ops): New.
1486 (extern the_low_target): New.
1487 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1488 (register_addr): Use the_low_target explicitly.
1489 (fetch_register): Likewise.
1490 (usr_fetch_inferior_registers): Likewise.
1491 (usr_store_inferior_registers): Likewise.
1492 * gdbserver/linux-arm-low.c (num_regs): Remove.
1493 (arm_num_regs): Define.
1494 (arm_regmap): Renamed from regmap, made static.
1495 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1497 (arm_cannot_store_register): Renamed from cannot_store_register,
1499 (the_low_target): New.
1500 * gdbserver/linux-i386-low.c (num_regs): Remove.
1501 (i386_num_regs): Define.
1502 (i386_regmap): Renamed from regmap, made static.
1503 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1505 (i386_cannot_store_register): Renamed from cannot_store_register,
1507 (the_low_target): New.
1508 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1509 (ia64_num_regs): Define.
1510 (ia64_regmap): Renamed from regmap, made static.
1511 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1513 (ia64_cannot_store_register): Renamed from cannot_store_register,
1515 (the_low_target): New.
1516 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1517 (m68k_num_regs): Define.
1518 (m68k_regmap): Renamed from regmap, made static.
1519 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1521 (m68k_cannot_store_register): Renamed from cannot_store_register,
1523 (the_low_target): New.
1524 * gdbserver/linux-mips-low.c (num_regs): Remove.
1525 (mips_num_regs): Define.
1526 (mips_regmap): Renamed from regmap, made static.
1527 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1529 (mips_cannot_store_register): Renamed from cannot_store_register,
1531 (the_low_target): New.
1532 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1533 (ppc_num_regs): Define.
1534 (ppc_regmap): Renamed from regmap, made static.
1535 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1537 (ppc_cannot_store_register): Renamed from cannot_store_register,
1539 (the_low_target): New.
1540 * gdbserver/linux-s390-low.c (num_regs): Remove.
1541 (s390_num_regs): Define.
1542 (s390_regmap): Renamed from regmap, made static.
1543 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1545 (s390_cannot_store_register): Renamed from cannot_store_register,
1547 (the_low_target): New.
1548 * gdbserver/linux-sh-low.c (num_regs): Remove.
1549 (sh_num_regs): Define.
1550 (sh_regmap): Renamed from regmap, made static.
1551 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1553 (sh_cannot_store_register): Renamed from cannot_store_register,
1555 (the_low_target): New.
1556 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1557 (the_low_target): New.
1559 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1561 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1562 override FP_REGNUM with frame->fp. Update copyright.
1563 * parse.c (num_std_regs, std_regs): Delete.
1564 (target_map_name_to_register): Do not search std_regs. Update
1565 function description.
1566 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1567 declarations. Update copyright.
1570 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1572 * gdbserver/Makefile.in: Add stamp-h target.
1573 * gdbserver/configure.in: Create stamp-h.
1574 * gdbserver/configure: Regenerated.
1576 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1578 * gdbserver/inferiors.c: New file.
1579 * gdbserver/target.c: New file.
1580 * gdbserver/target.h: New file.
1581 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1583 * gdbserver/linux-low.c (inferior_pid): New static variable,
1584 moved from server.c.
1585 (linux_create_inferior): Renamed from create_inferior.
1586 Call add_inferior. Return 0 on success instead of a PID.
1587 (linux_attach): Renamed from myattach.
1588 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1589 (linux_thread_alive): Renamed from mythread_alive.
1590 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1592 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1593 (regsets_store_inferior_registers): Correct error message.
1594 Add missing ``return 0''.
1595 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1596 (linux_store_registers): Renamed from store_inferior_registers.
1597 (linux_read_memory): Renamed from read_inferior_memory.
1598 (linux_write_memory): Renamed from write_inferior_memory.
1599 (linux_target_ops): New structure.
1600 (initialize_low): Call set_target_ops ().
1601 * gdbserver/remote-utils.c (unhexify): New function.
1602 (hexify): New function.
1603 (input_interrupt): Send signals to ``signal_pid''.
1604 * gdbserver/server.c (inferior_pid): Remove.
1605 (start_inferior): Update create_inferior call.
1606 (attach_inferior): Call add_inferior.
1607 (handle_query): New function.
1608 (main): Call handle_query for `q' packets.
1609 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1610 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1612 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1614 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1616 * gdbserver/configure.in: Check for <string.h>
1617 * gdbserver/configure: Regenerate.
1618 * gdbserver/config.in: Regenerate.
1619 * gdbserver/gdbreplay.c: Include needed system headers.
1620 (remote_open): Remove strchr prototype.
1621 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1622 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1623 (supply_register_by_name): Likewise.
1624 (collect_register): Change buf argument to void *.
1625 (collect_register_by_name): Likewise.
1626 * gdbserver/regcache.h: Add missing prototypes.
1627 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1628 * gdbserver/server.c (handle_query): New function.
1629 (attached): New static variable, moved out of main.
1630 (main): Quiet longjmp clobber warnings.
1631 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1632 * gdbserver/utils.c (error): Remove NORETURN.
1635 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1637 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1638 after the last symbol in a block.
1640 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1642 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1643 is non zero as a found symbol.
1645 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1647 * findvar.c: Include "builtin-regs.h".
1648 (value_of_register): Call value_of_builtin_reg when applicable.
1649 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1650 (target_map_name_to_register): Call
1651 builtin_reg_map_name_to_regnum.
1652 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1653 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1654 (builtin_regs_h): Define.
1655 (builtin-regs.o): New target.
1656 (findvar.o): Add $(builtin_regs_h).
1657 * builtin-regs.c, builtin-regs.h: New files.
1658 * std-regs.c: New file.
1659 Partial fix for PR gdb/251.
1661 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1663 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1664 it's no longer required.
1666 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1668 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1670 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1672 From Jimi X <jimix@watson.ibm.com>:
1673 * rs6000-tdep.c (rs6000_software_single_step): Use
1674 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1675 and size. Use target_insert_breakpoint() and
1676 target_remove_breakpoint() to insert and remove breakpoints
1677 instead of explicit memory reads and writes.
1679 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1681 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1682 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1683 ELF_OBJECT_FORMAT ifdef.
1685 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1687 From Jimi X <jimix@watson.ibm.com>:
1688 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1690 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1692 From Jimi X <jimix@watson.ibm.com>:
1693 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1694 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1696 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1698 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1699 s/asprintf/xasprintf/.
1700 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1702 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1704 I believe Jeff Law denies responsability for this one:
1705 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1706 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1707 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1708 Work-around for PR gdb/366.
1710 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1712 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1713 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1714 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1716 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1718 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1719 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1722 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1724 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1727 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1729 * README (Reporting Bugs in GDB): Document the bug web page as the
1730 prefered way of submitting bugs.
1733 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1735 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1737 * gdbarch.h, gdbarch.c: Re-generate.
1739 2002-04-07 Andreas Schwab <schwab@suse.de>
1741 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1742 buffer to regcache_collect.
1744 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1746 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1747 * gdbarch.c, gdbarch.h: Re-generate.
1749 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1751 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1752 declaration. Fix -Werror.
1754 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1756 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1757 * gdbarch.c: Regenerate.
1759 2002-04-05 Michael Snyder <msnyder@redhat.com>
1761 * breakpoint.c (clear_command): Rewrite middle section to
1762 combine two loops with identical control conditions.
1763 Add a cleanup to eliminate a memory leak.
1764 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1766 2002-04-05 H.J. Lu (hjl@gnu.org)
1768 * solib-svr4.c (bkpt_names): Add "__start".
1770 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1772 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1773 as test for 64 bit target.
1775 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1777 * h8500-tdep.c (h8500_write_fp): Delete function.
1778 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1779 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1780 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1782 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1783 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1785 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1786 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1787 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1788 (d10v_write_fp): Delete function.
1789 * inferior.h (write_fp, generic_target_write_fp): Delete
1791 * regcache.c (generic_target_write_fp): Delete function.
1792 (write_fp): Delete function.
1793 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1794 * gdbarch.h, gdbarch.c: Regenerate.
1795 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1796 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1797 (sparc64_write_fp): Delete declaration.
1798 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1799 (h8500_write_fp): Delete declaration.
1801 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1803 * sparc-tdep.c (sparc64_write_fp): Delete.
1804 (sparc_push_dummy_frame): Replace write_fp call with code to store
1806 (sparc_gdbarch_init): Do not initialize write_fp.
1808 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1810 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1813 2002-03-29 Jim Blandy <jimb@redhat.com>
1815 * stack.c (get_selected_block): Add new argument `addr_in_block',
1816 used to return the exact code address we used to select the block,
1818 * blockframe.c (get_frame_block, get_current_block): Same.
1819 * frame.h (get_frame_block, get_current_block,
1820 get_selected_block): Update declarations.
1821 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1822 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1824 2002-04-05 Michael Snyder <msnyder@redhat.com>
1826 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1829 2002-04-05 J. Brobecker <brobecker@gnat.com>
1831 * utils.c (xfullpath): New function.
1832 * defs.h (xfullpath): Add declaration.
1833 * source.c (openp): Use xfullpath in place of gdb_realpath to
1834 avoid resolving the basename part of filenames when the
1835 associated file is a symbolic link. This fixes a potential
1836 inconsistency between the filenames known to GDB and the
1837 filenames it prints in the annotations.
1838 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1839 to be able to match a filename with either the real filename, or
1840 the name of any symbolic link to this file.
1841 (lookup_partial_symtab): Ditto.
1843 2002-04-04 Michael Snyder <msnyder@redhat.com>
1845 * breakpoint.c: Add support for hardware breakpoints in overlays.
1846 (overlay_events_enabled): New state variable.
1847 (insert_breakpoints): Use overlay_events_enabled to decide
1848 whether to attempt to set a breakpoint at the overlay load addr.
1849 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1850 (remove_breakpoint): Use overlay_events_enabled to decide
1851 whether breakpoints need to be removed from overlay load addr.
1852 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1853 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1854 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1855 disable_overlay_breakpoints): Update overlay_events_enabled.
1857 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1859 * dwarf2read.c (struct function_range): New.
1860 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1861 (check_cu_functions): New.
1862 (read_file_scope): Initialize global function lists.
1863 Call dwarf_decode_line after processing children.
1864 (read_func_scope): Add to global function list.
1865 (dwarf_decode_lines): Call check_cu_functions everywhere
1866 record_line is called. Call record_line with a linenumber
1867 of 0 to mark sequence ends.
1869 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1871 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1872 change sync with glibc.
1874 2002-04-03 Jim Blandy <jimb@redhat.com>
1876 * configure.in: Call AC_C_INLINE.
1877 * configure: Regenerated.
1879 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1881 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1882 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1884 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1886 * NEWS: Mention gcore support on FreeBSD/i386.
1888 * fbsd-proc.c: New file.
1889 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1890 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1892 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1895 2002-03-29 Jim Blandy <jimb@redhat.com>
1897 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1898 unescaped newlines in string literals, but newer ones don't. So
1901 2002-03-26 Michael Snyder <msnyder@redhat.com>
1902 Andrew Cagney <cagney@redhat.com>
1904 * cli/cli-dump.c: New file. Dump memory to file,
1905 restore file to memory.
1906 * cli/cli-dump.h: New file.
1907 * Makefile.in: Add rules, dependencies for cli-dump.o.
1908 * NEWS: Mention new commands.
1910 2002-03-28 Michael Snyder <msnyder@redhat.com>
1912 * symfile.c (symbol_file_add): Move test for null symbols to later.
1914 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1916 From veksler at il.ibm.com:
1917 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1918 the xstrduped original path.
1921 2002-03-27 Michael Snyder <msnyder@redhat.com>
1923 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1924 * infcmd.c (_initialize_infcmd): Ditto.
1925 * language.c (_initialize_language): Ditto.
1926 * symfile.c (_initialize_symfile): Ditto.
1927 * top.c (_init_main): Ditto.
1928 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1930 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1932 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1933 vector registers handling.
1934 (skip_prologue): Handle new AltiVec instructions. Fill in new
1935 fields of frame data.
1936 (frame_get_saved_regs): Fill in information for AltiVec registers.
1938 2002-03-27 Jim Blandy <jimb@redhat.com>
1940 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1941 a function; leave this macro here to invoke that function.
1942 (symbol_init_mangled_name): Declaration for that function.
1943 * symtab.c (symbol_init_mangled_name): New function.
1945 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1947 * valarith.c: Replace strerror with safe_strerror.
1948 * tracepoint.c: Ditto.
1950 * go32-nat.c: Ditto.
1954 2002-03-27 Andreas Schwab <schwab@suse.de>
1956 * event-top.c (command_line_handler): Remove useless if.
1958 2002-03-27 Andreas Jaeger <aj@suse.de>
1960 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1963 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1965 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1966 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1967 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1968 (x86_64_linux_dr_get_status, supply_gregset),
1969 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1970 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1971 (x86_64_register_info_table): Add.
1972 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1973 (x86_64_register_raw_size, x86_64_register_virtual_type),
1974 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1975 general x86_64_register_info_table.
1976 (i386_gdbarch_init): gdbarch_register_bytes is now set
1977 dynamicaly during initialization.
1978 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1979 * gdbserver/linux-x86-64-low.c: Ditto.
1981 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1983 * gdbserver/server.c (main): Call target_signal_to_host_p
1984 and target_signal_to_host on signals received from the remote.
1985 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1986 target_signal_from_host on signals sent to the remote.
1987 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1988 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1990 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1992 * signals/signals.c: Include "server.h" in gdbserver build.
1993 (target_signal_from_name): Don't use STREQ.
1994 (_initialize_signals): Likewise. Don't include function in
1997 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1999 * signals.c: Moved to...
2000 * signals/signals.c: Here.
2001 * Makefile (signals.o): Update.
2003 2002-03-26 Jeff Law (law@redhat.com)
2005 * somread.c (som_symtab_read): Remove some commented out code and
2006 updated related comments. Do not set the minimal symbol table to
2007 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2008 in a dynamic executable.
2009 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2010 where we are unable to find the minimal symbol for the given
2013 2002-03-25 Jeff Law (law@redhat.com)
2015 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2017 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2019 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2021 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2023 * command.h: Update copyright.
2024 (struct cmd_list_element): Replace definition with opaque
2026 (enum cmd_types): Document that it will eventually be moved to
2028 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2029 (MALLOCED_REPLACEMENT): Delete macro.
2030 * Makefile.in (cli_decode_h): Add $(command_h).
2031 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2032 * top.c: Include "cli/cli-decode.h".
2033 * completer.c: Include "cli/cli-decode.h".
2034 * maint.c: Include "cli/cli-decode.h".
2035 * cli/cli-decode.h: Include "command.h".
2036 (enum command_class): Delete.
2037 (enum cmd_types): Comment out.
2038 (enum cmd_auto_boolean): Delete.
2039 (enum var_types): Delete.
2041 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2043 * cli/cli-decode.c: Include "gdb_assert.h".
2044 (add_set_or_show_cmd): New static function.
2045 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2046 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2047 all fields, such as func, from the set command.
2049 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2051 * MAINTAINERS (sh-elf): Change warning flag to -w.
2053 2002-03-23 Andrew Cagney <cagney@redhat.com>
2055 * defs.h (error): Add printf format attribute.
2056 * thread-db.c (thread_from_lwp): Fix error format string.
2057 * stack.c (parse_frame_specification): Ditto.
2058 * cli/cli-decode.c (undef_cmd_error): Ditto.
2059 * scm-lang.c (scm_lookup_name): Ditto.
2060 * tracepoint.c (trace_error): Ditto.
2061 * remote-utils.c (usage): Ditto.
2062 * remote.c (compare_sections_command): Ditto.
2065 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2067 * gdbtypes.c (append_composite_type_field): New function.
2068 (init_composite_type): New function.
2069 * gdbtypes.h (append_composite_type_field): Declare.
2070 (init_composite_type): Ditto.
2072 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2074 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2076 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2077 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2078 structure returning convention for SYSV ABI case, but not
2079 for GNU/Linux, FreeBSD, or NetBSD.
2081 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2083 * symtab.h (lookup_block_symbol): Add mangled_name argument
2086 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2087 with new mangled_name argument.
2088 * linespec.c (decode_line_1): Likewise.
2089 * valops (value_of_this): Likewise.
2090 * symtab.c (lookup_transparent_type): Likewise.
2091 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2092 (lookup_symbol): If we are given a mangled name, pass it down
2093 to lookup_symbol_aux.
2094 (lookup_block_symbol): If we are given a mangled name to check
2095 against, only return symbols which match it.
2097 2002-03-22 Christopher Faylor <cgf@redhat.com>
2099 * win32-nat.c (child_create_inferior): Check for proper shell to use
2100 here, in case the user changes it on the fly.
2101 (_initialize_inftarg): Remove shell path considerations.
2103 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2105 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2106 for gdbarch_max_register_raw_size and max_register_virtual_size.
2107 Adjust copyright year.
2109 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2111 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2112 in a function to cover the entire beginning of the function
2113 as well if it does not already.
2115 2002-03-21 Tom Rix <trix@redhat.com>
2117 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2118 (rs6000_ptrace64): Renamed from ptrace64.
2120 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2122 * gdbserver/remote-utils.c (remote_open): Don't call
2123 getprotobyname, we're all using TCP here so just use
2125 * gdbserver/gdbreplay.c (remote_open): Ditto.
2127 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2129 * regcache.c (_initialize_regcache): No need to call
2130 build_regcache() at this time; it gets called whenever
2131 the gdbarch changes.
2133 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2135 * sparc-nat.c: Include sys/param.h where possible.
2137 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2140 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2141 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2142 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2144 * stabsread.c (rs6000_builtin_type): Likewise.
2145 (read_sun_floating_type): Likewise.
2147 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2149 * stabsread.c (read_member_functions): Remove skip code for duplicate
2150 constructor/destructor methods. Use standard parsing for these
2151 methods and just do not chain them to the list of methods after
2154 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2156 * coffread.c: Remove redundant static declarations. Replace
2157 occurrences of `PTR' with `void *'.
2158 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2159 * top.h (quit_cover): Likewise.
2160 * defs.h (catch_errors): Likewise.
2162 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2164 * defs.h (XMALLOC): Define.
2165 * gdb-events.sh (XMALLOC): Delete macro.
2166 * gdb-events.c, gdb-events.h: Regenerate.
2167 * gdbarch.sh (XMALLOC): Delete macro.
2168 * gdbarch.c: Regenerate.
2169 * serial.c (XMALLOC): Delete macro.
2170 * ui-file.c (XMALLOC): Ditto.
2171 * ser-unix.h (XMALLOC): Ditto.
2172 * sh-tdep.c (XMALLOC): Ditto.
2173 * ui-out.c (XMALLOC): Ditto.
2174 * utils.c (XMALLOC): Ditto.
2175 * i386-tdep.c (XMALLOC): Ditto.
2176 * gdb-events.c (XMALLOC): Ditto.
2177 * d10v-tdep.c (XMALLOC): Ditto.
2178 * cli-out.c (XMALLOC): Ditto.
2180 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2181 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2182 * ui-file.c, ui-out.c: Ditto.
2184 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2186 * command.h (struct cmd_list_element): Add field context.
2187 (set_cmd_context, get_cmd_context): Declare.
2188 * cli/cli-decode.h: Ditto.
2189 * cli/cli-decode.c (get_cmd_context): New function.
2190 (set_cmd_context): New function.
2191 (add_cmd): Initialize context.
2192 Part of fixing PR gdb/145 and PR gdb/146.
2194 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2196 * cli/cli-decode.c (cmd_type): New function.
2197 * command.h (cmd_type): Declare.
2198 * infrun.c (set_schedlock_func): Call function cmd_type.
2199 * kod.c (kod_set_os): Call cmd_type.
2200 * cris-tdep.c (cris_version_update): Use function cmd_type.
2201 (cris_mode_update, cris_abi_update): Ditto.
2203 * command.h: (execute_cmd_post_hook): Declare.
2204 (execute_cmd_pre_hook): Declare.
2205 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2206 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2207 functions. Execute pre/post hook while ensuring that afterwords
2209 * top.c (execute_command): Use execute_cmd_post_hook, and
2210 execute_cmd_pre_hook to execute pre/post commands.
2211 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2213 (hook_stop_stub): Call execute_cmd_pre_hook.
2215 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2217 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2218 set'' and this leads to a core dump. Move xstrdup of
2219 operating_system to after check that it is not NULL.
2221 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2223 * kod.c (kod_set_os): Remove unnecessary check that
2224 ``command->type'' is set_cmd.
2226 * valprint.c (set_input_radix): Use input_radix.
2227 (set_output_radix): Use output_radix.
2228 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2231 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2233 * value.h (struct value): Delete field ``substring_addr''. Change
2234 aligner fields to force_doublest_align, force_longest_align,
2235 force_core_addr_align and force_pointer_aligh.
2237 * value.h (struct value): Fix typo in above change.
2239 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2241 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2242 to fix internal_error from ``maintenance print architecture''.
2244 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2246 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2247 for gcc versions after gcc-2.8.1.
2249 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2251 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2252 for method resolution. Restore adjustment of ``this'' pointer after
2253 calling value_struct_elt, which was accidentally removed during the
2256 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2258 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2260 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2262 * value.h (value_of_register): Update.
2264 2002-03-14 Richard Henderson <rth@redhat.com>
2266 * configure.in: Detect declaration for canonicalize_file_name.
2267 * utils.c (canonicalize_file_name): Declare, if needed.
2268 (gdb_realpath): Prefer realpath if available and usable.
2269 * config.in, configure: Rebuild.
2271 2002-03-14 Richard Henderson <rth@redhat.com>
2273 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2274 a constant array bound.
2276 * MAINTAINERS: Add myself to write-after-approval.
2278 2002-03-14 Michael Snyder <msnyder@redhat.com>
2280 * symfile.c (syms_from_objfile): Return immediately if no syms.
2281 (symbol_file_add): Return immediately if no syms.
2282 (find_sym_fns): Return immediately if no syms.
2284 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2286 * gdbserver/remote-util.c (remote_open): Print remote-side's
2287 IP address when remote debugging over the network.
2289 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2291 * config/sparc/fbsd.mh: Fix copyright.
2292 * config/sparc/fbsd.mt: Likewise.
2294 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2296 * MAINTAINERS: Fix typo in name of gdb warnings option.
2297 (x86-64): Fix formating so that this can be parsed by awk.
2299 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2301 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2302 * defs.h: Include "gdb/signals.h".
2303 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2305 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2307 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2308 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2311 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2312 Don Howard <dhoward@redhat.com>
2314 * mips-tdep.c (ST0_FR): Define.
2315 (mips2_fp_compat): New function, temporarily disabled.
2316 (mips_read_fp_register_single): New function.
2317 (mips_read_fp_register_double): New function.
2318 (mips_print_register): Use them.
2319 (do_fp_register_row): Likewise.
2321 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2323 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2326 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2328 * stabsread.c (read_member_functions): Fix is_stub test for
2329 static member functions, improve comment.
2331 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2333 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2334 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2335 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2336 commands that set boolean values.
2337 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2338 (arm_rdi_resume): Always initialize PC.
2339 (arm_rdi_open): Don't use rslt as a boolean.
2340 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2341 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2342 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2343 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2345 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2347 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2348 * configure: Rebuilt.
2350 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2352 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2353 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2355 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2357 * cli/cli-decode.c (set_cmd_completer): New function.
2358 * command.h (set_cmd_completer): Declare.
2359 * cli/cli-decode.h (set_cmd_completer): Ditto.
2361 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2362 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2363 * win32-nat.c (_initialize_inftarg): Ditto.
2364 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2365 * proc-api.c (_initialize_proc_api): Ditto.
2366 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2367 * source.c (_initialize_source): Ditto.
2368 * exec.c (_initialize_exec): Ditto.
2369 * solib.c (_initialize_solib): Ditto.
2370 * top.c (init_main): Ditto.
2371 * tracepoint.c (_initialize_tracepoint): Ditto.
2372 * symfile.c (_initialize_symfile): Ditto.
2373 * printcmd.c (_initialize_printcmd): Ditto.
2374 * infcmd.c (_initialize_infcmd): Ditto.
2375 * corefile.c (_initialize_core): Ditto.
2377 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2379 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2381 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2383 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2385 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2387 * NEWS: Update headings, 5.2 has branched.
2389 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2391 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2392 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2393 (register_addr, REGISTER_RAW_SIZE): Likewise.
2394 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2395 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2397 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2399 * MAINTAINERS (x86-64): Add myself.
2400 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2401 changed value_ptr -> struct value *
2403 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2405 * configure.host (sparc64-*-freebsd): Add.
2406 * configure.tgt: Likewise.
2407 * config/sparc/fbsd.mh: New file.
2408 * config/sparc/fbsd.mt: Likewise.
2409 * config/sparc/nm-fbsd.h: Likewise.
2410 * config/sparc/tm-fbsd.h: Likewise.
2412 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2414 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2415 regformats/reg-s390x.dat.
2417 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2419 * utils.c: Add FIXME explaining true/false problem.
2421 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2423 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2425 2002-02-28 Michael Chastain <mec@shout.net>
2427 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2429 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2431 * gdbserver/linux-s390-low.c: New file.
2432 * regformats/reg-s390.dat: New file.
2433 * regformats/reg-s390x.dat: New file.
2434 * gdbserver/configure.srv: Add S/390.
2435 * gdbserver/Makefile.in: Add S/390.
2436 * configure.tgt: Enable gdbserver for S/390.
2438 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2440 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2441 first line of the doc string for "info dos", except at the end of
2442 the sentence, since the short help stops at the first period.
2444 2002-02-28 Jason Merrill <jason@redhat.com>
2446 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2448 2002-02-27 Fred Fish <fnf@redhat.com>
2450 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2451 comment (dumy -> dummy).
2453 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2455 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2457 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2459 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2461 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2463 * gdbserver/acconfig.h: New file.
2464 * gdbserver/i387-fp.c: New file.
2465 * gdbserver/i387-fp.h: New file.
2466 * gdbserver/linux-x86-64.c: New file.
2467 * regformats/reg-x86-64.dat: New file.
2468 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2469 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2470 * gdbserver/configure.in: Add support for regsets.
2471 * gdbserver/config.in: Regenerate.
2472 * gdbserver/configure: Regenerate.
2473 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2474 * gdbserver/linux-low.h: New file.
2475 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2477 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2478 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2479 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2480 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2481 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2482 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2483 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2484 "i387-fp.h". Add PTRACE_GETREGS and friends.
2485 * gdbserver/regcache.c (supply_register): New function.
2486 (supply_register_by_name): New function.
2487 (collect_register): New function.
2488 (collect_register_by_name): New function.
2490 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2492 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2493 (config.status): Add configure.srv dependency.
2494 (server_h): Add config.h dependency.
2496 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2498 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2499 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2500 * gdbserver/configure.srv: Change i386-*-linux* to use
2503 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2505 * x86-64-tdep.c: Re-indent. Update copyright date.
2507 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2509 From Michal Ludvig <mludvig@suse.cz>:
2510 * x86-64-tdep.c (value.h): Delete.
2511 (gdb_assert.h): Include.
2512 (x86_64_register_convert_to_virtual,
2513 x86_64_register_convert_to_raw ): Add check which lets only
2514 floating-point values to be converted.
2515 (value_push): Delete.
2516 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2517 (i386_gdbarch_init): Number of register_bytes fixed.
2519 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2521 * MAINTAINERS: Add x86-64 target.
2523 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2525 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2526 * osfsolib.c (solib_map_sections): Ditto.
2527 * irix5-nat.c (solib_map_sections): Ditto.
2528 * corelow.c (gdb_check_format): Ditto.
2529 * symfile.c (symfile_bfd_open): Ditto.
2530 * solib.c (solib_map_sections): Ditto.
2533 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2535 * remote.c (_initialize_remote): By default, disable ``e'' and
2536 ``E'' step out-of-range packets.
2538 2002-02-26 Andreas Schwab <schwab@suse.de>
2540 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2541 m68k_linux_frame_saved_pc.
2542 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2544 (SIGCONTEXT_PC_OFFSET): Remove.
2545 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2546 m68k_linux_sigtramp_saved_pc): New functions.
2547 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2548 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2549 (UCONTEXT_PC_OFFSET): Define.
2550 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2551 non-RT and RT signal trampolines.
2553 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2555 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2556 (TARGET_NBPG, STACK_END_ADDR): Delete
2557 (VARIABLES_INSIDE_BLOCK): Delete.
2559 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2561 * utils.c (perror_with_name): Make string parameter constant.
2562 (print_sys_errmsg): Ditto.
2564 * defs.h (perror_with_name): Update.
2565 (print_sys_errmsg): Update.
2568 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2570 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2571 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2573 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2575 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2576 if it already matches the current architecture from the exec file.
2577 Include arch-utils.h for gdbarch_info_init prototype.
2578 * Makefile.in (rs6000-nat.o): Update dependencies.
2580 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2582 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2583 list of exported variables.
2585 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2587 * gdbserver/configure.srv: New file.
2588 * gdbserver/configure.in: Use configure.srv instead
2589 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2591 * gdbserver/configure: Regenerated.
2592 * gdbserver/terminal.h: New file.
2593 * gdbserver/Makefile.in: Update for configure changes. Remove
2594 more unneeded include paths.
2596 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2598 From wiz at danbala:
2599 * config/sparc/tm-sp64.h: Fix grammar and typos.
2602 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2604 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2605 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2606 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2607 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2608 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2609 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2610 * s390-tdep.c: Ditto.
2611 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2612 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2613 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2614 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2615 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2616 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2617 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2618 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2619 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2620 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2623 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2625 * lin-thread.c: Delete file.
2626 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2627 to gdb_proc_service.h.
2628 * configure: Re-generate.
2630 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2631 * serial.c (serial_open): Delete check for "ocd".
2634 * Makefile.in (linux-thread.o): Delete target.
2635 * linux-thread.c: Delete file.
2637 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2638 renamed SH files to be consistent.
2640 * symtab.c (sort_search_symbols): Use xfree.
2642 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2644 * arm-linux-tdep.c (arm_linux_init_abi): Register
2645 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2646 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2647 definition with undef, since we don't want the sysvr4 definition.
2648 (SKIP_TRAMPOLINE_CODE): Likewise.
2650 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2652 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2654 * configure.in: (AC_CHECK_FUNCS) Added test for
2655 canonicalize_file_name Regenerated.
2656 * config.in, configure: Regenerated.
2657 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2658 defined use canonicalize_file_name.
2660 2002-02-23 Michael Chastain <mec@shout.net>
2662 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2664 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2666 * README: Remove references to cygnus.com.
2667 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2668 dot com'' form. Remove references to cygnus.com and sourceware.
2670 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2672 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2673 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2674 1003.1-2001 no longer allows "head -1".
2675 * gdb/Makefile.in (version.c): Likewise.
2676 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2677 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2678 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2680 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2682 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2683 * command.h (cmd_cfunc_eq): Declare.
2684 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2686 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2687 ``struct cmd_list_element *''.
2688 * cli/cli-cmds.c (is_complete_command): Update. Use
2690 * top.c (execute_command): Pass the command to
2691 is_complete_command.
2692 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2694 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2696 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2697 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2698 architecture defines.
2699 * s390-tdep.c (s390_gdbarch_init): Likewise.
2701 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2703 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2704 (arm_linux_push_arguments): Likewise.
2705 (arm_linux_init_abi): Register them. Also register linux-specific
2707 (find_minsym_and_objfile): Use strcmp, not STREQ.
2708 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2709 (arm_linux_call_dummy_words): Delete declaration.
2710 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2711 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2713 (LOWEST_PC): Delete.
2715 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2717 * maint.c (print_section_info): Do not prepend `0x' to filepos
2718 output, it will be handled by local_hex_string_custom.
2720 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2722 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2723 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2724 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2726 2002-02-22 Jim Blandy <jimb@redhat.com>
2728 Indicate that the bcache functions don't change the strings
2730 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2731 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2733 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2735 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2737 2002-02-21 Christopher Faylor <cgf@redhat.com>
2739 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2740 find the complete path to a loaded DLL.
2742 2002-02-21 Fred Fish <fnf@redhat.com>
2744 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2745 that marks the end of the range of a function, enter a line number
2746 entry that has a line number of zero and a PC offset that matches
2747 the end of the function. This starts a range of PC's for which no
2748 line number information is known.
2749 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2750 PC's for which no line number info is found (line number is zero)
2751 then we didn't find any valid line information.
2752 * symtab.h: Document use of zero line number entry.
2754 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2756 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2757 (have_ptrace_getvrregs): Define for run time checks.
2758 (gdb_vrregset_t): New type for Altivec register handling.
2759 (fetch_register, store_register): Fetch/store altivec register
2761 (fetch_altivec_register, store_altivec_register): New functions.
2762 (supply_vrregset, fill_vrregset): New functions.
2763 (fetch_altivec_registers, store_altivec_registers): New functions.
2764 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2767 2002-02-21 Jiri Smid <smid@suse.cz>
2769 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2771 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2773 * Makefile.in (armnbsd-nat.o): Update dependencies.
2774 * armnbsd-nat.c (supply_gregset): New function. Common code to
2775 supply the integer register set.
2776 (supply_fparegset): New function. Similar for FPA registers.
2777 (fetch_regs, fetch_fp_regs): Use them.
2778 (fetch_core_registers): Likewise.
2779 (fetch_elfcore_registers): New function.
2780 (arm_netbsd_elfcore_fns): New core-file type specification.
2781 (_initialize_arm_netbsd_nat): Register it.
2783 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2785 * armnbsd-nat.c: Include gdbcore.h.
2786 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2787 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2788 'void' to declaration, to shut up ARI.
2789 (fetch_core_registers): Make static. Rewrite using supply_register.
2790 (arm_netbsd_core_fns): New core-file type specification.
2791 (_initialize_arm_netbsd_nat): New function.
2793 2002-02-21 Christopher Faylor <cgf@redhat.com>
2795 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2798 2002-02-20 Christopher Faylor <cgf@redhat.com>
2800 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2803 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2805 * jv-exp.y (parse_number): Change type of implicit longs
2806 to builtin_type_uint64.
2808 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2810 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2811 to be an integer instead of a `union wait'.
2813 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2815 * mips-linux-nat.c: Call the operating system GNU/Linux.
2816 * mips-linux-tdep.c: Likewise.
2817 * mips-tdep.c: Likewise.
2819 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2822 * jv-exp.y (parse_number): Handle 64-bit integers.
2824 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2826 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2827 AC_STDC_HEADERS to AC_HEADER_STDC.
2828 * gdbserver/configure: Regenerated.
2830 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2832 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2834 * sparc-tdep.c (get_longjmp_target): Likewise.
2836 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2838 * News: Add news about ARM and Multi-arch. Mention the new target
2841 2002-02-19 Jim Blandy <jimb@redhat.com>
2843 * stabsread.c (error_type_complaint): Improve error message.
2845 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2847 * gdbserver/README: Update documentation.
2848 * gdbserver/configure.in: Update configury to match documentation.
2849 * gdbserver/Makefile.in: Likewise.
2850 * gdbserver/configure: Regenerated.
2851 * gdbserver/aclocal.m4: New file, generated by aclocal.
2852 * gdbserver/config.in: New file, generated by autoheader.
2854 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2856 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2859 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2861 * arm-tdep.h (enum arm_float_model): New enum.
2862 (struct gdbarch_tdep): Add fp_model.
2863 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2864 up floating-point conversions until we know the floating-point model
2865 in use by the inferior. Don't complain about being unable to
2866 determine the ABI of the inferior when we don't have one.
2867 (arm_extract_return_value): Support different floating-point models.
2868 (arm_store_return_value): Likewise.
2869 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2871 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2873 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2875 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2876 of ``current_gdbarch''.
2878 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2880 * armnbsd-nat.c : ANSIfy all function declarations.
2881 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2882 (fetch_inferior_registers): Re-implement in terms of above.
2883 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2884 (store_inferior_registers): Re-implement in terms of above.
2886 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2888 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2890 * arm-linux-tdep.c: Likewise.
2891 * config/arm/tm-linux.h: Likewise.
2893 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2895 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2896 * config/arm/nbsd.mt (TM_FILE): Delete.
2897 * config/arm/tm-nbsd.h: Delete.
2899 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2901 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2902 Initialize CALL_DUMMY_LENGTH.
2904 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2906 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2908 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2909 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2910 defines one thing and that is incorrect for this port.
2911 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2913 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2915 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2917 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2919 * win32-nat.c (display_selector): New function. Displays information
2920 about the information returned by GetThreadSelectorEntry API function.
2921 (display_selectors): New function. Displays the infomation of
2922 the selector given as argument, or of CS, DS ans FS selectors
2923 if no argument is given.
2924 ( _initialize_inftarg): Add "w32" as info prefix command.
2925 Add "info w32 selector" as command calling display_selectors.
2927 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2929 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2930 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2933 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2935 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2937 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2939 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2940 (arm_fix_call_dummy): Call it.
2941 (arm_call_dummy_breakpoint_offset): Delete.
2942 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2943 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2945 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2947 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2948 Default to func_frame_chain_valid.
2949 * gdbarch.h, gdbarch.c: Re-generate.
2950 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2952 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2954 * ppc-linux-nat.c: Update copyright.
2955 (fetch_register, store_register): Add tid parameter, don't compute
2957 (fetch_ppc_registers, store_ppc_registers): Add tid
2958 parameter. Pass it along to callees.
2959 (fetch_inferior_registers, store_inferior_registers): Compute tid
2960 here, and pass it to calleed functions.
2961 (fill_gregset, supply_fpregset): Clean up formatting.
2963 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2965 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2966 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2968 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2970 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2971 * gdbarch.c gdbarch.h: Regenerate.
2972 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2974 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2975 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2976 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2978 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2979 * arm-tdep.c (arm_get_longjmp_target): New function.
2980 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2981 this to a positive value register arm_get_longjmp_target as the
2983 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2984 (arm_linux_init_abi): Set up longjmp description in tdep.
2985 * armnbsd-nat.c (get_longjmp_target): Delete.
2986 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2987 description in tdep.
2988 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2989 (get_longjmp_target): Delete declaration.
2990 (GET_LONGJMP_TARGET): Delete.
2991 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2992 (GET_LONGJMP_TARGET): Delete.
2994 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2996 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2997 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2998 of ``current_gdbarch''.
3000 2002-02-17 Tom Tromey <tromey@redhat.com>
3002 * cli/cli-cmds.c (compare_strings): New function.
3003 (complete_command): Only print each unique item once.
3004 * completer.h (complete_line): Declare.
3005 * completer.c (complete_line): New function.
3006 (line_completion_function): Use it.
3008 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3010 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3011 * gdbarch.h, gdbarch.c: Re-generate.
3013 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3015 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3017 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3019 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3020 * valops.c (value_arg_coerce): Don't take the address of a reference
3021 to convert an argument to a reference.
3023 2002-02-15 Christopher Faylor <cgf@redhat.com>
3025 * win32-nat.c (get_image_name): New function.
3026 (handle_load_dll): Use get_image_name function.
3027 (get_child_debug_event): Avoid registering debug events until possibly
3028 execed process is started.
3029 (child_create_inferior): Allow invocation via shell so that command
3030 line redirection, etc. works ok.
3031 (_initialize_inftarg): Add new command: "set shell" to control whether
3032 a shell is used to start a process.
3034 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3036 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3037 instead of find_register_by_number.
3038 (cannot_store_register): Likewise.
3040 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3042 * dwarf2read.c: Replace fprintf (stderr, ...) by
3043 fprintf_unfiltered (gdb_stderr, ...).
3045 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3047 * gdbserver/gdbserver.1: Document --attach.
3049 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3051 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3053 * arm-tdep.c (arm_default_arm_le_breakpoint)
3054 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3055 (arm_default_thumb_be_breakpoint): New. Initialize them from
3056 traditional breakpoint defines.
3057 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3058 (arm_gdbarch_init): Initialize new breakpoint variables.
3059 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3060 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3061 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3062 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3064 (arm_netbsd_init_abi_common): ... here; new function.
3065 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3066 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3067 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3068 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3070 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3072 * arm-tdep.h (enum arm_abi): New enum.
3073 (struct gdbarch_tdep): New structure.
3074 (LOWEST_PC): Provide a default.
3075 (arm_gdbarch_register_os_abi): Declare new function.
3076 * arm-tdep.c (arm_abi_names): New array.
3077 (process_note_abi_tag_sections): New function.
3078 (get_elfosabi): New function.
3079 (arm_gdbarch_register_os_abi): New function.
3080 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3081 support for that ABI has been built in, then call the appropriate
3082 configuration routine. Use gdbarch_num_regs() to get the number
3084 (arm_dump_tdep): New function.
3085 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3086 place-holder functions.
3087 (_initialize_arm_tdep): Register them.
3088 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3090 * armnbsd-tdep.c: New file.
3091 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3092 * config/arm/nbsd.mt (TDEPFILES): Add it.
3093 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3095 * armnbsd-nat.c: Include regcache.h.
3096 * Makefile.in (armnbsd-nat.o): Update dependency list.
3098 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3100 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3102 * gdbserver/Makefile.in: Fix typos in target rules.
3104 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3106 Fix part of PR gdb/267.
3107 * linespec.c (find_methods): Handle constructors specially for now.
3109 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3111 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3113 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3114 standard_coerce_float_to_double().
3116 2002-02-14 Christopher Faylor <cgf@redhat.com>
3118 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3121 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3123 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3124 find_variant_by_name, because it confuses the multiarch
3125 framework. Return NULL if there isn't an architecture with the
3126 user supplied name, instead of forcing a different one without
3127 recording the change with the multiarch machinery.
3128 (find_variant_by_name): Delete.
3130 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3132 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3133 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3135 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3137 * stack.c (print_frame_info_base): When calling
3138 print_frame_info_listing_hook, set current_source_symtab.
3140 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3142 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3143 and remove unused $(INCLUDE_DIR).
3144 Add regcache.c to OBS.
3145 Add generated register protocol files to clean target.
3146 Update dependencies for new objects, obsolete old target code.
3148 * gdbserver/linux-low.c: Remove all platform-specific code to
3149 new files. Remove various dead code. Update to use regcache
3151 * gdbserver/remote-utils.c (fromhex): Add return statement
3153 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3155 (input_interrupt): Add integer parameter to match prototype
3156 of a signal handler.
3157 (outreg): Use register_data ().
3158 (prepare_resume_reply): Use gdbserver_expedite_regs.
3159 * gdbserver/server.c (main): Dynamically allocate own_buf because
3160 PBUFSIZ is no longer constant. Use registers_to_string () and
3161 registers_from_string ().
3162 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3163 for error (), fatal (), and warning (). Update definition of
3164 PBUFSIZ to use regcache functionality. Add include guard.
3165 * gdbserver/utils.c (fatal): Add missing ``const''.
3166 (warning): New function.
3168 * regformats/regdat.sh: Include "regcache.h" in generated files.
3169 Provide init_registers () function.
3170 * regformats/regdef.h: Add prototype for set_register_cache ().
3173 * gdbserver/linux-arm-low.c: New file.
3174 * gdbserver/linux-i386-low.c: New file.
3175 * gdbserver/linux-ia64-low.c: New file.
3176 * gdbserver/linux-m68k-low.c: New file.
3177 * gdbserver/linux-mips-low.c: New file.
3178 * gdbserver/linux-ppc-low.c: New file.
3179 * gdbserver/linux-sh-low.c: New file.
3181 * gdbserver/regcache.c: New file.
3182 * gdbserver/regcache.h: New file.
3184 * gdbserver/low-linux.c: Removed obsolete file.
3186 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3188 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3189 * config/i386/linux.mt: Likewise.
3190 * config/ia64/linux.mt: Likewise.
3191 * config/m68k/linux.mh: Likewise.
3192 * config/powerpc/linux.mh: Likewise.
3193 * config/mips/linux.mt: Likewise.
3195 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3197 * config/i386/i386lynx.mh: Mark gdbserver variables
3198 as (currently) obsolete for this target.
3199 * config/i386/nbsd.mt: Likewise.
3200 * config/i386/nbsdelf.mt: Likewise.
3201 * config/m32r/m32r.mt: Likewise.
3202 * config/m68k/m68klynx.mh: Likewise.
3203 * config/m68k/nbsd.mt: Likewise.
3204 * config/m68k/sun3os4.mh: Likewise.
3205 * config/mips/vr5000.mt: Likewise.
3206 * config/ns32k/nbsd.mt: Likewise.
3207 * config/pa/hppabsd.mh: Likewise.
3208 * config/pa/hppaosf.mh: Likewise.
3209 * config/powerpc/nbsd.mt: Likewise.
3210 * config/rs6000/rs6000lynx.mh: Likewise.
3211 * config/s390/s390.mt: Likewise.
3212 * config/s390/s390x.mt: Likewise.
3213 * config/sparc/sparclynx.mh: Likewise.
3214 * config/sparc/sun4os4.mh: Likewise.
3215 * config/i386/x86-64linux.mt: Likewise.
3216 * config/sparc/linux.mh: Likewise.
3218 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3220 * configure.tgt: Configure gdbserver only for known working
3221 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3222 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3223 SUBDIRS if it is configured. Update comment for ${nativefile}.
3224 * configure: Regenerated.
3226 2002-02-13 Michael Snyder <msnyder@redhat.com>
3228 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3230 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3231 (default_gcore_mach): Just return 0, work around a problem in bfd.
3232 (default_gcore_target): OK to return NULL if exec_bfd is null.
3233 (make_mem_sec): Use a cast, avoid a warning.
3235 * procfs.c (find_memory_regions_callback): Use a cast instead of
3236 calling host_pointer_to_address (which complains if
3237 sizeof (host pointer) != sizeof (target pointer)).
3238 (procfs_make_note_section): Avoid overflow in psargs string.
3240 * procfs.c (procfs_make_note_section): Make the default
3241 implementation return an error.
3243 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3245 * procfs.c (procfs_make_note_section): Provide a default definition
3246 (for alpha-dec-osf4.0f). Fix typos.
3248 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3250 * linux-proc.c: Add include of regcache.h.
3251 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3253 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3255 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3256 * memattr.c (create_mem_region): Disallow useless empty region.
3257 Regions are half-open intervals, so allow [A..B) [B..C) as
3260 2002-02-13 Michael Chastain <mec@shout.net>
3262 * defs.h: Kill CONST_PTR.
3263 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3264 * c-lang.c (c_builtin_types): Likewise.
3265 * ch-lang.c (ch_builtin_types): Likewise.
3266 * f-lang.c (f_builtin_types): Likewise.
3267 * language.c (unknown_builtin_types): Likewise.
3268 * m2-lang.c (m2_builtin_types): Likewise.
3269 * p-lang.c (pascal_builtin_types): Likewise.
3270 * scm-lang.c (c_builtin_types): Likewise.
3272 2002-02-13 Keith Seitz <keiths@redhat.com>
3274 * arm-tdep.h (arm_get_next_pc): Add declaration.
3276 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3278 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3279 with other related struct-returning functions.
3280 (arm_extract_struct_value_address): New function.
3281 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3282 initialize float_format, double_format and long_double_format as
3283 appropriate to the endianness of the target.
3284 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3285 (arm_use_struct_convention): Delete declaration.
3286 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3288 2002-02-13 Keith Seitz <keiths@redhat.com>
3290 * defs.h (core_addr_to_string_nz): New function.
3292 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3294 Apply missing bits of 2002-01-15 patch.
3295 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3296 (fill_fpregset): Use i387_fill_fsave.
3298 2002-02-12 Keith Seitz <keiths@redhat.com>
3300 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3301 (core_addr_to_string_nz): New function.
3303 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3305 * arm-linux-nat.c: Really include arm-tdep.h.
3306 * config/arm/tm-linux.h (struct type, struct value): Declare.
3308 2002-02-11 Michael Snyder <msnyder@redhat.com>
3310 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3311 (gcore section): Ifdef for Solaris and Unixware only.
3312 (procfs_do_thread_registers): Unixware needs one lwpstatus
3313 per thread (not one prstatus or pstatus).
3314 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3315 not over all gdb threads. For unixware, call elfcore_write_pstatus
3316 once before iterating over threads.
3318 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3320 * arm-tdep.h: New file.
3321 * arm-tdep.c: Include arm-tdep.h.
3322 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3323 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3324 (arm_print_float_info, arm_register_type, convert_to_extended)
3325 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3326 (arm_extract_return_value, arm_register_name): Make static.
3327 (arm_software_single_step): Similarly. Fix types in declaration.
3328 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3329 (arm_store_return_value, arm_store_struct_return): New functions.
3330 (arm_gdbarch_init): Register the above functions. Also register
3331 call_dummy_start_offset, sizeof_call_dummy_words,
3332 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3333 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3334 max_register_virtual_size, register_size. Set up
3335 prologue_cache.saved_regs here, rather than ...
3336 (_initialize_arm_tdep): ... here.
3337 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3339 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3340 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3341 (arm_print_float_info, arm_register_type, convert_to_extended)
3342 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3343 (arm_extract_return_value, arm_register_name): Delete declarations.
3344 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3345 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3346 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3347 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3348 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3349 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3350 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3351 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3352 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3353 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3354 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3355 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3357 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3358 * remote-rdi.c remote-rdp.c: Likewise.
3359 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3360 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3361 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3364 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3365 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3366 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3367 from non-ARM_ prefixed definitions.
3368 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3370 * remote-rdi.c remote-rdp.c: Likewise.
3371 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3373 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3375 * arm-tdep.c (arm_frameless_function_invocation)
3376 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3377 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3378 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3379 (arm_pop_frame, arm_get_next_pc): Make static.
3380 (arm_gdbarch_init): Register above in gdbarch structure.
3381 (arm_read_fp): Renamed from arm_target_read_fp.
3382 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3383 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3384 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3385 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3386 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3387 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3388 (arm_pc_is_thumb_dummy): Delete declarations.
3389 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3390 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3391 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3392 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3394 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3396 * symtab.c (compare_search_syms): New function.
3397 (sort_search_symbols): New function.
3398 (search_symbols): Sort symbols after searching rather than
3401 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3403 * NEWS: Linux -> GNU/Linux.
3405 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3407 * gdbarch.sh: For for level one methods, disallow a definition
3408 when partially multi-arched. Add comments explaining rationale.
3409 * gdbarch.h: Re-generate.
3411 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3413 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3416 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3418 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3420 * gdbarch.c: Re-generate.
3422 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3424 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3425 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3428 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3430 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3432 (PUSH_ARGUMENTS): Switch to using predefault.
3433 * gdbarch.c: Regenerate.
3435 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3437 * valops.c (PUSH_ARGUMENTS): Delete definition.
3438 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3439 partial. Default to default_push_arguments.
3440 * gdbarch.h, gdbarch.c: Regenerate.
3442 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3444 * defs.h (throw_exception): Rename return_to_top_level. Update
3446 * utils.c (error_stream, internal_verror, quit): Ditto.
3447 * top.c (throw_exception, catcher): Ditto.
3448 * sparclet-rom.c (sparclet_load): Ditto.
3449 * remote.c (interrupt_query, minitelnet): Ditto.
3450 * remote-sds.c (interrupt_query): Ditto.
3451 * remote-mips.c (mips_error, mips_kill): Ditto.
3452 * ocd.c (interrupt_query): Ditto.
3453 * monitor.c (monitor_interrupt_query): Ditto.
3454 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3455 * target.h: Update comment.
3457 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3459 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3461 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3462 default_double_format.
3463 * gdbarch.h, gdbarch.c: Re-generate.
3464 * findvar.c (floatformat_unknown): Delete variable definition.
3465 * doublest.h (floatformat_unknown): Delete variable declaration.
3467 2002-02-09 Jim Blandy <jimb@redhat.com>
3469 * stabsread.c (read_type): Add code to parse Sun's syntax for
3470 prototyped function types.
3472 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3474 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3475 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3477 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3479 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3480 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3481 now _initialize_xcoffsolib gets called again and overrides the
3482 commands from solib.c in a native configuration.
3484 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3486 * doublest.c (store_typed_floating): Don't try to return a value.
3489 2002-02-08 Jim Blandy <jimb@redhat.com>
3491 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3492 is prototyped and has no arguments, print its argument list as
3495 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3497 * MAINTAINERS (write-after-approval): Add myself.
3498 (paper-trail): I've escaped!
3500 2002-02-08 Christopher Faylor <cgf@redhat.com>
3502 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3504 (_initialize_check_for_gdb_ini): Ditto.
3506 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3508 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3509 xaprintf -> xasprintf.
3511 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3513 * win32-nat.c: Remove use of printf and sprintf functions.
3515 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3517 * arm-tdep.c (arm_frame_chain_valid): Make static.
3518 (arm_push_arguments): Likewise.
3519 (arm_gdbarch_init): New function.
3520 (_initialize_arm_tdep): Call it.
3521 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3522 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3523 (FRAME_CHAIN_VALID): Delete.
3524 (arm_frame_chain_valid): Delete declaration.
3525 (PUSH_ARGUMENTS): Delete.
3526 (arm_push_arguments): Delete declaration.
3527 (CALL_DUMMY_P): Delete.
3529 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3530 Corinna Vinschen <vinschen@redhat.com>
3532 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3533 on builtin float types.
3535 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3537 * utils.c: Include <curses.h> before "bfd.h".
3538 * tui/tui-hooks.c: Likewise.
3539 * tui/tui.c: Likewise.
3540 * tui/tuiCommand.c: Likewise.
3541 * tui/tuiData.c: Likewise.
3542 * tui/tuiDataWin.c: Likewise.
3543 * tui/tuiDisassem.c: Likewise.
3544 * tui/tuiGeneralWin.c: Likewise.
3545 * tui/tuiIO.c: Likewise.
3546 * tui/tuiLayout.c: Likewise.
3547 * tui/tuiRegs.c: Likewise.
3548 * tui/tuiSource.c: Likewise.
3549 * tui/tuiSourceWin.c: Likewise.
3550 * tui/tuiStack.c: Likewise.
3551 * tui/tuiWin.c: Likewise.
3553 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3555 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3556 to include space for pseudoregs as well. Update loops accordingly.
3557 (sh_fp_frame_init_saved_regs): Ditto.
3558 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3560 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3562 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3563 Add Richard Earnshaw to Arm maintainers.
3565 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3567 * defs.h (warning_begin): Delete declaration.
3569 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3572 2002-02-07 Michael Snyder <msnyder@redhat.com>
3574 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3575 Logic bug, remove misplaced else.
3577 2002-02-07 Klee Dienes <klee@apple.com>
3579 * fork-inferior.c (fork_inferior): Add '!' to the list of
3580 characters that need to be quoted when building a string for the
3581 shell. Quote '!' specifically with a backslash, since CSH chokes
3582 when trying to evaluate "str!str".
3584 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3586 * rdi-share/host.h: Only provide a typedef for bool if it is not
3589 2002-02-04 Michael Snyder <msnyder@redhat.com>
3591 * breakpoint.h (enum bptype): Add new overlay event bp type.
3592 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3594 * breakpoint.c (create_internal_breakpoint): New function.
3595 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3596 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3597 (create_thread_event_breakpoint): Ditto.
3598 (create_solib_event_breakpoint): Ditto.
3599 (create_overlay_event_breakpoint): New function.
3600 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3601 (update_breakpoints_after_exec): Delete and re-initialize
3602 overlay event breakpoints after an exec. Add FIXME comment
3603 about longjmp breakpoint.
3604 (print_it_typical): Ignore overlay event breakpoints.
3605 (print_one_breakpoint): Ditto.
3607 (bpstat_what): Do not stop for overlay event breakpoints.
3608 (delete_breakpoint): Don't delete overlay event breakpoints.
3609 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3610 (breakpoint_re_set): Re-create overlay event breakpoint.
3612 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3613 (overlay_manual_command): Disable overlay breakpoints.
3614 (overlay_off_command): Disable overlay breakpoints.
3616 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3618 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3619 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3620 to here from config/tm-arm.h.
3621 (coff_sym_is_thumb): Make static.
3622 (arm_elf_make_msymbol_special): New function.
3623 (arm_coff_make_msymbol_special): New function.
3624 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3625 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3626 (coff_sym_is_thumb): Delete declaration.
3627 (arm_elf_make_msymbol_special): Declare.
3628 (arm_coff_make_msymbol_special): Declare.
3629 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3630 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3632 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3634 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3636 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3638 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3639 * gdbarch.c gdbarch.h: Regenerate.
3640 * arch-utils.c (default_print_float_info): New function.
3641 * arch-utils.h (default_print_float_info): Prototype it.
3642 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3643 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3644 (PRINT_FLOAT_INFO): Document it.
3646 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3647 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3648 (PRINT_FLOAT_INFO): Define.
3650 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3652 * win32-nat.c (_initialize_check_for_gdb_ini):
3653 Add typecast to sprintf argument to suppress a warning.
3655 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3657 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3658 to allow easier handling of pass state.
3659 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3660 that gives exception name and address.
3661 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3662 and set last_sig value to ourstatus->value.sig. Some missing
3664 (child_continue): Correctly report continue_status.
3665 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3666 TARGET_SIGNAL_0 (new default value).
3667 (child_resume): consider sig argument passed to decide if
3668 the exception should be passed to debuggee or not.
3670 2002-02-05 Michael Snyder <msnyder@redhat.com>
3672 * regcache.c (fetch_register): Call target_fetch_register
3673 only if we don't call FETCH_PSEUDO_REGISTER.
3674 (store_register): Call target_store_register only if we
3675 don't call STORE_PSEUDO_REGISTER.
3677 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3679 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3680 ELF_MAKE_MSYMBOL_SPECIAL.
3681 * gdbarch.c, gdbarch.h: Regenerate.
3682 * arch-utils.c (default_make_msymbol_special): New function.
3683 * arch-utils.h (default_make_msymbol_special): Export.
3684 * elfread.c (elf_symtab_read): Compile use of
3685 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3687 * coffread.c (coff_symtab_read): Ditto, for
3688 COFF_MAKE_MSYMBOL_SPECIAL.
3690 2002-02-05 Jim Blandy <jimb@redhat.com>
3692 * solib-svr4.c (svr4_truncate_ptr): New function.
3693 (svr4_relocate_section_addresses): Do the address arithmetic with
3694 the appropriate truncation for target addresses, even when
3695 CORE_ADDR is larger than a target address.
3697 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3699 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3702 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3704 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3707 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3709 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3711 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3713 * gdbserver/linux-low.c: Remove unused include files.
3715 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3717 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3718 (read_inferior_memory): Use it.
3719 (write_inferior_memory): Likewise.
3721 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3723 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3724 grubbing through sys_errlist.
3726 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3728 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3730 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3731 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3733 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3735 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3736 (do_sfunc, set_cmd_sfunc): New functions.
3738 * command.h (struct cmd_list_element): Add field func.
3739 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3740 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3741 * cli/cli-decode.h: Ditto.
3743 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3744 (help_all, help_cmd_list): Ditto.
3745 (find_cmd, complete_on_cmdlist): Ditto.
3746 * top.c (execute_command): Ditto.
3748 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3751 * infcmd.c (notice_args_read): Fix function signature.
3753 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3754 * cli/cli-decode.c (add_set_cmd): Ditto.
3755 * utils.c (initialize_utils): Ditto.
3756 * maint.c (_initialize_maint_cmds): Ditto.
3757 * infrun.c (_initialize_infrun): Ditto.
3758 * demangle.c (_initialize_demangler): Ditto.
3759 * remote.c (add_packet_config_cmd): Ditto.
3760 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3761 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3762 * proc-api.c (_initialize_proc_api): Ditto.
3763 * kod.c (_initialize_kod): Ditto.
3764 * valprint.c (_initialize_valprint): Ditto.
3765 * top.c (init_main): Ditto.
3766 * infcmd.c (_initialize_infcmd): Ditto.
3767 * corefile.c (_initialize_core): Ditto.
3768 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3769 * arch-utils.c (initialize_current_architecture): Ditto.
3770 (_initialize_gdbarch_utils): Ditto.
3771 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3773 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3774 * wince.c (_initialize_inftarg): Ditto.
3775 * symfile.c (_initialize_symfile): Ditto.
3776 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3777 * language.c (_initialize_language): Ditto.
3778 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3780 2002-02-04 Michael Snyder <msnyder@redhat.com>
3782 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3784 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3786 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3787 Add rules for building the register data files.
3789 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3791 * regformats/regdat.sh: Add braces to the definition of
3792 expedite_regs_${arch}.
3794 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3796 * regformats/regdef.h (struct reg): Add comment describing the
3797 requirements for offset and size fields.
3799 2002-02-04 Andreas Schwab <schwab@suse.de>
3801 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3802 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3804 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3806 * gdbarch.sh (copyright): Update years in generated header.
3807 (SMASH_TEXT_ADDRESS): Add rule.
3808 * gdbarch.h, gdbarch.c: Re-generate.
3809 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3810 * dbxread.c: Likewise.
3811 * dwarfread.c: Likewise.
3812 * elfread.c: Likewise.
3813 * somread.c: Likewise.
3815 * arm-tdep.c (arm_smash_text_address): New function.
3816 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3818 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3820 Add support for hardware watchpoints on win32 native.
3821 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3822 CONTEXT_DEBUG_REGISTERS.
3823 (dr variable): New variable. Static array containing a local copy
3825 (debug_registers_changed): New variable. Reflects when debug registers
3826 are changed and need to be written to inferior.
3827 (debug_registers_used): New variable. Reflects when any debug register
3828 was set, used when new threads are created.
3829 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3831 (thread_rec): Set dr array if id is the thread of current_event .
3832 (child_continue, child_resume): Change the debug registers for all
3833 threads if debug_registers_changed.
3834 (child_add_thread): Change the debug registers if debug_registers_used.
3835 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3836 Link nm.h to new nm-cygwin.h file.
3837 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3838 of hardware registers.
3840 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3842 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3843 Restore behavour broken by 2002-01-20 Andrew Cagney
3844 <ac131313@redhat.com> IEEE_FLOAT removal.
3846 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3848 * c-valprint.c (c_val_print): Pass a proper valaddr to
3849 cp_print_class_method.
3850 * valops.c (search_struct_method): If there is only one method
3851 and args is NULL, return that method.
3853 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3855 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3856 accessing tag_name directly.
3858 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3860 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3861 of accessing tag_name directly.
3863 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3866 * gdbtypes.c (replace_type): New function.
3867 * gdbtypes.h (replace_type): Add prototype.
3868 * stabsread.c (read_type): Use replace_type.
3870 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3872 * Makefile.in (memattr.o): Add missing dependencies rule.
3874 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3876 * breakpoint.c (break_at_finish_command): Really export.
3877 (break_at_finish_at_depth_command): Ditto.
3878 (tbreak_at_finish_command): Ditto.
3879 * hppa-tdep.c: Include completer.h.
3880 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3881 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3883 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3885 * utils.c (do_write): New function.
3886 (error_stream): Rewrite combining the code from error_begin and
3888 (verror): Rewrite using error_stream.
3889 (error_begin): Delete function.
3891 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3893 * utils.c (error_begin): Make static.
3894 * defs.h (error_begin): Delete declaration.
3896 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3897 (decode_line_1): Use cplusplus_error instead of error_begin,
3898 cplusplus_hint and return_to_top_level.
3899 * coffread.c (coff_symfile_read): Use error instead of error_begin
3900 and return_to_top_level.
3901 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3903 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3905 * language.h (type_error, range_error): Make string parameter
3907 * language.c (warning_pre_print): Delete extern declaration.
3908 * dwarfread.c (warning_pre_print): Ditto.
3909 * language.c (type_error, range_error): Rewrite to use verror and
3910 vwarning instead of warning_begin.
3912 2002-02-01 Michael Snyder <msnyder@redhat.com>
3914 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3915 (set_ignore_count): Move misplaced comment back where it belongs.
3917 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3919 * command.h (NO_FUNCTION): Delete macro.
3920 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3921 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3922 * tracepoint.c (_initialize_tracepoint): Ditto.
3923 * cli/cli-decode.c (add_set_cmd): Ditto.
3924 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3926 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3928 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3929 Update ``this'' pointer when calling virtual functions.
3931 2002-02-01 Michael Snyder <msnyder@redhat.com>
3933 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3934 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3936 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3938 * regformats/reg-arm.dat: New file.
3939 * regformats/reg-i386.dat: New file.
3940 * regformats/reg-ia64.dat: New file.
3941 * regformats/reg-m68k.dat: New file.
3942 * regformats/reg-mips.dat: New file.
3943 * regformats/reg-ppc.dat: New file.
3944 * regformats/reg-sh.dat: New file.
3945 * regformats/regdef.h: New file.
3946 * regformats/regdat.sh: New file.
3948 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3950 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3951 (arm_frame_args_address, arm_frame_locals_address): New functions.
3952 (arm_frame_num_args): New function.
3953 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3954 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3955 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3957 2002-01-31 Michael Snyder <msnyder@redhat.com>
3959 * breakpoint.c (break_at_finish_command): Export.
3960 (break_at_finish_at_depth_command): Export.
3961 (tbreak_at_finish_command): Export.
3962 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3963 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3964 "tbreak" commands, which are HPPA specific.
3966 * printcmd.c (disassemble_command): Remove an ancient
3967 artifact of an old merge.
3969 * symfile.h (enum overlay_debugging_state):
3970 Define enum constant values for overlay mode.
3971 * symfile.c (overlay_debugging): Use enums instead of literals.
3972 (overlay_is_mapped, overlay_auto_command,
3973 overlay_manual_command): Ditto.
3975 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3976 breakpoint_here_p, breakpoint_inserted_here_p,
3977 breakpoint_thread_match, bpstat_stop_status,
3978 describe_other_breakpoints, check_duplicates, clear_command):
3979 Coding standard fixes.
3981 * target.c (target_xfer_memory): Add spaces, coding standard.
3982 (do_xfer_memory): Add missing line to trust-readonly
3983 code: check bfd SEC_READONLY flag for section.
3985 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3987 * PROBLEMS: Fix typo, 5.1->5.1.1.
3989 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3991 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3992 data symbols, since we search based on textlow and texthigh.
3993 (find_pc_sect_symtab): Likewise.
3995 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3997 * defs.h (vwarning): Declare.
3998 * utils.c (vwarning): New function.
3999 (warning): Call vwarning.
4000 (warning_begin): Delete function.
4002 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4003 the warning message.
4004 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4007 2002-01-30 Michael Snyder <msnyder@redhat.com>
4009 * NEWS: Mention "set trust-readonly-sections" command.
4010 Mention generate-core-file command.
4012 2002-01-15 Michael Snyder <msnyder@redhat.com>
4014 * target.c: New command, "set trust-readonly-sections on".
4015 (do_xfer_memory): Honor the suggestion to trust readonly sections
4016 by reading them from the object file instead of from the target.
4017 (initialize_targets): Register command "set trust-readonly-sections".
4019 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4021 * parse.c (target_map_name_to_register): Simplify, search regs and
4022 pseudo-regs using a single loop.
4024 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4026 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4028 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4030 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4031 * config/i386/i386v42mp.mh: Add i387-nat.o .
4032 * i386v4-nat.c: Include i387-nat.h.
4033 (supply_fpregset): Use i387_supply_fsave.
4034 (fill_fpregset): Use i387_fill_fsave.
4036 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4038 * arm-tdep.c (arm_call_dummy_words): Define.
4039 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4040 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4041 (CALL_DUMMY_WORDS): Define.
4042 (arm_call_dummy_words): Declare.
4043 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4044 (arm_linux_call_dummy_words): Declare.
4046 2002-01-30 Andreas Schwab <schwab@suse.de>
4048 * m68klinux-nat.c: Fix last change to use regcache_collect
4049 instead of referencing registers[] directly.
4051 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4053 * parse.c (target_map_name_to_register): Delete code wrapped in
4054 #ifdef REGISTER_NAME_ALIAS_HOOK.
4056 2002-01-28 Michael Snyder <msnyder@redhat.com>
4058 * regcache.c (legacy_read_register_gen): Need to be able to
4059 read pseudo-register as well as real register.
4060 (legacy_write_register_gen): Ditto.
4062 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4064 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4065 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4066 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4067 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4068 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4069 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4070 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4071 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4072 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4073 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4074 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4075 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4076 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4077 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4078 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4079 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4080 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4081 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4082 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4083 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4085 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4087 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4088 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4089 (initialize_current_architecture): Update target_byte_order using
4090 information from BFD.
4091 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4092 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4094 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4096 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4097 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4099 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4100 #ifdef INVALID_FLOAT.
4101 * infcmd.c (do_registers_info): Ditto.
4102 * values.c (unpack_double): Ditto. Add comment.
4104 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4105 already commented out.
4107 2002-01-26 Andreas Schwab <schwab@suse.de>
4109 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4110 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4111 registers and add support for PTRACE_GETREGS.
4113 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4115 GDB 5.1.1 released from 5.1 branch.
4116 * NEWS: Add 5.1.1 news.
4117 * README: Sync with 5.1 branch.
4119 2002-01-23 Fred Fish <fnf@redhat.com>
4121 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4122 stabstring on initial malloc. Reallocing will copy it for us,
4125 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4127 * Makefile.in (hpread_h): Delete.
4128 (HFILES_NO_SRCDIR): Remove hpread.h.
4129 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4130 (hpread.o): Update dependencies.
4131 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4133 * hp-psymtab-read.c: Remove file.
4134 * hp-symtab-read.c: Remove file.
4135 * hpread.h: Remove file.
4137 * hpread.c: Merge all contents of hp-psymtab-read.c,
4138 hp-symtab-read.c and hpread.h into this file, as it was prior to
4141 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4142 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4143 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4144 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4146 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4148 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4149 fill_gregset): Call gdbarch_tdep() just once, assign result to
4150 variable and use that, instead of calling the function several
4153 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4155 * configure.host: Accept sparcv9 as alias for sparc64.
4156 * configure.tgt: Likewise.
4158 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4160 * solib-aix5.c (build_so_list_from_mapfile)
4161 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4162 arguments is not reversed.
4163 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4164 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4166 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4168 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4169 modified version of obsolete sh_fetch_pseudo_register.
4170 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4171 (sh4_register_read): New function.
4172 (sh_pseudo_register_write): New function. Renamed and modified
4173 version of obsolete sh_store_pseudo_register.
4174 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4175 (sh4_register_write): New function.
4176 (sh_gdbarch_init): Remove setting of gdbarch function
4177 fetch_pseudo_register and store_pseudo_register. Remove setting of
4178 register_convert_to_raw, register_convert_to_virtual,
4179 register_convertible.
4180 (sh_sh4_register_convertible): Delete. No longer needed. All is
4181 taken care by architecture specific functions
4182 register_read/register_write.
4183 (sh_sh4_register_convert_to_virtual): Make static.
4184 (sh_sh4_register_convert_to_raw): Ditto.
4186 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4188 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4189 (floatformat_is_nan, floatformat_mantissa): Ditto.
4191 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4192 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4193 builtin_type_ieee_double_little,
4194 builtin_type_ieee_double_littlebyte_bigword,
4195 builtin_type_m68881_ext, builtin_type_i960_ext,
4196 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4197 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4198 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4199 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4201 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4203 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4204 parameter. Set frameless flag if it exists and depended of
4205 whether the scanned function is frameless or not.
4206 (xstormy16_skip_prologue): If function is frameless, return
4207 result of xstormy16_scan_prologue().
4208 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4211 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4213 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4214 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4215 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4216 sh_sh4_register_byte, sh_sh4_register_raw_size,
4217 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4218 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4219 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4220 sh_store_pseudo_register, sh_do_pseudo_register): Call
4221 gdbarch_tdep() just once, assign result to variable and use that,
4222 instead of calling the function several times.
4224 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4226 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4227 macros instead of LAST_FPU_CTRL_REGNUM.
4228 (store_register): Likewise.
4230 2002-01-21 Jim Blandy <jimb@redhat.com>
4232 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4233 is up-to-date before running the program, not just when a program
4236 2002-01-21 Fred Fish <fnf@redhat.com>
4238 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4239 when we have found all instructions we are looking for.
4241 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4243 * arm-tdep.c (arm_register_name): New function.
4244 (arm_registers_names): Make static.
4245 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4246 (arm_register_name): Declare.
4247 (REGISTER_NAME): Use it.
4249 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4250 Kevin Buettner <kevinb@redhat.com>
4252 Convert arm targets to new FRAME interface.
4253 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4254 (arm_frame_find_save_regs): Delete.
4255 (arm_frame_init_saved_regs): New.
4256 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4257 Allocate extra_info as required. Convert all uses of fsr.regs
4258 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4260 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4261 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4262 (check_prologue_cache, save_prologue_cache): Likewise.
4263 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4264 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4265 (FRAME_FIND_SAVED_REGS): Delete.
4266 (arm_frame_find_saved_regs): Delete prototype.
4267 (arm_frame_init_saved_regs): New prototype.
4268 (FRAME_INIT_SAVED_REGS): Define.
4270 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4272 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4274 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4276 From Jeff Law <law@redhat.com>:
4277 * infttrace.c: Include <sys/pstat.h>.
4278 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4279 exec file if the ttrace equivalent fails.
4281 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4283 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4284 (closeLogFile): Ditto.
4286 2002-01-20 Michael Chastain <mec@shout.net>
4288 * top.c (print_gdb_version): Bump copyright year to 2002.
4290 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4292 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4293 Zannoni and Eli Zaretskii.
4295 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4297 * buildsym.c: Update copyright years.
4298 * c-typeprint.c: Likewise.
4299 * dwarf2read.c: Likewise.
4300 * f-typeprint.c: Likewise.
4301 * gdbtypes.c: Likewise.
4302 * gdbtypes.h: Likewise.
4303 * hp-symtab-read.c: Likewise.
4304 * hpread.c: Likewise.
4305 * mdebugread.c: Likewise.
4306 * p-typeprint.c: Likewise.
4308 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4310 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4311 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4312 byte-order selectable.
4313 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4314 * arch-utils.c: Ditto.
4315 (set_endian): Ditto.
4316 (set_endian_from_file): Ditto.
4317 * gdbserver/low-sim.c (create_inferior): Ditto.
4318 * gdbarch.sh: Ditto.
4319 * gdbarch.h: Re-generate.
4320 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4321 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4322 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4323 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4324 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4325 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4326 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4327 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4329 * config/mips/tm-wince.h: Remove #undef of macro
4330 TARGET_BYTE_ORDER_SELECTABLE.
4331 * config/sh/tm-wince.h: Ditto.
4333 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4335 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4336 member function fields. Add accessor macro
4337 TYPE_FN_FIELD_ARTIFICIAL.
4338 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4339 * c-typeprint.c (c_type_print_base): Skip artificial member
4342 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4344 * f-typeprint.c: Delete unused function f_type_print_args.
4345 * p-typeprint.c: Delete unused function pascal_type_print_args.
4347 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4349 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4350 comment. Add ``artificial'' to ``union field_location''.
4352 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4354 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4355 * mdebugread.c (parse_symbol): Likewise.
4356 * stabsread.c (define_symbol): Likewise.
4357 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4358 initializing TYPE_FIELD_BITPOS to n (obsolete).
4359 (hpread_doc_function_type): Likewise.
4360 * hpread.c (hpread_function_type): Likewise.
4362 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4364 * configure.in (host_makefile_frag): Only require a host makefile
4365 fragment when a native build.
4366 * configure: Re-generate.
4368 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4370 * doublest.h (floatformat_from_type): Declare.
4371 * doublest.c (floatformat_from_type): New function.
4372 (convert_typed_floating): Use.
4374 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4375 call to function floatformat_from_type.
4377 * gdbarch.sh (IEEE_FLOAT): Delete.
4378 * gdbarch.h, gdbarch.c: Re-generate.
4379 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4380 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4381 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4382 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4383 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4384 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4385 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4386 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4387 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4388 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4389 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4390 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4392 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4393 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4394 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4395 * sh-tdep.c (sh_gdbarch_init): Ditto.
4396 * mips-tdep.c (mips_gdbarch_init): Ditto.
4397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4398 * cris-tdep.c (cris_gdbarch_init): Ditto.
4400 2002-01-20 Jiri Smid <smid@suse.cz>
4402 * configure.host, configure.tgt: Support x86-64.
4403 * NEWS: Note new target x86-64.
4405 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4406 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4407 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4408 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4409 x86-64-linux-nat.o): Fix dependencies.
4411 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4413 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4414 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4415 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4416 * config/sparc/xm-sun4os4.h: Delete file.
4417 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4419 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4421 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4422 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4423 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4424 * config/i386/i386lynx.mh (XM_FILE): Delete.
4425 * config/rs6000/xm-rs6000ly.h: Delete file.
4426 * config/sparc/xm-sparclynx.h: Delete file.
4427 * config/m68k/xm-m68klynx.h: Delete file.
4428 * config/i386/xm-i386lynx.h: Delete file.
4429 * config/xm-lynx.h: Delete file.
4430 * config/djgpp/fnchange.lst: Update.
4432 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4434 * alpha-tdep.c (alpha_register_byte): New function.
4435 (alpha_register_raw_size): Ditto.
4436 (alpha_register_virtual_size): Ditto.
4437 (alpha_skip_prologue_internal): Renamed from
4438 alpha_skip_prologue.
4439 (alpha_skip_prologue): New version that calls
4440 alpha_skip_prologue_internal.
4441 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4442 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4443 second argument from alpha_skip_prologue.
4444 (REGISTER_BYTE): Use alpha_register_byte.
4445 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4446 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4447 (FRAMELESS_FUNCTION_INVOCATION): Use
4448 generic_frameless_function_invocation_not.
4449 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4450 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4452 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4454 * config/mips/xm-news-mips.h: Delete file.
4455 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4457 * config/m88k/xm-m88k.h: Delete file.
4458 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4459 * config/m88k/xm-delta88v4.h: Ditto.
4460 * config/m88k/xm-delta88.h: Ditto.
4462 * config/alpha/xm-fbsd.h: Delete file.
4463 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4465 * config/sparc/xm-sparc.h: Delete file.
4466 * Makefile.in (xm-sun4os4.h): Delete dependency.
4467 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4468 * config/sparc/xm-sun4os4.h: Ditto.
4469 * config/sparc/xm-linux.h: Ditto.
4471 * config/i386/xm-windows.h: Delete file.
4473 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4475 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4476 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4478 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4480 * alpha-tdep.c (alpha_call_dummy_words): New.
4481 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4482 (CALL_DUMMY_P): Define.
4483 (CALL_DUMMY_WORDS): Define.
4484 (SIZEOF_CALL_DUMMY_WORDS): Define.
4486 2002-01-19 Per Bothner <per@bothner.com>
4488 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4489 isn't NULL, which can happen with some gcj-3.x-produced code.
4491 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4493 * alpha-tdep.c (alpha_register_virtual_type): New function.
4494 (alpha_init_frame_pc_first): Ditto.
4495 (alpha_fix_call_dummy): Ditto.
4496 (alpha_store_struct_return): Ditto.
4497 (alpha_extract_struct_value_address): Ditto.
4498 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4499 alpha_register_virtual_type.
4500 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4501 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4502 alpha_extract_struct_value_address.
4503 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4504 (INIT_FRAME_PC): Use init_frame_pc_noop.
4505 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4507 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4509 * i386gnu-nat.c: Include "i386-tdep.h".
4510 (fetch_fpregs): Simplify code dealing with uninitialized floating
4511 point states such that it doesn't require FP7_REGNUM.
4513 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4515 * alpha-tdep.c (frame_extra_info): New.
4516 (alpha_find_saved_regs): Make static. Use
4518 (alpha_frame_init_saved_regs): New function.
4519 (alpha_frame_saved_pc): Use frame->extra_info.
4520 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4521 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4522 (init_extra_frame_info): Rename to...
4523 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4524 (alpha_print_extra_frame_info): New function.
4525 (alpha_frame_locals_address): Ditto.
4526 (alpha_frame_args_address): Ditto.
4527 (alpha_pop_frame): Use frame->extra_info.
4528 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4529 alpha_frame_args_address.
4530 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4531 (alpha_find_saved_regs): Remove prototype.
4532 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4533 (EXTRA_FRAME_INFO): Remove.
4534 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4535 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4537 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4539 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4540 (alpha_cannot_fetch_register): Ditto.
4541 (alpha_cannot_store_register): Ditto.
4542 (alpha_register_convertible): Ditto.
4543 (alpha_use_struct_convention): Ditto.
4544 * config/alpha/tm-alpha.h: Update copyright years.
4545 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4546 (INNER_THAN): Use core_addr_lessthan.
4547 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4548 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4549 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4550 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4551 (FRAME_CHAIN): Remove unnecessary cast.
4553 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4555 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4558 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4560 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4561 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4562 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4563 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4564 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4565 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4566 * x86-64-linux-nat.c: Ditto.
4568 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4570 * alpha-tdep.c (alpha_register_name): New function.
4571 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4572 (REGISTER_NAME): Define.
4574 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4576 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4578 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4580 * alpha-tdep.c: Update copyright years.
4581 (alpha_next_pc): New function.
4582 (alpha_software_single_step): Ditto.
4583 * config/alpha/tm-alpha.h: Add prototype for
4584 alpha_software_single_step.
4586 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4588 * alphabsd-nat.c: Update copyright years.
4589 (fill_gregset): Use regcache_collect.
4590 (fill_fpregset): Likewise.
4591 (fetch_inferior_registers): Only fetch integer registers
4592 if requested to do so.
4593 (store_inferior_registers): Only store integer registers
4594 if requested to do so.
4596 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4598 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4599 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4600 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4601 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4602 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4603 * config/arm/linux.mh (XDEPFILES): Delete.
4604 * config/arm/nbsd.mh (XDEPFILES): Delete.
4605 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4606 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4607 * config/i386/i386m3.mh (XDEPFILES): Delete.
4608 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4609 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4610 * config/i386/fbsd.mh (XDEPFILES): Delete.
4611 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4612 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4613 * config/i386/i386v4.mh (XDEPFILES): Delete.
4614 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4615 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4616 * config/i386/i386aix.mh (XDEPFILES): Delete.
4617 * config/i386/go32.mh (XDEPFILES): Delete.
4618 * config/i386/cygwin.mh (XDEPFILES): Delete.
4619 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4620 * config/i386/i386mach.mh (XDEPFILES): Delete.
4621 * config/i386/i386v32.mh (XDEPFILES): Delete.
4622 * config/i386/linux.mh (XDEPFILES): Delete.
4623 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4624 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4625 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4626 * config/i386/i386sco.mh (XDEPFILES): Delete.
4627 * config/i386/i386v.mh (XDEPFILES): Delete.
4628 * config/i386/nbsd.mh (XDEPFILES): Delete.
4629 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4630 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4631 * config/i386/symmetry.mh (XDEPFILES): Delete.
4632 * config/i386/obsd.mh (XDEPFILES): Delete.
4633 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4634 * config/ia64/linux.mh (XDEPFILES): Delete.
4635 * config/ia64/aix.mh (XDEPFILES): Delete.
4636 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4637 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4638 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4639 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4640 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4641 * config/m68k/linux.mh (XDEPFILES): Delete.
4642 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4643 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4644 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4645 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4646 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4647 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4648 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4649 * config/m88k/delta88.mh (XDEPFILES): Delete.
4650 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4651 * config/m88k/m88k.mh (XDEPFILES): Delete.
4652 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4653 * config/mips/linux.mh (XDEPFILES): Delete.
4654 * config/mips/irix6.mh (XDEPFILES): Delete.
4655 * config/mips/irix5.mh (XDEPFILES): Delete.
4656 * config/mips/irix4.mh (XDEPFILES): Delete.
4657 * config/mips/irix3.mh (XDEPFILES): Delete.
4658 * config/mips/decstation.mh (XDEPFILES): Delete.
4659 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4660 (NATDEPFILES): Move core-aout.o to here.
4661 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4662 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4663 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4664 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4665 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4666 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4667 * config/pa/hpux11.mh (XDEPFILES): Delete.
4668 * config/powerpc/aix.mh (XDEPFILES): Delete.
4669 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4670 * config/powerpc/linux.mh (XDEPFILES): Delete.
4671 * config/romp/rtbsd.mh: Rename XDEPFILES.
4672 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4673 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4674 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4675 * config/s390/s390.mh (XDEPFILES): Delete.
4676 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4677 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4678 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4679 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4680 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4681 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4682 * config/sparc/linux.mh (XDEPFILES): Delete.
4683 * config/vax/vaxult.mh (XDEPFILES): Delete.
4684 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4685 * Makefile.in (DEPFILES): Remove XDEPFILES.
4687 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4689 * utils.c (internal_verror): Fix comments, default is yes not no.
4690 Update queries to match. Default to quit and dump core.
4692 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4694 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4696 * defs.h, event-top.c, gdbcmd.h: Ditto.
4697 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4698 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4699 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4700 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4701 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4702 * mi/mi-main.c:Ditto.
4704 * stack.c, symfile.c: Update copyright.
4706 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4708 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4709 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4710 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4711 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4713 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4715 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4716 * gdbserver/low-lynx.c (myattach): Likewise.
4717 * gdbserver/low-nbsd.c (myattach): Likewise.
4718 * gdbserver/low-sim.c (myattach): Likewise.
4719 * gdbserver/low-sparc.c (myattach): Likewise.
4720 * gdbserver/low-sun3.c (myattach): Likewise.
4722 * gdbserver/low-linux.c (myattach): New function.
4724 * gdbserver/server.c (attach_inferior): New function.
4725 (main): Handle "--attach".
4727 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4729 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4732 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4734 * c-typeprint.c (is_type_conversion_operator): Add additional
4735 check for non-conversion operators.
4737 2002-01-15 Michael Snyder <msnyder@redhat.com>
4739 * linux-proc.c: Add "info proc" command, a la procfs.c.
4740 (read_mapping): New function, abstract and re-use code.
4741 (linux_find_memory_regions): Use new func read_mapping.
4742 (linux_info_proc_cmd): New function, implement "info proc".
4743 (_initialize_linux_proc): Add new command "info proc".
4745 2002-01-15 Michael Snyder <msnyder@redhat.com>
4747 * symfile.c (generic_load): Use bfd_map_over_sections method
4748 instead of manipulating bfd structure members directly.
4749 (add_section_size_callback): New function, bfd sections callback
4750 used by generic_load.
4751 (load_sections_callback): New function, bfd sections callback
4752 used by generic_load.
4754 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4756 [Based on work by Jim Blandy]
4757 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4758 (builtin_type_vec128): Export.
4759 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4761 (builtin_type_vec128): New builtin type for 128 bit vector
4763 (build_gdbtypes): Initialize builtin_type_v16qi and
4764 builtin_type_v8hi. Create the vec128 register builtin type
4766 (build_builtin_type_vec128): New function.
4767 (_initialize_gdbtypes): Register builtin_type_v16qi and
4768 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4769 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4770 AltiVec register to new builtin type.
4772 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4774 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4777 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4779 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4780 CLEAN_UP_REGISTER_VALUE.
4781 * regcache.c (supply_register): Update only call.
4783 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4787 a29k-*-vxworks* targets as obsolete.
4789 2002-01-14 Michael Snyder <msnyder@redhat.com>
4791 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4792 until we can resolve portability issues.
4793 * gregset.h: Remove references to fpxregs.
4794 * gcore.c (gcore_command): Initialize note_sec to NULL.
4796 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4798 * signals.c (target_signal_to_name): Rewrite. Only use
4799 signals[].name when in bounds and non-NULL.
4801 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4803 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4804 * signals.c (target_signal_to_name): Verify that SIG is within the
4805 bounds of the signals array.
4807 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4809 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4811 2002-01-13 Keith Seitz <keiths@redhat.com>
4813 * stack.c (print_frame_info_base): Print the frame's pc
4814 only if when print_frame_info_listing_hook is not defined.
4816 2002-01-13 Keith Seitz <keiths@redhat.com>
4818 * varobj.c (varobj_set_value): Make sure that there were no
4819 errors evaluating the object before attempting to set its
4821 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4822 so this offset adjustment is no longer necessary.
4823 (create_child): Don't set the error flag if the child is
4825 (value_of_child): If value_fetch_lazy fails, return NULL
4826 so that callers will be notified that an error occurred.
4827 (c_value_of_variable): Delay check of variable's validity
4828 until later. We actually want all structs and unions to have
4830 Do not return "???" for variables which could not be evaluated.
4831 This error condition must be returned to the caller so that it
4832 can get the error condition from gdb.
4833 (cplus_name_of_child): Adjust index for vptr before figuring
4834 out the name of the child.
4835 (cplus_value_of_child): If a child's (real) parent is not valid,
4836 don't even bother trying to give a value for it. Just return
4837 an error. Change all instances in this function.
4838 (cplus_type_of_child): If our parent is one of the "fake"
4839 parents, we need to get at the type of the real parent, and
4840 derive the child's true type using this information.
4842 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4844 From 2002-01-09 John Marshall <johnm@falch.net>:
4845 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4846 sources.redhat.com, and tweak some related URLs which had
4847 suffered from linkrot.
4849 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4852 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4853 structures passed in registers.
4855 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4857 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4858 white space which prevented compilation. Reported by DSK
4859 <dsk@student.unsw.edu.au>.
4861 2002-01-11 Michael Snyder <msnyder@redhat.com>
4863 * symfile.c (build_section_addr_info_from_section_tab):
4864 Use bfd access method instead of manipulating bfd directly.
4865 (syms_from_objfile): Ditto.
4866 (simple_overlay_update_1): Ditto.
4867 (simple_overlay_update): Ditto.
4868 (generic_load): Ditto.
4869 (overlay_unmapped_address): FIXME comment, bfd access methods.
4870 (sections_overlap): FIXME comment, bfd access methods.
4871 (pc_in_mapped_range): FIXME comment, bfd access methods.
4872 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4873 (section_is_mapped): FIXME comment, bfd access methods.
4874 (section_is_overlay): FIXME comment, bfd access methods.
4876 * symfile.c (generic_load): Whitespace and long line cleanups.
4877 Remove duplicate variable, change several local variables to
4878 more appropriate data types.
4879 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4881 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4884 * language.c (longest_local_hex_string_custom): Use phex_nz to
4885 convert NUM to a hex string.
4887 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4889 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4891 Update Copyright year.
4893 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4895 * language.c (longest_raw_hex_string): Delete unused function.
4897 2002-01-11 Petr Sorfa <petrs@caldera.com>
4899 * MAINTAINERS (write-after-approval): Add myself.
4900 * dwarf2read.c (read_tag_string_type): Handling of
4902 (read_tag_string_type): FORTRAN fix to prevent propagation of
4904 (set_cu_language): Handling of DW_LANG_Fortran95
4906 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4908 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4909 GETPID(inferior_ptid).
4910 (store_inferior_registers): Likewise.
4912 2002-01-10 Jason Merrill <jason@redhat.com>
4914 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4917 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4919 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4920 and bfd/elf32-sh-nbsd.c.
4922 2002-01-10 Michael Snyder <msnyder@redhat.com>
4924 * NEWS: Mention --pid and corefile/proc-id behavior change.
4926 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4927 * gcore.c: Include cli/cli-decode.h instead of command.h.
4929 * main.c (captured_main): Add new command line option "--pid".
4930 If the second command line argument (following the symbol-file)
4931 begins with a digit, try to attach to it before trying to open
4933 (print_gdb_help): Document the "--pid" argument.
4935 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4937 * completer.c (command_completer): New function.
4939 * completer.h <command_completer>: Add prototype.
4941 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4942 completer for the "help" command.
4944 2002-01-09 Jason Merrill <jason@redhat.com>
4946 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4948 2002-01-09 Michael Snyder <msnyder@redhat.com>
4950 * i386-linux-nat.c (fill_fpxregset): Make global.
4951 (store_fpxregset): Ditto.
4953 * gregset.h (gdb_fpxregset_t): Define.
4954 (supply_fpxregset): Prototype.
4955 (fill_fpxregset): Prototype.
4957 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4959 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4961 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4962 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4963 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4965 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4967 * MAINTAINERS: Update target maintainer rules so that any
4968 Maintainer can approve a tested patch for a maintenance-only
4971 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4973 * MAINTAINERS (write-after-approval): Add myself.
4975 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4978 2002-01-08 Michael Snyder <msnyder@redhat.com>
4980 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4981 real name of the executable, rather than the /proc name.
4983 2002-01-03 Michael Snyder <msnyder@redhat.com>
4985 Implement a "generate-core-file" command in gdb, save target state.
4986 * gcore.c: New file. Implement new command 'generate-core-file'.
4987 Save a corefile image of the current state of the inferior.
4988 * linux-proc.c: Add linux-specific code for saving corefiles.
4989 * target.h (struct target_ops): Add new target vectors for saving
4990 corefiles; to_find_memory_regions and to_make_corefile_notes.
4991 (target_find_memory_regions): New macro.
4992 (target_make_corefile_notes): New macro.
4993 * target.c (update_current_target): Inherit new target methods.
4994 (dummy_find_memory_regions): New place-holder method.
4995 (dummy_make_corefile_notes): New place-holder method.
4996 (init_dummy_target): Initialize new dummy target vectors.
4997 * exec.c (exec_set_find_memory_regions): New function.
4998 Allow the exec_ops vector for memory regions to be taken over.
4999 (exec_make_note_section): New function, target vector method.
5000 * defs.h (exec_set_find_memory_regions): Export prototype.
5001 * procfs.c (proc_find_memory_regions): New function, corefile method.
5002 (procfs_make_note_section): New function, corefile method.
5003 (init_procfs_ops): Set new target vector pointers.
5004 (find_memory_regions_callback): New function.
5005 (procfs_do_thread_registers): New function.
5006 (procfs_corefile_thread_callback): New function.
5007 * sol-thread.c (sol_find_memory_regions): New function.
5008 (sol_make_note_section): New function.
5009 (init_sol_thread_ops): Initialize new target vectors.
5010 * inftarg.c (inftarg_set_find_memory_regions): New function.
5011 Allow to_find_memory_regions vector to be taken over.
5012 (inftarg_set_make_corefile_notes): New function.
5013 Allow to_make_corefile_notes vector to be taken over.
5014 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5015 interface layer if not target_has_execution (may be a corefile).
5016 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5017 * config/sparc/sun4sol2.mh: Ditto.
5018 * config/alpha/alpha-linux.mh: Ditto.
5019 * config/arm/linux.mh: Ditto.
5020 * config/i386/x86-64linux.mh: Ditto.
5021 * config/ia64/linux.mh: Ditto.
5022 * config/m68k/linux.mh: Ditto.
5023 * config/mips/linux.mh: Ditto.
5024 * config/powerpc/linux.mh: Ditto.
5025 * config/sparc/linux.mh: Ditto.
5027 2002-01-07 Michael Snyder <msnyder@redhat.com>
5029 * arm-linux-nat.c: Remove references to regcache.c internal data
5030 (registers[] and register_valid[]).
5032 2002-01-07 Michael Snyder <msnyder@redhat.com>
5034 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5035 so that attaching to a pid will automatically read the process's
5036 symbol file and shlibs.
5037 * Makefile.in: Add rule for linux-proc.o.
5038 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5039 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5040 * config/arm/linux.mh: Ditto.
5041 * config/i386/linux.mh: Ditto.
5042 * config/i386/x86-64linux.mh: Ditto.
5043 * config/ia64/linux.mh: Ditto.
5044 * config/m68k/linux.mh: Ditto.
5045 * config/mips/linux.mh: Ditto.
5046 * config/powerpc/linux.mh: Ditto.
5047 * config/sparc/linux.mh: Ditto.
5049 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5051 * win32-nat.c: Add i386-tdep.h dependency.
5053 2002-01-07 Michael Snyder <msnyder@redhat.com>
5055 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5056 instead of bfd_get_arch_size. Don't bail out just because
5057 there's no exec_bfd.
5059 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5060 * p-valprint.c (pascal_object_print_value): Ditto.
5061 * somread.c (som_symtab_read): Ditto.
5062 * symfile.c (simple_free_overlay_region_table): Ditto.
5063 * valops.c (value_assign): Ditto.
5065 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5066 use tilde_expand and strerror for opening save-tracepoints file.
5068 * thread-db.c (thread_db_new_objfile): Indendation fix.
5070 * infptrace.c (GDB_MAX_ALLOCA): New define.
5071 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5072 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5073 can be overridden with whatever value is appropriate to the host).
5074 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5075 alloca to allocate potentially large buffer.
5076 * rs6000-nat.c (child_xfer_memory): Ditto.
5077 * symm-nat.c (child_xfer_memory): Ditto.
5078 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5080 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5082 From Nick Clifton <nickc@redhat.com>
5083 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5085 2002-01-07 Michael Snyder <msnyder@redhat.com>
5087 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5088 Don't use exec_bfd if it's NULL.
5090 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5092 * valops.c (value_arg_coerce): Fix formatting.
5094 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5096 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5099 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5101 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5102 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5103 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5104 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5105 z8k-coff have not been multi-arched. Update z8k-coff build
5108 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5110 * MAINTAINERS: Mark a29k target as obsolete.
5111 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5112 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5114 * NEWS: Note that a29k targets are obsolete.
5115 * a29k-tdep.c: Mark as obsolete.
5116 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5117 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5118 a29k-*-vxworks* targets as obsolete.
5119 * remote-adapt.c: Obsolete.
5120 * remote-eb.c: Obsolete.
5121 * remote-mm.c: Obsolete.
5122 * remote-udi.c: Obsolete.
5123 * config/a29k/a29k-udi.mt: Obsolete.
5124 * config/a29k/a29k.mt: Obsolete.
5125 * config/a29k/tm-a29k.h: Obsolete.
5126 * config/a29k/tm-vx29k.h: Obsolete.
5127 * config/a29k/vx29k.mt: Obsolete.
5129 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5131 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5132 with BFD_ENDIAN_BIG.
5134 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5136 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5137 * configure, config.in: Re-generate.
5138 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5139 * defs.h: Do not include <endian.h>.
5141 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5143 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5144 * config.in: Regenerate.
5145 * configure.in: Update copyright years.
5146 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5147 * configure: Regenerate.
5148 * i386bsd-nat.c: Update copyright years.
5149 (fill_gregset): Use regcache_collect.
5150 (fetch_inferior_registers): Only fetch integer registers
5151 if requested to do so. Add support for XMM registers
5152 using PT_GETXMMREGS.
5153 (store_inferior_registers): Only store integer registers
5154 if requested to do so. Add support for XMM registers
5155 using PT_SETXMMREGS.
5156 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5157 (store_inferior_registers): Remove.
5158 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5159 (fetch_elfcore_registers): New function.
5160 (i386nbsd_elfcore_fns): New.
5161 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5162 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5164 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5165 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5166 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5167 * config/i386/tm-nbsd.h: Update copyright years.
5168 (HAVE_SSE_REGS): Define.
5169 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5170 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5171 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5172 (SIGCONTEXT_PC_OFFSET): Remove.
5173 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5175 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5177 * configure.tgt: Remove powerpc-*-macos* target.
5178 * config/m68k/xm-mpw.h: Delete file.
5179 * config/xm-mpw.h: Delete file.
5180 * ser-mac.c: Delete file.
5181 * mpw-make.sed: Delete file.
5182 * mpw-config.in: Delete file.
5183 * mac-xdep.c: Delete file.
5184 * mac-gdb.r: Delete file.
5185 * mac-defs.h: Delete file.
5186 * mac-nat.c: Delete file.
5187 * config/powerpc/macos.mh: Delete file.
5188 * config/powerpc/macos.mt: Delete file.
5189 * config/powerpc/nm-macos.h: Delete file.
5190 * config/powerpc/tm-macos.h: Delete file.
5191 * source.c (openp, open_source_file): Remove obsolete code.
5192 * top.c (gdb_readline): Ditto.
5193 * utils.c (query): Ditto.
5194 * event-top.c (display_gdb_prompt): Ditto.
5195 * Makefile.in (ser-mac.o): Delete obsolete target.
5198 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5200 * defs.h (BIG_ENDIAN): Delete macro definition.
5201 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5202 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5203 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5204 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5205 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5206 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5207 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5208 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5209 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5210 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5211 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5212 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5213 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5214 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5215 * gdbarch.c: Re-generate.
5217 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5219 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5222 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5224 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5226 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5228 * value.h (value_ptr): Delete typedef.
5230 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5232 * i386nbsd-nat.c: Update copyright years.
5233 Include i386-tdep.h.
5235 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5237 * stabsread.c: Update copyright years.
5239 From Debashis Mahata <debashis.mahata@wipro.com>:
5240 (read_struct_fields): Deal with Sun C compiler erroneous stab
5241 output for structs and unions.
5244 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5246 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5249 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5251 * cp-abi.c: Fix whitespace.
5252 (baseclass_offset): New wrapper function.
5253 * cp-abi.h (baseclass_offset): Add prototype.
5254 (struct cp_abi_ops): Add baseclass_offset pointer.
5256 * valops.c (vb_match): Move to...
5257 * gnu-v2-abi.c (vb_match): here.
5258 * valops.c (baseclass_offset): Move to...
5259 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5261 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5263 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5264 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5265 * hpacc-abi.c (init_hpacc_ops): Likewise.
5267 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5269 * valops.c (find_overload_match): Accept obj as a
5270 reference parameter. Update it before returning.
5271 * value.h (find_overload_match): Update prototype.
5272 * eval.c (evaluate_subexp_standard): Pass object to
5273 find_overload_match by reference.
5275 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5277 * valarith.c: Replace value_ptr with struct value pointer. Remove
5278 register attribute from value declarations.
5281 * scm-lang.c (scm_lookup_name): Ditto.
5283 2002-01-03 Michael Snyder <msnyder@redhat.com>
5285 Abstract the functionality of iterating over mapped memory
5286 regions into a general purpose iterator function.
5287 * procfs.c (iterate_over_mappings): New function, general purpose
5288 iterator for memory sections.
5289 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5290 (solib_mappings_callback): New function, callback for above.
5291 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5292 (info_mappings_callback): New function, callback for above.
5294 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5296 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5298 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5299 * i386-tdep.c: Include "elf-bfd.h".
5300 (process_note_abi_tag_sections): New function.
5301 (i386_gdbarch_init): Add code to recognize various OS/ABI
5304 * maint.c (_initialize_maint_cmds): Add missing \ in
5307 For older changes see ChangeLog-2001
5313 version-control: never