1 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
3 * signals.h: Update comments.
4 (enum target_signal): Remove conditional compilation around
5 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7 2002-05-09 Michael Snyder <msnyder@redhat.com>
9 * remote-rdp.c (remote_rdp_can_run): Remove.
11 2002-05-09 Tom Tromey <tromey@redhat.com>
13 * jv-valprint.c (java_val_print): Handle `char' as a special case
16 2002-05-09 Michael Snyder <msnyder@redhat.com>
18 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
19 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
20 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
22 (arm_skip_prologue): Ditto. Also make disassembly
23 order-independent by placing it in a loop.
25 2002-05-06 Michael Snyder <msnyder@redhat.com>
27 * stabsread.c (read_type): Add recognition for new attribute:
28 "@V;" means that an array type is actually a vector.
29 This is analogous to the vector flag that's been added to dwarf2.
31 2002-05-09 Mark Kettenis <kettenis@gnu.org>
33 * i386-tdep.h (i386_abi): New enum.
34 (struct gdbarch_tdep): Replace os_ident member with abi.
35 (i386_gdbarch_register_os_abi): New prototype.
36 * i386-tdep.c (i386_abi_names): New array.
37 (process_note_abi_tag_sections): Removed.
38 (process_note_sections): New function.
39 (i386_elf_abi_from_note, i386_elf_abi): New functions.
40 (struct i386_abi_handler): New struct.
41 (i386_abi_handler_list): New variable.
42 (i386_gdbarch_register_os_abi): New function.
43 (i386_gdbarch_init): Adapt for the changes given above.
45 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
47 * gregset.h: Say "GNU/Linux".
49 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
51 * gdbtypes.c : Add new builtin type for 64 bit vectors.
52 (build_gdbtypes): Build builtin_type_v2_float.
53 (_initialize_gdbtypes): Register new builtin type.
55 2002-05-08 Andrew Cagney <ac131313@redhat.com>
57 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
58 (clear_gdbarch_swap): New function.
59 (initialize_non_multiarch): Call.
60 (gdbarch_update_p): Before calling init(), swap out and clear the
61 existing architecture.
62 * gdbarch.c: Regenerate.
64 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
66 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
69 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
71 * sh-nbsd-nat.c: Rename to...
72 * shnbsd-nat.c: ...this.
73 * sh-nbsd-tdep.c: Rename to...
74 * shnbsd-tdep.c: ...this.
75 * sh-nbsd-tdep.h: Rename to...
76 * shnbsd-tdep.h: ...this.
77 * config/sh/nbsd.mh: Use shnbsd-nat.o.
78 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
80 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
82 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
83 concatenation for command help messages.
85 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
87 * NEWS: Note new sh*-*-netbsdelf* configuration.
88 * configure.host: Set gdb_host_cpu to sh for all sh*.
89 (sh*-*-netbsdelf*): New host.
90 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
91 (sh*-*-netbsdelf*): New target.
92 * sh-nbsd-nat.c: New file.
93 * sh-nbsd-tdep.c: New file.
94 * sh-nbsd-tdep.h: New file.
95 * config/sh/nbsd.mh: New file.
96 * config/sh/nbsd.mt: New file.
97 * config/sh/nm-nbsd.h: New file.
98 * config/sh/tm-nbsd.h: New file.
100 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
102 * sh-tdep.c (sh_osabi_names): Declare.
103 (process_note_abi_tag_sections): New function.
104 (get_elfosabi): Ditto.
105 (sh_gdbarch_register_os_abi): Ditto.
106 (sh_dump_tdep): Ditto.
107 _initialize_sh_tdep): Use gdbarch_register to register
108 sh_gdbarch_init and sh_dump_tdep.
109 * config/sh/tm-sh.h (sh_osabi): Declare.
110 (gdbarch_tdep): Add sh_osabi and osabi_name members.
112 2002-05-07 Andrew Cagney <ac131313@redhat.com>
114 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
115 (thumb_scan_prologue): Ditto.
116 (arm_find_callers_reg): Ditto.
117 (arm_frame_chain): Ditto.
118 (arm_init_extra_frame_info): Ditto.
119 (arm_frame_saved_pc): Ditto.
120 (arm_pop_frame): Ditto.
121 (arm_push_return_address): New function.
122 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
123 call_dummy_location, call_dummy_breakpoint_offset_p,
124 call_dummy_breakpoint_offset, call_dummy_p,
125 call_dummy_stack_adjust_p, call_dummy_words,
126 sizeof_call_dummy_words, call_dummy_start_offset,
127 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
128 call_dummy_address, push_return_address and push_dummy_frame for
129 generic dummy frames.
131 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
133 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
134 size computation for alloca.
135 (sh_fp_frame_init_saved_regs): Likewise.
137 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
139 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
140 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
141 * arm-tdep.c (arm_store_return_value): Use them.
142 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
143 * remote-rdp.c (remote_rdp_fetch_register): Use
144 ARM_MAX_REGISTER_RAW_SIZE.
145 (remote_rdp_store_register): Likewise.
147 2002-05-07 Michal Ludvig <mludvig@suse.cz>
149 * dwarf2cfi.c: Code cleanup, removed unused variables,
150 added default labels to switch {} statements.
151 * x86-64-tdep.c: Ditto.
152 * x86-64-linux-nat.c: Ditto.
154 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
156 * solib.h: Protect against multiple inclusion.
158 2002-05-06 Jim Blandy <jimb@redhat.com>
160 Separate the job of reading the line number info statement program
161 header (...expialidocious) out into its own function.
162 * dwarf2read.c (struct line_head, struct filenames, struct
163 directories): Replace with...
164 (struct line_header): New structure, containing the full
165 contents of the statement program header, including the
166 include directory and file name tables.
167 (read_file_scope): If we have line number info, instead of just
168 calling dwarf_decode_lines to do all the work, call
169 dwarf_decode_line_header first to get a `struct line_header'
170 containing the data in the statement program header, and then
171 pass that to dwarf_decode_lines, which will pick up where that
172 left off. Be sure to clean up the `struct line_header' object.
173 (dwarf_decode_line_header, free_line_header, add_include_dir,
174 add_file_name): New functions.
175 (dwarf_decode_lines): Move all the code to read the statement
176 program header into dwarf_decode_line_header. Take the line
177 header it built as the first argument, instead of the offset to
178 the compilation unit's line number info. Use the new `struct
179 line_header' type instead of the old structures. No need to do
180 cleanups here now, since we don't allocate anything.
181 (dwarf2_statement_list_fits_in_line_number_section,
182 dwarf2_line_header_too_long): New complaints.
184 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
186 * gdbtypes.c (init_vector_type): New function.
187 (build_builtin_type_vec128): Simplify the representation of SIMD
189 (build_gdbtypes): Initialize new builtin vector types.
190 (_initialize_gdbtypes): Register new vector types with gdbarch.
191 (builtin_type_v4_float, builtin_type_v4_int32,
192 builtin_type_v8_int16, builtin_type_v16_int8,
193 builtin_type_v2_int32, builtin_type_v4_int16,
194 builtin_type_v8_int8): New (renamed) SIMD types.
196 2002-05-06 Mark Kettenis <kettenis@gnu.org>
198 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
199 (i387_fill_fxsave): Likewise.
201 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
203 * alpha-tdep.c (alpha_extract_return_value): Don't use
204 non-constant array size in prototype.
206 2002-05-04 Andrew Cagney <ac131313@redhat.com>
208 From Brian Taylor <briant at model dot com>:
209 * ui-out.c (ui_out_field_core_addr): Use the function
210 longest_local_hex_string_custom'to format addresses > 32 bits
213 * ui-out.c (ui_out_field_core_addr): Update comment.
215 2002-05-04 Andrew Cagney <ac131313@redhat.com>
217 * stack.c (select_and_print_frame): Make static. Delete the
219 (func_command): Update call.
220 (select_frame_command): Delete code computing the frame level.
221 * frame.h (select_and_print_frame): Delete declaration.
223 2002-05-04 Andrew Cagney <ac131313@redhat.com>
225 * sparc-tdep.c (sparc_get_saved_register): Comment why
226 get_prev_frame call is safe.
228 2002-05-04 Andrew Cagney <ac131313@redhat.com>
230 * frame.h (select_frame): Delete level parameter.
231 * stack.c (select_frame): Update. Use frame_relative_level to
232 obtain the frame's level.
233 (select_and_print_frame): Update call.
234 (select_frame_command): Ditto.
235 (up_silently_base): Ditto.
236 (down_silently_base): Ditto.
237 * ocd.c (ocd_start_remote): Ditto.
238 * remote-rdp.c (remote_rdp_open): Ditto.
239 * remote-mips.c (mips_initialize): Ditto.
240 (common_open): Ditto.
241 * remote-e7000.c (e7000_start_remote): Ditto.
242 * m3-nat.c (select_thread): Ditto.
243 * hppa-tdep.c (child_get_current_exception_event): Ditto.
244 (child_get_current_exception_event): Ditto.
245 * varobj.c (varobj_create): Ditto.
246 (varobj_update): Ditto.
247 (c_value_of_root): Ditto.
248 * tracepoint.c (finish_tfind_command): Ditto.
249 * corelow.c (core_open): Ditto.
250 * arch-utils.c (generic_prepare_to_proceed): Ditto.
251 * thread.c (info_threads_command): Ditto.
252 (switch_to_thread): Ditto.
253 * infrun.c (normal_stop): Ditto.
254 (restore_selected_frame): Ditto.
255 (restore_inferior_status): Ditto.
256 * breakpoint.c (insert_breakpoints): Ditto.
257 (watchpoint_check): Ditto.
258 (bpstat_stop_status): Ditto.
259 (do_enable_breakpoint): Ditto.
260 * blockframe.c (flush_cached_frames): Ditto.
261 (reinit_frame_cache): Ditto.
263 2002-05-04 Andrew Cagney <ac131313@redhat.com>
265 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
268 2002-05-04 Jim Blandy <jimb@redhat.com>
270 * gdbtypes.c (replace_type): Doc fix.
272 2002-05-04 Andrew Cagney <ac131313@redhat.com>
274 * valprint.c (strcat_longest): Delete commented out function.
277 2002-05-04 Andrew Cagney <ac131313@redhat.com>
279 * MAINTAINERS: Mark a29k as deleted.
280 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
281 Move new configurations to the top.
282 * configure.tgt: Remove a29k.
283 * config/a29k/tm-vx29k.h: Delete.
284 * config/a29k/vx29k.mt: Delete.
285 * config/a29k/tm-a29k.h: Delete.
286 * config/a29k/a29k-udi.mt: Delete.
287 * config/a29k/a29k.mt: Delete.
288 * a29k-tdep.c: Delete.
289 * remote-udi.c: Delete.
290 * remote-mm.c: Delete.
291 * remote-eb.c: Delete.
292 * remote-adapt.c: Delete.
293 * Makefile.in: Remove obsolete code.
294 * gdbserver/Makefile.in: Ditto.
295 * config/s390/s390x.mt: Ditto.
296 * config/s390/s390.mt: Ditto.
297 * config/sparc/sparclynx.mh: Ditto.
298 * config/sparc/linux.mh: Ditto.
299 * config/pa/hppaosf.mh: Ditto.
300 * config/pa/hppabsd.mh: Ditto.
301 * config/ns32k/nbsd.mt: Ditto.
302 * config/mips/vr5000.mt: Ditto.
303 * config/m68k/sun3os4.mh: Ditto.
304 * config/m68k/nbsd.mt: Ditto.
305 * config/m68k/m68klynx.mh: Ditto.
306 * config/m32r/m32r.mt: Ditto.
307 * config/i386/x86-64linux.mt: Ditto.
308 * config/i386/nbsdelf.mt: Ditto.
309 * config/i386/nbsd.mt: Ditto.
310 * config/i386/i386lynx.mh: Ditto.
312 2002-05-04 Andrew Cagney <ac131313@redhat.com>
314 * target.c (debug_print_register): New function. Handle oversize
316 (debug_to_fetch_registers): Call.
317 (debug_to_store_registers): Call.
319 2002-05-03 Jim Blandy <jimb@redhat.com>
321 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
322 (read_type): Doc fix.
323 * gdbtypes.c (replace_type): Doc fix.
325 * stabsread.c (multiply_defined_struct): New complaint.
326 (read_struct_type): If the type we were passed isn't empty, or
327 incomplete, don't read the new struct type into it; complain,
328 and return the original type unchanged. Take a new `type_code'
329 argument, which is the type code for the new type.
330 (read_type): Rather than storing the type's type code here, pass
331 it as an argument to read_struct_type, and let that take care of
332 storing it. That way, we don't overwrite the original type code,
333 so read_struct_type can use it to decide whether we're overwriting
334 something we shouldn't.
335 (complain_about_struct_wipeout): New function.
337 2002-05-03 Andrew Cagney <ac131313@redhat.com>
339 * gdbarch.sh: Assert that gdbarch is non-NULL.
340 * gdbarch.c: Regenerate.
342 2002-05-03 Jason Merrill <jason@redhat.com>
344 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
347 2002-05-03 Michal Ludvig <mludvig@suse.cz>
349 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
350 (x86_64_dwarf2gdb_regno_map_length),
351 (x86_64_dwarf2_reg_to_regnum): Added.
352 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
353 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
354 (_initialize_x86_64_tdep): Synced with the change above.
355 (x86_64_skip_prologue): Reformulated message.
357 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
359 * f-exp.y: Also use new prev_lexptr variable
360 to improve error reporting. Based on Michael Snyder
361 2002-04-24 dated patch to c-exp.y.
362 * jv-exp.y: Likewise.
363 * m2-exp.y: Likewise.
365 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
367 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
368 we are dealing with vectors.
370 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
372 * config/m68k/tm-nbsd.h: Obvious fix,
373 correct machine name.
375 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
377 * p-typeprint.c (pascal_type_print_base): Add support
378 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
380 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
382 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
383 for fondamental pascal 'char' type.
385 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
387 * p-lang.h (is_pascal_string_type): Declaration changed,
388 new sixth argument of type char ** added.
389 * p-lang.c (is_pascal_string_type): Implementation
390 changed. Args length_pos, length_size, string_pos, char_size
391 can now be NULL. New argument arrayname set to the field
392 name of the char array. Return value set to char array
393 field index plus one.
394 * p-valprint.c (pascal_val_print): Adapt to new declaration of
395 is_pascal_string_type function.
397 2002-05-02 Andrew Cagney <cagney@redhat.com>
399 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
400 <cagney@redhat.com> change.
401 * gdbarch.c: Regenerate.
403 2002-05-02 Andrew Cagney <cagney@redhat.com>
405 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
406 before probing for a new one. Detect errorenous gdbarch_init
408 * gdbarch.c: Regenerate.
410 2002-05-01 Andrew Cagney <cagney@redhat.com>
412 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
413 * config/mcore/tm-mcore.h: Ditto. Update copyright.
414 * config/v850/tm-v850.h: Ditto. Update copyright.
416 2002-04-30 Andrew Cagney <ac131313@redhat.com>
418 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
421 2002-04-30 Michael Snyder <msnyder@redhat.com>
423 * arm-tdep.c: Whitespace clean-ups.
424 (arm_skip_prologue): Fix thinko; two lines
425 should have been removed as part of 4/24 change.
427 2002-04-30 Kevin Buettner <kevinb@redhat.com>
429 * rs6000-tdep.c: Added comment describing how fpscr register
432 2002-04-30 Michael Snyder <msnyder@redhat.com>
434 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
436 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
438 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
439 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
440 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
442 2002-04-29 Kevin Buettner <kevinb@redhat.com>
444 From Louis Hamilton <hamilton@redhat.com>:
445 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
446 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
447 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
448 not bfd-private xcoff data, to determine wordsize.
449 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
451 2002-04-29 Andrew Cagney <ac131313@redhat.com>
453 GDB 5.2 released from 5.2 branch.
455 2002-04-29 Michal Ludvig <mludvig@suse.cz>
457 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
458 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
459 (x86_64_register_info_table): Added comments with register numbers.
461 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
463 * rs6000-tdep.c (rs6000_extract_return_value,
464 rs6000_store_return_value): Handle returning vectors.
465 (rs6000_gdbarch_init): Use
466 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
467 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
469 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
471 (ppc_sysv_abi_push_arguments): Handle vector parameters.
472 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
474 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
476 * hpread.c (hpread_psymtab_to_symtab_1,
477 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
478 with fprintf_unfiltered (gdb_stderr,...).
480 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
482 * remote-array.c (printf_monitor, write_monitor,
483 array_insert_breakpoint, array_remove_breakpoint ):
484 Replace fprintf (stderr,...
485 with fprintf_unfiltered (gdb_stderr,....
486 * remote-es.c: Likewise.
487 * remote-os9k.c: Likewise.
488 * remote-st.c: Likewise.
490 2002-04-28 Andreas Schwab <schwab@suse.de>
492 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
493 linux-proc.o and gcore.o.
495 2002-04-26 Michal Ludvig <mludvig@suse.cz>
497 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
498 code without frame pointers.
500 2002-04-26 Andrew Cagney <ac131313@redhat.com>
502 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
505 2002-04-26 Ben Elliston <bje@redhat.com>
507 * target.c (do_xfer_memory): Correct reference to the new option
508 "trust-readonly-sections".
510 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
512 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
513 * gdbtypes.c (recursive_dump_type): Output the vector flag.
514 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
516 (read_array_type): Record the fact that this array type is really a
517 vector (i.e. are passed in by value).
519 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
521 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
522 * alpha-tdep.c (alpha_sigcontext_addr): New function.
523 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
524 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
525 * alpha-linux-tdep.c: Include frame.h.
526 (alpha_linux_sigcontext_addr): New function.
527 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
528 alpha_linux_sigcontext_addr.
529 * alpha-osf1-tdep.c: Include gdbcore.h.
530 (alpha_osf1_sigcontext_addr): New function.
531 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
532 alpha_osf1_sigcontext_addr.
533 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
534 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
536 2002-04-26 Andrew Cagney <ac131313@redhat.com>
538 * stack.c (selected_frame_level):
539 (select_frame): Do not set selected_frame_level.
540 * frame.h (selected_frame_level): Delete declaration.
542 2002-04-26 Andrew Cagney <ac131313@redhat.com>
544 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
545 convert_from_func_ptr-addr when AIX / PowerOpen.
547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
549 * valops.c (hand_function_call): Call
550 generic_save_call_dummy_addr.
551 * frame.h (generic_save_call_dummy_addr): Declare.
552 * blockframe.c (struct dummy_frame): Add fields call_lo and
554 (generic_find_dummy_frame): Check for PC in range call_lo to
555 call_hi instead of entry_point_address.
556 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
557 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
558 (generic_save_call_dummy_addr): New function.
560 2002-04-24 David S. Miller <davem@redhat.com>
562 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
564 (sparc_skip_prologue): Kill frameless_p arg, and use line number
565 information to find prologue when possible.
566 (sparc_prologue_frameless_p): Call examine_prologue directly.
567 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
568 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
570 (SKIP_PROLOGUE): Likewise.
572 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
574 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
575 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
576 indicate that the condition it was testing is always true.
577 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
578 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
579 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
581 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
583 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
584 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
585 tdep->jb_pc and tdep->jb_elt_size.
586 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
587 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
588 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
589 * alpha-nat.c (get_longjmp_target): Remove.
590 (JB_ELEMENT_SIZE): Ditto.
592 * alpha-tdep.c (alpha_get_longjmp_target): New function.
593 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
594 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
595 to alpha_get_longjmp_target.
596 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
597 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
598 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
600 2002-04-25 Andrew Cagney <ac131313@redhat.com>
602 * README: Update to GDB 5.2.
604 2002-04-25 Andrew Cagney <ac131313@redhat.com>
606 * gdbarch.sh (LC_ALL): Set to `c'.
608 2002-04-25 Theodore A. Roth <troth@verinet.com>
610 * avr-tdep.c: Ran through gdb_indent.sh.
612 2002-04-25 Theodore A. Roth <troth@verinet.com>
614 * MAINTAINERS: Add myself as AVR maintainer.
615 * NEWS: Note new target avr.
617 2002-04-25 Theodore A. Roth <troth@verinet.com>
619 * Makefile.in: Add support for AVR target.
620 * configure.tgt: Add support for AVR target.
621 * avr-tdep.c: New file
622 * config/avr/avr.mt: New file.
624 2002-04-25 Theodore A. Roth <troth@verinet.com>
626 * MAINTAINERS: Add myself to write-after-approval.
628 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
630 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
631 with fprintf_unfiltered (gdb_stderr,....
633 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
636 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
638 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
640 * p-exp.y: Also use new prev_lexptr variable
641 to improve error reporting. Based on Michael Snyder
642 2002-04-24 dated patch to c-exp.y.
644 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
646 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
647 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
648 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
650 * config/alpha/tm-alpha.h: Remove forward decls of struct type
652 (FUNCTION_START_OFFSET): Remove.
655 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
657 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
660 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
662 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
663 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
664 alpha_linux_pc_in_sigtramp.
665 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
666 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
667 alpha_osf1_pc_in_sigtramp.
668 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
669 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
670 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
671 alphafbsd_pc_in_sigtramp.
672 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
673 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
674 alphanbsd_pc_in_sigtramp.
675 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
676 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
678 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
680 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
682 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
684 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
686 (alphanbsd-nat.o): New dependency list.
687 (alphanbsd-tdep.o): Ditto.
688 * NEWS: Note new native NetBSD/alpha configuration.
689 * alphanbsd-nat.c: New file.
690 * alphanbsd-tdep.c: Ditto.
691 * configure.host (alpha*-*-netbsd*): New host.
692 * configure.tgt (alpha*-*-netbsd*): New target.
693 * config/alpha/nbsd.mh: New file.
694 * config/alpha/nbsd.mt: Ditto.
695 * config/alpha/nm-nbsd.h: Ditto.
696 * config/alpha/tm-nbsd.h: Ditto.
698 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
700 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
701 (alpha-osf1-tdep.o): New dependency list.
702 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
703 and skip_sigtramp_frame members.
704 * alpha-linux-tdep.c: Include gdbcore.h.
705 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
706 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
707 * alpha-osf1-tdep.c: New file.
708 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
710 (alpha_frame_past_sigtramp_frame): New function.
711 (alpha_dynamic_sigtramp_offset): Ditto.
712 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
713 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
714 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
715 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
716 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
717 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
718 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
719 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
720 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
721 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
722 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
723 to find_solib_trampoline_target.
724 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
725 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
726 (SKIP_TRAMPOLINE_CODE): Remove.
727 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
728 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
729 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
730 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
731 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
732 (PROC_SIGTRAMP_MAGIC): Ditto.
733 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
734 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
735 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
736 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
737 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
741 * NEWS: Note that Alpha targets are now multi-arch.
743 2002-04-24 Michael Snyder <msnyder@redhat.com>
745 * parser-defs.h (prev_lexptr): New external variable.
746 * parse.c (parse_exp_1): Set prev_lexptr to null before
747 calling the language-specific parser.
748 * c-exp.y (yylex): Set prev_lexptr to start of current token.
749 (yyerror): Use prev_lexptr in error reporting.
751 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
753 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
754 * gregset.h: If FILL_FPXREGSET is defined, provide
755 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
756 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
757 is defined, call fill_fpxregset.
759 2002-04-24 Roland McGrath <roland@frob.com>
761 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
762 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
763 (supply_gregset, supply_fpregset): New functions.
765 * gnu-nat.c (gnu_find_memory_regions): New function.
766 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
767 (gnu_xfer_memory): Add a cast.
769 2002-04-24 Michael Snyder <msnyder@redhat.com>
771 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
772 loop. Add handling for "str lr, [sp, #-4]!" and for saves
773 of argument regs ("str r(0123), [r11, #-nn"]).
774 (arm_skip_prologue): Better handling for frameless functions.
775 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
776 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
778 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
780 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
781 NUM_PSEUDO_REGS can be used.
783 2002-04-24 Andrew Cagney <ac131313@redhat.com>
785 * arch-utils.h: Update copyright.
787 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
788 * gdbarch.h, gdbarch.c: Re-generate.
790 * inferior.h (IN_SIGTRAMP): Delete definition.
791 * arch-utils.c (legacy_pc_in_sigtramp): New function.
792 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
794 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
795 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
796 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
797 (find_proc_framesize): Ditto.
798 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
799 (alpha_init_extra_frame_info): Ditto.
800 * infrun.c (handle_inferior_event): Ditto.
801 (handle_inferior_event): Ditto.
802 (check_sigtramp2): Ditto.
803 * blockframe.c (create_new_frame): Ditto.
804 (get_prev_frame): Ditto.
805 * ppc-linux-tdep.c: Update comments.
806 * i386-linux-tdep.c: Update comments.
807 * breakpoint.c (bpstat_what): Update comment.
809 2002-04-24 Michal Ludvig <mludvig@suse.cz>
811 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
812 (regsets_store_inferior_registers): Removed cast to int from
814 * gdbserver/regcache.h: Added declaration of struct inferior_info.
816 2002-04-24 David S. Miller <davem@redhat.com>
818 * i960-tdep.c (register_in_window_p): New function.
819 (i960_find_saved_register): Use it instead of
820 REGISTER_IN_WINDOW_P.
821 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
823 * symtab.h (find_stab_function_addr): Kill extern.
824 * minsyms.c (find_stab_function_addr): Remove from here...
825 * dbxread.c: ... to here, and mark it static.
827 2002-04-20 David S. Miller <davem@redhat.com>
829 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
830 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
832 2002-04-21 David S. Miller <davem@redhat.com>
834 * remote-vxsparc.c (vx_read_register): Fix typo, we want
835 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
836 (vx_write_register): Likewise.
838 2002-04-23 J. Brobecker <brobecker@gnat.com>
840 * source.c (is_regular_file): New function.
841 (openp): Check wether file to open is a regular file
842 to avoid opening directories.
844 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
846 * findvar.c (extract_signed_integer): Cast printf argument
847 to suppress format warning.
848 (extract_unsigned_integer): Likewise.
849 * infcmd.c (registers_info): Likewise.
850 * top.c (get_prompt_1): Likewise.
851 * valops.c (value_assign): Likewise.
852 * valprint.c (print_decimal): Likewise.
854 2002-04-22 H.J. Lu (hjl@gnu.org)
856 * c-exp.y (typebase): Support
858 [long|long long|short] [signed|unsigned] [int|]
862 signed [long|long long|short] int
864 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
866 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
868 * vax-tdep.h: New file.
869 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
870 Make several routines static.
871 (vax_get_saved_register): New function.
872 (vax_gdbarch_init): New function.
873 (_initialize_vax_tdep): Register vax_gdbarch_init.
874 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
875 Remove macros now under the control of gdbarch.
877 2002-04-22 Michael Snyder <msnyder@redhat.com>
879 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
880 Some whitespace and coding standards tweaks.
882 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
884 * vax-tdep.c: Include regcache.h.
885 (vax_call_dummy_words): New.
886 (sizeof_vax_call_dummy_words): New.
887 (vax_fix_call_dummy): New function.
888 (vax_saved_pc_after_call): Ditto.
889 * config/vax/tm-vax.h: Don't include regcache.h.
890 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
891 (CALL_DUMMY): Remove.
892 (CALL_DUMMY_WORDS): Define.
893 (SIZEOF_CALL_DUMMY_WORDS): Define.
894 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
896 2002-04-18 Michael Snyder <msnyder@redhat.com>
898 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
900 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
902 * vax-tdep.c (vax_frame_chain): New function.
903 (vax_push_dummy_frame): Ditto.
904 (vax_pop_frame): Ditto.
905 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
906 (FRAMELESS_FUNCTION_INVOCATION): Use
907 generic_frameless_function_invocation_not.
908 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
909 (POP_FRAME): Use vax_pop_frame.
911 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
913 * vax-tdep.c (vax_store_struct_return): New function.
914 (vax_extract_return_value): Ditto.
915 (vax_store_return_value): Ditto.
916 (vax_extract_struct_value_address): Ditto.
917 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
918 vax_store_struct_return.
919 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
920 (STORE_RETURN_VALUE): Use vax_store_return_value.
921 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
923 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
925 * vax-tdep.c (vax_frame_saved_pc): New function.
926 (vax_frame_args_address_correct): Ditto.
927 (vax_frame_args_address): Ditto.
928 (vax_frame_locals_address): Ditto.
929 (vax_frame_num_args): Move code to be in proximity to
930 other frame-related functions.
931 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
932 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
933 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
934 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
935 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
937 2002-04-22 H.J. Lu (hjl@gnu.org)
939 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
942 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
944 * vax-tdep.c (vax_frame_init_saved_regs): New function.
945 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
946 (FRAME_INIT_SAVED_REGS): New macro.
948 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
950 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
952 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
954 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
956 (fetch_osf_core_registers): Likewise.
957 (supply_gregset): Likewise.
959 2002-04-22 J. Brobecker <brobecker@gnat.com>
961 * symfile.h (get_section_index): Define.
962 * symfile.c (get_section_index): New function.
963 * mdebugread.c (SC_IS_SBSS): New macro.
964 (SC_IS_BSS): Return true for the scBss storage class only, as
965 the scSBss storage class refers to the .sbss section.
966 (parse_partial_symbols): Discard the symbols which associated
967 section does not exist.
968 Make sure to use the .sbss section index for symbols which
969 storage class is scBss, rather than using the .bss section index.
971 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
973 * vax-tdep.c: Update copyright years.
974 (vax_register_name): New function.
975 (vax_register_byte): Ditto.
976 (vax_register_raw_size): Ditto.
977 (vax_register_virtual_size): Ditto.
978 (vax_register_virtual_type): Ditto.
979 * config/vax/tm-vax.h: Update copyright years.
980 (REGISTER_NAMES): Remove.
981 (REGISTER_NAME): Define.
982 (REGISTER_BYTE): Use vax_register_byte.
983 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
984 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
985 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
987 2002-04-21 Andrew Cagney <ac131313@redhat.com>
989 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
991 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
993 2002-04-21 David S. Miller <davem@redhat.com>
995 * arch-utils.c (generic_prologue_frameless_p): Kill
996 SKIP_PROLOGUE_FRAMELESS_P code.
997 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
999 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1000 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1001 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1003 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1004 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1005 (sparc_gdbarch_init): Pass it to
1006 set_gdbarch_prologue_frameless_p.
1008 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1010 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1011 (alphabsd-nat.o): New dependency list.
1013 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1015 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1017 (alpha-linux-tdep.o): New dependency list.
1018 (alphafbsd-tdep.o): Likewise.
1020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1022 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1024 * alpha-tdep.c: ...from here.
1025 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1027 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1029 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1030 prototype from here...
1031 * alpha-tdep.h: ...to here.
1033 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1035 * frame.h (selected_frame_level): Document as deprecated.
1036 (frame_relative_level): Declare.
1037 * stack.c (frame_relative_level): New function.
1038 (selected_frame_level): Document as deprecated.
1039 (select_frame): Do not set the selected_frame_level.
1041 * stack.c (frame_info, record_selected_frame): Update.
1042 (frame_command, current_frame_command): Update.
1043 (up_silently_base, up_command, down_silently_base): Update.
1044 (down_command): Update.
1045 * inflow.c (kill_command): Update.
1046 * tracepoint.c (finish_tfind_command): Update.
1047 * corelow.c (core_open): Update.
1048 * thread.c (info_threads_command): Update.
1049 (do_captured_thread_select): Update.
1050 * infcmd.c (finish_command): Update.
1051 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1053 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1055 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1057 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1059 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1062 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1064 * alphafbsd-tdep.c: Update copyright years. Include
1066 (alphafbsd_use_struct_convention): Make static.
1067 (alphafbsd_init_abi): New function.
1068 (_initialize_alphafbsd_tdep): New function.
1069 * config/alpha/tm-fbsd.h: Update copyright years.
1070 (USE_STRUCT_CONVENTION): Remove.
1072 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1074 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1075 an Alpha ABI variant.
1076 (alpha_abi_handler_list): Declare.
1077 (alpha_gdbarch_register_os_abi): New function.
1078 (alpha_gdbarch_init): Give registered ABI variant handlers a
1079 chance to tweak the gdbarch once we have set up defaults.
1080 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1082 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1084 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1085 to standard_coerce_float_to_double.
1086 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1088 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1090 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1091 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1092 from gdbarch_tdep rather than a constant.
1093 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1094 the default text address for all Alpha Unix ABIs.
1095 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1096 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1098 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1100 * alpha-tdep.h: New file. Includes several Alpha target constants
1102 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1103 let gdbarch deal with.
1104 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1105 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1107 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1108 Alpha target register names.
1109 * alphabsd-nat.c: Likewise.
1110 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1111 Alpha target register names. Make serveral routines static.
1112 (alpha_get_saved_register): New function.
1113 (alpha_abi_names): New.
1114 (process_note_abi_tag_sections): New function.
1115 (get_elfosabi): New function.
1116 (alpha_gdbarch_init): New function.
1117 (alpha_dump_tdep): New function.
1118 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1120 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1122 * frame.c (find_saved_register): Delete #ifdef
1123 HAVE_REGISTER_WINDOWS code.
1124 * config/sparc/tm-sparc.h: Update comments.
1125 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1127 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1129 * i960-tdep.c (i960_find_saved_register): New function.
1130 (i960_get_saved_register): New function.
1131 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1132 (i960_get_saved_register): Declare.
1133 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1135 2002-04-20 David S. Miller <davem@redhat.com>
1137 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1139 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1141 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1142 instead of NUM_PSEUDO_REGS.
1144 2002-04-20 David S. Miller <davem@redhat.com>
1146 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1147 GDB_MULTI_ARCH_PARTIAL
1148 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1149 define, let tm-sp64.h do it.
1151 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1153 * frame.c (find_saved_register): Avoid a NULL pointer
1154 dereference and actually walk the frame list.
1156 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1158 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1159 sorted in most most-recent-used order. Document.
1160 * gdbarch.h, gdbarch.c: Regenerate.
1162 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1164 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1165 (add_inferior): Call create_register_cache.
1166 (clear_inferiors): Call free_register_cache.
1167 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1168 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1169 (registers): Remove.
1170 (get_regcache): New function.
1171 (create_register_cache, free_register_cache): New functions.
1172 (set_register_cache): Don't initialize the register cache here.
1173 (registers_to_string, registers_from_string, register_data): Call
1175 * gdbserver/regcache.h: Add prototypes.
1176 * gdbserver/server.h: Likewise.
1178 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1180 * gdbserver/mem-break.c: New file.
1181 * gdbserver/mem-break.h: New file.
1182 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1184 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1186 (clear_inferiors): Free target_data member if set.
1187 (inferior_target_data, set_inferior_target_data): New functions.
1188 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1189 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1190 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1191 (struct inferior_linux_data): New.
1192 (linux_create_inferior): Use set_inferior_target_data.
1193 (linux_attach): Likewise. Call add_inferior.
1194 (linux_wait_for_one_inferior): New function.
1195 (linux_wait): Call it.
1196 (linux_write_memory): Add const.
1197 (initialize_low): Call set_breakpoint_data.
1198 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1200 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1202 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1204 * gdbserver/target.c (read_inferior_memory)
1205 (write_inferior_memory): New functions.
1206 * gdbserver/target.h (read_inferior_memory)
1207 (write_inferior_memory): Change macros to prototypes.
1208 (struct target_ops): Update comments. Add const to write_memory
1211 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1213 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1215 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1216 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1217 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1220 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1223 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1224 (build_builtin_type_vec128): Ditto.
1225 (append_composite_type_field): Fix calculation of type length in
1228 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1230 * config/djgpp/README: Update.
1232 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1235 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1237 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1238 (alpha_setup_arbitrary_frame): ...to this.
1239 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1240 for alpha_setup_arbitrary_frame.
1242 2002-04-18 Andrew Cagney <cagney@redhat.com>
1244 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1245 * gdbarch.h, gdbarch.c: Regenerate.
1247 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1248 * target.h (memory_breakpoint_from_pc): Update declaration.
1249 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1251 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1252 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1253 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1254 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1255 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1256 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1257 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1258 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1259 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1260 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1261 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1262 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1264 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1266 * monitor.c (monitor_insert_breakpoint): Ditto.
1267 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1269 * config/mcore/tm-mcore.h: Update copyright.
1270 * mem-break.c: Ditto.
1271 * xstormy16-tdep.c: Ditto.
1273 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1275 * p-exp.y: Add precedence rule for '^' token.
1276 This removes the shift/reduce conflicts.
1277 Remove the comment concerning these shift/reduce conflicts.
1279 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1281 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1282 (registers_powerpc_nofp): New register set for processors
1283 without floating point unit.
1285 2002-04-18 David S. Miller <davem@redhat.com>
1287 * MAINTAINERS: Add myself to write-after-approval.
1289 2002-04-17 Michael Snyder <msnyder@redhat.com>
1291 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1293 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1295 * rs6000-tdep.c (frame_initial_stack_address): Use
1296 frame_register_read to read the alloca_reg.
1298 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1300 * frame.c (find_saved_register): Find saved registers in the next
1304 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1306 * gdbarch.sh (LANG): Set to ``c''.
1308 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1310 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1312 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1314 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1317 * hpread.c (hpread_get_lntt): Add declaration.
1318 Also fix PR gdb/391.
1320 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1322 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1323 * aclocal.m4, configure: Re-generate.
1326 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1328 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1329 instead of tm_print_insn.
1331 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1333 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1335 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1337 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1338 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1339 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1341 2002-04-12 Don Howard <dhoward@redhat.com>
1343 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1344 max_user_call_depth.
1345 (init_cmd_lists): Initialize the new value;
1346 * cli/cli-script.c (execute_user_command): Limit the call depth of
1347 user defined commands. This avoids a core-dump when user commands
1348 are infinitly recursive.
1350 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1352 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1353 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1354 from tdep struct instead of DEFAULT_LR_SAVE.
1355 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1356 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1357 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1359 2002-04-12 Michael Snyder <msnyder@redhat.com>
1361 * Remote.c: Spelling fix.
1362 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1363 If no symbol found for "sbrk", try "_sbrk".
1364 (make_output_phdrs): Use bfd_section_name.
1365 (gcore_copy_callback): Use bfd_section_name.
1366 * eval.c: Indentation fix-ups.
1367 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1368 in case it gets applied to an address that is already
1369 in the instruction space.
1370 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1371 * symfile.c: Fix indentation, long lines.
1372 * source.c: White space fix-up.
1374 2002-04-12 Andrew Cagney <cagney@redhat.com>
1376 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1377 * frame.c (frame_register_read): New function. Return non-zero on
1379 (read_relative_register_raw_bytes_for_frame): Delete.
1380 (read_relative_register_raw_bytes): Delete.
1381 * frame.h (frame_register_read): Declare.
1382 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1384 * infcmd.c (do_registers_info): Ditto.
1385 * hppa-tdep.c: Ditto.
1386 * rs6000-tdep.c: Ditto.
1387 * h8500-tdep.c: Ditto.
1388 * mips-tdep.c: Ditto.
1389 * h8300-tdep.c: Ditto.
1390 * z8k-tdep.c: Ditto.
1392 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1394 From Jimi X <jimix@watson.ibm.com>:
1395 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1398 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1400 From Jimi X <jimix@watson.ibm.com>:
1401 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1404 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1406 From Jimi X <jimix@watson.ibm.com>:
1407 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1408 register sets for these processor variants.
1410 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1412 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1413 registers which are allowed to fail to store.
1414 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1415 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1416 (ppc_cannot_store_register): FPSCR may not be storable.
1417 * regformats/reg-ppc.dat: Support FPSCR.
1419 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1421 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1422 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1423 Add fpscr as an invalid/unfetchable register.
1424 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1425 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1426 (fill_fpregset): Add support for register fpscr.
1427 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1428 (fill_gregset): Account for the fact that register ``mq'' might
1430 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1431 (registers_power): Add fpscr to register set at slot 71.
1432 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1433 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1435 2002-04-11 Michael Snyder <msnyder@redhat.com>
1437 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1438 * configure: Regenerate.
1439 * config.in: Regenerate.
1440 * acconfig.h: Add define for _SYSCALL32.
1441 * core-sol2.c: Remove #define _SYSCALL32.
1442 * solib-legacy.c: Remove #define _SYSCALL32.
1444 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1446 * stack.c (select_frame): Cleanup internal error message, do not
1449 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1451 * stack.c (select_frame): Check that selected_frame and the
1452 specified level are as expected.
1453 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1455 * frame.h (struct frame_info): Add field `level'. Update
1457 Work-in-progress PR gdb/464.
1459 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1461 * maint.c (maint_print_section_info): Rename print_section_info.
1462 (print_bfd_section_info, print_objfile_section_info): Update.
1463 * inferior.h (struct gdbarch): Add opaque declaration.
1464 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1465 * gdbarch.h: Regenerate.
1467 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1469 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1470 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1471 (kernel_u_size): Added.
1472 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1473 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1475 2002-04-04 Jim Ingham <jingham@apple.com>
1477 * valarith.c (find_size_for_pointer_math): New function, either returns
1478 the size for a pointer's target, returns 1 for void *, or errors for
1480 (value_add, value_sub): use find_size_for_pointer_math.
1482 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1484 * linux-low.c (linux_look_up_symbols): New hook.
1485 (linux_target_ops): Add linux_look_up_symbols.
1486 * remote-utils.c (decode_address): New function.
1487 (look_up_one_symbol): New function.
1488 * server.c (handle_query): Call target look_up_symbols hook.
1489 * server.h (look_up_one_symbol): Add prototype.
1490 * target.h (struct target_ops): Add look_up_symbols hook.
1492 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1494 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1495 * ChangeLog: Correct paths in last ChangeLog entry.
1497 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1499 * gdbserver/linux-low.h: Remove obsolete prototypes.
1500 (struct linux_target_ops): New.
1501 (extern the_low_target): New.
1502 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1503 (register_addr): Use the_low_target explicitly.
1504 (fetch_register): Likewise.
1505 (usr_fetch_inferior_registers): Likewise.
1506 (usr_store_inferior_registers): Likewise.
1507 * gdbserver/linux-arm-low.c (num_regs): Remove.
1508 (arm_num_regs): Define.
1509 (arm_regmap): Renamed from regmap, made static.
1510 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1512 (arm_cannot_store_register): Renamed from cannot_store_register,
1514 (the_low_target): New.
1515 * gdbserver/linux-i386-low.c (num_regs): Remove.
1516 (i386_num_regs): Define.
1517 (i386_regmap): Renamed from regmap, made static.
1518 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1520 (i386_cannot_store_register): Renamed from cannot_store_register,
1522 (the_low_target): New.
1523 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1524 (ia64_num_regs): Define.
1525 (ia64_regmap): Renamed from regmap, made static.
1526 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1528 (ia64_cannot_store_register): Renamed from cannot_store_register,
1530 (the_low_target): New.
1531 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1532 (m68k_num_regs): Define.
1533 (m68k_regmap): Renamed from regmap, made static.
1534 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1536 (m68k_cannot_store_register): Renamed from cannot_store_register,
1538 (the_low_target): New.
1539 * gdbserver/linux-mips-low.c (num_regs): Remove.
1540 (mips_num_regs): Define.
1541 (mips_regmap): Renamed from regmap, made static.
1542 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1544 (mips_cannot_store_register): Renamed from cannot_store_register,
1546 (the_low_target): New.
1547 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1548 (ppc_num_regs): Define.
1549 (ppc_regmap): Renamed from regmap, made static.
1550 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1552 (ppc_cannot_store_register): Renamed from cannot_store_register,
1554 (the_low_target): New.
1555 * gdbserver/linux-s390-low.c (num_regs): Remove.
1556 (s390_num_regs): Define.
1557 (s390_regmap): Renamed from regmap, made static.
1558 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1560 (s390_cannot_store_register): Renamed from cannot_store_register,
1562 (the_low_target): New.
1563 * gdbserver/linux-sh-low.c (num_regs): Remove.
1564 (sh_num_regs): Define.
1565 (sh_regmap): Renamed from regmap, made static.
1566 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1568 (sh_cannot_store_register): Renamed from cannot_store_register,
1570 (the_low_target): New.
1571 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1572 (the_low_target): New.
1574 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1576 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1577 override FP_REGNUM with frame->fp. Update copyright.
1578 * parse.c (num_std_regs, std_regs): Delete.
1579 (target_map_name_to_register): Do not search std_regs. Update
1580 function description.
1581 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1582 declarations. Update copyright.
1585 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1587 * gdbserver/Makefile.in: Add stamp-h target.
1588 * gdbserver/configure.in: Create stamp-h.
1589 * gdbserver/configure: Regenerated.
1591 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1593 * gdbserver/inferiors.c: New file.
1594 * gdbserver/target.c: New file.
1595 * gdbserver/target.h: New file.
1596 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1598 * gdbserver/linux-low.c (inferior_pid): New static variable,
1599 moved from server.c.
1600 (linux_create_inferior): Renamed from create_inferior.
1601 Call add_inferior. Return 0 on success instead of a PID.
1602 (linux_attach): Renamed from myattach.
1603 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1604 (linux_thread_alive): Renamed from mythread_alive.
1605 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1607 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1608 (regsets_store_inferior_registers): Correct error message.
1609 Add missing ``return 0''.
1610 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1611 (linux_store_registers): Renamed from store_inferior_registers.
1612 (linux_read_memory): Renamed from read_inferior_memory.
1613 (linux_write_memory): Renamed from write_inferior_memory.
1614 (linux_target_ops): New structure.
1615 (initialize_low): Call set_target_ops ().
1616 * gdbserver/remote-utils.c (unhexify): New function.
1617 (hexify): New function.
1618 (input_interrupt): Send signals to ``signal_pid''.
1619 * gdbserver/server.c (inferior_pid): Remove.
1620 (start_inferior): Update create_inferior call.
1621 (attach_inferior): Call add_inferior.
1622 (handle_query): New function.
1623 (main): Call handle_query for `q' packets.
1624 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1625 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1627 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1629 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1631 * gdbserver/configure.in: Check for <string.h>
1632 * gdbserver/configure: Regenerate.
1633 * gdbserver/config.in: Regenerate.
1634 * gdbserver/gdbreplay.c: Include needed system headers.
1635 (remote_open): Remove strchr prototype.
1636 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1637 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1638 (supply_register_by_name): Likewise.
1639 (collect_register): Change buf argument to void *.
1640 (collect_register_by_name): Likewise.
1641 * gdbserver/regcache.h: Add missing prototypes.
1642 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1643 * gdbserver/server.c (handle_query): New function.
1644 (attached): New static variable, moved out of main.
1645 (main): Quiet longjmp clobber warnings.
1646 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1647 * gdbserver/utils.c (error): Remove NORETURN.
1650 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1652 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1653 after the last symbol in a block.
1655 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1657 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1658 is non zero as a found symbol.
1660 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1662 * findvar.c: Include "builtin-regs.h".
1663 (value_of_register): Call value_of_builtin_reg when applicable.
1664 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1665 (target_map_name_to_register): Call
1666 builtin_reg_map_name_to_regnum.
1667 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1668 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1669 (builtin_regs_h): Define.
1670 (builtin-regs.o): New target.
1671 (findvar.o): Add $(builtin_regs_h).
1672 * builtin-regs.c, builtin-regs.h: New files.
1673 * std-regs.c: New file.
1674 Partial fix for PR gdb/251.
1676 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1678 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1679 it's no longer required.
1681 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1683 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1685 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1687 From Jimi X <jimix@watson.ibm.com>:
1688 * rs6000-tdep.c (rs6000_software_single_step): Use
1689 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1690 and size. Use target_insert_breakpoint() and
1691 target_remove_breakpoint() to insert and remove breakpoints
1692 instead of explicit memory reads and writes.
1694 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1696 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1697 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1698 ELF_OBJECT_FORMAT ifdef.
1700 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1702 From Jimi X <jimix@watson.ibm.com>:
1703 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1705 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1707 From Jimi X <jimix@watson.ibm.com>:
1708 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1709 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1711 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1713 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1714 s/asprintf/xasprintf/.
1715 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1717 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1719 I believe Jeff Law denies responsability for this one:
1720 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1721 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1722 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1723 Work-around for PR gdb/366.
1725 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1727 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1728 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1729 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1731 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1733 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1734 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1737 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1739 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1742 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1744 * README (Reporting Bugs in GDB): Document the bug web page as the
1745 prefered way of submitting bugs.
1748 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1750 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1752 * gdbarch.h, gdbarch.c: Re-generate.
1754 2002-04-07 Andreas Schwab <schwab@suse.de>
1756 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1757 buffer to regcache_collect.
1759 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1761 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1762 * gdbarch.c, gdbarch.h: Re-generate.
1764 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1766 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1767 declaration. Fix -Werror.
1769 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1771 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1772 * gdbarch.c: Regenerate.
1774 2002-04-05 Michael Snyder <msnyder@redhat.com>
1776 * breakpoint.c (clear_command): Rewrite middle section to
1777 combine two loops with identical control conditions.
1778 Add a cleanup to eliminate a memory leak.
1779 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1781 2002-04-05 H.J. Lu (hjl@gnu.org)
1783 * solib-svr4.c (bkpt_names): Add "__start".
1785 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1787 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1788 as test for 64 bit target.
1790 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1792 * h8500-tdep.c (h8500_write_fp): Delete function.
1793 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1794 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1795 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1797 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1798 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1800 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1801 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1802 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1803 (d10v_write_fp): Delete function.
1804 * inferior.h (write_fp, generic_target_write_fp): Delete
1806 * regcache.c (generic_target_write_fp): Delete function.
1807 (write_fp): Delete function.
1808 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1809 * gdbarch.h, gdbarch.c: Regenerate.
1810 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1811 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1812 (sparc64_write_fp): Delete declaration.
1813 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1814 (h8500_write_fp): Delete declaration.
1816 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1818 * sparc-tdep.c (sparc64_write_fp): Delete.
1819 (sparc_push_dummy_frame): Replace write_fp call with code to store
1821 (sparc_gdbarch_init): Do not initialize write_fp.
1823 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1825 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1828 2002-03-29 Jim Blandy <jimb@redhat.com>
1830 * stack.c (get_selected_block): Add new argument `addr_in_block',
1831 used to return the exact code address we used to select the block,
1833 * blockframe.c (get_frame_block, get_current_block): Same.
1834 * frame.h (get_frame_block, get_current_block,
1835 get_selected_block): Update declarations.
1836 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1837 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1839 2002-04-05 Michael Snyder <msnyder@redhat.com>
1841 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1844 2002-04-05 J. Brobecker <brobecker@gnat.com>
1846 * utils.c (xfullpath): New function.
1847 * defs.h (xfullpath): Add declaration.
1848 * source.c (openp): Use xfullpath in place of gdb_realpath to
1849 avoid resolving the basename part of filenames when the
1850 associated file is a symbolic link. This fixes a potential
1851 inconsistency between the filenames known to GDB and the
1852 filenames it prints in the annotations.
1853 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1854 to be able to match a filename with either the real filename, or
1855 the name of any symbolic link to this file.
1856 (lookup_partial_symtab): Ditto.
1858 2002-04-04 Michael Snyder <msnyder@redhat.com>
1860 * breakpoint.c: Add support for hardware breakpoints in overlays.
1861 (overlay_events_enabled): New state variable.
1862 (insert_breakpoints): Use overlay_events_enabled to decide
1863 whether to attempt to set a breakpoint at the overlay load addr.
1864 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1865 (remove_breakpoint): Use overlay_events_enabled to decide
1866 whether breakpoints need to be removed from overlay load addr.
1867 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1868 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1869 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1870 disable_overlay_breakpoints): Update overlay_events_enabled.
1872 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1874 * dwarf2read.c (struct function_range): New.
1875 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1876 (check_cu_functions): New.
1877 (read_file_scope): Initialize global function lists.
1878 Call dwarf_decode_line after processing children.
1879 (read_func_scope): Add to global function list.
1880 (dwarf_decode_lines): Call check_cu_functions everywhere
1881 record_line is called. Call record_line with a linenumber
1882 of 0 to mark sequence ends.
1884 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1886 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1887 change sync with glibc.
1889 2002-04-03 Jim Blandy <jimb@redhat.com>
1891 * configure.in: Call AC_C_INLINE.
1892 * configure: Regenerated.
1894 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1896 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1897 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1899 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1901 * NEWS: Mention gcore support on FreeBSD/i386.
1903 * fbsd-proc.c: New file.
1904 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1905 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1907 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1910 2002-03-29 Jim Blandy <jimb@redhat.com>
1912 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1913 unescaped newlines in string literals, but newer ones don't. So
1916 2002-03-26 Michael Snyder <msnyder@redhat.com>
1917 Andrew Cagney <cagney@redhat.com>
1919 * cli/cli-dump.c: New file. Dump memory to file,
1920 restore file to memory.
1921 * cli/cli-dump.h: New file.
1922 * Makefile.in: Add rules, dependencies for cli-dump.o.
1923 * NEWS: Mention new commands.
1925 2002-03-28 Michael Snyder <msnyder@redhat.com>
1927 * symfile.c (symbol_file_add): Move test for null symbols to later.
1929 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1931 From veksler at il.ibm.com:
1932 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1933 the xstrduped original path.
1936 2002-03-27 Michael Snyder <msnyder@redhat.com>
1938 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1939 * infcmd.c (_initialize_infcmd): Ditto.
1940 * language.c (_initialize_language): Ditto.
1941 * symfile.c (_initialize_symfile): Ditto.
1942 * top.c (_init_main): Ditto.
1943 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1945 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1947 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1948 vector registers handling.
1949 (skip_prologue): Handle new AltiVec instructions. Fill in new
1950 fields of frame data.
1951 (frame_get_saved_regs): Fill in information for AltiVec registers.
1953 2002-03-27 Jim Blandy <jimb@redhat.com>
1955 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1956 a function; leave this macro here to invoke that function.
1957 (symbol_init_mangled_name): Declaration for that function.
1958 * symtab.c (symbol_init_mangled_name): New function.
1960 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1962 * valarith.c: Replace strerror with safe_strerror.
1963 * tracepoint.c: Ditto.
1965 * go32-nat.c: Ditto.
1969 2002-03-27 Andreas Schwab <schwab@suse.de>
1971 * event-top.c (command_line_handler): Remove useless if.
1973 2002-03-27 Andreas Jaeger <aj@suse.de>
1975 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1978 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1980 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1981 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1982 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1983 (x86_64_linux_dr_get_status, supply_gregset),
1984 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1985 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1986 (x86_64_register_info_table): Add.
1987 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1988 (x86_64_register_raw_size, x86_64_register_virtual_type),
1989 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1990 general x86_64_register_info_table.
1991 (i386_gdbarch_init): gdbarch_register_bytes is now set
1992 dynamicaly during initialization.
1993 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1994 * gdbserver/linux-x86-64-low.c: Ditto.
1996 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1998 * gdbserver/server.c (main): Call target_signal_to_host_p
1999 and target_signal_to_host on signals received from the remote.
2000 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2001 target_signal_from_host on signals sent to the remote.
2002 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2003 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2005 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2007 * signals/signals.c: Include "server.h" in gdbserver build.
2008 (target_signal_from_name): Don't use STREQ.
2009 (_initialize_signals): Likewise. Don't include function in
2012 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2014 * signals.c: Moved to...
2015 * signals/signals.c: Here.
2016 * Makefile (signals.o): Update.
2018 2002-03-26 Jeff Law (law@redhat.com)
2020 * somread.c (som_symtab_read): Remove some commented out code and
2021 updated related comments. Do not set the minimal symbol table to
2022 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2023 in a dynamic executable.
2024 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2025 where we are unable to find the minimal symbol for the given
2028 2002-03-25 Jeff Law (law@redhat.com)
2030 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2032 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2034 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2036 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2038 * command.h: Update copyright.
2039 (struct cmd_list_element): Replace definition with opaque
2041 (enum cmd_types): Document that it will eventually be moved to
2043 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2044 (MALLOCED_REPLACEMENT): Delete macro.
2045 * Makefile.in (cli_decode_h): Add $(command_h).
2046 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2047 * top.c: Include "cli/cli-decode.h".
2048 * completer.c: Include "cli/cli-decode.h".
2049 * maint.c: Include "cli/cli-decode.h".
2050 * cli/cli-decode.h: Include "command.h".
2051 (enum command_class): Delete.
2052 (enum cmd_types): Comment out.
2053 (enum cmd_auto_boolean): Delete.
2054 (enum var_types): Delete.
2056 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2058 * cli/cli-decode.c: Include "gdb_assert.h".
2059 (add_set_or_show_cmd): New static function.
2060 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2061 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2062 all fields, such as func, from the set command.
2064 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2066 * MAINTAINERS (sh-elf): Change warning flag to -w.
2068 2002-03-23 Andrew Cagney <cagney@redhat.com>
2070 * defs.h (error): Add printf format attribute.
2071 * thread-db.c (thread_from_lwp): Fix error format string.
2072 * stack.c (parse_frame_specification): Ditto.
2073 * cli/cli-decode.c (undef_cmd_error): Ditto.
2074 * scm-lang.c (scm_lookup_name): Ditto.
2075 * tracepoint.c (trace_error): Ditto.
2076 * remote-utils.c (usage): Ditto.
2077 * remote.c (compare_sections_command): Ditto.
2080 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2082 * gdbtypes.c (append_composite_type_field): New function.
2083 (init_composite_type): New function.
2084 * gdbtypes.h (append_composite_type_field): Declare.
2085 (init_composite_type): Ditto.
2087 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2089 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2091 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2092 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2093 structure returning convention for SYSV ABI case, but not
2094 for GNU/Linux, FreeBSD, or NetBSD.
2096 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2098 * symtab.h (lookup_block_symbol): Add mangled_name argument
2101 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2102 with new mangled_name argument.
2103 * linespec.c (decode_line_1): Likewise.
2104 * valops (value_of_this): Likewise.
2105 * symtab.c (lookup_transparent_type): Likewise.
2106 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2107 (lookup_symbol): If we are given a mangled name, pass it down
2108 to lookup_symbol_aux.
2109 (lookup_block_symbol): If we are given a mangled name to check
2110 against, only return symbols which match it.
2112 2002-03-22 Christopher Faylor <cgf@redhat.com>
2114 * win32-nat.c (child_create_inferior): Check for proper shell to use
2115 here, in case the user changes it on the fly.
2116 (_initialize_inftarg): Remove shell path considerations.
2118 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2120 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2121 for gdbarch_max_register_raw_size and max_register_virtual_size.
2122 Adjust copyright year.
2124 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2126 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2127 in a function to cover the entire beginning of the function
2128 as well if it does not already.
2130 2002-03-21 Tom Rix <trix@redhat.com>
2132 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2133 (rs6000_ptrace64): Renamed from ptrace64.
2135 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2137 * gdbserver/remote-utils.c (remote_open): Don't call
2138 getprotobyname, we're all using TCP here so just use
2140 * gdbserver/gdbreplay.c (remote_open): Ditto.
2142 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2144 * regcache.c (_initialize_regcache): No need to call
2145 build_regcache() at this time; it gets called whenever
2146 the gdbarch changes.
2148 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2150 * sparc-nat.c: Include sys/param.h where possible.
2152 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2155 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2156 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2157 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2159 * stabsread.c (rs6000_builtin_type): Likewise.
2160 (read_sun_floating_type): Likewise.
2162 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2164 * stabsread.c (read_member_functions): Remove skip code for duplicate
2165 constructor/destructor methods. Use standard parsing for these
2166 methods and just do not chain them to the list of methods after
2169 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2171 * coffread.c: Remove redundant static declarations. Replace
2172 occurrences of `PTR' with `void *'.
2173 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2174 * top.h (quit_cover): Likewise.
2175 * defs.h (catch_errors): Likewise.
2177 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2179 * defs.h (XMALLOC): Define.
2180 * gdb-events.sh (XMALLOC): Delete macro.
2181 * gdb-events.c, gdb-events.h: Regenerate.
2182 * gdbarch.sh (XMALLOC): Delete macro.
2183 * gdbarch.c: Regenerate.
2184 * serial.c (XMALLOC): Delete macro.
2185 * ui-file.c (XMALLOC): Ditto.
2186 * ser-unix.h (XMALLOC): Ditto.
2187 * sh-tdep.c (XMALLOC): Ditto.
2188 * ui-out.c (XMALLOC): Ditto.
2189 * utils.c (XMALLOC): Ditto.
2190 * i386-tdep.c (XMALLOC): Ditto.
2191 * gdb-events.c (XMALLOC): Ditto.
2192 * d10v-tdep.c (XMALLOC): Ditto.
2193 * cli-out.c (XMALLOC): Ditto.
2195 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2196 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2197 * ui-file.c, ui-out.c: Ditto.
2199 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2201 * command.h (struct cmd_list_element): Add field context.
2202 (set_cmd_context, get_cmd_context): Declare.
2203 * cli/cli-decode.h: Ditto.
2204 * cli/cli-decode.c (get_cmd_context): New function.
2205 (set_cmd_context): New function.
2206 (add_cmd): Initialize context.
2207 Part of fixing PR gdb/145 and PR gdb/146.
2209 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2211 * cli/cli-decode.c (cmd_type): New function.
2212 * command.h (cmd_type): Declare.
2213 * infrun.c (set_schedlock_func): Call function cmd_type.
2214 * kod.c (kod_set_os): Call cmd_type.
2215 * cris-tdep.c (cris_version_update): Use function cmd_type.
2216 (cris_mode_update, cris_abi_update): Ditto.
2218 * command.h: (execute_cmd_post_hook): Declare.
2219 (execute_cmd_pre_hook): Declare.
2220 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2221 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2222 functions. Execute pre/post hook while ensuring that afterwords
2224 * top.c (execute_command): Use execute_cmd_post_hook, and
2225 execute_cmd_pre_hook to execute pre/post commands.
2226 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2228 (hook_stop_stub): Call execute_cmd_pre_hook.
2230 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2232 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2233 set'' and this leads to a core dump. Move xstrdup of
2234 operating_system to after check that it is not NULL.
2236 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2238 * kod.c (kod_set_os): Remove unnecessary check that
2239 ``command->type'' is set_cmd.
2241 * valprint.c (set_input_radix): Use input_radix.
2242 (set_output_radix): Use output_radix.
2243 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2246 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2248 * value.h (struct value): Delete field ``substring_addr''. Change
2249 aligner fields to force_doublest_align, force_longest_align,
2250 force_core_addr_align and force_pointer_aligh.
2252 * value.h (struct value): Fix typo in above change.
2254 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2256 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2257 to fix internal_error from ``maintenance print architecture''.
2259 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2261 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2262 for gcc versions after gcc-2.8.1.
2264 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2266 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2267 for method resolution. Restore adjustment of ``this'' pointer after
2268 calling value_struct_elt, which was accidentally removed during the
2271 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2273 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2275 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2277 * value.h (value_of_register): Update.
2279 2002-03-14 Richard Henderson <rth@redhat.com>
2281 * configure.in: Detect declaration for canonicalize_file_name.
2282 * utils.c (canonicalize_file_name): Declare, if needed.
2283 (gdb_realpath): Prefer realpath if available and usable.
2284 * config.in, configure: Rebuild.
2286 2002-03-14 Richard Henderson <rth@redhat.com>
2288 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2289 a constant array bound.
2291 * MAINTAINERS: Add myself to write-after-approval.
2293 2002-03-14 Michael Snyder <msnyder@redhat.com>
2295 * symfile.c (syms_from_objfile): Return immediately if no syms.
2296 (symbol_file_add): Return immediately if no syms.
2297 (find_sym_fns): Return immediately if no syms.
2299 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2301 * gdbserver/remote-util.c (remote_open): Print remote-side's
2302 IP address when remote debugging over the network.
2304 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2306 * config/sparc/fbsd.mh: Fix copyright.
2307 * config/sparc/fbsd.mt: Likewise.
2309 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2311 * MAINTAINERS: Fix typo in name of gdb warnings option.
2312 (x86-64): Fix formating so that this can be parsed by awk.
2314 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2316 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2317 * defs.h: Include "gdb/signals.h".
2318 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2320 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2322 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2323 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2326 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2327 Don Howard <dhoward@redhat.com>
2329 * mips-tdep.c (ST0_FR): Define.
2330 (mips2_fp_compat): New function, temporarily disabled.
2331 (mips_read_fp_register_single): New function.
2332 (mips_read_fp_register_double): New function.
2333 (mips_print_register): Use them.
2334 (do_fp_register_row): Likewise.
2336 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2338 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2341 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2343 * stabsread.c (read_member_functions): Fix is_stub test for
2344 static member functions, improve comment.
2346 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2348 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2349 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2350 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2351 commands that set boolean values.
2352 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2353 (arm_rdi_resume): Always initialize PC.
2354 (arm_rdi_open): Don't use rslt as a boolean.
2355 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2356 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2357 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2358 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2360 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2362 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2363 * configure: Rebuilt.
2365 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2367 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2368 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2370 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2372 * cli/cli-decode.c (set_cmd_completer): New function.
2373 * command.h (set_cmd_completer): Declare.
2374 * cli/cli-decode.h (set_cmd_completer): Ditto.
2376 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2377 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2378 * win32-nat.c (_initialize_inftarg): Ditto.
2379 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2380 * proc-api.c (_initialize_proc_api): Ditto.
2381 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2382 * source.c (_initialize_source): Ditto.
2383 * exec.c (_initialize_exec): Ditto.
2384 * solib.c (_initialize_solib): Ditto.
2385 * top.c (init_main): Ditto.
2386 * tracepoint.c (_initialize_tracepoint): Ditto.
2387 * symfile.c (_initialize_symfile): Ditto.
2388 * printcmd.c (_initialize_printcmd): Ditto.
2389 * infcmd.c (_initialize_infcmd): Ditto.
2390 * corefile.c (_initialize_core): Ditto.
2392 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2394 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2396 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2398 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2400 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2402 * NEWS: Update headings, 5.2 has branched.
2404 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2406 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2407 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2408 (register_addr, REGISTER_RAW_SIZE): Likewise.
2409 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2410 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2412 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2414 * MAINTAINERS (x86-64): Add myself.
2415 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2416 changed value_ptr -> struct value *
2418 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2420 * configure.host (sparc64-*-freebsd): Add.
2421 * configure.tgt: Likewise.
2422 * config/sparc/fbsd.mh: New file.
2423 * config/sparc/fbsd.mt: Likewise.
2424 * config/sparc/nm-fbsd.h: Likewise.
2425 * config/sparc/tm-fbsd.h: Likewise.
2427 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2429 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2430 regformats/reg-s390x.dat.
2432 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2434 * utils.c: Add FIXME explaining true/false problem.
2436 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2438 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2440 2002-02-28 Michael Chastain <mec@shout.net>
2442 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2444 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2446 * gdbserver/linux-s390-low.c: New file.
2447 * regformats/reg-s390.dat: New file.
2448 * regformats/reg-s390x.dat: New file.
2449 * gdbserver/configure.srv: Add S/390.
2450 * gdbserver/Makefile.in: Add S/390.
2451 * configure.tgt: Enable gdbserver for S/390.
2453 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2455 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2456 first line of the doc string for "info dos", except at the end of
2457 the sentence, since the short help stops at the first period.
2459 2002-02-28 Jason Merrill <jason@redhat.com>
2461 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2463 2002-02-27 Fred Fish <fnf@redhat.com>
2465 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2466 comment (dumy -> dummy).
2468 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2470 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2472 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2474 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2476 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2478 * gdbserver/acconfig.h: New file.
2479 * gdbserver/i387-fp.c: New file.
2480 * gdbserver/i387-fp.h: New file.
2481 * gdbserver/linux-x86-64.c: New file.
2482 * regformats/reg-x86-64.dat: New file.
2483 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2484 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2485 * gdbserver/configure.in: Add support for regsets.
2486 * gdbserver/config.in: Regenerate.
2487 * gdbserver/configure: Regenerate.
2488 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2489 * gdbserver/linux-low.h: New file.
2490 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2492 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2493 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2494 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2495 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2496 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2497 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2498 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2499 "i387-fp.h". Add PTRACE_GETREGS and friends.
2500 * gdbserver/regcache.c (supply_register): New function.
2501 (supply_register_by_name): New function.
2502 (collect_register): New function.
2503 (collect_register_by_name): New function.
2505 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2507 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2508 (config.status): Add configure.srv dependency.
2509 (server_h): Add config.h dependency.
2511 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2513 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2514 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2515 * gdbserver/configure.srv: Change i386-*-linux* to use
2518 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2520 * x86-64-tdep.c: Re-indent. Update copyright date.
2522 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2524 From Michal Ludvig <mludvig@suse.cz>:
2525 * x86-64-tdep.c (value.h): Delete.
2526 (gdb_assert.h): Include.
2527 (x86_64_register_convert_to_virtual,
2528 x86_64_register_convert_to_raw ): Add check which lets only
2529 floating-point values to be converted.
2530 (value_push): Delete.
2531 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2532 (i386_gdbarch_init): Number of register_bytes fixed.
2534 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2536 * MAINTAINERS: Add x86-64 target.
2538 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2540 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2541 * osfsolib.c (solib_map_sections): Ditto.
2542 * irix5-nat.c (solib_map_sections): Ditto.
2543 * corelow.c (gdb_check_format): Ditto.
2544 * symfile.c (symfile_bfd_open): Ditto.
2545 * solib.c (solib_map_sections): Ditto.
2548 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2550 * remote.c (_initialize_remote): By default, disable ``e'' and
2551 ``E'' step out-of-range packets.
2553 2002-02-26 Andreas Schwab <schwab@suse.de>
2555 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2556 m68k_linux_frame_saved_pc.
2557 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2559 (SIGCONTEXT_PC_OFFSET): Remove.
2560 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2561 m68k_linux_sigtramp_saved_pc): New functions.
2562 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2563 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2564 (UCONTEXT_PC_OFFSET): Define.
2565 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2566 non-RT and RT signal trampolines.
2568 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2570 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2571 (TARGET_NBPG, STACK_END_ADDR): Delete
2572 (VARIABLES_INSIDE_BLOCK): Delete.
2574 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2576 * utils.c (perror_with_name): Make string parameter constant.
2577 (print_sys_errmsg): Ditto.
2579 * defs.h (perror_with_name): Update.
2580 (print_sys_errmsg): Update.
2583 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2585 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2586 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2588 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2590 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2591 if it already matches the current architecture from the exec file.
2592 Include arch-utils.h for gdbarch_info_init prototype.
2593 * Makefile.in (rs6000-nat.o): Update dependencies.
2595 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2597 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2598 list of exported variables.
2600 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2602 * gdbserver/configure.srv: New file.
2603 * gdbserver/configure.in: Use configure.srv instead
2604 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2606 * gdbserver/configure: Regenerated.
2607 * gdbserver/terminal.h: New file.
2608 * gdbserver/Makefile.in: Update for configure changes. Remove
2609 more unneeded include paths.
2611 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2613 From wiz at danbala:
2614 * config/sparc/tm-sp64.h: Fix grammar and typos.
2617 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2619 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2620 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2621 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2622 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2623 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2624 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2625 * s390-tdep.c: Ditto.
2626 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2627 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2628 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2629 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2630 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2631 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2632 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2633 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2634 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2635 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2638 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2640 * lin-thread.c: Delete file.
2641 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2642 to gdb_proc_service.h.
2643 * configure: Re-generate.
2645 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2646 * serial.c (serial_open): Delete check for "ocd".
2649 * Makefile.in (linux-thread.o): Delete target.
2650 * linux-thread.c: Delete file.
2652 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2653 renamed SH files to be consistent.
2655 * symtab.c (sort_search_symbols): Use xfree.
2657 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2659 * arm-linux-tdep.c (arm_linux_init_abi): Register
2660 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2661 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2662 definition with undef, since we don't want the sysvr4 definition.
2663 (SKIP_TRAMPOLINE_CODE): Likewise.
2665 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2667 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2669 * configure.in: (AC_CHECK_FUNCS) Added test for
2670 canonicalize_file_name Regenerated.
2671 * config.in, configure: Regenerated.
2672 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2673 defined use canonicalize_file_name.
2675 2002-02-23 Michael Chastain <mec@shout.net>
2677 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2679 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2681 * README: Remove references to cygnus.com.
2682 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2683 dot com'' form. Remove references to cygnus.com and sourceware.
2685 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2687 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2688 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2689 1003.1-2001 no longer allows "head -1".
2690 * gdb/Makefile.in (version.c): Likewise.
2691 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2692 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2693 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2695 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2697 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2698 * command.h (cmd_cfunc_eq): Declare.
2699 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2701 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2702 ``struct cmd_list_element *''.
2703 * cli/cli-cmds.c (is_complete_command): Update. Use
2705 * top.c (execute_command): Pass the command to
2706 is_complete_command.
2707 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2709 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2711 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2712 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2713 architecture defines.
2714 * s390-tdep.c (s390_gdbarch_init): Likewise.
2716 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2718 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2719 (arm_linux_push_arguments): Likewise.
2720 (arm_linux_init_abi): Register them. Also register linux-specific
2722 (find_minsym_and_objfile): Use strcmp, not STREQ.
2723 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2724 (arm_linux_call_dummy_words): Delete declaration.
2725 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2726 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2728 (LOWEST_PC): Delete.
2730 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2732 * maint.c (print_section_info): Do not prepend `0x' to filepos
2733 output, it will be handled by local_hex_string_custom.
2735 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2737 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2738 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2739 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2741 2002-02-22 Jim Blandy <jimb@redhat.com>
2743 Indicate that the bcache functions don't change the strings
2745 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2746 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2748 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2750 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2752 2002-02-21 Christopher Faylor <cgf@redhat.com>
2754 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2755 find the complete path to a loaded DLL.
2757 2002-02-21 Fred Fish <fnf@redhat.com>
2759 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2760 that marks the end of the range of a function, enter a line number
2761 entry that has a line number of zero and a PC offset that matches
2762 the end of the function. This starts a range of PC's for which no
2763 line number information is known.
2764 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2765 PC's for which no line number info is found (line number is zero)
2766 then we didn't find any valid line information.
2767 * symtab.h: Document use of zero line number entry.
2769 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2771 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2772 (have_ptrace_getvrregs): Define for run time checks.
2773 (gdb_vrregset_t): New type for Altivec register handling.
2774 (fetch_register, store_register): Fetch/store altivec register
2776 (fetch_altivec_register, store_altivec_register): New functions.
2777 (supply_vrregset, fill_vrregset): New functions.
2778 (fetch_altivec_registers, store_altivec_registers): New functions.
2779 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2782 2002-02-21 Jiri Smid <smid@suse.cz>
2784 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2786 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2788 * Makefile.in (armnbsd-nat.o): Update dependencies.
2789 * armnbsd-nat.c (supply_gregset): New function. Common code to
2790 supply the integer register set.
2791 (supply_fparegset): New function. Similar for FPA registers.
2792 (fetch_regs, fetch_fp_regs): Use them.
2793 (fetch_core_registers): Likewise.
2794 (fetch_elfcore_registers): New function.
2795 (arm_netbsd_elfcore_fns): New core-file type specification.
2796 (_initialize_arm_netbsd_nat): Register it.
2798 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2800 * armnbsd-nat.c: Include gdbcore.h.
2801 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2802 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2803 'void' to declaration, to shut up ARI.
2804 (fetch_core_registers): Make static. Rewrite using supply_register.
2805 (arm_netbsd_core_fns): New core-file type specification.
2806 (_initialize_arm_netbsd_nat): New function.
2808 2002-02-21 Christopher Faylor <cgf@redhat.com>
2810 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2813 2002-02-20 Christopher Faylor <cgf@redhat.com>
2815 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2818 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2820 * jv-exp.y (parse_number): Change type of implicit longs
2821 to builtin_type_uint64.
2823 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2825 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2826 to be an integer instead of a `union wait'.
2828 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2830 * mips-linux-nat.c: Call the operating system GNU/Linux.
2831 * mips-linux-tdep.c: Likewise.
2832 * mips-tdep.c: Likewise.
2834 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2837 * jv-exp.y (parse_number): Handle 64-bit integers.
2839 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2841 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2842 AC_STDC_HEADERS to AC_HEADER_STDC.
2843 * gdbserver/configure: Regenerated.
2845 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2847 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2849 * sparc-tdep.c (get_longjmp_target): Likewise.
2851 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2853 * News: Add news about ARM and Multi-arch. Mention the new target
2856 2002-02-19 Jim Blandy <jimb@redhat.com>
2858 * stabsread.c (error_type_complaint): Improve error message.
2860 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2862 * gdbserver/README: Update documentation.
2863 * gdbserver/configure.in: Update configury to match documentation.
2864 * gdbserver/Makefile.in: Likewise.
2865 * gdbserver/configure: Regenerated.
2866 * gdbserver/aclocal.m4: New file, generated by aclocal.
2867 * gdbserver/config.in: New file, generated by autoheader.
2869 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2871 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2874 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2876 * arm-tdep.h (enum arm_float_model): New enum.
2877 (struct gdbarch_tdep): Add fp_model.
2878 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2879 up floating-point conversions until we know the floating-point model
2880 in use by the inferior. Don't complain about being unable to
2881 determine the ABI of the inferior when we don't have one.
2882 (arm_extract_return_value): Support different floating-point models.
2883 (arm_store_return_value): Likewise.
2884 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2886 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2888 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2890 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2891 of ``current_gdbarch''.
2893 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2895 * armnbsd-nat.c : ANSIfy all function declarations.
2896 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2897 (fetch_inferior_registers): Re-implement in terms of above.
2898 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2899 (store_inferior_registers): Re-implement in terms of above.
2901 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2903 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2905 * arm-linux-tdep.c: Likewise.
2906 * config/arm/tm-linux.h: Likewise.
2908 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2910 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2911 * config/arm/nbsd.mt (TM_FILE): Delete.
2912 * config/arm/tm-nbsd.h: Delete.
2914 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2916 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2917 Initialize CALL_DUMMY_LENGTH.
2919 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2921 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2923 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2924 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2925 defines one thing and that is incorrect for this port.
2926 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2928 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2930 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2932 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2934 * win32-nat.c (display_selector): New function. Displays information
2935 about the information returned by GetThreadSelectorEntry API function.
2936 (display_selectors): New function. Displays the infomation of
2937 the selector given as argument, or of CS, DS ans FS selectors
2938 if no argument is given.
2939 ( _initialize_inftarg): Add "w32" as info prefix command.
2940 Add "info w32 selector" as command calling display_selectors.
2942 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2944 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2945 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2948 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2950 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2952 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2954 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2955 (arm_fix_call_dummy): Call it.
2956 (arm_call_dummy_breakpoint_offset): Delete.
2957 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2958 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2960 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2962 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2963 Default to func_frame_chain_valid.
2964 * gdbarch.h, gdbarch.c: Re-generate.
2965 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2967 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2969 * ppc-linux-nat.c: Update copyright.
2970 (fetch_register, store_register): Add tid parameter, don't compute
2972 (fetch_ppc_registers, store_ppc_registers): Add tid
2973 parameter. Pass it along to callees.
2974 (fetch_inferior_registers, store_inferior_registers): Compute tid
2975 here, and pass it to calleed functions.
2976 (fill_gregset, supply_fpregset): Clean up formatting.
2978 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2980 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2981 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2983 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2985 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2986 * gdbarch.c gdbarch.h: Regenerate.
2987 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2989 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2990 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2991 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2993 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2994 * arm-tdep.c (arm_get_longjmp_target): New function.
2995 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2996 this to a positive value register arm_get_longjmp_target as the
2998 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2999 (arm_linux_init_abi): Set up longjmp description in tdep.
3000 * armnbsd-nat.c (get_longjmp_target): Delete.
3001 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3002 description in tdep.
3003 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3004 (get_longjmp_target): Delete declaration.
3005 (GET_LONGJMP_TARGET): Delete.
3006 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3007 (GET_LONGJMP_TARGET): Delete.
3009 2002-02-17 Kevin Buettner <kevinb@redhat.com>
3011 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3012 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3013 of ``current_gdbarch''.
3015 2002-02-17 Tom Tromey <tromey@redhat.com>
3017 * cli/cli-cmds.c (compare_strings): New function.
3018 (complete_command): Only print each unique item once.
3019 * completer.h (complete_line): Declare.
3020 * completer.c (complete_line): New function.
3021 (line_completion_function): Use it.
3023 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3025 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3026 * gdbarch.h, gdbarch.c: Re-generate.
3028 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3030 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3032 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3034 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3035 * valops.c (value_arg_coerce): Don't take the address of a reference
3036 to convert an argument to a reference.
3038 2002-02-15 Christopher Faylor <cgf@redhat.com>
3040 * win32-nat.c (get_image_name): New function.
3041 (handle_load_dll): Use get_image_name function.
3042 (get_child_debug_event): Avoid registering debug events until possibly
3043 execed process is started.
3044 (child_create_inferior): Allow invocation via shell so that command
3045 line redirection, etc. works ok.
3046 (_initialize_inftarg): Add new command: "set shell" to control whether
3047 a shell is used to start a process.
3049 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3051 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3052 instead of find_register_by_number.
3053 (cannot_store_register): Likewise.
3055 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3057 * dwarf2read.c: Replace fprintf (stderr, ...) by
3058 fprintf_unfiltered (gdb_stderr, ...).
3060 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3062 * gdbserver/gdbserver.1: Document --attach.
3064 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3066 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3068 * arm-tdep.c (arm_default_arm_le_breakpoint)
3069 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3070 (arm_default_thumb_be_breakpoint): New. Initialize them from
3071 traditional breakpoint defines.
3072 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3073 (arm_gdbarch_init): Initialize new breakpoint variables.
3074 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3075 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3076 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3077 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3079 (arm_netbsd_init_abi_common): ... here; new function.
3080 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3081 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3082 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3083 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3085 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3087 * arm-tdep.h (enum arm_abi): New enum.
3088 (struct gdbarch_tdep): New structure.
3089 (LOWEST_PC): Provide a default.
3090 (arm_gdbarch_register_os_abi): Declare new function.
3091 * arm-tdep.c (arm_abi_names): New array.
3092 (process_note_abi_tag_sections): New function.
3093 (get_elfosabi): New function.
3094 (arm_gdbarch_register_os_abi): New function.
3095 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3096 support for that ABI has been built in, then call the appropriate
3097 configuration routine. Use gdbarch_num_regs() to get the number
3099 (arm_dump_tdep): New function.
3100 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3101 place-holder functions.
3102 (_initialize_arm_tdep): Register them.
3103 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3105 * armnbsd-tdep.c: New file.
3106 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3107 * config/arm/nbsd.mt (TDEPFILES): Add it.
3108 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3110 * armnbsd-nat.c: Include regcache.h.
3111 * Makefile.in (armnbsd-nat.o): Update dependency list.
3113 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3115 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3117 * gdbserver/Makefile.in: Fix typos in target rules.
3119 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3121 Fix part of PR gdb/267.
3122 * linespec.c (find_methods): Handle constructors specially for now.
3124 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3126 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3128 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3129 standard_coerce_float_to_double().
3131 2002-02-14 Christopher Faylor <cgf@redhat.com>
3133 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3136 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3138 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3139 find_variant_by_name, because it confuses the multiarch
3140 framework. Return NULL if there isn't an architecture with the
3141 user supplied name, instead of forcing a different one without
3142 recording the change with the multiarch machinery.
3143 (find_variant_by_name): Delete.
3145 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3147 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3148 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3150 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3152 * stack.c (print_frame_info_base): When calling
3153 print_frame_info_listing_hook, set current_source_symtab.
3155 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3157 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3158 and remove unused $(INCLUDE_DIR).
3159 Add regcache.c to OBS.
3160 Add generated register protocol files to clean target.
3161 Update dependencies for new objects, obsolete old target code.
3163 * gdbserver/linux-low.c: Remove all platform-specific code to
3164 new files. Remove various dead code. Update to use regcache
3166 * gdbserver/remote-utils.c (fromhex): Add return statement
3168 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3170 (input_interrupt): Add integer parameter to match prototype
3171 of a signal handler.
3172 (outreg): Use register_data ().
3173 (prepare_resume_reply): Use gdbserver_expedite_regs.
3174 * gdbserver/server.c (main): Dynamically allocate own_buf because
3175 PBUFSIZ is no longer constant. Use registers_to_string () and
3176 registers_from_string ().
3177 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3178 for error (), fatal (), and warning (). Update definition of
3179 PBUFSIZ to use regcache functionality. Add include guard.
3180 * gdbserver/utils.c (fatal): Add missing ``const''.
3181 (warning): New function.
3183 * regformats/regdat.sh: Include "regcache.h" in generated files.
3184 Provide init_registers () function.
3185 * regformats/regdef.h: Add prototype for set_register_cache ().
3188 * gdbserver/linux-arm-low.c: New file.
3189 * gdbserver/linux-i386-low.c: New file.
3190 * gdbserver/linux-ia64-low.c: New file.
3191 * gdbserver/linux-m68k-low.c: New file.
3192 * gdbserver/linux-mips-low.c: New file.
3193 * gdbserver/linux-ppc-low.c: New file.
3194 * gdbserver/linux-sh-low.c: New file.
3196 * gdbserver/regcache.c: New file.
3197 * gdbserver/regcache.h: New file.
3199 * gdbserver/low-linux.c: Removed obsolete file.
3201 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3203 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3204 * config/i386/linux.mt: Likewise.
3205 * config/ia64/linux.mt: Likewise.
3206 * config/m68k/linux.mh: Likewise.
3207 * config/powerpc/linux.mh: Likewise.
3208 * config/mips/linux.mt: Likewise.
3210 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3212 * config/i386/i386lynx.mh: Mark gdbserver variables
3213 as (currently) obsolete for this target.
3214 * config/i386/nbsd.mt: Likewise.
3215 * config/i386/nbsdelf.mt: Likewise.
3216 * config/m32r/m32r.mt: Likewise.
3217 * config/m68k/m68klynx.mh: Likewise.
3218 * config/m68k/nbsd.mt: Likewise.
3219 * config/m68k/sun3os4.mh: Likewise.
3220 * config/mips/vr5000.mt: Likewise.
3221 * config/ns32k/nbsd.mt: Likewise.
3222 * config/pa/hppabsd.mh: Likewise.
3223 * config/pa/hppaosf.mh: Likewise.
3224 * config/powerpc/nbsd.mt: Likewise.
3225 * config/rs6000/rs6000lynx.mh: Likewise.
3226 * config/s390/s390.mt: Likewise.
3227 * config/s390/s390x.mt: Likewise.
3228 * config/sparc/sparclynx.mh: Likewise.
3229 * config/sparc/sun4os4.mh: Likewise.
3230 * config/i386/x86-64linux.mt: Likewise.
3231 * config/sparc/linux.mh: Likewise.
3233 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3235 * configure.tgt: Configure gdbserver only for known working
3236 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3237 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3238 SUBDIRS if it is configured. Update comment for ${nativefile}.
3239 * configure: Regenerated.
3241 2002-02-13 Michael Snyder <msnyder@redhat.com>
3243 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3245 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3246 (default_gcore_mach): Just return 0, work around a problem in bfd.
3247 (default_gcore_target): OK to return NULL if exec_bfd is null.
3248 (make_mem_sec): Use a cast, avoid a warning.
3250 * procfs.c (find_memory_regions_callback): Use a cast instead of
3251 calling host_pointer_to_address (which complains if
3252 sizeof (host pointer) != sizeof (target pointer)).
3253 (procfs_make_note_section): Avoid overflow in psargs string.
3255 * procfs.c (procfs_make_note_section): Make the default
3256 implementation return an error.
3258 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3260 * procfs.c (procfs_make_note_section): Provide a default definition
3261 (for alpha-dec-osf4.0f). Fix typos.
3263 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3265 * linux-proc.c: Add include of regcache.h.
3266 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3268 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3270 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3271 * memattr.c (create_mem_region): Disallow useless empty region.
3272 Regions are half-open intervals, so allow [A..B) [B..C) as
3275 2002-02-13 Michael Chastain <mec@shout.net>
3277 * defs.h: Kill CONST_PTR.
3278 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3279 * c-lang.c (c_builtin_types): Likewise.
3280 * ch-lang.c (ch_builtin_types): Likewise.
3281 * f-lang.c (f_builtin_types): Likewise.
3282 * language.c (unknown_builtin_types): Likewise.
3283 * m2-lang.c (m2_builtin_types): Likewise.
3284 * p-lang.c (pascal_builtin_types): Likewise.
3285 * scm-lang.c (c_builtin_types): Likewise.
3287 2002-02-13 Keith Seitz <keiths@redhat.com>
3289 * arm-tdep.h (arm_get_next_pc): Add declaration.
3291 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3293 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3294 with other related struct-returning functions.
3295 (arm_extract_struct_value_address): New function.
3296 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3297 initialize float_format, double_format and long_double_format as
3298 appropriate to the endianness of the target.
3299 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3300 (arm_use_struct_convention): Delete declaration.
3301 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3303 2002-02-13 Keith Seitz <keiths@redhat.com>
3305 * defs.h (core_addr_to_string_nz): New function.
3307 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3309 Apply missing bits of 2002-01-15 patch.
3310 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3311 (fill_fpregset): Use i387_fill_fsave.
3313 2002-02-12 Keith Seitz <keiths@redhat.com>
3315 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3316 (core_addr_to_string_nz): New function.
3318 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3320 * arm-linux-nat.c: Really include arm-tdep.h.
3321 * config/arm/tm-linux.h (struct type, struct value): Declare.
3323 2002-02-11 Michael Snyder <msnyder@redhat.com>
3325 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3326 (gcore section): Ifdef for Solaris and Unixware only.
3327 (procfs_do_thread_registers): Unixware needs one lwpstatus
3328 per thread (not one prstatus or pstatus).
3329 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3330 not over all gdb threads. For unixware, call elfcore_write_pstatus
3331 once before iterating over threads.
3333 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3335 * arm-tdep.h: New file.
3336 * arm-tdep.c: Include arm-tdep.h.
3337 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3338 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3339 (arm_print_float_info, arm_register_type, convert_to_extended)
3340 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3341 (arm_extract_return_value, arm_register_name): Make static.
3342 (arm_software_single_step): Similarly. Fix types in declaration.
3343 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3344 (arm_store_return_value, arm_store_struct_return): New functions.
3345 (arm_gdbarch_init): Register the above functions. Also register
3346 call_dummy_start_offset, sizeof_call_dummy_words,
3347 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3348 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3349 max_register_virtual_size, register_size. Set up
3350 prologue_cache.saved_regs here, rather than ...
3351 (_initialize_arm_tdep): ... here.
3352 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3354 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3355 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3356 (arm_print_float_info, arm_register_type, convert_to_extended)
3357 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3358 (arm_extract_return_value, arm_register_name): Delete declarations.
3359 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3360 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3361 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3362 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3363 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3364 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3365 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3366 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3367 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3368 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3369 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3370 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3372 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3373 * remote-rdi.c remote-rdp.c: Likewise.
3374 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3375 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3376 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3379 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3380 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3381 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3382 from non-ARM_ prefixed definitions.
3383 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3385 * remote-rdi.c remote-rdp.c: Likewise.
3386 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3388 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3390 * arm-tdep.c (arm_frameless_function_invocation)
3391 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3392 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3393 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3394 (arm_pop_frame, arm_get_next_pc): Make static.
3395 (arm_gdbarch_init): Register above in gdbarch structure.
3396 (arm_read_fp): Renamed from arm_target_read_fp.
3397 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3398 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3399 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3400 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3401 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3402 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3403 (arm_pc_is_thumb_dummy): Delete declarations.
3404 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3405 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3406 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3407 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3409 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3411 * symtab.c (compare_search_syms): New function.
3412 (sort_search_symbols): New function.
3413 (search_symbols): Sort symbols after searching rather than
3416 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3418 * NEWS: Linux -> GNU/Linux.
3420 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3422 * gdbarch.sh: For for level one methods, disallow a definition
3423 when partially multi-arched. Add comments explaining rationale.
3424 * gdbarch.h: Re-generate.
3426 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3428 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3431 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3433 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3435 * gdbarch.c: Re-generate.
3437 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3439 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3440 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3443 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3445 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3447 (PUSH_ARGUMENTS): Switch to using predefault.
3448 * gdbarch.c: Regenerate.
3450 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3452 * valops.c (PUSH_ARGUMENTS): Delete definition.
3453 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3454 partial. Default to default_push_arguments.
3455 * gdbarch.h, gdbarch.c: Regenerate.
3457 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3459 * defs.h (throw_exception): Rename return_to_top_level. Update
3461 * utils.c (error_stream, internal_verror, quit): Ditto.
3462 * top.c (throw_exception, catcher): Ditto.
3463 * sparclet-rom.c (sparclet_load): Ditto.
3464 * remote.c (interrupt_query, minitelnet): Ditto.
3465 * remote-sds.c (interrupt_query): Ditto.
3466 * remote-mips.c (mips_error, mips_kill): Ditto.
3467 * ocd.c (interrupt_query): Ditto.
3468 * monitor.c (monitor_interrupt_query): Ditto.
3469 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3470 * target.h: Update comment.
3472 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3474 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3476 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3477 default_double_format.
3478 * gdbarch.h, gdbarch.c: Re-generate.
3479 * findvar.c (floatformat_unknown): Delete variable definition.
3480 * doublest.h (floatformat_unknown): Delete variable declaration.
3482 2002-02-09 Jim Blandy <jimb@redhat.com>
3484 * stabsread.c (read_type): Add code to parse Sun's syntax for
3485 prototyped function types.
3487 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3489 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3490 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3492 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3494 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3495 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3496 now _initialize_xcoffsolib gets called again and overrides the
3497 commands from solib.c in a native configuration.
3499 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3501 * doublest.c (store_typed_floating): Don't try to return a value.
3504 2002-02-08 Jim Blandy <jimb@redhat.com>
3506 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3507 is prototyped and has no arguments, print its argument list as
3510 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3512 * MAINTAINERS (write-after-approval): Add myself.
3513 (paper-trail): I've escaped!
3515 2002-02-08 Christopher Faylor <cgf@redhat.com>
3517 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3519 (_initialize_check_for_gdb_ini): Ditto.
3521 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3523 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3524 xaprintf -> xasprintf.
3526 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3528 * win32-nat.c: Remove use of printf and sprintf functions.
3530 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3532 * arm-tdep.c (arm_frame_chain_valid): Make static.
3533 (arm_push_arguments): Likewise.
3534 (arm_gdbarch_init): New function.
3535 (_initialize_arm_tdep): Call it.
3536 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3537 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3538 (FRAME_CHAIN_VALID): Delete.
3539 (arm_frame_chain_valid): Delete declaration.
3540 (PUSH_ARGUMENTS): Delete.
3541 (arm_push_arguments): Delete declaration.
3542 (CALL_DUMMY_P): Delete.
3544 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3545 Corinna Vinschen <vinschen@redhat.com>
3547 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3548 on builtin float types.
3550 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3552 * utils.c: Include <curses.h> before "bfd.h".
3553 * tui/tui-hooks.c: Likewise.
3554 * tui/tui.c: Likewise.
3555 * tui/tuiCommand.c: Likewise.
3556 * tui/tuiData.c: Likewise.
3557 * tui/tuiDataWin.c: Likewise.
3558 * tui/tuiDisassem.c: Likewise.
3559 * tui/tuiGeneralWin.c: Likewise.
3560 * tui/tuiIO.c: Likewise.
3561 * tui/tuiLayout.c: Likewise.
3562 * tui/tuiRegs.c: Likewise.
3563 * tui/tuiSource.c: Likewise.
3564 * tui/tuiSourceWin.c: Likewise.
3565 * tui/tuiStack.c: Likewise.
3566 * tui/tuiWin.c: Likewise.
3568 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3570 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3571 to include space for pseudoregs as well. Update loops accordingly.
3572 (sh_fp_frame_init_saved_regs): Ditto.
3573 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3575 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3577 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3578 Add Richard Earnshaw to Arm maintainers.
3580 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3582 * defs.h (warning_begin): Delete declaration.
3584 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3587 2002-02-07 Michael Snyder <msnyder@redhat.com>
3589 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3590 Logic bug, remove misplaced else.
3592 2002-02-07 Klee Dienes <klee@apple.com>
3594 * fork-inferior.c (fork_inferior): Add '!' to the list of
3595 characters that need to be quoted when building a string for the
3596 shell. Quote '!' specifically with a backslash, since CSH chokes
3597 when trying to evaluate "str!str".
3599 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3601 * rdi-share/host.h: Only provide a typedef for bool if it is not
3604 2002-02-04 Michael Snyder <msnyder@redhat.com>
3606 * breakpoint.h (enum bptype): Add new overlay event bp type.
3607 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3609 * breakpoint.c (create_internal_breakpoint): New function.
3610 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3611 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3612 (create_thread_event_breakpoint): Ditto.
3613 (create_solib_event_breakpoint): Ditto.
3614 (create_overlay_event_breakpoint): New function.
3615 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3616 (update_breakpoints_after_exec): Delete and re-initialize
3617 overlay event breakpoints after an exec. Add FIXME comment
3618 about longjmp breakpoint.
3619 (print_it_typical): Ignore overlay event breakpoints.
3620 (print_one_breakpoint): Ditto.
3622 (bpstat_what): Do not stop for overlay event breakpoints.
3623 (delete_breakpoint): Don't delete overlay event breakpoints.
3624 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3625 (breakpoint_re_set): Re-create overlay event breakpoint.
3627 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3628 (overlay_manual_command): Disable overlay breakpoints.
3629 (overlay_off_command): Disable overlay breakpoints.
3631 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3633 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3634 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3635 to here from config/tm-arm.h.
3636 (coff_sym_is_thumb): Make static.
3637 (arm_elf_make_msymbol_special): New function.
3638 (arm_coff_make_msymbol_special): New function.
3639 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3640 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3641 (coff_sym_is_thumb): Delete declaration.
3642 (arm_elf_make_msymbol_special): Declare.
3643 (arm_coff_make_msymbol_special): Declare.
3644 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3645 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3647 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3649 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3651 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3653 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3654 * gdbarch.c gdbarch.h: Regenerate.
3655 * arch-utils.c (default_print_float_info): New function.
3656 * arch-utils.h (default_print_float_info): Prototype it.
3657 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3658 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3659 (PRINT_FLOAT_INFO): Document it.
3661 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3662 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3663 (PRINT_FLOAT_INFO): Define.
3665 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3667 * win32-nat.c (_initialize_check_for_gdb_ini):
3668 Add typecast to sprintf argument to suppress a warning.
3670 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3672 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3673 to allow easier handling of pass state.
3674 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3675 that gives exception name and address.
3676 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3677 and set last_sig value to ourstatus->value.sig. Some missing
3679 (child_continue): Correctly report continue_status.
3680 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3681 TARGET_SIGNAL_0 (new default value).
3682 (child_resume): consider sig argument passed to decide if
3683 the exception should be passed to debuggee or not.
3685 2002-02-05 Michael Snyder <msnyder@redhat.com>
3687 * regcache.c (fetch_register): Call target_fetch_register
3688 only if we don't call FETCH_PSEUDO_REGISTER.
3689 (store_register): Call target_store_register only if we
3690 don't call STORE_PSEUDO_REGISTER.
3692 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3694 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3695 ELF_MAKE_MSYMBOL_SPECIAL.
3696 * gdbarch.c, gdbarch.h: Regenerate.
3697 * arch-utils.c (default_make_msymbol_special): New function.
3698 * arch-utils.h (default_make_msymbol_special): Export.
3699 * elfread.c (elf_symtab_read): Compile use of
3700 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3702 * coffread.c (coff_symtab_read): Ditto, for
3703 COFF_MAKE_MSYMBOL_SPECIAL.
3705 2002-02-05 Jim Blandy <jimb@redhat.com>
3707 * solib-svr4.c (svr4_truncate_ptr): New function.
3708 (svr4_relocate_section_addresses): Do the address arithmetic with
3709 the appropriate truncation for target addresses, even when
3710 CORE_ADDR is larger than a target address.
3712 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3714 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3717 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3719 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3722 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3724 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3726 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3728 * gdbserver/linux-low.c: Remove unused include files.
3730 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3732 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3733 (read_inferior_memory): Use it.
3734 (write_inferior_memory): Likewise.
3736 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3738 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3739 grubbing through sys_errlist.
3741 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3743 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3745 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3746 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3748 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3750 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3751 (do_sfunc, set_cmd_sfunc): New functions.
3753 * command.h (struct cmd_list_element): Add field func.
3754 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3755 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3756 * cli/cli-decode.h: Ditto.
3758 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3759 (help_all, help_cmd_list): Ditto.
3760 (find_cmd, complete_on_cmdlist): Ditto.
3761 * top.c (execute_command): Ditto.
3763 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3766 * infcmd.c (notice_args_read): Fix function signature.
3768 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3769 * cli/cli-decode.c (add_set_cmd): Ditto.
3770 * utils.c (initialize_utils): Ditto.
3771 * maint.c (_initialize_maint_cmds): Ditto.
3772 * infrun.c (_initialize_infrun): Ditto.
3773 * demangle.c (_initialize_demangler): Ditto.
3774 * remote.c (add_packet_config_cmd): Ditto.
3775 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3776 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3777 * proc-api.c (_initialize_proc_api): Ditto.
3778 * kod.c (_initialize_kod): Ditto.
3779 * valprint.c (_initialize_valprint): Ditto.
3780 * top.c (init_main): Ditto.
3781 * infcmd.c (_initialize_infcmd): Ditto.
3782 * corefile.c (_initialize_core): Ditto.
3783 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3784 * arch-utils.c (initialize_current_architecture): Ditto.
3785 (_initialize_gdbarch_utils): Ditto.
3786 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3788 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3789 * wince.c (_initialize_inftarg): Ditto.
3790 * symfile.c (_initialize_symfile): Ditto.
3791 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3792 * language.c (_initialize_language): Ditto.
3793 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3795 2002-02-04 Michael Snyder <msnyder@redhat.com>
3797 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3799 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3801 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3802 Add rules for building the register data files.
3804 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3806 * regformats/regdat.sh: Add braces to the definition of
3807 expedite_regs_${arch}.
3809 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3811 * regformats/regdef.h (struct reg): Add comment describing the
3812 requirements for offset and size fields.
3814 2002-02-04 Andreas Schwab <schwab@suse.de>
3816 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3817 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3819 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3821 * gdbarch.sh (copyright): Update years in generated header.
3822 (SMASH_TEXT_ADDRESS): Add rule.
3823 * gdbarch.h, gdbarch.c: Re-generate.
3824 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3825 * dbxread.c: Likewise.
3826 * dwarfread.c: Likewise.
3827 * elfread.c: Likewise.
3828 * somread.c: Likewise.
3830 * arm-tdep.c (arm_smash_text_address): New function.
3831 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3833 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3835 Add support for hardware watchpoints on win32 native.
3836 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3837 CONTEXT_DEBUG_REGISTERS.
3838 (dr variable): New variable. Static array containing a local copy
3840 (debug_registers_changed): New variable. Reflects when debug registers
3841 are changed and need to be written to inferior.
3842 (debug_registers_used): New variable. Reflects when any debug register
3843 was set, used when new threads are created.
3844 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3846 (thread_rec): Set dr array if id is the thread of current_event .
3847 (child_continue, child_resume): Change the debug registers for all
3848 threads if debug_registers_changed.
3849 (child_add_thread): Change the debug registers if debug_registers_used.
3850 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3851 Link nm.h to new nm-cygwin.h file.
3852 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3853 of hardware registers.
3855 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3857 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3858 Restore behavour broken by 2002-01-20 Andrew Cagney
3859 <ac131313@redhat.com> IEEE_FLOAT removal.
3861 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3863 * c-valprint.c (c_val_print): Pass a proper valaddr to
3864 cp_print_class_method.
3865 * valops.c (search_struct_method): If there is only one method
3866 and args is NULL, return that method.
3868 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3870 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3871 accessing tag_name directly.
3873 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3875 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3876 of accessing tag_name directly.
3878 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3881 * gdbtypes.c (replace_type): New function.
3882 * gdbtypes.h (replace_type): Add prototype.
3883 * stabsread.c (read_type): Use replace_type.
3885 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3887 * Makefile.in (memattr.o): Add missing dependencies rule.
3889 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3891 * breakpoint.c (break_at_finish_command): Really export.
3892 (break_at_finish_at_depth_command): Ditto.
3893 (tbreak_at_finish_command): Ditto.
3894 * hppa-tdep.c: Include completer.h.
3895 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3896 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3898 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3900 * utils.c (do_write): New function.
3901 (error_stream): Rewrite combining the code from error_begin and
3903 (verror): Rewrite using error_stream.
3904 (error_begin): Delete function.
3906 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3908 * utils.c (error_begin): Make static.
3909 * defs.h (error_begin): Delete declaration.
3911 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3912 (decode_line_1): Use cplusplus_error instead of error_begin,
3913 cplusplus_hint and return_to_top_level.
3914 * coffread.c (coff_symfile_read): Use error instead of error_begin
3915 and return_to_top_level.
3916 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3918 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3920 * language.h (type_error, range_error): Make string parameter
3922 * language.c (warning_pre_print): Delete extern declaration.
3923 * dwarfread.c (warning_pre_print): Ditto.
3924 * language.c (type_error, range_error): Rewrite to use verror and
3925 vwarning instead of warning_begin.
3927 2002-02-01 Michael Snyder <msnyder@redhat.com>
3929 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3930 (set_ignore_count): Move misplaced comment back where it belongs.
3932 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3934 * command.h (NO_FUNCTION): Delete macro.
3935 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3936 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3937 * tracepoint.c (_initialize_tracepoint): Ditto.
3938 * cli/cli-decode.c (add_set_cmd): Ditto.
3939 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3941 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3943 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3944 Update ``this'' pointer when calling virtual functions.
3946 2002-02-01 Michael Snyder <msnyder@redhat.com>
3948 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3949 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3951 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3953 * regformats/reg-arm.dat: New file.
3954 * regformats/reg-i386.dat: New file.
3955 * regformats/reg-ia64.dat: New file.
3956 * regformats/reg-m68k.dat: New file.
3957 * regformats/reg-mips.dat: New file.
3958 * regformats/reg-ppc.dat: New file.
3959 * regformats/reg-sh.dat: New file.
3960 * regformats/regdef.h: New file.
3961 * regformats/regdat.sh: New file.
3963 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3965 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3966 (arm_frame_args_address, arm_frame_locals_address): New functions.
3967 (arm_frame_num_args): New function.
3968 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3969 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3970 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3972 2002-01-31 Michael Snyder <msnyder@redhat.com>
3974 * breakpoint.c (break_at_finish_command): Export.
3975 (break_at_finish_at_depth_command): Export.
3976 (tbreak_at_finish_command): Export.
3977 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3978 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3979 "tbreak" commands, which are HPPA specific.
3981 * printcmd.c (disassemble_command): Remove an ancient
3982 artifact of an old merge.
3984 * symfile.h (enum overlay_debugging_state):
3985 Define enum constant values for overlay mode.
3986 * symfile.c (overlay_debugging): Use enums instead of literals.
3987 (overlay_is_mapped, overlay_auto_command,
3988 overlay_manual_command): Ditto.
3990 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3991 breakpoint_here_p, breakpoint_inserted_here_p,
3992 breakpoint_thread_match, bpstat_stop_status,
3993 describe_other_breakpoints, check_duplicates, clear_command):
3994 Coding standard fixes.
3996 * target.c (target_xfer_memory): Add spaces, coding standard.
3997 (do_xfer_memory): Add missing line to trust-readonly
3998 code: check bfd SEC_READONLY flag for section.
4000 2002-01-31 Andrew Cagney <ac131313@redhat.com>
4002 * PROBLEMS: Fix typo, 5.1->5.1.1.
4004 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4006 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4007 data symbols, since we search based on textlow and texthigh.
4008 (find_pc_sect_symtab): Likewise.
4010 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4012 * defs.h (vwarning): Declare.
4013 * utils.c (vwarning): New function.
4014 (warning): Call vwarning.
4015 (warning_begin): Delete function.
4017 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4018 the warning message.
4019 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4022 2002-01-30 Michael Snyder <msnyder@redhat.com>
4024 * NEWS: Mention "set trust-readonly-sections" command.
4025 Mention generate-core-file command.
4027 2002-01-15 Michael Snyder <msnyder@redhat.com>
4029 * target.c: New command, "set trust-readonly-sections on".
4030 (do_xfer_memory): Honor the suggestion to trust readonly sections
4031 by reading them from the object file instead of from the target.
4032 (initialize_targets): Register command "set trust-readonly-sections".
4034 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4036 * parse.c (target_map_name_to_register): Simplify, search regs and
4037 pseudo-regs using a single loop.
4039 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4041 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4043 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4045 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4046 * config/i386/i386v42mp.mh: Add i387-nat.o .
4047 * i386v4-nat.c: Include i387-nat.h.
4048 (supply_fpregset): Use i387_supply_fsave.
4049 (fill_fpregset): Use i387_fill_fsave.
4051 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4053 * arm-tdep.c (arm_call_dummy_words): Define.
4054 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4055 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4056 (CALL_DUMMY_WORDS): Define.
4057 (arm_call_dummy_words): Declare.
4058 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4059 (arm_linux_call_dummy_words): Declare.
4061 2002-01-30 Andreas Schwab <schwab@suse.de>
4063 * m68klinux-nat.c: Fix last change to use regcache_collect
4064 instead of referencing registers[] directly.
4066 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4068 * parse.c (target_map_name_to_register): Delete code wrapped in
4069 #ifdef REGISTER_NAME_ALIAS_HOOK.
4071 2002-01-28 Michael Snyder <msnyder@redhat.com>
4073 * regcache.c (legacy_read_register_gen): Need to be able to
4074 read pseudo-register as well as real register.
4075 (legacy_write_register_gen): Ditto.
4077 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4079 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4080 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4081 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4082 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4083 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4084 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4085 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4086 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4087 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4088 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4089 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4090 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4091 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4092 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4093 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4094 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4095 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4096 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4097 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4098 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4100 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4102 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4103 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4104 (initialize_current_architecture): Update target_byte_order using
4105 information from BFD.
4106 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4107 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4109 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4111 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4112 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4114 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4115 #ifdef INVALID_FLOAT.
4116 * infcmd.c (do_registers_info): Ditto.
4117 * values.c (unpack_double): Ditto. Add comment.
4119 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4120 already commented out.
4122 2002-01-26 Andreas Schwab <schwab@suse.de>
4124 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4125 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4126 registers and add support for PTRACE_GETREGS.
4128 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4130 GDB 5.1.1 released from 5.1 branch.
4131 * NEWS: Add 5.1.1 news.
4132 * README: Sync with 5.1 branch.
4134 2002-01-23 Fred Fish <fnf@redhat.com>
4136 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4137 stabstring on initial malloc. Reallocing will copy it for us,
4140 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4142 * Makefile.in (hpread_h): Delete.
4143 (HFILES_NO_SRCDIR): Remove hpread.h.
4144 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4145 (hpread.o): Update dependencies.
4146 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4148 * hp-psymtab-read.c: Remove file.
4149 * hp-symtab-read.c: Remove file.
4150 * hpread.h: Remove file.
4152 * hpread.c: Merge all contents of hp-psymtab-read.c,
4153 hp-symtab-read.c and hpread.h into this file, as it was prior to
4156 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4157 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4158 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4159 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4161 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4163 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4164 fill_gregset): Call gdbarch_tdep() just once, assign result to
4165 variable and use that, instead of calling the function several
4168 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4170 * configure.host: Accept sparcv9 as alias for sparc64.
4171 * configure.tgt: Likewise.
4173 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4175 * solib-aix5.c (build_so_list_from_mapfile)
4176 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4177 arguments is not reversed.
4178 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4179 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4181 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4183 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4184 modified version of obsolete sh_fetch_pseudo_register.
4185 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4186 (sh4_register_read): New function.
4187 (sh_pseudo_register_write): New function. Renamed and modified
4188 version of obsolete sh_store_pseudo_register.
4189 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4190 (sh4_register_write): New function.
4191 (sh_gdbarch_init): Remove setting of gdbarch function
4192 fetch_pseudo_register and store_pseudo_register. Remove setting of
4193 register_convert_to_raw, register_convert_to_virtual,
4194 register_convertible.
4195 (sh_sh4_register_convertible): Delete. No longer needed. All is
4196 taken care by architecture specific functions
4197 register_read/register_write.
4198 (sh_sh4_register_convert_to_virtual): Make static.
4199 (sh_sh4_register_convert_to_raw): Ditto.
4201 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4203 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4204 (floatformat_is_nan, floatformat_mantissa): Ditto.
4206 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4207 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4208 builtin_type_ieee_double_little,
4209 builtin_type_ieee_double_littlebyte_bigword,
4210 builtin_type_m68881_ext, builtin_type_i960_ext,
4211 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4212 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4213 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4214 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4216 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4218 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4219 parameter. Set frameless flag if it exists and depended of
4220 whether the scanned function is frameless or not.
4221 (xstormy16_skip_prologue): If function is frameless, return
4222 result of xstormy16_scan_prologue().
4223 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4226 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4228 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4229 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4230 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4231 sh_sh4_register_byte, sh_sh4_register_raw_size,
4232 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4233 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4234 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4235 sh_store_pseudo_register, sh_do_pseudo_register): Call
4236 gdbarch_tdep() just once, assign result to variable and use that,
4237 instead of calling the function several times.
4239 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4241 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4242 macros instead of LAST_FPU_CTRL_REGNUM.
4243 (store_register): Likewise.
4245 2002-01-21 Jim Blandy <jimb@redhat.com>
4247 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4248 is up-to-date before running the program, not just when a program
4251 2002-01-21 Fred Fish <fnf@redhat.com>
4253 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4254 when we have found all instructions we are looking for.
4256 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4258 * arm-tdep.c (arm_register_name): New function.
4259 (arm_registers_names): Make static.
4260 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4261 (arm_register_name): Declare.
4262 (REGISTER_NAME): Use it.
4264 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4265 Kevin Buettner <kevinb@redhat.com>
4267 Convert arm targets to new FRAME interface.
4268 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4269 (arm_frame_find_save_regs): Delete.
4270 (arm_frame_init_saved_regs): New.
4271 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4272 Allocate extra_info as required. Convert all uses of fsr.regs
4273 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4275 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4276 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4277 (check_prologue_cache, save_prologue_cache): Likewise.
4278 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4279 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4280 (FRAME_FIND_SAVED_REGS): Delete.
4281 (arm_frame_find_saved_regs): Delete prototype.
4282 (arm_frame_init_saved_regs): New prototype.
4283 (FRAME_INIT_SAVED_REGS): Define.
4285 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4287 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4289 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4291 From Jeff Law <law@redhat.com>:
4292 * infttrace.c: Include <sys/pstat.h>.
4293 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4294 exec file if the ttrace equivalent fails.
4296 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4298 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4299 (closeLogFile): Ditto.
4301 2002-01-20 Michael Chastain <mec@shout.net>
4303 * top.c (print_gdb_version): Bump copyright year to 2002.
4305 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4307 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4308 Zannoni and Eli Zaretskii.
4310 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4312 * buildsym.c: Update copyright years.
4313 * c-typeprint.c: Likewise.
4314 * dwarf2read.c: Likewise.
4315 * f-typeprint.c: Likewise.
4316 * gdbtypes.c: Likewise.
4317 * gdbtypes.h: Likewise.
4318 * hp-symtab-read.c: Likewise.
4319 * hpread.c: Likewise.
4320 * mdebugread.c: Likewise.
4321 * p-typeprint.c: Likewise.
4323 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4325 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4326 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4327 byte-order selectable.
4328 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4329 * arch-utils.c: Ditto.
4330 (set_endian): Ditto.
4331 (set_endian_from_file): Ditto.
4332 * gdbserver/low-sim.c (create_inferior): Ditto.
4333 * gdbarch.sh: Ditto.
4334 * gdbarch.h: Re-generate.
4335 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4336 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4337 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4338 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4339 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4340 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4341 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4342 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4344 * config/mips/tm-wince.h: Remove #undef of macro
4345 TARGET_BYTE_ORDER_SELECTABLE.
4346 * config/sh/tm-wince.h: Ditto.
4348 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4350 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4351 member function fields. Add accessor macro
4352 TYPE_FN_FIELD_ARTIFICIAL.
4353 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4354 * c-typeprint.c (c_type_print_base): Skip artificial member
4357 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4359 * f-typeprint.c: Delete unused function f_type_print_args.
4360 * p-typeprint.c: Delete unused function pascal_type_print_args.
4362 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4364 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4365 comment. Add ``artificial'' to ``union field_location''.
4367 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4369 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4370 * mdebugread.c (parse_symbol): Likewise.
4371 * stabsread.c (define_symbol): Likewise.
4372 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4373 initializing TYPE_FIELD_BITPOS to n (obsolete).
4374 (hpread_doc_function_type): Likewise.
4375 * hpread.c (hpread_function_type): Likewise.
4377 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4379 * configure.in (host_makefile_frag): Only require a host makefile
4380 fragment when a native build.
4381 * configure: Re-generate.
4383 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4385 * doublest.h (floatformat_from_type): Declare.
4386 * doublest.c (floatformat_from_type): New function.
4387 (convert_typed_floating): Use.
4389 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4390 call to function floatformat_from_type.
4392 * gdbarch.sh (IEEE_FLOAT): Delete.
4393 * gdbarch.h, gdbarch.c: Re-generate.
4394 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4395 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4396 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4397 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4398 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4399 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4400 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4401 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4402 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4403 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4404 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4405 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4407 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4408 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4409 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4410 * sh-tdep.c (sh_gdbarch_init): Ditto.
4411 * mips-tdep.c (mips_gdbarch_init): Ditto.
4412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4413 * cris-tdep.c (cris_gdbarch_init): Ditto.
4415 2002-01-20 Jiri Smid <smid@suse.cz>
4417 * configure.host, configure.tgt: Support x86-64.
4418 * NEWS: Note new target x86-64.
4420 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4421 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4422 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4423 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4424 x86-64-linux-nat.o): Fix dependencies.
4426 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4428 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4429 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4430 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4431 * config/sparc/xm-sun4os4.h: Delete file.
4432 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4434 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4436 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4437 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4438 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4439 * config/i386/i386lynx.mh (XM_FILE): Delete.
4440 * config/rs6000/xm-rs6000ly.h: Delete file.
4441 * config/sparc/xm-sparclynx.h: Delete file.
4442 * config/m68k/xm-m68klynx.h: Delete file.
4443 * config/i386/xm-i386lynx.h: Delete file.
4444 * config/xm-lynx.h: Delete file.
4445 * config/djgpp/fnchange.lst: Update.
4447 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4449 * alpha-tdep.c (alpha_register_byte): New function.
4450 (alpha_register_raw_size): Ditto.
4451 (alpha_register_virtual_size): Ditto.
4452 (alpha_skip_prologue_internal): Renamed from
4453 alpha_skip_prologue.
4454 (alpha_skip_prologue): New version that calls
4455 alpha_skip_prologue_internal.
4456 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4457 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4458 second argument from alpha_skip_prologue.
4459 (REGISTER_BYTE): Use alpha_register_byte.
4460 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4461 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4462 (FRAMELESS_FUNCTION_INVOCATION): Use
4463 generic_frameless_function_invocation_not.
4464 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4465 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4467 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4469 * config/mips/xm-news-mips.h: Delete file.
4470 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4472 * config/m88k/xm-m88k.h: Delete file.
4473 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4474 * config/m88k/xm-delta88v4.h: Ditto.
4475 * config/m88k/xm-delta88.h: Ditto.
4477 * config/alpha/xm-fbsd.h: Delete file.
4478 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4480 * config/sparc/xm-sparc.h: Delete file.
4481 * Makefile.in (xm-sun4os4.h): Delete dependency.
4482 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4483 * config/sparc/xm-sun4os4.h: Ditto.
4484 * config/sparc/xm-linux.h: Ditto.
4486 * config/i386/xm-windows.h: Delete file.
4488 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4490 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4491 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4493 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4495 * alpha-tdep.c (alpha_call_dummy_words): New.
4496 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4497 (CALL_DUMMY_P): Define.
4498 (CALL_DUMMY_WORDS): Define.
4499 (SIZEOF_CALL_DUMMY_WORDS): Define.
4501 2002-01-19 Per Bothner <per@bothner.com>
4503 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4504 isn't NULL, which can happen with some gcj-3.x-produced code.
4506 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4508 * alpha-tdep.c (alpha_register_virtual_type): New function.
4509 (alpha_init_frame_pc_first): Ditto.
4510 (alpha_fix_call_dummy): Ditto.
4511 (alpha_store_struct_return): Ditto.
4512 (alpha_extract_struct_value_address): Ditto.
4513 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4514 alpha_register_virtual_type.
4515 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4516 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4517 alpha_extract_struct_value_address.
4518 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4519 (INIT_FRAME_PC): Use init_frame_pc_noop.
4520 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4522 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4524 * i386gnu-nat.c: Include "i386-tdep.h".
4525 (fetch_fpregs): Simplify code dealing with uninitialized floating
4526 point states such that it doesn't require FP7_REGNUM.
4528 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4530 * alpha-tdep.c (frame_extra_info): New.
4531 (alpha_find_saved_regs): Make static. Use
4533 (alpha_frame_init_saved_regs): New function.
4534 (alpha_frame_saved_pc): Use frame->extra_info.
4535 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4536 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4537 (init_extra_frame_info): Rename to...
4538 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4539 (alpha_print_extra_frame_info): New function.
4540 (alpha_frame_locals_address): Ditto.
4541 (alpha_frame_args_address): Ditto.
4542 (alpha_pop_frame): Use frame->extra_info.
4543 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4544 alpha_frame_args_address.
4545 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4546 (alpha_find_saved_regs): Remove prototype.
4547 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4548 (EXTRA_FRAME_INFO): Remove.
4549 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4550 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4552 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4554 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4555 (alpha_cannot_fetch_register): Ditto.
4556 (alpha_cannot_store_register): Ditto.
4557 (alpha_register_convertible): Ditto.
4558 (alpha_use_struct_convention): Ditto.
4559 * config/alpha/tm-alpha.h: Update copyright years.
4560 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4561 (INNER_THAN): Use core_addr_lessthan.
4562 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4563 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4564 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4565 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4566 (FRAME_CHAIN): Remove unnecessary cast.
4568 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4570 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4573 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4575 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4576 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4577 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4578 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4579 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4580 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4581 * x86-64-linux-nat.c: Ditto.
4583 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4585 * alpha-tdep.c (alpha_register_name): New function.
4586 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4587 (REGISTER_NAME): Define.
4589 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4591 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4593 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4595 * alpha-tdep.c: Update copyright years.
4596 (alpha_next_pc): New function.
4597 (alpha_software_single_step): Ditto.
4598 * config/alpha/tm-alpha.h: Add prototype for
4599 alpha_software_single_step.
4601 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4603 * alphabsd-nat.c: Update copyright years.
4604 (fill_gregset): Use regcache_collect.
4605 (fill_fpregset): Likewise.
4606 (fetch_inferior_registers): Only fetch integer registers
4607 if requested to do so.
4608 (store_inferior_registers): Only store integer registers
4609 if requested to do so.
4611 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4613 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4614 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4615 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4616 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4617 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4618 * config/arm/linux.mh (XDEPFILES): Delete.
4619 * config/arm/nbsd.mh (XDEPFILES): Delete.
4620 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4621 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4622 * config/i386/i386m3.mh (XDEPFILES): Delete.
4623 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4624 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4625 * config/i386/fbsd.mh (XDEPFILES): Delete.
4626 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4627 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4628 * config/i386/i386v4.mh (XDEPFILES): Delete.
4629 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4630 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4631 * config/i386/i386aix.mh (XDEPFILES): Delete.
4632 * config/i386/go32.mh (XDEPFILES): Delete.
4633 * config/i386/cygwin.mh (XDEPFILES): Delete.
4634 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4635 * config/i386/i386mach.mh (XDEPFILES): Delete.
4636 * config/i386/i386v32.mh (XDEPFILES): Delete.
4637 * config/i386/linux.mh (XDEPFILES): Delete.
4638 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4639 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4640 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4641 * config/i386/i386sco.mh (XDEPFILES): Delete.
4642 * config/i386/i386v.mh (XDEPFILES): Delete.
4643 * config/i386/nbsd.mh (XDEPFILES): Delete.
4644 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4645 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4646 * config/i386/symmetry.mh (XDEPFILES): Delete.
4647 * config/i386/obsd.mh (XDEPFILES): Delete.
4648 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4649 * config/ia64/linux.mh (XDEPFILES): Delete.
4650 * config/ia64/aix.mh (XDEPFILES): Delete.
4651 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4652 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4653 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4654 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4655 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4656 * config/m68k/linux.mh (XDEPFILES): Delete.
4657 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4658 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4659 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4660 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4661 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4662 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4663 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4664 * config/m88k/delta88.mh (XDEPFILES): Delete.
4665 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4666 * config/m88k/m88k.mh (XDEPFILES): Delete.
4667 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4668 * config/mips/linux.mh (XDEPFILES): Delete.
4669 * config/mips/irix6.mh (XDEPFILES): Delete.
4670 * config/mips/irix5.mh (XDEPFILES): Delete.
4671 * config/mips/irix4.mh (XDEPFILES): Delete.
4672 * config/mips/irix3.mh (XDEPFILES): Delete.
4673 * config/mips/decstation.mh (XDEPFILES): Delete.
4674 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4675 (NATDEPFILES): Move core-aout.o to here.
4676 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4677 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4678 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4679 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4680 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4681 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4682 * config/pa/hpux11.mh (XDEPFILES): Delete.
4683 * config/powerpc/aix.mh (XDEPFILES): Delete.
4684 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4685 * config/powerpc/linux.mh (XDEPFILES): Delete.
4686 * config/romp/rtbsd.mh: Rename XDEPFILES.
4687 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4688 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4689 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4690 * config/s390/s390.mh (XDEPFILES): Delete.
4691 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4692 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4693 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4694 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4695 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4696 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4697 * config/sparc/linux.mh (XDEPFILES): Delete.
4698 * config/vax/vaxult.mh (XDEPFILES): Delete.
4699 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4700 * Makefile.in (DEPFILES): Remove XDEPFILES.
4702 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4704 * utils.c (internal_verror): Fix comments, default is yes not no.
4705 Update queries to match. Default to quit and dump core.
4707 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4709 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4711 * defs.h, event-top.c, gdbcmd.h: Ditto.
4712 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4713 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4714 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4715 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4716 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4717 * mi/mi-main.c:Ditto.
4719 * stack.c, symfile.c: Update copyright.
4721 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4723 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4724 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4725 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4726 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4728 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4730 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4731 * gdbserver/low-lynx.c (myattach): Likewise.
4732 * gdbserver/low-nbsd.c (myattach): Likewise.
4733 * gdbserver/low-sim.c (myattach): Likewise.
4734 * gdbserver/low-sparc.c (myattach): Likewise.
4735 * gdbserver/low-sun3.c (myattach): Likewise.
4737 * gdbserver/low-linux.c (myattach): New function.
4739 * gdbserver/server.c (attach_inferior): New function.
4740 (main): Handle "--attach".
4742 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4744 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4747 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4749 * c-typeprint.c (is_type_conversion_operator): Add additional
4750 check for non-conversion operators.
4752 2002-01-15 Michael Snyder <msnyder@redhat.com>
4754 * linux-proc.c: Add "info proc" command, a la procfs.c.
4755 (read_mapping): New function, abstract and re-use code.
4756 (linux_find_memory_regions): Use new func read_mapping.
4757 (linux_info_proc_cmd): New function, implement "info proc".
4758 (_initialize_linux_proc): Add new command "info proc".
4760 2002-01-15 Michael Snyder <msnyder@redhat.com>
4762 * symfile.c (generic_load): Use bfd_map_over_sections method
4763 instead of manipulating bfd structure members directly.
4764 (add_section_size_callback): New function, bfd sections callback
4765 used by generic_load.
4766 (load_sections_callback): New function, bfd sections callback
4767 used by generic_load.
4769 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4771 [Based on work by Jim Blandy]
4772 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4773 (builtin_type_vec128): Export.
4774 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4776 (builtin_type_vec128): New builtin type for 128 bit vector
4778 (build_gdbtypes): Initialize builtin_type_v16qi and
4779 builtin_type_v8hi. Create the vec128 register builtin type
4781 (build_builtin_type_vec128): New function.
4782 (_initialize_gdbtypes): Register builtin_type_v16qi and
4783 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4784 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4785 AltiVec register to new builtin type.
4787 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4789 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4792 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4794 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4795 CLEAN_UP_REGISTER_VALUE.
4796 * regcache.c (supply_register): Update only call.
4798 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4800 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4801 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4802 a29k-*-vxworks* targets as obsolete.
4804 2002-01-14 Michael Snyder <msnyder@redhat.com>
4806 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4807 until we can resolve portability issues.
4808 * gregset.h: Remove references to fpxregs.
4809 * gcore.c (gcore_command): Initialize note_sec to NULL.
4811 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4813 * signals.c (target_signal_to_name): Rewrite. Only use
4814 signals[].name when in bounds and non-NULL.
4816 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4818 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4819 * signals.c (target_signal_to_name): Verify that SIG is within the
4820 bounds of the signals array.
4822 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4824 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4826 2002-01-13 Keith Seitz <keiths@redhat.com>
4828 * stack.c (print_frame_info_base): Print the frame's pc
4829 only if when print_frame_info_listing_hook is not defined.
4831 2002-01-13 Keith Seitz <keiths@redhat.com>
4833 * varobj.c (varobj_set_value): Make sure that there were no
4834 errors evaluating the object before attempting to set its
4836 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4837 so this offset adjustment is no longer necessary.
4838 (create_child): Don't set the error flag if the child is
4840 (value_of_child): If value_fetch_lazy fails, return NULL
4841 so that callers will be notified that an error occurred.
4842 (c_value_of_variable): Delay check of variable's validity
4843 until later. We actually want all structs and unions to have
4845 Do not return "???" for variables which could not be evaluated.
4846 This error condition must be returned to the caller so that it
4847 can get the error condition from gdb.
4848 (cplus_name_of_child): Adjust index for vptr before figuring
4849 out the name of the child.
4850 (cplus_value_of_child): If a child's (real) parent is not valid,
4851 don't even bother trying to give a value for it. Just return
4852 an error. Change all instances in this function.
4853 (cplus_type_of_child): If our parent is one of the "fake"
4854 parents, we need to get at the type of the real parent, and
4855 derive the child's true type using this information.
4857 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4859 From 2002-01-09 John Marshall <johnm@falch.net>:
4860 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4861 sources.redhat.com, and tweak some related URLs which had
4862 suffered from linkrot.
4864 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4867 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4868 structures passed in registers.
4870 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4872 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4873 white space which prevented compilation. Reported by DSK
4874 <dsk@student.unsw.edu.au>.
4876 2002-01-11 Michael Snyder <msnyder@redhat.com>
4878 * symfile.c (build_section_addr_info_from_section_tab):
4879 Use bfd access method instead of manipulating bfd directly.
4880 (syms_from_objfile): Ditto.
4881 (simple_overlay_update_1): Ditto.
4882 (simple_overlay_update): Ditto.
4883 (generic_load): Ditto.
4884 (overlay_unmapped_address): FIXME comment, bfd access methods.
4885 (sections_overlap): FIXME comment, bfd access methods.
4886 (pc_in_mapped_range): FIXME comment, bfd access methods.
4887 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4888 (section_is_mapped): FIXME comment, bfd access methods.
4889 (section_is_overlay): FIXME comment, bfd access methods.
4891 * symfile.c (generic_load): Whitespace and long line cleanups.
4892 Remove duplicate variable, change several local variables to
4893 more appropriate data types.
4894 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4896 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4899 * language.c (longest_local_hex_string_custom): Use phex_nz to
4900 convert NUM to a hex string.
4902 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4904 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4906 Update Copyright year.
4908 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4910 * language.c (longest_raw_hex_string): Delete unused function.
4912 2002-01-11 Petr Sorfa <petrs@caldera.com>
4914 * MAINTAINERS (write-after-approval): Add myself.
4915 * dwarf2read.c (read_tag_string_type): Handling of
4917 (read_tag_string_type): FORTRAN fix to prevent propagation of
4919 (set_cu_language): Handling of DW_LANG_Fortran95
4921 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4923 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4924 GETPID(inferior_ptid).
4925 (store_inferior_registers): Likewise.
4927 2002-01-10 Jason Merrill <jason@redhat.com>
4929 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4932 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4934 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4935 and bfd/elf32-sh-nbsd.c.
4937 2002-01-10 Michael Snyder <msnyder@redhat.com>
4939 * NEWS: Mention --pid and corefile/proc-id behavior change.
4941 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4942 * gcore.c: Include cli/cli-decode.h instead of command.h.
4944 * main.c (captured_main): Add new command line option "--pid".
4945 If the second command line argument (following the symbol-file)
4946 begins with a digit, try to attach to it before trying to open
4948 (print_gdb_help): Document the "--pid" argument.
4950 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4952 * completer.c (command_completer): New function.
4954 * completer.h <command_completer>: Add prototype.
4956 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4957 completer for the "help" command.
4959 2002-01-09 Jason Merrill <jason@redhat.com>
4961 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4963 2002-01-09 Michael Snyder <msnyder@redhat.com>
4965 * i386-linux-nat.c (fill_fpxregset): Make global.
4966 (store_fpxregset): Ditto.
4968 * gregset.h (gdb_fpxregset_t): Define.
4969 (supply_fpxregset): Prototype.
4970 (fill_fpxregset): Prototype.
4972 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4974 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4976 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4977 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4978 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4980 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4982 * MAINTAINERS: Update target maintainer rules so that any
4983 Maintainer can approve a tested patch for a maintenance-only
4986 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4988 * MAINTAINERS (write-after-approval): Add myself.
4990 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4993 2002-01-08 Michael Snyder <msnyder@redhat.com>
4995 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4996 real name of the executable, rather than the /proc name.
4998 2002-01-03 Michael Snyder <msnyder@redhat.com>
5000 Implement a "generate-core-file" command in gdb, save target state.
5001 * gcore.c: New file. Implement new command 'generate-core-file'.
5002 Save a corefile image of the current state of the inferior.
5003 * linux-proc.c: Add linux-specific code for saving corefiles.
5004 * target.h (struct target_ops): Add new target vectors for saving
5005 corefiles; to_find_memory_regions and to_make_corefile_notes.
5006 (target_find_memory_regions): New macro.
5007 (target_make_corefile_notes): New macro.
5008 * target.c (update_current_target): Inherit new target methods.
5009 (dummy_find_memory_regions): New place-holder method.
5010 (dummy_make_corefile_notes): New place-holder method.
5011 (init_dummy_target): Initialize new dummy target vectors.
5012 * exec.c (exec_set_find_memory_regions): New function.
5013 Allow the exec_ops vector for memory regions to be taken over.
5014 (exec_make_note_section): New function, target vector method.
5015 * defs.h (exec_set_find_memory_regions): Export prototype.
5016 * procfs.c (proc_find_memory_regions): New function, corefile method.
5017 (procfs_make_note_section): New function, corefile method.
5018 (init_procfs_ops): Set new target vector pointers.
5019 (find_memory_regions_callback): New function.
5020 (procfs_do_thread_registers): New function.
5021 (procfs_corefile_thread_callback): New function.
5022 * sol-thread.c (sol_find_memory_regions): New function.
5023 (sol_make_note_section): New function.
5024 (init_sol_thread_ops): Initialize new target vectors.
5025 * inftarg.c (inftarg_set_find_memory_regions): New function.
5026 Allow to_find_memory_regions vector to be taken over.
5027 (inftarg_set_make_corefile_notes): New function.
5028 Allow to_make_corefile_notes vector to be taken over.
5029 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5030 interface layer if not target_has_execution (may be a corefile).
5031 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5032 * config/sparc/sun4sol2.mh: Ditto.
5033 * config/alpha/alpha-linux.mh: Ditto.
5034 * config/arm/linux.mh: Ditto.
5035 * config/i386/x86-64linux.mh: Ditto.
5036 * config/ia64/linux.mh: Ditto.
5037 * config/m68k/linux.mh: Ditto.
5038 * config/mips/linux.mh: Ditto.
5039 * config/powerpc/linux.mh: Ditto.
5040 * config/sparc/linux.mh: Ditto.
5042 2002-01-07 Michael Snyder <msnyder@redhat.com>
5044 * arm-linux-nat.c: Remove references to regcache.c internal data
5045 (registers[] and register_valid[]).
5047 2002-01-07 Michael Snyder <msnyder@redhat.com>
5049 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5050 so that attaching to a pid will automatically read the process's
5051 symbol file and shlibs.
5052 * Makefile.in: Add rule for linux-proc.o.
5053 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5054 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5055 * config/arm/linux.mh: Ditto.
5056 * config/i386/linux.mh: Ditto.
5057 * config/i386/x86-64linux.mh: Ditto.
5058 * config/ia64/linux.mh: Ditto.
5059 * config/m68k/linux.mh: Ditto.
5060 * config/mips/linux.mh: Ditto.
5061 * config/powerpc/linux.mh: Ditto.
5062 * config/sparc/linux.mh: Ditto.
5064 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5066 * win32-nat.c: Add i386-tdep.h dependency.
5068 2002-01-07 Michael Snyder <msnyder@redhat.com>
5070 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5071 instead of bfd_get_arch_size. Don't bail out just because
5072 there's no exec_bfd.
5074 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5075 * p-valprint.c (pascal_object_print_value): Ditto.
5076 * somread.c (som_symtab_read): Ditto.
5077 * symfile.c (simple_free_overlay_region_table): Ditto.
5078 * valops.c (value_assign): Ditto.
5080 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5081 use tilde_expand and strerror for opening save-tracepoints file.
5083 * thread-db.c (thread_db_new_objfile): Indendation fix.
5085 * infptrace.c (GDB_MAX_ALLOCA): New define.
5086 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5087 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5088 can be overridden with whatever value is appropriate to the host).
5089 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5090 alloca to allocate potentially large buffer.
5091 * rs6000-nat.c (child_xfer_memory): Ditto.
5092 * symm-nat.c (child_xfer_memory): Ditto.
5093 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5095 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5097 From Nick Clifton <nickc@redhat.com>
5098 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5100 2002-01-07 Michael Snyder <msnyder@redhat.com>
5102 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5103 Don't use exec_bfd if it's NULL.
5105 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5107 * valops.c (value_arg_coerce): Fix formatting.
5109 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5111 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5114 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5116 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5117 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5118 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5119 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5120 z8k-coff have not been multi-arched. Update z8k-coff build
5123 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5125 * MAINTAINERS: Mark a29k target as obsolete.
5126 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5127 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5129 * NEWS: Note that a29k targets are obsolete.
5130 * a29k-tdep.c: Mark as obsolete.
5131 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5132 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5133 a29k-*-vxworks* targets as obsolete.
5134 * remote-adapt.c: Obsolete.
5135 * remote-eb.c: Obsolete.
5136 * remote-mm.c: Obsolete.
5137 * remote-udi.c: Obsolete.
5138 * config/a29k/a29k-udi.mt: Obsolete.
5139 * config/a29k/a29k.mt: Obsolete.
5140 * config/a29k/tm-a29k.h: Obsolete.
5141 * config/a29k/tm-vx29k.h: Obsolete.
5142 * config/a29k/vx29k.mt: Obsolete.
5144 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5146 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5147 with BFD_ENDIAN_BIG.
5149 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5151 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5152 * configure, config.in: Re-generate.
5153 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5154 * defs.h: Do not include <endian.h>.
5156 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5158 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5159 * config.in: Regenerate.
5160 * configure.in: Update copyright years.
5161 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5162 * configure: Regenerate.
5163 * i386bsd-nat.c: Update copyright years.
5164 (fill_gregset): Use regcache_collect.
5165 (fetch_inferior_registers): Only fetch integer registers
5166 if requested to do so. Add support for XMM registers
5167 using PT_GETXMMREGS.
5168 (store_inferior_registers): Only store integer registers
5169 if requested to do so. Add support for XMM registers
5170 using PT_SETXMMREGS.
5171 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5172 (store_inferior_registers): Remove.
5173 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5174 (fetch_elfcore_registers): New function.
5175 (i386nbsd_elfcore_fns): New.
5176 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5177 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5179 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5180 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5181 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5182 * config/i386/tm-nbsd.h: Update copyright years.
5183 (HAVE_SSE_REGS): Define.
5184 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5185 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5186 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5187 (SIGCONTEXT_PC_OFFSET): Remove.
5188 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5190 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5192 * configure.tgt: Remove powerpc-*-macos* target.
5193 * config/m68k/xm-mpw.h: Delete file.
5194 * config/xm-mpw.h: Delete file.
5195 * ser-mac.c: Delete file.
5196 * mpw-make.sed: Delete file.
5197 * mpw-config.in: Delete file.
5198 * mac-xdep.c: Delete file.
5199 * mac-gdb.r: Delete file.
5200 * mac-defs.h: Delete file.
5201 * mac-nat.c: Delete file.
5202 * config/powerpc/macos.mh: Delete file.
5203 * config/powerpc/macos.mt: Delete file.
5204 * config/powerpc/nm-macos.h: Delete file.
5205 * config/powerpc/tm-macos.h: Delete file.
5206 * source.c (openp, open_source_file): Remove obsolete code.
5207 * top.c (gdb_readline): Ditto.
5208 * utils.c (query): Ditto.
5209 * event-top.c (display_gdb_prompt): Ditto.
5210 * Makefile.in (ser-mac.o): Delete obsolete target.
5213 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5215 * defs.h (BIG_ENDIAN): Delete macro definition.
5216 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5217 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5218 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5219 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5220 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5221 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5222 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5223 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5224 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5225 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5226 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5227 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5228 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5229 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5230 * gdbarch.c: Re-generate.
5232 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5234 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5237 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5239 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5241 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5243 * value.h (value_ptr): Delete typedef.
5245 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5247 * i386nbsd-nat.c: Update copyright years.
5248 Include i386-tdep.h.
5250 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5252 * stabsread.c: Update copyright years.
5254 From Debashis Mahata <debashis.mahata@wipro.com>:
5255 (read_struct_fields): Deal with Sun C compiler erroneous stab
5256 output for structs and unions.
5259 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5261 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5264 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5266 * cp-abi.c: Fix whitespace.
5267 (baseclass_offset): New wrapper function.
5268 * cp-abi.h (baseclass_offset): Add prototype.
5269 (struct cp_abi_ops): Add baseclass_offset pointer.
5271 * valops.c (vb_match): Move to...
5272 * gnu-v2-abi.c (vb_match): here.
5273 * valops.c (baseclass_offset): Move to...
5274 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5276 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5278 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5279 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5280 * hpacc-abi.c (init_hpacc_ops): Likewise.
5282 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5284 * valops.c (find_overload_match): Accept obj as a
5285 reference parameter. Update it before returning.
5286 * value.h (find_overload_match): Update prototype.
5287 * eval.c (evaluate_subexp_standard): Pass object to
5288 find_overload_match by reference.
5290 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5292 * valarith.c: Replace value_ptr with struct value pointer. Remove
5293 register attribute from value declarations.
5296 * scm-lang.c (scm_lookup_name): Ditto.
5298 2002-01-03 Michael Snyder <msnyder@redhat.com>
5300 Abstract the functionality of iterating over mapped memory
5301 regions into a general purpose iterator function.
5302 * procfs.c (iterate_over_mappings): New function, general purpose
5303 iterator for memory sections.
5304 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5305 (solib_mappings_callback): New function, callback for above.
5306 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5307 (info_mappings_callback): New function, callback for above.
5309 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5311 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5313 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5314 * i386-tdep.c: Include "elf-bfd.h".
5315 (process_note_abi_tag_sections): New function.
5316 (i386_gdbarch_init): Add code to recognize various OS/ABI
5319 * maint.c (_initialize_maint_cmds): Add missing \ in
5322 For older changes see ChangeLog-2001
5328 version-control: never