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