1 2002-04-30 Michael Snyder <msnyder@redhat.com>
3 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11 2002-04-29 Kevin Buettner <kevinb@redhat.com>
13 From Louis Hamilton <hamilton@redhat.com>:
14 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
15 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
16 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
17 not bfd-private xcoff data, to determine wordsize.
18 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
20 2002-04-29 Andrew Cagney <ac131313@redhat.com>
22 GDB 5.2 released from 5.2 branch.
24 2002-04-29 Michal Ludvig <mludvig@suse.cz>
26 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
27 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
28 (x86_64_register_info_table): Added comments with register numbers.
30 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
32 * rs6000-tdep.c (rs6000_extract_return_value,
33 rs6000_store_return_value): Handle returning vectors.
34 (rs6000_gdbarch_init): Use
35 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
36 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
38 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
40 (ppc_sysv_abi_push_arguments): Handle vector parameters.
41 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
43 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
45 * hpread.c (hpread_psymtab_to_symtab_1,
46 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
47 with fprintf_unfiltered (gdb_stderr,...).
49 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
51 * remote-array.c (printf_monitor, write_monitor,
52 array_insert_breakpoint, array_remove_breakpoint ):
53 Replace fprintf (stderr,...
54 with fprintf_unfiltered (gdb_stderr,....
55 * remote-es.c: Likewise.
56 * remote-os9k.c: Likewise.
57 * remote-st.c: Likewise.
59 2002-04-28 Andreas Schwab <schwab@suse.de>
61 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
62 linux-proc.o and gcore.o.
64 2002-04-26 Michal Ludvig <mludvig@suse.cz>
66 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
67 code without frame pointers.
69 2002-04-26 Andrew Cagney <ac131313@redhat.com>
71 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
74 2002-04-26 Ben Elliston <bje@redhat.com>
76 * target.c (do_xfer_memory): Correct reference to the new option
77 "trust-readonly-sections".
79 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
81 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
82 * gdbtypes.c (recursive_dump_type): Output the vector flag.
83 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
85 (read_array_type): Record the fact that this array type is really a
86 vector (i.e. are passed in by value).
88 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
90 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
91 * alpha-tdep.c (alpha_sigcontext_addr): New function.
92 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
93 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
94 * alpha-linux-tdep.c: Include frame.h.
95 (alpha_linux_sigcontext_addr): New function.
96 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
97 alpha_linux_sigcontext_addr.
98 * alpha-osf1-tdep.c: Include gdbcore.h.
99 (alpha_osf1_sigcontext_addr): New function.
100 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
101 alpha_osf1_sigcontext_addr.
102 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
103 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
105 2002-04-26 Andrew Cagney <ac131313@redhat.com>
107 * stack.c (selected_frame_level):
108 (select_frame): Do not set selected_frame_level.
109 * frame.h (selected_frame_level): Delete declaration.
111 2002-04-26 Andrew Cagney <ac131313@redhat.com>
113 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
114 convert_from_func_ptr-addr when AIX / PowerOpen.
116 2002-04-25 Andrew Cagney <ac131313@redhat.com>
118 * valops.c (hand_function_call): Call
119 generic_save_call_dummy_addr.
120 * frame.h (generic_save_call_dummy_addr): Declare.
121 * blockframe.c (struct dummy_frame): Add fields call_lo and
123 (generic_find_dummy_frame): Check for PC in range call_lo to
124 call_hi instead of entry_point_address.
125 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
126 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
127 (generic_save_call_dummy_addr): New function.
129 2002-04-24 David S. Miller <davem@redhat.com>
131 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
133 (sparc_skip_prologue): Kill frameless_p arg, and use line number
134 information to find prologue when possible.
135 (sparc_prologue_frameless_p): Call examine_prologue directly.
136 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
137 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
139 (SKIP_PROLOGUE): Likewise.
141 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
143 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
144 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
145 indicate that the condition it was testing is always true.
146 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
147 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
148 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
150 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
152 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
153 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
154 tdep->jb_pc and tdep->jb_elt_size.
155 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
156 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
157 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
158 * alpha-nat.c (get_longjmp_target): Remove.
159 (JB_ELEMENT_SIZE): Ditto.
161 * alpha-tdep.c (alpha_get_longjmp_target): New function.
162 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
163 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
164 to alpha_get_longjmp_target.
165 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
166 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
167 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
169 2002-04-25 Andrew Cagney <ac131313@redhat.com>
171 * README: Update to GDB 5.2.
173 2002-04-25 Andrew Cagney <ac131313@redhat.com>
175 * gdbarch.sh (LC_ALL): Set to `c'.
177 2002-04-25 Theodore A. Roth <troth@verinet.com>
179 * avr-tdep.c: Ran through gdb_indent.sh.
181 2002-04-25 Theodore A. Roth <troth@verinet.com>
183 * MAINTAINERS: Add myself as AVR maintainer.
184 * NEWS: Note new target avr.
186 2002-04-25 Theodore A. Roth <troth@verinet.com>
188 * Makefile.in: Add support for AVR target.
189 * configure.tgt: Add support for AVR target.
190 * avr-tdep.c: New file
191 * config/avr/avr.mt: New file.
193 2002-04-25 Theodore A. Roth <troth@verinet.com>
195 * MAINTAINERS: Add myself to write-after-approval.
197 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
199 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
200 with fprintf_unfiltered (gdb_stderr,....
202 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
205 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
207 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
209 * p-exp.y: Also use new prev_lexptr variable
210 to improve error reporting. Based on Michael Snyder
211 2002-04-24 dated patch to c-exp.y.
213 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
215 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
216 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
217 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
219 * config/alpha/tm-alpha.h: Remove forward decls of struct type
221 (FUNCTION_START_OFFSET): Remove.
224 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
226 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
229 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
231 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
232 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
233 alpha_linux_pc_in_sigtramp.
234 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
235 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
236 alpha_osf1_pc_in_sigtramp.
237 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
238 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
239 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
240 alphafbsd_pc_in_sigtramp.
241 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
242 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
243 alphanbsd_pc_in_sigtramp.
244 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
245 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
247 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
249 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
251 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
253 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
255 (alphanbsd-nat.o): New dependency list.
256 (alphanbsd-tdep.o): Ditto.
257 * NEWS: Note new native NetBSD/alpha configuration.
258 * alphanbsd-nat.c: New file.
259 * alphanbsd-tdep.c: Ditto.
260 * configure.host (alpha*-*-netbsd*): New host.
261 * configure.tgt (alpha*-*-netbsd*): New target.
262 * config/alpha/nbsd.mh: New file.
263 * config/alpha/nbsd.mt: Ditto.
264 * config/alpha/nm-nbsd.h: Ditto.
265 * config/alpha/tm-nbsd.h: Ditto.
267 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
269 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
270 (alpha-osf1-tdep.o): New dependency list.
271 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
272 and skip_sigtramp_frame members.
273 * alpha-linux-tdep.c: Include gdbcore.h.
274 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
275 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
276 * alpha-osf1-tdep.c: New file.
277 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
279 (alpha_frame_past_sigtramp_frame): New function.
280 (alpha_dynamic_sigtramp_offset): Ditto.
281 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
282 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
283 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
284 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
285 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
286 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
287 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
288 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
289 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
290 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
291 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
292 to find_solib_trampoline_target.
293 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
294 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
295 (SKIP_TRAMPOLINE_CODE): Remove.
296 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
297 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
298 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
299 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
300 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
301 (PROC_SIGTRAMP_MAGIC): Ditto.
302 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
303 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
304 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
305 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
306 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
308 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
310 * NEWS: Note that Alpha targets are now multi-arch.
312 2002-04-24 Michael Snyder <msnyder@redhat.com>
314 * parser-defs.h (prev_lexptr): New external variable.
315 * parse.c (parse_exp_1): Set prev_lexptr to null before
316 calling the language-specific parser.
317 * c-exp.y (yylex): Set prev_lexptr to start of current token.
318 (yyerror): Use prev_lexptr in error reporting.
320 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
322 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
323 * gregset.h: If FILL_FPXREGSET is defined, provide
324 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
325 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
326 is defined, call fill_fpxregset.
328 2002-04-24 Roland McGrath <roland@frob.com>
330 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
331 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
332 (supply_gregset, supply_fpregset): New functions.
334 * gnu-nat.c (gnu_find_memory_regions): New function.
335 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
336 (gnu_xfer_memory): Add a cast.
338 2002-04-24 Michael Snyder <msnyder@redhat.com>
340 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
341 loop. Add handling for "str lr, [sp, #-4]!" and for saves
342 of argument regs ("str r(0123), [r11, #-nn"]).
343 (arm_skip_prologue): Better handling for frameless functions.
344 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
345 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
347 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
349 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
350 NUM_PSEUDO_REGS can be used.
352 2002-04-24 Andrew Cagney <ac131313@redhat.com>
354 * arch-utils.h: Update copyright.
356 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
357 * gdbarch.h, gdbarch.c: Re-generate.
359 * inferior.h (IN_SIGTRAMP): Delete definition.
360 * arch-utils.c (legacy_pc_in_sigtramp): New function.
361 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
363 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
364 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
365 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
366 (find_proc_framesize): Ditto.
367 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
368 (alpha_init_extra_frame_info): Ditto.
369 * infrun.c (handle_inferior_event): Ditto.
370 (handle_inferior_event): Ditto.
371 (check_sigtramp2): Ditto.
372 * blockframe.c (create_new_frame): Ditto.
373 (get_prev_frame): Ditto.
374 * ppc-linux-tdep.c: Update comments.
375 * i386-linux-tdep.c: Update comments.
376 * breakpoint.c (bpstat_what): Update comment.
378 2002-04-24 Michal Ludvig <mludvig@suse.cz>
380 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
381 (regsets_store_inferior_registers): Removed cast to int from
383 * gdbserver/regcache.h: Added declaration of struct inferior_info.
385 2002-04-24 David S. Miller <davem@redhat.com>
387 * i960-tdep.c (register_in_window_p): New function.
388 (i960_find_saved_register): Use it instead of
389 REGISTER_IN_WINDOW_P.
390 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
392 * symtab.h (find_stab_function_addr): Kill extern.
393 * minsyms.c (find_stab_function_addr): Remove from here...
394 * dbxread.c: ... to here, and mark it static.
396 2002-04-20 David S. Miller <davem@redhat.com>
398 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
399 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
401 2002-04-21 David S. Miller <davem@redhat.com>
403 * remote-vxsparc.c (vx_read_register): Fix typo, we want
404 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
405 (vx_write_register): Likewise.
407 2002-04-23 J. Brobecker <brobecker@gnat.com>
409 * source.c (is_regular_file): New function.
410 (openp): Check wether file to open is a regular file
411 to avoid opening directories.
413 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
415 * findvar.c (extract_signed_integer): Cast printf argument
416 to suppress format warning.
417 (extract_unsigned_integer): Likewise.
418 * infcmd.c (registers_info): Likewise.
419 * top.c (get_prompt_1): Likewise.
420 * valops.c (value_assign): Likewise.
421 * valprint.c (print_decimal): Likewise.
423 2002-04-22 H.J. Lu (hjl@gnu.org)
425 * c-exp.y (typebase): Support
427 [long|long long|short] [signed|unsigned] [int|]
431 signed [long|long long|short] int
433 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
435 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
437 * vax-tdep.h: New file.
438 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
439 Make several routines static.
440 (vax_get_saved_register): New function.
441 (vax_gdbarch_init): New function.
442 (_initialize_vax_tdep): Register vax_gdbarch_init.
443 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
444 Remove macros now under the control of gdbarch.
446 2002-04-22 Michael Snyder <msnyder@redhat.com>
448 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
449 Some whitespace and coding standards tweaks.
451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
453 * vax-tdep.c: Include regcache.h.
454 (vax_call_dummy_words): New.
455 (sizeof_vax_call_dummy_words): New.
456 (vax_fix_call_dummy): New function.
457 (vax_saved_pc_after_call): Ditto.
458 * config/vax/tm-vax.h: Don't include regcache.h.
459 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
460 (CALL_DUMMY): Remove.
461 (CALL_DUMMY_WORDS): Define.
462 (SIZEOF_CALL_DUMMY_WORDS): Define.
463 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
465 2002-04-18 Michael Snyder <msnyder@redhat.com>
467 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
469 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
471 * vax-tdep.c (vax_frame_chain): New function.
472 (vax_push_dummy_frame): Ditto.
473 (vax_pop_frame): Ditto.
474 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
475 (FRAMELESS_FUNCTION_INVOCATION): Use
476 generic_frameless_function_invocation_not.
477 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
478 (POP_FRAME): Use vax_pop_frame.
480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
482 * vax-tdep.c (vax_store_struct_return): New function.
483 (vax_extract_return_value): Ditto.
484 (vax_store_return_value): Ditto.
485 (vax_extract_struct_value_address): Ditto.
486 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
487 vax_store_struct_return.
488 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
489 (STORE_RETURN_VALUE): Use vax_store_return_value.
490 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
492 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
494 * vax-tdep.c (vax_frame_saved_pc): New function.
495 (vax_frame_args_address_correct): Ditto.
496 (vax_frame_args_address): Ditto.
497 (vax_frame_locals_address): Ditto.
498 (vax_frame_num_args): Move code to be in proximity to
499 other frame-related functions.
500 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
501 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
502 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
503 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
504 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
506 2002-04-22 H.J. Lu (hjl@gnu.org)
508 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
511 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
513 * vax-tdep.c (vax_frame_init_saved_regs): New function.
514 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
515 (FRAME_INIT_SAVED_REGS): New macro.
517 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
519 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
521 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
523 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
525 (fetch_osf_core_registers): Likewise.
526 (supply_gregset): Likewise.
528 2002-04-22 J. Brobecker <brobecker@gnat.com>
530 * symfile.h (get_section_index): Define.
531 * symfile.c (get_section_index): New function.
532 * mdebugread.c (SC_IS_SBSS): New macro.
533 (SC_IS_BSS): Return true for the scBss storage class only, as
534 the scSBss storage class refers to the .sbss section.
535 (parse_partial_symbols): Discard the symbols which associated
536 section does not exist.
537 Make sure to use the .sbss section index for symbols which
538 storage class is scBss, rather than using the .bss section index.
540 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
542 * vax-tdep.c: Update copyright years.
543 (vax_register_name): New function.
544 (vax_register_byte): Ditto.
545 (vax_register_raw_size): Ditto.
546 (vax_register_virtual_size): Ditto.
547 (vax_register_virtual_type): Ditto.
548 * config/vax/tm-vax.h: Update copyright years.
549 (REGISTER_NAMES): Remove.
550 (REGISTER_NAME): Define.
551 (REGISTER_BYTE): Use vax_register_byte.
552 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
553 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
554 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
556 2002-04-21 Andrew Cagney <ac131313@redhat.com>
558 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
560 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
562 2002-04-21 David S. Miller <davem@redhat.com>
564 * arch-utils.c (generic_prologue_frameless_p): Kill
565 SKIP_PROLOGUE_FRAMELESS_P code.
566 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
568 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
569 * arc-tdep.c (arc_prologue_frameless_p): Implement.
570 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
572 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
573 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
574 (sparc_gdbarch_init): Pass it to
575 set_gdbarch_prologue_frameless_p.
577 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
579 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
580 (alphabsd-nat.o): New dependency list.
582 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
584 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
586 (alpha-linux-tdep.o): New dependency list.
587 (alphafbsd-tdep.o): Likewise.
589 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
591 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
593 * alpha-tdep.c: ...from here.
594 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
596 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
598 * config/alpha/tm-alpha.h: Move alpha_software_single_step
599 prototype from here...
600 * alpha-tdep.h: ...to here.
602 2002-04-21 Andrew Cagney <ac131313@redhat.com>
604 * frame.h (selected_frame_level): Document as deprecated.
605 (frame_relative_level): Declare.
606 * stack.c (frame_relative_level): New function.
607 (selected_frame_level): Document as deprecated.
608 (select_frame): Do not set the selected_frame_level.
610 * stack.c (frame_info, record_selected_frame): Update.
611 (frame_command, current_frame_command): Update.
612 (up_silently_base, up_command, down_silently_base): Update.
613 (down_command): Update.
614 * inflow.c (kill_command): Update.
615 * tracepoint.c (finish_tfind_command): Update.
616 * corelow.c (core_open): Update.
617 * thread.c (info_threads_command): Update.
618 (do_captured_thread_select): Update.
619 * infcmd.c (finish_command): Update.
620 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
622 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
624 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
626 2002-04-21 Andrew Cagney <ac131313@redhat.com>
628 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
631 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
633 * alphafbsd-tdep.c: Update copyright years. Include
635 (alphafbsd_use_struct_convention): Make static.
636 (alphafbsd_init_abi): New function.
637 (_initialize_alphafbsd_tdep): New function.
638 * config/alpha/tm-fbsd.h: Update copyright years.
639 (USE_STRUCT_CONVENTION): Remove.
641 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
643 * alpha-tdep.c (alpha_abi_handler): New structure to describe
644 an Alpha ABI variant.
645 (alpha_abi_handler_list): Declare.
646 (alpha_gdbarch_register_os_abi): New function.
647 (alpha_gdbarch_init): Give registered ABI variant handlers a
648 chance to tweak the gdbarch once we have set up defaults.
649 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
651 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
653 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
654 to standard_coerce_float_to_double.
655 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
657 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
659 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
660 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
661 from gdbarch_tdep rather than a constant.
662 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
663 the default text address for all Alpha Unix ABIs.
664 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
665 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
667 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
669 * alpha-tdep.h: New file. Includes several Alpha target constants
671 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
672 let gdbarch deal with.
673 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
674 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
676 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
677 Alpha target register names.
678 * alphabsd-nat.c: Likewise.
679 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
680 Alpha target register names. Make serveral routines static.
681 (alpha_get_saved_register): New function.
682 (alpha_abi_names): New.
683 (process_note_abi_tag_sections): New function.
684 (get_elfosabi): New function.
685 (alpha_gdbarch_init): New function.
686 (alpha_dump_tdep): New function.
687 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
689 2002-04-21 Andrew Cagney <ac131313@redhat.com>
691 * frame.c (find_saved_register): Delete #ifdef
692 HAVE_REGISTER_WINDOWS code.
693 * config/sparc/tm-sparc.h: Update comments.
694 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
696 2002-04-21 Andrew Cagney <ac131313@redhat.com>
698 * i960-tdep.c (i960_find_saved_register): New function.
699 (i960_get_saved_register): New function.
700 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
701 (i960_get_saved_register): Declare.
702 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
704 2002-04-20 David S. Miller <davem@redhat.com>
706 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
708 2002-04-20 Andrew Cagney <ac131313@redhat.com>
710 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
711 instead of NUM_PSEUDO_REGS.
713 2002-04-20 David S. Miller <davem@redhat.com>
715 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
716 GDB_MULTI_ARCH_PARTIAL
717 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
718 define, let tm-sp64.h do it.
720 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
722 * frame.c (find_saved_register): Avoid a NULL pointer
723 dereference and actually walk the frame list.
725 2002-04-20 Andrew Cagney <ac131313@redhat.com>
727 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
728 sorted in most most-recent-used order. Document.
729 * gdbarch.h, gdbarch.c: Regenerate.
731 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
733 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
734 (add_inferior): Call create_register_cache.
735 (clear_inferiors): Call free_register_cache.
736 (inferior_regcache_data, set_inferior_regcache_data): New functions.
737 * gdbserver/regcache.c (struct inferior_regcache_data): New.
739 (get_regcache): New function.
740 (create_register_cache, free_register_cache): New functions.
741 (set_register_cache): Don't initialize the register cache here.
742 (registers_to_string, registers_from_string, register_data): Call
744 * gdbserver/regcache.h: Add prototypes.
745 * gdbserver/server.h: Likewise.
747 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
749 * gdbserver/mem-break.c: New file.
750 * gdbserver/mem-break.h: New file.
751 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
753 * gdbserver/inferiors.c (struct inferior_info): Add target_data
755 (clear_inferiors): Free target_data member if set.
756 (inferior_target_data, set_inferior_target_data): New functions.
757 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
758 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
759 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
760 (struct inferior_linux_data): New.
761 (linux_create_inferior): Use set_inferior_target_data.
762 (linux_attach): Likewise. Call add_inferior.
763 (linux_wait_for_one_inferior): New function.
764 (linux_wait): Call it.
765 (linux_write_memory): Add const.
766 (initialize_low): Call set_breakpoint_data.
767 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
769 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
771 * gdbserver/server.h: Include mem-break.h. Update inferior.c
773 * gdbserver/target.c (read_inferior_memory)
774 (write_inferior_memory): New functions.
775 * gdbserver/target.h (read_inferior_memory)
776 (write_inferior_memory): Change macros to prototypes.
777 (struct target_ops): Update comments. Add const to write_memory
780 2002-04-19 Andrew Cagney <ac131313@redhat.com>
782 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
784 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
785 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
786 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
789 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
792 * gdbtypes.c (init_simd_type): Rewrite using new functions.
793 (build_builtin_type_vec128): Ditto.
794 (append_composite_type_field): Fix calculation of type length in
797 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
799 * config/djgpp/README: Update.
801 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
804 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
806 * alpha-tdep.c (setup_arbitrary_frame): Rename...
807 (alpha_setup_arbitrary_frame): ...to this.
808 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
809 for alpha_setup_arbitrary_frame.
811 2002-04-18 Andrew Cagney <cagney@redhat.com>
813 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
814 * gdbarch.h, gdbarch.c: Regenerate.
816 * defs.h (breakpoint_from_pc_fn): Delete type definition.
817 * target.h (memory_breakpoint_from_pc): Update declaration.
818 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
820 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
821 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
822 * mem-break.c (memory_breakpoint_from_pc): Ditto.
823 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
824 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
825 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
826 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
827 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
828 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
829 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
830 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
831 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
833 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
835 * monitor.c (monitor_insert_breakpoint): Ditto.
836 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
838 * config/mcore/tm-mcore.h: Update copyright.
839 * mem-break.c: Ditto.
840 * xstormy16-tdep.c: Ditto.
842 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
844 * p-exp.y: Add precedence rule for '^' token.
845 This removes the shift/reduce conflicts.
846 Remove the comment concerning these shift/reduce conflicts.
848 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
850 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
851 (registers_powerpc_nofp): New register set for processors
852 without floating point unit.
854 2002-04-18 David S. Miller <davem@redhat.com>
856 * MAINTAINERS: Add myself to write-after-approval.
858 2002-04-17 Michael Snyder <msnyder@redhat.com>
860 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
862 2002-04-17 Andrew Cagney <ac131313@redhat.com>
864 * rs6000-tdep.c (frame_initial_stack_address): Use
865 frame_register_read to read the alloca_reg.
867 2002-04-17 Andrew Cagney <ac131313@redhat.com>
869 * frame.c (find_saved_register): Find saved registers in the next
873 2002-04-17 Andrew Cagney <ac131313@redhat.com>
875 * gdbarch.sh (LANG): Set to ``c''.
877 2002-04-15 Andrew Cagney <ac131313@redhat.com>
879 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
881 2002-04-15 Andrew Cagney <ac131313@redhat.com>
883 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
886 * hpread.c (hpread_get_lntt): Add declaration.
889 2002-04-14 Andrew Cagney <ac131313@redhat.com>
891 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
892 * aclocal.m4, configure: Re-generate.
895 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
897 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
898 instead of tm_print_insn.
900 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
902 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
904 2002-04-14 Andrew Cagney <ac131313@redhat.com>
906 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
907 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
908 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
910 2002-04-12 Don Howard <dhoward@redhat.com>
912 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
914 (init_cmd_lists): Initialize the new value;
915 * cli/cli-script.c (execute_user_command): Limit the call depth of
916 user defined commands. This avoids a core-dump when user commands
917 are infinitly recursive.
919 2002-04-12 Kevin Buettner <kevinb@redhat.com>
921 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
922 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
923 from tdep struct instead of DEFAULT_LR_SAVE.
924 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
925 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
926 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
928 2002-04-12 Michael Snyder <msnyder@redhat.com>
930 * Remote.c: Spelling fix.
931 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
932 If no symbol found for "sbrk", try "_sbrk".
933 (make_output_phdrs): Use bfd_section_name.
934 (gcore_copy_callback): Use bfd_section_name.
935 * eval.c: Indentation fix-ups.
936 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
937 in case it gets applied to an address that is already
938 in the instruction space.
939 * cli/cli-decode.c (help_list): Allow long lines to wrap.
940 * symfile.c: Fix indentation, long lines.
941 * source.c: White space fix-up.
943 2002-04-12 Andrew Cagney <cagney@redhat.com>
945 * defs.h (read_relative_register_raw_bytes): Delete declaration.
946 * frame.c (frame_register_read): New function. Return non-zero on
948 (read_relative_register_raw_bytes_for_frame): Delete.
949 (read_relative_register_raw_bytes): Delete.
950 * frame.h (frame_register_read): Declare.
951 * d30v-tdep.c: Update Copyright. Use frame_register_read.
953 * infcmd.c (do_registers_info): Ditto.
954 * hppa-tdep.c: Ditto.
955 * rs6000-tdep.c: Ditto.
956 * h8500-tdep.c: Ditto.
957 * mips-tdep.c: Ditto.
958 * h8300-tdep.c: Ditto.
961 2002-04-12 Kevin Buettner <kevinb@redhat.com>
963 From Jimi X <jimix@watson.ibm.com>:
964 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
967 2002-04-12 Kevin Buettner <kevinb@redhat.com>
969 From Jimi X <jimix@watson.ibm.com>:
970 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
973 2002-04-12 Kevin Buettner <kevinb@redhat.com>
975 From Jimi X <jimix@watson.ibm.com>:
976 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
977 register sets for these processor variants.
979 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
981 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
982 registers which are allowed to fail to store.
983 * gdbserver/linux-low.h (linux_target_ops): Likewise.
984 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
985 (ppc_cannot_store_register): FPSCR may not be storable.
986 * regformats/reg-ppc.dat: Support FPSCR.
988 2002-04-11 Kevin Buettner <kevinb@redhat.com>
990 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
991 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
992 Add fpscr as an invalid/unfetchable register.
993 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
994 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
995 (fill_fpregset): Add support for register fpscr.
996 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
997 (fill_gregset): Account for the fact that register ``mq'' might
999 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1000 (registers_power): Add fpscr to register set at slot 71.
1001 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1002 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1004 2002-04-11 Michael Snyder <msnyder@redhat.com>
1006 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1007 * configure: Regenerate.
1008 * config.in: Regenerate.
1009 * acconfig.h: Add define for _SYSCALL32.
1010 * core-sol2.c: Remove #define _SYSCALL32.
1011 * solib-legacy.c: Remove #define _SYSCALL32.
1013 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1015 * stack.c (select_frame): Cleanup internal error message, do not
1018 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1020 * stack.c (select_frame): Check that selected_frame and the
1021 specified level are as expected.
1022 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1024 * frame.h (struct frame_info): Add field `level'. Update
1026 Work-in-progress PR gdb/464.
1028 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1030 * maint.c (maint_print_section_info): Rename print_section_info.
1031 (print_bfd_section_info, print_objfile_section_info): Update.
1032 * inferior.h (struct gdbarch): Add opaque declaration.
1033 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1034 * gdbarch.h: Regenerate.
1036 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1038 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1039 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1040 (kernel_u_size): Added.
1041 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1042 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1044 2002-04-04 Jim Ingham <jingham@apple.com>
1046 * valarith.c (find_size_for_pointer_math): New function, either returns
1047 the size for a pointer's target, returns 1 for void *, or errors for
1049 (value_add, value_sub): use find_size_for_pointer_math.
1051 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1053 * linux-low.c (linux_look_up_symbols): New hook.
1054 (linux_target_ops): Add linux_look_up_symbols.
1055 * remote-utils.c (decode_address): New function.
1056 (look_up_one_symbol): New function.
1057 * server.c (handle_query): Call target look_up_symbols hook.
1058 * server.h (look_up_one_symbol): Add prototype.
1059 * target.h (struct target_ops): Add look_up_symbols hook.
1061 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1063 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1064 * ChangeLog: Correct paths in last ChangeLog entry.
1066 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1068 * gdbserver/linux-low.h: Remove obsolete prototypes.
1069 (struct linux_target_ops): New.
1070 (extern the_low_target): New.
1071 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1072 (register_addr): Use the_low_target explicitly.
1073 (fetch_register): Likewise.
1074 (usr_fetch_inferior_registers): Likewise.
1075 (usr_store_inferior_registers): Likewise.
1076 * gdbserver/linux-arm-low.c (num_regs): Remove.
1077 (arm_num_regs): Define.
1078 (arm_regmap): Renamed from regmap, made static.
1079 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1081 (arm_cannot_store_register): Renamed from cannot_store_register,
1083 (the_low_target): New.
1084 * gdbserver/linux-i386-low.c (num_regs): Remove.
1085 (i386_num_regs): Define.
1086 (i386_regmap): Renamed from regmap, made static.
1087 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1089 (i386_cannot_store_register): Renamed from cannot_store_register,
1091 (the_low_target): New.
1092 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1093 (ia64_num_regs): Define.
1094 (ia64_regmap): Renamed from regmap, made static.
1095 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1097 (ia64_cannot_store_register): Renamed from cannot_store_register,
1099 (the_low_target): New.
1100 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1101 (m68k_num_regs): Define.
1102 (m68k_regmap): Renamed from regmap, made static.
1103 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1105 (m68k_cannot_store_register): Renamed from cannot_store_register,
1107 (the_low_target): New.
1108 * gdbserver/linux-mips-low.c (num_regs): Remove.
1109 (mips_num_regs): Define.
1110 (mips_regmap): Renamed from regmap, made static.
1111 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1113 (mips_cannot_store_register): Renamed from cannot_store_register,
1115 (the_low_target): New.
1116 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1117 (ppc_num_regs): Define.
1118 (ppc_regmap): Renamed from regmap, made static.
1119 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1121 (ppc_cannot_store_register): Renamed from cannot_store_register,
1123 (the_low_target): New.
1124 * gdbserver/linux-s390-low.c (num_regs): Remove.
1125 (s390_num_regs): Define.
1126 (s390_regmap): Renamed from regmap, made static.
1127 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1129 (s390_cannot_store_register): Renamed from cannot_store_register,
1131 (the_low_target): New.
1132 * gdbserver/linux-sh-low.c (num_regs): Remove.
1133 (sh_num_regs): Define.
1134 (sh_regmap): Renamed from regmap, made static.
1135 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1137 (sh_cannot_store_register): Renamed from cannot_store_register,
1139 (the_low_target): New.
1140 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1141 (the_low_target): New.
1143 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1145 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1146 override FP_REGNUM with frame->fp. Update copyright.
1147 * parse.c (num_std_regs, std_regs): Delete.
1148 (target_map_name_to_register): Do not search std_regs. Update
1149 function description.
1150 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1151 declarations. Update copyright.
1154 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1156 * gdbserver/Makefile.in: Add stamp-h target.
1157 * gdbserver/configure.in: Create stamp-h.
1158 * gdbserver/configure: Regenerated.
1160 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1162 * gdbserver/inferiors.c: New file.
1163 * gdbserver/target.c: New file.
1164 * gdbserver/target.h: New file.
1165 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1167 * gdbserver/linux-low.c (inferior_pid): New static variable,
1168 moved from server.c.
1169 (linux_create_inferior): Renamed from create_inferior.
1170 Call add_inferior. Return 0 on success instead of a PID.
1171 (linux_attach): Renamed from myattach.
1172 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1173 (linux_thread_alive): Renamed from mythread_alive.
1174 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1176 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1177 (regsets_store_inferior_registers): Correct error message.
1178 Add missing ``return 0''.
1179 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1180 (linux_store_registers): Renamed from store_inferior_registers.
1181 (linux_read_memory): Renamed from read_inferior_memory.
1182 (linux_write_memory): Renamed from write_inferior_memory.
1183 (linux_target_ops): New structure.
1184 (initialize_low): Call set_target_ops ().
1185 * gdbserver/remote-utils.c (unhexify): New function.
1186 (hexify): New function.
1187 (input_interrupt): Send signals to ``signal_pid''.
1188 * gdbserver/server.c (inferior_pid): Remove.
1189 (start_inferior): Update create_inferior call.
1190 (attach_inferior): Call add_inferior.
1191 (handle_query): New function.
1192 (main): Call handle_query for `q' packets.
1193 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1194 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1196 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1198 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1200 * gdbserver/configure.in: Check for <string.h>
1201 * gdbserver/configure: Regenerate.
1202 * gdbserver/config.in: Regenerate.
1203 * gdbserver/gdbreplay.c: Include needed system headers.
1204 (remote_open): Remove strchr prototype.
1205 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1206 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1207 (supply_register_by_name): Likewise.
1208 (collect_register): Change buf argument to void *.
1209 (collect_register_by_name): Likewise.
1210 * gdbserver/regcache.h: Add missing prototypes.
1211 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1212 * gdbserver/server.c (handle_query): New function.
1213 (attached): New static variable, moved out of main.
1214 (main): Quiet longjmp clobber warnings.
1215 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1216 * gdbserver/utils.c (error): Remove NORETURN.
1219 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1221 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1222 after the last symbol in a block.
1224 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1226 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1227 is non zero as a found symbol.
1229 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1231 * findvar.c: Include "builtin-regs.h".
1232 (value_of_register): Call value_of_builtin_reg when applicable.
1233 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1234 (target_map_name_to_register): Call
1235 builtin_reg_map_name_to_regnum.
1236 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1237 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1238 (builtin_regs_h): Define.
1239 (builtin-regs.o): New target.
1240 (findvar.o): Add $(builtin_regs_h).
1241 * builtin-regs.c, builtin-regs.h: New files.
1242 * std-regs.c: New file.
1243 Partial fix for PR gdb/251.
1245 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1247 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1248 it's no longer required.
1250 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1252 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1254 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1256 From Jimi X <jimix@watson.ibm.com>:
1257 * rs6000-tdep.c (rs6000_software_single_step): Use
1258 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1259 and size. Use target_insert_breakpoint() and
1260 target_remove_breakpoint() to insert and remove breakpoints
1261 instead of explicit memory reads and writes.
1263 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1265 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1266 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1267 ELF_OBJECT_FORMAT ifdef.
1269 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1271 From Jimi X <jimix@watson.ibm.com>:
1272 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1274 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1276 From Jimi X <jimix@watson.ibm.com>:
1277 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1278 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1280 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1282 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1283 s/asprintf/xasprintf/.
1284 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1286 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1288 I believe Jeff Law denies responsability for this one:
1289 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1290 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1291 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1292 Work-around for PR gdb/366.
1294 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1296 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1297 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1298 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1300 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1302 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1303 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1306 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1308 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1311 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1313 * README (Reporting Bugs in GDB): Document the bug web page as the
1314 prefered way of submitting bugs.
1317 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1319 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1321 * gdbarch.h, gdbarch.c: Re-generate.
1323 2002-04-07 Andreas Schwab <schwab@suse.de>
1325 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1326 buffer to regcache_collect.
1328 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1330 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1331 * gdbarch.c, gdbarch.h: Re-generate.
1333 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1335 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1336 declaration. Fix -Werror.
1338 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1340 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1341 * gdbarch.c: Regenerate.
1343 2002-04-05 Michael Snyder <msnyder@redhat.com>
1345 * breakpoint.c (clear_command): Rewrite middle section to
1346 combine two loops with identical control conditions.
1347 Add a cleanup to eliminate a memory leak.
1348 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1350 2002-04-05 H.J. Lu (hjl@gnu.org)
1352 * solib-svr4.c (bkpt_names): Add "__start".
1354 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1356 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1357 as test for 64 bit target.
1359 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1361 * h8500-tdep.c (h8500_write_fp): Delete function.
1362 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1363 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1364 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1366 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1367 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1369 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1370 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1371 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1372 (d10v_write_fp): Delete function.
1373 * inferior.h (write_fp, generic_target_write_fp): Delete
1375 * regcache.c (generic_target_write_fp): Delete function.
1376 (write_fp): Delete function.
1377 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1378 * gdbarch.h, gdbarch.c: Regenerate.
1379 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1380 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1381 (sparc64_write_fp): Delete declaration.
1382 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1383 (h8500_write_fp): Delete declaration.
1385 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1387 * sparc-tdep.c (sparc64_write_fp): Delete.
1388 (sparc_push_dummy_frame): Replace write_fp call with code to store
1390 (sparc_gdbarch_init): Do not initialize write_fp.
1392 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1394 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1397 2002-03-29 Jim Blandy <jimb@redhat.com>
1399 * stack.c (get_selected_block): Add new argument `addr_in_block',
1400 used to return the exact code address we used to select the block,
1402 * blockframe.c (get_frame_block, get_current_block): Same.
1403 * frame.h (get_frame_block, get_current_block,
1404 get_selected_block): Update declarations.
1405 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1406 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1408 2002-04-05 Michael Snyder <msnyder@redhat.com>
1410 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1413 2002-04-05 J. Brobecker <brobecker@gnat.com>
1415 * utils.c (xfullpath): New function.
1416 * defs.h (xfullpath): Add declaration.
1417 * source.c (openp): Use xfullpath in place of gdb_realpath to
1418 avoid resolving the basename part of filenames when the
1419 associated file is a symbolic link. This fixes a potential
1420 inconsistency between the filenames known to GDB and the
1421 filenames it prints in the annotations.
1422 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1423 to be able to match a filename with either the real filename, or
1424 the name of any symbolic link to this file.
1425 (lookup_partial_symtab): Ditto.
1427 2002-04-04 Michael Snyder <msnyder@redhat.com>
1429 * breakpoint.c: Add support for hardware breakpoints in overlays.
1430 (overlay_events_enabled): New state variable.
1431 (insert_breakpoints): Use overlay_events_enabled to decide
1432 whether to attempt to set a breakpoint at the overlay load addr.
1433 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1434 (remove_breakpoint): Use overlay_events_enabled to decide
1435 whether breakpoints need to be removed from overlay load addr.
1436 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1437 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1438 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1439 disable_overlay_breakpoints): Update overlay_events_enabled.
1441 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1443 * dwarf2read.c (struct function_range): New.
1444 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1445 (check_cu_functions): New.
1446 (read_file_scope): Initialize global function lists.
1447 Call dwarf_decode_line after processing children.
1448 (read_func_scope): Add to global function list.
1449 (dwarf_decode_lines): Call check_cu_functions everywhere
1450 record_line is called. Call record_line with a linenumber
1451 of 0 to mark sequence ends.
1453 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1455 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1456 change sync with glibc.
1458 2002-04-03 Jim Blandy <jimb@redhat.com>
1460 * configure.in: Call AC_C_INLINE.
1461 * configure: Regenerated.
1463 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1465 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1466 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1468 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1470 * NEWS: Mention gcore support on FreeBSD/i386.
1472 * fbsd-proc.c: New file.
1473 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1474 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1476 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1479 2002-03-29 Jim Blandy <jimb@redhat.com>
1481 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1482 unescaped newlines in string literals, but newer ones don't. So
1485 2002-03-26 Michael Snyder <msnyder@redhat.com>
1486 Andrew Cagney <cagney@redhat.com>
1488 * cli/cli-dump.c: New file. Dump memory to file,
1489 restore file to memory.
1490 * cli/cli-dump.h: New file.
1491 * Makefile.in: Add rules, dependencies for cli-dump.o.
1492 * NEWS: Mention new commands.
1494 2002-03-28 Michael Snyder <msnyder@redhat.com>
1496 * symfile.c (symbol_file_add): Move test for null symbols to later.
1498 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1500 From veksler at il.ibm.com:
1501 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1502 the xstrduped original path.
1505 2002-03-27 Michael Snyder <msnyder@redhat.com>
1507 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1508 * infcmd.c (_initialize_infcmd): Ditto.
1509 * language.c (_initialize_language): Ditto.
1510 * symfile.c (_initialize_symfile): Ditto.
1511 * top.c (_init_main): Ditto.
1512 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1514 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1516 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1517 vector registers handling.
1518 (skip_prologue): Handle new AltiVec instructions. Fill in new
1519 fields of frame data.
1520 (frame_get_saved_regs): Fill in information for AltiVec registers.
1522 2002-03-27 Jim Blandy <jimb@redhat.com>
1524 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1525 a function; leave this macro here to invoke that function.
1526 (symbol_init_mangled_name): Declaration for that function.
1527 * symtab.c (symbol_init_mangled_name): New function.
1529 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1531 * valarith.c: Replace strerror with safe_strerror.
1532 * tracepoint.c: Ditto.
1534 * go32-nat.c: Ditto.
1538 2002-03-27 Andreas Schwab <schwab@suse.de>
1540 * event-top.c (command_line_handler): Remove useless if.
1542 2002-03-27 Andreas Jaeger <aj@suse.de>
1544 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1547 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1549 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1550 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1551 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1552 (x86_64_linux_dr_get_status, supply_gregset),
1553 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1554 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1555 (x86_64_register_info_table): Add.
1556 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1557 (x86_64_register_raw_size, x86_64_register_virtual_type),
1558 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1559 general x86_64_register_info_table.
1560 (i386_gdbarch_init): gdbarch_register_bytes is now set
1561 dynamicaly during initialization.
1562 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1563 * gdbserver/linux-x86-64-low.c: Ditto.
1565 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1567 * gdbserver/server.c (main): Call target_signal_to_host_p
1568 and target_signal_to_host on signals received from the remote.
1569 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1570 target_signal_from_host on signals sent to the remote.
1571 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1572 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1574 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1576 * signals/signals.c: Include "server.h" in gdbserver build.
1577 (target_signal_from_name): Don't use STREQ.
1578 (_initialize_signals): Likewise. Don't include function in
1581 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1583 * signals.c: Moved to...
1584 * signals/signals.c: Here.
1585 * Makefile (signals.o): Update.
1587 2002-03-26 Jeff Law (law@redhat.com)
1589 * somread.c (som_symtab_read): Remove some commented out code and
1590 updated related comments. Do not set the minimal symbol table to
1591 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1592 in a dynamic executable.
1593 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1594 where we are unable to find the minimal symbol for the given
1597 2002-03-25 Jeff Law (law@redhat.com)
1599 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1601 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1603 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1605 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1607 * command.h: Update copyright.
1608 (struct cmd_list_element): Replace definition with opaque
1610 (enum cmd_types): Document that it will eventually be moved to
1612 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1613 (MALLOCED_REPLACEMENT): Delete macro.
1614 * Makefile.in (cli_decode_h): Add $(command_h).
1615 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1616 * top.c: Include "cli/cli-decode.h".
1617 * completer.c: Include "cli/cli-decode.h".
1618 * maint.c: Include "cli/cli-decode.h".
1619 * cli/cli-decode.h: Include "command.h".
1620 (enum command_class): Delete.
1621 (enum cmd_types): Comment out.
1622 (enum cmd_auto_boolean): Delete.
1623 (enum var_types): Delete.
1625 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1627 * cli/cli-decode.c: Include "gdb_assert.h".
1628 (add_set_or_show_cmd): New static function.
1629 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1630 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1631 all fields, such as func, from the set command.
1633 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1635 * MAINTAINERS (sh-elf): Change warning flag to -w.
1637 2002-03-23 Andrew Cagney <cagney@redhat.com>
1639 * defs.h (error): Add printf format attribute.
1640 * thread-db.c (thread_from_lwp): Fix error format string.
1641 * stack.c (parse_frame_specification): Ditto.
1642 * cli/cli-decode.c (undef_cmd_error): Ditto.
1643 * scm-lang.c (scm_lookup_name): Ditto.
1644 * tracepoint.c (trace_error): Ditto.
1645 * remote-utils.c (usage): Ditto.
1646 * remote.c (compare_sections_command): Ditto.
1649 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1651 * gdbtypes.c (append_composite_type_field): New function.
1652 (init_composite_type): New function.
1653 * gdbtypes.h (append_composite_type_field): Declare.
1654 (init_composite_type): Ditto.
1656 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1658 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1660 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1661 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1662 structure returning convention for SYSV ABI case, but not
1663 for GNU/Linux, FreeBSD, or NetBSD.
1665 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1667 * symtab.h (lookup_block_symbol): Add mangled_name argument
1670 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1671 with new mangled_name argument.
1672 * linespec.c (decode_line_1): Likewise.
1673 * valops (value_of_this): Likewise.
1674 * symtab.c (lookup_transparent_type): Likewise.
1675 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1676 (lookup_symbol): If we are given a mangled name, pass it down
1677 to lookup_symbol_aux.
1678 (lookup_block_symbol): If we are given a mangled name to check
1679 against, only return symbols which match it.
1681 2002-03-22 Christopher Faylor <cgf@redhat.com>
1683 * win32-nat.c (child_create_inferior): Check for proper shell to use
1684 here, in case the user changes it on the fly.
1685 (_initialize_inftarg): Remove shell path considerations.
1687 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1689 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1690 for gdbarch_max_register_raw_size and max_register_virtual_size.
1691 Adjust copyright year.
1693 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1695 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1696 in a function to cover the entire beginning of the function
1697 as well if it does not already.
1699 2002-03-21 Tom Rix <trix@redhat.com>
1701 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1702 (rs6000_ptrace64): Renamed from ptrace64.
1704 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1706 * gdbserver/remote-utils.c (remote_open): Don't call
1707 getprotobyname, we're all using TCP here so just use
1709 * gdbserver/gdbreplay.c (remote_open): Ditto.
1711 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1713 * regcache.c (_initialize_regcache): No need to call
1714 build_regcache() at this time; it gets called whenever
1715 the gdbarch changes.
1717 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1719 * sparc-nat.c: Include sys/param.h where possible.
1721 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1724 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1725 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1726 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1728 * stabsread.c (rs6000_builtin_type): Likewise.
1729 (read_sun_floating_type): Likewise.
1731 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1733 * stabsread.c (read_member_functions): Remove skip code for duplicate
1734 constructor/destructor methods. Use standard parsing for these
1735 methods and just do not chain them to the list of methods after
1738 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1740 * coffread.c: Remove redundant static declarations. Replace
1741 occurrences of `PTR' with `void *'.
1742 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1743 * top.h (quit_cover): Likewise.
1744 * defs.h (catch_errors): Likewise.
1746 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1748 * defs.h (XMALLOC): Define.
1749 * gdb-events.sh (XMALLOC): Delete macro.
1750 * gdb-events.c, gdb-events.h: Regenerate.
1751 * gdbarch.sh (XMALLOC): Delete macro.
1752 * gdbarch.c: Regenerate.
1753 * serial.c (XMALLOC): Delete macro.
1754 * ui-file.c (XMALLOC): Ditto.
1755 * ser-unix.h (XMALLOC): Ditto.
1756 * sh-tdep.c (XMALLOC): Ditto.
1757 * ui-out.c (XMALLOC): Ditto.
1758 * utils.c (XMALLOC): Ditto.
1759 * i386-tdep.c (XMALLOC): Ditto.
1760 * gdb-events.c (XMALLOC): Ditto.
1761 * d10v-tdep.c (XMALLOC): Ditto.
1762 * cli-out.c (XMALLOC): Ditto.
1764 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1765 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1766 * ui-file.c, ui-out.c: Ditto.
1768 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1770 * command.h (struct cmd_list_element): Add field context.
1771 (set_cmd_context, get_cmd_context): Declare.
1772 * cli/cli-decode.h: Ditto.
1773 * cli/cli-decode.c (get_cmd_context): New function.
1774 (set_cmd_context): New function.
1775 (add_cmd): Initialize context.
1776 Part of fixing PR gdb/145 and PR gdb/146.
1778 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1780 * cli/cli-decode.c (cmd_type): New function.
1781 * command.h (cmd_type): Declare.
1782 * infrun.c (set_schedlock_func): Call function cmd_type.
1783 * kod.c (kod_set_os): Call cmd_type.
1784 * cris-tdep.c (cris_version_update): Use function cmd_type.
1785 (cris_mode_update, cris_abi_update): Ditto.
1787 * command.h: (execute_cmd_post_hook): Declare.
1788 (execute_cmd_pre_hook): Declare.
1789 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1790 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1791 functions. Execute pre/post hook while ensuring that afterwords
1793 * top.c (execute_command): Use execute_cmd_post_hook, and
1794 execute_cmd_pre_hook to execute pre/post commands.
1795 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1797 (hook_stop_stub): Call execute_cmd_pre_hook.
1799 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1801 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1802 set'' and this leads to a core dump. Move xstrdup of
1803 operating_system to after check that it is not NULL.
1805 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1807 * kod.c (kod_set_os): Remove unnecessary check that
1808 ``command->type'' is set_cmd.
1810 * valprint.c (set_input_radix): Use input_radix.
1811 (set_output_radix): Use output_radix.
1812 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1815 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1817 * value.h (struct value): Delete field ``substring_addr''. Change
1818 aligner fields to force_doublest_align, force_longest_align,
1819 force_core_addr_align and force_pointer_aligh.
1821 * value.h (struct value): Fix typo in above change.
1823 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1825 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1826 to fix internal_error from ``maintenance print architecture''.
1828 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1830 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1831 for gcc versions after gcc-2.8.1.
1833 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1835 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1836 for method resolution. Restore adjustment of ``this'' pointer after
1837 calling value_struct_elt, which was accidentally removed during the
1840 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1842 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1844 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1846 * value.h (value_of_register): Update.
1848 2002-03-14 Richard Henderson <rth@redhat.com>
1850 * configure.in: Detect declaration for canonicalize_file_name.
1851 * utils.c (canonicalize_file_name): Declare, if needed.
1852 (gdb_realpath): Prefer realpath if available and usable.
1853 * config.in, configure: Rebuild.
1855 2002-03-14 Richard Henderson <rth@redhat.com>
1857 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1858 a constant array bound.
1860 * MAINTAINERS: Add myself to write-after-approval.
1862 2002-03-14 Michael Snyder <msnyder@redhat.com>
1864 * symfile.c (syms_from_objfile): Return immediately if no syms.
1865 (symbol_file_add): Return immediately if no syms.
1866 (find_sym_fns): Return immediately if no syms.
1868 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1870 * gdbserver/remote-util.c (remote_open): Print remote-side's
1871 IP address when remote debugging over the network.
1873 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1875 * config/sparc/fbsd.mh: Fix copyright.
1876 * config/sparc/fbsd.mt: Likewise.
1878 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1880 * MAINTAINERS: Fix typo in name of gdb warnings option.
1881 (x86-64): Fix formating so that this can be parsed by awk.
1883 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1885 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1886 * defs.h: Include "gdb/signals.h".
1887 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1889 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1891 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1892 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1895 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1896 Don Howard <dhoward@redhat.com>
1898 * mips-tdep.c (ST0_FR): Define.
1899 (mips2_fp_compat): New function, temporarily disabled.
1900 (mips_read_fp_register_single): New function.
1901 (mips_read_fp_register_double): New function.
1902 (mips_print_register): Use them.
1903 (do_fp_register_row): Likewise.
1905 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1907 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1910 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1912 * stabsread.c (read_member_functions): Fix is_stub test for
1913 static member functions, improve comment.
1915 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1917 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1918 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1919 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1920 commands that set boolean values.
1921 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1922 (arm_rdi_resume): Always initialize PC.
1923 (arm_rdi_open): Don't use rslt as a boolean.
1924 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1925 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1926 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1927 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1929 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1931 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1932 * configure: Rebuilt.
1934 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1936 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1937 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1939 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1941 * cli/cli-decode.c (set_cmd_completer): New function.
1942 * command.h (set_cmd_completer): Declare.
1943 * cli/cli-decode.h (set_cmd_completer): Ditto.
1945 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1946 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1947 * win32-nat.c (_initialize_inftarg): Ditto.
1948 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1949 * proc-api.c (_initialize_proc_api): Ditto.
1950 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1951 * source.c (_initialize_source): Ditto.
1952 * exec.c (_initialize_exec): Ditto.
1953 * solib.c (_initialize_solib): Ditto.
1954 * top.c (init_main): Ditto.
1955 * tracepoint.c (_initialize_tracepoint): Ditto.
1956 * symfile.c (_initialize_symfile): Ditto.
1957 * printcmd.c (_initialize_printcmd): Ditto.
1958 * infcmd.c (_initialize_infcmd): Ditto.
1959 * corefile.c (_initialize_core): Ditto.
1961 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1963 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1965 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1967 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1969 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1971 * NEWS: Update headings, 5.2 has branched.
1973 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1975 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1976 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1977 (register_addr, REGISTER_RAW_SIZE): Likewise.
1978 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1979 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1981 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1983 * MAINTAINERS (x86-64): Add myself.
1984 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1985 changed value_ptr -> struct value *
1987 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1989 * configure.host (sparc64-*-freebsd): Add.
1990 * configure.tgt: Likewise.
1991 * config/sparc/fbsd.mh: New file.
1992 * config/sparc/fbsd.mt: Likewise.
1993 * config/sparc/nm-fbsd.h: Likewise.
1994 * config/sparc/tm-fbsd.h: Likewise.
1996 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1998 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1999 regformats/reg-s390x.dat.
2001 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2003 * utils.c: Add FIXME explaining true/false problem.
2005 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2007 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2009 2002-02-28 Michael Chastain <mec@shout.net>
2011 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2013 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2015 * gdbserver/linux-s390-low.c: New file.
2016 * regformats/reg-s390.dat: New file.
2017 * regformats/reg-s390x.dat: New file.
2018 * gdbserver/configure.srv: Add S/390.
2019 * gdbserver/Makefile.in: Add S/390.
2020 * configure.tgt: Enable gdbserver for S/390.
2022 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2024 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2025 first line of the doc string for "info dos", except at the end of
2026 the sentence, since the short help stops at the first period.
2028 2002-02-28 Jason Merrill <jason@redhat.com>
2030 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2032 2002-02-27 Fred Fish <fnf@redhat.com>
2034 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2035 comment (dumy -> dummy).
2037 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2039 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2041 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2043 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2045 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2047 * gdbserver/acconfig.h: New file.
2048 * gdbserver/i387-fp.c: New file.
2049 * gdbserver/i387-fp.h: New file.
2050 * gdbserver/linux-x86-64.c: New file.
2051 * regformats/reg-x86-64.dat: New file.
2052 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2053 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2054 * gdbserver/configure.in: Add support for regsets.
2055 * gdbserver/config.in: Regenerate.
2056 * gdbserver/configure: Regenerate.
2057 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2058 * gdbserver/linux-low.h: New file.
2059 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2061 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2062 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2063 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2064 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2065 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2066 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2067 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2068 "i387-fp.h". Add PTRACE_GETREGS and friends.
2069 * gdbserver/regcache.c (supply_register): New function.
2070 (supply_register_by_name): New function.
2071 (collect_register): New function.
2072 (collect_register_by_name): New function.
2074 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2076 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2077 (config.status): Add configure.srv dependency.
2078 (server_h): Add config.h dependency.
2080 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2082 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2083 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2084 * gdbserver/configure.srv: Change i386-*-linux* to use
2087 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2089 * x86-64-tdep.c: Re-indent. Update copyright date.
2091 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2093 From Michal Ludvig <mludvig@suse.cz>:
2094 * x86-64-tdep.c (value.h): Delete.
2095 (gdb_assert.h): Include.
2096 (x86_64_register_convert_to_virtual,
2097 x86_64_register_convert_to_raw ): Add check which lets only
2098 floating-point values to be converted.
2099 (value_push): Delete.
2100 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2101 (i386_gdbarch_init): Number of register_bytes fixed.
2103 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2105 * MAINTAINERS: Add x86-64 target.
2107 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2109 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2110 * osfsolib.c (solib_map_sections): Ditto.
2111 * irix5-nat.c (solib_map_sections): Ditto.
2112 * corelow.c (gdb_check_format): Ditto.
2113 * symfile.c (symfile_bfd_open): Ditto.
2114 * solib.c (solib_map_sections): Ditto.
2117 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2119 * remote.c (_initialize_remote): By default, disable ``e'' and
2120 ``E'' step out-of-range packets.
2122 2002-02-26 Andreas Schwab <schwab@suse.de>
2124 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2125 m68k_linux_frame_saved_pc.
2126 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2128 (SIGCONTEXT_PC_OFFSET): Remove.
2129 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2130 m68k_linux_sigtramp_saved_pc): New functions.
2131 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2132 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2133 (UCONTEXT_PC_OFFSET): Define.
2134 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2135 non-RT and RT signal trampolines.
2137 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2139 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2140 (TARGET_NBPG, STACK_END_ADDR): Delete
2141 (VARIABLES_INSIDE_BLOCK): Delete.
2143 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2145 * utils.c (perror_with_name): Make string parameter constant.
2146 (print_sys_errmsg): Ditto.
2148 * defs.h (perror_with_name): Update.
2149 (print_sys_errmsg): Update.
2152 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2154 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2155 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2157 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2159 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2160 if it already matches the current architecture from the exec file.
2161 Include arch-utils.h for gdbarch_info_init prototype.
2162 * Makefile.in (rs6000-nat.o): Update dependencies.
2164 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2166 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2167 list of exported variables.
2169 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2171 * gdbserver/configure.srv: New file.
2172 * gdbserver/configure.in: Use configure.srv instead
2173 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2175 * gdbserver/configure: Regenerated.
2176 * gdbserver/terminal.h: New file.
2177 * gdbserver/Makefile.in: Update for configure changes. Remove
2178 more unneeded include paths.
2180 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2182 From wiz at danbala:
2183 * config/sparc/tm-sp64.h: Fix grammar and typos.
2186 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2188 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2189 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2190 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2191 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2192 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2193 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2194 * s390-tdep.c: Ditto.
2195 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2196 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2197 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2198 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2199 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2200 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2201 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2202 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2203 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2204 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2207 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2209 * lin-thread.c: Delete file.
2210 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2211 to gdb_proc_service.h.
2212 * configure: Re-generate.
2214 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2215 * serial.c (serial_open): Delete check for "ocd".
2218 * Makefile.in (linux-thread.o): Delete target.
2219 * linux-thread.c: Delete file.
2221 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2222 renamed SH files to be consistent.
2224 * symtab.c (sort_search_symbols): Use xfree.
2226 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2228 * arm-linux-tdep.c (arm_linux_init_abi): Register
2229 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2230 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2231 definition with undef, since we don't want the sysvr4 definition.
2232 (SKIP_TRAMPOLINE_CODE): Likewise.
2234 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2236 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2238 * configure.in: (AC_CHECK_FUNCS) Added test for
2239 canonicalize_file_name Regenerated.
2240 * config.in, configure: Regenerated.
2241 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2242 defined use canonicalize_file_name.
2244 2002-02-23 Michael Chastain <mec@shout.net>
2246 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2248 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2250 * README: Remove references to cygnus.com.
2251 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2252 dot com'' form. Remove references to cygnus.com and sourceware.
2254 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2256 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2257 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2258 1003.1-2001 no longer allows "head -1".
2259 * gdb/Makefile.in (version.c): Likewise.
2260 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2261 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2262 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2264 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2266 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2267 * command.h (cmd_cfunc_eq): Declare.
2268 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2270 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2271 ``struct cmd_list_element *''.
2272 * cli/cli-cmds.c (is_complete_command): Update. Use
2274 * top.c (execute_command): Pass the command to
2275 is_complete_command.
2276 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2278 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2280 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2281 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2282 architecture defines.
2283 * s390-tdep.c (s390_gdbarch_init): Likewise.
2285 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2287 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2288 (arm_linux_push_arguments): Likewise.
2289 (arm_linux_init_abi): Register them. Also register linux-specific
2291 (find_minsym_and_objfile): Use strcmp, not STREQ.
2292 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2293 (arm_linux_call_dummy_words): Delete declaration.
2294 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2295 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2297 (LOWEST_PC): Delete.
2299 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2301 * maint.c (print_section_info): Do not prepend `0x' to filepos
2302 output, it will be handled by local_hex_string_custom.
2304 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2306 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2307 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2308 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2310 2002-02-22 Jim Blandy <jimb@redhat.com>
2312 Indicate that the bcache functions don't change the strings
2314 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2315 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2317 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2319 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2321 2002-02-21 Christopher Faylor <cgf@redhat.com>
2323 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2324 find the complete path to a loaded DLL.
2326 2002-02-21 Fred Fish <fnf@redhat.com>
2328 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2329 that marks the end of the range of a function, enter a line number
2330 entry that has a line number of zero and a PC offset that matches
2331 the end of the function. This starts a range of PC's for which no
2332 line number information is known.
2333 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2334 PC's for which no line number info is found (line number is zero)
2335 then we didn't find any valid line information.
2336 * symtab.h: Document use of zero line number entry.
2338 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2340 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2341 (have_ptrace_getvrregs): Define for run time checks.
2342 (gdb_vrregset_t): New type for Altivec register handling.
2343 (fetch_register, store_register): Fetch/store altivec register
2345 (fetch_altivec_register, store_altivec_register): New functions.
2346 (supply_vrregset, fill_vrregset): New functions.
2347 (fetch_altivec_registers, store_altivec_registers): New functions.
2348 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2351 2002-02-21 Jiri Smid <smid@suse.cz>
2353 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2355 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2357 * Makefile.in (armnbsd-nat.o): Update dependencies.
2358 * armnbsd-nat.c (supply_gregset): New function. Common code to
2359 supply the integer register set.
2360 (supply_fparegset): New function. Similar for FPA registers.
2361 (fetch_regs, fetch_fp_regs): Use them.
2362 (fetch_core_registers): Likewise.
2363 (fetch_elfcore_registers): New function.
2364 (arm_netbsd_elfcore_fns): New core-file type specification.
2365 (_initialize_arm_netbsd_nat): Register it.
2367 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2369 * armnbsd-nat.c: Include gdbcore.h.
2370 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2371 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2372 'void' to declaration, to shut up ARI.
2373 (fetch_core_registers): Make static. Rewrite using supply_register.
2374 (arm_netbsd_core_fns): New core-file type specification.
2375 (_initialize_arm_netbsd_nat): New function.
2377 2002-02-21 Christopher Faylor <cgf@redhat.com>
2379 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2382 2002-02-20 Christopher Faylor <cgf@redhat.com>
2384 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2387 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2389 * jv-exp.y (parse_number): Change type of implicit longs
2390 to builtin_type_uint64.
2392 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2394 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2395 to be an integer instead of a `union wait'.
2397 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2399 * mips-linux-nat.c: Call the operating system GNU/Linux.
2400 * mips-linux-tdep.c: Likewise.
2401 * mips-tdep.c: Likewise.
2403 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2406 * jv-exp.y (parse_number): Handle 64-bit integers.
2408 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2410 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2411 AC_STDC_HEADERS to AC_HEADER_STDC.
2412 * gdbserver/configure: Regenerated.
2414 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2416 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2418 * sparc-tdep.c (get_longjmp_target): Likewise.
2420 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2422 * News: Add news about ARM and Multi-arch. Mention the new target
2425 2002-02-19 Jim Blandy <jimb@redhat.com>
2427 * stabsread.c (error_type_complaint): Improve error message.
2429 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2431 * gdbserver/README: Update documentation.
2432 * gdbserver/configure.in: Update configury to match documentation.
2433 * gdbserver/Makefile.in: Likewise.
2434 * gdbserver/configure: Regenerated.
2435 * gdbserver/aclocal.m4: New file, generated by aclocal.
2436 * gdbserver/config.in: New file, generated by autoheader.
2438 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2440 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2443 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2445 * arm-tdep.h (enum arm_float_model): New enum.
2446 (struct gdbarch_tdep): Add fp_model.
2447 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2448 up floating-point conversions until we know the floating-point model
2449 in use by the inferior. Don't complain about being unable to
2450 determine the ABI of the inferior when we don't have one.
2451 (arm_extract_return_value): Support different floating-point models.
2452 (arm_store_return_value): Likewise.
2453 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2455 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2457 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2459 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2460 of ``current_gdbarch''.
2462 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2464 * armnbsd-nat.c : ANSIfy all function declarations.
2465 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2466 (fetch_inferior_registers): Re-implement in terms of above.
2467 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2468 (store_inferior_registers): Re-implement in terms of above.
2470 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2472 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2474 * arm-linux-tdep.c: Likewise.
2475 * config/arm/tm-linux.h: Likewise.
2477 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2479 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2480 * config/arm/nbsd.mt (TM_FILE): Delete.
2481 * config/arm/tm-nbsd.h: Delete.
2483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2485 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2486 Initialize CALL_DUMMY_LENGTH.
2488 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2490 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2492 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2493 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2494 defines one thing and that is incorrect for this port.
2495 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2497 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2499 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2501 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2503 * win32-nat.c (display_selector): New function. Displays information
2504 about the information returned by GetThreadSelectorEntry API function.
2505 (display_selectors): New function. Displays the infomation of
2506 the selector given as argument, or of CS, DS ans FS selectors
2507 if no argument is given.
2508 ( _initialize_inftarg): Add "w32" as info prefix command.
2509 Add "info w32 selector" as command calling display_selectors.
2511 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2513 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2514 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2517 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2519 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2521 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2523 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2524 (arm_fix_call_dummy): Call it.
2525 (arm_call_dummy_breakpoint_offset): Delete.
2526 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2527 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2529 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2531 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2532 Default to func_frame_chain_valid.
2533 * gdbarch.h, gdbarch.c: Re-generate.
2534 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2536 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2538 * ppc-linux-nat.c: Update copyright.
2539 (fetch_register, store_register): Add tid parameter, don't compute
2541 (fetch_ppc_registers, store_ppc_registers): Add tid
2542 parameter. Pass it along to callees.
2543 (fetch_inferior_registers, store_inferior_registers): Compute tid
2544 here, and pass it to calleed functions.
2545 (fill_gregset, supply_fpregset): Clean up formatting.
2547 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2549 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2550 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2552 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2554 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2555 * gdbarch.c gdbarch.h: Regenerate.
2556 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2558 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2559 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2560 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2562 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2563 * arm-tdep.c (arm_get_longjmp_target): New function.
2564 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2565 this to a positive value register arm_get_longjmp_target as the
2567 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2568 (arm_linux_init_abi): Set up longjmp description in tdep.
2569 * armnbsd-nat.c (get_longjmp_target): Delete.
2570 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2571 description in tdep.
2572 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2573 (get_longjmp_target): Delete declaration.
2574 (GET_LONGJMP_TARGET): Delete.
2575 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2576 (GET_LONGJMP_TARGET): Delete.
2578 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2580 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2581 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2582 of ``current_gdbarch''.
2584 2002-02-17 Tom Tromey <tromey@redhat.com>
2586 * cli/cli-cmds.c (compare_strings): New function.
2587 (complete_command): Only print each unique item once.
2588 * completer.h (complete_line): Declare.
2589 * completer.c (complete_line): New function.
2590 (line_completion_function): Use it.
2592 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2594 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2595 * gdbarch.h, gdbarch.c: Re-generate.
2597 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2599 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2601 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2603 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2604 * valops.c (value_arg_coerce): Don't take the address of a reference
2605 to convert an argument to a reference.
2607 2002-02-15 Christopher Faylor <cgf@redhat.com>
2609 * win32-nat.c (get_image_name): New function.
2610 (handle_load_dll): Use get_image_name function.
2611 (get_child_debug_event): Avoid registering debug events until possibly
2612 execed process is started.
2613 (child_create_inferior): Allow invocation via shell so that command
2614 line redirection, etc. works ok.
2615 (_initialize_inftarg): Add new command: "set shell" to control whether
2616 a shell is used to start a process.
2618 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2620 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2621 instead of find_register_by_number.
2622 (cannot_store_register): Likewise.
2624 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2626 * dwarf2read.c: Replace fprintf (stderr, ...) by
2627 fprintf_unfiltered (gdb_stderr, ...).
2629 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2631 * gdbserver/gdbserver.1: Document --attach.
2633 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2635 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2637 * arm-tdep.c (arm_default_arm_le_breakpoint)
2638 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2639 (arm_default_thumb_be_breakpoint): New. Initialize them from
2640 traditional breakpoint defines.
2641 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2642 (arm_gdbarch_init): Initialize new breakpoint variables.
2643 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2644 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2645 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2646 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2648 (arm_netbsd_init_abi_common): ... here; new function.
2649 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2650 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2651 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2652 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2654 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2656 * arm-tdep.h (enum arm_abi): New enum.
2657 (struct gdbarch_tdep): New structure.
2658 (LOWEST_PC): Provide a default.
2659 (arm_gdbarch_register_os_abi): Declare new function.
2660 * arm-tdep.c (arm_abi_names): New array.
2661 (process_note_abi_tag_sections): New function.
2662 (get_elfosabi): New function.
2663 (arm_gdbarch_register_os_abi): New function.
2664 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2665 support for that ABI has been built in, then call the appropriate
2666 configuration routine. Use gdbarch_num_regs() to get the number
2668 (arm_dump_tdep): New function.
2669 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2670 place-holder functions.
2671 (_initialize_arm_tdep): Register them.
2672 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2674 * armnbsd-tdep.c: New file.
2675 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2676 * config/arm/nbsd.mt (TDEPFILES): Add it.
2677 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2679 * armnbsd-nat.c: Include regcache.h.
2680 * Makefile.in (armnbsd-nat.o): Update dependency list.
2682 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2684 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2686 * gdbserver/Makefile.in: Fix typos in target rules.
2688 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2690 Fix part of PR gdb/267.
2691 * linespec.c (find_methods): Handle constructors specially for now.
2693 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2695 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2697 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2698 standard_coerce_float_to_double().
2700 2002-02-14 Christopher Faylor <cgf@redhat.com>
2702 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2705 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2707 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2708 find_variant_by_name, because it confuses the multiarch
2709 framework. Return NULL if there isn't an architecture with the
2710 user supplied name, instead of forcing a different one without
2711 recording the change with the multiarch machinery.
2712 (find_variant_by_name): Delete.
2714 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2716 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2717 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2719 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2721 * stack.c (print_frame_info_base): When calling
2722 print_frame_info_listing_hook, set current_source_symtab.
2724 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2726 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2727 and remove unused $(INCLUDE_DIR).
2728 Add regcache.c to OBS.
2729 Add generated register protocol files to clean target.
2730 Update dependencies for new objects, obsolete old target code.
2732 * gdbserver/linux-low.c: Remove all platform-specific code to
2733 new files. Remove various dead code. Update to use regcache
2735 * gdbserver/remote-utils.c (fromhex): Add return statement
2737 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2739 (input_interrupt): Add integer parameter to match prototype
2740 of a signal handler.
2741 (outreg): Use register_data ().
2742 (prepare_resume_reply): Use gdbserver_expedite_regs.
2743 * gdbserver/server.c (main): Dynamically allocate own_buf because
2744 PBUFSIZ is no longer constant. Use registers_to_string () and
2745 registers_from_string ().
2746 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2747 for error (), fatal (), and warning (). Update definition of
2748 PBUFSIZ to use regcache functionality. Add include guard.
2749 * gdbserver/utils.c (fatal): Add missing ``const''.
2750 (warning): New function.
2752 * regformats/regdat.sh: Include "regcache.h" in generated files.
2753 Provide init_registers () function.
2754 * regformats/regdef.h: Add prototype for set_register_cache ().
2757 * gdbserver/linux-arm-low.c: New file.
2758 * gdbserver/linux-i386-low.c: New file.
2759 * gdbserver/linux-ia64-low.c: New file.
2760 * gdbserver/linux-m68k-low.c: New file.
2761 * gdbserver/linux-mips-low.c: New file.
2762 * gdbserver/linux-ppc-low.c: New file.
2763 * gdbserver/linux-sh-low.c: New file.
2765 * gdbserver/regcache.c: New file.
2766 * gdbserver/regcache.h: New file.
2768 * gdbserver/low-linux.c: Removed obsolete file.
2770 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2772 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2773 * config/i386/linux.mt: Likewise.
2774 * config/ia64/linux.mt: Likewise.
2775 * config/m68k/linux.mh: Likewise.
2776 * config/powerpc/linux.mh: Likewise.
2777 * config/mips/linux.mt: Likewise.
2779 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2781 * config/i386/i386lynx.mh: Mark gdbserver variables
2782 as (currently) obsolete for this target.
2783 * config/i386/nbsd.mt: Likewise.
2784 * config/i386/nbsdelf.mt: Likewise.
2785 * config/m32r/m32r.mt: Likewise.
2786 * config/m68k/m68klynx.mh: Likewise.
2787 * config/m68k/nbsd.mt: Likewise.
2788 * config/m68k/sun3os4.mh: Likewise.
2789 * config/mips/vr5000.mt: Likewise.
2790 * config/ns32k/nbsd.mt: Likewise.
2791 * config/pa/hppabsd.mh: Likewise.
2792 * config/pa/hppaosf.mh: Likewise.
2793 * config/powerpc/nbsd.mt: Likewise.
2794 * config/rs6000/rs6000lynx.mh: Likewise.
2795 * config/s390/s390.mt: Likewise.
2796 * config/s390/s390x.mt: Likewise.
2797 * config/sparc/sparclynx.mh: Likewise.
2798 * config/sparc/sun4os4.mh: Likewise.
2799 * config/i386/x86-64linux.mt: Likewise.
2800 * config/sparc/linux.mh: Likewise.
2802 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2804 * configure.tgt: Configure gdbserver only for known working
2805 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2806 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2807 SUBDIRS if it is configured. Update comment for ${nativefile}.
2808 * configure: Regenerated.
2810 2002-02-13 Michael Snyder <msnyder@redhat.com>
2812 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2814 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2815 (default_gcore_mach): Just return 0, work around a problem in bfd.
2816 (default_gcore_target): OK to return NULL if exec_bfd is null.
2817 (make_mem_sec): Use a cast, avoid a warning.
2819 * procfs.c (find_memory_regions_callback): Use a cast instead of
2820 calling host_pointer_to_address (which complains if
2821 sizeof (host pointer) != sizeof (target pointer)).
2822 (procfs_make_note_section): Avoid overflow in psargs string.
2824 * procfs.c (procfs_make_note_section): Make the default
2825 implementation return an error.
2827 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2829 * procfs.c (procfs_make_note_section): Provide a default definition
2830 (for alpha-dec-osf4.0f). Fix typos.
2832 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2834 * linux-proc.c: Add include of regcache.h.
2835 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2837 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2839 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2840 * memattr.c (create_mem_region): Disallow useless empty region.
2841 Regions are half-open intervals, so allow [A..B) [B..C) as
2844 2002-02-13 Michael Chastain <mec@shout.net>
2846 * defs.h: Kill CONST_PTR.
2847 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2848 * c-lang.c (c_builtin_types): Likewise.
2849 * ch-lang.c (ch_builtin_types): Likewise.
2850 * f-lang.c (f_builtin_types): Likewise.
2851 * language.c (unknown_builtin_types): Likewise.
2852 * m2-lang.c (m2_builtin_types): Likewise.
2853 * p-lang.c (pascal_builtin_types): Likewise.
2854 * scm-lang.c (c_builtin_types): Likewise.
2856 2002-02-13 Keith Seitz <keiths@redhat.com>
2858 * arm-tdep.h (arm_get_next_pc): Add declaration.
2860 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2862 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2863 with other related struct-returning functions.
2864 (arm_extract_struct_value_address): New function.
2865 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2866 initialize float_format, double_format and long_double_format as
2867 appropriate to the endianness of the target.
2868 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2869 (arm_use_struct_convention): Delete declaration.
2870 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2872 2002-02-13 Keith Seitz <keiths@redhat.com>
2874 * defs.h (core_addr_to_string_nz): New function.
2876 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2878 Apply missing bits of 2002-01-15 patch.
2879 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2880 (fill_fpregset): Use i387_fill_fsave.
2882 2002-02-12 Keith Seitz <keiths@redhat.com>
2884 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2885 (core_addr_to_string_nz): New function.
2887 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2889 * arm-linux-nat.c: Really include arm-tdep.h.
2890 * config/arm/tm-linux.h (struct type, struct value): Declare.
2892 2002-02-11 Michael Snyder <msnyder@redhat.com>
2894 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2895 (gcore section): Ifdef for Solaris and Unixware only.
2896 (procfs_do_thread_registers): Unixware needs one lwpstatus
2897 per thread (not one prstatus or pstatus).
2898 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2899 not over all gdb threads. For unixware, call elfcore_write_pstatus
2900 once before iterating over threads.
2902 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2904 * arm-tdep.h: New file.
2905 * arm-tdep.c: Include arm-tdep.h.
2906 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2907 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2908 (arm_print_float_info, arm_register_type, convert_to_extended)
2909 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2910 (arm_extract_return_value, arm_register_name): Make static.
2911 (arm_software_single_step): Similarly. Fix types in declaration.
2912 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2913 (arm_store_return_value, arm_store_struct_return): New functions.
2914 (arm_gdbarch_init): Register the above functions. Also register
2915 call_dummy_start_offset, sizeof_call_dummy_words,
2916 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2917 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2918 max_register_virtual_size, register_size. Set up
2919 prologue_cache.saved_regs here, rather than ...
2920 (_initialize_arm_tdep): ... here.
2921 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2923 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2924 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2925 (arm_print_float_info, arm_register_type, convert_to_extended)
2926 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2927 (arm_extract_return_value, arm_register_name): Delete declarations.
2928 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2929 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2930 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2931 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2932 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2933 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2934 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2935 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2936 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2937 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2938 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2939 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2941 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2942 * remote-rdi.c remote-rdp.c: Likewise.
2943 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2944 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2945 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2948 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2949 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2950 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2951 from non-ARM_ prefixed definitions.
2952 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2954 * remote-rdi.c remote-rdp.c: Likewise.
2955 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2957 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2959 * arm-tdep.c (arm_frameless_function_invocation)
2960 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2961 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2962 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2963 (arm_pop_frame, arm_get_next_pc): Make static.
2964 (arm_gdbarch_init): Register above in gdbarch structure.
2965 (arm_read_fp): Renamed from arm_target_read_fp.
2966 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2967 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2968 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2969 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2970 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2971 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2972 (arm_pc_is_thumb_dummy): Delete declarations.
2973 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2974 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2975 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2976 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2978 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2980 * symtab.c (compare_search_syms): New function.
2981 (sort_search_symbols): New function.
2982 (search_symbols): Sort symbols after searching rather than
2985 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2987 * NEWS: Linux -> GNU/Linux.
2989 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2991 * gdbarch.sh: For for level one methods, disallow a definition
2992 when partially multi-arched. Add comments explaining rationale.
2993 * gdbarch.h: Re-generate.
2995 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2997 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3000 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3002 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3004 * gdbarch.c: Re-generate.
3006 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3008 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3009 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3012 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3014 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3016 (PUSH_ARGUMENTS): Switch to using predefault.
3017 * gdbarch.c: Regenerate.
3019 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3021 * valops.c (PUSH_ARGUMENTS): Delete definition.
3022 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3023 partial. Default to default_push_arguments.
3024 * gdbarch.h, gdbarch.c: Regenerate.
3026 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3028 * defs.h (throw_exception): Rename return_to_top_level. Update
3030 * utils.c (error_stream, internal_verror, quit): Ditto.
3031 * top.c (throw_exception, catcher): Ditto.
3032 * sparclet-rom.c (sparclet_load): Ditto.
3033 * remote.c (interrupt_query, minitelnet): Ditto.
3034 * remote-sds.c (interrupt_query): Ditto.
3035 * remote-mips.c (mips_error, mips_kill): Ditto.
3036 * ocd.c (interrupt_query): Ditto.
3037 * monitor.c (monitor_interrupt_query): Ditto.
3038 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3039 * target.h: Update comment.
3041 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3043 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3045 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3046 default_double_format.
3047 * gdbarch.h, gdbarch.c: Re-generate.
3048 * findvar.c (floatformat_unknown): Delete variable definition.
3049 * doublest.h (floatformat_unknown): Delete variable declaration.
3051 2002-02-09 Jim Blandy <jimb@redhat.com>
3053 * stabsread.c (read_type): Add code to parse Sun's syntax for
3054 prototyped function types.
3056 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3058 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3059 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3061 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3063 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3064 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3065 now _initialize_xcoffsolib gets called again and overrides the
3066 commands from solib.c in a native configuration.
3068 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3070 * doublest.c (store_typed_floating): Don't try to return a value.
3073 2002-02-08 Jim Blandy <jimb@redhat.com>
3075 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3076 is prototyped and has no arguments, print its argument list as
3079 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3081 * MAINTAINERS (write-after-approval): Add myself.
3082 (paper-trail): I've escaped!
3084 2002-02-08 Christopher Faylor <cgf@redhat.com>
3086 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3088 (_initialize_check_for_gdb_ini): Ditto.
3090 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3092 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3093 xaprintf -> xasprintf.
3095 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3097 * win32-nat.c: Remove use of printf and sprintf functions.
3099 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3101 * arm-tdep.c (arm_frame_chain_valid): Make static.
3102 (arm_push_arguments): Likewise.
3103 (arm_gdbarch_init): New function.
3104 (_initialize_arm_tdep): Call it.
3105 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3106 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3107 (FRAME_CHAIN_VALID): Delete.
3108 (arm_frame_chain_valid): Delete declaration.
3109 (PUSH_ARGUMENTS): Delete.
3110 (arm_push_arguments): Delete declaration.
3111 (CALL_DUMMY_P): Delete.
3113 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3114 Corinna Vinschen <vinschen@redhat.com>
3116 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3117 on builtin float types.
3119 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3121 * utils.c: Include <curses.h> before "bfd.h".
3122 * tui/tui-hooks.c: Likewise.
3123 * tui/tui.c: Likewise.
3124 * tui/tuiCommand.c: Likewise.
3125 * tui/tuiData.c: Likewise.
3126 * tui/tuiDataWin.c: Likewise.
3127 * tui/tuiDisassem.c: Likewise.
3128 * tui/tuiGeneralWin.c: Likewise.
3129 * tui/tuiIO.c: Likewise.
3130 * tui/tuiLayout.c: Likewise.
3131 * tui/tuiRegs.c: Likewise.
3132 * tui/tuiSource.c: Likewise.
3133 * tui/tuiSourceWin.c: Likewise.
3134 * tui/tuiStack.c: Likewise.
3135 * tui/tuiWin.c: Likewise.
3137 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3139 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3140 to include space for pseudoregs as well. Update loops accordingly.
3141 (sh_fp_frame_init_saved_regs): Ditto.
3142 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3144 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3146 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3147 Add Richard Earnshaw to Arm maintainers.
3149 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3151 * defs.h (warning_begin): Delete declaration.
3153 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3156 2002-02-07 Michael Snyder <msnyder@redhat.com>
3158 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3159 Logic bug, remove misplaced else.
3161 2002-02-07 Klee Dienes <klee@apple.com>
3163 * fork-inferior.c (fork_inferior): Add '!' to the list of
3164 characters that need to be quoted when building a string for the
3165 shell. Quote '!' specifically with a backslash, since CSH chokes
3166 when trying to evaluate "str!str".
3168 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3170 * rdi-share/host.h: Only provide a typedef for bool if it is not
3173 2002-02-04 Michael Snyder <msnyder@redhat.com>
3175 * breakpoint.h (enum bptype): Add new overlay event bp type.
3176 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3178 * breakpoint.c (create_internal_breakpoint): New function.
3179 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3180 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3181 (create_thread_event_breakpoint): Ditto.
3182 (create_solib_event_breakpoint): Ditto.
3183 (create_overlay_event_breakpoint): New function.
3184 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3185 (update_breakpoints_after_exec): Delete and re-initialize
3186 overlay event breakpoints after an exec. Add FIXME comment
3187 about longjmp breakpoint.
3188 (print_it_typical): Ignore overlay event breakpoints.
3189 (print_one_breakpoint): Ditto.
3191 (bpstat_what): Do not stop for overlay event breakpoints.
3192 (delete_breakpoint): Don't delete overlay event breakpoints.
3193 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3194 (breakpoint_re_set): Re-create overlay event breakpoint.
3196 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3197 (overlay_manual_command): Disable overlay breakpoints.
3198 (overlay_off_command): Disable overlay breakpoints.
3200 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3202 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3203 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3204 to here from config/tm-arm.h.
3205 (coff_sym_is_thumb): Make static.
3206 (arm_elf_make_msymbol_special): New function.
3207 (arm_coff_make_msymbol_special): New function.
3208 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3209 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3210 (coff_sym_is_thumb): Delete declaration.
3211 (arm_elf_make_msymbol_special): Declare.
3212 (arm_coff_make_msymbol_special): Declare.
3213 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3214 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3216 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3218 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3220 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3222 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3223 * gdbarch.c gdbarch.h: Regenerate.
3224 * arch-utils.c (default_print_float_info): New function.
3225 * arch-utils.h (default_print_float_info): Prototype it.
3226 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3227 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3228 (PRINT_FLOAT_INFO): Document it.
3230 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3231 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3232 (PRINT_FLOAT_INFO): Define.
3234 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3236 * win32-nat.c (_initialize_check_for_gdb_ini):
3237 Add typecast to sprintf argument to suppress a warning.
3239 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3241 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3242 to allow easier handling of pass state.
3243 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3244 that gives exception name and address.
3245 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3246 and set last_sig value to ourstatus->value.sig. Some missing
3248 (child_continue): Correctly report continue_status.
3249 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3250 TARGET_SIGNAL_0 (new default value).
3251 (child_resume): consider sig argument passed to decide if
3252 the exception should be passed to debuggee or not.
3254 2002-02-05 Michael Snyder <msnyder@redhat.com>
3256 * regcache.c (fetch_register): Call target_fetch_register
3257 only if we don't call FETCH_PSEUDO_REGISTER.
3258 (store_register): Call target_store_register only if we
3259 don't call STORE_PSEUDO_REGISTER.
3261 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3263 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3264 ELF_MAKE_MSYMBOL_SPECIAL.
3265 * gdbarch.c, gdbarch.h: Regenerate.
3266 * arch-utils.c (default_make_msymbol_special): New function.
3267 * arch-utils.h (default_make_msymbol_special): Export.
3268 * elfread.c (elf_symtab_read): Compile use of
3269 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3271 * coffread.c (coff_symtab_read): Ditto, for
3272 COFF_MAKE_MSYMBOL_SPECIAL.
3274 2002-02-05 Jim Blandy <jimb@redhat.com>
3276 * solib-svr4.c (svr4_truncate_ptr): New function.
3277 (svr4_relocate_section_addresses): Do the address arithmetic with
3278 the appropriate truncation for target addresses, even when
3279 CORE_ADDR is larger than a target address.
3281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3283 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3286 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3288 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3291 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3293 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3295 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3297 * gdbserver/linux-low.c: Remove unused include files.
3299 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3301 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3302 (read_inferior_memory): Use it.
3303 (write_inferior_memory): Likewise.
3305 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3307 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3308 grubbing through sys_errlist.
3310 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3312 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3314 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3315 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3317 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3319 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3320 (do_sfunc, set_cmd_sfunc): New functions.
3322 * command.h (struct cmd_list_element): Add field func.
3323 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3324 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3325 * cli/cli-decode.h: Ditto.
3327 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3328 (help_all, help_cmd_list): Ditto.
3329 (find_cmd, complete_on_cmdlist): Ditto.
3330 * top.c (execute_command): Ditto.
3332 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3335 * infcmd.c (notice_args_read): Fix function signature.
3337 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3338 * cli/cli-decode.c (add_set_cmd): Ditto.
3339 * utils.c (initialize_utils): Ditto.
3340 * maint.c (_initialize_maint_cmds): Ditto.
3341 * infrun.c (_initialize_infrun): Ditto.
3342 * demangle.c (_initialize_demangler): Ditto.
3343 * remote.c (add_packet_config_cmd): Ditto.
3344 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3345 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3346 * proc-api.c (_initialize_proc_api): Ditto.
3347 * kod.c (_initialize_kod): Ditto.
3348 * valprint.c (_initialize_valprint): Ditto.
3349 * top.c (init_main): Ditto.
3350 * infcmd.c (_initialize_infcmd): Ditto.
3351 * corefile.c (_initialize_core): Ditto.
3352 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3353 * arch-utils.c (initialize_current_architecture): Ditto.
3354 (_initialize_gdbarch_utils): Ditto.
3355 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3357 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3358 * wince.c (_initialize_inftarg): Ditto.
3359 * symfile.c (_initialize_symfile): Ditto.
3360 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3361 * language.c (_initialize_language): Ditto.
3362 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3364 2002-02-04 Michael Snyder <msnyder@redhat.com>
3366 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3368 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3370 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3371 Add rules for building the register data files.
3373 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3375 * regformats/regdat.sh: Add braces to the definition of
3376 expedite_regs_${arch}.
3378 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3380 * regformats/regdef.h (struct reg): Add comment describing the
3381 requirements for offset and size fields.
3383 2002-02-04 Andreas Schwab <schwab@suse.de>
3385 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3386 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3388 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3390 * gdbarch.sh (copyright): Update years in generated header.
3391 (SMASH_TEXT_ADDRESS): Add rule.
3392 * gdbarch.h, gdbarch.c: Re-generate.
3393 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3394 * dbxread.c: Likewise.
3395 * dwarfread.c: Likewise.
3396 * elfread.c: Likewise.
3397 * somread.c: Likewise.
3399 * arm-tdep.c (arm_smash_text_address): New function.
3400 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3402 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3404 Add support for hardware watchpoints on win32 native.
3405 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3406 CONTEXT_DEBUG_REGISTERS.
3407 (dr variable): New variable. Static array containing a local copy
3409 (debug_registers_changed): New variable. Reflects when debug registers
3410 are changed and need to be written to inferior.
3411 (debug_registers_used): New variable. Reflects when any debug register
3412 was set, used when new threads are created.
3413 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3415 (thread_rec): Set dr array if id is the thread of current_event .
3416 (child_continue, child_resume): Change the debug registers for all
3417 threads if debug_registers_changed.
3418 (child_add_thread): Change the debug registers if debug_registers_used.
3419 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3420 Link nm.h to new nm-cygwin.h file.
3421 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3422 of hardware registers.
3424 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3426 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3427 Restore behavour broken by 2002-01-20 Andrew Cagney
3428 <ac131313@redhat.com> IEEE_FLOAT removal.
3430 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3432 * c-valprint.c (c_val_print): Pass a proper valaddr to
3433 cp_print_class_method.
3434 * valops.c (search_struct_method): If there is only one method
3435 and args is NULL, return that method.
3437 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3439 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3440 accessing tag_name directly.
3442 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3444 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3445 of accessing tag_name directly.
3447 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3450 * gdbtypes.c (replace_type): New function.
3451 * gdbtypes.h (replace_type): Add prototype.
3452 * stabsread.c (read_type): Use replace_type.
3454 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3456 * Makefile.in (memattr.o): Add missing dependencies rule.
3458 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3460 * breakpoint.c (break_at_finish_command): Really export.
3461 (break_at_finish_at_depth_command): Ditto.
3462 (tbreak_at_finish_command): Ditto.
3463 * hppa-tdep.c: Include completer.h.
3464 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3465 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3467 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3469 * utils.c (do_write): New function.
3470 (error_stream): Rewrite combining the code from error_begin and
3472 (verror): Rewrite using error_stream.
3473 (error_begin): Delete function.
3475 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3477 * utils.c (error_begin): Make static.
3478 * defs.h (error_begin): Delete declaration.
3480 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3481 (decode_line_1): Use cplusplus_error instead of error_begin,
3482 cplusplus_hint and return_to_top_level.
3483 * coffread.c (coff_symfile_read): Use error instead of error_begin
3484 and return_to_top_level.
3485 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3487 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3489 * language.h (type_error, range_error): Make string parameter
3491 * language.c (warning_pre_print): Delete extern declaration.
3492 * dwarfread.c (warning_pre_print): Ditto.
3493 * language.c (type_error, range_error): Rewrite to use verror and
3494 vwarning instead of warning_begin.
3496 2002-02-01 Michael Snyder <msnyder@redhat.com>
3498 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3499 (set_ignore_count): Move misplaced comment back where it belongs.
3501 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3503 * command.h (NO_FUNCTION): Delete macro.
3504 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3505 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3506 * tracepoint.c (_initialize_tracepoint): Ditto.
3507 * cli/cli-decode.c (add_set_cmd): Ditto.
3508 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3510 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3512 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3513 Update ``this'' pointer when calling virtual functions.
3515 2002-02-01 Michael Snyder <msnyder@redhat.com>
3517 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3518 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3520 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3522 * regformats/reg-arm.dat: New file.
3523 * regformats/reg-i386.dat: New file.
3524 * regformats/reg-ia64.dat: New file.
3525 * regformats/reg-m68k.dat: New file.
3526 * regformats/reg-mips.dat: New file.
3527 * regformats/reg-ppc.dat: New file.
3528 * regformats/reg-sh.dat: New file.
3529 * regformats/regdef.h: New file.
3530 * regformats/regdat.sh: New file.
3532 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3534 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3535 (arm_frame_args_address, arm_frame_locals_address): New functions.
3536 (arm_frame_num_args): New function.
3537 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3538 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3539 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3541 2002-01-31 Michael Snyder <msnyder@redhat.com>
3543 * breakpoint.c (break_at_finish_command): Export.
3544 (break_at_finish_at_depth_command): Export.
3545 (tbreak_at_finish_command): Export.
3546 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3547 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3548 "tbreak" commands, which are HPPA specific.
3550 * printcmd.c (disassemble_command): Remove an ancient
3551 artifact of an old merge.
3553 * symfile.h (enum overlay_debugging_state):
3554 Define enum constant values for overlay mode.
3555 * symfile.c (overlay_debugging): Use enums instead of literals.
3556 (overlay_is_mapped, overlay_auto_command,
3557 overlay_manual_command): Ditto.
3559 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3560 breakpoint_here_p, breakpoint_inserted_here_p,
3561 breakpoint_thread_match, bpstat_stop_status,
3562 describe_other_breakpoints, check_duplicates, clear_command):
3563 Coding standard fixes.
3565 * target.c (target_xfer_memory): Add spaces, coding standard.
3566 (do_xfer_memory): Add missing line to trust-readonly
3567 code: check bfd SEC_READONLY flag for section.
3569 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3571 * PROBLEMS: Fix typo, 5.1->5.1.1.
3573 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3575 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3576 data symbols, since we search based on textlow and texthigh.
3577 (find_pc_sect_symtab): Likewise.
3579 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3581 * defs.h (vwarning): Declare.
3582 * utils.c (vwarning): New function.
3583 (warning): Call vwarning.
3584 (warning_begin): Delete function.
3586 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3587 the warning message.
3588 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3591 2002-01-30 Michael Snyder <msnyder@redhat.com>
3593 * NEWS: Mention "set trust-readonly-sections" command.
3594 Mention generate-core-file command.
3596 2002-01-15 Michael Snyder <msnyder@redhat.com>
3598 * target.c: New command, "set trust-readonly-sections on".
3599 (do_xfer_memory): Honor the suggestion to trust readonly sections
3600 by reading them from the object file instead of from the target.
3601 (initialize_targets): Register command "set trust-readonly-sections".
3603 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3605 * parse.c (target_map_name_to_register): Simplify, search regs and
3606 pseudo-regs using a single loop.
3608 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3610 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3612 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3614 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3615 * config/i386/i386v42mp.mh: Add i387-nat.o .
3616 * i386v4-nat.c: Include i387-nat.h.
3617 (supply_fpregset): Use i387_supply_fsave.
3618 (fill_fpregset): Use i387_fill_fsave.
3620 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3622 * arm-tdep.c (arm_call_dummy_words): Define.
3623 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3624 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3625 (CALL_DUMMY_WORDS): Define.
3626 (arm_call_dummy_words): Declare.
3627 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3628 (arm_linux_call_dummy_words): Declare.
3630 2002-01-30 Andreas Schwab <schwab@suse.de>
3632 * m68klinux-nat.c: Fix last change to use regcache_collect
3633 instead of referencing registers[] directly.
3635 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3637 * parse.c (target_map_name_to_register): Delete code wrapped in
3638 #ifdef REGISTER_NAME_ALIAS_HOOK.
3640 2002-01-28 Michael Snyder <msnyder@redhat.com>
3642 * regcache.c (legacy_read_register_gen): Need to be able to
3643 read pseudo-register as well as real register.
3644 (legacy_write_register_gen): Ditto.
3646 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3648 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3649 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3650 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3651 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3652 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3653 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3654 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3655 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3656 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3657 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3658 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3659 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3660 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3661 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3662 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3663 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3664 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3665 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3666 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3667 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3669 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3671 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3672 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3673 (initialize_current_architecture): Update target_byte_order using
3674 information from BFD.
3675 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3676 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3678 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3680 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3681 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3683 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3684 #ifdef INVALID_FLOAT.
3685 * infcmd.c (do_registers_info): Ditto.
3686 * values.c (unpack_double): Ditto. Add comment.
3688 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3689 already commented out.
3691 2002-01-26 Andreas Schwab <schwab@suse.de>
3693 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3694 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3695 registers and add support for PTRACE_GETREGS.
3697 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3699 GDB 5.1.1 released from 5.1 branch.
3700 * NEWS: Add 5.1.1 news.
3701 * README: Sync with 5.1 branch.
3703 2002-01-23 Fred Fish <fnf@redhat.com>
3705 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3706 stabstring on initial malloc. Reallocing will copy it for us,
3709 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3711 * Makefile.in (hpread_h): Delete.
3712 (HFILES_NO_SRCDIR): Remove hpread.h.
3713 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3714 (hpread.o): Update dependencies.
3715 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3717 * hp-psymtab-read.c: Remove file.
3718 * hp-symtab-read.c: Remove file.
3719 * hpread.h: Remove file.
3721 * hpread.c: Merge all contents of hp-psymtab-read.c,
3722 hp-symtab-read.c and hpread.h into this file, as it was prior to
3725 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3726 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3727 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3728 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3730 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3732 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3733 fill_gregset): Call gdbarch_tdep() just once, assign result to
3734 variable and use that, instead of calling the function several
3737 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3739 * configure.host: Accept sparcv9 as alias for sparc64.
3740 * configure.tgt: Likewise.
3742 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3744 * solib-aix5.c (build_so_list_from_mapfile)
3745 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3746 arguments is not reversed.
3747 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3748 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3750 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3752 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3753 modified version of obsolete sh_fetch_pseudo_register.
3754 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3755 (sh4_register_read): New function.
3756 (sh_pseudo_register_write): New function. Renamed and modified
3757 version of obsolete sh_store_pseudo_register.
3758 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3759 (sh4_register_write): New function.
3760 (sh_gdbarch_init): Remove setting of gdbarch function
3761 fetch_pseudo_register and store_pseudo_register. Remove setting of
3762 register_convert_to_raw, register_convert_to_virtual,
3763 register_convertible.
3764 (sh_sh4_register_convertible): Delete. No longer needed. All is
3765 taken care by architecture specific functions
3766 register_read/register_write.
3767 (sh_sh4_register_convert_to_virtual): Make static.
3768 (sh_sh4_register_convert_to_raw): Ditto.
3770 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3772 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3773 (floatformat_is_nan, floatformat_mantissa): Ditto.
3775 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3776 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3777 builtin_type_ieee_double_little,
3778 builtin_type_ieee_double_littlebyte_bigword,
3779 builtin_type_m68881_ext, builtin_type_i960_ext,
3780 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3781 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3782 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3783 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3785 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3787 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3788 parameter. Set frameless flag if it exists and depended of
3789 whether the scanned function is frameless or not.
3790 (xstormy16_skip_prologue): If function is frameless, return
3791 result of xstormy16_scan_prologue().
3792 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3795 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3797 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3798 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3799 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3800 sh_sh4_register_byte, sh_sh4_register_raw_size,
3801 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3802 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3803 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3804 sh_store_pseudo_register, sh_do_pseudo_register): Call
3805 gdbarch_tdep() just once, assign result to variable and use that,
3806 instead of calling the function several times.
3808 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3810 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3811 macros instead of LAST_FPU_CTRL_REGNUM.
3812 (store_register): Likewise.
3814 2002-01-21 Jim Blandy <jimb@redhat.com>
3816 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3817 is up-to-date before running the program, not just when a program
3820 2002-01-21 Fred Fish <fnf@redhat.com>
3822 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3823 when we have found all instructions we are looking for.
3825 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3827 * arm-tdep.c (arm_register_name): New function.
3828 (arm_registers_names): Make static.
3829 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3830 (arm_register_name): Declare.
3831 (REGISTER_NAME): Use it.
3833 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3834 Kevin Buettner <kevinb@redhat.com>
3836 Convert arm targets to new FRAME interface.
3837 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3838 (arm_frame_find_save_regs): Delete.
3839 (arm_frame_init_saved_regs): New.
3840 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3841 Allocate extra_info as required. Convert all uses of fsr.regs
3842 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3844 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3845 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3846 (check_prologue_cache, save_prologue_cache): Likewise.
3847 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3848 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3849 (FRAME_FIND_SAVED_REGS): Delete.
3850 (arm_frame_find_saved_regs): Delete prototype.
3851 (arm_frame_init_saved_regs): New prototype.
3852 (FRAME_INIT_SAVED_REGS): Define.
3854 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3856 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3858 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3860 From Jeff Law <law@redhat.com>:
3861 * infttrace.c: Include <sys/pstat.h>.
3862 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3863 exec file if the ttrace equivalent fails.
3865 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3867 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3868 (closeLogFile): Ditto.
3870 2002-01-20 Michael Chastain <mec@shout.net>
3872 * top.c (print_gdb_version): Bump copyright year to 2002.
3874 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3876 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3877 Zannoni and Eli Zaretskii.
3879 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3881 * buildsym.c: Update copyright years.
3882 * c-typeprint.c: Likewise.
3883 * dwarf2read.c: Likewise.
3884 * f-typeprint.c: Likewise.
3885 * gdbtypes.c: Likewise.
3886 * gdbtypes.h: Likewise.
3887 * hp-symtab-read.c: Likewise.
3888 * hpread.c: Likewise.
3889 * mdebugread.c: Likewise.
3890 * p-typeprint.c: Likewise.
3892 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3894 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3895 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3896 byte-order selectable.
3897 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3898 * arch-utils.c: Ditto.
3899 (set_endian): Ditto.
3900 (set_endian_from_file): Ditto.
3901 * gdbserver/low-sim.c (create_inferior): Ditto.
3902 * gdbarch.sh: Ditto.
3903 * gdbarch.h: Re-generate.
3904 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3905 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3906 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3907 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3908 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3909 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3910 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3911 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3913 * config/mips/tm-wince.h: Remove #undef of macro
3914 TARGET_BYTE_ORDER_SELECTABLE.
3915 * config/sh/tm-wince.h: Ditto.
3917 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3919 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3920 member function fields. Add accessor macro
3921 TYPE_FN_FIELD_ARTIFICIAL.
3922 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3923 * c-typeprint.c (c_type_print_base): Skip artificial member
3926 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3928 * f-typeprint.c: Delete unused function f_type_print_args.
3929 * p-typeprint.c: Delete unused function pascal_type_print_args.
3931 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3933 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3934 comment. Add ``artificial'' to ``union field_location''.
3936 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3938 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3939 * mdebugread.c (parse_symbol): Likewise.
3940 * stabsread.c (define_symbol): Likewise.
3941 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3942 initializing TYPE_FIELD_BITPOS to n (obsolete).
3943 (hpread_doc_function_type): Likewise.
3944 * hpread.c (hpread_function_type): Likewise.
3946 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3948 * configure.in (host_makefile_frag): Only require a host makefile
3949 fragment when a native build.
3950 * configure: Re-generate.
3952 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3954 * doublest.h (floatformat_from_type): Declare.
3955 * doublest.c (floatformat_from_type): New function.
3956 (convert_typed_floating): Use.
3958 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3959 call to function floatformat_from_type.
3961 * gdbarch.sh (IEEE_FLOAT): Delete.
3962 * gdbarch.h, gdbarch.c: Re-generate.
3963 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3964 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3965 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3966 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3967 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3968 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3969 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3970 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3971 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3972 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3973 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3974 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3976 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3977 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3979 * sh-tdep.c (sh_gdbarch_init): Ditto.
3980 * mips-tdep.c (mips_gdbarch_init): Ditto.
3981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3982 * cris-tdep.c (cris_gdbarch_init): Ditto.
3984 2002-01-20 Jiri Smid <smid@suse.cz>
3986 * configure.host, configure.tgt: Support x86-64.
3987 * NEWS: Note new target x86-64.
3989 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3990 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3991 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3992 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3993 x86-64-linux-nat.o): Fix dependencies.
3995 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3997 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3998 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3999 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4000 * config/sparc/xm-sun4os4.h: Delete file.
4001 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4003 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4005 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4006 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4007 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4008 * config/i386/i386lynx.mh (XM_FILE): Delete.
4009 * config/rs6000/xm-rs6000ly.h: Delete file.
4010 * config/sparc/xm-sparclynx.h: Delete file.
4011 * config/m68k/xm-m68klynx.h: Delete file.
4012 * config/i386/xm-i386lynx.h: Delete file.
4013 * config/xm-lynx.h: Delete file.
4014 * config/djgpp/fnchange.lst: Update.
4016 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4018 * alpha-tdep.c (alpha_register_byte): New function.
4019 (alpha_register_raw_size): Ditto.
4020 (alpha_register_virtual_size): Ditto.
4021 (alpha_skip_prologue_internal): Renamed from
4022 alpha_skip_prologue.
4023 (alpha_skip_prologue): New version that calls
4024 alpha_skip_prologue_internal.
4025 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4026 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4027 second argument from alpha_skip_prologue.
4028 (REGISTER_BYTE): Use alpha_register_byte.
4029 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4030 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4031 (FRAMELESS_FUNCTION_INVOCATION): Use
4032 generic_frameless_function_invocation_not.
4033 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4034 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4036 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4038 * config/mips/xm-news-mips.h: Delete file.
4039 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4041 * config/m88k/xm-m88k.h: Delete file.
4042 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4043 * config/m88k/xm-delta88v4.h: Ditto.
4044 * config/m88k/xm-delta88.h: Ditto.
4046 * config/alpha/xm-fbsd.h: Delete file.
4047 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4049 * config/sparc/xm-sparc.h: Delete file.
4050 * Makefile.in (xm-sun4os4.h): Delete dependency.
4051 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4052 * config/sparc/xm-sun4os4.h: Ditto.
4053 * config/sparc/xm-linux.h: Ditto.
4055 * config/i386/xm-windows.h: Delete file.
4057 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4059 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4060 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4062 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4064 * alpha-tdep.c (alpha_call_dummy_words): New.
4065 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4066 (CALL_DUMMY_P): Define.
4067 (CALL_DUMMY_WORDS): Define.
4068 (SIZEOF_CALL_DUMMY_WORDS): Define.
4070 2002-01-19 Per Bothner <per@bothner.com>
4072 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4073 isn't NULL, which can happen with some gcj-3.x-produced code.
4075 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4077 * alpha-tdep.c (alpha_register_virtual_type): New function.
4078 (alpha_init_frame_pc_first): Ditto.
4079 (alpha_fix_call_dummy): Ditto.
4080 (alpha_store_struct_return): Ditto.
4081 (alpha_extract_struct_value_address): Ditto.
4082 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4083 alpha_register_virtual_type.
4084 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4085 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4086 alpha_extract_struct_value_address.
4087 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4088 (INIT_FRAME_PC): Use init_frame_pc_noop.
4089 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4091 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4093 * i386gnu-nat.c: Include "i386-tdep.h".
4094 (fetch_fpregs): Simplify code dealing with uninitialized floating
4095 point states such that it doesn't require FP7_REGNUM.
4097 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4099 * alpha-tdep.c (frame_extra_info): New.
4100 (alpha_find_saved_regs): Make static. Use
4102 (alpha_frame_init_saved_regs): New function.
4103 (alpha_frame_saved_pc): Use frame->extra_info.
4104 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4105 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4106 (init_extra_frame_info): Rename to...
4107 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4108 (alpha_print_extra_frame_info): New function.
4109 (alpha_frame_locals_address): Ditto.
4110 (alpha_frame_args_address): Ditto.
4111 (alpha_pop_frame): Use frame->extra_info.
4112 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4113 alpha_frame_args_address.
4114 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4115 (alpha_find_saved_regs): Remove prototype.
4116 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4117 (EXTRA_FRAME_INFO): Remove.
4118 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4119 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4121 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4123 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4124 (alpha_cannot_fetch_register): Ditto.
4125 (alpha_cannot_store_register): Ditto.
4126 (alpha_register_convertible): Ditto.
4127 (alpha_use_struct_convention): Ditto.
4128 * config/alpha/tm-alpha.h: Update copyright years.
4129 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4130 (INNER_THAN): Use core_addr_lessthan.
4131 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4132 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4133 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4134 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4135 (FRAME_CHAIN): Remove unnecessary cast.
4137 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4139 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4142 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4144 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4145 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4146 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4147 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4148 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4149 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4150 * x86-64-linux-nat.c: Ditto.
4152 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4154 * alpha-tdep.c (alpha_register_name): New function.
4155 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4156 (REGISTER_NAME): Define.
4158 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4160 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4162 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4164 * alpha-tdep.c: Update copyright years.
4165 (alpha_next_pc): New function.
4166 (alpha_software_single_step): Ditto.
4167 * config/alpha/tm-alpha.h: Add prototype for
4168 alpha_software_single_step.
4170 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4172 * alphabsd-nat.c: Update copyright years.
4173 (fill_gregset): Use regcache_collect.
4174 (fill_fpregset): Likewise.
4175 (fetch_inferior_registers): Only fetch integer registers
4176 if requested to do so.
4177 (store_inferior_registers): Only store integer registers
4178 if requested to do so.
4180 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4182 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4183 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4184 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4185 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4186 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4187 * config/arm/linux.mh (XDEPFILES): Delete.
4188 * config/arm/nbsd.mh (XDEPFILES): Delete.
4189 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4190 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4191 * config/i386/i386m3.mh (XDEPFILES): Delete.
4192 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4193 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4194 * config/i386/fbsd.mh (XDEPFILES): Delete.
4195 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4196 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4197 * config/i386/i386v4.mh (XDEPFILES): Delete.
4198 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4199 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4200 * config/i386/i386aix.mh (XDEPFILES): Delete.
4201 * config/i386/go32.mh (XDEPFILES): Delete.
4202 * config/i386/cygwin.mh (XDEPFILES): Delete.
4203 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4204 * config/i386/i386mach.mh (XDEPFILES): Delete.
4205 * config/i386/i386v32.mh (XDEPFILES): Delete.
4206 * config/i386/linux.mh (XDEPFILES): Delete.
4207 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4208 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4209 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4210 * config/i386/i386sco.mh (XDEPFILES): Delete.
4211 * config/i386/i386v.mh (XDEPFILES): Delete.
4212 * config/i386/nbsd.mh (XDEPFILES): Delete.
4213 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4214 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4215 * config/i386/symmetry.mh (XDEPFILES): Delete.
4216 * config/i386/obsd.mh (XDEPFILES): Delete.
4217 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4218 * config/ia64/linux.mh (XDEPFILES): Delete.
4219 * config/ia64/aix.mh (XDEPFILES): Delete.
4220 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4221 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4222 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4223 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4224 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4225 * config/m68k/linux.mh (XDEPFILES): Delete.
4226 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4227 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4228 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4229 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4230 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4231 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4232 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4233 * config/m88k/delta88.mh (XDEPFILES): Delete.
4234 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4235 * config/m88k/m88k.mh (XDEPFILES): Delete.
4236 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4237 * config/mips/linux.mh (XDEPFILES): Delete.
4238 * config/mips/irix6.mh (XDEPFILES): Delete.
4239 * config/mips/irix5.mh (XDEPFILES): Delete.
4240 * config/mips/irix4.mh (XDEPFILES): Delete.
4241 * config/mips/irix3.mh (XDEPFILES): Delete.
4242 * config/mips/decstation.mh (XDEPFILES): Delete.
4243 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4244 (NATDEPFILES): Move core-aout.o to here.
4245 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4246 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4247 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4248 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4249 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4250 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4251 * config/pa/hpux11.mh (XDEPFILES): Delete.
4252 * config/powerpc/aix.mh (XDEPFILES): Delete.
4253 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4254 * config/powerpc/linux.mh (XDEPFILES): Delete.
4255 * config/romp/rtbsd.mh: Rename XDEPFILES.
4256 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4257 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4258 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4259 * config/s390/s390.mh (XDEPFILES): Delete.
4260 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4261 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4262 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4263 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4264 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4265 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4266 * config/sparc/linux.mh (XDEPFILES): Delete.
4267 * config/vax/vaxult.mh (XDEPFILES): Delete.
4268 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4269 * Makefile.in (DEPFILES): Remove XDEPFILES.
4271 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4273 * utils.c (internal_verror): Fix comments, default is yes not no.
4274 Update queries to match. Default to quit and dump core.
4276 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4278 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4280 * defs.h, event-top.c, gdbcmd.h: Ditto.
4281 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4282 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4283 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4284 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4285 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4286 * mi/mi-main.c:Ditto.
4288 * stack.c, symfile.c: Update copyright.
4290 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4292 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4293 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4294 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4295 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4297 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4299 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4300 * gdbserver/low-lynx.c (myattach): Likewise.
4301 * gdbserver/low-nbsd.c (myattach): Likewise.
4302 * gdbserver/low-sim.c (myattach): Likewise.
4303 * gdbserver/low-sparc.c (myattach): Likewise.
4304 * gdbserver/low-sun3.c (myattach): Likewise.
4306 * gdbserver/low-linux.c (myattach): New function.
4308 * gdbserver/server.c (attach_inferior): New function.
4309 (main): Handle "--attach".
4311 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4313 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4316 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4318 * c-typeprint.c (is_type_conversion_operator): Add additional
4319 check for non-conversion operators.
4321 2002-01-15 Michael Snyder <msnyder@redhat.com>
4323 * linux-proc.c: Add "info proc" command, a la procfs.c.
4324 (read_mapping): New function, abstract and re-use code.
4325 (linux_find_memory_regions): Use new func read_mapping.
4326 (linux_info_proc_cmd): New function, implement "info proc".
4327 (_initialize_linux_proc): Add new command "info proc".
4329 2002-01-15 Michael Snyder <msnyder@redhat.com>
4331 * symfile.c (generic_load): Use bfd_map_over_sections method
4332 instead of manipulating bfd structure members directly.
4333 (add_section_size_callback): New function, bfd sections callback
4334 used by generic_load.
4335 (load_sections_callback): New function, bfd sections callback
4336 used by generic_load.
4338 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4340 [Based on work by Jim Blandy]
4341 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4342 (builtin_type_vec128): Export.
4343 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4345 (builtin_type_vec128): New builtin type for 128 bit vector
4347 (build_gdbtypes): Initialize builtin_type_v16qi and
4348 builtin_type_v8hi. Create the vec128 register builtin type
4350 (build_builtin_type_vec128): New function.
4351 (_initialize_gdbtypes): Register builtin_type_v16qi and
4352 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4353 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4354 AltiVec register to new builtin type.
4356 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4358 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4361 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4363 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4364 CLEAN_UP_REGISTER_VALUE.
4365 * regcache.c (supply_register): Update only call.
4367 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4369 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4370 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4371 a29k-*-vxworks* targets as obsolete.
4373 2002-01-14 Michael Snyder <msnyder@redhat.com>
4375 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4376 until we can resolve portability issues.
4377 * gregset.h: Remove references to fpxregs.
4378 * gcore.c (gcore_command): Initialize note_sec to NULL.
4380 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4382 * signals.c (target_signal_to_name): Rewrite. Only use
4383 signals[].name when in bounds and non-NULL.
4385 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4387 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4388 * signals.c (target_signal_to_name): Verify that SIG is within the
4389 bounds of the signals array.
4391 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4393 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4395 2002-01-13 Keith Seitz <keiths@redhat.com>
4397 * stack.c (print_frame_info_base): Print the frame's pc
4398 only if when print_frame_info_listing_hook is not defined.
4400 2002-01-13 Keith Seitz <keiths@redhat.com>
4402 * varobj.c (varobj_set_value): Make sure that there were no
4403 errors evaluating the object before attempting to set its
4405 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4406 so this offset adjustment is no longer necessary.
4407 (create_child): Don't set the error flag if the child is
4409 (value_of_child): If value_fetch_lazy fails, return NULL
4410 so that callers will be notified that an error occurred.
4411 (c_value_of_variable): Delay check of variable's validity
4412 until later. We actually want all structs and unions to have
4414 Do not return "???" for variables which could not be evaluated.
4415 This error condition must be returned to the caller so that it
4416 can get the error condition from gdb.
4417 (cplus_name_of_child): Adjust index for vptr before figuring
4418 out the name of the child.
4419 (cplus_value_of_child): If a child's (real) parent is not valid,
4420 don't even bother trying to give a value for it. Just return
4421 an error. Change all instances in this function.
4422 (cplus_type_of_child): If our parent is one of the "fake"
4423 parents, we need to get at the type of the real parent, and
4424 derive the child's true type using this information.
4426 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4428 From 2002-01-09 John Marshall <johnm@falch.net>:
4429 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4430 sources.redhat.com, and tweak some related URLs which had
4431 suffered from linkrot.
4433 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4436 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4437 structures passed in registers.
4439 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4441 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4442 white space which prevented compilation. Reported by DSK
4443 <dsk@student.unsw.edu.au>.
4445 2002-01-11 Michael Snyder <msnyder@redhat.com>
4447 * symfile.c (build_section_addr_info_from_section_tab):
4448 Use bfd access method instead of manipulating bfd directly.
4449 (syms_from_objfile): Ditto.
4450 (simple_overlay_update_1): Ditto.
4451 (simple_overlay_update): Ditto.
4452 (generic_load): Ditto.
4453 (overlay_unmapped_address): FIXME comment, bfd access methods.
4454 (sections_overlap): FIXME comment, bfd access methods.
4455 (pc_in_mapped_range): FIXME comment, bfd access methods.
4456 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4457 (section_is_mapped): FIXME comment, bfd access methods.
4458 (section_is_overlay): FIXME comment, bfd access methods.
4460 * symfile.c (generic_load): Whitespace and long line cleanups.
4461 Remove duplicate variable, change several local variables to
4462 more appropriate data types.
4463 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4465 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4468 * language.c (longest_local_hex_string_custom): Use phex_nz to
4469 convert NUM to a hex string.
4471 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4473 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4475 Update Copyright year.
4477 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4479 * language.c (longest_raw_hex_string): Delete unused function.
4481 2002-01-11 Petr Sorfa <petrs@caldera.com>
4483 * MAINTAINERS (write-after-approval): Add myself.
4484 * dwarf2read.c (read_tag_string_type): Handling of
4486 (read_tag_string_type): FORTRAN fix to prevent propagation of
4488 (set_cu_language): Handling of DW_LANG_Fortran95
4490 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4492 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4493 GETPID(inferior_ptid).
4494 (store_inferior_registers): Likewise.
4496 2002-01-10 Jason Merrill <jason@redhat.com>
4498 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4501 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4503 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4504 and bfd/elf32-sh-nbsd.c.
4506 2002-01-10 Michael Snyder <msnyder@redhat.com>
4508 * NEWS: Mention --pid and corefile/proc-id behavior change.
4510 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4511 * gcore.c: Include cli/cli-decode.h instead of command.h.
4513 * main.c (captured_main): Add new command line option "--pid".
4514 If the second command line argument (following the symbol-file)
4515 begins with a digit, try to attach to it before trying to open
4517 (print_gdb_help): Document the "--pid" argument.
4519 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4521 * completer.c (command_completer): New function.
4523 * completer.h <command_completer>: Add prototype.
4525 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4526 completer for the "help" command.
4528 2002-01-09 Jason Merrill <jason@redhat.com>
4530 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4532 2002-01-09 Michael Snyder <msnyder@redhat.com>
4534 * i386-linux-nat.c (fill_fpxregset): Make global.
4535 (store_fpxregset): Ditto.
4537 * gregset.h (gdb_fpxregset_t): Define.
4538 (supply_fpxregset): Prototype.
4539 (fill_fpxregset): Prototype.
4541 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4543 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4545 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4546 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4547 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4549 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4551 * MAINTAINERS: Update target maintainer rules so that any
4552 Maintainer can approve a tested patch for a maintenance-only
4555 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4557 * MAINTAINERS (write-after-approval): Add myself.
4559 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4562 2002-01-08 Michael Snyder <msnyder@redhat.com>
4564 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4565 real name of the executable, rather than the /proc name.
4567 2002-01-03 Michael Snyder <msnyder@redhat.com>
4569 Implement a "generate-core-file" command in gdb, save target state.
4570 * gcore.c: New file. Implement new command 'generate-core-file'.
4571 Save a corefile image of the current state of the inferior.
4572 * linux-proc.c: Add linux-specific code for saving corefiles.
4573 * target.h (struct target_ops): Add new target vectors for saving
4574 corefiles; to_find_memory_regions and to_make_corefile_notes.
4575 (target_find_memory_regions): New macro.
4576 (target_make_corefile_notes): New macro.
4577 * target.c (update_current_target): Inherit new target methods.
4578 (dummy_find_memory_regions): New place-holder method.
4579 (dummy_make_corefile_notes): New place-holder method.
4580 (init_dummy_target): Initialize new dummy target vectors.
4581 * exec.c (exec_set_find_memory_regions): New function.
4582 Allow the exec_ops vector for memory regions to be taken over.
4583 (exec_make_note_section): New function, target vector method.
4584 * defs.h (exec_set_find_memory_regions): Export prototype.
4585 * procfs.c (proc_find_memory_regions): New function, corefile method.
4586 (procfs_make_note_section): New function, corefile method.
4587 (init_procfs_ops): Set new target vector pointers.
4588 (find_memory_regions_callback): New function.
4589 (procfs_do_thread_registers): New function.
4590 (procfs_corefile_thread_callback): New function.
4591 * sol-thread.c (sol_find_memory_regions): New function.
4592 (sol_make_note_section): New function.
4593 (init_sol_thread_ops): Initialize new target vectors.
4594 * inftarg.c (inftarg_set_find_memory_regions): New function.
4595 Allow to_find_memory_regions vector to be taken over.
4596 (inftarg_set_make_corefile_notes): New function.
4597 Allow to_make_corefile_notes vector to be taken over.
4598 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4599 interface layer if not target_has_execution (may be a corefile).
4600 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4601 * config/sparc/sun4sol2.mh: Ditto.
4602 * config/alpha/alpha-linux.mh: Ditto.
4603 * config/arm/linux.mh: Ditto.
4604 * config/i386/x86-64linux.mh: Ditto.
4605 * config/ia64/linux.mh: Ditto.
4606 * config/m68k/linux.mh: Ditto.
4607 * config/mips/linux.mh: Ditto.
4608 * config/powerpc/linux.mh: Ditto.
4609 * config/sparc/linux.mh: Ditto.
4611 2002-01-07 Michael Snyder <msnyder@redhat.com>
4613 * arm-linux-nat.c: Remove references to regcache.c internal data
4614 (registers[] and register_valid[]).
4616 2002-01-07 Michael Snyder <msnyder@redhat.com>
4618 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4619 so that attaching to a pid will automatically read the process's
4620 symbol file and shlibs.
4621 * Makefile.in: Add rule for linux-proc.o.
4622 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4623 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4624 * config/arm/linux.mh: Ditto.
4625 * config/i386/linux.mh: Ditto.
4626 * config/i386/x86-64linux.mh: Ditto.
4627 * config/ia64/linux.mh: Ditto.
4628 * config/m68k/linux.mh: Ditto.
4629 * config/mips/linux.mh: Ditto.
4630 * config/powerpc/linux.mh: Ditto.
4631 * config/sparc/linux.mh: Ditto.
4633 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4635 * win32-nat.c: Add i386-tdep.h dependency.
4637 2002-01-07 Michael Snyder <msnyder@redhat.com>
4639 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4640 instead of bfd_get_arch_size. Don't bail out just because
4641 there's no exec_bfd.
4643 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4644 * p-valprint.c (pascal_object_print_value): Ditto.
4645 * somread.c (som_symtab_read): Ditto.
4646 * symfile.c (simple_free_overlay_region_table): Ditto.
4647 * valops.c (value_assign): Ditto.
4649 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4650 use tilde_expand and strerror for opening save-tracepoints file.
4652 * thread-db.c (thread_db_new_objfile): Indendation fix.
4654 * infptrace.c (GDB_MAX_ALLOCA): New define.
4655 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4656 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4657 can be overridden with whatever value is appropriate to the host).
4658 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4659 alloca to allocate potentially large buffer.
4660 * rs6000-nat.c (child_xfer_memory): Ditto.
4661 * symm-nat.c (child_xfer_memory): Ditto.
4662 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4664 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4666 From Nick Clifton <nickc@redhat.com>
4667 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4669 2002-01-07 Michael Snyder <msnyder@redhat.com>
4671 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4672 Don't use exec_bfd if it's NULL.
4674 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4676 * valops.c (value_arg_coerce): Fix formatting.
4678 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4680 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4683 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4685 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4686 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4687 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4688 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4689 z8k-coff have not been multi-arched. Update z8k-coff build
4692 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4694 * MAINTAINERS: Mark a29k target as obsolete.
4695 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4696 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4698 * NEWS: Note that a29k targets are obsolete.
4699 * a29k-tdep.c: Mark as obsolete.
4700 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4701 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4702 a29k-*-vxworks* targets as obsolete.
4703 * remote-adapt.c: Obsolete.
4704 * remote-eb.c: Obsolete.
4705 * remote-mm.c: Obsolete.
4706 * remote-udi.c: Obsolete.
4707 * config/a29k/a29k-udi.mt: Obsolete.
4708 * config/a29k/a29k.mt: Obsolete.
4709 * config/a29k/tm-a29k.h: Obsolete.
4710 * config/a29k/tm-vx29k.h: Obsolete.
4711 * config/a29k/vx29k.mt: Obsolete.
4713 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4715 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4716 with BFD_ENDIAN_BIG.
4718 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4720 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4721 * configure, config.in: Re-generate.
4722 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4723 * defs.h: Do not include <endian.h>.
4725 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4727 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4728 * config.in: Regenerate.
4729 * configure.in: Update copyright years.
4730 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4731 * configure: Regenerate.
4732 * i386bsd-nat.c: Update copyright years.
4733 (fill_gregset): Use regcache_collect.
4734 (fetch_inferior_registers): Only fetch integer registers
4735 if requested to do so. Add support for XMM registers
4736 using PT_GETXMMREGS.
4737 (store_inferior_registers): Only store integer registers
4738 if requested to do so. Add support for XMM registers
4739 using PT_SETXMMREGS.
4740 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4741 (store_inferior_registers): Remove.
4742 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4743 (fetch_elfcore_registers): New function.
4744 (i386nbsd_elfcore_fns): New.
4745 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4746 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4748 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4749 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4750 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4751 * config/i386/tm-nbsd.h: Update copyright years.
4752 (HAVE_SSE_REGS): Define.
4753 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4754 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4755 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4756 (SIGCONTEXT_PC_OFFSET): Remove.
4757 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4759 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4761 * configure.tgt: Remove powerpc-*-macos* target.
4762 * config/m68k/xm-mpw.h: Delete file.
4763 * config/xm-mpw.h: Delete file.
4764 * ser-mac.c: Delete file.
4765 * mpw-make.sed: Delete file.
4766 * mpw-config.in: Delete file.
4767 * mac-xdep.c: Delete file.
4768 * mac-gdb.r: Delete file.
4769 * mac-defs.h: Delete file.
4770 * mac-nat.c: Delete file.
4771 * config/powerpc/macos.mh: Delete file.
4772 * config/powerpc/macos.mt: Delete file.
4773 * config/powerpc/nm-macos.h: Delete file.
4774 * config/powerpc/tm-macos.h: Delete file.
4775 * source.c (openp, open_source_file): Remove obsolete code.
4776 * top.c (gdb_readline): Ditto.
4777 * utils.c (query): Ditto.
4778 * event-top.c (display_gdb_prompt): Ditto.
4779 * Makefile.in (ser-mac.o): Delete obsolete target.
4782 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4784 * defs.h (BIG_ENDIAN): Delete macro definition.
4785 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4786 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4787 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4788 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4789 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4790 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4791 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4792 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4793 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4794 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4795 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4796 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4797 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4798 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4799 * gdbarch.c: Re-generate.
4801 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4803 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4806 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4808 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4810 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4812 * value.h (value_ptr): Delete typedef.
4814 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4816 * i386nbsd-nat.c: Update copyright years.
4817 Include i386-tdep.h.
4819 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4821 * stabsread.c: Update copyright years.
4823 From Debashis Mahata <debashis.mahata@wipro.com>:
4824 (read_struct_fields): Deal with Sun C compiler erroneous stab
4825 output for structs and unions.
4828 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4830 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4833 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4835 * cp-abi.c: Fix whitespace.
4836 (baseclass_offset): New wrapper function.
4837 * cp-abi.h (baseclass_offset): Add prototype.
4838 (struct cp_abi_ops): Add baseclass_offset pointer.
4840 * valops.c (vb_match): Move to...
4841 * gnu-v2-abi.c (vb_match): here.
4842 * valops.c (baseclass_offset): Move to...
4843 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4845 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4847 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4848 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4849 * hpacc-abi.c (init_hpacc_ops): Likewise.
4851 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4853 * valops.c (find_overload_match): Accept obj as a
4854 reference parameter. Update it before returning.
4855 * value.h (find_overload_match): Update prototype.
4856 * eval.c (evaluate_subexp_standard): Pass object to
4857 find_overload_match by reference.
4859 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4861 * valarith.c: Replace value_ptr with struct value pointer. Remove
4862 register attribute from value declarations.
4865 * scm-lang.c (scm_lookup_name): Ditto.
4867 2002-01-03 Michael Snyder <msnyder@redhat.com>
4869 Abstract the functionality of iterating over mapped memory
4870 regions into a general purpose iterator function.
4871 * procfs.c (iterate_over_mappings): New function, general purpose
4872 iterator for memory sections.
4873 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4874 (solib_mappings_callback): New function, callback for above.
4875 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4876 (info_mappings_callback): New function, callback for above.
4878 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4880 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4882 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4883 * i386-tdep.c: Include "elf-bfd.h".
4884 (process_note_abi_tag_sections): New function.
4885 (i386_gdbarch_init): Add code to recognize various OS/ABI
4888 * maint.c (_initialize_maint_cmds): Add missing \ in
4891 For older changes see ChangeLog-2001
4897 version-control: never