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