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