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