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