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