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