]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove next release number until the release is actually upon us.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4fd667e9
MK
12002-07-03 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4 frameless_look_for_prologue, such that we actually call this
5 function.
6
42f99ac2
JB
72002-07-02 Joel Brobecker <brobecker@gnat.com>
8
9 * frame.h (frame_address_in_block): New function.
10
11 * blockframe.c (frame_address_in_block): New function extracted
12 from get_frame_block().
13 (get_frame_block): Use frame_address_in_block().
14 (block_innermost_frame): Use frame_address_in_block() to match
15 the frame pc address against the block boundaries rather than
16 the frame pc directly. This prevents a failure when a frame pc
17 is actually a return-address pointing immediately after the end
18 of the given block.
19
103a1597 202002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
21
22 * MAINTAINERS: Add self under write after approval.
23
242002-07-02 Grace Sainsbury <graces@redhat.com>
25
103a1597
GS
26 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
27 used in architecture vector. The default is
28 m68k_local_breakpoint_from_pc.
29 (m68k_local_breakpoint_from_pc): Add.
30 (enum): Add register numbers from tm-m68k.h.
31 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
32 vector.
33 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
34 GDB_MULTI_ARCH_PARTIAL.
35 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
36 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
37 m68k-tdep.c.
38 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
39 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
40 to enum in m68k-tdep.c
41
7a5a0534
JB
422002-07-02 Joel Brobecker <brobecker@gnat.com>
43
44 * solib-osf.c (open_map): Compute the list of shared libraries
45 loaded by the inferior, rather than the list of libraries loaded
46 by GDB itself. Otherwise, GDB ends up reading the symbols from
47 the wrong shared libraries...
48
6f558d74
MK
492002-07-02 Mark Kettenis <kettenis@gnu.org>
50
b7d15bf7
MK
51 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
52 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
53 macros.
54 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
55 Remove functions.
56 (FRAMELESS_SIGNAL): Remove function.
57 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
58 i386_linux_saved_pc_after_call): Removed.
59 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
60 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
61 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
62
6bff26de
MK
63 * i386-tdep.c (i386_frameless_signal_p): New function.
64 (i386_frame_chain): Deal with frameless signals.
65 (i386_sigtramp_saved_sp): New function.
66 (i386_frame_saved_pc): Deal with frameless signals.
67 (i386_saved_pc_after_call): Make sure the correct value is
68 returned just after entry into a sigtramp.
69 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
70 i386fbsd4_sc_sp_offset): New variables.
71 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
72 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
73 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
74 similiar to what we already did for sc_pc_offset.
75 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
76 tdep->sc_sp_offset.
77
6f558d74
MK
78 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
79
145564b7
ML
802002-07-02 Michal Ludvig <mludvig@suse.cz>
81
82 * config/i386/tm-x86-64linux.h: New.
83 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
84 definitions.
85 * config/i386/nm-x86-64.h: Rename to ...
86 * config/i386/nm-x86-64linux.h: ... this one.
87 * config/i386/x86-64linux.mh: Reflect the above change.
88
3a1e71e3
MK
892002-07-01 Mark Kettenis <kettenis@gnu.org>
90
21d0e8a4
MK
91 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
92 with sigcontext_addr. Add sc_sp_offset.
93 (i386bsd_sigtramp_saved_pc): Remove prototype.
94 (i386bsd_sicontext_addr): Add prototype.
95 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
96 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
97 (i386_svr4_sigtramp_saved_pc): Removed.
98 (i386_svr4_sigcontext_addr): New function.
99 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
100 Initialize tdep->sigcontext_addr instead. Initialize
101 tdep->sc_pc_offset and tdep->sc_sp_offset.
102 (i386_gdbarch_init): Likewise.
103 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
104 any more.
105 (i386bsd_sigtramp_saved_pc): Remove function.
106 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
107 Initialize tdep->sigcontext_addr instead. Initialize
108 tdep->sc_pc_offset.
109 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
110 of tdep->sigtramp_saved_pc.
111 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
112 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
113 instead.
114
3a1e71e3
MK
115 * i386-tdep.c (i386_frameless_function_invocation,
116 i386_frame_num_args, i386_frame_init_saved_regs,
117 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
118 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
119 i386_extract_return_value, i386_store_return_value,
120 i386_extract_struct_value_address, i386_register_virtual_type,
121 i386_register_convertible, i386_register_convert_to_virtual,
122 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
123 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
124 static.
125
52e9098c
MK
1262002-07-01 Mark Kettenis <kettenis@gnu.org>
127
77b13a25
MK
128 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
129
52e9098c
MK
130 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
131 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
132 this macro. Include "value.h".
133
1b372fff
AS
1342002-06-30 Aidan Skinner <aidan@velvet.net>
135
136 * ada-exp.tab.c: remove as it's a generated file
137 * ada-lex.c: remove as it's a generated file
138
9c5045b5
MK
1392002-06-30 Mark Kettenis <kettenis@gnu.org>
140
4a93c5bb
MK
141 * config/i386/tm-i386.h (struct frame_info, struct
142 frame_saved_regs, struct value, struct type): Remove forward
143 declarations.
144
322d4fe0
MK
145 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
146 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
147 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
148 (FILL_FPXREGSET): Define.
149
fdd8263d
MK
150 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
151
482e577b
MK
152 * configure.tgt (i[3456]86-*-openbsd*): Fold into
153 i[3456]86-*-netbsd* case.
154 * config/i386/tm-obsd.h: Removed.
155 * config/i386/obsd.mt: Removed.
156 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
157 core-aout.o.
158 (MH_CFLAGS): Add -DYYDEBUG=0.
159
6916549a
MK
160 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
161 i386nbsd_sc_pc_offset on OpenBSD too.
162
9c5045b5
MK
163 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
164 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
165 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
166 define.
167 * i386bsd-tdep.c: Include "arch-utils.h".
168 (i386bsd_aout_in_solib_call_trampoline): New function.
169 (i386bsd_init_abi): Set in_solib_call_trampoline to
170 i386bsd_aout_in_solib_call_trampoline.
171 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
172 in_solib_call_trampoline to generic_in_solib_call_trampoline.
173
aa84d1bb
AC
1742002-06-28 Andrew Cagney <ac131313@redhat.com>
175
176 * macrotab.h: Do not include "obstack.h" or "bcache.h".
177 (struct obstack, struct bcache): Add opaque declarations.
178 * Makefile.in (macrotab_h): Update
179
b4d83933
AC
1802002-06-28 Andrew Cagney <ac131313@redhat.com>
181
182 * blockframe.c (generic_find_dummy_frame): Change return type to
183 ``struct regcache''.
184 (struct dummy_frame): Replace field ``registers'' with regcache, a
185 struct regcache object.
186 (generic_find_dummy_frame): Update.
187 (generic_push_dummy_frame): Update. Use regcache_xfree,
188 regcache_xmalloc and regcache_cpy.
189 (generic_pop_dummy_frame): Update. Use regcache_cpy and
190 regcache_xfree.
191 (deprecated_generic_find_dummy_frame): Update.
192 (generic_read_register_dummy): Update. Use
193 regcache_read_as_address.
194 (generic_call_dummy_register_unwind): Update. Use regcache_read.
195 (generic_get_saved_register): Update. Use regcache_read.
196
08c0b5bc
AC
1972002-06-28 Andrew Cagney <ac131313@redhat.com>
198
199 * Makefile.in (objfiles_h): Add $(bcache_h).
200 * objfiles.h: Include "bcache.h".
201
202 * Makefile.in (symtab_h): Remove $(bcache_h).
203 * symtab.h: Do not include "bcache.h".
204
1f89801a
AC
2052002-06-28 Andrew Cagney <ac131313@redhat.com>
206
207 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
208 generic_func_frame_chain_valid.
209
b9644b58
DB
2102002-06-28 David O'Brien <obrien@FreeBSD.org>
211
212 * config/i386/nm-fbsd.h: Include <sys/param.h>.
213 * config/i386/tm-fbsd.h: Likewise.
214
dd486634
AC
2152002-06-28 Andrew Cagney <ac131313@redhat.com>
216
217 * rs6000-tdep.c (rs6000_gdbarch_init): Use
218 generic_unwind_get_saved_register.
219
0b434a00
AC
2202002-06-27 Andrew Cagney <ac131313@redhat.com>
221
222 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
223 * regcache.c (supply_register): Add missing argument to
224 register_buffer call.
225
f30e5a77
AC
2262002-06-27 Andrew Cagney <ac131313@redhat.com>
227
228 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
229 Solaris /bin/grep does not not like it. From Peter Schauer.
230
9f064c95
TT
2312002-06-26 Tom Tromey <tromey@redhat.com>
232
233 * command.h (add_setshow_cmd): Declare.
234 (add_setshow_cmd_full): Declare.
235 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
236 returns void. Use add_setshow_cmd_full.
237 (add_setshow_cmd_full): New function.
238 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
239 (add_setshow_boolean_cmd): Likewise.
240
099c7589
JT
2412002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
242
243 * config/vax/tm-vax.h: Protect from multiple inclusion.
244 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
245 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
246 * config/vax/tm-vaxbsd.h: ...here. New file.
247 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
248
1d049c5e
JT
2492002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
250
251 * config/vax/tm-vax.h (BREAKPOINT): Remove.
252 (BELIEVE_PCC_PROMOTION): Remove.
253 (AP_REGNUM): Move to...
254 * config/vax/nm-vax.h: ...here.
255 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
256 (vax_breakpoint_from_pc): New function.
257 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
258 and gdbarch_believe_pcc_promotion.
259
4791e091
JT
2602002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
261
262 * Makefile.in (vax_tdep_h): Define.
263 (vax-tdep.o): Use $(vax_tdep_h).
264 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
265 (vax_dump_tdep): New function.
266 (_initialize_vax_tdep): Register vax_dump_tdep.
267 * vax-tdep.h: Include osabi.h.
268 (struct gdbarch_tdep): New.
269
da130f98
AC
2702002-06-26 Andrew Cagney <cagney@redhat.com>
271
272 * frame.h (deprecated_generic_find_dummy_frame): Rename
273 generic_find_dummy_frame.
274 * blockframe.c (generic_find_dummy_frame): Make static.
275 (deprecated_generic_find_dummy_frame): New function.
276 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
277 generic_find_dummy_frame with deprecated_find_dummy_frame.
278 (sh64_nofp_frame_init_saved_regs): Ditto.
279 (sh_fp_frame_init_saved_regs): Ditto.
280 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
281 (s390_frame_chain): Ditto.
282 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
283
6300c360
GS
2842002-06-26 Grace Sainsbury <graces@redhat.com>
285
286 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
287 gdbarch vector are at the top.
288 (NUM_REGS): Remove.
289 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
290 (FRAME_ARGS_ADDRESS): Remove.
291 (FRAME_LOCALS_ADDRESS): Remove.
292 (FRAME_NUM_ARGS): Remove.
293 (FRAME_ARGS_SKIP): Remove.
294 * m68k-tdep.c (enum): Add eumeration of special register numbers.
295 (m68k_gdbarch_init): Add gdbarch initializations for macros
296 undefined in tm-m68k.h
297
1c617db8
GS
2982002-06-26 Grace Sainsbury <graces@redhat.com>
299
300 * monitor.h: Add the function regname to monitor_ops
301 structure. This way NUM_REGS does not have to be a constant.
302 * monitor.c (monitor_fetch_register): Added support for regname
303 function. The function is called if the array regnames is NULL.
304 (monitor_store_register): Same.
da130f98
AC
305 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
306 regnames array.
1c617db8
GS
307 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
308 cpu32bug_cmds.regname to point to new function.
309 * abug-rom.c (abug_regname): Same as above.
310 (init_abug_cmds): Same.
311 * dbug-rom.c (dbug_regname): Same as above.
312 (init_dbug_cmds): Same.
313 * remote-est.c (est_regname): Same.
314 (init_est_cmds): Same.
315 * rom68k-rom.c (rom68k_regname): Same.
316 (init_rom68k_cmds): Same.
317
ea9365bb
TT
3182002-06-25 Tom Tromey <tromey@redhat.com>
319
320 * breakpoint.c (delete_command): Don't repeat `delete' commands.
321
72cec141
AC
3222002-06-25 Andrew Cagney <cagney@redhat.com>
323
324 * infrun.c (stop_registers): Change variable's type to ``struct
325 regcache'''.
326 (xmalloc_inferior_status): Delete function.
327 (free_inferior_status): Delete function.
328 (normal_stop): Use regcache_cpy.
329 (struct inferior_status): Change type of fields ``stop_registers''
330 and ``registers'' to ``struct regcache''.
331 (write_inferior_status_register): Use regcache_write.
332 (save_inferior_status): Instead of calling
333 xmalloc_inferior_status, allocate the inf_status buffer directly.
334 Use regcache_dup_no_passthrough and regcache_dup to save the
335 buffers.
336 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
337 Replace the stop_registers regcache instead of overriding it. Use
338 regcache_xfree. Instead of calling free_inferior_status, xfree
339 the buffer directly.
340 (discard_inferior_status): Use regcache_xfree. Instead of calling
341 free_inferior_status, xfree the buffer directly.
342 (build_infrun): Use regcache_xmalloc.
343 (_initialize_infrun): Delete redundant call to build_infrun.
344
345 * Makefile.in (infcmd.o): Add $(regcache_h).
346
347 * infcmd.c: Include "regcache.h".
348 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
349 obtain the address of `stop_registers' register buffer.
350 (print_return_value): Ditto.
351
352 * inferior.h (struct regcache): Add opaque declaration.
353 (stop_registers): Change variable's declared type to ``struct
354 regcache''.
355
defc6f8c
TT
3562002-06-24 Tom Tromey <tromey@redhat.com>
357
c0e624e7
TT
358 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
359 * target.c (initialize_targets): Fixed typo in
360 trust-readonly-sections `show' documentation.
361
defc6f8c
TT
362 * main.c: Marked all strings with _().
363
2b236d82
DH
3642002-06-24 Don Howard <dhoward@redhat.com>
365
366 * memattr.c (create_mem_region): Treat hi == 0 as a special case
367 that means max CORE_ADDR+1.
368 (lookup_mem_region): Ditto.
369 (mem_info_command): Ditto.
370
942dc0e9
GS
3712002-06-24 Grace Sainsbury <graces@redhat.com>
372
373 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
374 (REGISTER_BYTES_OK): Remove.
375 (REGISTER_BYTES): Remove.
376 (STORE_STRUCT_RETURN): Remove.
377 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
378 (STORE_RETURN_VALUE): Remove.
379 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
380 (FRAME_CHAIN): Remove.
381 (FRAMELESS_FUNCTION_INVOCATION): Remove.
382 (FRAME_SAVED_PC): Remove.
383 * m68k-tdep.c (m68k_register_bytes_ok):Add.
384 (m68k_store_struct_return): Add.
385 (m68k_deprecated_extract_return_value): Add.
386 (m68k_deprecated_extract_struct_value_address): Add.
387 (m68k_store_return_value): Add.
388 (m68k_frame_chain): Add.
389 (m68k_frameless_function_invocation): Add.
390 (m68k_frame_saved_pc): Add.
391 (m68k_gdbarch_init): added set_gdbarch calls for new
392 functions and deleted macros.
393
03c30d4d
TT
3942002-06-23 Tom Tromey <tromey@redhat.com>
395
396 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
397 (ALLDEPFILES): Likewise.
398 (udiheaders): Removed.
399 (udip2soc.o): Likewise.
400 (udi2go32.o): Likewise.
401 (udr.o): Likewise.
402 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
403
37e71372
AC
4042002-06-22 Andrew Cagney <ac131313@redhat.com>
405
06a6ac57
AC
406 * infrun.c (_initialize_infrun): Delete unnecessary call to
407 build_infrun.
408
37e71372
AC
409 * regcache.h: Update comments describing the regcache_cpy family
410 of functions.
411 (regcache_save, regcache_restore): Delete declaration.
412 (regcache_save_no_passthrough): Delete declaration.
413 (regcache_restore_no_passthrough): Delete declaration.
414 * regcache.c (regcache_save): Delete function.
415 (regcache_save_no_passthrough): Delete function.
416 (regcache_restore): Delete function.
417 (regcache_restore_no_passthrough): Delete function.
418
78f6d055
AC
4192002-06-21 Andrew Cagney <ac131313@redhat.com>
420
421 * config/m68k/tm-m68k.h: Fix typo.
422 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
423 (m68k_frame_init_saved_regs): Declare.
424
78b119cb
JB
4252002-06-21 Jim Blandy <jimb@redhat.com>
426
427 Remove some vestiges of Harris 88k support.
428 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
429 register numbering quirk.
430 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
431 odd symbols occurring in Harris 88k ELF targets.
432
0fbb3da7
TT
4332002-06-21 Tom Tromey <tromey@redhat.com>
434
435 * gdb_locale.h: New file.
436 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
437 (defs_h): Added gdb_locale.h.
438 * configure, config.in: Rebuilt.
439 * configure.in (PACKAGE): Define.
440 * defs.h: Include gdb_locale.h.
441 * main.c (captured_main): Call setlocale, bindtextdomain,
442 textdomain.
443
456f8b9d
DB
4442002-06-21 Dave Brolley <brolley@redhat.com>
445
446 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
447 * config/frv/frv.mt: New file.
448 * config/frv/tm-frv.h: New file.
449 * configure.tgt: Support frv-*-*.
450 * Makefile.in (frv-tdep.o): New target.
451 * frv-tdep.c: New file.
452 * NEWS: Mention frv.
453
cdd463f9
DB
4542002-06-21 Dave Brolley <brolley@redhat.com>
455
456 * MAINTAINERS: Add self to "Write After Approval" list.
457
5d3ed2e3
GS
4582002-06-21 Grace Sainsbury <graces@redhat.com>
459
460 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
461 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
462 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
463 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
464 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
465
466 * m68k-tdep.c: Include arch-utils.h
467 (m68k_register_raw_size): Add.
468 (m68k_register_virtual_size): Add.
469 (m68k_register_virtual_type): Add.
470 (m68k_register_name): Add.
471 (m68k_stack_align): Add.
472 (m68k_register_byte): Add.
473 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
474 tm-m68k.h.
475
7f8e7424
GS
4762002-06-21 Grace Sainsbury <graces@redhat.com>
477
a2c6a6d5 478 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
479 m68k_find_saved_regs.
480 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 481 references to it with frame->saved_regs.
7f8e7424
GS
482 (m68k_gdbarch_init): Added function calls to initialize the
483 gdbarch structure.
a2c6a6d5
GS
484 (m68k_fix_call_dummy): Add.
485 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
486 (CALL_DUMMY): Remove.
487 (CALL_DUMMY_LENGTH): Remove.
488 (CALL_DUMMY_START_OFFSET): Remove.
489 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
490 (FIX_CALL_DUMMY): Remove.
491 (PUSH_DUMMY_FRAME): Remove.
492 (POP_FRAME): Remove.
7f8e7424 493
f461f5cf
PM
4942002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
495
496 * parse.c (parse_fprintf): New function used to avoid calls to
497 fprintf in bison parser generated debug code.
498 * parser-defs.h: Declaration of new parse_fprintf function.
499 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
500 Set YYDEBUG to 1 by default.
501 Set YYFPRINTF as parse_fprintf.
502
7f0c12ed
ML
5032002-06-21 Michal Ludvig <mludvig@suse.cz>
504
505 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
506 encoding anymore.
507 (pointer_encoding, enum ptr_encoding): New.
508 (execute_cfa_program): Take care about pointer encoding.
509 (dwarf2_build_frame_info): Only call parse_frame_info for
510 .debug_frame and .eh_frame.
511 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
512 fixed augmentation handling, added relative addressing,
513 ignore duplicate FDEs. Added comments.
19d833a2 514 * dwarf2cfi.c: Reindented.
7f0c12ed 515
87c4a039
EZ
5162002-06-20 Elena Zannoni <ezannoni@redhat.com>
517
518 * event-top.c (command_handler): Don't use space_at_cmd_start
519 unless there is sbrk() on the host. Assign time and space data
520 to union fields of the appropriate length.
521
1cf877ad
ML
5222002-06-20 Michal Ludvig <mludvig@suse.cz>
523
524 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
525 x86_64_register_name. Return type changed to 'const char *'.
526 (x86_64_register_name2nr): Rename to x86_64_register_number.
527 (x86_64_gdbarch_init): Update to reflect the change.
528 * x86-64-tdep.h: Ditto.
529 * x86-64-linux-nat.c (x86_64_fxsave_offset)
530 (supply_fpregset): Ditto.
531
3fadccb3
AC
5322002-06-19 Andrew Cagney <cagney@redhat.com>
533
534 * regcache.h: Update copyright.
535 (struct regcache, struct gdbarch): Add opaque declarations.
536 (current_regcache): Declare global variable.
537 (regcache_read, regcache_write): Add gdbarch parameter.
538 (regcache_save, regcache_save_no_passthrough)
539 (regcache_restore, regcache_restore_no_passthrough)
540 (regcache_dup, regcache_dup_no_passthrough)
541 (regcache_cpy, regcache_cpy_no_passthrough)
542 (deprecated_grub_regcache_for_registers)
543 (deprecated_grub_regcache_for_register_valid)
544 (regcache_valid_p): Add function declarations.
545
546 * regcache.c: Update copyright.
547 (regcache_descr_handle): New global variable.
548 (struct regcache_descr): Define.
549 (init_legacy_regcache_descr, init_regcache_descr): New functions.
550 (regcache_descr, xfree_regcache_descr): New functions.
551 (struct regcache): Define.
552 (regcache_xmalloc, regcache_xfree): New functions.
553 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
554 (regcache_dup, regcache_dup_no_passthrough): New functions.
555 (regcache_valid_p, regcache_read_as_address): New functions.
556 (deprecated_grub_regcache_for_registers): New function.
557 (deprecated_grub_regcache_for_register_valid): New function.
558 (current_regcache): New global variable.
559 (register_buffer): Add regcache parameter. Update calls.
560 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
561 (read_register_gen, write_register_gen): Update register_buffer
562 call. Test for legacy_p instead of gdbarch_register_read_p or
563 gdbarch_register_write_p.
564 (regcache_collect): Update register_buffer call.
565 (build_regcache): Rewrite. Use deprecated grub functions.
566 (regcache_save, regcache_save_no_passthrough): New functions.
567 (regcache_restore, regcache_restore_no_passthrough): New
568 functions.
569 (_initialize_regcache): Create the regcache_data_handle. Swap
570 current_regcache global variable.
571
572 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
573 parameter to regcache_read and regcache_write calls.
574 (sh4_register_read): Ditto.
575 (sh64_pseudo_register_read): Ditto.
576 (sh64_register_read): Ditto.
577 (sh_pseudo_register_write): Ditto.
578 (sh4_register_write): Ditto.
579 (sh64_pseudo_register_write): Ditto.
580 (sh64_register_write): Ditto.
581
582 * defs.h (XCALLOC): Define.
583
152d9db6
GS
5842002-06-19 Grace Sainsbury <graces@redhat.com>
585
586 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
587 * m68k-tdep.c (m68k_gdbarch_init): Added.
588 (m68k_dump_tdep): Added.
589
170911c7
DJ
5902002-06-19 Daniel Jacobowitz <drow@mvista.com>
591
592 * ada-lang.c (fill_in_ada_prototype): Update comment.
593
2e4ebe70
DJ
5942002-06-19 Daniel Jacobowitz <drow@mvista.com>
595
596 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
597 MIPS_ABI_LAST.
598 (mips_abi_string, mips_abi_strings): New.
599 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
600 (mips_gdbarch_init): Set tdep->found_abi. Don't set
601 tdep->mips_abi_string. Honor mips_abi_string. Default to
602 O32 if no ABI is found.
603 (mips_dump_tdep): Use mips_abi_strings.
604 (mips_abi_update): New function.
605 (_initialize_mips_tdep): Initialize mips_abi_string. Add
606 ``set mips abi'' and ``show mips abi''. Check the size of
607 mips_abi_strings.
608
16775908
AC
6092002-06-19 Andrew Cagney <cagney@redhat.com>
610
611 * i386-linux-tdep.c (i386_linux_register_name): Make return type
612 constant.
613
5051bfa4 6142002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 615
5051bfa4
JB
616 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
617 current frame using only the first stack size adjustment. All
618 subsequent size adjustments are not considered to be part of
619 the "static" part of the current frame.
620 Compute the address of the saved registers relative to the
621 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
622 in use in this frame.
623
56468235
DH
6242002-06-18 Don Howard <dhoward@redhat.com>
625
626 * valops.c (value_ind): Use value_at_lazy() when dereferencing
627 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
628 suggesting this solution.
629
0b624158
AC
6302002-06-18 Andrew Cagney <ac131313@redhat.com>
631
632 * config/romp/xm-rtbsd.h: Delete file.
633 * config/romp/rtbsd.mh: Delete file.
634
221ea385
KS
6352002-06-18 Keith Seitz <keiths@redhat.com>
636
637 * breakpoint.c (condition_command): Post breakpoint_modify
638 when a condition is added to an existing breakpoint.
639 (commands_command): Likewise for commands.
640 (set_ignore_count): Likewise for ignore counts.
641 If no tty, do not simply return, still need to send event
642 notification.
643 (ignore_command): Only print a newline if the command came
644 from a tty.
645 Don't call breakpoints_changed, since this is now properly
646 handled by set_ignore_count.
647
5402eed1
AC
6482002-06-18 Andrew Cagney <cagney@redhat.com>
649
650 * MAINTAINERS: Note that cris-elf target can be compiled with
651 -Werror.
652 * cris-tdep.c (cris_register_name): Make return type constant.
653 (cris_breakpoint_from_pc): Ditto.
654
cc22880b
ML
6552002-06-18 Michal Ludvig <mludvig@suse.cz>
656
657 * frame.h (struct frame_info): Change type of context to
658 'struct context'.
659
fa88f677
AC
6602002-06-17 Andrew Cagney <cagney@redhat.com>
661
662 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
663 pointer.
664 * gdbarch.h, gdbarch.c: Regenerate.
665 * config/mips/tm-mips.h (mips_register_name): Update.
666 * i386-tdep.h (i386_register_name): Update.
667 * mips-tdep.c (mips_register_name): Update
668 * alpha-tdep.c (alpha_register_name): Update.
669 * arch-utils.c (legacy_register_name): Update.
670 * arch-utils.h (legacy_register_name): Update.
671 * avr-tdep.c (avr_register_name): Update.
672 * ia64-tdep.c (ia64_register_name): Update.
673 * i386-tdep.c (i386_register_name): Update.
674 * sparc-tdep.c (sparc32_register_name): Update.
675 (sparc64_register_name): Update.
676 (sparclite_register_name): Update.
677 (sparclet_register_name): Update.
678 * sh-tdep.c (sh_generic_register_name): Update.
679 (sh_sh_register_name): Update.
680 (sh_sh3_register_name): Update.
681 (sh_sh3e_register_name): Update.
682 (sh_sh_dsp_register_name): Update.
683 (sh_sh3_dsp_register_name): Update.
684 (sh_sh4_register_name): Update.
685 (sh_sh64_register_name): Update.
686 * s390-tdep.c (s390_register_name): Update.
687 * rs6000-tdep.c (rs6000_register_name): Update.
688 * ns32k-tdep.c (ns32k_register_name_32082): Update.
689 (ns32k_register_name_32382): Update.
690 * d10v-tdep.c (d10v_ts2_register_name): Update.
691 (d10v_ts3_register_name): Update.
692 * xstormy16-tdep.c (xstormy16_register_name): Update.
693 * vax-tdep.c (vax_register_name): Update.
694 * v850-tdep.c (v850_register_name): Update.
695 * m68hc11-tdep.c (m68hc11_register_name): Update.
696 * mn10300-tdep.c (mn10300_generic_register_name): Update.
697 (am33_register_name): Update.
698
ea1e7ef6
GS
6992002-06-17 Grace Sainsbury <graces@redhat.com>
700
701 * m68k-tdep.c: Reindented.
702
9b02dd1b
AC
7032002-06-17 Andrew Cagney <ac131313@redhat.com>
704
705 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
706 list of predefined types.
707
8758dec1
MK
7082002-06-16 Mark Kettenis <kettenis@gnu.org>
709
b6197528
MK
710 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
711 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
712 REGISTER_CONVERT_TO_RAW): Remove defines.
713 (i386_register_virtual_type, i386_register_convertible,
714 i386_register_convert_to_virtual, i386_register_convert_to_raw):
715 Remove prototypes.
716 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
717 macros mentioned above.
718
82b47e62
MK
719 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
720 (i386lynx_saved_pc_after_call): Remove prototype.
721 * i386ly-tdep.c: Include "i386-tdep.h".
722 (i386lynx_saved_pc_after_call): Make static. Use
723 read_memory_nobpt instead of read_memory. Use
724 read_memory_unsigned_integer instead of read_memory_integer.
725 (i386lynx_init_abi): New function.
726 (i386lynx_coff_osabi_sniffer): New function.
727 (_initialize_i386bsd_tdep): New function.
728
8758dec1
MK
729 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
730 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
731 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
732 (i386_fix_call_dummy): Remove prototype.
733 * i386-tdep.c (i386_call_dummy_words): New variable.
734 (i386_gdbarch_init): Adjust for removal of the
735 macros mentioned above.
736
e9e68a56
AC
7372002-06-15 Andrew Cagney <ac131313@redhat.com>
738
739 * command.h (add_setshow_auto_boolean_cmd): Replace
740 add_set_auto_boolean_cmd.
741 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
742 add_set_auto_boolean_cmd.
743 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
744 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
745 mask-address'' command.
746 (show_mask_address): Add cmd parameter.
747 * remote.c (add_packet_config_cmd): Update. Change type of
748 set_func and show_func to cmd_sfunc_ftype.
749 (_initialize_remote): Update `set remote Z-packet'
750 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
751 (show_remote_protocol_e_packet_cmd): Ditto.
752 (show_remote_protocol_E_packet_cmd): Ditto.
753 (show_remote_protocol_P_packet_cmd): Ditto.
754 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
755 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
756 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
757 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
758 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
759 (show_remote_protocol_Z_packet_cmd): Ditto.
760 (show_remote_protocol_binary_download_cmd): Ditto.
761 (show_remote_cmd): Pass NULL to all of above.
762
fc08ec52
MK
7632002-06-15 Mark Kettenis <kettenis@gnu.org>
764
765 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
766 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
767 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
768 POP_FRAME): Remove defines.
769 (i386_push_arguments, i386_store_struct_return,
770 i386_extract_return_value, i386_store_return_value,
771 i386_extract_struct_value_address, i386_push_dummy_frame,
772 i386_pop_frame): Renove prototypes.
773 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
774 macros mentioned above.
775
e707bbc2
AC
7762002-06-15 Andrew Cagney <ac131313@redhat.com>
777
778 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
779 add_set_boolean_cmd.
780 (add_setshow_cmd): New function.
781 * command.h (add_setshow_boolean_cmd): Replace
782 add_set_boolean_cmd.
783 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
784 and ``set rdiromatzero''.
785 * maint.c (_initialize_maint_cmds): Update commented out code.
786 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
787 * target.c (initialize_targets): Update `set
788 trust-readonly-sections'.
789 * remote.c (_initialize_remote): Update `set remotebreak'.
790
42fdc8df
MK
7912002-06-15 Mark Kettenis <kettenis@gnu.org>
792
93924b6b
MK
793 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
794 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
795 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
796 fit into multi-arch framework.
797 (i386_breakpoint_from_pc): New function.
798 (i386_gdbarch_init): Adjust for removal of the macros mentioned
799 above.
800
42fdc8df
MK
801 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
802 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
803 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
804 (i386_frameless_function_invocation, i386_frame_num_args,
805 i386_frame_init_saved_regs): Remove prototypes.
806 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
807 macros mentioned above.
808
9773a94b
AC
8092002-06-15 Andrew Cagney <ac131313@redhat.com>
810
811 * cli/cli-decode.c (set_cmd_cfunc): Update.
812 (set_cmd_sfunc): Update.
813 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
814 (set_cmd_sfunc, set_cmd_cfunc): Update.
815 * cli/cli-decode.h: Update.
816
6e157172
MK
8172002-06-15 Mark Kettenis <kettenis@gnu.org>
818
819 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
820 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
821
7f19b9a2
AC
8222002-06-15 Andrew Cagney <ac131313@redhat.com>
823
824 * defs.h (auto_boolean): Declare enum.
825 * command.h (cmd_auto_boolean): Delete enum.
826 * mips-tdep.c (mask_address_var): Update.
827 (mips_mask_address_p): Update.
828 (show_mask_address): Update.
829 * remote.c (struct packet_config): Update.
830 (update_packet_config): Update.
831 (show_packet_config_cmd): Update.
832 (packet_ok): Update.
833 (add_packet_config_cmd): Update.
834 (_initialize_remote):
835 * command.h: Update.
836 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
837 (do_setshow_command): Update.
838 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
839 * cli/cli-decode.h: Update.
840
1cf88de5
MK
8412002-06-15 Mark Kettenis <kettenis@gnu.org>
842
22ba8cf2
MK
843 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
844 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
845 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
846 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
847 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
848 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
849
762c5349
MK
850 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
851 list of DJGPP COFF targets.
852
091198bb
MK
853 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
854 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
855 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
856 (FP0_REGNUM): Remove define.
857 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
858 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
859 (i386_register_virtual_size): Remove protoype.
860 * i386-tdep.c (i386_register_virtual_size): Removed.
861 (i386_extract_return_value, i386_store_return_value): Use
862 FP0_REGNUM instead of NUM_FREGS to determine whether the
863 floating-point registers are available.
864 (i386_gdbarch_init): Tweak FIXME about FPU registers.
865 Adjust for removal of macros mentioned above.
866
8672002-06-15 Mark Kettenis <kettenis@gnu.org>
868
fcc9bf01
MK
869 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
870 comments.
871 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
872 Remove prototypes.
873 (supply_gregset, fill_gregset): Remove use of register keyword and
874 remove declaration for regmap. Use I386_NUM_GREGS instead of
875 NUM_REGS and NUM_FREGS.
876 (FPREGSET_FSAVE_OFFSET): Remove.
877 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
878 NUM_FREGS to determine whether the floating-point registers are
879 available.
880
65e78234
MK
881 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
882 gnu_store_registers): Replace usage of NUM_GREGS with
883 I386_NUM_GREGS.
884
98df6387
MK
885 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
886 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
887 usage of NUM_GREGS with I386_NUM_GREGS.
888
099a9414
MK
889 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
890
57976e88
MK
891 * i386bsd-nat.c: Include "i386-tdep.h".
892 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
893 I386_NUM_GREGS.
894
b335f4a6
MK
895 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
896 and associated comment. They no longer make any sense, since we
897 don't use this file anymore on Linux.
898
1cf88de5
MK
899 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
900 * i386-tdep.c (i386_register_offset, i386_register_size): Use
901 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
902 elements in these arrays.
903 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
904 MAX_NUM_REGS.
905
daa66587
MK
9062002-06-15 Mark Kettenis <kettenis@gnu.org>
907
908 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
909 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
910
26e9b323
AC
9112002-06-14 Andrew Cagney <cagney@redhat.com>
912
913 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
914 EXTRACT_RETURN_VALUE.
915 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
916 EXTRACT_STRUCT_VALUE_ADDRESS.
917 * gdbarch.h, gdbarch.c: Regenerate.
918
919 * values.c (value_being_returned): Handle
920 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
921 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
922
923 * arm-linux-tdep.c (arm_linux_init_abi): Update.
924 * arm-tdep.c (arm_gdbarch_init): Update.
925 * avr-tdep.c (avr_gdbarch_init): Update.
926 * cris-tdep.c (cris_gdbarch_init): Update.
927 * d10v-tdep.c (d10v_gdbarch_init): Update.
928 * ia64-tdep.c (ia64_gdbarch_init): Update.
929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
931 * s390-tdep.c (s390_gdbarch_init): Update.
932 * sh-tdep.c (sh_gdbarch_init): Update.
933 * s390-tdep.c (s390_gdbarch_init): Update.
934 * sparc-tdep.c (sparc_gdbarch_init): Update.
935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
936 * v850-tdep.c (v850_gdbarch_init): Update.
937 * vax-tdep.c (vax_gdbarch_init): Update.
938 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
940
941 * config/arc/tm-arc.h: Update.
942 * config/d30v/tm-d30v.h: Update.
943 * config/fr30/tm-fr30.h: Update.
944 * config/h8300/tm-h8300.h: Update.
945 * config/h8500/tm-h8500.h: Update.
946 * config/i386/tm-i386.h: Update.
947 * config/i386/tm-ptx.h: Update.
948 * config/i386/tm-symmetry.h: Update.
949 * config/i960/tm-i960.h: Update.
950 * config/m32r/tm-m32r.h: Update.
951 * config/m68k/tm-delta68.h: Update.
952 * config/m68k/tm-linux.h: Update.
953 * config/m68k/tm-m68k.h: Update.
954 * config/m88k/tm-m88k.h: Update.
955 * config/mcore/tm-mcore.h: Update.
956 * config/mips/tm-mips.h: Update.
957 * config/mn10200/tm-mn10200.h: Update.
958 * config/pa/tm-hppa.h: Update.
959 * config/pa/tm-hppa64.h: Update.
960 * config/sparc/tm-sp64.h: Update.
961 * config/sparc/tm-sparc.h: Update.
962 * config/sparc/tm-sparclet.h: Update.
963 * config/z8k/tm-z8k.h: Update.
964
5179e78f
AC
9652002-06-14 Andrew Cagney <cagney@redhat.com>
966
967 * Makefile.in (i386_linux_tdep_h): Define.
968 (i386_tdep_h, i387_tdep_h): Define.
969 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
970 $(i386_tdep_h) and $(i387_tdep_h).
971 * i386-linux-nat.c: Include "i386-linux-tdep.h".
972
8201327c
MK
9732002-06-14 Mark Kettenis <kettenis@gnu.org>
974
edf393ac
MK
975 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
976 Already covered by the default.
977
896fb97d
MK
978 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
979 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
980 (i386_gdbarch_init): Initialize long_double_format and long_double
981 bit.
982
8201327c
MK
983 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
984 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
985 Move these to ...
986 * config/i386/i386sol2.mh: ... here.
987 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
988 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
989 (SIGCONTEXT_PC_OFFSET): Remove define.
990 (IN_SIGTRAMP): Remove define.
991 * i386-sol2-tdep.c: New file.
992
993 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
994 * config/i386/tm-i386nw.h: Removed.
995
996 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
997 USE_STRUCT_CONVENTION): Remove defines.
998 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
999 (get_longjmp_target): Remove prototype.
1000 (IN_SIGTRAMP): Remove define.
1001 (i386bsd_in_sigtramp): Remove prototype.
1002 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1003 function. Update comment accordingly
1004 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1005 (FRAME_SAVED_PC): Remove define.
1006 (i386bsd_frame_saved_pc): Remove prototype.
1007 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
1008 GET_LONGJMP_TARGET): Remove defines.
1009 (get_longjmp_target): Remove prototype.
1010 (IN_SIGTRAMP): Remove define.
1011 (i386bsd_in_sigtramp): Remove prototype.
1012 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
1013 function. Update comment accordingly
1014 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
1015 (FRAME_SAVED_PC): Remove define.
1016 (i386bsd_frame_saved_pc): Remove prototype.
1017 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
1018 Remove prototype.
1019 (USE_STRUCT_CONVENTION): Remove prototype.
1020 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
1021 declaration.
1022 (_initialize_i386bsd_nat): Revise logic to determine some
1023 constants at compile time when compiling a native GDB. Warn if
1024 things don't match up with what we expect.
1025 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
1026 Remove variables.
1027 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
1028 to use date stored in `struct gdbarch_tdep'.
1029 (i386bsd_sigcontext_offset): Remove varaible.
1030 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
1031 stored in `struct gdbarch_tdep'.
1032 (i386bsd_frame_saved_pc): Make static.
1033 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
1034 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
1035 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1036 i386fbsd4_sc_pc_offset): New variables.
1037 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
1038 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
1039 functions.
1040 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
1041 functions.
1042 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
1043 Modify the value of i386fbsd_sigtramp_start and
1044 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
1045 i386fbsd_sigtramp_end.
1046 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
1047 function.
1048
1049 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
1050 define to i386-linux-tdep.h.
1051 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1052 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
1053 defines.
1054 (i386_linux_register_name, i386_linux_register_byte,
1055 i386_linux_register_raw_size): Remove prototypes.
1056 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
1057 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
1058 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
1059 TARGET_WRITE_PC): Remove defines.
1060 (i386_linux_in_sigtramp, i386_linux_frame_chain,
1061 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
1062 i386_linux_write_pc): Remove prototypes.
1063 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1064 (get_longjmp_target): Remove prototype.
1065 * i386-linux-tdep.h: New file.
1066 * i386-linux-nat.c: Include "i386-linux-tdep.h".
1067 * i386-linux-tdep.c: Include "i386-tdep.h" and
1068 "i386-linux-tdep.h".
1069 (i386_linux_register_name, i386_linux_register_byte,
1070 i386_linux_register_raw_size, i386_linux_in_sigtramp,
1071 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
1072 Make static.
1073 (i386_linux_init_abi): New function.
1074 (_initialize_i386_linux_tdep): New function.
1075
1076 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
1077 (i386_saved_pc_after_call): Remove prototype.
1078 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
1079 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
1080 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
1081 (i386_register_name, i386_stab_reg_to_regnum,
1082 i386_dwarf_reg_to_regnum): Remove prototypes.
1083 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
1084 SIZEOF_SSE_REGS): Remove defines.
1085 (REGISTER_BYTES): Remove define.
1086 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
1087 (i386_register_byte, i386_register_raw_size): Remove prototypes.
1088 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
1089 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
1090 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
1091 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
1092 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
1093 (get_longjmp_target): Remove prototype.
1094 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
1095 (sigtramp_saved_pc): Remove define.
1096 (i386v4_sigtramp_saved_pc): Remove prototype.
1097 * config/i386/tm-go32.h (FRAME_CHAIN,
1098 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
1099 (i386go32_frame_saved_pc): Remove prototype.
1100 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
1101 (get_longjmp_target): Remove prototype.
1102 * i386-tdep.h: Include "osabi.h".
1103 (enum i386_abi): Removed.
1104 (enum struct_return): New enum.
1105 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
1106 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
1107 sc_pc_offset members.
1108 (i386_gdbarch_register_os_abi): Remove prototype.
1109 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
1110 I386_SSE_NUM_REGS): New defines.
1111 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
1112 I386_SSE_SIZEOF_REGS): New defines.
1113 (i386_register_name, i386_register_byte, i386_register_raw_size):
1114 New prototypes.
1115 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
1116 (i386bsd_sigtramp_saved_pc): New prototype.
1117 * i386-tdep.c: Don't include "elf-bfd.h".
1118 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
1119 i386_frame_chain, i386_saved_pc_after_call): Make static.
1120 (i386_frame_saved_pc): Rewrite to call architecture dependent
1121 function to deal with signal handlers. Make static.
1122 (i386go32_frame_saved_pc): Removed.
1123 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
1124 Removed.
1125 (i386_get_longjmp_target): New function.
1126 (default_struct_convention, pcc_struct_convention,
1127 reg_struct_convention, valid_conventions, struct_convention): New
1128 variables.
1129 (i386_use_struct_convention): New function.
1130 (i386v4_sigtramp_saved_pc): Renamed to
1131 i386_svr4_sigtramp_saved_pc. Made static. Moved.
1132 (i386_pc_in_sigtramp): New function.
1133 (i386_abi_names): Removed.
1134 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
1135 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
1136 Removed.
1137 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
1138 i386_gdbarch_register_os_abi): Removed.
1139 (struct i386_abi_handler): Removed.
1140 (i386_abi_handler_list): Removed.
1141 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
1142 functions.
1143 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
1144 i386_nw_init_abi): New functions.
1145 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
1146 Use set_gdbarch_xxx() calls instead of relying on macros for a
1147 number of calls.
1148 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
1149 (_initialize_i386_tdep): Add new 'struct-convcention' command.
1150 Register the various architecture variants defined in this file.
1151
ad2f7632
DJ
11522002-06-14 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
1155 (struct main_type): Remove arg_types member. Update comments for
1156 struct field.
1157 (TYPE_ARG_TYPES): Remove.
1158 (TYPE_FN_FIELD_ARGS): Update.
1159 (smash_to_method_type): Update prototype.
1160
1161 * c-typeprint.c (cp_type_print_method_args): Take method type
1162 instead of argument list. Use new argument layout. Simplify.
1163 (c_type_print_args): Use new argument layout. Simplify.
1164 (c_type_print_base): Update call to cp_type_print_method_args.
1165 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
1166 argument; use die->type instead. Update call to
1167 smash_to_method_type.
1168 (read_structure_scope): Update call to dwarf2_add_member_fn.
1169 * gdbtypes.c (allocate_stub_method): Update comment.
1170 (smash_to_method_type): Take new NARGS and VARARGS arguments.
1171 Use new argument layout.
1172 (check_stub_method): Use new argument layout. Don't count
1173 void as an argument.
1174 (print_arg_types): Update comments. Use new argument layout.
1175 (recursive_dump_type): Don't print arg_types member.
1176 * hpread.c (hpread_read_struct_type): Use new argument layout.
1177 (fixup_class_method_type): Likewise.
1178 (hpread_type_lookup): Likewise.
1179 * stabsread.c (read_type): Update calls to read_args and
1180 smash_to_method_type.
1181 (read_args): Use new argument layout. Simplify.
1182 * valops.c (typecmp): Use new argument layout. Update parameters
1183 and comments. Simplify.
1184 (hand_function_call): Use new argument layout.
1185 (search_struct_method): Update call to typecmp.
1186 (find_overload_match): Use new argument layout.
1187
6da02953
DJ
11882002-06-13 Daniel Jacobowitz <drow@mvista.com>
1189
1190 * NEWS: Mention multithreaded debug support for gdbserver.
1191
519b2366
DJ
11922002-06-13 Daniel Jacobowitz <drow@mvista.com>
1193
1194 * MAINTAINERS: Mention NEWS.
1195
a7f48742
DJ
11962002-06-13 Daniel Jacobowitz <drow@mvista.com>
1197
1198 * gdbserver/regcache.c: Add comment.
1199
6c0d6680
DJ
12002002-06-13 Daniel Jacobowitz <drow@mvista.com>
1201
1202 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
1203 (struct mips_objfile_private, compare_pdr_entries): New.
1204 (non_heuristic_proc_desc): Read the ".pdr" section if it
1205 is present.
1206
6529d2dd
AC
12072002-06-12 Andrew Cagney <ac131313@redhat.com>
1208
1209 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
1210 (arm_debug): New static variable.
1211 (_initialize_arm_tdep): Add ``set debug arm'' command.
1212
26216b98
AC
12132002-06-12 Andrew Cagney <ac131313@redhat.com>
1214
1215 * Makefile.in (sim_arm_h): Define.
1216 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
1217 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
1218 (arm_register_sim_regno): New function, map an internal REGNUM
1219 onto a simulator register number.
1220 (arm_gdbarch_init): Set register_sim_regno.
1221
814b3ba0
AH
12222002-06-09 Aldy Hernandez <aldyh@redhat.com>
1223
1224 * MAINTAINERS: Add self.
1225
475b0867
JB
12262002-06-11 Jim Blandy <jimb@redhat.com>
1227
919d772c
JB
1228 * source.c (source_info): Mention whether the symtab has
1229 information about preprocessor macros.
1230
475b0867
JB
1231 Call the command `info macro', not `show macro'.
1232 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
1233 Fix error message.
1234 (_initialize_macrocmd): Register `info_macro_command' in
1235 `infolist', not `showlist'.
1236
9e364162
DJ
12372002-06-11 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
1240 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
1241 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
1242 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
1243 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
1244 unconditionally.
1245 (set_mipsfpu_single_command, set_mipsfpu_double_command)
1246 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
1247 (_initialize_mips_tdep): Remove dead code.
1248 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
1249 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1250 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
1251 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
1252 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
1253 MIPS_LAST_FP_ARG_REGNUM): Remove.
1254
12552002-06-11 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * gdbserver/thread-db.c: New file.
1258 * gdbserver/proc-service.c: New file.
1259 * gdbserver/acinclude.m4: New file.
1260 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
1261 proc-service.o, and thread-db.o.
1262 (linux-low.o): Add USE_THREAD_DB.
1263 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
1264 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
1265 * gdbserver/aclocal.m4: Regenerated.
1266 * gdbserver/config.in: Regenerated.
1267 * gdbserver/configure: Regenerated.
1268 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
1269 thread_db.h, and linux/elf.h headrs.
1270 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
1271 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
1272 Check for -lthread_db and thread support.
1273 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
1274 PowerPC, and SuperH.
1275 * gdbserver/i387-fp.c: Constify arguments.
1276 * gdbserver/i387-fp.h: Likewise.
1277 * gdbserver/inferiors.c: (struct thread_info): Renamed from
1278 `struct inferior_info'. Remove PID member. Use generic inferior
1279 list header. All uses updated.
1280 (inferiors, signal_pid): Removed.
1281 (all_threads): New variable.
1282 (get_thread): Define.
1283 (add_inferior_to_list): New function.
1284 (for_each_inferior): New function.
1285 (change_inferior_id): New function.
1286 (add_inferior): Removed.
1287 (remove_inferior): New function.
1288 (add_thread): New function.
1289 (free_one_thread): New function.
1290 (remove_thread): New function.
1291 (clear_inferiors): Use for_each_inferior and free_one_thread.
1292 (find_inferior): New function.
1293 (find_inferior_id): New function.
1294 (inferior_target_data): Update argument type.
1295 (set_inferior_target_data): Likewise.
1296 (inferior_regcache_data): Likewise.
1297 (set_inferior_regcache_data): Likewise.
1298 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
1299 (all_processes, stopping_threads, using_thrads)
1300 (struct pending_signals, debug_threads, pid_of): New.
1301 (inferior_pid): Replace with macro.
1302 (struct inferior_linux_data): Remove.
1303 (get_stop_pc, add_process): New functions.
1304 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
1305 Use add_process and add_thread.
1306 (linux_attach_lwp): New function, based on old linux_attach. Use
1307 add_process and add_thread. Set stop_expected for new threads.
1308 (linux_attach): New function.
1309 (linux_kill_one_process): New function.
1310 (linux_kill): Kill all LWPs.
1311 (linux_thread_alive): Use find_inferior_id.
1312 (check_removed_breakpoints, status_pending_p): New functions.
1313 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
1314 Update. Use WNOHANG. Wait for cloned processes also. Update process
1315 struct for the found process.
1316 (linux_wait_for_event): New function.
1317 (linux_wait): Use it. Support LWPs.
1318 (send_sigstop, wait_for_sigstop, stop_all_processes)
1319 (linux_resume_one_process, linux_continue_one_process): New functions.
1320 (linux_resume): Support LWPs.
1321 (REGISTER_RAW_SIZE): Remove.
1322 (fetch_register): Use register_size instead. Call supply_register.
1323 (usr_store_inferior_registers): Likewise. Call collect_register.
1324 Fix recursive case.
1325 (regsets_fetch_inferior_registers): Improve error message.
1326 (regsets_store_inferior_registers): Add debugging.
1327 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
1328 (unstopped_p, linux_signal_pid): New functions.
1329 (linux_target_ops): Add linux_signal_pid.
1330 (linux_init_signals): New function.
1331 (initialize_low): Call it. Initialize using_threads.
1332 * gdbserver/regcache.c (inferior_regcache_data): Add valid
1333 flag.
1334 (get_regcache): Fetch registers lazily. Add fetch argument
1335 and update all callers.
1336 (regcache_invalidate_one, regcache_invalidate): New
1337 functions.
1338 (new_register_cache): Renamed from create_register_cache.
1339 Return the new regcache.
1340 (free_register_cache): Change argument to a void *.
1341 (registers_to_string, registers_from_string): Call get_regcache
1342 with fetch flag set.
1343 (register_data): Make static. Pass fetch flag to get_regcache.
1344 (supply_register): Call get_regcache with fetch flag clear.
1345 (collect_register): Call get_regcache with fetch flag set.
1346 (collect_register_as_string): New function.
1347 * gdbserver/regcache.h: Update.
1348 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
1349 stderr.
1350 Handle input interrupts while waiting for an ACK.
1351 (input_interrupt): Use signal_pid method.
1352 (getpkt): Flush after debug output and use stderr.
1353 (outreg): Use collect_register_as_string.
1354 (new_thread_notify, dead_thread_notify): New functions.
1355 (prepare_resume_reply): Check using_threads. Set thread_from_wait
1356 and general_thread.
1357 (look_up_one_symbol): Flush after debug output.
1358 * gdbserver/server.c (step_thread, server_waiting): New variables.
1359 (start_inferior): Don't use signal_pid. Update call to mywait.
1360 (attach_inferior): Update call to mywait.
1361 (handle_query): Handle qfThreadInfo and qsThreadInfo.
1362 (main): Don't fetch/store registers explicitly. Use
1363 set_desired_inferior. Support proposed ``Hs'' packet. Update
1364 calls to mywait.
1365 * gdbserver/server.h: Update.
1366 (struct inferior_list, struct_inferior_list_entry): New.
1367 * gdbserver/target.c (set_desired_inferior): New.
1368 (write_inferior_memory): Constify.
1369 (mywait): New function.
1370 * gdbserver/target.h: Update.
1371 (struct target_ops): New signal_pid method.
1372 (mywait): Removed macro, added prototype.
1373
1374 * gdbserver/linux-low.h (regset_func): Removed.
1375 (regset_fill_func, regset_store_func): New.
1376 (enum regset_type): New.
1377 (struct regset_info): Add type field. Use new operation types.
1378 (struct linux_target_ops): stop_pc renamed to get_pc.
1379 Add decr_pc_after_break and breakpoint_at.
1380 (get_process, get_thread_proess, get_process_thread)
1381 (strut process_info, all_processes, linux_attach_lwp)
1382 (thread_db_init): New.
1383
1384 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
1385 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
1386 (the_low_target): Add new members.
1387 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
1388 (i386_store_fpxregset): Constify.
1389 (target_regsets): Add new kind identifier.
1390 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
1391 (i386_set_pc): Add debugging.
1392 (i386_breakpoint_at): New function.
1393 (the_low_target): Add new members.
1394 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
1395 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
1396 (mips_breakpoint_at): New.
1397 (the_low_target): Add new members.
1398 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
1399 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
1400 (the_low_target): Add new members.
1401 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
1402 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
1403 (the_low_target): Add new members.
1404 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
1405 identifier.
1406
23aa4c72
ML
14072002-06-11 Michal Ludvig <mludvig@suse.cz>
1408
1409 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
1410 (unwind_tmp_obstack_free, parse_frame_info)
1411 (update_context, cfi_read_fp, cfi_write_fp)
1412 (cfi_frame_chain, cfi_init_extra_frame_info)
1413 (cfi_virtual_frame_pointer): Use the above function.
264d1763 1414 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 1415
70eb15a4
CV
14162002-06-11 Corinna Vinschen <vinschen@redhat.com>
1417
1418 * v850-tdep.c (v850_type_is_scalar): New function.
1419 (v850_use_struct_convention): Match current gcc implementation
1420 as close as possible.
1421 (v850_push_arguments): Fix stack_offset handling. Don't write
1422 struct_addr into register. This is done by v850_store_struct_return.
1423 (v850_extract_return_value): Care for structs.
1424 (v850_store_return_value): Ditto.
1425 (v850_store_struct_return): Actually write address.
1426
482a4d06
ML
14272002-06-11 Michal Ludvig <mludvig@suse.cz>
1428
1429 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
1430 without debug information too.
1431
d855c300
AC
14322002-06-10 Andrew Cagney <ac131313@redhat.com>
1433
1434 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
1435 Make multi-arch pure.
1436 * gdbarch.h, gdbarch.c: Re-generate.
1437 * arm-tdep.c (arm_print_float_info): Update.
1438 * arch-utils.h (default_print_float_info): Update.
1439 * arch-utils.c (default_print_float_info): Update.
1440 * infcmd.c (float_info): Update call.
1441
dd12a101
AC
14422002-06-10 Andrew Cagney <ac131313@redhat.com>
1443
1444 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
1445 the front of the initialize list.
1446
101dcfbe
AC
14472002-06-10 Andrew Cagney <ac131313@redhat.com>
1448
1449 * infrun.c (struct inferior_status): Replace fields
1450 selected_frame_address and selected_level with field
1451 selected_frame_id.
1452 (save_inferior_status): Update. Use get_frame_id.
1453 (struct restore_selected_frame_args): Delete.
1454 (restore_selected_frame): Update. Use frame_find_by_id.
1455 (restore_inferior_status): Update.
1456
1457 * breakpoint.h (struct breakpoint): Change type of
1458 watchpoint_frame to frame_id.
1459 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
1460 call to get_current_frame.
1461 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
1462 get_current_frame.
1463 (watchpoint_check): Use frame_find_by_id.
1464
1465 * frame.h (record_selected_frame): Delete declaration.
1466 * stack.c (record_selected_frame): Delete function.
1467
1468 * frame.h (struct frame_id): Define.
1469 (get_frame_id): Declare.
1470 (frame_find_by_id): Declare.
1471 * frame.c (frame_find_by_id): New function.
1472 (get_frame_id): New function.
1473
304270b6
AV
14742002-06-10 Andrey Volkov <avolkov@transas.com>
1475
1476 * ser-e7kpc.c: Fix duplicated define and call of
1477 _initialize_ser_e7000pc
1478
2f2cf184
DJ
14792002-06-09 Daniel Jacobowitz <drow@mvista.com>
1480
1481 * signals/signals.c (target_signal_from_host): Fix #ifdef
1482 SIGRTMIN case.
1483 (do_target_signal_to_host): Likewise.
1484
caaa3122
DJ
14852002-06-09 Daniel Jacobowitz <drow@mvista.com>
1486
1487 * mips-tdep.c (mips_find_abi_section): New function.
1488 (mips_gdbarch_init): Call it.
1489
6ac5df3a
MK
14902002-06-09 Mark Kettenis <kettenis@gnu.org>
1491
1492 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
1493 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
1494 after Andrew's 2002-06-08 gdbarch change.
1495
82ea117a
MK
14962002-06-09 Mark Kettenis <kettenis@gnu.org>
1497
1498 * i386-linux-nat.c (suppy_gregset): Don't supply
1499 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
1500 register cache.
1501 (fill_gregset): Don't fetch it under the same circumstances.
1502
3c25f8c7
AC
15032002-06-09 Andrew Cagney <cagney@redhat.com>
1504
1505 * Makefile.in (callback_h): Define.
1506 (remote_sim_h): Update path to remote-sim.h.
1507 (remote-rdp.o): Add $(callback_h).
1508 (remote-sim.o): Use $(callback_h).
1509 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
1510 * remote-rdp.c: Include "gdb/callback.h".
1511
1029b7fa
MK
15122002-06-09 Mark Kettenis <kettenis@gnu.org>
1513
1514 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
1515 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
1516
616675d3
AC
15172002-06-08 Andrew Cagney <ac131313@redhat.com>
1518
a3efda28
AC
1519 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
1520 * rdi-share/serpardr.c: Ditto.
1521 * rdi-share/unixcomm.c: Ditto.
1522 * rdi-share/serdrv.c: Ditto.
1523 * rdi-share/hostchan.h: Ditto.
1524 * rdi-share/hostchan.c: Ditto.
1525 * rdi-share/host.h: Ditto.
1526 * rdi-share/devsw.c: Ditto.
1527
c5f10366
AC
1528 * objfiles.h: Change type of obj_private to void pointer.
1529 * pa64solib.c: Update copyright. Don't include "assert.h", use
1530 strcmp instead of STREQ, use LONGEST, do not use PTR
1531 * somsolib.c: Ditto.
1532
616675d3
AC
1533 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
1534 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
1535 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
1536
e4b415d9
AC
15372002-06-08 Andrew Cagney <ac131313@redhat.com>
1538
1539 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
1540 (default_get_saved_register): Delete function.
1541 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
1542 generic_unwind_get_saved_register.
1543 * gdbarch.h, gdbarch.c: Re-generate.
1544
ca0d0b52
AC
15452002-06-08 Andrew Cagney <ac131313@redhat.com>
1546
1547 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
1548 generic_func_frame_chain_valid.
1549 * gdbarch.h, gdbarch.c: Re-generate.
1550 * blockframe.c (generic_func_frame_chain_valid): Only check
1551 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
1552 passing FP to PC_IN_CALL_DUMMY.
1553 Fix PR gdb/360.
1554
76860b5f
AC
15552002-06-08 Andrew Cagney <ac131313@redhat.com>
1556
1557 * gdbarch.sh (struct gdbarch_data): Add field init_p.
1558 (register_gdbarch_data): Initialize init_p.
1559 (gdbarch_data): Initialize data pointer using the init function.
1560 (init_gdbarch_data): Delete function.
1561 (gdbarch_update_p): Update.
1562 (initialize_non_multiarch): Update.
1563 (struct gdbarch): Add field initialized_p.
1564 * gdbarch.h, gdbarch.c: Re-generate.
1565
8dda9770
ML
15662002-06-07 Michal Ludvig <mludvig@suse.cz>
1567
1568 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
1569 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
1570 better do the things actually here.
1571 * x86-64-tdep.c (x86_64_register_name2nr): New.
1572 (x86_64_register_name): Renamed to x86_64_register_nr2name.
1573 (x86_64_gdbarch_init): Respect the above change.
1574 * x86-64-tdep.h (x86_64_register_name2nr)
1575 (x86_64_register_nr2name): Add prototypes.
1576 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
1577
3d79a47c
MS
15782002-06-06 Michael Snyder <msnyder@redhat.com>
1579
7bd91a28
MS
1580 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
1581 Delete extra braces and re-indent.
1582 (d10v_store_return_value): Char return values
3d79a47c
MS
1583 must be shifted over by one byte in R0.
1584 (d10v_extract_return_value): Delete extra braces, re-indent.
1585
095a4c96
EZ
15862002-06-06 Elena Zannoni <ezannoni@redhat.com>
1587
1588 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
1589 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
1590 (d10v_integer_to_address): Rewrite.
1591 (d10v_frame_init_saved_regs): When reading fp and sp registers use
1592 the d10v specific functions which take care of converting to the
1593 correct space.
1594
e8a77ca4
EZ
15952002-06-06 Elena Zannoni <ezannoni@redhat.com>
1596
1597 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
1598 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
1599
4f2e4a4f
AC
16002002-06-02 Andrew Cagney <ac131313@redhat.com>
1601
1602 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
1603 includes.
1604 * config/tm-linux.h: Ditto.
1605 * config/alpha/tm-alphalinux.h: Ditto.
1606 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
1607 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
1608 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
1609 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
1610 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
1611 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
1612 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
1613 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
1614 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
1615 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
1616 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
1617 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1618 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
1619 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
1620 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
1621 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
1622 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
1623 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
1624 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
1625 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
1626 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
1627 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
1628 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
1629 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
1630 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
1631 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
1632 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
1633 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
1634 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
1635 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
1636 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
1637 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
1638 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
1639 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
1640 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
1641 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
1642 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
1643
ae2ab2ce
AS
16442002-05-04 Aidan Skinner <aidan@velvet.net>
1645
1646 * ada-exp.tab.c: New file
1647 * ada-exp.y: New file
1648 * ada-lang.c: New file
1649 * ada-lang.h: New file
1650 * ada-lex.c: New file
1651 * ada-lex.l: New file
1652 * ada-tasks.c: New file
1653 * ada-typeprint.c: New file
1654 * ada-valprint.c: New file
1655
0ddd0135
JT
16562002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1657
1658 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
1659 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
1660
750fbacc
JT
16612002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
1662
1663 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
1664 insetead of ppc-linux-tdep.o.
1665 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
1666 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
1667
df94e18a
AC
16682002-06-02 Andrew Cagney <ac131313@redhat.com>
1669
1670 2002-05-07 Christian Groessler <chris@groessler.org>
1671 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
1672 bit register contents for little endian hosts.
1673
1a38ab75
AC
16742002-06-01 Andrew Cagney <ac131313@redhat.com>
1675
1676 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
1677 any maintainer.
1678
8b1632ac
AC
16792002-06-01 Andrew Cagney <ac131313@redhat.com>
1680
1681 * gdbarch.h: Regenerate.
1682
627054c8
AC
16832002-06-01 Andrew Cagney <ac131313@redhat.com>
1684
1685 * MAINTAINERS: Add everyone to write-after-approval list.
1686
4f460812
AC
16872002-06-01 Andrew Cagney <ac131313@redhat.com>
1688
1689 * stack.c (frame_info): Use frame_register_unwind instead of
1690 saved_regs. Mention when the SP is on the stack or in a register.
1691
1692 * frame.h (frame_register_unwind_ftype): Define. Document.
1693 (struct frame_info): Add field register_unwind and
1694 register_unwind_cache.
1695 (frame_register_unwind): Declare.
1696 (generic_unwind_get_saved_register): Declare.
1697
1698 * frame.c (frame_register_unwind): New function.
1699 (generic_unwind_get_saved_register): New function.
1700
1701 * blockframe.c (generic_call_dummy_register_unwind): New function.
1702 (frame_saved_regs_register_unwind): New function.
1703 (set_unwind_by_pc): New function.
1704 (create_new_frame): New function.
1705 (get_prev_frame): New function.
1706
de888f76
AC
17072002-05-30 Andrew Cagney <ac131313@redhat.com>
1708
1709 * a29k-share/: Delete directory.
1710 * remote-vx29k.c: Delete file.
1711
2f2c3626
JT
17122002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1713
1714 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
1715 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1716
9ce5c36a
JT
17172002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1718
1719 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
1720 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
1721 (sparc64nbsd-nat.o)
1722 (sparcnbsd-nat.o)
1723 (sparcnbsd-tdep.o): New dependency lists.
1724 * NEWS: Note new UltraSPARC NetBSD native configuration.
1725 * configure.host (sparc64-*-netbsd*): New host.
1726 * configure.tgt (sparc-*-netbsdelf*)
1727 (sparc-*-netbsd*): Set gdb_target to nbsd.
1728 (sparc64-*-netbsd*): New target.
1729 * sparc64nbsd-nat.c: New file.
1730 * sparcnbsd-nat.c: New file.
1731 * sparcnbsd-tdep.c: New file.
1732 * sparcnbsd-tdep.h: New file.
1733 * config/sparc/nbsd.mt: New file.
1734 * config/sparc/nbsd64.mh: New file.
1735 * config/sparc/nbsd64.mt: New file.
1736 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
1737 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1738 (HOST_IPC): Remove.
1739 * config/sparc/nbsdaout.mt: Remove.
1740 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
1741 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
1742 (HOST_IPC): Remove.
1743 * config/sparc/nbsdelf.mt: Remove.
1744 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
1745 sparc-nat.c compatiblity defines.
1746 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
1747 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
1748 * config/sparc/tm-nbsd64.h: New file.
1749 * config/sparc/tm-nbsdaout.h: Remove.
1750 * config/sparc/xm-nbsd.h: Remove.
1751
ef3cf062
JT
17522002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
1753
1754 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
1755 * sparc-tdep.c: Include osabi.h.
1756 (gdbarch_tdep): Add osabi member.
1757 (_initialize_sparc_tdep): Use gdbarch_register.
1758 (sparc_gdbarch_init): Use generic OS ABI framework.
1759 (sparc_dump_tdep): New function.
1760
ee8ff470
KB
17612002-05-30 Kevin Buettner <kevinb@redhat.com>
1762
1763 * corefile.c (do_captured_read_memory_integer): Return non-zero
1764 result.
1765 (safe_read_memory_integer): Copy result of memory read when
1766 status is non-zero. Also, add comments.
1767
7b112f9c
JT
17682002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
1769
1770 * Makefile.in (ppc_tdep_h): Define.
1771 (ppc-linux-nat.o)
1772 (ppc-linux-tdep.o)
1773 (rs6000-tdep.o): Use $(ppc_tdep_h).
1774 (ppc-sysv-tdep.o)
1775 (ppcnbsd-nat.o)
1776 (ppcnbsd-tdep.o): New dependency lists.
1777 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
1778 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
1779 (ppc_linux_init_abi): New functions.
7b112f9c
JT
1780 (ppc_sysv_abi_broken_use_struct_convention)
1781 (ppc_sysv_abi_use_struct_convention)
1782 (ppc_sysv_abi_push_arguments): Move to...
1783 * ppc-sysv-tdep.c: ...here.
1784 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
1785 * rs6000-tdep.c (process_note_abi_tag_sections)
1786 (get_elfosabi): Remove.
1787 (rs6000_gdbarch_init): Use generic OS ABI framework.
1788 (rs6000_dump_tdep): New function.
1789 (_initialize_rs6000_tdep): Use gdbarch_register.
1790 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
1791 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1792 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
1793 of ppc-linux-tdep.o.
1794 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
1795 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
1796 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
1797 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
1798 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
1799 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
1800
480dd42a
JB
18012002-05-29 Jim Blandy <jimb@redhat.com>
1802
1803 * macroscope.c (default_macro_scope): Put `void' in empty argument
1804 list.
1805
4182591f
AC
18062002-05-29 Andrew Cagney <ac131313@redhat.com>
1807
1808 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
1809 * arch-utils.c: Include "sim-regno.h".
1810 * gdbarch.sh: Don't include "sim-regno.h".
1811 * gdbarch.h, gdbarch.c: Regenerate.
1812 * sim-regno.h (legacy_register_sim_regno): Move declaration from
1813 here.
1814 * arch-utils.h (legacy_register_sim_regno): To here.
1815 * remote-sim.c (legacy_register_sim_regno): Move function from
1816 here.
1817 * arch-utils.c (legacy_register_sim_regno): To here.
1818
8238d0bf
AC
18192002-05-28 Andrew Cagney <ac131313@redhat.com>
1820
1821 * sim-regno.h: New file.
1822 * Makefile.in (sim_regno_h): Define.
1823 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
1824 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
1825 (legacy_register_sim_regno): New function.
1826 (one2one_register_sim_regno): New function.
1827 (gdbsim_fetch_register): Rewrite.
1828 (gdbsim_store_register): Only store a register when
1829 REGISTER_SIM_REGNO is valid.
1830 * d10v-tdep.c: Include "sim-regno.h".
1831 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
1832 (d10v_ts3_register_sim_regno): Ditto.
1833 * gdbarch.sh: Include "sim-regno.h".
1834 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
1835 * gdbarch.h, gdbarch.c: Regenerate.
1836 * arch-utils.h (default_register_sim_regno): Delete declaration.
1837 * arch-utils.c (default_register_sim_regno): Delete function.
1838
485721b1
JT
18392002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
1840
1841 * ppcnbsd-nat.c: Rewrite.
1842 * ppcnbsd-tdep.c: New file.
1843 * ppcnbsd-tdep.h: New file.
1844 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
1845 solib.o, and solib-svr4.o.
1846 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
1847 nbsd-tdep.o, and corelow.o.
1848
697f244d
AC
18492002-05-28 Andrew Cagney <ac131313@redhat.com>
1850
1851 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
1852 `tr' and `sed'. Mention that `broken' targets are not expected to
1853 build.
1854
f08caad1 18552002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
1856
1857 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
1858 Let PC point right after the prologue before looking up symbols.
1859
3139facc
MH
18602002-05-27 Martin M. Hunt <hunt@redhat.com>
1861
1862 * i386-tdep.c (i386_register_virtual_type): Return
1863 builtin_type_vec128i for SSE registers.
1864
1865 * gdbtypes.h (builtin_type_vec128i): Declare.
1866
1867 * gdbtypes.c (build_builtin_type_vec128i): New function.
1868 (builtin_type_v2_double, builtin_type_v4_int64): New types.
1869 (builtin_type_vec128i): New type for SSE2 128-bit registers.
1870 (build_gdbtypes): Initialize new builtin vector types.
1871 (_initialize_gdbtypes): Register new vector types with gdbarch.
1872
6e3ba3b8
JT
18732002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1874
1875 * MAINTAINERS: ns32k is not longer an obsolete candidate,
1876 since it has been multi-arch'd.
1877 * NEWS: Note that ns32k-*-* is now partial multi-arch.
1878 Move Alpha and VAX multi-arch news entries to same section
1879 as other multi-arch news.
1880
93d5585d
JT
18812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1882
1883 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
1884 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
1885 static. Rename some register numbers to put them in ns32k-tdep
1886 private namespace.
1887 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
1888 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
1889 functions.
1890 (_initialize_ns32k_tdep): Use gdbarch_register.
1891 * ns32k-tdep.h: New file.
1892 * ns32knbsd-tdep.c: New file.
1893 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1894 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1895 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1896 REGISTER_BYTES, REGISTER_BYTE): Remove.
1897 * config/ns32k/tm-ns32k.h: New file.
1898 * config/ns32k/tm-umax.h: Remove.
1899
efb2c70e
JT
19002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1901
1902 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1903 ns32k_store_struct_return, ns32k_extract_return_value,
1904 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1905 functions.
1906 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1907 ns32k_saved_pc_after_call.
1908 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1909 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1910 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1911 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1912 ns32k_extract_struct_value_address.
1913
7bcc927b
JT
19142002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1915
1916 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1917 ns32k_fix_call_dummy): New.
1918 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1919 ns32k_call_dummy_words.
1920 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1921 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1922 CALL_DUMMY_NARGS): Remove.
1923 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1924
78f9d765
JT
19252002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1926
1927 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1928 ns32k_frame_saved_pc, ns32k_frame_args_address,
1929 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1930 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1931 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1932 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1933 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1934 (BREAKPOINT): Remove..
1935 (FRAME_CHAIN): Define as ns32k_frame_chain.
1936 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1937 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1938 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1939 (FRAME_FIND_SAVED_REGS): Remove.
1940 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1941 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1942 (POP_FRAME): Define as ns32k_pop_frame.
1943
f2c762e0
JT
19442002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1945
1946 * ns32k-tdep.c (ns32k_register_byte_32082,
1947 ns32k_register_byte_32382, ns32k_register_raw_size,
1948 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1949 functions.
1950 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1951 ns32k_register_byte_32382.
1952 * config/ns32k/tm-umax.h: Update copyright years.
1953 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1954 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1955 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1956 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1957 (ns32k_get_enter_addr): Fix prototype.
1958
af137673
JT
19592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1960
1961 * ns32k-tdep.c: Update copyright years.
1962 (ns32k_register_name_32082): New function.
1963 (ns32k_register_name_32382): Ditto.
1964 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1965 (REGISTER_NAME): Define as ns32k_register_name_32382.
1966 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1967 (REGISTER_NAME): Define as ns32k_register_name_32082.
1968
a8bc7b56
JB
19692002-05-24 Jim Blandy <jimb@redhat.com>
1970
1971 * dwarf2read.c (free_line_header): Use xfree, not free.
1972
83a45910
JT
19732002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1974
1975 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1976 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1977
0db71247
AC
19782002-05-23 Andrew Cagney <ac131313@redhat.com>
1979
1980 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1981
b9e5e4dd
AC
19822002-05-23 Andrew Cagney <ac131313@redhat.com>
1983
1984 From Ross Alexander at NEC Europe:
1985 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1986
de530e84
MS
19872002-05-23 Michael Snyder <msnyder@redhat.com>
1988
1989 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1990 for input, rather than parse_and_eval_address.
1991
b91b96f4
AC
19922002-05-23 Andrew Cagney <ac131313@redhat.com>
1993
1994 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1995 * Makefile.in (sim_d10v_h): Update definition.
1996
8b279e7a
AC
19972002-05-24 Andrew Cagney <cagney@redhat.com>
1998
1999 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
2000 change `2002-05-22 Michael Snyder' below.
2001 (d10v_push_arguments): Ditto.
2002 (d10v_extract_return_value): Ditto.
2003
0a3d0425
JB
20042002-05-23 Jim Blandy <jimb@redhat.com>
2005
2006 * macrotab.c (check_for_redefinition): Don't complain if the new
2007 definition is the same as the previous one. Take more arguments
2008 to allow the comparison.
2009 (macro_define_object, macro_define_function): Pass more arguments
2010 to check_for_redefinition.
2011
78eac43e
MS
20122002-05-22 Michael Snyder <msnyder@redhat.com>
2013
2014 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
2015 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
2016 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
2017 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
2018 Don't bail if return_pc is PC_IN_CALL_DUMMY.
2019 Add a temp variable to save a call (and a memory read).
2020 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
2021 if possible (so that PC_IN_CALL_DUMMY will work).
2022
9bc1edb8
CV
20232002-05-22 Corinna Vinschen <vinschen@redhat.com>
2024
2025 * MAINTAINERS: Remove status `OBSOLETE' from v850.
2026
005ef3d2
ML
20272002-05-22 Michal Ludvig <mludvig@suse.cz>
2028
2029 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
2030 fde->cie_ptr.
2031 (dwarf2_build_frame_info): Corrected handling of eh_frame.
2032 (dwarf2_build_frame_info): Add offset to fde->initial_location
2033 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
2034 (execute_stack_op): Change type of 'result' from ULONGEST to
2035 CORE_ADDR.
005ef3d2 2036
fcf4f891
JT
20372002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2038
2039 * config/alpha/tm-nbsd.h: Include solib.h.
2040
cfef91e4
JT
20412002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2042
2043 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
2044 assumptions about the host's byte order.
2045
9964235a
JT
20462002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2047
2048 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
2049 to dependency list.
2050 * alphanbsd-tdep.c: Include solib-svr4.h.
2051 * shnbsd-tdep.c: Ditto.
2052
9eeef8ef
JT
20532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
2054
2055 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
2056 nbsd-tdep.h to dependency list.
2057 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
2058 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
2059 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
2060 nbsdaout.mh and nbsdelf.mh consistently.
2061 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
2062 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
2063 nbsdaout.mt and nbsdelf.mh consistently.
2064 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
2065 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
2066 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2067 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
2068 a.out shared library stuff from here...
2069 * config/nm-nbsdaout.h: ...to here.
2070 * config/tm-nbsd.h: Remove.
2071 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
2072 * config/arm/nbsd.mh: Remove.
2073 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
2074 nbsd-tdep.o.
2075 * config/arm/nbsdaout.mh: New file.
2076 * config/arm/nbsdelf.mh: New file.
2077 * config/arm/nm-nbsdaout.h: New file.
2078 * config/i386/nbsd.mh: Remove.
2079 * config/i386/nbsd.mt: Remove.
2080 * config/i386/nbsdaout.mh: New file.
2081 * config/i386/nbsdaout.mt: New file.
2082 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2083 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
2084 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
2085 i386_register_u_addr): Remove.
2086 * config/i386/nm-nbsdaout.h: New file.
2087 * config/i386/nm-nbsdelf.h: Remove.
2088 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
2089 (USE_STRUCT_CONVENTION): Remove.
2090 * config/i386/tm-nbsdaout.h: New file.
2091 * config/i386/tm-nbsdelf.h: Remove.
2092 * config/m68k/nbsd.mh: Remove.
2093 * config/m68k/nbsd.mt: Remove.
2094 * config/m68k/nbsdaout.mh: New file.
2095 * config/m68k/nbsdaout.mt: New file.
2096 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
2097 * config/m68k/nm-nbsdaout.h: New file.
2098 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2099 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2100 * config/ns32k/nbsd.mh: Remove.
2101 * config/ns32k/nbsd.mt: Remove.
2102 * config/ns32k/nbsdaout.mh: New file.
2103 * config/ns32k/nbsdaout.mt: New file.
2104 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
2105 * config/ns32k/nm-nbsdaout.h: New file.
2106 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
2107 (IN_SOLIB_CALL_TRAMPOLINE): Define.
2108 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
2109 (SVR4_SHARED_LIBS): Remove.
2110 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
2111 * config/sparc/nbsd.mh: Remove.
2112 * config/sparc/nbsd.mt: Remove.
2113 * config/sparc/nbsdaout.mh: New file.
2114 * config/sparc/nbsdaout.mt: New file.
2115 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
2116 * config/sparc/nbsdelf.mt: New file.
2117 * config/sparc/nm-nbsdaout.h: New file.
2118 * config/sparc/nm-nbsdelf.h: Remove.
2119 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
2120 * config/sparc/tm-nbsdaout.h: New file.
2121
257ce470
JT
21222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2123
2124 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
2125 mipsnbsd-tdep.c
2126 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
2127
76a6d5fe
JT
21282002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2129
2130 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
2131 shnbsd-nat.c.
2132 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
2133
45888261
JT
21342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2135
2136 * NEWS: Note new MIPS NetBSD native configuration.
2137 * configure.host (mips*-*-netbsd*): New host.
2138 * configure.tgt (mips*-*-netbsd*): New target.
2139 * mipsnbsd-nat.c: New file.
2140 * mipsnbsd-tdep.c: New file.
2141 * mipsnbsd-tdep.h: New file.
2142 * config/mips/nbsd.mh: New file.
2143 * config/mips/nbsd.mt: New file.
2144 * config/mips/nm-nbsd.h: New file.
2145 * config/mips/tm-nbsd.h: New file.
2146
70f80edf
JT
21472002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
2148
2149 * Makefile.in (SFILES): Add osabi.c.
2150 (COMMON_OBS): Add osabi.o.
2151 (osabi.o): New dependency list.
2152 * osabi.c: New file.
2153 * osabi.h: New file.
2154 * doc/gdbint.texinfo: Document new generic OS ABI framework.
2155
2156 * Makefile.in (alpha_tdep_h): Define and use instead of
2157 alpha-tdep.h.
2158 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
2159 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
2160 Remove.
2161 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
2162 * alpha-tdep.h: Include osabi.h.
2163 (alpha_abi): Remove.
2164 (gdbarch_tdep): Use generic OS ABI framework.
2165 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
2166 gdbarch_register_osabi.
2167 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
2168 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
2169 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
2170
2171 * Makefile.in (sh_tdep_h): Add osabi.h.
2172 * sh-tdep.h (sh_osabi): Remove.
2173 (gdbarch_tdep): Use generic OS ABI framework.
2174 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
2175 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
2176 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
2177 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
2178
2179 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
2180 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
2181 gdbarch_register_osabi.
2182 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
2183 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
2184 (get_elfosabi): Rename to...
2185 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
2186 ABI framework support routines.
2187 (arm_gdbarch_init): Use generic OS ABI framework.
2188 (arm_dump_tdep): Likewise.
2189 (_initialize_arm_tdep): Likewise.
2190 * arm-tdep.h: Include osabi.h.
2191 (arm_abi): Remove.
2192 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
2193 osabi member.
2194 (arm_gdbarch_register_os_abi): Remove prototype.
2195 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
2196 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
2197
2198 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
2199 * mips-tdep.c: Include osabi.h.
2200 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
2201 OS ABI framework.
2202
d194345b
KH
22032002-05-20 Kazu Hirata <kazu@cs.umass.edu>
2204
2205 * h8300-tdep.c: Fix formatting.
2206
70c6b0d1
EZ
22072002-05-20 Elena Zannoni <ezannoni@redhat.com>
2208
2209 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
2210 printing vector registers.
2211
165b8e33
AC
22122002-05-19 Andrew Cagney <ac131313@redhat.com>
2213
2214 From Fernando Nasser:
2215 * remote.c (remote_async_open_1): Re-throw the exception when the
2216 connection fails.
2217 (remote_cisco_open): Ditto.
2218 (remote_open_1): Ditto.
2219
36918e70
AC
22202002-05-19 Andrew Cagney <ac131313@redhat.com>
2221
2222 * remote.c (remote_start_remote_dummy): Add uiout parameter.
2223 (remote_start_remote): Add uiout parameter. Pass through to
2224 remote_start_remote_dummy.
2225 (remote_open_1): Use catch_exception instead of catch_errors.
2226 (remote_async_open_1): Ditto.
2227 (remote_cisco_open): Ditto.
2228
ae44c0c4
AC
22292002-05-19 Andrew Cagney <ac131313@redhat.com>
2230
2231 * remote.c (remote_start_remote): Replace PTR with void pointer.
2232 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
2233 static.
2234
8efe637d
AC
22352002-05-18 Andrew Cagney <ac131313@redhat.com>
2236
2237 * gdb_indent.sh: Allow the script to be run in the sim directory.
2238
2f1b5984
MK
22392002-05-18 Mark Kettenis <kettenis@gnu.org>
2240
f0f625e2
MK
2241 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
2242 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
2243
2f1b5984
MK
2244 * corelow.c (core_open): Only call set_gdbarch_from_file if
2245 exec_bfd is NULL.
2246
fc974602
AV
22472002-05-17 Andrey Volkov <avolkov@transas.com>
2248
2249 * h8300-tdep.c: Add support of EXR register
2250 * config/h8300/tm-h8300.h: Ditto.
2251
906709f4
AV
22522002-05-17 Andrey Volkov <avolkov@transas.com>
2253
2254 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
2255
6e591d68
AV
22562002-05-17 Andrey Volkov <avolkov@transas.com>
2257
2258 * h8300-tdep.c: Change literal regnums to REGNO.
2259
84f0252a
JB
22602002-05-17 Jim Blandy <jimb@redhat.com>
2261
e0e9281e
JB
2262 * NEWS: Note addition of macro support.
2263
84f0252a
JB
2264 Expand preprocessor macros in C expressions.
2265 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
2266 (scan_macro_expansion, scanning_macro_expansion,
2267 finished_macro_expansion): New function declarations.
2268 (expression_macro_lookup_func, expression_macro_lookup_baton): New
2269 variable declarations.
2270 * parser-defs.h (expression_context_pc): New declaration.
2271 * parse.c (expression_context_pc): New variable.
2272 (parse_exp_1): Set expression_context_pc, as well as
2273 expression_context_block.
2274 * c-exp.y (yylex): If we're not already reading the result of a
2275 macro expansion, try to macro-expand the next token. When we're
2276 done scanning a macro expansion, switch back to the mainline text.
2277 Commas and `if's in a macro's expansion don't terminate the input.
2278 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
2279 (macro_original_text, macro_expanded_text,
2280 expression_macro_lookup_func, expression_macro_lookup_baton): New
2281 variables.
2282 (scan_macro_expansion, scanning_macro_expansion,
2283 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
2284 c_preprocess_and_parse): New functions.
2285 (c_language_defn, cplus_language_defn, asm_language_defn): Call
2286 c_preprocess_and_parse, instead of c_parse.
2287 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
2288 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
2289
1c509ca8
JR
2290Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
2291
2292 * sh-tdep.c (gdb_print_insn_sh64): Delete.
2293 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
2294 (sh_gdbarch_init): Always use gdb_print_insn_sh.
2295
2250ee0c
CV
22962002-05-17 Corinna Vinschen <vinschen@redhat.com>
2297
2298 * NEWS: Add section for multi-arched targets. Add v850 to that section.
2299
ab3b8126
JT
23002002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
2301
2302 * Makefile.in (sh_tdep_h): Define and use.
2303 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
2304 register enum): Move to...
2305 * * sh-tdep.h: ...here.
2306 * sh-tdep.c: Include sh-tdep.h.
2307 * sh3-rom.c: Likewise.
2308 * shnbsd-tdep.c: Likewise.
2309
ed9d4749
MS
23102002-05-16 Michael Snyder <msnyder@redhat.com>
2311
2312 * arm-tdep.c: Spelling fix in comment.
2313
2e276125
JB
23142002-05-16 Jim Blandy <jimb@redhat.com>
2315
6821892e
JB
2316 Add commands for manually expanding macros and showing their
2317 definitions.
2318 * macrocmd.c, macroscope.c, macroscope.h: New files.
2319 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
2320 (macroscope_h): New variable.
2321 (HFILES_NO_SRCDIR): Add macroscope.h.
2322 (COMMON_OBS): Add macrocmd.o, macroscope.o.
2323 (macroscope.o, macrocmd.o): New rules.
2324
2e276125
JB
2325 Teach the Dwarf 2 reader to read macro information.
2326 * dwarf2read.c: #include "macrotab.h".
2327 (dwarf_macinfo_buffer): New variable.
2328 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
2329 dwarf_macinfo_size.
2330 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
2331 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
2332 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
2333 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
2334 dwarf2_macro_spaces_in_definition): New complaints.
2335 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
2336 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
2337 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
2338 the partial symbol table.
2339 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
2340 from what's recorded in the partial symbol table.
2341 (read_file_scope): If the compilation unit has a
2342 `DW_AT_macro_info' attribute, read its macro information.
2343 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
2344
2f53fe6c
DJ
23452002-05-16 Daniel Jacobowitz <drow@mvista.com>
2346
2347 Fix PR gdb/546
2348 * ser-tcp.c: Don't include <netinet/udp.h>.
2349
2be99286
SC
23502002-05-16 Stephane Carrez <stcarrez@nerim.fr>
2351
2352 * MAINTAINERS: Update my email address.
2353
c9af212b 23542002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
2355
2356 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
2357 include file of the same name.
2358
bf5f1a52
CV
23592002-05-16 Corinna Vinschen <vinschen@redhat.com>
2360
2361 * configure.tgt: Mark v850 as multi-arched.
2362 * config/v850/tm-v850.h: Remove file.
2363 * config/v850/v850.mt: Eliminate TM_FILE.
2364
435e042a
CV
23652002-05-16 Corinna Vinschen <vinschen@redhat.com>
2366
2367 * v850-tdep.c: Full multi-arch.
2368 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
2369 Define GDB_MULTI_ARCH to 2.
2370
9819c6c8
PM
23712002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
2372
2373 * p-exp.y (current_type): New static variable.
2374 Carries the type of the expression at the position that is parsed.
2375 (push_current_type, pop_current_type): Two new functions. Used
2376 to store/restore current_type in expression on specific tokens.
c9af212b
RE
2377 (search_field): New static variable. Set to one after parsing a point
2378 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
2379 (FIELDNAME): New token. After a point only a token belonging to
2380 current_type type definition is allowed.
2381 (all over token rules): reset and change current_type according
2382 to rules.
2383 (exp '[' rule): insert implicit array index field if
2384 exp is a pascal string type.
2385
3a06899a
CV
23862002-05-16 Corinna Vinschen <vinschen@redhat.com>
2387
2388 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
2389 frame info. Use frame_info's saved_regs instead of matching member
2390 in extra_frame_info throughout.
2391 (v850_frame_init_saved_regs): New function.
2392 (v850_init_extra_frame_info): Move most functionality into
2393 v850_frame_init_saved_regs().
2394 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
2395 (v850_frame_find_saved_regs): Remove declaration.
2396 (FRAME_FIND_SAVED_REGS): Remove definition.
2397 (v850_frame_init_saved_regs): Add declaration.
2398 (FRAME_INIT_SAVED_REGS): Add definition.
2399
6ed14b0e
CV
24002002-05-16 Corinna Vinschen <vinschen@redhat.com>
2401
2402 * v850-tdep.c: Begin multi-arch'ing v850.
2403 (v850_target_architecture_hook): Remove function.
2404 (v850_gdbarch_init): New function. Add code previously in
2405 v850_target_architecture_hook().
2406 (_initialize_v850_tdep): Don't set target_architecture_hook.
2407 Call register_gdbarch_init() instead.
2408
42725910
DJ
24092002-05-16 Daniel Jacobowitz <drow@mvista.com>
2410
2411 * gdbtypes.h (struct cplus_struct_type): Remove args field.
2412 * hpread.c (hpread_read_struct_type): Remove assignments to args.
2413 (fixup_class_method_type): Likewise.
2414
0bc68c49
DJ
24152002-05-15 Daniel Jacobowitz <drow@mvista.com>
2416
2417 From Martin Pool <mbp@samba.org>:
2418 * gdbserver/server.c (gdbserver_usage): New function.
2419 (main): Call it.
2420
99d9066e
JB
24212002-05-15 Jim Blandy <jimb@redhat.com>
2422
2423 Add macro structures to GDB's symbol tables. Nobody puts anything
2424 in them yet.
2425 * symtab.h (struct symtab): New member: `macro_table'.
2426 * buildsym.h (pending_macros): New global variable.
2427 * buildsym.c: #include "macrotab.h".
2428 (buildsym_init): Initialize `pending_macros'.
2429 (end_symtab): If we found macro information while reading a CU's
2430 debugging info, do build a symtab structure for it. Make the
2431 symtab point to the macro information, and clear the
2432 `pending_macros' pointer which held it while we were reading the
2433 debug info.
2434 (really_free_pendings): Free any pending macro table.
2435 * objfiles.h (struct objfile): New member: `macro_cache'.
2436 * objfiles.c (allocate_objfile): Set allocate and free functions
2437 for the macro cache's objstack.
2438 (free_objfile): Empty the macro cache's obstack.
2439 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
2440 set new allocate and free functions for it.
2441 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
2442 free functions for the macro cache's objstack. (Why is this
2443 function building its own objfile?)
2444 * symmisc.c (print_objfile_statistics): Print statistics on the
2445 macro bcache.
2446 * Makefile.in: Note that buildsym.o depends on macrotab.h.
2447
c899585b
RE
24482002-05-15 Richard Earnshaw <rearnsha@arm.com>
2449
2450 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
2451 (REGISTER_U_ADDR): Delete definition.
2452 (arm_register_u_addr): Delete declaration.
2453
a6cdd8c5
RE
24542002-05-15 Richard Earnshaw <rearnsha@arm.com>
2455
2456 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
2457 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
2458
fd3a5ca1
DJ
24592002-05-14 Daniel Jacobowitz <drow@mvista.com>
2460
2461 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
2462 stop_at -> stop_pc.
2463
c97dcfc7
AC
24642002-05-14 Andrew Cagney <ac131313@redhat.com>
2465
2466 * regcache.c (register_valid): Revise comments refering to "Not
2467 available" and "unavailable".
2468 * frame.c (frame_register_read): Ditto.
2469 * findvar.c (value_of_register): Ditto.
2470
93021b7d
AC
24712002-05-15 Andrew Cagney <cagney@redhat.com>
2472
2473 * Makefile.in (remote_sim_h): Replace remote-sim_h.
2474 (remote-sim.o): Update dependencies.
2475 (d10v-tdep.o): Specify dependencies.
2476 (sim_d10v_h): Define.
2477
a86bc61c
JB
24782002-05-14 Jim Blandy <jimb@redhat.com>
2479
2480 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
2481 * macrotab.c (macro_lookup_inclusion, find_definition,
2482 new_macro_table): Same.
2483
2484 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
2485 not `! strcmp ()'. This is a dubious improvement.
2486 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
2487
2488 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
2489 although it's not necessary, to avoid a warning.
2490
2fdde8f8
DJ
24912002-05-14 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
2494 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
2495 TYPE_INSTANCE_FLAGS.
2496 (struct main_type): New.
2497 (struct type): Move most members to struct main_type. Change
2498 cv_type and as_type to new type_chain member. Add instance_flags.
2499 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
2500 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
2501 (finish_cv_type): Remove prototype.
2502 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
2503 Set TYPE_CHAIN.
2504 (alloc_type_instance): New function.
2505 (smash_type): New function.
2506 (make_pointer_type, make_reference_type, make_function_type)
2507 (smash_to_member_type, smash_to_method_type): Call smash_type.
2508 (make_qualified_type): New function.
2509 (make_type_with_address_space): Call make_qualified_type.
2510 (make_cv_type): Likewise.
2511 (finish_cv_type): Remove unnecessary function.
2512 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
2513 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
2514 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
2515 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
2516 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
2517 * hpread.c (hpread_read_struct_type): Likewise.
2518 * stabsread.c (read_struct_type): Likewise.
2519
843fedf4
EZ
25202002-05-14 Elena Zannoni <ezannoni@redhat.com>
2521
2522 * configure.tgt: Add a catch all sh* target, for cases like
2523 sh[2,3,4]-elf and sh-hms.
2524
05a6c72c
KS
25252002-05-14 Keith Seitz <keiths@redhat.com>
2526
2527 * event-loop.c (create_file_handler): Don't do anything but
2528 update data when we are given a fd which we are already
2529 monitoring.
2530
5d085aaf
ML
25312002-05-14 Michal Ludvig <mludvig@suse.cz>
2532
2533 * dwarf2cfi.c (context_cpy): Copy registers correctly.
2534 (update_context): Use __func__ in warnings.
2535
9db8d71f
DJ
25362002-05-14 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
2539 and tcp_close to net_open and net_close.
2540 (net_open): Accept "udp:" and "tcp:" specifications. Connect
2541 using UDP if requested. Don't try to disable Nagle on UDP
2542 sockets.
2543 * remote.c (remote_serial_open): New function. Warn about UDP.
2544 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
2545
5dbc6baa
EZ
25462002-05-13 Elena Zannoni <ezannoni@redhat.com>
2547
2548 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
2549
cc3023f7
EZ
25502002-05-13 Elena Zannoni <ezannoni@redhat.com>
2551
2552 * configure.tgt: Remove sh-hms target.
2553 * MAINTAINERS: Don't list sh-hms as a separate target.
2554
ec2bcbe7
JB
25552002-05-13 Jim Blandy <jimb@redhat.com>
2556
2557 Add first preprocessor macro-expansion files.
2558 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2559 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2560 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2561 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2562 (COMMON_OBS): Add macrotab.o, macroexp.o.
2563 (macroexp.o, macrotab.o): New rules.
2564
6d531722
AC
25652002-05-13 Andrew Cagney <ac131313@redhat.com>
2566
2567 * config/m88k/tm-m88k.h: Update copyright.
2568 (m88k_target_write_pc): Declare
2569 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
2570 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
2571 (SHIFT_INST_REGS): Update definition.
2572 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
2573 using old definition of TARGET_WRITE_PC.
2574 * regcache.c (generic_target_write_pc): Delete code handling
2575 NNPC_REGNUM.
2576 * gdbarch.sh (NNPC_REGNUM): Delete.
2577 * gdbarch.h, gdbarch.c: Regenerate.
2578
3e3f2739
RE
25792002-05-13 Richard Earnshaw <rearnsha@arm.com>
2580
2581 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
2582 builtin reg number.
2583
0004e5a2
DJ
25842002-05-13 Daniel Jacobowitz <drow@mvista.com>
2585
2586 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
2587 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
2588 (gen_address_of, gen_struct_ref, gen_repeat): Use type
2589 access macros.
2590 * c-typeprint.c (cp_type_print_method_args): Likewise.
2591 (c_type_print_args): Likewise.
2592 * d10v-tdep.c (d10v_push_arguments): Likewise.
2593 (d10v_extract_return_value): Likewise.
2594 * expprint.c (print_subexp): Likewise.
2595 * gdbtypes.c (lookup_primitive_typename): Likewise.
2596 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
2597 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
2598 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
2599 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
2600 (TYPE_VECTOR): Likewise.
2601 * hpread.c (hpread_read_struct_type)
2602 (fix_static_member_physnames, fixup_class_method_type)
2603 (hpread_type_lookup): Likewise.
2604 * mdebugread.c (parse_symbol, parse_type): Likewise.
2605 * p-lang.c (is_pascal_string_type): Likewise.
2606 * valops.c (hand_function_call): Likewise.
2607 * x86-64-tdep.c (classify_argument): Likewise.
2608
2609 * hpread.c (hpread_read_function_type)
2610 (hpread_read_doc_function_type): Call replace_type.
2611 * dstread.c (create_new_type): Delete.
2612 (decode_dst_structure, process_dst_function): Call alloc_type.
2613 Use type access macros.
2614
dff95cc7
MK
26152002-05-12 Mark Kettenis <kettenis@gnu.org>
2616
2617 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
2618 the're not supported by the current architecture.
2619 (i387_fill_fxsave): Likewise.
2620
bbcd32ad
FF
26212002-05-12 Fred Fish <fnf@redhat.com>
2622
2623 * symfile.c (default_symfile_offsets): Arrange for uninitialized
2624 sect_index_xxx members to index the first slot in section_offsets
2625 if all of the section_offsets are zero.
2626
89cf4787
MK
26272002-05-12 Mark Kettenis <kettenis@gnu.org>
2628
2629 * configure.tgt (sparc-*openbsd): Remove entry accidentially
2630 checked in with last change.
2631
1f77ffc5
MK
26322002-05-12 Mark Kettenis <kettenis@gnu.org>
2633
2634 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
2635 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
2636 config.sub.
2637
89b8b4a9
DJ
26382002-05-12 Daniel Jacobowitz <drow@mvista.com>
2639
2640 * Makefile.in: Update dependencies.
2641
14a5e767
AC
26422002-05-11 Andrew Cagney <ac131313@redhat.com>
2643
2644 * language.c (local_hex_string_custom): Simplify. Do not depend
2645 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
2646
2647 * memattr.c (mem_info_command): Replace calls to
2648 longest_local_hex_string and longest_local_hex_string_custom.
2649 * buildsym.c (make_blockvector): Ditto.
2650 * solib.c (info_sharedlibrary_command): Ditto.
2651 * tracepoint.c (tracepoints_info): Ditto.
2652 * symtab.c (print_msymbol_info): Ditto.
2653
2654 * language.c (local_hex_string): Delete.
2655 (local_hex_string_custom): Delete.
2656 (longest_local_hex_string): Rename to local_hex_string.
2657 (longest_local_hex_string_custom): Rename to
2658 local_hex_string_custom.
2659 * language.h (local_hex_string): Change parameter type to LONGEST.
2660 (local_hex_string_custom): Ditto.
2661 (longest_local_hex_string): Delete declaration.
2662 (longest_local_hex_string_custom): Ditto.
2663
2664 * solib.c: Update copyright.
2665 * memattr.c: Update copyright.
2666
13d01224
AC
26672002-05-11 Andrew Cagney <ac131313@redhat.com>
2668
2669 * arch-utils.h (legacy_register_to_value): Declare.
2670 (legacy_value_to_register): Declare.
2671 (legacy_convert_register_p): Declare.
2672 * arch-utils.c (legacy_register_to_value): New function.
2673 (legacy_value_to_register): New function.
2674 (legacy_convert_register_p): New function.
2675
2676 * gdbarch.sh (REGISTER_TO_VALUE): Define.
2677 (VALUE_TO_REGISTER): Define.
2678 (CONVERT_REGISTER_P): Define.
2679 * gdbarch.h, gdbarch.c: Regenerate.
2680
2681 * valops.c (value_assign): Use CONVERT_REGISTER_P and
2682 VALUE_TO_REGISTER.
2683 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
2684 CONVERT_REGISTER_P.
2685
4a1970e4
DJ
26862005-05-11 Daniel Jacobowitz <drow@mvista.com>
2687 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2688
2689 * Makefile.in: Update dependencies for valops.c.
2690 * valops.c: Include "gdb_assert.h".
2691 (typecmp): Skip THIS parameter to methods.
2692 (find_method_list): Remove static_memfuncp argument,
2693 update callers. Check for stub methods.
2694 (find_value_oload_method_list): Don't set *static_memfuncp.
2695 (find_overload_match): Don't check for stub methods. Assert
2696 that methods are not stubbed. Handle static methods.
2697 (value_find_oload_method_list): Remove static_memfuncp argument.
2698 * gdbtypes.c (check_stub_method): Do not add THIS pointer
2699 to the argument list for static stub methods.
2700 * value.h (value_find_oload_method_list): Update prototype.
2701
b2e75d78
AC
27022002-05-11 Andrew Cagney <ac131313@redhat.com>
2703
2704 * arch-utils.h (generic_register_size): Declare.
2705 (generic_register_raw_size, generic_register_virtual_size): Delete
2706 declarations.
2707 * arch-utils.c (generic_register_raw_size): Delete.
2708 (generic_register_size): New function.
2709 (generic_register_virtual_size): Delete.
2710
2711 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
2712 default generic_register_size.
2713 * gdbarch.h, gdbarch.c: Re-generate.
2714
2715 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
2716 register_virtual_size.
2717 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2718 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2719
451fbdda
AC
27202002-05-11 Andrew Cagney <ac131313@redhat.com>
2721
2722 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
2723 * gdbarch.h, gdbarch.c: Regenerate.
2724 * gnu-v3-abi.c: Update copyright.
2725 (vtable_address_point_offset): Update.
2726 (gnuv3_rtti_type): Update.
2727 (gnuv3_baseclass_offset): Update.
2728 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
2729 (init_fetch_link_map_offsets): Update.
2730 * remote.c (get_remote_state): Update.
2731
6d2f5cea
DJ
27322002-05-11 Daniel Jacobowitz <drow@mvista.com>
2733
2734 * TODO: Remove value_headof/value_from_vtable_info comment.
2735 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
2736 * values.c (value_headof, value_from_vtable_info): Delete.
2737 * value.h (value_from_vtable_info): Delete prototype.
2738
d2324da4
AC
27392002-05-11 Andrew Cagney <ac131313@redhat.com>
2740
2741 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
2742 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
2743 $(gdb_regex_h).
2744 (gdb_assert_h): Define.
2745 (gdb_wait_h): Define.
2746 (gdb_regex_h): Define.
2747
5c717440
DJ
27482002-05-11 Daniel Jacobowitz <drow@mvista.com>
2749
2750 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2751 * linespec.c (find_methods): Handle GCC 3.x template constructors.
2752
6c7861b3
JT
27532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2754
2755 * nbsd-tdep.c: Fix comment.
2756
ea5bc2a6
JT
27572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2758
2759 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
2760 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
2761 (nbsd-tdep.o): New dependency list.
2762 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
2763 nbsd-tdep.h.
2764 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
2765 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
2766 * nbsd-tdep.c: New file.
2767 * nbsd-tdep.h: New file.
2768 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
2769 nbsd-tdep.h.
2770 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
2771 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2772 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2773 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2774
b28da865
JT
27752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2776
2777 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
2778 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
2779 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
2780 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
2781 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
2782 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
2783
4b8ff1fa
JT
27842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2785
2786 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
2787 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2788 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2789 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2790 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
2791 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2792 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
2793
dfe6eb1f
JT
27942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2795
2796 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
2797 fetch_elfcore_registers to...
2798 * i386nbsd-tdep.c: ...here.
2799 (i386nbsd_use_struct_convention): Rename to...
2800 (i386nbsd_aout_use_struct_convention): ...this.
2801 (i386nbsd_supply_reg): New function.
2802 (i386nbsd_fill_reg): New function.
2803 (fetch_core_registers): Use i386nbsd_supply_reg.
2804 (fetch_elfcore_registers): Likewise.
2805 (_initialize_i386nbsd_tdep): New function.
2806 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
2807 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2808 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
2809 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
2810 (i386nbsd_aout_use_struct_convention): ...this.
2811
20cb8cda
JT
28122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2813
2814 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
2815 (store_inferior_registers): Use shnbsd_fill_reg.
2816 * shnbsd-tdep.c (sh_nbsd_supply_registers,
2817 sh_nbsd_supply_register): Collapse into...
2818 (shnbsd_supply_reg): ...this.
2819 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
2820 (shnbsd_fill_reg): ...this.
2821 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
2822 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
2823 (fetch_core_registers): Use shnbsd_supply_reg.
2824 (fetch_elfcore_registers): Use shnbsd_supply_reg.
2825 (sh_nbsd_core_fns): Rename to...
2826 (shnbsd_core_fns): ...this.
2827 (sh_nbsd_elfcore_fns): Rename to...
2828 (shnbsd_elfcore_fns): ...this.
2829 (sh_nbsd_init_abi): Rename to...
2830 (shnbsd_init_abi): ...this.
2831 (_initialize_sh_nbsd_tdep): Rename to...
2832 (_initialize_shnbsd_tdep): ...this.
2833 * shnbsd-tdep.h (sh_nbsd_supply_registers,
2834 sh_nbsd_supply_register, sh_nbsd_fill_registers,
2835 sh_nbsd_fill_register): Remove prototypes.
2836 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
2837
e750d25e
JT
28382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2839
2840 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
2841 (i387-nat.o): Delete dependency list.
2842 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
2843 (x86-64-linux-nat.o): Likewise.
2844 * i387-nat.c: Delete file, moving contents to...
2845 * i387-tdep.c: ...here.
2846 * i387-nat.h: Rename...
2847 * i387-tdep.h: ...to this.
2848 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
2849 * i386-linux-nat.c: Likewise.
2850 * i386bsd-nat.c: Likewise.
2851 * i386gnu-nat.c: Likewise.
2852 * i386nbsd-nat.c: Likewise.
2853 * i386v4-nat.c: Likewise.
2854 * x86-64-linux-nat.c: Likewise.
2855 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
2856 * config/i386/go32.mh (NATDEPFILES): Likewise.
2857 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
2858 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
2859 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
2860 * config/i386/linux.mh (NATDEPFILES): Likewise.
2861 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
2862 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2863 * config/i386/obsd.mh (NATDEPFILES): Likewise.
2864 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2865
1aee598a
JT
28662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2867
2868 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
2869 (alphanbsd-nat.o): Remove dependency list.
2870 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
2871 * alphanbsd-nat.c: Delete. Contents moved to...
2872 * alphanbsd-tdep.c: ...here.
2873 (_initialize_alphanbsd_tdep): Register core functions.
2874 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
2875
12bcb0fe
JT
28762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
2877
2878 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
2879 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
2880 (alphanbsd-nat.o): Likewise.
2881 (alphabsd-tdep.o): New dependency list.
2882 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
2883 (fill_gregset): Use alphabsd_fill_reg.
2884 (supply_fpregset): Use alphabsd_supply_fpreg.
2885 (fill_fpregset): Use alphabsd_fill_fpreg.
2886 (fetch_inferior_registers): Use struct reg and struct fpreg
2887 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
2888 and alphabsd_supply_fpreg.
2889 (store_inferior_registers): Use struct reg and struct fpreg
2890 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
2891 and alphabsd_fill_fpreg.
2892 * alphabsd-tdep.c: New file.
2893 * alphabsd-tdep.h: New file.
2894 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2895 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2896 alphabsd_supply_fpreg.
2897 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2898 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2899
361d1df0
EC
29002002-05-11 Eric Christopher <echristo@redhat.com>
2901
2902 * mips-tdep.c (mips_double_register_type): Fix thinko.
2903 (mips_single_register_type): Ditto.
2904 * MAINTAINERS: Add self.
2905
92dd7cee
MK
29062002-05-11 Mark Kettenis <kettenis@gnu.org>
2907
2908 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2909 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2910 right thing on architectures with different endianness and/or
2911 integer sizes.
2912
e27da16d
JT
29132002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2914
2915 From Christian Limpach <chris@Pin.LU>
2916 * configure.in: Change sed expression which comments out
2917 NATDEPFILES to also comment out continuation lines.
2918 * configure: Regenerate.
2919
ddde02bd
EZ
29202002-05-10 Elena Zannoni <ezannoni@redhat.com>
2921
2922 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2923 big patch.
2924
1c922164
EZ
29252002-05-10 Elena Zannoni <ezannoni@redhat.com>
2926
2927 * sh-tdep.c: Include correct file.
2928
283150cd
EZ
29292002-05-10 Elena Zannoni <ezannoni@redhat.com>
2930
2931 New support for sh64-elf (sh5) target.
2932
2933 * configure.tgt: For sh64-elf target, default to sh-elf.
2934
2935 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2936 (struct gdbarch_tdep): Add new fields for new registers and ABI
2937 info.
361d1df0 2938
283150cd
EZ
2939 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2940 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2941 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2942 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2943 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2944 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2945 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2946 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2947 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2948 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2949 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2950 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2951 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2952 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2953 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2954 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2955 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2956 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2957 sign_extend, sh64_nofp_frame_init_saved_regs,
2958 sh64_init_extra_frame_info, sh64_get_saved_register,
2959 sh64_extract_struct_value_address, sh64_pop_frame,
2960 sh64_push_arguments, sh64_extract_return_value,
2961 sh64_store_return_value, sh64_show_media_regs,
2962 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2963 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2964 sh_sh64_register_virtual_type,
2965 sh_sh64_register_convert_to_virtual,
2966 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2967 sh64_register_read, sh64_pseudo_register_write,
2968 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2969 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2970 sh64_do_pseudo_register, sh_compact_do_registers_info,
2971 sh64_do_registers_info, sh_gdbarch_init): New functions.
2972
3117ed25
EZ
29732002-05-10 Elena Zannoni <ezannoni@redhat.com>
2974
2975 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2976
2654e6d4
DJ
29772002-05-10 Daniel Jacobowitz <drow@mvista.com>
2978
2979 * linespec.c (decode_line_1): Check for a double quote after
2980 a filename correctly.
2981
9ab3e532
JB
29822002-05-10 Jim Blandy <jimb@redhat.com>
2983
2984 Properly track the size of the current objfile's .debug_line section.
2985 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2986 (DWARF_LINE_SIZE): New macro.
2987 (dwarf2_build_psymtabs_hard): Record the line section's size in
2988 the partial symbol table.
2989 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2990 symbol table.
2991
126fa72d
PS
29922002-05-10 Petr Sorfa <petrs@caldera.com>
2993
2994 * ia64-tdep.c: Handle breakpoints on L instruction type
2995 in MLX instruction bundle by moving the breakpoint to
2996 the third slot (X instruction type) as L holds only data.
2997
1f077a3e
KB
29982002-05-10 Kevin Buettner <kevinb@redhat.com>
2999
3000 * dbxread.c (discarding_local_symbols_complaint): New complaint.
3001 (process_one_symbol): Complain about discarding local symbols
3002 due to a misplaced N_LBRAC entry.
3003
8120c9d5 30042002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
3005
3006 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
3007 * linespec.c (find_toplevel_char): '<' and '>' also increase and
3008 decrease the depth we are at, in the case of templates.
361d1df0 3009
67b2c998
DJ
30102002-05-09 Daniel Jacobowitz <drow@mvista.com>
3011
3012 * mips-tdep.c (mips_float_register_type): New function.
3013 (mips_double_register_type): New function.
3014 (mips_print_register): Use them.
3015 (do_fp_register_row): Likewise.
3016
fd326606
DJ
30172002-05-09 Daniel Jacobowitz <drow@mvista.com>
3018
6609d9af 3019 * signals/signals.c (signals): Remove conditional compilation around
fd326606 3020 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 3021 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 3022
bef35864
MS
30232002-05-09 Michael Snyder <msnyder@redhat.com>
3024
3025 * remote-rdp.c (remote_rdp_can_run): Remove.
3026
c55a3f73
TT
30272002-05-09 Tom Tromey <tromey@redhat.com>
3028
3029 * jv-valprint.c (java_val_print): Handle `char' as a special case
3030 of TYPE_CODE_INT.
3031
b8d5e71d
MS
30322002-05-09 Michael Snyder <msnyder@redhat.com>
3033
3034 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
3035 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 3036 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 3037 str r(0123),[sp,#nn].
361d1df0 3038 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
3039 order-independent by placing it in a loop.
3040
e2cd42dd
MS
30412002-05-06 Michael Snyder <msnyder@redhat.com>
3042
3043 * stabsread.c (read_type): Add recognition for new attribute:
3044 "@V;" means that an array type is actually a vector.
3045 This is analogous to the vector flag that's been added to dwarf2.
3046
3ce1502b
MK
30472002-05-09 Mark Kettenis <kettenis@gnu.org>
3048
3049 * i386-tdep.h (i386_abi): New enum.
3050 (struct gdbarch_tdep): Replace os_ident member with abi.
3051 (i386_gdbarch_register_os_abi): New prototype.
3052 * i386-tdep.c (i386_abi_names): New array.
3053 (process_note_abi_tag_sections): Removed.
3054 (process_note_sections): New function.
3055 (i386_elf_abi_from_note, i386_elf_abi): New functions.
3056 (struct i386_abi_handler): New struct.
3057 (i386_abi_handler_list): New variable.
3058 (i386_gdbarch_register_os_abi): New function.
3059 (i386_gdbarch_init): Adapt for the changes given above.
3060
084c156a
DJ
30612002-05-08 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * gregset.h: Say "GNU/Linux".
3064
6599f021
EZ
30652002-05-08 Elena Zannoni <ezannoni@redhat.com>
3066
3067 * gdbtypes.c : Add new builtin type for 64 bit vectors.
3068 (build_gdbtypes): Build builtin_type_v2_float.
3069 (_initialize_gdbtypes): Register new builtin type.
3070
40af4b0c
AC
30712002-05-08 Andrew Cagney <ac131313@redhat.com>
3072
3073 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
3074 (clear_gdbarch_swap): New function.
3075 (initialize_non_multiarch): Call.
3076 (gdbarch_update_p): Before calling init(), swap out and clear the
3077 existing architecture.
3078 * gdbarch.c: Regenerate.
3079
4fe84f46
JT
30802002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3081
3082 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
3083 alphanbsd-tdep.c.
3084
4015edd1
JT
30852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3086
3087 * sh-nbsd-nat.c: Rename to...
3088 * shnbsd-nat.c: ...this.
3089 * sh-nbsd-tdep.c: Rename to...
3090 * shnbsd-tdep.c: ...this.
3091 * sh-nbsd-tdep.h: Rename to...
3092 * shnbsd-tdep.h: ...this.
3093 * config/sh/nbsd.mh: Use shnbsd-nat.o.
3094 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
3095
0e2bd219
RE
30962002-05-08 Richard Earnshaw <rearnsha@arm.com>
3097
3098 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
3099 concatenation for command help messages.
3100
13a38d45
JT
31012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3102
3103 * NEWS: Note new sh*-*-netbsdelf* configuration.
3104 * configure.host: Set gdb_host_cpu to sh for all sh*.
3105 (sh*-*-netbsdelf*): New host.
3106 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
3107 (sh*-*-netbsdelf*): New target.
3108 * sh-nbsd-nat.c: New file.
3109 * sh-nbsd-tdep.c: New file.
3110 * sh-nbsd-tdep.h: New file.
3111 * config/sh/nbsd.mh: New file.
3112 * config/sh/nbsd.mt: New file.
3113 * config/sh/nm-nbsd.h: New file.
3114 * config/sh/tm-nbsd.h: New file.
3115
d658f924
JT
31162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
3117
3118 * sh-tdep.c (sh_osabi_names): Declare.
3119 (process_note_abi_tag_sections): New function.
3120 (get_elfosabi): Ditto.
3121 (sh_gdbarch_register_os_abi): Ditto.
3122 (sh_dump_tdep): Ditto.
3123 _initialize_sh_tdep): Use gdbarch_register to register
3124 sh_gdbarch_init and sh_dump_tdep.
3125 * config/sh/tm-sh.h (sh_osabi): Declare.
3126 (gdbarch_tdep): Add sh_osabi and osabi_name members.
3127
848cfffb
AC
31282002-05-07 Andrew Cagney <ac131313@redhat.com>
3129
3130 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
3131 (thumb_scan_prologue): Ditto.
3132 (arm_find_callers_reg): Ditto.
3133 (arm_frame_chain): Ditto.
3134 (arm_init_extra_frame_info): Ditto.
3135 (arm_frame_saved_pc): Ditto.
3136 (arm_pop_frame): Ditto.
3137 (arm_push_return_address): New function.
3138 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
3139 call_dummy_location, call_dummy_breakpoint_offset_p,
3140 call_dummy_breakpoint_offset, call_dummy_p,
3141 call_dummy_stack_adjust_p, call_dummy_words,
3142 sizeof_call_dummy_words, call_dummy_start_offset,
3143 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
3144 call_dummy_address, push_return_address and push_dummy_frame for
3145 generic dummy frames.
3146
e7d717c0
JT
31472002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3148
3149 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
3150 size computation for alloca.
3151 (sh_fp_frame_init_saved_regs): Likewise.
3152
7bbcf283
RE
31532002-05-07 Richard Earnshaw <rearnsha@arm.com>
3154
3155 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
3156 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 3157 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
3158 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
3159 * remote-rdp.c (remote_rdp_fetch_register): Use
3160 ARM_MAX_REGISTER_RAW_SIZE.
3161 (remote_rdp_store_register): Likewise.
3162
4657573b
ML
31632002-05-07 Michal Ludvig <mludvig@suse.cz>
3164
361d1df0 3165 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
3166 added default labels to switch {} statements.
3167 * x86-64-tdep.c: Ditto.
3168 * x86-64-linux-nat.c: Ditto.
3169
010f3b2f
JT
31702002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
3171
3172 * solib.h: Protect against multiple inclusion.
3173
debd256d
JB
31742002-05-06 Jim Blandy <jimb@redhat.com>
3175
9ab3e532
JB
3176 Add first preprocessor macro-expansion files.
3177 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
3178 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
3179 (splay_tree_h, macroexp_h, macrotab_h): New variable.
3180 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
3181 (COMMON_OBS): Add macrotab.o, macroexp.o.
3182 (macroexp.o, macrotab.o): New rules.
3183
debd256d
JB
3184 Separate the job of reading the line number info statement program
3185 header (...expialidocious) out into its own function.
3186 * dwarf2read.c (struct line_head, struct filenames, struct
3187 directories): Replace with...
3188 (struct line_header): New structure, containing the full
3189 contents of the statement program header, including the
3190 include directory and file name tables.
3191 (read_file_scope): If we have line number info, instead of just
3192 calling dwarf_decode_lines to do all the work, call
3193 dwarf_decode_line_header first to get a `struct line_header'
3194 containing the data in the statement program header, and then
3195 pass that to dwarf_decode_lines, which will pick up where that
3196 left off. Be sure to clean up the `struct line_header' object.
3197 (dwarf_decode_line_header, free_line_header, add_include_dir,
3198 add_file_name): New functions.
3199 (dwarf_decode_lines): Move all the code to read the statement
3200 program header into dwarf_decode_line_header. Take the line
3201 header it built as the first argument, instead of the offset to
3202 the compilation unit's line number info. Use the new `struct
3203 line_header' type instead of the old structures. No need to do
3204 cleanups here now, since we don't allocate anything.
3205 (dwarf2_statement_list_fits_in_line_number_section,
3206 dwarf2_line_header_too_long): New complaints.
3207
ac3aafc7
EZ
32082002-05-06 Elena Zannoni <ezannoni@redhat.com>
3209
3210 * gdbtypes.c (init_vector_type): New function.
3211 (build_builtin_type_vec128): Simplify the representation of SIMD
3212 registers.
3213 (build_gdbtypes): Initialize new builtin vector types.
3214 (_initialize_gdbtypes): Register new vector types with gdbarch.
3215 (builtin_type_v4_float, builtin_type_v4_int32,
3216 builtin_type_v8_int16, builtin_type_v16_int8,
3217 builtin_type_v2_int32, builtin_type_v4_int16,
3218 builtin_type_v8_int8): New (renamed) SIMD types.
3219
13e49980
MK
32202002-05-06 Mark Kettenis <kettenis@gnu.org>
3221
3222 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
3223 (i387_fill_fxsave): Likewise.
3224
997b20b8
AO
32252002-05-05 Alexandre Oliva <aoliva@redhat.com>
3226
3227 * alpha-tdep.c (alpha_extract_return_value): Don't use
3228 non-constant array size in prototype.
3229
535c96ce
AC
32302002-05-04 Andrew Cagney <ac131313@redhat.com>
3231
3232 From Brian Taylor <briant at model dot com>:
3233 * ui-out.c (ui_out_field_core_addr): Use the function
3234 longest_local_hex_string_custom'to format addresses > 32 bits
3235 wide.
3236
3237 * ui-out.c (ui_out_field_core_addr): Update comment.
3238
bedfa57b
AC
32392002-05-04 Andrew Cagney <ac131313@redhat.com>
3240
3241 * stack.c (select_and_print_frame): Make static. Delete the
3242 parameter `level'.
3243 (func_command): Update call.
3244 (select_frame_command): Delete code computing the frame level.
3245 * frame.h (select_and_print_frame): Delete declaration.
3246
f621c63e
AC
32472002-05-04 Andrew Cagney <ac131313@redhat.com>
3248
3249 * sparc-tdep.c (sparc_get_saved_register): Comment why
3250 get_prev_frame call is safe.
3251
0f7d239c
AC
32522002-05-04 Andrew Cagney <ac131313@redhat.com>
3253
3254 * frame.h (select_frame): Delete level parameter.
3255 * stack.c (select_frame): Update. Use frame_relative_level to
3256 obtain the frame's level.
3257 (select_and_print_frame): Update call.
3258 (select_frame_command): Ditto.
3259 (up_silently_base): Ditto.
3260 (down_silently_base): Ditto.
3261 * ocd.c (ocd_start_remote): Ditto.
3262 * remote-rdp.c (remote_rdp_open): Ditto.
3263 * remote-mips.c (mips_initialize): Ditto.
3264 (common_open): Ditto.
3265 * remote-e7000.c (e7000_start_remote): Ditto.
3266 * m3-nat.c (select_thread): Ditto.
3267 * hppa-tdep.c (child_get_current_exception_event): Ditto.
3268 (child_get_current_exception_event): Ditto.
3269 * varobj.c (varobj_create): Ditto.
3270 (varobj_update): Ditto.
3271 (c_value_of_root): Ditto.
3272 * tracepoint.c (finish_tfind_command): Ditto.
3273 * corelow.c (core_open): Ditto.
3274 * arch-utils.c (generic_prepare_to_proceed): Ditto.
3275 * thread.c (info_threads_command): Ditto.
3276 (switch_to_thread): Ditto.
3277 * infrun.c (normal_stop): Ditto.
3278 (restore_selected_frame): Ditto.
3279 (restore_inferior_status): Ditto.
3280 * breakpoint.c (insert_breakpoints): Ditto.
3281 (watchpoint_check): Ditto.
3282 (bpstat_stop_status): Ditto.
3283 (do_enable_breakpoint): Ditto.
3284 * blockframe.c (flush_cached_frames): Ditto.
3285 (reinit_frame_cache): Ditto.
3286
71d6c7b1
AC
32872002-05-04 Andrew Cagney <ac131313@redhat.com>
3288
3289 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
3290 maintainer.
3291
cda6c68a
JB
32922002-05-04 Jim Blandy <jimb@redhat.com>
3293
3294 * gdbtypes.c (replace_type): Doc fix.
3295
5c1c87f0
AC
32962002-05-04 Andrew Cagney <ac131313@redhat.com>
3297
3298 * valprint.c (strcat_longest): Delete commented out function.
3299 Update copyright.
3300
cd9bfe15
AC
33012002-05-04 Andrew Cagney <ac131313@redhat.com>
3302
3303 * MAINTAINERS: Mark a29k as deleted.
3304 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
3305 Move new configurations to the top.
3306 * configure.tgt: Remove a29k.
3307 * config/a29k/tm-vx29k.h: Delete.
3308 * config/a29k/vx29k.mt: Delete.
3309 * config/a29k/tm-a29k.h: Delete.
3310 * config/a29k/a29k-udi.mt: Delete.
3311 * config/a29k/a29k.mt: Delete.
3312 * a29k-tdep.c: Delete.
3313 * remote-udi.c: Delete.
3314 * remote-mm.c: Delete.
3315 * remote-eb.c: Delete.
3316 * remote-adapt.c: Delete.
3317 * Makefile.in: Remove obsolete code.
3318 * gdbserver/Makefile.in: Ditto.
3319 * config/s390/s390x.mt: Ditto.
3320 * config/s390/s390.mt: Ditto.
3321 * config/sparc/sparclynx.mh: Ditto.
3322 * config/sparc/linux.mh: Ditto.
3323 * config/pa/hppaosf.mh: Ditto.
3324 * config/pa/hppabsd.mh: Ditto.
3325 * config/ns32k/nbsd.mt: Ditto.
3326 * config/mips/vr5000.mt: Ditto.
3327 * config/m68k/sun3os4.mh: Ditto.
3328 * config/m68k/nbsd.mt: Ditto.
3329 * config/m68k/m68klynx.mh: Ditto.
3330 * config/m32r/m32r.mt: Ditto.
3331 * config/i386/x86-64linux.mt: Ditto.
3332 * config/i386/nbsdelf.mt: Ditto.
3333 * config/i386/nbsd.mt: Ditto.
3334 * config/i386/i386lynx.mh: Ditto.
3335
bf0c5130
AC
33362002-05-04 Andrew Cagney <ac131313@redhat.com>
3337
3338 * target.c (debug_print_register): New function. Handle oversize
3339 registers.
3340 (debug_to_fetch_registers): Call.
3341 (debug_to_store_registers): Call.
3342
2ae1c2d2
JB
33432002-05-03 Jim Blandy <jimb@redhat.com>
3344
13a393b0
JB
3345 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
3346 (read_type): Doc fix.
3347 * gdbtypes.c (replace_type): Doc fix.
3348
2ae1c2d2
JB
3349 * stabsread.c (multiply_defined_struct): New complaint.
3350 (read_struct_type): If the type we were passed isn't empty, or
3351 incomplete, don't read the new struct type into it; complain,
3352 and return the original type unchanged. Take a new `type_code'
3353 argument, which is the type code for the new type.
3354 (read_type): Rather than storing the type's type code here, pass
3355 it as an argument to read_struct_type, and let that take care of
3356 storing it. That way, we don't overwrite the original type code,
3357 so read_struct_type can use it to decide whether we're overwriting
3358 something we shouldn't.
3359 (complain_about_struct_wipeout): New function.
3360
8de9bdc4
AC
33612002-05-03 Andrew Cagney <ac131313@redhat.com>
3362
3363 * gdbarch.sh: Assert that gdbarch is non-NULL.
3364 * gdbarch.c: Regenerate.
3365
f773fdbb
JM
33662002-05-03 Jason Merrill <jason@redhat.com>
3367
3368 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
3369 and return NULL.
3370
0e04a514
ML
33712002-05-03 Michal Ludvig <mludvig@suse.cz>
3372
3373 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
3374 (x86_64_dwarf2gdb_regno_map_length),
3375 (x86_64_dwarf2_reg_to_regnum): Added.
3376 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
3377 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
3378 (_initialize_x86_64_tdep): Synced with the change above.
3379 (x86_64_skip_prologue): Reformulated message.
3380
065432a8
PM
33812002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3382
3383 * f-exp.y: Also use new prev_lexptr variable
3384 to improve error reporting. Based on Michael Snyder
3385 2002-04-24 dated patch to c-exp.y.
3386 * jv-exp.y: Likewise.
3387 * m2-exp.y: Likewise.
3388
a3162708
EZ
33892002-05-02 Elena Zannoni <ezannoni@redhat.com>
3390
3391 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
3392 we are dealing with vectors.
3393
03620c38
PM
33942002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3395
3396 * config/m68k/tm-nbsd.h: Obvious fix,
3397 correct machine name.
3398
6604db2e
PM
33992002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3400
3401 * p-typeprint.c (pascal_type_print_base): Add support
3402 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
3403
0906b739
PM
34042002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3405
3406 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
3407 for fondamental pascal 'char' type.
3408
e2625b33
PM
34092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
3410
3411 * p-lang.h (is_pascal_string_type): Declaration changed,
3412 new sixth argument of type char ** added.
361d1df0 3413 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
3414 changed. Args length_pos, length_size, string_pos, char_size
3415 can now be NULL. New argument arrayname set to the field
3416 name of the char array. Return value set to char array
3417 field index plus one.
361d1df0 3418 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
3419 is_pascal_string_type function.
3420
cf17c188
AC
34212002-05-02 Andrew Cagney <cagney@redhat.com>
3422
3423 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
3424 <cagney@redhat.com> change.
3425 * gdbarch.c: Regenerate.
3426
52bca491
AC
34272002-05-02 Andrew Cagney <cagney@redhat.com>
3428
3429 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
3430 before probing for a new one. Detect errorenous gdbarch_init
3431 functions.
3432 * gdbarch.c: Regenerate.
3433
d5e72505
AC
34342002-05-01 Andrew Cagney <cagney@redhat.com>
3435
3436 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
3437 * config/mcore/tm-mcore.h: Ditto. Update copyright.
3438 * config/v850/tm-v850.h: Ditto. Update copyright.
3439
af566d9f
AC
34402002-04-30 Andrew Cagney <ac131313@redhat.com>
3441
3442 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
3443 current_gdbarch.
3444
880d85fa
MS
34452002-04-30 Michael Snyder <msnyder@redhat.com>
3446
94c30b78
MS
3447 * arm-tdep.c: Whitespace clean-ups.
3448 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
3449 should have been removed as part of 4/24 change.
3450
6f5987a6
KB
34512002-04-30 Kevin Buettner <kevinb@redhat.com>
3452
3453 * rs6000-tdep.c: Added comment describing how fpscr register
3454 numbers were chosen.
3455
1a113c93
MS
34562002-04-30 Michael Snyder <msnyder@redhat.com>
3457
3458 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
3459
9a6f53fe
EZ
34602002-04-29 Elena Zannoni <ezannoni@redhat.com>
3461
3462 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
3463 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
3464 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
3465
11ed25ac
KB
34662002-04-29 Kevin Buettner <kevinb@redhat.com>
3467
3468 From Louis Hamilton <hamilton@redhat.com>:
3469 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
3470 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
3471 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
3472 not bfd-private xcoff data, to determine wordsize.
3473 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
3474
ae232405
AC
34752002-04-29 Andrew Cagney <ac131313@redhat.com>
3476
3477 GDB 5.2 released from 5.2 branch.
3478
91fd20f7
ML
34792002-04-29 Michal Ludvig <mludvig@suse.cz>
3480
3481 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
3482 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3483 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 3484
2dc5091b
EZ
34852002-04-29 Elena Zannoni <ezannoni@redhat.com>
3486
3487 * rs6000-tdep.c (rs6000_extract_return_value,
3488 rs6000_store_return_value): Handle returning vectors.
3489 (rs6000_gdbarch_init): Use
3490 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
3491 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3492 New function.
3493 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
3494 vectors.
3495 (ppc_sysv_abi_push_arguments): Handle vector parameters.
3496 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 3497
2b9848d8
PM
34982002-04-24 Pierre Muller <ics.u-strasbg.fr>
3499
3500 * hpread.c (hpread_psymtab_to_symtab_1,
3501 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
3502 with fprintf_unfiltered (gdb_stderr,...).
3503
f8d17dc5
PM
35042002-04-24 Pierre Muller <ics.u-strasbg.fr>
3505
3506 * remote-array.c (printf_monitor, write_monitor,
361d1df0 3507 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
3508 Replace fprintf (stderr,...
3509 with fprintf_unfiltered (gdb_stderr,....
3510 * remote-es.c: Likewise.
3511 * remote-os9k.c: Likewise.
3512 * remote-st.c: Likewise.
3513
2f2f1ad1
AS
35142002-04-28 Andreas Schwab <schwab@suse.de>
3515
3516 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
3517 linux-proc.o and gcore.o.
3518
b6779aa2
AC
35192002-04-26 Michal Ludvig <mludvig@suse.cz>
3520
3521 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
3522 code without frame pointers.
3523
7e57f5f4
AC
35242002-04-26 Andrew Cagney <ac131313@redhat.com>
3525
3526 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
3527 ON_STACK is needed.
3528
2ceb85d0
BE
35292002-04-26 Ben Elliston <bje@redhat.com>
3530
3531 * target.c (do_xfer_memory): Correct reference to the new option
3532 "trust-readonly-sections".
3533
f5f8a009
EZ
35342002-04-26 Elena Zannoni <ezannoni@redhat.com>
3535
3536 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
3537 * gdbtypes.c (recursive_dump_type): Output the vector flag.
3538 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
3539 vectors.
3540 (read_array_type): Record the fact that this array type is really a
3541 vector (i.e. are passed in by value).
3542
5868c862
JT
35432002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
3544
3545 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
3546 * alpha-tdep.c (alpha_sigcontext_addr): New function.
3547 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
3548 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
3549 * alpha-linux-tdep.c: Include frame.h.
3550 (alpha_linux_sigcontext_addr): New function.
3551 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
3552 alpha_linux_sigcontext_addr.
3553 * alpha-osf1-tdep.c: Include gdbcore.h.
3554 (alpha_osf1_sigcontext_addr): New function.
3555 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
3556 alpha_osf1_sigcontext_addr.
3557 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
3558 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
3559
bfb01f37
AC
35602002-04-26 Andrew Cagney <ac131313@redhat.com>
3561
361d1df0 3562 * stack.c (selected_frame_level):
bfb01f37
AC
3563 (select_frame): Do not set selected_frame_level.
3564 * frame.h (selected_frame_level): Delete declaration.
3565
15813d3f
AC
35662002-04-26 Andrew Cagney <ac131313@redhat.com>
3567
3568 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
3569 convert_from_func_ptr-addr when AIX / PowerOpen.
3570
6096c27a
AC
35712002-04-25 Andrew Cagney <ac131313@redhat.com>
3572
3573 * valops.c (hand_function_call): Call
3574 generic_save_call_dummy_addr.
3575 * frame.h (generic_save_call_dummy_addr): Declare.
3576 * blockframe.c (struct dummy_frame): Add fields call_lo and
3577 call_hi.
3578 (generic_find_dummy_frame): Check for PC in range call_lo to
3579 call_hi instead of entry_point_address.
3580 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
3581 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
3582 (generic_save_call_dummy_addr): New function.
3583
f510d44e
DM
35842002-04-24 David S. Miller <davem@redhat.com>
3585
3586 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
3587 sparc_skip_prologue.
3588 (sparc_skip_prologue): Kill frameless_p arg, and use line number
3589 information to find prologue when possible.
3590 (sparc_prologue_frameless_p): Call examine_prologue directly.
3591 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
3592 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
3593 second argument.
3594 (SKIP_PROLOGUE): Likewise.
3595
15d72a92
JT
35962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3597
3598 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
3599 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
3600 indicate that the condition it was testing is always true.
3601 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
3602 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3603 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
3604
accc6d1f
JT
36052002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3606
3607 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
3608 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
3609 tdep->jb_pc and tdep->jb_elt_size.
3610 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
3611 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
3612 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3613 * alpha-nat.c (get_longjmp_target): Remove.
3614 (JB_ELEMENT_SIZE): Ditto.
3615 (JB_PC): Ditto.
3616 * alpha-tdep.c (alpha_get_longjmp_target): New function.
3617 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
3618 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
3619 to alpha_get_longjmp_target.
3620 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
3621 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
3622 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
3623
1bfdc549
AC
36242002-04-25 Andrew Cagney <ac131313@redhat.com>
3625
3626 * README: Update to GDB 5.2.
3627
1bd316f0
AC
36282002-04-25 Andrew Cagney <ac131313@redhat.com>
3629
3630 * gdbarch.sh (LC_ALL): Set to `c'.
3631
2e5ff58c
TR
36322002-04-25 Theodore A. Roth <troth@verinet.com>
3633
3634 * avr-tdep.c: Ran through gdb_indent.sh.
3635
e33ce519
TR
36362002-04-25 Theodore A. Roth <troth@verinet.com>
3637
3638 * MAINTAINERS: Add myself as AVR maintainer.
3639 * NEWS: Note new target avr.
3640
8818c391
TR
36412002-04-25 Theodore A. Roth <troth@verinet.com>
3642
3643 * Makefile.in: Add support for AVR target.
3644 * configure.tgt: Add support for AVR target.
3645 * avr-tdep.c: New file
3646 * config/avr/avr.mt: New file.
3647
79509c2d
TR
36482002-04-25 Theodore A. Roth <troth@verinet.com>
3649
3650 * MAINTAINERS: Add myself to write-after-approval.
3651
dac8068e
PM
36522002-04-24 Pierre Muller <ics.u-strasbg.fr>
3653
3654 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
3655 with fprintf_unfiltered (gdb_stderr,....
3656
25bf3106
PM
36572002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3658
3659 Fix PR gdb/508.
3660 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
3661
24467a86
PM
36622002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
3663
3664 * p-exp.y: Also use new prev_lexptr variable
3665 to improve error reporting. Based on Michael Snyder
3666 2002-04-24 dated patch to c-exp.y.
3667
95b80706
JT
36682002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3669
3670 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
3671 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
3672 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
3673 to 0.
3674 * config/alpha/tm-alpha.h: Remove forward decls of struct type
3675 and struct value.
3676 (FUNCTION_START_OFFSET): Remove.
3677 (BREAKPOINT): Ditto.
3678
e90cc612
JT
36792002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
3680
3681 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
3682 * NEWS: Ditto.
3683
6c72f9f9
JT
36842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3685
3686 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
3687 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
3688 alpha_linux_pc_in_sigtramp.
3689 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
3690 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
3691 alpha_osf1_pc_in_sigtramp.
3692 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
3693 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
3694 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3695 alphafbsd_pc_in_sigtramp.
3696 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
3697 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3698 alphanbsd_pc_in_sigtramp.
3699 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
3700 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
3701
5e4f3379
JT
37022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3703
3704 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3705
da8ca43d
JT
37062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3707
3708 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
3709 alphanbsd-tdep.c.
3710 (alphanbsd-nat.o): New dependency list.
3711 (alphanbsd-tdep.o): Ditto.
3712 * NEWS: Note new native NetBSD/alpha configuration.
3713 * alphanbsd-nat.c: New file.
3714 * alphanbsd-tdep.c: Ditto.
3715 * configure.host (alpha*-*-netbsd*): New host.
3716 * configure.tgt (alpha*-*-netbsd*): New target.
3717 * config/alpha/nbsd.mh: New file.
3718 * config/alpha/nbsd.mt: Ditto.
3719 * config/alpha/nm-nbsd.h: Ditto.
3720 * config/alpha/tm-nbsd.h: Ditto.
3721
36a6271d
JT
37222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3723
3724 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
3725 (alpha-osf1-tdep.o): New dependency list.
3726 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
3727 and skip_sigtramp_frame members.
3728 * alpha-linux-tdep.c: Include gdbcore.h.
3729 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
3730 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
3731 * alpha-osf1-tdep.c: New file.
3732 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
3733 alpha-osf1-dep.c.
3734 (alpha_frame_past_sigtramp_frame): New function.
3735 (alpha_dynamic_sigtramp_offset): Ditto.
3736 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
3737 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
3738 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
3739 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
3740 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
3741 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
3742 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
3743 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
3744 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
3745 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
3746 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
3747 to find_solib_trampoline_target.
3748 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
3749 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
3750 (SKIP_TRAMPOLINE_CODE): Remove.
3751 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3752 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3753 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3754 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3755 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
3756 (PROC_SIGTRAMP_MAGIC): Ditto.
3757 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3758 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3759 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3760 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3761 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3762
2f4bc57b
JT
37632002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3764
3765 * NEWS: Note that Alpha targets are now multi-arch.
3766
665132f9
MS
37672002-04-24 Michael Snyder <msnyder@redhat.com>
3768
3769 * parser-defs.h (prev_lexptr): New external variable.
3770 * parse.c (parse_exp_1): Set prev_lexptr to null before
3771 calling the language-specific parser.
3772 * c-exp.y (yylex): Set prev_lexptr to start of current token.
3773 (yyerror): Use prev_lexptr in error reporting.
3774
32872fa7
DJ
37752002-04-24 Daniel Jacobowitz <drow@mvista.com>
3776
3777 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
3778 * gregset.h: If FILL_FPXREGSET is defined, provide
3779 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
3780 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
3781 is defined, call fill_fpxregset.
3782
57e76fac
MS
37832002-04-24 Roland McGrath <roland@frob.com>
3784
3785 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
3786 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
3787 (supply_gregset, supply_fpregset): New functions.
3788
3789 * gnu-nat.c (gnu_find_memory_regions): New function.
3790 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
3791 (gnu_xfer_memory): Add a cast.
3792
f43845b3
MS
37932002-04-24 Michael Snyder <msnyder@redhat.com>
3794
361d1df0 3795 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
3796 loop. Add handling for "str lr, [sp, #-4]!" and for saves
3797 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 3798 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
3799 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
3800 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
3801
a0abec03
AC
3802Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
3803
3804 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
3805 NUM_PSEUDO_REGS can be used.
3806
d7bd68ca
AC
38072002-04-24 Andrew Cagney <ac131313@redhat.com>
3808
3809 * arch-utils.h: Update copyright.
3810
3811 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
3812 * gdbarch.h, gdbarch.c: Re-generate.
3813
3814 * inferior.h (IN_SIGTRAMP): Delete definition.
3815 * arch-utils.c (legacy_pc_in_sigtramp): New function.
3816 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
3817
3818 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
3819 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
3820 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
3821 (find_proc_framesize): Ditto.
3822 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
3823 (alpha_init_extra_frame_info): Ditto.
3824 * infrun.c (handle_inferior_event): Ditto.
3825 (handle_inferior_event): Ditto.
3826 (check_sigtramp2): Ditto.
3827 * blockframe.c (create_new_frame): Ditto.
3828 (get_prev_frame): Ditto.
3829 * ppc-linux-tdep.c: Update comments.
3830 * i386-linux-tdep.c: Update comments.
3831 * breakpoint.c (bpstat_what): Update comment.
3832
d06f167a
ML
38332002-04-24 Michal Ludvig <mludvig@suse.cz>
3834
3835 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
361d1df0 3836 (regsets_store_inferior_registers): Removed cast to int from
d06f167a
ML
3837 ptrace() calls.
3838 * gdbserver/regcache.h: Added declaration of struct inferior_info.
3839
4867e41e
DM
38402002-04-24 David S. Miller <davem@redhat.com>
3841
21d83aa5
DM
3842 * i960-tdep.c (register_in_window_p): New function.
3843 (i960_find_saved_register): Use it instead of
3844 REGISTER_IN_WINDOW_P.
3845 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
3846
4867e41e
DM
3847 * symtab.h (find_stab_function_addr): Kill extern.
3848 * minsyms.c (find_stab_function_addr): Remove from here...
3849 * dbxread.c: ... to here, and mark it static.
3850
69cdf6a2
DM
38512002-04-20 David S. Miller <davem@redhat.com>
3852
3853 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
3854 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
3855
5a595886
DM
38562002-04-21 David S. Miller <davem@redhat.com>
3857
3858 * remote-vxsparc.c (vx_read_register): Fix typo, we want
3859 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
3860 (vx_write_register): Likewise.
3861
1da1a192
JB
38622002-04-23 J. Brobecker <brobecker@gnat.com>
3863
3864 * source.c (is_regular_file): New function.
3865 (openp): Check wether file to open is a regular file
3866 to avoid opening directories.
3867
baa6f10b
JT
38682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3869
3870 * findvar.c (extract_signed_integer): Cast printf argument
3871 to suppress format warning.
3872 (extract_unsigned_integer): Likewise.
3873 * infcmd.c (registers_info): Likewise.
3874 * top.c (get_prompt_1): Likewise.
3875 * valops.c (value_assign): Likewise.
3876 * valprint.c (print_decimal): Likewise.
3877
b2c4da81
L
38782002-04-22 H.J. Lu (hjl@gnu.org)
3879
3880 * c-exp.y (typebase): Support
361d1df0 3881
b2c4da81
L
3882 [long|long long|short] [signed|unsigned] [int|]
3883
3884 and
3885
3886 signed [long|long long|short] int
3887
f267bd6a
JT
38882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3889
3890 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3891 and vax-tdep.h.
3892 * vax-tdep.h: New file.
3893 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3894 Make several routines static.
3895 (vax_get_saved_register): New function.
3896 (vax_gdbarch_init): New function.
3897 (_initialize_vax_tdep): Register vax_gdbarch_init.
3898 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3899 Remove macros now under the control of gdbarch.
3900
da3c6d4a
MS
39012002-04-22 Michael Snyder <msnyder@redhat.com>
3902
11d3b27d
MS
3903 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3904 Some whitespace and coding standards tweaks.
da3c6d4a 3905
a33f7558
JT
39062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3907
3908 * vax-tdep.c: Include regcache.h.
3909 (vax_call_dummy_words): New.
3910 (sizeof_vax_call_dummy_words): New.
3911 (vax_fix_call_dummy): New function.
3912 (vax_saved_pc_after_call): Ditto.
3913 * config/vax/tm-vax.h: Don't include regcache.h.
3914 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3915 (CALL_DUMMY): Remove.
3916 (CALL_DUMMY_WORDS): Define.
3917 (SIZEOF_CALL_DUMMY_WORDS): Define.
3918 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3919
47a73475
MS
39202002-04-18 Michael Snyder <msnyder@redhat.com>
3921
3922 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3923
52efde73
JT
39242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3925
3926 * vax-tdep.c (vax_frame_chain): New function.
3927 (vax_push_dummy_frame): Ditto.
3928 (vax_pop_frame): Ditto.
3929 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3930 (FRAMELESS_FUNCTION_INVOCATION): Use
3931 generic_frameless_function_invocation_not.
3932 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3933 (POP_FRAME): Use vax_pop_frame.
3934
ea74468c
JT
39352002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3936
3937 * vax-tdep.c (vax_store_struct_return): New function.
3938 (vax_extract_return_value): Ditto.
3939 (vax_store_return_value): Ditto.
3940 (vax_extract_struct_value_address): Ditto.
3941 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3942 vax_store_struct_return.
3943 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3944 (STORE_RETURN_VALUE): Use vax_store_return_value.
3945 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3946
5516aa92
JT
39472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3948
3949 * vax-tdep.c (vax_frame_saved_pc): New function.
3950 (vax_frame_args_address_correct): Ditto.
3951 (vax_frame_args_address): Ditto.
3952 (vax_frame_locals_address): Ditto.
3953 (vax_frame_num_args): Move code to be in proximity to
3954 other frame-related functions.
3955 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3956 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3957 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3958 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3959 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3960
36af0b35
L
39612002-04-22 H.J. Lu (hjl@gnu.org)
3962
3963 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3964 includedir.
3965
ab62c900
JT
39662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3967
3968 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3969 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3970 (FRAME_INIT_SAVED_REGS): New macro.
3971
7232b100
JT
39722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3973
3974 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3975
b70d2aee
JT
39762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3977
3978 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3979 where needed.
3980 (fetch_osf_core_registers): Likewise.
3981 (supply_gregset): Likewise.
3982
a0e8a2d1 39832002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 3984
a0e8a2d1
JB
3985 * symfile.h (get_section_index): Define.
3986 * symfile.c (get_section_index): New function.
3987 * mdebugread.c (SC_IS_SBSS): New macro.
3988 (SC_IS_BSS): Return true for the scBss storage class only, as
3989 the scSBss storage class refers to the .sbss section.
3990 (parse_partial_symbols): Discard the symbols which associated
3991 section does not exist.
3992 Make sure to use the .sbss section index for symbols which
3993 storage class is scBss, rather than using the .bss section index.
3994
51eb8b08
JT
39952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3996
3997 * vax-tdep.c: Update copyright years.
3998 (vax_register_name): New function.
3999 (vax_register_byte): Ditto.
4000 (vax_register_raw_size): Ditto.
4001 (vax_register_virtual_size): Ditto.
4002 (vax_register_virtual_type): Ditto.
4003 * config/vax/tm-vax.h: Update copyright years.
4004 (REGISTER_NAMES): Remove.
4005 (REGISTER_NAME): Define.
4006 (REGISTER_BYTE): Use vax_register_byte.
4007 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
4008 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
4009 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
4010
6cc1c0a8
AC
40112002-04-21 Andrew Cagney <ac131313@redhat.com>
4012
4013 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
4014 declaration
4015 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
4016
9319a2fe
DM
40172002-04-21 David S. Miller <davem@redhat.com>
4018
4019 * arch-utils.c (generic_prologue_frameless_p): Kill
4020 SKIP_PROLOGUE_FRAMELESS_P code.
4021 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4022 references.
4023 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
4024 * arc-tdep.c (arc_prologue_frameless_p): Implement.
4025 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
4026 references.
4027 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
4028 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
4029 (sparc_gdbarch_init): Pass it to
4030 set_gdbarch_prologue_frameless_p.
a0e8a2d1 4031
e9ed6d01
JT
40322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4033
4034 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
4035 (alphabsd-nat.o): New dependency list.
4036
36012033
JT
40372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4038
4039 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
4040 alphafbsd-tdep.c.
4041 (alpha-linux-tdep.o): New dependency list.
4042 (alphafbsd-tdep.o): Likewise.
4043
3379287a
JT
40442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4045
4046 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
4047 to here...
4048 * alpha-tdep.c: ...from here.
4049 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
4050
4bcbd6cb
JT
40512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4052
4053 * config/alpha/tm-alpha.h: Move alpha_software_single_step
4054 prototype from here...
4055 * alpha-tdep.h: ...to here.
4056
b31da25e
AC
40572002-04-21 Andrew Cagney <ac131313@redhat.com>
4058
4059 * frame.h (selected_frame_level): Document as deprecated.
4060 (frame_relative_level): Declare.
4061 * stack.c (frame_relative_level): New function.
4062 (selected_frame_level): Document as deprecated.
4063 (select_frame): Do not set the selected_frame_level.
4064
4065 * stack.c (frame_info, record_selected_frame): Update.
4066 (frame_command, current_frame_command): Update.
4067 (up_silently_base, up_command, down_silently_base): Update.
4068 (down_command): Update.
4069 * inflow.c (kill_command): Update.
4070 * tracepoint.c (finish_tfind_command): Update.
4071 * corelow.c (core_open): Update.
4072 * thread.c (info_threads_command): Update.
4073 (do_captured_thread_select): Update.
4074 * infcmd.c (finish_command): Update.
4075 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
4076
9c1d6fe5
JT
40772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4078
4079 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
4080
ab89facf
AC
40812002-04-21 Andrew Cagney <ac131313@redhat.com>
4082
4083 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
4084 type const.
4085
82a4efa1
JT
40862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4087
4088 * alphafbsd-tdep.c: Update copyright years. Include
4089 alpha-tdep.h.
4090 (alphafbsd_use_struct_convention): Make static.
4091 (alphafbsd_init_abi): New function.
4092 (_initialize_alphafbsd_tdep): New function.
4093 * config/alpha/tm-fbsd.h: Update copyright years.
4094 (USE_STRUCT_CONVENTION): Remove.
4095
44dffaac
JT
40962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4097
4098 * alpha-tdep.c (alpha_abi_handler): New structure to describe
4099 an Alpha ABI variant.
4100 (alpha_abi_handler_list): Declare.
4101 (alpha_gdbarch_register_os_abi): New function.
4102 (alpha_gdbarch_init): Give registered ABI variant handlers a
4103 chance to tweak the gdbarch once we have set up defaults.
4104 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
4105
65585be4
JT
41062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4107
4108 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
4109 to standard_coerce_float_to_double.
4110 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
4111
d9b023cc
JT
41122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4113
4114 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
4115 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
4116 from gdbarch_tdep rather than a constant.
4117 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
4118 the default text address for all Alpha Unix ABIs.
4119 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
4120 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
4121
dc129d82
JT
41222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
4123
4124 * alpha-tdep.h: New file. Includes several Alpha target constants
4125 taken from...
4126 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
4127 let gdbarch deal with.
4128 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
4129 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
4130 to dependency list.
4131 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
4132 Alpha target register names.
4133 * alphabsd-nat.c: Likewise.
4134 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
4135 Alpha target register names. Make serveral routines static.
4136 (alpha_get_saved_register): New function.
4137 (alpha_abi_names): New.
4138 (process_note_abi_tag_sections): New function.
4139 (get_elfosabi): New function.
4140 (alpha_gdbarch_init): New function.
4141 (alpha_dump_tdep): New function.
4142 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
4143
d49d1e0a
AC
41442002-04-21 Andrew Cagney <ac131313@redhat.com>
4145
4146 * frame.c (find_saved_register): Delete #ifdef
4147 HAVE_REGISTER_WINDOWS code.
4148 * config/sparc/tm-sparc.h: Update comments.
4149 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
4150
92e8c9ed
AC
41512002-04-21 Andrew Cagney <ac131313@redhat.com>
4152
4153 * i960-tdep.c (i960_find_saved_register): New function.
4154 (i960_get_saved_register): New function.
4155 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
4156 (i960_get_saved_register): Declare.
4157 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
4158
e1925118
DM
41592002-04-20 David S. Miller <davem@redhat.com>
4160
4161 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
4162
29673b29
AC
41632002-04-20 Andrew Cagney <ac131313@redhat.com>
4164
4165 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
4166 instead of NUM_PSEUDO_REGS.
4167
6c86dcd5
DM
41682002-04-20 David S. Miller <davem@redhat.com>
4169
4170 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
4171 GDB_MULTI_ARCH_PARTIAL
4172 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
4173 define, let tm-sp64.h do it.
4174
aa40ec90
JT
41752002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
4176
4177 * frame.c (find_saved_register): Avoid a NULL pointer
4178 dereference and actually walk the frame list.
4179
0f79675b
AC
41802002-04-20 Andrew Cagney <ac131313@redhat.com>
4181
4182 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
4183 sorted in most most-recent-used order. Document.
4184 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4185
c04a1aa8
DJ
41862002-04-20 Daniel Jacobowitz <drow@mvista.com>
4187
4188 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
4189 (add_inferior): Call create_register_cache.
4190 (clear_inferiors): Call free_register_cache.
4191 (inferior_regcache_data, set_inferior_regcache_data): New functions.
4192 * gdbserver/regcache.c (struct inferior_regcache_data): New.
4193 (registers): Remove.
4194 (get_regcache): New function.
4195 (create_register_cache, free_register_cache): New functions.
4196 (set_register_cache): Don't initialize the register cache here.
4197 (registers_to_string, registers_from_string, register_data): Call
4198 get_regcache.
4199 * gdbserver/regcache.h: Add prototypes.
4200 * gdbserver/server.h: Likewise.
4201
611cb4a5
DJ
42022002-04-20 Daniel Jacobowitz <drow@mvista.com>
4203
4204 * gdbserver/mem-break.c: New file.
4205 * gdbserver/mem-break.h: New file.
4206 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
4207 dependencies.
4208 * gdbserver/inferiors.c (struct inferior_info): Add target_data
4209 member.
4210 (clear_inferiors): Free target_data member if set.
4211 (inferior_target_data, set_inferior_target_data): New functions.
4212 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
4213 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
4214 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
4215 (struct inferior_linux_data): New.
4216 (linux_create_inferior): Use set_inferior_target_data.
4217 (linux_attach): Likewise. Call add_inferior.
4218 (linux_wait_for_one_inferior): New function.
4219 (linux_wait): Call it.
4220 (linux_write_memory): Add const.
4221 (initialize_low): Call set_breakpoint_data.
4222 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
4223 handling members.
4224 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
4225 call.
4226 * gdbserver/server.h: Include mem-break.h. Update inferior.c
4227 prototypes.
4228 * gdbserver/target.c (read_inferior_memory)
4229 (write_inferior_memory): New functions.
4230 * gdbserver/target.h (read_inferior_memory)
4231 (write_inferior_memory): Change macros to prototypes.
4232 (struct target_ops): Update comments. Add const to write_memory
4233 definition.
4234
f91305dd 42352002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
4236
4237 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
4238 instead of ->prev.
4239 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
4240 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
4241 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
4242 instead of ->prev.
4243
73d322b1
EZ
42442002-04-19 Elena Zannoni <ezannoni@redhat.com>
4245
4246 Fix PR gdb/471.
4247 * gdbtypes.c (init_simd_type): Rewrite using new functions.
4248 (build_builtin_type_vec128): Ditto.
4249 (append_composite_type_field): Fix calculation of type length in
4250 union case.
4251
ccd9a834
EZ
42522002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4253
4254 * config/djgpp/README: Update.
4255
4256 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
4257 compiler warnings.
4258
a57f9e49
JT
42592002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
4260
4261 * alpha-tdep.c (setup_arbitrary_frame): Rename...
4262 (alpha_setup_arbitrary_frame): ...to this.
4263 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
4264 for alpha_setup_arbitrary_frame.
4265
f4f9705a
AC
42662002-04-18 Andrew Cagney <cagney@redhat.com>
4267
4268 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
4269 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 4270
f4f9705a
AC
4271 * defs.h (breakpoint_from_pc_fn): Delete type definition.
4272 * target.h (memory_breakpoint_from_pc): Update declaration.
4273 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
4274
4275 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
4276 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
4277 * mem-break.c (memory_breakpoint_from_pc): Ditto.
4278 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
4279 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
4280 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
4281 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
4282 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
4283 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
4284 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
4285 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
4286 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
4287
4288 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
4289 const pointer.
4290 * monitor.c (monitor_insert_breakpoint): Ditto.
4291 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
4292
4293 * config/mcore/tm-mcore.h: Update copyright.
4294 * mem-break.c: Ditto.
4295 * xstormy16-tdep.c: Ditto.
4296
29f319b8
PM
42972002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
4298
4299 * p-exp.y: Add precedence rule for '^' token.
4300 This removes the shift/reduce conflicts.
4301 Remove the comment concerning these shift/reduce conflicts.
4302
ebeac11a
EZ
43032002-04-18 Elena Zannoni <ezannoni@redhat.com>
4304
4305 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
4306 (registers_powerpc_nofp): New register set for processors
4307 without floating point unit.
4308
27c31547
DM
43092002-04-18 David S. Miller <davem@redhat.com>
4310
4311 * MAINTAINERS: Add myself to write-after-approval.
4312
47a73475
MS
43132002-04-17 Michael Snyder <msnyder@redhat.com>
4314
4315 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
4316
953836b2
AC
43172002-04-17 Andrew Cagney <ac131313@redhat.com>
4318
4319 * rs6000-tdep.c (frame_initial_stack_address): Use
4320 frame_register_read to read the alloca_reg.
4321
8b0d4340
AC
43222002-04-17 Andrew Cagney <ac131313@redhat.com>
4323
4324 * frame.c (find_saved_register): Find saved registers in the next
4325 not prev frame.
4326 Fix PR gdb/365.
4327
d8864532
AC
43282002-04-17 Andrew Cagney <ac131313@redhat.com>
4329
4330 * gdbarch.sh (LANG): Set to ``c''.
4331
36cc83a3 43322002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 4333
36cc83a3 4334 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 4335
2f4150cc 43362002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
4337
4338 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
4339 Update copyright.
4340
628703c6 4341 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 4342 Also fix PR gdb/391.
361d1df0 4343
56157b4a
AC
43442002-04-14 Andrew Cagney <ac131313@redhat.com>
4345
4346 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
4347 * aclocal.m4, configure: Re-generate.
4348 Fix PR gdb/391.
361d1df0 4349
6d1e3329
EZ
43502002-04-14 Elena Zannoni <ezannoni@redhat.com>
4351
4352 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
4353 instead of tm_print_insn.
4354
cb06fa07
EZ
43552002-04-14 Elena Zannoni <ezannoni@redhat.com>
4356
4357 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
4358
f208ba17
AC
43592002-04-14 Andrew Cagney <ac131313@redhat.com>
4360
4361 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
4362 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
4363 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
4364
20f01a46
DH
43652002-04-12 Don Howard <dhoward@redhat.com>
4366
4367 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
4368 max_user_call_depth.
4369 (init_cmd_lists): Initialize the new value;
4370 * cli/cli-script.c (execute_user_command): Limit the call depth of
4371 user defined commands. This avoids a core-dump when user commands
4372 are infinitly recursive.
4373
a88376a3
KB
43742002-04-12 Kevin Buettner <kevinb@redhat.com>
4375
4376 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
4377 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
4378 from tdep struct instead of DEFAULT_LR_SAVE.
4379 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
4380 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
4381 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
4382
f2172603
MS
43832002-04-12 Michael Snyder <msnyder@redhat.com>
4384
694f61fb 4385 * Remote.c: Spelling fix.
20fe79c8
MS
4386 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
4387 If no symbol found for "sbrk", try "_sbrk".
4388 (make_output_phdrs): Use bfd_section_name.
4389 (gcore_copy_callback): Use bfd_section_name.
62995fc4 4390 * eval.c: Indentation fix-ups.
169a7369
MS
4391 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
4392 in case it gets applied to an address that is already
4393 in the instruction space.
de74f71f
MS
4394 * cli/cli-decode.c (help_list): Allow long lines to wrap.
4395 * symfile.c: Fix indentation, long lines.
f2172603
MS
4396 * source.c: White space fix-up.
4397
cda5a58a
AC
43982002-04-12 Andrew Cagney <cagney@redhat.com>
4399
4400 * defs.h (read_relative_register_raw_bytes): Delete declaration.
4401 * frame.c (frame_register_read): New function. Return non-zero on
4402 success.
4403 (read_relative_register_raw_bytes_for_frame): Delete.
4404 (read_relative_register_raw_bytes): Delete.
4405 * frame.h (frame_register_read): Declare.
4406 * d30v-tdep.c: Update Copyright. Use frame_register_read.
4407 * sh-tdep.c: Ditto.
4408 * infcmd.c (do_registers_info): Ditto.
4409 * hppa-tdep.c: Ditto.
4410 * rs6000-tdep.c: Ditto.
4411 * h8500-tdep.c: Ditto.
4412 * mips-tdep.c: Ditto.
4413 * h8300-tdep.c: Ditto.
4414 * z8k-tdep.c: Ditto.
4415
2ea5f656
KB
44162002-04-12 Kevin Buettner <kevinb@redhat.com>
4417
4418 From Jimi X <jimix@watson.ibm.com>:
4419 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
4420 64-bit SysV ABI.
4421
27b15785
KB
44222002-04-12 Kevin Buettner <kevinb@redhat.com>
4423
4424 From Jimi X <jimix@watson.ibm.com>:
4425 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
4426 bfd info.
4427
5d57ee30
KB
44282002-04-12 Kevin Buettner <kevinb@redhat.com>
4429
4430 From Jimi X <jimix@watson.ibm.com>:
4431 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
4432 register sets for these processor variants.
4433
bc1e36ca
DJ
44342002-04-11 Daniel Jacobowitz <drow@mvista.com>
4435
4436 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
4437 registers which are allowed to fail to store.
4438 * gdbserver/linux-low.h (linux_target_ops): Likewise.
4439 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
4440 (ppc_cannot_store_register): FPSCR may not be storable.
4441 * regformats/reg-ppc.dat: Support FPSCR.
4442
e3f36dbd
KB
44432002-04-11 Kevin Buettner <kevinb@redhat.com>
4444
4445 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
4446 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4447 Add fpscr as an invalid/unfetchable register.
4448 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
4449 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
4450 (fill_fpregset): Add support for register fpscr.
4451 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
4452 (fill_gregset): Account for the fact that register ``mq'' might
4453 not exist.
4454 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
4455 (registers_power): Add fpscr to register set at slot 71.
4456 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
4457 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
4458
943c9c25
MS
44592002-04-11 Michael Snyder <msnyder@redhat.com>
4460
4461 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
4462 * configure: Regenerate.
4463 * config.in: Regenerate.
4464 * acconfig.h: Add define for _SYSCALL32.
4465 * core-sol2.c: Remove #define _SYSCALL32.
4466 * solib-legacy.c: Remove #define _SYSCALL32.
4467
d8c0a2e7
AC
44682002-04-10 Andrew Cagney <ac131313@redhat.com>
4469
4470 * stack.c (select_frame): Cleanup internal error message, do not
4471 use %p.
4472
7cc19214
AC
44732002-04-10 Andrew Cagney <ac131313@redhat.com>
4474
4475 * stack.c (select_frame): Check that selected_frame and the
4476 specified level are as expected.
4477 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
4478 Update copyright.
4479 * frame.h (struct frame_info): Add field `level'. Update
4480 copyright.
4481 Work-in-progress PR gdb/464.
4482
67a2b77e
AC
44832002-04-10 Andrew Cagney <ac131313@redhat.com>
4484
4485 * maint.c (maint_print_section_info): Rename print_section_info.
4486 (print_bfd_section_info, print_objfile_section_info): Update.
4487 * inferior.h (struct gdbarch): Add opaque declaration.
4488 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
4489 * gdbarch.h: Regenerate.
4490
8cfda98c
ML
44912002-04-10 Michal Ludvig <mludvig@suse.cz>
4492
4493 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
4494 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
4495 (kernel_u_size): Added.
4496 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
4497 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
4498
ca439ad2 44992002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 4500
ca439ad2
JI
4501 * valarith.c (find_size_for_pointer_math): New function, either returns
4502 the size for a pointer's target, returns 1 for void *, or errors for
4503 incomplete types.
4504 (value_add, value_sub): use find_size_for_pointer_math.
4505
2f2893d9
DJ
45062002-04-09 Daniel Jacobowitz <drow@mvista.com>
4507
4508 * linux-low.c (linux_look_up_symbols): New hook.
4509 (linux_target_ops): Add linux_look_up_symbols.
4510 * remote-utils.c (decode_address): New function.
4511 (look_up_one_symbol): New function.
4512 * server.c (handle_query): Call target look_up_symbols hook.
4513 * server.h (look_up_one_symbol): Add prototype.
4514 * target.h (struct target_ops): Add look_up_symbols hook.
4515
2ec06d2e
DJ
45162002-04-09 Daniel Jacobowitz <drow@mvista.com>
4517
d64b8841
DJ
4518 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
4519 * ChangeLog: Correct paths in last ChangeLog entry.
4520
45212002-04-09 Daniel Jacobowitz <drow@mvista.com>
4522
4523 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
4524 (struct linux_target_ops): New.
4525 (extern the_low_target): New.
d64b8841 4526 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
4527 (register_addr): Use the_low_target explicitly.
4528 (fetch_register): Likewise.
4529 (usr_fetch_inferior_registers): Likewise.
4530 (usr_store_inferior_registers): Likewise.
d64b8841 4531 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
4532 (arm_num_regs): Define.
4533 (arm_regmap): Renamed from regmap, made static.
4534 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
4535 made static.
4536 (arm_cannot_store_register): Renamed from cannot_store_register,
4537 made static.
4538 (the_low_target): New.
d64b8841 4539 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
4540 (i386_num_regs): Define.
4541 (i386_regmap): Renamed from regmap, made static.
4542 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
4543 made static.
4544 (i386_cannot_store_register): Renamed from cannot_store_register,
4545 made static.
4546 (the_low_target): New.
d64b8841 4547 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
4548 (ia64_num_regs): Define.
4549 (ia64_regmap): Renamed from regmap, made static.
4550 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
4551 made static.
4552 (ia64_cannot_store_register): Renamed from cannot_store_register,
4553 made static.
4554 (the_low_target): New.
d64b8841 4555 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
4556 (m68k_num_regs): Define.
4557 (m68k_regmap): Renamed from regmap, made static.
4558 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
4559 made static.
4560 (m68k_cannot_store_register): Renamed from cannot_store_register,
4561 made static.
4562 (the_low_target): New.
d64b8841 4563 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
4564 (mips_num_regs): Define.
4565 (mips_regmap): Renamed from regmap, made static.
4566 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
4567 made static.
4568 (mips_cannot_store_register): Renamed from cannot_store_register,
4569 made static.
4570 (the_low_target): New.
d64b8841 4571 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
4572 (ppc_num_regs): Define.
4573 (ppc_regmap): Renamed from regmap, made static.
4574 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
4575 made static.
4576 (ppc_cannot_store_register): Renamed from cannot_store_register,
4577 made static.
4578 (the_low_target): New.
d64b8841 4579 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
4580 (s390_num_regs): Define.
4581 (s390_regmap): Renamed from regmap, made static.
4582 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
4583 made static.
4584 (s390_cannot_store_register): Renamed from cannot_store_register,
4585 made static.
4586 (the_low_target): New.
d64b8841 4587 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
4588 (sh_num_regs): Define.
4589 (sh_regmap): Renamed from regmap, made static.
4590 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
4591 made static.
4592 (sh_cannot_store_register): Renamed from cannot_store_register,
4593 made static.
4594 (the_low_target): New.
d64b8841 4595 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
4596 (the_low_target): New.
4597
96cb11df
AC
45982002-04-09 Andrew Cagney <ac131313@redhat.com>
4599
4600 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
4601 override FP_REGNUM with frame->fp. Update copyright.
4602 * parse.c (num_std_regs, std_regs): Delete.
4603 (target_map_name_to_register): Do not search std_regs. Update
4604 function description.
4605 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
4606 declarations. Update copyright.
4607 Fix PR gdb/251.
361d1df0 4608
c3a3ccc7
DJ
46092002-04-09 Daniel Jacobowitz <drow@mvista.com>
4610
4611 * gdbserver/Makefile.in: Add stamp-h target.
4612 * gdbserver/configure.in: Create stamp-h.
4613 * gdbserver/configure: Regenerated.
4614
ce3a066d
DJ
46152002-04-09 Daniel Jacobowitz <drow@mvista.com>
4616
4617 * gdbserver/inferiors.c: New file.
4618 * gdbserver/target.c: New file.
4619 * gdbserver/target.h: New file.
4620 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
4621 dependencies.
4622 * gdbserver/linux-low.c (inferior_pid): New static variable,
4623 moved from server.c.
4624 (linux_create_inferior): Renamed from create_inferior.
4625 Call add_inferior. Return 0 on success instead of a PID.
4626 (linux_attach): Renamed from myattach.
4627 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
4628 (linux_thread_alive): Renamed from mythread_alive.
4629 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
4630 child dies.
4631 (linux_resume): Renamed from myresume. Add missing ``return 0''.
4632 (regsets_store_inferior_registers): Correct error message.
4633 Add missing ``return 0''.
4634 (linux_fetch_registers): Renamed from fetch_inferior_registers.
4635 (linux_store_registers): Renamed from store_inferior_registers.
4636 (linux_read_memory): Renamed from read_inferior_memory.
4637 (linux_write_memory): Renamed from write_inferior_memory.
4638 (linux_target_ops): New structure.
4639 (initialize_low): Call set_target_ops ().
4640 * gdbserver/remote-utils.c (unhexify): New function.
4641 (hexify): New function.
4642 (input_interrupt): Send signals to ``signal_pid''.
4643 * gdbserver/server.c (inferior_pid): Remove.
4644 (start_inferior): Update create_inferior call.
4645 (attach_inferior): Call add_inferior.
4646 (handle_query): New function.
4647 (main): Call handle_query for `q' packets.
4648 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
4649 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
4650
0729219d
DJ
46512002-04-09 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
4654 dependencies.
4655 * gdbserver/configure.in: Check for <string.h>
4656 * gdbserver/configure: Regenerate.
4657 * gdbserver/config.in: Regenerate.
4658 * gdbserver/gdbreplay.c: Include needed system headers.
4659 (remote_open): Remove strchr prototype.
4660 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
4661 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
4662 (supply_register_by_name): Likewise.
4663 (collect_register): Change buf argument to void *.
4664 (collect_register_by_name): Likewise.
4665 * gdbserver/regcache.h: Add missing prototypes.
4666 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
4667 * gdbserver/server.c (handle_query): New function.
4668 (attached): New static variable, moved out of main.
4669 (main): Quiet longjmp clobber warnings.
4670 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
4671 * gdbserver/utils.c (error): Remove NORETURN.
4672 (fatal): Likewise.
4673
97658e92
DJ
46742002-04-09 Daniel Jacobowitz <drow@mvista.com>
4675
4676 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
4677 after the last symbol in a block.
4678
6044e3eb
PM
46792002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
4680
4681 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
4682 is non zero as a found symbol.
4683
0406ec40
AC
46842002-04-08 Andrew Cagney <ac131313@redhat.com>
4685
4686 * findvar.c: Include "builtin-regs.h".
4687 (value_of_register): Call value_of_builtin_reg when applicable.
4688 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
4689 (target_map_name_to_register): Call
4690 builtin_reg_map_name_to_regnum.
4691 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
4692 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
4693 (builtin_regs_h): Define.
4694 (builtin-regs.o): New target.
4695 (findvar.o): Add $(builtin_regs_h).
4696 * builtin-regs.c, builtin-regs.h: New files.
4697 * std-regs.c: New file.
4698 Partial fix for PR gdb/251.
4699
56a6dfb9
KB
47002002-04-08 Kevin Buettner <kevinb@redhat.com>
4701
4702 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
4703 it's no longer required.
4704
3a808432
AC
47052002-04-08 Andrew Cagney <ac131313@redhat.com>
4706
4707 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
4708
7c40d541
KB
47092002-04-08 Kevin Buettner <kevinb@redhat.com>
4710
4711 From Jimi X <jimix@watson.ibm.com>:
4712 * rs6000-tdep.c (rs6000_software_single_step): Use
4713 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
4714 and size. Use target_insert_breakpoint() and
4715 target_remove_breakpoint() to insert and remove breakpoints
4716 instead of explicit memory reads and writes.
4717
cc9836a8
KB
47182002-04-08 Kevin Buettner <kevinb@redhat.com>
4719
4720 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
4721 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
4722 ELF_OBJECT_FORMAT ifdef.
4723
7495d1dc
KB
47242002-04-08 Kevin Buettner <kevinb@redhat.com>
4725
4726 From Jimi X <jimix@watson.ibm.com>:
4727 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
4728
4288e836
KB
47292002-04-08 Kevin Buettner <kevinb@redhat.com>
4730
4731 From Jimi X <jimix@watson.ibm.com>:
4732 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
4733 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
4734
a4e4e501
MK
47352002-04-07 Mark Kettenis <kettenis@gnu.org>
4736
4737 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
4738 s/asprintf/xasprintf/.
4739 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
4740
006defba
AC
47412002-04-07 Andrew Cagney <ac131313@redhat.com>
4742
4743 I believe Jeff Law denies responsability for this one:
4744 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
4745 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
4746 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
4747 Work-around for PR gdb/366.
4748
7aa83cac
EZ
47492002-04-07 Elena Zannoni <ezannoni@redhat.com>
4750
4751 * remote-e7000.c (write_small, e7000_read_inferior_memory,
4752 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
4753 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
4754
cf1fcca1
EZ
47552002-04-07 Elena Zannoni <ezannoni@redhat.com>
4756
4757 * sh-tdep.c (sh_fp_frame_init_saved_regs,
4758 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
4759 information.
4760
3f289e6f
AC
47612002-04-07 Andrew Cagney <ac131313@redhat.com>
4762
4763 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
4764 maintainer.
4765
129188f6
AC
47662002-04-07 Andrew Cagney <ac131313@redhat.com>
4767
4768 * README (Reporting Bugs in GDB): Document the bug web page as the
4769 prefered way of submitting bugs.
4770 Fix PR gdb/402.
4771
1200cd6e
AC
47722002-04-06 Andrew Cagney <ac131313@redhat.com>
4773
4774 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
4775 -1. Update comment.
4776 * gdbarch.h, gdbarch.c: Re-generate.
4777
2853c33c
AS
47782002-04-07 Andreas Schwab <schwab@suse.de>
4779
4780 * m68klinux-nat.c (fill_fpregset): Properly pass address of
4781 buffer to regcache_collect.
4782
c2169756
AC
47832002-04-06 Andrew Cagney <ac131313@redhat.com>
4784
4785 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
4786 * gdbarch.c, gdbarch.h: Re-generate.
4787
25f1b008
AC
47882002-04-06 Andrew Cagney <ac131313@redhat.com>
4789
4790 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
4791 declaration. Fix -Werror.
4792
59263426
DJ
47932002-04-05 Daniel Jacobowitz <drow@mvista.com>
4794
4795 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
4796 * gdbarch.c: Regenerate.
4797
f5db4da3
MS
47982002-04-05 Michael Snyder <msnyder@redhat.com>
4799
80f8a6eb
MS
4800 * breakpoint.c (clear_command): Rewrite middle section to
4801 combine two loops with identical control conditions.
4802 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
4803 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
4804
ad3dcc5c
L
48052002-04-05 H.J. Lu (hjl@gnu.org)
4806
4807 * solib-svr4.c (bkpt_names): Add "__start".
4808
f32e7a74
AC
48092002-04-04 Andrew Cagney <ac131313@redhat.com>
4810
4811 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
4812 as test for 64 bit target.
4813
8227c0ff
AC
48142002-04-05 Andrew Cagney <ac131313@redhat.com>
4815
4816 * h8500-tdep.c (h8500_write_fp): Delete function.
4817 * dwarf2cfi.c (cfi_write_fp): Document as not used.
4818 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
4819 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
4820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
4821 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
4822 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
4823 (s390_write_fp):
4824 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
4825 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
4826 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
4827 (d10v_write_fp): Delete function.
4828 * inferior.h (write_fp, generic_target_write_fp): Delete
4829 declarations.
4830 * regcache.c (generic_target_write_fp): Delete function.
4831 (write_fp): Delete function.
4832 * gdbarch.sh (TARGET_WRITE_FP): Delete.
4833 * gdbarch.h, gdbarch.c: Regenerate.
4834 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
4835 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
4836 (sparc64_write_fp): Delete declaration.
4837 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
4838 (h8500_write_fp): Delete declaration.
4839
2757dd86
AC
48402002-04-04 Andrew Cagney <ac131313@redhat.com>
4841
4842 * sparc-tdep.c (sparc64_write_fp): Delete.
4843 (sparc_push_dummy_frame): Replace write_fp call with code to store
4844 the FP directly.
4845 (sparc_gdbarch_init): Do not initialize write_fp.
4846
c69255e1
KB
48472002-04-05 Kevin Buettner <kevinb@redhat.com>
4848
4849 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
4850 clause.
4851
ae767bfb
JB
48522002-03-29 Jim Blandy <jimb@redhat.com>
4853
4854 * stack.c (get_selected_block): Add new argument `addr_in_block',
4855 used to return the exact code address we used to select the block,
4856 not just the block.
4857 * blockframe.c (get_frame_block, get_current_block): Same.
4858 * frame.h (get_frame_block, get_current_block,
4859 get_selected_block): Update declarations.
4860 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
4861 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
4862
84d2ac95
MS
48632002-04-05 Michael Snyder <msnyder@redhat.com>
4864
4865 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
4866 warning message.
4867
596aa3bf
JB
48682002-04-05 J. Brobecker <brobecker@gnat.com>
4869
4870 * utils.c (xfullpath): New function.
4871 * defs.h (xfullpath): Add declaration.
4872 * source.c (openp): Use xfullpath in place of gdb_realpath to
4873 avoid resolving the basename part of filenames when the
4874 associated file is a symbolic link. This fixes a potential
4875 inconsistency between the filenames known to GDB and the
4876 filenames it prints in the annotations.
4877 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
4878 to be able to match a filename with either the real filename, or
4879 the name of any symbolic link to this file.
4880 (lookup_partial_symtab): Ditto.
4881
c02f5703
MS
48822002-04-04 Michael Snyder <msnyder@redhat.com>
4883
4884 * breakpoint.c: Add support for hardware breakpoints in overlays.
4885 (overlay_events_enabled): New state variable.
4886 (insert_breakpoints): Use overlay_events_enabled to decide
4887 whether to attempt to set a breakpoint at the overlay load addr.
4888 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4889 (remove_breakpoint): Use overlay_events_enabled to decide
4890 whether breakpoints need to be removed from overlay load addr.
4891 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4892 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 4893 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
4894 disable_overlay_breakpoints): Update overlay_events_enabled.
4895
5fb290d7
DJ
48962002-04-04 Daniel Jacobowitz <drow@mvista.com>
4897
4898 * dwarf2read.c (struct function_range): New.
4899 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4900 (check_cu_functions): New.
4901 (read_file_scope): Initialize global function lists.
4902 Call dwarf_decode_line after processing children.
4903 (read_func_scope): Add to global function list.
4904 (dwarf_decode_lines): Call check_cu_functions everywhere
4905 record_line is called. Call record_line with a linenumber
4906 of 0 to mark sequence ends.
4907
7b3fabf0
ML
49082002-04-04 Michal Ludvig <mludvig@suse.cz>
4909
361d1df0 4910 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
4911 change sync with glibc.
4912
bce58c09
JB
49132002-04-03 Jim Blandy <jimb@redhat.com>
4914
4915 * configure.in: Call AC_C_INLINE.
4916 * configure: Regenerated.
361d1df0 4917
2fccf04a
DJ
49182002-04-01 Daniel Jacobowitz <drow@mvista.com>
4919
4920 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4921 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4922
2d1bfe2e
MK
49232002-03-31 Mark Kettenis <kettenis@gnu.org>
4924
a5941fbf
MK
4925 * NEWS: Mention gcore support on FreeBSD/i386.
4926
a90cd31d
MK
4927 * fbsd-proc.c: New file.
4928 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4929 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4930
2d1bfe2e
MK
4931 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4932 while statement.
4933
9eb6e5a1
JB
49342002-03-29 Jim Blandy <jimb@redhat.com>
4935
4936 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4937 unescaped newlines in string literals, but newer ones don't. So
4938 escape them.
4939
f02df580
MS
49402002-03-26 Michael Snyder <msnyder@redhat.com>
4941 Andrew Cagney <cagney@redhat.com>
4942
361d1df0 4943 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
4944 restore file to memory.
4945 * cli/cli-dump.h: New file.
4946 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 4947 * NEWS: Mention new commands.
f02df580 4948
109f874e
MS
49492002-03-28 Michael Snyder <msnyder@redhat.com>
4950
4951 * symfile.c (symbol_file_add): Move test for null symbols to later.
4952
520f6ade
AC
49532002-03-27 Andrew Cagney <ac131313@redhat.com>
4954
4955 From veksler at il.ibm.com:
4956 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4957 the xstrduped original path.
4958 Fix PR gdb/417.
4959
d4654627
MS
49602002-03-27 Michael Snyder <msnyder@redhat.com>
4961
4962 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4963 * infcmd.c (_initialize_infcmd): Ditto.
4964 * language.c (_initialize_language): Ditto.
4965 * symfile.c (_initialize_symfile): Ditto.
4966 * top.c (_init_main): Ditto.
4967 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4968
6be8bc0c
EZ
49692002-03-27 Elena Zannoni <ezannoni@redhat.com>
4970
4971 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4972 vector registers handling.
4973 (skip_prologue): Handle new AltiVec instructions. Fill in new
4974 fields of frame data.
4975 (frame_get_saved_regs): Fill in information for AltiVec registers.
4976
12af6855
JB
49772002-03-27 Jim Blandy <jimb@redhat.com>
4978
4979 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4980 a function; leave this macro here to invoke that function.
4981 (symbol_init_mangled_name): Declaration for that function.
4982 * symtab.c (symbol_init_mangled_name): New function.
4983
dc672865
AC
49842002-03-27 Andrew Cagney <ac131313@redhat.com>
4985
4986 * valarith.c: Replace strerror with safe_strerror.
4987 * tracepoint.c: Ditto.
4988 * lin-lwp.c: Ditto.
4989 * go32-nat.c: Ditto.
4990 * inflow.c: Ditto.
4991 * gnu-nat.c: Ditto.
4992
d96429cd
AS
49932002-03-27 Andreas Schwab <schwab@suse.de>
4994
4995 * event-top.c (command_line_handler): Remove useless if.
4996
7e336ba1
AJ
49972002-03-27 Andreas Jaeger <aj@suse.de>
4998
4999 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
5000 comment.
5001
de220d0f
ML
50022002-03-27 Michal Ludvig <mludvig@suse.cz>
5003
5004 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
5005 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5006 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
5007 (x86_64_linux_dr_get_status, supply_gregset),
5008 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
5009 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
5010 (x86_64_register_info_table): Add.
5011 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
5012 (x86_64_register_raw_size, x86_64_register_virtual_type),
5013 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
5014 general x86_64_register_info_table.
5015 (i386_gdbarch_init): gdbarch_register_bytes is now set
5016 dynamicaly during initialization.
5017 * regformats/reg-x86-64.dat: Synced with changes to registers above.
5018 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 5019
0e98d0a7
DJ
50202002-03-27 Daniel Jacobowitz <drow@mvista.com>
5021
5022 * gdbserver/server.c (main): Call target_signal_to_host_p
5023 and target_signal_to_host on signals received from the remote.
5024 * gdbserver/remote-utils.c (prepare_resume_reply): Call
5025 target_signal_from_host on signals sent to the remote.
5026 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
5027 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
5028
3130066b
DJ
50292002-03-27 Daniel Jacobowitz <drow@mvista.com>
5030
5031 * signals/signals.c: Include "server.h" in gdbserver build.
5032 (target_signal_from_name): Don't use STREQ.
5033 (_initialize_signals): Likewise. Don't include function in
5034 gdbserver build.
5035
9aedf4f4
DJ
50362002-03-27 Daniel Jacobowitz <drow@mvista.com>
5037
5038 * signals.c: Moved to...
5039 * signals/signals.c: Here.
7e336ba1 5040 * Makefile (signals.o): Update.
9aedf4f4 5041
3fa41cdb
JL
50422002-03-26 Jeff Law (law@redhat.com)
5043
5044 * somread.c (som_symtab_read): Remove some commented out code and
5045 updated related comments. Do not set the minimal symbol table to
5046 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
5047 in a dynamic executable.
5048 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
5049 where we are unable to find the minimal symbol for the given
5050 PC value.
5051
ee677e8d
MS
50522002-03-25 Jeff Law (law@redhat.com)
5053
5054 * linux-proc.c (read_mapping): Scan up to end of line for filename.
5055
e76e1718
ML
50562002-03-25 Michal Ludvig <mludvig@suse.cz>
5057
5058 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
5059
18a642a1
AC
50602002-03-23 Andrew Cagney <ac131313@redhat.com>
5061
5062 * command.h: Update copyright.
5063 (struct cmd_list_element): Replace definition with opaque
5064 declaration.
5065 (enum cmd_types): Document that it will eventually be moved to
5066 cli/cli-decode.h
5067 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
5068 (MALLOCED_REPLACEMENT): Delete macro.
5069 * Makefile.in (cli_decode_h): Add $(command_h).
5070 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 5071 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
5072 * completer.c: Include "cli/cli-decode.h".
5073 * maint.c: Include "cli/cli-decode.h".
5074 * cli/cli-decode.h: Include "command.h".
5075 (enum command_class): Delete.
5076 (enum cmd_types): Comment out.
5077 (enum cmd_auto_boolean): Delete.
5078 (enum var_types): Delete.
5079
b2875cc0
AC
50802002-03-23 Andrew Cagney <ac131313@redhat.com>
5081
5082 * cli/cli-decode.c: Include "gdb_assert.h".
5083 (add_set_or_show_cmd): New static function.
5084 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
5085 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
5086 all fields, such as func, from the set command.
5087
3b45974e
AC
50882002-03-23 Andrew Cagney <ac131313@redhat.com>
5089
5090 * MAINTAINERS (sh-elf): Change warning flag to -w.
5091
823ca731
AC
50922002-03-23 Andrew Cagney <cagney@redhat.com>
5093
5094 * defs.h (error): Add printf format attribute.
5095 * thread-db.c (thread_from_lwp): Fix error format string.
5096 * stack.c (parse_frame_specification): Ditto.
5097 * cli/cli-decode.c (undef_cmd_error): Ditto.
5098 * scm-lang.c (scm_lookup_name): Ditto.
5099 * tracepoint.c (trace_error): Ditto.
5100 * remote-utils.c (usage): Ditto.
5101 * remote.c (compare_sections_command): Ditto.
5102 Fix PR gdb/328.
5103
0e101458
AC
51042002-03-22 Andrew Cagney <ac131313@redhat.com>
5105
5106 * gdbtypes.c (append_composite_type_field): New function.
5107 (init_composite_type): New function.
5108 * gdbtypes.h (append_composite_type_field): Declare.
5109 (init_composite_type): Ditto.
5110
8e0662df
EZ
51112002-03-22 Elena Zannoni <ezannoni@redhat.com>
5112
5113 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 5114 function.
8e0662df
EZ
5115 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
5116 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
5117 structure returning convention for SYSV ABI case, but not
5118 for GNU/Linux, FreeBSD, or NetBSD.
5119
3121eff0
DJ
51202002-03-22 Daniel Jacobowitz <drow@mvista.com>
5121
5122 * symtab.h (lookup_block_symbol): Add mangled_name argument
5123 to prototype.
5124
5125 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
5126 with new mangled_name argument.
5127 * linespec.c (decode_line_1): Likewise.
5128 * valops (value_of_this): Likewise.
5129 * symtab.c (lookup_transparent_type): Likewise.
5130 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
5131 (lookup_symbol): If we are given a mangled name, pass it down
5132 to lookup_symbol_aux.
5133 (lookup_block_symbol): If we are given a mangled name to check
5134 against, only return symbols which match it.
5135
349b409f
CF
51362002-03-22 Christopher Faylor <cgf@redhat.com>
5137
5138 * win32-nat.c (child_create_inferior): Check for proper shell to use
5139 here, in case the user changes it on the fly.
5140 (_initialize_inftarg): Remove shell path considerations.
5141
2a873819
EZ
51422002-03-21 Elena Zannoni <ezannoni@redhat.com>
5143
5144 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
5145 for gdbarch_max_register_raw_size and max_register_virtual_size.
5146 Adjust copyright year.
5147
a1b9830c
DJ
51482002-03-21 Daniel Jacobowitz <drow@mvista.com>
5149
5150 * dbxread.c (process_one_symbol): Extend the first N_SLINE
5151 in a function to cover the entire beginning of the function
5152 as well if it does not already.
5153
8b5790f2
TR
51542002-03-21 Tom Rix <trix@redhat.com>
5155
5156 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
5157 (rs6000_ptrace64): Renamed from ptrace64.
5158
bdbe5747
MH
51592002-03-20 Martin M. Hunt <hunt@redhat.com>
5160
5161 * gdbserver/remote-utils.c (remote_open): Don't call
5162 getprotobyname, we're all using TCP here so just use
5163 IPPROTO_TCP.
7e336ba1 5164 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
5165
51662002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 5167
bdbe5747
MH
5168 * regcache.c (_initialize_regcache): No need to call
5169 build_regcache() at this time; it gets called whenever
5170 the gdbarch changes.
5171
7781cd62
DB
51722002-03-20 David O'Brien <obrien@FreeBSD.org>
5173
5174 * sparc-nat.c: Include sys/param.h where possible.
5175
f65ca430
DJ
51762002-03-20 Daniel Jacobowitz <drow@mvista.com>
5177
5178 Fix PR gdb/422.
5179 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
5180 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
5181 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
5182 complex types.
5183 * stabsread.c (rs6000_builtin_type): Likewise.
5184 (read_sun_floating_type): Likewise.
5185
0c867556
PS
51862002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5187
5188 * stabsread.c (read_member_functions): Remove skip code for duplicate
5189 constructor/destructor methods. Use standard parsing for these
5190 methods and just do not chain them to the list of methods after
5191 parsing.
5192
12b9c64f
AO
51932002-03-19 Alexandre Oliva <aoliva@redhat.com>
5194
5195 * coffread.c: Remove redundant static declarations. Replace
5196 occurrences of `PTR' with `void *'.
5197 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
5198 * top.h (quit_cover): Likewise.
5199 * defs.h (catch_errors): Likewise.
5200
349c5d5f
AC
52012002-03-18 Andrew Cagney <ac131313@redhat.com>
5202
5203 * defs.h (XMALLOC): Define.
5204 * gdb-events.sh (XMALLOC): Delete macro.
5205 * gdb-events.c, gdb-events.h: Regenerate.
5206 * gdbarch.sh (XMALLOC): Delete macro.
5207 * gdbarch.c: Regenerate.
5208 * serial.c (XMALLOC): Delete macro.
5209 * ui-file.c (XMALLOC): Ditto.
5210 * ser-unix.h (XMALLOC): Ditto.
5211 * sh-tdep.c (XMALLOC): Ditto.
5212 * ui-out.c (XMALLOC): Ditto.
5213 * utils.c (XMALLOC): Ditto.
5214 * i386-tdep.c (XMALLOC): Ditto.
5215 * gdb-events.c (XMALLOC): Ditto.
5216 * d10v-tdep.c (XMALLOC): Ditto.
5217 * cli-out.c (XMALLOC): Ditto.
5218
5219 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
5220 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
5221 * ui-file.c, ui-out.c: Ditto.
5222
7d0766f3
AC
52232002-03-18 Andrew Cagney <ac131313@redhat.com>
5224
5225 * command.h (struct cmd_list_element): Add field context.
5226 (set_cmd_context, get_cmd_context): Declare.
5227 * cli/cli-decode.h: Ditto.
5228 * cli/cli-decode.c (get_cmd_context): New function.
5229 (set_cmd_context): New function.
5230 (add_cmd): Initialize context.
5231 Part of fixing PR gdb/145 and PR gdb/146.
5232
5913bcb0
AC
52332002-03-17 Andrew Cagney <ac131313@redhat.com>
5234
1868c04e
AC
5235 * cli/cli-decode.c (cmd_type): New function.
5236 * command.h (cmd_type): Declare.
5237 * infrun.c (set_schedlock_func): Call function cmd_type.
5238 * kod.c (kod_set_os): Call cmd_type.
5239 * cris-tdep.c (cris_version_update): Use function cmd_type.
5240 (cris_mode_update, cris_abi_update): Ditto.
5241
5913bcb0
AC
5242 * command.h: (execute_cmd_post_hook): Declare.
5243 (execute_cmd_pre_hook): Declare.
5244 * cli/cli-script.c (clear_hook_in_cleanup): New function.
5245 (execute_cmd_post_hook, execute_cmd_pre_hook): New
5246 functions. Execute pre/post hook while ensuring that afterwords
5247 hook_in is cleared.
5248 * top.c (execute_command): Use execute_cmd_post_hook, and
5249 execute_cmd_pre_hook to execute pre/post commands.
5250 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
5251 hook_stop_stub.
5252 (hook_stop_stub): Call execute_cmd_pre_hook.
5253
b51450c9
AC
52542002-03-17 Andrew Cagney <ac131313@redhat.com>
5255
5256 * kod.c (kod_set_os): Revert previous change. Is called by ``info
5257 set'' and this leads to a core dump. Move xstrdup of
5258 operating_system to after check that it is not NULL.
5259
f66c9f11
AC
52602002-03-17 Andrew Cagney <ac131313@redhat.com>
5261
8e694ecf
AC
5262 * kod.c (kod_set_os): Remove unnecessary check that
5263 ``command->type'' is set_cmd.
5264
f66c9f11
AC
5265 * valprint.c (set_input_radix): Use input_radix.
5266 (set_output_radix): Use output_radix.
5267 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
5268 isn't reverted.
5269
9d01611c
AC
52702002-03-16 Andrew Cagney <ac131313@redhat.com>
5271
5272 * value.h (struct value): Delete field ``substring_addr''. Change
5273 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
5274 force_core_addr_align and force_pointer_aligh.
5275
5276 * value.h (struct value): Fix typo in above change.
9d01611c 5277
4156bb53
PS
52782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5279
5280 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
5281 to fix internal_error from ``maintenance print architecture''.
5282
0e5e3ea6
PS
52832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5284
5285 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
5286 for gcc versions after gcc-2.8.1.
5287
9b013045
PS
52882002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5289
5290 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
5291 for method resolution. Restore adjustment of ``this'' pointer after
5292 calling value_struct_elt, which was accidentally removed during the
5293 HP merge.
5294
376c9600
AC
52952002-03-15 Andrew Cagney <ac131313@redhat.com>
5296
5297 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
5298 value_of_register.
5299 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
5300 get_saved_register.
5301 * value.h (value_of_register): Update.
5302
a4db0f07
RH
53032002-03-14 Richard Henderson <rth@redhat.com>
5304
5305 * configure.in: Detect declaration for canonicalize_file_name.
5306 * utils.c (canonicalize_file_name): Declare, if needed.
5307 (gdb_realpath): Prefer realpath if available and usable.
5308 * config.in, configure: Rebuild.
5309
96383835
RH
53102002-03-14 Richard Henderson <rth@redhat.com>
5311
5312 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
5313 a constant array bound.
5314
5315 * MAINTAINERS: Add myself to write-after-approval.
5316
75245b24
MS
53172002-03-14 Michael Snyder <msnyder@redhat.com>
5318
5319 * symfile.c (syms_from_objfile): Return immediately if no syms.
5320 (symbol_file_add): Return immediately if no syms.
5321 (find_sym_fns): Return immediately if no syms.
5322
e641a1ca
ML
53232002-03-13 Michal Ludvig <mludvig@suse.cz>
5324
5325 * gdbserver/remote-util.c (remote_open): Print remote-side's
5326 IP address when remote debugging over the network.
7e336ba1 5327
df08bfec
DB
53282002-03-12 David O'Brien <obrien@FreeBSD.org>
5329
5330 * config/sparc/fbsd.mh: Fix copyright.
5331 * config/sparc/fbsd.mt: Likewise.
5332
9a57864f
RE
53332002-03-11 Richard Earnshaw <rearnsha@arm.com>
5334
5335 * MAINTAINERS: Fix typo in name of gdb warnings option.
5336 (x86-64): Fix formating so that this can be parsed by awk.
5337
dd7bf85e
DJ
53382002-03-10 Daniel Jacobowitz <drow@mvista.com>
5339
5340 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
5341 * defs.h: Include "gdb/signals.h".
5342 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
5343
33a0a2ac
ML
53442002-03-10 Michal Ludvig <mludvig@suse.cz>
5345
5346 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 5347 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
5348 from x86-64-tdep.h
5349
dd824b04
DJ
53502002-03-10 Daniel Jacobowitz <drow@mvista.com>
5351 Don Howard <dhoward@redhat.com>
5352
5353 * mips-tdep.c (ST0_FR): Define.
5354 (mips2_fp_compat): New function, temporarily disabled.
5355 (mips_read_fp_register_single): New function.
5356 (mips_read_fp_register_double): New function.
5357 (mips_print_register): Use them.
5358 (do_fp_register_row): Likewise.
5359
6a41ff59
AC
53602002-03-09 Andrew Cagney <ac131313@redhat.com>
5361
5362 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
5363 approval''.
5364
4ea09c10
PS
53652002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5366
5367 * stabsread.c (read_member_functions): Fix is_stub test for
5368 static member functions, improve comment.
5369
6ccc741d
RE
53702002-03-07 Richard Earnshaw <rearnsha@arm.com>
5371
5372 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
5373 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
5374 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
5375 commands that set boolean values.
5376 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
5377 (arm_rdi_resume): Always initialize PC.
5378 (arm_rdi_open): Don't use rslt as a boolean.
5379 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
5380 (arm_rdi_fetch_registers, arm_rdi_store_registers)
5381 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
5382 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
5383
438013df
AO
53842002-03-06 Alexandre Oliva <aoliva@redhat.com>
5385
5386 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
5387 * configure: Rebuilt.
5388
70ed8774
SC
53892002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5390
5391 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
5392 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
5393
5ba2abeb
AC
53942002-03-06 Andrew Cagney <ac131313@redhat.com>
5395
5396 * cli/cli-decode.c (set_cmd_completer): New function.
5397 * command.h (set_cmd_completer): Declare.
5398 * cli/cli-decode.h (set_cmd_completer): Ditto.
5399
5400 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
5401 * cli/cli-cmds.c (init_cli_cmds): Ditto.
5402 * win32-nat.c (_initialize_inftarg): Ditto.
5403 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5404 * proc-api.c (_initialize_proc_api): Ditto.
5405 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
5406 * source.c (_initialize_source): Ditto.
5407 * exec.c (_initialize_exec): Ditto.
5408 * solib.c (_initialize_solib): Ditto.
5409 * top.c (init_main): Ditto.
5410 * tracepoint.c (_initialize_tracepoint): Ditto.
5411 * symfile.c (_initialize_symfile): Ditto.
5412 * printcmd.c (_initialize_printcmd): Ditto.
5413 * infcmd.c (_initialize_infcmd): Ditto.
5414 * corefile.c (_initialize_core): Ditto.
5415
f779ca99
AC
54162002-03-05 Andrew Cagney <ac131313@redhat.com>
5417
5418 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
5419
01a3934b
AC
54202002-03-05 Andrew Cagney <ac131313@redhat.com>
5421
5422 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
5423
37057839
AC
54242002-03-05 Andrew Cagney <ac131313@redhat.com>
5425
5426 * NEWS: Update headings, 5.2 has branched.
5427
c6ecbae5
DJ
54282002-03-04 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
5431 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
5432 (register_addr, REGISTER_RAW_SIZE): Likewise.
5433 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
5434 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
5435
e9f30c21
ML
54362002-03-03 Michal Ludvig <mludvig@suse.cz>
5437
5438 * MAINTAINERS (x86-64): Add myself.
5439 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
5440 changed value_ptr -> struct value *
5441
54394ac3
DB
54422002-03-01 David O'Brien <obrien@FreeBSD.org>
5443
5444 * configure.host (sparc64-*-freebsd): Add.
5445 * configure.tgt: Likewise.
5446 * config/sparc/fbsd.mh: New file.
5447 * config/sparc/fbsd.mt: Likewise.
5448 * config/sparc/nm-fbsd.h: Likewise.
5449 * config/sparc/tm-fbsd.h: Likewise.
5450
bfe95955
DJ
54512002-03-01 Daniel Jacobowitz <drow@mvista.com>
5452
5453 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
5454 regformats/reg-s390x.dat.
5455
f33c6cbf
AC
54562002-03-01 Andrew Cagney <ac131313@redhat.com>
5457
5458 * utils.c: Add FIXME explaining true/false problem.
5459
5ecaa7dd
AC
54602002-02-28 Andrew Cagney <ac131313@redhat.com>
5461
5462 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
5463
2a251cc2
MC
54642002-02-28 Michael Chastain <mec@shout.net>
5465
5466 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
5467
6a8031a3 54682002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
5469
5470 * gdbserver/linux-s390-low.c: New file.
5471 * regformats/reg-s390.dat: New file.
5472 * regformats/reg-s390x.dat: New file.
5473 * gdbserver/configure.srv: Add S/390.
5474 * gdbserver/Makefile.in: Add S/390.
5475 * configure.tgt: Enable gdbserver for S/390.
5476
ac469903
EZ
54772002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
5478
5479 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
5480 first line of the doc string for "info dos", except at the end of
5481 the sentence, since the short help stops at the first period.
5482
985cb1a3
JM
54832002-02-28 Jason Merrill <jason@redhat.com>
5484
5485 * dwarf2read.c (dwarf_cfi_name): Add new codes.
5486
c570663e
FF
54872002-02-27 Fred Fish <fnf@redhat.com>
5488
5489 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
5490 comment (dumy -> dummy).
5491
43630227
PS
54922002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5493
5494 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
5495
b84911e8
RB
54962002-02-27 Rodney Brown <rbrown64@csc.com.au>
5497
5498 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
5499
58caa3dc
DJ
55002002-02-27 Daniel Jacobowitz <drow@mvista.com>
5501
5502 * gdbserver/acconfig.h: New file.
5503 * gdbserver/i387-fp.c: New file.
5504 * gdbserver/i387-fp.h: New file.
5505 * gdbserver/linux-x86-64.c: New file.
5506 * regformats/reg-x86-64.dat: New file.
5507 * configure.tgt: Add x86_64-*-linux* gdbserver support.
5508 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
5509 * gdbserver/configure.in: Add support for regsets.
5510 * gdbserver/config.in: Regenerate.
5511 * gdbserver/configure: Regenerate.
5512 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
5513 * gdbserver/linux-low.h: New file.
5514 * gdbserver/linux-low.c: Include "linux-low.h". Add support
5515 for regsets.
5516 * gdbserver/linux-arm-low.c: Include "linux-low.h".
5517 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
5518 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
5519 * gdbserver/linux-mips-low.c: Include "linux-low.h".
5520 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
5521 * gdbserver/linux-sh-low.c: Include "linux-low.h".
5522 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
5523 "i387-fp.h". Add PTRACE_GETREGS and friends.
5524 * gdbserver/regcache.c (supply_register): New function.
5525 (supply_register_by_name): New function.
5526 (collect_register): New function.
5527 (collect_register_by_name): New function.
5528
93652174
DJ
55292002-02-27 Daniel Jacobowitz <drow@mvista.com>
5530
5531 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
5532 (config.status): Add configure.srv dependency.
5533 (server_h): Add config.h dependency.
5534
a02e4a61
DJ
55352002-02-27 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
5538 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
5539 * gdbserver/configure.srv: Change i386-*-linux* to use
5540 reg-i386-linux.o.
5541
ce0eebec
AC
55422002-02-26 Andrew Cagney <ac131313@redhat.com>
5543
5544 * x86-64-tdep.c: Re-indent. Update copyright date.
5545
82dbc5f7
AC
55462002-02-26 Andrew Cagney <ac131313@redhat.com>
5547
5548 From Michal Ludvig <mludvig@suse.cz>:
5549 * x86-64-tdep.c (value.h): Delete.
5550 (gdb_assert.h): Include.
5551 (x86_64_register_convert_to_virtual,
5552 x86_64_register_convert_to_raw ): Add check which lets only
5553 floating-point values to be converted.
5554 (value_push): Delete.
5555 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
5556 (i386_gdbarch_init): Number of register_bytes fixed.
5557
e4621584
AC
55582002-02-26 Andrew Cagney <ac131313@redhat.com>
5559
5560 * MAINTAINERS: Add x86-64 target.
5561
81a9a963
AC
55622002-02-26 Andrew Cagney <ac131313@redhat.com>
5563
5564 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
5565 * osfsolib.c (solib_map_sections): Ditto.
5566 * irix5-nat.c (solib_map_sections): Ditto.
5567 * corelow.c (gdb_check_format): Ditto.
5568 * symfile.c (symfile_bfd_open): Ditto.
5569 * solib.c (solib_map_sections): Ditto.
5570 Fix PR gdb/354.
7e336ba1 5571
0f017ab9
AC
55722002-02-26 Andrew Cagney <ac131313@redhat.com>
5573
5574 * remote.c (_initialize_remote): By default, disable ``e'' and
5575 ``E'' step out-of-range packets.
5576
75738c29
AS
55772002-02-26 Andreas Schwab <schwab@suse.de>
5578
5579 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
5580 m68k_linux_frame_saved_pc.
5581 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
5582 in_sigtramp.
5583 (SIGCONTEXT_PC_OFFSET): Remove.
5584 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
5585 m68k_linux_sigtramp_saved_pc): New functions.
5586 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
5587 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
5588 (UCONTEXT_PC_OFFSET): Define.
5589 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
5590 non-RT and RT signal trampolines.
5591
7e8ed687
RE
55922002-02-26 Richard Earnshaw <rearnsha@arm.com>
5593
5594 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
5595 (TARGET_NBPG, STACK_END_ADDR): Delete
5596 (VARIABLES_INSIDE_BLOCK): Delete.
5597
6972bc8b
AC
55982002-02-25 Andrew Cagney <ac131313@redhat.com>
5599
5600 * utils.c (perror_with_name): Make string parameter constant.
5601 (print_sys_errmsg): Ditto.
5602 (query): Ditto.
5603 * defs.h (perror_with_name): Update.
5604 (print_sys_errmsg): Update.
5605 (query): Update.
5606
aa32f823
DJ
56072002-02-25 Daniel Jacobowitz <drow@mvista.com>
5608
5609 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
5610 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
5611
19caaa45
PS
56122002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5613
5614 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
5615 if it already matches the current architecture from the exec file.
5616 Include arch-utils.h for gdbarch_info_init prototype.
5617 * Makefile.in (rs6000-nat.o): Update dependencies.
5618
d951901f
EZ
56192002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
5620
5621 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
5622 list of exported variables.
5623
7ea81414
DJ
56242002-02-24 Daniel Jacobowitz <drow@mvista.com>
5625
5626 * gdbserver/configure.srv: New file.
5627 * gdbserver/configure.in: Use configure.srv instead
5628 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
5629 from it.
5630 * gdbserver/configure: Regenerated.
5631 * gdbserver/terminal.h: New file.
5632 * gdbserver/Makefile.in: Update for configure changes. Remove
5633 more unneeded include paths.
5634
080fe24b
AC
56352002-02-24 Andrew Cagney <ac131313@redhat.com>
5636
5637 From wiz at danbala:
5638 * config/sparc/tm-sp64.h: Fix grammar and typos.
5639 Fix PR gdb/287.
5640
8605d56e
AC
56412002-02-24 Andrew Cagney <ac131313@redhat.com>
5642
5643 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
5644 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
5645 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
5646 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
5647 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
5648 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
5649 * s390-tdep.c: Ditto.
92362027
AC
5650 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
5651 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
5652 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
5653 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
5654 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
5655 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
5656 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
5657 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
5658 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
5659 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 5660 Fix PR gdb/378.
7e336ba1 5661
8ed32cc0
AC
56622002-02-23 Andrew Cagney <ac131313@redhat.com>
5663
a3007b6f
AC
5664 * lin-thread.c: Delete file.
5665 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
5666 to gdb_proc_service.h.
5667 * configure: Re-generate.
5668
50a9e2f1
AC
5669 * ocd.c (ocd_open): Do not try to open the "ocd" device.
5670 * serial.c (serial_open): Delete check for "ocd".
5671 Fix PR gdb/349.
5672
8b6e7932
AC
5673 * Makefile.in (linux-thread.o): Delete target.
5674 * linux-thread.c: Delete file.
5675
d155c46b
AC
5676 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
5677 renamed SH files to be consistent.
5678
8ed32cc0
AC
5679 * symtab.c (sort_search_symbols): Use xfree.
5680
0e18d038
RE
56812002-02-23 Richard Earnshaw <rearnsha@arm.com>
5682
5683 * arm-linux-tdep.c (arm_linux_init_abi): Register
5684 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
5685 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
5686 definition with undef, since we don't want the sysvr4 definition.
5687 (SKIP_TRAMPOLINE_CODE): Likewise.
5688
27aac7ff
AC
56892002-02-23 Andrew Cagney <ac131313@redhat.com>
5690
5691 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
5692
5693 * configure.in: (AC_CHECK_FUNCS) Added test for
5694 canonicalize_file_name Regenerated.
5695 * config.in, configure: Regenerated.
5696 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
5697 defined use canonicalize_file_name.
7e336ba1 5698
65a6e0ee
MC
56992002-02-23 Michael Chastain <mec@shout.net>
5700
5701 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
5702
47b95330
AC
57032002-02-23 Andrew Cagney <ac131313@redhat.com>
5704
5705 * README: Remove references to cygnus.com.
5706 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
5707 dot com'' form. Remove references to cygnus.com and sourceware.
5708
696f451b
AC
57092002-02-23 Andrew Cagney <ac131313@redhat.com>
5710
5711 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
5712 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
5713 1003.1-2001 no longer allows "head -1".
5714 * gdb/Makefile.in (version.c): Likewise.
5715 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
5716 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
5717 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
5718
bbaca940
AC
57192002-02-23 Andrew Cagney <ac131313@redhat.com>
5720
5721 * cli/cli-decode.c (cmd_cfunc_eq): New function.
5722 * command.h (cmd_cfunc_eq): Declare.
5723 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
5724
5725 * cli/cli-cmds.h (is_complete_command): Change parameter to a
5726 ``struct cmd_list_element *''.
5727 * cli/cli-cmds.c (is_complete_command): Update. Use
5728 cmd_cfunc_eq.
5729 * top.c (execute_command): Pass the command to
5730 is_complete_command.
5731 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
5732
b8b8b047
AC
57332002-02-23 Andrew Cagney <ac131313@redhat.com>
5734
5735 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
5736 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
5737 architecture defines.
5738 * s390-tdep.c (s390_gdbarch_init): Likewise.
5739
19d3fc80
RE
57402002-02-23 Richard Earnshaw <rearnsha@arm.com>
5741
5742 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
5743 (arm_linux_push_arguments): Likewise.
5744 (arm_linux_init_abi): Register them. Also register linux-specific
5745 call_dummy_words.
5746 (find_minsym_and_objfile): Use strcmp, not STREQ.
5747 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
5748 (arm_linux_call_dummy_words): Delete declaration.
5749 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
5750 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
5751 declarations.
5752 (LOWEST_PC): Delete.
5753
3ab13650
PS
57542002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5755
5756 * maint.c (print_section_info): Do not prepend `0x' to filepos
5757 output, it will be handled by local_hex_string_custom.
5758
19d3fc80 57592002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
5760
5761 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
5762 (store_newfpe_double, store_newfpe_extended, store_fpregister)
5763 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
5764
d85a5daf
JB
57652002-02-22 Jim Blandy <jimb@redhat.com>
5766
5767 Indicate that the bcache functions don't change the strings
5768 they're passed.
5769 * bcache.h (bcache, hash): Add `const' keywords to declarations.
5770 * bcache.c (bcache, hash): Add `const' keywords to definitions.
5771
eeb25b8a
PM
57722002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
5773
5774 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
5775
6badb179
CF
57762002-02-21 Christopher Faylor <cgf@redhat.com>
5777
5778 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
5779 find the complete path to a loaded DLL.
5780
e8717518
FF
57812002-02-21 Fred Fish <fnf@redhat.com>
5782
5783 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
5784 that marks the end of the range of a function, enter a line number
5785 entry that has a line number of zero and a PC offset that matches
5786 the end of the function. This starts a range of PC's for which no
5787 line number information is known.
5788 * symtab.c (find_pc_sect_line): If our best fit is in a range of
5789 PC's for which no line number info is found (line number is zero)
5790 then we didn't find any valid line information.
5791 * symtab.h: Document use of zero line number entry.
5792
9abe5450
EZ
57932002-02-21 Elena Zannoni <ezannoni@redhat.com>
5794
5795 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
5796 (have_ptrace_getvrregs): Define for run time checks.
5797 (gdb_vrregset_t): New type for Altivec register handling.
5798 (fetch_register, store_register): Fetch/store altivec register
5799 when needed.
5800 (fetch_altivec_register, store_altivec_register): New functions.
5801 (supply_vrregset, fill_vrregset): New functions.
5802 (fetch_altivec_registers, store_altivec_registers): New functions.
5803 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
5804 registers as well.
5805
aaa38bb5
AJ
58062002-02-21 Jiri Smid <smid@suse.cz>
5807
5808 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
5809
b34db576
RE
58102002-02-21 Richard Earnshaw <rearnsha@arm.com>
5811
5812 * Makefile.in (armnbsd-nat.o): Update dependencies.
5813 * armnbsd-nat.c (supply_gregset): New function. Common code to
5814 supply the integer register set.
5815 (supply_fparegset): New function. Similar for FPA registers.
5816 (fetch_regs, fetch_fp_regs): Use them.
5817 (fetch_core_registers): Likewise.
5818 (fetch_elfcore_registers): New function.
5819 (arm_netbsd_elfcore_fns): New core-file type specification.
5820 (_initialize_arm_netbsd_nat): Register it.
5821
3e56fc4b
RE
58222002-02-21 Richard Earnshaw <rearnsha@arm.com>
5823
5824 * armnbsd-nat.c: Include gdbcore.h.
5825 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
5826 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
5827 'void' to declaration, to shut up ARI.
5828 (fetch_core_registers): Make static. Rewrite using supply_register.
5829 (arm_netbsd_core_fns): New core-file type specification.
5830 (_initialize_arm_netbsd_nat): New function.
5831
097f6b0b
CF
58322002-02-21 Christopher Faylor <cgf@redhat.com>
5833
5834 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
5835 value.
5836
c914e0cc
CF
58372002-02-20 Christopher Faylor <cgf@redhat.com>
5838
5839 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
5840 fails.
5841
385fa495
DJ
58422002-02-20 Daniel Jacobowitz <drow@mvista.com>
5843
5844 * jv-exp.y (parse_number): Change type of implicit longs
5845 to builtin_type_uint64.
5846
e5f1222d
DJ
58472002-02-20 Daniel Jacobowitz <drow@mvista.com>
5848
5849 * gdbserver/linux-low.c (mywait): Change argument to waitpid
5850 to be an integer instead of a `union wait'.
5851
75c9abc6
DJ
58522002-02-20 Daniel Jacobowitz <drow@mvista.com>
5853
5854 * mips-linux-nat.c: Call the operating system GNU/Linux.
5855 * mips-linux-tdep.c: Likewise.
5856 * mips-tdep.c: Likewise.
5857
551792a5
DJ
58582002-02-20 Daniel Jacobowitz <drow@mvista.com>
5859
5860 Fix PR gdb/265.
5861 * jv-exp.y (parse_number): Handle 64-bit integers.
5862
ee6e2b82
DJ
58632002-02-20 Daniel Jacobowitz <drow@mvista.com>
5864
5865 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
5866 AC_STDC_HEADERS to AC_HEADER_STDC.
5867 * gdbserver/configure: Regenerated.
5868
a48442a0
RE
58692002-02-20 Richard Earnshaw <rearnsha@arm.com>
5870
5871 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
5872 is defined.
5873 * sparc-tdep.c (get_longjmp_target): Likewise.
5874
fe419ffc
RE
58752002-02-20 Richard Earnshaw <rearnsha@arm.com>
5876
5877 * News: Add news about ARM and Multi-arch. Mention the new target
5878 arm*-*-netbsd*.
5879
5832ed7e
JB
58802002-02-19 Jim Blandy <jimb@redhat.com>
5881
5882 * stabsread.c (error_type_complaint): Improve error message.
5883
84563040
DJ
58842002-02-19 Daniel Jacobowitz <drow@mvista.com>
5885
5886 * gdbserver/README: Update documentation.
5887 * gdbserver/configure.in: Update configury to match documentation.
5888 * gdbserver/Makefile.in: Likewise.
5889 * gdbserver/configure: Regenerated.
5890 * gdbserver/aclocal.m4: New file, generated by aclocal.
5891 * gdbserver/config.in: New file, generated by autoheader.
5892
375fd65b
RE
58932002-02-19 Richard Earnshaw <rearnsha@arm.com>
5894
5895 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5896 armnbsd-nat.c.
5897
08216dd7
RE
58982002-02-19 Richard Earnshaw <rearnsha@arm.com>
5899
5900 * arm-tdep.h (enum arm_float_model): New enum.
5901 (struct gdbarch_tdep): Add fp_model.
5902 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5903 up floating-point conversions until we know the floating-point model
5904 in use by the inferior. Don't complain about being unable to
5905 determine the ABI of the inferior when we don't have one.
5906 (arm_extract_return_value): Support different floating-point models.
5907 (arm_store_return_value): Likewise.
aaa38bb5 5908 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
5909 ARM_FLOAT_SOFT.
5910 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5911
65d6d66a
PS
59122002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5913
5914 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5915 of ``current_gdbarch''.
5916
47221191
RE
59172002-02-19 Richard Earnshaw <rearnsha@arm.com>
5918
5919 * armnbsd-nat.c : ANSIfy all function declarations.
5920 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5921 (fetch_inferior_registers): Re-implement in terms of above.
5922 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5923 (store_inferior_registers): Re-implement in terms of above.
5924
fdf39c9a
RE
59252002-02-19 Richard Earnshaw <rearnsha@arm.com>
5926
aaa38bb5 5927 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
5928 kernel.
5929 * arm-linux-tdep.c: Likewise.
5930 * config/arm/tm-linux.h: Likewise.
5931
93247f88
RE
59322002-02-19 Richard Earnshaw <rearnsha@arm.com>
5933
5934 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5935 * config/arm/nbsd.mt (TM_FILE): Delete.
5936 * config/arm/tm-nbsd.h: Delete.
5937
d7b486e7
RE
59382002-02-19 Richard Earnshaw <rearnsha@arm.com>
5939
5940 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5941 Initialize CALL_DUMMY_LENGTH.
5942
41d39a95
RE
59432002-02-19 Richard Earnshaw <rearnsha@arm.com>
5944
5945 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5946 function.
5947 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 5948 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
5949 defines one thing and that is incorrect for this port.
5950 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5951
e1195560
PM
59522002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5953
5954 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5955
c1748f97
PM
59562002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5957
5958 * win32-nat.c (display_selector): New function. Displays information
5959 about the information returned by GetThreadSelectorEntry API function.
5960 (display_selectors): New function. Displays the infomation of
5961 the selector given as argument, or of CS, DS ans FS selectors
5962 if no argument is given.
5963 ( _initialize_inftarg): Add "w32" as info prefix command.
5964 Add "info w32 selector" as command calling display_selectors.
5965
e41e6bbf
PM
59662002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5967
5968 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5969 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5970 if not defined.
5971
0d3a9f48
RE
59722002-02-18 Richard Earnshaw <rearnsha@arm.com>
5973
5974 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5975
3fb4b924
RE
59762002-02-18 Richard Earnshaw <rearnsha@arm.com>
5977
5978 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5979 (arm_fix_call_dummy): Call it.
5980 (arm_call_dummy_breakpoint_offset): Delete.
5981 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5982 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5983
7f55af32
AC
59842002-02-18 Andrew Cagney <ac131313@redhat.com>
5985
5986 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5987 Default to func_frame_chain_valid.
5988 * gdbarch.h, gdbarch.c: Re-generate.
5989 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5990
05f13b9c
EZ
59912002-02-18 Elena Zannoni <ezannoni@redhat.com>
5992
5993 * ppc-linux-nat.c: Update copyright.
5994 (fetch_register, store_register): Add tid parameter, don't compute
5995 tid here.
5996 (fetch_ppc_registers, store_ppc_registers): Add tid
5997 parameter. Pass it along to callees.
5998 (fetch_inferior_registers, store_inferior_registers): Compute tid
5999 here, and pass it to calleed functions.
6000 (fill_gregset, supply_fpregset): Clean up formatting.
6001
d7afb4c9
RE
60022002-02-18 Richard Earnshaw <rearnsha@arm.com>
6003
6004 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
6005 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
6006
9df628e0
RE
60072002-02-18 Richard Earnshaw <rearnsha@arm.com>
6008
6009 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
6010 * gdbarch.c gdbarch.h: Regenerate.
6011 * breakpoint.c (create_longjmp_breakpoint): Always compile this
6012 function.
6013 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
6014 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
6015 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
6016
6017 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
6018 * arm-tdep.c (arm_get_longjmp_target): New function.
6019 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
6020 this to a positive value register arm_get_longjmp_target as the
6021 longjmp handler.
6022 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
6023 (arm_linux_init_abi): Set up longjmp description in tdep.
6024 * armnbsd-nat.c (get_longjmp_target): Delete.
6025 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
6026 description in tdep.
6027 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
6028 (get_longjmp_target): Delete declaration.
6029 (GET_LONGJMP_TARGET): Delete.
6030 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
6031 (GET_LONGJMP_TARGET): Delete.
6032
57bc8964
KB
60332002-02-17 Kevin Buettner <kevinb@redhat.com>
6034
6035 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
6036 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
6037 of ``current_gdbarch''.
6038
83d31a92
TT
60392002-02-17 Tom Tromey <tromey@redhat.com>
6040
6041 * cli/cli-cmds.c (compare_strings): New function.
6042 (complete_command): Only print each unique item once.
6043 * completer.h (complete_line): Declare.
6044 * completer.c (complete_line): New function.
6045 (line_completion_function): Use it.
6046
17ef5d92
AC
60472002-02-16 Andrew Cagney <ac131313@redhat.com>
6048
6049 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
6050 * gdbarch.h, gdbarch.c: Re-generate.
6051
491b8946
DJ
60522002-02-16 Daniel Jacobowitz <drow@mvista.com>
6053
6054 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
6055
60562002-02-16 Daniel Jacobowitz <drow@mvista.com>
6057
6058 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6059 * valops.c (value_arg_coerce): Don't take the address of a reference
6060 to convert an argument to a reference.
6061
dfe7f3ac
CF
60622002-02-15 Christopher Faylor <cgf@redhat.com>
6063
6064 * win32-nat.c (get_image_name): New function.
6065 (handle_load_dll): Use get_image_name function.
6066 (get_child_debug_event): Avoid registering debug events until possibly
6067 execed process is started.
6068 (child_create_inferior): Allow invocation via shell so that command
6069 line redirection, etc. works ok.
6070 (_initialize_inftarg): Add new command: "set shell" to control whether
6071 a shell is used to start a process.
6072
1d33e73a
DJ
60732002-02-15 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
6076 instead of find_register_by_number.
6077 (cannot_store_register): Likewise.
6078
48cd0caa
PM
60792002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
6080
aaa38bb5 6081 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
6082 fprintf_unfiltered (gdb_stderr, ...).
6083
8656e7d8
DJ
60842002-02-15 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * gdbserver/gdbserver.1: Document --attach.
6087
66e810cd
RE
60882002-02-15 Richard Earnshaw <rearnsha@arm.com>
6089
6090 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
6091 descriptions.
6092 * arm-tdep.c (arm_default_arm_le_breakpoint)
6093 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
6094 (arm_default_thumb_be_breakpoint): New. Initialize them from
6095 traditional breakpoint defines.
6096 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
6097 (arm_gdbarch_init): Initialize new breakpoint variables.
6098 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
6099 (arm_linux_init_abi): Initialize linux-specific breakpoint.
6100 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
6101 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
6102 code out to ...
6103 (arm_netbsd_init_abi_common): ... here; new function.
6104 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
6105 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
6106 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
6107 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
6108
97e03143
RE
61092002-02-15 Richard Earnshaw <rearnsha@arm.com>
6110
6111 * arm-tdep.h (enum arm_abi): New enum.
6112 (struct gdbarch_tdep): New structure.
6113 (LOWEST_PC): Provide a default.
6114 (arm_gdbarch_register_os_abi): Declare new function.
6115 * arm-tdep.c (arm_abi_names): New array.
6116 (process_note_abi_tag_sections): New function.
6117 (get_elfosabi): New function.
6118 (arm_gdbarch_register_os_abi): New function.
6119 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
6120 support for that ABI has been built in, then call the appropriate
6121 configuration routine. Use gdbarch_num_regs() to get the number
6122 of registers.
6123 (arm_dump_tdep): New function.
6124 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
6125 place-holder functions.
6126 (_initialize_arm_tdep): Register them.
6127 * config/arm/tm-arm.h (LOWEST_PC): Delete.
6128
6129 * armnbsd-tdep.c: New file.
6130 * Makefile.in (armnbsd-tdep.o): Add dependencies.
6131 * config/arm/nbsd.mt (TDEPFILES): Add it.
6132 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
6133
6134 * armnbsd-nat.c: Include regcache.h.
6135 * Makefile.in (armnbsd-nat.o): Update dependency list.
6136
6137 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
6138
ad68be46
DJ
61392002-02-14 Daniel Jacobowitz <drow@mvista.com>
6140
6141 * gdbserver/Makefile.in: Fix typos in target rules.
6142
003d6d1d
DJ
61432002-02-14 Daniel Jacobowitz <drow@mvista.com>
6144
aaa38bb5 6145 Fix part of PR gdb/267.
003d6d1d
DJ
6146 * linespec.c (find_methods): Handle constructors specially for now.
6147
6b230f1b
CV
61482002-02-14 Corinna Vinschen <vinschen@redhat.com>
6149
6150 * arm-tdep.c (arm_push_arguments): Eliminate special float type
6151 handling.
6152 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
6153 standard_coerce_float_to_double().
6154
1ea98d12
CF
61552002-02-14 Christopher Faylor <cgf@redhat.com>
6156
6157 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
6158 GDBINIT_FILENAME.
6159
dd47e6fd
EZ
61602002-02-14 Elena Zannoni <ezannoni@redhat.com>
6161
6162 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
6163 find_variant_by_name, because it confuses the multiarch
6164 framework. Return NULL if there isn't an architecture with the
6165 user supplied name, instead of forcing a different one without
6166 recording the change with the multiarch machinery.
6167 (find_variant_by_name): Delete.
6168
d7e39b9e
PS
61692002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6170
6171 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
6172 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
6173
76e42a4f
MH
61742002-02-13 Martin M. Hunt <hunt@redhat.com>
6175
aaa38bb5 6176 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
6177 print_frame_info_listing_hook, set current_source_symtab.
6178
0a30fbc4
DJ
61792002-02-14 Daniel Jacobowitz <drow@mvista.com>
6180
6181 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
6182 and remove unused $(INCLUDE_DIR).
6183 Add regcache.c to OBS.
6184 Add generated register protocol files to clean target.
6185 Update dependencies for new objects, obsolete old target code.
6186
6187 * gdbserver/linux-low.c: Remove all platform-specific code to
6188 new files. Remove various dead code. Update to use regcache
6189 functionality.
6190 * gdbserver/remote-utils.c (fromhex): Add return statement
6191 to quiet warning.
6192 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
6193 constant.
6194 (input_interrupt): Add integer parameter to match prototype
6195 of a signal handler.
6196 (outreg): Use register_data ().
6197 (prepare_resume_reply): Use gdbserver_expedite_regs.
6198 * gdbserver/server.c (main): Dynamically allocate own_buf because
6199 PBUFSIZ is no longer constant. Use registers_to_string () and
6200 registers_from_string ().
6201 * gdbserver/server.h: No longer include "defs.h". Add prototypes
6202 for error (), fatal (), and warning (). Update definition of
6203 PBUFSIZ to use regcache functionality. Add include guard.
6204 * gdbserver/utils.c (fatal): Add missing ``const''.
6205 (warning): New function.
6206
6207 * regformats/regdat.sh: Include "regcache.h" in generated files.
6208 Provide init_registers () function.
6209 * regformats/regdef.h: Add prototype for set_register_cache ().
6210 Add include guard.
6211
6212 * gdbserver/linux-arm-low.c: New file.
6213 * gdbserver/linux-i386-low.c: New file.
6214 * gdbserver/linux-ia64-low.c: New file.
6215 * gdbserver/linux-m68k-low.c: New file.
6216 * gdbserver/linux-mips-low.c: New file.
6217 * gdbserver/linux-ppc-low.c: New file.
6218 * gdbserver/linux-sh-low.c: New file.
6219
6220 * gdbserver/regcache.c: New file.
6221 * gdbserver/regcache.h: New file.
6222
6223 * gdbserver/low-linux.c: Removed obsolete file.
6224
4cc841d0
DJ
62252002-02-14 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
6228 * config/i386/linux.mt: Likewise.
6229 * config/ia64/linux.mt: Likewise.
6230 * config/m68k/linux.mh: Likewise.
6231 * config/powerpc/linux.mh: Likewise.
6232 * config/mips/linux.mt: Likewise.
6233
6234 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
6235
6236 * config/i386/i386lynx.mh: Mark gdbserver variables
6237 as (currently) obsolete for this target.
6238 * config/i386/nbsd.mt: Likewise.
6239 * config/i386/nbsdelf.mt: Likewise.
6240 * config/m32r/m32r.mt: Likewise.
6241 * config/m68k/m68klynx.mh: Likewise.
6242 * config/m68k/nbsd.mt: Likewise.
6243 * config/m68k/sun3os4.mh: Likewise.
6244 * config/mips/vr5000.mt: Likewise.
6245 * config/ns32k/nbsd.mt: Likewise.
6246 * config/pa/hppabsd.mh: Likewise.
6247 * config/pa/hppaosf.mh: Likewise.
6248 * config/powerpc/nbsd.mt: Likewise.
6249 * config/rs6000/rs6000lynx.mh: Likewise.
6250 * config/s390/s390.mt: Likewise.
6251 * config/s390/s390x.mt: Likewise.
6252 * config/sparc/sparclynx.mh: Likewise.
6253 * config/sparc/sun4os4.mh: Likewise.
6254 * config/i386/x86-64linux.mt: Likewise.
6255 * config/sparc/linux.mh: Likewise.
6256
a85f51e7
DJ
62572002-02-14 Daniel Jacobowitz <drow@mvista.com>
6258
6259 * configure.tgt: Configure gdbserver only for known working
6260 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
6261 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
6262 SUBDIRS if it is configured. Update comment for ${nativefile}.
6263 * configure: Regenerated.
6264
65554fef
MS
62652002-02-13 Michael Snyder <msnyder@redhat.com>
6266
670a52db
MS
6267 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
6268
6dbdc4a3
MS
6269 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
6270 (default_gcore_mach): Just return 0, work around a problem in bfd.
6271 (default_gcore_target): OK to return NULL if exec_bfd is null.
6272 (make_mem_sec): Use a cast, avoid a warning.
6273
6274 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 6275 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
6276 sizeof (host pointer) != sizeof (target pointer)).
6277 (procfs_make_note_section): Avoid overflow in psargs string.
6278
aaa38bb5 6279 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
6280 implementation return an error.
6281
62822002-02-13 Rodney Brown <rbrown64@csc.com.au>
6283
6284 * procfs.c (procfs_make_note_section): Provide a default definition
6285 (for alpha-dec-osf4.0f). Fix typos.
6286
1e4d76e7
EZ
62872002-02-13 Elena Zannoni <ezannoni@redhat.com>
6288
6289 * linux-proc.c: Add include of regcache.h.
6290 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
6291
b6d1a1d5
AC
62922002-02-13 Andrew Cagney <ac131313@redhat.com>
6293
6294 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
6295 * memattr.c (create_mem_region): Disallow useless empty region.
6296 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 6297 non-overlapping.
b6d1a1d5 6298
6c6ea35e
MC
62992002-02-13 Michael Chastain <mec@shout.net>
6300
6301 * defs.h: Kill CONST_PTR.
6302 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
6303 * c-lang.c (c_builtin_types): Likewise.
6304 * ch-lang.c (ch_builtin_types): Likewise.
6305 * f-lang.c (f_builtin_types): Likewise.
6306 * language.c (unknown_builtin_types): Likewise.
6307 * m2-lang.c (m2_builtin_types): Likewise.
6308 * p-lang.c (pascal_builtin_types): Likewise.
6309 * scm-lang.c (c_builtin_types): Likewise.
6310
3e0b0f48
KS
63112002-02-13 Keith Seitz <keiths@redhat.com>
6312
6313 * arm-tdep.h (arm_get_next_pc): Add declaration.
6314
67255d04
RE
63152002-02-13 Richard Earnshaw <rearnsha@arm.com>
6316
6317 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
6318 with other related struct-returning functions.
6319 (arm_extract_struct_value_address): New function.
6320 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
6321 initialize float_format, double_format and long_double_format as
6322 appropriate to the endianness of the target.
6323 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
6324 (arm_use_struct_convention): Delete declaration.
6325 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6326
079777f6
KS
63272002-02-13 Keith Seitz <keiths@redhat.com>
6328
6329 * defs.h (core_addr_to_string_nz): New function.
6330
34588f23
MK
63312002-02-13 Mark Kettenis <kettenis@gnu.org>
6332
6333 Apply missing bits of 2002-01-15 patch.
6334 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
6335 (fill_fpregset): Use i387_fill_fsave.
6336
49b563f9
KS
63372002-02-12 Keith Seitz <keiths@redhat.com>
6338
49b563f9
KS
6339 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
6340 (core_addr_to_string_nz): New function.
6341
aeb98c60
RE
63422002-02-11 Richard Earnshaw <rearnsha@arm.com>
6343
6344 * arm-linux-nat.c: Really include arm-tdep.h.
6345 * config/arm/tm-linux.h (struct type, struct value): Declare.
6346
65554fef
MS
63472002-02-11 Michael Snyder <msnyder@redhat.com>
6348
6349 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
6350 (gcore section): Ifdef for Solaris and Unixware only.
6351 (procfs_do_thread_registers): Unixware needs one lwpstatus
6352 per thread (not one prstatus or pstatus).
6353 (procfs_make_note_section): Iterate only over kernel threads (lwps),
6354 not over all gdb threads. For unixware, call elfcore_write_pstatus
6355 once before iterating over threads.
6356
34e8f22d
RE
63572002-02-11 Richard Earnshaw <rearnsha@arm.com>
6358
6359 * arm-tdep.h: New file.
6360 * arm-tdep.c: Include arm-tdep.h.
6361 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6362 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6363 (arm_print_float_info, arm_register_type, convert_to_extended)
6364 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6365 (arm_extract_return_value, arm_register_name): Make static.
6366 (arm_software_single_step): Similarly. Fix types in declaration.
6367 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
6368 (arm_store_return_value, arm_store_struct_return): New functions.
6369 (arm_gdbarch_init): Register the above functions. Also register
6370 call_dummy_start_offset, sizeof_call_dummy_words,
6371 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
6372 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 6373 max_register_virtual_size, register_size. Set up
34e8f22d
RE
6374 prologue_cache.saved_regs here, rather than ...
6375 (_initialize_arm_tdep): ... here.
6376 * config/arm/tm-arm.h (struct type, struct value): Delete forward
6377 declarations.
6378 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
6379 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
6380 (arm_print_float_info, arm_register_type, convert_to_extended)
6381 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
6382 (arm_extract_return_value, arm_register_name): Delete declarations.
6383 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
6384 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
6385 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
6386 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
6387 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6388 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
6389 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
6390 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
6391 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
6392 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
6393 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
6394 (arm_get_next_pc): No-longer static -- these are needed by the RDI
6395 interface.
6396 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
6397 * remote-rdi.c remote-rdp.c: Likewise.
6398 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
6399 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
6400 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
6401 definition.
6402
6403 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
6404 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
6405 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
6406 from non-ARM_ prefixed definitions.
6407 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
6408 all uses of above.
6409 * remote-rdi.c remote-rdp.c: Likewise.
6410 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
6411
148754e5
RE
64122002-02-11 Richard Earnshaw <rearnsha@arm.com>
6413
6414 * arm-tdep.c (arm_frameless_function_invocation)
6415 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6416 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6417 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6418 (arm_pop_frame, arm_get_next_pc): Make static.
6419 (arm_gdbarch_init): Register above in gdbarch structure.
6420 (arm_read_fp): Renamed from arm_target_read_fp.
6421 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
6422 * config/arm/tm-arm.h (arm_frameless_function_invocation)
6423 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
6424 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
6425 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
6426 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
6427 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
6428 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
6429 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
6430 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
6431 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 6432
434d2d4f
DJ
64332002-02-10 Daniel Jacobowitz <drow@mvista.com>
6434
6435 * symtab.c (compare_search_syms): New function.
6436 (sort_search_symbols): New function.
6437 (search_symbols): Sort symbols after searching rather than
6438 before.
6439
55241689
AC
64402002-02-10 Andrew Cagney <ac131313@redhat.com>
6441
6442 * NEWS: Linux -> GNU/Linux.
6443
028c194b
AC
64442002-02-10 Andrew Cagney <ac131313@redhat.com>
6445
6446 * gdbarch.sh: For for level one methods, disallow a definition
6447 when partially multi-arched. Add comments explaining rationale.
6448 * gdbarch.h: Re-generate.
6449
6acf50cd
AC
64502002-02-10 Andrew Cagney <ac131313@redhat.com>
6451
6452 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
6453 multi-arch partial.
aaa38bb5 6454
50248794
AC
64552002-02-10 Andrew Cagney <ac131313@redhat.com>
6456
6457 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
6458 field. Use diff -u.
6459 * gdbarch.c: Re-generate.
6460
c30e0066
AC
64612002-02-10 Andrew Cagney <ac131313@redhat.com>
6462
9b56c5f3 6463 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
6464 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
6465 partial.
6466
6e6d6484
AC
64672002-02-10 Andrew Cagney <ac131313@redhat.com>
6468
6469 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
6470 multi-arch partial.
6471 (PUSH_ARGUMENTS): Switch to using predefault.
6472 * gdbarch.c: Regenerate.
6473
c203844d
AC
64742002-02-10 Andrew Cagney <ac131313@redhat.com>
6475
6476 * valops.c (PUSH_ARGUMENTS): Delete definition.
6477 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
6478 partial. Default to default_push_arguments.
6479 * gdbarch.h, gdbarch.c: Regenerate.
6480
b5a2688f
AC
64812002-02-09 Andrew Cagney <ac131313@redhat.com>
6482
6483 * defs.h (throw_exception): Rename return_to_top_level. Update
6484 comments.
6485 * utils.c (error_stream, internal_verror, quit): Ditto.
6486 * top.c (throw_exception, catcher): Ditto.
6487 * sparclet-rom.c (sparclet_load): Ditto.
6488 * remote.c (interrupt_query, minitelnet): Ditto.
6489 * remote-sds.c (interrupt_query): Ditto.
6490 * remote-mips.c (mips_error, mips_kill): Ditto.
6491 * ocd.c (interrupt_query): Ditto.
6492 * monitor.c (monitor_interrupt_query): Ditto.
6493 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
6494 * target.h: Update comment.
aaa38bb5 6495
b5a2688f 6496 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 6497
2fa5c1e0
AC
64982002-02-09 Andrew Cagney <ac131313@redhat.com>
6499
6500 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
6501 default_double_format.
6502 * gdbarch.h, gdbarch.c: Re-generate.
6503 * findvar.c (floatformat_unknown): Delete variable definition.
6504 * doublest.h (floatformat_unknown): Delete variable declaration.
6505
da966255
JB
65062002-02-09 Jim Blandy <jimb@redhat.com>
6507
6508 * stabsread.c (read_type): Add code to parse Sun's syntax for
6509 prototyped function types.
6510
123a4891
AC
65112002-02-09 Andrew Cagney <ac131313@redhat.com>
6512
6513 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
6514 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
6515
fb39c8f3
PS
65162002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6517
6518 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
6519 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
6520 now _initialize_xcoffsolib gets called again and overrides the
6521 commands from solib.c in a native configuration.
6522
0b87a11d
MK
65232002-02-09 Mark Kettenis <kettenis@gnu.org>
6524
6525 * doublest.c (store_typed_floating): Don't try to return a value.
6526 Fixes PR gdb/290.
6527
bdc2fc72
JB
65282002-02-08 Jim Blandy <jimb@redhat.com>
6529
6530 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
6531 is prototyped and has no arguments, print its argument list as
6532 `(void)'.
6533
da69bbcf
CD
65342002-02-08 Chris Demetriou <cgd@broadcom.com>
6535
6536 * MAINTAINERS (write-after-approval): Add myself.
6537 (paper-trail): I've escaped!
aaa38bb5 6538
b69571f5
CF
65392002-02-08 Christopher Faylor <cgf@redhat.com>
6540
6541 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
6542 changes.
6543 (_initialize_check_for_gdb_ini): Ditto.
6544
f6871398
MH
65452002-02-08 Martin M. Hunt <hunt@redhat.com>
6546
6547 * win32-nat.c (cygwin_pid_to_str): Fix typo.
6548 xaprintf -> xasprintf.
6549
4e52d31c
PM
65502002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
6551
6552 * win32-nat.c: Remove use of printf and sprintf functions.
6553
39bbf761
RE
65542002-02-08 Richard Earnshaw <rearnsha@arm.com>
6555
6556 * arm-tdep.c (arm_frame_chain_valid): Make static.
6557 (arm_push_arguments): Likewise.
6558 (arm_gdbarch_init): New function.
6559 (_initialize_arm_tdep): Call it.
6560 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
6561 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
6562 (FRAME_CHAIN_VALID): Delete.
6563 (arm_frame_chain_valid): Delete declaration.
6564 (PUSH_ARGUMENTS): Delete.
6565 (arm_push_arguments): Delete declaration.
6566 (CALL_DUMMY_P): Delete.
6567
9c9532c9
CV
65682002-02-08 Andrew Cagney <ac131313@redhat.com>
6569 Corinna Vinschen <vinschen@redhat.com>
6570
6571 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
6572 on builtin float types.
6573
4e8f7a8b
DJ
65742002-02-08 Daniel Jacobowitz <drow@mvista.com>
6575
6576 * utils.c: Include <curses.h> before "bfd.h".
6577 * tui/tui-hooks.c: Likewise.
6578 * tui/tui.c: Likewise.
6579 * tui/tuiCommand.c: Likewise.
6580 * tui/tuiData.c: Likewise.
6581 * tui/tuiDataWin.c: Likewise.
6582 * tui/tuiDisassem.c: Likewise.
6583 * tui/tuiGeneralWin.c: Likewise.
6584 * tui/tuiIO.c: Likewise.
6585 * tui/tuiLayout.c: Likewise.
6586 * tui/tuiRegs.c: Likewise.
6587 * tui/tuiSource.c: Likewise.
6588 * tui/tuiSourceWin.c: Likewise.
6589 * tui/tuiStack.c: Likewise.
6590 * tui/tuiWin.c: Likewise.
6591
cd4bffcf
EZ
65922002-02-07 Elena Zannoni <ezannoni@redhat.com>
6593
6594 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
6595 to include space for pseudoregs as well. Update loops accordingly.
6596 (sh_fp_frame_init_saved_regs): Ditto.
6597 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
6598
26806ce2
AC
65992002-02-07 Andrew Cagney <ac131313@redhat.com>
6600
6601 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
6602 Add Richard Earnshaw to Arm maintainers.
6603
97fdab62
AC
66042002-02-07 Andrew Cagney <ac131313@redhat.com>
6605
a6b98203
AC
6606 * defs.h (warning_begin): Delete declaration.
6607
97fdab62
AC
6608 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
6609 Delete macro.
6610
78b29b40
MS
66112002-02-07 Michael Snyder <msnyder@redhat.com>
6612
aaa38bb5 6613 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
6614 Logic bug, remove misplaced else.
6615
d8849953
KD
66162002-02-07 Klee Dienes <klee@apple.com>
6617
6618 * fork-inferior.c (fork_inferior): Add '!' to the list of
6619 characters that need to be quoted when building a string for the
6620 shell. Quote '!' specifically with a backslash, since CSH chokes
6621 when trying to evaluate "str!str".
aaa38bb5 6622
095778a0
NC
66232002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
6624
6625 * rdi-share/host.h: Only provide a typedef for bool if it is not
6626 defined.
6627
1900040c
MS
66282002-02-04 Michael Snyder <msnyder@redhat.com>
6629
6630 * breakpoint.h (enum bptype): Add new overlay event bp type.
6631 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 6632
1900040c
MS
6633 * breakpoint.c (create_internal_breakpoint): New function.
6634 (internal_breakpoint_number): Moved into create_internal_breakpoint.
6635 (create_longjmp_breakpoint): Use create_internal_breakpoint.
6636 (create_thread_event_breakpoint): Ditto.
6637 (create_solib_event_breakpoint): Ditto.
6638 (create_overlay_event_breakpoint): New function.
6639 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
6640 (update_breakpoints_after_exec): Delete and re-initialize
6641 overlay event breakpoints after an exec. Add FIXME comment
6642 about longjmp breakpoint.
6643 (print_it_typical): Ignore overlay event breakpoints.
6644 (print_one_breakpoint): Ditto.
6645 (mention): Ditto.
6646 (bpstat_what): Do not stop for overlay event breakpoints.
6647 (delete_breakpoint): Don't delete overlay event breakpoints.
6648 (breakpoint_re_set_one): Delete the overlay event breakpoint.
6649 (breakpoint_re_set): Re-create overlay event breakpoint.
6650
6651 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
6652 (overlay_manual_command): Disable overlay breakpoints.
6653 (overlay_off_command): Disable overlay breakpoints.
6654
082fc60d
RE
66552002-02-06 Richard Earnshaw <rearnsha@arm.com>
6656
6657 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
6658 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
6659 to here from config/tm-arm.h.
6660 (coff_sym_is_thumb): Make static.
6661 (arm_elf_make_msymbol_special): New function.
6662 (arm_coff_make_msymbol_special): New function.
6663 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
6664 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
6665 (coff_sym_is_thumb): Delete declaration.
6666 (arm_elf_make_msymbol_special): Declare.
6667 (arm_coff_make_msymbol_special): Declare.
6668 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
6669 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
6670
039c5766
RE
66712002-02-06 Richard Earnshaw <rearnsha@arm.com>
6672
6673 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
6674
66752002-02-06 Richard Earnshaw <rearnsha@arm.com>
6676
6677 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
6678 * gdbarch.c gdbarch.h: Regenerate.
6679 * arch-utils.c (default_print_float_info): New function.
6680 * arch-utils.h (default_print_float_info): Prototype it.
6681 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
6682 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
6683 (PRINT_FLOAT_INFO): Document it.
6684
6685 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
6686 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
6687 (PRINT_FLOAT_INFO): Define.
6688
58fa08f0
PM
66892002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
6690
aaa38bb5 6691 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
6692 Add typecast to sprintf argument to suppress a warning.
6693
7393af7c
PM
66942002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
6695
58fa08f0 6696 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
6697 to allow easier handling of pass state.
6698 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
6699 that gives exception name and address.
6700 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 6701 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 6702 exceptions added.
aaa38bb5
AJ
6703 (child_continue): Correctly report continue_status.
6704 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 6705 TARGET_SIGNAL_0 (new default value).
aaa38bb5 6706 (child_resume): consider sig argument passed to decide if
7393af7c
PM
6707 the exception should be passed to debuggee or not.
6708
6af4589c
MS
67092002-02-05 Michael Snyder <msnyder@redhat.com>
6710
6711 * regcache.c (fetch_register): Call target_fetch_register
6712 only if we don't call FETCH_PSEUDO_REGISTER.
6713 (store_register): Call target_store_register only if we
6714 don't call STORE_PSEUDO_REGISTER.
6715
a2cf933a
EZ
67162002-02-05 Elena Zannoni <ezannoni@redhat.com>
6717
6718 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
6719 ELF_MAKE_MSYMBOL_SPECIAL.
6720 * gdbarch.c, gdbarch.h: Regenerate.
6721 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 6722 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
6723 * elfread.c (elf_symtab_read): Compile use of
6724 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
6725 multiarched.
6726 * coffread.c (coff_symtab_read): Ditto, for
6727 COFF_MAKE_MSYMBOL_SPECIAL.
6728
6bb7be43
JB
67292002-02-05 Jim Blandy <jimb@redhat.com>
6730
6731 * solib-svr4.c (svr4_truncate_ptr): New function.
6732 (svr4_relocate_section_addresses): Do the address arithmetic with
6733 the appropriate truncation for target addresses, even when
6734 CORE_ADDR is larger than a target address.
6735
e18651ec
DJ
67362002-02-05 Daniel Jacobowitz <drow@mvista.com>
6737
6738 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
6739 to (int *).
6740
6b2725be
DJ
67412002-02-05 Daniel Jacobowitz <drow@mvista.com>
6742
6743 * gdbserver/linux-low.c (kill_inferior): Remove commented out
6744 code.
6745
fca9e603
DJ
67462002-02-05 Daniel Jacobowitz <drow@mvista.com>
6747
6748 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
6749
6c537a52
DJ
67502002-02-05 Daniel Jacobowitz <drow@mvista.com>
6751
6752 * gdbserver/linux-low.c: Remove unused include files.
6753
d844cde6
DJ
67542002-02-05 Daniel Jacobowitz <drow@mvista.com>
6755
6756 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
6757 (read_inferior_memory): Use it.
6758 (write_inferior_memory): Likewise.
6759
d07c63e7
DJ
67602002-02-05 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
6763 grubbing through sys_errlist.
6764
da6d8c04
DJ
67652002-02-05 Daniel Jacobowitz <drow@mvista.com>
6766
6767 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
6768
5b421780
PM
67692002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6770 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
6771
9f60d481
AC
67722002-02-04 Andrew Cagney <ac131313@redhat.com>
6773
6774 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
6775 (do_sfunc, set_cmd_sfunc): New functions.
6776
6777 * command.h (struct cmd_list_element): Add field func.
6778 * cli/cli-decode.h (struct cmd_list_element): Ditto.
6779 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
6780 * cli/cli-decode.h: Ditto.
6781
6782 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
6783 (help_all, help_cmd_list): Ditto.
6784 (find_cmd, complete_on_cmdlist): Ditto.
6785 * top.c (execute_command): Ditto.
6786
6787 * cli/cli-setshow.c (do_setshow_command): Call func instead of
6788 function.sfunc.
6789
6790 * infcmd.c (notice_args_read): Fix function signature.
6791
6792 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
6793 * cli/cli-decode.c (add_set_cmd): Ditto.
6794 * utils.c (initialize_utils): Ditto.
6795 * maint.c (_initialize_maint_cmds): Ditto.
6796 * infrun.c (_initialize_infrun): Ditto.
6797 * demangle.c (_initialize_demangler): Ditto.
6798 * remote.c (add_packet_config_cmd): Ditto.
6799 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6800 * cris-tdep.c (_initialize_cris_tdep): Ditto.
6801 * proc-api.c (_initialize_proc_api): Ditto.
6802 * kod.c (_initialize_kod): Ditto.
6803 * valprint.c (_initialize_valprint): Ditto.
6804 * top.c (init_main): Ditto.
6805 * infcmd.c (_initialize_infcmd): Ditto.
6806 * corefile.c (_initialize_core): Ditto.
6807 * arm-tdep.c (_initialize_arm_tdep): Ditto.
6808 * arch-utils.c (initialize_current_architecture): Ditto.
6809 (_initialize_gdbarch_utils): Ditto.
6810 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
6811
6812 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
6813 * wince.c (_initialize_inftarg): Ditto.
6814 * symfile.c (_initialize_symfile): Ditto.
6815 * mips-tdep.c (_initialize_mips_tdep): Ditto.
6816 * language.c (_initialize_language): Ditto.
6817 * arc-tdep.c (_initialize_arc_tdep): Ditto.
6818
f9ba0717
MS
68192002-02-04 Michael Snyder <msnyder@redhat.com>
6820
6821 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
6822
0c74b2a7
DJ
68232002-02-04 Daniel Jacobowitz <drow@mvista.com>
6824
6825 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
6826 Add rules for building the register data files.
6827
c638789f
DJ
68282002-02-04 Daniel Jacobowitz <drow@mvista.com>
6829
6830 * regformats/regdat.sh: Add braces to the definition of
6831 expedite_regs_${arch}.
6832
db253027
DJ
68332002-02-04 Daniel Jacobowitz <drow@mvista.com>
6834
6835 * regformats/regdef.h (struct reg): Add comment describing the
6836 requirements for offset and size fields.
6837
206be19c
AS
68382002-02-04 Andreas Schwab <schwab@suse.de>
6839
6840 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
6841 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
6842
181c1381
RE
68432002-02-04 Richard Earnshaw <rearnsha@arm.com>
6844
6845 * gdbarch.sh (copyright): Update years in generated header.
6846 (SMASH_TEXT_ADDRESS): Add rule.
db253027 6847 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
6848 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
6849 * dbxread.c: Likewise.
6850 * dwarfread.c: Likewise.
6851 * elfread.c: Likewise.
6852 * somread.c: Likewise.
6853
6854 * arm-tdep.c (arm_smash_text_address): New function.
6855 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
6856
fa4ba8da
PM
68572002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
6858
6859 Add support for hardware watchpoints on win32 native.
aaa38bb5 6860 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 6861 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 6862 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
6863 of debug registers.
6864 (debug_registers_changed): New variable. Reflects when debug registers
6865 are changed and need to be written to inferior.
aaa38bb5 6866 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
6867 was set, used when new threads are created.
6868 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
6869 i386-nat code.
6870 (thread_rec): Set dr array if id is the thread of current_event .
6871 (child_continue, child_resume): Change the debug registers for all
6872 threads if debug_registers_changed.
6873 (child_add_thread): Change the debug registers if debug_registers_used.
6874 * config/i386/cygwin.mh: Add use of i386-nat.o file.
6875 Link nm.h to new nm-cygwin.h file.
6876 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
6877 of hardware registers.
6878
a73c86fb
AC
68792002-02-03 Andrew Cagney <ac131313@redhat.com>
6880
6881 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
6882 Restore behavour broken by 2002-01-20 Andrew Cagney
6883 <ac131313@redhat.com> IEEE_FLOAT removal.
6884
acf5ed49
DJ
68852002-02-03 Daniel Jacobowitz <drow@mvista.com>
6886
6887 * c-valprint.c (c_val_print): Pass a proper valaddr to
6888 cp_print_class_method.
6889 * valops.c (search_struct_method): If there is only one method
6890 and args is NULL, return that method.
6891
493d28d5
DJ
68922002-02-03 Daniel Jacobowitz <drow@mvista.com>
6893
6894 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6895 accessing tag_name directly.
6896
7495dfdb
DJ
68972002-02-03 Daniel Jacobowitz <drow@mvista.com>
6898
6899 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6900 of accessing tag_name directly.
6901
dd6bda65
DJ
69022002-02-03 Daniel Jacobowitz <drow@mvista.com>
6903
6904 PR gdb/280
6905 * gdbtypes.c (replace_type): New function.
6906 * gdbtypes.h (replace_type): Add prototype.
6907 * stabsread.c (read_type): Use replace_type.
6908
88fe217c
RE
69092002-02-03 Richard Earnshaw <rearnsha@arm.com>
6910
6911 * Makefile.in (memattr.o): Add missing dependencies rule.
6912
e5d66720
PS
69132002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6914
6915 * breakpoint.c (break_at_finish_command): Really export.
6916 (break_at_finish_at_depth_command): Ditto.
6917 (tbreak_at_finish_command): Ditto.
6918 * hppa-tdep.c: Include completer.h.
6919 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6920 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6921
fffee0be
AC
69222002-02-01 Andrew Cagney <ac131313@redhat.com>
6923
6924 * utils.c (do_write): New function.
6925 (error_stream): Rewrite combining the code from error_begin and
6926 verror.
6927 (verror): Rewrite using error_stream.
6928 (error_begin): Delete function.
6929
255e7dbf
AC
69302002-02-01 Andrew Cagney <ac131313@redhat.com>
6931
6932 * utils.c (error_begin): Make static.
6933 * defs.h (error_begin): Delete declaration.
6934
6935 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6936 (decode_line_1): Use cplusplus_error instead of error_begin,
6937 cplusplus_hint and return_to_top_level.
6938 * coffread.c (coff_symfile_read): Use error instead of error_begin
6939 and return_to_top_level.
6940 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6941
ddfe3c15
AC
69422002-02-01 Andrew Cagney <ac131313@redhat.com>
6943
6944 * language.h (type_error, range_error): Make string parameter
6945 constant.
6946 * language.c (warning_pre_print): Delete extern declaration.
6947 * dwarfread.c (warning_pre_print): Ditto.
6948 * language.c (type_error, range_error): Rewrite to use verror and
6949 vwarning instead of warning_begin.
6950
03ac34d5
MS
69512002-02-01 Michael Snyder <msnyder@redhat.com>
6952
261c4ca2
MS
6953 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6954 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 6955
e00d1dc8
AC
69562002-02-01 Andrew Cagney <ac131313@redhat.com>
6957
6958 * command.h (NO_FUNCTION): Delete macro.
6959 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6960 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6961 * tracepoint.c (_initialize_tracepoint): Ditto.
6962 * cli/cli-decode.c (add_set_cmd): Ditto.
6963 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 6964
76b79d6e
DJ
69652002-02-01 Daniel Jacobowitz <drow@mvista.com>
6966
6967 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6968 Update ``this'' pointer when calling virtual functions.
6969
799f9e91
MS
69702002-02-01 Michael Snyder <msnyder@redhat.com>
6971
c7bd442c 6972 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
6973 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6974
3cf384d4
DJ
69752002-02-01 Daniel Jacobowitz <drow@mvista.com>
6976
6977 * regformats/reg-arm.dat: New file.
6978 * regformats/reg-i386.dat: New file.
6979 * regformats/reg-ia64.dat: New file.
6980 * regformats/reg-m68k.dat: New file.
6981 * regformats/reg-mips.dat: New file.
6982 * regformats/reg-ppc.dat: New file.
6983 * regformats/reg-sh.dat: New file.
6984 * regformats/regdef.h: New file.
6985 * regformats/regdat.sh: New file.
6986
0defa245
RE
69872002-02-01 Richard Earnshaw <reanrsha@arm.com>
6988
6989 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6990 (arm_frame_args_address, arm_frame_locals_address): New functions.
6991 (arm_frame_num_args): New function.
6992 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6993 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6994 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6995
405f26e6
MS
69962002-01-31 Michael Snyder <msnyder@redhat.com>
6997
502fd408
MS
6998 * breakpoint.c (break_at_finish_command): Export.
6999 (break_at_finish_at_depth_command): Export.
7000 (tbreak_at_finish_command): Export.
7001 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
7002 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
7003 "tbreak" commands, which are HPPA specific.
7004
7d35e135
MS
7005 * printcmd.c (disassemble_command): Remove an ancient
7006 artifact of an old merge.
7007
aaa38bb5 7008 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
7009 Define enum constant values for overlay mode.
7010 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
7011 (overlay_is_mapped, overlay_auto_command,
7012 overlay_manual_command): Ditto.
d874f1e2 7013
aaa38bb5
AJ
7014 * breakpoint.c (insert_breakpoints, remove_breakpoint,
7015 breakpoint_here_p, breakpoint_inserted_here_p,
7016 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
7017 describe_other_breakpoints, check_duplicates, clear_command):
7018 Coding standard fixes.
7019
8add0441 7020 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 7021 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
7022 code: check bfd SEC_READONLY flag for section.
7023
e351066e
AC
70242002-01-31 Andrew Cagney <ac131313@redhat.com>
7025
7d35e135 7026 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 7027
8a48e967
DJ
70282002-01-30 Daniel Jacobowitz <drow@mvista.com>
7029
7030 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
7031 data symbols, since we search based on textlow and texthigh.
7032 (find_pc_sect_symtab): Likewise.
7033
f5a96129
AC
70342002-01-30 Andrew Cagney <ac131313@redhat.com>
7035
7036 * defs.h (vwarning): Declare.
f5a96129
AC
7037 * utils.c (vwarning): New function.
7038 (warning): Call vwarning.
7039 (warning_begin): Delete function.
7040
7041 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
7042 the warning message.
7043 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
7044 warning_begin.
7045
cefd4ef5
MS
70462002-01-30 Michael Snyder <msnyder@redhat.com>
7047
1a703748
MS
7048 * NEWS: Mention "set trust-readonly-sections" command.
7049 Mention generate-core-file command.
cefd4ef5 7050
3a11626d
MS
70512002-01-15 Michael Snyder <msnyder@redhat.com>
7052
7053 * target.c: New command, "set trust-readonly-sections on".
7054 (do_xfer_memory): Honor the suggestion to trust readonly sections
7055 by reading them from the object file instead of from the target.
7056 (initialize_targets): Register command "set trust-readonly-sections".
7057
d1c7e53b
AC
70582002-01-29 Andrew Cagney <ac131313@redhat.com>
7059
7060 * parse.c (target_map_name_to_register): Simplify, search regs and
7061 pseudo-regs using a single loop.
7062
e2c9a72c
AC
70632002-01-30 Andrew Cagney <ac131313@redhat.com>
7064
7065 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
7066
69824b4e
MK
70672002-01-15 Rodney Brown <rbrown64@csc.com.au>
7068
7069 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
7070 * config/i386/i386v42mp.mh: Add i387-nat.o .
7071 * i386v4-nat.c: Include i387-nat.h.
7072 (supply_fpregset): Use i387_supply_fsave.
7073 (fill_fpregset): Use i387_fill_fsave.
7074
6eb69eab
RE
70752002-01-30 Richard Earnshaw <rearnsha@arm.com>
7076
7077 * arm-tdep.c (arm_call_dummy_words): Define.
7078 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
7079 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
7080 (CALL_DUMMY_WORDS): Define.
7081 (arm_call_dummy_words): Declare.
7082 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
7083 (arm_linux_call_dummy_words): Declare.
7084
9852326a
AS
70852002-01-30 Andreas Schwab <schwab@suse.de>
7086
7087 * m68klinux-nat.c: Fix last change to use regcache_collect
7088 instead of referencing registers[] directly.
7089
977a3030
AC
70902002-01-29 Andrew Cagney <ac131313@redhat.com>
7091
7092 * parse.c (target_map_name_to_register): Delete code wrapped in
7093 #ifdef REGISTER_NAME_ALIAS_HOOK.
7094
2076c72b
MS
70952002-01-28 Michael Snyder <msnyder@redhat.com>
7096
7097 * regcache.c (legacy_read_register_gen): Need to be able to
7098 read pseudo-register as well as real register.
7099 (legacy_write_register_gen): Ditto.
7100
8fcc723b
AC
71012002-01-28 Andrew Cagney <ac131313@redhat.com>
7102
7103 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7104 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
7105 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
7106 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
7107 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
7108 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
7109 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
7110 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
7111 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
7112 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
7113 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
7114 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
7115 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
7116 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
7117 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
7118 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
7119 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
7120 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
7121 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
7122 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
7123
afe64c1a
AC
71242002-01-28 Andrew Cagney <ac131313@redhat.com>
7125
7126 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
7127 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
7128 (initialize_current_architecture): Update target_byte_order using
7129 information from BFD.
aaa38bb5 7130 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
7131 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
7132
75bc7ddf
AC
71332002-01-28 Andrew Cagney <ac131313@redhat.com>
7134
7135 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
7136 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
7137
7138 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
7139 #ifdef INVALID_FLOAT.
7140 * infcmd.c (do_registers_info): Ditto.
7141 * values.c (unpack_double): Ditto. Add comment.
7142
7143 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
7144 already commented out.
7145
0280a90a
AS
71462002-01-26 Andreas Schwab <schwab@suse.de>
7147
7148 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7149 * m68klinux-nat.c: Update ptrace interface for fetching/storing
7150 registers and add support for PTRACE_GETREGS.
7151
7072a954
AC
71522002-01-24 Andrew Cagney <ac131313@redhat.com>
7153
7154 GDB 5.1.1 released from 5.1 branch.
7155 * NEWS: Add 5.1.1 news.
7156 * README: Sync with 5.1 branch.
7157
86f902e0
FF
71582002-01-23 Fred Fish <fnf@redhat.com>
7159
7160 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
7161 stabstring on initial malloc. Reallocing will copy it for us,
7162 if necessary.
7163
8af51c36
EZ
71642002-01-23 Elena Zannoni <ezannoni@redhat.com>
7165
aaa38bb5 7166 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
7167 (HFILES_NO_SRCDIR): Remove hpread.h.
7168 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
7169 (hpread.o): Update dependencies.
7170 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
7171
7172 * hp-psymtab-read.c: Remove file.
7173 * hp-symtab-read.c: Remove file.
7174 * hpread.h: Remove file.
7175
7176 * hpread.c: Merge all contents of hp-psymtab-read.c,
7177 hp-symtab-read.c and hpread.h into this file, as it was prior to
7178 January 1999.
7179
7180 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 7181 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
7182 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
7183 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
7184
dc5cfeb6
EZ
71852002-01-23 Elena Zannoni <ezannoni@redhat.com>
7186
7187 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
7188 fill_gregset): Call gdbarch_tdep() just once, assign result to
7189 variable and use that, instead of calling the function several
7190 times.
7191
ea87b71b
AO
71922002-01-24 Alexandre Oliva <aoliva@redhat.com>
7193
7194 * configure.host: Accept sparcv9 as alias for sparc64.
7195 * configure.tgt: Likewise.
7196
13fc0c2f
KB
71972002-01-22 Kevin Buettner <kevinb@redhat.com>
7198
7199 * solib-aix5.c (build_so_list_from_mapfile)
7200 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
7201 arguments is not reversed.
7202 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
7203 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 7204
7bd872fe
EZ
72052002-01-22 Elena Zannoni <ezannoni@redhat.com>
7206
7207 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
7208 modified version of obsolete sh_fetch_pseudo_register.
7209 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
7210 (sh4_register_read): New function.
7211 (sh_pseudo_register_write): New function. Renamed and modified
7212 version of obsolete sh_store_pseudo_register.
7213 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
7214 (sh4_register_write): New function.
7215 (sh_gdbarch_init): Remove setting of gdbarch function
7216 fetch_pseudo_register and store_pseudo_register. Remove setting of
7217 register_convert_to_raw, register_convert_to_virtual,
7218 register_convertible.
7219 (sh_sh4_register_convertible): Delete. No longer needed. All is
7220 taken care by architecture specific functions
7221 register_read/register_write.
7222 (sh_sh4_register_convert_to_virtual): Make static.
7223 (sh_sh4_register_convert_to_raw): Ditto.
7224
069e84fd
AC
72252002-01-22 Andrew Cagney <ac131313@redhat.com>
7226
7227 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
7228 (floatformat_is_nan, floatformat_mantissa): Ditto.
7229
7230 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
7231 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
7232 builtin_type_ieee_double_little,
7233 builtin_type_ieee_double_littlebyte_bigword,
7234 builtin_type_m68881_ext, builtin_type_i960_ext,
7235 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
7236 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
7237 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
7238 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
7239
211a4f69
CV
72402002-01-22 Corinna Vinschen <vinschen@redhat.com>
7241
7242 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
7243 parameter. Set frameless flag if it exists and depended of
7244 whether the scanned function is frameless or not.
7245 (xstormy16_skip_prologue): If function is frameless, return
7246 result of xstormy16_scan_prologue().
7247 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
7248 call.
7249
f81353e4
EZ
72502002-01-21 Elena Zannoni <ezannoni@redhat.com>
7251
7252 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
7253 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
7254 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
7255 sh_sh4_register_byte, sh_sh4_register_raw_size,
7256 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
7257 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
7258 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
7259 sh_store_pseudo_register, sh_do_pseudo_register): Call
7260 gdbarch_tdep() just once, assign result to variable and use that,
7261 instead of calling the function several times.
7262
63c73a17
MK
72632002-01-20 Mark Kettenis <kettenis@gnu.org>
7264
7265 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
7266 macros instead of LAST_FPU_CTRL_REGNUM.
7267 (store_register): Likewise.
7268
39ad761d
JB
72692002-01-21 Jim Blandy <jimb@redhat.com>
7270
7271 * infcmd.c (run_command): Check that the `exec' target layer's BFD
7272 is up-to-date before running the program, not just when a program
7273 exits.
7274
3d74b771
FF
72752002-01-21 Fred Fish <fnf@redhat.com>
7276
7277 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
7278 when we have found all instructions we are looking for.
7279
966fbf70
RE
72802002-01-21 Richard Earnshaw <rearnsha@arm.com>
7281
7282 * arm-tdep.c (arm_register_name): New function.
7283 (arm_registers_names): Make static.
7284 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
7285 (arm_register_name): Declare.
7286 (REGISTER_NAME): Use it.
7287
c3b4394c
RE
72882002-01-21 Richard Earnshaw <rearnsha@arm.com>
7289 Kevin Buettner <kevinb@redhat.com>
7290
7291 Convert arm targets to new FRAME interface.
7292 * arm-tdep.c (struct frame_extra_info): Remove fsr.
7293 (arm_frame_find_save_regs): Delete.
7294 (arm_frame_init_saved_regs): New.
7295 (arm_init_extra_frame_info): Alloacte saved_regs as required.
7296 Allocate extra_info as required. Convert all uses of fsr.regs
7297 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
7298 to use extra_info.
7299 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
7300 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
7301 (check_prologue_cache, save_prologue_cache): Likewise.
7302 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
7303 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
7304 (FRAME_FIND_SAVED_REGS): Delete.
7305 (arm_frame_find_saved_regs): Delete prototype.
7306 (arm_frame_init_saved_regs): New prototype.
7307 (FRAME_INIT_SAVED_REGS): Define.
7308
61d99182
AC
73092002-01-20 Andrew Cagney <ac131313@redhat.com>
7310
7311 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
7312
6aaea291
AC
73132002-01-20 Andrew Cagney <ac131313@redhat.com>
7314
7315 From Jeff Law <law@redhat.com>:
7316 * infttrace.c: Include <sys/pstat.h>.
7317 (child_pid_to_exec_file): Revamp. Use pstat call to get the
7318 exec file if the ttrace equivalent fails.
7319
15f698d2
AC
73202002-01-20 Andrew Cagney <ac131313@redhat.com>
7321
7322 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
7323 (closeLogFile): Ditto.
7324
f86ddd7c
MC
73252002-01-20 Michael Chastain <mec@shout.net>
7326
7327 * top.c (print_gdb_version): Bump copyright year to 2002.
7328
904507ce
AC
73292002-01-20 Andrew Cagney <ac131313@redhat.com>
7330
7331 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
7332 Zannoni and Eli Zaretskii.
7333
d7f0b9ce
DJ
73342002-01-20 Daniel Jacobowitz <drow@mvista.com>
7335
7336 * buildsym.c: Update copyright years.
7337 * c-typeprint.c: Likewise.
7338 * dwarf2read.c: Likewise.
7339 * f-typeprint.c: Likewise.
7340 * gdbtypes.c: Likewise.
7341 * gdbtypes.h: Likewise.
7342 * hp-symtab-read.c: Likewise.
7343 * hpread.c: Likewise.
7344 * mdebugread.c: Likewise.
7345 * p-typeprint.c: Likewise.
7346
3fd3d7d2
AC
73472002-01-20 Andrew Cagney <ac131313@redhat.com>
7348
7349 * remote-sim.c (gdbsim_open): Simplify code testing the macro
7350 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
7351 byte-order selectable.
7352 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
7353 * arch-utils.c: Ditto.
7354 (set_endian): Ditto.
7355 (set_endian_from_file): Ditto.
7356 * gdbserver/low-sim.c (create_inferior): Ditto.
7357 * gdbarch.sh: Ditto.
7358 * gdbarch.h: Re-generate.
aaa38bb5
AJ
7359 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7360 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
7361 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
7362 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7363 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7364 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
7365 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
7366 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
7367 macro definition.
7368 * config/mips/tm-wince.h: Remove #undef of macro
7369 TARGET_BYTE_ORDER_SELECTABLE.
7370 * config/sh/tm-wince.h: Ditto.
7371
b02dede2
DJ
73722002-01-20 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
7375 member function fields. Add accessor macro
7376 TYPE_FN_FIELD_ARTIFICIAL.
7377 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
7378 * c-typeprint.c (c_type_print_base): Skip artificial member
7379 functions.
7380
c3643761
DJ
73812002-01-20 Daniel Jacobowitz <drow@mvista.com>
7382
7383 * f-typeprint.c: Delete unused function f_type_print_args.
7384 * p-typeprint.c: Delete unused function pascal_type_print_args.
7385
8176bb6d
DJ
73862002-01-20 Daniel Jacobowitz <drow@mvista.com>
7387
7388 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
7389 comment. Add ``artificial'' to ``union field_location''.
7390
7391 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
7392
7393 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
7394 * mdebugread.c (parse_symbol): Likewise.
7395 * stabsread.c (define_symbol): Likewise.
7396 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
7397 initializing TYPE_FIELD_BITPOS to n (obsolete).
7398 (hpread_doc_function_type): Likewise.
7399 * hpread.c (hpread_function_type): Likewise.
7400
7fd60527
AC
74012002-01-20 Andrew Cagney <ac131313@redhat.com>
7402
7403 * configure.in (host_makefile_frag): Only require a host makefile
7404 fragment when a native build.
7405 * configure: Re-generate.
7406
c2f05ac9
AC
74072002-01-20 Andrew Cagney <ac131313@redhat.com>
7408
7409 * doublest.h (floatformat_from_type): Declare.
7410 * doublest.c (floatformat_from_type): New function.
7411 (convert_typed_floating): Use.
7412
7413 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
7414 call to function floatformat_from_type.
7415
7416 * gdbarch.sh (IEEE_FLOAT): Delete.
7417 * gdbarch.h, gdbarch.c: Re-generate.
7418 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
7419 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
7420 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
7421 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
7422 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
7423 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
7424 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
7425 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
7426 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
7427 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
7428 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
7429 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
7430
7431 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
7432 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7433 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7434 * sh-tdep.c (sh_gdbarch_init): Ditto.
7435 * mips-tdep.c (mips_gdbarch_init): Ditto.
7436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7437 * cris-tdep.c (cris_gdbarch_init): Ditto.
7438
abf22e64
AJ
74392002-01-20 Jiri Smid <smid@suse.cz>
7440
7441 * configure.host, configure.tgt: Support x86-64.
7442 * NEWS: Note new target x86-64.
7443
b7c4cbf8
AJ
7444 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
7445 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
7446 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
7447 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
7448 x86-64-linux-nat.o): Fix dependencies.
7449
82600034
AC
74502002-01-19 Andrew Cagney <ac131313@redhat.com>
7451
7452 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
7453 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
7454 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
7455 * config/sparc/xm-sun4os4.h: Delete file.
7456 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 7457
bbe5c628
AC
74582002-01-19 Andrew Cagney <ac131313@redhat.com>
7459
7460 * config/sparc/sparclynx.mh (XM_FILE): Delete.
7461 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
7462 * config/m68k/m68klynx.mh (XM_FILE): Delete.
7463 * config/i386/i386lynx.mh (XM_FILE): Delete.
7464 * config/rs6000/xm-rs6000ly.h: Delete file.
7465 * config/sparc/xm-sparclynx.h: Delete file.
7466 * config/m68k/xm-m68klynx.h: Delete file.
7467 * config/i386/xm-i386lynx.h: Delete file.
7468 * config/xm-lynx.h: Delete file.
7469 * config/djgpp/fnchange.lst: Update.
7470
f8453e34
JT
74712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7472
7473 * alpha-tdep.c (alpha_register_byte): New function.
7474 (alpha_register_raw_size): Ditto.
7475 (alpha_register_virtual_size): Ditto.
7476 (alpha_skip_prologue_internal): Renamed from
7477 alpha_skip_prologue.
7478 (alpha_skip_prologue): New version that calls
7479 alpha_skip_prologue_internal.
7480 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
7481 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
7482 second argument from alpha_skip_prologue.
7483 (REGISTER_BYTE): Use alpha_register_byte.
7484 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
7485 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
7486 (FRAMELESS_FUNCTION_INVOCATION): Use
7487 generic_frameless_function_invocation_not.
7488 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
7489 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
7490
52d9e613
AC
74912002-01-19 Andrew Cagney <ac131313@redhat.com>
7492
7493 * config/mips/xm-news-mips.h: Delete file.
7494 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
7495
7496 * config/m88k/xm-m88k.h: Delete file.
7497 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
7498 * config/m88k/xm-delta88v4.h: Ditto.
7499 * config/m88k/xm-delta88.h: Ditto.
7500
7501 * config/alpha/xm-fbsd.h: Delete file.
7502 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
7503
7504 * config/sparc/xm-sparc.h: Delete file.
7505 * Makefile.in (xm-sun4os4.h): Delete dependency.
7506 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
7507 * config/sparc/xm-sun4os4.h: Ditto.
7508 * config/sparc/xm-linux.h: Ditto.
7509
7510 * config/i386/xm-windows.h: Delete file.
7511
2d1b2124
AC
75122002-01-19 Andrew Cagney <ac131313@redhat.com>
7513
7514 * utils.c: Include <sys/param.h> for MAXPATHLEN.
7515 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
7516
ee1f65f0
JT
75172002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7518
7519 * alpha-tdep.c (alpha_call_dummy_words): New.
7520 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
7521 (CALL_DUMMY_P): Define.
7522 (CALL_DUMMY_WORDS): Define.
7523 (SIZEOF_CALL_DUMMY_WORDS): Define.
7524
98081e55
PB
75252002-01-19 Per Bothner <per@bothner.com>
7526
7527 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
7528 isn't NULL, which can happen with some gcj-3.x-produced code.
7529
0d056799
JT
75302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * alpha-tdep.c (alpha_register_virtual_type): New function.
7533 (alpha_init_frame_pc_first): Ditto.
7534 (alpha_fix_call_dummy): Ditto.
7535 (alpha_store_struct_return): Ditto.
7536 (alpha_extract_struct_value_address): Ditto.
7537 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
7538 alpha_register_virtual_type.
7539 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
7540 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
7541 alpha_extract_struct_value_address.
7542 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
7543 (INIT_FRAME_PC): Use init_frame_pc_noop.
7544 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
7545
4604bcad
MK
75462002-01-19 Mark Kettenis <kettenis@gnu.org>
7547
7548 * i386gnu-nat.c: Include "i386-tdep.h".
7549 (fetch_fpregs): Simplify code dealing with uninitialized floating
7550 point states such that it doesn't require FP7_REGNUM.
7551
140f9984
JT
75522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7553
abf22e64
AJ
7554 * alpha-tdep.c (frame_extra_info): New.
7555 (alpha_find_saved_regs): Make static. Use
140f9984
JT
7556 frame->extra_info.
7557 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
7558 (alpha_frame_saved_pc): Use frame->extra_info.
7559 (temp_saved_regs): Don't declare as struct frame_saved_regs.
7560 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
7561 (init_extra_frame_info): Rename to...
7562 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 7563 (alpha_print_extra_frame_info): New function.
140f9984
JT
7564 (alpha_frame_locals_address): Ditto.
7565 (alpha_frame_args_address): Ditto.
abf22e64 7566 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
7567 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
7568 alpha_frame_args_address.
abf22e64 7569 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 7570 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
7571 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
7572 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
7573 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
7574 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
7575
d734c450
JT
75762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7577
7578 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
7579 (alpha_cannot_fetch_register): Ditto.
7580 (alpha_cannot_store_register): Ditto.
7581 (alpha_register_convertible): Ditto.
7582 (alpha_use_struct_convention): Ditto.
7583 * config/alpha/tm-alpha.h: Update copyright years.
7584 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
7585 (INNER_THAN): Use core_addr_lessthan.
7586 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
7587 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
7588 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
7589 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
7590 (FRAME_CHAIN): Remove unnecessary cast.
7591
b4ceaee6
AC
75922002-01-18 Andrew Cagney <ac131313@redhat.com>
7593
7594 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
7595 obsolete.
7596
0a65a603
AC
75972002-01-18 Andrew Cagney <ac131313@redhat.com>
7598
7599 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
7600 * monitor.c, remote-array.c, remote-bug.c: Ditto.
7601 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
7602 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
7603 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
7604 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
7605 * x86-64-linux-nat.c: Ditto.
7606
636a6dfc
JT
76072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7608
abf22e64 7609 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
7610 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
7611 (REGISTER_NAME): Define.
7612
acceddb6
JT
76132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
7616
ec32e4be
JT
76172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * alpha-tdep.c: Update copyright years.
7620 (alpha_next_pc): New function.
7621 (alpha_software_single_step): Ditto.
7622 * config/alpha/tm-alpha.h: Add prototype for
7623 alpha_software_single_step.
7624
e771a871
JT
76252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
7626
7627 * alphabsd-nat.c: Update copyright years.
7628 (fill_gregset): Use regcache_collect.
7629 (fill_fpregset): Likewise.
7630 (fetch_inferior_registers): Only fetch integer registers
7631 if requested to do so.
7632 (store_inferior_registers): Only store integer registers
7633 if requested to do so.
7634
7708fa01
AC
76352002-01-17 Andrew Cagney <ac131313@redhat.com>
7636
7637 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
7638 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
7639 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
7640 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
7641 * config/alpha/fbsd.mh (XDEPFILES): Delete.
7642 * config/arm/linux.mh (XDEPFILES): Delete.
7643 * config/arm/nbsd.mh (XDEPFILES): Delete.
7644 * config/i386/i386dgux.mh (XDEPFILES): Delete.
7645 * config/i386/i386sol2.mh (XDEPFILES): Delete.
7646 * config/i386/i386m3.mh (XDEPFILES): Delete.
7647 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
7648 * config/i386/i386gnu.mh (XDEPFILES): Delete.
7649 * config/i386/fbsd.mh (XDEPFILES): Delete.
7650 * config/i386/i386bsd.mh (XDEPFILES): Delete.
7651 * config/i386/i386sco5.mh (XDEPFILES): Delete.
7652 * config/i386/i386v4.mh (XDEPFILES): Delete.
7653 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
7654 * config/i386/i386sco4.mh (XDEPFILES): Delete.
7655 * config/i386/i386aix.mh (XDEPFILES): Delete.
7656 * config/i386/go32.mh (XDEPFILES): Delete.
7657 * config/i386/cygwin.mh (XDEPFILES): Delete.
7658 * config/i386/i386lynx.mh (XDEPFILES): Delete.
7659 * config/i386/i386mach.mh (XDEPFILES): Delete.
7660 * config/i386/i386v32.mh (XDEPFILES): Delete.
7661 * config/i386/linux.mh (XDEPFILES): Delete.
7662 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
7663 * config/i386/ncr3000.mh (XDEPFILES): Delete.
7664 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
7665 * config/i386/i386sco.mh (XDEPFILES): Delete.
7666 * config/i386/i386v.mh (XDEPFILES): Delete.
7667 * config/i386/nbsd.mh (XDEPFILES): Delete.
7668 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
7669 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
7670 * config/i386/symmetry.mh (XDEPFILES): Delete.
7671 * config/i386/obsd.mh (XDEPFILES): Delete.
7672 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
7673 * config/ia64/linux.mh (XDEPFILES): Delete.
7674 * config/ia64/aix.mh (XDEPFILES): Delete.
7675 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
7676 * config/m68k/dpx2.mh (XDEPFILES): Delete.
7677 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
7678 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
7679 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
7680 * config/m68k/linux.mh (XDEPFILES): Delete.
7681 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
7682 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
7683 * config/m68k/nbsd.mh (XDEPFILES): Delete.
7684 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
7685 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
7686 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
7687 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
7688 * config/m88k/delta88.mh (XDEPFILES): Delete.
7689 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
7690 * config/m88k/m88k.mh (XDEPFILES): Delete.
7691 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
7692 * config/mips/linux.mh (XDEPFILES): Delete.
7693 * config/mips/irix6.mh (XDEPFILES): Delete.
7694 * config/mips/irix5.mh (XDEPFILES): Delete.
7695 * config/mips/irix4.mh (XDEPFILES): Delete.
7696 * config/mips/irix3.mh (XDEPFILES): Delete.
7697 * config/mips/decstation.mh (XDEPFILES): Delete.
7698 * config/mips/mipsm3.mh (XDEPFILES): Delete.
7699 (NATDEPFILES): Move core-aout.o to here.
7700 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
7701 * config/pa/hpux1020.mh (XDEPFILES): Delete.
7702 * config/pa/hppabsd.mh (XDEPFILES): Delete.
7703 * config/pa/hppahpux.mh (XDEPFILES): Delete.
7704 * config/pa/hpux11w.mh (XDEPFILES): Delete.
7705 * config/pa/hppaosf.mh (XDEPFILES): Delete.
7706 * config/pa/hpux11.mh (XDEPFILES): Delete.
7707 * config/powerpc/aix.mh (XDEPFILES): Delete.
7708 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
7709 * config/powerpc/linux.mh (XDEPFILES): Delete.
7710 * config/romp/rtbsd.mh: Rename XDEPFILES.
7711 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
7712 * config/rs6000/aix4.mh (XDEPFILES): Delete.
7713 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
7714 * config/s390/s390.mh (XDEPFILES): Delete.
7715 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
7716 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
7717 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
7718 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
7719 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
7720 * config/sparc/nbsd.mh (XDEPFILES): Delete.
7721 * config/sparc/linux.mh (XDEPFILES): Delete.
7722 * config/vax/vaxult.mh (XDEPFILES): Delete.
7723 * config/vax/vaxult2.mh (XDEPFILES): Delete.
7724 * Makefile.in (DEPFILES): Remove XDEPFILES.
7725
375fc983
AC
77262002-01-17 Andrew Cagney <ac131313@redhat.com>
7727
7728 * utils.c (internal_verror): Fix comments, default is yes not no.
7729 Update queries to match. Default to quit and dump core.
7730
8926118c
AC
77312002-01-17 Andrew Cagney <ac131313@redhat.com>
7732
7733 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
7734 copyright.
7735 * defs.h, event-top.c, gdbcmd.h: Ditto.
7736 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
7737 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
7738 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
7739 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
7740 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
7741 * mi/mi-main.c:Ditto.
7742
7743 * stack.c, symfile.c: Update copyright.
7744
45b7b345
DJ
77452002-01-17 Daniel Jacobowitz <drow@mvista.com>
7746
db728ff7
DJ
7747 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
7748 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
7749 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
7750 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 7751
db728ff7
DJ
77522002-01-17 Daniel Jacobowitz <drow@mvista.com>
7753
7754 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
7755 * gdbserver/low-lynx.c (myattach): Likewise.
7756 * gdbserver/low-nbsd.c (myattach): Likewise.
7757 * gdbserver/low-sim.c (myattach): Likewise.
7758 * gdbserver/low-sparc.c (myattach): Likewise.
7759 * gdbserver/low-sun3.c (myattach): Likewise.
7760
7761 * gdbserver/low-linux.c (myattach): New function.
45b7b345 7762
db728ff7 7763 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
7764 (main): Handle "--attach".
7765
8de3c354
AC
77662002-01-16 Andrew Cagney <ac131313@redhat.com>
7767
7768 * MAINTAINERS (language support): Daniel Jacobwitz is C++
7769 maintainer.
7770
b0129042
DJ
77712002-01-15 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * c-typeprint.c (is_type_conversion_operator): Add additional
7774 check for non-conversion operators.
7775
ba8679fb 77762002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
7777
7778 * linux-proc.c: Add "info proc" command, a la procfs.c.
7779 (read_mapping): New function, abstract and re-use code.
7780 (linux_find_memory_regions): Use new func read_mapping.
7781 (linux_info_proc_cmd): New function, implement "info proc".
7782 (_initialize_linux_proc): Add new command "info proc".
7783
e4f9b4d5
MS
77842002-01-15 Michael Snyder <msnyder@redhat.com>
7785
7786 * symfile.c (generic_load): Use bfd_map_over_sections method
7787 instead of manipulating bfd structure members directly.
7788 (add_section_size_callback): New function, bfd sections callback
7789 used by generic_load.
7790 (load_sections_callback): New function, bfd sections callback
7791 used by generic_load.
7792
08cf96df
EZ
77932002-01-15 Elena Zannoni <ezannoni@redhat.com>
7794
abf22e64 7795 [Based on work by Jim Blandy]
08cf96df
EZ
7796 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
7797 (builtin_type_vec128): Export.
7798 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
7799 types.
7800 (builtin_type_vec128): New builtin type for 128 bit vector
7801 registers.
7802 (build_gdbtypes): Initialize builtin_type_v16qi and
7803 builtin_type_v8hi. Create the vec128 register builtin type
7804 structure.
7805 (build_builtin_type_vec128): New function.
abf22e64 7806 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
7807 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
7808 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
7809 AltiVec register to new builtin type.
7810
d7242108
DJ
78112001-01-15 Daniel Jacobowitz <drow@mvista.com>
7812
7813 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
7814 to make_cv_type.
7815
4ee3352d
AC
78162002-01-14 Andrew Cagney <ac131313@redhat.com>
7817
7818 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
7819 CLEAN_UP_REGISTER_VALUE.
7820 * regcache.c (supply_register): Update only call.
7821
f015b2e7
AC
78222002-01-14 Andrew Cagney <ac131313@redhat.com>
7823
7824 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7825 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7826 a29k-*-vxworks* targets as obsolete.
7827
356ae49d
MS
78282002-01-14 Michael Snyder <msnyder@redhat.com>
7829
7830 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
7831 until we can resolve portability issues.
7832 * gregset.h: Remove references to fpxregs.
7833 * gcore.c (gcore_command): Initialize note_sec to NULL.
7834
ade8f45e
AC
78352002-01-13 Andrew Cagney <ac131313@redhat.com>
7836
7837 * signals.c (target_signal_to_name): Rewrite. Only use
7838 signals[].name when in bounds and non-NULL.
abf22e64 7839
89c49e7a
AC
78402002-01-13 Andrew Cagney <ac131313@redhat.com>
7841
7842 From Petr Ledvina <ledvinap@kae.zcu.cz>:
7843 * signals.c (target_signal_to_name): Verify that SIG is within the
7844 bounds of the signals array.
7845
4daa9f9f
AC
78462002-01-13 Andrew Cagney <ac131313@redhat.com>
7847
7848 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
7849
ba4bbdcb
KS
78502002-01-13 Keith Seitz <keiths@redhat.com>
7851
7852 * stack.c (print_frame_info_base): Print the frame's pc
7853 only if when print_frame_info_listing_hook is not defined.
7854
575bbeb6
KS
78552002-01-13 Keith Seitz <keiths@redhat.com>
7856
7857 * varobj.c (varobj_set_value): Make sure that there were no
7858 errors evaluating the object before attempting to set its
7859 value.
7860 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
7861 so this offset adjustment is no longer necessary.
7862 (create_child): Don't set the error flag if the child is
7863 a CPLUS_FAKE_CHILD.
7864 (value_of_child): If value_fetch_lazy fails, return NULL
7865 so that callers will be notified that an error occurred.
7866 (c_value_of_variable): Delay check of variable's validity
7867 until later. We actually want all structs and unions to have
7868 the value "{...}".
7869 Do not return "???" for variables which could not be evaluated.
7870 This error condition must be returned to the caller so that it
7871 can get the error condition from gdb.
7872 (cplus_name_of_child): Adjust index for vptr before figuring
7873 out the name of the child.
7874 (cplus_value_of_child): If a child's (real) parent is not valid,
7875 don't even bother trying to give a value for it. Just return
7876 an error. Change all instances in this function.
7877 (cplus_type_of_child): If our parent is one of the "fake"
7878 parents, we need to get at the type of the real parent, and
7879 derive the child's true type using this information.
7880
b76898ab
AC
78812002-01-13 Andrew Cagney <ac131313@redhat.com>
7882
7883 From 2002-01-09 John Marshall <johnm@falch.net>:
7884 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
7885 sources.redhat.com, and tweak some related URLs which had
7886 suffered from linkrot.
7887
b6649e88
AC
78882002-01-13 Andrew Cagney <ac131313@redhat.com>
7889
7890 From Jeff law:
7891 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7892 structures passed in registers.
7893
82cc5033
EZ
78942002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7895
7896 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7897 white space which prevented compilation. Reported by DSK
7898 <dsk@student.unsw.edu.au>.
7899
ba5f2f8a
MS
79002002-01-11 Michael Snyder <msnyder@redhat.com>
7901
fbd35540
MS
7902 * symfile.c (build_section_addr_info_from_section_tab):
7903 Use bfd access method instead of manipulating bfd directly.
7904 (syms_from_objfile): Ditto.
7905 (simple_overlay_update_1): Ditto.
7906 (simple_overlay_update): Ditto.
7907 (generic_load): Ditto.
7908 (overlay_unmapped_address): FIXME comment, bfd access methods.
7909 (sections_overlap): FIXME comment, bfd access methods.
7910 (pc_in_mapped_range): FIXME comment, bfd access methods.
7911 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7912 (section_is_mapped): FIXME comment, bfd access methods.
7913 (section_is_overlay): FIXME comment, bfd access methods.
7914
ba5f2f8a
MS
7915 * symfile.c (generic_load): Whitespace and long line cleanups.
7916 Remove duplicate variable, change several local variables to
7917 more appropriate data types.
7918 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7919
17df2af6
AC
79202002-01-12 Andrew Cagney <ac131313@redhat.com>
7921
7922 From Peter Schauer:
7923 * language.c (longest_local_hex_string_custom): Use phex_nz to
7924 convert NUM to a hex string.
7925
ec920329
EZ
79262002-01-12 Elena Zannoni <ezannoni@redhat.com>
7927
7928 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7929 the function.
538a76d6 7930 Update Copyright year.
ec920329 7931
3abd2e01
AC
79322002-01-12 Andrew Cagney <ac131313@redhat.com>
7933
7934 * language.c (longest_raw_hex_string): Delete unused function.
7935
b21b22e0
PS
79362002-01-11 Petr Sorfa <petrs@caldera.com>
7937
7938 * MAINTAINERS (write-after-approval): Add myself.
7939 * dwarf2read.c (read_tag_string_type): Handling of
7940 DW_AT_byte_size.
7941 (read_tag_string_type): FORTRAN fix to prevent propagation of
7942 first string size.
7943 (set_cu_language): Handling of DW_LANG_Fortran95
7944
747fe712
RE
79452002-01-11 Richard Earnshaw <rearnsha@arm.com>
7946
7947 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7948 GETPID(inferior_ptid).
7949 (store_inferior_registers): Likewise.
7950
f1bea926
JM
79512002-01-10 Jason Merrill <jason@redhat.com>
7952
7953 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7954 Fix DW_OP_minus.
7955
ae940673
AC
79562002-01-10 Andrew Cagney <ac131313@redhat.com>
7957
7958 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7959 and bfd/elf32-sh-nbsd.c.
7960
00546b04
MS
79612002-01-10 Michael Snyder <msnyder@redhat.com>
7962
352ed7b4
MS
7963 * NEWS: Mention --pid and corefile/proc-id behavior change.
7964
c18be923
MS
7965 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7966 * gcore.c: Include cli/cli-decode.h instead of command.h.
7967
00546b04
MS
7968 * main.c (captured_main): Add new command line option "--pid".
7969 If the second command line argument (following the symbol-file)
7970 begins with a digit, try to attach to it before trying to open
7971 it as a corefile.
7972 (print_gdb_help): Document the "--pid" argument.
7973
db60ec62
EZ
79742002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7975
7976 * completer.c (command_completer): New function.
7977
7978 * completer.h <command_completer>: Add prototype.
7979
7980 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7981 completer for the "help" command.
7982
39c22d1a
JM
79832002-01-09 Jason Merrill <jason@redhat.com>
7984
7985 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7986
c564377f
MS
79872002-01-09 Michael Snyder <msnyder@redhat.com>
7988
975aec09
MS
7989 * i386-linux-nat.c (fill_fpxregset): Make global.
7990 (store_fpxregset): Ditto.
7991
db4a10fa
MS
7992 * gregset.h (gdb_fpxregset_t): Define.
7993 (supply_fpxregset): Prototype.
7994 (fill_fpxregset): Prototype.
7995
c564377f
MS
7996 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7997
c3d45d70
RE
79982002-01-09 Richard Earnshaw <rearnsha@arm.com>
7999
8000 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
8001 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
8002 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
8003
fcc87af1
AC
80042002-01-09 Andrew Cagney <ac131313@redhat.com>
8005
8006 * MAINTAINERS: Update target maintainer rules so that any
8007 Maintainer can approve a tested patch for a maintenance-only
8008 target.
8009
dd96c05b
RE
80102002-01-09 Richard Earnshaw <rearnsha@arm.com>
8011
d4297db9 8012 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 8013
d4297db9 8014 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
8015 IN_SIGTRAMP.
8016
145fdc6e
MS
80172002-01-08 Michael Snyder <msnyder@redhat.com>
8018
8019 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
8020 real name of the executable, rather than the /proc name.
8021
be4d1333
MS
80222002-01-03 Michael Snyder <msnyder@redhat.com>
8023
8024 Implement a "generate-core-file" command in gdb, save target state.
8025 * gcore.c: New file. Implement new command 'generate-core-file'.
8026 Save a corefile image of the current state of the inferior.
8027 * linux-proc.c: Add linux-specific code for saving corefiles.
8028 * target.h (struct target_ops): Add new target vectors for saving
8029 corefiles; to_find_memory_regions and to_make_corefile_notes.
8030 (target_find_memory_regions): New macro.
8031 (target_make_corefile_notes): New macro.
8032 * target.c (update_current_target): Inherit new target methods.
8033 (dummy_find_memory_regions): New place-holder method.
8034 (dummy_make_corefile_notes): New place-holder method.
8035 (init_dummy_target): Initialize new dummy target vectors.
8036 * exec.c (exec_set_find_memory_regions): New function.
8037 Allow the exec_ops vector for memory regions to be taken over.
8038 (exec_make_note_section): New function, target vector method.
8039 * defs.h (exec_set_find_memory_regions): Export prototype.
8040 * procfs.c (proc_find_memory_regions): New function, corefile method.
8041 (procfs_make_note_section): New function, corefile method.
8042 (init_procfs_ops): Set new target vector pointers.
8043 (find_memory_regions_callback): New function.
8044 (procfs_do_thread_registers): New function.
8045 (procfs_corefile_thread_callback): New function.
8046 * sol-thread.c (sol_find_memory_regions): New function.
8047 (sol_make_note_section): New function.
8048 (init_sol_thread_ops): Initialize new target vectors.
8049 * inftarg.c (inftarg_set_find_memory_regions): New function.
8050 Allow to_find_memory_regions vector to be taken over.
8051 (inftarg_set_make_corefile_notes): New function.
8052 Allow to_make_corefile_notes vector to be taken over.
8053 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
8054 interface layer if not target_has_execution (may be a corefile).
8055 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
8056 * config/sparc/sun4sol2.mh: Ditto.
8057 * config/alpha/alpha-linux.mh: Ditto.
8058 * config/arm/linux.mh: Ditto.
8059 * config/i386/x86-64linux.mh: Ditto.
8060 * config/ia64/linux.mh: Ditto.
8061 * config/m68k/linux.mh: Ditto.
8062 * config/mips/linux.mh: Ditto.
8063 * config/powerpc/linux.mh: Ditto.
8064 * config/sparc/linux.mh: Ditto.
8065
c6b92abd
MS
80662002-01-07 Michael Snyder <msnyder@redhat.com>
8067
8068 * arm-linux-nat.c: Remove references to regcache.c internal data
8069 (registers[] and register_valid[]).
8070
4b09dc8c
MS
80712002-01-07 Michael Snyder <msnyder@redhat.com>
8072
abf22e64
AJ
8073 * linux-proc.c: New file. Implement child_pid_to_exec_file,
8074 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
8075 symbol file and shlibs.
8076 * Makefile.in: Add rule for linux-proc.o.
8077 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
8078 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
8079 * config/arm/linux.mh: Ditto.
8080 * config/i386/linux.mh: Ditto.
8081 * config/i386/x86-64linux.mh: Ditto.
8082 * config/ia64/linux.mh: Ditto.
8083 * config/m68k/linux.mh: Ditto.
8084 * config/mips/linux.mh: Ditto.
8085 * config/powerpc/linux.mh: Ditto.
8086 * config/sparc/linux.mh: Ditto.
8087
c25b74ac
PM
80882002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
8089
8090 * win32-nat.c: Add i386-tdep.h dependency.
8091
94cd915f
MS
80922002-01-07 Michael Snyder <msnyder@redhat.com>
8093
c7cccb76
MS
8094 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
8095 instead of bfd_get_arch_size. Don't bail out just because
8096 there's no exec_bfd.
abf22e64 8097
34c0bd93
MS
8098 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
8099 * p-valprint.c (pascal_object_print_value): Ditto.
8100 * somread.c (som_symtab_read): Ditto.
8101 * symfile.c (simple_free_overlay_region_table): Ditto.
8102 * valops.c (value_assign): Ditto.
8103
21c1c920
MS
8104 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
8105 use tilde_expand and strerror for opening save-tracepoints file.
8106
5bbd998e
MS
8107 * thread-db.c (thread_db_new_objfile): Indendation fix.
8108
94cd915f
MS
8109 * infptrace.c (GDB_MAX_ALLOCA): New define.
8110 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 8111 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
8112 can be overridden with whatever value is appropriate to the host).
8113 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
8114 alloca to allocate potentially large buffer.
8115 * rs6000-nat.c (child_xfer_memory): Ditto.
8116 * symm-nat.c (child_xfer_memory): Ditto.
8117 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
8118
494e8a93
JSC
81192002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
8120
8121 From Nick Clifton <nickc@redhat.com>
8122 * d10v-tdep.c: Set STACK_START to 0x200bffe.
8123
d0e1d48e
MS
81242002-01-07 Michael Snyder <msnyder@redhat.com>
8125
abf22e64 8126 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
8127 Don't use exec_bfd if it's NULL.
8128
290b2c7a
MK
81292002-01-06 Mark Kettenis <kettenis@gnu.org>
8130
abf22e64 8131 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 8132
aef21287
AC
81332002-01-06 Andrew Cagney <ac131313@redhat.com>
8134
8135 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
8136 * gnu-nat.c: Ditto.
8137
30efa627
AC
81382002-01-06 Andrew Cagney <ac131313@redhat.com>
8139
8140 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
8141 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
8142 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
8143 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
8144 z8k-coff have not been multi-arched. Update z8k-coff build
8145 status.
8146
9b4ff276
AC
81472002-01-06 Andrew Cagney <ac131313@redhat.com>
8148
8149 * MAINTAINERS: Mark a29k target as obsolete.
8150 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
8151 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
8152 comments.
8153 * NEWS: Note that a29k targets are obsolete.
8154 * a29k-tdep.c: Mark as obsolete.
8155 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
8156 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
8157 a29k-*-vxworks* targets as obsolete.
8158 * remote-adapt.c: Obsolete.
8159 * remote-eb.c: Obsolete.
8160 * remote-mm.c: Obsolete.
8161 * remote-udi.c: Obsolete.
8162 * config/a29k/a29k-udi.mt: Obsolete.
8163 * config/a29k/a29k.mt: Obsolete.
8164 * config/a29k/tm-a29k.h: Obsolete.
8165 * config/a29k/tm-vx29k.h: Obsolete.
8166 * config/a29k/vx29k.mt: Obsolete.
8167
a9011d31
AC
81682002-01-05 Andrew Cagney <ac131313@redhat.com>
8169
8170 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
8171 with BFD_ENDIAN_BIG.
8172
9299404e
AC
81732002-01-05 Andrew Cagney <ac131313@redhat.com>
8174
8175 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
8176 * configure, config.in: Re-generate.
8177 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
8178 * defs.h: Do not include <endian.h>.
8179
7e89e357
JT
81802002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
8181
8182 * acconfig.h (HAVE_PT_GETXMMREGS): New.
8183 * config.in: Regenerate.
8184 * configure.in: Update copyright years.
8185 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
8186 * configure: Regenerate.
8187 * i386bsd-nat.c: Update copyright years.
8188 (fill_gregset): Use regcache_collect.
8189 (fetch_inferior_registers): Only fetch integer registers
8190 if requested to do so. Add support for XMM registers
8191 using PT_GETXMMREGS.
8192 (store_inferior_registers): Only store integer registers
8193 if requested to do so. Add support for XMM registers
8194 using PT_SETXMMREGS.
8195 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
8196 (store_inferior_registers): Remove.
8197 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
8198 (fetch_elfcore_registers): New function.
8199 (i386nbsd_elfcore_fns): New.
8200 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
8201 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
8202 i386bsd-nat.o.
8203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8204 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
8205 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
8206 * config/i386/tm-nbsd.h: Update copyright years.
8207 (HAVE_SSE_REGS): Define.
8208 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
8209 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
8210 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
8211 (SIGCONTEXT_PC_OFFSET): Remove.
8212 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
8213
a752853e
AC
82142002-01-05 Andrew Cagney <ac131313@redhat.com>
8215
8216 * configure.tgt: Remove powerpc-*-macos* target.
8217 * config/m68k/xm-mpw.h: Delete file.
8218 * config/xm-mpw.h: Delete file.
8219 * ser-mac.c: Delete file.
8220 * mpw-make.sed: Delete file.
8221 * mpw-config.in: Delete file.
8222 * mac-xdep.c: Delete file.
8223 * mac-gdb.r: Delete file.
8224 * mac-defs.h: Delete file.
8225 * mac-nat.c: Delete file.
8226 * config/powerpc/macos.mh: Delete file.
8227 * config/powerpc/macos.mt: Delete file.
8228 * config/powerpc/nm-macos.h: Delete file.
8229 * config/powerpc/tm-macos.h: Delete file.
8230 * source.c (openp, open_source_file): Remove obsolete code.
8231 * top.c (gdb_readline): Ditto.
8232 * utils.c (query): Ditto.
8233 * event-top.c (display_gdb_prompt): Ditto.
8234 * Makefile.in (ser-mac.o): Delete obsolete target.
8235 * NEWS: Update.
8236
d7449b42
AC
82372002-01-04 Andrew Cagney <ac131313@redhat.com>
8238
8239 * defs.h (BIG_ENDIAN): Delete macro definition.
8240 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
8241 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
8242 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
8243 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8244 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
8245 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
8246 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
8247 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8248 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8249 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
8250 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
8251 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
8252 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8253 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
8254 * gdbarch.c: Re-generate.
8255
356374e8
DJ
82562002-01-04 Daniel Jacobowitz <drow@mvista.com>
8257
8258 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
8259 for core files.
8260
a2b8f8f8
JT
82612002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8262
8263 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
8264
12466af9
AC
82652002-01-04 Andrew Cagney <ac131313@redhat.com>
8266
8267 * value.h (value_ptr): Delete typedef.
8268
3549ab40
JT
82692002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
8270
8271 * i386nbsd-nat.c: Update copyright years.
8272 Include i386-tdep.h.
8273
fedbd091
EZ
82742002-01-04 Elena Zannoni <ezannoni@redhat.com>
8275
8276 * stabsread.c: Update copyright years.
8277
8278 From Debashis Mahata <debashis.mahata@wipro.com>:
8279 (read_struct_fields): Deal with Sun C compiler erroneous stab
8280 output for structs and unions.
fec8b34f 8281 Fix PR gdb/269.
fedbd091 8282
eb43544b
DJ
82832002-01-04 Daniel Jacobowitz <drow@mvista.com>
8284
8285 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
8286 prototype.
8287
1514d34e
DJ
82882002-01-04 Daniel Jacobowitz <drow@mvista.com>
8289
8290 * cp-abi.c: Fix whitespace.
8291 (baseclass_offset): New wrapper function.
8292 * cp-abi.h (baseclass_offset): Add prototype.
8293 (struct cp_abi_ops): Add baseclass_offset pointer.
8294
8295 * valops.c (vb_match): Move to...
8296 * gnu-v2-abi.c (vb_match): here.
8297 * valops.c (baseclass_offset): Move to...
8298 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
8299
8300 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
8301
8302 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
8303 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
8304 * hpacc-abi.c (init_hpacc_ops): Likewise.
8305
7f8c9282
DJ
83062002-01-04 Daniel Jacobowitz <drow@mvista.com>
8307
8308 * valops.c (find_overload_match): Accept obj as a
8309 reference parameter. Update it before returning.
8310 * value.h (find_overload_match): Update prototype.
8311 * eval.c (evaluate_subexp_standard): Pass object to
8312 find_overload_match by reference.
8313
f23631e4
AC
83142002-01-03 Andrew Cagney <ac131313@redhat.com>
8315
8316 * valarith.c: Replace value_ptr with struct value pointer. Remove
8317 register attribute from value declarations.
8318 * valops.c: Ditto.
8319 * value.h: Ditto.
8320 * scm-lang.c (scm_lookup_name): Ditto.
8321
79e10fab 83222002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 8323
79e10fab
AC
8324 Abstract the functionality of iterating over mapped memory
8325 regions into a general purpose iterator function.
abf22e64 8326 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
8327 iterator for memory sections.
8328 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
8329 (solib_mappings_callback): New function, callback for above.
8330 (info_proc_mappings): Reimpliment using iterate_over_mappings.
8331 (info_mappings_callback): New function, callback for above.
8332
8333 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
8334
c5ad026a
MK
83352002-01-01 Mark Kettenis <kettenis@gnu.org>
8336
d2a7c97a
MK
8337 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
8338 * i386-tdep.c: Include "elf-bfd.h".
8339 (process_note_abi_tag_sections): New function.
8340 (i386_gdbarch_init): Add code to recognize various OS/ABI
8341 combinations.
8342
c5ad026a
MK
8343 * maint.c (_initialize_maint_cmds): Add missing \ in
8344 string-literal.
8345
a1a5b71e 8346For older changes see ChangeLog-2001
c906108c
SS
8347\f
8348Local Variables:
8349mode: change-log
8350left-margin: 8
8351fill-column: 74
8352version-control: never
8353End: