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