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