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