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