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