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