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