1 2002-05-03 Jim Blandy <jimb@redhat.com>
3 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5 * gdbtypes.c (replace_type): Doc fix.
7 * stabsread.c (multiply_defined_struct): New complaint.
8 (read_struct_type): If the type we were passed isn't empty, or
9 incomplete, don't read the new struct type into it; complain,
10 and return the original type unchanged. Take a new `type_code'
11 argument, which is the type code for the new type.
12 (read_type): Rather than storing the type's type code here, pass
13 it as an argument to read_struct_type, and let that take care of
14 storing it. That way, we don't overwrite the original type code,
15 so read_struct_type can use it to decide whether we're overwriting
16 something we shouldn't.
17 (complain_about_struct_wipeout): New function.
19 2002-05-03 Andrew Cagney <ac131313@redhat.com>
21 * gdbarch.sh: Assert that gdbarch is non-NULL.
22 * gdbarch.c: Regenerate.
24 2002-05-03 Jason Merrill <jason@redhat.com>
26 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
29 2002-05-03 Michal Ludvig <mludvig@suse.cz>
31 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
32 (x86_64_dwarf2gdb_regno_map_length),
33 (x86_64_dwarf2_reg_to_regnum): Added.
34 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
35 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
36 (_initialize_x86_64_tdep): Synced with the change above.
37 (x86_64_skip_prologue): Reformulated message.
39 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
41 * f-exp.y: Also use new prev_lexptr variable
42 to improve error reporting. Based on Michael Snyder
43 2002-04-24 dated patch to c-exp.y.
47 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
49 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
50 we are dealing with vectors.
52 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
54 * config/m68k/tm-nbsd.h: Obvious fix,
57 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
59 * p-typeprint.c (pascal_type_print_base): Add support
60 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
62 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
64 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
65 for fondamental pascal 'char' type.
67 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
69 * p-lang.h (is_pascal_string_type): Declaration changed,
70 new sixth argument of type char ** added.
71 * p-lang.c (is_pascal_string_type): Implementation
72 changed. Args length_pos, length_size, string_pos, char_size
73 can now be NULL. New argument arrayname set to the field
74 name of the char array. Return value set to char array
76 * p-valprint.c (pascal_val_print): Adapt to new declaration of
77 is_pascal_string_type function.
79 2002-05-02 Andrew Cagney <cagney@redhat.com>
81 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
82 <cagney@redhat.com> change.
83 * gdbarch.c: Regenerate.
85 2002-05-02 Andrew Cagney <cagney@redhat.com>
87 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
88 before probing for a new one. Detect errorenous gdbarch_init
90 * gdbarch.c: Regenerate.
92 2002-05-01 Andrew Cagney <cagney@redhat.com>
94 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
95 * config/mcore/tm-mcore.h: Ditto. Update copyright.
96 * config/v850/tm-v850.h: Ditto. Update copyright.
98 2002-04-30 Andrew Cagney <ac131313@redhat.com>
100 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
103 2002-04-30 Michael Snyder <msnyder@redhat.com>
105 * arm-tdep.c: Whitespace clean-ups.
106 (arm_skip_prologue): Fix thinko; two lines
107 should have been removed as part of 4/24 change.
109 2002-04-30 Kevin Buettner <kevinb@redhat.com>
111 * rs6000-tdep.c: Added comment describing how fpscr register
114 2002-04-30 Michael Snyder <msnyder@redhat.com>
116 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
118 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
120 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
121 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
122 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
124 2002-04-29 Kevin Buettner <kevinb@redhat.com>
126 From Louis Hamilton <hamilton@redhat.com>:
127 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
128 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
129 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
130 not bfd-private xcoff data, to determine wordsize.
131 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
133 2002-04-29 Andrew Cagney <ac131313@redhat.com>
135 GDB 5.2 released from 5.2 branch.
137 2002-04-29 Michal Ludvig <mludvig@suse.cz>
139 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
140 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
141 (x86_64_register_info_table): Added comments with register numbers.
143 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
145 * rs6000-tdep.c (rs6000_extract_return_value,
146 rs6000_store_return_value): Handle returning vectors.
147 (rs6000_gdbarch_init): Use
148 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
149 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
151 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
153 (ppc_sysv_abi_push_arguments): Handle vector parameters.
154 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
156 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
158 * hpread.c (hpread_psymtab_to_symtab_1,
159 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
160 with fprintf_unfiltered (gdb_stderr,...).
162 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
164 * remote-array.c (printf_monitor, write_monitor,
165 array_insert_breakpoint, array_remove_breakpoint ):
166 Replace fprintf (stderr,...
167 with fprintf_unfiltered (gdb_stderr,....
168 * remote-es.c: Likewise.
169 * remote-os9k.c: Likewise.
170 * remote-st.c: Likewise.
172 2002-04-28 Andreas Schwab <schwab@suse.de>
174 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
175 linux-proc.o and gcore.o.
177 2002-04-26 Michal Ludvig <mludvig@suse.cz>
179 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
180 code without frame pointers.
182 2002-04-26 Andrew Cagney <ac131313@redhat.com>
184 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
187 2002-04-26 Ben Elliston <bje@redhat.com>
189 * target.c (do_xfer_memory): Correct reference to the new option
190 "trust-readonly-sections".
192 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
194 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
195 * gdbtypes.c (recursive_dump_type): Output the vector flag.
196 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
198 (read_array_type): Record the fact that this array type is really a
199 vector (i.e. are passed in by value).
201 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
203 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
204 * alpha-tdep.c (alpha_sigcontext_addr): New function.
205 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
206 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
207 * alpha-linux-tdep.c: Include frame.h.
208 (alpha_linux_sigcontext_addr): New function.
209 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
210 alpha_linux_sigcontext_addr.
211 * alpha-osf1-tdep.c: Include gdbcore.h.
212 (alpha_osf1_sigcontext_addr): New function.
213 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
214 alpha_osf1_sigcontext_addr.
215 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
216 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
218 2002-04-26 Andrew Cagney <ac131313@redhat.com>
220 * stack.c (selected_frame_level):
221 (select_frame): Do not set selected_frame_level.
222 * frame.h (selected_frame_level): Delete declaration.
224 2002-04-26 Andrew Cagney <ac131313@redhat.com>
226 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
227 convert_from_func_ptr-addr when AIX / PowerOpen.
229 2002-04-25 Andrew Cagney <ac131313@redhat.com>
231 * valops.c (hand_function_call): Call
232 generic_save_call_dummy_addr.
233 * frame.h (generic_save_call_dummy_addr): Declare.
234 * blockframe.c (struct dummy_frame): Add fields call_lo and
236 (generic_find_dummy_frame): Check for PC in range call_lo to
237 call_hi instead of entry_point_address.
238 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
239 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
240 (generic_save_call_dummy_addr): New function.
242 2002-04-24 David S. Miller <davem@redhat.com>
244 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
246 (sparc_skip_prologue): Kill frameless_p arg, and use line number
247 information to find prologue when possible.
248 (sparc_prologue_frameless_p): Call examine_prologue directly.
249 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
250 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
252 (SKIP_PROLOGUE): Likewise.
254 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
256 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
257 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
258 indicate that the condition it was testing is always true.
259 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
260 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
261 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
263 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
265 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
266 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
267 tdep->jb_pc and tdep->jb_elt_size.
268 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
269 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
270 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
271 * alpha-nat.c (get_longjmp_target): Remove.
272 (JB_ELEMENT_SIZE): Ditto.
274 * alpha-tdep.c (alpha_get_longjmp_target): New function.
275 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
276 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
277 to alpha_get_longjmp_target.
278 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
279 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
280 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
282 2002-04-25 Andrew Cagney <ac131313@redhat.com>
284 * README: Update to GDB 5.2.
286 2002-04-25 Andrew Cagney <ac131313@redhat.com>
288 * gdbarch.sh (LC_ALL): Set to `c'.
290 2002-04-25 Theodore A. Roth <troth@verinet.com>
292 * avr-tdep.c: Ran through gdb_indent.sh.
294 2002-04-25 Theodore A. Roth <troth@verinet.com>
296 * MAINTAINERS: Add myself as AVR maintainer.
297 * NEWS: Note new target avr.
299 2002-04-25 Theodore A. Roth <troth@verinet.com>
301 * Makefile.in: Add support for AVR target.
302 * configure.tgt: Add support for AVR target.
303 * avr-tdep.c: New file
304 * config/avr/avr.mt: New file.
306 2002-04-25 Theodore A. Roth <troth@verinet.com>
308 * MAINTAINERS: Add myself to write-after-approval.
310 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
312 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
313 with fprintf_unfiltered (gdb_stderr,....
315 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
318 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
320 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
322 * p-exp.y: Also use new prev_lexptr variable
323 to improve error reporting. Based on Michael Snyder
324 2002-04-24 dated patch to c-exp.y.
326 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
328 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
329 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
330 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
332 * config/alpha/tm-alpha.h: Remove forward decls of struct type
334 (FUNCTION_START_OFFSET): Remove.
337 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
339 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
342 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
344 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
345 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
346 alpha_linux_pc_in_sigtramp.
347 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
348 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
349 alpha_osf1_pc_in_sigtramp.
350 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
351 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
352 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
353 alphafbsd_pc_in_sigtramp.
354 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
355 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
356 alphanbsd_pc_in_sigtramp.
357 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
358 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
360 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
362 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
364 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
366 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
368 (alphanbsd-nat.o): New dependency list.
369 (alphanbsd-tdep.o): Ditto.
370 * NEWS: Note new native NetBSD/alpha configuration.
371 * alphanbsd-nat.c: New file.
372 * alphanbsd-tdep.c: Ditto.
373 * configure.host (alpha*-*-netbsd*): New host.
374 * configure.tgt (alpha*-*-netbsd*): New target.
375 * config/alpha/nbsd.mh: New file.
376 * config/alpha/nbsd.mt: Ditto.
377 * config/alpha/nm-nbsd.h: Ditto.
378 * config/alpha/tm-nbsd.h: Ditto.
380 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
382 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
383 (alpha-osf1-tdep.o): New dependency list.
384 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
385 and skip_sigtramp_frame members.
386 * alpha-linux-tdep.c: Include gdbcore.h.
387 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
388 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
389 * alpha-osf1-tdep.c: New file.
390 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
392 (alpha_frame_past_sigtramp_frame): New function.
393 (alpha_dynamic_sigtramp_offset): Ditto.
394 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
395 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
396 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
397 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
398 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
399 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
400 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
401 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
402 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
403 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
404 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
405 to find_solib_trampoline_target.
406 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
407 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
408 (SKIP_TRAMPOLINE_CODE): Remove.
409 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
410 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
411 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
412 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
413 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
414 (PROC_SIGTRAMP_MAGIC): Ditto.
415 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
416 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
417 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
418 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
419 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
421 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
423 * NEWS: Note that Alpha targets are now multi-arch.
425 2002-04-24 Michael Snyder <msnyder@redhat.com>
427 * parser-defs.h (prev_lexptr): New external variable.
428 * parse.c (parse_exp_1): Set prev_lexptr to null before
429 calling the language-specific parser.
430 * c-exp.y (yylex): Set prev_lexptr to start of current token.
431 (yyerror): Use prev_lexptr in error reporting.
433 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
435 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
436 * gregset.h: If FILL_FPXREGSET is defined, provide
437 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
438 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
439 is defined, call fill_fpxregset.
441 2002-04-24 Roland McGrath <roland@frob.com>
443 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
444 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
445 (supply_gregset, supply_fpregset): New functions.
447 * gnu-nat.c (gnu_find_memory_regions): New function.
448 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
449 (gnu_xfer_memory): Add a cast.
451 2002-04-24 Michael Snyder <msnyder@redhat.com>
453 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
454 loop. Add handling for "str lr, [sp, #-4]!" and for saves
455 of argument regs ("str r(0123), [r11, #-nn"]).
456 (arm_skip_prologue): Better handling for frameless functions.
457 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
458 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
460 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
462 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
463 NUM_PSEUDO_REGS can be used.
465 2002-04-24 Andrew Cagney <ac131313@redhat.com>
467 * arch-utils.h: Update copyright.
469 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
470 * gdbarch.h, gdbarch.c: Re-generate.
472 * inferior.h (IN_SIGTRAMP): Delete definition.
473 * arch-utils.c (legacy_pc_in_sigtramp): New function.
474 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
476 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
477 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
478 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
479 (find_proc_framesize): Ditto.
480 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
481 (alpha_init_extra_frame_info): Ditto.
482 * infrun.c (handle_inferior_event): Ditto.
483 (handle_inferior_event): Ditto.
484 (check_sigtramp2): Ditto.
485 * blockframe.c (create_new_frame): Ditto.
486 (get_prev_frame): Ditto.
487 * ppc-linux-tdep.c: Update comments.
488 * i386-linux-tdep.c: Update comments.
489 * breakpoint.c (bpstat_what): Update comment.
491 2002-04-24 Michal Ludvig <mludvig@suse.cz>
493 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
494 (regsets_store_inferior_registers): Removed cast to int from
496 * gdbserver/regcache.h: Added declaration of struct inferior_info.
498 2002-04-24 David S. Miller <davem@redhat.com>
500 * i960-tdep.c (register_in_window_p): New function.
501 (i960_find_saved_register): Use it instead of
502 REGISTER_IN_WINDOW_P.
503 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
505 * symtab.h (find_stab_function_addr): Kill extern.
506 * minsyms.c (find_stab_function_addr): Remove from here...
507 * dbxread.c: ... to here, and mark it static.
509 2002-04-20 David S. Miller <davem@redhat.com>
511 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
512 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
514 2002-04-21 David S. Miller <davem@redhat.com>
516 * remote-vxsparc.c (vx_read_register): Fix typo, we want
517 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
518 (vx_write_register): Likewise.
520 2002-04-23 J. Brobecker <brobecker@gnat.com>
522 * source.c (is_regular_file): New function.
523 (openp): Check wether file to open is a regular file
524 to avoid opening directories.
526 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
528 * findvar.c (extract_signed_integer): Cast printf argument
529 to suppress format warning.
530 (extract_unsigned_integer): Likewise.
531 * infcmd.c (registers_info): Likewise.
532 * top.c (get_prompt_1): Likewise.
533 * valops.c (value_assign): Likewise.
534 * valprint.c (print_decimal): Likewise.
536 2002-04-22 H.J. Lu (hjl@gnu.org)
538 * c-exp.y (typebase): Support
540 [long|long long|short] [signed|unsigned] [int|]
544 signed [long|long long|short] int
546 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
548 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
550 * vax-tdep.h: New file.
551 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
552 Make several routines static.
553 (vax_get_saved_register): New function.
554 (vax_gdbarch_init): New function.
555 (_initialize_vax_tdep): Register vax_gdbarch_init.
556 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
557 Remove macros now under the control of gdbarch.
559 2002-04-22 Michael Snyder <msnyder@redhat.com>
561 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
562 Some whitespace and coding standards tweaks.
564 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
566 * vax-tdep.c: Include regcache.h.
567 (vax_call_dummy_words): New.
568 (sizeof_vax_call_dummy_words): New.
569 (vax_fix_call_dummy): New function.
570 (vax_saved_pc_after_call): Ditto.
571 * config/vax/tm-vax.h: Don't include regcache.h.
572 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
573 (CALL_DUMMY): Remove.
574 (CALL_DUMMY_WORDS): Define.
575 (SIZEOF_CALL_DUMMY_WORDS): Define.
576 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
578 2002-04-18 Michael Snyder <msnyder@redhat.com>
580 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
582 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
584 * vax-tdep.c (vax_frame_chain): New function.
585 (vax_push_dummy_frame): Ditto.
586 (vax_pop_frame): Ditto.
587 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
588 (FRAMELESS_FUNCTION_INVOCATION): Use
589 generic_frameless_function_invocation_not.
590 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
591 (POP_FRAME): Use vax_pop_frame.
593 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
595 * vax-tdep.c (vax_store_struct_return): New function.
596 (vax_extract_return_value): Ditto.
597 (vax_store_return_value): Ditto.
598 (vax_extract_struct_value_address): Ditto.
599 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
600 vax_store_struct_return.
601 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
602 (STORE_RETURN_VALUE): Use vax_store_return_value.
603 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
605 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
607 * vax-tdep.c (vax_frame_saved_pc): New function.
608 (vax_frame_args_address_correct): Ditto.
609 (vax_frame_args_address): Ditto.
610 (vax_frame_locals_address): Ditto.
611 (vax_frame_num_args): Move code to be in proximity to
612 other frame-related functions.
613 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
614 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
615 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
616 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
617 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
619 2002-04-22 H.J. Lu (hjl@gnu.org)
621 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
626 * vax-tdep.c (vax_frame_init_saved_regs): New function.
627 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
628 (FRAME_INIT_SAVED_REGS): New macro.
630 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
632 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
634 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
636 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
638 (fetch_osf_core_registers): Likewise.
639 (supply_gregset): Likewise.
641 2002-04-22 J. Brobecker <brobecker@gnat.com>
643 * symfile.h (get_section_index): Define.
644 * symfile.c (get_section_index): New function.
645 * mdebugread.c (SC_IS_SBSS): New macro.
646 (SC_IS_BSS): Return true for the scBss storage class only, as
647 the scSBss storage class refers to the .sbss section.
648 (parse_partial_symbols): Discard the symbols which associated
649 section does not exist.
650 Make sure to use the .sbss section index for symbols which
651 storage class is scBss, rather than using the .bss section index.
653 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
655 * vax-tdep.c: Update copyright years.
656 (vax_register_name): New function.
657 (vax_register_byte): Ditto.
658 (vax_register_raw_size): Ditto.
659 (vax_register_virtual_size): Ditto.
660 (vax_register_virtual_type): Ditto.
661 * config/vax/tm-vax.h: Update copyright years.
662 (REGISTER_NAMES): Remove.
663 (REGISTER_NAME): Define.
664 (REGISTER_BYTE): Use vax_register_byte.
665 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
666 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
667 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
669 2002-04-21 Andrew Cagney <ac131313@redhat.com>
671 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
673 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
675 2002-04-21 David S. Miller <davem@redhat.com>
677 * arch-utils.c (generic_prologue_frameless_p): Kill
678 SKIP_PROLOGUE_FRAMELESS_P code.
679 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
681 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
682 * arc-tdep.c (arc_prologue_frameless_p): Implement.
683 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
685 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
686 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
687 (sparc_gdbarch_init): Pass it to
688 set_gdbarch_prologue_frameless_p.
690 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
692 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
693 (alphabsd-nat.o): New dependency list.
695 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
697 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
699 (alpha-linux-tdep.o): New dependency list.
700 (alphafbsd-tdep.o): Likewise.
702 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
704 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
706 * alpha-tdep.c: ...from here.
707 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
709 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
711 * config/alpha/tm-alpha.h: Move alpha_software_single_step
712 prototype from here...
713 * alpha-tdep.h: ...to here.
715 2002-04-21 Andrew Cagney <ac131313@redhat.com>
717 * frame.h (selected_frame_level): Document as deprecated.
718 (frame_relative_level): Declare.
719 * stack.c (frame_relative_level): New function.
720 (selected_frame_level): Document as deprecated.
721 (select_frame): Do not set the selected_frame_level.
723 * stack.c (frame_info, record_selected_frame): Update.
724 (frame_command, current_frame_command): Update.
725 (up_silently_base, up_command, down_silently_base): Update.
726 (down_command): Update.
727 * inflow.c (kill_command): Update.
728 * tracepoint.c (finish_tfind_command): Update.
729 * corelow.c (core_open): Update.
730 * thread.c (info_threads_command): Update.
731 (do_captured_thread_select): Update.
732 * infcmd.c (finish_command): Update.
733 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
737 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
739 2002-04-21 Andrew Cagney <ac131313@redhat.com>
741 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
744 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
746 * alphafbsd-tdep.c: Update copyright years. Include
748 (alphafbsd_use_struct_convention): Make static.
749 (alphafbsd_init_abi): New function.
750 (_initialize_alphafbsd_tdep): New function.
751 * config/alpha/tm-fbsd.h: Update copyright years.
752 (USE_STRUCT_CONVENTION): Remove.
754 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
756 * alpha-tdep.c (alpha_abi_handler): New structure to describe
757 an Alpha ABI variant.
758 (alpha_abi_handler_list): Declare.
759 (alpha_gdbarch_register_os_abi): New function.
760 (alpha_gdbarch_init): Give registered ABI variant handlers a
761 chance to tweak the gdbarch once we have set up defaults.
762 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
764 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
766 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
767 to standard_coerce_float_to_double.
768 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
770 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
772 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
773 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
774 from gdbarch_tdep rather than a constant.
775 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
776 the default text address for all Alpha Unix ABIs.
777 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
778 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
782 * alpha-tdep.h: New file. Includes several Alpha target constants
784 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
785 let gdbarch deal with.
786 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
787 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
789 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
790 Alpha target register names.
791 * alphabsd-nat.c: Likewise.
792 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
793 Alpha target register names. Make serveral routines static.
794 (alpha_get_saved_register): New function.
795 (alpha_abi_names): New.
796 (process_note_abi_tag_sections): New function.
797 (get_elfosabi): New function.
798 (alpha_gdbarch_init): New function.
799 (alpha_dump_tdep): New function.
800 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
802 2002-04-21 Andrew Cagney <ac131313@redhat.com>
804 * frame.c (find_saved_register): Delete #ifdef
805 HAVE_REGISTER_WINDOWS code.
806 * config/sparc/tm-sparc.h: Update comments.
807 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
809 2002-04-21 Andrew Cagney <ac131313@redhat.com>
811 * i960-tdep.c (i960_find_saved_register): New function.
812 (i960_get_saved_register): New function.
813 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
814 (i960_get_saved_register): Declare.
815 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
817 2002-04-20 David S. Miller <davem@redhat.com>
819 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
821 2002-04-20 Andrew Cagney <ac131313@redhat.com>
823 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
824 instead of NUM_PSEUDO_REGS.
826 2002-04-20 David S. Miller <davem@redhat.com>
828 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
829 GDB_MULTI_ARCH_PARTIAL
830 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
831 define, let tm-sp64.h do it.
833 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
835 * frame.c (find_saved_register): Avoid a NULL pointer
836 dereference and actually walk the frame list.
838 2002-04-20 Andrew Cagney <ac131313@redhat.com>
840 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
841 sorted in most most-recent-used order. Document.
842 * gdbarch.h, gdbarch.c: Regenerate.
844 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
846 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
847 (add_inferior): Call create_register_cache.
848 (clear_inferiors): Call free_register_cache.
849 (inferior_regcache_data, set_inferior_regcache_data): New functions.
850 * gdbserver/regcache.c (struct inferior_regcache_data): New.
852 (get_regcache): New function.
853 (create_register_cache, free_register_cache): New functions.
854 (set_register_cache): Don't initialize the register cache here.
855 (registers_to_string, registers_from_string, register_data): Call
857 * gdbserver/regcache.h: Add prototypes.
858 * gdbserver/server.h: Likewise.
860 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
862 * gdbserver/mem-break.c: New file.
863 * gdbserver/mem-break.h: New file.
864 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
866 * gdbserver/inferiors.c (struct inferior_info): Add target_data
868 (clear_inferiors): Free target_data member if set.
869 (inferior_target_data, set_inferior_target_data): New functions.
870 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
871 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
872 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
873 (struct inferior_linux_data): New.
874 (linux_create_inferior): Use set_inferior_target_data.
875 (linux_attach): Likewise. Call add_inferior.
876 (linux_wait_for_one_inferior): New function.
877 (linux_wait): Call it.
878 (linux_write_memory): Add const.
879 (initialize_low): Call set_breakpoint_data.
880 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
882 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
884 * gdbserver/server.h: Include mem-break.h. Update inferior.c
886 * gdbserver/target.c (read_inferior_memory)
887 (write_inferior_memory): New functions.
888 * gdbserver/target.h (read_inferior_memory)
889 (write_inferior_memory): Change macros to prototypes.
890 (struct target_ops): Update comments. Add const to write_memory
893 2002-04-19 Andrew Cagney <ac131313@redhat.com>
895 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
897 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
898 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
899 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
902 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
905 * gdbtypes.c (init_simd_type): Rewrite using new functions.
906 (build_builtin_type_vec128): Ditto.
907 (append_composite_type_field): Fix calculation of type length in
910 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
912 * config/djgpp/README: Update.
914 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
917 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
919 * alpha-tdep.c (setup_arbitrary_frame): Rename...
920 (alpha_setup_arbitrary_frame): ...to this.
921 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
922 for alpha_setup_arbitrary_frame.
924 2002-04-18 Andrew Cagney <cagney@redhat.com>
926 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
927 * gdbarch.h, gdbarch.c: Regenerate.
929 * defs.h (breakpoint_from_pc_fn): Delete type definition.
930 * target.h (memory_breakpoint_from_pc): Update declaration.
931 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
933 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
934 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
935 * mem-break.c (memory_breakpoint_from_pc): Ditto.
936 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
937 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
938 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
939 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
940 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
941 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
942 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
943 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
944 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
946 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
948 * monitor.c (monitor_insert_breakpoint): Ditto.
949 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
951 * config/mcore/tm-mcore.h: Update copyright.
952 * mem-break.c: Ditto.
953 * xstormy16-tdep.c: Ditto.
955 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
957 * p-exp.y: Add precedence rule for '^' token.
958 This removes the shift/reduce conflicts.
959 Remove the comment concerning these shift/reduce conflicts.
961 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
963 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
964 (registers_powerpc_nofp): New register set for processors
965 without floating point unit.
967 2002-04-18 David S. Miller <davem@redhat.com>
969 * MAINTAINERS: Add myself to write-after-approval.
971 2002-04-17 Michael Snyder <msnyder@redhat.com>
973 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
975 2002-04-17 Andrew Cagney <ac131313@redhat.com>
977 * rs6000-tdep.c (frame_initial_stack_address): Use
978 frame_register_read to read the alloca_reg.
980 2002-04-17 Andrew Cagney <ac131313@redhat.com>
982 * frame.c (find_saved_register): Find saved registers in the next
986 2002-04-17 Andrew Cagney <ac131313@redhat.com>
988 * gdbarch.sh (LANG): Set to ``c''.
990 2002-04-15 Andrew Cagney <ac131313@redhat.com>
992 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
994 2002-04-15 Andrew Cagney <ac131313@redhat.com>
996 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
999 * hpread.c (hpread_get_lntt): Add declaration.
1000 Also fix PR gdb/391.
1002 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1004 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1005 * aclocal.m4, configure: Re-generate.
1008 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1010 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1011 instead of tm_print_insn.
1013 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1015 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1017 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1019 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1020 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1021 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1023 2002-04-12 Don Howard <dhoward@redhat.com>
1025 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1026 max_user_call_depth.
1027 (init_cmd_lists): Initialize the new value;
1028 * cli/cli-script.c (execute_user_command): Limit the call depth of
1029 user defined commands. This avoids a core-dump when user commands
1030 are infinitly recursive.
1032 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1034 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1035 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1036 from tdep struct instead of DEFAULT_LR_SAVE.
1037 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1038 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1039 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1041 2002-04-12 Michael Snyder <msnyder@redhat.com>
1043 * Remote.c: Spelling fix.
1044 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1045 If no symbol found for "sbrk", try "_sbrk".
1046 (make_output_phdrs): Use bfd_section_name.
1047 (gcore_copy_callback): Use bfd_section_name.
1048 * eval.c: Indentation fix-ups.
1049 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1050 in case it gets applied to an address that is already
1051 in the instruction space.
1052 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1053 * symfile.c: Fix indentation, long lines.
1054 * source.c: White space fix-up.
1056 2002-04-12 Andrew Cagney <cagney@redhat.com>
1058 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1059 * frame.c (frame_register_read): New function. Return non-zero on
1061 (read_relative_register_raw_bytes_for_frame): Delete.
1062 (read_relative_register_raw_bytes): Delete.
1063 * frame.h (frame_register_read): Declare.
1064 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1066 * infcmd.c (do_registers_info): Ditto.
1067 * hppa-tdep.c: Ditto.
1068 * rs6000-tdep.c: Ditto.
1069 * h8500-tdep.c: Ditto.
1070 * mips-tdep.c: Ditto.
1071 * h8300-tdep.c: Ditto.
1072 * z8k-tdep.c: Ditto.
1074 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1076 From Jimi X <jimix@watson.ibm.com>:
1077 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1080 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1082 From Jimi X <jimix@watson.ibm.com>:
1083 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1086 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1088 From Jimi X <jimix@watson.ibm.com>:
1089 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1090 register sets for these processor variants.
1092 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1094 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1095 registers which are allowed to fail to store.
1096 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1097 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1098 (ppc_cannot_store_register): FPSCR may not be storable.
1099 * regformats/reg-ppc.dat: Support FPSCR.
1101 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1103 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1104 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1105 Add fpscr as an invalid/unfetchable register.
1106 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1107 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1108 (fill_fpregset): Add support for register fpscr.
1109 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1110 (fill_gregset): Account for the fact that register ``mq'' might
1112 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1113 (registers_power): Add fpscr to register set at slot 71.
1114 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1115 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1117 2002-04-11 Michael Snyder <msnyder@redhat.com>
1119 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1120 * configure: Regenerate.
1121 * config.in: Regenerate.
1122 * acconfig.h: Add define for _SYSCALL32.
1123 * core-sol2.c: Remove #define _SYSCALL32.
1124 * solib-legacy.c: Remove #define _SYSCALL32.
1126 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1128 * stack.c (select_frame): Cleanup internal error message, do not
1131 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1133 * stack.c (select_frame): Check that selected_frame and the
1134 specified level are as expected.
1135 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1137 * frame.h (struct frame_info): Add field `level'. Update
1139 Work-in-progress PR gdb/464.
1141 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1143 * maint.c (maint_print_section_info): Rename print_section_info.
1144 (print_bfd_section_info, print_objfile_section_info): Update.
1145 * inferior.h (struct gdbarch): Add opaque declaration.
1146 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1147 * gdbarch.h: Regenerate.
1149 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1151 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1152 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1153 (kernel_u_size): Added.
1154 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1155 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1157 2002-04-04 Jim Ingham <jingham@apple.com>
1159 * valarith.c (find_size_for_pointer_math): New function, either returns
1160 the size for a pointer's target, returns 1 for void *, or errors for
1162 (value_add, value_sub): use find_size_for_pointer_math.
1164 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1166 * linux-low.c (linux_look_up_symbols): New hook.
1167 (linux_target_ops): Add linux_look_up_symbols.
1168 * remote-utils.c (decode_address): New function.
1169 (look_up_one_symbol): New function.
1170 * server.c (handle_query): Call target look_up_symbols hook.
1171 * server.h (look_up_one_symbol): Add prototype.
1172 * target.h (struct target_ops): Add look_up_symbols hook.
1174 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1176 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1177 * ChangeLog: Correct paths in last ChangeLog entry.
1179 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1181 * gdbserver/linux-low.h: Remove obsolete prototypes.
1182 (struct linux_target_ops): New.
1183 (extern the_low_target): New.
1184 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1185 (register_addr): Use the_low_target explicitly.
1186 (fetch_register): Likewise.
1187 (usr_fetch_inferior_registers): Likewise.
1188 (usr_store_inferior_registers): Likewise.
1189 * gdbserver/linux-arm-low.c (num_regs): Remove.
1190 (arm_num_regs): Define.
1191 (arm_regmap): Renamed from regmap, made static.
1192 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1194 (arm_cannot_store_register): Renamed from cannot_store_register,
1196 (the_low_target): New.
1197 * gdbserver/linux-i386-low.c (num_regs): Remove.
1198 (i386_num_regs): Define.
1199 (i386_regmap): Renamed from regmap, made static.
1200 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1202 (i386_cannot_store_register): Renamed from cannot_store_register,
1204 (the_low_target): New.
1205 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1206 (ia64_num_regs): Define.
1207 (ia64_regmap): Renamed from regmap, made static.
1208 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1210 (ia64_cannot_store_register): Renamed from cannot_store_register,
1212 (the_low_target): New.
1213 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1214 (m68k_num_regs): Define.
1215 (m68k_regmap): Renamed from regmap, made static.
1216 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1218 (m68k_cannot_store_register): Renamed from cannot_store_register,
1220 (the_low_target): New.
1221 * gdbserver/linux-mips-low.c (num_regs): Remove.
1222 (mips_num_regs): Define.
1223 (mips_regmap): Renamed from regmap, made static.
1224 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1226 (mips_cannot_store_register): Renamed from cannot_store_register,
1228 (the_low_target): New.
1229 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1230 (ppc_num_regs): Define.
1231 (ppc_regmap): Renamed from regmap, made static.
1232 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1234 (ppc_cannot_store_register): Renamed from cannot_store_register,
1236 (the_low_target): New.
1237 * gdbserver/linux-s390-low.c (num_regs): Remove.
1238 (s390_num_regs): Define.
1239 (s390_regmap): Renamed from regmap, made static.
1240 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1242 (s390_cannot_store_register): Renamed from cannot_store_register,
1244 (the_low_target): New.
1245 * gdbserver/linux-sh-low.c (num_regs): Remove.
1246 (sh_num_regs): Define.
1247 (sh_regmap): Renamed from regmap, made static.
1248 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1250 (sh_cannot_store_register): Renamed from cannot_store_register,
1252 (the_low_target): New.
1253 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1254 (the_low_target): New.
1256 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1258 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1259 override FP_REGNUM with frame->fp. Update copyright.
1260 * parse.c (num_std_regs, std_regs): Delete.
1261 (target_map_name_to_register): Do not search std_regs. Update
1262 function description.
1263 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1264 declarations. Update copyright.
1267 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1269 * gdbserver/Makefile.in: Add stamp-h target.
1270 * gdbserver/configure.in: Create stamp-h.
1271 * gdbserver/configure: Regenerated.
1273 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1275 * gdbserver/inferiors.c: New file.
1276 * gdbserver/target.c: New file.
1277 * gdbserver/target.h: New file.
1278 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1280 * gdbserver/linux-low.c (inferior_pid): New static variable,
1281 moved from server.c.
1282 (linux_create_inferior): Renamed from create_inferior.
1283 Call add_inferior. Return 0 on success instead of a PID.
1284 (linux_attach): Renamed from myattach.
1285 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1286 (linux_thread_alive): Renamed from mythread_alive.
1287 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1289 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1290 (regsets_store_inferior_registers): Correct error message.
1291 Add missing ``return 0''.
1292 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1293 (linux_store_registers): Renamed from store_inferior_registers.
1294 (linux_read_memory): Renamed from read_inferior_memory.
1295 (linux_write_memory): Renamed from write_inferior_memory.
1296 (linux_target_ops): New structure.
1297 (initialize_low): Call set_target_ops ().
1298 * gdbserver/remote-utils.c (unhexify): New function.
1299 (hexify): New function.
1300 (input_interrupt): Send signals to ``signal_pid''.
1301 * gdbserver/server.c (inferior_pid): Remove.
1302 (start_inferior): Update create_inferior call.
1303 (attach_inferior): Call add_inferior.
1304 (handle_query): New function.
1305 (main): Call handle_query for `q' packets.
1306 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1307 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1309 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1311 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1313 * gdbserver/configure.in: Check for <string.h>
1314 * gdbserver/configure: Regenerate.
1315 * gdbserver/config.in: Regenerate.
1316 * gdbserver/gdbreplay.c: Include needed system headers.
1317 (remote_open): Remove strchr prototype.
1318 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1319 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1320 (supply_register_by_name): Likewise.
1321 (collect_register): Change buf argument to void *.
1322 (collect_register_by_name): Likewise.
1323 * gdbserver/regcache.h: Add missing prototypes.
1324 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1325 * gdbserver/server.c (handle_query): New function.
1326 (attached): New static variable, moved out of main.
1327 (main): Quiet longjmp clobber warnings.
1328 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1329 * gdbserver/utils.c (error): Remove NORETURN.
1332 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1334 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1335 after the last symbol in a block.
1337 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1339 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1340 is non zero as a found symbol.
1342 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1344 * findvar.c: Include "builtin-regs.h".
1345 (value_of_register): Call value_of_builtin_reg when applicable.
1346 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1347 (target_map_name_to_register): Call
1348 builtin_reg_map_name_to_regnum.
1349 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1350 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1351 (builtin_regs_h): Define.
1352 (builtin-regs.o): New target.
1353 (findvar.o): Add $(builtin_regs_h).
1354 * builtin-regs.c, builtin-regs.h: New files.
1355 * std-regs.c: New file.
1356 Partial fix for PR gdb/251.
1358 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1360 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1361 it's no longer required.
1363 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1365 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1367 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1369 From Jimi X <jimix@watson.ibm.com>:
1370 * rs6000-tdep.c (rs6000_software_single_step): Use
1371 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1372 and size. Use target_insert_breakpoint() and
1373 target_remove_breakpoint() to insert and remove breakpoints
1374 instead of explicit memory reads and writes.
1376 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1378 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1379 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1380 ELF_OBJECT_FORMAT ifdef.
1382 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1384 From Jimi X <jimix@watson.ibm.com>:
1385 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1387 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1389 From Jimi X <jimix@watson.ibm.com>:
1390 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1391 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1393 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1395 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1396 s/asprintf/xasprintf/.
1397 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1399 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1401 I believe Jeff Law denies responsability for this one:
1402 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1403 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1404 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1405 Work-around for PR gdb/366.
1407 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1409 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1410 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1411 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1413 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1415 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1416 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1419 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1421 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1424 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1426 * README (Reporting Bugs in GDB): Document the bug web page as the
1427 prefered way of submitting bugs.
1430 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1432 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1434 * gdbarch.h, gdbarch.c: Re-generate.
1436 2002-04-07 Andreas Schwab <schwab@suse.de>
1438 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1439 buffer to regcache_collect.
1441 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1443 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1444 * gdbarch.c, gdbarch.h: Re-generate.
1446 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1448 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1449 declaration. Fix -Werror.
1451 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1453 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1454 * gdbarch.c: Regenerate.
1456 2002-04-05 Michael Snyder <msnyder@redhat.com>
1458 * breakpoint.c (clear_command): Rewrite middle section to
1459 combine two loops with identical control conditions.
1460 Add a cleanup to eliminate a memory leak.
1461 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1463 2002-04-05 H.J. Lu (hjl@gnu.org)
1465 * solib-svr4.c (bkpt_names): Add "__start".
1467 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1469 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1470 as test for 64 bit target.
1472 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1474 * h8500-tdep.c (h8500_write_fp): Delete function.
1475 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1476 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1477 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1479 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1480 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1482 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1483 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1484 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1485 (d10v_write_fp): Delete function.
1486 * inferior.h (write_fp, generic_target_write_fp): Delete
1488 * regcache.c (generic_target_write_fp): Delete function.
1489 (write_fp): Delete function.
1490 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1491 * gdbarch.h, gdbarch.c: Regenerate.
1492 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1493 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1494 (sparc64_write_fp): Delete declaration.
1495 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1496 (h8500_write_fp): Delete declaration.
1498 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1500 * sparc-tdep.c (sparc64_write_fp): Delete.
1501 (sparc_push_dummy_frame): Replace write_fp call with code to store
1503 (sparc_gdbarch_init): Do not initialize write_fp.
1505 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1507 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1510 2002-03-29 Jim Blandy <jimb@redhat.com>
1512 * stack.c (get_selected_block): Add new argument `addr_in_block',
1513 used to return the exact code address we used to select the block,
1515 * blockframe.c (get_frame_block, get_current_block): Same.
1516 * frame.h (get_frame_block, get_current_block,
1517 get_selected_block): Update declarations.
1518 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1519 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1521 2002-04-05 Michael Snyder <msnyder@redhat.com>
1523 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1526 2002-04-05 J. Brobecker <brobecker@gnat.com>
1528 * utils.c (xfullpath): New function.
1529 * defs.h (xfullpath): Add declaration.
1530 * source.c (openp): Use xfullpath in place of gdb_realpath to
1531 avoid resolving the basename part of filenames when the
1532 associated file is a symbolic link. This fixes a potential
1533 inconsistency between the filenames known to GDB and the
1534 filenames it prints in the annotations.
1535 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1536 to be able to match a filename with either the real filename, or
1537 the name of any symbolic link to this file.
1538 (lookup_partial_symtab): Ditto.
1540 2002-04-04 Michael Snyder <msnyder@redhat.com>
1542 * breakpoint.c: Add support for hardware breakpoints in overlays.
1543 (overlay_events_enabled): New state variable.
1544 (insert_breakpoints): Use overlay_events_enabled to decide
1545 whether to attempt to set a breakpoint at the overlay load addr.
1546 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1547 (remove_breakpoint): Use overlay_events_enabled to decide
1548 whether breakpoints need to be removed from overlay load addr.
1549 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1550 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1551 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1552 disable_overlay_breakpoints): Update overlay_events_enabled.
1554 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1556 * dwarf2read.c (struct function_range): New.
1557 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1558 (check_cu_functions): New.
1559 (read_file_scope): Initialize global function lists.
1560 Call dwarf_decode_line after processing children.
1561 (read_func_scope): Add to global function list.
1562 (dwarf_decode_lines): Call check_cu_functions everywhere
1563 record_line is called. Call record_line with a linenumber
1564 of 0 to mark sequence ends.
1566 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1568 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1569 change sync with glibc.
1571 2002-04-03 Jim Blandy <jimb@redhat.com>
1573 * configure.in: Call AC_C_INLINE.
1574 * configure: Regenerated.
1576 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1578 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1579 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1581 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1583 * NEWS: Mention gcore support on FreeBSD/i386.
1585 * fbsd-proc.c: New file.
1586 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1587 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1589 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1592 2002-03-29 Jim Blandy <jimb@redhat.com>
1594 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1595 unescaped newlines in string literals, but newer ones don't. So
1598 2002-03-26 Michael Snyder <msnyder@redhat.com>
1599 Andrew Cagney <cagney@redhat.com>
1601 * cli/cli-dump.c: New file. Dump memory to file,
1602 restore file to memory.
1603 * cli/cli-dump.h: New file.
1604 * Makefile.in: Add rules, dependencies for cli-dump.o.
1605 * NEWS: Mention new commands.
1607 2002-03-28 Michael Snyder <msnyder@redhat.com>
1609 * symfile.c (symbol_file_add): Move test for null symbols to later.
1611 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1613 From veksler at il.ibm.com:
1614 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1615 the xstrduped original path.
1618 2002-03-27 Michael Snyder <msnyder@redhat.com>
1620 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1621 * infcmd.c (_initialize_infcmd): Ditto.
1622 * language.c (_initialize_language): Ditto.
1623 * symfile.c (_initialize_symfile): Ditto.
1624 * top.c (_init_main): Ditto.
1625 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1627 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1629 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1630 vector registers handling.
1631 (skip_prologue): Handle new AltiVec instructions. Fill in new
1632 fields of frame data.
1633 (frame_get_saved_regs): Fill in information for AltiVec registers.
1635 2002-03-27 Jim Blandy <jimb@redhat.com>
1637 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1638 a function; leave this macro here to invoke that function.
1639 (symbol_init_mangled_name): Declaration for that function.
1640 * symtab.c (symbol_init_mangled_name): New function.
1642 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1644 * valarith.c: Replace strerror with safe_strerror.
1645 * tracepoint.c: Ditto.
1647 * go32-nat.c: Ditto.
1651 2002-03-27 Andreas Schwab <schwab@suse.de>
1653 * event-top.c (command_line_handler): Remove useless if.
1655 2002-03-27 Andreas Jaeger <aj@suse.de>
1657 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1660 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1662 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1663 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1664 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1665 (x86_64_linux_dr_get_status, supply_gregset),
1666 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1667 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1668 (x86_64_register_info_table): Add.
1669 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1670 (x86_64_register_raw_size, x86_64_register_virtual_type),
1671 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1672 general x86_64_register_info_table.
1673 (i386_gdbarch_init): gdbarch_register_bytes is now set
1674 dynamicaly during initialization.
1675 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1676 * gdbserver/linux-x86-64-low.c: Ditto.
1678 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1680 * gdbserver/server.c (main): Call target_signal_to_host_p
1681 and target_signal_to_host on signals received from the remote.
1682 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1683 target_signal_from_host on signals sent to the remote.
1684 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1685 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1687 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1689 * signals/signals.c: Include "server.h" in gdbserver build.
1690 (target_signal_from_name): Don't use STREQ.
1691 (_initialize_signals): Likewise. Don't include function in
1694 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1696 * signals.c: Moved to...
1697 * signals/signals.c: Here.
1698 * Makefile (signals.o): Update.
1700 2002-03-26 Jeff Law (law@redhat.com)
1702 * somread.c (som_symtab_read): Remove some commented out code and
1703 updated related comments. Do not set the minimal symbol table to
1704 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1705 in a dynamic executable.
1706 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1707 where we are unable to find the minimal symbol for the given
1710 2002-03-25 Jeff Law (law@redhat.com)
1712 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1714 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1716 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1718 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1720 * command.h: Update copyright.
1721 (struct cmd_list_element): Replace definition with opaque
1723 (enum cmd_types): Document that it will eventually be moved to
1725 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1726 (MALLOCED_REPLACEMENT): Delete macro.
1727 * Makefile.in (cli_decode_h): Add $(command_h).
1728 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1729 * top.c: Include "cli/cli-decode.h".
1730 * completer.c: Include "cli/cli-decode.h".
1731 * maint.c: Include "cli/cli-decode.h".
1732 * cli/cli-decode.h: Include "command.h".
1733 (enum command_class): Delete.
1734 (enum cmd_types): Comment out.
1735 (enum cmd_auto_boolean): Delete.
1736 (enum var_types): Delete.
1738 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1740 * cli/cli-decode.c: Include "gdb_assert.h".
1741 (add_set_or_show_cmd): New static function.
1742 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1743 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1744 all fields, such as func, from the set command.
1746 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1748 * MAINTAINERS (sh-elf): Change warning flag to -w.
1750 2002-03-23 Andrew Cagney <cagney@redhat.com>
1752 * defs.h (error): Add printf format attribute.
1753 * thread-db.c (thread_from_lwp): Fix error format string.
1754 * stack.c (parse_frame_specification): Ditto.
1755 * cli/cli-decode.c (undef_cmd_error): Ditto.
1756 * scm-lang.c (scm_lookup_name): Ditto.
1757 * tracepoint.c (trace_error): Ditto.
1758 * remote-utils.c (usage): Ditto.
1759 * remote.c (compare_sections_command): Ditto.
1762 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1764 * gdbtypes.c (append_composite_type_field): New function.
1765 (init_composite_type): New function.
1766 * gdbtypes.h (append_composite_type_field): Declare.
1767 (init_composite_type): Ditto.
1769 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1771 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1773 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1774 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1775 structure returning convention for SYSV ABI case, but not
1776 for GNU/Linux, FreeBSD, or NetBSD.
1778 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1780 * symtab.h (lookup_block_symbol): Add mangled_name argument
1783 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1784 with new mangled_name argument.
1785 * linespec.c (decode_line_1): Likewise.
1786 * valops (value_of_this): Likewise.
1787 * symtab.c (lookup_transparent_type): Likewise.
1788 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1789 (lookup_symbol): If we are given a mangled name, pass it down
1790 to lookup_symbol_aux.
1791 (lookup_block_symbol): If we are given a mangled name to check
1792 against, only return symbols which match it.
1794 2002-03-22 Christopher Faylor <cgf@redhat.com>
1796 * win32-nat.c (child_create_inferior): Check for proper shell to use
1797 here, in case the user changes it on the fly.
1798 (_initialize_inftarg): Remove shell path considerations.
1800 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1802 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1803 for gdbarch_max_register_raw_size and max_register_virtual_size.
1804 Adjust copyright year.
1806 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1808 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1809 in a function to cover the entire beginning of the function
1810 as well if it does not already.
1812 2002-03-21 Tom Rix <trix@redhat.com>
1814 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1815 (rs6000_ptrace64): Renamed from ptrace64.
1817 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1819 * gdbserver/remote-utils.c (remote_open): Don't call
1820 getprotobyname, we're all using TCP here so just use
1822 * gdbserver/gdbreplay.c (remote_open): Ditto.
1824 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1826 * regcache.c (_initialize_regcache): No need to call
1827 build_regcache() at this time; it gets called whenever
1828 the gdbarch changes.
1830 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1832 * sparc-nat.c: Include sys/param.h where possible.
1834 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1837 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1838 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1839 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1841 * stabsread.c (rs6000_builtin_type): Likewise.
1842 (read_sun_floating_type): Likewise.
1844 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1846 * stabsread.c (read_member_functions): Remove skip code for duplicate
1847 constructor/destructor methods. Use standard parsing for these
1848 methods and just do not chain them to the list of methods after
1851 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1853 * coffread.c: Remove redundant static declarations. Replace
1854 occurrences of `PTR' with `void *'.
1855 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1856 * top.h (quit_cover): Likewise.
1857 * defs.h (catch_errors): Likewise.
1859 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1861 * defs.h (XMALLOC): Define.
1862 * gdb-events.sh (XMALLOC): Delete macro.
1863 * gdb-events.c, gdb-events.h: Regenerate.
1864 * gdbarch.sh (XMALLOC): Delete macro.
1865 * gdbarch.c: Regenerate.
1866 * serial.c (XMALLOC): Delete macro.
1867 * ui-file.c (XMALLOC): Ditto.
1868 * ser-unix.h (XMALLOC): Ditto.
1869 * sh-tdep.c (XMALLOC): Ditto.
1870 * ui-out.c (XMALLOC): Ditto.
1871 * utils.c (XMALLOC): Ditto.
1872 * i386-tdep.c (XMALLOC): Ditto.
1873 * gdb-events.c (XMALLOC): Ditto.
1874 * d10v-tdep.c (XMALLOC): Ditto.
1875 * cli-out.c (XMALLOC): Ditto.
1877 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1878 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1879 * ui-file.c, ui-out.c: Ditto.
1881 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1883 * command.h (struct cmd_list_element): Add field context.
1884 (set_cmd_context, get_cmd_context): Declare.
1885 * cli/cli-decode.h: Ditto.
1886 * cli/cli-decode.c (get_cmd_context): New function.
1887 (set_cmd_context): New function.
1888 (add_cmd): Initialize context.
1889 Part of fixing PR gdb/145 and PR gdb/146.
1891 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1893 * cli/cli-decode.c (cmd_type): New function.
1894 * command.h (cmd_type): Declare.
1895 * infrun.c (set_schedlock_func): Call function cmd_type.
1896 * kod.c (kod_set_os): Call cmd_type.
1897 * cris-tdep.c (cris_version_update): Use function cmd_type.
1898 (cris_mode_update, cris_abi_update): Ditto.
1900 * command.h: (execute_cmd_post_hook): Declare.
1901 (execute_cmd_pre_hook): Declare.
1902 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1903 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1904 functions. Execute pre/post hook while ensuring that afterwords
1906 * top.c (execute_command): Use execute_cmd_post_hook, and
1907 execute_cmd_pre_hook to execute pre/post commands.
1908 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1910 (hook_stop_stub): Call execute_cmd_pre_hook.
1912 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1914 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1915 set'' and this leads to a core dump. Move xstrdup of
1916 operating_system to after check that it is not NULL.
1918 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1920 * kod.c (kod_set_os): Remove unnecessary check that
1921 ``command->type'' is set_cmd.
1923 * valprint.c (set_input_radix): Use input_radix.
1924 (set_output_radix): Use output_radix.
1925 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1928 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1930 * value.h (struct value): Delete field ``substring_addr''. Change
1931 aligner fields to force_doublest_align, force_longest_align,
1932 force_core_addr_align and force_pointer_aligh.
1934 * value.h (struct value): Fix typo in above change.
1936 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1938 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1939 to fix internal_error from ``maintenance print architecture''.
1941 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1943 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1944 for gcc versions after gcc-2.8.1.
1946 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1948 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1949 for method resolution. Restore adjustment of ``this'' pointer after
1950 calling value_struct_elt, which was accidentally removed during the
1953 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1955 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1957 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1959 * value.h (value_of_register): Update.
1961 2002-03-14 Richard Henderson <rth@redhat.com>
1963 * configure.in: Detect declaration for canonicalize_file_name.
1964 * utils.c (canonicalize_file_name): Declare, if needed.
1965 (gdb_realpath): Prefer realpath if available and usable.
1966 * config.in, configure: Rebuild.
1968 2002-03-14 Richard Henderson <rth@redhat.com>
1970 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1971 a constant array bound.
1973 * MAINTAINERS: Add myself to write-after-approval.
1975 2002-03-14 Michael Snyder <msnyder@redhat.com>
1977 * symfile.c (syms_from_objfile): Return immediately if no syms.
1978 (symbol_file_add): Return immediately if no syms.
1979 (find_sym_fns): Return immediately if no syms.
1981 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1983 * gdbserver/remote-util.c (remote_open): Print remote-side's
1984 IP address when remote debugging over the network.
1986 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1988 * config/sparc/fbsd.mh: Fix copyright.
1989 * config/sparc/fbsd.mt: Likewise.
1991 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1993 * MAINTAINERS: Fix typo in name of gdb warnings option.
1994 (x86-64): Fix formating so that this can be parsed by awk.
1996 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1998 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1999 * defs.h: Include "gdb/signals.h".
2000 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2002 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2004 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2005 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2008 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2009 Don Howard <dhoward@redhat.com>
2011 * mips-tdep.c (ST0_FR): Define.
2012 (mips2_fp_compat): New function, temporarily disabled.
2013 (mips_read_fp_register_single): New function.
2014 (mips_read_fp_register_double): New function.
2015 (mips_print_register): Use them.
2016 (do_fp_register_row): Likewise.
2018 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2020 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2023 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2025 * stabsread.c (read_member_functions): Fix is_stub test for
2026 static member functions, improve comment.
2028 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2030 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2031 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2032 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2033 commands that set boolean values.
2034 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2035 (arm_rdi_resume): Always initialize PC.
2036 (arm_rdi_open): Don't use rslt as a boolean.
2037 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2038 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2039 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2040 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2042 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2044 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2045 * configure: Rebuilt.
2047 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2049 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2050 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2052 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2054 * cli/cli-decode.c (set_cmd_completer): New function.
2055 * command.h (set_cmd_completer): Declare.
2056 * cli/cli-decode.h (set_cmd_completer): Ditto.
2058 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2059 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2060 * win32-nat.c (_initialize_inftarg): Ditto.
2061 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2062 * proc-api.c (_initialize_proc_api): Ditto.
2063 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2064 * source.c (_initialize_source): Ditto.
2065 * exec.c (_initialize_exec): Ditto.
2066 * solib.c (_initialize_solib): Ditto.
2067 * top.c (init_main): Ditto.
2068 * tracepoint.c (_initialize_tracepoint): Ditto.
2069 * symfile.c (_initialize_symfile): Ditto.
2070 * printcmd.c (_initialize_printcmd): Ditto.
2071 * infcmd.c (_initialize_infcmd): Ditto.
2072 * corefile.c (_initialize_core): Ditto.
2074 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2076 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2078 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2080 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2082 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2084 * NEWS: Update headings, 5.2 has branched.
2086 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2088 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2089 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2090 (register_addr, REGISTER_RAW_SIZE): Likewise.
2091 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2092 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2094 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2096 * MAINTAINERS (x86-64): Add myself.
2097 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2098 changed value_ptr -> struct value *
2100 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2102 * configure.host (sparc64-*-freebsd): Add.
2103 * configure.tgt: Likewise.
2104 * config/sparc/fbsd.mh: New file.
2105 * config/sparc/fbsd.mt: Likewise.
2106 * config/sparc/nm-fbsd.h: Likewise.
2107 * config/sparc/tm-fbsd.h: Likewise.
2109 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2111 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2112 regformats/reg-s390x.dat.
2114 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2116 * utils.c: Add FIXME explaining true/false problem.
2118 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2120 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2122 2002-02-28 Michael Chastain <mec@shout.net>
2124 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2126 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2128 * gdbserver/linux-s390-low.c: New file.
2129 * regformats/reg-s390.dat: New file.
2130 * regformats/reg-s390x.dat: New file.
2131 * gdbserver/configure.srv: Add S/390.
2132 * gdbserver/Makefile.in: Add S/390.
2133 * configure.tgt: Enable gdbserver for S/390.
2135 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2137 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2138 first line of the doc string for "info dos", except at the end of
2139 the sentence, since the short help stops at the first period.
2141 2002-02-28 Jason Merrill <jason@redhat.com>
2143 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2145 2002-02-27 Fred Fish <fnf@redhat.com>
2147 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2148 comment (dumy -> dummy).
2150 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2152 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2154 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2156 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2158 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2160 * gdbserver/acconfig.h: New file.
2161 * gdbserver/i387-fp.c: New file.
2162 * gdbserver/i387-fp.h: New file.
2163 * gdbserver/linux-x86-64.c: New file.
2164 * regformats/reg-x86-64.dat: New file.
2165 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2166 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2167 * gdbserver/configure.in: Add support for regsets.
2168 * gdbserver/config.in: Regenerate.
2169 * gdbserver/configure: Regenerate.
2170 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2171 * gdbserver/linux-low.h: New file.
2172 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2174 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2175 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2176 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2177 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2178 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2179 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2180 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2181 "i387-fp.h". Add PTRACE_GETREGS and friends.
2182 * gdbserver/regcache.c (supply_register): New function.
2183 (supply_register_by_name): New function.
2184 (collect_register): New function.
2185 (collect_register_by_name): New function.
2187 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2189 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2190 (config.status): Add configure.srv dependency.
2191 (server_h): Add config.h dependency.
2193 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2195 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2196 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2197 * gdbserver/configure.srv: Change i386-*-linux* to use
2200 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2202 * x86-64-tdep.c: Re-indent. Update copyright date.
2204 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2206 From Michal Ludvig <mludvig@suse.cz>:
2207 * x86-64-tdep.c (value.h): Delete.
2208 (gdb_assert.h): Include.
2209 (x86_64_register_convert_to_virtual,
2210 x86_64_register_convert_to_raw ): Add check which lets only
2211 floating-point values to be converted.
2212 (value_push): Delete.
2213 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2214 (i386_gdbarch_init): Number of register_bytes fixed.
2216 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2218 * MAINTAINERS: Add x86-64 target.
2220 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2222 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2223 * osfsolib.c (solib_map_sections): Ditto.
2224 * irix5-nat.c (solib_map_sections): Ditto.
2225 * corelow.c (gdb_check_format): Ditto.
2226 * symfile.c (symfile_bfd_open): Ditto.
2227 * solib.c (solib_map_sections): Ditto.
2230 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2232 * remote.c (_initialize_remote): By default, disable ``e'' and
2233 ``E'' step out-of-range packets.
2235 2002-02-26 Andreas Schwab <schwab@suse.de>
2237 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2238 m68k_linux_frame_saved_pc.
2239 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2241 (SIGCONTEXT_PC_OFFSET): Remove.
2242 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2243 m68k_linux_sigtramp_saved_pc): New functions.
2244 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2245 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2246 (UCONTEXT_PC_OFFSET): Define.
2247 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2248 non-RT and RT signal trampolines.
2250 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2252 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2253 (TARGET_NBPG, STACK_END_ADDR): Delete
2254 (VARIABLES_INSIDE_BLOCK): Delete.
2256 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2258 * utils.c (perror_with_name): Make string parameter constant.
2259 (print_sys_errmsg): Ditto.
2261 * defs.h (perror_with_name): Update.
2262 (print_sys_errmsg): Update.
2265 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2267 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2268 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2270 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2272 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2273 if it already matches the current architecture from the exec file.
2274 Include arch-utils.h for gdbarch_info_init prototype.
2275 * Makefile.in (rs6000-nat.o): Update dependencies.
2277 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2279 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2280 list of exported variables.
2282 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2284 * gdbserver/configure.srv: New file.
2285 * gdbserver/configure.in: Use configure.srv instead
2286 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2288 * gdbserver/configure: Regenerated.
2289 * gdbserver/terminal.h: New file.
2290 * gdbserver/Makefile.in: Update for configure changes. Remove
2291 more unneeded include paths.
2293 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2295 From wiz at danbala:
2296 * config/sparc/tm-sp64.h: Fix grammar and typos.
2299 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2301 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2302 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2303 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2304 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2305 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2306 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2307 * s390-tdep.c: Ditto.
2308 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2309 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2310 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2311 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2312 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2313 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2314 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2315 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2316 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2317 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2320 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2322 * lin-thread.c: Delete file.
2323 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2324 to gdb_proc_service.h.
2325 * configure: Re-generate.
2327 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2328 * serial.c (serial_open): Delete check for "ocd".
2331 * Makefile.in (linux-thread.o): Delete target.
2332 * linux-thread.c: Delete file.
2334 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2335 renamed SH files to be consistent.
2337 * symtab.c (sort_search_symbols): Use xfree.
2339 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2341 * arm-linux-tdep.c (arm_linux_init_abi): Register
2342 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2343 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2344 definition with undef, since we don't want the sysvr4 definition.
2345 (SKIP_TRAMPOLINE_CODE): Likewise.
2347 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2349 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2351 * configure.in: (AC_CHECK_FUNCS) Added test for
2352 canonicalize_file_name Regenerated.
2353 * config.in, configure: Regenerated.
2354 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2355 defined use canonicalize_file_name.
2357 2002-02-23 Michael Chastain <mec@shout.net>
2359 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2361 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2363 * README: Remove references to cygnus.com.
2364 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2365 dot com'' form. Remove references to cygnus.com and sourceware.
2367 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2369 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2370 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2371 1003.1-2001 no longer allows "head -1".
2372 * gdb/Makefile.in (version.c): Likewise.
2373 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2374 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2375 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2377 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2379 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2380 * command.h (cmd_cfunc_eq): Declare.
2381 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2383 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2384 ``struct cmd_list_element *''.
2385 * cli/cli-cmds.c (is_complete_command): Update. Use
2387 * top.c (execute_command): Pass the command to
2388 is_complete_command.
2389 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2391 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2393 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2394 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2395 architecture defines.
2396 * s390-tdep.c (s390_gdbarch_init): Likewise.
2398 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2400 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2401 (arm_linux_push_arguments): Likewise.
2402 (arm_linux_init_abi): Register them. Also register linux-specific
2404 (find_minsym_and_objfile): Use strcmp, not STREQ.
2405 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2406 (arm_linux_call_dummy_words): Delete declaration.
2407 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2408 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2410 (LOWEST_PC): Delete.
2412 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2414 * maint.c (print_section_info): Do not prepend `0x' to filepos
2415 output, it will be handled by local_hex_string_custom.
2417 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2419 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2420 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2421 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2423 2002-02-22 Jim Blandy <jimb@redhat.com>
2425 Indicate that the bcache functions don't change the strings
2427 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2428 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2430 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2432 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2434 2002-02-21 Christopher Faylor <cgf@redhat.com>
2436 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2437 find the complete path to a loaded DLL.
2439 2002-02-21 Fred Fish <fnf@redhat.com>
2441 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2442 that marks the end of the range of a function, enter a line number
2443 entry that has a line number of zero and a PC offset that matches
2444 the end of the function. This starts a range of PC's for which no
2445 line number information is known.
2446 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2447 PC's for which no line number info is found (line number is zero)
2448 then we didn't find any valid line information.
2449 * symtab.h: Document use of zero line number entry.
2451 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2453 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2454 (have_ptrace_getvrregs): Define for run time checks.
2455 (gdb_vrregset_t): New type for Altivec register handling.
2456 (fetch_register, store_register): Fetch/store altivec register
2458 (fetch_altivec_register, store_altivec_register): New functions.
2459 (supply_vrregset, fill_vrregset): New functions.
2460 (fetch_altivec_registers, store_altivec_registers): New functions.
2461 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2464 2002-02-21 Jiri Smid <smid@suse.cz>
2466 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2468 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2470 * Makefile.in (armnbsd-nat.o): Update dependencies.
2471 * armnbsd-nat.c (supply_gregset): New function. Common code to
2472 supply the integer register set.
2473 (supply_fparegset): New function. Similar for FPA registers.
2474 (fetch_regs, fetch_fp_regs): Use them.
2475 (fetch_core_registers): Likewise.
2476 (fetch_elfcore_registers): New function.
2477 (arm_netbsd_elfcore_fns): New core-file type specification.
2478 (_initialize_arm_netbsd_nat): Register it.
2480 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2482 * armnbsd-nat.c: Include gdbcore.h.
2483 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2484 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2485 'void' to declaration, to shut up ARI.
2486 (fetch_core_registers): Make static. Rewrite using supply_register.
2487 (arm_netbsd_core_fns): New core-file type specification.
2488 (_initialize_arm_netbsd_nat): New function.
2490 2002-02-21 Christopher Faylor <cgf@redhat.com>
2492 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2495 2002-02-20 Christopher Faylor <cgf@redhat.com>
2497 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2500 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2502 * jv-exp.y (parse_number): Change type of implicit longs
2503 to builtin_type_uint64.
2505 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2507 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2508 to be an integer instead of a `union wait'.
2510 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2512 * mips-linux-nat.c: Call the operating system GNU/Linux.
2513 * mips-linux-tdep.c: Likewise.
2514 * mips-tdep.c: Likewise.
2516 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2519 * jv-exp.y (parse_number): Handle 64-bit integers.
2521 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2523 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2524 AC_STDC_HEADERS to AC_HEADER_STDC.
2525 * gdbserver/configure: Regenerated.
2527 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2529 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2531 * sparc-tdep.c (get_longjmp_target): Likewise.
2533 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2535 * News: Add news about ARM and Multi-arch. Mention the new target
2538 2002-02-19 Jim Blandy <jimb@redhat.com>
2540 * stabsread.c (error_type_complaint): Improve error message.
2542 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2544 * gdbserver/README: Update documentation.
2545 * gdbserver/configure.in: Update configury to match documentation.
2546 * gdbserver/Makefile.in: Likewise.
2547 * gdbserver/configure: Regenerated.
2548 * gdbserver/aclocal.m4: New file, generated by aclocal.
2549 * gdbserver/config.in: New file, generated by autoheader.
2551 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2553 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2556 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2558 * arm-tdep.h (enum arm_float_model): New enum.
2559 (struct gdbarch_tdep): Add fp_model.
2560 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2561 up floating-point conversions until we know the floating-point model
2562 in use by the inferior. Don't complain about being unable to
2563 determine the ABI of the inferior when we don't have one.
2564 (arm_extract_return_value): Support different floating-point models.
2565 (arm_store_return_value): Likewise.
2566 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2568 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2570 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2572 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2573 of ``current_gdbarch''.
2575 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2577 * armnbsd-nat.c : ANSIfy all function declarations.
2578 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2579 (fetch_inferior_registers): Re-implement in terms of above.
2580 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2581 (store_inferior_registers): Re-implement in terms of above.
2583 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2585 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2587 * arm-linux-tdep.c: Likewise.
2588 * config/arm/tm-linux.h: Likewise.
2590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2592 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2593 * config/arm/nbsd.mt (TM_FILE): Delete.
2594 * config/arm/tm-nbsd.h: Delete.
2596 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2598 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2599 Initialize CALL_DUMMY_LENGTH.
2601 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2603 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2605 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2606 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2607 defines one thing and that is incorrect for this port.
2608 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2610 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2612 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2614 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2616 * win32-nat.c (display_selector): New function. Displays information
2617 about the information returned by GetThreadSelectorEntry API function.
2618 (display_selectors): New function. Displays the infomation of
2619 the selector given as argument, or of CS, DS ans FS selectors
2620 if no argument is given.
2621 ( _initialize_inftarg): Add "w32" as info prefix command.
2622 Add "info w32 selector" as command calling display_selectors.
2624 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2626 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2627 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2630 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2632 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2634 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2636 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2637 (arm_fix_call_dummy): Call it.
2638 (arm_call_dummy_breakpoint_offset): Delete.
2639 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2640 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2642 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2644 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2645 Default to func_frame_chain_valid.
2646 * gdbarch.h, gdbarch.c: Re-generate.
2647 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2649 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2651 * ppc-linux-nat.c: Update copyright.
2652 (fetch_register, store_register): Add tid parameter, don't compute
2654 (fetch_ppc_registers, store_ppc_registers): Add tid
2655 parameter. Pass it along to callees.
2656 (fetch_inferior_registers, store_inferior_registers): Compute tid
2657 here, and pass it to calleed functions.
2658 (fill_gregset, supply_fpregset): Clean up formatting.
2660 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2662 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2663 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2665 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2667 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2668 * gdbarch.c gdbarch.h: Regenerate.
2669 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2671 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2672 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2673 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2675 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2676 * arm-tdep.c (arm_get_longjmp_target): New function.
2677 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2678 this to a positive value register arm_get_longjmp_target as the
2680 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2681 (arm_linux_init_abi): Set up longjmp description in tdep.
2682 * armnbsd-nat.c (get_longjmp_target): Delete.
2683 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2684 description in tdep.
2685 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2686 (get_longjmp_target): Delete declaration.
2687 (GET_LONGJMP_TARGET): Delete.
2688 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2689 (GET_LONGJMP_TARGET): Delete.
2691 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2693 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2694 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2695 of ``current_gdbarch''.
2697 2002-02-17 Tom Tromey <tromey@redhat.com>
2699 * cli/cli-cmds.c (compare_strings): New function.
2700 (complete_command): Only print each unique item once.
2701 * completer.h (complete_line): Declare.
2702 * completer.c (complete_line): New function.
2703 (line_completion_function): Use it.
2705 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2707 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2708 * gdbarch.h, gdbarch.c: Re-generate.
2710 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2712 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2714 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2716 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2717 * valops.c (value_arg_coerce): Don't take the address of a reference
2718 to convert an argument to a reference.
2720 2002-02-15 Christopher Faylor <cgf@redhat.com>
2722 * win32-nat.c (get_image_name): New function.
2723 (handle_load_dll): Use get_image_name function.
2724 (get_child_debug_event): Avoid registering debug events until possibly
2725 execed process is started.
2726 (child_create_inferior): Allow invocation via shell so that command
2727 line redirection, etc. works ok.
2728 (_initialize_inftarg): Add new command: "set shell" to control whether
2729 a shell is used to start a process.
2731 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2733 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2734 instead of find_register_by_number.
2735 (cannot_store_register): Likewise.
2737 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2739 * dwarf2read.c: Replace fprintf (stderr, ...) by
2740 fprintf_unfiltered (gdb_stderr, ...).
2742 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2744 * gdbserver/gdbserver.1: Document --attach.
2746 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2748 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2750 * arm-tdep.c (arm_default_arm_le_breakpoint)
2751 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2752 (arm_default_thumb_be_breakpoint): New. Initialize them from
2753 traditional breakpoint defines.
2754 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2755 (arm_gdbarch_init): Initialize new breakpoint variables.
2756 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2757 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2758 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2759 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2761 (arm_netbsd_init_abi_common): ... here; new function.
2762 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2763 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2764 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2765 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2767 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2769 * arm-tdep.h (enum arm_abi): New enum.
2770 (struct gdbarch_tdep): New structure.
2771 (LOWEST_PC): Provide a default.
2772 (arm_gdbarch_register_os_abi): Declare new function.
2773 * arm-tdep.c (arm_abi_names): New array.
2774 (process_note_abi_tag_sections): New function.
2775 (get_elfosabi): New function.
2776 (arm_gdbarch_register_os_abi): New function.
2777 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2778 support for that ABI has been built in, then call the appropriate
2779 configuration routine. Use gdbarch_num_regs() to get the number
2781 (arm_dump_tdep): New function.
2782 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2783 place-holder functions.
2784 (_initialize_arm_tdep): Register them.
2785 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2787 * armnbsd-tdep.c: New file.
2788 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2789 * config/arm/nbsd.mt (TDEPFILES): Add it.
2790 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2792 * armnbsd-nat.c: Include regcache.h.
2793 * Makefile.in (armnbsd-nat.o): Update dependency list.
2795 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2797 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2799 * gdbserver/Makefile.in: Fix typos in target rules.
2801 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2803 Fix part of PR gdb/267.
2804 * linespec.c (find_methods): Handle constructors specially for now.
2806 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2808 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2810 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2811 standard_coerce_float_to_double().
2813 2002-02-14 Christopher Faylor <cgf@redhat.com>
2815 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2818 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2820 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2821 find_variant_by_name, because it confuses the multiarch
2822 framework. Return NULL if there isn't an architecture with the
2823 user supplied name, instead of forcing a different one without
2824 recording the change with the multiarch machinery.
2825 (find_variant_by_name): Delete.
2827 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2829 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2830 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2832 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2834 * stack.c (print_frame_info_base): When calling
2835 print_frame_info_listing_hook, set current_source_symtab.
2837 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2839 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2840 and remove unused $(INCLUDE_DIR).
2841 Add regcache.c to OBS.
2842 Add generated register protocol files to clean target.
2843 Update dependencies for new objects, obsolete old target code.
2845 * gdbserver/linux-low.c: Remove all platform-specific code to
2846 new files. Remove various dead code. Update to use regcache
2848 * gdbserver/remote-utils.c (fromhex): Add return statement
2850 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2852 (input_interrupt): Add integer parameter to match prototype
2853 of a signal handler.
2854 (outreg): Use register_data ().
2855 (prepare_resume_reply): Use gdbserver_expedite_regs.
2856 * gdbserver/server.c (main): Dynamically allocate own_buf because
2857 PBUFSIZ is no longer constant. Use registers_to_string () and
2858 registers_from_string ().
2859 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2860 for error (), fatal (), and warning (). Update definition of
2861 PBUFSIZ to use regcache functionality. Add include guard.
2862 * gdbserver/utils.c (fatal): Add missing ``const''.
2863 (warning): New function.
2865 * regformats/regdat.sh: Include "regcache.h" in generated files.
2866 Provide init_registers () function.
2867 * regformats/regdef.h: Add prototype for set_register_cache ().
2870 * gdbserver/linux-arm-low.c: New file.
2871 * gdbserver/linux-i386-low.c: New file.
2872 * gdbserver/linux-ia64-low.c: New file.
2873 * gdbserver/linux-m68k-low.c: New file.
2874 * gdbserver/linux-mips-low.c: New file.
2875 * gdbserver/linux-ppc-low.c: New file.
2876 * gdbserver/linux-sh-low.c: New file.
2878 * gdbserver/regcache.c: New file.
2879 * gdbserver/regcache.h: New file.
2881 * gdbserver/low-linux.c: Removed obsolete file.
2883 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2885 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2886 * config/i386/linux.mt: Likewise.
2887 * config/ia64/linux.mt: Likewise.
2888 * config/m68k/linux.mh: Likewise.
2889 * config/powerpc/linux.mh: Likewise.
2890 * config/mips/linux.mt: Likewise.
2892 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2894 * config/i386/i386lynx.mh: Mark gdbserver variables
2895 as (currently) obsolete for this target.
2896 * config/i386/nbsd.mt: Likewise.
2897 * config/i386/nbsdelf.mt: Likewise.
2898 * config/m32r/m32r.mt: Likewise.
2899 * config/m68k/m68klynx.mh: Likewise.
2900 * config/m68k/nbsd.mt: Likewise.
2901 * config/m68k/sun3os4.mh: Likewise.
2902 * config/mips/vr5000.mt: Likewise.
2903 * config/ns32k/nbsd.mt: Likewise.
2904 * config/pa/hppabsd.mh: Likewise.
2905 * config/pa/hppaosf.mh: Likewise.
2906 * config/powerpc/nbsd.mt: Likewise.
2907 * config/rs6000/rs6000lynx.mh: Likewise.
2908 * config/s390/s390.mt: Likewise.
2909 * config/s390/s390x.mt: Likewise.
2910 * config/sparc/sparclynx.mh: Likewise.
2911 * config/sparc/sun4os4.mh: Likewise.
2912 * config/i386/x86-64linux.mt: Likewise.
2913 * config/sparc/linux.mh: Likewise.
2915 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2917 * configure.tgt: Configure gdbserver only for known working
2918 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2919 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2920 SUBDIRS if it is configured. Update comment for ${nativefile}.
2921 * configure: Regenerated.
2923 2002-02-13 Michael Snyder <msnyder@redhat.com>
2925 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2927 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2928 (default_gcore_mach): Just return 0, work around a problem in bfd.
2929 (default_gcore_target): OK to return NULL if exec_bfd is null.
2930 (make_mem_sec): Use a cast, avoid a warning.
2932 * procfs.c (find_memory_regions_callback): Use a cast instead of
2933 calling host_pointer_to_address (which complains if
2934 sizeof (host pointer) != sizeof (target pointer)).
2935 (procfs_make_note_section): Avoid overflow in psargs string.
2937 * procfs.c (procfs_make_note_section): Make the default
2938 implementation return an error.
2940 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2942 * procfs.c (procfs_make_note_section): Provide a default definition
2943 (for alpha-dec-osf4.0f). Fix typos.
2945 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2947 * linux-proc.c: Add include of regcache.h.
2948 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2950 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2952 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2953 * memattr.c (create_mem_region): Disallow useless empty region.
2954 Regions are half-open intervals, so allow [A..B) [B..C) as
2957 2002-02-13 Michael Chastain <mec@shout.net>
2959 * defs.h: Kill CONST_PTR.
2960 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2961 * c-lang.c (c_builtin_types): Likewise.
2962 * ch-lang.c (ch_builtin_types): Likewise.
2963 * f-lang.c (f_builtin_types): Likewise.
2964 * language.c (unknown_builtin_types): Likewise.
2965 * m2-lang.c (m2_builtin_types): Likewise.
2966 * p-lang.c (pascal_builtin_types): Likewise.
2967 * scm-lang.c (c_builtin_types): Likewise.
2969 2002-02-13 Keith Seitz <keiths@redhat.com>
2971 * arm-tdep.h (arm_get_next_pc): Add declaration.
2973 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2975 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2976 with other related struct-returning functions.
2977 (arm_extract_struct_value_address): New function.
2978 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2979 initialize float_format, double_format and long_double_format as
2980 appropriate to the endianness of the target.
2981 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2982 (arm_use_struct_convention): Delete declaration.
2983 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2985 2002-02-13 Keith Seitz <keiths@redhat.com>
2987 * defs.h (core_addr_to_string_nz): New function.
2989 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2991 Apply missing bits of 2002-01-15 patch.
2992 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2993 (fill_fpregset): Use i387_fill_fsave.
2995 2002-02-12 Keith Seitz <keiths@redhat.com>
2997 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2998 (core_addr_to_string_nz): New function.
3000 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3002 * arm-linux-nat.c: Really include arm-tdep.h.
3003 * config/arm/tm-linux.h (struct type, struct value): Declare.
3005 2002-02-11 Michael Snyder <msnyder@redhat.com>
3007 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3008 (gcore section): Ifdef for Solaris and Unixware only.
3009 (procfs_do_thread_registers): Unixware needs one lwpstatus
3010 per thread (not one prstatus or pstatus).
3011 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3012 not over all gdb threads. For unixware, call elfcore_write_pstatus
3013 once before iterating over threads.
3015 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3017 * arm-tdep.h: New file.
3018 * arm-tdep.c: Include arm-tdep.h.
3019 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3020 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3021 (arm_print_float_info, arm_register_type, convert_to_extended)
3022 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3023 (arm_extract_return_value, arm_register_name): Make static.
3024 (arm_software_single_step): Similarly. Fix types in declaration.
3025 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3026 (arm_store_return_value, arm_store_struct_return): New functions.
3027 (arm_gdbarch_init): Register the above functions. Also register
3028 call_dummy_start_offset, sizeof_call_dummy_words,
3029 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3030 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3031 max_register_virtual_size, register_size. Set up
3032 prologue_cache.saved_regs here, rather than ...
3033 (_initialize_arm_tdep): ... here.
3034 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3036 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3037 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3038 (arm_print_float_info, arm_register_type, convert_to_extended)
3039 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3040 (arm_extract_return_value, arm_register_name): Delete declarations.
3041 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3042 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3043 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3044 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3045 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3046 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3047 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3048 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3049 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3050 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3051 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3052 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3054 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3055 * remote-rdi.c remote-rdp.c: Likewise.
3056 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3057 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3058 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3061 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3062 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3063 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3064 from non-ARM_ prefixed definitions.
3065 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3067 * remote-rdi.c remote-rdp.c: Likewise.
3068 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3070 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3072 * arm-tdep.c (arm_frameless_function_invocation)
3073 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3074 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3075 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3076 (arm_pop_frame, arm_get_next_pc): Make static.
3077 (arm_gdbarch_init): Register above in gdbarch structure.
3078 (arm_read_fp): Renamed from arm_target_read_fp.
3079 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3080 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3081 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3082 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3083 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3084 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3085 (arm_pc_is_thumb_dummy): Delete declarations.
3086 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3087 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3088 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3089 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3091 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3093 * symtab.c (compare_search_syms): New function.
3094 (sort_search_symbols): New function.
3095 (search_symbols): Sort symbols after searching rather than
3098 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3100 * NEWS: Linux -> GNU/Linux.
3102 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3104 * gdbarch.sh: For for level one methods, disallow a definition
3105 when partially multi-arched. Add comments explaining rationale.
3106 * gdbarch.h: Re-generate.
3108 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3110 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3115 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3117 * gdbarch.c: Re-generate.
3119 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3121 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3122 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3125 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3127 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3129 (PUSH_ARGUMENTS): Switch to using predefault.
3130 * gdbarch.c: Regenerate.
3132 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3134 * valops.c (PUSH_ARGUMENTS): Delete definition.
3135 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3136 partial. Default to default_push_arguments.
3137 * gdbarch.h, gdbarch.c: Regenerate.
3139 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3141 * defs.h (throw_exception): Rename return_to_top_level. Update
3143 * utils.c (error_stream, internal_verror, quit): Ditto.
3144 * top.c (throw_exception, catcher): Ditto.
3145 * sparclet-rom.c (sparclet_load): Ditto.
3146 * remote.c (interrupt_query, minitelnet): Ditto.
3147 * remote-sds.c (interrupt_query): Ditto.
3148 * remote-mips.c (mips_error, mips_kill): Ditto.
3149 * ocd.c (interrupt_query): Ditto.
3150 * monitor.c (monitor_interrupt_query): Ditto.
3151 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3152 * target.h: Update comment.
3154 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3156 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3158 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3159 default_double_format.
3160 * gdbarch.h, gdbarch.c: Re-generate.
3161 * findvar.c (floatformat_unknown): Delete variable definition.
3162 * doublest.h (floatformat_unknown): Delete variable declaration.
3164 2002-02-09 Jim Blandy <jimb@redhat.com>
3166 * stabsread.c (read_type): Add code to parse Sun's syntax for
3167 prototyped function types.
3169 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3171 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3172 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3174 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3176 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3177 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3178 now _initialize_xcoffsolib gets called again and overrides the
3179 commands from solib.c in a native configuration.
3181 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3183 * doublest.c (store_typed_floating): Don't try to return a value.
3186 2002-02-08 Jim Blandy <jimb@redhat.com>
3188 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3189 is prototyped and has no arguments, print its argument list as
3192 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3194 * MAINTAINERS (write-after-approval): Add myself.
3195 (paper-trail): I've escaped!
3197 2002-02-08 Christopher Faylor <cgf@redhat.com>
3199 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3201 (_initialize_check_for_gdb_ini): Ditto.
3203 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3205 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3206 xaprintf -> xasprintf.
3208 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3210 * win32-nat.c: Remove use of printf and sprintf functions.
3212 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3214 * arm-tdep.c (arm_frame_chain_valid): Make static.
3215 (arm_push_arguments): Likewise.
3216 (arm_gdbarch_init): New function.
3217 (_initialize_arm_tdep): Call it.
3218 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3219 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3220 (FRAME_CHAIN_VALID): Delete.
3221 (arm_frame_chain_valid): Delete declaration.
3222 (PUSH_ARGUMENTS): Delete.
3223 (arm_push_arguments): Delete declaration.
3224 (CALL_DUMMY_P): Delete.
3226 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3227 Corinna Vinschen <vinschen@redhat.com>
3229 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3230 on builtin float types.
3232 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3234 * utils.c: Include <curses.h> before "bfd.h".
3235 * tui/tui-hooks.c: Likewise.
3236 * tui/tui.c: Likewise.
3237 * tui/tuiCommand.c: Likewise.
3238 * tui/tuiData.c: Likewise.
3239 * tui/tuiDataWin.c: Likewise.
3240 * tui/tuiDisassem.c: Likewise.
3241 * tui/tuiGeneralWin.c: Likewise.
3242 * tui/tuiIO.c: Likewise.
3243 * tui/tuiLayout.c: Likewise.
3244 * tui/tuiRegs.c: Likewise.
3245 * tui/tuiSource.c: Likewise.
3246 * tui/tuiSourceWin.c: Likewise.
3247 * tui/tuiStack.c: Likewise.
3248 * tui/tuiWin.c: Likewise.
3250 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3252 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3253 to include space for pseudoregs as well. Update loops accordingly.
3254 (sh_fp_frame_init_saved_regs): Ditto.
3255 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3257 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3259 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3260 Add Richard Earnshaw to Arm maintainers.
3262 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3264 * defs.h (warning_begin): Delete declaration.
3266 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3269 2002-02-07 Michael Snyder <msnyder@redhat.com>
3271 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3272 Logic bug, remove misplaced else.
3274 2002-02-07 Klee Dienes <klee@apple.com>
3276 * fork-inferior.c (fork_inferior): Add '!' to the list of
3277 characters that need to be quoted when building a string for the
3278 shell. Quote '!' specifically with a backslash, since CSH chokes
3279 when trying to evaluate "str!str".
3281 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3283 * rdi-share/host.h: Only provide a typedef for bool if it is not
3286 2002-02-04 Michael Snyder <msnyder@redhat.com>
3288 * breakpoint.h (enum bptype): Add new overlay event bp type.
3289 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3291 * breakpoint.c (create_internal_breakpoint): New function.
3292 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3293 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3294 (create_thread_event_breakpoint): Ditto.
3295 (create_solib_event_breakpoint): Ditto.
3296 (create_overlay_event_breakpoint): New function.
3297 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3298 (update_breakpoints_after_exec): Delete and re-initialize
3299 overlay event breakpoints after an exec. Add FIXME comment
3300 about longjmp breakpoint.
3301 (print_it_typical): Ignore overlay event breakpoints.
3302 (print_one_breakpoint): Ditto.
3304 (bpstat_what): Do not stop for overlay event breakpoints.
3305 (delete_breakpoint): Don't delete overlay event breakpoints.
3306 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3307 (breakpoint_re_set): Re-create overlay event breakpoint.
3309 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3310 (overlay_manual_command): Disable overlay breakpoints.
3311 (overlay_off_command): Disable overlay breakpoints.
3313 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3315 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3316 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3317 to here from config/tm-arm.h.
3318 (coff_sym_is_thumb): Make static.
3319 (arm_elf_make_msymbol_special): New function.
3320 (arm_coff_make_msymbol_special): New function.
3321 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3322 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3323 (coff_sym_is_thumb): Delete declaration.
3324 (arm_elf_make_msymbol_special): Declare.
3325 (arm_coff_make_msymbol_special): Declare.
3326 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3327 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3329 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3331 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3333 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3335 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3336 * gdbarch.c gdbarch.h: Regenerate.
3337 * arch-utils.c (default_print_float_info): New function.
3338 * arch-utils.h (default_print_float_info): Prototype it.
3339 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3340 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3341 (PRINT_FLOAT_INFO): Document it.
3343 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3344 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3345 (PRINT_FLOAT_INFO): Define.
3347 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3349 * win32-nat.c (_initialize_check_for_gdb_ini):
3350 Add typecast to sprintf argument to suppress a warning.
3352 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3354 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3355 to allow easier handling of pass state.
3356 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3357 that gives exception name and address.
3358 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3359 and set last_sig value to ourstatus->value.sig. Some missing
3361 (child_continue): Correctly report continue_status.
3362 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3363 TARGET_SIGNAL_0 (new default value).
3364 (child_resume): consider sig argument passed to decide if
3365 the exception should be passed to debuggee or not.
3367 2002-02-05 Michael Snyder <msnyder@redhat.com>
3369 * regcache.c (fetch_register): Call target_fetch_register
3370 only if we don't call FETCH_PSEUDO_REGISTER.
3371 (store_register): Call target_store_register only if we
3372 don't call STORE_PSEUDO_REGISTER.
3374 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3376 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3377 ELF_MAKE_MSYMBOL_SPECIAL.
3378 * gdbarch.c, gdbarch.h: Regenerate.
3379 * arch-utils.c (default_make_msymbol_special): New function.
3380 * arch-utils.h (default_make_msymbol_special): Export.
3381 * elfread.c (elf_symtab_read): Compile use of
3382 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3384 * coffread.c (coff_symtab_read): Ditto, for
3385 COFF_MAKE_MSYMBOL_SPECIAL.
3387 2002-02-05 Jim Blandy <jimb@redhat.com>
3389 * solib-svr4.c (svr4_truncate_ptr): New function.
3390 (svr4_relocate_section_addresses): Do the address arithmetic with
3391 the appropriate truncation for target addresses, even when
3392 CORE_ADDR is larger than a target address.
3394 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3396 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3399 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3401 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3404 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3406 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3408 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3410 * gdbserver/linux-low.c: Remove unused include files.
3412 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3414 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3415 (read_inferior_memory): Use it.
3416 (write_inferior_memory): Likewise.
3418 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3420 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3421 grubbing through sys_errlist.
3423 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3425 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3427 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3428 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3430 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3432 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3433 (do_sfunc, set_cmd_sfunc): New functions.
3435 * command.h (struct cmd_list_element): Add field func.
3436 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3437 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3438 * cli/cli-decode.h: Ditto.
3440 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3441 (help_all, help_cmd_list): Ditto.
3442 (find_cmd, complete_on_cmdlist): Ditto.
3443 * top.c (execute_command): Ditto.
3445 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3448 * infcmd.c (notice_args_read): Fix function signature.
3450 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3451 * cli/cli-decode.c (add_set_cmd): Ditto.
3452 * utils.c (initialize_utils): Ditto.
3453 * maint.c (_initialize_maint_cmds): Ditto.
3454 * infrun.c (_initialize_infrun): Ditto.
3455 * demangle.c (_initialize_demangler): Ditto.
3456 * remote.c (add_packet_config_cmd): Ditto.
3457 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3458 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3459 * proc-api.c (_initialize_proc_api): Ditto.
3460 * kod.c (_initialize_kod): Ditto.
3461 * valprint.c (_initialize_valprint): Ditto.
3462 * top.c (init_main): Ditto.
3463 * infcmd.c (_initialize_infcmd): Ditto.
3464 * corefile.c (_initialize_core): Ditto.
3465 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3466 * arch-utils.c (initialize_current_architecture): Ditto.
3467 (_initialize_gdbarch_utils): Ditto.
3468 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3470 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3471 * wince.c (_initialize_inftarg): Ditto.
3472 * symfile.c (_initialize_symfile): Ditto.
3473 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3474 * language.c (_initialize_language): Ditto.
3475 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3477 2002-02-04 Michael Snyder <msnyder@redhat.com>
3479 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3481 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3483 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3484 Add rules for building the register data files.
3486 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3488 * regformats/regdat.sh: Add braces to the definition of
3489 expedite_regs_${arch}.
3491 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3493 * regformats/regdef.h (struct reg): Add comment describing the
3494 requirements for offset and size fields.
3496 2002-02-04 Andreas Schwab <schwab@suse.de>
3498 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3499 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3501 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3503 * gdbarch.sh (copyright): Update years in generated header.
3504 (SMASH_TEXT_ADDRESS): Add rule.
3505 * gdbarch.h, gdbarch.c: Re-generate.
3506 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3507 * dbxread.c: Likewise.
3508 * dwarfread.c: Likewise.
3509 * elfread.c: Likewise.
3510 * somread.c: Likewise.
3512 * arm-tdep.c (arm_smash_text_address): New function.
3513 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3515 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3517 Add support for hardware watchpoints on win32 native.
3518 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3519 CONTEXT_DEBUG_REGISTERS.
3520 (dr variable): New variable. Static array containing a local copy
3522 (debug_registers_changed): New variable. Reflects when debug registers
3523 are changed and need to be written to inferior.
3524 (debug_registers_used): New variable. Reflects when any debug register
3525 was set, used when new threads are created.
3526 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3528 (thread_rec): Set dr array if id is the thread of current_event .
3529 (child_continue, child_resume): Change the debug registers for all
3530 threads if debug_registers_changed.
3531 (child_add_thread): Change the debug registers if debug_registers_used.
3532 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3533 Link nm.h to new nm-cygwin.h file.
3534 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3535 of hardware registers.
3537 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3539 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3540 Restore behavour broken by 2002-01-20 Andrew Cagney
3541 <ac131313@redhat.com> IEEE_FLOAT removal.
3543 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3545 * c-valprint.c (c_val_print): Pass a proper valaddr to
3546 cp_print_class_method.
3547 * valops.c (search_struct_method): If there is only one method
3548 and args is NULL, return that method.
3550 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3552 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3553 accessing tag_name directly.
3555 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3557 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3558 of accessing tag_name directly.
3560 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3563 * gdbtypes.c (replace_type): New function.
3564 * gdbtypes.h (replace_type): Add prototype.
3565 * stabsread.c (read_type): Use replace_type.
3567 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3569 * Makefile.in (memattr.o): Add missing dependencies rule.
3571 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3573 * breakpoint.c (break_at_finish_command): Really export.
3574 (break_at_finish_at_depth_command): Ditto.
3575 (tbreak_at_finish_command): Ditto.
3576 * hppa-tdep.c: Include completer.h.
3577 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3578 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3580 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3582 * utils.c (do_write): New function.
3583 (error_stream): Rewrite combining the code from error_begin and
3585 (verror): Rewrite using error_stream.
3586 (error_begin): Delete function.
3588 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3590 * utils.c (error_begin): Make static.
3591 * defs.h (error_begin): Delete declaration.
3593 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3594 (decode_line_1): Use cplusplus_error instead of error_begin,
3595 cplusplus_hint and return_to_top_level.
3596 * coffread.c (coff_symfile_read): Use error instead of error_begin
3597 and return_to_top_level.
3598 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3600 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3602 * language.h (type_error, range_error): Make string parameter
3604 * language.c (warning_pre_print): Delete extern declaration.
3605 * dwarfread.c (warning_pre_print): Ditto.
3606 * language.c (type_error, range_error): Rewrite to use verror and
3607 vwarning instead of warning_begin.
3609 2002-02-01 Michael Snyder <msnyder@redhat.com>
3611 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3612 (set_ignore_count): Move misplaced comment back where it belongs.
3614 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3616 * command.h (NO_FUNCTION): Delete macro.
3617 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3618 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3619 * tracepoint.c (_initialize_tracepoint): Ditto.
3620 * cli/cli-decode.c (add_set_cmd): Ditto.
3621 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3623 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3625 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3626 Update ``this'' pointer when calling virtual functions.
3628 2002-02-01 Michael Snyder <msnyder@redhat.com>
3630 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3631 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3633 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3635 * regformats/reg-arm.dat: New file.
3636 * regformats/reg-i386.dat: New file.
3637 * regformats/reg-ia64.dat: New file.
3638 * regformats/reg-m68k.dat: New file.
3639 * regformats/reg-mips.dat: New file.
3640 * regformats/reg-ppc.dat: New file.
3641 * regformats/reg-sh.dat: New file.
3642 * regformats/regdef.h: New file.
3643 * regformats/regdat.sh: New file.
3645 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3647 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3648 (arm_frame_args_address, arm_frame_locals_address): New functions.
3649 (arm_frame_num_args): New function.
3650 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3651 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3652 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3654 2002-01-31 Michael Snyder <msnyder@redhat.com>
3656 * breakpoint.c (break_at_finish_command): Export.
3657 (break_at_finish_at_depth_command): Export.
3658 (tbreak_at_finish_command): Export.
3659 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3660 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3661 "tbreak" commands, which are HPPA specific.
3663 * printcmd.c (disassemble_command): Remove an ancient
3664 artifact of an old merge.
3666 * symfile.h (enum overlay_debugging_state):
3667 Define enum constant values for overlay mode.
3668 * symfile.c (overlay_debugging): Use enums instead of literals.
3669 (overlay_is_mapped, overlay_auto_command,
3670 overlay_manual_command): Ditto.
3672 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3673 breakpoint_here_p, breakpoint_inserted_here_p,
3674 breakpoint_thread_match, bpstat_stop_status,
3675 describe_other_breakpoints, check_duplicates, clear_command):
3676 Coding standard fixes.
3678 * target.c (target_xfer_memory): Add spaces, coding standard.
3679 (do_xfer_memory): Add missing line to trust-readonly
3680 code: check bfd SEC_READONLY flag for section.
3682 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3684 * PROBLEMS: Fix typo, 5.1->5.1.1.
3686 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3688 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3689 data symbols, since we search based on textlow and texthigh.
3690 (find_pc_sect_symtab): Likewise.
3692 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3694 * defs.h (vwarning): Declare.
3695 * utils.c (vwarning): New function.
3696 (warning): Call vwarning.
3697 (warning_begin): Delete function.
3699 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3700 the warning message.
3701 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3704 2002-01-30 Michael Snyder <msnyder@redhat.com>
3706 * NEWS: Mention "set trust-readonly-sections" command.
3707 Mention generate-core-file command.
3709 2002-01-15 Michael Snyder <msnyder@redhat.com>
3711 * target.c: New command, "set trust-readonly-sections on".
3712 (do_xfer_memory): Honor the suggestion to trust readonly sections
3713 by reading them from the object file instead of from the target.
3714 (initialize_targets): Register command "set trust-readonly-sections".
3716 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3718 * parse.c (target_map_name_to_register): Simplify, search regs and
3719 pseudo-regs using a single loop.
3721 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3723 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3725 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3727 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3728 * config/i386/i386v42mp.mh: Add i387-nat.o .
3729 * i386v4-nat.c: Include i387-nat.h.
3730 (supply_fpregset): Use i387_supply_fsave.
3731 (fill_fpregset): Use i387_fill_fsave.
3733 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3735 * arm-tdep.c (arm_call_dummy_words): Define.
3736 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3737 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3738 (CALL_DUMMY_WORDS): Define.
3739 (arm_call_dummy_words): Declare.
3740 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3741 (arm_linux_call_dummy_words): Declare.
3743 2002-01-30 Andreas Schwab <schwab@suse.de>
3745 * m68klinux-nat.c: Fix last change to use regcache_collect
3746 instead of referencing registers[] directly.
3748 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3750 * parse.c (target_map_name_to_register): Delete code wrapped in
3751 #ifdef REGISTER_NAME_ALIAS_HOOK.
3753 2002-01-28 Michael Snyder <msnyder@redhat.com>
3755 * regcache.c (legacy_read_register_gen): Need to be able to
3756 read pseudo-register as well as real register.
3757 (legacy_write_register_gen): Ditto.
3759 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3761 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3762 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3763 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3764 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3765 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3766 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3767 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3768 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3769 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3770 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3771 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3772 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3773 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3774 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3775 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3776 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3777 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3778 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3779 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3780 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3782 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3784 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3785 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3786 (initialize_current_architecture): Update target_byte_order using
3787 information from BFD.
3788 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3789 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3791 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3793 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3794 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3796 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3797 #ifdef INVALID_FLOAT.
3798 * infcmd.c (do_registers_info): Ditto.
3799 * values.c (unpack_double): Ditto. Add comment.
3801 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3802 already commented out.
3804 2002-01-26 Andreas Schwab <schwab@suse.de>
3806 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3807 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3808 registers and add support for PTRACE_GETREGS.
3810 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3812 GDB 5.1.1 released from 5.1 branch.
3813 * NEWS: Add 5.1.1 news.
3814 * README: Sync with 5.1 branch.
3816 2002-01-23 Fred Fish <fnf@redhat.com>
3818 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3819 stabstring on initial malloc. Reallocing will copy it for us,
3822 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3824 * Makefile.in (hpread_h): Delete.
3825 (HFILES_NO_SRCDIR): Remove hpread.h.
3826 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3827 (hpread.o): Update dependencies.
3828 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3830 * hp-psymtab-read.c: Remove file.
3831 * hp-symtab-read.c: Remove file.
3832 * hpread.h: Remove file.
3834 * hpread.c: Merge all contents of hp-psymtab-read.c,
3835 hp-symtab-read.c and hpread.h into this file, as it was prior to
3838 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3839 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3840 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3841 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3843 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3845 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3846 fill_gregset): Call gdbarch_tdep() just once, assign result to
3847 variable and use that, instead of calling the function several
3850 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3852 * configure.host: Accept sparcv9 as alias for sparc64.
3853 * configure.tgt: Likewise.
3855 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3857 * solib-aix5.c (build_so_list_from_mapfile)
3858 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3859 arguments is not reversed.
3860 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3861 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3863 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3865 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3866 modified version of obsolete sh_fetch_pseudo_register.
3867 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3868 (sh4_register_read): New function.
3869 (sh_pseudo_register_write): New function. Renamed and modified
3870 version of obsolete sh_store_pseudo_register.
3871 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3872 (sh4_register_write): New function.
3873 (sh_gdbarch_init): Remove setting of gdbarch function
3874 fetch_pseudo_register and store_pseudo_register. Remove setting of
3875 register_convert_to_raw, register_convert_to_virtual,
3876 register_convertible.
3877 (sh_sh4_register_convertible): Delete. No longer needed. All is
3878 taken care by architecture specific functions
3879 register_read/register_write.
3880 (sh_sh4_register_convert_to_virtual): Make static.
3881 (sh_sh4_register_convert_to_raw): Ditto.
3883 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3885 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3886 (floatformat_is_nan, floatformat_mantissa): Ditto.
3888 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3889 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3890 builtin_type_ieee_double_little,
3891 builtin_type_ieee_double_littlebyte_bigword,
3892 builtin_type_m68881_ext, builtin_type_i960_ext,
3893 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3894 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3895 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3896 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3898 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3900 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3901 parameter. Set frameless flag if it exists and depended of
3902 whether the scanned function is frameless or not.
3903 (xstormy16_skip_prologue): If function is frameless, return
3904 result of xstormy16_scan_prologue().
3905 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3908 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3910 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3911 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3912 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3913 sh_sh4_register_byte, sh_sh4_register_raw_size,
3914 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3915 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3916 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3917 sh_store_pseudo_register, sh_do_pseudo_register): Call
3918 gdbarch_tdep() just once, assign result to variable and use that,
3919 instead of calling the function several times.
3921 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3923 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3924 macros instead of LAST_FPU_CTRL_REGNUM.
3925 (store_register): Likewise.
3927 2002-01-21 Jim Blandy <jimb@redhat.com>
3929 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3930 is up-to-date before running the program, not just when a program
3933 2002-01-21 Fred Fish <fnf@redhat.com>
3935 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3936 when we have found all instructions we are looking for.
3938 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3940 * arm-tdep.c (arm_register_name): New function.
3941 (arm_registers_names): Make static.
3942 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3943 (arm_register_name): Declare.
3944 (REGISTER_NAME): Use it.
3946 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3947 Kevin Buettner <kevinb@redhat.com>
3949 Convert arm targets to new FRAME interface.
3950 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3951 (arm_frame_find_save_regs): Delete.
3952 (arm_frame_init_saved_regs): New.
3953 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3954 Allocate extra_info as required. Convert all uses of fsr.regs
3955 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3957 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3958 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3959 (check_prologue_cache, save_prologue_cache): Likewise.
3960 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3961 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3962 (FRAME_FIND_SAVED_REGS): Delete.
3963 (arm_frame_find_saved_regs): Delete prototype.
3964 (arm_frame_init_saved_regs): New prototype.
3965 (FRAME_INIT_SAVED_REGS): Define.
3967 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3969 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3971 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3973 From Jeff Law <law@redhat.com>:
3974 * infttrace.c: Include <sys/pstat.h>.
3975 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3976 exec file if the ttrace equivalent fails.
3978 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3980 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3981 (closeLogFile): Ditto.
3983 2002-01-20 Michael Chastain <mec@shout.net>
3985 * top.c (print_gdb_version): Bump copyright year to 2002.
3987 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3989 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3990 Zannoni and Eli Zaretskii.
3992 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3994 * buildsym.c: Update copyright years.
3995 * c-typeprint.c: Likewise.
3996 * dwarf2read.c: Likewise.
3997 * f-typeprint.c: Likewise.
3998 * gdbtypes.c: Likewise.
3999 * gdbtypes.h: Likewise.
4000 * hp-symtab-read.c: Likewise.
4001 * hpread.c: Likewise.
4002 * mdebugread.c: Likewise.
4003 * p-typeprint.c: Likewise.
4005 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4007 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4008 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4009 byte-order selectable.
4010 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4011 * arch-utils.c: Ditto.
4012 (set_endian): Ditto.
4013 (set_endian_from_file): Ditto.
4014 * gdbserver/low-sim.c (create_inferior): Ditto.
4015 * gdbarch.sh: Ditto.
4016 * gdbarch.h: Re-generate.
4017 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4018 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4019 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4020 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4021 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4022 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4023 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4024 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4026 * config/mips/tm-wince.h: Remove #undef of macro
4027 TARGET_BYTE_ORDER_SELECTABLE.
4028 * config/sh/tm-wince.h: Ditto.
4030 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4032 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4033 member function fields. Add accessor macro
4034 TYPE_FN_FIELD_ARTIFICIAL.
4035 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4036 * c-typeprint.c (c_type_print_base): Skip artificial member
4039 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4041 * f-typeprint.c: Delete unused function f_type_print_args.
4042 * p-typeprint.c: Delete unused function pascal_type_print_args.
4044 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4046 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4047 comment. Add ``artificial'' to ``union field_location''.
4049 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4051 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4052 * mdebugread.c (parse_symbol): Likewise.
4053 * stabsread.c (define_symbol): Likewise.
4054 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4055 initializing TYPE_FIELD_BITPOS to n (obsolete).
4056 (hpread_doc_function_type): Likewise.
4057 * hpread.c (hpread_function_type): Likewise.
4059 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4061 * configure.in (host_makefile_frag): Only require a host makefile
4062 fragment when a native build.
4063 * configure: Re-generate.
4065 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4067 * doublest.h (floatformat_from_type): Declare.
4068 * doublest.c (floatformat_from_type): New function.
4069 (convert_typed_floating): Use.
4071 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4072 call to function floatformat_from_type.
4074 * gdbarch.sh (IEEE_FLOAT): Delete.
4075 * gdbarch.h, gdbarch.c: Re-generate.
4076 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4077 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4078 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4079 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4080 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4081 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4082 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4083 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4084 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4085 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4086 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4087 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4089 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4090 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4091 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4092 * sh-tdep.c (sh_gdbarch_init): Ditto.
4093 * mips-tdep.c (mips_gdbarch_init): Ditto.
4094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4095 * cris-tdep.c (cris_gdbarch_init): Ditto.
4097 2002-01-20 Jiri Smid <smid@suse.cz>
4099 * configure.host, configure.tgt: Support x86-64.
4100 * NEWS: Note new target x86-64.
4102 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4103 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4104 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4105 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4106 x86-64-linux-nat.o): Fix dependencies.
4108 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4110 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4111 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4112 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4113 * config/sparc/xm-sun4os4.h: Delete file.
4114 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4116 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4118 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4119 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4120 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4121 * config/i386/i386lynx.mh (XM_FILE): Delete.
4122 * config/rs6000/xm-rs6000ly.h: Delete file.
4123 * config/sparc/xm-sparclynx.h: Delete file.
4124 * config/m68k/xm-m68klynx.h: Delete file.
4125 * config/i386/xm-i386lynx.h: Delete file.
4126 * config/xm-lynx.h: Delete file.
4127 * config/djgpp/fnchange.lst: Update.
4129 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4131 * alpha-tdep.c (alpha_register_byte): New function.
4132 (alpha_register_raw_size): Ditto.
4133 (alpha_register_virtual_size): Ditto.
4134 (alpha_skip_prologue_internal): Renamed from
4135 alpha_skip_prologue.
4136 (alpha_skip_prologue): New version that calls
4137 alpha_skip_prologue_internal.
4138 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4139 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4140 second argument from alpha_skip_prologue.
4141 (REGISTER_BYTE): Use alpha_register_byte.
4142 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4143 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4144 (FRAMELESS_FUNCTION_INVOCATION): Use
4145 generic_frameless_function_invocation_not.
4146 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4147 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4149 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4151 * config/mips/xm-news-mips.h: Delete file.
4152 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4154 * config/m88k/xm-m88k.h: Delete file.
4155 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4156 * config/m88k/xm-delta88v4.h: Ditto.
4157 * config/m88k/xm-delta88.h: Ditto.
4159 * config/alpha/xm-fbsd.h: Delete file.
4160 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4162 * config/sparc/xm-sparc.h: Delete file.
4163 * Makefile.in (xm-sun4os4.h): Delete dependency.
4164 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4165 * config/sparc/xm-sun4os4.h: Ditto.
4166 * config/sparc/xm-linux.h: Ditto.
4168 * config/i386/xm-windows.h: Delete file.
4170 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4172 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4173 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4175 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4177 * alpha-tdep.c (alpha_call_dummy_words): New.
4178 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4179 (CALL_DUMMY_P): Define.
4180 (CALL_DUMMY_WORDS): Define.
4181 (SIZEOF_CALL_DUMMY_WORDS): Define.
4183 2002-01-19 Per Bothner <per@bothner.com>
4185 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4186 isn't NULL, which can happen with some gcj-3.x-produced code.
4188 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4190 * alpha-tdep.c (alpha_register_virtual_type): New function.
4191 (alpha_init_frame_pc_first): Ditto.
4192 (alpha_fix_call_dummy): Ditto.
4193 (alpha_store_struct_return): Ditto.
4194 (alpha_extract_struct_value_address): Ditto.
4195 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4196 alpha_register_virtual_type.
4197 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4198 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4199 alpha_extract_struct_value_address.
4200 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4201 (INIT_FRAME_PC): Use init_frame_pc_noop.
4202 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4204 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4206 * i386gnu-nat.c: Include "i386-tdep.h".
4207 (fetch_fpregs): Simplify code dealing with uninitialized floating
4208 point states such that it doesn't require FP7_REGNUM.
4210 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4212 * alpha-tdep.c (frame_extra_info): New.
4213 (alpha_find_saved_regs): Make static. Use
4215 (alpha_frame_init_saved_regs): New function.
4216 (alpha_frame_saved_pc): Use frame->extra_info.
4217 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4218 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4219 (init_extra_frame_info): Rename to...
4220 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4221 (alpha_print_extra_frame_info): New function.
4222 (alpha_frame_locals_address): Ditto.
4223 (alpha_frame_args_address): Ditto.
4224 (alpha_pop_frame): Use frame->extra_info.
4225 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4226 alpha_frame_args_address.
4227 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4228 (alpha_find_saved_regs): Remove prototype.
4229 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4230 (EXTRA_FRAME_INFO): Remove.
4231 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4232 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4234 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4236 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4237 (alpha_cannot_fetch_register): Ditto.
4238 (alpha_cannot_store_register): Ditto.
4239 (alpha_register_convertible): Ditto.
4240 (alpha_use_struct_convention): Ditto.
4241 * config/alpha/tm-alpha.h: Update copyright years.
4242 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4243 (INNER_THAN): Use core_addr_lessthan.
4244 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4245 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4246 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4247 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4248 (FRAME_CHAIN): Remove unnecessary cast.
4250 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4252 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4255 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4257 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4258 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4259 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4260 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4261 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4262 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4263 * x86-64-linux-nat.c: Ditto.
4265 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4267 * alpha-tdep.c (alpha_register_name): New function.
4268 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4269 (REGISTER_NAME): Define.
4271 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4273 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4275 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4277 * alpha-tdep.c: Update copyright years.
4278 (alpha_next_pc): New function.
4279 (alpha_software_single_step): Ditto.
4280 * config/alpha/tm-alpha.h: Add prototype for
4281 alpha_software_single_step.
4283 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4285 * alphabsd-nat.c: Update copyright years.
4286 (fill_gregset): Use regcache_collect.
4287 (fill_fpregset): Likewise.
4288 (fetch_inferior_registers): Only fetch integer registers
4289 if requested to do so.
4290 (store_inferior_registers): Only store integer registers
4291 if requested to do so.
4293 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4295 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4296 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4297 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4298 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4299 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4300 * config/arm/linux.mh (XDEPFILES): Delete.
4301 * config/arm/nbsd.mh (XDEPFILES): Delete.
4302 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4303 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4304 * config/i386/i386m3.mh (XDEPFILES): Delete.
4305 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4306 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4307 * config/i386/fbsd.mh (XDEPFILES): Delete.
4308 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4309 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4310 * config/i386/i386v4.mh (XDEPFILES): Delete.
4311 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4312 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4313 * config/i386/i386aix.mh (XDEPFILES): Delete.
4314 * config/i386/go32.mh (XDEPFILES): Delete.
4315 * config/i386/cygwin.mh (XDEPFILES): Delete.
4316 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4317 * config/i386/i386mach.mh (XDEPFILES): Delete.
4318 * config/i386/i386v32.mh (XDEPFILES): Delete.
4319 * config/i386/linux.mh (XDEPFILES): Delete.
4320 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4321 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4322 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4323 * config/i386/i386sco.mh (XDEPFILES): Delete.
4324 * config/i386/i386v.mh (XDEPFILES): Delete.
4325 * config/i386/nbsd.mh (XDEPFILES): Delete.
4326 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4327 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4328 * config/i386/symmetry.mh (XDEPFILES): Delete.
4329 * config/i386/obsd.mh (XDEPFILES): Delete.
4330 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4331 * config/ia64/linux.mh (XDEPFILES): Delete.
4332 * config/ia64/aix.mh (XDEPFILES): Delete.
4333 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4334 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4335 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4336 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4337 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4338 * config/m68k/linux.mh (XDEPFILES): Delete.
4339 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4340 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4341 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4342 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4343 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4344 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4345 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4346 * config/m88k/delta88.mh (XDEPFILES): Delete.
4347 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4348 * config/m88k/m88k.mh (XDEPFILES): Delete.
4349 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4350 * config/mips/linux.mh (XDEPFILES): Delete.
4351 * config/mips/irix6.mh (XDEPFILES): Delete.
4352 * config/mips/irix5.mh (XDEPFILES): Delete.
4353 * config/mips/irix4.mh (XDEPFILES): Delete.
4354 * config/mips/irix3.mh (XDEPFILES): Delete.
4355 * config/mips/decstation.mh (XDEPFILES): Delete.
4356 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4357 (NATDEPFILES): Move core-aout.o to here.
4358 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4359 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4360 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4361 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4362 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4363 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4364 * config/pa/hpux11.mh (XDEPFILES): Delete.
4365 * config/powerpc/aix.mh (XDEPFILES): Delete.
4366 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4367 * config/powerpc/linux.mh (XDEPFILES): Delete.
4368 * config/romp/rtbsd.mh: Rename XDEPFILES.
4369 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4370 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4371 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4372 * config/s390/s390.mh (XDEPFILES): Delete.
4373 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4374 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4375 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4376 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4377 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4378 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4379 * config/sparc/linux.mh (XDEPFILES): Delete.
4380 * config/vax/vaxult.mh (XDEPFILES): Delete.
4381 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4382 * Makefile.in (DEPFILES): Remove XDEPFILES.
4384 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4386 * utils.c (internal_verror): Fix comments, default is yes not no.
4387 Update queries to match. Default to quit and dump core.
4389 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4391 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4393 * defs.h, event-top.c, gdbcmd.h: Ditto.
4394 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4395 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4396 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4397 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4398 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4399 * mi/mi-main.c:Ditto.
4401 * stack.c, symfile.c: Update copyright.
4403 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4405 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4406 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4407 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4408 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4410 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4412 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4413 * gdbserver/low-lynx.c (myattach): Likewise.
4414 * gdbserver/low-nbsd.c (myattach): Likewise.
4415 * gdbserver/low-sim.c (myattach): Likewise.
4416 * gdbserver/low-sparc.c (myattach): Likewise.
4417 * gdbserver/low-sun3.c (myattach): Likewise.
4419 * gdbserver/low-linux.c (myattach): New function.
4421 * gdbserver/server.c (attach_inferior): New function.
4422 (main): Handle "--attach".
4424 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4426 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4429 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4431 * c-typeprint.c (is_type_conversion_operator): Add additional
4432 check for non-conversion operators.
4434 2002-01-15 Michael Snyder <msnyder@redhat.com>
4436 * linux-proc.c: Add "info proc" command, a la procfs.c.
4437 (read_mapping): New function, abstract and re-use code.
4438 (linux_find_memory_regions): Use new func read_mapping.
4439 (linux_info_proc_cmd): New function, implement "info proc".
4440 (_initialize_linux_proc): Add new command "info proc".
4442 2002-01-15 Michael Snyder <msnyder@redhat.com>
4444 * symfile.c (generic_load): Use bfd_map_over_sections method
4445 instead of manipulating bfd structure members directly.
4446 (add_section_size_callback): New function, bfd sections callback
4447 used by generic_load.
4448 (load_sections_callback): New function, bfd sections callback
4449 used by generic_load.
4451 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4453 [Based on work by Jim Blandy]
4454 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4455 (builtin_type_vec128): Export.
4456 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4458 (builtin_type_vec128): New builtin type for 128 bit vector
4460 (build_gdbtypes): Initialize builtin_type_v16qi and
4461 builtin_type_v8hi. Create the vec128 register builtin type
4463 (build_builtin_type_vec128): New function.
4464 (_initialize_gdbtypes): Register builtin_type_v16qi and
4465 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4466 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4467 AltiVec register to new builtin type.
4469 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4471 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4474 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4476 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4477 CLEAN_UP_REGISTER_VALUE.
4478 * regcache.c (supply_register): Update only call.
4480 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4482 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4483 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4484 a29k-*-vxworks* targets as obsolete.
4486 2002-01-14 Michael Snyder <msnyder@redhat.com>
4488 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4489 until we can resolve portability issues.
4490 * gregset.h: Remove references to fpxregs.
4491 * gcore.c (gcore_command): Initialize note_sec to NULL.
4493 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4495 * signals.c (target_signal_to_name): Rewrite. Only use
4496 signals[].name when in bounds and non-NULL.
4498 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4500 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4501 * signals.c (target_signal_to_name): Verify that SIG is within the
4502 bounds of the signals array.
4504 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4506 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4508 2002-01-13 Keith Seitz <keiths@redhat.com>
4510 * stack.c (print_frame_info_base): Print the frame's pc
4511 only if when print_frame_info_listing_hook is not defined.
4513 2002-01-13 Keith Seitz <keiths@redhat.com>
4515 * varobj.c (varobj_set_value): Make sure that there were no
4516 errors evaluating the object before attempting to set its
4518 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4519 so this offset adjustment is no longer necessary.
4520 (create_child): Don't set the error flag if the child is
4522 (value_of_child): If value_fetch_lazy fails, return NULL
4523 so that callers will be notified that an error occurred.
4524 (c_value_of_variable): Delay check of variable's validity
4525 until later. We actually want all structs and unions to have
4527 Do not return "???" for variables which could not be evaluated.
4528 This error condition must be returned to the caller so that it
4529 can get the error condition from gdb.
4530 (cplus_name_of_child): Adjust index for vptr before figuring
4531 out the name of the child.
4532 (cplus_value_of_child): If a child's (real) parent is not valid,
4533 don't even bother trying to give a value for it. Just return
4534 an error. Change all instances in this function.
4535 (cplus_type_of_child): If our parent is one of the "fake"
4536 parents, we need to get at the type of the real parent, and
4537 derive the child's true type using this information.
4539 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4541 From 2002-01-09 John Marshall <johnm@falch.net>:
4542 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4543 sources.redhat.com, and tweak some related URLs which had
4544 suffered from linkrot.
4546 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4549 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4550 structures passed in registers.
4552 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4554 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4555 white space which prevented compilation. Reported by DSK
4556 <dsk@student.unsw.edu.au>.
4558 2002-01-11 Michael Snyder <msnyder@redhat.com>
4560 * symfile.c (build_section_addr_info_from_section_tab):
4561 Use bfd access method instead of manipulating bfd directly.
4562 (syms_from_objfile): Ditto.
4563 (simple_overlay_update_1): Ditto.
4564 (simple_overlay_update): Ditto.
4565 (generic_load): Ditto.
4566 (overlay_unmapped_address): FIXME comment, bfd access methods.
4567 (sections_overlap): FIXME comment, bfd access methods.
4568 (pc_in_mapped_range): FIXME comment, bfd access methods.
4569 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4570 (section_is_mapped): FIXME comment, bfd access methods.
4571 (section_is_overlay): FIXME comment, bfd access methods.
4573 * symfile.c (generic_load): Whitespace and long line cleanups.
4574 Remove duplicate variable, change several local variables to
4575 more appropriate data types.
4576 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4578 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4581 * language.c (longest_local_hex_string_custom): Use phex_nz to
4582 convert NUM to a hex string.
4584 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4586 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4588 Update Copyright year.
4590 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4592 * language.c (longest_raw_hex_string): Delete unused function.
4594 2002-01-11 Petr Sorfa <petrs@caldera.com>
4596 * MAINTAINERS (write-after-approval): Add myself.
4597 * dwarf2read.c (read_tag_string_type): Handling of
4599 (read_tag_string_type): FORTRAN fix to prevent propagation of
4601 (set_cu_language): Handling of DW_LANG_Fortran95
4603 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4605 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4606 GETPID(inferior_ptid).
4607 (store_inferior_registers): Likewise.
4609 2002-01-10 Jason Merrill <jason@redhat.com>
4611 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4614 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4616 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4617 and bfd/elf32-sh-nbsd.c.
4619 2002-01-10 Michael Snyder <msnyder@redhat.com>
4621 * NEWS: Mention --pid and corefile/proc-id behavior change.
4623 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4624 * gcore.c: Include cli/cli-decode.h instead of command.h.
4626 * main.c (captured_main): Add new command line option "--pid".
4627 If the second command line argument (following the symbol-file)
4628 begins with a digit, try to attach to it before trying to open
4630 (print_gdb_help): Document the "--pid" argument.
4632 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4634 * completer.c (command_completer): New function.
4636 * completer.h <command_completer>: Add prototype.
4638 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4639 completer for the "help" command.
4641 2002-01-09 Jason Merrill <jason@redhat.com>
4643 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4645 2002-01-09 Michael Snyder <msnyder@redhat.com>
4647 * i386-linux-nat.c (fill_fpxregset): Make global.
4648 (store_fpxregset): Ditto.
4650 * gregset.h (gdb_fpxregset_t): Define.
4651 (supply_fpxregset): Prototype.
4652 (fill_fpxregset): Prototype.
4654 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4656 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4658 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4659 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4660 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4662 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4664 * MAINTAINERS: Update target maintainer rules so that any
4665 Maintainer can approve a tested patch for a maintenance-only
4668 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4670 * MAINTAINERS (write-after-approval): Add myself.
4672 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4675 2002-01-08 Michael Snyder <msnyder@redhat.com>
4677 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4678 real name of the executable, rather than the /proc name.
4680 2002-01-03 Michael Snyder <msnyder@redhat.com>
4682 Implement a "generate-core-file" command in gdb, save target state.
4683 * gcore.c: New file. Implement new command 'generate-core-file'.
4684 Save a corefile image of the current state of the inferior.
4685 * linux-proc.c: Add linux-specific code for saving corefiles.
4686 * target.h (struct target_ops): Add new target vectors for saving
4687 corefiles; to_find_memory_regions and to_make_corefile_notes.
4688 (target_find_memory_regions): New macro.
4689 (target_make_corefile_notes): New macro.
4690 * target.c (update_current_target): Inherit new target methods.
4691 (dummy_find_memory_regions): New place-holder method.
4692 (dummy_make_corefile_notes): New place-holder method.
4693 (init_dummy_target): Initialize new dummy target vectors.
4694 * exec.c (exec_set_find_memory_regions): New function.
4695 Allow the exec_ops vector for memory regions to be taken over.
4696 (exec_make_note_section): New function, target vector method.
4697 * defs.h (exec_set_find_memory_regions): Export prototype.
4698 * procfs.c (proc_find_memory_regions): New function, corefile method.
4699 (procfs_make_note_section): New function, corefile method.
4700 (init_procfs_ops): Set new target vector pointers.
4701 (find_memory_regions_callback): New function.
4702 (procfs_do_thread_registers): New function.
4703 (procfs_corefile_thread_callback): New function.
4704 * sol-thread.c (sol_find_memory_regions): New function.
4705 (sol_make_note_section): New function.
4706 (init_sol_thread_ops): Initialize new target vectors.
4707 * inftarg.c (inftarg_set_find_memory_regions): New function.
4708 Allow to_find_memory_regions vector to be taken over.
4709 (inftarg_set_make_corefile_notes): New function.
4710 Allow to_make_corefile_notes vector to be taken over.
4711 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4712 interface layer if not target_has_execution (may be a corefile).
4713 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4714 * config/sparc/sun4sol2.mh: Ditto.
4715 * config/alpha/alpha-linux.mh: Ditto.
4716 * config/arm/linux.mh: Ditto.
4717 * config/i386/x86-64linux.mh: Ditto.
4718 * config/ia64/linux.mh: Ditto.
4719 * config/m68k/linux.mh: Ditto.
4720 * config/mips/linux.mh: Ditto.
4721 * config/powerpc/linux.mh: Ditto.
4722 * config/sparc/linux.mh: Ditto.
4724 2002-01-07 Michael Snyder <msnyder@redhat.com>
4726 * arm-linux-nat.c: Remove references to regcache.c internal data
4727 (registers[] and register_valid[]).
4729 2002-01-07 Michael Snyder <msnyder@redhat.com>
4731 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4732 so that attaching to a pid will automatically read the process's
4733 symbol file and shlibs.
4734 * Makefile.in: Add rule for linux-proc.o.
4735 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4736 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4737 * config/arm/linux.mh: Ditto.
4738 * config/i386/linux.mh: Ditto.
4739 * config/i386/x86-64linux.mh: Ditto.
4740 * config/ia64/linux.mh: Ditto.
4741 * config/m68k/linux.mh: Ditto.
4742 * config/mips/linux.mh: Ditto.
4743 * config/powerpc/linux.mh: Ditto.
4744 * config/sparc/linux.mh: Ditto.
4746 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4748 * win32-nat.c: Add i386-tdep.h dependency.
4750 2002-01-07 Michael Snyder <msnyder@redhat.com>
4752 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4753 instead of bfd_get_arch_size. Don't bail out just because
4754 there's no exec_bfd.
4756 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4757 * p-valprint.c (pascal_object_print_value): Ditto.
4758 * somread.c (som_symtab_read): Ditto.
4759 * symfile.c (simple_free_overlay_region_table): Ditto.
4760 * valops.c (value_assign): Ditto.
4762 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4763 use tilde_expand and strerror for opening save-tracepoints file.
4765 * thread-db.c (thread_db_new_objfile): Indendation fix.
4767 * infptrace.c (GDB_MAX_ALLOCA): New define.
4768 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4769 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4770 can be overridden with whatever value is appropriate to the host).
4771 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4772 alloca to allocate potentially large buffer.
4773 * rs6000-nat.c (child_xfer_memory): Ditto.
4774 * symm-nat.c (child_xfer_memory): Ditto.
4775 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4777 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4779 From Nick Clifton <nickc@redhat.com>
4780 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4782 2002-01-07 Michael Snyder <msnyder@redhat.com>
4784 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4785 Don't use exec_bfd if it's NULL.
4787 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4789 * valops.c (value_arg_coerce): Fix formatting.
4791 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4793 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4796 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4798 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4799 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4800 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4801 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4802 z8k-coff have not been multi-arched. Update z8k-coff build
4805 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4807 * MAINTAINERS: Mark a29k target as obsolete.
4808 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4809 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4811 * NEWS: Note that a29k targets are obsolete.
4812 * a29k-tdep.c: Mark as obsolete.
4813 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4814 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4815 a29k-*-vxworks* targets as obsolete.
4816 * remote-adapt.c: Obsolete.
4817 * remote-eb.c: Obsolete.
4818 * remote-mm.c: Obsolete.
4819 * remote-udi.c: Obsolete.
4820 * config/a29k/a29k-udi.mt: Obsolete.
4821 * config/a29k/a29k.mt: Obsolete.
4822 * config/a29k/tm-a29k.h: Obsolete.
4823 * config/a29k/tm-vx29k.h: Obsolete.
4824 * config/a29k/vx29k.mt: Obsolete.
4826 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4828 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4829 with BFD_ENDIAN_BIG.
4831 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4833 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4834 * configure, config.in: Re-generate.
4835 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4836 * defs.h: Do not include <endian.h>.
4838 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4840 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4841 * config.in: Regenerate.
4842 * configure.in: Update copyright years.
4843 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4844 * configure: Regenerate.
4845 * i386bsd-nat.c: Update copyright years.
4846 (fill_gregset): Use regcache_collect.
4847 (fetch_inferior_registers): Only fetch integer registers
4848 if requested to do so. Add support for XMM registers
4849 using PT_GETXMMREGS.
4850 (store_inferior_registers): Only store integer registers
4851 if requested to do so. Add support for XMM registers
4852 using PT_SETXMMREGS.
4853 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4854 (store_inferior_registers): Remove.
4855 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4856 (fetch_elfcore_registers): New function.
4857 (i386nbsd_elfcore_fns): New.
4858 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4859 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4861 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4862 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4863 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4864 * config/i386/tm-nbsd.h: Update copyright years.
4865 (HAVE_SSE_REGS): Define.
4866 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4867 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4868 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4869 (SIGCONTEXT_PC_OFFSET): Remove.
4870 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4872 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4874 * configure.tgt: Remove powerpc-*-macos* target.
4875 * config/m68k/xm-mpw.h: Delete file.
4876 * config/xm-mpw.h: Delete file.
4877 * ser-mac.c: Delete file.
4878 * mpw-make.sed: Delete file.
4879 * mpw-config.in: Delete file.
4880 * mac-xdep.c: Delete file.
4881 * mac-gdb.r: Delete file.
4882 * mac-defs.h: Delete file.
4883 * mac-nat.c: Delete file.
4884 * config/powerpc/macos.mh: Delete file.
4885 * config/powerpc/macos.mt: Delete file.
4886 * config/powerpc/nm-macos.h: Delete file.
4887 * config/powerpc/tm-macos.h: Delete file.
4888 * source.c (openp, open_source_file): Remove obsolete code.
4889 * top.c (gdb_readline): Ditto.
4890 * utils.c (query): Ditto.
4891 * event-top.c (display_gdb_prompt): Ditto.
4892 * Makefile.in (ser-mac.o): Delete obsolete target.
4895 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4897 * defs.h (BIG_ENDIAN): Delete macro definition.
4898 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4899 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4900 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4901 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4902 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4903 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4904 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4905 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4906 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4907 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4908 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4909 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4910 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4911 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4912 * gdbarch.c: Re-generate.
4914 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4916 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4919 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4921 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4923 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4925 * value.h (value_ptr): Delete typedef.
4927 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4929 * i386nbsd-nat.c: Update copyright years.
4930 Include i386-tdep.h.
4932 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4934 * stabsread.c: Update copyright years.
4936 From Debashis Mahata <debashis.mahata@wipro.com>:
4937 (read_struct_fields): Deal with Sun C compiler erroneous stab
4938 output for structs and unions.
4941 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4943 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4946 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4948 * cp-abi.c: Fix whitespace.
4949 (baseclass_offset): New wrapper function.
4950 * cp-abi.h (baseclass_offset): Add prototype.
4951 (struct cp_abi_ops): Add baseclass_offset pointer.
4953 * valops.c (vb_match): Move to...
4954 * gnu-v2-abi.c (vb_match): here.
4955 * valops.c (baseclass_offset): Move to...
4956 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4958 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4960 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4961 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4962 * hpacc-abi.c (init_hpacc_ops): Likewise.
4964 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4966 * valops.c (find_overload_match): Accept obj as a
4967 reference parameter. Update it before returning.
4968 * value.h (find_overload_match): Update prototype.
4969 * eval.c (evaluate_subexp_standard): Pass object to
4970 find_overload_match by reference.
4972 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4974 * valarith.c: Replace value_ptr with struct value pointer. Remove
4975 register attribute from value declarations.
4978 * scm-lang.c (scm_lookup_name): Ditto.
4980 2002-01-03 Michael Snyder <msnyder@redhat.com>
4982 Abstract the functionality of iterating over mapped memory
4983 regions into a general purpose iterator function.
4984 * procfs.c (iterate_over_mappings): New function, general purpose
4985 iterator for memory sections.
4986 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4987 (solib_mappings_callback): New function, callback for above.
4988 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4989 (info_mappings_callback): New function, callback for above.
4991 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4993 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4995 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4996 * i386-tdep.c: Include "elf-bfd.h".
4997 (process_note_abi_tag_sections): New function.
4998 (i386_gdbarch_init): Add code to recognize various OS/ABI
5001 * maint.c (_initialize_maint_cmds): Add missing \ in
5004 For older changes see ChangeLog-2001
5010 version-control: never