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