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