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