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