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