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