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