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