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