tipo
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2f4150cc
AC
12002-04-15 Andrew Cagney <ac131313@redhat.com>
2
628703c6 3 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
4 Also fix PR gdb/391.
5
56157b4a
AC
62002-04-14 Andrew Cagney <ac131313@redhat.com>
7
8 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9 * aclocal.m4, configure: Re-generate.
10 Fix PR gdb/391.
11
6d1e3329
EZ
122002-04-14 Elena Zannoni <ezannoni@redhat.com>
13
14 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
15 instead of tm_print_insn.
16
cb06fa07
EZ
172002-04-14 Elena Zannoni <ezannoni@redhat.com>
18
19 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
20
f208ba17
AC
212002-04-14 Andrew Cagney <ac131313@redhat.com>
22
23 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
24 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
25 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
26
20f01a46
DH
272002-04-12 Don Howard <dhoward@redhat.com>
28
29 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
30 max_user_call_depth.
31 (init_cmd_lists): Initialize the new value;
32 * cli/cli-script.c (execute_user_command): Limit the call depth of
33 user defined commands. This avoids a core-dump when user commands
34 are infinitly recursive.
35
a88376a3
KB
362002-04-12 Kevin Buettner <kevinb@redhat.com>
37
38 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
39 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
40 from tdep struct instead of DEFAULT_LR_SAVE.
41 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
42 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
43 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
44
f2172603
MS
452002-04-12 Michael Snyder <msnyder@redhat.com>
46
694f61fb 47 * Remote.c: Spelling fix.
20fe79c8
MS
48 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
49 If no symbol found for "sbrk", try "_sbrk".
50 (make_output_phdrs): Use bfd_section_name.
51 (gcore_copy_callback): Use bfd_section_name.
62995fc4 52 * eval.c: Indentation fix-ups.
169a7369
MS
53 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
54 in case it gets applied to an address that is already
55 in the instruction space.
de74f71f
MS
56 * cli/cli-decode.c (help_list): Allow long lines to wrap.
57 * symfile.c: Fix indentation, long lines.
f2172603
MS
58 * source.c: White space fix-up.
59
cda5a58a
AC
602002-04-12 Andrew Cagney <cagney@redhat.com>
61
62 * defs.h (read_relative_register_raw_bytes): Delete declaration.
63 * frame.c (frame_register_read): New function. Return non-zero on
64 success.
65 (read_relative_register_raw_bytes_for_frame): Delete.
66 (read_relative_register_raw_bytes): Delete.
67 * frame.h (frame_register_read): Declare.
68 * d30v-tdep.c: Update Copyright. Use frame_register_read.
69 * sh-tdep.c: Ditto.
70 * infcmd.c (do_registers_info): Ditto.
71 * hppa-tdep.c: Ditto.
72 * rs6000-tdep.c: Ditto.
73 * h8500-tdep.c: Ditto.
74 * mips-tdep.c: Ditto.
75 * h8300-tdep.c: Ditto.
76 * z8k-tdep.c: Ditto.
77
2ea5f656
KB
782002-04-12 Kevin Buettner <kevinb@redhat.com>
79
80 From Jimi X <jimix@watson.ibm.com>:
81 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
82 64-bit SysV ABI.
83
27b15785
KB
842002-04-12 Kevin Buettner <kevinb@redhat.com>
85
86 From Jimi X <jimix@watson.ibm.com>:
87 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
88 bfd info.
89
5d57ee30
KB
902002-04-12 Kevin Buettner <kevinb@redhat.com>
91
92 From Jimi X <jimix@watson.ibm.com>:
93 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
94 register sets for these processor variants.
95
bc1e36ca
DJ
962002-04-11 Daniel Jacobowitz <drow@mvista.com>
97
98 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
99 registers which are allowed to fail to store.
100 * gdbserver/linux-low.h (linux_target_ops): Likewise.
101 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
102 (ppc_cannot_store_register): FPSCR may not be storable.
103 * regformats/reg-ppc.dat: Support FPSCR.
104
e3f36dbd
KB
1052002-04-11 Kevin Buettner <kevinb@redhat.com>
106
107 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
108 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
109 Add fpscr as an invalid/unfetchable register.
110 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
111 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
112 (fill_fpregset): Add support for register fpscr.
113 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
114 (fill_gregset): Account for the fact that register ``mq'' might
115 not exist.
116 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
117 (registers_power): Add fpscr to register set at slot 71.
118 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
119 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
120
943c9c25
MS
1212002-04-11 Michael Snyder <msnyder@redhat.com>
122
123 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
124 * configure: Regenerate.
125 * config.in: Regenerate.
126 * acconfig.h: Add define for _SYSCALL32.
127 * core-sol2.c: Remove #define _SYSCALL32.
128 * solib-legacy.c: Remove #define _SYSCALL32.
129
d8c0a2e7
AC
1302002-04-10 Andrew Cagney <ac131313@redhat.com>
131
132 * stack.c (select_frame): Cleanup internal error message, do not
133 use %p.
134
7cc19214
AC
1352002-04-10 Andrew Cagney <ac131313@redhat.com>
136
137 * stack.c (select_frame): Check that selected_frame and the
138 specified level are as expected.
139 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
140 Update copyright.
141 * frame.h (struct frame_info): Add field `level'. Update
142 copyright.
143 Work-in-progress PR gdb/464.
144
67a2b77e
AC
1452002-04-10 Andrew Cagney <ac131313@redhat.com>
146
147 * maint.c (maint_print_section_info): Rename print_section_info.
148 (print_bfd_section_info, print_objfile_section_info): Update.
149 * inferior.h (struct gdbarch): Add opaque declaration.
150 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
151 * gdbarch.h: Regenerate.
152
8cfda98c
ML
1532002-04-10 Michal Ludvig <mludvig@suse.cz>
154
155 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
156 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
157 (kernel_u_size): Added.
158 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
159 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
160
ca439ad2
JI
1612002-04-04 Jim Ingham <jingham@apple.com>
162
163 * valarith.c (find_size_for_pointer_math): New function, either returns
164 the size for a pointer's target, returns 1 for void *, or errors for
165 incomplete types.
166 (value_add, value_sub): use find_size_for_pointer_math.
167
2f2893d9
DJ
1682002-04-09 Daniel Jacobowitz <drow@mvista.com>
169
170 * linux-low.c (linux_look_up_symbols): New hook.
171 (linux_target_ops): Add linux_look_up_symbols.
172 * remote-utils.c (decode_address): New function.
173 (look_up_one_symbol): New function.
174 * server.c (handle_query): Call target look_up_symbols hook.
175 * server.h (look_up_one_symbol): Add prototype.
176 * target.h (struct target_ops): Add look_up_symbols hook.
177
2ec06d2e
DJ
1782002-04-09 Daniel Jacobowitz <drow@mvista.com>
179
d64b8841
DJ
180 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
181 * ChangeLog: Correct paths in last ChangeLog entry.
182
1832002-04-09 Daniel Jacobowitz <drow@mvista.com>
184
185 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
186 (struct linux_target_ops): New.
187 (extern the_low_target): New.
d64b8841 188 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
189 (register_addr): Use the_low_target explicitly.
190 (fetch_register): Likewise.
191 (usr_fetch_inferior_registers): Likewise.
192 (usr_store_inferior_registers): Likewise.
d64b8841 193 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
194 (arm_num_regs): Define.
195 (arm_regmap): Renamed from regmap, made static.
196 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
197 made static.
198 (arm_cannot_store_register): Renamed from cannot_store_register,
199 made static.
200 (the_low_target): New.
d64b8841 201 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
202 (i386_num_regs): Define.
203 (i386_regmap): Renamed from regmap, made static.
204 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
205 made static.
206 (i386_cannot_store_register): Renamed from cannot_store_register,
207 made static.
208 (the_low_target): New.
d64b8841 209 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
210 (ia64_num_regs): Define.
211 (ia64_regmap): Renamed from regmap, made static.
212 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
213 made static.
214 (ia64_cannot_store_register): Renamed from cannot_store_register,
215 made static.
216 (the_low_target): New.
d64b8841 217 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
218 (m68k_num_regs): Define.
219 (m68k_regmap): Renamed from regmap, made static.
220 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
221 made static.
222 (m68k_cannot_store_register): Renamed from cannot_store_register,
223 made static.
224 (the_low_target): New.
d64b8841 225 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
226 (mips_num_regs): Define.
227 (mips_regmap): Renamed from regmap, made static.
228 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
229 made static.
230 (mips_cannot_store_register): Renamed from cannot_store_register,
231 made static.
232 (the_low_target): New.
d64b8841 233 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
234 (ppc_num_regs): Define.
235 (ppc_regmap): Renamed from regmap, made static.
236 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
237 made static.
238 (ppc_cannot_store_register): Renamed from cannot_store_register,
239 made static.
240 (the_low_target): New.
d64b8841 241 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
242 (s390_num_regs): Define.
243 (s390_regmap): Renamed from regmap, made static.
244 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
245 made static.
246 (s390_cannot_store_register): Renamed from cannot_store_register,
247 made static.
248 (the_low_target): New.
d64b8841 249 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
250 (sh_num_regs): Define.
251 (sh_regmap): Renamed from regmap, made static.
252 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
253 made static.
254 (sh_cannot_store_register): Renamed from cannot_store_register,
255 made static.
256 (the_low_target): New.
d64b8841 257 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
258 (the_low_target): New.
259
96cb11df
AC
2602002-04-09 Andrew Cagney <ac131313@redhat.com>
261
262 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
263 override FP_REGNUM with frame->fp. Update copyright.
264 * parse.c (num_std_regs, std_regs): Delete.
265 (target_map_name_to_register): Do not search std_regs. Update
266 function description.
267 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
268 declarations. Update copyright.
269 Fix PR gdb/251.
270
c3a3ccc7
DJ
2712002-04-09 Daniel Jacobowitz <drow@mvista.com>
272
273 * gdbserver/Makefile.in: Add stamp-h target.
274 * gdbserver/configure.in: Create stamp-h.
275 * gdbserver/configure: Regenerated.
276
ce3a066d
DJ
2772002-04-09 Daniel Jacobowitz <drow@mvista.com>
278
279 * gdbserver/inferiors.c: New file.
280 * gdbserver/target.c: New file.
281 * gdbserver/target.h: New file.
282 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
283 dependencies.
284 * gdbserver/linux-low.c (inferior_pid): New static variable,
285 moved from server.c.
286 (linux_create_inferior): Renamed from create_inferior.
287 Call add_inferior. Return 0 on success instead of a PID.
288 (linux_attach): Renamed from myattach.
289 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
290 (linux_thread_alive): Renamed from mythread_alive.
291 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
292 child dies.
293 (linux_resume): Renamed from myresume. Add missing ``return 0''.
294 (regsets_store_inferior_registers): Correct error message.
295 Add missing ``return 0''.
296 (linux_fetch_registers): Renamed from fetch_inferior_registers.
297 (linux_store_registers): Renamed from store_inferior_registers.
298 (linux_read_memory): Renamed from read_inferior_memory.
299 (linux_write_memory): Renamed from write_inferior_memory.
300 (linux_target_ops): New structure.
301 (initialize_low): Call set_target_ops ().
302 * gdbserver/remote-utils.c (unhexify): New function.
303 (hexify): New function.
304 (input_interrupt): Send signals to ``signal_pid''.
305 * gdbserver/server.c (inferior_pid): Remove.
306 (start_inferior): Update create_inferior call.
307 (attach_inferior): Call add_inferior.
308 (handle_query): New function.
309 (main): Call handle_query for `q' packets.
310 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
311 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
312
0729219d
DJ
3132002-04-09 Daniel Jacobowitz <drow@mvista.com>
314
315 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
316 dependencies.
317 * gdbserver/configure.in: Check for <string.h>
318 * gdbserver/configure: Regenerate.
319 * gdbserver/config.in: Regenerate.
320 * gdbserver/gdbreplay.c: Include needed system headers.
321 (remote_open): Remove strchr prototype.
322 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
323 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
324 (supply_register_by_name): Likewise.
325 (collect_register): Change buf argument to void *.
326 (collect_register_by_name): Likewise.
327 * gdbserver/regcache.h: Add missing prototypes.
328 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
329 * gdbserver/server.c (handle_query): New function.
330 (attached): New static variable, moved out of main.
331 (main): Quiet longjmp clobber warnings.
332 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
333 * gdbserver/utils.c (error): Remove NORETURN.
334 (fatal): Likewise.
335
97658e92
DJ
3362002-04-09 Daniel Jacobowitz <drow@mvista.com>
337
338 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
339 after the last symbol in a block.
340
6044e3eb
PM
3412002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
342
343 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
344 is non zero as a found symbol.
345
0406ec40
AC
3462002-04-08 Andrew Cagney <ac131313@redhat.com>
347
348 * findvar.c: Include "builtin-regs.h".
349 (value_of_register): Call value_of_builtin_reg when applicable.
350 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
351 (target_map_name_to_register): Call
352 builtin_reg_map_name_to_regnum.
353 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
354 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
355 (builtin_regs_h): Define.
356 (builtin-regs.o): New target.
357 (findvar.o): Add $(builtin_regs_h).
358 * builtin-regs.c, builtin-regs.h: New files.
359 * std-regs.c: New file.
360 Partial fix for PR gdb/251.
361
56a6dfb9
KB
3622002-04-08 Kevin Buettner <kevinb@redhat.com>
363
364 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
365 it's no longer required.
366
3a808432
AC
3672002-04-08 Andrew Cagney <ac131313@redhat.com>
368
369 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
370
7c40d541
KB
3712002-04-08 Kevin Buettner <kevinb@redhat.com>
372
373 From Jimi X <jimix@watson.ibm.com>:
374 * rs6000-tdep.c (rs6000_software_single_step): Use
375 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
376 and size. Use target_insert_breakpoint() and
377 target_remove_breakpoint() to insert and remove breakpoints
378 instead of explicit memory reads and writes.
379
cc9836a8
KB
3802002-04-08 Kevin Buettner <kevinb@redhat.com>
381
382 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
383 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
384 ELF_OBJECT_FORMAT ifdef.
385
7495d1dc
KB
3862002-04-08 Kevin Buettner <kevinb@redhat.com>
387
388 From Jimi X <jimix@watson.ibm.com>:
389 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
390
4288e836
KB
3912002-04-08 Kevin Buettner <kevinb@redhat.com>
392
393 From Jimi X <jimix@watson.ibm.com>:
394 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
395 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
396
a4e4e501
MK
3972002-04-07 Mark Kettenis <kettenis@gnu.org>
398
399 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
400 s/asprintf/xasprintf/.
401 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
402
006defba
AC
4032002-04-07 Andrew Cagney <ac131313@redhat.com>
404
405 I believe Jeff Law denies responsability for this one:
406 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
407 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
408 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
409 Work-around for PR gdb/366.
410
7aa83cac
EZ
4112002-04-07 Elena Zannoni <ezannoni@redhat.com>
412
413 * remote-e7000.c (write_small, e7000_read_inferior_memory,
414 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
415 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
416
cf1fcca1
EZ
4172002-04-07 Elena Zannoni <ezannoni@redhat.com>
418
419 * sh-tdep.c (sh_fp_frame_init_saved_regs,
420 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
421 information.
422
3f289e6f
AC
4232002-04-07 Andrew Cagney <ac131313@redhat.com>
424
425 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
426 maintainer.
427
129188f6
AC
4282002-04-07 Andrew Cagney <ac131313@redhat.com>
429
430 * README (Reporting Bugs in GDB): Document the bug web page as the
431 prefered way of submitting bugs.
432 Fix PR gdb/402.
433
1200cd6e
AC
4342002-04-06 Andrew Cagney <ac131313@redhat.com>
435
436 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
437 -1. Update comment.
438 * gdbarch.h, gdbarch.c: Re-generate.
439
2853c33c
AS
4402002-04-07 Andreas Schwab <schwab@suse.de>
441
442 * m68klinux-nat.c (fill_fpregset): Properly pass address of
443 buffer to regcache_collect.
444
c2169756
AC
4452002-04-06 Andrew Cagney <ac131313@redhat.com>
446
447 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
448 * gdbarch.c, gdbarch.h: Re-generate.
449
25f1b008
AC
4502002-04-06 Andrew Cagney <ac131313@redhat.com>
451
452 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
453 declaration. Fix -Werror.
454
59263426
DJ
4552002-04-05 Daniel Jacobowitz <drow@mvista.com>
456
457 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
458 * gdbarch.c: Regenerate.
459
f5db4da3
MS
4602002-04-05 Michael Snyder <msnyder@redhat.com>
461
80f8a6eb
MS
462 * breakpoint.c (clear_command): Rewrite middle section to
463 combine two loops with identical control conditions.
464 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
465 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
466
ad3dcc5c
L
4672002-04-05 H.J. Lu (hjl@gnu.org)
468
469 * solib-svr4.c (bkpt_names): Add "__start".
470
f32e7a74
AC
4712002-04-04 Andrew Cagney <ac131313@redhat.com>
472
473 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
474 as test for 64 bit target.
475
8227c0ff
AC
4762002-04-05 Andrew Cagney <ac131313@redhat.com>
477
478 * h8500-tdep.c (h8500_write_fp): Delete function.
479 * dwarf2cfi.c (cfi_write_fp): Document as not used.
480 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
481 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
483 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
484 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
485 (s390_write_fp):
486 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
487 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
488 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
489 (d10v_write_fp): Delete function.
490 * inferior.h (write_fp, generic_target_write_fp): Delete
491 declarations.
492 * regcache.c (generic_target_write_fp): Delete function.
493 (write_fp): Delete function.
494 * gdbarch.sh (TARGET_WRITE_FP): Delete.
495 * gdbarch.h, gdbarch.c: Regenerate.
496 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
497 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
498 (sparc64_write_fp): Delete declaration.
499 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
500 (h8500_write_fp): Delete declaration.
501
2757dd86
AC
5022002-04-04 Andrew Cagney <ac131313@redhat.com>
503
504 * sparc-tdep.c (sparc64_write_fp): Delete.
505 (sparc_push_dummy_frame): Replace write_fp call with code to store
506 the FP directly.
507 (sparc_gdbarch_init): Do not initialize write_fp.
508
c69255e1
KB
5092002-04-05 Kevin Buettner <kevinb@redhat.com>
510
511 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
512 clause.
513
ae767bfb
JB
5142002-03-29 Jim Blandy <jimb@redhat.com>
515
516 * stack.c (get_selected_block): Add new argument `addr_in_block',
517 used to return the exact code address we used to select the block,
518 not just the block.
519 * blockframe.c (get_frame_block, get_current_block): Same.
520 * frame.h (get_frame_block, get_current_block,
521 get_selected_block): Update declarations.
522 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
523 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
524
84d2ac95
MS
5252002-04-05 Michael Snyder <msnyder@redhat.com>
526
527 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
528 warning message.
529
596aa3bf
JB
5302002-04-05 J. Brobecker <brobecker@gnat.com>
531
532 * utils.c (xfullpath): New function.
533 * defs.h (xfullpath): Add declaration.
534 * source.c (openp): Use xfullpath in place of gdb_realpath to
535 avoid resolving the basename part of filenames when the
536 associated file is a symbolic link. This fixes a potential
537 inconsistency between the filenames known to GDB and the
538 filenames it prints in the annotations.
539 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
540 to be able to match a filename with either the real filename, or
541 the name of any symbolic link to this file.
542 (lookup_partial_symtab): Ditto.
543
c02f5703
MS
5442002-04-04 Michael Snyder <msnyder@redhat.com>
545
546 * breakpoint.c: Add support for hardware breakpoints in overlays.
547 (overlay_events_enabled): New state variable.
548 (insert_breakpoints): Use overlay_events_enabled to decide
549 whether to attempt to set a breakpoint at the overlay load addr.
550 Handle bp_hardware_breakpoint as well as bp_breakpoint.
551 (remove_breakpoint): Use overlay_events_enabled to decide
552 whether breakpoints need to be removed from overlay load addr.
553 Handle bp_hardware_breakpoint as well as bp_breakpoint.
554 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
555 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
556 disable_overlay_breakpoints): Update overlay_events_enabled.
557
5fb290d7
DJ
5582002-04-04 Daniel Jacobowitz <drow@mvista.com>
559
560 * dwarf2read.c (struct function_range): New.
561 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
562 (check_cu_functions): New.
563 (read_file_scope): Initialize global function lists.
564 Call dwarf_decode_line after processing children.
565 (read_func_scope): Add to global function list.
566 (dwarf_decode_lines): Call check_cu_functions everywhere
567 record_line is called. Call record_line with a linenumber
568 of 0 to mark sequence ends.
569
7b3fabf0
ML
5702002-04-04 Michal Ludvig <mludvig@suse.cz>
571
572 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
573 change sync with glibc.
574
bce58c09
JB
5752002-04-03 Jim Blandy <jimb@redhat.com>
576
577 * configure.in: Call AC_C_INLINE.
578 * configure: Regenerated.
579
2fccf04a
DJ
5802002-04-01 Daniel Jacobowitz <drow@mvista.com>
581
582 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
583 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
584
2d1bfe2e
MK
5852002-03-31 Mark Kettenis <kettenis@gnu.org>
586
a5941fbf
MK
587 * NEWS: Mention gcore support on FreeBSD/i386.
588
a90cd31d
MK
589 * fbsd-proc.c: New file.
590 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
591 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
592
2d1bfe2e
MK
593 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
594 while statement.
595
9eb6e5a1
JB
5962002-03-29 Jim Blandy <jimb@redhat.com>
597
598 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
599 unescaped newlines in string literals, but newer ones don't. So
600 escape them.
601
f02df580
MS
6022002-03-26 Michael Snyder <msnyder@redhat.com>
603 Andrew Cagney <cagney@redhat.com>
604
605 * cli/cli-dump.c: New file. Dump memory to file,
606 restore file to memory.
607 * cli/cli-dump.h: New file.
608 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 609 * NEWS: Mention new commands.
f02df580 610
109f874e
MS
6112002-03-28 Michael Snyder <msnyder@redhat.com>
612
613 * symfile.c (symbol_file_add): Move test for null symbols to later.
614
520f6ade
AC
6152002-03-27 Andrew Cagney <ac131313@redhat.com>
616
617 From veksler at il.ibm.com:
618 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
619 the xstrduped original path.
620 Fix PR gdb/417.
621
d4654627
MS
6222002-03-27 Michael Snyder <msnyder@redhat.com>
623
624 * breakpoint.c (_initialize_breakpoint): Clean up help string.
625 * infcmd.c (_initialize_infcmd): Ditto.
626 * language.c (_initialize_language): Ditto.
627 * symfile.c (_initialize_symfile): Ditto.
628 * top.c (_init_main): Ditto.
629 * cli/cli-cmds.c (init_cli_cmds): Ditto.
630
6be8bc0c
EZ
6312002-03-27 Elena Zannoni <ezannoni@redhat.com>
632
633 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
634 vector registers handling.
635 (skip_prologue): Handle new AltiVec instructions. Fill in new
636 fields of frame data.
637 (frame_get_saved_regs): Fill in information for AltiVec registers.
638
12af6855
JB
6392002-03-27 Jim Blandy <jimb@redhat.com>
640
641 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
642 a function; leave this macro here to invoke that function.
643 (symbol_init_mangled_name): Declaration for that function.
644 * symtab.c (symbol_init_mangled_name): New function.
645
dc672865
AC
6462002-03-27 Andrew Cagney <ac131313@redhat.com>
647
648 * valarith.c: Replace strerror with safe_strerror.
649 * tracepoint.c: Ditto.
650 * lin-lwp.c: Ditto.
651 * go32-nat.c: Ditto.
652 * inflow.c: Ditto.
653 * gnu-nat.c: Ditto.
654
d96429cd
AS
6552002-03-27 Andreas Schwab <schwab@suse.de>
656
657 * event-top.c (command_line_handler): Remove useless if.
658
7e336ba1
AJ
6592002-03-27 Andreas Jaeger <aj@suse.de>
660
661 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
662 comment.
663
de220d0f
ML
6642002-03-27 Michal Ludvig <mludvig@suse.cz>
665
666 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
667 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
668 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
669 (x86_64_linux_dr_get_status, supply_gregset),
670 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
671 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
672 (x86_64_register_info_table): Add.
673 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
674 (x86_64_register_raw_size, x86_64_register_virtual_type),
675 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
676 general x86_64_register_info_table.
677 (i386_gdbarch_init): gdbarch_register_bytes is now set
678 dynamicaly during initialization.
679 * regformats/reg-x86-64.dat: Synced with changes to registers above.
680 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 681
0e98d0a7
DJ
6822002-03-27 Daniel Jacobowitz <drow@mvista.com>
683
684 * gdbserver/server.c (main): Call target_signal_to_host_p
685 and target_signal_to_host on signals received from the remote.
686 * gdbserver/remote-utils.c (prepare_resume_reply): Call
687 target_signal_from_host on signals sent to the remote.
688 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
689 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
690
3130066b
DJ
6912002-03-27 Daniel Jacobowitz <drow@mvista.com>
692
693 * signals/signals.c: Include "server.h" in gdbserver build.
694 (target_signal_from_name): Don't use STREQ.
695 (_initialize_signals): Likewise. Don't include function in
696 gdbserver build.
697
9aedf4f4
DJ
6982002-03-27 Daniel Jacobowitz <drow@mvista.com>
699
700 * signals.c: Moved to...
701 * signals/signals.c: Here.
7e336ba1 702 * Makefile (signals.o): Update.
9aedf4f4 703
3fa41cdb
JL
7042002-03-26 Jeff Law (law@redhat.com)
705
706 * somread.c (som_symtab_read): Remove some commented out code and
707 updated related comments. Do not set the minimal symbol table to
708 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
709 in a dynamic executable.
710 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
711 where we are unable to find the minimal symbol for the given
712 PC value.
713
ee677e8d
MS
7142002-03-25 Jeff Law (law@redhat.com)
715
716 * linux-proc.c (read_mapping): Scan up to end of line for filename.
717
e76e1718
ML
7182002-03-25 Michal Ludvig <mludvig@suse.cz>
719
720 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
721
18a642a1
AC
7222002-03-23 Andrew Cagney <ac131313@redhat.com>
723
724 * command.h: Update copyright.
725 (struct cmd_list_element): Replace definition with opaque
726 declaration.
727 (enum cmd_types): Document that it will eventually be moved to
728 cli/cli-decode.h
729 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
730 (MALLOCED_REPLACEMENT): Delete macro.
731 * Makefile.in (cli_decode_h): Add $(command_h).
732 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 733 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
734 * completer.c: Include "cli/cli-decode.h".
735 * maint.c: Include "cli/cli-decode.h".
736 * cli/cli-decode.h: Include "command.h".
737 (enum command_class): Delete.
738 (enum cmd_types): Comment out.
739 (enum cmd_auto_boolean): Delete.
740 (enum var_types): Delete.
741
b2875cc0
AC
7422002-03-23 Andrew Cagney <ac131313@redhat.com>
743
744 * cli/cli-decode.c: Include "gdb_assert.h".
745 (add_set_or_show_cmd): New static function.
746 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
747 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
748 all fields, such as func, from the set command.
749
3b45974e
AC
7502002-03-23 Andrew Cagney <ac131313@redhat.com>
751
752 * MAINTAINERS (sh-elf): Change warning flag to -w.
753
823ca731
AC
7542002-03-23 Andrew Cagney <cagney@redhat.com>
755
756 * defs.h (error): Add printf format attribute.
757 * thread-db.c (thread_from_lwp): Fix error format string.
758 * stack.c (parse_frame_specification): Ditto.
759 * cli/cli-decode.c (undef_cmd_error): Ditto.
760 * scm-lang.c (scm_lookup_name): Ditto.
761 * tracepoint.c (trace_error): Ditto.
762 * remote-utils.c (usage): Ditto.
763 * remote.c (compare_sections_command): Ditto.
764 Fix PR gdb/328.
765
0e101458
AC
7662002-03-22 Andrew Cagney <ac131313@redhat.com>
767
768 * gdbtypes.c (append_composite_type_field): New function.
769 (init_composite_type): New function.
770 * gdbtypes.h (append_composite_type_field): Declare.
771 (init_composite_type): Ditto.
772
8e0662df
EZ
7732002-03-22 Elena Zannoni <ezannoni@redhat.com>
774
775 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 776 function.
8e0662df
EZ
777 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
778 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
779 structure returning convention for SYSV ABI case, but not
780 for GNU/Linux, FreeBSD, or NetBSD.
781
3121eff0
DJ
7822002-03-22 Daniel Jacobowitz <drow@mvista.com>
783
784 * symtab.h (lookup_block_symbol): Add mangled_name argument
785 to prototype.
786
787 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
788 with new mangled_name argument.
789 * linespec.c (decode_line_1): Likewise.
790 * valops (value_of_this): Likewise.
791 * symtab.c (lookup_transparent_type): Likewise.
792 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
793 (lookup_symbol): If we are given a mangled name, pass it down
794 to lookup_symbol_aux.
795 (lookup_block_symbol): If we are given a mangled name to check
796 against, only return symbols which match it.
797
349b409f
CF
7982002-03-22 Christopher Faylor <cgf@redhat.com>
799
800 * win32-nat.c (child_create_inferior): Check for proper shell to use
801 here, in case the user changes it on the fly.
802 (_initialize_inftarg): Remove shell path considerations.
803
2a873819
EZ
8042002-03-21 Elena Zannoni <ezannoni@redhat.com>
805
806 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
807 for gdbarch_max_register_raw_size and max_register_virtual_size.
808 Adjust copyright year.
809
a1b9830c
DJ
8102002-03-21 Daniel Jacobowitz <drow@mvista.com>
811
812 * dbxread.c (process_one_symbol): Extend the first N_SLINE
813 in a function to cover the entire beginning of the function
814 as well if it does not already.
815
8b5790f2
TR
8162002-03-21 Tom Rix <trix@redhat.com>
817
818 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
819 (rs6000_ptrace64): Renamed from ptrace64.
820
bdbe5747
MH
8212002-03-20 Martin M. Hunt <hunt@redhat.com>
822
823 * gdbserver/remote-utils.c (remote_open): Don't call
824 getprotobyname, we're all using TCP here so just use
825 IPPROTO_TCP.
7e336ba1 826 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
827
8282002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 829
bdbe5747
MH
830 * regcache.c (_initialize_regcache): No need to call
831 build_regcache() at this time; it gets called whenever
832 the gdbarch changes.
833
7781cd62
DB
8342002-03-20 David O'Brien <obrien@FreeBSD.org>
835
836 * sparc-nat.c: Include sys/param.h where possible.
837
f65ca430
DJ
8382002-03-20 Daniel Jacobowitz <drow@mvista.com>
839
840 Fix PR gdb/422.
841 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
842 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
843 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
844 complex types.
845 * stabsread.c (rs6000_builtin_type): Likewise.
846 (read_sun_floating_type): Likewise.
847
0c867556
PS
8482002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
849
850 * stabsread.c (read_member_functions): Remove skip code for duplicate
851 constructor/destructor methods. Use standard parsing for these
852 methods and just do not chain them to the list of methods after
853 parsing.
854
12b9c64f
AO
8552002-03-19 Alexandre Oliva <aoliva@redhat.com>
856
857 * coffread.c: Remove redundant static declarations. Replace
858 occurrences of `PTR' with `void *'.
859 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
860 * top.h (quit_cover): Likewise.
861 * defs.h (catch_errors): Likewise.
862
349c5d5f
AC
8632002-03-18 Andrew Cagney <ac131313@redhat.com>
864
865 * defs.h (XMALLOC): Define.
866 * gdb-events.sh (XMALLOC): Delete macro.
867 * gdb-events.c, gdb-events.h: Regenerate.
868 * gdbarch.sh (XMALLOC): Delete macro.
869 * gdbarch.c: Regenerate.
870 * serial.c (XMALLOC): Delete macro.
871 * ui-file.c (XMALLOC): Ditto.
872 * ser-unix.h (XMALLOC): Ditto.
873 * sh-tdep.c (XMALLOC): Ditto.
874 * ui-out.c (XMALLOC): Ditto.
875 * utils.c (XMALLOC): Ditto.
876 * i386-tdep.c (XMALLOC): Ditto.
877 * gdb-events.c (XMALLOC): Ditto.
878 * d10v-tdep.c (XMALLOC): Ditto.
879 * cli-out.c (XMALLOC): Ditto.
880
881 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
882 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
883 * ui-file.c, ui-out.c: Ditto.
884
7d0766f3
AC
8852002-03-18 Andrew Cagney <ac131313@redhat.com>
886
887 * command.h (struct cmd_list_element): Add field context.
888 (set_cmd_context, get_cmd_context): Declare.
889 * cli/cli-decode.h: Ditto.
890 * cli/cli-decode.c (get_cmd_context): New function.
891 (set_cmd_context): New function.
892 (add_cmd): Initialize context.
893 Part of fixing PR gdb/145 and PR gdb/146.
894
5913bcb0
AC
8952002-03-17 Andrew Cagney <ac131313@redhat.com>
896
1868c04e
AC
897 * cli/cli-decode.c (cmd_type): New function.
898 * command.h (cmd_type): Declare.
899 * infrun.c (set_schedlock_func): Call function cmd_type.
900 * kod.c (kod_set_os): Call cmd_type.
901 * cris-tdep.c (cris_version_update): Use function cmd_type.
902 (cris_mode_update, cris_abi_update): Ditto.
903
5913bcb0
AC
904 * command.h: (execute_cmd_post_hook): Declare.
905 (execute_cmd_pre_hook): Declare.
906 * cli/cli-script.c (clear_hook_in_cleanup): New function.
907 (execute_cmd_post_hook, execute_cmd_pre_hook): New
908 functions. Execute pre/post hook while ensuring that afterwords
909 hook_in is cleared.
910 * top.c (execute_command): Use execute_cmd_post_hook, and
911 execute_cmd_pre_hook to execute pre/post commands.
912 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
913 hook_stop_stub.
914 (hook_stop_stub): Call execute_cmd_pre_hook.
915
b51450c9
AC
9162002-03-17 Andrew Cagney <ac131313@redhat.com>
917
918 * kod.c (kod_set_os): Revert previous change. Is called by ``info
919 set'' and this leads to a core dump. Move xstrdup of
920 operating_system to after check that it is not NULL.
921
f66c9f11
AC
9222002-03-17 Andrew Cagney <ac131313@redhat.com>
923
8e694ecf
AC
924 * kod.c (kod_set_os): Remove unnecessary check that
925 ``command->type'' is set_cmd.
926
f66c9f11
AC
927 * valprint.c (set_input_radix): Use input_radix.
928 (set_output_radix): Use output_radix.
929 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
930 isn't reverted.
931
9d01611c
AC
9322002-03-16 Andrew Cagney <ac131313@redhat.com>
933
934 * value.h (struct value): Delete field ``substring_addr''. Change
935 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
936 force_core_addr_align and force_pointer_aligh.
937
938 * value.h (struct value): Fix typo in above change.
9d01611c 939
4156bb53
PS
9402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
941
942 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
943 to fix internal_error from ``maintenance print architecture''.
944
0e5e3ea6
PS
9452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
946
947 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
948 for gcc versions after gcc-2.8.1.
949
9b013045
PS
9502002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
951
952 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
953 for method resolution. Restore adjustment of ``this'' pointer after
954 calling value_struct_elt, which was accidentally removed during the
955 HP merge.
956
376c9600
AC
9572002-03-15 Andrew Cagney <ac131313@redhat.com>
958
959 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
960 value_of_register.
961 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
962 get_saved_register.
963 * value.h (value_of_register): Update.
964
a4db0f07
RH
9652002-03-14 Richard Henderson <rth@redhat.com>
966
967 * configure.in: Detect declaration for canonicalize_file_name.
968 * utils.c (canonicalize_file_name): Declare, if needed.
969 (gdb_realpath): Prefer realpath if available and usable.
970 * config.in, configure: Rebuild.
971
96383835
RH
9722002-03-14 Richard Henderson <rth@redhat.com>
973
974 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
975 a constant array bound.
976
977 * MAINTAINERS: Add myself to write-after-approval.
978
75245b24
MS
9792002-03-14 Michael Snyder <msnyder@redhat.com>
980
981 * symfile.c (syms_from_objfile): Return immediately if no syms.
982 (symbol_file_add): Return immediately if no syms.
983 (find_sym_fns): Return immediately if no syms.
984
e641a1ca
ML
9852002-03-13 Michal Ludvig <mludvig@suse.cz>
986
987 * gdbserver/remote-util.c (remote_open): Print remote-side's
988 IP address when remote debugging over the network.
7e336ba1 989
df08bfec
DB
9902002-03-12 David O'Brien <obrien@FreeBSD.org>
991
992 * config/sparc/fbsd.mh: Fix copyright.
993 * config/sparc/fbsd.mt: Likewise.
994
9a57864f
RE
9952002-03-11 Richard Earnshaw <rearnsha@arm.com>
996
997 * MAINTAINERS: Fix typo in name of gdb warnings option.
998 (x86-64): Fix formating so that this can be parsed by awk.
999
dd7bf85e
DJ
10002002-03-10 Daniel Jacobowitz <drow@mvista.com>
1001
1002 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1003 * defs.h: Include "gdb/signals.h".
1004 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1005
33a0a2ac
ML
10062002-03-10 Michal Ludvig <mludvig@suse.cz>
1007
1008 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1009 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1010 from x86-64-tdep.h
1011
dd824b04
DJ
10122002-03-10 Daniel Jacobowitz <drow@mvista.com>
1013 Don Howard <dhoward@redhat.com>
1014
1015 * mips-tdep.c (ST0_FR): Define.
1016 (mips2_fp_compat): New function, temporarily disabled.
1017 (mips_read_fp_register_single): New function.
1018 (mips_read_fp_register_double): New function.
1019 (mips_print_register): Use them.
1020 (do_fp_register_row): Likewise.
1021
6a41ff59
AC
10222002-03-09 Andrew Cagney <ac131313@redhat.com>
1023
1024 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1025 approval''.
1026
4ea09c10
PS
10272002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1028
1029 * stabsread.c (read_member_functions): Fix is_stub test for
1030 static member functions, improve comment.
1031
6ccc741d
RE
10322002-03-07 Richard Earnshaw <rearnsha@arm.com>
1033
1034 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1035 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1036 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1037 commands that set boolean values.
1038 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1039 (arm_rdi_resume): Always initialize PC.
1040 (arm_rdi_open): Don't use rslt as a boolean.
1041 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1042 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1043 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1044 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1045
438013df
AO
10462002-03-06 Alexandre Oliva <aoliva@redhat.com>
1047
1048 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1049 * configure: Rebuilt.
1050
70ed8774
SC
10512002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1052
1053 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1054 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1055
5ba2abeb
AC
10562002-03-06 Andrew Cagney <ac131313@redhat.com>
1057
1058 * cli/cli-decode.c (set_cmd_completer): New function.
1059 * command.h (set_cmd_completer): Declare.
1060 * cli/cli-decode.h (set_cmd_completer): Ditto.
1061
1062 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1063 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1064 * win32-nat.c (_initialize_inftarg): Ditto.
1065 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1066 * proc-api.c (_initialize_proc_api): Ditto.
1067 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1068 * source.c (_initialize_source): Ditto.
1069 * exec.c (_initialize_exec): Ditto.
1070 * solib.c (_initialize_solib): Ditto.
1071 * top.c (init_main): Ditto.
1072 * tracepoint.c (_initialize_tracepoint): Ditto.
1073 * symfile.c (_initialize_symfile): Ditto.
1074 * printcmd.c (_initialize_printcmd): Ditto.
1075 * infcmd.c (_initialize_infcmd): Ditto.
1076 * corefile.c (_initialize_core): Ditto.
1077
f779ca99
AC
10782002-03-05 Andrew Cagney <ac131313@redhat.com>
1079
1080 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1081
01a3934b
AC
10822002-03-05 Andrew Cagney <ac131313@redhat.com>
1083
1084 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1085
37057839
AC
10862002-03-05 Andrew Cagney <ac131313@redhat.com>
1087
1088 * NEWS: Update headings, 5.2 has branched.
1089
c6ecbae5
DJ
10902002-03-04 Daniel Jacobowitz <drow@mvista.com>
1091
1092 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1093 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1094 (register_addr, REGISTER_RAW_SIZE): Likewise.
1095 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1096 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1097
e9f30c21
ML
10982002-03-03 Michal Ludvig <mludvig@suse.cz>
1099
1100 * MAINTAINERS (x86-64): Add myself.
1101 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1102 changed value_ptr -> struct value *
1103
54394ac3
DB
11042002-03-01 David O'Brien <obrien@FreeBSD.org>
1105
1106 * configure.host (sparc64-*-freebsd): Add.
1107 * configure.tgt: Likewise.
1108 * config/sparc/fbsd.mh: New file.
1109 * config/sparc/fbsd.mt: Likewise.
1110 * config/sparc/nm-fbsd.h: Likewise.
1111 * config/sparc/tm-fbsd.h: Likewise.
1112
bfe95955
DJ
11132002-03-01 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1116 regformats/reg-s390x.dat.
1117
f33c6cbf
AC
11182002-03-01 Andrew Cagney <ac131313@redhat.com>
1119
1120 * utils.c: Add FIXME explaining true/false problem.
1121
5ecaa7dd
AC
11222002-02-28 Andrew Cagney <ac131313@redhat.com>
1123
1124 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1125
2a251cc2
MC
11262002-02-28 Michael Chastain <mec@shout.net>
1127
1128 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1129
6a8031a3 11302002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1131
1132 * gdbserver/linux-s390-low.c: New file.
1133 * regformats/reg-s390.dat: New file.
1134 * regformats/reg-s390x.dat: New file.
1135 * gdbserver/configure.srv: Add S/390.
1136 * gdbserver/Makefile.in: Add S/390.
1137 * configure.tgt: Enable gdbserver for S/390.
1138
ac469903
EZ
11392002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1140
1141 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1142 first line of the doc string for "info dos", except at the end of
1143 the sentence, since the short help stops at the first period.
1144
985cb1a3
JM
11452002-02-28 Jason Merrill <jason@redhat.com>
1146
1147 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1148
c570663e
FF
11492002-02-27 Fred Fish <fnf@redhat.com>
1150
1151 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1152 comment (dumy -> dummy).
1153
43630227
PS
11542002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1155
1156 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1157
b84911e8
RB
11582002-02-27 Rodney Brown <rbrown64@csc.com.au>
1159
1160 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1161
58caa3dc
DJ
11622002-02-27 Daniel Jacobowitz <drow@mvista.com>
1163
1164 * gdbserver/acconfig.h: New file.
1165 * gdbserver/i387-fp.c: New file.
1166 * gdbserver/i387-fp.h: New file.
1167 * gdbserver/linux-x86-64.c: New file.
1168 * regformats/reg-x86-64.dat: New file.
1169 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1170 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1171 * gdbserver/configure.in: Add support for regsets.
1172 * gdbserver/config.in: Regenerate.
1173 * gdbserver/configure: Regenerate.
1174 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1175 * gdbserver/linux-low.h: New file.
1176 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1177 for regsets.
1178 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1179 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1180 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1181 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1182 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1183 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1184 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1185 "i387-fp.h". Add PTRACE_GETREGS and friends.
1186 * gdbserver/regcache.c (supply_register): New function.
1187 (supply_register_by_name): New function.
1188 (collect_register): New function.
1189 (collect_register_by_name): New function.
1190
93652174
DJ
11912002-02-27 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1194 (config.status): Add configure.srv dependency.
1195 (server_h): Add config.h dependency.
1196
a02e4a61
DJ
11972002-02-27 Daniel Jacobowitz <drow@mvista.com>
1198
1199 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1200 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1201 * gdbserver/configure.srv: Change i386-*-linux* to use
1202 reg-i386-linux.o.
1203
ce0eebec
AC
12042002-02-26 Andrew Cagney <ac131313@redhat.com>
1205
1206 * x86-64-tdep.c: Re-indent. Update copyright date.
1207
82dbc5f7
AC
12082002-02-26 Andrew Cagney <ac131313@redhat.com>
1209
1210 From Michal Ludvig <mludvig@suse.cz>:
1211 * x86-64-tdep.c (value.h): Delete.
1212 (gdb_assert.h): Include.
1213 (x86_64_register_convert_to_virtual,
1214 x86_64_register_convert_to_raw ): Add check which lets only
1215 floating-point values to be converted.
1216 (value_push): Delete.
1217 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1218 (i386_gdbarch_init): Number of register_bytes fixed.
1219
e4621584
AC
12202002-02-26 Andrew Cagney <ac131313@redhat.com>
1221
1222 * MAINTAINERS: Add x86-64 target.
1223
81a9a963
AC
12242002-02-26 Andrew Cagney <ac131313@redhat.com>
1225
1226 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1227 * osfsolib.c (solib_map_sections): Ditto.
1228 * irix5-nat.c (solib_map_sections): Ditto.
1229 * corelow.c (gdb_check_format): Ditto.
1230 * symfile.c (symfile_bfd_open): Ditto.
1231 * solib.c (solib_map_sections): Ditto.
1232 Fix PR gdb/354.
7e336ba1 1233
0f017ab9
AC
12342002-02-26 Andrew Cagney <ac131313@redhat.com>
1235
1236 * remote.c (_initialize_remote): By default, disable ``e'' and
1237 ``E'' step out-of-range packets.
1238
75738c29
AS
12392002-02-26 Andreas Schwab <schwab@suse.de>
1240
1241 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1242 m68k_linux_frame_saved_pc.
1243 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1244 in_sigtramp.
1245 (SIGCONTEXT_PC_OFFSET): Remove.
1246 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1247 m68k_linux_sigtramp_saved_pc): New functions.
1248 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1249 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1250 (UCONTEXT_PC_OFFSET): Define.
1251 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1252 non-RT and RT signal trampolines.
1253
7e8ed687
RE
12542002-02-26 Richard Earnshaw <rearnsha@arm.com>
1255
1256 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1257 (TARGET_NBPG, STACK_END_ADDR): Delete
1258 (VARIABLES_INSIDE_BLOCK): Delete.
1259
6972bc8b
AC
12602002-02-25 Andrew Cagney <ac131313@redhat.com>
1261
1262 * utils.c (perror_with_name): Make string parameter constant.
1263 (print_sys_errmsg): Ditto.
1264 (query): Ditto.
1265 * defs.h (perror_with_name): Update.
1266 (print_sys_errmsg): Update.
1267 (query): Update.
1268
aa32f823
DJ
12692002-02-25 Daniel Jacobowitz <drow@mvista.com>
1270
1271 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1272 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1273
19caaa45
PS
12742002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1275
1276 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1277 if it already matches the current architecture from the exec file.
1278 Include arch-utils.h for gdbarch_info_init prototype.
1279 * Makefile.in (rs6000-nat.o): Update dependencies.
1280
d951901f
EZ
12812002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1282
1283 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1284 list of exported variables.
1285
7ea81414
DJ
12862002-02-24 Daniel Jacobowitz <drow@mvista.com>
1287
1288 * gdbserver/configure.srv: New file.
1289 * gdbserver/configure.in: Use configure.srv instead
1290 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1291 from it.
1292 * gdbserver/configure: Regenerated.
1293 * gdbserver/terminal.h: New file.
1294 * gdbserver/Makefile.in: Update for configure changes. Remove
1295 more unneeded include paths.
1296
080fe24b
AC
12972002-02-24 Andrew Cagney <ac131313@redhat.com>
1298
1299 From wiz at danbala:
1300 * config/sparc/tm-sp64.h: Fix grammar and typos.
1301 Fix PR gdb/287.
1302
8605d56e
AC
13032002-02-24 Andrew Cagney <ac131313@redhat.com>
1304
1305 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
1306 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1307 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1308 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
1309 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1310 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1311 * s390-tdep.c: Ditto.
92362027
AC
1312 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1313 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1314 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1315 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1316 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1317 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1318 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1319 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1320 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1321 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 1322 Fix PR gdb/378.
7e336ba1 1323
8ed32cc0
AC
13242002-02-23 Andrew Cagney <ac131313@redhat.com>
1325
a3007b6f
AC
1326 * lin-thread.c: Delete file.
1327 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1328 to gdb_proc_service.h.
1329 * configure: Re-generate.
1330
50a9e2f1
AC
1331 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1332 * serial.c (serial_open): Delete check for "ocd".
1333 Fix PR gdb/349.
1334
8b6e7932
AC
1335 * Makefile.in (linux-thread.o): Delete target.
1336 * linux-thread.c: Delete file.
1337
d155c46b
AC
1338 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1339 renamed SH files to be consistent.
1340
8ed32cc0
AC
1341 * symtab.c (sort_search_symbols): Use xfree.
1342
0e18d038
RE
13432002-02-23 Richard Earnshaw <rearnsha@arm.com>
1344
1345 * arm-linux-tdep.c (arm_linux_init_abi): Register
1346 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1347 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1348 definition with undef, since we don't want the sysvr4 definition.
1349 (SKIP_TRAMPOLINE_CODE): Likewise.
1350
27aac7ff
AC
13512002-02-23 Andrew Cagney <ac131313@redhat.com>
1352
1353 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1354
1355 * configure.in: (AC_CHECK_FUNCS) Added test for
1356 canonicalize_file_name Regenerated.
1357 * config.in, configure: Regenerated.
1358 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1359 defined use canonicalize_file_name.
7e336ba1 1360
65a6e0ee
MC
13612002-02-23 Michael Chastain <mec@shout.net>
1362
1363 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1364
47b95330
AC
13652002-02-23 Andrew Cagney <ac131313@redhat.com>
1366
1367 * README: Remove references to cygnus.com.
1368 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1369 dot com'' form. Remove references to cygnus.com and sourceware.
1370
696f451b
AC
13712002-02-23 Andrew Cagney <ac131313@redhat.com>
1372
1373 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1374 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1375 1003.1-2001 no longer allows "head -1".
1376 * gdb/Makefile.in (version.c): Likewise.
1377 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1378 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1379 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1380
bbaca940
AC
13812002-02-23 Andrew Cagney <ac131313@redhat.com>
1382
1383 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1384 * command.h (cmd_cfunc_eq): Declare.
1385 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1386
1387 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1388 ``struct cmd_list_element *''.
1389 * cli/cli-cmds.c (is_complete_command): Update. Use
1390 cmd_cfunc_eq.
1391 * top.c (execute_command): Pass the command to
1392 is_complete_command.
1393 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1394
b8b8b047
AC
13952002-02-23 Andrew Cagney <ac131313@redhat.com>
1396
1397 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1398 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1399 architecture defines.
1400 * s390-tdep.c (s390_gdbarch_init): Likewise.
1401
19d3fc80
RE
14022002-02-23 Richard Earnshaw <rearnsha@arm.com>
1403
1404 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1405 (arm_linux_push_arguments): Likewise.
1406 (arm_linux_init_abi): Register them. Also register linux-specific
1407 call_dummy_words.
1408 (find_minsym_and_objfile): Use strcmp, not STREQ.
1409 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1410 (arm_linux_call_dummy_words): Delete declaration.
1411 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1412 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1413 declarations.
1414 (LOWEST_PC): Delete.
1415
3ab13650
PS
14162002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1417
1418 * maint.c (print_section_info): Do not prepend `0x' to filepos
1419 output, it will be handled by local_hex_string_custom.
1420
19d3fc80 14212002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
1422
1423 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1424 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1425 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1426
d85a5daf
JB
14272002-02-22 Jim Blandy <jimb@redhat.com>
1428
1429 Indicate that the bcache functions don't change the strings
1430 they're passed.
1431 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1432 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1433
eeb25b8a
PM
14342002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1435
1436 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1437
6badb179
CF
14382002-02-21 Christopher Faylor <cgf@redhat.com>
1439
1440 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1441 find the complete path to a loaded DLL.
1442
e8717518
FF
14432002-02-21 Fred Fish <fnf@redhat.com>
1444
1445 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1446 that marks the end of the range of a function, enter a line number
1447 entry that has a line number of zero and a PC offset that matches
1448 the end of the function. This starts a range of PC's for which no
1449 line number information is known.
1450 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1451 PC's for which no line number info is found (line number is zero)
1452 then we didn't find any valid line information.
1453 * symtab.h: Document use of zero line number entry.
1454
9abe5450
EZ
14552002-02-21 Elena Zannoni <ezannoni@redhat.com>
1456
1457 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1458 (have_ptrace_getvrregs): Define for run time checks.
1459 (gdb_vrregset_t): New type for Altivec register handling.
1460 (fetch_register, store_register): Fetch/store altivec register
1461 when needed.
1462 (fetch_altivec_register, store_altivec_register): New functions.
1463 (supply_vrregset, fill_vrregset): New functions.
1464 (fetch_altivec_registers, store_altivec_registers): New functions.
1465 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1466 registers as well.
1467
aaa38bb5
AJ
14682002-02-21 Jiri Smid <smid@suse.cz>
1469
1470 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1471
b34db576
RE
14722002-02-21 Richard Earnshaw <rearnsha@arm.com>
1473
1474 * Makefile.in (armnbsd-nat.o): Update dependencies.
1475 * armnbsd-nat.c (supply_gregset): New function. Common code to
1476 supply the integer register set.
1477 (supply_fparegset): New function. Similar for FPA registers.
1478 (fetch_regs, fetch_fp_regs): Use them.
1479 (fetch_core_registers): Likewise.
1480 (fetch_elfcore_registers): New function.
1481 (arm_netbsd_elfcore_fns): New core-file type specification.
1482 (_initialize_arm_netbsd_nat): Register it.
1483
3e56fc4b
RE
14842002-02-21 Richard Earnshaw <rearnsha@arm.com>
1485
1486 * armnbsd-nat.c: Include gdbcore.h.
1487 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1488 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1489 'void' to declaration, to shut up ARI.
1490 (fetch_core_registers): Make static. Rewrite using supply_register.
1491 (arm_netbsd_core_fns): New core-file type specification.
1492 (_initialize_arm_netbsd_nat): New function.
1493
097f6b0b
CF
14942002-02-21 Christopher Faylor <cgf@redhat.com>
1495
1496 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1497 value.
1498
c914e0cc
CF
14992002-02-20 Christopher Faylor <cgf@redhat.com>
1500
1501 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1502 fails.
1503
385fa495
DJ
15042002-02-20 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * jv-exp.y (parse_number): Change type of implicit longs
1507 to builtin_type_uint64.
1508
e5f1222d
DJ
15092002-02-20 Daniel Jacobowitz <drow@mvista.com>
1510
1511 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1512 to be an integer instead of a `union wait'.
1513
75c9abc6
DJ
15142002-02-20 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * mips-linux-nat.c: Call the operating system GNU/Linux.
1517 * mips-linux-tdep.c: Likewise.
1518 * mips-tdep.c: Likewise.
1519
551792a5
DJ
15202002-02-20 Daniel Jacobowitz <drow@mvista.com>
1521
1522 Fix PR gdb/265.
1523 * jv-exp.y (parse_number): Handle 64-bit integers.
1524
ee6e2b82
DJ
15252002-02-20 Daniel Jacobowitz <drow@mvista.com>
1526
1527 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1528 AC_STDC_HEADERS to AC_HEADER_STDC.
1529 * gdbserver/configure: Regenerated.
1530
a48442a0
RE
15312002-02-20 Richard Earnshaw <rearnsha@arm.com>
1532
1533 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1534 is defined.
1535 * sparc-tdep.c (get_longjmp_target): Likewise.
1536
fe419ffc
RE
15372002-02-20 Richard Earnshaw <rearnsha@arm.com>
1538
1539 * News: Add news about ARM and Multi-arch. Mention the new target
1540 arm*-*-netbsd*.
1541
5832ed7e
JB
15422002-02-19 Jim Blandy <jimb@redhat.com>
1543
1544 * stabsread.c (error_type_complaint): Improve error message.
1545
84563040
DJ
15462002-02-19 Daniel Jacobowitz <drow@mvista.com>
1547
1548 * gdbserver/README: Update documentation.
1549 * gdbserver/configure.in: Update configury to match documentation.
1550 * gdbserver/Makefile.in: Likewise.
1551 * gdbserver/configure: Regenerated.
1552 * gdbserver/aclocal.m4: New file, generated by aclocal.
1553 * gdbserver/config.in: New file, generated by autoheader.
1554
375fd65b
RE
15552002-02-19 Richard Earnshaw <rearnsha@arm.com>
1556
1557 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1558 armnbsd-nat.c.
1559
08216dd7
RE
15602002-02-19 Richard Earnshaw <rearnsha@arm.com>
1561
1562 * arm-tdep.h (enum arm_float_model): New enum.
1563 (struct gdbarch_tdep): Add fp_model.
1564 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1565 up floating-point conversions until we know the floating-point model
1566 in use by the inferior. Don't complain about being unable to
1567 determine the ABI of the inferior when we don't have one.
1568 (arm_extract_return_value): Support different floating-point models.
1569 (arm_store_return_value): Likewise.
aaa38bb5 1570 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
1571 ARM_FLOAT_SOFT.
1572 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1573
65d6d66a
PS
15742002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1575
1576 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1577 of ``current_gdbarch''.
1578
47221191
RE
15792002-02-19 Richard Earnshaw <rearnsha@arm.com>
1580
1581 * armnbsd-nat.c : ANSIfy all function declarations.
1582 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1583 (fetch_inferior_registers): Re-implement in terms of above.
1584 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1585 (store_inferior_registers): Re-implement in terms of above.
1586
fdf39c9a
RE
15872002-02-19 Richard Earnshaw <rearnsha@arm.com>
1588
aaa38bb5 1589 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
1590 kernel.
1591 * arm-linux-tdep.c: Likewise.
1592 * config/arm/tm-linux.h: Likewise.
1593
93247f88
RE
15942002-02-19 Richard Earnshaw <rearnsha@arm.com>
1595
1596 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1597 * config/arm/nbsd.mt (TM_FILE): Delete.
1598 * config/arm/tm-nbsd.h: Delete.
1599
d7b486e7
RE
16002002-02-19 Richard Earnshaw <rearnsha@arm.com>
1601
1602 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1603 Initialize CALL_DUMMY_LENGTH.
1604
41d39a95
RE
16052002-02-19 Richard Earnshaw <rearnsha@arm.com>
1606
1607 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1608 function.
1609 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 1610 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
1611 defines one thing and that is incorrect for this port.
1612 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1613
e1195560
PM
16142002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1615
1616 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1617
c1748f97
PM
16182002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1619
1620 * win32-nat.c (display_selector): New function. Displays information
1621 about the information returned by GetThreadSelectorEntry API function.
1622 (display_selectors): New function. Displays the infomation of
1623 the selector given as argument, or of CS, DS ans FS selectors
1624 if no argument is given.
1625 ( _initialize_inftarg): Add "w32" as info prefix command.
1626 Add "info w32 selector" as command calling display_selectors.
1627
e41e6bbf
PM
16282002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1629
1630 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1631 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1632 if not defined.
1633
0d3a9f48
RE
16342002-02-18 Richard Earnshaw <rearnsha@arm.com>
1635
1636 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1637
3fb4b924
RE
16382002-02-18 Richard Earnshaw <rearnsha@arm.com>
1639
1640 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1641 (arm_fix_call_dummy): Call it.
1642 (arm_call_dummy_breakpoint_offset): Delete.
1643 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1644 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1645
7f55af32
AC
16462002-02-18 Andrew Cagney <ac131313@redhat.com>
1647
1648 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1649 Default to func_frame_chain_valid.
1650 * gdbarch.h, gdbarch.c: Re-generate.
1651 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1652
05f13b9c
EZ
16532002-02-18 Elena Zannoni <ezannoni@redhat.com>
1654
1655 * ppc-linux-nat.c: Update copyright.
1656 (fetch_register, store_register): Add tid parameter, don't compute
1657 tid here.
1658 (fetch_ppc_registers, store_ppc_registers): Add tid
1659 parameter. Pass it along to callees.
1660 (fetch_inferior_registers, store_inferior_registers): Compute tid
1661 here, and pass it to calleed functions.
1662 (fill_gregset, supply_fpregset): Clean up formatting.
1663
d7afb4c9
RE
16642002-02-18 Richard Earnshaw <rearnsha@arm.com>
1665
1666 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1667 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1668
9df628e0
RE
16692002-02-18 Richard Earnshaw <rearnsha@arm.com>
1670
1671 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1672 * gdbarch.c gdbarch.h: Regenerate.
1673 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1674 function.
1675 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1676 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1677 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1678
1679 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1680 * arm-tdep.c (arm_get_longjmp_target): New function.
1681 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1682 this to a positive value register arm_get_longjmp_target as the
1683 longjmp handler.
1684 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1685 (arm_linux_init_abi): Set up longjmp description in tdep.
1686 * armnbsd-nat.c (get_longjmp_target): Delete.
1687 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1688 description in tdep.
1689 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1690 (get_longjmp_target): Delete declaration.
1691 (GET_LONGJMP_TARGET): Delete.
1692 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1693 (GET_LONGJMP_TARGET): Delete.
1694
57bc8964
KB
16952002-02-17 Kevin Buettner <kevinb@redhat.com>
1696
1697 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1698 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1699 of ``current_gdbarch''.
1700
83d31a92
TT
17012002-02-17 Tom Tromey <tromey@redhat.com>
1702
1703 * cli/cli-cmds.c (compare_strings): New function.
1704 (complete_command): Only print each unique item once.
1705 * completer.h (complete_line): Declare.
1706 * completer.c (complete_line): New function.
1707 (line_completion_function): Use it.
1708
17ef5d92
AC
17092002-02-16 Andrew Cagney <ac131313@redhat.com>
1710
1711 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1712 * gdbarch.h, gdbarch.c: Re-generate.
1713
491b8946
DJ
17142002-02-16 Daniel Jacobowitz <drow@mvista.com>
1715
1716 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1717
17182002-02-16 Daniel Jacobowitz <drow@mvista.com>
1719
1720 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1721 * valops.c (value_arg_coerce): Don't take the address of a reference
1722 to convert an argument to a reference.
1723
dfe7f3ac
CF
17242002-02-15 Christopher Faylor <cgf@redhat.com>
1725
1726 * win32-nat.c (get_image_name): New function.
1727 (handle_load_dll): Use get_image_name function.
1728 (get_child_debug_event): Avoid registering debug events until possibly
1729 execed process is started.
1730 (child_create_inferior): Allow invocation via shell so that command
1731 line redirection, etc. works ok.
1732 (_initialize_inftarg): Add new command: "set shell" to control whether
1733 a shell is used to start a process.
1734
1d33e73a
DJ
17352002-02-15 Daniel Jacobowitz <drow@mvista.com>
1736
1737 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1738 instead of find_register_by_number.
1739 (cannot_store_register): Likewise.
1740
48cd0caa
PM
17412002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1742
aaa38bb5 1743 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
1744 fprintf_unfiltered (gdb_stderr, ...).
1745
8656e7d8
DJ
17462002-02-15 Daniel Jacobowitz <drow@mvista.com>
1747
1748 * gdbserver/gdbserver.1: Document --attach.
1749
66e810cd
RE
17502002-02-15 Richard Earnshaw <rearnsha@arm.com>
1751
1752 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1753 descriptions.
1754 * arm-tdep.c (arm_default_arm_le_breakpoint)
1755 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1756 (arm_default_thumb_be_breakpoint): New. Initialize them from
1757 traditional breakpoint defines.
1758 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1759 (arm_gdbarch_init): Initialize new breakpoint variables.
1760 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1761 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1762 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1763 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1764 code out to ...
1765 (arm_netbsd_init_abi_common): ... here; new function.
1766 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1767 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1768 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1769 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1770
97e03143
RE
17712002-02-15 Richard Earnshaw <rearnsha@arm.com>
1772
1773 * arm-tdep.h (enum arm_abi): New enum.
1774 (struct gdbarch_tdep): New structure.
1775 (LOWEST_PC): Provide a default.
1776 (arm_gdbarch_register_os_abi): Declare new function.
1777 * arm-tdep.c (arm_abi_names): New array.
1778 (process_note_abi_tag_sections): New function.
1779 (get_elfosabi): New function.
1780 (arm_gdbarch_register_os_abi): New function.
1781 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1782 support for that ABI has been built in, then call the appropriate
1783 configuration routine. Use gdbarch_num_regs() to get the number
1784 of registers.
1785 (arm_dump_tdep): New function.
1786 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1787 place-holder functions.
1788 (_initialize_arm_tdep): Register them.
1789 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1790
1791 * armnbsd-tdep.c: New file.
1792 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1793 * config/arm/nbsd.mt (TDEPFILES): Add it.
1794 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1795
1796 * armnbsd-nat.c: Include regcache.h.
1797 * Makefile.in (armnbsd-nat.o): Update dependency list.
1798
1799 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1800
ad68be46
DJ
18012002-02-14 Daniel Jacobowitz <drow@mvista.com>
1802
1803 * gdbserver/Makefile.in: Fix typos in target rules.
1804
003d6d1d
DJ
18052002-02-14 Daniel Jacobowitz <drow@mvista.com>
1806
aaa38bb5 1807 Fix part of PR gdb/267.
003d6d1d
DJ
1808 * linespec.c (find_methods): Handle constructors specially for now.
1809
6b230f1b
CV
18102002-02-14 Corinna Vinschen <vinschen@redhat.com>
1811
1812 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1813 handling.
1814 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1815 standard_coerce_float_to_double().
1816
1ea98d12
CF
18172002-02-14 Christopher Faylor <cgf@redhat.com>
1818
1819 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1820 GDBINIT_FILENAME.
1821
dd47e6fd
EZ
18222002-02-14 Elena Zannoni <ezannoni@redhat.com>
1823
1824 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1825 find_variant_by_name, because it confuses the multiarch
1826 framework. Return NULL if there isn't an architecture with the
1827 user supplied name, instead of forcing a different one without
1828 recording the change with the multiarch machinery.
1829 (find_variant_by_name): Delete.
1830
d7e39b9e
PS
18312002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1832
1833 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1834 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1835
76e42a4f
MH
18362002-02-13 Martin M. Hunt <hunt@redhat.com>
1837
aaa38bb5 1838 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
1839 print_frame_info_listing_hook, set current_source_symtab.
1840
0a30fbc4
DJ
18412002-02-14 Daniel Jacobowitz <drow@mvista.com>
1842
1843 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1844 and remove unused $(INCLUDE_DIR).
1845 Add regcache.c to OBS.
1846 Add generated register protocol files to clean target.
1847 Update dependencies for new objects, obsolete old target code.
1848
1849 * gdbserver/linux-low.c: Remove all platform-specific code to
1850 new files. Remove various dead code. Update to use regcache
1851 functionality.
1852 * gdbserver/remote-utils.c (fromhex): Add return statement
1853 to quiet warning.
1854 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1855 constant.
1856 (input_interrupt): Add integer parameter to match prototype
1857 of a signal handler.
1858 (outreg): Use register_data ().
1859 (prepare_resume_reply): Use gdbserver_expedite_regs.
1860 * gdbserver/server.c (main): Dynamically allocate own_buf because
1861 PBUFSIZ is no longer constant. Use registers_to_string () and
1862 registers_from_string ().
1863 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1864 for error (), fatal (), and warning (). Update definition of
1865 PBUFSIZ to use regcache functionality. Add include guard.
1866 * gdbserver/utils.c (fatal): Add missing ``const''.
1867 (warning): New function.
1868
1869 * regformats/regdat.sh: Include "regcache.h" in generated files.
1870 Provide init_registers () function.
1871 * regformats/regdef.h: Add prototype for set_register_cache ().
1872 Add include guard.
1873
1874 * gdbserver/linux-arm-low.c: New file.
1875 * gdbserver/linux-i386-low.c: New file.
1876 * gdbserver/linux-ia64-low.c: New file.
1877 * gdbserver/linux-m68k-low.c: New file.
1878 * gdbserver/linux-mips-low.c: New file.
1879 * gdbserver/linux-ppc-low.c: New file.
1880 * gdbserver/linux-sh-low.c: New file.
1881
1882 * gdbserver/regcache.c: New file.
1883 * gdbserver/regcache.h: New file.
1884
1885 * gdbserver/low-linux.c: Removed obsolete file.
1886
4cc841d0
DJ
18872002-02-14 Daniel Jacobowitz <drow@mvista.com>
1888
1889 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1890 * config/i386/linux.mt: Likewise.
1891 * config/ia64/linux.mt: Likewise.
1892 * config/m68k/linux.mh: Likewise.
1893 * config/powerpc/linux.mh: Likewise.
1894 * config/mips/linux.mt: Likewise.
1895
1896 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1897
1898 * config/i386/i386lynx.mh: Mark gdbserver variables
1899 as (currently) obsolete for this target.
1900 * config/i386/nbsd.mt: Likewise.
1901 * config/i386/nbsdelf.mt: Likewise.
1902 * config/m32r/m32r.mt: Likewise.
1903 * config/m68k/m68klynx.mh: Likewise.
1904 * config/m68k/nbsd.mt: Likewise.
1905 * config/m68k/sun3os4.mh: Likewise.
1906 * config/mips/vr5000.mt: Likewise.
1907 * config/ns32k/nbsd.mt: Likewise.
1908 * config/pa/hppabsd.mh: Likewise.
1909 * config/pa/hppaosf.mh: Likewise.
1910 * config/powerpc/nbsd.mt: Likewise.
1911 * config/rs6000/rs6000lynx.mh: Likewise.
1912 * config/s390/s390.mt: Likewise.
1913 * config/s390/s390x.mt: Likewise.
1914 * config/sparc/sparclynx.mh: Likewise.
1915 * config/sparc/sun4os4.mh: Likewise.
1916 * config/i386/x86-64linux.mt: Likewise.
1917 * config/sparc/linux.mh: Likewise.
1918
a85f51e7
DJ
19192002-02-14 Daniel Jacobowitz <drow@mvista.com>
1920
1921 * configure.tgt: Configure gdbserver only for known working
1922 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1923 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1924 SUBDIRS if it is configured. Update comment for ${nativefile}.
1925 * configure: Regenerated.
1926
65554fef
MS
19272002-02-13 Michael Snyder <msnyder@redhat.com>
1928
670a52db
MS
1929 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
1930
6dbdc4a3
MS
1931 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1932 (default_gcore_mach): Just return 0, work around a problem in bfd.
1933 (default_gcore_target): OK to return NULL if exec_bfd is null.
1934 (make_mem_sec): Use a cast, avoid a warning.
1935
1936 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 1937 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
1938 sizeof (host pointer) != sizeof (target pointer)).
1939 (procfs_make_note_section): Avoid overflow in psargs string.
1940
aaa38bb5 1941 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
1942 implementation return an error.
1943
19442002-02-13 Rodney Brown <rbrown64@csc.com.au>
1945
1946 * procfs.c (procfs_make_note_section): Provide a default definition
1947 (for alpha-dec-osf4.0f). Fix typos.
1948
1e4d76e7
EZ
19492002-02-13 Elena Zannoni <ezannoni@redhat.com>
1950
1951 * linux-proc.c: Add include of regcache.h.
1952 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1953
b6d1a1d5
AC
19542002-02-13 Andrew Cagney <ac131313@redhat.com>
1955
1956 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
1957 * memattr.c (create_mem_region): Disallow useless empty region.
1958 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 1959 non-overlapping.
b6d1a1d5 1960
6c6ea35e
MC
19612002-02-13 Michael Chastain <mec@shout.net>
1962
1963 * defs.h: Kill CONST_PTR.
1964 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1965 * c-lang.c (c_builtin_types): Likewise.
1966 * ch-lang.c (ch_builtin_types): Likewise.
1967 * f-lang.c (f_builtin_types): Likewise.
1968 * language.c (unknown_builtin_types): Likewise.
1969 * m2-lang.c (m2_builtin_types): Likewise.
1970 * p-lang.c (pascal_builtin_types): Likewise.
1971 * scm-lang.c (c_builtin_types): Likewise.
1972
3e0b0f48
KS
19732002-02-13 Keith Seitz <keiths@redhat.com>
1974
1975 * arm-tdep.h (arm_get_next_pc): Add declaration.
1976
67255d04
RE
19772002-02-13 Richard Earnshaw <rearnsha@arm.com>
1978
1979 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1980 with other related struct-returning functions.
1981 (arm_extract_struct_value_address): New function.
1982 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1983 initialize float_format, double_format and long_double_format as
1984 appropriate to the endianness of the target.
1985 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1986 (arm_use_struct_convention): Delete declaration.
1987 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1988
079777f6
KS
19892002-02-13 Keith Seitz <keiths@redhat.com>
1990
1991 * defs.h (core_addr_to_string_nz): New function.
1992
34588f23
MK
19932002-02-13 Mark Kettenis <kettenis@gnu.org>
1994
1995 Apply missing bits of 2002-01-15 patch.
1996 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1997 (fill_fpregset): Use i387_fill_fsave.
1998
49b563f9
KS
19992002-02-12 Keith Seitz <keiths@redhat.com>
2000
49b563f9
KS
2001 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2002 (core_addr_to_string_nz): New function.
2003
aeb98c60
RE
20042002-02-11 Richard Earnshaw <rearnsha@arm.com>
2005
2006 * arm-linux-nat.c: Really include arm-tdep.h.
2007 * config/arm/tm-linux.h (struct type, struct value): Declare.
2008
65554fef
MS
20092002-02-11 Michael Snyder <msnyder@redhat.com>
2010
2011 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2012 (gcore section): Ifdef for Solaris and Unixware only.
2013 (procfs_do_thread_registers): Unixware needs one lwpstatus
2014 per thread (not one prstatus or pstatus).
2015 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2016 not over all gdb threads. For unixware, call elfcore_write_pstatus
2017 once before iterating over threads.
2018
34e8f22d
RE
20192002-02-11 Richard Earnshaw <rearnsha@arm.com>
2020
2021 * arm-tdep.h: New file.
2022 * arm-tdep.c: Include arm-tdep.h.
2023 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2024 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2025 (arm_print_float_info, arm_register_type, convert_to_extended)
2026 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2027 (arm_extract_return_value, arm_register_name): Make static.
2028 (arm_software_single_step): Similarly. Fix types in declaration.
2029 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2030 (arm_store_return_value, arm_store_struct_return): New functions.
2031 (arm_gdbarch_init): Register the above functions. Also register
2032 call_dummy_start_offset, sizeof_call_dummy_words,
2033 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2034 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2035 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2036 prologue_cache.saved_regs here, rather than ...
2037 (_initialize_arm_tdep): ... here.
2038 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2039 declarations.
2040 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2041 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2042 (arm_print_float_info, arm_register_type, convert_to_extended)
2043 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2044 (arm_extract_return_value, arm_register_name): Delete declarations.
2045 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2046 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2047 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2048 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2049 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2050 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2051 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2052 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2053 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2054 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2055 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2056 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2057 interface.
2058 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2059 * remote-rdi.c remote-rdp.c: Likewise.
2060 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2061 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2062 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2063 definition.
2064
2065 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2066 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2067 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2068 from non-ARM_ prefixed definitions.
2069 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2070 all uses of above.
2071 * remote-rdi.c remote-rdp.c: Likewise.
2072 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2073
148754e5
RE
20742002-02-11 Richard Earnshaw <rearnsha@arm.com>
2075
2076 * arm-tdep.c (arm_frameless_function_invocation)
2077 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2078 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2079 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2080 (arm_pop_frame, arm_get_next_pc): Make static.
2081 (arm_gdbarch_init): Register above in gdbarch structure.
2082 (arm_read_fp): Renamed from arm_target_read_fp.
2083 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2084 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2085 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2086 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2087 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2088 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2089 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2090 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2091 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2092 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2093 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2094
434d2d4f
DJ
20952002-02-10 Daniel Jacobowitz <drow@mvista.com>
2096
2097 * symtab.c (compare_search_syms): New function.
2098 (sort_search_symbols): New function.
2099 (search_symbols): Sort symbols after searching rather than
2100 before.
2101
55241689
AC
21022002-02-10 Andrew Cagney <ac131313@redhat.com>
2103
2104 * NEWS: Linux -> GNU/Linux.
2105
028c194b
AC
21062002-02-10 Andrew Cagney <ac131313@redhat.com>
2107
2108 * gdbarch.sh: For for level one methods, disallow a definition
2109 when partially multi-arched. Add comments explaining rationale.
2110 * gdbarch.h: Re-generate.
2111
6acf50cd
AC
21122002-02-10 Andrew Cagney <ac131313@redhat.com>
2113
2114 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2115 multi-arch partial.
aaa38bb5 2116
50248794
AC
21172002-02-10 Andrew Cagney <ac131313@redhat.com>
2118
2119 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2120 field. Use diff -u.
2121 * gdbarch.c: Re-generate.
2122
c30e0066
AC
21232002-02-10 Andrew Cagney <ac131313@redhat.com>
2124
9b56c5f3 2125 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2126 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2127 partial.
2128
6e6d6484
AC
21292002-02-10 Andrew Cagney <ac131313@redhat.com>
2130
2131 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2132 multi-arch partial.
2133 (PUSH_ARGUMENTS): Switch to using predefault.
2134 * gdbarch.c: Regenerate.
2135
c203844d
AC
21362002-02-10 Andrew Cagney <ac131313@redhat.com>
2137
2138 * valops.c (PUSH_ARGUMENTS): Delete definition.
2139 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2140 partial. Default to default_push_arguments.
2141 * gdbarch.h, gdbarch.c: Regenerate.
2142
b5a2688f
AC
21432002-02-09 Andrew Cagney <ac131313@redhat.com>
2144
2145 * defs.h (throw_exception): Rename return_to_top_level. Update
2146 comments.
2147 * utils.c (error_stream, internal_verror, quit): Ditto.
2148 * top.c (throw_exception, catcher): Ditto.
2149 * sparclet-rom.c (sparclet_load): Ditto.
2150 * remote.c (interrupt_query, minitelnet): Ditto.
2151 * remote-sds.c (interrupt_query): Ditto.
2152 * remote-mips.c (mips_error, mips_kill): Ditto.
2153 * ocd.c (interrupt_query): Ditto.
2154 * monitor.c (monitor_interrupt_query): Ditto.
2155 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2156 * target.h: Update comment.
aaa38bb5 2157
b5a2688f 2158 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2159
2fa5c1e0
AC
21602002-02-09 Andrew Cagney <ac131313@redhat.com>
2161
2162 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2163 default_double_format.
2164 * gdbarch.h, gdbarch.c: Re-generate.
2165 * findvar.c (floatformat_unknown): Delete variable definition.
2166 * doublest.h (floatformat_unknown): Delete variable declaration.
2167
da966255
JB
21682002-02-09 Jim Blandy <jimb@redhat.com>
2169
2170 * stabsread.c (read_type): Add code to parse Sun's syntax for
2171 prototyped function types.
2172
123a4891
AC
21732002-02-09 Andrew Cagney <ac131313@redhat.com>
2174
2175 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2176 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2177
fb39c8f3
PS
21782002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2179
2180 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2181 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2182 now _initialize_xcoffsolib gets called again and overrides the
2183 commands from solib.c in a native configuration.
2184
0b87a11d
MK
21852002-02-09 Mark Kettenis <kettenis@gnu.org>
2186
2187 * doublest.c (store_typed_floating): Don't try to return a value.
2188 Fixes PR gdb/290.
2189
bdc2fc72
JB
21902002-02-08 Jim Blandy <jimb@redhat.com>
2191
2192 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2193 is prototyped and has no arguments, print its argument list as
2194 `(void)'.
2195
da69bbcf
CD
21962002-02-08 Chris Demetriou <cgd@broadcom.com>
2197
2198 * MAINTAINERS (write-after-approval): Add myself.
2199 (paper-trail): I've escaped!
aaa38bb5 2200
b69571f5
CF
22012002-02-08 Christopher Faylor <cgf@redhat.com>
2202
2203 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2204 changes.
2205 (_initialize_check_for_gdb_ini): Ditto.
2206
f6871398
MH
22072002-02-08 Martin M. Hunt <hunt@redhat.com>
2208
2209 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2210 xaprintf -> xasprintf.
2211
4e52d31c
PM
22122002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2213
2214 * win32-nat.c: Remove use of printf and sprintf functions.
2215
39bbf761
RE
22162002-02-08 Richard Earnshaw <rearnsha@arm.com>
2217
2218 * arm-tdep.c (arm_frame_chain_valid): Make static.
2219 (arm_push_arguments): Likewise.
2220 (arm_gdbarch_init): New function.
2221 (_initialize_arm_tdep): Call it.
2222 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2223 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2224 (FRAME_CHAIN_VALID): Delete.
2225 (arm_frame_chain_valid): Delete declaration.
2226 (PUSH_ARGUMENTS): Delete.
2227 (arm_push_arguments): Delete declaration.
2228 (CALL_DUMMY_P): Delete.
2229
9c9532c9
CV
22302002-02-08 Andrew Cagney <ac131313@redhat.com>
2231 Corinna Vinschen <vinschen@redhat.com>
2232
2233 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2234 on builtin float types.
2235
4e8f7a8b
DJ
22362002-02-08 Daniel Jacobowitz <drow@mvista.com>
2237
2238 * utils.c: Include <curses.h> before "bfd.h".
2239 * tui/tui-hooks.c: Likewise.
2240 * tui/tui.c: Likewise.
2241 * tui/tuiCommand.c: Likewise.
2242 * tui/tuiData.c: Likewise.
2243 * tui/tuiDataWin.c: Likewise.
2244 * tui/tuiDisassem.c: Likewise.
2245 * tui/tuiGeneralWin.c: Likewise.
2246 * tui/tuiIO.c: Likewise.
2247 * tui/tuiLayout.c: Likewise.
2248 * tui/tuiRegs.c: Likewise.
2249 * tui/tuiSource.c: Likewise.
2250 * tui/tuiSourceWin.c: Likewise.
2251 * tui/tuiStack.c: Likewise.
2252 * tui/tuiWin.c: Likewise.
2253
cd4bffcf
EZ
22542002-02-07 Elena Zannoni <ezannoni@redhat.com>
2255
2256 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2257 to include space for pseudoregs as well. Update loops accordingly.
2258 (sh_fp_frame_init_saved_regs): Ditto.
2259 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2260
26806ce2
AC
22612002-02-07 Andrew Cagney <ac131313@redhat.com>
2262
2263 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2264 Add Richard Earnshaw to Arm maintainers.
2265
97fdab62
AC
22662002-02-07 Andrew Cagney <ac131313@redhat.com>
2267
a6b98203
AC
2268 * defs.h (warning_begin): Delete declaration.
2269
97fdab62
AC
2270 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2271 Delete macro.
2272
78b29b40
MS
22732002-02-07 Michael Snyder <msnyder@redhat.com>
2274
aaa38bb5 2275 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
2276 Logic bug, remove misplaced else.
2277
d8849953
KD
22782002-02-07 Klee Dienes <klee@apple.com>
2279
2280 * fork-inferior.c (fork_inferior): Add '!' to the list of
2281 characters that need to be quoted when building a string for the
2282 shell. Quote '!' specifically with a backslash, since CSH chokes
2283 when trying to evaluate "str!str".
aaa38bb5 2284
095778a0
NC
22852002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2286
2287 * rdi-share/host.h: Only provide a typedef for bool if it is not
2288 defined.
2289
1900040c
MS
22902002-02-04 Michael Snyder <msnyder@redhat.com>
2291
2292 * breakpoint.h (enum bptype): Add new overlay event bp type.
2293 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 2294
1900040c
MS
2295 * breakpoint.c (create_internal_breakpoint): New function.
2296 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2297 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2298 (create_thread_event_breakpoint): Ditto.
2299 (create_solib_event_breakpoint): Ditto.
2300 (create_overlay_event_breakpoint): New function.
2301 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2302 (update_breakpoints_after_exec): Delete and re-initialize
2303 overlay event breakpoints after an exec. Add FIXME comment
2304 about longjmp breakpoint.
2305 (print_it_typical): Ignore overlay event breakpoints.
2306 (print_one_breakpoint): Ditto.
2307 (mention): Ditto.
2308 (bpstat_what): Do not stop for overlay event breakpoints.
2309 (delete_breakpoint): Don't delete overlay event breakpoints.
2310 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2311 (breakpoint_re_set): Re-create overlay event breakpoint.
2312
2313 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2314 (overlay_manual_command): Disable overlay breakpoints.
2315 (overlay_off_command): Disable overlay breakpoints.
2316
082fc60d
RE
23172002-02-06 Richard Earnshaw <rearnsha@arm.com>
2318
2319 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2320 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2321 to here from config/tm-arm.h.
2322 (coff_sym_is_thumb): Make static.
2323 (arm_elf_make_msymbol_special): New function.
2324 (arm_coff_make_msymbol_special): New function.
2325 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2326 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2327 (coff_sym_is_thumb): Delete declaration.
2328 (arm_elf_make_msymbol_special): Declare.
2329 (arm_coff_make_msymbol_special): Declare.
2330 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2331 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2332
039c5766
RE
23332002-02-06 Richard Earnshaw <rearnsha@arm.com>
2334
2335 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2336
23372002-02-06 Richard Earnshaw <rearnsha@arm.com>
2338
2339 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2340 * gdbarch.c gdbarch.h: Regenerate.
2341 * arch-utils.c (default_print_float_info): New function.
2342 * arch-utils.h (default_print_float_info): Prototype it.
2343 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2344 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2345 (PRINT_FLOAT_INFO): Document it.
2346
2347 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2348 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2349 (PRINT_FLOAT_INFO): Define.
2350
58fa08f0
PM
23512002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2352
aaa38bb5 2353 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
2354 Add typecast to sprintf argument to suppress a warning.
2355
7393af7c
PM
23562002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2357
58fa08f0 2358 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
2359 to allow easier handling of pass state.
2360 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2361 that gives exception name and address.
2362 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 2363 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 2364 exceptions added.
aaa38bb5
AJ
2365 (child_continue): Correctly report continue_status.
2366 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 2367 TARGET_SIGNAL_0 (new default value).
aaa38bb5 2368 (child_resume): consider sig argument passed to decide if
7393af7c
PM
2369 the exception should be passed to debuggee or not.
2370
6af4589c
MS
23712002-02-05 Michael Snyder <msnyder@redhat.com>
2372
2373 * regcache.c (fetch_register): Call target_fetch_register
2374 only if we don't call FETCH_PSEUDO_REGISTER.
2375 (store_register): Call target_store_register only if we
2376 don't call STORE_PSEUDO_REGISTER.
2377
a2cf933a
EZ
23782002-02-05 Elena Zannoni <ezannoni@redhat.com>
2379
2380 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2381 ELF_MAKE_MSYMBOL_SPECIAL.
2382 * gdbarch.c, gdbarch.h: Regenerate.
2383 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 2384 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
2385 * elfread.c (elf_symtab_read): Compile use of
2386 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2387 multiarched.
2388 * coffread.c (coff_symtab_read): Ditto, for
2389 COFF_MAKE_MSYMBOL_SPECIAL.
2390
6bb7be43
JB
23912002-02-05 Jim Blandy <jimb@redhat.com>
2392
2393 * solib-svr4.c (svr4_truncate_ptr): New function.
2394 (svr4_relocate_section_addresses): Do the address arithmetic with
2395 the appropriate truncation for target addresses, even when
2396 CORE_ADDR is larger than a target address.
2397
e18651ec
DJ
23982002-02-05 Daniel Jacobowitz <drow@mvista.com>
2399
2400 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2401 to (int *).
2402
6b2725be
DJ
24032002-02-05 Daniel Jacobowitz <drow@mvista.com>
2404
2405 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2406 code.
2407
fca9e603
DJ
24082002-02-05 Daniel Jacobowitz <drow@mvista.com>
2409
2410 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2411
6c537a52
DJ
24122002-02-05 Daniel Jacobowitz <drow@mvista.com>
2413
2414 * gdbserver/linux-low.c: Remove unused include files.
2415
d844cde6
DJ
24162002-02-05 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2419 (read_inferior_memory): Use it.
2420 (write_inferior_memory): Likewise.
2421
d07c63e7
DJ
24222002-02-05 Daniel Jacobowitz <drow@mvista.com>
2423
2424 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2425 grubbing through sys_errlist.
2426
da6d8c04
DJ
24272002-02-05 Daniel Jacobowitz <drow@mvista.com>
2428
2429 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2430
5b421780
PM
24312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2432 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2433
9f60d481
AC
24342002-02-04 Andrew Cagney <ac131313@redhat.com>
2435
2436 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2437 (do_sfunc, set_cmd_sfunc): New functions.
2438
2439 * command.h (struct cmd_list_element): Add field func.
2440 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2441 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2442 * cli/cli-decode.h: Ditto.
2443
2444 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2445 (help_all, help_cmd_list): Ditto.
2446 (find_cmd, complete_on_cmdlist): Ditto.
2447 * top.c (execute_command): Ditto.
2448
2449 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2450 function.sfunc.
2451
2452 * infcmd.c (notice_args_read): Fix function signature.
2453
2454 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2455 * cli/cli-decode.c (add_set_cmd): Ditto.
2456 * utils.c (initialize_utils): Ditto.
2457 * maint.c (_initialize_maint_cmds): Ditto.
2458 * infrun.c (_initialize_infrun): Ditto.
2459 * demangle.c (_initialize_demangler): Ditto.
2460 * remote.c (add_packet_config_cmd): Ditto.
2461 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2462 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2463 * proc-api.c (_initialize_proc_api): Ditto.
2464 * kod.c (_initialize_kod): Ditto.
2465 * valprint.c (_initialize_valprint): Ditto.
2466 * top.c (init_main): Ditto.
2467 * infcmd.c (_initialize_infcmd): Ditto.
2468 * corefile.c (_initialize_core): Ditto.
2469 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2470 * arch-utils.c (initialize_current_architecture): Ditto.
2471 (_initialize_gdbarch_utils): Ditto.
2472 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2473
2474 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2475 * wince.c (_initialize_inftarg): Ditto.
2476 * symfile.c (_initialize_symfile): Ditto.
2477 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2478 * language.c (_initialize_language): Ditto.
2479 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2480
f9ba0717
MS
24812002-02-04 Michael Snyder <msnyder@redhat.com>
2482
2483 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2484
0c74b2a7
DJ
24852002-02-04 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2488 Add rules for building the register data files.
2489
c638789f
DJ
24902002-02-04 Daniel Jacobowitz <drow@mvista.com>
2491
2492 * regformats/regdat.sh: Add braces to the definition of
2493 expedite_regs_${arch}.
2494
db253027
DJ
24952002-02-04 Daniel Jacobowitz <drow@mvista.com>
2496
2497 * regformats/regdef.h (struct reg): Add comment describing the
2498 requirements for offset and size fields.
2499
206be19c
AS
25002002-02-04 Andreas Schwab <schwab@suse.de>
2501
2502 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2503 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2504
181c1381
RE
25052002-02-04 Richard Earnshaw <rearnsha@arm.com>
2506
2507 * gdbarch.sh (copyright): Update years in generated header.
2508 (SMASH_TEXT_ADDRESS): Add rule.
db253027 2509 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
2510 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2511 * dbxread.c: Likewise.
2512 * dwarfread.c: Likewise.
2513 * elfread.c: Likewise.
2514 * somread.c: Likewise.
2515
2516 * arm-tdep.c (arm_smash_text_address): New function.
2517 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2518
fa4ba8da
PM
25192002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2520
2521 Add support for hardware watchpoints on win32 native.
aaa38bb5 2522 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 2523 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 2524 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
2525 of debug registers.
2526 (debug_registers_changed): New variable. Reflects when debug registers
2527 are changed and need to be written to inferior.
aaa38bb5 2528 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
2529 was set, used when new threads are created.
2530 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2531 i386-nat code.
2532 (thread_rec): Set dr array if id is the thread of current_event .
2533 (child_continue, child_resume): Change the debug registers for all
2534 threads if debug_registers_changed.
2535 (child_add_thread): Change the debug registers if debug_registers_used.
2536 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2537 Link nm.h to new nm-cygwin.h file.
2538 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2539 of hardware registers.
2540
a73c86fb
AC
25412002-02-03 Andrew Cagney <ac131313@redhat.com>
2542
2543 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2544 Restore behavour broken by 2002-01-20 Andrew Cagney
2545 <ac131313@redhat.com> IEEE_FLOAT removal.
2546
acf5ed49
DJ
25472002-02-03 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * c-valprint.c (c_val_print): Pass a proper valaddr to
2550 cp_print_class_method.
2551 * valops.c (search_struct_method): If there is only one method
2552 and args is NULL, return that method.
2553
493d28d5
DJ
25542002-02-03 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2557 accessing tag_name directly.
2558
7495dfdb
DJ
25592002-02-03 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2562 of accessing tag_name directly.
2563
dd6bda65
DJ
25642002-02-03 Daniel Jacobowitz <drow@mvista.com>
2565
2566 PR gdb/280
2567 * gdbtypes.c (replace_type): New function.
2568 * gdbtypes.h (replace_type): Add prototype.
2569 * stabsread.c (read_type): Use replace_type.
2570
88fe217c
RE
25712002-02-03 Richard Earnshaw <rearnsha@arm.com>
2572
2573 * Makefile.in (memattr.o): Add missing dependencies rule.
2574
e5d66720
PS
25752002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2576
2577 * breakpoint.c (break_at_finish_command): Really export.
2578 (break_at_finish_at_depth_command): Ditto.
2579 (tbreak_at_finish_command): Ditto.
2580 * hppa-tdep.c: Include completer.h.
2581 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2582 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2583
fffee0be
AC
25842002-02-01 Andrew Cagney <ac131313@redhat.com>
2585
2586 * utils.c (do_write): New function.
2587 (error_stream): Rewrite combining the code from error_begin and
2588 verror.
2589 (verror): Rewrite using error_stream.
2590 (error_begin): Delete function.
2591
255e7dbf
AC
25922002-02-01 Andrew Cagney <ac131313@redhat.com>
2593
2594 * utils.c (error_begin): Make static.
2595 * defs.h (error_begin): Delete declaration.
2596
2597 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2598 (decode_line_1): Use cplusplus_error instead of error_begin,
2599 cplusplus_hint and return_to_top_level.
2600 * coffread.c (coff_symfile_read): Use error instead of error_begin
2601 and return_to_top_level.
2602 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2603
ddfe3c15
AC
26042002-02-01 Andrew Cagney <ac131313@redhat.com>
2605
2606 * language.h (type_error, range_error): Make string parameter
2607 constant.
2608 * language.c (warning_pre_print): Delete extern declaration.
2609 * dwarfread.c (warning_pre_print): Ditto.
2610 * language.c (type_error, range_error): Rewrite to use verror and
2611 vwarning instead of warning_begin.
2612
03ac34d5
MS
26132002-02-01 Michael Snyder <msnyder@redhat.com>
2614
261c4ca2
MS
2615 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2616 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 2617
e00d1dc8
AC
26182002-02-01 Andrew Cagney <ac131313@redhat.com>
2619
2620 * command.h (NO_FUNCTION): Delete macro.
2621 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2622 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2623 * tracepoint.c (_initialize_tracepoint): Ditto.
2624 * cli/cli-decode.c (add_set_cmd): Ditto.
2625 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 2626
76b79d6e
DJ
26272002-02-01 Daniel Jacobowitz <drow@mvista.com>
2628
2629 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2630 Update ``this'' pointer when calling virtual functions.
2631
799f9e91
MS
26322002-02-01 Michael Snyder <msnyder@redhat.com>
2633
c7bd442c 2634 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
2635 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2636
3cf384d4
DJ
26372002-02-01 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * regformats/reg-arm.dat: New file.
2640 * regformats/reg-i386.dat: New file.
2641 * regformats/reg-ia64.dat: New file.
2642 * regformats/reg-m68k.dat: New file.
2643 * regformats/reg-mips.dat: New file.
2644 * regformats/reg-ppc.dat: New file.
2645 * regformats/reg-sh.dat: New file.
2646 * regformats/regdef.h: New file.
2647 * regformats/regdat.sh: New file.
2648
0defa245
RE
26492002-02-01 Richard Earnshaw <reanrsha@arm.com>
2650
2651 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2652 (arm_frame_args_address, arm_frame_locals_address): New functions.
2653 (arm_frame_num_args): New function.
2654 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2655 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2656 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2657
405f26e6
MS
26582002-01-31 Michael Snyder <msnyder@redhat.com>
2659
502fd408
MS
2660 * breakpoint.c (break_at_finish_command): Export.
2661 (break_at_finish_at_depth_command): Export.
2662 (tbreak_at_finish_command): Export.
2663 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2664 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2665 "tbreak" commands, which are HPPA specific.
2666
7d35e135
MS
2667 * printcmd.c (disassemble_command): Remove an ancient
2668 artifact of an old merge.
2669
aaa38bb5 2670 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
2671 Define enum constant values for overlay mode.
2672 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
2673 (overlay_is_mapped, overlay_auto_command,
2674 overlay_manual_command): Ditto.
d874f1e2 2675
aaa38bb5
AJ
2676 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2677 breakpoint_here_p, breakpoint_inserted_here_p,
2678 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
2679 describe_other_breakpoints, check_duplicates, clear_command):
2680 Coding standard fixes.
2681
8add0441 2682 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 2683 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
2684 code: check bfd SEC_READONLY flag for section.
2685
e351066e
AC
26862002-01-31 Andrew Cagney <ac131313@redhat.com>
2687
7d35e135 2688 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 2689
8a48e967
DJ
26902002-01-30 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2693 data symbols, since we search based on textlow and texthigh.
2694 (find_pc_sect_symtab): Likewise.
2695
f5a96129
AC
26962002-01-30 Andrew Cagney <ac131313@redhat.com>
2697
2698 * defs.h (vwarning): Declare.
f5a96129
AC
2699 * utils.c (vwarning): New function.
2700 (warning): Call vwarning.
2701 (warning_begin): Delete function.
2702
2703 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2704 the warning message.
2705 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2706 warning_begin.
2707
cefd4ef5
MS
27082002-01-30 Michael Snyder <msnyder@redhat.com>
2709
1a703748
MS
2710 * NEWS: Mention "set trust-readonly-sections" command.
2711 Mention generate-core-file command.
cefd4ef5 2712
3a11626d
MS
27132002-01-15 Michael Snyder <msnyder@redhat.com>
2714
2715 * target.c: New command, "set trust-readonly-sections on".
2716 (do_xfer_memory): Honor the suggestion to trust readonly sections
2717 by reading them from the object file instead of from the target.
2718 (initialize_targets): Register command "set trust-readonly-sections".
2719
d1c7e53b
AC
27202002-01-29 Andrew Cagney <ac131313@redhat.com>
2721
2722 * parse.c (target_map_name_to_register): Simplify, search regs and
2723 pseudo-regs using a single loop.
2724
e2c9a72c
AC
27252002-01-30 Andrew Cagney <ac131313@redhat.com>
2726
2727 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2728
69824b4e
MK
27292002-01-15 Rodney Brown <rbrown64@csc.com.au>
2730
2731 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2732 * config/i386/i386v42mp.mh: Add i387-nat.o .
2733 * i386v4-nat.c: Include i387-nat.h.
2734 (supply_fpregset): Use i387_supply_fsave.
2735 (fill_fpregset): Use i387_fill_fsave.
2736
6eb69eab
RE
27372002-01-30 Richard Earnshaw <rearnsha@arm.com>
2738
2739 * arm-tdep.c (arm_call_dummy_words): Define.
2740 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2741 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2742 (CALL_DUMMY_WORDS): Define.
2743 (arm_call_dummy_words): Declare.
2744 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2745 (arm_linux_call_dummy_words): Declare.
2746
9852326a
AS
27472002-01-30 Andreas Schwab <schwab@suse.de>
2748
2749 * m68klinux-nat.c: Fix last change to use regcache_collect
2750 instead of referencing registers[] directly.
2751
977a3030
AC
27522002-01-29 Andrew Cagney <ac131313@redhat.com>
2753
2754 * parse.c (target_map_name_to_register): Delete code wrapped in
2755 #ifdef REGISTER_NAME_ALIAS_HOOK.
2756
2076c72b
MS
27572002-01-28 Michael Snyder <msnyder@redhat.com>
2758
2759 * regcache.c (legacy_read_register_gen): Need to be able to
2760 read pseudo-register as well as real register.
2761 (legacy_write_register_gen): Ditto.
2762
8fcc723b
AC
27632002-01-28 Andrew Cagney <ac131313@redhat.com>
2764
2765 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2766 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2767 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2768 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2769 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2770 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2771 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2772 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2773 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2774 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2775 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2776 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2777 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2778 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2779 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2780 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2781 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2782 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2783 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2784 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2785
afe64c1a
AC
27862002-01-28 Andrew Cagney <ac131313@redhat.com>
2787
2788 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2789 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2790 (initialize_current_architecture): Update target_byte_order using
2791 information from BFD.
aaa38bb5 2792 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
2793 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2794
75bc7ddf
AC
27952002-01-28 Andrew Cagney <ac131313@redhat.com>
2796
2797 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2798 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2799
2800 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2801 #ifdef INVALID_FLOAT.
2802 * infcmd.c (do_registers_info): Ditto.
2803 * values.c (unpack_double): Ditto. Add comment.
2804
2805 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2806 already commented out.
2807
0280a90a
AS
28082002-01-26 Andreas Schwab <schwab@suse.de>
2809
2810 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2811 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2812 registers and add support for PTRACE_GETREGS.
2813
7072a954
AC
28142002-01-24 Andrew Cagney <ac131313@redhat.com>
2815
2816 GDB 5.1.1 released from 5.1 branch.
2817 * NEWS: Add 5.1.1 news.
2818 * README: Sync with 5.1 branch.
2819
86f902e0
FF
28202002-01-23 Fred Fish <fnf@redhat.com>
2821
2822 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2823 stabstring on initial malloc. Reallocing will copy it for us,
2824 if necessary.
2825
8af51c36
EZ
28262002-01-23 Elena Zannoni <ezannoni@redhat.com>
2827
aaa38bb5 2828 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
2829 (HFILES_NO_SRCDIR): Remove hpread.h.
2830 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2831 (hpread.o): Update dependencies.
2832 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2833
2834 * hp-psymtab-read.c: Remove file.
2835 * hp-symtab-read.c: Remove file.
2836 * hpread.h: Remove file.
2837
2838 * hpread.c: Merge all contents of hp-psymtab-read.c,
2839 hp-symtab-read.c and hpread.h into this file, as it was prior to
2840 January 1999.
2841
2842 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 2843 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
2844 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2845 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2846
dc5cfeb6
EZ
28472002-01-23 Elena Zannoni <ezannoni@redhat.com>
2848
2849 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2850 fill_gregset): Call gdbarch_tdep() just once, assign result to
2851 variable and use that, instead of calling the function several
2852 times.
2853
ea87b71b
AO
28542002-01-24 Alexandre Oliva <aoliva@redhat.com>
2855
2856 * configure.host: Accept sparcv9 as alias for sparc64.
2857 * configure.tgt: Likewise.
2858
13fc0c2f
KB
28592002-01-22 Kevin Buettner <kevinb@redhat.com>
2860
2861 * solib-aix5.c (build_so_list_from_mapfile)
2862 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2863 arguments is not reversed.
2864 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2865 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 2866
7bd872fe
EZ
28672002-01-22 Elena Zannoni <ezannoni@redhat.com>
2868
2869 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2870 modified version of obsolete sh_fetch_pseudo_register.
2871 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2872 (sh4_register_read): New function.
2873 (sh_pseudo_register_write): New function. Renamed and modified
2874 version of obsolete sh_store_pseudo_register.
2875 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2876 (sh4_register_write): New function.
2877 (sh_gdbarch_init): Remove setting of gdbarch function
2878 fetch_pseudo_register and store_pseudo_register. Remove setting of
2879 register_convert_to_raw, register_convert_to_virtual,
2880 register_convertible.
2881 (sh_sh4_register_convertible): Delete. No longer needed. All is
2882 taken care by architecture specific functions
2883 register_read/register_write.
2884 (sh_sh4_register_convert_to_virtual): Make static.
2885 (sh_sh4_register_convert_to_raw): Ditto.
2886
069e84fd
AC
28872002-01-22 Andrew Cagney <ac131313@redhat.com>
2888
2889 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2890 (floatformat_is_nan, floatformat_mantissa): Ditto.
2891
2892 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2893 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2894 builtin_type_ieee_double_little,
2895 builtin_type_ieee_double_littlebyte_bigword,
2896 builtin_type_m68881_ext, builtin_type_i960_ext,
2897 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2898 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2899 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2900 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2901
211a4f69
CV
29022002-01-22 Corinna Vinschen <vinschen@redhat.com>
2903
2904 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2905 parameter. Set frameless flag if it exists and depended of
2906 whether the scanned function is frameless or not.
2907 (xstormy16_skip_prologue): If function is frameless, return
2908 result of xstormy16_scan_prologue().
2909 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2910 call.
2911
f81353e4
EZ
29122002-01-21 Elena Zannoni <ezannoni@redhat.com>
2913
2914 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2915 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2916 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2917 sh_sh4_register_byte, sh_sh4_register_raw_size,
2918 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2919 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2920 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2921 sh_store_pseudo_register, sh_do_pseudo_register): Call
2922 gdbarch_tdep() just once, assign result to variable and use that,
2923 instead of calling the function several times.
2924
63c73a17
MK
29252002-01-20 Mark Kettenis <kettenis@gnu.org>
2926
2927 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2928 macros instead of LAST_FPU_CTRL_REGNUM.
2929 (store_register): Likewise.
2930
39ad761d
JB
29312002-01-21 Jim Blandy <jimb@redhat.com>
2932
2933 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2934 is up-to-date before running the program, not just when a program
2935 exits.
2936
3d74b771
FF
29372002-01-21 Fred Fish <fnf@redhat.com>
2938
2939 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2940 when we have found all instructions we are looking for.
2941
966fbf70
RE
29422002-01-21 Richard Earnshaw <rearnsha@arm.com>
2943
2944 * arm-tdep.c (arm_register_name): New function.
2945 (arm_registers_names): Make static.
2946 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2947 (arm_register_name): Declare.
2948 (REGISTER_NAME): Use it.
2949
c3b4394c
RE
29502002-01-21 Richard Earnshaw <rearnsha@arm.com>
2951 Kevin Buettner <kevinb@redhat.com>
2952
2953 Convert arm targets to new FRAME interface.
2954 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2955 (arm_frame_find_save_regs): Delete.
2956 (arm_frame_init_saved_regs): New.
2957 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2958 Allocate extra_info as required. Convert all uses of fsr.regs
2959 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2960 to use extra_info.
2961 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2962 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2963 (check_prologue_cache, save_prologue_cache): Likewise.
2964 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2965 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2966 (FRAME_FIND_SAVED_REGS): Delete.
2967 (arm_frame_find_saved_regs): Delete prototype.
2968 (arm_frame_init_saved_regs): New prototype.
2969 (FRAME_INIT_SAVED_REGS): Define.
2970
61d99182
AC
29712002-01-20 Andrew Cagney <ac131313@redhat.com>
2972
2973 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2974
6aaea291
AC
29752002-01-20 Andrew Cagney <ac131313@redhat.com>
2976
2977 From Jeff Law <law@redhat.com>:
2978 * infttrace.c: Include <sys/pstat.h>.
2979 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2980 exec file if the ttrace equivalent fails.
2981
15f698d2
AC
29822002-01-20 Andrew Cagney <ac131313@redhat.com>
2983
2984 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2985 (closeLogFile): Ditto.
2986
f86ddd7c
MC
29872002-01-20 Michael Chastain <mec@shout.net>
2988
2989 * top.c (print_gdb_version): Bump copyright year to 2002.
2990
904507ce
AC
29912002-01-20 Andrew Cagney <ac131313@redhat.com>
2992
2993 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2994 Zannoni and Eli Zaretskii.
2995
d7f0b9ce
DJ
29962002-01-20 Daniel Jacobowitz <drow@mvista.com>
2997
2998 * buildsym.c: Update copyright years.
2999 * c-typeprint.c: Likewise.
3000 * dwarf2read.c: Likewise.
3001 * f-typeprint.c: Likewise.
3002 * gdbtypes.c: Likewise.
3003 * gdbtypes.h: Likewise.
3004 * hp-symtab-read.c: Likewise.
3005 * hpread.c: Likewise.
3006 * mdebugread.c: Likewise.
3007 * p-typeprint.c: Likewise.
3008
3fd3d7d2
AC
30092002-01-20 Andrew Cagney <ac131313@redhat.com>
3010
3011 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3012 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3013 byte-order selectable.
3014 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3015 * arch-utils.c: Ditto.
3016 (set_endian): Ditto.
3017 (set_endian_from_file): Ditto.
3018 * gdbserver/low-sim.c (create_inferior): Ditto.
3019 * gdbarch.sh: Ditto.
3020 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3021 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3022 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3023 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3024 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3025 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3026 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3027 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3028 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3029 macro definition.
3030 * config/mips/tm-wince.h: Remove #undef of macro
3031 TARGET_BYTE_ORDER_SELECTABLE.
3032 * config/sh/tm-wince.h: Ditto.
3033
b02dede2
DJ
30342002-01-20 Daniel Jacobowitz <drow@mvista.com>
3035
3036 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3037 member function fields. Add accessor macro
3038 TYPE_FN_FIELD_ARTIFICIAL.
3039 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3040 * c-typeprint.c (c_type_print_base): Skip artificial member
3041 functions.
3042
c3643761
DJ
30432002-01-20 Daniel Jacobowitz <drow@mvista.com>
3044
3045 * f-typeprint.c: Delete unused function f_type_print_args.
3046 * p-typeprint.c: Delete unused function pascal_type_print_args.
3047
8176bb6d
DJ
30482002-01-20 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3051 comment. Add ``artificial'' to ``union field_location''.
3052
3053 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3054
3055 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3056 * mdebugread.c (parse_symbol): Likewise.
3057 * stabsread.c (define_symbol): Likewise.
3058 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3059 initializing TYPE_FIELD_BITPOS to n (obsolete).
3060 (hpread_doc_function_type): Likewise.
3061 * hpread.c (hpread_function_type): Likewise.
3062
7fd60527
AC
30632002-01-20 Andrew Cagney <ac131313@redhat.com>
3064
3065 * configure.in (host_makefile_frag): Only require a host makefile
3066 fragment when a native build.
3067 * configure: Re-generate.
3068
c2f05ac9
AC
30692002-01-20 Andrew Cagney <ac131313@redhat.com>
3070
3071 * doublest.h (floatformat_from_type): Declare.
3072 * doublest.c (floatformat_from_type): New function.
3073 (convert_typed_floating): Use.
3074
3075 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3076 call to function floatformat_from_type.
3077
3078 * gdbarch.sh (IEEE_FLOAT): Delete.
3079 * gdbarch.h, gdbarch.c: Re-generate.
3080 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3081 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3082 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3083 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3084 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3085 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3086 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3087 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3088 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3089 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3090 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3091 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3092
3093 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3094 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3095 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3096 * sh-tdep.c (sh_gdbarch_init): Ditto.
3097 * mips-tdep.c (mips_gdbarch_init): Ditto.
3098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3099 * cris-tdep.c (cris_gdbarch_init): Ditto.
3100
abf22e64
AJ
31012002-01-20 Jiri Smid <smid@suse.cz>
3102
3103 * configure.host, configure.tgt: Support x86-64.
3104 * NEWS: Note new target x86-64.
3105
b7c4cbf8
AJ
3106 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3107 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3108 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3109 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3110 x86-64-linux-nat.o): Fix dependencies.
3111
82600034
AC
31122002-01-19 Andrew Cagney <ac131313@redhat.com>
3113
3114 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3115 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3116 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3117 * config/sparc/xm-sun4os4.h: Delete file.
3118 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3119
bbe5c628
AC
31202002-01-19 Andrew Cagney <ac131313@redhat.com>
3121
3122 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3123 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3124 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3125 * config/i386/i386lynx.mh (XM_FILE): Delete.
3126 * config/rs6000/xm-rs6000ly.h: Delete file.
3127 * config/sparc/xm-sparclynx.h: Delete file.
3128 * config/m68k/xm-m68klynx.h: Delete file.
3129 * config/i386/xm-i386lynx.h: Delete file.
3130 * config/xm-lynx.h: Delete file.
3131 * config/djgpp/fnchange.lst: Update.
3132
f8453e34
JT
31332002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3134
3135 * alpha-tdep.c (alpha_register_byte): New function.
3136 (alpha_register_raw_size): Ditto.
3137 (alpha_register_virtual_size): Ditto.
3138 (alpha_skip_prologue_internal): Renamed from
3139 alpha_skip_prologue.
3140 (alpha_skip_prologue): New version that calls
3141 alpha_skip_prologue_internal.
3142 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3143 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3144 second argument from alpha_skip_prologue.
3145 (REGISTER_BYTE): Use alpha_register_byte.
3146 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3147 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3148 (FRAMELESS_FUNCTION_INVOCATION): Use
3149 generic_frameless_function_invocation_not.
3150 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3151 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3152
52d9e613
AC
31532002-01-19 Andrew Cagney <ac131313@redhat.com>
3154
3155 * config/mips/xm-news-mips.h: Delete file.
3156 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3157
3158 * config/m88k/xm-m88k.h: Delete file.
3159 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3160 * config/m88k/xm-delta88v4.h: Ditto.
3161 * config/m88k/xm-delta88.h: Ditto.
3162
3163 * config/alpha/xm-fbsd.h: Delete file.
3164 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3165
3166 * config/sparc/xm-sparc.h: Delete file.
3167 * Makefile.in (xm-sun4os4.h): Delete dependency.
3168 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3169 * config/sparc/xm-sun4os4.h: Ditto.
3170 * config/sparc/xm-linux.h: Ditto.
3171
3172 * config/i386/xm-windows.h: Delete file.
3173
2d1b2124
AC
31742002-01-19 Andrew Cagney <ac131313@redhat.com>
3175
3176 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3177 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3178
ee1f65f0
JT
31792002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3180
3181 * alpha-tdep.c (alpha_call_dummy_words): New.
3182 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3183 (CALL_DUMMY_P): Define.
3184 (CALL_DUMMY_WORDS): Define.
3185 (SIZEOF_CALL_DUMMY_WORDS): Define.
3186
98081e55
PB
31872002-01-19 Per Bothner <per@bothner.com>
3188
3189 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3190 isn't NULL, which can happen with some gcj-3.x-produced code.
3191
0d056799
JT
31922002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3193
3194 * alpha-tdep.c (alpha_register_virtual_type): New function.
3195 (alpha_init_frame_pc_first): Ditto.
3196 (alpha_fix_call_dummy): Ditto.
3197 (alpha_store_struct_return): Ditto.
3198 (alpha_extract_struct_value_address): Ditto.
3199 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3200 alpha_register_virtual_type.
3201 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3202 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3203 alpha_extract_struct_value_address.
3204 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3205 (INIT_FRAME_PC): Use init_frame_pc_noop.
3206 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3207
4604bcad
MK
32082002-01-19 Mark Kettenis <kettenis@gnu.org>
3209
3210 * i386gnu-nat.c: Include "i386-tdep.h".
3211 (fetch_fpregs): Simplify code dealing with uninitialized floating
3212 point states such that it doesn't require FP7_REGNUM.
3213
140f9984
JT
32142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3215
abf22e64
AJ
3216 * alpha-tdep.c (frame_extra_info): New.
3217 (alpha_find_saved_regs): Make static. Use
140f9984
JT
3218 frame->extra_info.
3219 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
3220 (alpha_frame_saved_pc): Use frame->extra_info.
3221 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3222 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
3223 (init_extra_frame_info): Rename to...
3224 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 3225 (alpha_print_extra_frame_info): New function.
140f9984
JT
3226 (alpha_frame_locals_address): Ditto.
3227 (alpha_frame_args_address): Ditto.
abf22e64 3228 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
3229 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3230 alpha_frame_args_address.
abf22e64 3231 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 3232 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
3233 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3234 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
3235 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3236 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3237
d734c450
JT
32382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3239
3240 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3241 (alpha_cannot_fetch_register): Ditto.
3242 (alpha_cannot_store_register): Ditto.
3243 (alpha_register_convertible): Ditto.
3244 (alpha_use_struct_convention): Ditto.
3245 * config/alpha/tm-alpha.h: Update copyright years.
3246 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3247 (INNER_THAN): Use core_addr_lessthan.
3248 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3249 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3250 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3251 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3252 (FRAME_CHAIN): Remove unnecessary cast.
3253
b4ceaee6
AC
32542002-01-18 Andrew Cagney <ac131313@redhat.com>
3255
3256 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3257 obsolete.
3258
0a65a603
AC
32592002-01-18 Andrew Cagney <ac131313@redhat.com>
3260
3261 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3262 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3263 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3264 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3265 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3266 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3267 * x86-64-linux-nat.c: Ditto.
3268
636a6dfc
JT
32692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3270
abf22e64 3271 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
3272 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3273 (REGISTER_NAME): Define.
3274
acceddb6
JT
32752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3276
3277 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3278
ec32e4be
JT
32792002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3280
3281 * alpha-tdep.c: Update copyright years.
3282 (alpha_next_pc): New function.
3283 (alpha_software_single_step): Ditto.
3284 * config/alpha/tm-alpha.h: Add prototype for
3285 alpha_software_single_step.
3286
e771a871
JT
32872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3288
3289 * alphabsd-nat.c: Update copyright years.
3290 (fill_gregset): Use regcache_collect.
3291 (fill_fpregset): Likewise.
3292 (fetch_inferior_registers): Only fetch integer registers
3293 if requested to do so.
3294 (store_inferior_registers): Only store integer registers
3295 if requested to do so.
3296
7708fa01
AC
32972002-01-17 Andrew Cagney <ac131313@redhat.com>
3298
3299 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3300 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3301 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3302 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3303 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3304 * config/arm/linux.mh (XDEPFILES): Delete.
3305 * config/arm/nbsd.mh (XDEPFILES): Delete.
3306 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3307 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3308 * config/i386/i386m3.mh (XDEPFILES): Delete.
3309 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3310 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3311 * config/i386/fbsd.mh (XDEPFILES): Delete.
3312 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3313 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3314 * config/i386/i386v4.mh (XDEPFILES): Delete.
3315 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3316 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3317 * config/i386/i386aix.mh (XDEPFILES): Delete.
3318 * config/i386/go32.mh (XDEPFILES): Delete.
3319 * config/i386/cygwin.mh (XDEPFILES): Delete.
3320 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3321 * config/i386/i386mach.mh (XDEPFILES): Delete.
3322 * config/i386/i386v32.mh (XDEPFILES): Delete.
3323 * config/i386/linux.mh (XDEPFILES): Delete.
3324 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3325 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3326 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3327 * config/i386/i386sco.mh (XDEPFILES): Delete.
3328 * config/i386/i386v.mh (XDEPFILES): Delete.
3329 * config/i386/nbsd.mh (XDEPFILES): Delete.
3330 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3331 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3332 * config/i386/symmetry.mh (XDEPFILES): Delete.
3333 * config/i386/obsd.mh (XDEPFILES): Delete.
3334 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3335 * config/ia64/linux.mh (XDEPFILES): Delete.
3336 * config/ia64/aix.mh (XDEPFILES): Delete.
3337 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3338 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3339 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3340 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3341 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3342 * config/m68k/linux.mh (XDEPFILES): Delete.
3343 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3344 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3345 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3346 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3347 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3348 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3349 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3350 * config/m88k/delta88.mh (XDEPFILES): Delete.
3351 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3352 * config/m88k/m88k.mh (XDEPFILES): Delete.
3353 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3354 * config/mips/linux.mh (XDEPFILES): Delete.
3355 * config/mips/irix6.mh (XDEPFILES): Delete.
3356 * config/mips/irix5.mh (XDEPFILES): Delete.
3357 * config/mips/irix4.mh (XDEPFILES): Delete.
3358 * config/mips/irix3.mh (XDEPFILES): Delete.
3359 * config/mips/decstation.mh (XDEPFILES): Delete.
3360 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3361 (NATDEPFILES): Move core-aout.o to here.
3362 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3363 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3364 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3365 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3366 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3367 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3368 * config/pa/hpux11.mh (XDEPFILES): Delete.
3369 * config/powerpc/aix.mh (XDEPFILES): Delete.
3370 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3371 * config/powerpc/linux.mh (XDEPFILES): Delete.
3372 * config/romp/rtbsd.mh: Rename XDEPFILES.
3373 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3374 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3375 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3376 * config/s390/s390.mh (XDEPFILES): Delete.
3377 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3378 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3379 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3380 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3381 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3382 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3383 * config/sparc/linux.mh (XDEPFILES): Delete.
3384 * config/vax/vaxult.mh (XDEPFILES): Delete.
3385 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3386 * Makefile.in (DEPFILES): Remove XDEPFILES.
3387
375fc983
AC
33882002-01-17 Andrew Cagney <ac131313@redhat.com>
3389
3390 * utils.c (internal_verror): Fix comments, default is yes not no.
3391 Update queries to match. Default to quit and dump core.
3392
8926118c
AC
33932002-01-17 Andrew Cagney <ac131313@redhat.com>
3394
3395 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3396 copyright.
3397 * defs.h, event-top.c, gdbcmd.h: Ditto.
3398 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3399 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3400 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3401 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3402 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3403 * mi/mi-main.c:Ditto.
3404
3405 * stack.c, symfile.c: Update copyright.
3406
45b7b345
DJ
34072002-01-17 Daniel Jacobowitz <drow@mvista.com>
3408
db728ff7
DJ
3409 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3410 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3411 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3412 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 3413
db728ff7
DJ
34142002-01-17 Daniel Jacobowitz <drow@mvista.com>
3415
3416 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3417 * gdbserver/low-lynx.c (myattach): Likewise.
3418 * gdbserver/low-nbsd.c (myattach): Likewise.
3419 * gdbserver/low-sim.c (myattach): Likewise.
3420 * gdbserver/low-sparc.c (myattach): Likewise.
3421 * gdbserver/low-sun3.c (myattach): Likewise.
3422
3423 * gdbserver/low-linux.c (myattach): New function.
45b7b345 3424
db728ff7 3425 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
3426 (main): Handle "--attach".
3427
8de3c354
AC
34282002-01-16 Andrew Cagney <ac131313@redhat.com>
3429
3430 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3431 maintainer.
3432
b0129042
DJ
34332002-01-15 Daniel Jacobowitz <drow@mvista.com>
3434
3435 * c-typeprint.c (is_type_conversion_operator): Add additional
3436 check for non-conversion operators.
3437
ba8679fb 34382002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
3439
3440 * linux-proc.c: Add "info proc" command, a la procfs.c.
3441 (read_mapping): New function, abstract and re-use code.
3442 (linux_find_memory_regions): Use new func read_mapping.
3443 (linux_info_proc_cmd): New function, implement "info proc".
3444 (_initialize_linux_proc): Add new command "info proc".
3445
e4f9b4d5
MS
34462002-01-15 Michael Snyder <msnyder@redhat.com>
3447
3448 * symfile.c (generic_load): Use bfd_map_over_sections method
3449 instead of manipulating bfd structure members directly.
3450 (add_section_size_callback): New function, bfd sections callback
3451 used by generic_load.
3452 (load_sections_callback): New function, bfd sections callback
3453 used by generic_load.
3454
08cf96df
EZ
34552002-01-15 Elena Zannoni <ezannoni@redhat.com>
3456
abf22e64 3457 [Based on work by Jim Blandy]
08cf96df
EZ
3458 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3459 (builtin_type_vec128): Export.
3460 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3461 types.
3462 (builtin_type_vec128): New builtin type for 128 bit vector
3463 registers.
3464 (build_gdbtypes): Initialize builtin_type_v16qi and
3465 builtin_type_v8hi. Create the vec128 register builtin type
3466 structure.
3467 (build_builtin_type_vec128): New function.
abf22e64 3468 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
3469 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3470 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3471 AltiVec register to new builtin type.
3472
d7242108
DJ
34732001-01-15 Daniel Jacobowitz <drow@mvista.com>
3474
3475 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3476 to make_cv_type.
3477
4ee3352d
AC
34782002-01-14 Andrew Cagney <ac131313@redhat.com>
3479
3480 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3481 CLEAN_UP_REGISTER_VALUE.
3482 * regcache.c (supply_register): Update only call.
3483
f015b2e7
AC
34842002-01-14 Andrew Cagney <ac131313@redhat.com>
3485
3486 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3487 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3488 a29k-*-vxworks* targets as obsolete.
3489
356ae49d
MS
34902002-01-14 Michael Snyder <msnyder@redhat.com>
3491
3492 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3493 until we can resolve portability issues.
3494 * gregset.h: Remove references to fpxregs.
3495 * gcore.c (gcore_command): Initialize note_sec to NULL.
3496
ade8f45e
AC
34972002-01-13 Andrew Cagney <ac131313@redhat.com>
3498
3499 * signals.c (target_signal_to_name): Rewrite. Only use
3500 signals[].name when in bounds and non-NULL.
abf22e64 3501
89c49e7a
AC
35022002-01-13 Andrew Cagney <ac131313@redhat.com>
3503
3504 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3505 * signals.c (target_signal_to_name): Verify that SIG is within the
3506 bounds of the signals array.
3507
4daa9f9f
AC
35082002-01-13 Andrew Cagney <ac131313@redhat.com>
3509
3510 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3511
ba4bbdcb
KS
35122002-01-13 Keith Seitz <keiths@redhat.com>
3513
3514 * stack.c (print_frame_info_base): Print the frame's pc
3515 only if when print_frame_info_listing_hook is not defined.
3516
575bbeb6
KS
35172002-01-13 Keith Seitz <keiths@redhat.com>
3518
3519 * varobj.c (varobj_set_value): Make sure that there were no
3520 errors evaluating the object before attempting to set its
3521 value.
3522 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3523 so this offset adjustment is no longer necessary.
3524 (create_child): Don't set the error flag if the child is
3525 a CPLUS_FAKE_CHILD.
3526 (value_of_child): If value_fetch_lazy fails, return NULL
3527 so that callers will be notified that an error occurred.
3528 (c_value_of_variable): Delay check of variable's validity
3529 until later. We actually want all structs and unions to have
3530 the value "{...}".
3531 Do not return "???" for variables which could not be evaluated.
3532 This error condition must be returned to the caller so that it
3533 can get the error condition from gdb.
3534 (cplus_name_of_child): Adjust index for vptr before figuring
3535 out the name of the child.
3536 (cplus_value_of_child): If a child's (real) parent is not valid,
3537 don't even bother trying to give a value for it. Just return
3538 an error. Change all instances in this function.
3539 (cplus_type_of_child): If our parent is one of the "fake"
3540 parents, we need to get at the type of the real parent, and
3541 derive the child's true type using this information.
3542
b76898ab
AC
35432002-01-13 Andrew Cagney <ac131313@redhat.com>
3544
3545 From 2002-01-09 John Marshall <johnm@falch.net>:
3546 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3547 sources.redhat.com, and tweak some related URLs which had
3548 suffered from linkrot.
3549
b6649e88
AC
35502002-01-13 Andrew Cagney <ac131313@redhat.com>
3551
3552 From Jeff law:
3553 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3554 structures passed in registers.
3555
82cc5033
EZ
35562002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3557
3558 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3559 white space which prevented compilation. Reported by DSK
3560 <dsk@student.unsw.edu.au>.
3561
ba5f2f8a
MS
35622002-01-11 Michael Snyder <msnyder@redhat.com>
3563
fbd35540
MS
3564 * symfile.c (build_section_addr_info_from_section_tab):
3565 Use bfd access method instead of manipulating bfd directly.
3566 (syms_from_objfile): Ditto.
3567 (simple_overlay_update_1): Ditto.
3568 (simple_overlay_update): Ditto.
3569 (generic_load): Ditto.
3570 (overlay_unmapped_address): FIXME comment, bfd access methods.
3571 (sections_overlap): FIXME comment, bfd access methods.
3572 (pc_in_mapped_range): FIXME comment, bfd access methods.
3573 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3574 (section_is_mapped): FIXME comment, bfd access methods.
3575 (section_is_overlay): FIXME comment, bfd access methods.
3576
ba5f2f8a
MS
3577 * symfile.c (generic_load): Whitespace and long line cleanups.
3578 Remove duplicate variable, change several local variables to
3579 more appropriate data types.
3580 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3581
17df2af6
AC
35822002-01-12 Andrew Cagney <ac131313@redhat.com>
3583
3584 From Peter Schauer:
3585 * language.c (longest_local_hex_string_custom): Use phex_nz to
3586 convert NUM to a hex string.
3587
ec920329
EZ
35882002-01-12 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3591 the function.
538a76d6 3592 Update Copyright year.
ec920329 3593
3abd2e01
AC
35942002-01-12 Andrew Cagney <ac131313@redhat.com>
3595
3596 * language.c (longest_raw_hex_string): Delete unused function.
3597
b21b22e0
PS
35982002-01-11 Petr Sorfa <petrs@caldera.com>
3599
3600 * MAINTAINERS (write-after-approval): Add myself.
3601 * dwarf2read.c (read_tag_string_type): Handling of
3602 DW_AT_byte_size.
3603 (read_tag_string_type): FORTRAN fix to prevent propagation of
3604 first string size.
3605 (set_cu_language): Handling of DW_LANG_Fortran95
3606
747fe712
RE
36072002-01-11 Richard Earnshaw <rearnsha@arm.com>
3608
3609 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3610 GETPID(inferior_ptid).
3611 (store_inferior_registers): Likewise.
3612
f1bea926
JM
36132002-01-10 Jason Merrill <jason@redhat.com>
3614
3615 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3616 Fix DW_OP_minus.
3617
ae940673
AC
36182002-01-10 Andrew Cagney <ac131313@redhat.com>
3619
3620 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3621 and bfd/elf32-sh-nbsd.c.
3622
00546b04
MS
36232002-01-10 Michael Snyder <msnyder@redhat.com>
3624
352ed7b4
MS
3625 * NEWS: Mention --pid and corefile/proc-id behavior change.
3626
c18be923
MS
3627 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3628 * gcore.c: Include cli/cli-decode.h instead of command.h.
3629
00546b04
MS
3630 * main.c (captured_main): Add new command line option "--pid".
3631 If the second command line argument (following the symbol-file)
3632 begins with a digit, try to attach to it before trying to open
3633 it as a corefile.
3634 (print_gdb_help): Document the "--pid" argument.
3635
db60ec62
EZ
36362002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3637
3638 * completer.c (command_completer): New function.
3639
3640 * completer.h <command_completer>: Add prototype.
3641
3642 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3643 completer for the "help" command.
3644
39c22d1a
JM
36452002-01-09 Jason Merrill <jason@redhat.com>
3646
3647 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3648
c564377f
MS
36492002-01-09 Michael Snyder <msnyder@redhat.com>
3650
975aec09
MS
3651 * i386-linux-nat.c (fill_fpxregset): Make global.
3652 (store_fpxregset): Ditto.
3653
db4a10fa
MS
3654 * gregset.h (gdb_fpxregset_t): Define.
3655 (supply_fpxregset): Prototype.
3656 (fill_fpxregset): Prototype.
3657
c564377f
MS
3658 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3659
c3d45d70
RE
36602002-01-09 Richard Earnshaw <rearnsha@arm.com>
3661
3662 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3663 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3664 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3665
fcc87af1
AC
36662002-01-09 Andrew Cagney <ac131313@redhat.com>
3667
3668 * MAINTAINERS: Update target maintainer rules so that any
3669 Maintainer can approve a tested patch for a maintenance-only
3670 target.
3671
dd96c05b
RE
36722002-01-09 Richard Earnshaw <rearnsha@arm.com>
3673
d4297db9 3674 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 3675
d4297db9 3676 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
3677 IN_SIGTRAMP.
3678
145fdc6e
MS
36792002-01-08 Michael Snyder <msnyder@redhat.com>
3680
3681 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3682 real name of the executable, rather than the /proc name.
3683
be4d1333
MS
36842002-01-03 Michael Snyder <msnyder@redhat.com>
3685
3686 Implement a "generate-core-file" command in gdb, save target state.
3687 * gcore.c: New file. Implement new command 'generate-core-file'.
3688 Save a corefile image of the current state of the inferior.
3689 * linux-proc.c: Add linux-specific code for saving corefiles.
3690 * target.h (struct target_ops): Add new target vectors for saving
3691 corefiles; to_find_memory_regions and to_make_corefile_notes.
3692 (target_find_memory_regions): New macro.
3693 (target_make_corefile_notes): New macro.
3694 * target.c (update_current_target): Inherit new target methods.
3695 (dummy_find_memory_regions): New place-holder method.
3696 (dummy_make_corefile_notes): New place-holder method.
3697 (init_dummy_target): Initialize new dummy target vectors.
3698 * exec.c (exec_set_find_memory_regions): New function.
3699 Allow the exec_ops vector for memory regions to be taken over.
3700 (exec_make_note_section): New function, target vector method.
3701 * defs.h (exec_set_find_memory_regions): Export prototype.
3702 * procfs.c (proc_find_memory_regions): New function, corefile method.
3703 (procfs_make_note_section): New function, corefile method.
3704 (init_procfs_ops): Set new target vector pointers.
3705 (find_memory_regions_callback): New function.
3706 (procfs_do_thread_registers): New function.
3707 (procfs_corefile_thread_callback): New function.
3708 * sol-thread.c (sol_find_memory_regions): New function.
3709 (sol_make_note_section): New function.
3710 (init_sol_thread_ops): Initialize new target vectors.
3711 * inftarg.c (inftarg_set_find_memory_regions): New function.
3712 Allow to_find_memory_regions vector to be taken over.
3713 (inftarg_set_make_corefile_notes): New function.
3714 Allow to_make_corefile_notes vector to be taken over.
3715 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3716 interface layer if not target_has_execution (may be a corefile).
3717 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3718 * config/sparc/sun4sol2.mh: Ditto.
3719 * config/alpha/alpha-linux.mh: Ditto.
3720 * config/arm/linux.mh: Ditto.
3721 * config/i386/x86-64linux.mh: Ditto.
3722 * config/ia64/linux.mh: Ditto.
3723 * config/m68k/linux.mh: Ditto.
3724 * config/mips/linux.mh: Ditto.
3725 * config/powerpc/linux.mh: Ditto.
3726 * config/sparc/linux.mh: Ditto.
3727
c6b92abd
MS
37282002-01-07 Michael Snyder <msnyder@redhat.com>
3729
3730 * arm-linux-nat.c: Remove references to regcache.c internal data
3731 (registers[] and register_valid[]).
3732
4b09dc8c
MS
37332002-01-07 Michael Snyder <msnyder@redhat.com>
3734
abf22e64
AJ
3735 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3736 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
3737 symbol file and shlibs.
3738 * Makefile.in: Add rule for linux-proc.o.
3739 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3740 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3741 * config/arm/linux.mh: Ditto.
3742 * config/i386/linux.mh: Ditto.
3743 * config/i386/x86-64linux.mh: Ditto.
3744 * config/ia64/linux.mh: Ditto.
3745 * config/m68k/linux.mh: Ditto.
3746 * config/mips/linux.mh: Ditto.
3747 * config/powerpc/linux.mh: Ditto.
3748 * config/sparc/linux.mh: Ditto.
3749
c25b74ac
PM
37502002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3751
3752 * win32-nat.c: Add i386-tdep.h dependency.
3753
94cd915f
MS
37542002-01-07 Michael Snyder <msnyder@redhat.com>
3755
c7cccb76
MS
3756 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3757 instead of bfd_get_arch_size. Don't bail out just because
3758 there's no exec_bfd.
abf22e64 3759
34c0bd93
MS
3760 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3761 * p-valprint.c (pascal_object_print_value): Ditto.
3762 * somread.c (som_symtab_read): Ditto.
3763 * symfile.c (simple_free_overlay_region_table): Ditto.
3764 * valops.c (value_assign): Ditto.
3765
21c1c920
MS
3766 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3767 use tilde_expand and strerror for opening save-tracepoints file.
3768
5bbd998e
MS
3769 * thread-db.c (thread_db_new_objfile): Indendation fix.
3770
94cd915f
MS
3771 * infptrace.c (GDB_MAX_ALLOCA): New define.
3772 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 3773 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
3774 can be overridden with whatever value is appropriate to the host).
3775 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3776 alloca to allocate potentially large buffer.
3777 * rs6000-nat.c (child_xfer_memory): Ditto.
3778 * symm-nat.c (child_xfer_memory): Ditto.
3779 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3780
494e8a93
JSC
37812002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3782
3783 From Nick Clifton <nickc@redhat.com>
3784 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3785
d0e1d48e
MS
37862002-01-07 Michael Snyder <msnyder@redhat.com>
3787
abf22e64 3788 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
3789 Don't use exec_bfd if it's NULL.
3790
290b2c7a
MK
37912002-01-06 Mark Kettenis <kettenis@gnu.org>
3792
abf22e64 3793 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 3794
aef21287
AC
37952002-01-06 Andrew Cagney <ac131313@redhat.com>
3796
3797 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3798 * gnu-nat.c: Ditto.
3799
30efa627
AC
38002002-01-06 Andrew Cagney <ac131313@redhat.com>
3801
3802 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3803 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3804 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3805 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3806 z8k-coff have not been multi-arched. Update z8k-coff build
3807 status.
3808
9b4ff276
AC
38092002-01-06 Andrew Cagney <ac131313@redhat.com>
3810
3811 * MAINTAINERS: Mark a29k target as obsolete.
3812 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3813 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3814 comments.
3815 * NEWS: Note that a29k targets are obsolete.
3816 * a29k-tdep.c: Mark as obsolete.
3817 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3818 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3819 a29k-*-vxworks* targets as obsolete.
3820 * remote-adapt.c: Obsolete.
3821 * remote-eb.c: Obsolete.
3822 * remote-mm.c: Obsolete.
3823 * remote-udi.c: Obsolete.
3824 * config/a29k/a29k-udi.mt: Obsolete.
3825 * config/a29k/a29k.mt: Obsolete.
3826 * config/a29k/tm-a29k.h: Obsolete.
3827 * config/a29k/tm-vx29k.h: Obsolete.
3828 * config/a29k/vx29k.mt: Obsolete.
3829
a9011d31
AC
38302002-01-05 Andrew Cagney <ac131313@redhat.com>
3831
3832 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3833 with BFD_ENDIAN_BIG.
3834
9299404e
AC
38352002-01-05 Andrew Cagney <ac131313@redhat.com>
3836
3837 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3838 * configure, config.in: Re-generate.
3839 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3840 * defs.h: Do not include <endian.h>.
3841
7e89e357
JT
38422002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3843
3844 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3845 * config.in: Regenerate.
3846 * configure.in: Update copyright years.
3847 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3848 * configure: Regenerate.
3849 * i386bsd-nat.c: Update copyright years.
3850 (fill_gregset): Use regcache_collect.
3851 (fetch_inferior_registers): Only fetch integer registers
3852 if requested to do so. Add support for XMM registers
3853 using PT_GETXMMREGS.
3854 (store_inferior_registers): Only store integer registers
3855 if requested to do so. Add support for XMM registers
3856 using PT_SETXMMREGS.
3857 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3858 (store_inferior_registers): Remove.
3859 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3860 (fetch_elfcore_registers): New function.
3861 (i386nbsd_elfcore_fns): New.
3862 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3863 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3864 i386bsd-nat.o.
3865 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3866 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3867 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3868 * config/i386/tm-nbsd.h: Update copyright years.
3869 (HAVE_SSE_REGS): Define.
3870 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3871 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3872 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3873 (SIGCONTEXT_PC_OFFSET): Remove.
3874 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3875
a752853e
AC
38762002-01-05 Andrew Cagney <ac131313@redhat.com>
3877
3878 * configure.tgt: Remove powerpc-*-macos* target.
3879 * config/m68k/xm-mpw.h: Delete file.
3880 * config/xm-mpw.h: Delete file.
3881 * ser-mac.c: Delete file.
3882 * mpw-make.sed: Delete file.
3883 * mpw-config.in: Delete file.
3884 * mac-xdep.c: Delete file.
3885 * mac-gdb.r: Delete file.
3886 * mac-defs.h: Delete file.
3887 * mac-nat.c: Delete file.
3888 * config/powerpc/macos.mh: Delete file.
3889 * config/powerpc/macos.mt: Delete file.
3890 * config/powerpc/nm-macos.h: Delete file.
3891 * config/powerpc/tm-macos.h: Delete file.
3892 * source.c (openp, open_source_file): Remove obsolete code.
3893 * top.c (gdb_readline): Ditto.
3894 * utils.c (query): Ditto.
3895 * event-top.c (display_gdb_prompt): Ditto.
3896 * Makefile.in (ser-mac.o): Delete obsolete target.
3897 * NEWS: Update.
3898
d7449b42
AC
38992002-01-04 Andrew Cagney <ac131313@redhat.com>
3900
3901 * defs.h (BIG_ENDIAN): Delete macro definition.
3902 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3903 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3904 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3905 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3906 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3907 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3908 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3909 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3910 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3911 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3912 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3913 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3914 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3915 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3916 * gdbarch.c: Re-generate.
3917
356374e8
DJ
39182002-01-04 Daniel Jacobowitz <drow@mvista.com>
3919
3920 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3921 for core files.
3922
a2b8f8f8
JT
39232002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3924
3925 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3926
12466af9
AC
39272002-01-04 Andrew Cagney <ac131313@redhat.com>
3928
3929 * value.h (value_ptr): Delete typedef.
3930
3549ab40
JT
39312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3932
3933 * i386nbsd-nat.c: Update copyright years.
3934 Include i386-tdep.h.
3935
fedbd091
EZ
39362002-01-04 Elena Zannoni <ezannoni@redhat.com>
3937
3938 * stabsread.c: Update copyright years.
3939
3940 From Debashis Mahata <debashis.mahata@wipro.com>:
3941 (read_struct_fields): Deal with Sun C compiler erroneous stab
3942 output for structs and unions.
fec8b34f 3943 Fix PR gdb/269.
fedbd091 3944
eb43544b
DJ
39452002-01-04 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3948 prototype.
3949
1514d34e
DJ
39502002-01-04 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * cp-abi.c: Fix whitespace.
3953 (baseclass_offset): New wrapper function.
3954 * cp-abi.h (baseclass_offset): Add prototype.
3955 (struct cp_abi_ops): Add baseclass_offset pointer.
3956
3957 * valops.c (vb_match): Move to...
3958 * gnu-v2-abi.c (vb_match): here.
3959 * valops.c (baseclass_offset): Move to...
3960 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3961
3962 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3963
3964 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3965 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3966 * hpacc-abi.c (init_hpacc_ops): Likewise.
3967
7f8c9282
DJ
39682002-01-04 Daniel Jacobowitz <drow@mvista.com>
3969
3970 * valops.c (find_overload_match): Accept obj as a
3971 reference parameter. Update it before returning.
3972 * value.h (find_overload_match): Update prototype.
3973 * eval.c (evaluate_subexp_standard): Pass object to
3974 find_overload_match by reference.
3975
f23631e4
AC
39762002-01-03 Andrew Cagney <ac131313@redhat.com>
3977
3978 * valarith.c: Replace value_ptr with struct value pointer. Remove
3979 register attribute from value declarations.
3980 * valops.c: Ditto.
3981 * value.h: Ditto.
3982 * scm-lang.c (scm_lookup_name): Ditto.
3983
79e10fab 39842002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 3985
79e10fab
AC
3986 Abstract the functionality of iterating over mapped memory
3987 regions into a general purpose iterator function.
abf22e64 3988 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
3989 iterator for memory sections.
3990 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3991 (solib_mappings_callback): New function, callback for above.
3992 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3993 (info_mappings_callback): New function, callback for above.
3994
3995 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3996
c5ad026a
MK
39972002-01-01 Mark Kettenis <kettenis@gnu.org>
3998
d2a7c97a
MK
3999 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4000 * i386-tdep.c: Include "elf-bfd.h".
4001 (process_note_abi_tag_sections): New function.
4002 (i386_gdbarch_init): Add code to recognize various OS/ABI
4003 combinations.
4004
c5ad026a
MK
4005 * maint.c (_initialize_maint_cmds): Add missing \ in
4006 string-literal.
4007
a1a5b71e 4008For older changes see ChangeLog-2001
c906108c
SS
4009\f
4010Local Variables:
4011mode: change-log
4012left-margin: 8
4013fill-column: 74
4014version-control: never
4015End:
This page took 0.4625 seconds and 4 git commands to generate.